text
stringlengths 8
6.88M
|
|---|
//---------------------------------------------------
#include <unordered_set>
#include <functional>
#include <iostream>
#include <string>
namespace jj32
{
/*
//下面的 hash<string>, G2.9需要,G4.9不需要,因為 G4.9 basic_string.h 已提供
template<> struct hash<string>
{
size_t operator()(string s) const {
return __stl_hash_string(s.c_str());
}
};
*/
void test_Hashtable()
{
cout << "\ntest_Hashtable().......... \n";
// hashtable 的模板參數個數 6=>10 (增加 hash policy 吧大概)
// 所以 G2.9的應用修改起來很麻煩。不改了, 以後再說.
}
}
#include <cstdlib> //rand() and RAND_MAX
int main(int argc, char** argv)
{
jj32::test_Hashtable();
return 0;
}
|
#include<bits/stdc++.h>
using namespace std;
bool isVisited[100001];
vector<int> node[100001],trans[100001];
vector<int> scc,order;
void dfs(int par)
{
isVisited[par]=true;
//cout<<par<<"\n";
for(auto x: node[par])
if(!isVisited[x])
dfs(x);
order.push_back(par);
}
void dfs1(int par)
{
isVisited[par]=true;
//cout<<par<<" ";
for(auto x: trans[par])
if(!isVisited[x])
dfs1(x);
scc.push_back(par);
}
int main()
{
int n,m;
cin>>n>>m;
vector<int> res(n+1);
fill(res.begin(),res.end(),0);
int a,b;
for(int i=0;i<m;i++)
{
cin>>a>>b;
node[a].push_back(b);
trans[b].push_back(a);
}
for(int i=1;i<=n;i++)
{
if(!isVisited[i])
dfs(i);
}
memset(isVisited,false,sizeof(isVisited));
reverse(order.begin(),order.end());
for(auto i:order)
{
if(!isVisited[i])
{
scc.clear();
dfs1(i);
if(scc.size()==1) continue;
for(auto x: scc)
res[x]=1;
}
}
for(int i=1;i<=n;i++)
cout<<res[i]<<" ";
}
|
#ifndef FONTCLASS_H_INCLUDED
#define FONTCLASS_H_INCLUDED
class FontClass{
public:
FontClass(){
WINDOWWIDTH = 640;
WINDOWHEIGHT = 480;
}
~FontClass(){
killFont();
}
void initFont(){
fontTextureID = CZAIL::BuildTexture("font.bmp", true);
buildFont();
}
void buildFont() // Build Our Font Display List
{
float cx; // Holds Our X Character Coord
float cy; // Holds Our Y Character Coord
int loop;
fontBaseIndex=glGenLists(256); // Creating 256 Display Lists
glBindTexture(GL_TEXTURE_2D, fontTextureID); // Select Our Font Texture
for (loop=0; loop<256; loop++) // Loop Through All 256 Lists
{
cx=float(loop%16)/16.0f; // X Position Of Current Character
cy=float(loop/16)/16.0f; // Y Position Of Current Character
glNewList(fontBaseIndex+loop,GL_COMPILE); // Start Building A List
glBegin(GL_QUADS); // Use A Quad For Each Character
glTexCoord2f(cx,1-cy-0.0625f); // Texture Coord (Bottom Left)
glVertex2i(0,0); // Vertex Coord (Bottom Left)
glTexCoord2f(cx+0.0625f,1-cy-0.0625f); // Texture Coord (Bottom Right)
glVertex2i(16,0); // Vertex Coord (Bottom Right)
glTexCoord2f(cx+0.0625f,1-cy); // Texture Coord (Top Right)
glVertex2i(16,16); // Vertex Coord (Top Right)
glTexCoord2f(cx,1-cy); // Texture Coord (Top Left)
glVertex2i(0,16); // Vertex Coord (Top Left)
glEnd(); // Done Building Our Quad (Character)
glTranslated(10,0,0); // Move To The Right Of The Character
glEndList(); // Done Building The Display List
} // Loop Until All 256 Are Built
}
void killFont() // Delete The Font From Memory
{
glDeleteLists(fontBaseIndex,256); // Delete All 256 Display Lists
}
/*void glPrint(GLint x, GLint y, char *string, int set, float r, float g, float b, float a ) // Where The Printing Happens
{
glPushMatrix();
float env_color[4];
env_color[0] = r; env_color[1] = g; env_color[2] = b; env_color[3] = 0.1;
if (set>1)
{
set=1;
}
glBindTexture(GL_TEXTURE_2D, fontTextureID); // Select Our Font Texture
glColor4f( 1.0, 0.0, 0.0, 1.0 );
// enable2D();f
glTranslated(0,0,0); // Position The Text (0,0 - Bottom Left)
glListBase(fontBaseIndex-32+(128*set)); // Choose The Font Set (0 or 1)
glCallLists(strlen(string),GL_BYTE,string); // Write The Text To The Screen
// disable2D();
glPopMatrix();
}*/
GLvoid glPrint(GLint x, GLint y, char *string, int set, float r, float g, float b, float a ) // Where The Printing Happens
{
glPushMatrix();
glEnable(GL_BLEND);
glDepthFunc(GL_LEQUAL);
glBlendFunc(GL_SRC_ALPHA,GL_ONE);
glShadeModel(GL_SMOOTH);
glColor4f( r, g, b, a );
if (set>1)
{
set=1;
}
glBindTexture(GL_TEXTURE_2D, fontTextureID); // Select Our Font Texture
glDisable(GL_DEPTH_TEST); // Disables Depth Testing
glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
glPushMatrix(); // Store The Projection Matrix
glLoadIdentity(); // Reset The Projection Matrix
glOrtho(0,640,0,480,-1,1); // Set Up An Ortho Screen
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glPushMatrix(); // Store The Modelview Matrix
glLoadIdentity(); // Reset The Modelview Matrix
glTranslated(x,y,0); // Position The Text (0,0 - Bottom Left)
glListBase(fontBaseIndex-32+(128*set)); // Choose The Font Set (0 or 1)
glCallLists(strlen(string),GL_BYTE,string); // Write The Text To The Screen
glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
glPopMatrix(); // Restore The Old Projection Matrix
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glPopMatrix(); // Restore The Old Projection Matrix
glEnable(GL_DEPTH_TEST);
glDisable(GL_BLEND); // Enables Depth Testing
glPopMatrix();
}
GLvoid glPrint(GLint x, GLint y, char *string, int set) // Where The Printing Happens
{
glPushMatrix();
if (set>1)
{
set=1;
}
glBindTexture(GL_TEXTURE_2D, fontTextureID); // Select Our Font Texture
glDisable(GL_DEPTH_TEST); // Disables Depth Testing
glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
glPushMatrix(); // Store The Projection Matrix
glLoadIdentity(); // Reset The Projection Matrix
glOrtho(0,640,0,480,-1,1); // Set Up An Ortho Screen
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glPushMatrix(); // Store The Modelview Matrix
glLoadIdentity(); // Reset The Modelview Matrix
glTranslated(x,y,0); // Position The Text (0,0 - Bottom Left)
glListBase(fontBaseIndex-32+(128*set)); // Choose The Font Set (0 or 1)
glCallLists(strlen(string),GL_BYTE,string); // Write The Text To The Screen
glMatrixMode(GL_PROJECTION); // Select The Projection Matrix
glPopMatrix(); // Restore The Old Projection Matrix
glMatrixMode(GL_MODELVIEW); // Select The Modelview Matrix
glPopMatrix(); // Restore The Old Projection Matrix
glEnable(GL_DEPTH_TEST); // Enables Depth Testing
glPopMatrix();
}
private:
GLuint fontTextureID;
GLuint fontBaseIndex;
int WINDOWWIDTH ;
int WINDOWHEIGHT;
void enable2D() {
// Switch to projection mode
glMatrixMode(GL_PROJECTION);
// Save previous
glPushMatrix();
glLoadIdentity();
gluOrtho2D(0, WINDOWWIDTH, 0, WINDOWHEIGHT);
// Invert the y axis, down is positive
glScalef(1, -1, 1);
// Move the origin to the upper left corner
glTranslatef(0, -WINDOWHEIGHT, 0);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
glDisable(GL_DEPTH_TEST);
}
void disable2D() {
glEnable(GL_DEPTH_TEST);
glPopMatrix();
glMatrixMode(GL_PROJECTION);
glPopMatrix();
glMatrixMode(GL_MODELVIEW);
}
};
#endif
|
#include"DBSCAN.h"
#include<iostream>
#include<cmath>
#include<fstream>
#include<stack>
using namespace std;
AroyaDBSCAN::AroyaDBSCAN()
{
radius = 2;
density = 5;
data = nullptr;
rows = 0;
columns = 0;
clusters = 0;
cluster = nullptr;
}
void AroyaDBSCAN::setData(const vector<vector<double>>&newData)
{
if (data != nullptr) {
for (int i = 0; i < rows; i++) {
delete[]data[i];
}
delete[]data;
}
data = nullptr;
rows = newData.size();
if (rows < 1) {
cout << "AroyaDBSCAN::setData() get empty data!\n";
columns = 0;
system("pause");
return;
}
columns = newData[0].size();
data = new double*[rows];
for (int i = 0; i < rows; i++) {
data[i] = new double[columns];
for (int j = 0; j < columns; j++) {
data[i][j] = newData[i][j];
}
}
clusters = 0;
}
void AroyaDBSCAN::setRadius(const double &newRadius)
{
radius = newRadius*newRadius;
}
void AroyaDBSCAN::setDensity(const int &newDensity)
{
density = newDensity;
}
void AroyaDBSCAN::run()
{
int i, j, k, l;
//初始化空间
if (cluster != nullptr) {
delete[]cluster;
}
cluster = new int[rows];
for (i = 0; i < rows; i++) {
cluster[i] = -2;
}
//-2:unsign
//-1:noise
//0~:cluster
double **distance = new double*[rows];
//symmetric matrix, use triangular matrix to store
double temp_dis;
for (i = 0; i < rows; i++) {
distance[i] = new double[i];
for (j = 0; j < i; j++) {
temp_dis = 0;
for (k = 0; k < columns; k++) {
temp_dis += pow(data[i][k] - data[j][k], 2);
}
distance[i][j] = temp_dis;
}
}
//开始聚类
stack<int>base;
stack<int>base_base;
stack<int>base_index;
for (i = 0; i < rows; i++) {
if (cluster[i] != -2) {
continue;
}
//为-2时
base.push(i);
base_index.push(-1);
while (!base.empty()) {
//if base_index.top is not -1, already judged core point
l = base.top();
k = base_index.top();
if (k != -1) {
for (; k < l; k++) {
if (distance[l][k] < radius&&cluster[k] < 0) {
base_index.top() = k;
base_index.push(-1);
base_base.push(l);
base.push(k);
break;
}
}
if (k < l)continue;
for (k = l + 1; k < rows; k++) {
if (distance[k][l] < radius&&cluster[k] < 0) {
base_index.top() = k;
base_index.push(-1);
base_base.push(l);
base.push(k);
break;
}
}
if (k == rows) {
base.pop();
if (!base_base.empty())base_base.pop();
base_index.pop();
}
}
else {
//judge is core point
//caculate density first
int thisDensity = 0;
for (j = 0; j < l; j++) {
if (distance[l][j] < radius) {
thisDensity++;
}
}
for (j = l + 1; j < rows; j++) {
if (distance[j][l] < radius) {
thisDensity++;
}
}
//not core point, border point
if (thisDensity < density) {
//no parents → noise point
if (base_base.empty()) {
cluster[l] = -1;
}
else {//extend parent's cluster
cluster[l] = cluster[base_base.top()];
base_base.pop();
}
base.pop();
base_index.pop();
}
else {//core point
if (base_base.empty()) {
cluster[l] = ++clusters;
}
else {//extend parent's cluster
cluster[l] = cluster[base_base.top()];
}
base_index.top() = 0;
}
}
}
}
//clean dynamic memories
for (i = 0; i < rows; i++) {
delete[]distance[i];
}
delete[]distance;
}
void AroyaDBSCAN::writeFile(const char * fileName, const bool&withData) {
ofstream fout;
fout.open(fileName);
int j;
if (withData) for (int i = 0; i < rows; i++) {
for (j = 0; j < columns; j++) {
fout << data[i][j] << ',';
}
fout << cluster[i] << endl;
}
else for (int i = 0; i < rows; i++) {
fout << cluster[i] << endl;
}
fout.close();
}
vector<int> AroyaDBSCAN::getFlag()
{
vector<int>ans;
for (int i = 0; i < rows; i++)ans.push_back(cluster[i]);
return ans;
}
|
#pragma once
#include <string>
class HandlerResult
{
public:
enum Result
{
Success,
Fail,
};
HandlerResult(Result result, std::string msg);
const Result& getResult() const;
const std::string& getMsg() const;
private:
Result _result;
std::string _msg;
};
|
#include<iostream>
#include<string>
#include "kolejka.hpp"
using namespace std;
int main()
{
string x={},y;
int size,p;
kolejka *Q;
cout<<endl;
cout<<"Wybierz inicjalizację kolejki: "<<endl;
cout<<"1)Kolejka(int x)"<<endl;
cout<<"2)Kolejka({Ala ma kota})"<<endl;
cout<<"3)Kolejka()"<<endl;
cout<<"4)Kolejka(Kolejka(3))"<<endl<<endl;
cin>>size;
cout<<endl;
if (size==1)
{
cout<<"Podaj rozmiar: "<<endl;
cin>>size;
Q=new kolejka(size);
}
else if (size==2)
{
Q=new kolejka({"ala","ma","kota"});
}
else if (size==3)
{
Q=new kolejka();
}
else
Q=new kolejka(kolejka(3));
do
{
cout<<"1)Dodaj element do kolejki"<<endl;
cout<<"2)Wyciagnij element z kolejki"<<endl;
cout<<"3)Sprawdź rozmiar kolejki"<<endl;
cout<<"4)Sprawdź element kolejki"<<endl;
cout<<"5)Wypisz wszystkie elementy"<<endl;
cout<<"6)Zakończ działanie"<<endl<<endl;
cout<<"Wybierz działanie: ";
cin>>size;
if (size==1)
{
cout<<"Podaj element"<<endl;
cin>>y;
Q->wloz(y);
}
if (size==2)
cout<<"Pierwszy element: "<<Q->wyciagnij()<<endl;
if (size==3)
cout<<"Rozmiar: "<<Q->rozmiar()<<endl;
cout<<endl;
if (size==4)
cout<<"Pierwszy element: "<<Q->sprawdz()<<endl;
if (size==5)
{
p=Q->rozmiar();
for (int i=0; i<p;i++)
cout<<Q->wyciagnij()<<" ";
cout<<endl<<endl;
}
} while (size!=6);
delete Q;
return 0;
}
|
#ifndef FOGRESERVEDID_HXX
#define FOGRESERVEDID_HXX
class FogReservedId : public FogKeyword
{
typedef FogReservedId This;
typedef FogKeyword Super;
TYPEDECL_SINGLE(This, Super)
private:
const FogTokenType::TokenType _pp_token_type;
const FogTokenType::TokenType _token_type;
private:
FogReservedId(const This&);
FogReservedId& operator=(const This&);
This& mutate() const { return *(This *)this; }
public:
FogReservedId(const char *anId, FogTokenType::TokenType ppTokenEnum, FogTokenType::TokenType tokenEnum);
virtual bool emit(FogEmitContext& emitContext) const;
virtual bool get_object(FogTokenRef& returnValue, FogScopeContext& inScope) const;
virtual const FogMetaType& meta_type() const;
virtual bool morph_to(FogTokenRef& returnValue, const FogMetaType& metaType, IsExposed isExposed,
FogScopeContext& inScope) const;
virtual FogTokenType::TokenType pp_token_type_enum() const;
virtual bool resolve_semantics(FogSemanticsContext& theSemantics) const;
virtual FogTokenType::TokenType token_type_enum() const;
};
#endif
|
#include "algorithm/base_component/include/camera_config.h"
namespace OpticalFlow_SLAM_algorithm_opticalflow_slam {
std::shared_ptr<CameraConfig> CameraConfig::camera_config = nullptr;
void CameraConfig::show_camera_config_info()
{
std::cout << "**************************** camera config start ******************************" << std::endl;
std::cout << " fx_left : " << fx_left << std::endl;
std::cout << " fy_left : " << fy_left << std::endl;
std::cout << " cx_left : " << cx_left << std::endl;
std::cout << " cy_left : " << cy_left << std::endl;
std::cout << " r1_left : " << r1_left << std::endl;
std::cout << " r2_left : " << r2_left << std::endl;
std::cout << " r3_left : " << r3_left << std::endl;
std::cout << " p1_left : " << p1_left << std::endl;
std::cout << " p2_left : " << p2_left << std::endl;
std::cout << std::endl;
std::cout << " fx_right : " << fx_right << std::endl;
std::cout << " fy_right : " << fy_right << std::endl;
std::cout << " cx_right : " << cx_right << std::endl;
std::cout << " cy_right : " << cy_right << std::endl;
std::cout << " r1_right : " << r1_right << std::endl;
std::cout << " r2_right : " << r2_right << std::endl;
std::cout << " r3_right : " << r3_right << std::endl;
std::cout << " p1_right : " << p1_right << std::endl;
std::cout << " p2_right : " << p2_right << std::endl;
std::cout << "baseline : " << base_line(0) << " " << base_line(1) << " " << base_line(2) << std::endl;
std::cout << "**************************** camera config end ******************************" << std::endl;
}
// /**
// * @brief Singleton Pattern, to get a CameraConfig instance
// * @property public
// * @author snowden
// * @date 2021-07-16
// * @version 1.0
// * @note need add sysnchronized operation
// * @warning : if call getCameraConfig twice, the second call will use the first instance, not second
// */
// CameraConfig* CameraConfig::getCameraConfig(double_t d_fx, double_t d_fy, double_t d_cx, double_t d_cy,
// double_t d_r1, double_t d_r2, double_t d_r3, double_t d_p1, double_t d_p2)
// {
// if (nullptr == camera_config)
// {
// //TODO(snowden): need add synchronized operate for mulit thread; DCL, synchronized (CameraConfig.class) reference: https://www.runoob.com/design-pattern/singleton-pattern.html
// if (nullptr == camera_config)
// {
// camera_config = new CameraConfig(d_fx, d_fy, d_cx, d_cy, d_r1, d_r2, d_r3, d_p1, d_p2);
// }
// }
// else if ( ( camera_config->fx != d_fx) || ( camera_config->fy != d_fy) || ( camera_config->cx != d_cx) || ( camera_config->cy != d_cy) ||
// ( camera_config->r1 != d_r1) || ( camera_config->r2 != d_r2) || ( camera_config->r3 != d_r3) || ( camera_config->p1 != d_p1) ||
// ( camera_config->p2 != d_p2) )
// {
// //TODO(snowden) : need use log rather than cout ;
// std::cout << "Already exist CameraConfig, and you use a diffrent parameters to get another instance ,it is not allowed , so you get a exist config " << std::endl;
// }
// return camera_config;
// }
/**
* @brief Singleton Pattern, to get a CameraConfig instance
* @property public
* @author snowden
* @date 2021-07-22
* @version 1.0
* @note need add sysnchronized operation
* @warning : if call getCameraConfig twice, the second call will use the first instance, not second
*/
std::shared_ptr<CameraConfig> CameraConfig::getCameraConfig()
{
if (nullptr == camera_config)
{
//TODO(snowden): need add synchronized operate for mulit thread; DCL, synchronized (CameraConfig.class) reference: https://www.runoob.com/design-pattern/singleton-pattern.html
if (nullptr == camera_config)
{
camera_config = std::shared_ptr<CameraConfig>(new CameraConfig());
}
}
return camera_config;
}
// /**
// * @brief CameraConfig
// * @property private
// * @author snowden
// * @date 2021-07-16
// * @version 1.0
// */
// CameraConfig::CameraConfig()
// {
// }
} //namespace OpticalFlow_SLAM_algorithm_opticalflow_slam
|
#include <iostream>
#include <fstream>
#include <algorithm>
#include <windows.h>
#include <string>
#include <vector>
#include "Pool.h"
#include "Blur.h"
#include <filesystem>
namespace fs = std::experimental::filesystem;
#pragma comment(lib, "winmm.lib")
std::vector<Task*> createTasks(bitmap* initBmp, bitmap* blurBmp, int blocksCount) {
int partWidth = 0, partHeight = 0;
if (blocksCount != 0) {
partWidth = initBmp->getWidth() / blocksCount;
partHeight = initBmp->getHeight() / blocksCount;
}
int w = initBmp->getWidth() - partWidth * blocksCount;
int widthRemaining = std::max(w, 0);
int h = initBmp->getHeight() - partHeight * blocksCount;
int heightRemaining = std::max(h, 0);
std::vector<Task*> tasks;
for (int i = 0; i < blocksCount; i++) {
Params params;
params.initBmp = initBmp;
params.blurBmp = blurBmp;
for (int j = 0; j < blocksCount; j++) {
params.startHeight = partHeight * j;
params.endHeight = (partHeight * (j + 1)) + (j == blocksCount - 1 ? heightRemaining : 0);
params.startWidth = i * partWidth;
params.endWidth = ((i + 1) * partWidth) + (i == blocksCount - 1 ? widthRemaining : 0);
tasks.push_back(new Blur(params));
}
}
return tasks;
}
void threadsRunner(std::vector<Task*> tasks, HANDLE* handles)
{
int count = tasks.size();
for (int i = 0; i < count; i++)
{
handles[i] = CreateThread(NULL, i, &threadProc, tasks[i], CREATE_SUSPENDED, NULL);
}
for (int i = 0; i < count; i++) {
ResumeThread(handles[i]);
}
WaitForMultipleObjects(count, handles, true, INFINITE);
}
int main(int argc, const char** argv)
{
std::string mode = argv[1];
int blocksCount = atoi(argv[2]);
int threadsCount = atoi(argv[5]);
int k = 0;
DWORD start = timeGetTime();
for (auto &p : fs::directory_iterator(argv[3])) {
std::string path = p.path().string();
bitmap initBmp{ path.c_str() };
bitmap blurBmp{ path.c_str() };
std::vector<Task*> tasks = createTasks(&initBmp, &blurBmp, blocksCount);
if (mode == "0") {
HANDLE* handles = new HANDLE[tasks.size()];
threadsRunner(tasks, handles);
}
else {
Pool pool(tasks, threadsCount);
pool.execute();
}
std::string s = "\\";
std::string out = argv[4] + s + std::to_string(k) + ".bmp";
blurBmp.save(out.c_str());
k++;
}
std::cout << timeGetTime() - start << std::endl;
return 0;
}
|
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
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);
}
};
struct VirtActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
template <typename R>
struct InterfaceFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
struct InterfaceActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
// DefaultInitializationErrorHandler
struct DefaultInitializationErrorHandler_t3109936861;
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t3962482529;
// Vuforia.VuforiaRuntime
struct VuforiaRuntime_t1949122020;
// System.Action`1<Vuforia.VuforiaUnity/InitError>
struct Action_1_t3593217305;
// UnityEngine.GUI/WindowFunction
struct WindowFunction_t3146511083;
// System.String
struct String_t;
// UnityEngine.GUIStyle
struct GUIStyle_t3956901511;
// System.Object[]
struct ObjectU5BU5D_t2843939325;
// Vuforia.VuforiaConfiguration
struct VuforiaConfiguration_t1763229349;
// Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration
struct GenericVuforiaConfiguration_t3697830469;
// UnityEngine.Texture2D
struct Texture2D_t3840446185;
// UnityEngine.GUIStyleState
struct GUIStyleState_t1397964415;
// UnityEngine.Font
struct Font_t1956802104;
// UnityEngine.RectOffset
struct RectOffset_t1369453676;
// DefaultTrackableEventHandler
struct DefaultTrackableEventHandler_t1588957063;
// UnityEngine.Component
struct Component_t1923634451;
// Vuforia.TrackableBehaviour
struct TrackableBehaviour_t1113559212;
// UnityEngine.Object
struct Object_t631007953;
// Vuforia.ITrackableEventHandler
struct ITrackableEventHandler_t1495975588;
// UnityEngine.Renderer[]
struct RendererU5BU5D_t3210418286;
// UnityEngine.Collider[]
struct ColliderU5BU5D_t4234922487;
// UnityEngine.Canvas[]
struct CanvasU5BU5D_t682926938;
// UnityEngine.Renderer
struct Renderer_t2627027031;
// UnityEngine.Collider
struct Collider_t1773347010;
// UnityEngine.Behaviour
struct Behaviour_t1437897464;
// UnityEngine.Canvas
struct Canvas_t3310196443;
// DyeMakerScript
struct DyeMakerScript_t1513019777;
// UnityEngine.GameObject
struct GameObject_t1113636619;
// UnityEngine.Transform
struct Transform_t3600365921;
// HelperScript
struct HelperScript_t1151587737;
// LabScript
struct LabScript_t1073339935;
// WalkthroughScript
struct WalkthroughScript_t1234213269;
// PointerScript
struct PointerScript_t3628587701;
// UnityEngine.Material
struct Material_t340375123;
// UnityEngine.Rigidbody
struct Rigidbody_t3916780224;
// Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper
struct FluvioRuntimeHelper_t3939505274;
// Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory
struct ThreadFactory_t1346931491;
// Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler
struct ThreadHandler_t2543061702;
// Thinksquirrel.Fluvio.Internal.Threading.Interlocked
struct Interlocked_t2336157651;
// System.Action`1<Thinksquirrel.Fluvio.FluidBase>
struct Action_1_t2614539062;
// System.Action`1<System.Object>
struct Action_1_t3252573759;
// Thinksquirrel.Fluvio.FluidBase
struct FluidBase_t2442071467;
// Thinksquirrel.Fluvio.Internal.Threading.IThreadFactory
struct IThreadFactory_t599406626;
// Thinksquirrel.Fluvio.Internal.Threading.IThreadHandler
struct IThreadHandler_t2446361027;
// Thinksquirrel.Fluvio.Internal.Threading.IInterlocked
struct IInterlocked_t829943562;
// Thinksquirrel.Fluvio.Internal.Threading.IThread
struct IThread_t4255277291;
// System.Action
struct Action_t1264377477;
// Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread
struct Thread_t3301707652;
// System.Threading.ThreadStart
struct ThreadStart_t1006689297;
// System.Threading.Thread
struct Thread_t2300836069;
// System.Threading.ParameterizedThreadStart
struct ParameterizedThreadStart_t3696804522;
// Thinksquirrel.Fluvio.SamplePlugins.FluidMixer
struct FluidMixer_t1501991927;
// Thinksquirrel.Fluvio.Plugins.FluidParticlePairPlugin
struct FluidParticlePairPlugin_t2917011702;
// Thinksquirrel.Fluvio.FluvioComputeShader
struct FluvioComputeShader_t2551470295;
// Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin
struct FluidParallelPlugin_t3366117264;
// Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData[]
struct FluidMixerDataU5BU5D_t901665531;
// Thinksquirrel.Fluvio.Plugins.FluidPlugin
struct FluidPlugin_t2696458681;
// Thinksquirrel.Fluvio.Plugins.SolverData
struct SolverData_t3372117984;
// UnityEngine.ParticleSystem
struct ParticleSystem_t1800779281;
// Thinksquirrel.Fluvio.SamplePlugins.FluidTouch
struct FluidTouch_t1832949139;
// Thinksquirrel.Fluvio.Plugins.FluidParticlePlugin
struct FluidParticlePlugin_t2087845768;
// Thinksquirrel.Fluvio.FluvioMinMaxCurve
struct FluvioMinMaxCurve_t1877352570;
// UnityEngine.Camera
struct Camera_t4157153871;
// UnityEngine.Vector4[]
struct Vector4U5BU5D_t934056436;
// System.Collections.IEnumerator
struct IEnumerator_t1853284238;
// Wayfind
struct Wayfind_t1312431753;
// Thinksquirrel.Fluvio.Internal.ObjectModel.IFluidSolver
struct IFluidSolver_t2299467746;
// Thinksquirrel.Fluvio.Internal.Solvers.SolverDataInternal
struct SolverDataInternal_t3200118405;
// System.Char[]
struct CharU5BU5D_t3528271667;
// System.Void
struct Void_t1185182177;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.DelegateData
struct DelegateData_t1677132599;
// UnityEngine.AnimationCurve
struct AnimationCurve_t3046754366;
// Thinksquirrel.Fluvio.Internal.Keyframe[]
struct KeyframeU5BU5D_t2904958028;
// System.Action`1<UnityEngine.Font>
struct Action_1_t2129269699;
// UnityEngine.Font/FontTextureRebuildCallback
struct FontTextureRebuildCallback_t2467502454;
// System.Threading.ExecutionContext
struct ExecutionContext_t1748372627;
// System.MulticastDelegate
struct MulticastDelegate_t;
// System.Security.Principal.IPrincipal
struct IPrincipal_t2343618843;
// System.Collections.Hashtable
struct Hashtable_t1853889766;
// System.IAsyncResult
struct IAsyncResult_t767004451;
// System.AsyncCallback
struct AsyncCallback_t3962456242;
// Vuforia.VuforiaConfiguration/DigitalEyewearConfiguration
struct DigitalEyewearConfiguration_t546560202;
// Vuforia.VuforiaConfiguration/DatabaseLoadConfiguration
struct DatabaseLoadConfiguration_t449697234;
// Vuforia.VuforiaConfiguration/VideoBackgroundConfiguration
struct VideoBackgroundConfiguration_t3392414655;
// Vuforia.VuforiaConfiguration/DeviceTrackerConfiguration
struct DeviceTrackerConfiguration_t721467671;
// Vuforia.VuforiaConfiguration/SmartTerrainConfiguration
struct SmartTerrainConfiguration_t1514074484;
// Vuforia.VuforiaConfiguration/WebCamConfiguration
struct WebCamConfiguration_t1101614731;
// UnityEngine.ComputeShader
struct ComputeShader_t317220254;
// UnityEngine.TextAsset
struct TextAsset_t3022178571;
// System.String[]
struct StringU5BU5D_t1281789340;
// System.Collections.Generic.List`1<System.String>
struct List_1_t3319525431;
// Cloo.ComputeProgram
struct ComputeProgram_t346198837;
// Cloo.ComputeKernel[]
struct ComputeKernelU5BU5D_t1715534492;
// System.IntPtr[]
struct IntPtrU5BU5D_t4013366056;
// System.Collections.Generic.Dictionary`2<System.String,System.Int32>
struct Dictionary_2_t2736202052;
// Thinksquirrel.Fluvio.FluvioComputeShader/IComputeIncludeParser
struct IComputeIncludeParser_t3141661068;
// System.Single[]
struct SingleU5BU5D_t1444911251;
// System.Action`2<UnityEngine.TextAsset,System.String>
struct Action_2_t1173775360;
// System.Text.RegularExpressions.MatchEvaluator
struct MatchEvaluator_t632122704;
// UnityEngine.Camera/CameraCallback
struct CameraCallback_t190067161;
// UnityEngine.Canvas/WillRenderCanvases
struct WillRenderCanvases_t3309123499;
// Vuforia.Trackable
struct Trackable_t2451999991;
// System.Collections.Generic.List`1<Vuforia.ITrackableEventHandler>
struct List_1_t2968050330;
// System.Action`2<Thinksquirrel.Fluvio.FluvioMonoBehaviourBase,System.Boolean>
struct Action_2_t1004908951;
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.FluidBase>
struct List_1_t3914146209;
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.Internal.ObjectModel.IParallelPlugin>
struct List_1_t2917484508;
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.Plugins.FluidPlugin>
struct List_1_t4168533423;
// Thinksquirrel.Fluvio.FluidGroup
struct FluidGroup_t773684765;
// Thinksquirrel.Fluvio.Internal.SolverParticleDelegate
struct SolverParticleDelegate_t4224278369;
// Thinksquirrel.Fluvio.Internal.SolverParticlePairDelegate
struct SolverParticlePairDelegate_t2332887997;
// System.Comparison`1<Thinksquirrel.Fluvio.Internal.ObjectModel.IParallelPlugin>
struct Comparison_1_t1220340945;
// Thinksquirrel.Fluvio.Internal.FluvioComputeBufferBase[]
struct FluvioComputeBufferBaseU5BU5D_t3891016598;
// System.Array[]
struct ArrayU5BU5D_t2896390326;
// System.Converter`2<UnityEngine.Keyframe,Thinksquirrel.Fluvio.Internal.Keyframe>
struct Converter_2_t3479950270;
extern RuntimeClass* String_t_il2cpp_TypeInfo_var;
extern const uint32_t DefaultInitializationErrorHandler__ctor_m2145257936_MetadataUsageId;
extern RuntimeClass* VuforiaRuntime_t1949122020_il2cpp_TypeInfo_var;
extern RuntimeClass* Action_1_t3593217305_il2cpp_TypeInfo_var;
extern const RuntimeMethod* DefaultInitializationErrorHandler_OnVuforiaInitializationError_m512807497_RuntimeMethod_var;
extern const RuntimeMethod* Action_1__ctor_m2713332384_RuntimeMethod_var;
extern const uint32_t DefaultInitializationErrorHandler_Awake_m1713298888_MetadataUsageId;
extern RuntimeClass* WindowFunction_t3146511083_il2cpp_TypeInfo_var;
extern RuntimeClass* GUI_t1624858472_il2cpp_TypeInfo_var;
extern const RuntimeMethod* DefaultInitializationErrorHandler_DrawWindowContent_m2208378571_RuntimeMethod_var;
extern const uint32_t DefaultInitializationErrorHandler_OnGUI_m2338842741_MetadataUsageId;
extern const uint32_t DefaultInitializationErrorHandler_OnDestroy_m3668093536_MetadataUsageId;
extern String_t* _stringLiteral2016908147;
extern String_t* _stringLiteral3483484711;
extern const uint32_t DefaultInitializationErrorHandler_DrawWindowContent_m2208378571_MetadataUsageId;
extern RuntimeClass* InitError_t3420749710_il2cpp_TypeInfo_var;
extern RuntimeClass* ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var;
extern RuntimeClass* Debug_t3317548046_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral3279329212;
extern String_t* _stringLiteral3325583105;
extern String_t* _stringLiteral1253325676;
extern String_t* _stringLiteral2959890895;
extern String_t* _stringLiteral2293327149;
extern String_t* _stringLiteral2746077084;
extern String_t* _stringLiteral2746058527;
extern String_t* _stringLiteral491174246;
extern String_t* _stringLiteral3183081100;
extern String_t* _stringLiteral868600955;
extern String_t* _stringLiteral3122929577;
extern String_t* _stringLiteral3567432369;
extern String_t* _stringLiteral229317972;
extern String_t* _stringLiteral3452614641;
extern String_t* _stringLiteral3452614528;
extern String_t* _stringLiteral2072581803;
extern String_t* _stringLiteral2642543365;
extern String_t* _stringLiteral3752705136;
extern String_t* _stringLiteral3453007782;
extern const uint32_t DefaultInitializationErrorHandler_SetErrorCode_m599033302_MetadataUsageId;
extern RuntimeClass* VuforiaConfiguration_t1763229349_il2cpp_TypeInfo_var;
extern RuntimeClass* Int32_t2950945753_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral1431967569;
extern String_t* _stringLiteral3797279721;
extern String_t* _stringLiteral1108443480;
extern String_t* _stringLiteral2072975055;
extern String_t* _stringLiteral1498400317;
extern const uint32_t DefaultInitializationErrorHandler_getKeyInfo_m1864640064_MetadataUsageId;
extern RuntimeClass* Mathf_t3464937446_il2cpp_TypeInfo_var;
extern RuntimeClass* GUIStyle_t3956901511_il2cpp_TypeInfo_var;
extern RuntimeClass* RectOffset_t1369453676_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Resources_GetBuiltinResource_TisFont_t1956802104_m2738776830_RuntimeMethod_var;
extern String_t* _stringLiteral2974894664;
extern const uint32_t DefaultInitializationErrorHandler_SetupGUIStyles_m3863535424_MetadataUsageId;
extern RuntimeClass* Texture2D_t3840446185_il2cpp_TypeInfo_var;
extern const uint32_t DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749_MetadataUsageId;
extern RuntimeClass* Object_t631007953_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Component_GetComponent_TisTrackableBehaviour_t1113559212_m1736119408_RuntimeMethod_var;
extern const uint32_t DefaultTrackableEventHandler_Start_m796446126_MetadataUsageId;
extern String_t* _stringLiteral3820270571;
extern String_t* _stringLiteral3073488411;
extern String_t* _stringLiteral3483481617;
extern const uint32_t DefaultTrackableEventHandler_OnTrackableStateChanged_m77027111_MetadataUsageId;
extern const RuntimeMethod* Component_GetComponentsInChildren_TisRenderer_t2627027031_m2673895911_RuntimeMethod_var;
extern const RuntimeMethod* Component_GetComponentsInChildren_TisCollider_t1773347010_m2667952426_RuntimeMethod_var;
extern const RuntimeMethod* Component_GetComponentsInChildren_TisCanvas_t3310196443_m1457345007_RuntimeMethod_var;
extern const uint32_t DefaultTrackableEventHandler_OnTrackingFound_m4202593607_MetadataUsageId;
extern const uint32_t DefaultTrackableEventHandler_OnTrackingLost_m424172778_MetadataUsageId;
extern const RuntimeMethod* Object_Instantiate_TisGameObject_t1113636619_m3215236302_RuntimeMethod_var;
extern String_t* _stringLiteral2459608827;
extern const uint32_t DyeMakerScript_createDye_m2768975499_MetadataUsageId;
extern const RuntimeMethod* GameObject_GetComponent_TisWalkthroughScript_t1234213269_m2081424569_RuntimeMethod_var;
extern String_t* _stringLiteral742877173;
extern const uint32_t LabScript_Start_m4155035687_MetadataUsageId;
extern String_t* _stringLiteral2124038184;
extern String_t* _stringLiteral2897538527;
extern const uint32_t LabScript_OnTriggerEnter_m4070775815_MetadataUsageId;
extern const RuntimeMethod* GameObject_GetComponent_TisHelperScript_t1151587737_m906172308_RuntimeMethod_var;
extern const RuntimeMethod* GameObject_GetComponent_TisRenderer_t2627027031_m1619941042_RuntimeMethod_var;
extern String_t* _stringLiteral371078329;
extern String_t* _stringLiteral1363227335;
extern const uint32_t PointerScript_Start_m4179530305_MetadataUsageId;
extern String_t* _stringLiteral85179081;
extern String_t* _stringLiteral2103141252;
extern String_t* _stringLiteral28902687;
extern String_t* _stringLiteral2731190251;
extern String_t* _stringLiteral3102844764;
extern String_t* _stringLiteral1386166781;
extern String_t* _stringLiteral3490442989;
extern String_t* _stringLiteral798688684;
extern String_t* _stringLiteral1950909564;
extern String_t* _stringLiteral555807437;
extern String_t* _stringLiteral2313787010;
extern const uint32_t PointerScript_OnTriggerEnter_m2544804473_MetadataUsageId;
extern const RuntimeMethod* GameObject_GetComponentInParent_TisTransform_t3600365921_m2951165606_RuntimeMethod_var;
extern const RuntimeMethod* GameObject_GetComponent_TisRigidbody_t3916780224_m564316479_RuntimeMethod_var;
extern const uint32_t PointerScript_switchObjectParent_m2650247284_MetadataUsageId;
extern String_t* _stringLiteral3035767777;
extern const uint32_t PointerScript_OnTriggerExit_m2590455578_MetadataUsageId;
extern RuntimeClass* ThreadFactory_t1346931491_il2cpp_TypeInfo_var;
extern RuntimeClass* ThreadHandler_t2543061702_il2cpp_TypeInfo_var;
extern RuntimeClass* Interlocked_t2336157651_il2cpp_TypeInfo_var;
extern RuntimeClass* Action_1_t2614539062_il2cpp_TypeInfo_var;
extern RuntimeClass* FluidBase_t2442071467_il2cpp_TypeInfo_var;
extern RuntimeClass* FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var;
extern const RuntimeMethod* FluvioRuntimeHelper_OnFluidEnabled_m922446055_RuntimeMethod_var;
extern const RuntimeMethod* Action_1__ctor_m3132718992_RuntimeMethod_var;
extern const RuntimeMethod* FluvioRuntimeHelper_OnFluidDisabled_m1043147736_RuntimeMethod_var;
extern const uint32_t FluvioRuntimeHelper_OnEnable_m1411491943_MetadataUsageId;
extern const uint32_t FluvioRuntimeHelper_OnFluidEnabled_m922446055_MetadataUsageId;
extern const uint32_t FluvioRuntimeHelper_OnFluidDisabled_m1043147736_MetadataUsageId;
extern const uint32_t FluvioRuntimeHelper_UpdateThreads_m2089483363_MetadataUsageId;
extern const uint32_t FluvioRuntimeHelper_OnDisable_m4074910997_MetadataUsageId;
extern RuntimeClass* Thread_t3301707652_il2cpp_TypeInfo_var;
extern const uint32_t ThreadFactory_Create_m963505556_MetadataUsageId;
extern const uint32_t ThreadFactory_Create_m2935627831_MetadataUsageId;
extern RuntimeClass* ThreadStart_t1006689297_il2cpp_TypeInfo_var;
extern RuntimeClass* Thread_t2300836069_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Action_Invoke_m937035532_RuntimeMethod_var;
extern const uint32_t Thread__ctor_m2516358625_MetadataUsageId;
extern RuntimeClass* ParameterizedThreadStart_t3696804522_il2cpp_TypeInfo_var;
extern const RuntimeMethod* Action_1_Invoke_m2461023210_RuntimeMethod_var;
extern const uint32_t Thread__ctor_m3302383024_MetadataUsageId;
extern const uint32_t ThreadHandler_SwitchToThread_m2531549192_MetadataUsageId;
extern const uint32_t ThreadHandler_Sleep_m511088409_MetadataUsageId;
extern const uint32_t ThreadHandler_SpinWait_m1902359859_MetadataUsageId;
extern RuntimeClass* FluvioComputeShader_t2551470295_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral3787728118;
extern String_t* _stringLiteral2126595046;
extern const uint32_t FluidMixer_OnEnablePlugin_m4174981106_MetadataUsageId;
extern const RuntimeMethod* FluidParallelPlugin_SetComputePluginBuffer_TisFluidMixerData_t2739974414_m1154187815_RuntimeMethod_var;
extern const uint32_t FluidMixer_OnSetComputeShaderVariables_m3099943613_MetadataUsageId;
extern const RuntimeMethod* Array_Resize_TisFluidMixerData_t2739974414_m3950388657_RuntimeMethod_var;
extern const uint32_t FluidMixer_OnStartPluginFrame_m2503903814_MetadataUsageId;
extern RuntimeClass* Vector3_t3722313464_il2cpp_TypeInfo_var;
extern RuntimeClass* Vector4_t3319028937_il2cpp_TypeInfo_var;
extern const uint32_t FluidMixer_OnUpdatePlugin_m3810918431_MetadataUsageId;
extern const RuntimeMethod* FluidParallelPlugin_GetComputePluginBuffer_TisFluidMixerData_t2739974414_m669696162_RuntimeMethod_var;
extern const uint32_t FluidMixer_OnReadComputeBuffers_m3225133699_MetadataUsageId;
extern RuntimeClass* Matrix4x4_t1817901843_il2cpp_TypeInfo_var;
extern const uint32_t FluidMixer_OnPluginPostSolve_m1987994228_MetadataUsageId;
extern RuntimeClass* Vector4U5BU5D_t934056436_il2cpp_TypeInfo_var;
extern const uint32_t FluidTouch__ctor_m887891685_MetadataUsageId;
extern RuntimeClass* FluvioMinMaxCurve_t1877352570_il2cpp_TypeInfo_var;
extern const uint32_t FluidTouch_OnResetPlugin_m2150035963_MetadataUsageId;
extern RuntimeClass* Input_t1431474628_il2cpp_TypeInfo_var;
extern RuntimeClass* Vector2_t2156229523_il2cpp_TypeInfo_var;
extern const uint32_t FluidTouch_OnStartPluginFrame_m3338445436_MetadataUsageId;
extern const uint32_t FluidTouch_AddTouchPoint_m14484858_MetadataUsageId;
extern String_t* _stringLiteral2023415654;
extern const uint32_t FluidTouch_OnEnablePlugin_m1459819939_MetadataUsageId;
extern const RuntimeMethod* FluidParallelPlugin_SetComputePluginBuffer_TisVector4_t3319028937_m1809992889_RuntimeMethod_var;
extern const uint32_t FluidTouch_OnSetComputeShaderVariables_m3500212163_MetadataUsageId;
extern const uint32_t FluidTouch_OnUpdatePlugin_m4094986156_MetadataUsageId;
extern RuntimeClass* StringU5BU5D_t1281789340_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral1120238597;
extern String_t* _stringLiteral1115913221;
extern String_t* _stringLiteral1120238594;
extern String_t* _stringLiteral1115913218;
extern String_t* _stringLiteral1120238595;
extern String_t* _stringLiteral1115913219;
extern String_t* _stringLiteral1120238600;
extern String_t* _stringLiteral1115913224;
extern String_t* _stringLiteral1120238601;
extern String_t* _stringLiteral1115913225;
extern String_t* _stringLiteral615818563;
extern String_t* _stringLiteral698882300;
extern String_t* _stringLiteral3102845756;
extern String_t* _stringLiteral4072509764;
extern String_t* _stringLiteral812293955;
extern String_t* _stringLiteral2981046623;
extern const uint32_t WalkthroughScript__ctor_m2771975813_MetadataUsageId;
extern RuntimeClass* WalkthroughScript_t1234213269_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral3096022723;
extern String_t* _stringLiteral1253950546;
extern String_t* _stringLiteral3551354140;
extern String_t* _stringLiteral2103141284;
extern const uint32_t WalkthroughScript_Start_m832016931_MetadataUsageId;
extern String_t* _stringLiteral2086122013;
extern const uint32_t WalkthroughScript_updateWorkspace_m751566600_MetadataUsageId;
extern RuntimeClass* Material_t340375123_il2cpp_TypeInfo_var;
extern String_t* _stringLiteral1676927737;
extern String_t* _stringLiteral3091825597;
extern String_t* _stringLiteral2609262062;
extern const uint32_t WalkthroughScript_updateScreens_m1288599812_MetadataUsageId;
extern RuntimeClass* IEnumerator_t1853284238_il2cpp_TypeInfo_var;
extern RuntimeClass* Transform_t3600365921_il2cpp_TypeInfo_var;
extern RuntimeClass* IDisposable_t3640265483_il2cpp_TypeInfo_var;
extern const uint32_t WalkthroughScript_clearWorkspace_m1013203047_MetadataUsageId;
extern const RuntimeMethod* GameObject_GetComponent_TisParticleSystem_t1800779281_m2609609468_RuntimeMethod_var;
extern String_t* _stringLiteral2515395904;
extern const uint32_t WalkthroughScript_onMordantRotation_m1252556939_MetadataUsageId;
extern const uint32_t Wayfind_Start_m2398538477_MetadataUsageId;
extern String_t* _stringLiteral109517304;
extern const uint32_t Wayfind_MordantCollision_m2991484191_MetadataUsageId;
struct GUIStyle_t3956901511_marshaled_pinvoke;
struct GUIStyle_t3956901511_marshaled_com;
struct GUIStyleState_t1397964415_marshaled_pinvoke;
struct GUIStyleState_t1397964415_marshaled_com;
struct RectOffset_t1369453676_marshaled_com;
struct ObjectU5BU5D_t2843939325;
struct RendererU5BU5D_t3210418286;
struct ColliderU5BU5D_t4234922487;
struct CanvasU5BU5D_t682926938;
struct FluidMixerDataU5BU5D_t901665531;
struct Vector4U5BU5D_t934056436;
struct StringU5BU5D_t1281789340;
#ifndef U3CMODULEU3E_T692745552_H
#define U3CMODULEU3E_T692745552_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <Module>
struct U3CModuleU3E_t692745552
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CMODULEU3E_T692745552_H
#ifndef RUNTIMEOBJECT_H
#define RUNTIMEOBJECT_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEOBJECT_H
struct Il2CppArrayBounds;
#ifndef RUNTIMEARRAY_H
#define RUNTIMEARRAY_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Array
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEARRAY_H
#ifndef THREADFACTORY_T1346931491_H
#define THREADFACTORY_T1346931491_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory
struct ThreadFactory_t1346931491 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREADFACTORY_T1346931491_H
#ifndef THREADHANDLER_T2543061702_H
#define THREADHANDLER_T2543061702_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler
struct ThreadHandler_t2543061702 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREADHANDLER_T2543061702_H
#ifndef INTERLOCKED_T2336157651_H
#define INTERLOCKED_T2336157651_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Internal.Threading.Interlocked
struct Interlocked_t2336157651 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERLOCKED_T2336157651_H
#ifndef THREAD_T3301707652_H
#define THREAD_T3301707652_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread
struct Thread_t3301707652 : public RuntimeObject
{
public:
// System.Threading.Thread Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::m_Thread
Thread_t2300836069 * ___m_Thread_0;
public:
inline static int32_t get_offset_of_m_Thread_0() { return static_cast<int32_t>(offsetof(Thread_t3301707652, ___m_Thread_0)); }
inline Thread_t2300836069 * get_m_Thread_0() const { return ___m_Thread_0; }
inline Thread_t2300836069 ** get_address_of_m_Thread_0() { return &___m_Thread_0; }
inline void set_m_Thread_0(Thread_t2300836069 * value)
{
___m_Thread_0 = value;
Il2CppCodeGenWriteBarrier((&___m_Thread_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREAD_T3301707652_H
#ifndef SOLVERDATA_T3372117984_H
#define SOLVERDATA_T3372117984_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Plugins.SolverData
struct SolverData_t3372117984 : public RuntimeObject
{
public:
// Thinksquirrel.Fluvio.Internal.ObjectModel.IFluidSolver Thinksquirrel.Fluvio.Plugins.SolverData::m_InternalSolver
RuntimeObject* ___m_InternalSolver_1;
// Thinksquirrel.Fluvio.Internal.Solvers.SolverDataInternal Thinksquirrel.Fluvio.Plugins.SolverData::fluvio
SolverDataInternal_t3200118405 * ___fluvio_2;
public:
inline static int32_t get_offset_of_m_InternalSolver_1() { return static_cast<int32_t>(offsetof(SolverData_t3372117984, ___m_InternalSolver_1)); }
inline RuntimeObject* get_m_InternalSolver_1() const { return ___m_InternalSolver_1; }
inline RuntimeObject** get_address_of_m_InternalSolver_1() { return &___m_InternalSolver_1; }
inline void set_m_InternalSolver_1(RuntimeObject* value)
{
___m_InternalSolver_1 = value;
Il2CppCodeGenWriteBarrier((&___m_InternalSolver_1), value);
}
inline static int32_t get_offset_of_fluvio_2() { return static_cast<int32_t>(offsetof(SolverData_t3372117984, ___fluvio_2)); }
inline SolverDataInternal_t3200118405 * get_fluvio_2() const { return ___fluvio_2; }
inline SolverDataInternal_t3200118405 ** get_address_of_fluvio_2() { return &___fluvio_2; }
inline void set_fluvio_2(SolverDataInternal_t3200118405 * value)
{
___fluvio_2 = value;
Il2CppCodeGenWriteBarrier((&___fluvio_2), value);
}
};
struct SolverData_t3372117984_ThreadStaticFields
{
public:
// System.Int32 Thinksquirrel.Fluvio.Plugins.SolverData::s_CurrentIndex
int32_t ___s_CurrentIndex_0;
public:
inline static int32_t get_offset_of_s_CurrentIndex_0() { return static_cast<int32_t>(offsetof(SolverData_t3372117984_ThreadStaticFields, ___s_CurrentIndex_0)); }
inline int32_t get_s_CurrentIndex_0() const { return ___s_CurrentIndex_0; }
inline int32_t* get_address_of_s_CurrentIndex_0() { return &___s_CurrentIndex_0; }
inline void set_s_CurrentIndex_0(int32_t value)
{
___s_CurrentIndex_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SOLVERDATA_T3372117984_H
#ifndef VALUETYPE_T3640485471_H
#define VALUETYPE_T3640485471_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ValueType
struct ValueType_t3640485471 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t3640485471_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t3640485471_marshaled_com
{
};
#endif // VALUETYPE_T3640485471_H
#ifndef CRITICALFINALIZEROBJECT_T701527852_H
#define CRITICALFINALIZEROBJECT_T701527852_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ConstrainedExecution.CriticalFinalizerObject
struct CriticalFinalizerObject_t701527852 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CRITICALFINALIZEROBJECT_T701527852_H
#ifndef STRING_T_H
#define STRING_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::length
int32_t ___length_0;
// System.Char System.String::start_char
Il2CppChar ___start_char_1;
public:
inline static int32_t get_offset_of_length_0() { return static_cast<int32_t>(offsetof(String_t, ___length_0)); }
inline int32_t get_length_0() const { return ___length_0; }
inline int32_t* get_address_of_length_0() { return &___length_0; }
inline void set_length_0(int32_t value)
{
___length_0 = value;
}
inline static int32_t get_offset_of_start_char_1() { return static_cast<int32_t>(offsetof(String_t, ___start_char_1)); }
inline Il2CppChar get_start_char_1() const { return ___start_char_1; }
inline Il2CppChar* get_address_of_start_char_1() { return &___start_char_1; }
inline void set_start_char_1(Il2CppChar value)
{
___start_char_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_2;
// System.Char[] System.String::WhiteChars
CharU5BU5D_t3528271667* ___WhiteChars_3;
public:
inline static int32_t get_offset_of_Empty_2() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_2)); }
inline String_t* get_Empty_2() const { return ___Empty_2; }
inline String_t** get_address_of_Empty_2() { return &___Empty_2; }
inline void set_Empty_2(String_t* value)
{
___Empty_2 = value;
Il2CppCodeGenWriteBarrier((&___Empty_2), value);
}
inline static int32_t get_offset_of_WhiteChars_3() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___WhiteChars_3)); }
inline CharU5BU5D_t3528271667* get_WhiteChars_3() const { return ___WhiteChars_3; }
inline CharU5BU5D_t3528271667** get_address_of_WhiteChars_3() { return &___WhiteChars_3; }
inline void set_WhiteChars_3(CharU5BU5D_t3528271667* value)
{
___WhiteChars_3 = value;
Il2CppCodeGenWriteBarrier((&___WhiteChars_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRING_T_H
#ifndef BOOLEAN_T97287965_H
#define BOOLEAN_T97287965_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean
struct Boolean_t97287965
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_2;
public:
inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Boolean_t97287965, ___m_value_2)); }
inline bool get_m_value_2() const { return ___m_value_2; }
inline bool* get_address_of_m_value_2() { return &___m_value_2; }
inline void set_m_value_2(bool value)
{
___m_value_2 = value;
}
};
struct Boolean_t97287965_StaticFields
{
public:
// System.String System.Boolean::FalseString
String_t* ___FalseString_0;
// System.String System.Boolean::TrueString
String_t* ___TrueString_1;
public:
inline static int32_t get_offset_of_FalseString_0() { return static_cast<int32_t>(offsetof(Boolean_t97287965_StaticFields, ___FalseString_0)); }
inline String_t* get_FalseString_0() const { return ___FalseString_0; }
inline String_t** get_address_of_FalseString_0() { return &___FalseString_0; }
inline void set_FalseString_0(String_t* value)
{
___FalseString_0 = value;
Il2CppCodeGenWriteBarrier((&___FalseString_0), value);
}
inline static int32_t get_offset_of_TrueString_1() { return static_cast<int32_t>(offsetof(Boolean_t97287965_StaticFields, ___TrueString_1)); }
inline String_t* get_TrueString_1() const { return ___TrueString_1; }
inline String_t** get_address_of_TrueString_1() { return &___TrueString_1; }
inline void set_TrueString_1(String_t* value)
{
___TrueString_1 = value;
Il2CppCodeGenWriteBarrier((&___TrueString_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BOOLEAN_T97287965_H
#ifndef INTPTR_T_H
#define INTPTR_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// 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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTPTR_T_H
#ifndef VECTOR3_T3722313464_H
#define VECTOR3_T3722313464_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Vector3
struct Vector3_t3722313464
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_1;
// System.Single UnityEngine.Vector3::y
float ___y_2;
// System.Single UnityEngine.Vector3::z
float ___z_3;
public:
inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___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(Vector3_t3722313464, ___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(Vector3_t3722313464, ___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;
}
};
struct Vector3_t3722313464_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_t3722313464 ___zeroVector_4;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_t3722313464 ___oneVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_t3722313464 ___upVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_t3722313464 ___downVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_t3722313464 ___leftVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_t3722313464 ___rightVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_t3722313464 ___forwardVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_t3722313464 ___backVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_t3722313464 ___positiveInfinityVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_t3722313464 ___negativeInfinityVector_13;
public:
inline static int32_t get_offset_of_zeroVector_4() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___zeroVector_4)); }
inline Vector3_t3722313464 get_zeroVector_4() const { return ___zeroVector_4; }
inline Vector3_t3722313464 * get_address_of_zeroVector_4() { return &___zeroVector_4; }
inline void set_zeroVector_4(Vector3_t3722313464 value)
{
___zeroVector_4 = value;
}
inline static int32_t get_offset_of_oneVector_5() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___oneVector_5)); }
inline Vector3_t3722313464 get_oneVector_5() const { return ___oneVector_5; }
inline Vector3_t3722313464 * get_address_of_oneVector_5() { return &___oneVector_5; }
inline void set_oneVector_5(Vector3_t3722313464 value)
{
___oneVector_5 = value;
}
inline static int32_t get_offset_of_upVector_6() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___upVector_6)); }
inline Vector3_t3722313464 get_upVector_6() const { return ___upVector_6; }
inline Vector3_t3722313464 * get_address_of_upVector_6() { return &___upVector_6; }
inline void set_upVector_6(Vector3_t3722313464 value)
{
___upVector_6 = value;
}
inline static int32_t get_offset_of_downVector_7() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___downVector_7)); }
inline Vector3_t3722313464 get_downVector_7() const { return ___downVector_7; }
inline Vector3_t3722313464 * get_address_of_downVector_7() { return &___downVector_7; }
inline void set_downVector_7(Vector3_t3722313464 value)
{
___downVector_7 = value;
}
inline static int32_t get_offset_of_leftVector_8() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___leftVector_8)); }
inline Vector3_t3722313464 get_leftVector_8() const { return ___leftVector_8; }
inline Vector3_t3722313464 * get_address_of_leftVector_8() { return &___leftVector_8; }
inline void set_leftVector_8(Vector3_t3722313464 value)
{
___leftVector_8 = value;
}
inline static int32_t get_offset_of_rightVector_9() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___rightVector_9)); }
inline Vector3_t3722313464 get_rightVector_9() const { return ___rightVector_9; }
inline Vector3_t3722313464 * get_address_of_rightVector_9() { return &___rightVector_9; }
inline void set_rightVector_9(Vector3_t3722313464 value)
{
___rightVector_9 = value;
}
inline static int32_t get_offset_of_forwardVector_10() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___forwardVector_10)); }
inline Vector3_t3722313464 get_forwardVector_10() const { return ___forwardVector_10; }
inline Vector3_t3722313464 * get_address_of_forwardVector_10() { return &___forwardVector_10; }
inline void set_forwardVector_10(Vector3_t3722313464 value)
{
___forwardVector_10 = value;
}
inline static int32_t get_offset_of_backVector_11() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___backVector_11)); }
inline Vector3_t3722313464 get_backVector_11() const { return ___backVector_11; }
inline Vector3_t3722313464 * get_address_of_backVector_11() { return &___backVector_11; }
inline void set_backVector_11(Vector3_t3722313464 value)
{
___backVector_11 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_12() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___positiveInfinityVector_12)); }
inline Vector3_t3722313464 get_positiveInfinityVector_12() const { return ___positiveInfinityVector_12; }
inline Vector3_t3722313464 * get_address_of_positiveInfinityVector_12() { return &___positiveInfinityVector_12; }
inline void set_positiveInfinityVector_12(Vector3_t3722313464 value)
{
___positiveInfinityVector_12 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___negativeInfinityVector_13)); }
inline Vector3_t3722313464 get_negativeInfinityVector_13() const { return ___negativeInfinityVector_13; }
inline Vector3_t3722313464 * get_address_of_negativeInfinityVector_13() { return &___negativeInfinityVector_13; }
inline void set_negativeInfinityVector_13(Vector3_t3722313464 value)
{
___negativeInfinityVector_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VECTOR3_T3722313464_H
#ifndef COLOR32_T2600501292_H
#define COLOR32_T2600501292_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Color32
struct Color32_t2600501292
{
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_t2600501292, ___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_t2600501292, ___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_t2600501292, ___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_t2600501292, ___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_t2600501292, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COLOR32_T2600501292_H
#ifndef VECTOR2_T2156229523_H
#define VECTOR2_T2156229523_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Vector2
struct Vector2_t2156229523
{
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_t2156229523, ___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_t2156229523, ___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_t2156229523_StaticFields
{
public:
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_t2156229523 ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_t2156229523 ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_t2156229523 ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_t2156229523 ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_t2156229523 ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_t2156229523 ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_t2156229523 ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_t2156229523 ___negativeInfinityVector_9;
public:
inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___zeroVector_2)); }
inline Vector2_t2156229523 get_zeroVector_2() const { return ___zeroVector_2; }
inline Vector2_t2156229523 * get_address_of_zeroVector_2() { return &___zeroVector_2; }
inline void set_zeroVector_2(Vector2_t2156229523 value)
{
___zeroVector_2 = value;
}
inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___oneVector_3)); }
inline Vector2_t2156229523 get_oneVector_3() const { return ___oneVector_3; }
inline Vector2_t2156229523 * get_address_of_oneVector_3() { return &___oneVector_3; }
inline void set_oneVector_3(Vector2_t2156229523 value)
{
___oneVector_3 = value;
}
inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___upVector_4)); }
inline Vector2_t2156229523 get_upVector_4() const { return ___upVector_4; }
inline Vector2_t2156229523 * get_address_of_upVector_4() { return &___upVector_4; }
inline void set_upVector_4(Vector2_t2156229523 value)
{
___upVector_4 = value;
}
inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___downVector_5)); }
inline Vector2_t2156229523 get_downVector_5() const { return ___downVector_5; }
inline Vector2_t2156229523 * get_address_of_downVector_5() { return &___downVector_5; }
inline void set_downVector_5(Vector2_t2156229523 value)
{
___downVector_5 = value;
}
inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___leftVector_6)); }
inline Vector2_t2156229523 get_leftVector_6() const { return ___leftVector_6; }
inline Vector2_t2156229523 * get_address_of_leftVector_6() { return &___leftVector_6; }
inline void set_leftVector_6(Vector2_t2156229523 value)
{
___leftVector_6 = value;
}
inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___rightVector_7)); }
inline Vector2_t2156229523 get_rightVector_7() const { return ___rightVector_7; }
inline Vector2_t2156229523 * get_address_of_rightVector_7() { return &___rightVector_7; }
inline void set_rightVector_7(Vector2_t2156229523 value)
{
___rightVector_7 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___positiveInfinityVector_8)); }
inline Vector2_t2156229523 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; }
inline Vector2_t2156229523 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; }
inline void set_positiveInfinityVector_8(Vector2_t2156229523 value)
{
___positiveInfinityVector_8 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___negativeInfinityVector_9)); }
inline Vector2_t2156229523 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; }
inline Vector2_t2156229523 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; }
inline void set_negativeInfinityVector_9(Vector2_t2156229523 value)
{
___negativeInfinityVector_9 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VECTOR2_T2156229523_H
#ifndef VOID_T1185182177_H
#define VOID_T1185182177_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void
struct Void_t1185182177
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VOID_T1185182177_H
#ifndef ENUM_T4135868527_H
#define ENUM_T4135868527_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Enum
struct Enum_t4135868527 : public ValueType_t3640485471
{
public:
public:
};
struct Enum_t4135868527_StaticFields
{
public:
// System.Char[] System.Enum::split_char
CharU5BU5D_t3528271667* ___split_char_0;
public:
inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___split_char_0)); }
inline CharU5BU5D_t3528271667* get_split_char_0() const { return ___split_char_0; }
inline CharU5BU5D_t3528271667** get_address_of_split_char_0() { return &___split_char_0; }
inline void set_split_char_0(CharU5BU5D_t3528271667* value)
{
___split_char_0 = value;
Il2CppCodeGenWriteBarrier((&___split_char_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t4135868527_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t4135868527_marshaled_com
{
};
#endif // ENUM_T4135868527_H
#ifndef QUATERNION_T2301928331_H
#define QUATERNION_T2301928331_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Quaternion
struct Quaternion_t2301928331
{
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_t2301928331, ___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_t2301928331, ___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_t2301928331, ___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_t2301928331, ___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_t2301928331_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t2301928331 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t2301928331 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t2301928331 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t2301928331 value)
{
___identityQuaternion_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // QUATERNION_T2301928331_H
#ifndef VECTOR4_T3319028937_H
#define VECTOR4_T3319028937_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Vector4
struct Vector4_t3319028937
{
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_t3319028937, ___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_t3319028937, ___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_t3319028937, ___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_t3319028937, ___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_t3319028937_StaticFields
{
public:
// UnityEngine.Vector4 UnityEngine.Vector4::zeroVector
Vector4_t3319028937 ___zeroVector_5;
// UnityEngine.Vector4 UnityEngine.Vector4::oneVector
Vector4_t3319028937 ___oneVector_6;
// UnityEngine.Vector4 UnityEngine.Vector4::positiveInfinityVector
Vector4_t3319028937 ___positiveInfinityVector_7;
// UnityEngine.Vector4 UnityEngine.Vector4::negativeInfinityVector
Vector4_t3319028937 ___negativeInfinityVector_8;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector4_t3319028937_StaticFields, ___zeroVector_5)); }
inline Vector4_t3319028937 get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector4_t3319028937 * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector4_t3319028937 value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector4_t3319028937_StaticFields, ___oneVector_6)); }
inline Vector4_t3319028937 get_oneVector_6() const { return ___oneVector_6; }
inline Vector4_t3319028937 * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector4_t3319028937 value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_7() { return static_cast<int32_t>(offsetof(Vector4_t3319028937_StaticFields, ___positiveInfinityVector_7)); }
inline Vector4_t3319028937 get_positiveInfinityVector_7() const { return ___positiveInfinityVector_7; }
inline Vector4_t3319028937 * get_address_of_positiveInfinityVector_7() { return &___positiveInfinityVector_7; }
inline void set_positiveInfinityVector_7(Vector4_t3319028937 value)
{
___positiveInfinityVector_7 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector4_t3319028937_StaticFields, ___negativeInfinityVector_8)); }
inline Vector4_t3319028937 get_negativeInfinityVector_8() const { return ___negativeInfinityVector_8; }
inline Vector4_t3319028937 * get_address_of_negativeInfinityVector_8() { return &___negativeInfinityVector_8; }
inline void set_negativeInfinityVector_8(Vector4_t3319028937 value)
{
___negativeInfinityVector_8 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VECTOR4_T3319028937_H
#ifndef UINT32_T2560061978_H
#define UINT32_T2560061978_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.UInt32
struct UInt32_t2560061978
{
public:
// System.UInt32 System.UInt32::m_value
uint32_t ___m_value_2;
public:
inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(UInt32_t2560061978, ___m_value_2)); }
inline uint32_t get_m_value_2() const { return ___m_value_2; }
inline uint32_t* get_address_of_m_value_2() { return &___m_value_2; }
inline void set_m_value_2(uint32_t value)
{
___m_value_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UINT32_T2560061978_H
#ifndef FLUVIOTIMESTEP_T3427387132_H
#define FLUVIOTIMESTEP_T3427387132_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluvioTimeStep
struct FluvioTimeStep_t3427387132
{
public:
// System.Single Thinksquirrel.Fluvio.FluvioTimeStep::deltaTime
float ___deltaTime_0;
// System.Single Thinksquirrel.Fluvio.FluvioTimeStep::dtIter
float ___dtIter_1;
// System.Single Thinksquirrel.Fluvio.FluvioTimeStep::invDt
float ___invDt_2;
// System.Single Thinksquirrel.Fluvio.FluvioTimeStep::solverIterations
float ___solverIterations_3;
public:
inline static int32_t get_offset_of_deltaTime_0() { return static_cast<int32_t>(offsetof(FluvioTimeStep_t3427387132, ___deltaTime_0)); }
inline float get_deltaTime_0() const { return ___deltaTime_0; }
inline float* get_address_of_deltaTime_0() { return &___deltaTime_0; }
inline void set_deltaTime_0(float value)
{
___deltaTime_0 = value;
}
inline static int32_t get_offset_of_dtIter_1() { return static_cast<int32_t>(offsetof(FluvioTimeStep_t3427387132, ___dtIter_1)); }
inline float get_dtIter_1() const { return ___dtIter_1; }
inline float* get_address_of_dtIter_1() { return &___dtIter_1; }
inline void set_dtIter_1(float value)
{
___dtIter_1 = value;
}
inline static int32_t get_offset_of_invDt_2() { return static_cast<int32_t>(offsetof(FluvioTimeStep_t3427387132, ___invDt_2)); }
inline float get_invDt_2() const { return ___invDt_2; }
inline float* get_address_of_invDt_2() { return &___invDt_2; }
inline void set_invDt_2(float value)
{
___invDt_2 = value;
}
inline static int32_t get_offset_of_solverIterations_3() { return static_cast<int32_t>(offsetof(FluvioTimeStep_t3427387132, ___solverIterations_3)); }
inline float get_solverIterations_3() const { return ___solverIterations_3; }
inline float* get_address_of_solverIterations_3() { return &___solverIterations_3; }
inline void set_solverIterations_3(float value)
{
___solverIterations_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIOTIMESTEP_T3427387132_H
#ifndef MATRIX4X4_T1817901843_H
#define MATRIX4X4_T1817901843_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Matrix4x4
struct Matrix4x4_t1817901843
{
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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843, ___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_t1817901843_StaticFields
{
public:
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::zeroMatrix
Matrix4x4_t1817901843 ___zeroMatrix_16;
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::identityMatrix
Matrix4x4_t1817901843 ___identityMatrix_17;
public:
inline static int32_t get_offset_of_zeroMatrix_16() { return static_cast<int32_t>(offsetof(Matrix4x4_t1817901843_StaticFields, ___zeroMatrix_16)); }
inline Matrix4x4_t1817901843 get_zeroMatrix_16() const { return ___zeroMatrix_16; }
inline Matrix4x4_t1817901843 * get_address_of_zeroMatrix_16() { return &___zeroMatrix_16; }
inline void set_zeroMatrix_16(Matrix4x4_t1817901843 value)
{
___zeroMatrix_16 = value;
}
inline static int32_t get_offset_of_identityMatrix_17() { return static_cast<int32_t>(offsetof(Matrix4x4_t1817901843_StaticFields, ___identityMatrix_17)); }
inline Matrix4x4_t1817901843 get_identityMatrix_17() const { return ___identityMatrix_17; }
inline Matrix4x4_t1817901843 * get_address_of_identityMatrix_17() { return &___identityMatrix_17; }
inline void set_identityMatrix_17(Matrix4x4_t1817901843 value)
{
___identityMatrix_17 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MATRIX4X4_T1817901843_H
#ifndef MAINMODULE_T2320046318_H
#define MAINMODULE_T2320046318_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ParticleSystem/MainModule
struct MainModule_t2320046318
{
public:
// UnityEngine.ParticleSystem UnityEngine.ParticleSystem/MainModule::m_ParticleSystem
ParticleSystem_t1800779281 * ___m_ParticleSystem_0;
public:
inline static int32_t get_offset_of_m_ParticleSystem_0() { return static_cast<int32_t>(offsetof(MainModule_t2320046318, ___m_ParticleSystem_0)); }
inline ParticleSystem_t1800779281 * get_m_ParticleSystem_0() const { return ___m_ParticleSystem_0; }
inline ParticleSystem_t1800779281 ** get_address_of_m_ParticleSystem_0() { return &___m_ParticleSystem_0; }
inline void set_m_ParticleSystem_0(ParticleSystem_t1800779281 * value)
{
___m_ParticleSystem_0 = value;
Il2CppCodeGenWriteBarrier((&___m_ParticleSystem_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.ParticleSystem/MainModule
struct MainModule_t2320046318_marshaled_pinvoke
{
ParticleSystem_t1800779281 * ___m_ParticleSystem_0;
};
// Native definition for COM marshalling of UnityEngine.ParticleSystem/MainModule
struct MainModule_t2320046318_marshaled_com
{
ParticleSystem_t1800779281 * ___m_ParticleSystem_0;
};
#endif // MAINMODULE_T2320046318_H
#ifndef INT64_T3736567304_H
#define INT64_T3736567304_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int64
struct Int64_t3736567304
{
public:
// System.Int64 System.Int64::m_value
int64_t ___m_value_2;
public:
inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Int64_t3736567304, ___m_value_2)); }
inline int64_t get_m_value_2() const { return ___m_value_2; }
inline int64_t* get_address_of_m_value_2() { return &___m_value_2; }
inline void set_m_value_2(int64_t value)
{
___m_value_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INT64_T3736567304_H
#ifndef COLOR_T2555686324_H
#define COLOR_T2555686324_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Color
struct Color_t2555686324
{
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_t2555686324, ___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_t2555686324, ___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_t2555686324, ___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_t2555686324, ___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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COLOR_T2555686324_H
#ifndef INT32_T2950945753_H
#define INT32_T2950945753_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int32
struct Int32_t2950945753
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_2;
public:
inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Int32_t2950945753, ___m_value_2)); }
inline int32_t get_m_value_2() const { return ___m_value_2; }
inline int32_t* get_address_of_m_value_2() { return &___m_value_2; }
inline void set_m_value_2(int32_t value)
{
___m_value_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INT32_T2950945753_H
#ifndef SINGLE_T1397266774_H
#define SINGLE_T1397266774_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Single
struct Single_t1397266774
{
public:
// System.Single System.Single::m_value
float ___m_value_7;
public:
inline static int32_t get_offset_of_m_value_7() { return static_cast<int32_t>(offsetof(Single_t1397266774, ___m_value_7)); }
inline float get_m_value_7() const { return ___m_value_7; }
inline float* get_address_of_m_value_7() { return &___m_value_7; }
inline void set_m_value_7(float value)
{
___m_value_7 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SINGLE_T1397266774_H
#ifndef RECT_T2360479859_H
#define RECT_T2360479859_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Rect
struct Rect_t2360479859
{
public:
// System.Single UnityEngine.Rect::m_XMin
float ___m_XMin_0;
// System.Single UnityEngine.Rect::m_YMin
float ___m_YMin_1;
// System.Single UnityEngine.Rect::m_Width
float ___m_Width_2;
// System.Single UnityEngine.Rect::m_Height
float ___m_Height_3;
public:
inline static int32_t get_offset_of_m_XMin_0() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_XMin_0)); }
inline float get_m_XMin_0() const { return ___m_XMin_0; }
inline float* get_address_of_m_XMin_0() { return &___m_XMin_0; }
inline void set_m_XMin_0(float value)
{
___m_XMin_0 = value;
}
inline static int32_t get_offset_of_m_YMin_1() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_YMin_1)); }
inline float get_m_YMin_1() const { return ___m_YMin_1; }
inline float* get_address_of_m_YMin_1() { return &___m_YMin_1; }
inline void set_m_YMin_1(float value)
{
___m_YMin_1 = value;
}
inline static int32_t get_offset_of_m_Width_2() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_Width_2)); }
inline float get_m_Width_2() const { return ___m_Width_2; }
inline float* get_address_of_m_Width_2() { return &___m_Width_2; }
inline void set_m_Width_2(float value)
{
___m_Width_2 = value;
}
inline static int32_t get_offset_of_m_Height_3() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_Height_3)); }
inline float get_m_Height_3() const { return ___m_Height_3; }
inline float* get_address_of_m_Height_3() { return &___m_Height_3; }
inline void set_m_Height_3(float value)
{
___m_Height_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RECT_T2360479859_H
#ifndef UINTPTR_T_H
#define UINTPTR_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.UIntPtr
struct UIntPtr_t
{
public:
// System.Void* System.UIntPtr::_pointer
void* ____pointer_1;
public:
inline static int32_t get_offset_of__pointer_1() { return static_cast<int32_t>(offsetof(UIntPtr_t, ____pointer_1)); }
inline void* get__pointer_1() const { return ____pointer_1; }
inline void** get_address_of__pointer_1() { return &____pointer_1; }
inline void set__pointer_1(void* value)
{
____pointer_1 = value;
}
};
struct UIntPtr_t_StaticFields
{
public:
// System.UIntPtr System.UIntPtr::Zero
uintptr_t ___Zero_0;
public:
inline static int32_t get_offset_of_Zero_0() { return static_cast<int32_t>(offsetof(UIntPtr_t_StaticFields, ___Zero_0)); }
inline uintptr_t get_Zero_0() const { return ___Zero_0; }
inline uintptr_t* get_address_of_Zero_0() { return &___Zero_0; }
inline void set_Zero_0(uintptr_t value)
{
___Zero_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UINTPTR_T_H
#ifndef PARTICLE_T1882894987_H
#define PARTICLE_T1882894987_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ParticleSystem/Particle
struct Particle_t1882894987
{
public:
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_Position
Vector3_t3722313464 ___m_Position_0;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_Velocity
Vector3_t3722313464 ___m_Velocity_1;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_AnimatedVelocity
Vector3_t3722313464 ___m_AnimatedVelocity_2;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_InitialVelocity
Vector3_t3722313464 ___m_InitialVelocity_3;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_AxisOfRotation
Vector3_t3722313464 ___m_AxisOfRotation_4;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_Rotation
Vector3_t3722313464 ___m_Rotation_5;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_AngularVelocity
Vector3_t3722313464 ___m_AngularVelocity_6;
// UnityEngine.Vector3 UnityEngine.ParticleSystem/Particle::m_StartSize
Vector3_t3722313464 ___m_StartSize_7;
// UnityEngine.Color32 UnityEngine.ParticleSystem/Particle::m_StartColor
Color32_t2600501292 ___m_StartColor_8;
// System.UInt32 UnityEngine.ParticleSystem/Particle::m_RandomSeed
uint32_t ___m_RandomSeed_9;
// System.Single UnityEngine.ParticleSystem/Particle::m_Lifetime
float ___m_Lifetime_10;
// System.Single UnityEngine.ParticleSystem/Particle::m_StartLifetime
float ___m_StartLifetime_11;
// System.Single UnityEngine.ParticleSystem/Particle::m_EmitAccumulator0
float ___m_EmitAccumulator0_12;
// System.Single UnityEngine.ParticleSystem/Particle::m_EmitAccumulator1
float ___m_EmitAccumulator1_13;
public:
inline static int32_t get_offset_of_m_Position_0() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_Position_0)); }
inline Vector3_t3722313464 get_m_Position_0() const { return ___m_Position_0; }
inline Vector3_t3722313464 * get_address_of_m_Position_0() { return &___m_Position_0; }
inline void set_m_Position_0(Vector3_t3722313464 value)
{
___m_Position_0 = value;
}
inline static int32_t get_offset_of_m_Velocity_1() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_Velocity_1)); }
inline Vector3_t3722313464 get_m_Velocity_1() const { return ___m_Velocity_1; }
inline Vector3_t3722313464 * get_address_of_m_Velocity_1() { return &___m_Velocity_1; }
inline void set_m_Velocity_1(Vector3_t3722313464 value)
{
___m_Velocity_1 = value;
}
inline static int32_t get_offset_of_m_AnimatedVelocity_2() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_AnimatedVelocity_2)); }
inline Vector3_t3722313464 get_m_AnimatedVelocity_2() const { return ___m_AnimatedVelocity_2; }
inline Vector3_t3722313464 * get_address_of_m_AnimatedVelocity_2() { return &___m_AnimatedVelocity_2; }
inline void set_m_AnimatedVelocity_2(Vector3_t3722313464 value)
{
___m_AnimatedVelocity_2 = value;
}
inline static int32_t get_offset_of_m_InitialVelocity_3() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_InitialVelocity_3)); }
inline Vector3_t3722313464 get_m_InitialVelocity_3() const { return ___m_InitialVelocity_3; }
inline Vector3_t3722313464 * get_address_of_m_InitialVelocity_3() { return &___m_InitialVelocity_3; }
inline void set_m_InitialVelocity_3(Vector3_t3722313464 value)
{
___m_InitialVelocity_3 = value;
}
inline static int32_t get_offset_of_m_AxisOfRotation_4() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_AxisOfRotation_4)); }
inline Vector3_t3722313464 get_m_AxisOfRotation_4() const { return ___m_AxisOfRotation_4; }
inline Vector3_t3722313464 * get_address_of_m_AxisOfRotation_4() { return &___m_AxisOfRotation_4; }
inline void set_m_AxisOfRotation_4(Vector3_t3722313464 value)
{
___m_AxisOfRotation_4 = value;
}
inline static int32_t get_offset_of_m_Rotation_5() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_Rotation_5)); }
inline Vector3_t3722313464 get_m_Rotation_5() const { return ___m_Rotation_5; }
inline Vector3_t3722313464 * get_address_of_m_Rotation_5() { return &___m_Rotation_5; }
inline void set_m_Rotation_5(Vector3_t3722313464 value)
{
___m_Rotation_5 = value;
}
inline static int32_t get_offset_of_m_AngularVelocity_6() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_AngularVelocity_6)); }
inline Vector3_t3722313464 get_m_AngularVelocity_6() const { return ___m_AngularVelocity_6; }
inline Vector3_t3722313464 * get_address_of_m_AngularVelocity_6() { return &___m_AngularVelocity_6; }
inline void set_m_AngularVelocity_6(Vector3_t3722313464 value)
{
___m_AngularVelocity_6 = value;
}
inline static int32_t get_offset_of_m_StartSize_7() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_StartSize_7)); }
inline Vector3_t3722313464 get_m_StartSize_7() const { return ___m_StartSize_7; }
inline Vector3_t3722313464 * get_address_of_m_StartSize_7() { return &___m_StartSize_7; }
inline void set_m_StartSize_7(Vector3_t3722313464 value)
{
___m_StartSize_7 = value;
}
inline static int32_t get_offset_of_m_StartColor_8() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_StartColor_8)); }
inline Color32_t2600501292 get_m_StartColor_8() const { return ___m_StartColor_8; }
inline Color32_t2600501292 * get_address_of_m_StartColor_8() { return &___m_StartColor_8; }
inline void set_m_StartColor_8(Color32_t2600501292 value)
{
___m_StartColor_8 = value;
}
inline static int32_t get_offset_of_m_RandomSeed_9() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_RandomSeed_9)); }
inline uint32_t get_m_RandomSeed_9() const { return ___m_RandomSeed_9; }
inline uint32_t* get_address_of_m_RandomSeed_9() { return &___m_RandomSeed_9; }
inline void set_m_RandomSeed_9(uint32_t value)
{
___m_RandomSeed_9 = value;
}
inline static int32_t get_offset_of_m_Lifetime_10() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_Lifetime_10)); }
inline float get_m_Lifetime_10() const { return ___m_Lifetime_10; }
inline float* get_address_of_m_Lifetime_10() { return &___m_Lifetime_10; }
inline void set_m_Lifetime_10(float value)
{
___m_Lifetime_10 = value;
}
inline static int32_t get_offset_of_m_StartLifetime_11() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_StartLifetime_11)); }
inline float get_m_StartLifetime_11() const { return ___m_StartLifetime_11; }
inline float* get_address_of_m_StartLifetime_11() { return &___m_StartLifetime_11; }
inline void set_m_StartLifetime_11(float value)
{
___m_StartLifetime_11 = value;
}
inline static int32_t get_offset_of_m_EmitAccumulator0_12() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_EmitAccumulator0_12)); }
inline float get_m_EmitAccumulator0_12() const { return ___m_EmitAccumulator0_12; }
inline float* get_address_of_m_EmitAccumulator0_12() { return &___m_EmitAccumulator0_12; }
inline void set_m_EmitAccumulator0_12(float value)
{
___m_EmitAccumulator0_12 = value;
}
inline static int32_t get_offset_of_m_EmitAccumulator1_13() { return static_cast<int32_t>(offsetof(Particle_t1882894987, ___m_EmitAccumulator1_13)); }
inline float get_m_EmitAccumulator1_13() const { return ___m_EmitAccumulator1_13; }
inline float* get_address_of_m_EmitAccumulator1_13() { return &___m_EmitAccumulator1_13; }
inline void set_m_EmitAccumulator1_13(float value)
{
___m_EmitAccumulator1_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARTICLE_T1882894987_H
#ifndef FLUVIOMINMAXCURVESTATE_T1952341571_H
#define FLUVIOMINMAXCURVESTATE_T1952341571_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluvioMinMaxCurveState
struct FluvioMinMaxCurveState_t1952341571
{
public:
// System.Int32 Thinksquirrel.Fluvio.FluvioMinMaxCurveState::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurveState_t1952341571, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIOMINMAXCURVESTATE_T1952341571_H
#ifndef INITERROR_T3420749710_H
#define INITERROR_T3420749710_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.VuforiaUnity/InitError
struct InitError_t3420749710
{
public:
// System.Int32 Vuforia.VuforiaUnity/InitError::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(InitError_t3420749710, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INITERROR_T3420749710_H
#ifndef TEXTUREFORMAT_T2701165832_H
#define TEXTUREFORMAT_T2701165832_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.TextureFormat
struct TextureFormat_t2701165832
{
public:
// System.Int32 UnityEngine.TextureFormat::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(TextureFormat_t2701165832, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TEXTUREFORMAT_T2701165832_H
#ifndef COMPUTEAPI_T3251413269_H
#define COMPUTEAPI_T3251413269_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.ComputeAPI
struct ComputeAPI_t3251413269
{
public:
// System.Int32 Thinksquirrel.Fluvio.ComputeAPI::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ComputeAPI_t3251413269, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMPUTEAPI_T3251413269_H
#ifndef PLANE_T1000493321_H
#define PLANE_T1000493321_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Plane
struct Plane_t1000493321
{
public:
// UnityEngine.Vector3 UnityEngine.Plane::m_Normal
Vector3_t3722313464 ___m_Normal_0;
// System.Single UnityEngine.Plane::m_Distance
float ___m_Distance_1;
public:
inline static int32_t get_offset_of_m_Normal_0() { return static_cast<int32_t>(offsetof(Plane_t1000493321, ___m_Normal_0)); }
inline Vector3_t3722313464 get_m_Normal_0() const { return ___m_Normal_0; }
inline Vector3_t3722313464 * get_address_of_m_Normal_0() { return &___m_Normal_0; }
inline void set_m_Normal_0(Vector3_t3722313464 value)
{
___m_Normal_0 = value;
}
inline static int32_t get_offset_of_m_Distance_1() { return static_cast<int32_t>(offsetof(Plane_t1000493321, ___m_Distance_1)); }
inline float get_m_Distance_1() const { return ___m_Distance_1; }
inline float* get_address_of_m_Distance_1() { return &___m_Distance_1; }
inline void set_m_Distance_1(float value)
{
___m_Distance_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PLANE_T1000493321_H
#ifndef PARTICLESYSTEMSCALINGMODE_T2278533876_H
#define PARTICLESYSTEMSCALINGMODE_T2278533876_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ParticleSystemScalingMode
struct ParticleSystemScalingMode_t2278533876
{
public:
// System.Int32 UnityEngine.ParticleSystemScalingMode::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ParticleSystemScalingMode_t2278533876, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARTICLESYSTEMSCALINGMODE_T2278533876_H
#ifndef FLUIDMIXERDATA_T2739974414_H
#define FLUIDMIXERDATA_T2739974414_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData
struct FluidMixerData_t2739974414
{
public:
// UnityEngine.Vector4 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData::emitPosition
Vector4_t3319028937 ___emitPosition_0;
// UnityEngine.Vector4 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData::emitVelocity
Vector4_t3319028937 ___emitVelocity_1;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData::fluidB
int32_t ___fluidB_2;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData::fluidC
int32_t ___fluidC_3;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData::fluidD
int32_t ___fluidD_4;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData::mixingFluidsAreTheSame
int32_t ___mixingFluidsAreTheSame_5;
public:
inline static int32_t get_offset_of_emitPosition_0() { return static_cast<int32_t>(offsetof(FluidMixerData_t2739974414, ___emitPosition_0)); }
inline Vector4_t3319028937 get_emitPosition_0() const { return ___emitPosition_0; }
inline Vector4_t3319028937 * get_address_of_emitPosition_0() { return &___emitPosition_0; }
inline void set_emitPosition_0(Vector4_t3319028937 value)
{
___emitPosition_0 = value;
}
inline static int32_t get_offset_of_emitVelocity_1() { return static_cast<int32_t>(offsetof(FluidMixerData_t2739974414, ___emitVelocity_1)); }
inline Vector4_t3319028937 get_emitVelocity_1() const { return ___emitVelocity_1; }
inline Vector4_t3319028937 * get_address_of_emitVelocity_1() { return &___emitVelocity_1; }
inline void set_emitVelocity_1(Vector4_t3319028937 value)
{
___emitVelocity_1 = value;
}
inline static int32_t get_offset_of_fluidB_2() { return static_cast<int32_t>(offsetof(FluidMixerData_t2739974414, ___fluidB_2)); }
inline int32_t get_fluidB_2() const { return ___fluidB_2; }
inline int32_t* get_address_of_fluidB_2() { return &___fluidB_2; }
inline void set_fluidB_2(int32_t value)
{
___fluidB_2 = value;
}
inline static int32_t get_offset_of_fluidC_3() { return static_cast<int32_t>(offsetof(FluidMixerData_t2739974414, ___fluidC_3)); }
inline int32_t get_fluidC_3() const { return ___fluidC_3; }
inline int32_t* get_address_of_fluidC_3() { return &___fluidC_3; }
inline void set_fluidC_3(int32_t value)
{
___fluidC_3 = value;
}
inline static int32_t get_offset_of_fluidD_4() { return static_cast<int32_t>(offsetof(FluidMixerData_t2739974414, ___fluidD_4)); }
inline int32_t get_fluidD_4() const { return ___fluidD_4; }
inline int32_t* get_address_of_fluidD_4() { return &___fluidD_4; }
inline void set_fluidD_4(int32_t value)
{
___fluidD_4 = value;
}
inline static int32_t get_offset_of_mixingFluidsAreTheSame_5() { return static_cast<int32_t>(offsetof(FluidMixerData_t2739974414, ___mixingFluidsAreTheSame_5)); }
inline int32_t get_mixingFluidsAreTheSame_5() const { return ___mixingFluidsAreTheSame_5; }
inline int32_t* get_address_of_mixingFluidsAreTheSame_5() { return &___mixingFluidsAreTheSame_5; }
inline void set_mixingFluidsAreTheSame_5(int32_t value)
{
___mixingFluidsAreTheSame_5 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDMIXERDATA_T2739974414_H
#ifndef DELEGATE_T1188392813_H
#define DELEGATE_T1188392813_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Delegate
struct Delegate_t1188392813 : public RuntimeObject
{
public:
// System.IntPtr System.Delegate::method_ptr
Il2CppMethodPointer ___method_ptr_0;
// System.IntPtr System.Delegate::invoke_impl
intptr_t ___invoke_impl_1;
// System.Object System.Delegate::m_target
RuntimeObject * ___m_target_2;
// System.IntPtr System.Delegate::method
intptr_t ___method_3;
// System.IntPtr System.Delegate::delegate_trampoline
intptr_t ___delegate_trampoline_4;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_5;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_6;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_7;
// System.DelegateData System.Delegate::data
DelegateData_t1677132599 * ___data_8;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_ptr_0)); }
inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; }
inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; }
inline void set_method_ptr_0(Il2CppMethodPointer value)
{
___method_ptr_0 = value;
}
inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___invoke_impl_1)); }
inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; }
inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; }
inline void set_invoke_impl_1(intptr_t value)
{
___invoke_impl_1 = value;
}
inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___m_target_2)); }
inline RuntimeObject * get_m_target_2() const { return ___m_target_2; }
inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; }
inline void set_m_target_2(RuntimeObject * value)
{
___m_target_2 = value;
Il2CppCodeGenWriteBarrier((&___m_target_2), value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_3)); }
inline intptr_t get_method_3() const { return ___method_3; }
inline intptr_t* get_address_of_method_3() { return &___method_3; }
inline void set_method_3(intptr_t value)
{
___method_3 = value;
}
inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___delegate_trampoline_4)); }
inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; }
inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; }
inline void set_delegate_trampoline_4(intptr_t value)
{
___delegate_trampoline_4 = value;
}
inline static int32_t get_offset_of_method_code_5() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_code_5)); }
inline intptr_t get_method_code_5() const { return ___method_code_5; }
inline intptr_t* get_address_of_method_code_5() { return &___method_code_5; }
inline void set_method_code_5(intptr_t value)
{
___method_code_5 = value;
}
inline static int32_t get_offset_of_method_info_6() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_info_6)); }
inline MethodInfo_t * get_method_info_6() const { return ___method_info_6; }
inline MethodInfo_t ** get_address_of_method_info_6() { return &___method_info_6; }
inline void set_method_info_6(MethodInfo_t * value)
{
___method_info_6 = value;
Il2CppCodeGenWriteBarrier((&___method_info_6), value);
}
inline static int32_t get_offset_of_original_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___original_method_info_7)); }
inline MethodInfo_t * get_original_method_info_7() const { return ___original_method_info_7; }
inline MethodInfo_t ** get_address_of_original_method_info_7() { return &___original_method_info_7; }
inline void set_original_method_info_7(MethodInfo_t * value)
{
___original_method_info_7 = value;
Il2CppCodeGenWriteBarrier((&___original_method_info_7), value);
}
inline static int32_t get_offset_of_data_8() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___data_8)); }
inline DelegateData_t1677132599 * get_data_8() const { return ___data_8; }
inline DelegateData_t1677132599 ** get_address_of_data_8() { return &___data_8; }
inline void set_data_8(DelegateData_t1677132599 * value)
{
___data_8 = value;
Il2CppCodeGenWriteBarrier((&___data_8), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DELEGATE_T1188392813_H
#ifndef THREADSTATE_T2533302383_H
#define THREADSTATE_T2533302383_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Threading.ThreadState
struct ThreadState_t2533302383
{
public:
// System.Int32 System.Threading.ThreadState::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ThreadState_t2533302383, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREADSTATE_T2533302383_H
#ifndef TOUCHTYPE_T2034578258_H
#define TOUCHTYPE_T2034578258_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.TouchType
struct TouchType_t2034578258
{
public:
// System.Int32 UnityEngine.TouchType::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(TouchType_t2034578258, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TOUCHTYPE_T2034578258_H
#ifndef THREADPRIORITY_T1551740086_H
#define THREADPRIORITY_T1551740086_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Threading.ThreadPriority
struct ThreadPriority_t1551740086
{
public:
// System.Int32 System.Threading.ThreadPriority::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ThreadPriority_t1551740086, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREADPRIORITY_T1551740086_H
#ifndef TOUCHPHASE_T72348083_H
#define TOUCHPHASE_T72348083_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.TouchPhase
struct TouchPhase_t72348083
{
public:
// System.Int32 UnityEngine.TouchPhase::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(TouchPhase_t72348083, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TOUCHPHASE_T72348083_H
#ifndef PARTICLESYSTEMSIMULATIONSPACE_T2969500608_H
#define PARTICLESYSTEMSIMULATIONSPACE_T2969500608_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ParticleSystemSimulationSpace
struct ParticleSystemSimulationSpace_t2969500608
{
public:
// System.Int32 UnityEngine.ParticleSystemSimulationSpace::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ParticleSystemSimulationSpace_t2969500608, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARTICLESYSTEMSIMULATIONSPACE_T2969500608_H
#ifndef SENDMESSAGEOPTIONS_T3580193095_H
#define SENDMESSAGEOPTIONS_T3580193095_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.SendMessageOptions
struct SendMessageOptions_t3580193095
{
public:
// System.Int32 UnityEngine.SendMessageOptions::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(SendMessageOptions_t3580193095, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SENDMESSAGEOPTIONS_T3580193095_H
#ifndef GUISTYLESTATE_T1397964415_H
#define GUISTYLESTATE_T1397964415_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.GUIStyleState
struct GUIStyleState_t1397964415 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.GUIStyleState::m_Ptr
intptr_t ___m_Ptr_0;
// UnityEngine.GUIStyle UnityEngine.GUIStyleState::m_SourceStyle
GUIStyle_t3956901511 * ___m_SourceStyle_1;
// UnityEngine.Texture2D UnityEngine.GUIStyleState::m_Background
Texture2D_t3840446185 * ___m_Background_2;
public:
inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(GUIStyleState_t1397964415, ___m_Ptr_0)); }
inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; }
inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; }
inline void set_m_Ptr_0(intptr_t value)
{
___m_Ptr_0 = value;
}
inline static int32_t get_offset_of_m_SourceStyle_1() { return static_cast<int32_t>(offsetof(GUIStyleState_t1397964415, ___m_SourceStyle_1)); }
inline GUIStyle_t3956901511 * get_m_SourceStyle_1() const { return ___m_SourceStyle_1; }
inline GUIStyle_t3956901511 ** get_address_of_m_SourceStyle_1() { return &___m_SourceStyle_1; }
inline void set_m_SourceStyle_1(GUIStyle_t3956901511 * value)
{
___m_SourceStyle_1 = value;
Il2CppCodeGenWriteBarrier((&___m_SourceStyle_1), value);
}
inline static int32_t get_offset_of_m_Background_2() { return static_cast<int32_t>(offsetof(GUIStyleState_t1397964415, ___m_Background_2)); }
inline Texture2D_t3840446185 * get_m_Background_2() const { return ___m_Background_2; }
inline Texture2D_t3840446185 ** get_address_of_m_Background_2() { return &___m_Background_2; }
inline void set_m_Background_2(Texture2D_t3840446185 * value)
{
___m_Background_2 = value;
Il2CppCodeGenWriteBarrier((&___m_Background_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.GUIStyleState
struct GUIStyleState_t1397964415_marshaled_pinvoke
{
intptr_t ___m_Ptr_0;
GUIStyle_t3956901511_marshaled_pinvoke* ___m_SourceStyle_1;
Texture2D_t3840446185 * ___m_Background_2;
};
// Native definition for COM marshalling of UnityEngine.GUIStyleState
struct GUIStyleState_t1397964415_marshaled_com
{
intptr_t ___m_Ptr_0;
GUIStyle_t3956901511_marshaled_com* ___m_SourceStyle_1;
Texture2D_t3840446185 * ___m_Background_2;
};
#endif // GUISTYLESTATE_T1397964415_H
#ifndef FLUIDTYPE_T2452389786_H
#define FLUIDTYPE_T2452389786_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluidType
struct FluidType_t2452389786
{
public:
// System.Int32 Thinksquirrel.Fluvio.FluidType::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(FluidType_t2452389786, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDTYPE_T2452389786_H
#ifndef STATUS_T1100905814_H
#define STATUS_T1100905814_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.TrackableBehaviour/Status
struct Status_t1100905814
{
public:
// System.Int32 Vuforia.TrackableBehaviour/Status::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(Status_t1100905814, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STATUS_T1100905814_H
#ifndef CAMERADEVICEMODE_T2478715656_H
#define CAMERADEVICEMODE_T2478715656_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.CameraDevice/CameraDeviceMode
struct CameraDeviceMode_t2478715656
{
public:
// System.Int32 Vuforia.CameraDevice/CameraDeviceMode::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(CameraDeviceMode_t2478715656, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CAMERADEVICEMODE_T2478715656_H
#ifndef CAMERADIRECTION_T637748435_H
#define CAMERADIRECTION_T637748435_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.CameraDevice/CameraDirection
struct CameraDirection_t637748435
{
public:
// System.Int32 Vuforia.CameraDevice/CameraDirection::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(CameraDirection_t637748435, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CAMERADIRECTION_T637748435_H
#ifndef VIDEOBACKGROUNDREFLECTION_T736962841_H
#define VIDEOBACKGROUNDREFLECTION_T736962841_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.VuforiaRenderer/VideoBackgroundReflection
struct VideoBackgroundReflection_t736962841
{
public:
// System.Int32 Vuforia.VuforiaRenderer/VideoBackgroundReflection::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(VideoBackgroundReflection_t736962841, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VIDEOBACKGROUNDREFLECTION_T736962841_H
#ifndef RECTOFFSET_T1369453676_H
#define RECTOFFSET_T1369453676_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.RectOffset
struct RectOffset_t1369453676 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.RectOffset::m_Ptr
intptr_t ___m_Ptr_0;
// System.Object UnityEngine.RectOffset::m_SourceStyle
RuntimeObject * ___m_SourceStyle_1;
public:
inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(RectOffset_t1369453676, ___m_Ptr_0)); }
inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; }
inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; }
inline void set_m_Ptr_0(intptr_t value)
{
___m_Ptr_0 = value;
}
inline static int32_t get_offset_of_m_SourceStyle_1() { return static_cast<int32_t>(offsetof(RectOffset_t1369453676, ___m_SourceStyle_1)); }
inline RuntimeObject * get_m_SourceStyle_1() const { return ___m_SourceStyle_1; }
inline RuntimeObject ** get_address_of_m_SourceStyle_1() { return &___m_SourceStyle_1; }
inline void set_m_SourceStyle_1(RuntimeObject * value)
{
___m_SourceStyle_1 = value;
Il2CppCodeGenWriteBarrier((&___m_SourceStyle_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.RectOffset
struct RectOffset_t1369453676_marshaled_pinvoke
{
intptr_t ___m_Ptr_0;
Il2CppIUnknown* ___m_SourceStyle_1;
};
// Native definition for COM marshalling of UnityEngine.RectOffset
struct RectOffset_t1369453676_marshaled_com
{
intptr_t ___m_Ptr_0;
Il2CppIUnknown* ___m_SourceStyle_1;
};
#endif // RECTOFFSET_T1369453676_H
#ifndef SIMULATIONCULLINGTYPE_T2604387117_H
#define SIMULATIONCULLINGTYPE_T2604387117_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.SimulationCullingType
struct SimulationCullingType_t2604387117
{
public:
// System.Int32 Thinksquirrel.Fluvio.SimulationCullingType::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(SimulationCullingType_t2604387117, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SIMULATIONCULLINGTYPE_T2604387117_H
#ifndef OBJECT_T631007953_H
#define OBJECT_T631007953_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Object
struct Object_t631007953 : 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_t631007953, ___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_t631007953_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_t631007953_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;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_t631007953_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_t631007953_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
#endif // OBJECT_T631007953_H
#ifndef SIMULATIONDIMENSIONS_T2236467597_H
#define SIMULATIONDIMENSIONS_T2236467597_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.SimulationDimensions
struct SimulationDimensions_t2236467597
{
public:
// System.Int32 Thinksquirrel.Fluvio.SimulationDimensions::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(SimulationDimensions_t2236467597, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SIMULATIONDIMENSIONS_T2236467597_H
#ifndef TEXTANCHOR_T2035777396_H
#define TEXTANCHOR_T2035777396_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.TextAnchor
struct TextAnchor_t2035777396
{
public:
// System.Int32 UnityEngine.TextAnchor::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(TextAnchor_t2035777396, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TEXTANCHOR_T2035777396_H
#ifndef RAY_T3785851493_H
#define RAY_T3785851493_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Ray
struct Ray_t3785851493
{
public:
// UnityEngine.Vector3 UnityEngine.Ray::m_Origin
Vector3_t3722313464 ___m_Origin_0;
// UnityEngine.Vector3 UnityEngine.Ray::m_Direction
Vector3_t3722313464 ___m_Direction_1;
public:
inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_t3785851493, ___m_Origin_0)); }
inline Vector3_t3722313464 get_m_Origin_0() const { return ___m_Origin_0; }
inline Vector3_t3722313464 * get_address_of_m_Origin_0() { return &___m_Origin_0; }
inline void set_m_Origin_0(Vector3_t3722313464 value)
{
___m_Origin_0 = value;
}
inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_t3785851493, ___m_Direction_1)); }
inline Vector3_t3722313464 get_m_Direction_1() const { return ___m_Direction_1; }
inline Vector3_t3722313464 * get_address_of_m_Direction_1() { return &___m_Direction_1; }
inline void set_m_Direction_1(Vector3_t3722313464 value)
{
___m_Direction_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RAY_T3785851493_H
#ifndef FORCEMODE_T3656391766_H
#define FORCEMODE_T3656391766_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ForceMode
struct ForceMode_t3656391766
{
public:
// System.Int32 UnityEngine.ForceMode::value__
int32_t ___value___1;
public:
inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ForceMode_t3656391766, ___value___1)); }
inline int32_t get_value___1() const { return ___value___1; }
inline int32_t* get_address_of_value___1() { return &___value___1; }
inline void set_value___1(int32_t value)
{
___value___1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FORCEMODE_T3656391766_H
#ifndef TEXTURE_T3661962703_H
#define TEXTURE_T3661962703_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Texture
struct Texture_t3661962703 : public Object_t631007953
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TEXTURE_T3661962703_H
#ifndef SCRIPTABLEOBJECT_T2528358522_H
#define SCRIPTABLEOBJECT_T2528358522_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ScriptableObject
struct ScriptableObject_t2528358522 : public Object_t631007953
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.ScriptableObject
struct ScriptableObject_t2528358522_marshaled_pinvoke : public Object_t631007953_marshaled_pinvoke
{
};
// Native definition for COM marshalling of UnityEngine.ScriptableObject
struct ScriptableObject_t2528358522_marshaled_com : public Object_t631007953_marshaled_com
{
};
#endif // SCRIPTABLEOBJECT_T2528358522_H
#ifndef MULTICASTDELEGATE_T_H
#define MULTICASTDELEGATE_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t1188392813
{
public:
// System.MulticastDelegate System.MulticastDelegate::prev
MulticastDelegate_t * ___prev_9;
// System.MulticastDelegate System.MulticastDelegate::kpm_next
MulticastDelegate_t * ___kpm_next_10;
public:
inline static int32_t get_offset_of_prev_9() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___prev_9)); }
inline MulticastDelegate_t * get_prev_9() const { return ___prev_9; }
inline MulticastDelegate_t ** get_address_of_prev_9() { return &___prev_9; }
inline void set_prev_9(MulticastDelegate_t * value)
{
___prev_9 = value;
Il2CppCodeGenWriteBarrier((&___prev_9), value);
}
inline static int32_t get_offset_of_kpm_next_10() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___kpm_next_10)); }
inline MulticastDelegate_t * get_kpm_next_10() const { return ___kpm_next_10; }
inline MulticastDelegate_t ** get_address_of_kpm_next_10() { return &___kpm_next_10; }
inline void set_kpm_next_10(MulticastDelegate_t * value)
{
___kpm_next_10 = value;
Il2CppCodeGenWriteBarrier((&___kpm_next_10), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MULTICASTDELEGATE_T_H
#ifndef EMITPARAMS_T2216423628_H
#define EMITPARAMS_T2216423628_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ParticleSystem/EmitParams
struct EmitParams_t2216423628
{
public:
// UnityEngine.ParticleSystem/Particle UnityEngine.ParticleSystem/EmitParams::m_Particle
Particle_t1882894987 ___m_Particle_0;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_PositionSet
bool ___m_PositionSet_1;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_VelocitySet
bool ___m_VelocitySet_2;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_AxisOfRotationSet
bool ___m_AxisOfRotationSet_3;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_RotationSet
bool ___m_RotationSet_4;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_AngularVelocitySet
bool ___m_AngularVelocitySet_5;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_StartSizeSet
bool ___m_StartSizeSet_6;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_StartColorSet
bool ___m_StartColorSet_7;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_RandomSeedSet
bool ___m_RandomSeedSet_8;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_StartLifetimeSet
bool ___m_StartLifetimeSet_9;
// System.Boolean UnityEngine.ParticleSystem/EmitParams::m_ApplyShapeToPosition
bool ___m_ApplyShapeToPosition_10;
public:
inline static int32_t get_offset_of_m_Particle_0() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_Particle_0)); }
inline Particle_t1882894987 get_m_Particle_0() const { return ___m_Particle_0; }
inline Particle_t1882894987 * get_address_of_m_Particle_0() { return &___m_Particle_0; }
inline void set_m_Particle_0(Particle_t1882894987 value)
{
___m_Particle_0 = value;
}
inline static int32_t get_offset_of_m_PositionSet_1() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_PositionSet_1)); }
inline bool get_m_PositionSet_1() const { return ___m_PositionSet_1; }
inline bool* get_address_of_m_PositionSet_1() { return &___m_PositionSet_1; }
inline void set_m_PositionSet_1(bool value)
{
___m_PositionSet_1 = value;
}
inline static int32_t get_offset_of_m_VelocitySet_2() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_VelocitySet_2)); }
inline bool get_m_VelocitySet_2() const { return ___m_VelocitySet_2; }
inline bool* get_address_of_m_VelocitySet_2() { return &___m_VelocitySet_2; }
inline void set_m_VelocitySet_2(bool value)
{
___m_VelocitySet_2 = value;
}
inline static int32_t get_offset_of_m_AxisOfRotationSet_3() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_AxisOfRotationSet_3)); }
inline bool get_m_AxisOfRotationSet_3() const { return ___m_AxisOfRotationSet_3; }
inline bool* get_address_of_m_AxisOfRotationSet_3() { return &___m_AxisOfRotationSet_3; }
inline void set_m_AxisOfRotationSet_3(bool value)
{
___m_AxisOfRotationSet_3 = value;
}
inline static int32_t get_offset_of_m_RotationSet_4() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_RotationSet_4)); }
inline bool get_m_RotationSet_4() const { return ___m_RotationSet_4; }
inline bool* get_address_of_m_RotationSet_4() { return &___m_RotationSet_4; }
inline void set_m_RotationSet_4(bool value)
{
___m_RotationSet_4 = value;
}
inline static int32_t get_offset_of_m_AngularVelocitySet_5() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_AngularVelocitySet_5)); }
inline bool get_m_AngularVelocitySet_5() const { return ___m_AngularVelocitySet_5; }
inline bool* get_address_of_m_AngularVelocitySet_5() { return &___m_AngularVelocitySet_5; }
inline void set_m_AngularVelocitySet_5(bool value)
{
___m_AngularVelocitySet_5 = value;
}
inline static int32_t get_offset_of_m_StartSizeSet_6() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_StartSizeSet_6)); }
inline bool get_m_StartSizeSet_6() const { return ___m_StartSizeSet_6; }
inline bool* get_address_of_m_StartSizeSet_6() { return &___m_StartSizeSet_6; }
inline void set_m_StartSizeSet_6(bool value)
{
___m_StartSizeSet_6 = value;
}
inline static int32_t get_offset_of_m_StartColorSet_7() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_StartColorSet_7)); }
inline bool get_m_StartColorSet_7() const { return ___m_StartColorSet_7; }
inline bool* get_address_of_m_StartColorSet_7() { return &___m_StartColorSet_7; }
inline void set_m_StartColorSet_7(bool value)
{
___m_StartColorSet_7 = value;
}
inline static int32_t get_offset_of_m_RandomSeedSet_8() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_RandomSeedSet_8)); }
inline bool get_m_RandomSeedSet_8() const { return ___m_RandomSeedSet_8; }
inline bool* get_address_of_m_RandomSeedSet_8() { return &___m_RandomSeedSet_8; }
inline void set_m_RandomSeedSet_8(bool value)
{
___m_RandomSeedSet_8 = value;
}
inline static int32_t get_offset_of_m_StartLifetimeSet_9() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_StartLifetimeSet_9)); }
inline bool get_m_StartLifetimeSet_9() const { return ___m_StartLifetimeSet_9; }
inline bool* get_address_of_m_StartLifetimeSet_9() { return &___m_StartLifetimeSet_9; }
inline void set_m_StartLifetimeSet_9(bool value)
{
___m_StartLifetimeSet_9 = value;
}
inline static int32_t get_offset_of_m_ApplyShapeToPosition_10() { return static_cast<int32_t>(offsetof(EmitParams_t2216423628, ___m_ApplyShapeToPosition_10)); }
inline bool get_m_ApplyShapeToPosition_10() const { return ___m_ApplyShapeToPosition_10; }
inline bool* get_address_of_m_ApplyShapeToPosition_10() { return &___m_ApplyShapeToPosition_10; }
inline void set_m_ApplyShapeToPosition_10(bool value)
{
___m_ApplyShapeToPosition_10 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.ParticleSystem/EmitParams
struct EmitParams_t2216423628_marshaled_pinvoke
{
Particle_t1882894987 ___m_Particle_0;
int32_t ___m_PositionSet_1;
int32_t ___m_VelocitySet_2;
int32_t ___m_AxisOfRotationSet_3;
int32_t ___m_RotationSet_4;
int32_t ___m_AngularVelocitySet_5;
int32_t ___m_StartSizeSet_6;
int32_t ___m_StartColorSet_7;
int32_t ___m_RandomSeedSet_8;
int32_t ___m_StartLifetimeSet_9;
int32_t ___m_ApplyShapeToPosition_10;
};
// Native definition for COM marshalling of UnityEngine.ParticleSystem/EmitParams
struct EmitParams_t2216423628_marshaled_com
{
Particle_t1882894987 ___m_Particle_0;
int32_t ___m_PositionSet_1;
int32_t ___m_VelocitySet_2;
int32_t ___m_AxisOfRotationSet_3;
int32_t ___m_RotationSet_4;
int32_t ___m_AngularVelocitySet_5;
int32_t ___m_StartSizeSet_6;
int32_t ___m_StartColorSet_7;
int32_t ___m_RandomSeedSet_8;
int32_t ___m_StartLifetimeSet_9;
int32_t ___m_ApplyShapeToPosition_10;
};
#endif // EMITPARAMS_T2216423628_H
#ifndef FLUVIOMINMAXCURVE_T1877352570_H
#define FLUVIOMINMAXCURVE_T1877352570_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluvioMinMaxCurve
struct FluvioMinMaxCurve_t1877352570 : public RuntimeObject
{
public:
// UnityEngine.AnimationCurve Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_MaxCurve
AnimationCurve_t3046754366 * ___m_MaxCurve_0;
// UnityEngine.AnimationCurve Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_MinCurve
AnimationCurve_t3046754366 * ___m_MinCurve_1;
// System.Single Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_MinConstant
float ___m_MinConstant_2;
// System.Single Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_MaxConstant
float ___m_MaxConstant_3;
// System.Single Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_Scalar
float ___m_Scalar_4;
// Thinksquirrel.Fluvio.FluvioMinMaxCurveState Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_MinMaxState
int32_t ___m_MinMaxState_5;
// System.Boolean Thinksquirrel.Fluvio.FluvioMinMaxCurve::m_IsSigned
bool ___m_IsSigned_6;
public:
inline static int32_t get_offset_of_m_MaxCurve_0() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_MaxCurve_0)); }
inline AnimationCurve_t3046754366 * get_m_MaxCurve_0() const { return ___m_MaxCurve_0; }
inline AnimationCurve_t3046754366 ** get_address_of_m_MaxCurve_0() { return &___m_MaxCurve_0; }
inline void set_m_MaxCurve_0(AnimationCurve_t3046754366 * value)
{
___m_MaxCurve_0 = value;
Il2CppCodeGenWriteBarrier((&___m_MaxCurve_0), value);
}
inline static int32_t get_offset_of_m_MinCurve_1() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_MinCurve_1)); }
inline AnimationCurve_t3046754366 * get_m_MinCurve_1() const { return ___m_MinCurve_1; }
inline AnimationCurve_t3046754366 ** get_address_of_m_MinCurve_1() { return &___m_MinCurve_1; }
inline void set_m_MinCurve_1(AnimationCurve_t3046754366 * value)
{
___m_MinCurve_1 = value;
Il2CppCodeGenWriteBarrier((&___m_MinCurve_1), value);
}
inline static int32_t get_offset_of_m_MinConstant_2() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_MinConstant_2)); }
inline float get_m_MinConstant_2() const { return ___m_MinConstant_2; }
inline float* get_address_of_m_MinConstant_2() { return &___m_MinConstant_2; }
inline void set_m_MinConstant_2(float value)
{
___m_MinConstant_2 = value;
}
inline static int32_t get_offset_of_m_MaxConstant_3() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_MaxConstant_3)); }
inline float get_m_MaxConstant_3() const { return ___m_MaxConstant_3; }
inline float* get_address_of_m_MaxConstant_3() { return &___m_MaxConstant_3; }
inline void set_m_MaxConstant_3(float value)
{
___m_MaxConstant_3 = value;
}
inline static int32_t get_offset_of_m_Scalar_4() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_Scalar_4)); }
inline float get_m_Scalar_4() const { return ___m_Scalar_4; }
inline float* get_address_of_m_Scalar_4() { return &___m_Scalar_4; }
inline void set_m_Scalar_4(float value)
{
___m_Scalar_4 = value;
}
inline static int32_t get_offset_of_m_MinMaxState_5() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_MinMaxState_5)); }
inline int32_t get_m_MinMaxState_5() const { return ___m_MinMaxState_5; }
inline int32_t* get_address_of_m_MinMaxState_5() { return &___m_MinMaxState_5; }
inline void set_m_MinMaxState_5(int32_t value)
{
___m_MinMaxState_5 = value;
}
inline static int32_t get_offset_of_m_IsSigned_6() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570, ___m_IsSigned_6)); }
inline bool get_m_IsSigned_6() const { return ___m_IsSigned_6; }
inline bool* get_address_of_m_IsSigned_6() { return &___m_IsSigned_6; }
inline void set_m_IsSigned_6(bool value)
{
___m_IsSigned_6 = value;
}
};
struct FluvioMinMaxCurve_t1877352570_StaticFields
{
public:
// Thinksquirrel.Fluvio.Internal.Keyframe[] Thinksquirrel.Fluvio.FluvioMinMaxCurve::s_KeyCache
KeyframeU5BU5D_t2904958028* ___s_KeyCache_7;
// Thinksquirrel.Fluvio.Internal.Keyframe[] Thinksquirrel.Fluvio.FluvioMinMaxCurve::s_KeyCache2
KeyframeU5BU5D_t2904958028* ___s_KeyCache2_8;
public:
inline static int32_t get_offset_of_s_KeyCache_7() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570_StaticFields, ___s_KeyCache_7)); }
inline KeyframeU5BU5D_t2904958028* get_s_KeyCache_7() const { return ___s_KeyCache_7; }
inline KeyframeU5BU5D_t2904958028** get_address_of_s_KeyCache_7() { return &___s_KeyCache_7; }
inline void set_s_KeyCache_7(KeyframeU5BU5D_t2904958028* value)
{
___s_KeyCache_7 = value;
Il2CppCodeGenWriteBarrier((&___s_KeyCache_7), value);
}
inline static int32_t get_offset_of_s_KeyCache2_8() { return static_cast<int32_t>(offsetof(FluvioMinMaxCurve_t1877352570_StaticFields, ___s_KeyCache2_8)); }
inline KeyframeU5BU5D_t2904958028* get_s_KeyCache2_8() const { return ___s_KeyCache2_8; }
inline KeyframeU5BU5D_t2904958028** get_address_of_s_KeyCache2_8() { return &___s_KeyCache2_8; }
inline void set_s_KeyCache2_8(KeyframeU5BU5D_t2904958028* value)
{
___s_KeyCache2_8 = value;
Il2CppCodeGenWriteBarrier((&___s_KeyCache2_8), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIOMINMAXCURVE_T1877352570_H
#ifndef TOUCH_T1921856868_H
#define TOUCH_T1921856868_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Touch
struct Touch_t1921856868
{
public:
// System.Int32 UnityEngine.Touch::m_FingerId
int32_t ___m_FingerId_0;
// UnityEngine.Vector2 UnityEngine.Touch::m_Position
Vector2_t2156229523 ___m_Position_1;
// UnityEngine.Vector2 UnityEngine.Touch::m_RawPosition
Vector2_t2156229523 ___m_RawPosition_2;
// UnityEngine.Vector2 UnityEngine.Touch::m_PositionDelta
Vector2_t2156229523 ___m_PositionDelta_3;
// System.Single UnityEngine.Touch::m_TimeDelta
float ___m_TimeDelta_4;
// System.Int32 UnityEngine.Touch::m_TapCount
int32_t ___m_TapCount_5;
// UnityEngine.TouchPhase UnityEngine.Touch::m_Phase
int32_t ___m_Phase_6;
// UnityEngine.TouchType UnityEngine.Touch::m_Type
int32_t ___m_Type_7;
// System.Single UnityEngine.Touch::m_Pressure
float ___m_Pressure_8;
// System.Single UnityEngine.Touch::m_maximumPossiblePressure
float ___m_maximumPossiblePressure_9;
// System.Single UnityEngine.Touch::m_Radius
float ___m_Radius_10;
// System.Single UnityEngine.Touch::m_RadiusVariance
float ___m_RadiusVariance_11;
// System.Single UnityEngine.Touch::m_AltitudeAngle
float ___m_AltitudeAngle_12;
// System.Single UnityEngine.Touch::m_AzimuthAngle
float ___m_AzimuthAngle_13;
public:
inline static int32_t get_offset_of_m_FingerId_0() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_FingerId_0)); }
inline int32_t get_m_FingerId_0() const { return ___m_FingerId_0; }
inline int32_t* get_address_of_m_FingerId_0() { return &___m_FingerId_0; }
inline void set_m_FingerId_0(int32_t value)
{
___m_FingerId_0 = value;
}
inline static int32_t get_offset_of_m_Position_1() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_Position_1)); }
inline Vector2_t2156229523 get_m_Position_1() const { return ___m_Position_1; }
inline Vector2_t2156229523 * get_address_of_m_Position_1() { return &___m_Position_1; }
inline void set_m_Position_1(Vector2_t2156229523 value)
{
___m_Position_1 = value;
}
inline static int32_t get_offset_of_m_RawPosition_2() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_RawPosition_2)); }
inline Vector2_t2156229523 get_m_RawPosition_2() const { return ___m_RawPosition_2; }
inline Vector2_t2156229523 * get_address_of_m_RawPosition_2() { return &___m_RawPosition_2; }
inline void set_m_RawPosition_2(Vector2_t2156229523 value)
{
___m_RawPosition_2 = value;
}
inline static int32_t get_offset_of_m_PositionDelta_3() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_PositionDelta_3)); }
inline Vector2_t2156229523 get_m_PositionDelta_3() const { return ___m_PositionDelta_3; }
inline Vector2_t2156229523 * get_address_of_m_PositionDelta_3() { return &___m_PositionDelta_3; }
inline void set_m_PositionDelta_3(Vector2_t2156229523 value)
{
___m_PositionDelta_3 = value;
}
inline static int32_t get_offset_of_m_TimeDelta_4() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_TimeDelta_4)); }
inline float get_m_TimeDelta_4() const { return ___m_TimeDelta_4; }
inline float* get_address_of_m_TimeDelta_4() { return &___m_TimeDelta_4; }
inline void set_m_TimeDelta_4(float value)
{
___m_TimeDelta_4 = value;
}
inline static int32_t get_offset_of_m_TapCount_5() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_TapCount_5)); }
inline int32_t get_m_TapCount_5() const { return ___m_TapCount_5; }
inline int32_t* get_address_of_m_TapCount_5() { return &___m_TapCount_5; }
inline void set_m_TapCount_5(int32_t value)
{
___m_TapCount_5 = value;
}
inline static int32_t get_offset_of_m_Phase_6() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_Phase_6)); }
inline int32_t get_m_Phase_6() const { return ___m_Phase_6; }
inline int32_t* get_address_of_m_Phase_6() { return &___m_Phase_6; }
inline void set_m_Phase_6(int32_t value)
{
___m_Phase_6 = value;
}
inline static int32_t get_offset_of_m_Type_7() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_Type_7)); }
inline int32_t get_m_Type_7() const { return ___m_Type_7; }
inline int32_t* get_address_of_m_Type_7() { return &___m_Type_7; }
inline void set_m_Type_7(int32_t value)
{
___m_Type_7 = value;
}
inline static int32_t get_offset_of_m_Pressure_8() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_Pressure_8)); }
inline float get_m_Pressure_8() const { return ___m_Pressure_8; }
inline float* get_address_of_m_Pressure_8() { return &___m_Pressure_8; }
inline void set_m_Pressure_8(float value)
{
___m_Pressure_8 = value;
}
inline static int32_t get_offset_of_m_maximumPossiblePressure_9() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_maximumPossiblePressure_9)); }
inline float get_m_maximumPossiblePressure_9() const { return ___m_maximumPossiblePressure_9; }
inline float* get_address_of_m_maximumPossiblePressure_9() { return &___m_maximumPossiblePressure_9; }
inline void set_m_maximumPossiblePressure_9(float value)
{
___m_maximumPossiblePressure_9 = value;
}
inline static int32_t get_offset_of_m_Radius_10() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_Radius_10)); }
inline float get_m_Radius_10() const { return ___m_Radius_10; }
inline float* get_address_of_m_Radius_10() { return &___m_Radius_10; }
inline void set_m_Radius_10(float value)
{
___m_Radius_10 = value;
}
inline static int32_t get_offset_of_m_RadiusVariance_11() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_RadiusVariance_11)); }
inline float get_m_RadiusVariance_11() const { return ___m_RadiusVariance_11; }
inline float* get_address_of_m_RadiusVariance_11() { return &___m_RadiusVariance_11; }
inline void set_m_RadiusVariance_11(float value)
{
___m_RadiusVariance_11 = value;
}
inline static int32_t get_offset_of_m_AltitudeAngle_12() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_AltitudeAngle_12)); }
inline float get_m_AltitudeAngle_12() const { return ___m_AltitudeAngle_12; }
inline float* get_address_of_m_AltitudeAngle_12() { return &___m_AltitudeAngle_12; }
inline void set_m_AltitudeAngle_12(float value)
{
___m_AltitudeAngle_12 = value;
}
inline static int32_t get_offset_of_m_AzimuthAngle_13() { return static_cast<int32_t>(offsetof(Touch_t1921856868, ___m_AzimuthAngle_13)); }
inline float get_m_AzimuthAngle_13() const { return ___m_AzimuthAngle_13; }
inline float* get_address_of_m_AzimuthAngle_13() { return &___m_AzimuthAngle_13; }
inline void set_m_AzimuthAngle_13(float value)
{
___m_AzimuthAngle_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TOUCH_T1921856868_H
#ifndef MATERIAL_T340375123_H
#define MATERIAL_T340375123_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Material
struct Material_t340375123 : public Object_t631007953
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MATERIAL_T340375123_H
#ifndef COMPONENT_T1923634451_H
#define COMPONENT_T1923634451_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Component
struct Component_t1923634451 : public Object_t631007953
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMPONENT_T1923634451_H
#ifndef FONT_T1956802104_H
#define FONT_T1956802104_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Font
struct Font_t1956802104 : public Object_t631007953
{
public:
// UnityEngine.Font/FontTextureRebuildCallback UnityEngine.Font::m_FontTextureRebuildCallback
FontTextureRebuildCallback_t2467502454 * ___m_FontTextureRebuildCallback_3;
public:
inline static int32_t get_offset_of_m_FontTextureRebuildCallback_3() { return static_cast<int32_t>(offsetof(Font_t1956802104, ___m_FontTextureRebuildCallback_3)); }
inline FontTextureRebuildCallback_t2467502454 * get_m_FontTextureRebuildCallback_3() const { return ___m_FontTextureRebuildCallback_3; }
inline FontTextureRebuildCallback_t2467502454 ** get_address_of_m_FontTextureRebuildCallback_3() { return &___m_FontTextureRebuildCallback_3; }
inline void set_m_FontTextureRebuildCallback_3(FontTextureRebuildCallback_t2467502454 * value)
{
___m_FontTextureRebuildCallback_3 = value;
Il2CppCodeGenWriteBarrier((&___m_FontTextureRebuildCallback_3), value);
}
};
struct Font_t1956802104_StaticFields
{
public:
// System.Action`1<UnityEngine.Font> UnityEngine.Font::textureRebuilt
Action_1_t2129269699 * ___textureRebuilt_2;
public:
inline static int32_t get_offset_of_textureRebuilt_2() { return static_cast<int32_t>(offsetof(Font_t1956802104_StaticFields, ___textureRebuilt_2)); }
inline Action_1_t2129269699 * get_textureRebuilt_2() const { return ___textureRebuilt_2; }
inline Action_1_t2129269699 ** get_address_of_textureRebuilt_2() { return &___textureRebuilt_2; }
inline void set_textureRebuilt_2(Action_1_t2129269699 * value)
{
___textureRebuilt_2 = value;
Il2CppCodeGenWriteBarrier((&___textureRebuilt_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FONT_T1956802104_H
#ifndef THREAD_T2300836069_H
#define THREAD_T2300836069_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Threading.Thread
struct Thread_t2300836069 : public CriticalFinalizerObject_t701527852
{
public:
// System.Int32 System.Threading.Thread::lock_thread_id
int32_t ___lock_thread_id_0;
// System.IntPtr System.Threading.Thread::system_thread_handle
intptr_t ___system_thread_handle_1;
// System.Object System.Threading.Thread::cached_culture_info
RuntimeObject * ___cached_culture_info_2;
// System.IntPtr System.Threading.Thread::unused0
intptr_t ___unused0_3;
// System.Boolean System.Threading.Thread::threadpool_thread
bool ___threadpool_thread_4;
// System.IntPtr System.Threading.Thread::name
intptr_t ___name_5;
// System.Int32 System.Threading.Thread::name_len
int32_t ___name_len_6;
// System.Threading.ThreadState System.Threading.Thread::state
int32_t ___state_7;
// System.Object System.Threading.Thread::abort_exc
RuntimeObject * ___abort_exc_8;
// System.Int32 System.Threading.Thread::abort_state_handle
int32_t ___abort_state_handle_9;
// System.Int64 System.Threading.Thread::thread_id
int64_t ___thread_id_10;
// System.IntPtr System.Threading.Thread::start_notify
intptr_t ___start_notify_11;
// System.IntPtr System.Threading.Thread::stack_ptr
intptr_t ___stack_ptr_12;
// System.UIntPtr System.Threading.Thread::static_data
uintptr_t ___static_data_13;
// System.IntPtr System.Threading.Thread::jit_data
intptr_t ___jit_data_14;
// System.IntPtr System.Threading.Thread::lock_data
intptr_t ___lock_data_15;
// System.Object System.Threading.Thread::current_appcontext
RuntimeObject * ___current_appcontext_16;
// System.Int32 System.Threading.Thread::stack_size
int32_t ___stack_size_17;
// System.Object System.Threading.Thread::start_obj
RuntimeObject * ___start_obj_18;
// System.IntPtr System.Threading.Thread::appdomain_refs
intptr_t ___appdomain_refs_19;
// System.Int32 System.Threading.Thread::interruption_requested
int32_t ___interruption_requested_20;
// System.IntPtr System.Threading.Thread::suspend_event
intptr_t ___suspend_event_21;
// System.IntPtr System.Threading.Thread::suspended_event
intptr_t ___suspended_event_22;
// System.IntPtr System.Threading.Thread::resume_event
intptr_t ___resume_event_23;
// System.IntPtr System.Threading.Thread::synch_cs
intptr_t ___synch_cs_24;
// System.IntPtr System.Threading.Thread::serialized_culture_info
intptr_t ___serialized_culture_info_25;
// System.Int32 System.Threading.Thread::serialized_culture_info_len
int32_t ___serialized_culture_info_len_26;
// System.IntPtr System.Threading.Thread::serialized_ui_culture_info
intptr_t ___serialized_ui_culture_info_27;
// System.Int32 System.Threading.Thread::serialized_ui_culture_info_len
int32_t ___serialized_ui_culture_info_len_28;
// System.Boolean System.Threading.Thread::thread_dump_requested
bool ___thread_dump_requested_29;
// System.IntPtr System.Threading.Thread::end_stack
intptr_t ___end_stack_30;
// System.Boolean System.Threading.Thread::thread_interrupt_requested
bool ___thread_interrupt_requested_31;
// System.Byte System.Threading.Thread::apartment_state
uint8_t ___apartment_state_32;
// System.Int32 modreq(System.Runtime.CompilerServices.IsVolatile) System.Threading.Thread::critical_region_level
int32_t ___critical_region_level_33;
// System.Int32 System.Threading.Thread::small_id
int32_t ___small_id_34;
// System.IntPtr System.Threading.Thread::manage_callback
intptr_t ___manage_callback_35;
// System.Object System.Threading.Thread::pending_exception
RuntimeObject * ___pending_exception_36;
// System.Threading.ExecutionContext System.Threading.Thread::ec_to_set
ExecutionContext_t1748372627 * ___ec_to_set_37;
// System.IntPtr System.Threading.Thread::interrupt_on_stop
intptr_t ___interrupt_on_stop_38;
// System.IntPtr System.Threading.Thread::unused3
intptr_t ___unused3_39;
// System.IntPtr System.Threading.Thread::unused4
intptr_t ___unused4_40;
// System.IntPtr System.Threading.Thread::unused5
intptr_t ___unused5_41;
// System.IntPtr System.Threading.Thread::unused6
intptr_t ___unused6_42;
// System.MulticastDelegate System.Threading.Thread::threadstart
MulticastDelegate_t * ___threadstart_45;
// System.Int32 System.Threading.Thread::managed_id
int32_t ___managed_id_46;
// System.Security.Principal.IPrincipal System.Threading.Thread::_principal
RuntimeObject* ____principal_47;
// System.Boolean System.Threading.Thread::in_currentculture
bool ___in_currentculture_50;
public:
inline static int32_t get_offset_of_lock_thread_id_0() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___lock_thread_id_0)); }
inline int32_t get_lock_thread_id_0() const { return ___lock_thread_id_0; }
inline int32_t* get_address_of_lock_thread_id_0() { return &___lock_thread_id_0; }
inline void set_lock_thread_id_0(int32_t value)
{
___lock_thread_id_0 = value;
}
inline static int32_t get_offset_of_system_thread_handle_1() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___system_thread_handle_1)); }
inline intptr_t get_system_thread_handle_1() const { return ___system_thread_handle_1; }
inline intptr_t* get_address_of_system_thread_handle_1() { return &___system_thread_handle_1; }
inline void set_system_thread_handle_1(intptr_t value)
{
___system_thread_handle_1 = value;
}
inline static int32_t get_offset_of_cached_culture_info_2() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___cached_culture_info_2)); }
inline RuntimeObject * get_cached_culture_info_2() const { return ___cached_culture_info_2; }
inline RuntimeObject ** get_address_of_cached_culture_info_2() { return &___cached_culture_info_2; }
inline void set_cached_culture_info_2(RuntimeObject * value)
{
___cached_culture_info_2 = value;
Il2CppCodeGenWriteBarrier((&___cached_culture_info_2), value);
}
inline static int32_t get_offset_of_unused0_3() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___unused0_3)); }
inline intptr_t get_unused0_3() const { return ___unused0_3; }
inline intptr_t* get_address_of_unused0_3() { return &___unused0_3; }
inline void set_unused0_3(intptr_t value)
{
___unused0_3 = value;
}
inline static int32_t get_offset_of_threadpool_thread_4() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___threadpool_thread_4)); }
inline bool get_threadpool_thread_4() const { return ___threadpool_thread_4; }
inline bool* get_address_of_threadpool_thread_4() { return &___threadpool_thread_4; }
inline void set_threadpool_thread_4(bool value)
{
___threadpool_thread_4 = value;
}
inline static int32_t get_offset_of_name_5() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___name_5)); }
inline intptr_t get_name_5() const { return ___name_5; }
inline intptr_t* get_address_of_name_5() { return &___name_5; }
inline void set_name_5(intptr_t value)
{
___name_5 = value;
}
inline static int32_t get_offset_of_name_len_6() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___name_len_6)); }
inline int32_t get_name_len_6() const { return ___name_len_6; }
inline int32_t* get_address_of_name_len_6() { return &___name_len_6; }
inline void set_name_len_6(int32_t value)
{
___name_len_6 = value;
}
inline static int32_t get_offset_of_state_7() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___state_7)); }
inline int32_t get_state_7() const { return ___state_7; }
inline int32_t* get_address_of_state_7() { return &___state_7; }
inline void set_state_7(int32_t value)
{
___state_7 = value;
}
inline static int32_t get_offset_of_abort_exc_8() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___abort_exc_8)); }
inline RuntimeObject * get_abort_exc_8() const { return ___abort_exc_8; }
inline RuntimeObject ** get_address_of_abort_exc_8() { return &___abort_exc_8; }
inline void set_abort_exc_8(RuntimeObject * value)
{
___abort_exc_8 = value;
Il2CppCodeGenWriteBarrier((&___abort_exc_8), value);
}
inline static int32_t get_offset_of_abort_state_handle_9() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___abort_state_handle_9)); }
inline int32_t get_abort_state_handle_9() const { return ___abort_state_handle_9; }
inline int32_t* get_address_of_abort_state_handle_9() { return &___abort_state_handle_9; }
inline void set_abort_state_handle_9(int32_t value)
{
___abort_state_handle_9 = value;
}
inline static int32_t get_offset_of_thread_id_10() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___thread_id_10)); }
inline int64_t get_thread_id_10() const { return ___thread_id_10; }
inline int64_t* get_address_of_thread_id_10() { return &___thread_id_10; }
inline void set_thread_id_10(int64_t value)
{
___thread_id_10 = value;
}
inline static int32_t get_offset_of_start_notify_11() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___start_notify_11)); }
inline intptr_t get_start_notify_11() const { return ___start_notify_11; }
inline intptr_t* get_address_of_start_notify_11() { return &___start_notify_11; }
inline void set_start_notify_11(intptr_t value)
{
___start_notify_11 = value;
}
inline static int32_t get_offset_of_stack_ptr_12() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___stack_ptr_12)); }
inline intptr_t get_stack_ptr_12() const { return ___stack_ptr_12; }
inline intptr_t* get_address_of_stack_ptr_12() { return &___stack_ptr_12; }
inline void set_stack_ptr_12(intptr_t value)
{
___stack_ptr_12 = value;
}
inline static int32_t get_offset_of_static_data_13() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___static_data_13)); }
inline uintptr_t get_static_data_13() const { return ___static_data_13; }
inline uintptr_t* get_address_of_static_data_13() { return &___static_data_13; }
inline void set_static_data_13(uintptr_t value)
{
___static_data_13 = value;
}
inline static int32_t get_offset_of_jit_data_14() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___jit_data_14)); }
inline intptr_t get_jit_data_14() const { return ___jit_data_14; }
inline intptr_t* get_address_of_jit_data_14() { return &___jit_data_14; }
inline void set_jit_data_14(intptr_t value)
{
___jit_data_14 = value;
}
inline static int32_t get_offset_of_lock_data_15() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___lock_data_15)); }
inline intptr_t get_lock_data_15() const { return ___lock_data_15; }
inline intptr_t* get_address_of_lock_data_15() { return &___lock_data_15; }
inline void set_lock_data_15(intptr_t value)
{
___lock_data_15 = value;
}
inline static int32_t get_offset_of_current_appcontext_16() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___current_appcontext_16)); }
inline RuntimeObject * get_current_appcontext_16() const { return ___current_appcontext_16; }
inline RuntimeObject ** get_address_of_current_appcontext_16() { return &___current_appcontext_16; }
inline void set_current_appcontext_16(RuntimeObject * value)
{
___current_appcontext_16 = value;
Il2CppCodeGenWriteBarrier((&___current_appcontext_16), value);
}
inline static int32_t get_offset_of_stack_size_17() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___stack_size_17)); }
inline int32_t get_stack_size_17() const { return ___stack_size_17; }
inline int32_t* get_address_of_stack_size_17() { return &___stack_size_17; }
inline void set_stack_size_17(int32_t value)
{
___stack_size_17 = value;
}
inline static int32_t get_offset_of_start_obj_18() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___start_obj_18)); }
inline RuntimeObject * get_start_obj_18() const { return ___start_obj_18; }
inline RuntimeObject ** get_address_of_start_obj_18() { return &___start_obj_18; }
inline void set_start_obj_18(RuntimeObject * value)
{
___start_obj_18 = value;
Il2CppCodeGenWriteBarrier((&___start_obj_18), value);
}
inline static int32_t get_offset_of_appdomain_refs_19() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___appdomain_refs_19)); }
inline intptr_t get_appdomain_refs_19() const { return ___appdomain_refs_19; }
inline intptr_t* get_address_of_appdomain_refs_19() { return &___appdomain_refs_19; }
inline void set_appdomain_refs_19(intptr_t value)
{
___appdomain_refs_19 = value;
}
inline static int32_t get_offset_of_interruption_requested_20() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___interruption_requested_20)); }
inline int32_t get_interruption_requested_20() const { return ___interruption_requested_20; }
inline int32_t* get_address_of_interruption_requested_20() { return &___interruption_requested_20; }
inline void set_interruption_requested_20(int32_t value)
{
___interruption_requested_20 = value;
}
inline static int32_t get_offset_of_suspend_event_21() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___suspend_event_21)); }
inline intptr_t get_suspend_event_21() const { return ___suspend_event_21; }
inline intptr_t* get_address_of_suspend_event_21() { return &___suspend_event_21; }
inline void set_suspend_event_21(intptr_t value)
{
___suspend_event_21 = value;
}
inline static int32_t get_offset_of_suspended_event_22() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___suspended_event_22)); }
inline intptr_t get_suspended_event_22() const { return ___suspended_event_22; }
inline intptr_t* get_address_of_suspended_event_22() { return &___suspended_event_22; }
inline void set_suspended_event_22(intptr_t value)
{
___suspended_event_22 = value;
}
inline static int32_t get_offset_of_resume_event_23() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___resume_event_23)); }
inline intptr_t get_resume_event_23() const { return ___resume_event_23; }
inline intptr_t* get_address_of_resume_event_23() { return &___resume_event_23; }
inline void set_resume_event_23(intptr_t value)
{
___resume_event_23 = value;
}
inline static int32_t get_offset_of_synch_cs_24() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___synch_cs_24)); }
inline intptr_t get_synch_cs_24() const { return ___synch_cs_24; }
inline intptr_t* get_address_of_synch_cs_24() { return &___synch_cs_24; }
inline void set_synch_cs_24(intptr_t value)
{
___synch_cs_24 = value;
}
inline static int32_t get_offset_of_serialized_culture_info_25() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___serialized_culture_info_25)); }
inline intptr_t get_serialized_culture_info_25() const { return ___serialized_culture_info_25; }
inline intptr_t* get_address_of_serialized_culture_info_25() { return &___serialized_culture_info_25; }
inline void set_serialized_culture_info_25(intptr_t value)
{
___serialized_culture_info_25 = value;
}
inline static int32_t get_offset_of_serialized_culture_info_len_26() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___serialized_culture_info_len_26)); }
inline int32_t get_serialized_culture_info_len_26() const { return ___serialized_culture_info_len_26; }
inline int32_t* get_address_of_serialized_culture_info_len_26() { return &___serialized_culture_info_len_26; }
inline void set_serialized_culture_info_len_26(int32_t value)
{
___serialized_culture_info_len_26 = value;
}
inline static int32_t get_offset_of_serialized_ui_culture_info_27() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___serialized_ui_culture_info_27)); }
inline intptr_t get_serialized_ui_culture_info_27() const { return ___serialized_ui_culture_info_27; }
inline intptr_t* get_address_of_serialized_ui_culture_info_27() { return &___serialized_ui_culture_info_27; }
inline void set_serialized_ui_culture_info_27(intptr_t value)
{
___serialized_ui_culture_info_27 = value;
}
inline static int32_t get_offset_of_serialized_ui_culture_info_len_28() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___serialized_ui_culture_info_len_28)); }
inline int32_t get_serialized_ui_culture_info_len_28() const { return ___serialized_ui_culture_info_len_28; }
inline int32_t* get_address_of_serialized_ui_culture_info_len_28() { return &___serialized_ui_culture_info_len_28; }
inline void set_serialized_ui_culture_info_len_28(int32_t value)
{
___serialized_ui_culture_info_len_28 = value;
}
inline static int32_t get_offset_of_thread_dump_requested_29() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___thread_dump_requested_29)); }
inline bool get_thread_dump_requested_29() const { return ___thread_dump_requested_29; }
inline bool* get_address_of_thread_dump_requested_29() { return &___thread_dump_requested_29; }
inline void set_thread_dump_requested_29(bool value)
{
___thread_dump_requested_29 = value;
}
inline static int32_t get_offset_of_end_stack_30() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___end_stack_30)); }
inline intptr_t get_end_stack_30() const { return ___end_stack_30; }
inline intptr_t* get_address_of_end_stack_30() { return &___end_stack_30; }
inline void set_end_stack_30(intptr_t value)
{
___end_stack_30 = value;
}
inline static int32_t get_offset_of_thread_interrupt_requested_31() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___thread_interrupt_requested_31)); }
inline bool get_thread_interrupt_requested_31() const { return ___thread_interrupt_requested_31; }
inline bool* get_address_of_thread_interrupt_requested_31() { return &___thread_interrupt_requested_31; }
inline void set_thread_interrupt_requested_31(bool value)
{
___thread_interrupt_requested_31 = value;
}
inline static int32_t get_offset_of_apartment_state_32() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___apartment_state_32)); }
inline uint8_t get_apartment_state_32() const { return ___apartment_state_32; }
inline uint8_t* get_address_of_apartment_state_32() { return &___apartment_state_32; }
inline void set_apartment_state_32(uint8_t value)
{
___apartment_state_32 = value;
}
inline static int32_t get_offset_of_critical_region_level_33() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___critical_region_level_33)); }
inline int32_t get_critical_region_level_33() const { return ___critical_region_level_33; }
inline int32_t* get_address_of_critical_region_level_33() { return &___critical_region_level_33; }
inline void set_critical_region_level_33(int32_t value)
{
___critical_region_level_33 = value;
}
inline static int32_t get_offset_of_small_id_34() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___small_id_34)); }
inline int32_t get_small_id_34() const { return ___small_id_34; }
inline int32_t* get_address_of_small_id_34() { return &___small_id_34; }
inline void set_small_id_34(int32_t value)
{
___small_id_34 = value;
}
inline static int32_t get_offset_of_manage_callback_35() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___manage_callback_35)); }
inline intptr_t get_manage_callback_35() const { return ___manage_callback_35; }
inline intptr_t* get_address_of_manage_callback_35() { return &___manage_callback_35; }
inline void set_manage_callback_35(intptr_t value)
{
___manage_callback_35 = value;
}
inline static int32_t get_offset_of_pending_exception_36() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___pending_exception_36)); }
inline RuntimeObject * get_pending_exception_36() const { return ___pending_exception_36; }
inline RuntimeObject ** get_address_of_pending_exception_36() { return &___pending_exception_36; }
inline void set_pending_exception_36(RuntimeObject * value)
{
___pending_exception_36 = value;
Il2CppCodeGenWriteBarrier((&___pending_exception_36), value);
}
inline static int32_t get_offset_of_ec_to_set_37() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___ec_to_set_37)); }
inline ExecutionContext_t1748372627 * get_ec_to_set_37() const { return ___ec_to_set_37; }
inline ExecutionContext_t1748372627 ** get_address_of_ec_to_set_37() { return &___ec_to_set_37; }
inline void set_ec_to_set_37(ExecutionContext_t1748372627 * value)
{
___ec_to_set_37 = value;
Il2CppCodeGenWriteBarrier((&___ec_to_set_37), value);
}
inline static int32_t get_offset_of_interrupt_on_stop_38() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___interrupt_on_stop_38)); }
inline intptr_t get_interrupt_on_stop_38() const { return ___interrupt_on_stop_38; }
inline intptr_t* get_address_of_interrupt_on_stop_38() { return &___interrupt_on_stop_38; }
inline void set_interrupt_on_stop_38(intptr_t value)
{
___interrupt_on_stop_38 = value;
}
inline static int32_t get_offset_of_unused3_39() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___unused3_39)); }
inline intptr_t get_unused3_39() const { return ___unused3_39; }
inline intptr_t* get_address_of_unused3_39() { return &___unused3_39; }
inline void set_unused3_39(intptr_t value)
{
___unused3_39 = value;
}
inline static int32_t get_offset_of_unused4_40() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___unused4_40)); }
inline intptr_t get_unused4_40() const { return ___unused4_40; }
inline intptr_t* get_address_of_unused4_40() { return &___unused4_40; }
inline void set_unused4_40(intptr_t value)
{
___unused4_40 = value;
}
inline static int32_t get_offset_of_unused5_41() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___unused5_41)); }
inline intptr_t get_unused5_41() const { return ___unused5_41; }
inline intptr_t* get_address_of_unused5_41() { return &___unused5_41; }
inline void set_unused5_41(intptr_t value)
{
___unused5_41 = value;
}
inline static int32_t get_offset_of_unused6_42() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___unused6_42)); }
inline intptr_t get_unused6_42() const { return ___unused6_42; }
inline intptr_t* get_address_of_unused6_42() { return &___unused6_42; }
inline void set_unused6_42(intptr_t value)
{
___unused6_42 = value;
}
inline static int32_t get_offset_of_threadstart_45() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___threadstart_45)); }
inline MulticastDelegate_t * get_threadstart_45() const { return ___threadstart_45; }
inline MulticastDelegate_t ** get_address_of_threadstart_45() { return &___threadstart_45; }
inline void set_threadstart_45(MulticastDelegate_t * value)
{
___threadstart_45 = value;
Il2CppCodeGenWriteBarrier((&___threadstart_45), value);
}
inline static int32_t get_offset_of_managed_id_46() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___managed_id_46)); }
inline int32_t get_managed_id_46() const { return ___managed_id_46; }
inline int32_t* get_address_of_managed_id_46() { return &___managed_id_46; }
inline void set_managed_id_46(int32_t value)
{
___managed_id_46 = value;
}
inline static int32_t get_offset_of__principal_47() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ____principal_47)); }
inline RuntimeObject* get__principal_47() const { return ____principal_47; }
inline RuntimeObject** get_address_of__principal_47() { return &____principal_47; }
inline void set__principal_47(RuntimeObject* value)
{
____principal_47 = value;
Il2CppCodeGenWriteBarrier((&____principal_47), value);
}
inline static int32_t get_offset_of_in_currentculture_50() { return static_cast<int32_t>(offsetof(Thread_t2300836069, ___in_currentculture_50)); }
inline bool get_in_currentculture_50() const { return ___in_currentculture_50; }
inline bool* get_address_of_in_currentculture_50() { return &___in_currentculture_50; }
inline void set_in_currentculture_50(bool value)
{
___in_currentculture_50 = value;
}
};
struct Thread_t2300836069_StaticFields
{
public:
// System.Collections.Hashtable System.Threading.Thread::datastorehash
Hashtable_t1853889766 * ___datastorehash_48;
// System.Object System.Threading.Thread::datastore_lock
RuntimeObject * ___datastore_lock_49;
// System.Object System.Threading.Thread::culture_lock
RuntimeObject * ___culture_lock_51;
public:
inline static int32_t get_offset_of_datastorehash_48() { return static_cast<int32_t>(offsetof(Thread_t2300836069_StaticFields, ___datastorehash_48)); }
inline Hashtable_t1853889766 * get_datastorehash_48() const { return ___datastorehash_48; }
inline Hashtable_t1853889766 ** get_address_of_datastorehash_48() { return &___datastorehash_48; }
inline void set_datastorehash_48(Hashtable_t1853889766 * value)
{
___datastorehash_48 = value;
Il2CppCodeGenWriteBarrier((&___datastorehash_48), value);
}
inline static int32_t get_offset_of_datastore_lock_49() { return static_cast<int32_t>(offsetof(Thread_t2300836069_StaticFields, ___datastore_lock_49)); }
inline RuntimeObject * get_datastore_lock_49() const { return ___datastore_lock_49; }
inline RuntimeObject ** get_address_of_datastore_lock_49() { return &___datastore_lock_49; }
inline void set_datastore_lock_49(RuntimeObject * value)
{
___datastore_lock_49 = value;
Il2CppCodeGenWriteBarrier((&___datastore_lock_49), value);
}
inline static int32_t get_offset_of_culture_lock_51() { return static_cast<int32_t>(offsetof(Thread_t2300836069_StaticFields, ___culture_lock_51)); }
inline RuntimeObject * get_culture_lock_51() const { return ___culture_lock_51; }
inline RuntimeObject ** get_address_of_culture_lock_51() { return &___culture_lock_51; }
inline void set_culture_lock_51(RuntimeObject * value)
{
___culture_lock_51 = value;
Il2CppCodeGenWriteBarrier((&___culture_lock_51), value);
}
};
struct Thread_t2300836069_ThreadStaticFields
{
public:
// System.Object[] System.Threading.Thread::local_slots
ObjectU5BU5D_t2843939325* ___local_slots_43;
// System.Threading.ExecutionContext System.Threading.Thread::_ec
ExecutionContext_t1748372627 * ____ec_44;
public:
inline static int32_t get_offset_of_local_slots_43() { return static_cast<int32_t>(offsetof(Thread_t2300836069_ThreadStaticFields, ___local_slots_43)); }
inline ObjectU5BU5D_t2843939325* get_local_slots_43() const { return ___local_slots_43; }
inline ObjectU5BU5D_t2843939325** get_address_of_local_slots_43() { return &___local_slots_43; }
inline void set_local_slots_43(ObjectU5BU5D_t2843939325* value)
{
___local_slots_43 = value;
Il2CppCodeGenWriteBarrier((&___local_slots_43), value);
}
inline static int32_t get_offset_of__ec_44() { return static_cast<int32_t>(offsetof(Thread_t2300836069_ThreadStaticFields, ____ec_44)); }
inline ExecutionContext_t1748372627 * get__ec_44() const { return ____ec_44; }
inline ExecutionContext_t1748372627 ** get_address_of__ec_44() { return &____ec_44; }
inline void set__ec_44(ExecutionContext_t1748372627 * value)
{
____ec_44 = value;
Il2CppCodeGenWriteBarrier((&____ec_44), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREAD_T2300836069_H
#ifndef GENERICVUFORIACONFIGURATION_T3697830469_H
#define GENERICVUFORIACONFIGURATION_T3697830469_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration
struct GenericVuforiaConfiguration_t3697830469 : public RuntimeObject
{
public:
// System.String Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::vuforiaLicenseKey
String_t* ___vuforiaLicenseKey_1;
// System.String Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::ufoLicenseKey
String_t* ___ufoLicenseKey_2;
// System.Boolean Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::delayedInitialization
bool ___delayedInitialization_3;
// Vuforia.CameraDevice/CameraDeviceMode Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::cameraDeviceModeSetting
int32_t ___cameraDeviceModeSetting_4;
// System.Int32 Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::maxSimultaneousImageTargets
int32_t ___maxSimultaneousImageTargets_5;
// System.Int32 Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::maxSimultaneousObjectTargets
int32_t ___maxSimultaneousObjectTargets_6;
// System.Boolean Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::useDelayedLoadingObjectTargets
bool ___useDelayedLoadingObjectTargets_7;
// Vuforia.CameraDevice/CameraDirection Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::cameraDirection
int32_t ___cameraDirection_8;
// Vuforia.VuforiaRenderer/VideoBackgroundReflection Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::mirrorVideoBackground
int32_t ___mirrorVideoBackground_9;
public:
inline static int32_t get_offset_of_vuforiaLicenseKey_1() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___vuforiaLicenseKey_1)); }
inline String_t* get_vuforiaLicenseKey_1() const { return ___vuforiaLicenseKey_1; }
inline String_t** get_address_of_vuforiaLicenseKey_1() { return &___vuforiaLicenseKey_1; }
inline void set_vuforiaLicenseKey_1(String_t* value)
{
___vuforiaLicenseKey_1 = value;
Il2CppCodeGenWriteBarrier((&___vuforiaLicenseKey_1), value);
}
inline static int32_t get_offset_of_ufoLicenseKey_2() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___ufoLicenseKey_2)); }
inline String_t* get_ufoLicenseKey_2() const { return ___ufoLicenseKey_2; }
inline String_t** get_address_of_ufoLicenseKey_2() { return &___ufoLicenseKey_2; }
inline void set_ufoLicenseKey_2(String_t* value)
{
___ufoLicenseKey_2 = value;
Il2CppCodeGenWriteBarrier((&___ufoLicenseKey_2), value);
}
inline static int32_t get_offset_of_delayedInitialization_3() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___delayedInitialization_3)); }
inline bool get_delayedInitialization_3() const { return ___delayedInitialization_3; }
inline bool* get_address_of_delayedInitialization_3() { return &___delayedInitialization_3; }
inline void set_delayedInitialization_3(bool value)
{
___delayedInitialization_3 = value;
}
inline static int32_t get_offset_of_cameraDeviceModeSetting_4() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___cameraDeviceModeSetting_4)); }
inline int32_t get_cameraDeviceModeSetting_4() const { return ___cameraDeviceModeSetting_4; }
inline int32_t* get_address_of_cameraDeviceModeSetting_4() { return &___cameraDeviceModeSetting_4; }
inline void set_cameraDeviceModeSetting_4(int32_t value)
{
___cameraDeviceModeSetting_4 = value;
}
inline static int32_t get_offset_of_maxSimultaneousImageTargets_5() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___maxSimultaneousImageTargets_5)); }
inline int32_t get_maxSimultaneousImageTargets_5() const { return ___maxSimultaneousImageTargets_5; }
inline int32_t* get_address_of_maxSimultaneousImageTargets_5() { return &___maxSimultaneousImageTargets_5; }
inline void set_maxSimultaneousImageTargets_5(int32_t value)
{
___maxSimultaneousImageTargets_5 = value;
}
inline static int32_t get_offset_of_maxSimultaneousObjectTargets_6() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___maxSimultaneousObjectTargets_6)); }
inline int32_t get_maxSimultaneousObjectTargets_6() const { return ___maxSimultaneousObjectTargets_6; }
inline int32_t* get_address_of_maxSimultaneousObjectTargets_6() { return &___maxSimultaneousObjectTargets_6; }
inline void set_maxSimultaneousObjectTargets_6(int32_t value)
{
___maxSimultaneousObjectTargets_6 = value;
}
inline static int32_t get_offset_of_useDelayedLoadingObjectTargets_7() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___useDelayedLoadingObjectTargets_7)); }
inline bool get_useDelayedLoadingObjectTargets_7() const { return ___useDelayedLoadingObjectTargets_7; }
inline bool* get_address_of_useDelayedLoadingObjectTargets_7() { return &___useDelayedLoadingObjectTargets_7; }
inline void set_useDelayedLoadingObjectTargets_7(bool value)
{
___useDelayedLoadingObjectTargets_7 = value;
}
inline static int32_t get_offset_of_cameraDirection_8() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___cameraDirection_8)); }
inline int32_t get_cameraDirection_8() const { return ___cameraDirection_8; }
inline int32_t* get_address_of_cameraDirection_8() { return &___cameraDirection_8; }
inline void set_cameraDirection_8(int32_t value)
{
___cameraDirection_8 = value;
}
inline static int32_t get_offset_of_mirrorVideoBackground_9() { return static_cast<int32_t>(offsetof(GenericVuforiaConfiguration_t3697830469, ___mirrorVideoBackground_9)); }
inline int32_t get_mirrorVideoBackground_9() const { return ___mirrorVideoBackground_9; }
inline int32_t* get_address_of_mirrorVideoBackground_9() { return &___mirrorVideoBackground_9; }
inline void set_mirrorVideoBackground_9(int32_t value)
{
___mirrorVideoBackground_9 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // GENERICVUFORIACONFIGURATION_T3697830469_H
#ifndef VUFORIARUNTIME_T1949122020_H
#define VUFORIARUNTIME_T1949122020_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.VuforiaRuntime
struct VuforiaRuntime_t1949122020 : public RuntimeObject
{
public:
// System.Action`1<Vuforia.VuforiaUnity/InitError> Vuforia.VuforiaRuntime::mOnVuforiaInitError
Action_1_t3593217305 * ___mOnVuforiaInitError_1;
// System.Boolean Vuforia.VuforiaRuntime::mFailedToInitialize
bool ___mFailedToInitialize_2;
// Vuforia.VuforiaUnity/InitError Vuforia.VuforiaRuntime::mInitError
int32_t ___mInitError_3;
// System.Boolean Vuforia.VuforiaRuntime::mHasInitialized
bool ___mHasInitialized_4;
public:
inline static int32_t get_offset_of_mOnVuforiaInitError_1() { return static_cast<int32_t>(offsetof(VuforiaRuntime_t1949122020, ___mOnVuforiaInitError_1)); }
inline Action_1_t3593217305 * get_mOnVuforiaInitError_1() const { return ___mOnVuforiaInitError_1; }
inline Action_1_t3593217305 ** get_address_of_mOnVuforiaInitError_1() { return &___mOnVuforiaInitError_1; }
inline void set_mOnVuforiaInitError_1(Action_1_t3593217305 * value)
{
___mOnVuforiaInitError_1 = value;
Il2CppCodeGenWriteBarrier((&___mOnVuforiaInitError_1), value);
}
inline static int32_t get_offset_of_mFailedToInitialize_2() { return static_cast<int32_t>(offsetof(VuforiaRuntime_t1949122020, ___mFailedToInitialize_2)); }
inline bool get_mFailedToInitialize_2() const { return ___mFailedToInitialize_2; }
inline bool* get_address_of_mFailedToInitialize_2() { return &___mFailedToInitialize_2; }
inline void set_mFailedToInitialize_2(bool value)
{
___mFailedToInitialize_2 = value;
}
inline static int32_t get_offset_of_mInitError_3() { return static_cast<int32_t>(offsetof(VuforiaRuntime_t1949122020, ___mInitError_3)); }
inline int32_t get_mInitError_3() const { return ___mInitError_3; }
inline int32_t* get_address_of_mInitError_3() { return &___mInitError_3; }
inline void set_mInitError_3(int32_t value)
{
___mInitError_3 = value;
}
inline static int32_t get_offset_of_mHasInitialized_4() { return static_cast<int32_t>(offsetof(VuforiaRuntime_t1949122020, ___mHasInitialized_4)); }
inline bool get_mHasInitialized_4() const { return ___mHasInitialized_4; }
inline bool* get_address_of_mHasInitialized_4() { return &___mHasInitialized_4; }
inline void set_mHasInitialized_4(bool value)
{
___mHasInitialized_4 = value;
}
};
struct VuforiaRuntime_t1949122020_StaticFields
{
public:
// Vuforia.VuforiaRuntime Vuforia.VuforiaRuntime::mInstance
VuforiaRuntime_t1949122020 * ___mInstance_5;
// System.Object Vuforia.VuforiaRuntime::mPadlock
RuntimeObject * ___mPadlock_6;
public:
inline static int32_t get_offset_of_mInstance_5() { return static_cast<int32_t>(offsetof(VuforiaRuntime_t1949122020_StaticFields, ___mInstance_5)); }
inline VuforiaRuntime_t1949122020 * get_mInstance_5() const { return ___mInstance_5; }
inline VuforiaRuntime_t1949122020 ** get_address_of_mInstance_5() { return &___mInstance_5; }
inline void set_mInstance_5(VuforiaRuntime_t1949122020 * value)
{
___mInstance_5 = value;
Il2CppCodeGenWriteBarrier((&___mInstance_5), value);
}
inline static int32_t get_offset_of_mPadlock_6() { return static_cast<int32_t>(offsetof(VuforiaRuntime_t1949122020_StaticFields, ___mPadlock_6)); }
inline RuntimeObject * get_mPadlock_6() const { return ___mPadlock_6; }
inline RuntimeObject ** get_address_of_mPadlock_6() { return &___mPadlock_6; }
inline void set_mPadlock_6(RuntimeObject * value)
{
___mPadlock_6 = value;
Il2CppCodeGenWriteBarrier((&___mPadlock_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VUFORIARUNTIME_T1949122020_H
#ifndef GAMEOBJECT_T1113636619_H
#define GAMEOBJECT_T1113636619_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.GameObject
struct GameObject_t1113636619 : public Object_t631007953
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // GAMEOBJECT_T1113636619_H
#ifndef GUISTYLE_T3956901511_H
#define GUISTYLE_T3956901511_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.GUIStyle
struct GUIStyle_t3956901511 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.GUIStyle::m_Ptr
intptr_t ___m_Ptr_0;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Normal
GUIStyleState_t1397964415 * ___m_Normal_1;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Hover
GUIStyleState_t1397964415 * ___m_Hover_2;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Active
GUIStyleState_t1397964415 * ___m_Active_3;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Focused
GUIStyleState_t1397964415 * ___m_Focused_4;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnNormal
GUIStyleState_t1397964415 * ___m_OnNormal_5;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnHover
GUIStyleState_t1397964415 * ___m_OnHover_6;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnActive
GUIStyleState_t1397964415 * ___m_OnActive_7;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnFocused
GUIStyleState_t1397964415 * ___m_OnFocused_8;
// UnityEngine.RectOffset UnityEngine.GUIStyle::m_Border
RectOffset_t1369453676 * ___m_Border_9;
// UnityEngine.RectOffset UnityEngine.GUIStyle::m_Padding
RectOffset_t1369453676 * ___m_Padding_10;
// UnityEngine.RectOffset UnityEngine.GUIStyle::m_Margin
RectOffset_t1369453676 * ___m_Margin_11;
// UnityEngine.RectOffset UnityEngine.GUIStyle::m_Overflow
RectOffset_t1369453676 * ___m_Overflow_12;
// UnityEngine.Font UnityEngine.GUIStyle::m_FontInternal
Font_t1956802104 * ___m_FontInternal_13;
public:
inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Ptr_0)); }
inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; }
inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; }
inline void set_m_Ptr_0(intptr_t value)
{
___m_Ptr_0 = value;
}
inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Normal_1)); }
inline GUIStyleState_t1397964415 * get_m_Normal_1() const { return ___m_Normal_1; }
inline GUIStyleState_t1397964415 ** get_address_of_m_Normal_1() { return &___m_Normal_1; }
inline void set_m_Normal_1(GUIStyleState_t1397964415 * value)
{
___m_Normal_1 = value;
Il2CppCodeGenWriteBarrier((&___m_Normal_1), value);
}
inline static int32_t get_offset_of_m_Hover_2() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Hover_2)); }
inline GUIStyleState_t1397964415 * get_m_Hover_2() const { return ___m_Hover_2; }
inline GUIStyleState_t1397964415 ** get_address_of_m_Hover_2() { return &___m_Hover_2; }
inline void set_m_Hover_2(GUIStyleState_t1397964415 * value)
{
___m_Hover_2 = value;
Il2CppCodeGenWriteBarrier((&___m_Hover_2), value);
}
inline static int32_t get_offset_of_m_Active_3() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Active_3)); }
inline GUIStyleState_t1397964415 * get_m_Active_3() const { return ___m_Active_3; }
inline GUIStyleState_t1397964415 ** get_address_of_m_Active_3() { return &___m_Active_3; }
inline void set_m_Active_3(GUIStyleState_t1397964415 * value)
{
___m_Active_3 = value;
Il2CppCodeGenWriteBarrier((&___m_Active_3), value);
}
inline static int32_t get_offset_of_m_Focused_4() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Focused_4)); }
inline GUIStyleState_t1397964415 * get_m_Focused_4() const { return ___m_Focused_4; }
inline GUIStyleState_t1397964415 ** get_address_of_m_Focused_4() { return &___m_Focused_4; }
inline void set_m_Focused_4(GUIStyleState_t1397964415 * value)
{
___m_Focused_4 = value;
Il2CppCodeGenWriteBarrier((&___m_Focused_4), value);
}
inline static int32_t get_offset_of_m_OnNormal_5() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnNormal_5)); }
inline GUIStyleState_t1397964415 * get_m_OnNormal_5() const { return ___m_OnNormal_5; }
inline GUIStyleState_t1397964415 ** get_address_of_m_OnNormal_5() { return &___m_OnNormal_5; }
inline void set_m_OnNormal_5(GUIStyleState_t1397964415 * value)
{
___m_OnNormal_5 = value;
Il2CppCodeGenWriteBarrier((&___m_OnNormal_5), value);
}
inline static int32_t get_offset_of_m_OnHover_6() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnHover_6)); }
inline GUIStyleState_t1397964415 * get_m_OnHover_6() const { return ___m_OnHover_6; }
inline GUIStyleState_t1397964415 ** get_address_of_m_OnHover_6() { return &___m_OnHover_6; }
inline void set_m_OnHover_6(GUIStyleState_t1397964415 * value)
{
___m_OnHover_6 = value;
Il2CppCodeGenWriteBarrier((&___m_OnHover_6), value);
}
inline static int32_t get_offset_of_m_OnActive_7() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnActive_7)); }
inline GUIStyleState_t1397964415 * get_m_OnActive_7() const { return ___m_OnActive_7; }
inline GUIStyleState_t1397964415 ** get_address_of_m_OnActive_7() { return &___m_OnActive_7; }
inline void set_m_OnActive_7(GUIStyleState_t1397964415 * value)
{
___m_OnActive_7 = value;
Il2CppCodeGenWriteBarrier((&___m_OnActive_7), value);
}
inline static int32_t get_offset_of_m_OnFocused_8() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnFocused_8)); }
inline GUIStyleState_t1397964415 * get_m_OnFocused_8() const { return ___m_OnFocused_8; }
inline GUIStyleState_t1397964415 ** get_address_of_m_OnFocused_8() { return &___m_OnFocused_8; }
inline void set_m_OnFocused_8(GUIStyleState_t1397964415 * value)
{
___m_OnFocused_8 = value;
Il2CppCodeGenWriteBarrier((&___m_OnFocused_8), value);
}
inline static int32_t get_offset_of_m_Border_9() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Border_9)); }
inline RectOffset_t1369453676 * get_m_Border_9() const { return ___m_Border_9; }
inline RectOffset_t1369453676 ** get_address_of_m_Border_9() { return &___m_Border_9; }
inline void set_m_Border_9(RectOffset_t1369453676 * value)
{
___m_Border_9 = value;
Il2CppCodeGenWriteBarrier((&___m_Border_9), value);
}
inline static int32_t get_offset_of_m_Padding_10() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Padding_10)); }
inline RectOffset_t1369453676 * get_m_Padding_10() const { return ___m_Padding_10; }
inline RectOffset_t1369453676 ** get_address_of_m_Padding_10() { return &___m_Padding_10; }
inline void set_m_Padding_10(RectOffset_t1369453676 * value)
{
___m_Padding_10 = value;
Il2CppCodeGenWriteBarrier((&___m_Padding_10), value);
}
inline static int32_t get_offset_of_m_Margin_11() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Margin_11)); }
inline RectOffset_t1369453676 * get_m_Margin_11() const { return ___m_Margin_11; }
inline RectOffset_t1369453676 ** get_address_of_m_Margin_11() { return &___m_Margin_11; }
inline void set_m_Margin_11(RectOffset_t1369453676 * value)
{
___m_Margin_11 = value;
Il2CppCodeGenWriteBarrier((&___m_Margin_11), value);
}
inline static int32_t get_offset_of_m_Overflow_12() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Overflow_12)); }
inline RectOffset_t1369453676 * get_m_Overflow_12() const { return ___m_Overflow_12; }
inline RectOffset_t1369453676 ** get_address_of_m_Overflow_12() { return &___m_Overflow_12; }
inline void set_m_Overflow_12(RectOffset_t1369453676 * value)
{
___m_Overflow_12 = value;
Il2CppCodeGenWriteBarrier((&___m_Overflow_12), value);
}
inline static int32_t get_offset_of_m_FontInternal_13() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_FontInternal_13)); }
inline Font_t1956802104 * get_m_FontInternal_13() const { return ___m_FontInternal_13; }
inline Font_t1956802104 ** get_address_of_m_FontInternal_13() { return &___m_FontInternal_13; }
inline void set_m_FontInternal_13(Font_t1956802104 * value)
{
___m_FontInternal_13 = value;
Il2CppCodeGenWriteBarrier((&___m_FontInternal_13), value);
}
};
struct GUIStyle_t3956901511_StaticFields
{
public:
// System.Boolean UnityEngine.GUIStyle::showKeyboardFocus
bool ___showKeyboardFocus_14;
// UnityEngine.GUIStyle UnityEngine.GUIStyle::s_None
GUIStyle_t3956901511 * ___s_None_15;
public:
inline static int32_t get_offset_of_showKeyboardFocus_14() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511_StaticFields, ___showKeyboardFocus_14)); }
inline bool get_showKeyboardFocus_14() const { return ___showKeyboardFocus_14; }
inline bool* get_address_of_showKeyboardFocus_14() { return &___showKeyboardFocus_14; }
inline void set_showKeyboardFocus_14(bool value)
{
___showKeyboardFocus_14 = value;
}
inline static int32_t get_offset_of_s_None_15() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511_StaticFields, ___s_None_15)); }
inline GUIStyle_t3956901511 * get_s_None_15() const { return ___s_None_15; }
inline GUIStyle_t3956901511 ** get_address_of_s_None_15() { return &___s_None_15; }
inline void set_s_None_15(GUIStyle_t3956901511 * value)
{
___s_None_15 = value;
Il2CppCodeGenWriteBarrier((&___s_None_15), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of UnityEngine.GUIStyle
struct GUIStyle_t3956901511_marshaled_pinvoke
{
intptr_t ___m_Ptr_0;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Normal_1;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Hover_2;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Active_3;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Focused_4;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnNormal_5;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnHover_6;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnActive_7;
GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnFocused_8;
RectOffset_t1369453676_marshaled_pinvoke ___m_Border_9;
RectOffset_t1369453676_marshaled_pinvoke ___m_Padding_10;
RectOffset_t1369453676_marshaled_pinvoke ___m_Margin_11;
RectOffset_t1369453676_marshaled_pinvoke ___m_Overflow_12;
Font_t1956802104 * ___m_FontInternal_13;
};
// Native definition for COM marshalling of UnityEngine.GUIStyle
struct GUIStyle_t3956901511_marshaled_com
{
intptr_t ___m_Ptr_0;
GUIStyleState_t1397964415_marshaled_com* ___m_Normal_1;
GUIStyleState_t1397964415_marshaled_com* ___m_Hover_2;
GUIStyleState_t1397964415_marshaled_com* ___m_Active_3;
GUIStyleState_t1397964415_marshaled_com* ___m_Focused_4;
GUIStyleState_t1397964415_marshaled_com* ___m_OnNormal_5;
GUIStyleState_t1397964415_marshaled_com* ___m_OnHover_6;
GUIStyleState_t1397964415_marshaled_com* ___m_OnActive_7;
GUIStyleState_t1397964415_marshaled_com* ___m_OnFocused_8;
RectOffset_t1369453676_marshaled_com* ___m_Border_9;
RectOffset_t1369453676_marshaled_com* ___m_Padding_10;
RectOffset_t1369453676_marshaled_com* ___m_Margin_11;
RectOffset_t1369453676_marshaled_com* ___m_Overflow_12;
Font_t1956802104 * ___m_FontInternal_13;
};
#endif // GUISTYLE_T3956901511_H
#ifndef PARAMETERIZEDTHREADSTART_T3696804522_H
#define PARAMETERIZEDTHREADSTART_T3696804522_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Threading.ParameterizedThreadStart
struct ParameterizedThreadStart_t3696804522 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARAMETERIZEDTHREADSTART_T3696804522_H
#ifndef TRANSFORM_T3600365921_H
#define TRANSFORM_T3600365921_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Transform
struct Transform_t3600365921 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TRANSFORM_T3600365921_H
#ifndef COLLIDER_T1773347010_H
#define COLLIDER_T1773347010_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Collider
struct Collider_t1773347010 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COLLIDER_T1773347010_H
#ifndef BEHAVIOUR_T1437897464_H
#define BEHAVIOUR_T1437897464_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Behaviour
struct Behaviour_t1437897464 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // BEHAVIOUR_T1437897464_H
#ifndef RENDERER_T2627027031_H
#define RENDERER_T2627027031_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Renderer
struct Renderer_t2627027031 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RENDERER_T2627027031_H
#ifndef PARTICLESYSTEM_T1800779281_H
#define PARTICLESYSTEM_T1800779281_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.ParticleSystem
struct ParticleSystem_t1800779281 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PARTICLESYSTEM_T1800779281_H
#ifndef TEXTURE2D_T3840446185_H
#define TEXTURE2D_T3840446185_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Texture2D
struct Texture2D_t3840446185 : public Texture_t3661962703
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TEXTURE2D_T3840446185_H
#ifndef VUFORIACONFIGURATION_T1763229349_H
#define VUFORIACONFIGURATION_T1763229349_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.VuforiaConfiguration
struct VuforiaConfiguration_t1763229349 : public ScriptableObject_t2528358522
{
public:
// Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration Vuforia.VuforiaConfiguration::vuforia
GenericVuforiaConfiguration_t3697830469 * ___vuforia_4;
// Vuforia.VuforiaConfiguration/DigitalEyewearConfiguration Vuforia.VuforiaConfiguration::digitalEyewear
DigitalEyewearConfiguration_t546560202 * ___digitalEyewear_5;
// Vuforia.VuforiaConfiguration/DatabaseLoadConfiguration Vuforia.VuforiaConfiguration::databaseLoad
DatabaseLoadConfiguration_t449697234 * ___databaseLoad_6;
// Vuforia.VuforiaConfiguration/VideoBackgroundConfiguration Vuforia.VuforiaConfiguration::videoBackground
VideoBackgroundConfiguration_t3392414655 * ___videoBackground_7;
// Vuforia.VuforiaConfiguration/DeviceTrackerConfiguration Vuforia.VuforiaConfiguration::deviceTracker
DeviceTrackerConfiguration_t721467671 * ___deviceTracker_8;
// Vuforia.VuforiaConfiguration/SmartTerrainConfiguration Vuforia.VuforiaConfiguration::smartTerrain
SmartTerrainConfiguration_t1514074484 * ___smartTerrain_9;
// Vuforia.VuforiaConfiguration/WebCamConfiguration Vuforia.VuforiaConfiguration::webcam
WebCamConfiguration_t1101614731 * ___webcam_10;
public:
inline static int32_t get_offset_of_vuforia_4() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___vuforia_4)); }
inline GenericVuforiaConfiguration_t3697830469 * get_vuforia_4() const { return ___vuforia_4; }
inline GenericVuforiaConfiguration_t3697830469 ** get_address_of_vuforia_4() { return &___vuforia_4; }
inline void set_vuforia_4(GenericVuforiaConfiguration_t3697830469 * value)
{
___vuforia_4 = value;
Il2CppCodeGenWriteBarrier((&___vuforia_4), value);
}
inline static int32_t get_offset_of_digitalEyewear_5() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___digitalEyewear_5)); }
inline DigitalEyewearConfiguration_t546560202 * get_digitalEyewear_5() const { return ___digitalEyewear_5; }
inline DigitalEyewearConfiguration_t546560202 ** get_address_of_digitalEyewear_5() { return &___digitalEyewear_5; }
inline void set_digitalEyewear_5(DigitalEyewearConfiguration_t546560202 * value)
{
___digitalEyewear_5 = value;
Il2CppCodeGenWriteBarrier((&___digitalEyewear_5), value);
}
inline static int32_t get_offset_of_databaseLoad_6() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___databaseLoad_6)); }
inline DatabaseLoadConfiguration_t449697234 * get_databaseLoad_6() const { return ___databaseLoad_6; }
inline DatabaseLoadConfiguration_t449697234 ** get_address_of_databaseLoad_6() { return &___databaseLoad_6; }
inline void set_databaseLoad_6(DatabaseLoadConfiguration_t449697234 * value)
{
___databaseLoad_6 = value;
Il2CppCodeGenWriteBarrier((&___databaseLoad_6), value);
}
inline static int32_t get_offset_of_videoBackground_7() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___videoBackground_7)); }
inline VideoBackgroundConfiguration_t3392414655 * get_videoBackground_7() const { return ___videoBackground_7; }
inline VideoBackgroundConfiguration_t3392414655 ** get_address_of_videoBackground_7() { return &___videoBackground_7; }
inline void set_videoBackground_7(VideoBackgroundConfiguration_t3392414655 * value)
{
___videoBackground_7 = value;
Il2CppCodeGenWriteBarrier((&___videoBackground_7), value);
}
inline static int32_t get_offset_of_deviceTracker_8() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___deviceTracker_8)); }
inline DeviceTrackerConfiguration_t721467671 * get_deviceTracker_8() const { return ___deviceTracker_8; }
inline DeviceTrackerConfiguration_t721467671 ** get_address_of_deviceTracker_8() { return &___deviceTracker_8; }
inline void set_deviceTracker_8(DeviceTrackerConfiguration_t721467671 * value)
{
___deviceTracker_8 = value;
Il2CppCodeGenWriteBarrier((&___deviceTracker_8), value);
}
inline static int32_t get_offset_of_smartTerrain_9() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___smartTerrain_9)); }
inline SmartTerrainConfiguration_t1514074484 * get_smartTerrain_9() const { return ___smartTerrain_9; }
inline SmartTerrainConfiguration_t1514074484 ** get_address_of_smartTerrain_9() { return &___smartTerrain_9; }
inline void set_smartTerrain_9(SmartTerrainConfiguration_t1514074484 * value)
{
___smartTerrain_9 = value;
Il2CppCodeGenWriteBarrier((&___smartTerrain_9), value);
}
inline static int32_t get_offset_of_webcam_10() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349, ___webcam_10)); }
inline WebCamConfiguration_t1101614731 * get_webcam_10() const { return ___webcam_10; }
inline WebCamConfiguration_t1101614731 ** get_address_of_webcam_10() { return &___webcam_10; }
inline void set_webcam_10(WebCamConfiguration_t1101614731 * value)
{
___webcam_10 = value;
Il2CppCodeGenWriteBarrier((&___webcam_10), value);
}
};
struct VuforiaConfiguration_t1763229349_StaticFields
{
public:
// Vuforia.VuforiaConfiguration Vuforia.VuforiaConfiguration::mInstance
VuforiaConfiguration_t1763229349 * ___mInstance_2;
// System.Object Vuforia.VuforiaConfiguration::mPadlock
RuntimeObject * ___mPadlock_3;
public:
inline static int32_t get_offset_of_mInstance_2() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349_StaticFields, ___mInstance_2)); }
inline VuforiaConfiguration_t1763229349 * get_mInstance_2() const { return ___mInstance_2; }
inline VuforiaConfiguration_t1763229349 ** get_address_of_mInstance_2() { return &___mInstance_2; }
inline void set_mInstance_2(VuforiaConfiguration_t1763229349 * value)
{
___mInstance_2 = value;
Il2CppCodeGenWriteBarrier((&___mInstance_2), value);
}
inline static int32_t get_offset_of_mPadlock_3() { return static_cast<int32_t>(offsetof(VuforiaConfiguration_t1763229349_StaticFields, ___mPadlock_3)); }
inline RuntimeObject * get_mPadlock_3() const { return ___mPadlock_3; }
inline RuntimeObject ** get_address_of_mPadlock_3() { return &___mPadlock_3; }
inline void set_mPadlock_3(RuntimeObject * value)
{
___mPadlock_3 = value;
Il2CppCodeGenWriteBarrier((&___mPadlock_3), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VUFORIACONFIGURATION_T1763229349_H
#ifndef WINDOWFUNCTION_T3146511083_H
#define WINDOWFUNCTION_T3146511083_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.GUI/WindowFunction
struct WindowFunction_t3146511083 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // WINDOWFUNCTION_T3146511083_H
#ifndef ACTION_1_T3593217305_H
#define ACTION_1_T3593217305_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Action`1<Vuforia.VuforiaUnity/InitError>
struct Action_1_t3593217305 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ACTION_1_T3593217305_H
#ifndef FLUVIOSCRIPTABLEOBJECTBASE_T4172713814_H
#define FLUVIOSCRIPTABLEOBJECTBASE_T4172713814_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluvioScriptableObjectBase
struct FluvioScriptableObjectBase_t4172713814 : public ScriptableObject_t2528358522
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIOSCRIPTABLEOBJECTBASE_T4172713814_H
#ifndef THREADSTART_T1006689297_H
#define THREADSTART_T1006689297_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Threading.ThreadStart
struct ThreadStart_t1006689297 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // THREADSTART_T1006689297_H
#ifndef ACTION_1_T3252573759_H
#define ACTION_1_T3252573759_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Action`1<System.Object>
struct Action_1_t3252573759 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ACTION_1_T3252573759_H
#ifndef ACTION_T1264377477_H
#define ACTION_T1264377477_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Action
struct Action_t1264377477 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ACTION_T1264377477_H
#ifndef ACTION_1_T2614539062_H
#define ACTION_1_T2614539062_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Action`1<Thinksquirrel.Fluvio.FluidBase>
struct Action_1_t2614539062 : public MulticastDelegate_t
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ACTION_1_T2614539062_H
#ifndef RIGIDBODY_T3916780224_H
#define RIGIDBODY_T3916780224_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Rigidbody
struct Rigidbody_t3916780224 : public Component_t1923634451
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RIGIDBODY_T3916780224_H
#ifndef FLUVIOCOMPUTESHADER_T2551470295_H
#define FLUVIOCOMPUTESHADER_T2551470295_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluvioComputeShader
struct FluvioComputeShader_t2551470295 : public FluvioScriptableObjectBase_t4172713814
{
public:
// UnityEngine.ComputeShader Thinksquirrel.Fluvio.FluvioComputeShader::m_DirectComputeShader
ComputeShader_t317220254 * ___m_DirectComputeShader_2;
// UnityEngine.ComputeShader Thinksquirrel.Fluvio.FluvioComputeShader::m_ComputeShader
ComputeShader_t317220254 * ___m_ComputeShader_3;
// UnityEngine.TextAsset Thinksquirrel.Fluvio.FluvioComputeShader::m_OpenCLShader
TextAsset_t3022178571 * ___m_OpenCLShader_4;
// System.String Thinksquirrel.Fluvio.FluvioComputeShader::m_OpenCLEditorIncludePath
String_t* ___m_OpenCLEditorIncludePath_5;
// System.String[] Thinksquirrel.Fluvio.FluvioComputeShader::m_OpenCLIncludePaths
StringU5BU5D_t1281789340* ___m_OpenCLIncludePaths_6;
// System.String[] Thinksquirrel.Fluvio.FluvioComputeShader::m_OpenCLIncludeSource
StringU5BU5D_t1281789340* ___m_OpenCLIncludeSource_7;
// System.Int32 Thinksquirrel.Fluvio.FluvioComputeShader::m_OpenCLSourceHash
int32_t ___m_OpenCLSourceHash_8;
// System.Collections.Generic.List`1<System.String> Thinksquirrel.Fluvio.FluvioComputeShader::m_InspectorLog
List_1_t3319525431 * ___m_InspectorLog_9;
// Thinksquirrel.Fluvio.ComputeAPI Thinksquirrel.Fluvio.FluvioComputeShader::m_ComputeAPI
int32_t ___m_ComputeAPI_10;
// System.Boolean Thinksquirrel.Fluvio.FluvioComputeShader::_shouldCompile
bool ____shouldCompile_11;
// System.Boolean Thinksquirrel.Fluvio.FluvioComputeShader::_displayedNotFoundKernel
bool ____displayedNotFoundKernel_12;
// System.Boolean Thinksquirrel.Fluvio.FluvioComputeShader::_hadCompilerError
bool ____hadCompilerError_13;
// Cloo.ComputeProgram Thinksquirrel.Fluvio.FluvioComputeShader::_openCLComputeProgram
ComputeProgram_t346198837 * ____openCLComputeProgram_14;
// Cloo.ComputeKernel[] Thinksquirrel.Fluvio.FluvioComputeShader::_openCLComputeKernels
ComputeKernelU5BU5D_t1715534492* ____openCLComputeKernels_15;
// System.IntPtr[] Thinksquirrel.Fluvio.FluvioComputeShader::m_LocalWorkSize
IntPtrU5BU5D_t4013366056* ___m_LocalWorkSize_16;
// System.IntPtr[] Thinksquirrel.Fluvio.FluvioComputeShader::m_GlobalWorkSize
IntPtrU5BU5D_t4013366056* ___m_GlobalWorkSize_17;
// System.Single[] Thinksquirrel.Fluvio.FluvioComputeShader::s_MatrixFloats
SingleU5BU5D_t1444911251* ___s_MatrixFloats_20;
public:
inline static int32_t get_offset_of_m_DirectComputeShader_2() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_DirectComputeShader_2)); }
inline ComputeShader_t317220254 * get_m_DirectComputeShader_2() const { return ___m_DirectComputeShader_2; }
inline ComputeShader_t317220254 ** get_address_of_m_DirectComputeShader_2() { return &___m_DirectComputeShader_2; }
inline void set_m_DirectComputeShader_2(ComputeShader_t317220254 * value)
{
___m_DirectComputeShader_2 = value;
Il2CppCodeGenWriteBarrier((&___m_DirectComputeShader_2), value);
}
inline static int32_t get_offset_of_m_ComputeShader_3() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_ComputeShader_3)); }
inline ComputeShader_t317220254 * get_m_ComputeShader_3() const { return ___m_ComputeShader_3; }
inline ComputeShader_t317220254 ** get_address_of_m_ComputeShader_3() { return &___m_ComputeShader_3; }
inline void set_m_ComputeShader_3(ComputeShader_t317220254 * value)
{
___m_ComputeShader_3 = value;
Il2CppCodeGenWriteBarrier((&___m_ComputeShader_3), value);
}
inline static int32_t get_offset_of_m_OpenCLShader_4() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_OpenCLShader_4)); }
inline TextAsset_t3022178571 * get_m_OpenCLShader_4() const { return ___m_OpenCLShader_4; }
inline TextAsset_t3022178571 ** get_address_of_m_OpenCLShader_4() { return &___m_OpenCLShader_4; }
inline void set_m_OpenCLShader_4(TextAsset_t3022178571 * value)
{
___m_OpenCLShader_4 = value;
Il2CppCodeGenWriteBarrier((&___m_OpenCLShader_4), value);
}
inline static int32_t get_offset_of_m_OpenCLEditorIncludePath_5() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_OpenCLEditorIncludePath_5)); }
inline String_t* get_m_OpenCLEditorIncludePath_5() const { return ___m_OpenCLEditorIncludePath_5; }
inline String_t** get_address_of_m_OpenCLEditorIncludePath_5() { return &___m_OpenCLEditorIncludePath_5; }
inline void set_m_OpenCLEditorIncludePath_5(String_t* value)
{
___m_OpenCLEditorIncludePath_5 = value;
Il2CppCodeGenWriteBarrier((&___m_OpenCLEditorIncludePath_5), value);
}
inline static int32_t get_offset_of_m_OpenCLIncludePaths_6() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_OpenCLIncludePaths_6)); }
inline StringU5BU5D_t1281789340* get_m_OpenCLIncludePaths_6() const { return ___m_OpenCLIncludePaths_6; }
inline StringU5BU5D_t1281789340** get_address_of_m_OpenCLIncludePaths_6() { return &___m_OpenCLIncludePaths_6; }
inline void set_m_OpenCLIncludePaths_6(StringU5BU5D_t1281789340* value)
{
___m_OpenCLIncludePaths_6 = value;
Il2CppCodeGenWriteBarrier((&___m_OpenCLIncludePaths_6), value);
}
inline static int32_t get_offset_of_m_OpenCLIncludeSource_7() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_OpenCLIncludeSource_7)); }
inline StringU5BU5D_t1281789340* get_m_OpenCLIncludeSource_7() const { return ___m_OpenCLIncludeSource_7; }
inline StringU5BU5D_t1281789340** get_address_of_m_OpenCLIncludeSource_7() { return &___m_OpenCLIncludeSource_7; }
inline void set_m_OpenCLIncludeSource_7(StringU5BU5D_t1281789340* value)
{
___m_OpenCLIncludeSource_7 = value;
Il2CppCodeGenWriteBarrier((&___m_OpenCLIncludeSource_7), value);
}
inline static int32_t get_offset_of_m_OpenCLSourceHash_8() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_OpenCLSourceHash_8)); }
inline int32_t get_m_OpenCLSourceHash_8() const { return ___m_OpenCLSourceHash_8; }
inline int32_t* get_address_of_m_OpenCLSourceHash_8() { return &___m_OpenCLSourceHash_8; }
inline void set_m_OpenCLSourceHash_8(int32_t value)
{
___m_OpenCLSourceHash_8 = value;
}
inline static int32_t get_offset_of_m_InspectorLog_9() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_InspectorLog_9)); }
inline List_1_t3319525431 * get_m_InspectorLog_9() const { return ___m_InspectorLog_9; }
inline List_1_t3319525431 ** get_address_of_m_InspectorLog_9() { return &___m_InspectorLog_9; }
inline void set_m_InspectorLog_9(List_1_t3319525431 * value)
{
___m_InspectorLog_9 = value;
Il2CppCodeGenWriteBarrier((&___m_InspectorLog_9), value);
}
inline static int32_t get_offset_of_m_ComputeAPI_10() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_ComputeAPI_10)); }
inline int32_t get_m_ComputeAPI_10() const { return ___m_ComputeAPI_10; }
inline int32_t* get_address_of_m_ComputeAPI_10() { return &___m_ComputeAPI_10; }
inline void set_m_ComputeAPI_10(int32_t value)
{
___m_ComputeAPI_10 = value;
}
inline static int32_t get_offset_of__shouldCompile_11() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ____shouldCompile_11)); }
inline bool get__shouldCompile_11() const { return ____shouldCompile_11; }
inline bool* get_address_of__shouldCompile_11() { return &____shouldCompile_11; }
inline void set__shouldCompile_11(bool value)
{
____shouldCompile_11 = value;
}
inline static int32_t get_offset_of__displayedNotFoundKernel_12() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ____displayedNotFoundKernel_12)); }
inline bool get__displayedNotFoundKernel_12() const { return ____displayedNotFoundKernel_12; }
inline bool* get_address_of__displayedNotFoundKernel_12() { return &____displayedNotFoundKernel_12; }
inline void set__displayedNotFoundKernel_12(bool value)
{
____displayedNotFoundKernel_12 = value;
}
inline static int32_t get_offset_of__hadCompilerError_13() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ____hadCompilerError_13)); }
inline bool get__hadCompilerError_13() const { return ____hadCompilerError_13; }
inline bool* get_address_of__hadCompilerError_13() { return &____hadCompilerError_13; }
inline void set__hadCompilerError_13(bool value)
{
____hadCompilerError_13 = value;
}
inline static int32_t get_offset_of__openCLComputeProgram_14() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ____openCLComputeProgram_14)); }
inline ComputeProgram_t346198837 * get__openCLComputeProgram_14() const { return ____openCLComputeProgram_14; }
inline ComputeProgram_t346198837 ** get_address_of__openCLComputeProgram_14() { return &____openCLComputeProgram_14; }
inline void set__openCLComputeProgram_14(ComputeProgram_t346198837 * value)
{
____openCLComputeProgram_14 = value;
Il2CppCodeGenWriteBarrier((&____openCLComputeProgram_14), value);
}
inline static int32_t get_offset_of__openCLComputeKernels_15() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ____openCLComputeKernels_15)); }
inline ComputeKernelU5BU5D_t1715534492* get__openCLComputeKernels_15() const { return ____openCLComputeKernels_15; }
inline ComputeKernelU5BU5D_t1715534492** get_address_of__openCLComputeKernels_15() { return &____openCLComputeKernels_15; }
inline void set__openCLComputeKernels_15(ComputeKernelU5BU5D_t1715534492* value)
{
____openCLComputeKernels_15 = value;
Il2CppCodeGenWriteBarrier((&____openCLComputeKernels_15), value);
}
inline static int32_t get_offset_of_m_LocalWorkSize_16() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_LocalWorkSize_16)); }
inline IntPtrU5BU5D_t4013366056* get_m_LocalWorkSize_16() const { return ___m_LocalWorkSize_16; }
inline IntPtrU5BU5D_t4013366056** get_address_of_m_LocalWorkSize_16() { return &___m_LocalWorkSize_16; }
inline void set_m_LocalWorkSize_16(IntPtrU5BU5D_t4013366056* value)
{
___m_LocalWorkSize_16 = value;
Il2CppCodeGenWriteBarrier((&___m_LocalWorkSize_16), value);
}
inline static int32_t get_offset_of_m_GlobalWorkSize_17() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___m_GlobalWorkSize_17)); }
inline IntPtrU5BU5D_t4013366056* get_m_GlobalWorkSize_17() const { return ___m_GlobalWorkSize_17; }
inline IntPtrU5BU5D_t4013366056** get_address_of_m_GlobalWorkSize_17() { return &___m_GlobalWorkSize_17; }
inline void set_m_GlobalWorkSize_17(IntPtrU5BU5D_t4013366056* value)
{
___m_GlobalWorkSize_17 = value;
Il2CppCodeGenWriteBarrier((&___m_GlobalWorkSize_17), value);
}
inline static int32_t get_offset_of_s_MatrixFloats_20() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295, ___s_MatrixFloats_20)); }
inline SingleU5BU5D_t1444911251* get_s_MatrixFloats_20() const { return ___s_MatrixFloats_20; }
inline SingleU5BU5D_t1444911251** get_address_of_s_MatrixFloats_20() { return &___s_MatrixFloats_20; }
inline void set_s_MatrixFloats_20(SingleU5BU5D_t1444911251* value)
{
___s_MatrixFloats_20 = value;
Il2CppCodeGenWriteBarrier((&___s_MatrixFloats_20), value);
}
};
struct FluvioComputeShader_t2551470295_StaticFields
{
public:
// System.Collections.Generic.Dictionary`2<System.String,System.Int32> Thinksquirrel.Fluvio.FluvioComputeShader::s_ArgToIndex
Dictionary_2_t2736202052 * ___s_ArgToIndex_18;
// Thinksquirrel.Fluvio.FluvioComputeShader/IComputeIncludeParser Thinksquirrel.Fluvio.FluvioComputeShader::s_IncludeParser
RuntimeObject* ___s_IncludeParser_19;
// System.Action`2<UnityEngine.TextAsset,System.String> Thinksquirrel.Fluvio.FluvioComputeShader::_onOpenCLCompilerError
Action_2_t1173775360 * ____onOpenCLCompilerError_21;
// System.Text.RegularExpressions.MatchEvaluator Thinksquirrel.Fluvio.FluvioComputeShader::<>f__am$cache14
MatchEvaluator_t632122704 * ___U3CU3Ef__amU24cache14_22;
public:
inline static int32_t get_offset_of_s_ArgToIndex_18() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295_StaticFields, ___s_ArgToIndex_18)); }
inline Dictionary_2_t2736202052 * get_s_ArgToIndex_18() const { return ___s_ArgToIndex_18; }
inline Dictionary_2_t2736202052 ** get_address_of_s_ArgToIndex_18() { return &___s_ArgToIndex_18; }
inline void set_s_ArgToIndex_18(Dictionary_2_t2736202052 * value)
{
___s_ArgToIndex_18 = value;
Il2CppCodeGenWriteBarrier((&___s_ArgToIndex_18), value);
}
inline static int32_t get_offset_of_s_IncludeParser_19() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295_StaticFields, ___s_IncludeParser_19)); }
inline RuntimeObject* get_s_IncludeParser_19() const { return ___s_IncludeParser_19; }
inline RuntimeObject** get_address_of_s_IncludeParser_19() { return &___s_IncludeParser_19; }
inline void set_s_IncludeParser_19(RuntimeObject* value)
{
___s_IncludeParser_19 = value;
Il2CppCodeGenWriteBarrier((&___s_IncludeParser_19), value);
}
inline static int32_t get_offset_of__onOpenCLCompilerError_21() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295_StaticFields, ____onOpenCLCompilerError_21)); }
inline Action_2_t1173775360 * get__onOpenCLCompilerError_21() const { return ____onOpenCLCompilerError_21; }
inline Action_2_t1173775360 ** get_address_of__onOpenCLCompilerError_21() { return &____onOpenCLCompilerError_21; }
inline void set__onOpenCLCompilerError_21(Action_2_t1173775360 * value)
{
____onOpenCLCompilerError_21 = value;
Il2CppCodeGenWriteBarrier((&____onOpenCLCompilerError_21), value);
}
inline static int32_t get_offset_of_U3CU3Ef__amU24cache14_22() { return static_cast<int32_t>(offsetof(FluvioComputeShader_t2551470295_StaticFields, ___U3CU3Ef__amU24cache14_22)); }
inline MatchEvaluator_t632122704 * get_U3CU3Ef__amU24cache14_22() const { return ___U3CU3Ef__amU24cache14_22; }
inline MatchEvaluator_t632122704 ** get_address_of_U3CU3Ef__amU24cache14_22() { return &___U3CU3Ef__amU24cache14_22; }
inline void set_U3CU3Ef__amU24cache14_22(MatchEvaluator_t632122704 * value)
{
___U3CU3Ef__amU24cache14_22 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cache14_22), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIOCOMPUTESHADER_T2551470295_H
#ifndef CAMERA_T4157153871_H
#define CAMERA_T4157153871_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Camera
struct Camera_t4157153871 : public Behaviour_t1437897464
{
public:
public:
};
struct Camera_t4157153871_StaticFields
{
public:
// UnityEngine.Camera/CameraCallback UnityEngine.Camera::onPreCull
CameraCallback_t190067161 * ___onPreCull_2;
// UnityEngine.Camera/CameraCallback UnityEngine.Camera::onPreRender
CameraCallback_t190067161 * ___onPreRender_3;
// UnityEngine.Camera/CameraCallback UnityEngine.Camera::onPostRender
CameraCallback_t190067161 * ___onPostRender_4;
public:
inline static int32_t get_offset_of_onPreCull_2() { return static_cast<int32_t>(offsetof(Camera_t4157153871_StaticFields, ___onPreCull_2)); }
inline CameraCallback_t190067161 * get_onPreCull_2() const { return ___onPreCull_2; }
inline CameraCallback_t190067161 ** get_address_of_onPreCull_2() { return &___onPreCull_2; }
inline void set_onPreCull_2(CameraCallback_t190067161 * value)
{
___onPreCull_2 = value;
Il2CppCodeGenWriteBarrier((&___onPreCull_2), value);
}
inline static int32_t get_offset_of_onPreRender_3() { return static_cast<int32_t>(offsetof(Camera_t4157153871_StaticFields, ___onPreRender_3)); }
inline CameraCallback_t190067161 * get_onPreRender_3() const { return ___onPreRender_3; }
inline CameraCallback_t190067161 ** get_address_of_onPreRender_3() { return &___onPreRender_3; }
inline void set_onPreRender_3(CameraCallback_t190067161 * value)
{
___onPreRender_3 = value;
Il2CppCodeGenWriteBarrier((&___onPreRender_3), value);
}
inline static int32_t get_offset_of_onPostRender_4() { return static_cast<int32_t>(offsetof(Camera_t4157153871_StaticFields, ___onPostRender_4)); }
inline CameraCallback_t190067161 * get_onPostRender_4() const { return ___onPostRender_4; }
inline CameraCallback_t190067161 ** get_address_of_onPostRender_4() { return &___onPostRender_4; }
inline void set_onPostRender_4(CameraCallback_t190067161 * value)
{
___onPostRender_4 = value;
Il2CppCodeGenWriteBarrier((&___onPostRender_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CAMERA_T4157153871_H
#ifndef CANVAS_T3310196443_H
#define CANVAS_T3310196443_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Canvas
struct Canvas_t3310196443 : public Behaviour_t1437897464
{
public:
public:
};
struct Canvas_t3310196443_StaticFields
{
public:
// UnityEngine.Canvas/WillRenderCanvases UnityEngine.Canvas::willRenderCanvases
WillRenderCanvases_t3309123499 * ___willRenderCanvases_2;
public:
inline static int32_t get_offset_of_willRenderCanvases_2() { return static_cast<int32_t>(offsetof(Canvas_t3310196443_StaticFields, ___willRenderCanvases_2)); }
inline WillRenderCanvases_t3309123499 * get_willRenderCanvases_2() const { return ___willRenderCanvases_2; }
inline WillRenderCanvases_t3309123499 ** get_address_of_willRenderCanvases_2() { return &___willRenderCanvases_2; }
inline void set_willRenderCanvases_2(WillRenderCanvases_t3309123499 * value)
{
___willRenderCanvases_2 = value;
Il2CppCodeGenWriteBarrier((&___willRenderCanvases_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CANVAS_T3310196443_H
#ifndef MONOBEHAVIOUR_T3962482529_H
#define MONOBEHAVIOUR_T3962482529_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t3962482529 : public Behaviour_t1437897464
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MONOBEHAVIOUR_T3962482529_H
#ifndef WAYFIND_T1312431753_H
#define WAYFIND_T1312431753_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Wayfind
struct Wayfind_t1312431753 : public MonoBehaviour_t3962482529
{
public:
// UnityEngine.GameObject Wayfind::Look
GameObject_t1113636619 * ___Look_2;
// UnityEngine.GameObject Wayfind::Cylinder
GameObject_t1113636619 * ___Cylinder_3;
// UnityEngine.GameObject Wayfind::Arrow
GameObject_t1113636619 * ___Arrow_4;
public:
inline static int32_t get_offset_of_Look_2() { return static_cast<int32_t>(offsetof(Wayfind_t1312431753, ___Look_2)); }
inline GameObject_t1113636619 * get_Look_2() const { return ___Look_2; }
inline GameObject_t1113636619 ** get_address_of_Look_2() { return &___Look_2; }
inline void set_Look_2(GameObject_t1113636619 * value)
{
___Look_2 = value;
Il2CppCodeGenWriteBarrier((&___Look_2), value);
}
inline static int32_t get_offset_of_Cylinder_3() { return static_cast<int32_t>(offsetof(Wayfind_t1312431753, ___Cylinder_3)); }
inline GameObject_t1113636619 * get_Cylinder_3() const { return ___Cylinder_3; }
inline GameObject_t1113636619 ** get_address_of_Cylinder_3() { return &___Cylinder_3; }
inline void set_Cylinder_3(GameObject_t1113636619 * value)
{
___Cylinder_3 = value;
Il2CppCodeGenWriteBarrier((&___Cylinder_3), value);
}
inline static int32_t get_offset_of_Arrow_4() { return static_cast<int32_t>(offsetof(Wayfind_t1312431753, ___Arrow_4)); }
inline GameObject_t1113636619 * get_Arrow_4() const { return ___Arrow_4; }
inline GameObject_t1113636619 ** get_address_of_Arrow_4() { return &___Arrow_4; }
inline void set_Arrow_4(GameObject_t1113636619 * value)
{
___Arrow_4 = value;
Il2CppCodeGenWriteBarrier((&___Arrow_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // WAYFIND_T1312431753_H
#ifndef TRACKABLEBEHAVIOUR_T1113559212_H
#define TRACKABLEBEHAVIOUR_T1113559212_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Vuforia.TrackableBehaviour
struct TrackableBehaviour_t1113559212 : public MonoBehaviour_t3962482529
{
public:
// System.Double Vuforia.TrackableBehaviour::<TimeStamp>k__BackingField
double ___U3CTimeStampU3Ek__BackingField_2;
// System.String Vuforia.TrackableBehaviour::mTrackableName
String_t* ___mTrackableName_3;
// System.Boolean Vuforia.TrackableBehaviour::mPreserveChildSize
bool ___mPreserveChildSize_4;
// System.Boolean Vuforia.TrackableBehaviour::mInitializedInEditor
bool ___mInitializedInEditor_5;
// UnityEngine.Vector3 Vuforia.TrackableBehaviour::mPreviousScale
Vector3_t3722313464 ___mPreviousScale_6;
// Vuforia.TrackableBehaviour/Status Vuforia.TrackableBehaviour::mStatus
int32_t ___mStatus_7;
// Vuforia.Trackable Vuforia.TrackableBehaviour::mTrackable
RuntimeObject* ___mTrackable_8;
// System.Collections.Generic.List`1<Vuforia.ITrackableEventHandler> Vuforia.TrackableBehaviour::mTrackableEventHandlers
List_1_t2968050330 * ___mTrackableEventHandlers_9;
public:
inline static int32_t get_offset_of_U3CTimeStampU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___U3CTimeStampU3Ek__BackingField_2)); }
inline double get_U3CTimeStampU3Ek__BackingField_2() const { return ___U3CTimeStampU3Ek__BackingField_2; }
inline double* get_address_of_U3CTimeStampU3Ek__BackingField_2() { return &___U3CTimeStampU3Ek__BackingField_2; }
inline void set_U3CTimeStampU3Ek__BackingField_2(double value)
{
___U3CTimeStampU3Ek__BackingField_2 = value;
}
inline static int32_t get_offset_of_mTrackableName_3() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mTrackableName_3)); }
inline String_t* get_mTrackableName_3() const { return ___mTrackableName_3; }
inline String_t** get_address_of_mTrackableName_3() { return &___mTrackableName_3; }
inline void set_mTrackableName_3(String_t* value)
{
___mTrackableName_3 = value;
Il2CppCodeGenWriteBarrier((&___mTrackableName_3), value);
}
inline static int32_t get_offset_of_mPreserveChildSize_4() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mPreserveChildSize_4)); }
inline bool get_mPreserveChildSize_4() const { return ___mPreserveChildSize_4; }
inline bool* get_address_of_mPreserveChildSize_4() { return &___mPreserveChildSize_4; }
inline void set_mPreserveChildSize_4(bool value)
{
___mPreserveChildSize_4 = value;
}
inline static int32_t get_offset_of_mInitializedInEditor_5() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mInitializedInEditor_5)); }
inline bool get_mInitializedInEditor_5() const { return ___mInitializedInEditor_5; }
inline bool* get_address_of_mInitializedInEditor_5() { return &___mInitializedInEditor_5; }
inline void set_mInitializedInEditor_5(bool value)
{
___mInitializedInEditor_5 = value;
}
inline static int32_t get_offset_of_mPreviousScale_6() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mPreviousScale_6)); }
inline Vector3_t3722313464 get_mPreviousScale_6() const { return ___mPreviousScale_6; }
inline Vector3_t3722313464 * get_address_of_mPreviousScale_6() { return &___mPreviousScale_6; }
inline void set_mPreviousScale_6(Vector3_t3722313464 value)
{
___mPreviousScale_6 = value;
}
inline static int32_t get_offset_of_mStatus_7() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mStatus_7)); }
inline int32_t get_mStatus_7() const { return ___mStatus_7; }
inline int32_t* get_address_of_mStatus_7() { return &___mStatus_7; }
inline void set_mStatus_7(int32_t value)
{
___mStatus_7 = value;
}
inline static int32_t get_offset_of_mTrackable_8() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mTrackable_8)); }
inline RuntimeObject* get_mTrackable_8() const { return ___mTrackable_8; }
inline RuntimeObject** get_address_of_mTrackable_8() { return &___mTrackable_8; }
inline void set_mTrackable_8(RuntimeObject* value)
{
___mTrackable_8 = value;
Il2CppCodeGenWriteBarrier((&___mTrackable_8), value);
}
inline static int32_t get_offset_of_mTrackableEventHandlers_9() { return static_cast<int32_t>(offsetof(TrackableBehaviour_t1113559212, ___mTrackableEventHandlers_9)); }
inline List_1_t2968050330 * get_mTrackableEventHandlers_9() const { return ___mTrackableEventHandlers_9; }
inline List_1_t2968050330 ** get_address_of_mTrackableEventHandlers_9() { return &___mTrackableEventHandlers_9; }
inline void set_mTrackableEventHandlers_9(List_1_t2968050330 * value)
{
___mTrackableEventHandlers_9 = value;
Il2CppCodeGenWriteBarrier((&___mTrackableEventHandlers_9), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TRACKABLEBEHAVIOUR_T1113559212_H
#ifndef DEFAULTTRACKABLEEVENTHANDLER_T1588957063_H
#define DEFAULTTRACKABLEEVENTHANDLER_T1588957063_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// DefaultTrackableEventHandler
struct DefaultTrackableEventHandler_t1588957063 : public MonoBehaviour_t3962482529
{
public:
// Vuforia.TrackableBehaviour DefaultTrackableEventHandler::mTrackableBehaviour
TrackableBehaviour_t1113559212 * ___mTrackableBehaviour_2;
public:
inline static int32_t get_offset_of_mTrackableBehaviour_2() { return static_cast<int32_t>(offsetof(DefaultTrackableEventHandler_t1588957063, ___mTrackableBehaviour_2)); }
inline TrackableBehaviour_t1113559212 * get_mTrackableBehaviour_2() const { return ___mTrackableBehaviour_2; }
inline TrackableBehaviour_t1113559212 ** get_address_of_mTrackableBehaviour_2() { return &___mTrackableBehaviour_2; }
inline void set_mTrackableBehaviour_2(TrackableBehaviour_t1113559212 * value)
{
___mTrackableBehaviour_2 = value;
Il2CppCodeGenWriteBarrier((&___mTrackableBehaviour_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DEFAULTTRACKABLEEVENTHANDLER_T1588957063_H
#ifndef DEFAULTINITIALIZATIONERRORHANDLER_T3109936861_H
#define DEFAULTINITIALIZATIONERRORHANDLER_T3109936861_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// DefaultInitializationErrorHandler
struct DefaultInitializationErrorHandler_t3109936861 : public MonoBehaviour_t3962482529
{
public:
// System.String DefaultInitializationErrorHandler::mErrorText
String_t* ___mErrorText_2;
// System.Boolean DefaultInitializationErrorHandler::mErrorOccurred
bool ___mErrorOccurred_3;
// UnityEngine.GUIStyle DefaultInitializationErrorHandler::bodyStyle
GUIStyle_t3956901511 * ___bodyStyle_5;
// UnityEngine.GUIStyle DefaultInitializationErrorHandler::headerStyle
GUIStyle_t3956901511 * ___headerStyle_6;
// UnityEngine.GUIStyle DefaultInitializationErrorHandler::footerStyle
GUIStyle_t3956901511 * ___footerStyle_7;
// UnityEngine.Texture2D DefaultInitializationErrorHandler::bodyTexture
Texture2D_t3840446185 * ___bodyTexture_8;
// UnityEngine.Texture2D DefaultInitializationErrorHandler::headerTexture
Texture2D_t3840446185 * ___headerTexture_9;
// UnityEngine.Texture2D DefaultInitializationErrorHandler::footerTexture
Texture2D_t3840446185 * ___footerTexture_10;
public:
inline static int32_t get_offset_of_mErrorText_2() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___mErrorText_2)); }
inline String_t* get_mErrorText_2() const { return ___mErrorText_2; }
inline String_t** get_address_of_mErrorText_2() { return &___mErrorText_2; }
inline void set_mErrorText_2(String_t* value)
{
___mErrorText_2 = value;
Il2CppCodeGenWriteBarrier((&___mErrorText_2), value);
}
inline static int32_t get_offset_of_mErrorOccurred_3() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___mErrorOccurred_3)); }
inline bool get_mErrorOccurred_3() const { return ___mErrorOccurred_3; }
inline bool* get_address_of_mErrorOccurred_3() { return &___mErrorOccurred_3; }
inline void set_mErrorOccurred_3(bool value)
{
___mErrorOccurred_3 = value;
}
inline static int32_t get_offset_of_bodyStyle_5() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___bodyStyle_5)); }
inline GUIStyle_t3956901511 * get_bodyStyle_5() const { return ___bodyStyle_5; }
inline GUIStyle_t3956901511 ** get_address_of_bodyStyle_5() { return &___bodyStyle_5; }
inline void set_bodyStyle_5(GUIStyle_t3956901511 * value)
{
___bodyStyle_5 = value;
Il2CppCodeGenWriteBarrier((&___bodyStyle_5), value);
}
inline static int32_t get_offset_of_headerStyle_6() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___headerStyle_6)); }
inline GUIStyle_t3956901511 * get_headerStyle_6() const { return ___headerStyle_6; }
inline GUIStyle_t3956901511 ** get_address_of_headerStyle_6() { return &___headerStyle_6; }
inline void set_headerStyle_6(GUIStyle_t3956901511 * value)
{
___headerStyle_6 = value;
Il2CppCodeGenWriteBarrier((&___headerStyle_6), value);
}
inline static int32_t get_offset_of_footerStyle_7() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___footerStyle_7)); }
inline GUIStyle_t3956901511 * get_footerStyle_7() const { return ___footerStyle_7; }
inline GUIStyle_t3956901511 ** get_address_of_footerStyle_7() { return &___footerStyle_7; }
inline void set_footerStyle_7(GUIStyle_t3956901511 * value)
{
___footerStyle_7 = value;
Il2CppCodeGenWriteBarrier((&___footerStyle_7), value);
}
inline static int32_t get_offset_of_bodyTexture_8() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___bodyTexture_8)); }
inline Texture2D_t3840446185 * get_bodyTexture_8() const { return ___bodyTexture_8; }
inline Texture2D_t3840446185 ** get_address_of_bodyTexture_8() { return &___bodyTexture_8; }
inline void set_bodyTexture_8(Texture2D_t3840446185 * value)
{
___bodyTexture_8 = value;
Il2CppCodeGenWriteBarrier((&___bodyTexture_8), value);
}
inline static int32_t get_offset_of_headerTexture_9() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___headerTexture_9)); }
inline Texture2D_t3840446185 * get_headerTexture_9() const { return ___headerTexture_9; }
inline Texture2D_t3840446185 ** get_address_of_headerTexture_9() { return &___headerTexture_9; }
inline void set_headerTexture_9(Texture2D_t3840446185 * value)
{
___headerTexture_9 = value;
Il2CppCodeGenWriteBarrier((&___headerTexture_9), value);
}
inline static int32_t get_offset_of_footerTexture_10() { return static_cast<int32_t>(offsetof(DefaultInitializationErrorHandler_t3109936861, ___footerTexture_10)); }
inline Texture2D_t3840446185 * get_footerTexture_10() const { return ___footerTexture_10; }
inline Texture2D_t3840446185 ** get_address_of_footerTexture_10() { return &___footerTexture_10; }
inline void set_footerTexture_10(Texture2D_t3840446185 * value)
{
___footerTexture_10 = value;
Il2CppCodeGenWriteBarrier((&___footerTexture_10), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DEFAULTINITIALIZATIONERRORHANDLER_T3109936861_H
#ifndef POINTERSCRIPT_T3628587701_H
#define POINTERSCRIPT_T3628587701_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// PointerScript
struct PointerScript_t3628587701 : public MonoBehaviour_t3962482529
{
public:
// HelperScript PointerScript::helper
HelperScript_t1151587737 * ___helper_2;
// UnityEngine.GameObject PointerScript::pointer
GameObject_t1113636619 * ___pointer_3;
// UnityEngine.Color PointerScript::BeakerColor
Color_t2555686324 ___BeakerColor_4;
// UnityEngine.Color PointerScript::DyeColor
Color_t2555686324 ___DyeColor_5;
// UnityEngine.Material PointerScript::BeakerMat
Material_t340375123 * ___BeakerMat_6;
// UnityEngine.GameObject PointerScript::Beaker
GameObject_t1113636619 * ___Beaker_7;
// UnityEngine.GameObject PointerScript::Bucket
GameObject_t1113636619 * ___Bucket_8;
// UnityEngine.GameObject PointerScript::Lab
GameObject_t1113636619 * ___Lab_9;
// UnityEngine.GameObject PointerScript::Faucet
GameObject_t1113636619 * ___Faucet_10;
// UnityEngine.GameObject PointerScript::Arrow
GameObject_t1113636619 * ___Arrow_11;
// System.Boolean PointerScript::FaucetActive
bool ___FaucetActive_12;
// System.Single PointerScript::BeakerContains
float ___BeakerContains_13;
public:
inline static int32_t get_offset_of_helper_2() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___helper_2)); }
inline HelperScript_t1151587737 * get_helper_2() const { return ___helper_2; }
inline HelperScript_t1151587737 ** get_address_of_helper_2() { return &___helper_2; }
inline void set_helper_2(HelperScript_t1151587737 * value)
{
___helper_2 = value;
Il2CppCodeGenWriteBarrier((&___helper_2), value);
}
inline static int32_t get_offset_of_pointer_3() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___pointer_3)); }
inline GameObject_t1113636619 * get_pointer_3() const { return ___pointer_3; }
inline GameObject_t1113636619 ** get_address_of_pointer_3() { return &___pointer_3; }
inline void set_pointer_3(GameObject_t1113636619 * value)
{
___pointer_3 = value;
Il2CppCodeGenWriteBarrier((&___pointer_3), value);
}
inline static int32_t get_offset_of_BeakerColor_4() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___BeakerColor_4)); }
inline Color_t2555686324 get_BeakerColor_4() const { return ___BeakerColor_4; }
inline Color_t2555686324 * get_address_of_BeakerColor_4() { return &___BeakerColor_4; }
inline void set_BeakerColor_4(Color_t2555686324 value)
{
___BeakerColor_4 = value;
}
inline static int32_t get_offset_of_DyeColor_5() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___DyeColor_5)); }
inline Color_t2555686324 get_DyeColor_5() const { return ___DyeColor_5; }
inline Color_t2555686324 * get_address_of_DyeColor_5() { return &___DyeColor_5; }
inline void set_DyeColor_5(Color_t2555686324 value)
{
___DyeColor_5 = value;
}
inline static int32_t get_offset_of_BeakerMat_6() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___BeakerMat_6)); }
inline Material_t340375123 * get_BeakerMat_6() const { return ___BeakerMat_6; }
inline Material_t340375123 ** get_address_of_BeakerMat_6() { return &___BeakerMat_6; }
inline void set_BeakerMat_6(Material_t340375123 * value)
{
___BeakerMat_6 = value;
Il2CppCodeGenWriteBarrier((&___BeakerMat_6), value);
}
inline static int32_t get_offset_of_Beaker_7() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___Beaker_7)); }
inline GameObject_t1113636619 * get_Beaker_7() const { return ___Beaker_7; }
inline GameObject_t1113636619 ** get_address_of_Beaker_7() { return &___Beaker_7; }
inline void set_Beaker_7(GameObject_t1113636619 * value)
{
___Beaker_7 = value;
Il2CppCodeGenWriteBarrier((&___Beaker_7), value);
}
inline static int32_t get_offset_of_Bucket_8() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___Bucket_8)); }
inline GameObject_t1113636619 * get_Bucket_8() const { return ___Bucket_8; }
inline GameObject_t1113636619 ** get_address_of_Bucket_8() { return &___Bucket_8; }
inline void set_Bucket_8(GameObject_t1113636619 * value)
{
___Bucket_8 = value;
Il2CppCodeGenWriteBarrier((&___Bucket_8), value);
}
inline static int32_t get_offset_of_Lab_9() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___Lab_9)); }
inline GameObject_t1113636619 * get_Lab_9() const { return ___Lab_9; }
inline GameObject_t1113636619 ** get_address_of_Lab_9() { return &___Lab_9; }
inline void set_Lab_9(GameObject_t1113636619 * value)
{
___Lab_9 = value;
Il2CppCodeGenWriteBarrier((&___Lab_9), value);
}
inline static int32_t get_offset_of_Faucet_10() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___Faucet_10)); }
inline GameObject_t1113636619 * get_Faucet_10() const { return ___Faucet_10; }
inline GameObject_t1113636619 ** get_address_of_Faucet_10() { return &___Faucet_10; }
inline void set_Faucet_10(GameObject_t1113636619 * value)
{
___Faucet_10 = value;
Il2CppCodeGenWriteBarrier((&___Faucet_10), value);
}
inline static int32_t get_offset_of_Arrow_11() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___Arrow_11)); }
inline GameObject_t1113636619 * get_Arrow_11() const { return ___Arrow_11; }
inline GameObject_t1113636619 ** get_address_of_Arrow_11() { return &___Arrow_11; }
inline void set_Arrow_11(GameObject_t1113636619 * value)
{
___Arrow_11 = value;
Il2CppCodeGenWriteBarrier((&___Arrow_11), value);
}
inline static int32_t get_offset_of_FaucetActive_12() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___FaucetActive_12)); }
inline bool get_FaucetActive_12() const { return ___FaucetActive_12; }
inline bool* get_address_of_FaucetActive_12() { return &___FaucetActive_12; }
inline void set_FaucetActive_12(bool value)
{
___FaucetActive_12 = value;
}
inline static int32_t get_offset_of_BeakerContains_13() { return static_cast<int32_t>(offsetof(PointerScript_t3628587701, ___BeakerContains_13)); }
inline float get_BeakerContains_13() const { return ___BeakerContains_13; }
inline float* get_address_of_BeakerContains_13() { return &___BeakerContains_13; }
inline void set_BeakerContains_13(float value)
{
___BeakerContains_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // POINTERSCRIPT_T3628587701_H
#ifndef WALKTHROUGHSCRIPT_T1234213269_H
#define WALKTHROUGHSCRIPT_T1234213269_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// WalkthroughScript
struct WalkthroughScript_t1234213269 : public MonoBehaviour_t3962482529
{
public:
// System.String WalkthroughScript::step1
String_t* ___step1_2;
// System.String WalkthroughScript::step1B
String_t* ___step1B_3;
// UnityEngine.GameObject WalkthroughScript::Mordant
GameObject_t1113636619 * ___Mordant_6;
// System.String WalkthroughScript::step2
String_t* ___step2_7;
// System.String WalkthroughScript::step2B
String_t* ___step2B_8;
// System.String WalkthroughScript::step3
String_t* ___step3_9;
// System.String WalkthroughScript::step3B
String_t* ___step3B_10;
// System.String WalkthroughScript::step4
String_t* ___step4_11;
// System.String WalkthroughScript::step4B
String_t* ___step4B_12;
// System.String WalkthroughScript::step5
String_t* ___step5_13;
// System.String WalkthroughScript::step5B
String_t* ___step5B_14;
// System.String[] WalkthroughScript::step1Items
StringU5BU5D_t1281789340* ___step1Items_15;
// System.String[] WalkthroughScript::step2Items
StringU5BU5D_t1281789340* ___step2Items_16;
// UnityEngine.GameObject WalkthroughScript::InfoQuad
GameObject_t1113636619 * ___InfoQuad_17;
// UnityEngine.GameObject WalkthroughScript::ItemQuad
GameObject_t1113636619 * ___ItemQuad_18;
// UnityEngine.GameObject WalkthroughScript::InstructionQuad
GameObject_t1113636619 * ___InstructionQuad_19;
// UnityEngine.GameObject WalkthroughScript::Lab
GameObject_t1113636619 * ___Lab_20;
public:
inline static int32_t get_offset_of_step1_2() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step1_2)); }
inline String_t* get_step1_2() const { return ___step1_2; }
inline String_t** get_address_of_step1_2() { return &___step1_2; }
inline void set_step1_2(String_t* value)
{
___step1_2 = value;
Il2CppCodeGenWriteBarrier((&___step1_2), value);
}
inline static int32_t get_offset_of_step1B_3() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step1B_3)); }
inline String_t* get_step1B_3() const { return ___step1B_3; }
inline String_t** get_address_of_step1B_3() { return &___step1B_3; }
inline void set_step1B_3(String_t* value)
{
___step1B_3 = value;
Il2CppCodeGenWriteBarrier((&___step1B_3), value);
}
inline static int32_t get_offset_of_Mordant_6() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___Mordant_6)); }
inline GameObject_t1113636619 * get_Mordant_6() const { return ___Mordant_6; }
inline GameObject_t1113636619 ** get_address_of_Mordant_6() { return &___Mordant_6; }
inline void set_Mordant_6(GameObject_t1113636619 * value)
{
___Mordant_6 = value;
Il2CppCodeGenWriteBarrier((&___Mordant_6), value);
}
inline static int32_t get_offset_of_step2_7() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step2_7)); }
inline String_t* get_step2_7() const { return ___step2_7; }
inline String_t** get_address_of_step2_7() { return &___step2_7; }
inline void set_step2_7(String_t* value)
{
___step2_7 = value;
Il2CppCodeGenWriteBarrier((&___step2_7), value);
}
inline static int32_t get_offset_of_step2B_8() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step2B_8)); }
inline String_t* get_step2B_8() const { return ___step2B_8; }
inline String_t** get_address_of_step2B_8() { return &___step2B_8; }
inline void set_step2B_8(String_t* value)
{
___step2B_8 = value;
Il2CppCodeGenWriteBarrier((&___step2B_8), value);
}
inline static int32_t get_offset_of_step3_9() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step3_9)); }
inline String_t* get_step3_9() const { return ___step3_9; }
inline String_t** get_address_of_step3_9() { return &___step3_9; }
inline void set_step3_9(String_t* value)
{
___step3_9 = value;
Il2CppCodeGenWriteBarrier((&___step3_9), value);
}
inline static int32_t get_offset_of_step3B_10() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step3B_10)); }
inline String_t* get_step3B_10() const { return ___step3B_10; }
inline String_t** get_address_of_step3B_10() { return &___step3B_10; }
inline void set_step3B_10(String_t* value)
{
___step3B_10 = value;
Il2CppCodeGenWriteBarrier((&___step3B_10), value);
}
inline static int32_t get_offset_of_step4_11() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step4_11)); }
inline String_t* get_step4_11() const { return ___step4_11; }
inline String_t** get_address_of_step4_11() { return &___step4_11; }
inline void set_step4_11(String_t* value)
{
___step4_11 = value;
Il2CppCodeGenWriteBarrier((&___step4_11), value);
}
inline static int32_t get_offset_of_step4B_12() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step4B_12)); }
inline String_t* get_step4B_12() const { return ___step4B_12; }
inline String_t** get_address_of_step4B_12() { return &___step4B_12; }
inline void set_step4B_12(String_t* value)
{
___step4B_12 = value;
Il2CppCodeGenWriteBarrier((&___step4B_12), value);
}
inline static int32_t get_offset_of_step5_13() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step5_13)); }
inline String_t* get_step5_13() const { return ___step5_13; }
inline String_t** get_address_of_step5_13() { return &___step5_13; }
inline void set_step5_13(String_t* value)
{
___step5_13 = value;
Il2CppCodeGenWriteBarrier((&___step5_13), value);
}
inline static int32_t get_offset_of_step5B_14() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step5B_14)); }
inline String_t* get_step5B_14() const { return ___step5B_14; }
inline String_t** get_address_of_step5B_14() { return &___step5B_14; }
inline void set_step5B_14(String_t* value)
{
___step5B_14 = value;
Il2CppCodeGenWriteBarrier((&___step5B_14), value);
}
inline static int32_t get_offset_of_step1Items_15() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step1Items_15)); }
inline StringU5BU5D_t1281789340* get_step1Items_15() const { return ___step1Items_15; }
inline StringU5BU5D_t1281789340** get_address_of_step1Items_15() { return &___step1Items_15; }
inline void set_step1Items_15(StringU5BU5D_t1281789340* value)
{
___step1Items_15 = value;
Il2CppCodeGenWriteBarrier((&___step1Items_15), value);
}
inline static int32_t get_offset_of_step2Items_16() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___step2Items_16)); }
inline StringU5BU5D_t1281789340* get_step2Items_16() const { return ___step2Items_16; }
inline StringU5BU5D_t1281789340** get_address_of_step2Items_16() { return &___step2Items_16; }
inline void set_step2Items_16(StringU5BU5D_t1281789340* value)
{
___step2Items_16 = value;
Il2CppCodeGenWriteBarrier((&___step2Items_16), value);
}
inline static int32_t get_offset_of_InfoQuad_17() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___InfoQuad_17)); }
inline GameObject_t1113636619 * get_InfoQuad_17() const { return ___InfoQuad_17; }
inline GameObject_t1113636619 ** get_address_of_InfoQuad_17() { return &___InfoQuad_17; }
inline void set_InfoQuad_17(GameObject_t1113636619 * value)
{
___InfoQuad_17 = value;
Il2CppCodeGenWriteBarrier((&___InfoQuad_17), value);
}
inline static int32_t get_offset_of_ItemQuad_18() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___ItemQuad_18)); }
inline GameObject_t1113636619 * get_ItemQuad_18() const { return ___ItemQuad_18; }
inline GameObject_t1113636619 ** get_address_of_ItemQuad_18() { return &___ItemQuad_18; }
inline void set_ItemQuad_18(GameObject_t1113636619 * value)
{
___ItemQuad_18 = value;
Il2CppCodeGenWriteBarrier((&___ItemQuad_18), value);
}
inline static int32_t get_offset_of_InstructionQuad_19() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___InstructionQuad_19)); }
inline GameObject_t1113636619 * get_InstructionQuad_19() const { return ___InstructionQuad_19; }
inline GameObject_t1113636619 ** get_address_of_InstructionQuad_19() { return &___InstructionQuad_19; }
inline void set_InstructionQuad_19(GameObject_t1113636619 * value)
{
___InstructionQuad_19 = value;
Il2CppCodeGenWriteBarrier((&___InstructionQuad_19), value);
}
inline static int32_t get_offset_of_Lab_20() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269, ___Lab_20)); }
inline GameObject_t1113636619 * get_Lab_20() const { return ___Lab_20; }
inline GameObject_t1113636619 ** get_address_of_Lab_20() { return &___Lab_20; }
inline void set_Lab_20(GameObject_t1113636619 * value)
{
___Lab_20 = value;
Il2CppCodeGenWriteBarrier((&___Lab_20), value);
}
};
struct WalkthroughScript_t1234213269_StaticFields
{
public:
// System.Boolean WalkthroughScript::mordantRetrieved
bool ___mordantRetrieved_4;
// System.Boolean WalkthroughScript::mordantPoured
bool ___mordantPoured_5;
public:
inline static int32_t get_offset_of_mordantRetrieved_4() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269_StaticFields, ___mordantRetrieved_4)); }
inline bool get_mordantRetrieved_4() const { return ___mordantRetrieved_4; }
inline bool* get_address_of_mordantRetrieved_4() { return &___mordantRetrieved_4; }
inline void set_mordantRetrieved_4(bool value)
{
___mordantRetrieved_4 = value;
}
inline static int32_t get_offset_of_mordantPoured_5() { return static_cast<int32_t>(offsetof(WalkthroughScript_t1234213269_StaticFields, ___mordantPoured_5)); }
inline bool get_mordantPoured_5() const { return ___mordantPoured_5; }
inline bool* get_address_of_mordantPoured_5() { return &___mordantPoured_5; }
inline void set_mordantPoured_5(bool value)
{
___mordantPoured_5 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // WALKTHROUGHSCRIPT_T1234213269_H
#ifndef HELPERSCRIPT_T1151587737_H
#define HELPERSCRIPT_T1151587737_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// HelperScript
struct HelperScript_t1151587737 : public MonoBehaviour_t3962482529
{
public:
// UnityEngine.GameObject HelperScript::curObject
GameObject_t1113636619 * ___curObject_2;
// UnityEngine.GameObject HelperScript::AttachedObject
GameObject_t1113636619 * ___AttachedObject_3;
// System.String HelperScript::curMode
String_t* ___curMode_4;
public:
inline static int32_t get_offset_of_curObject_2() { return static_cast<int32_t>(offsetof(HelperScript_t1151587737, ___curObject_2)); }
inline GameObject_t1113636619 * get_curObject_2() const { return ___curObject_2; }
inline GameObject_t1113636619 ** get_address_of_curObject_2() { return &___curObject_2; }
inline void set_curObject_2(GameObject_t1113636619 * value)
{
___curObject_2 = value;
Il2CppCodeGenWriteBarrier((&___curObject_2), value);
}
inline static int32_t get_offset_of_AttachedObject_3() { return static_cast<int32_t>(offsetof(HelperScript_t1151587737, ___AttachedObject_3)); }
inline GameObject_t1113636619 * get_AttachedObject_3() const { return ___AttachedObject_3; }
inline GameObject_t1113636619 ** get_address_of_AttachedObject_3() { return &___AttachedObject_3; }
inline void set_AttachedObject_3(GameObject_t1113636619 * value)
{
___AttachedObject_3 = value;
Il2CppCodeGenWriteBarrier((&___AttachedObject_3), value);
}
inline static int32_t get_offset_of_curMode_4() { return static_cast<int32_t>(offsetof(HelperScript_t1151587737, ___curMode_4)); }
inline String_t* get_curMode_4() const { return ___curMode_4; }
inline String_t** get_address_of_curMode_4() { return &___curMode_4; }
inline void set_curMode_4(String_t* value)
{
___curMode_4 = value;
Il2CppCodeGenWriteBarrier((&___curMode_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // HELPERSCRIPT_T1151587737_H
#ifndef FLUVIORUNTIMEHELPER_T3939505274_H
#define FLUVIORUNTIMEHELPER_T3939505274_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper
struct FluvioRuntimeHelper_t3939505274 : public MonoBehaviour_t3962482529
{
public:
// Thinksquirrel.Fluvio.Internal.Threading.IThreadFactory Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::_threadFactory
RuntimeObject* ____threadFactory_2;
// Thinksquirrel.Fluvio.Internal.Threading.IThreadHandler Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::_threadHandler
RuntimeObject* ____threadHandler_3;
// Thinksquirrel.Fluvio.Internal.Threading.IInterlocked Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::_interlocked
RuntimeObject* ____interlocked_4;
public:
inline static int32_t get_offset_of__threadFactory_2() { return static_cast<int32_t>(offsetof(FluvioRuntimeHelper_t3939505274, ____threadFactory_2)); }
inline RuntimeObject* get__threadFactory_2() const { return ____threadFactory_2; }
inline RuntimeObject** get_address_of__threadFactory_2() { return &____threadFactory_2; }
inline void set__threadFactory_2(RuntimeObject* value)
{
____threadFactory_2 = value;
Il2CppCodeGenWriteBarrier((&____threadFactory_2), value);
}
inline static int32_t get_offset_of__threadHandler_3() { return static_cast<int32_t>(offsetof(FluvioRuntimeHelper_t3939505274, ____threadHandler_3)); }
inline RuntimeObject* get__threadHandler_3() const { return ____threadHandler_3; }
inline RuntimeObject** get_address_of__threadHandler_3() { return &____threadHandler_3; }
inline void set__threadHandler_3(RuntimeObject* value)
{
____threadHandler_3 = value;
Il2CppCodeGenWriteBarrier((&____threadHandler_3), value);
}
inline static int32_t get_offset_of__interlocked_4() { return static_cast<int32_t>(offsetof(FluvioRuntimeHelper_t3939505274, ____interlocked_4)); }
inline RuntimeObject* get__interlocked_4() const { return ____interlocked_4; }
inline RuntimeObject** get_address_of__interlocked_4() { return &____interlocked_4; }
inline void set__interlocked_4(RuntimeObject* value)
{
____interlocked_4 = value;
Il2CppCodeGenWriteBarrier((&____interlocked_4), value);
}
};
struct FluvioRuntimeHelper_t3939505274_StaticFields
{
public:
// System.Action`1<Thinksquirrel.Fluvio.FluidBase> Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::<>f__mg$cache0
Action_1_t2614539062 * ___U3CU3Ef__mgU24cache0_5;
// System.Action`1<Thinksquirrel.Fluvio.FluidBase> Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::<>f__mg$cache1
Action_1_t2614539062 * ___U3CU3Ef__mgU24cache1_6;
public:
inline static int32_t get_offset_of_U3CU3Ef__mgU24cache0_5() { return static_cast<int32_t>(offsetof(FluvioRuntimeHelper_t3939505274_StaticFields, ___U3CU3Ef__mgU24cache0_5)); }
inline Action_1_t2614539062 * get_U3CU3Ef__mgU24cache0_5() const { return ___U3CU3Ef__mgU24cache0_5; }
inline Action_1_t2614539062 ** get_address_of_U3CU3Ef__mgU24cache0_5() { return &___U3CU3Ef__mgU24cache0_5; }
inline void set_U3CU3Ef__mgU24cache0_5(Action_1_t2614539062 * value)
{
___U3CU3Ef__mgU24cache0_5 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__mgU24cache0_5), value);
}
inline static int32_t get_offset_of_U3CU3Ef__mgU24cache1_6() { return static_cast<int32_t>(offsetof(FluvioRuntimeHelper_t3939505274_StaticFields, ___U3CU3Ef__mgU24cache1_6)); }
inline Action_1_t2614539062 * get_U3CU3Ef__mgU24cache1_6() const { return ___U3CU3Ef__mgU24cache1_6; }
inline Action_1_t2614539062 ** get_address_of_U3CU3Ef__mgU24cache1_6() { return &___U3CU3Ef__mgU24cache1_6; }
inline void set_U3CU3Ef__mgU24cache1_6(Action_1_t2614539062 * value)
{
___U3CU3Ef__mgU24cache1_6 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__mgU24cache1_6), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIORUNTIMEHELPER_T3939505274_H
#ifndef DYEMAKERSCRIPT_T1513019777_H
#define DYEMAKERSCRIPT_T1513019777_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// DyeMakerScript
struct DyeMakerScript_t1513019777 : public MonoBehaviour_t3962482529
{
public:
// UnityEngine.Transform DyeMakerScript::lab
Transform_t3600365921 * ___lab_2;
// UnityEngine.GameObject DyeMakerScript::mordant
GameObject_t1113636619 * ___mordant_3;
// UnityEngine.GameObject DyeMakerScript::dye
GameObject_t1113636619 * ___dye_4;
public:
inline static int32_t get_offset_of_lab_2() { return static_cast<int32_t>(offsetof(DyeMakerScript_t1513019777, ___lab_2)); }
inline Transform_t3600365921 * get_lab_2() const { return ___lab_2; }
inline Transform_t3600365921 ** get_address_of_lab_2() { return &___lab_2; }
inline void set_lab_2(Transform_t3600365921 * value)
{
___lab_2 = value;
Il2CppCodeGenWriteBarrier((&___lab_2), value);
}
inline static int32_t get_offset_of_mordant_3() { return static_cast<int32_t>(offsetof(DyeMakerScript_t1513019777, ___mordant_3)); }
inline GameObject_t1113636619 * get_mordant_3() const { return ___mordant_3; }
inline GameObject_t1113636619 ** get_address_of_mordant_3() { return &___mordant_3; }
inline void set_mordant_3(GameObject_t1113636619 * value)
{
___mordant_3 = value;
Il2CppCodeGenWriteBarrier((&___mordant_3), value);
}
inline static int32_t get_offset_of_dye_4() { return static_cast<int32_t>(offsetof(DyeMakerScript_t1513019777, ___dye_4)); }
inline GameObject_t1113636619 * get_dye_4() const { return ___dye_4; }
inline GameObject_t1113636619 ** get_address_of_dye_4() { return &___dye_4; }
inline void set_dye_4(GameObject_t1113636619 * value)
{
___dye_4 = value;
Il2CppCodeGenWriteBarrier((&___dye_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DYEMAKERSCRIPT_T1513019777_H
#ifndef FLUVIOMONOBEHAVIOURBASE_T869152428_H
#define FLUVIOMONOBEHAVIOURBASE_T869152428_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluvioMonoBehaviourBase
struct FluvioMonoBehaviourBase_t869152428 : public MonoBehaviour_t3962482529
{
public:
// System.Boolean Thinksquirrel.Fluvio.FluvioMonoBehaviourBase::m_CreatedObj
bool ___m_CreatedObj_2;
// System.Boolean Thinksquirrel.Fluvio.FluvioMonoBehaviourBase::m_DestroyedObj
bool ___m_DestroyedObj_3;
// System.Boolean Thinksquirrel.Fluvio.FluvioMonoBehaviourBase::m_EditorFoldout
bool ___m_EditorFoldout_4;
public:
inline static int32_t get_offset_of_m_CreatedObj_2() { return static_cast<int32_t>(offsetof(FluvioMonoBehaviourBase_t869152428, ___m_CreatedObj_2)); }
inline bool get_m_CreatedObj_2() const { return ___m_CreatedObj_2; }
inline bool* get_address_of_m_CreatedObj_2() { return &___m_CreatedObj_2; }
inline void set_m_CreatedObj_2(bool value)
{
___m_CreatedObj_2 = value;
}
inline static int32_t get_offset_of_m_DestroyedObj_3() { return static_cast<int32_t>(offsetof(FluvioMonoBehaviourBase_t869152428, ___m_DestroyedObj_3)); }
inline bool get_m_DestroyedObj_3() const { return ___m_DestroyedObj_3; }
inline bool* get_address_of_m_DestroyedObj_3() { return &___m_DestroyedObj_3; }
inline void set_m_DestroyedObj_3(bool value)
{
___m_DestroyedObj_3 = value;
}
inline static int32_t get_offset_of_m_EditorFoldout_4() { return static_cast<int32_t>(offsetof(FluvioMonoBehaviourBase_t869152428, ___m_EditorFoldout_4)); }
inline bool get_m_EditorFoldout_4() const { return ___m_EditorFoldout_4; }
inline bool* get_address_of_m_EditorFoldout_4() { return &___m_EditorFoldout_4; }
inline void set_m_EditorFoldout_4(bool value)
{
___m_EditorFoldout_4 = value;
}
};
struct FluvioMonoBehaviourBase_t869152428_StaticFields
{
public:
// System.Action`2<Thinksquirrel.Fluvio.FluvioMonoBehaviourBase,System.Boolean> Thinksquirrel.Fluvio.FluvioMonoBehaviourBase::_onCreateDestroy
Action_2_t1004908951 * ____onCreateDestroy_5;
public:
inline static int32_t get_offset_of__onCreateDestroy_5() { return static_cast<int32_t>(offsetof(FluvioMonoBehaviourBase_t869152428_StaticFields, ____onCreateDestroy_5)); }
inline Action_2_t1004908951 * get__onCreateDestroy_5() const { return ____onCreateDestroy_5; }
inline Action_2_t1004908951 ** get_address_of__onCreateDestroy_5() { return &____onCreateDestroy_5; }
inline void set__onCreateDestroy_5(Action_2_t1004908951 * value)
{
____onCreateDestroy_5 = value;
Il2CppCodeGenWriteBarrier((&____onCreateDestroy_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUVIOMONOBEHAVIOURBASE_T869152428_H
#ifndef LABSCRIPT_T1073339935_H
#define LABSCRIPT_T1073339935_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// LabScript
struct LabScript_t1073339935 : public MonoBehaviour_t3962482529
{
public:
// WalkthroughScript LabScript::walkthroughScript
WalkthroughScript_t1234213269 * ___walkthroughScript_2;
public:
inline static int32_t get_offset_of_walkthroughScript_2() { return static_cast<int32_t>(offsetof(LabScript_t1073339935, ___walkthroughScript_2)); }
inline WalkthroughScript_t1234213269 * get_walkthroughScript_2() const { return ___walkthroughScript_2; }
inline WalkthroughScript_t1234213269 ** get_address_of_walkthroughScript_2() { return &___walkthroughScript_2; }
inline void set_walkthroughScript_2(WalkthroughScript_t1234213269 * value)
{
___walkthroughScript_2 = value;
Il2CppCodeGenWriteBarrier((&___walkthroughScript_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LABSCRIPT_T1073339935_H
#ifndef FLUIDBASE_T2442071467_H
#define FLUIDBASE_T2442071467_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.FluidBase
struct FluidBase_t2442071467 : public FluvioMonoBehaviourBase_t869152428
{
public:
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_SolverEnabled
bool ___m_SolverEnabled_6;
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_EnableHardwareAcceleration
bool ___m_EnableHardwareAcceleration_7;
// Thinksquirrel.Fluvio.FluidType Thinksquirrel.Fluvio.FluidBase::m_FluidType
int32_t ___m_FluidType_8;
// Thinksquirrel.Fluvio.SimulationDimensions Thinksquirrel.Fluvio.FluidBase::m_Dimensions
int32_t ___m_Dimensions_9;
// Thinksquirrel.Fluvio.SimulationCullingType Thinksquirrel.Fluvio.FluidBase::m_CullingType
int32_t ___m_CullingType_10;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_SmoothingDistance
float ___m_SmoothingDistance_11;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_ParticleMass
float ___m_ParticleMass_12;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_Density
float ___m_Density_13;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_MinimumDensity
float ___m_MinimumDensity_14;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_Viscosity
float ___m_Viscosity_15;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_Turbulence
float ___m_Turbulence_16;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_SurfaceTension
float ___m_SurfaceTension_17;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_GasConstant
float ___m_GasConstant_18;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_BuoyancyCoefficient
float ___m_BuoyancyCoefficient_19;
// System.Single Thinksquirrel.Fluvio.FluidBase::m_SimulationScale
float ___m_SimulationScale_20;
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_FluidSettingsFoldoutEditor
bool ___m_FluidSettingsFoldoutEditor_21;
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_PhysicalPropertiesFoldoutEditor
bool ___m_PhysicalPropertiesFoldoutEditor_22;
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_PluginsFoldoutEditor
bool ___m_PluginsFoldoutEditor_23;
// Thinksquirrel.Fluvio.Internal.ObjectModel.IFluidSolver Thinksquirrel.Fluvio.FluidBase::_solver
RuntimeObject* ____solver_25;
// UnityEngine.Vector3 Thinksquirrel.Fluvio.FluidBase::_position
Vector3_t3722313464 ____position_26;
// Thinksquirrel.Fluvio.FluvioTimeStep Thinksquirrel.Fluvio.FluidBase::_timeStep
FluvioTimeStep_t3427387132 ____timeStep_27;
// System.Int32 Thinksquirrel.Fluvio.FluidBase::m_MaxParticles
int32_t ___m_MaxParticles_28;
// UnityEngine.Vector3 Thinksquirrel.Fluvio.FluidBase::m_Gravity
Vector3_t3722313464 ___m_Gravity_29;
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_IsVisible
bool ___m_IsVisible_30;
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.Internal.ObjectModel.IParallelPlugin> Thinksquirrel.Fluvio.FluidBase::m_ParallelPlugins
List_1_t2917484508 * ___m_ParallelPlugins_31;
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.Plugins.FluidPlugin> Thinksquirrel.Fluvio.FluidBase::m_Plugins
List_1_t4168533423 * ___m_Plugins_32;
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.FluidBase> Thinksquirrel.Fluvio.FluidBase::m_SubFluids
List_1_t3914146209 * ___m_SubFluids_33;
// Thinksquirrel.Fluvio.FluidGroup Thinksquirrel.Fluvio.FluidBase::m_FluidGroup
FluidGroup_t773684765 * ___m_FluidGroup_34;
// Thinksquirrel.Fluvio.FluidBase Thinksquirrel.Fluvio.FluidBase::m_ParentFluid
FluidBase_t2442071467 * ___m_ParentFluid_35;
// UnityEngine.Transform Thinksquirrel.Fluvio.FluidBase::m_CachedTransformParent
Transform_t3600365921 * ___m_CachedTransformParent_36;
// System.Boolean Thinksquirrel.Fluvio.FluidBase::m_Initialized
bool ___m_Initialized_37;
// Thinksquirrel.Fluvio.Plugins.SolverData Thinksquirrel.Fluvio.FluidBase::m_PluginSolverData
SolverData_t3372117984 * ___m_PluginSolverData_38;
// Thinksquirrel.Fluvio.Internal.SolverParticleDelegate Thinksquirrel.Fluvio.FluidBase::m_OnPluginFrameDel
SolverParticleDelegate_t4224278369 * ___m_OnPluginFrameDel_39;
// Thinksquirrel.Fluvio.Internal.SolverParticlePairDelegate Thinksquirrel.Fluvio.FluidBase::m_OnPluginPairFrameDel
SolverParticlePairDelegate_t2332887997 * ___m_OnPluginPairFrameDel_40;
public:
inline static int32_t get_offset_of_m_SolverEnabled_6() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_SolverEnabled_6)); }
inline bool get_m_SolverEnabled_6() const { return ___m_SolverEnabled_6; }
inline bool* get_address_of_m_SolverEnabled_6() { return &___m_SolverEnabled_6; }
inline void set_m_SolverEnabled_6(bool value)
{
___m_SolverEnabled_6 = value;
}
inline static int32_t get_offset_of_m_EnableHardwareAcceleration_7() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_EnableHardwareAcceleration_7)); }
inline bool get_m_EnableHardwareAcceleration_7() const { return ___m_EnableHardwareAcceleration_7; }
inline bool* get_address_of_m_EnableHardwareAcceleration_7() { return &___m_EnableHardwareAcceleration_7; }
inline void set_m_EnableHardwareAcceleration_7(bool value)
{
___m_EnableHardwareAcceleration_7 = value;
}
inline static int32_t get_offset_of_m_FluidType_8() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_FluidType_8)); }
inline int32_t get_m_FluidType_8() const { return ___m_FluidType_8; }
inline int32_t* get_address_of_m_FluidType_8() { return &___m_FluidType_8; }
inline void set_m_FluidType_8(int32_t value)
{
___m_FluidType_8 = value;
}
inline static int32_t get_offset_of_m_Dimensions_9() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Dimensions_9)); }
inline int32_t get_m_Dimensions_9() const { return ___m_Dimensions_9; }
inline int32_t* get_address_of_m_Dimensions_9() { return &___m_Dimensions_9; }
inline void set_m_Dimensions_9(int32_t value)
{
___m_Dimensions_9 = value;
}
inline static int32_t get_offset_of_m_CullingType_10() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_CullingType_10)); }
inline int32_t get_m_CullingType_10() const { return ___m_CullingType_10; }
inline int32_t* get_address_of_m_CullingType_10() { return &___m_CullingType_10; }
inline void set_m_CullingType_10(int32_t value)
{
___m_CullingType_10 = value;
}
inline static int32_t get_offset_of_m_SmoothingDistance_11() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_SmoothingDistance_11)); }
inline float get_m_SmoothingDistance_11() const { return ___m_SmoothingDistance_11; }
inline float* get_address_of_m_SmoothingDistance_11() { return &___m_SmoothingDistance_11; }
inline void set_m_SmoothingDistance_11(float value)
{
___m_SmoothingDistance_11 = value;
}
inline static int32_t get_offset_of_m_ParticleMass_12() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_ParticleMass_12)); }
inline float get_m_ParticleMass_12() const { return ___m_ParticleMass_12; }
inline float* get_address_of_m_ParticleMass_12() { return &___m_ParticleMass_12; }
inline void set_m_ParticleMass_12(float value)
{
___m_ParticleMass_12 = value;
}
inline static int32_t get_offset_of_m_Density_13() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Density_13)); }
inline float get_m_Density_13() const { return ___m_Density_13; }
inline float* get_address_of_m_Density_13() { return &___m_Density_13; }
inline void set_m_Density_13(float value)
{
___m_Density_13 = value;
}
inline static int32_t get_offset_of_m_MinimumDensity_14() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_MinimumDensity_14)); }
inline float get_m_MinimumDensity_14() const { return ___m_MinimumDensity_14; }
inline float* get_address_of_m_MinimumDensity_14() { return &___m_MinimumDensity_14; }
inline void set_m_MinimumDensity_14(float value)
{
___m_MinimumDensity_14 = value;
}
inline static int32_t get_offset_of_m_Viscosity_15() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Viscosity_15)); }
inline float get_m_Viscosity_15() const { return ___m_Viscosity_15; }
inline float* get_address_of_m_Viscosity_15() { return &___m_Viscosity_15; }
inline void set_m_Viscosity_15(float value)
{
___m_Viscosity_15 = value;
}
inline static int32_t get_offset_of_m_Turbulence_16() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Turbulence_16)); }
inline float get_m_Turbulence_16() const { return ___m_Turbulence_16; }
inline float* get_address_of_m_Turbulence_16() { return &___m_Turbulence_16; }
inline void set_m_Turbulence_16(float value)
{
___m_Turbulence_16 = value;
}
inline static int32_t get_offset_of_m_SurfaceTension_17() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_SurfaceTension_17)); }
inline float get_m_SurfaceTension_17() const { return ___m_SurfaceTension_17; }
inline float* get_address_of_m_SurfaceTension_17() { return &___m_SurfaceTension_17; }
inline void set_m_SurfaceTension_17(float value)
{
___m_SurfaceTension_17 = value;
}
inline static int32_t get_offset_of_m_GasConstant_18() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_GasConstant_18)); }
inline float get_m_GasConstant_18() const { return ___m_GasConstant_18; }
inline float* get_address_of_m_GasConstant_18() { return &___m_GasConstant_18; }
inline void set_m_GasConstant_18(float value)
{
___m_GasConstant_18 = value;
}
inline static int32_t get_offset_of_m_BuoyancyCoefficient_19() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_BuoyancyCoefficient_19)); }
inline float get_m_BuoyancyCoefficient_19() const { return ___m_BuoyancyCoefficient_19; }
inline float* get_address_of_m_BuoyancyCoefficient_19() { return &___m_BuoyancyCoefficient_19; }
inline void set_m_BuoyancyCoefficient_19(float value)
{
___m_BuoyancyCoefficient_19 = value;
}
inline static int32_t get_offset_of_m_SimulationScale_20() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_SimulationScale_20)); }
inline float get_m_SimulationScale_20() const { return ___m_SimulationScale_20; }
inline float* get_address_of_m_SimulationScale_20() { return &___m_SimulationScale_20; }
inline void set_m_SimulationScale_20(float value)
{
___m_SimulationScale_20 = value;
}
inline static int32_t get_offset_of_m_FluidSettingsFoldoutEditor_21() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_FluidSettingsFoldoutEditor_21)); }
inline bool get_m_FluidSettingsFoldoutEditor_21() const { return ___m_FluidSettingsFoldoutEditor_21; }
inline bool* get_address_of_m_FluidSettingsFoldoutEditor_21() { return &___m_FluidSettingsFoldoutEditor_21; }
inline void set_m_FluidSettingsFoldoutEditor_21(bool value)
{
___m_FluidSettingsFoldoutEditor_21 = value;
}
inline static int32_t get_offset_of_m_PhysicalPropertiesFoldoutEditor_22() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_PhysicalPropertiesFoldoutEditor_22)); }
inline bool get_m_PhysicalPropertiesFoldoutEditor_22() const { return ___m_PhysicalPropertiesFoldoutEditor_22; }
inline bool* get_address_of_m_PhysicalPropertiesFoldoutEditor_22() { return &___m_PhysicalPropertiesFoldoutEditor_22; }
inline void set_m_PhysicalPropertiesFoldoutEditor_22(bool value)
{
___m_PhysicalPropertiesFoldoutEditor_22 = value;
}
inline static int32_t get_offset_of_m_PluginsFoldoutEditor_23() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_PluginsFoldoutEditor_23)); }
inline bool get_m_PluginsFoldoutEditor_23() const { return ___m_PluginsFoldoutEditor_23; }
inline bool* get_address_of_m_PluginsFoldoutEditor_23() { return &___m_PluginsFoldoutEditor_23; }
inline void set_m_PluginsFoldoutEditor_23(bool value)
{
___m_PluginsFoldoutEditor_23 = value;
}
inline static int32_t get_offset_of__solver_25() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ____solver_25)); }
inline RuntimeObject* get__solver_25() const { return ____solver_25; }
inline RuntimeObject** get_address_of__solver_25() { return &____solver_25; }
inline void set__solver_25(RuntimeObject* value)
{
____solver_25 = value;
Il2CppCodeGenWriteBarrier((&____solver_25), value);
}
inline static int32_t get_offset_of__position_26() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ____position_26)); }
inline Vector3_t3722313464 get__position_26() const { return ____position_26; }
inline Vector3_t3722313464 * get_address_of__position_26() { return &____position_26; }
inline void set__position_26(Vector3_t3722313464 value)
{
____position_26 = value;
}
inline static int32_t get_offset_of__timeStep_27() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ____timeStep_27)); }
inline FluvioTimeStep_t3427387132 get__timeStep_27() const { return ____timeStep_27; }
inline FluvioTimeStep_t3427387132 * get_address_of__timeStep_27() { return &____timeStep_27; }
inline void set__timeStep_27(FluvioTimeStep_t3427387132 value)
{
____timeStep_27 = value;
}
inline static int32_t get_offset_of_m_MaxParticles_28() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_MaxParticles_28)); }
inline int32_t get_m_MaxParticles_28() const { return ___m_MaxParticles_28; }
inline int32_t* get_address_of_m_MaxParticles_28() { return &___m_MaxParticles_28; }
inline void set_m_MaxParticles_28(int32_t value)
{
___m_MaxParticles_28 = value;
}
inline static int32_t get_offset_of_m_Gravity_29() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Gravity_29)); }
inline Vector3_t3722313464 get_m_Gravity_29() const { return ___m_Gravity_29; }
inline Vector3_t3722313464 * get_address_of_m_Gravity_29() { return &___m_Gravity_29; }
inline void set_m_Gravity_29(Vector3_t3722313464 value)
{
___m_Gravity_29 = value;
}
inline static int32_t get_offset_of_m_IsVisible_30() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_IsVisible_30)); }
inline bool get_m_IsVisible_30() const { return ___m_IsVisible_30; }
inline bool* get_address_of_m_IsVisible_30() { return &___m_IsVisible_30; }
inline void set_m_IsVisible_30(bool value)
{
___m_IsVisible_30 = value;
}
inline static int32_t get_offset_of_m_ParallelPlugins_31() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_ParallelPlugins_31)); }
inline List_1_t2917484508 * get_m_ParallelPlugins_31() const { return ___m_ParallelPlugins_31; }
inline List_1_t2917484508 ** get_address_of_m_ParallelPlugins_31() { return &___m_ParallelPlugins_31; }
inline void set_m_ParallelPlugins_31(List_1_t2917484508 * value)
{
___m_ParallelPlugins_31 = value;
Il2CppCodeGenWriteBarrier((&___m_ParallelPlugins_31), value);
}
inline static int32_t get_offset_of_m_Plugins_32() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Plugins_32)); }
inline List_1_t4168533423 * get_m_Plugins_32() const { return ___m_Plugins_32; }
inline List_1_t4168533423 ** get_address_of_m_Plugins_32() { return &___m_Plugins_32; }
inline void set_m_Plugins_32(List_1_t4168533423 * value)
{
___m_Plugins_32 = value;
Il2CppCodeGenWriteBarrier((&___m_Plugins_32), value);
}
inline static int32_t get_offset_of_m_SubFluids_33() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_SubFluids_33)); }
inline List_1_t3914146209 * get_m_SubFluids_33() const { return ___m_SubFluids_33; }
inline List_1_t3914146209 ** get_address_of_m_SubFluids_33() { return &___m_SubFluids_33; }
inline void set_m_SubFluids_33(List_1_t3914146209 * value)
{
___m_SubFluids_33 = value;
Il2CppCodeGenWriteBarrier((&___m_SubFluids_33), value);
}
inline static int32_t get_offset_of_m_FluidGroup_34() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_FluidGroup_34)); }
inline FluidGroup_t773684765 * get_m_FluidGroup_34() const { return ___m_FluidGroup_34; }
inline FluidGroup_t773684765 ** get_address_of_m_FluidGroup_34() { return &___m_FluidGroup_34; }
inline void set_m_FluidGroup_34(FluidGroup_t773684765 * value)
{
___m_FluidGroup_34 = value;
Il2CppCodeGenWriteBarrier((&___m_FluidGroup_34), value);
}
inline static int32_t get_offset_of_m_ParentFluid_35() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_ParentFluid_35)); }
inline FluidBase_t2442071467 * get_m_ParentFluid_35() const { return ___m_ParentFluid_35; }
inline FluidBase_t2442071467 ** get_address_of_m_ParentFluid_35() { return &___m_ParentFluid_35; }
inline void set_m_ParentFluid_35(FluidBase_t2442071467 * value)
{
___m_ParentFluid_35 = value;
Il2CppCodeGenWriteBarrier((&___m_ParentFluid_35), value);
}
inline static int32_t get_offset_of_m_CachedTransformParent_36() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_CachedTransformParent_36)); }
inline Transform_t3600365921 * get_m_CachedTransformParent_36() const { return ___m_CachedTransformParent_36; }
inline Transform_t3600365921 ** get_address_of_m_CachedTransformParent_36() { return &___m_CachedTransformParent_36; }
inline void set_m_CachedTransformParent_36(Transform_t3600365921 * value)
{
___m_CachedTransformParent_36 = value;
Il2CppCodeGenWriteBarrier((&___m_CachedTransformParent_36), value);
}
inline static int32_t get_offset_of_m_Initialized_37() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_Initialized_37)); }
inline bool get_m_Initialized_37() const { return ___m_Initialized_37; }
inline bool* get_address_of_m_Initialized_37() { return &___m_Initialized_37; }
inline void set_m_Initialized_37(bool value)
{
___m_Initialized_37 = value;
}
inline static int32_t get_offset_of_m_PluginSolverData_38() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_PluginSolverData_38)); }
inline SolverData_t3372117984 * get_m_PluginSolverData_38() const { return ___m_PluginSolverData_38; }
inline SolverData_t3372117984 ** get_address_of_m_PluginSolverData_38() { return &___m_PluginSolverData_38; }
inline void set_m_PluginSolverData_38(SolverData_t3372117984 * value)
{
___m_PluginSolverData_38 = value;
Il2CppCodeGenWriteBarrier((&___m_PluginSolverData_38), value);
}
inline static int32_t get_offset_of_m_OnPluginFrameDel_39() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_OnPluginFrameDel_39)); }
inline SolverParticleDelegate_t4224278369 * get_m_OnPluginFrameDel_39() const { return ___m_OnPluginFrameDel_39; }
inline SolverParticleDelegate_t4224278369 ** get_address_of_m_OnPluginFrameDel_39() { return &___m_OnPluginFrameDel_39; }
inline void set_m_OnPluginFrameDel_39(SolverParticleDelegate_t4224278369 * value)
{
___m_OnPluginFrameDel_39 = value;
Il2CppCodeGenWriteBarrier((&___m_OnPluginFrameDel_39), value);
}
inline static int32_t get_offset_of_m_OnPluginPairFrameDel_40() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467, ___m_OnPluginPairFrameDel_40)); }
inline SolverParticlePairDelegate_t2332887997 * get_m_OnPluginPairFrameDel_40() const { return ___m_OnPluginPairFrameDel_40; }
inline SolverParticlePairDelegate_t2332887997 ** get_address_of_m_OnPluginPairFrameDel_40() { return &___m_OnPluginPairFrameDel_40; }
inline void set_m_OnPluginPairFrameDel_40(SolverParticlePairDelegate_t2332887997 * value)
{
___m_OnPluginPairFrameDel_40 = value;
Il2CppCodeGenWriteBarrier((&___m_OnPluginPairFrameDel_40), value);
}
};
struct FluidBase_t2442071467_StaticFields
{
public:
// System.Collections.Generic.List`1<Thinksquirrel.Fluvio.FluidBase> Thinksquirrel.Fluvio.FluidBase::s_AllFluids
List_1_t3914146209 * ___s_AllFluids_24;
// System.Action`1<Thinksquirrel.Fluvio.FluidBase> Thinksquirrel.Fluvio.FluidBase::onFluidEnabled
Action_1_t2614539062 * ___onFluidEnabled_41;
// System.Action`1<Thinksquirrel.Fluvio.FluidBase> Thinksquirrel.Fluvio.FluidBase::onFluidDisabled
Action_1_t2614539062 * ___onFluidDisabled_42;
// System.Comparison`1<Thinksquirrel.Fluvio.Internal.ObjectModel.IParallelPlugin> Thinksquirrel.Fluvio.FluidBase::<>f__am$cache25
Comparison_1_t1220340945 * ___U3CU3Ef__amU24cache25_43;
// System.Comparison`1<Thinksquirrel.Fluvio.Internal.ObjectModel.IParallelPlugin> Thinksquirrel.Fluvio.FluidBase::<>f__am$cache26
Comparison_1_t1220340945 * ___U3CU3Ef__amU24cache26_44;
public:
inline static int32_t get_offset_of_s_AllFluids_24() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467_StaticFields, ___s_AllFluids_24)); }
inline List_1_t3914146209 * get_s_AllFluids_24() const { return ___s_AllFluids_24; }
inline List_1_t3914146209 ** get_address_of_s_AllFluids_24() { return &___s_AllFluids_24; }
inline void set_s_AllFluids_24(List_1_t3914146209 * value)
{
___s_AllFluids_24 = value;
Il2CppCodeGenWriteBarrier((&___s_AllFluids_24), value);
}
inline static int32_t get_offset_of_onFluidEnabled_41() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467_StaticFields, ___onFluidEnabled_41)); }
inline Action_1_t2614539062 * get_onFluidEnabled_41() const { return ___onFluidEnabled_41; }
inline Action_1_t2614539062 ** get_address_of_onFluidEnabled_41() { return &___onFluidEnabled_41; }
inline void set_onFluidEnabled_41(Action_1_t2614539062 * value)
{
___onFluidEnabled_41 = value;
Il2CppCodeGenWriteBarrier((&___onFluidEnabled_41), value);
}
inline static int32_t get_offset_of_onFluidDisabled_42() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467_StaticFields, ___onFluidDisabled_42)); }
inline Action_1_t2614539062 * get_onFluidDisabled_42() const { return ___onFluidDisabled_42; }
inline Action_1_t2614539062 ** get_address_of_onFluidDisabled_42() { return &___onFluidDisabled_42; }
inline void set_onFluidDisabled_42(Action_1_t2614539062 * value)
{
___onFluidDisabled_42 = value;
Il2CppCodeGenWriteBarrier((&___onFluidDisabled_42), value);
}
inline static int32_t get_offset_of_U3CU3Ef__amU24cache25_43() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467_StaticFields, ___U3CU3Ef__amU24cache25_43)); }
inline Comparison_1_t1220340945 * get_U3CU3Ef__amU24cache25_43() const { return ___U3CU3Ef__amU24cache25_43; }
inline Comparison_1_t1220340945 ** get_address_of_U3CU3Ef__amU24cache25_43() { return &___U3CU3Ef__amU24cache25_43; }
inline void set_U3CU3Ef__amU24cache25_43(Comparison_1_t1220340945 * value)
{
___U3CU3Ef__amU24cache25_43 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cache25_43), value);
}
inline static int32_t get_offset_of_U3CU3Ef__amU24cache26_44() { return static_cast<int32_t>(offsetof(FluidBase_t2442071467_StaticFields, ___U3CU3Ef__amU24cache26_44)); }
inline Comparison_1_t1220340945 * get_U3CU3Ef__amU24cache26_44() const { return ___U3CU3Ef__amU24cache26_44; }
inline Comparison_1_t1220340945 ** get_address_of_U3CU3Ef__amU24cache26_44() { return &___U3CU3Ef__amU24cache26_44; }
inline void set_U3CU3Ef__amU24cache26_44(Comparison_1_t1220340945 * value)
{
___U3CU3Ef__amU24cache26_44 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cache26_44), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDBASE_T2442071467_H
#ifndef FLUIDPLUGIN_T2696458681_H
#define FLUIDPLUGIN_T2696458681_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Plugins.FluidPlugin
struct FluidPlugin_t2696458681 : public FluvioMonoBehaviourBase_t869152428
{
public:
// Thinksquirrel.Fluvio.FluidBase Thinksquirrel.Fluvio.Plugins.FluidPlugin::m_Fluid
FluidBase_t2442071467 * ___m_Fluid_7;
// System.Int32 Thinksquirrel.Fluvio.Plugins.FluidPlugin::m_Weight
int32_t ___m_Weight_8;
// System.Boolean Thinksquirrel.Fluvio.Plugins.FluidPlugin::m_MonoScriptInitialized
bool ___m_MonoScriptInitialized_9;
// System.Int32 Thinksquirrel.Fluvio.Plugins.FluidPlugin::_pluginID
int32_t ____pluginID_10;
// System.Boolean Thinksquirrel.Fluvio.Plugins.FluidPlugin::m_ResetWeight
bool ___m_ResetWeight_11;
public:
inline static int32_t get_offset_of_m_Fluid_7() { return static_cast<int32_t>(offsetof(FluidPlugin_t2696458681, ___m_Fluid_7)); }
inline FluidBase_t2442071467 * get_m_Fluid_7() const { return ___m_Fluid_7; }
inline FluidBase_t2442071467 ** get_address_of_m_Fluid_7() { return &___m_Fluid_7; }
inline void set_m_Fluid_7(FluidBase_t2442071467 * value)
{
___m_Fluid_7 = value;
Il2CppCodeGenWriteBarrier((&___m_Fluid_7), value);
}
inline static int32_t get_offset_of_m_Weight_8() { return static_cast<int32_t>(offsetof(FluidPlugin_t2696458681, ___m_Weight_8)); }
inline int32_t get_m_Weight_8() const { return ___m_Weight_8; }
inline int32_t* get_address_of_m_Weight_8() { return &___m_Weight_8; }
inline void set_m_Weight_8(int32_t value)
{
___m_Weight_8 = value;
}
inline static int32_t get_offset_of_m_MonoScriptInitialized_9() { return static_cast<int32_t>(offsetof(FluidPlugin_t2696458681, ___m_MonoScriptInitialized_9)); }
inline bool get_m_MonoScriptInitialized_9() const { return ___m_MonoScriptInitialized_9; }
inline bool* get_address_of_m_MonoScriptInitialized_9() { return &___m_MonoScriptInitialized_9; }
inline void set_m_MonoScriptInitialized_9(bool value)
{
___m_MonoScriptInitialized_9 = value;
}
inline static int32_t get_offset_of__pluginID_10() { return static_cast<int32_t>(offsetof(FluidPlugin_t2696458681, ____pluginID_10)); }
inline int32_t get__pluginID_10() const { return ____pluginID_10; }
inline int32_t* get_address_of__pluginID_10() { return &____pluginID_10; }
inline void set__pluginID_10(int32_t value)
{
____pluginID_10 = value;
}
inline static int32_t get_offset_of_m_ResetWeight_11() { return static_cast<int32_t>(offsetof(FluidPlugin_t2696458681, ___m_ResetWeight_11)); }
inline bool get_m_ResetWeight_11() const { return ___m_ResetWeight_11; }
inline bool* get_address_of_m_ResetWeight_11() { return &___m_ResetWeight_11; }
inline void set_m_ResetWeight_11(bool value)
{
___m_ResetWeight_11 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDPLUGIN_T2696458681_H
#ifndef FLUIDPARALLELPLUGIN_T3366117264_H
#define FLUIDPARALLELPLUGIN_T3366117264_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin
struct FluidParallelPlugin_t3366117264 : public FluidPlugin_t2696458681
{
public:
// System.Boolean Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_IncludeFluidGroup
bool ___m_IncludeFluidGroup_12;
// System.Boolean Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_RunAcceleratedOnly
bool ___m_RunAcceleratedOnly_13;
// Thinksquirrel.Fluvio.FluvioComputeShader Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_ComputeShader
FluvioComputeShader_t2551470295 * ___m_ComputeShader_14;
// System.Int32 Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_ComputeShaderKernelIndex
int32_t ___m_ComputeShaderKernelIndex_15;
// System.Boolean Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_IsValidComputePlugin
bool ___m_IsValidComputePlugin_16;
// System.Boolean Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_ShouldUpdate
bool ___m_ShouldUpdate_17;
// System.Int32 Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_Timer
int32_t ___m_Timer_18;
// Thinksquirrel.Fluvio.Internal.FluvioComputeBufferBase[] Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_PluginBuffers
FluvioComputeBufferBaseU5BU5D_t3891016598* ___m_PluginBuffers_19;
// System.Array[] Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::m_BufferValueCache
ArrayU5BU5D_t2896390326* ___m_BufferValueCache_20;
public:
inline static int32_t get_offset_of_m_IncludeFluidGroup_12() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_IncludeFluidGroup_12)); }
inline bool get_m_IncludeFluidGroup_12() const { return ___m_IncludeFluidGroup_12; }
inline bool* get_address_of_m_IncludeFluidGroup_12() { return &___m_IncludeFluidGroup_12; }
inline void set_m_IncludeFluidGroup_12(bool value)
{
___m_IncludeFluidGroup_12 = value;
}
inline static int32_t get_offset_of_m_RunAcceleratedOnly_13() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_RunAcceleratedOnly_13)); }
inline bool get_m_RunAcceleratedOnly_13() const { return ___m_RunAcceleratedOnly_13; }
inline bool* get_address_of_m_RunAcceleratedOnly_13() { return &___m_RunAcceleratedOnly_13; }
inline void set_m_RunAcceleratedOnly_13(bool value)
{
___m_RunAcceleratedOnly_13 = value;
}
inline static int32_t get_offset_of_m_ComputeShader_14() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_ComputeShader_14)); }
inline FluvioComputeShader_t2551470295 * get_m_ComputeShader_14() const { return ___m_ComputeShader_14; }
inline FluvioComputeShader_t2551470295 ** get_address_of_m_ComputeShader_14() { return &___m_ComputeShader_14; }
inline void set_m_ComputeShader_14(FluvioComputeShader_t2551470295 * value)
{
___m_ComputeShader_14 = value;
Il2CppCodeGenWriteBarrier((&___m_ComputeShader_14), value);
}
inline static int32_t get_offset_of_m_ComputeShaderKernelIndex_15() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_ComputeShaderKernelIndex_15)); }
inline int32_t get_m_ComputeShaderKernelIndex_15() const { return ___m_ComputeShaderKernelIndex_15; }
inline int32_t* get_address_of_m_ComputeShaderKernelIndex_15() { return &___m_ComputeShaderKernelIndex_15; }
inline void set_m_ComputeShaderKernelIndex_15(int32_t value)
{
___m_ComputeShaderKernelIndex_15 = value;
}
inline static int32_t get_offset_of_m_IsValidComputePlugin_16() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_IsValidComputePlugin_16)); }
inline bool get_m_IsValidComputePlugin_16() const { return ___m_IsValidComputePlugin_16; }
inline bool* get_address_of_m_IsValidComputePlugin_16() { return &___m_IsValidComputePlugin_16; }
inline void set_m_IsValidComputePlugin_16(bool value)
{
___m_IsValidComputePlugin_16 = value;
}
inline static int32_t get_offset_of_m_ShouldUpdate_17() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_ShouldUpdate_17)); }
inline bool get_m_ShouldUpdate_17() const { return ___m_ShouldUpdate_17; }
inline bool* get_address_of_m_ShouldUpdate_17() { return &___m_ShouldUpdate_17; }
inline void set_m_ShouldUpdate_17(bool value)
{
___m_ShouldUpdate_17 = value;
}
inline static int32_t get_offset_of_m_Timer_18() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_Timer_18)); }
inline int32_t get_m_Timer_18() const { return ___m_Timer_18; }
inline int32_t* get_address_of_m_Timer_18() { return &___m_Timer_18; }
inline void set_m_Timer_18(int32_t value)
{
___m_Timer_18 = value;
}
inline static int32_t get_offset_of_m_PluginBuffers_19() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_PluginBuffers_19)); }
inline FluvioComputeBufferBaseU5BU5D_t3891016598* get_m_PluginBuffers_19() const { return ___m_PluginBuffers_19; }
inline FluvioComputeBufferBaseU5BU5D_t3891016598** get_address_of_m_PluginBuffers_19() { return &___m_PluginBuffers_19; }
inline void set_m_PluginBuffers_19(FluvioComputeBufferBaseU5BU5D_t3891016598* value)
{
___m_PluginBuffers_19 = value;
Il2CppCodeGenWriteBarrier((&___m_PluginBuffers_19), value);
}
inline static int32_t get_offset_of_m_BufferValueCache_20() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264, ___m_BufferValueCache_20)); }
inline ArrayU5BU5D_t2896390326* get_m_BufferValueCache_20() const { return ___m_BufferValueCache_20; }
inline ArrayU5BU5D_t2896390326** get_address_of_m_BufferValueCache_20() { return &___m_BufferValueCache_20; }
inline void set_m_BufferValueCache_20(ArrayU5BU5D_t2896390326* value)
{
___m_BufferValueCache_20 = value;
Il2CppCodeGenWriteBarrier((&___m_BufferValueCache_20), value);
}
};
struct FluidParallelPlugin_t3366117264_StaticFields
{
public:
// System.Converter`2<UnityEngine.Keyframe,Thinksquirrel.Fluvio.Internal.Keyframe> Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::<>f__am$cache9
Converter_2_t3479950270 * ___U3CU3Ef__amU24cache9_21;
// System.Converter`2<UnityEngine.Keyframe,Thinksquirrel.Fluvio.Internal.Keyframe> Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::<>f__am$cacheA
Converter_2_t3479950270 * ___U3CU3Ef__amU24cacheA_22;
public:
inline static int32_t get_offset_of_U3CU3Ef__amU24cache9_21() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264_StaticFields, ___U3CU3Ef__amU24cache9_21)); }
inline Converter_2_t3479950270 * get_U3CU3Ef__amU24cache9_21() const { return ___U3CU3Ef__amU24cache9_21; }
inline Converter_2_t3479950270 ** get_address_of_U3CU3Ef__amU24cache9_21() { return &___U3CU3Ef__amU24cache9_21; }
inline void set_U3CU3Ef__amU24cache9_21(Converter_2_t3479950270 * value)
{
___U3CU3Ef__amU24cache9_21 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cache9_21), value);
}
inline static int32_t get_offset_of_U3CU3Ef__amU24cacheA_22() { return static_cast<int32_t>(offsetof(FluidParallelPlugin_t3366117264_StaticFields, ___U3CU3Ef__amU24cacheA_22)); }
inline Converter_2_t3479950270 * get_U3CU3Ef__amU24cacheA_22() const { return ___U3CU3Ef__amU24cacheA_22; }
inline Converter_2_t3479950270 ** get_address_of_U3CU3Ef__amU24cacheA_22() { return &___U3CU3Ef__amU24cacheA_22; }
inline void set_U3CU3Ef__amU24cacheA_22(Converter_2_t3479950270 * value)
{
___U3CU3Ef__amU24cacheA_22 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3Ef__amU24cacheA_22), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDPARALLELPLUGIN_T3366117264_H
#ifndef FLUIDPARTICLEPLUGIN_T2087845768_H
#define FLUIDPARTICLEPLUGIN_T2087845768_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Plugins.FluidParticlePlugin
struct FluidParticlePlugin_t2087845768 : public FluidParallelPlugin_t3366117264
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDPARTICLEPLUGIN_T2087845768_H
#ifndef FLUIDPARTICLEPAIRPLUGIN_T2917011702_H
#define FLUIDPARTICLEPAIRPLUGIN_T2917011702_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.Plugins.FluidParticlePairPlugin
struct FluidParticlePairPlugin_t2917011702 : public FluidParallelPlugin_t3366117264
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDPARTICLEPAIRPLUGIN_T2917011702_H
#ifndef FLUIDMIXER_T1501991927_H
#define FLUIDMIXER_T1501991927_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.SamplePlugins.FluidMixer
struct FluidMixer_t1501991927 : public FluidParticlePairPlugin_t2917011702
{
public:
// Thinksquirrel.Fluvio.FluidBase Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::fluidB
FluidBase_t2442071467 * ___fluidB_23;
// UnityEngine.ParticleSystem Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::fluidC
ParticleSystem_t1800779281 * ___fluidC_24;
// UnityEngine.ParticleSystem Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::fluidD
ParticleSystem_t1800779281 * ___fluidD_25;
// System.Single Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::distanceMultiplier
float ___distanceMultiplier_26;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_Count
int32_t ___m_Count_27;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_OldCount
int32_t ___m_OldCount_28;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_FluidAID
int32_t ___m_FluidAID_29;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_FluidBID
int32_t ___m_FluidBID_30;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_FluidCID
int32_t ___m_FluidCID_31;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_FluidDID
int32_t ___m_FluidDID_32;
// Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData[] Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_MixerData
FluidMixerDataU5BU5D_t901665531* ___m_MixerData_33;
// System.Boolean Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_FirstFrame
bool ___m_FirstFrame_34;
// Thinksquirrel.Fluvio.FluvioTimeStep Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_TimeStep
FluvioTimeStep_t3427387132 ___m_TimeStep_35;
// UnityEngine.Vector3 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_Gravity
Vector3_t3722313464 ___m_Gravity_36;
// System.Single Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_SimulationScale
float ___m_SimulationScale_37;
// System.Boolean Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_MixingFluidsAreTheSame
bool ___m_MixingFluidsAreTheSame_38;
// System.Single Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::m_MixingDistanceSq
float ___m_MixingDistanceSq_39;
public:
inline static int32_t get_offset_of_fluidB_23() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___fluidB_23)); }
inline FluidBase_t2442071467 * get_fluidB_23() const { return ___fluidB_23; }
inline FluidBase_t2442071467 ** get_address_of_fluidB_23() { return &___fluidB_23; }
inline void set_fluidB_23(FluidBase_t2442071467 * value)
{
___fluidB_23 = value;
Il2CppCodeGenWriteBarrier((&___fluidB_23), value);
}
inline static int32_t get_offset_of_fluidC_24() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___fluidC_24)); }
inline ParticleSystem_t1800779281 * get_fluidC_24() const { return ___fluidC_24; }
inline ParticleSystem_t1800779281 ** get_address_of_fluidC_24() { return &___fluidC_24; }
inline void set_fluidC_24(ParticleSystem_t1800779281 * value)
{
___fluidC_24 = value;
Il2CppCodeGenWriteBarrier((&___fluidC_24), value);
}
inline static int32_t get_offset_of_fluidD_25() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___fluidD_25)); }
inline ParticleSystem_t1800779281 * get_fluidD_25() const { return ___fluidD_25; }
inline ParticleSystem_t1800779281 ** get_address_of_fluidD_25() { return &___fluidD_25; }
inline void set_fluidD_25(ParticleSystem_t1800779281 * value)
{
___fluidD_25 = value;
Il2CppCodeGenWriteBarrier((&___fluidD_25), value);
}
inline static int32_t get_offset_of_distanceMultiplier_26() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___distanceMultiplier_26)); }
inline float get_distanceMultiplier_26() const { return ___distanceMultiplier_26; }
inline float* get_address_of_distanceMultiplier_26() { return &___distanceMultiplier_26; }
inline void set_distanceMultiplier_26(float value)
{
___distanceMultiplier_26 = value;
}
inline static int32_t get_offset_of_m_Count_27() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_Count_27)); }
inline int32_t get_m_Count_27() const { return ___m_Count_27; }
inline int32_t* get_address_of_m_Count_27() { return &___m_Count_27; }
inline void set_m_Count_27(int32_t value)
{
___m_Count_27 = value;
}
inline static int32_t get_offset_of_m_OldCount_28() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_OldCount_28)); }
inline int32_t get_m_OldCount_28() const { return ___m_OldCount_28; }
inline int32_t* get_address_of_m_OldCount_28() { return &___m_OldCount_28; }
inline void set_m_OldCount_28(int32_t value)
{
___m_OldCount_28 = value;
}
inline static int32_t get_offset_of_m_FluidAID_29() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_FluidAID_29)); }
inline int32_t get_m_FluidAID_29() const { return ___m_FluidAID_29; }
inline int32_t* get_address_of_m_FluidAID_29() { return &___m_FluidAID_29; }
inline void set_m_FluidAID_29(int32_t value)
{
___m_FluidAID_29 = value;
}
inline static int32_t get_offset_of_m_FluidBID_30() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_FluidBID_30)); }
inline int32_t get_m_FluidBID_30() const { return ___m_FluidBID_30; }
inline int32_t* get_address_of_m_FluidBID_30() { return &___m_FluidBID_30; }
inline void set_m_FluidBID_30(int32_t value)
{
___m_FluidBID_30 = value;
}
inline static int32_t get_offset_of_m_FluidCID_31() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_FluidCID_31)); }
inline int32_t get_m_FluidCID_31() const { return ___m_FluidCID_31; }
inline int32_t* get_address_of_m_FluidCID_31() { return &___m_FluidCID_31; }
inline void set_m_FluidCID_31(int32_t value)
{
___m_FluidCID_31 = value;
}
inline static int32_t get_offset_of_m_FluidDID_32() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_FluidDID_32)); }
inline int32_t get_m_FluidDID_32() const { return ___m_FluidDID_32; }
inline int32_t* get_address_of_m_FluidDID_32() { return &___m_FluidDID_32; }
inline void set_m_FluidDID_32(int32_t value)
{
___m_FluidDID_32 = value;
}
inline static int32_t get_offset_of_m_MixerData_33() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_MixerData_33)); }
inline FluidMixerDataU5BU5D_t901665531* get_m_MixerData_33() const { return ___m_MixerData_33; }
inline FluidMixerDataU5BU5D_t901665531** get_address_of_m_MixerData_33() { return &___m_MixerData_33; }
inline void set_m_MixerData_33(FluidMixerDataU5BU5D_t901665531* value)
{
___m_MixerData_33 = value;
Il2CppCodeGenWriteBarrier((&___m_MixerData_33), value);
}
inline static int32_t get_offset_of_m_FirstFrame_34() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_FirstFrame_34)); }
inline bool get_m_FirstFrame_34() const { return ___m_FirstFrame_34; }
inline bool* get_address_of_m_FirstFrame_34() { return &___m_FirstFrame_34; }
inline void set_m_FirstFrame_34(bool value)
{
___m_FirstFrame_34 = value;
}
inline static int32_t get_offset_of_m_TimeStep_35() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_TimeStep_35)); }
inline FluvioTimeStep_t3427387132 get_m_TimeStep_35() const { return ___m_TimeStep_35; }
inline FluvioTimeStep_t3427387132 * get_address_of_m_TimeStep_35() { return &___m_TimeStep_35; }
inline void set_m_TimeStep_35(FluvioTimeStep_t3427387132 value)
{
___m_TimeStep_35 = value;
}
inline static int32_t get_offset_of_m_Gravity_36() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_Gravity_36)); }
inline Vector3_t3722313464 get_m_Gravity_36() const { return ___m_Gravity_36; }
inline Vector3_t3722313464 * get_address_of_m_Gravity_36() { return &___m_Gravity_36; }
inline void set_m_Gravity_36(Vector3_t3722313464 value)
{
___m_Gravity_36 = value;
}
inline static int32_t get_offset_of_m_SimulationScale_37() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_SimulationScale_37)); }
inline float get_m_SimulationScale_37() const { return ___m_SimulationScale_37; }
inline float* get_address_of_m_SimulationScale_37() { return &___m_SimulationScale_37; }
inline void set_m_SimulationScale_37(float value)
{
___m_SimulationScale_37 = value;
}
inline static int32_t get_offset_of_m_MixingFluidsAreTheSame_38() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_MixingFluidsAreTheSame_38)); }
inline bool get_m_MixingFluidsAreTheSame_38() const { return ___m_MixingFluidsAreTheSame_38; }
inline bool* get_address_of_m_MixingFluidsAreTheSame_38() { return &___m_MixingFluidsAreTheSame_38; }
inline void set_m_MixingFluidsAreTheSame_38(bool value)
{
___m_MixingFluidsAreTheSame_38 = value;
}
inline static int32_t get_offset_of_m_MixingDistanceSq_39() { return static_cast<int32_t>(offsetof(FluidMixer_t1501991927, ___m_MixingDistanceSq_39)); }
inline float get_m_MixingDistanceSq_39() const { return ___m_MixingDistanceSq_39; }
inline float* get_address_of_m_MixingDistanceSq_39() { return &___m_MixingDistanceSq_39; }
inline void set_m_MixingDistanceSq_39(float value)
{
___m_MixingDistanceSq_39 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDMIXER_T1501991927_H
#ifndef FLUIDTOUCH_T1832949139_H
#define FLUIDTOUCH_T1832949139_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Thinksquirrel.Fluvio.SamplePlugins.FluidTouch
struct FluidTouch_t1832949139 : public FluidParticlePlugin_t2087845768
{
public:
// Thinksquirrel.Fluvio.FluvioMinMaxCurve Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::acceleration
FluvioMinMaxCurve_t1877352570 * ___acceleration_23;
// System.Single Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::radius
float ___radius_24;
// System.Boolean Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::alwaysOn
bool ___alwaysOn_25;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::mouseButton
int32_t ___mouseButton_26;
// System.Boolean Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::useMultiTouch
bool ___useMultiTouch_27;
// UnityEngine.Vector4[] Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::m_TouchPoints
Vector4U5BU5D_t934056436* ___m_TouchPoints_28;
// System.Int32 Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::m_TouchPointsCount
int32_t ___m_TouchPointsCount_29;
public:
inline static int32_t get_offset_of_acceleration_23() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___acceleration_23)); }
inline FluvioMinMaxCurve_t1877352570 * get_acceleration_23() const { return ___acceleration_23; }
inline FluvioMinMaxCurve_t1877352570 ** get_address_of_acceleration_23() { return &___acceleration_23; }
inline void set_acceleration_23(FluvioMinMaxCurve_t1877352570 * value)
{
___acceleration_23 = value;
Il2CppCodeGenWriteBarrier((&___acceleration_23), value);
}
inline static int32_t get_offset_of_radius_24() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___radius_24)); }
inline float get_radius_24() const { return ___radius_24; }
inline float* get_address_of_radius_24() { return &___radius_24; }
inline void set_radius_24(float value)
{
___radius_24 = value;
}
inline static int32_t get_offset_of_alwaysOn_25() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___alwaysOn_25)); }
inline bool get_alwaysOn_25() const { return ___alwaysOn_25; }
inline bool* get_address_of_alwaysOn_25() { return &___alwaysOn_25; }
inline void set_alwaysOn_25(bool value)
{
___alwaysOn_25 = value;
}
inline static int32_t get_offset_of_mouseButton_26() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___mouseButton_26)); }
inline int32_t get_mouseButton_26() const { return ___mouseButton_26; }
inline int32_t* get_address_of_mouseButton_26() { return &___mouseButton_26; }
inline void set_mouseButton_26(int32_t value)
{
___mouseButton_26 = value;
}
inline static int32_t get_offset_of_useMultiTouch_27() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___useMultiTouch_27)); }
inline bool get_useMultiTouch_27() const { return ___useMultiTouch_27; }
inline bool* get_address_of_useMultiTouch_27() { return &___useMultiTouch_27; }
inline void set_useMultiTouch_27(bool value)
{
___useMultiTouch_27 = value;
}
inline static int32_t get_offset_of_m_TouchPoints_28() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___m_TouchPoints_28)); }
inline Vector4U5BU5D_t934056436* get_m_TouchPoints_28() const { return ___m_TouchPoints_28; }
inline Vector4U5BU5D_t934056436** get_address_of_m_TouchPoints_28() { return &___m_TouchPoints_28; }
inline void set_m_TouchPoints_28(Vector4U5BU5D_t934056436* value)
{
___m_TouchPoints_28 = value;
Il2CppCodeGenWriteBarrier((&___m_TouchPoints_28), value);
}
inline static int32_t get_offset_of_m_TouchPointsCount_29() { return static_cast<int32_t>(offsetof(FluidTouch_t1832949139, ___m_TouchPointsCount_29)); }
inline int32_t get_m_TouchPointsCount_29() const { return ___m_TouchPointsCount_29; }
inline int32_t* get_address_of_m_TouchPointsCount_29() { return &___m_TouchPointsCount_29; }
inline void set_m_TouchPointsCount_29(int32_t value)
{
___m_TouchPointsCount_29 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FLUIDTOUCH_T1832949139_H
// System.Object[]
struct ObjectU5BU5D_t2843939325 : public RuntimeArray
{
public:
ALIGN_FIELD (8) RuntimeObject * m_Items[1];
public:
inline RuntimeObject * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline RuntimeObject ** 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, RuntimeObject * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline RuntimeObject * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline RuntimeObject ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, RuntimeObject * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// UnityEngine.Renderer[]
struct RendererU5BU5D_t3210418286 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Renderer_t2627027031 * m_Items[1];
public:
inline Renderer_t2627027031 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Renderer_t2627027031 ** 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, Renderer_t2627027031 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Renderer_t2627027031 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Renderer_t2627027031 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Renderer_t2627027031 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// UnityEngine.Collider[]
struct ColliderU5BU5D_t4234922487 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Collider_t1773347010 * m_Items[1];
public:
inline Collider_t1773347010 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Collider_t1773347010 ** 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, Collider_t1773347010 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Collider_t1773347010 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Collider_t1773347010 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Collider_t1773347010 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// UnityEngine.Canvas[]
struct CanvasU5BU5D_t682926938 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Canvas_t3310196443 * m_Items[1];
public:
inline Canvas_t3310196443 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Canvas_t3310196443 ** 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, Canvas_t3310196443 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline Canvas_t3310196443 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Canvas_t3310196443 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Canvas_t3310196443 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData[]
struct FluidMixerDataU5BU5D_t901665531 : public RuntimeArray
{
public:
ALIGN_FIELD (8) FluidMixerData_t2739974414 m_Items[1];
public:
inline FluidMixerData_t2739974414 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline FluidMixerData_t2739974414 * 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, FluidMixerData_t2739974414 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline FluidMixerData_t2739974414 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline FluidMixerData_t2739974414 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, FluidMixerData_t2739974414 value)
{
m_Items[index] = value;
}
};
// UnityEngine.Vector4[]
struct Vector4U5BU5D_t934056436 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Vector4_t3319028937 m_Items[1];
public:
inline Vector4_t3319028937 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Vector4_t3319028937 * 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, Vector4_t3319028937 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline Vector4_t3319028937 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Vector4_t3319028937 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Vector4_t3319028937 value)
{
m_Items[index] = value;
}
};
// System.String[]
struct StringU5BU5D_t1281789340 : public RuntimeArray
{
public:
ALIGN_FIELD (8) String_t* m_Items[1];
public:
inline String_t* GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline String_t** 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, String_t* value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
inline String_t* GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline String_t** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, String_t* value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier(m_Items + index, value);
}
};
// System.Void System.Action`1<Vuforia.VuforiaUnity/InitError>::.ctor(System.Object,System.IntPtr)
extern "C" void Action_1__ctor_m2713332384_gshared (Action_1_t3593217305 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// !!0 UnityEngine.Resources::GetBuiltinResource<System.Object>(System.String)
extern "C" RuntimeObject * Resources_GetBuiltinResource_TisRuntimeObject_m3352626831_gshared (RuntimeObject * __this /* static, unused */, String_t* p0, const RuntimeMethod* method);
// !!0 UnityEngine.Component::GetComponent<System.Object>()
extern "C" RuntimeObject * Component_GetComponent_TisRuntimeObject_m2906321015_gshared (Component_t1923634451 * __this, const RuntimeMethod* method);
// !!0[] UnityEngine.Component::GetComponentsInChildren<System.Object>(System.Boolean)
extern "C" ObjectU5BU5D_t2843939325* Component_GetComponentsInChildren_TisRuntimeObject_m2748495586_gshared (Component_t1923634451 * __this, bool p0, const RuntimeMethod* method);
// !!0 UnityEngine.Object::Instantiate<System.Object>(!!0,UnityEngine.Transform)
extern "C" RuntimeObject * Object_Instantiate_TisRuntimeObject_m1061214600_gshared (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, Transform_t3600365921 * p1, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<System.Object>()
extern "C" RuntimeObject * GameObject_GetComponent_TisRuntimeObject_m2049753423_gshared (GameObject_t1113636619 * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponentInParent<System.Object>()
extern "C" RuntimeObject * GameObject_GetComponentInParent_TisRuntimeObject_m3574741854_gshared (GameObject_t1113636619 * __this, const RuntimeMethod* method);
// System.Void System.Action`1<System.Object>::.ctor(System.Object,System.IntPtr)
extern "C" void Action_1__ctor_m118522912_gshared (Action_1_t3252573759 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method);
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetComputePluginBuffer<Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData>(System.Int32,!!0[],System.Boolean)
extern "C" void FluidParallelPlugin_SetComputePluginBuffer_TisFluidMixerData_t2739974414_m1154187815_gshared (FluidParallelPlugin_t3366117264 * __this, int32_t p0, FluidMixerDataU5BU5D_t901665531* p1, bool p2, const RuntimeMethod* method);
// System.Void System.Array::Resize<Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData>(!!0[]&,System.Int32)
extern "C" void Array_Resize_TisFluidMixerData_t2739974414_m3950388657_gshared (RuntimeObject * __this /* static, unused */, FluidMixerDataU5BU5D_t901665531** p0, int32_t p1, const RuntimeMethod* method);
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::GetComputePluginBuffer<Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData>(System.Int32,!!0[])
extern "C" void FluidParallelPlugin_GetComputePluginBuffer_TisFluidMixerData_t2739974414_m669696162_gshared (FluidParallelPlugin_t3366117264 * __this, int32_t p0, FluidMixerDataU5BU5D_t901665531* p1, const RuntimeMethod* method);
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetComputePluginBuffer<UnityEngine.Vector4>(System.Int32,!!0[],System.Boolean)
extern "C" void FluidParallelPlugin_SetComputePluginBuffer_TisVector4_t3319028937_m1809992889_gshared (FluidParallelPlugin_t3366117264 * __this, int32_t p0, Vector4U5BU5D_t934056436* p1, bool p2, const RuntimeMethod* method);
// System.Void UnityEngine.MonoBehaviour::.ctor()
extern "C" void MonoBehaviour__ctor_m1579109191 (MonoBehaviour_t3962482529 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void DefaultInitializationErrorHandler::SetErrorCode(Vuforia.VuforiaUnity/InitError)
extern "C" void DefaultInitializationErrorHandler_SetErrorCode_m599033302 (DefaultInitializationErrorHandler_t3109936861 * __this, int32_t ___errorCode0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void DefaultInitializationErrorHandler::SetErrorOccurred(System.Boolean)
extern "C" void DefaultInitializationErrorHandler_SetErrorOccurred_m1940230672 (DefaultInitializationErrorHandler_t3109936861 * __this, bool ___errorOccurred0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Vuforia.VuforiaRuntime Vuforia.VuforiaRuntime::get_Instance()
extern "C" VuforiaRuntime_t1949122020 * VuforiaRuntime_get_Instance_m1058251676 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Action`1<Vuforia.VuforiaUnity/InitError>::.ctor(System.Object,System.IntPtr)
#define Action_1__ctor_m2713332384(__this, p0, p1, method) (( void (*) (Action_1_t3593217305 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_m2713332384_gshared)(__this, p0, p1, method)
// System.Void Vuforia.VuforiaRuntime::RegisterVuforiaInitErrorCallback(System.Action`1<Vuforia.VuforiaUnity/InitError>)
extern "C" void VuforiaRuntime_RegisterVuforiaInitErrorCallback_m2728879505 (VuforiaRuntime_t1949122020 * __this, Action_1_t3593217305 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void DefaultInitializationErrorHandler::SetupGUIStyles()
extern "C" void DefaultInitializationErrorHandler_SetupGUIStyles_m3863535424 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 UnityEngine.Screen::get_width()
extern "C" int32_t Screen_get_width_m345039817 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 UnityEngine.Screen::get_height()
extern "C" int32_t Screen_get_height_m1623532518 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Rect::.ctor(System.Single,System.Single,System.Single,System.Single)
extern "C" void Rect__ctor_m2614021312 (Rect_t2360479859 * __this, float p0, float p1, float p2, float p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUI/WindowFunction::.ctor(System.Object,System.IntPtr)
extern "C" void WindowFunction__ctor_m2544237635 (WindowFunction_t3146511083 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Rect UnityEngine.GUI::Window(System.Int32,UnityEngine.Rect,UnityEngine.GUI/WindowFunction,System.String)
extern "C" Rect_t2360479859 GUI_Window_m1088326791 (RuntimeObject * __this /* static, unused */, int32_t p0, Rect_t2360479859 p1, WindowFunction_t3146511083 * p2, String_t* p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Vuforia.VuforiaRuntime::UnregisterVuforiaInitErrorCallback(System.Action`1<Vuforia.VuforiaUnity/InitError>)
extern "C" void VuforiaRuntime_UnregisterVuforiaInitErrorCallback_m1304340042 (VuforiaRuntime_t1949122020 * __this, Action_1_t3593217305 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUI::Label(UnityEngine.Rect,System.String,UnityEngine.GUIStyle)
extern "C" void GUI_Label_m2420537077 (RuntimeObject * __this /* static, unused */, Rect_t2360479859 p0, String_t* p1, GUIStyle_t3956901511 * p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.GUI::Button(UnityEngine.Rect,System.String,UnityEngine.GUIStyle)
extern "C" bool GUI_Button_m2223708732 (RuntimeObject * __this /* static, unused */, Rect_t2360479859 p0, String_t* p1, GUIStyle_t3956901511 * p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Application::Quit()
extern "C" void Application_Quit_m470877999 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String DefaultInitializationErrorHandler::getKeyInfo()
extern "C" String_t* DefaultInitializationErrorHandler_getKeyInfo_m1864640064 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Concat(System.String,System.String)
extern "C" String_t* String_Concat_m3937257545 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Concat(System.String,System.String,System.String)
extern "C" String_t* String_Concat_m3755062657 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, String_t* p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String UnityEngine.Application::get_productName()
extern "C" String_t* Application_get_productName_m2401755738 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Replace(System.String,System.String)
extern "C" String_t* String_Replace_m1273907647 (String_t* __this, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Concat(System.String,System.String,System.String,System.String)
extern "C" String_t* String_Concat_m2163913788 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, String_t* p2, String_t* p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Concat(System.Object[])
extern "C" String_t* String_Concat_m2971454694 (RuntimeObject * __this /* static, unused */, ObjectU5BU5D_t2843939325* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Debug::LogError(System.Object)
extern "C" void Debug_LogError_m2850623458 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Vuforia.VuforiaConfiguration Vuforia.VuforiaConfiguration::get_Instance()
extern "C" VuforiaConfiguration_t1763229349 * VuforiaConfiguration_get_Instance_m3335903280 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration Vuforia.VuforiaConfiguration::get_Vuforia()
extern "C" GenericVuforiaConfiguration_t3697830469 * VuforiaConfiguration_get_Vuforia_m1588208597 (VuforiaConfiguration_t1763229349 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Vuforia.VuforiaConfiguration/GenericVuforiaConfiguration::get_LicenseKey()
extern "C" String_t* GenericVuforiaConfiguration_get_LicenseKey_m2270076687 (GenericVuforiaConfiguration_t3697830469 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.String::get_Length()
extern "C" int32_t String_get_Length_m3847582255 (String_t* __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String System.String::Substring(System.Int32,System.Int32)
extern "C" String_t* String_Substring_m1610150815 (String_t* __this, int32_t p0, int32_t p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Screen::get_dpi()
extern "C" float Screen_get_dpi_m495672463 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Color UnityEngine.Color::get_white()
extern "C" Color_t2555686324 Color_get_white_m332174077 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Texture2D DefaultInitializationErrorHandler::CreateSinglePixelTexture(UnityEngine.Color)
extern "C" Texture2D_t3840446185 * DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749 (DefaultInitializationErrorHandler_t3109936861 * __this, Color_t2555686324 ___color0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Mathf::InverseLerp(System.Single,System.Single,System.Single)
extern "C" float Mathf_InverseLerp_m4155825980 (RuntimeObject * __this /* static, unused */, float p0, float p1, float p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Color::.ctor(System.Single,System.Single,System.Single)
extern "C" void Color__ctor_m286683560 (Color_t2555686324 * __this, float p0, float p1, float p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyle::.ctor()
extern "C" void GUIStyle__ctor_m4038363858 (GUIStyle_t3956901511 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.GUIStyleState UnityEngine.GUIStyle::get_normal()
extern "C" GUIStyleState_t1397964415 * GUIStyle_get_normal_m729441812 (GUIStyle_t3956901511 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyleState::set_background(UnityEngine.Texture2D)
extern "C" void GUIStyleState_set_background_m369476077 (GUIStyleState_t1397964415 * __this, Texture2D_t3840446185 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.Resources::GetBuiltinResource<UnityEngine.Font>(System.String)
#define Resources_GetBuiltinResource_TisFont_t1956802104_m2738776830(__this /* static, unused */, p0, method) (( Font_t1956802104 * (*) (RuntimeObject * /* static, unused */, String_t*, const RuntimeMethod*))Resources_GetBuiltinResource_TisRuntimeObject_m3352626831_gshared)(__this /* static, unused */, p0, method)
// System.Void UnityEngine.GUIStyle::set_font(UnityEngine.Font)
extern "C" void GUIStyle_set_font_m2490449107 (GUIStyle_t3956901511 * __this, Font_t1956802104 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyle::set_fontSize(System.Int32)
extern "C" void GUIStyle_set_fontSize_m1566850023 (GUIStyle_t3956901511 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Color UnityEngine.Color::get_black()
extern "C" Color_t2555686324 Color_get_black_m719512684 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyleState::set_textColor(UnityEngine.Color)
extern "C" void GUIStyleState_set_textColor_m1105876047 (GUIStyleState_t1397964415 * __this, Color_t2555686324 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyle::set_wordWrap(System.Boolean)
extern "C" void GUIStyle_set_wordWrap_m1419501823 (GUIStyle_t3956901511 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyle::set_alignment(UnityEngine.TextAnchor)
extern "C" void GUIStyle_set_alignment_m3944619660 (GUIStyle_t3956901511 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.RectOffset::.ctor(System.Int32,System.Int32,System.Int32,System.Int32)
extern "C" void RectOffset__ctor_m732140021 (RectOffset_t1369453676 * __this, int32_t p0, int32_t p1, int32_t p2, int32_t p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyle::set_padding(UnityEngine.RectOffset)
extern "C" void GUIStyle_set_padding_m3302456044 (GUIStyle_t3956901511 * __this, RectOffset_t1369453676 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GUIStyle::.ctor(UnityEngine.GUIStyle)
extern "C" void GUIStyle__ctor_m2912682974 (GUIStyle_t3956901511 * __this, GUIStyle_t3956901511 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Texture2D::.ctor(System.Int32,System.Int32,UnityEngine.TextureFormat,System.Boolean)
extern "C" void Texture2D__ctor_m2862217990 (Texture2D_t3840446185 * __this, int32_t p0, int32_t p1, int32_t p2, bool p3, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Texture2D::SetPixel(System.Int32,System.Int32,UnityEngine.Color)
extern "C" void Texture2D_SetPixel_m2984741184 (Texture2D_t3840446185 * __this, int32_t p0, int32_t p1, Color_t2555686324 p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Texture2D::Apply()
extern "C" void Texture2D_Apply_m2271746283 (Texture2D_t3840446185 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.Component::GetComponent<Vuforia.TrackableBehaviour>()
#define Component_GetComponent_TisTrackableBehaviour_t1113559212_m1736119408(__this, method) (( TrackableBehaviour_t1113559212 * (*) (Component_t1923634451 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m2906321015_gshared)(__this, method)
// System.Boolean UnityEngine.Object::op_Implicit(UnityEngine.Object)
extern "C" bool Object_op_Implicit_m3574996620 (RuntimeObject * __this /* static, unused */, Object_t631007953 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Vuforia.TrackableBehaviour::RegisterTrackableEventHandler(Vuforia.ITrackableEventHandler)
extern "C" void TrackableBehaviour_RegisterTrackableEventHandler_m2462783619 (TrackableBehaviour_t1113559212 * __this, RuntimeObject* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String Vuforia.TrackableBehaviour::get_TrackableName()
extern "C" String_t* TrackableBehaviour_get_TrackableName_m3644057705 (TrackableBehaviour_t1113559212 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Debug::Log(System.Object)
extern "C" void Debug_Log_m4051431634 (RuntimeObject * __this /* static, unused */, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0[] UnityEngine.Component::GetComponentsInChildren<UnityEngine.Renderer>(System.Boolean)
#define Component_GetComponentsInChildren_TisRenderer_t2627027031_m2673895911(__this, p0, method) (( RendererU5BU5D_t3210418286* (*) (Component_t1923634451 *, bool, const RuntimeMethod*))Component_GetComponentsInChildren_TisRuntimeObject_m2748495586_gshared)(__this, p0, method)
// !!0[] UnityEngine.Component::GetComponentsInChildren<UnityEngine.Collider>(System.Boolean)
#define Component_GetComponentsInChildren_TisCollider_t1773347010_m2667952426(__this, p0, method) (( ColliderU5BU5D_t4234922487* (*) (Component_t1923634451 *, bool, const RuntimeMethod*))Component_GetComponentsInChildren_TisRuntimeObject_m2748495586_gshared)(__this, p0, method)
// !!0[] UnityEngine.Component::GetComponentsInChildren<UnityEngine.Canvas>(System.Boolean)
#define Component_GetComponentsInChildren_TisCanvas_t3310196443_m1457345007(__this, p0, method) (( CanvasU5BU5D_t682926938* (*) (Component_t1923634451 *, bool, const RuntimeMethod*))Component_GetComponentsInChildren_TisRuntimeObject_m2748495586_gshared)(__this, p0, method)
// System.Void UnityEngine.Renderer::set_enabled(System.Boolean)
extern "C" void Renderer_set_enabled_m1727253150 (Renderer_t2627027031 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Collider::set_enabled(System.Boolean)
extern "C" void Collider_set_enabled_m1517463283 (Collider_t1773347010 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Behaviour::set_enabled(System.Boolean)
extern "C" void Behaviour_set_enabled_m20417929 (Behaviour_t1437897464 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
extern "C" bool Object_op_Inequality_m4071470834 (RuntimeObject * __this /* static, unused */, Object_t631007953 * p0, Object_t631007953 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.Object::Instantiate<UnityEngine.GameObject>(!!0,UnityEngine.Transform)
#define Object_Instantiate_TisGameObject_t1113636619_m3215236302(__this /* static, unused */, p0, p1, method) (( GameObject_t1113636619 * (*) (RuntimeObject * /* static, unused */, GameObject_t1113636619 *, Transform_t3600365921 *, const RuntimeMethod*))Object_Instantiate_TisRuntimeObject_m1061214600_gshared)(__this /* static, unused */, p0, p1, method)
// System.Void HelperScript::setAttachedObject(UnityEngine.GameObject)
extern "C" void HelperScript_setAttachedObject_m3226814247 (HelperScript_t1151587737 * __this, GameObject_t1113636619 * ___newObj0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void HelperScript::setCurrentObject(UnityEngine.GameObject)
extern "C" void HelperScript_setCurrentObject_m2453875061 (HelperScript_t1151587737 * __this, GameObject_t1113636619 * ___newObj0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void HelperScript::setCurrentMode(System.String)
extern "C" void HelperScript_setCurrentMode_m2067638304 (HelperScript_t1151587737 * __this, String_t* ___newMode0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.GameObject UnityEngine.GameObject::Find(System.String)
extern "C" GameObject_t1113636619 * GameObject_Find_m2032535176 (RuntimeObject * __this /* static, unused */, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.GameObject::GetComponent<WalkthroughScript>()
#define GameObject_GetComponent_TisWalkthroughScript_t1234213269_m2081424569(__this, method) (( WalkthroughScript_t1234213269 * (*) (GameObject_t1113636619 *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_m2049753423_gshared)(__this, method)
// System.String UnityEngine.Component::get_tag()
extern "C" String_t* Component_get_tag_m2716693327 (Component_t1923634451 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::Contains(System.String)
extern "C" bool String_Contains_m1147431944 (String_t* __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void WalkthroughScript::setStep(System.String)
extern "C" void WalkthroughScript_setStep_m1321547378 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GameObject::SetActive(System.Boolean)
extern "C" void GameObject_SetActive_m796801857 (GameObject_t1113636619 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.GameObject::GetComponent<HelperScript>()
#define GameObject_GetComponent_TisHelperScript_t1151587737_m906172308(__this, method) (( HelperScript_t1151587737 * (*) (GameObject_t1113636619 *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_m2049753423_gshared)(__this, method)
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.Renderer>()
#define GameObject_GetComponent_TisRenderer_t2627027031_m1619941042(__this, method) (( Renderer_t2627027031 * (*) (GameObject_t1113636619 *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_m2049753423_gshared)(__this, method)
// UnityEngine.Material UnityEngine.Renderer::get_material()
extern "C" Material_t340375123 * Renderer_get_material_m4171603682 (Renderer_t2627027031 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Material::set_color(UnityEngine.Color)
extern "C" void Material_set_color_m1794818007 (Material_t340375123 * __this, Color_t2555686324 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.GameObject HelperScript::getCurrentObject()
extern "C" GameObject_t1113636619 * HelperScript_getCurrentObject_m2543886465 (HelperScript_t1151587737 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Transform UnityEngine.Component::get_transform()
extern "C" Transform_t3600365921 * Component_get_transform_m3162698980 (Component_t1923634451 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.GameObject UnityEngine.Component::get_gameObject()
extern "C" GameObject_t1113636619 * Component_get_gameObject_m442555142 (Component_t1923634451 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.String UnityEngine.GameObject::get_tag()
extern "C" String_t* GameObject_get_tag_m3951609671 (GameObject_t1113636619 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.GameObject HelperScript::getAttachedObject()
extern "C" GameObject_t1113636619 * HelperScript_getAttachedObject_m3640862735 (HelperScript_t1151587737 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Transform UnityEngine.GameObject::get_transform()
extern "C" Transform_t3600365921 * GameObject_get_transform_m1369836730 (GameObject_t1113636619 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Transform::set_parent(UnityEngine.Transform)
extern "C" void Transform_set_parent_m786917804 (Transform_t3600365921 * __this, Transform_t3600365921 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void PointerScript::switchObjectParent(UnityEngine.GameObject)
extern "C" void PointerScript_switchObjectParent_m2650247284 (PointerScript_t3628587701 * __this, GameObject_t1113636619 * ___curObj0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Object::Destroy(UnityEngine.Object)
extern "C" void Object_Destroy_m565254235 (RuntimeObject * __this /* static, unused */, Object_t631007953 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Transform::get_position()
extern "C" Vector3_t3722313464 Transform_get_position_m36019626 (Transform_t3600365921 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Transform::set_position(UnityEngine.Vector3)
extern "C" void Transform_set_position_m3387557959 (Transform_t3600365921 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Vector3::.ctor(System.Single,System.Single,System.Single)
extern "C" void Vector3__ctor_m3353183577 (Vector3_t3722313464 * __this, float p0, float p1, float p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Transform::set_localScale(UnityEngine.Vector3)
extern "C" void Transform_set_localScale_m3053443106 (Transform_t3600365921 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean System.String::op_Equality(System.String,System.String)
extern "C" bool String_op_Equality_m920492651 (RuntimeObject * __this /* static, unused */, String_t* p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.GameObject::SendMessage(System.String,UnityEngine.SendMessageOptions)
extern "C" void GameObject_SendMessage_m1121218340 (GameObject_t1113636619 * __this, String_t* p0, int32_t p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.GameObject::GetComponentInParent<UnityEngine.Transform>()
#define GameObject_GetComponentInParent_TisTransform_t3600365921_m2951165606(__this, method) (( Transform_t3600365921 * (*) (GameObject_t1113636619 *, const RuntimeMethod*))GameObject_GetComponentInParent_TisRuntimeObject_m3574741854_gshared)(__this, method)
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.Rigidbody>()
#define GameObject_GetComponent_TisRigidbody_t3916780224_m564316479(__this, method) (( Rigidbody_t3916780224 * (*) (GameObject_t1113636619 *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_m2049753423_gshared)(__this, method)
// System.Void UnityEngine.Rigidbody::set_freezeRotation(System.Boolean)
extern "C" void Rigidbody_set_freezeRotation_m754206839 (Rigidbody_t3916780224 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory::.ctor()
extern "C" void ThreadFactory__ctor_m2255992009 (ThreadFactory_t1346931491 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::.ctor()
extern "C" void ThreadHandler__ctor_m3525677054 (ThreadHandler_t2543061702 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.Interlocked::.ctor()
extern "C" void Interlocked__ctor_m1596332714 (Interlocked_t2336157651 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Action`1<Thinksquirrel.Fluvio.FluidBase>::.ctor(System.Object,System.IntPtr)
#define Action_1__ctor_m3132718992(__this, p0, p1, method) (( void (*) (Action_1_t2614539062 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_m118522912_gshared)(__this, p0, p1, method)
// System.Void Thinksquirrel.Fluvio.FluidBase::add_onFluidEnabled(System.Action`1<Thinksquirrel.Fluvio.FluidBase>)
extern "C" void FluidBase_add_onFluidEnabled_m2951677259 (RuntimeObject * __this /* static, unused */, Action_1_t2614539062 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluidBase::add_onFluidDisabled(System.Action`1<Thinksquirrel.Fluvio.FluidBase>)
extern "C" void FluidBase_add_onFluidDisabled_m187862416 (RuntimeObject * __this /* static, unused */, Action_1_t2614539062 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnFluidEnabled(Thinksquirrel.Fluvio.FluidBase)
extern "C" void FluvioRuntimeHelper_OnFluidEnabled_m922446055 (FluvioRuntimeHelper_t3939505274 * __this, FluidBase_t2442071467 * ___fluid0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 Thinksquirrel.Fluvio.FluidBase::get_fluidCount()
extern "C" int32_t FluidBase_get_fluidCount_m1920015235 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Thinksquirrel.Fluvio.Internal.Threading.Parallel::get_IsInitialized()
extern "C" bool Parallel_get_IsInitialized_m63898932 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.Parallel::Initialize(Thinksquirrel.Fluvio.Internal.Threading.IThreadFactory,Thinksquirrel.Fluvio.Internal.Threading.IThreadHandler,Thinksquirrel.Fluvio.Internal.Threading.IInterlocked)
extern "C" void Parallel_Initialize_m3907173424 (RuntimeObject * __this /* static, unused */, RuntimeObject* p0, RuntimeObject* p1, RuntimeObject* p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.Parallel::Reset()
extern "C" void Parallel_Reset_m1490297730 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Application::get_isEditor()
extern "C" bool Application_get_isEditor_m857789090 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::UpdateThreads(System.Boolean)
extern "C" void FluvioRuntimeHelper_UpdateThreads_m2089483363 (FluvioRuntimeHelper_t3939505274 * __this, bool ___isFocused0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluidBase::remove_onFluidEnabled(System.Action`1<Thinksquirrel.Fluvio.FluidBase>)
extern "C" void FluidBase_remove_onFluidEnabled_m3002641607 (RuntimeObject * __this /* static, unused */, Action_1_t2614539062 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluidBase::remove_onFluidDisabled(System.Action`1<Thinksquirrel.Fluvio.FluidBase>)
extern "C" void FluidBase_remove_onFluidDisabled_m2868125068 (RuntimeObject * __this /* static, unused */, Action_1_t2614539062 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Object::.ctor()
extern "C" void Object__ctor_m297566312 (RuntimeObject * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Threading.Interlocked::Increment(System.Int32&)
extern "C" int32_t Interlocked_Increment_m3548166048 (RuntimeObject * __this /* static, unused */, int32_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int64 System.Threading.Interlocked::Increment(System.Int64&)
extern "C" int64_t Interlocked_Increment_m1565533900 (RuntimeObject * __this /* static, unused */, int64_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int64 System.Threading.Interlocked::Decrement(System.Int64&)
extern "C" int64_t Interlocked_Decrement_m2654478630 (RuntimeObject * __this /* static, unused */, int64_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 System.Threading.Interlocked::CompareExchange(System.Int32&,System.Int32,System.Int32)
extern "C" int32_t Interlocked_CompareExchange_m3023855514 (RuntimeObject * __this /* static, unused */, int32_t* p0, int32_t p1, int32_t p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int64 System.Threading.Interlocked::CompareExchange(System.Int64&,System.Int64,System.Int64)
extern "C" int64_t Interlocked_CompareExchange_m1385746522 (RuntimeObject * __this /* static, unused */, int64_t* p0, int64_t p1, int64_t p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::.ctor(System.Action)
extern "C" void Thread__ctor_m2516358625 (Thread_t3301707652 * __this, Action_t1264377477 * ___threadStart0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::.ctor(System.Action`1<System.Object>)
extern "C" void Thread__ctor_m3302383024 (Thread_t3301707652 * __this, Action_1_t3252573759 * ___parameterizedThreadStart0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.ThreadStart::.ctor(System.Object,System.IntPtr)
extern "C" void ThreadStart__ctor_m3250019360 (ThreadStart_t1006689297 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::.ctor(System.Threading.ThreadStart)
extern "C" void Thread__ctor_m777188137 (Thread_t2300836069 * __this, ThreadStart_t1006689297 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::set_Priority(System.Threading.ThreadPriority)
extern "C" void Thread_set_Priority_m383432495 (Thread_t2300836069 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::set_IsBackground(System.Boolean)
extern "C" void Thread_set_IsBackground_m3868016371 (Thread_t2300836069 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.ParameterizedThreadStart::.ctor(System.Object,System.IntPtr)
extern "C" void ParameterizedThreadStart__ctor_m1643173823 (ParameterizedThreadStart_t3696804522 * __this, RuntimeObject * p0, intptr_t p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::.ctor(System.Threading.ParameterizedThreadStart)
extern "C" void Thread__ctor_m2201781645 (Thread_t2300836069 * __this, ParameterizedThreadStart_t3696804522 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::Start()
extern "C" void Thread_Start_m2860771284 (Thread_t2300836069 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::Start(System.Object)
extern "C" void Thread_Start_m2134518441 (Thread_t2300836069 * __this, RuntimeObject * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::Join()
extern "C" void Thread_Join_m742107115 (Thread_t2300836069 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Threading.ThreadState System.Threading.Thread::get_ThreadState()
extern "C" int32_t Thread_get_ThreadState_m2551357849 (Thread_t2300836069 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::Sleep(System.Int32)
extern "C" void Thread_Sleep_m483098292 (RuntimeObject * __this /* static, unused */, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.UInt32 Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::timeBeginPeriod(System.UInt32)
extern "C" uint32_t ThreadHandler_timeBeginPeriod_m2075420077 (RuntimeObject * __this /* static, unused */, uint32_t ___period0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.UInt32 Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::timeEndPeriod(System.UInt32)
extern "C" uint32_t ThreadHandler_timeEndPeriod_m1306668173 (RuntimeObject * __this /* static, unused */, uint32_t ___period0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::SwitchToThread()
extern "C" bool ThreadHandler_SwitchToThread_m2531549192 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Threading.Thread::SpinWait(System.Int32)
extern "C" void Thread_SpinWait_m3968465979 (RuntimeObject * __this /* static, unused */, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParticlePairPlugin::.ctor()
extern "C" void FluidParticlePairPlugin__ctor_m3478916401 (FluidParticlePairPlugin_t2917011702 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Thinksquirrel.Fluvio.FluvioComputeShader Thinksquirrel.Fluvio.FluvioComputeShader::Find(System.String)
extern "C" FluvioComputeShader_t2551470295 * FluvioComputeShader_Find_m1425521817 (RuntimeObject * __this /* static, unused */, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetComputeShader(Thinksquirrel.Fluvio.FluvioComputeShader,System.String)
extern "C" void FluidParallelPlugin_SetComputeShader_m1246912273 (FluidParallelPlugin_t3366117264 * __this, FluvioComputeShader_t2551470295 * p0, String_t* p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetComputePluginBuffer<Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData>(System.Int32,!!0[],System.Boolean)
#define FluidParallelPlugin_SetComputePluginBuffer_TisFluidMixerData_t2739974414_m1154187815(__this, p0, p1, p2, method) (( void (*) (FluidParallelPlugin_t3366117264 *, int32_t, FluidMixerDataU5BU5D_t901665531*, bool, const RuntimeMethod*))FluidParallelPlugin_SetComputePluginBuffer_TisFluidMixerData_t2739974414_m1154187815_gshared)(__this, p0, p1, p2, method)
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::set_includeFluidGroup(System.Boolean)
extern "C" void FluidParallelPlugin_set_includeFluidGroup_m1797680778 (FluidParallelPlugin_t3366117264 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Behaviour::get_enabled()
extern "C" bool Behaviour_get_enabled_m753527255 (Behaviour_t1437897464 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Thinksquirrel.Fluvio.FluidBase Thinksquirrel.Fluvio.Plugins.FluidPlugin::get_fluid()
extern "C" FluidBase_t2442071467 * FluidPlugin_get_fluid_m1638503413 (FluidPlugin_t2696458681 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 Thinksquirrel.Fluvio.FluidBase::GetTotalParticleCount()
extern "C" int32_t FluidBase_GetTotalParticleCount_m1053880448 (FluidBase_t2442071467 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void System.Array::Resize<Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData>(!!0[]&,System.Int32)
#define Array_Resize_TisFluidMixerData_t2739974414_m3950388657(__this /* static, unused */, p0, p1, method) (( void (*) (RuntimeObject * /* static, unused */, FluidMixerDataU5BU5D_t901665531**, int32_t, const RuntimeMethod*))Array_Resize_TisFluidMixerData_t2739974414_m3950388657_gshared)(__this /* static, unused */, p0, p1, method)
// UnityEngine.Vector3 Thinksquirrel.Fluvio.FluidBase::get_gravity()
extern "C" Vector3_t3722313464 FluidBase_get_gravity_m3726848975 (FluidBase_t2442071467 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single Thinksquirrel.Fluvio.FluidBase::get_simulationScale()
extern "C" float FluidBase_get_simulationScale_m3896504596 (FluidBase_t2442071467 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object)
extern "C" bool Object_op_Equality_m1810815630 (RuntimeObject * __this /* static, unused */, Object_t631007953 * p0, Object_t631007953 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single Thinksquirrel.Fluvio.FluidBase::get_smoothingDistance()
extern "C" float FluidBase_get_smoothingDistance_m1804750112 (FluidBase_t2442071467 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 Thinksquirrel.Fluvio.FluidBase::GetFluidID()
extern "C" int32_t FluidBase_GetFluidID_m1999466632 (FluidBase_t2442071467 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// Thinksquirrel.Fluvio.FluidBase Thinksquirrel.Fluvio.Plugins.SolverData::GetFluid(System.Int32)
extern "C" FluidBase_t2442071467 * SolverData_GetFluid_m174511767 (SolverData_t3372117984 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 Thinksquirrel.Fluvio.Plugins.SolverData::GetPosition(System.Int32)
extern "C" Vector3_t3722313464 SolverData_GetPosition_m3446942689 (SolverData_t3372117984 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3,UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Vector3_op_Subtraction_m3073674971 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, Vector3_t3722313464 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Vector3::get_sqrMagnitude()
extern "C" float Vector3_get_sqrMagnitude_m1474274574 (Vector3_t3722313464 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 Thinksquirrel.Fluvio.Plugins.SolverData::GetVelocity(System.Int32)
extern "C" Vector3_t3722313464 SolverData_GetVelocity_m248941544 (SolverData_t3372117984 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single Thinksquirrel.Fluvio.Plugins.SolverData::GetMass(System.Int32)
extern "C" float SolverData_GetMass_m992124970 (SolverData_t3372117984 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.SolverData::SetLifetime(System.Int32,System.Single)
extern "C" void SolverData_SetLifetime_m1596303488 (SolverData_t3372117984 * __this, int32_t p0, float p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 Thinksquirrel.Fluvio.Plugins.SolverData::GetForce(System.Int32)
extern "C" Vector3_t3722313464 SolverData_GetForce_m873236781 (SolverData_t3372117984 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3,System.Single)
extern "C" Vector3_t3722313464 Vector3_op_Multiply_m3376773913 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, float p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::op_Addition(UnityEngine.Vector3,UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Vector3_op_Addition_m779775034 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, Vector3_t3722313464 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::op_Multiply(System.Single,UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Vector3_op_Multiply_m2104357790 (RuntimeObject * __this /* static, unused */, float p0, Vector3_t3722313464 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Thinksquirrel.Fluvio.VectorValidationExtensions::IsNaN(UnityEngine.Vector3)
extern "C" bool VectorValidationExtensions_IsNaN_m1363046296 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean Thinksquirrel.Fluvio.VectorValidationExtensions::IsInf(UnityEngine.Vector3)
extern "C" bool VectorValidationExtensions_IsInf_m3364351952 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Vector3::Dot(UnityEngine.Vector3,UnityEngine.Vector3)
extern "C" float Vector3_Dot_m606404487 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, Vector3_t3722313464 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
extern "C" Vector3_t3722313464 Vector3_get_zero_m1409827619 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector4 UnityEngine.Vector4::op_Implicit(UnityEngine.Vector3)
extern "C" Vector4_t3319028937 Vector4_op_Implicit_m2966035112 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::GetComputePluginBuffer<Thinksquirrel.Fluvio.SamplePlugins.FluidMixer/FluidMixerData>(System.Int32,!!0[])
#define FluidParallelPlugin_GetComputePluginBuffer_TisFluidMixerData_t2739974414_m669696162(__this, p0, p1, method) (( void (*) (FluidParallelPlugin_t3366117264 *, int32_t, FluidMixerDataU5BU5D_t901665531*, const RuntimeMethod*))FluidParallelPlugin_GetComputePluginBuffer_TisFluidMixerData_t2739974414_m669696162_gshared)(__this, p0, p1, method)
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::get_identity()
extern "C" Matrix4x4_t1817901843 Matrix4x4_get_identity_m1406790249 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.ParticleSystem/MainModule UnityEngine.ParticleSystem::get_main()
extern "C" MainModule_t2320046318 ParticleSystem_get_main_m3006917117 (ParticleSystem_t1800779281 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.ParticleSystemSimulationSpace UnityEngine.ParticleSystem/MainModule::get_simulationSpace()
extern "C" int32_t MainModule_get_simulationSpace_m2279134456 (MainModule_t2320046318 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.ParticleSystemScalingMode UnityEngine.ParticleSystem/MainModule::get_scalingMode()
extern "C" int32_t MainModule_get_scalingMode_m747393725 (MainModule_t2320046318 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Transform UnityEngine.ParticleSystem/MainModule::get_customSimulationSpace()
extern "C" Transform_t3600365921 * MainModule_get_customSimulationSpace_m924936985 (MainModule_t2320046318 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Matrix4x4 UnityEngine.Transform::get_localToWorldMatrix()
extern "C" Matrix4x4_t1817901843 Transform_get_localToWorldMatrix_m4155710351 (Transform_t3600365921 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Quaternion UnityEngine.Transform::get_rotation()
extern "C" Quaternion_t2301928331 Transform_get_rotation_m3502953881 (Transform_t3600365921 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Transform::get_localScale()
extern "C" Vector3_t3722313464 Transform_get_localScale_m129152068 (Transform_t3600365921 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::TRS(UnityEngine.Vector3,UnityEngine.Quaternion,UnityEngine.Vector3)
extern "C" Matrix4x4_t1817901843 Matrix4x4_TRS_m3801934620 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, Quaternion_t2301928331 p1, Vector3_t3722313464 p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::get_one()
extern "C" Vector3_t3722313464 Vector3_get_one_m1629952498 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector4::op_Implicit(UnityEngine.Vector4)
extern "C" Vector3_t3722313464 Vector4_op_Implicit_m1158564884 (RuntimeObject * __this /* static, unused */, Vector4_t3319028937 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Matrix4x4::MultiplyPoint3x4(UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Matrix4x4_MultiplyPoint3x4_m4145063176 (Matrix4x4_t1817901843 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.ParticleSystem/EmitParams::set_position(UnityEngine.Vector3)
extern "C" void EmitParams_set_position_m3162245934 (EmitParams_t2216423628 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Matrix4x4::MultiplyVector(UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Matrix4x4_MultiplyVector_m3808798942 (Matrix4x4_t1817901843 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.ParticleSystem/EmitParams::set_velocity(UnityEngine.Vector3)
extern "C" void EmitParams_set_velocity_m4290211678 (EmitParams_t2216423628 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.ParticleSystem::Emit(UnityEngine.ParticleSystem/EmitParams,System.Int32)
extern "C" void ParticleSystem_Emit_m1241484254 (ParticleSystem_t1800779281 * __this, EmitParams_t2216423628 p0, int32_t p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParticlePlugin::.ctor()
extern "C" void FluidParticlePlugin__ctor_m1060527277 (FluidParticlePlugin_t2087845768 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluvioMinMaxCurve::.ctor()
extern "C" void FluvioMinMaxCurve__ctor_m727629918 (FluvioMinMaxCurve_t1877352570 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluvioMinMaxCurve::set_scalar(System.Single)
extern "C" void FluvioMinMaxCurve_set_scalar_m3122854881 (FluvioMinMaxCurve_t1877352570 * __this, float p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluvioMinMaxCurve::set_minConstant(System.Single)
extern "C" void FluvioMinMaxCurve_set_minConstant_m1565453508 (FluvioMinMaxCurve_t1877352570 * __this, float p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.FluvioMinMaxCurve::set_maxConstant(System.Single)
extern "C" void FluvioMinMaxCurve_set_maxConstant_m1975126104 (FluvioMinMaxCurve_t1877352570 * __this, float p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetCurveAsSigned(Thinksquirrel.Fluvio.FluvioMinMaxCurve,System.Boolean)
extern "C" void FluidParallelPlugin_SetCurveAsSigned_m1549982698 (FluidParallelPlugin_t3366117264 * __this, FluvioMinMaxCurve_t1877352570 * p0, bool p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Application::get_isPlaying()
extern "C" bool Application_get_isPlaying_m100394690 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Camera UnityEngine.Camera::get_main()
extern "C" Camera_t4157153871 * Camera_get_main_m3643453163 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Transform::get_forward()
extern "C" Vector3_t3722313464 Transform_get_forward_m747522392 (Transform_t3600365921 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector3::op_UnaryNegation(UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Vector3_op_UnaryNegation_m1951478815 (RuntimeObject * __this /* static, unused */, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Plane::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
extern "C" void Plane__ctor_m2890438515 (Plane_t1000493321 * __this, Vector3_t3722313464 p0, Vector3_t3722313464 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Int32 UnityEngine.Input::get_touchCount()
extern "C" int32_t Input_get_touchCount_m3403849067 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Input::GetMouseButton(System.Int32)
extern "C" bool Input_GetMouseButton_m513753021 (RuntimeObject * __this /* static, unused */, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Input::get_mousePosition()
extern "C" Vector3_t3722313464 Input_get_mousePosition_m1616496925 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::AddTouchPoint(UnityEngine.Vector3,UnityEngine.Camera,UnityEngine.Plane)
extern "C" void FluidTouch_AddTouchPoint_m14484858 (FluidTouch_t1832949139 * __this, Vector3_t3722313464 ___touchPosition0, Camera_t4157153871 * ___cam1, Plane_t1000493321 ___plane2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Touch UnityEngine.Input::GetTouch(System.Int32)
extern "C" Touch_t1921856868 Input_GetTouch_m2192712756 (RuntimeObject * __this /* static, unused */, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector2 UnityEngine.Touch::get_position()
extern "C" Vector2_t2156229523 Touch_get_position_m3109777936 (Touch_t1921856868 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector2)
extern "C" Vector3_t3722313464 Vector2_op_Implicit_m1860157806 (RuntimeObject * __this /* static, unused */, Vector2_t2156229523 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Boolean UnityEngine.Camera::get_orthographic()
extern "C" bool Camera_get_orthographic_m2831464531 (Camera_t4157153871 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Camera::set_orthographic(System.Boolean)
extern "C" void Camera_set_orthographic_m2855749523 (Camera_t4157153871 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Camera::get_nearClipPlane()
extern "C" float Camera_get_nearClipPlane_m837839537 (Camera_t4157153871 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Camera::ScreenToWorldPoint(UnityEngine.Vector3)
extern "C" Vector3_t3722313464 Camera_ScreenToWorldPoint_m3978588570 (Camera_t4157153871 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Plane::get_normal()
extern "C" Vector3_t3722313464 Plane_get_normal_m2366091158 (Plane_t1000493321 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Ray::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
extern "C" void Ray__ctor_m168149494 (Ray_t3785851493 * __this, Vector3_t3722313464 p0, Vector3_t3722313464 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Ray::get_origin()
extern "C" Vector3_t3722313464 Ray_get_origin_m2819290985 (Ray_t3785851493 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Plane::GetDistanceToPoint(UnityEngine.Vector3)
extern "C" float Plane_GetDistanceToPoint_m484165678 (Plane_t1000493321 * __this, Vector3_t3722313464 p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Ray::GetPoint(System.Single)
extern "C" Vector3_t3722313464 Ray_GetPoint_m1852405345 (Ray_t3785851493 * __this, float p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetComputePluginMinMaxCurve(System.Int32,Thinksquirrel.Fluvio.FluvioMinMaxCurve)
extern "C" void FluidParallelPlugin_SetComputePluginMinMaxCurve_m1504106939 (FluidParallelPlugin_t3366117264 * __this, int32_t p0, FluvioMinMaxCurve_t1877352570 * p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.FluidParallelPlugin::SetComputePluginBuffer<UnityEngine.Vector4>(System.Int32,!!0[],System.Boolean)
#define FluidParallelPlugin_SetComputePluginBuffer_TisVector4_t3319028937_m1809992889(__this, p0, p1, p2, method) (( void (*) (FluidParallelPlugin_t3366117264 *, int32_t, Vector4U5BU5D_t934056436*, bool, const RuntimeMethod*))FluidParallelPlugin_SetComputePluginBuffer_TisVector4_t3319028937_m1809992889_gshared)(__this, p0, p1, p2, method)
// System.UInt32 Thinksquirrel.Fluvio.Plugins.SolverData::GetRandomSeed(System.Int32)
extern "C" uint32_t SolverData_GetRandomSeed_m1906802397 (SolverData_t3372117984 * __this, int32_t p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector4 UnityEngine.Vector4::op_Subtraction(UnityEngine.Vector4,UnityEngine.Vector4)
extern "C" Vector4_t3319028937 Vector4_op_Subtraction_m1632208160 (RuntimeObject * __this /* static, unused */, Vector4_t3319028937 p0, Vector4_t3319028937 p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single UnityEngine.Vector4::get_magnitude()
extern "C" float Vector4_get_magnitude_m3909302680 (Vector4_t3319028937 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector4 UnityEngine.Vector4::op_Division(UnityEngine.Vector4,System.Single)
extern "C" Vector4_t3319028937 Vector4_op_Division_m264790546 (RuntimeObject * __this /* static, unused */, Vector4_t3319028937 p0, float p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Single Thinksquirrel.Fluvio.FluvioMinMaxCurve::Evaluate(System.UInt32,System.Single)
extern "C" float FluvioMinMaxCurve_Evaluate_m1971349275 (FluvioMinMaxCurve_t1877352570 * __this, uint32_t p0, float p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector4 UnityEngine.Vector4::op_Multiply(UnityEngine.Vector4,System.Single)
extern "C" Vector4_t3319028937 Vector4_op_Multiply_m213790997 (RuntimeObject * __this /* static, unused */, Vector4_t3319028937 p0, float p1, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void Thinksquirrel.Fluvio.Plugins.SolverData::AddForce(System.Int32,UnityEngine.Vector3,UnityEngine.ForceMode)
extern "C" void SolverData_AddForce_m1375700085 (SolverData_t3372117984 * __this, int32_t p0, Vector3_t3722313464 p1, int32_t p2, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void WalkthroughScript::clearWorkspace(System.String)
extern "C" void WalkthroughScript_clearWorkspace_m1013203047 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void WalkthroughScript::onMordantRotation()
extern "C" void WalkthroughScript_onMordantRotation_m1252556939 (WalkthroughScript_t1234213269 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void WalkthroughScript::updateWorkspace(System.String)
extern "C" void WalkthroughScript_updateWorkspace_m751566600 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void WalkthroughScript::updateScreens(System.String)
extern "C" void WalkthroughScript_updateScreens_m1288599812 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Transform UnityEngine.Transform::Find(System.String)
extern "C" Transform_t3600365921 * Transform_Find_m1729760951 (Transform_t3600365921 * __this, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Object UnityEngine.Resources::Load(System.String)
extern "C" Object_t631007953 * Resources_Load_m3880010804 (RuntimeObject * __this /* static, unused */, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Renderer::set_material(UnityEngine.Material)
extern "C" void Renderer_set_material_m1157964140 (Renderer_t2627027031 * __this, Material_t340375123 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Collections.IEnumerator UnityEngine.Transform::GetEnumerator()
extern "C" RuntimeObject* Transform_GetEnumerator_m2717073726 (Transform_t3600365921 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.Vector3 UnityEngine.Quaternion::get_eulerAngles()
extern "C" Vector3_t3722313464 Quaternion_get_eulerAngles_m3425202016 (Quaternion_t2301928331 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.ParticleSystem>()
#define GameObject_GetComponent_TisParticleSystem_t1800779281_m2609609468(__this, method) (( ParticleSystem_t1800779281 * (*) (GameObject_t1113636619 *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_m2049753423_gshared)(__this, method)
// System.Void UnityEngine.ParticleSystem::Play()
extern "C" void ParticleSystem_Play_m882713458 (ParticleSystem_t1800779281 * __this, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.ParticleSystem::set_enableEmission(System.Boolean)
extern "C" void ParticleSystem_set_enableEmission_m2450064795 (ParticleSystem_t1800779281 * __this, bool p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// UnityEngine.GameObject UnityEngine.GameObject::FindGameObjectWithTag(System.String)
extern "C" GameObject_t1113636619 * GameObject_FindGameObjectWithTag_m2129039296 (RuntimeObject * __this /* static, unused */, String_t* p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
// System.Void UnityEngine.Transform::LookAt(UnityEngine.Transform)
extern "C" void Transform_LookAt_m3968184312 (Transform_t3600365921 * __this, Transform_t3600365921 * p0, const RuntimeMethod* method) IL2CPP_METHOD_ATTR;
#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 DefaultInitializationErrorHandler::.ctor()
extern "C" void DefaultInitializationErrorHandler__ctor_m2145257936 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler__ctor_m2145257936_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_0 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_2();
__this->set_mErrorText_2(L_0);
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void DefaultInitializationErrorHandler::OnVuforiaInitializationError(Vuforia.VuforiaUnity/InitError)
extern "C" void DefaultInitializationErrorHandler_OnVuforiaInitializationError_m512807497 (DefaultInitializationErrorHandler_t3109936861 * __this, int32_t ___initError0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___initError0;
if (!L_0)
{
goto IL_0014;
}
}
{
int32_t L_1 = ___initError0;
DefaultInitializationErrorHandler_SetErrorCode_m599033302(__this, L_1, /*hidden argument*/NULL);
DefaultInitializationErrorHandler_SetErrorOccurred_m1940230672(__this, (bool)1, /*hidden argument*/NULL);
}
IL_0014:
{
return;
}
}
// System.Void DefaultInitializationErrorHandler::Awake()
extern "C" void DefaultInitializationErrorHandler_Awake_m1713298888 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_Awake_m1713298888_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(VuforiaRuntime_t1949122020_il2cpp_TypeInfo_var);
VuforiaRuntime_t1949122020 * L_0 = VuforiaRuntime_get_Instance_m1058251676(NULL /*static, unused*/, /*hidden argument*/NULL);
intptr_t L_1 = (intptr_t)DefaultInitializationErrorHandler_OnVuforiaInitializationError_m512807497_RuntimeMethod_var;
Action_1_t3593217305 * L_2 = (Action_1_t3593217305 *)il2cpp_codegen_object_new(Action_1_t3593217305_il2cpp_TypeInfo_var);
Action_1__ctor_m2713332384(L_2, __this, L_1, /*hidden argument*/Action_1__ctor_m2713332384_RuntimeMethod_var);
NullCheck(L_0);
VuforiaRuntime_RegisterVuforiaInitErrorCallback_m2728879505(L_0, L_2, /*hidden argument*/NULL);
return;
}
}
// System.Void DefaultInitializationErrorHandler::Start()
extern "C" void DefaultInitializationErrorHandler_Start_m2498604264 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
{
DefaultInitializationErrorHandler_SetupGUIStyles_m3863535424(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void DefaultInitializationErrorHandler::OnGUI()
extern "C" void DefaultInitializationErrorHandler_OnGUI_m2338842741 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_OnGUI_m2338842741_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
bool L_0 = __this->get_mErrorOccurred_3();
if (!L_0)
{
goto IL_003e;
}
}
{
int32_t L_1 = Screen_get_width_m345039817(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_2 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
Rect_t2360479859 L_3;
memset(&L_3, 0, sizeof(L_3));
Rect__ctor_m2614021312((&L_3), (0.0f), (0.0f), (((float)((float)L_1))), (((float)((float)L_2))), /*hidden argument*/NULL);
intptr_t L_4 = (intptr_t)DefaultInitializationErrorHandler_DrawWindowContent_m2208378571_RuntimeMethod_var;
WindowFunction_t3146511083 * L_5 = (WindowFunction_t3146511083 *)il2cpp_codegen_object_new(WindowFunction_t3146511083_il2cpp_TypeInfo_var);
WindowFunction__ctor_m2544237635(L_5, __this, L_4, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_6 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_2();
IL2CPP_RUNTIME_CLASS_INIT(GUI_t1624858472_il2cpp_TypeInfo_var);
GUI_Window_m1088326791(NULL /*static, unused*/, 0, L_3, L_5, L_6, /*hidden argument*/NULL);
}
IL_003e:
{
return;
}
}
// System.Void DefaultInitializationErrorHandler::OnDestroy()
extern "C" void DefaultInitializationErrorHandler_OnDestroy_m3668093536 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_OnDestroy_m3668093536_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(VuforiaRuntime_t1949122020_il2cpp_TypeInfo_var);
VuforiaRuntime_t1949122020 * L_0 = VuforiaRuntime_get_Instance_m1058251676(NULL /*static, unused*/, /*hidden argument*/NULL);
intptr_t L_1 = (intptr_t)DefaultInitializationErrorHandler_OnVuforiaInitializationError_m512807497_RuntimeMethod_var;
Action_1_t3593217305 * L_2 = (Action_1_t3593217305 *)il2cpp_codegen_object_new(Action_1_t3593217305_il2cpp_TypeInfo_var);
Action_1__ctor_m2713332384(L_2, __this, L_1, /*hidden argument*/Action_1__ctor_m2713332384_RuntimeMethod_var);
NullCheck(L_0);
VuforiaRuntime_UnregisterVuforiaInitErrorCallback_m1304340042(L_0, L_2, /*hidden argument*/NULL);
return;
}
}
// System.Void DefaultInitializationErrorHandler::DrawWindowContent(System.Int32)
extern "C" void DefaultInitializationErrorHandler_DrawWindowContent_m2208378571 (DefaultInitializationErrorHandler_t3109936861 * __this, int32_t ___id0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_DrawWindowContent_m2208378571_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Rect_t2360479859 V_0;
memset(&V_0, 0, sizeof(V_0));
Rect_t2360479859 V_1;
memset(&V_1, 0, sizeof(V_1));
Rect_t2360479859 V_2;
memset(&V_2, 0, sizeof(V_2));
{
int32_t L_0 = Screen_get_width_m345039817(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_1 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
Rect__ctor_m2614021312((&V_0), (0.0f), (0.0f), (((float)((float)L_0))), (((float)((float)((int32_t)((int32_t)L_1/(int32_t)8))))), /*hidden argument*/NULL);
int32_t L_2 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_3 = Screen_get_width_m345039817(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_4 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
Rect__ctor_m2614021312((&V_1), (0.0f), (((float)((float)((int32_t)((int32_t)L_2/(int32_t)8))))), (((float)((float)L_3))), (((float)((float)((int32_t)il2cpp_codegen_multiply((int32_t)((int32_t)((int32_t)L_4/(int32_t)8)), (int32_t)6))))), /*hidden argument*/NULL);
int32_t L_5 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_6 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_7 = Screen_get_width_m345039817(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_8 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
Rect__ctor_m2614021312((&V_2), (0.0f), (((float)((float)((int32_t)il2cpp_codegen_subtract((int32_t)L_5, (int32_t)((int32_t)((int32_t)L_6/(int32_t)8))))))), (((float)((float)L_7))), (((float)((float)((int32_t)((int32_t)L_8/(int32_t)8))))), /*hidden argument*/NULL);
Rect_t2360479859 L_9 = V_0;
GUIStyle_t3956901511 * L_10 = __this->get_headerStyle_6();
IL2CPP_RUNTIME_CLASS_INIT(GUI_t1624858472_il2cpp_TypeInfo_var);
GUI_Label_m2420537077(NULL /*static, unused*/, L_9, _stringLiteral2016908147, L_10, /*hidden argument*/NULL);
Rect_t2360479859 L_11 = V_1;
String_t* L_12 = __this->get_mErrorText_2();
GUIStyle_t3956901511 * L_13 = __this->get_bodyStyle_5();
GUI_Label_m2420537077(NULL /*static, unused*/, L_11, L_12, L_13, /*hidden argument*/NULL);
Rect_t2360479859 L_14 = V_2;
GUIStyle_t3956901511 * L_15 = __this->get_footerStyle_7();
bool L_16 = GUI_Button_m2223708732(NULL /*static, unused*/, L_14, _stringLiteral3483484711, L_15, /*hidden argument*/NULL);
if (!L_16)
{
goto IL_00a9;
}
}
{
Application_Quit_m470877999(NULL /*static, unused*/, /*hidden argument*/NULL);
}
IL_00a9:
{
return;
}
}
// System.Void DefaultInitializationErrorHandler::SetErrorCode(Vuforia.VuforiaUnity/InitError)
extern "C" void DefaultInitializationErrorHandler_SetErrorCode_m599033302 (DefaultInitializationErrorHandler_t3109936861 * __this, int32_t ___errorCode0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_SetErrorCode_m599033302_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
int32_t L_0 = ___errorCode0;
switch (((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)10))))
{
case 0:
{
goto IL_0036;
}
case 1:
{
goto IL_00ac;
}
case 2:
{
goto IL_0091;
}
case 3:
{
goto IL_0071;
}
case 4:
{
goto IL_0081;
}
case 5:
{
goto IL_0056;
}
case 6:
{
goto IL_0046;
}
case 7:
{
goto IL_00cc;
}
case 8:
{
goto IL_00eb;
}
case 9:
{
goto IL_00fb;
}
}
}
{
goto IL_010b;
}
IL_0036:
{
__this->set_mErrorText_2(_stringLiteral3279329212);
goto IL_010b;
}
IL_0046:
{
__this->set_mErrorText_2(_stringLiteral3325583105);
goto IL_010b;
}
IL_0056:
{
String_t* L_1 = DefaultInitializationErrorHandler_getKeyInfo_m1864640064(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_2 = String_Concat_m3937257545(NULL /*static, unused*/, _stringLiteral1253325676, L_1, /*hidden argument*/NULL);
__this->set_mErrorText_2(L_2);
goto IL_010b;
}
IL_0071:
{
__this->set_mErrorText_2(_stringLiteral2959890895);
goto IL_010b;
}
IL_0081:
{
__this->set_mErrorText_2(_stringLiteral2293327149);
goto IL_010b;
}
IL_0091:
{
String_t* L_3 = DefaultInitializationErrorHandler_getKeyInfo_m1864640064(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_4 = String_Concat_m3937257545(NULL /*static, unused*/, _stringLiteral2746077084, L_3, /*hidden argument*/NULL);
__this->set_mErrorText_2(L_4);
goto IL_010b;
}
IL_00ac:
{
String_t* L_5 = DefaultInitializationErrorHandler_getKeyInfo_m1864640064(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_6 = String_Concat_m3755062657(NULL /*static, unused*/, _stringLiteral2746058527, L_5, _stringLiteral491174246, /*hidden argument*/NULL);
__this->set_mErrorText_2(L_6);
goto IL_010b;
}
IL_00cc:
{
String_t* L_7 = Application_get_productName_m2401755738(NULL /*static, unused*/, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_8 = String_Concat_m3755062657(NULL /*static, unused*/, _stringLiteral3183081100, L_7, _stringLiteral868600955, /*hidden argument*/NULL);
__this->set_mErrorText_2(L_8);
goto IL_010b;
}
IL_00eb:
{
__this->set_mErrorText_2(_stringLiteral3122929577);
goto IL_010b;
}
IL_00fb:
{
__this->set_mErrorText_2(_stringLiteral3567432369);
goto IL_010b;
}
IL_010b:
{
RuntimeObject * L_9 = Box(InitError_t3420749710_il2cpp_TypeInfo_var, (&___errorCode0));
NullCheck(L_9);
String_t* L_10 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_9);
___errorCode0 = *(int32_t*)UnBox(L_9);
NullCheck(L_10);
String_t* L_11 = String_Replace_m1273907647(L_10, _stringLiteral3452614641, _stringLiteral3452614528, /*hidden argument*/NULL);
String_t* L_12 = __this->get_mErrorText_2();
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_13 = String_Concat_m2163913788(NULL /*static, unused*/, _stringLiteral229317972, L_11, _stringLiteral2072581803, L_12, /*hidden argument*/NULL);
__this->set_mErrorText_2(L_13);
String_t* L_14 = __this->get_mErrorText_2();
String_t* L_15 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_2();
NullCheck(L_14);
String_t* L_16 = String_Replace_m1273907647(L_14, _stringLiteral229317972, L_15, /*hidden argument*/NULL);
String_t* L_17 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_2();
NullCheck(L_16);
String_t* L_18 = String_Replace_m1273907647(L_16, _stringLiteral2642543365, L_17, /*hidden argument*/NULL);
V_0 = L_18;
ObjectU5BU5D_t2843939325* L_19 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)4));
NullCheck(L_19);
ArrayElementTypeCheck (L_19, _stringLiteral3752705136);
(L_19)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteral3752705136);
ObjectU5BU5D_t2843939325* L_20 = L_19;
int32_t L_21 = ___errorCode0;
int32_t L_22 = L_21;
RuntimeObject * L_23 = Box(InitError_t3420749710_il2cpp_TypeInfo_var, &L_22);
NullCheck(L_20);
ArrayElementTypeCheck (L_20, L_23);
(L_20)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_23);
ObjectU5BU5D_t2843939325* L_24 = L_20;
NullCheck(L_24);
ArrayElementTypeCheck (L_24, _stringLiteral3453007782);
(L_24)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral3453007782);
ObjectU5BU5D_t2843939325* L_25 = L_24;
String_t* L_26 = V_0;
NullCheck(L_25);
ArrayElementTypeCheck (L_25, L_26);
(L_25)->SetAt(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_26);
String_t* L_27 = String_Concat_m2971454694(NULL /*static, unused*/, L_25, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_LogError_m2850623458(NULL /*static, unused*/, L_27, /*hidden argument*/NULL);
return;
}
}
// System.Void DefaultInitializationErrorHandler::SetErrorOccurred(System.Boolean)
extern "C" void DefaultInitializationErrorHandler_SetErrorOccurred_m1940230672 (DefaultInitializationErrorHandler_t3109936861 * __this, bool ___errorOccurred0, const RuntimeMethod* method)
{
{
bool L_0 = ___errorOccurred0;
__this->set_mErrorOccurred_3(L_0);
return;
}
}
// System.String DefaultInitializationErrorHandler::getKeyInfo()
extern "C" String_t* DefaultInitializationErrorHandler_getKeyInfo_m1864640064 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_getKeyInfo_m1864640064_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
String_t* V_1 = NULL;
{
IL2CPP_RUNTIME_CLASS_INIT(VuforiaConfiguration_t1763229349_il2cpp_TypeInfo_var);
VuforiaConfiguration_t1763229349 * L_0 = VuforiaConfiguration_get_Instance_m3335903280(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck(L_0);
GenericVuforiaConfiguration_t3697830469 * L_1 = VuforiaConfiguration_get_Vuforia_m1588208597(L_0, /*hidden argument*/NULL);
NullCheck(L_1);
String_t* L_2 = GenericVuforiaConfiguration_get_LicenseKey_m2270076687(L_1, /*hidden argument*/NULL);
V_0 = L_2;
String_t* L_3 = V_0;
NullCheck(L_3);
int32_t L_4 = String_get_Length_m3847582255(L_3, /*hidden argument*/NULL);
if ((((int32_t)L_4) <= ((int32_t)((int32_t)10))))
{
goto IL_0079;
}
}
{
ObjectU5BU5D_t2843939325* L_5 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)7));
NullCheck(L_5);
ArrayElementTypeCheck (L_5, _stringLiteral1431967569);
(L_5)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteral1431967569);
ObjectU5BU5D_t2843939325* L_6 = L_5;
String_t* L_7 = V_0;
NullCheck(L_7);
int32_t L_8 = String_get_Length_m3847582255(L_7, /*hidden argument*/NULL);
int32_t L_9 = L_8;
RuntimeObject * L_10 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_9);
NullCheck(L_6);
ArrayElementTypeCheck (L_6, L_10);
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_10);
ObjectU5BU5D_t2843939325* L_11 = L_6;
NullCheck(L_11);
ArrayElementTypeCheck (L_11, _stringLiteral3797279721);
(L_11)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral3797279721);
ObjectU5BU5D_t2843939325* L_12 = L_11;
String_t* L_13 = V_0;
NullCheck(L_13);
String_t* L_14 = String_Substring_m1610150815(L_13, 0, 5, /*hidden argument*/NULL);
NullCheck(L_12);
ArrayElementTypeCheck (L_12, L_14);
(L_12)->SetAt(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_14);
ObjectU5BU5D_t2843939325* L_15 = L_12;
NullCheck(L_15);
ArrayElementTypeCheck (L_15, _stringLiteral1108443480);
(L_15)->SetAt(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)_stringLiteral1108443480);
ObjectU5BU5D_t2843939325* L_16 = L_15;
String_t* L_17 = V_0;
String_t* L_18 = V_0;
NullCheck(L_18);
int32_t L_19 = String_get_Length_m3847582255(L_18, /*hidden argument*/NULL);
NullCheck(L_17);
String_t* L_20 = String_Substring_m1610150815(L_17, ((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)5)), 5, /*hidden argument*/NULL);
NullCheck(L_16);
ArrayElementTypeCheck (L_16, L_20);
(L_16)->SetAt(static_cast<il2cpp_array_size_t>(5), (RuntimeObject *)L_20);
ObjectU5BU5D_t2843939325* L_21 = L_16;
NullCheck(L_21);
ArrayElementTypeCheck (L_21, _stringLiteral2072975055);
(L_21)->SetAt(static_cast<il2cpp_array_size_t>(6), (RuntimeObject *)_stringLiteral2072975055);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_22 = String_Concat_m2971454694(NULL /*static, unused*/, L_21, /*hidden argument*/NULL);
V_1 = L_22;
goto IL_00af;
}
IL_0079:
{
ObjectU5BU5D_t2843939325* L_23 = ((ObjectU5BU5D_t2843939325*)SZArrayNew(ObjectU5BU5D_t2843939325_il2cpp_TypeInfo_var, (uint32_t)5));
NullCheck(L_23);
ArrayElementTypeCheck (L_23, _stringLiteral1431967569);
(L_23)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteral1431967569);
ObjectU5BU5D_t2843939325* L_24 = L_23;
String_t* L_25 = V_0;
NullCheck(L_25);
int32_t L_26 = String_get_Length_m3847582255(L_25, /*hidden argument*/NULL);
int32_t L_27 = L_26;
RuntimeObject * L_28 = Box(Int32_t2950945753_il2cpp_TypeInfo_var, &L_27);
NullCheck(L_24);
ArrayElementTypeCheck (L_24, L_28);
(L_24)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_28);
ObjectU5BU5D_t2843939325* L_29 = L_24;
NullCheck(L_29);
ArrayElementTypeCheck (L_29, _stringLiteral1498400317);
(L_29)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral1498400317);
ObjectU5BU5D_t2843939325* L_30 = L_29;
String_t* L_31 = V_0;
NullCheck(L_30);
ArrayElementTypeCheck (L_30, L_31);
(L_30)->SetAt(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_31);
ObjectU5BU5D_t2843939325* L_32 = L_30;
NullCheck(L_32);
ArrayElementTypeCheck (L_32, _stringLiteral2072975055);
(L_32)->SetAt(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)_stringLiteral2072975055);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_33 = String_Concat_m2971454694(NULL /*static, unused*/, L_32, /*hidden argument*/NULL);
V_1 = L_33;
}
IL_00af:
{
String_t* L_34 = V_1;
return L_34;
}
}
// System.Void DefaultInitializationErrorHandler::SetupGUIStyles()
extern "C" void DefaultInitializationErrorHandler_SetupGUIStyles_m3863535424 (DefaultInitializationErrorHandler_t3109936861 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_SetupGUIStyles_m3863535424_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
float V_1 = 0.0f;
int32_t V_2 = 0;
int32_t G_B3_0 = 0;
int32_t G_B6_0 = 0;
{
int32_t L_0 = Screen_get_width_m345039817(NULL /*static, unused*/, /*hidden argument*/NULL);
int32_t L_1 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
if ((((int32_t)L_0) >= ((int32_t)L_1)))
{
goto IL_0019;
}
}
{
int32_t L_2 = Screen_get_width_m345039817(NULL /*static, unused*/, /*hidden argument*/NULL);
G_B3_0 = L_2;
goto IL_001e;
}
IL_0019:
{
int32_t L_3 = Screen_get_height_m1623532518(NULL /*static, unused*/, /*hidden argument*/NULL);
G_B3_0 = L_3;
}
IL_001e:
{
V_0 = G_B3_0;
int32_t L_4 = V_0;
float L_5 = Screen_get_dpi_m495672463(NULL /*static, unused*/, /*hidden argument*/NULL);
V_1 = ((float)((float)(((float)((float)L_4)))/(float)L_5));
float L_6 = V_1;
if ((!(((float)L_6) > ((float)(4.0f)))))
{
goto IL_0039;
}
}
{
G_B6_0 = 2;
goto IL_003a;
}
IL_0039:
{
G_B6_0 = 1;
}
IL_003a:
{
V_2 = G_B6_0;
Color_t2555686324 L_7 = Color_get_white_m332174077(NULL /*static, unused*/, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_8 = DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749(__this, L_7, /*hidden argument*/NULL);
__this->set_bodyTexture_8(L_8);
IL2CPP_RUNTIME_CLASS_INIT(Mathf_t3464937446_il2cpp_TypeInfo_var);
float L_9 = Mathf_InverseLerp_m4155825980(NULL /*static, unused*/, (0.0f), (255.0f), (220.0f), /*hidden argument*/NULL);
float L_10 = Mathf_InverseLerp_m4155825980(NULL /*static, unused*/, (0.0f), (255.0f), (220.0f), /*hidden argument*/NULL);
float L_11 = Mathf_InverseLerp_m4155825980(NULL /*static, unused*/, (0.0f), (255.0f), (220.0f), /*hidden argument*/NULL);
Color_t2555686324 L_12;
memset(&L_12, 0, sizeof(L_12));
Color__ctor_m286683560((&L_12), L_9, L_10, L_11, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_13 = DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749(__this, L_12, /*hidden argument*/NULL);
__this->set_headerTexture_9(L_13);
float L_14 = Mathf_InverseLerp_m4155825980(NULL /*static, unused*/, (0.0f), (255.0f), (35.0f), /*hidden argument*/NULL);
float L_15 = Mathf_InverseLerp_m4155825980(NULL /*static, unused*/, (0.0f), (255.0f), (178.0f), /*hidden argument*/NULL);
float L_16 = Mathf_InverseLerp_m4155825980(NULL /*static, unused*/, (0.0f), (255.0f), (0.0f), /*hidden argument*/NULL);
Color_t2555686324 L_17;
memset(&L_17, 0, sizeof(L_17));
Color__ctor_m286683560((&L_17), L_14, L_15, L_16, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_18 = DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749(__this, L_17, /*hidden argument*/NULL);
__this->set_footerTexture_10(L_18);
GUIStyle_t3956901511 * L_19 = (GUIStyle_t3956901511 *)il2cpp_codegen_object_new(GUIStyle_t3956901511_il2cpp_TypeInfo_var);
GUIStyle__ctor_m4038363858(L_19, /*hidden argument*/NULL);
__this->set_bodyStyle_5(L_19);
GUIStyle_t3956901511 * L_20 = __this->get_bodyStyle_5();
NullCheck(L_20);
GUIStyleState_t1397964415 * L_21 = GUIStyle_get_normal_m729441812(L_20, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_22 = __this->get_bodyTexture_8();
NullCheck(L_21);
GUIStyleState_set_background_m369476077(L_21, L_22, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_23 = __this->get_bodyStyle_5();
Font_t1956802104 * L_24 = Resources_GetBuiltinResource_TisFont_t1956802104_m2738776830(NULL /*static, unused*/, _stringLiteral2974894664, /*hidden argument*/Resources_GetBuiltinResource_TisFont_t1956802104_m2738776830_RuntimeMethod_var);
NullCheck(L_23);
GUIStyle_set_font_m2490449107(L_23, L_24, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_25 = __this->get_bodyStyle_5();
int32_t L_26 = V_2;
float L_27 = Screen_get_dpi_m495672463(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck(L_25);
GUIStyle_set_fontSize_m1566850023(L_25, (((int32_t)((int32_t)((float)((float)((float)il2cpp_codegen_multiply((float)(((float)((float)((int32_t)il2cpp_codegen_multiply((int32_t)((int32_t)18), (int32_t)L_26))))), (float)L_27))/(float)(160.0f)))))), /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_28 = __this->get_bodyStyle_5();
NullCheck(L_28);
GUIStyleState_t1397964415 * L_29 = GUIStyle_get_normal_m729441812(L_28, /*hidden argument*/NULL);
Color_t2555686324 L_30 = Color_get_black_m719512684(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck(L_29);
GUIStyleState_set_textColor_m1105876047(L_29, L_30, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_31 = __this->get_bodyStyle_5();
NullCheck(L_31);
GUIStyle_set_wordWrap_m1419501823(L_31, (bool)1, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_32 = __this->get_bodyStyle_5();
NullCheck(L_32);
GUIStyle_set_alignment_m3944619660(L_32, 4, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_33 = __this->get_bodyStyle_5();
RectOffset_t1369453676 * L_34 = (RectOffset_t1369453676 *)il2cpp_codegen_object_new(RectOffset_t1369453676_il2cpp_TypeInfo_var);
RectOffset__ctor_m732140021(L_34, ((int32_t)40), ((int32_t)40), 0, 0, /*hidden argument*/NULL);
NullCheck(L_33);
GUIStyle_set_padding_m3302456044(L_33, L_34, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_35 = __this->get_bodyStyle_5();
GUIStyle_t3956901511 * L_36 = (GUIStyle_t3956901511 *)il2cpp_codegen_object_new(GUIStyle_t3956901511_il2cpp_TypeInfo_var);
GUIStyle__ctor_m2912682974(L_36, L_35, /*hidden argument*/NULL);
__this->set_headerStyle_6(L_36);
GUIStyle_t3956901511 * L_37 = __this->get_headerStyle_6();
NullCheck(L_37);
GUIStyleState_t1397964415 * L_38 = GUIStyle_get_normal_m729441812(L_37, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_39 = __this->get_headerTexture_9();
NullCheck(L_38);
GUIStyleState_set_background_m369476077(L_38, L_39, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_40 = __this->get_headerStyle_6();
int32_t L_41 = V_2;
float L_42 = Screen_get_dpi_m495672463(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck(L_40);
GUIStyle_set_fontSize_m1566850023(L_40, (((int32_t)((int32_t)((float)((float)((float)il2cpp_codegen_multiply((float)(((float)((float)((int32_t)il2cpp_codegen_multiply((int32_t)((int32_t)24), (int32_t)L_41))))), (float)L_42))/(float)(160.0f)))))), /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_43 = __this->get_bodyStyle_5();
GUIStyle_t3956901511 * L_44 = (GUIStyle_t3956901511 *)il2cpp_codegen_object_new(GUIStyle_t3956901511_il2cpp_TypeInfo_var);
GUIStyle__ctor_m2912682974(L_44, L_43, /*hidden argument*/NULL);
__this->set_footerStyle_7(L_44);
GUIStyle_t3956901511 * L_45 = __this->get_footerStyle_7();
NullCheck(L_45);
GUIStyleState_t1397964415 * L_46 = GUIStyle_get_normal_m729441812(L_45, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_47 = __this->get_footerTexture_10();
NullCheck(L_46);
GUIStyleState_set_background_m369476077(L_46, L_47, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_48 = __this->get_footerStyle_7();
NullCheck(L_48);
GUIStyleState_t1397964415 * L_49 = GUIStyle_get_normal_m729441812(L_48, /*hidden argument*/NULL);
Color_t2555686324 L_50 = Color_get_white_m332174077(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck(L_49);
GUIStyleState_set_textColor_m1105876047(L_49, L_50, /*hidden argument*/NULL);
GUIStyle_t3956901511 * L_51 = __this->get_footerStyle_7();
int32_t L_52 = V_2;
float L_53 = Screen_get_dpi_m495672463(NULL /*static, unused*/, /*hidden argument*/NULL);
NullCheck(L_51);
GUIStyle_set_fontSize_m1566850023(L_51, (((int32_t)((int32_t)((float)((float)((float)il2cpp_codegen_multiply((float)(((float)((float)((int32_t)il2cpp_codegen_multiply((int32_t)((int32_t)28), (int32_t)L_52))))), (float)L_53))/(float)(160.0f)))))), /*hidden argument*/NULL);
return;
}
}
// UnityEngine.Texture2D DefaultInitializationErrorHandler::CreateSinglePixelTexture(UnityEngine.Color)
extern "C" Texture2D_t3840446185 * DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749 (DefaultInitializationErrorHandler_t3109936861 * __this, Color_t2555686324 ___color0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultInitializationErrorHandler_CreateSinglePixelTexture_m424000749_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Texture2D_t3840446185 * V_0 = NULL;
{
Texture2D_t3840446185 * L_0 = (Texture2D_t3840446185 *)il2cpp_codegen_object_new(Texture2D_t3840446185_il2cpp_TypeInfo_var);
Texture2D__ctor_m2862217990(L_0, 1, 1, 5, (bool)0, /*hidden argument*/NULL);
V_0 = L_0;
Texture2D_t3840446185 * L_1 = V_0;
Color_t2555686324 L_2 = ___color0;
NullCheck(L_1);
Texture2D_SetPixel_m2984741184(L_1, 0, 0, L_2, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_3 = V_0;
NullCheck(L_3);
Texture2D_Apply_m2271746283(L_3, /*hidden argument*/NULL);
Texture2D_t3840446185 * L_4 = V_0;
return L_4;
}
}
#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 DefaultTrackableEventHandler::.ctor()
extern "C" void DefaultTrackableEventHandler__ctor_m2856359002 (DefaultTrackableEventHandler_t1588957063 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void DefaultTrackableEventHandler::Start()
extern "C" void DefaultTrackableEventHandler_Start_m796446126 (DefaultTrackableEventHandler_t1588957063 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultTrackableEventHandler_Start_m796446126_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
TrackableBehaviour_t1113559212 * L_0 = Component_GetComponent_TisTrackableBehaviour_t1113559212_m1736119408(__this, /*hidden argument*/Component_GetComponent_TisTrackableBehaviour_t1113559212_m1736119408_RuntimeMethod_var);
__this->set_mTrackableBehaviour_2(L_0);
TrackableBehaviour_t1113559212 * L_1 = __this->get_mTrackableBehaviour_2();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0028;
}
}
{
TrackableBehaviour_t1113559212 * L_3 = __this->get_mTrackableBehaviour_2();
NullCheck(L_3);
TrackableBehaviour_RegisterTrackableEventHandler_m2462783619(L_3, __this, /*hidden argument*/NULL);
}
IL_0028:
{
return;
}
}
// System.Void DefaultTrackableEventHandler::OnTrackableStateChanged(Vuforia.TrackableBehaviour/Status,Vuforia.TrackableBehaviour/Status)
extern "C" void DefaultTrackableEventHandler_OnTrackableStateChanged_m77027111 (DefaultTrackableEventHandler_t1588957063 * __this, int32_t ___previousStatus0, int32_t ___newStatus1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultTrackableEventHandler_OnTrackableStateChanged_m77027111_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = ___newStatus1;
if ((((int32_t)L_0) == ((int32_t)2)))
{
goto IL_0015;
}
}
{
int32_t L_1 = ___newStatus1;
if ((((int32_t)L_1) == ((int32_t)3)))
{
goto IL_0015;
}
}
{
int32_t L_2 = ___newStatus1;
if ((!(((uint32_t)L_2) == ((uint32_t)4))))
{
goto IL_003f;
}
}
IL_0015:
{
TrackableBehaviour_t1113559212 * L_3 = __this->get_mTrackableBehaviour_2();
NullCheck(L_3);
String_t* L_4 = TrackableBehaviour_get_TrackableName_m3644057705(L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_5 = String_Concat_m3755062657(NULL /*static, unused*/, _stringLiteral3820270571, L_4, _stringLiteral3073488411, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, L_5, /*hidden argument*/NULL);
VirtActionInvoker0::Invoke(6 /* System.Void DefaultTrackableEventHandler::OnTrackingFound() */, __this);
goto IL_007d;
}
IL_003f:
{
int32_t L_6 = ___previousStatus0;
if ((!(((uint32_t)L_6) == ((uint32_t)3))))
{
goto IL_0077;
}
}
{
int32_t L_7 = ___newStatus1;
if ((!(((uint32_t)L_7) == ((uint32_t)(-1)))))
{
goto IL_0077;
}
}
{
TrackableBehaviour_t1113559212 * L_8 = __this->get_mTrackableBehaviour_2();
NullCheck(L_8);
String_t* L_9 = TrackableBehaviour_get_TrackableName_m3644057705(L_8, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
String_t* L_10 = String_Concat_m3755062657(NULL /*static, unused*/, _stringLiteral3820270571, L_9, _stringLiteral3483481617, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, L_10, /*hidden argument*/NULL);
VirtActionInvoker0::Invoke(7 /* System.Void DefaultTrackableEventHandler::OnTrackingLost() */, __this);
goto IL_007d;
}
IL_0077:
{
VirtActionInvoker0::Invoke(7 /* System.Void DefaultTrackableEventHandler::OnTrackingLost() */, __this);
}
IL_007d:
{
return;
}
}
// System.Void DefaultTrackableEventHandler::OnTrackingFound()
extern "C" void DefaultTrackableEventHandler_OnTrackingFound_m4202593607 (DefaultTrackableEventHandler_t1588957063 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultTrackableEventHandler_OnTrackingFound_m4202593607_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RendererU5BU5D_t3210418286* V_0 = NULL;
ColliderU5BU5D_t4234922487* V_1 = NULL;
CanvasU5BU5D_t682926938* V_2 = NULL;
Renderer_t2627027031 * V_3 = NULL;
RendererU5BU5D_t3210418286* V_4 = NULL;
int32_t V_5 = 0;
Collider_t1773347010 * V_6 = NULL;
ColliderU5BU5D_t4234922487* V_7 = NULL;
int32_t V_8 = 0;
Canvas_t3310196443 * V_9 = NULL;
CanvasU5BU5D_t682926938* V_10 = NULL;
int32_t V_11 = 0;
{
RendererU5BU5D_t3210418286* L_0 = Component_GetComponentsInChildren_TisRenderer_t2627027031_m2673895911(__this, (bool)1, /*hidden argument*/Component_GetComponentsInChildren_TisRenderer_t2627027031_m2673895911_RuntimeMethod_var);
V_0 = L_0;
ColliderU5BU5D_t4234922487* L_1 = Component_GetComponentsInChildren_TisCollider_t1773347010_m2667952426(__this, (bool)1, /*hidden argument*/Component_GetComponentsInChildren_TisCollider_t1773347010_m2667952426_RuntimeMethod_var);
V_1 = L_1;
CanvasU5BU5D_t682926938* L_2 = Component_GetComponentsInChildren_TisCanvas_t3310196443_m1457345007(__this, (bool)1, /*hidden argument*/Component_GetComponentsInChildren_TisCanvas_t3310196443_m1457345007_RuntimeMethod_var);
V_2 = L_2;
RendererU5BU5D_t3210418286* L_3 = V_0;
V_4 = L_3;
V_5 = 0;
goto IL_0036;
}
IL_0023:
{
RendererU5BU5D_t3210418286* L_4 = V_4;
int32_t L_5 = V_5;
NullCheck(L_4);
int32_t L_6 = L_5;
Renderer_t2627027031 * L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
V_3 = L_7;
Renderer_t2627027031 * L_8 = V_3;
NullCheck(L_8);
Renderer_set_enabled_m1727253150(L_8, (bool)1, /*hidden argument*/NULL);
int32_t L_9 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1));
}
IL_0036:
{
int32_t L_10 = V_5;
RendererU5BU5D_t3210418286* L_11 = V_4;
NullCheck(L_11);
if ((((int32_t)L_10) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_11)->max_length)))))))
{
goto IL_0023;
}
}
{
ColliderU5BU5D_t4234922487* L_12 = V_1;
V_7 = L_12;
V_8 = 0;
goto IL_0061;
}
IL_004c:
{
ColliderU5BU5D_t4234922487* L_13 = V_7;
int32_t L_14 = V_8;
NullCheck(L_13);
int32_t L_15 = L_14;
Collider_t1773347010 * L_16 = (L_13)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
V_6 = L_16;
Collider_t1773347010 * L_17 = V_6;
NullCheck(L_17);
Collider_set_enabled_m1517463283(L_17, (bool)1, /*hidden argument*/NULL);
int32_t L_18 = V_8;
V_8 = ((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
}
IL_0061:
{
int32_t L_19 = V_8;
ColliderU5BU5D_t4234922487* L_20 = V_7;
NullCheck(L_20);
if ((((int32_t)L_19) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_20)->max_length)))))))
{
goto IL_004c;
}
}
{
CanvasU5BU5D_t682926938* L_21 = V_2;
V_10 = L_21;
V_11 = 0;
goto IL_008c;
}
IL_0077:
{
CanvasU5BU5D_t682926938* L_22 = V_10;
int32_t L_23 = V_11;
NullCheck(L_22);
int32_t L_24 = L_23;
Canvas_t3310196443 * L_25 = (L_22)->GetAt(static_cast<il2cpp_array_size_t>(L_24));
V_9 = L_25;
Canvas_t3310196443 * L_26 = V_9;
NullCheck(L_26);
Behaviour_set_enabled_m20417929(L_26, (bool)1, /*hidden argument*/NULL);
int32_t L_27 = V_11;
V_11 = ((int32_t)il2cpp_codegen_add((int32_t)L_27, (int32_t)1));
}
IL_008c:
{
int32_t L_28 = V_11;
CanvasU5BU5D_t682926938* L_29 = V_10;
NullCheck(L_29);
if ((((int32_t)L_28) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_29)->max_length)))))))
{
goto IL_0077;
}
}
{
return;
}
}
// System.Void DefaultTrackableEventHandler::OnTrackingLost()
extern "C" void DefaultTrackableEventHandler_OnTrackingLost_m424172778 (DefaultTrackableEventHandler_t1588957063 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DefaultTrackableEventHandler_OnTrackingLost_m424172778_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RendererU5BU5D_t3210418286* V_0 = NULL;
ColliderU5BU5D_t4234922487* V_1 = NULL;
CanvasU5BU5D_t682926938* V_2 = NULL;
Renderer_t2627027031 * V_3 = NULL;
RendererU5BU5D_t3210418286* V_4 = NULL;
int32_t V_5 = 0;
Collider_t1773347010 * V_6 = NULL;
ColliderU5BU5D_t4234922487* V_7 = NULL;
int32_t V_8 = 0;
Canvas_t3310196443 * V_9 = NULL;
CanvasU5BU5D_t682926938* V_10 = NULL;
int32_t V_11 = 0;
{
RendererU5BU5D_t3210418286* L_0 = Component_GetComponentsInChildren_TisRenderer_t2627027031_m2673895911(__this, (bool)1, /*hidden argument*/Component_GetComponentsInChildren_TisRenderer_t2627027031_m2673895911_RuntimeMethod_var);
V_0 = L_0;
ColliderU5BU5D_t4234922487* L_1 = Component_GetComponentsInChildren_TisCollider_t1773347010_m2667952426(__this, (bool)1, /*hidden argument*/Component_GetComponentsInChildren_TisCollider_t1773347010_m2667952426_RuntimeMethod_var);
V_1 = L_1;
CanvasU5BU5D_t682926938* L_2 = Component_GetComponentsInChildren_TisCanvas_t3310196443_m1457345007(__this, (bool)1, /*hidden argument*/Component_GetComponentsInChildren_TisCanvas_t3310196443_m1457345007_RuntimeMethod_var);
V_2 = L_2;
RendererU5BU5D_t3210418286* L_3 = V_0;
V_4 = L_3;
V_5 = 0;
goto IL_0036;
}
IL_0023:
{
RendererU5BU5D_t3210418286* L_4 = V_4;
int32_t L_5 = V_5;
NullCheck(L_4);
int32_t L_6 = L_5;
Renderer_t2627027031 * L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
V_3 = L_7;
Renderer_t2627027031 * L_8 = V_3;
NullCheck(L_8);
Renderer_set_enabled_m1727253150(L_8, (bool)0, /*hidden argument*/NULL);
int32_t L_9 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1));
}
IL_0036:
{
int32_t L_10 = V_5;
RendererU5BU5D_t3210418286* L_11 = V_4;
NullCheck(L_11);
if ((((int32_t)L_10) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_11)->max_length)))))))
{
goto IL_0023;
}
}
{
ColliderU5BU5D_t4234922487* L_12 = V_1;
V_7 = L_12;
V_8 = 0;
goto IL_0061;
}
IL_004c:
{
ColliderU5BU5D_t4234922487* L_13 = V_7;
int32_t L_14 = V_8;
NullCheck(L_13);
int32_t L_15 = L_14;
Collider_t1773347010 * L_16 = (L_13)->GetAt(static_cast<il2cpp_array_size_t>(L_15));
V_6 = L_16;
Collider_t1773347010 * L_17 = V_6;
NullCheck(L_17);
Collider_set_enabled_m1517463283(L_17, (bool)0, /*hidden argument*/NULL);
int32_t L_18 = V_8;
V_8 = ((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
}
IL_0061:
{
int32_t L_19 = V_8;
ColliderU5BU5D_t4234922487* L_20 = V_7;
NullCheck(L_20);
if ((((int32_t)L_19) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_20)->max_length)))))))
{
goto IL_004c;
}
}
{
CanvasU5BU5D_t682926938* L_21 = V_2;
V_10 = L_21;
V_11 = 0;
goto IL_008c;
}
IL_0077:
{
CanvasU5BU5D_t682926938* L_22 = V_10;
int32_t L_23 = V_11;
NullCheck(L_22);
int32_t L_24 = L_23;
Canvas_t3310196443 * L_25 = (L_22)->GetAt(static_cast<il2cpp_array_size_t>(L_24));
V_9 = L_25;
Canvas_t3310196443 * L_26 = V_9;
NullCheck(L_26);
Behaviour_set_enabled_m20417929(L_26, (bool)0, /*hidden argument*/NULL);
int32_t L_27 = V_11;
V_11 = ((int32_t)il2cpp_codegen_add((int32_t)L_27, (int32_t)1));
}
IL_008c:
{
int32_t L_28 = V_11;
CanvasU5BU5D_t682926938* L_29 = V_10;
NullCheck(L_29);
if ((((int32_t)L_28) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_29)->max_length)))))))
{
goto IL_0077;
}
}
{
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 DyeMakerScript::.ctor()
extern "C" void DyeMakerScript__ctor_m3656626532 (DyeMakerScript_t1513019777 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void DyeMakerScript::Start()
extern "C" void DyeMakerScript_Start_m623517302 (DyeMakerScript_t1513019777 * __this, const RuntimeMethod* method)
{
{
__this->set_mordant_3((GameObject_t1113636619 *)NULL);
__this->set_dye_4((GameObject_t1113636619 *)NULL);
return;
}
}
// System.Void DyeMakerScript::Update()
extern "C" void DyeMakerScript_Update_m840017442 (DyeMakerScript_t1513019777 * __this, const RuntimeMethod* method)
{
{
return;
}
}
// System.Void DyeMakerScript::setMordant(UnityEngine.GameObject)
extern "C" void DyeMakerScript_setMordant_m845218189 (DyeMakerScript_t1513019777 * __this, GameObject_t1113636619 * ___prefab0, const RuntimeMethod* method)
{
{
GameObject_t1113636619 * L_0 = ___prefab0;
__this->set_mordant_3(L_0);
return;
}
}
// System.Void DyeMakerScript::setDye(UnityEngine.GameObject)
extern "C" void DyeMakerScript_setDye_m3577794752 (DyeMakerScript_t1513019777 * __this, GameObject_t1113636619 * ___prefab0, const RuntimeMethod* method)
{
{
GameObject_t1113636619 * L_0 = ___prefab0;
__this->set_dye_4(L_0);
return;
}
}
// System.Void DyeMakerScript::createDye()
extern "C" void DyeMakerScript_createDye_m2768975499 (DyeMakerScript_t1513019777 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DyeMakerScript_createDye_m2768975499_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
GameObject_t1113636619 * V_0 = NULL;
GameObject_t1113636619 * V_1 = NULL;
{
GameObject_t1113636619 * L_0 = __this->get_mordant_3();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Inequality_m4071470834(NULL /*static, unused*/, L_0, (Object_t631007953 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0059;
}
}
{
GameObject_t1113636619 * L_2 = __this->get_dye_4();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Inequality_m4071470834(NULL /*static, unused*/, L_2, (Object_t631007953 *)NULL, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0059;
}
}
{
GameObject_t1113636619 * L_4 = __this->get_mordant_3();
Transform_t3600365921 * L_5 = __this->get_lab_2();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
GameObject_t1113636619 * L_6 = Object_Instantiate_TisGameObject_t1113636619_m3215236302(NULL /*static, unused*/, L_4, L_5, /*hidden argument*/Object_Instantiate_TisGameObject_t1113636619_m3215236302_RuntimeMethod_var);
V_0 = L_6;
GameObject_t1113636619 * L_7 = __this->get_dye_4();
Transform_t3600365921 * L_8 = __this->get_lab_2();
GameObject_t1113636619 * L_9 = Object_Instantiate_TisGameObject_t1113636619_m3215236302(NULL /*static, unused*/, L_7, L_8, /*hidden argument*/Object_Instantiate_TisGameObject_t1113636619_m3215236302_RuntimeMethod_var);
V_1 = L_9;
__this->set_mordant_3((GameObject_t1113636619 *)NULL);
__this->set_dye_4((GameObject_t1113636619 *)NULL);
goto IL_0063;
}
IL_0059:
{
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral2459608827, /*hidden argument*/NULL);
}
IL_0063:
{
return;
}
}
// System.Void DyeMakerScript::clear()
extern "C" void DyeMakerScript_clear_m2912483512 (DyeMakerScript_t1513019777 * __this, const RuntimeMethod* method)
{
{
__this->set_mordant_3((GameObject_t1113636619 *)NULL);
__this->set_dye_4((GameObject_t1113636619 *)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 HelperScript::.ctor()
extern "C" void HelperScript__ctor_m3744322616 (HelperScript_t1151587737 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void HelperScript::setCurrentObject(UnityEngine.GameObject)
extern "C" void HelperScript_setCurrentObject_m2453875061 (HelperScript_t1151587737 * __this, GameObject_t1113636619 * ___newObj0, const RuntimeMethod* method)
{
{
GameObject_t1113636619 * L_0 = ___newObj0;
__this->set_curObject_2(L_0);
return;
}
}
// UnityEngine.GameObject HelperScript::getCurrentObject()
extern "C" GameObject_t1113636619 * HelperScript_getCurrentObject_m2543886465 (HelperScript_t1151587737 * __this, const RuntimeMethod* method)
{
{
GameObject_t1113636619 * L_0 = __this->get_curObject_2();
return L_0;
}
}
// System.Void HelperScript::setAttachedObject(UnityEngine.GameObject)
extern "C" void HelperScript_setAttachedObject_m3226814247 (HelperScript_t1151587737 * __this, GameObject_t1113636619 * ___newObj0, const RuntimeMethod* method)
{
{
GameObject_t1113636619 * L_0 = ___newObj0;
__this->set_AttachedObject_3(L_0);
return;
}
}
// UnityEngine.GameObject HelperScript::getAttachedObject()
extern "C" GameObject_t1113636619 * HelperScript_getAttachedObject_m3640862735 (HelperScript_t1151587737 * __this, const RuntimeMethod* method)
{
{
GameObject_t1113636619 * L_0 = __this->get_AttachedObject_3();
return L_0;
}
}
// System.Void HelperScript::setCurrentMode(System.String)
extern "C" void HelperScript_setCurrentMode_m2067638304 (HelperScript_t1151587737 * __this, String_t* ___newMode0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___newMode0;
__this->set_curMode_4(L_0);
return;
}
}
// System.String HelperScript::getCurrentMode()
extern "C" String_t* HelperScript_getCurrentMode_m2329936658 (HelperScript_t1151587737 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_curMode_4();
return L_0;
}
}
// System.Void HelperScript::Start()
extern "C" void HelperScript_Start_m1696347824 (HelperScript_t1151587737 * __this, const RuntimeMethod* method)
{
{
HelperScript_setAttachedObject_m3226814247(__this, (GameObject_t1113636619 *)NULL, /*hidden argument*/NULL);
HelperScript_setCurrentObject_m2453875061(__this, (GameObject_t1113636619 *)NULL, /*hidden argument*/NULL);
HelperScript_setCurrentMode_m2067638304(__this, (String_t*)NULL, /*hidden argument*/NULL);
return;
}
}
// System.Void HelperScript::Update()
extern "C" void HelperScript_Update_m392322562 (HelperScript_t1151587737 * __this, const RuntimeMethod* method)
{
{
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 LabScript::.ctor()
extern "C" void LabScript__ctor_m3913863269 (LabScript_t1073339935 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void LabScript::Start()
extern "C" void LabScript_Start_m4155035687 (LabScript_t1073339935 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (LabScript_Start_m4155035687_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
GameObject_t1113636619 * L_0 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral742877173, /*hidden argument*/NULL);
NullCheck(L_0);
WalkthroughScript_t1234213269 * L_1 = GameObject_GetComponent_TisWalkthroughScript_t1234213269_m2081424569(L_0, /*hidden argument*/GameObject_GetComponent_TisWalkthroughScript_t1234213269_m2081424569_RuntimeMethod_var);
__this->set_walkthroughScript_2(L_1);
return;
}
}
// System.Void LabScript::OnTriggerEnter(UnityEngine.Collider)
extern "C" void LabScript_OnTriggerEnter_m4070775815 (LabScript_t1073339935 * __this, Collider_t1773347010 * ___other0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (LabScript_OnTriggerEnter_m4070775815_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Collider_t1773347010 * L_0 = ___other0;
NullCheck(L_0);
String_t* L_1 = Component_get_tag_m2716693327(L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = String_Contains_m1147431944(L_1, _stringLiteral2124038184, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0035;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral2897538527, /*hidden argument*/NULL);
WalkthroughScript_t1234213269 * L_3 = __this->get_walkthroughScript_2();
WalkthroughScript_t1234213269 * L_4 = __this->get_walkthroughScript_2();
NullCheck(L_4);
String_t* L_5 = L_4->get_step1B_3();
NullCheck(L_3);
WalkthroughScript_setStep_m1321547378(L_3, L_5, /*hidden argument*/NULL);
}
IL_0035:
{
return;
}
}
// System.Void LabScript::Update()
extern "C" void LabScript_Update_m3069228978 (LabScript_t1073339935 * __this, const RuntimeMethod* method)
{
{
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 PointerScript::.ctor()
extern "C" void PointerScript__ctor_m1611745027 (PointerScript_t3628587701 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void PointerScript::Start()
extern "C" void PointerScript_Start_m4179530305 (PointerScript_t3628587701 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PointerScript_Start_m4179530305_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
GameObject_t1113636619 * L_0 = __this->get_Faucet_10();
bool L_1 = __this->get_FaucetActive_12();
NullCheck(L_0);
GameObject_SetActive_m796801857(L_0, L_1, /*hidden argument*/NULL);
GameObject_t1113636619 * L_2 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral371078329, /*hidden argument*/NULL);
NullCheck(L_2);
HelperScript_t1151587737 * L_3 = GameObject_GetComponent_TisHelperScript_t1151587737_m906172308(L_2, /*hidden argument*/GameObject_GetComponent_TisHelperScript_t1151587737_m906172308_RuntimeMethod_var);
__this->set_helper_2(L_3);
GameObject_t1113636619 * L_4 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral1363227335, /*hidden argument*/NULL);
__this->set_pointer_3(L_4);
GameObject_t1113636619 * L_5 = __this->get_Beaker_7();
NullCheck(L_5);
Renderer_t2627027031 * L_6 = GameObject_GetComponent_TisRenderer_t2627027031_m1619941042(L_5, /*hidden argument*/GameObject_GetComponent_TisRenderer_t2627027031_m1619941042_RuntimeMethod_var);
NullCheck(L_6);
Material_t340375123 * L_7 = Renderer_get_material_m4171603682(L_6, /*hidden argument*/NULL);
__this->set_BeakerMat_6(L_7);
GameObject_t1113636619 * L_8 = __this->get_Bucket_8();
NullCheck(L_8);
Renderer_t2627027031 * L_9 = GameObject_GetComponent_TisRenderer_t2627027031_m1619941042(L_8, /*hidden argument*/GameObject_GetComponent_TisRenderer_t2627027031_m1619941042_RuntimeMethod_var);
NullCheck(L_9);
Material_t340375123 * L_10 = Renderer_get_material_m4171603682(L_9, /*hidden argument*/NULL);
Color_t2555686324 L_11 = __this->get_DyeColor_5();
NullCheck(L_10);
Material_set_color_m1794818007(L_10, L_11, /*hidden argument*/NULL);
return;
}
}
// System.Void PointerScript::Update()
extern "C" void PointerScript_Update_m2997896218 (PointerScript_t3628587701 * __this, const RuntimeMethod* method)
{
{
return;
}
}
// System.Void PointerScript::OnTriggerEnter(UnityEngine.Collider)
extern "C" void PointerScript_OnTriggerEnter_m2544804473 (PointerScript_t3628587701 * __this, Collider_t1773347010 * ___other0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PointerScript_OnTriggerEnter_m2544804473_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
GameObject_t1113636619 * V_0 = NULL;
GameObject_t1113636619 * V_1 = NULL;
GameObject_t1113636619 * V_2 = NULL;
{
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral85179081, /*hidden argument*/NULL);
Collider_t1773347010 * L_0 = ___other0;
NullCheck(L_0);
String_t* L_1 = Component_get_tag_m2716693327(L_0, /*hidden argument*/NULL);
NullCheck(L_1);
bool L_2 = String_Contains_m1147431944(L_1, _stringLiteral2103141252, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0276;
}
}
{
HelperScript_t1151587737 * L_3 = __this->get_helper_2();
NullCheck(L_3);
GameObject_t1113636619 * L_4 = HelperScript_getCurrentObject_m2543886465(L_3, /*hidden argument*/NULL);
V_0 = L_4;
Collider_t1773347010 * L_5 = ___other0;
NullCheck(L_5);
Transform_t3600365921 * L_6 = Component_get_transform_m3162698980(L_5, /*hidden argument*/NULL);
NullCheck(L_6);
GameObject_t1113636619 * L_7 = Component_get_gameObject_m442555142(L_6, /*hidden argument*/NULL);
V_1 = L_7;
HelperScript_t1151587737 * L_8 = __this->get_helper_2();
GameObject_t1113636619 * L_9 = V_1;
NullCheck(L_8);
HelperScript_setCurrentObject_m2453875061(L_8, L_9, /*hidden argument*/NULL);
HelperScript_t1151587737 * L_10 = __this->get_helper_2();
NullCheck(L_10);
GameObject_t1113636619 * L_11 = HelperScript_getCurrentObject_m2543886465(L_10, /*hidden argument*/NULL);
NullCheck(L_11);
String_t* L_12 = GameObject_get_tag_m3951609671(L_11, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, L_12, /*hidden argument*/NULL);
Collider_t1773347010 * L_13 = ___other0;
NullCheck(L_13);
String_t* L_14 = Component_get_tag_m2716693327(L_13, /*hidden argument*/NULL);
NullCheck(L_14);
bool L_15 = String_Contains_m1147431944(L_14, _stringLiteral28902687, /*hidden argument*/NULL);
if (L_15)
{
goto IL_0082;
}
}
{
Collider_t1773347010 * L_16 = ___other0;
NullCheck(L_16);
String_t* L_17 = Component_get_tag_m2716693327(L_16, /*hidden argument*/NULL);
NullCheck(L_17);
bool L_18 = String_Contains_m1147431944(L_17, _stringLiteral2731190251, /*hidden argument*/NULL);
if (!L_18)
{
goto IL_00ca;
}
}
IL_0082:
{
HelperScript_t1151587737 * L_19 = __this->get_helper_2();
NullCheck(L_19);
GameObject_t1113636619 * L_20 = HelperScript_getAttachedObject_m3640862735(L_19, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_21 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_20, /*hidden argument*/NULL);
if (!L_21)
{
goto IL_00b7;
}
}
{
HelperScript_t1151587737 * L_22 = __this->get_helper_2();
NullCheck(L_22);
GameObject_t1113636619 * L_23 = HelperScript_getAttachedObject_m3640862735(L_22, /*hidden argument*/NULL);
NullCheck(L_23);
Transform_t3600365921 * L_24 = GameObject_get_transform_m1369836730(L_23, /*hidden argument*/NULL);
GameObject_t1113636619 * L_25 = __this->get_Lab_9();
NullCheck(L_25);
Transform_t3600365921 * L_26 = GameObject_get_transform_m1369836730(L_25, /*hidden argument*/NULL);
NullCheck(L_24);
Transform_set_parent_m786917804(L_24, L_26, /*hidden argument*/NULL);
}
IL_00b7:
{
HelperScript_t1151587737 * L_27 = __this->get_helper_2();
GameObject_t1113636619 * L_28 = V_1;
NullCheck(L_27);
HelperScript_setAttachedObject_m3226814247(L_27, L_28, /*hidden argument*/NULL);
GameObject_t1113636619 * L_29 = V_1;
PointerScript_switchObjectParent_m2650247284(__this, L_29, /*hidden argument*/NULL);
}
IL_00ca:
{
Collider_t1773347010 * L_30 = ___other0;
NullCheck(L_30);
String_t* L_31 = Component_get_tag_m2716693327(L_30, /*hidden argument*/NULL);
NullCheck(L_31);
bool L_32 = String_Contains_m1147431944(L_31, _stringLiteral3102844764, /*hidden argument*/NULL);
if (!L_32)
{
goto IL_0206;
}
}
{
GameObject_t1113636619 * L_33 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral1386166781, /*hidden argument*/NULL);
NullCheck(L_33);
GameObject_SetActive_m796801857(L_33, (bool)1, /*hidden argument*/NULL);
HelperScript_t1151587737 * L_34 = __this->get_helper_2();
NullCheck(L_34);
GameObject_t1113636619 * L_35 = HelperScript_getAttachedObject_m3640862735(L_34, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_36 = Object_op_Inequality_m4071470834(NULL /*static, unused*/, L_35, (Object_t631007953 *)NULL, /*hidden argument*/NULL);
if (!L_36)
{
goto IL_0206;
}
}
{
HelperScript_t1151587737 * L_37 = __this->get_helper_2();
NullCheck(L_37);
GameObject_t1113636619 * L_38 = HelperScript_getAttachedObject_m3640862735(L_37, /*hidden argument*/NULL);
GameObject_t1113636619 * L_39 = __this->get_Lab_9();
NullCheck(L_39);
Transform_t3600365921 * L_40 = GameObject_get_transform_m1369836730(L_39, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
GameObject_t1113636619 * L_41 = Object_Instantiate_TisGameObject_t1113636619_m3215236302(NULL /*static, unused*/, L_38, L_40, /*hidden argument*/Object_Instantiate_TisGameObject_t1113636619_m3215236302_RuntimeMethod_var);
V_2 = L_41;
HelperScript_t1151587737 * L_42 = __this->get_helper_2();
NullCheck(L_42);
GameObject_t1113636619 * L_43 = HelperScript_getAttachedObject_m3640862735(L_42, /*hidden argument*/NULL);
Object_Destroy_m565254235(NULL /*static, unused*/, L_43, /*hidden argument*/NULL);
HelperScript_t1151587737 * L_44 = __this->get_helper_2();
NullCheck(L_44);
HelperScript_setAttachedObject_m3226814247(L_44, (GameObject_t1113636619 *)NULL, /*hidden argument*/NULL);
GameObject_t1113636619 * L_45 = V_2;
NullCheck(L_45);
Transform_t3600365921 * L_46 = GameObject_get_transform_m1369836730(L_45, /*hidden argument*/NULL);
GameObject_t1113636619 * L_47 = __this->get_Beaker_7();
NullCheck(L_47);
Transform_t3600365921 * L_48 = GameObject_get_transform_m1369836730(L_47, /*hidden argument*/NULL);
NullCheck(L_48);
Vector3_t3722313464 L_49 = Transform_get_position_m36019626(L_48, /*hidden argument*/NULL);
NullCheck(L_46);
Transform_set_position_m3387557959(L_46, L_49, /*hidden argument*/NULL);
GameObject_t1113636619 * L_50 = V_2;
NullCheck(L_50);
String_t* L_51 = GameObject_get_tag_m3951609671(L_50, /*hidden argument*/NULL);
NullCheck(L_51);
bool L_52 = String_Contains_m1147431944(L_51, _stringLiteral2731190251, /*hidden argument*/NULL);
if (!L_52)
{
goto IL_01bc;
}
}
{
GameObject_t1113636619 * L_53 = V_2;
NullCheck(L_53);
Transform_t3600365921 * L_54 = GameObject_get_transform_m1369836730(L_53, /*hidden argument*/NULL);
Vector3_t3722313464 L_55;
memset(&L_55, 0, sizeof(L_55));
Vector3__ctor_m3353183577((&L_55), (0.1f), (0.1f), (0.1f), /*hidden argument*/NULL);
NullCheck(L_54);
Transform_set_localScale_m3053443106(L_54, L_55, /*hidden argument*/NULL);
float L_56 = __this->get_BeakerContains_13();
if ((!(((float)L_56) == ((float)(1.0f)))))
{
goto IL_01ac;
}
}
{
__this->set_BeakerContains_13((1.1f));
goto IL_01b7;
}
IL_01ac:
{
__this->set_BeakerContains_13((0.1f));
}
IL_01b7:
{
goto IL_0206;
}
IL_01bc:
{
GameObject_t1113636619 * L_57 = V_2;
NullCheck(L_57);
Transform_t3600365921 * L_58 = GameObject_get_transform_m1369836730(L_57, /*hidden argument*/NULL);
Vector3_t3722313464 L_59;
memset(&L_59, 0, sizeof(L_59));
Vector3__ctor_m3353183577((&L_59), (0.005f), (0.005f), (0.005f), /*hidden argument*/NULL);
NullCheck(L_58);
Transform_set_localScale_m3053443106(L_58, L_59, /*hidden argument*/NULL);
float L_60 = __this->get_BeakerContains_13();
if ((!(((float)L_60) == ((float)(0.1f)))))
{
goto IL_01fb;
}
}
{
__this->set_BeakerContains_13((1.1f));
goto IL_0206;
}
IL_01fb:
{
__this->set_BeakerContains_13((1.0f));
}
IL_0206:
{
Collider_t1773347010 * L_61 = ___other0;
NullCheck(L_61);
String_t* L_62 = Component_get_tag_m2716693327(L_61, /*hidden argument*/NULL);
NullCheck(L_62);
bool L_63 = String_Contains_m1147431944(L_62, _stringLiteral3490442989, /*hidden argument*/NULL);
if (!L_63)
{
goto IL_0241;
}
}
{
float L_64 = __this->get_BeakerContains_13();
if ((!(((double)(1.0)) <= ((double)(((double)((double)L_64)))))))
{
goto IL_0241;
}
}
{
Material_t340375123 * L_65 = __this->get_BeakerMat_6();
Color_t2555686324 L_66 = __this->get_DyeColor_5();
NullCheck(L_65);
Material_set_color_m1794818007(L_65, L_66, /*hidden argument*/NULL);
}
IL_0241:
{
Collider_t1773347010 * L_67 = ___other0;
NullCheck(L_67);
String_t* L_68 = Component_get_tag_m2716693327(L_67, /*hidden argument*/NULL);
NullCheck(L_68);
bool L_69 = String_Contains_m1147431944(L_68, _stringLiteral798688684, /*hidden argument*/NULL);
if (!L_69)
{
goto IL_0276;
}
}
{
bool L_70 = __this->get_FaucetActive_12();
__this->set_FaucetActive_12((bool)((((int32_t)L_70) == ((int32_t)0))? 1 : 0));
GameObject_t1113636619 * L_71 = __this->get_Faucet_10();
bool L_72 = __this->get_FaucetActive_12();
NullCheck(L_71);
GameObject_SetActive_m796801857(L_71, L_72, /*hidden argument*/NULL);
}
IL_0276:
{
Collider_t1773347010 * L_73 = ___other0;
NullCheck(L_73);
String_t* L_74 = Component_get_tag_m2716693327(L_73, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
bool L_75 = String_op_Equality_m920492651(NULL /*static, unused*/, L_74, _stringLiteral1950909564, /*hidden argument*/NULL);
if (!L_75)
{
goto IL_02a6;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral555807437, /*hidden argument*/NULL);
GameObject_t1113636619 * L_76 = __this->get_Arrow_11();
NullCheck(L_76);
GameObject_SendMessage_m1121218340(L_76, _stringLiteral2313787010, 1, /*hidden argument*/NULL);
}
IL_02a6:
{
return;
}
}
// System.Void PointerScript::switchObjectParent(UnityEngine.GameObject)
extern "C" void PointerScript_switchObjectParent_m2650247284 (PointerScript_t3628587701 * __this, GameObject_t1113636619 * ___curObj0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PointerScript_switchObjectParent_m2650247284_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
GameObject_t1113636619 * L_0 = ___curObj0;
NullCheck(L_0);
Transform_t3600365921 * L_1 = GameObject_GetComponentInParent_TisTransform_t3600365921_m2951165606(L_0, /*hidden argument*/GameObject_GetComponentInParent_TisTransform_t3600365921_m2951165606_RuntimeMethod_var);
GameObject_t1113636619 * L_2 = __this->get_pointer_3();
NullCheck(L_2);
Transform_t3600365921 * L_3 = GameObject_get_transform_m1369836730(L_2, /*hidden argument*/NULL);
NullCheck(L_1);
Transform_set_parent_m786917804(L_1, L_3, /*hidden argument*/NULL);
GameObject_t1113636619 * L_4 = ___curObj0;
NullCheck(L_4);
Rigidbody_t3916780224 * L_5 = GameObject_GetComponent_TisRigidbody_t3916780224_m564316479(L_4, /*hidden argument*/GameObject_GetComponent_TisRigidbody_t3916780224_m564316479_RuntimeMethod_var);
NullCheck(L_5);
Rigidbody_set_freezeRotation_m754206839(L_5, (bool)1, /*hidden argument*/NULL);
return;
}
}
// System.Void PointerScript::OnTriggerStay(UnityEngine.Collider)
extern "C" void PointerScript_OnTriggerStay_m1260586230 (PointerScript_t3628587701 * __this, Collider_t1773347010 * ___other0, const RuntimeMethod* method)
{
{
return;
}
}
// System.Void PointerScript::OnTriggerExit(UnityEngine.Collider)
extern "C" void PointerScript_OnTriggerExit_m2590455578 (PointerScript_t3628587701 * __this, Collider_t1773347010 * ___other0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PointerScript_OnTriggerExit_m2590455578_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral3035767777, /*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 Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::.ctor()
extern "C" void FluvioRuntimeHelper__ctor_m4224264074 (FluvioRuntimeHelper_t3939505274 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnEnable()
extern "C" void FluvioRuntimeHelper_OnEnable_m1411491943 (FluvioRuntimeHelper_t3939505274 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluvioRuntimeHelper_OnEnable_m1411491943_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ThreadFactory_t1346931491 * L_0 = (ThreadFactory_t1346931491 *)il2cpp_codegen_object_new(ThreadFactory_t1346931491_il2cpp_TypeInfo_var);
ThreadFactory__ctor_m2255992009(L_0, /*hidden argument*/NULL);
__this->set__threadFactory_2(L_0);
ThreadHandler_t2543061702 * L_1 = (ThreadHandler_t2543061702 *)il2cpp_codegen_object_new(ThreadHandler_t2543061702_il2cpp_TypeInfo_var);
ThreadHandler__ctor_m3525677054(L_1, /*hidden argument*/NULL);
__this->set__threadHandler_3(L_1);
Interlocked_t2336157651 * L_2 = (Interlocked_t2336157651 *)il2cpp_codegen_object_new(Interlocked_t2336157651_il2cpp_TypeInfo_var);
Interlocked__ctor_m1596332714(L_2, /*hidden argument*/NULL);
__this->set__interlocked_4(L_2);
intptr_t L_3 = (intptr_t)FluvioRuntimeHelper_OnFluidEnabled_m922446055_RuntimeMethod_var;
Action_1_t2614539062 * L_4 = (Action_1_t2614539062 *)il2cpp_codegen_object_new(Action_1_t2614539062_il2cpp_TypeInfo_var);
Action_1__ctor_m3132718992(L_4, __this, L_3, /*hidden argument*/Action_1__ctor_m3132718992_RuntimeMethod_var);
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
FluidBase_add_onFluidEnabled_m2951677259(NULL /*static, unused*/, L_4, /*hidden argument*/NULL);
Action_1_t2614539062 * L_5 = ((FluvioRuntimeHelper_t3939505274_StaticFields*)il2cpp_codegen_static_fields_for(FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var))->get_U3CU3Ef__mgU24cache0_5();
if (L_5)
{
goto IL_004a;
}
}
{
intptr_t L_6 = (intptr_t)FluvioRuntimeHelper_OnFluidDisabled_m1043147736_RuntimeMethod_var;
Action_1_t2614539062 * L_7 = (Action_1_t2614539062 *)il2cpp_codegen_object_new(Action_1_t2614539062_il2cpp_TypeInfo_var);
Action_1__ctor_m3132718992(L_7, NULL, L_6, /*hidden argument*/Action_1__ctor_m3132718992_RuntimeMethod_var);
((FluvioRuntimeHelper_t3939505274_StaticFields*)il2cpp_codegen_static_fields_for(FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var))->set_U3CU3Ef__mgU24cache0_5(L_7);
}
IL_004a:
{
Action_1_t2614539062 * L_8 = ((FluvioRuntimeHelper_t3939505274_StaticFields*)il2cpp_codegen_static_fields_for(FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var))->get_U3CU3Ef__mgU24cache0_5();
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
FluidBase_add_onFluidDisabled_m187862416(NULL /*static, unused*/, L_8, /*hidden argument*/NULL);
FluvioRuntimeHelper_OnFluidEnabled_m922446055(__this, (FluidBase_t2442071467 *)NULL, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnFluidEnabled(Thinksquirrel.Fluvio.FluidBase)
extern "C" void FluvioRuntimeHelper_OnFluidEnabled_m922446055 (FluvioRuntimeHelper_t3939505274 * __this, FluidBase_t2442071467 * ___fluid0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluvioRuntimeHelper_OnFluidEnabled_m922446055_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
int32_t L_0 = FluidBase_get_fluidCount_m1920015235(NULL /*static, unused*/, /*hidden argument*/NULL);
if ((((int32_t)L_0) <= ((int32_t)0)))
{
goto IL_002c;
}
}
{
bool L_1 = Parallel_get_IsInitialized_m63898932(NULL /*static, unused*/, /*hidden argument*/NULL);
if (L_1)
{
goto IL_002c;
}
}
{
RuntimeObject* L_2 = __this->get__threadFactory_2();
RuntimeObject* L_3 = __this->get__threadHandler_3();
RuntimeObject* L_4 = __this->get__interlocked_4();
Parallel_Initialize_m3907173424(NULL /*static, unused*/, L_2, L_3, L_4, /*hidden argument*/NULL);
}
IL_002c:
{
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnFluidDisabled(Thinksquirrel.Fluvio.FluidBase)
extern "C" void FluvioRuntimeHelper_OnFluidDisabled_m1043147736 (RuntimeObject * __this /* static, unused */, FluidBase_t2442071467 * ___fluid0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluvioRuntimeHelper_OnFluidDisabled_m1043147736_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
int32_t L_0 = FluidBase_get_fluidCount_m1920015235(NULL /*static, unused*/, /*hidden argument*/NULL);
if (L_0)
{
goto IL_000f;
}
}
{
Parallel_Reset_m1490297730(NULL /*static, unused*/, /*hidden argument*/NULL);
}
IL_000f:
{
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnApplicationPause(System.Boolean)
extern "C" void FluvioRuntimeHelper_OnApplicationPause_m2414362422 (FluvioRuntimeHelper_t3939505274 * __this, bool ___isPaused0, const RuntimeMethod* method)
{
{
bool L_0 = Application_get_isEditor_m857789090(NULL /*static, unused*/, /*hidden argument*/NULL);
if (L_0)
{
goto IL_0014;
}
}
{
bool L_1 = ___isPaused0;
FluvioRuntimeHelper_UpdateThreads_m2089483363(__this, (bool)((((int32_t)L_1) == ((int32_t)0))? 1 : 0), /*hidden argument*/NULL);
}
IL_0014:
{
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnApplicationFocus(System.Boolean)
extern "C" void FluvioRuntimeHelper_OnApplicationFocus_m2274488012 (FluvioRuntimeHelper_t3939505274 * __this, bool ___isFocused0, const RuntimeMethod* method)
{
{
bool L_0 = Application_get_isEditor_m857789090(NULL /*static, unused*/, /*hidden argument*/NULL);
if (L_0)
{
goto IL_0011;
}
}
{
bool L_1 = ___isFocused0;
FluvioRuntimeHelper_UpdateThreads_m2089483363(__this, L_1, /*hidden argument*/NULL);
}
IL_0011:
{
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::UpdateThreads(System.Boolean)
extern "C" void FluvioRuntimeHelper_UpdateThreads_m2089483363 (FluvioRuntimeHelper_t3939505274 * __this, bool ___isFocused0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluvioRuntimeHelper_UpdateThreads_m2089483363_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
bool L_0 = ___isFocused0;
if (!L_0)
{
goto IL_0037;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
int32_t L_1 = FluidBase_get_fluidCount_m1920015235(NULL /*static, unused*/, /*hidden argument*/NULL);
if ((((int32_t)L_1) <= ((int32_t)0)))
{
goto IL_0037;
}
}
{
bool L_2 = Parallel_get_IsInitialized_m63898932(NULL /*static, unused*/, /*hidden argument*/NULL);
if (L_2)
{
goto IL_0037;
}
}
{
RuntimeObject* L_3 = __this->get__threadFactory_2();
RuntimeObject* L_4 = __this->get__threadHandler_3();
RuntimeObject* L_5 = __this->get__interlocked_4();
Parallel_Initialize_m3907173424(NULL /*static, unused*/, L_3, L_4, L_5, /*hidden argument*/NULL);
goto IL_0042;
}
IL_0037:
{
bool L_6 = ___isFocused0;
if (L_6)
{
goto IL_0042;
}
}
{
Parallel_Reset_m1490297730(NULL /*static, unused*/, /*hidden argument*/NULL);
}
IL_0042:
{
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.FluvioRuntimeHelper::OnDisable()
extern "C" void FluvioRuntimeHelper_OnDisable_m4074910997 (FluvioRuntimeHelper_t3939505274 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluvioRuntimeHelper_OnDisable_m4074910997_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
intptr_t L_0 = (intptr_t)FluvioRuntimeHelper_OnFluidEnabled_m922446055_RuntimeMethod_var;
Action_1_t2614539062 * L_1 = (Action_1_t2614539062 *)il2cpp_codegen_object_new(Action_1_t2614539062_il2cpp_TypeInfo_var);
Action_1__ctor_m3132718992(L_1, __this, L_0, /*hidden argument*/Action_1__ctor_m3132718992_RuntimeMethod_var);
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
FluidBase_remove_onFluidEnabled_m3002641607(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
Action_1_t2614539062 * L_2 = ((FluvioRuntimeHelper_t3939505274_StaticFields*)il2cpp_codegen_static_fields_for(FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var))->get_U3CU3Ef__mgU24cache1_6();
if (L_2)
{
goto IL_0029;
}
}
{
intptr_t L_3 = (intptr_t)FluvioRuntimeHelper_OnFluidDisabled_m1043147736_RuntimeMethod_var;
Action_1_t2614539062 * L_4 = (Action_1_t2614539062 *)il2cpp_codegen_object_new(Action_1_t2614539062_il2cpp_TypeInfo_var);
Action_1__ctor_m3132718992(L_4, NULL, L_3, /*hidden argument*/Action_1__ctor_m3132718992_RuntimeMethod_var);
((FluvioRuntimeHelper_t3939505274_StaticFields*)il2cpp_codegen_static_fields_for(FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var))->set_U3CU3Ef__mgU24cache1_6(L_4);
}
IL_0029:
{
Action_1_t2614539062 * L_5 = ((FluvioRuntimeHelper_t3939505274_StaticFields*)il2cpp_codegen_static_fields_for(FluvioRuntimeHelper_t3939505274_il2cpp_TypeInfo_var))->get_U3CU3Ef__mgU24cache1_6();
IL2CPP_RUNTIME_CLASS_INIT(FluidBase_t2442071467_il2cpp_TypeInfo_var);
FluidBase_remove_onFluidDisabled_m2868125068(NULL /*static, unused*/, L_5, /*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 Thinksquirrel.Fluvio.Internal.Threading.Interlocked::.ctor()
extern "C" void Interlocked__ctor_m1596332714 (Interlocked_t2336157651 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Int32 Thinksquirrel.Fluvio.Internal.Threading.Interlocked::Increment(System.Int32&)
extern "C" int32_t Interlocked_Increment_m851511862 (Interlocked_t2336157651 * __this, int32_t* ___location0, const RuntimeMethod* method)
{
{
int32_t* L_0 = ___location0;
int32_t L_1 = Interlocked_Increment_m3548166048(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Int64 Thinksquirrel.Fluvio.Internal.Threading.Interlocked::Increment(System.Int64&)
extern "C" int64_t Interlocked_Increment_m1767126160 (Interlocked_t2336157651 * __this, int64_t* ___location0, const RuntimeMethod* method)
{
{
int64_t* L_0 = ___location0;
int64_t L_1 = Interlocked_Increment_m1565533900(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Int64 Thinksquirrel.Fluvio.Internal.Threading.Interlocked::Decrement(System.Int64&)
extern "C" int64_t Interlocked_Decrement_m3206301909 (Interlocked_t2336157651 * __this, int64_t* ___location0, const RuntimeMethod* method)
{
{
int64_t* L_0 = ___location0;
int64_t L_1 = Interlocked_Decrement_m2654478630(NULL /*static, unused*/, L_0, /*hidden argument*/NULL);
return L_1;
}
}
// System.Int32 Thinksquirrel.Fluvio.Internal.Threading.Interlocked::CompareExchange(System.Int32&,System.Int32,System.Int32)
extern "C" int32_t Interlocked_CompareExchange_m2802290815 (Interlocked_t2336157651 * __this, int32_t* ___location10, int32_t ___value1, int32_t ___comparand2, const RuntimeMethod* method)
{
{
int32_t* L_0 = ___location10;
int32_t L_1 = ___value1;
int32_t L_2 = ___comparand2;
int32_t L_3 = Interlocked_CompareExchange_m3023855514(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
// System.Int64 Thinksquirrel.Fluvio.Internal.Threading.Interlocked::CompareExchange(System.Int64&,System.Int64,System.Int64)
extern "C" int64_t Interlocked_CompareExchange_m2800894388 (Interlocked_t2336157651 * __this, int64_t* ___location10, int64_t ___value1, int64_t ___comparand2, const RuntimeMethod* method)
{
{
int64_t* L_0 = ___location10;
int64_t L_1 = ___value1;
int64_t L_2 = ___comparand2;
int64_t L_3 = Interlocked_CompareExchange_m1385746522(NULL /*static, unused*/, L_0, L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
#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 Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory::.ctor()
extern "C" void ThreadFactory__ctor_m2255992009 (ThreadFactory_t1346931491 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// Thinksquirrel.Fluvio.Internal.Threading.IThread Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory::Create(System.Action)
extern "C" RuntimeObject* ThreadFactory_Create_m963505556 (ThreadFactory_t1346931491 * __this, Action_t1264377477 * ___threadStart0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadFactory_Create_m963505556_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Action_t1264377477 * L_0 = ___threadStart0;
Thread_t3301707652 * L_1 = (Thread_t3301707652 *)il2cpp_codegen_object_new(Thread_t3301707652_il2cpp_TypeInfo_var);
Thread__ctor_m2516358625(L_1, L_0, /*hidden argument*/NULL);
return L_1;
}
}
// Thinksquirrel.Fluvio.Internal.Threading.IThread Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory::Create(System.Action`1<System.Object>)
extern "C" RuntimeObject* ThreadFactory_Create_m2935627831 (ThreadFactory_t1346931491 * __this, Action_1_t3252573759 * ___parameterizedThreadStart0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadFactory_Create_m2935627831_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Action_1_t3252573759 * L_0 = ___parameterizedThreadStart0;
Thread_t3301707652 * L_1 = (Thread_t3301707652 *)il2cpp_codegen_object_new(Thread_t3301707652_il2cpp_TypeInfo_var);
Thread__ctor_m3302383024(L_1, L_0, /*hidden argument*/NULL);
return L_1;
}
}
#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 Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::.ctor(System.Action)
extern "C" void Thread__ctor_m2516358625 (Thread_t3301707652 * __this, Action_t1264377477 * ___threadStart0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Thread__ctor_m2516358625_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Thread_t2300836069 * V_0 = NULL;
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
Action_t1264377477 * L_0 = ___threadStart0;
intptr_t L_1 = (intptr_t)Action_Invoke_m937035532_RuntimeMethod_var;
ThreadStart_t1006689297 * L_2 = (ThreadStart_t1006689297 *)il2cpp_codegen_object_new(ThreadStart_t1006689297_il2cpp_TypeInfo_var);
ThreadStart__ctor_m3250019360(L_2, L_0, L_1, /*hidden argument*/NULL);
Thread_t2300836069 * L_3 = (Thread_t2300836069 *)il2cpp_codegen_object_new(Thread_t2300836069_il2cpp_TypeInfo_var);
Thread__ctor_m777188137(L_3, L_2, /*hidden argument*/NULL);
V_0 = L_3;
Thread_t2300836069 * L_4 = V_0;
NullCheck(L_4);
Thread_set_Priority_m383432495(L_4, 2, /*hidden argument*/NULL);
Thread_t2300836069 * L_5 = V_0;
NullCheck(L_5);
Thread_set_IsBackground_m3868016371(L_5, (bool)0, /*hidden argument*/NULL);
Thread_t2300836069 * L_6 = V_0;
__this->set_m_Thread_0(L_6);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::.ctor(System.Action`1<System.Object>)
extern "C" void Thread__ctor_m3302383024 (Thread_t3301707652 * __this, Action_1_t3252573759 * ___parameterizedThreadStart0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Thread__ctor_m3302383024_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
Action_1_t3252573759 * L_0 = ___parameterizedThreadStart0;
intptr_t L_1 = (intptr_t)Action_1_Invoke_m2461023210_RuntimeMethod_var;
ParameterizedThreadStart_t3696804522 * L_2 = (ParameterizedThreadStart_t3696804522 *)il2cpp_codegen_object_new(ParameterizedThreadStart_t3696804522_il2cpp_TypeInfo_var);
ParameterizedThreadStart__ctor_m1643173823(L_2, L_0, L_1, /*hidden argument*/NULL);
Thread_t2300836069 * L_3 = (Thread_t2300836069 *)il2cpp_codegen_object_new(Thread_t2300836069_il2cpp_TypeInfo_var);
Thread__ctor_m2201781645(L_3, L_2, /*hidden argument*/NULL);
__this->set_m_Thread_0(L_3);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::Start()
extern "C" void Thread_Start_m975289425 (Thread_t3301707652 * __this, const RuntimeMethod* method)
{
{
Thread_t2300836069 * L_0 = __this->get_m_Thread_0();
NullCheck(L_0);
Thread_Start_m2860771284(L_0, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::Start(System.Object)
extern "C" void Thread_Start_m2012071317 (Thread_t3301707652 * __this, RuntimeObject * ___parameter0, const RuntimeMethod* method)
{
{
Thread_t2300836069 * L_0 = __this->get_m_Thread_0();
RuntimeObject * L_1 = ___parameter0;
NullCheck(L_0);
Thread_Start_m2134518441(L_0, L_1, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::Join()
extern "C" void Thread_Join_m4183291729 (Thread_t3301707652 * __this, const RuntimeMethod* method)
{
{
Thread_t2300836069 * L_0 = __this->get_m_Thread_0();
NullCheck(L_0);
Thread_Join_m742107115(L_0, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Thinksquirrel.Fluvio.Internal.Threading.ThreadFactory/Thread::get_hasNotStarted()
extern "C" bool Thread_get_hasNotStarted_m2544526302 (Thread_t3301707652 * __this, const RuntimeMethod* method)
{
{
Thread_t2300836069 * L_0 = __this->get_m_Thread_0();
NullCheck(L_0);
int32_t L_1 = Thread_get_ThreadState_m2551357849(L_0, /*hidden argument*/NULL);
return (bool)((((int32_t)L_1) == ((int32_t)8))? 1 : 0);
}
}
#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 Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::.ctor()
extern "C" void ThreadHandler__ctor_m3525677054 (ThreadHandler_t2543061702 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m297566312(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::SwitchToThread()
extern "C" bool ThreadHandler_SwitchToThread_m2531549192 (RuntimeObject * __this /* static, unused */, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadHandler_SwitchToThread_m2531549192_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(Thread_t2300836069_il2cpp_TypeInfo_var);
Thread_Sleep_m483098292(NULL /*static, unused*/, 0, /*hidden argument*/NULL);
return (bool)1;
}
}
// System.UInt32 Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::timeBeginPeriod(System.UInt32)
extern "C" uint32_t ThreadHandler_timeBeginPeriod_m2075420077 (RuntimeObject * __this /* static, unused */, uint32_t ___period0, const RuntimeMethod* method)
{
{
uint32_t L_0 = ___period0;
return L_0;
}
}
// System.UInt32 Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::timeEndPeriod(System.UInt32)
extern "C" uint32_t ThreadHandler_timeEndPeriod_m1306668173 (RuntimeObject * __this /* static, unused */, uint32_t ___period0, const RuntimeMethod* method)
{
{
uint32_t L_0 = ___period0;
return L_0;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::Sleep(System.Int32)
extern "C" void ThreadHandler_Sleep_m511088409 (ThreadHandler_t2543061702 * __this, int32_t ___millisecondsTimeout0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadHandler_Sleep_m511088409_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
uint32_t V_0 = 0;
{
int32_t L_0 = ___millisecondsTimeout0;
V_0 = L_0;
uint32_t L_1 = V_0;
ThreadHandler_timeBeginPeriod_m2075420077(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
int32_t L_2 = ___millisecondsTimeout0;
IL2CPP_RUNTIME_CLASS_INIT(Thread_t2300836069_il2cpp_TypeInfo_var);
Thread_Sleep_m483098292(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
uint32_t L_3 = V_0;
ThreadHandler_timeEndPeriod_m1306668173(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::Yield()
extern "C" void ThreadHandler_Yield_m709034879 (ThreadHandler_t2543061702 * __this, const RuntimeMethod* method)
{
{
ThreadHandler_SwitchToThread_m2531549192(NULL /*static, unused*/, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.Internal.Threading.ThreadHandler::SpinWait(System.Int32)
extern "C" void ThreadHandler_SpinWait_m1902359859 (ThreadHandler_t2543061702 * __this, int32_t ___iterations0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadHandler_SpinWait_m1902359859_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
int32_t L_0 = ___iterations0;
IL2CPP_RUNTIME_CLASS_INIT(Thread_t2300836069_il2cpp_TypeInfo_var);
Thread_SpinWait_m3968465979(NULL /*static, unused*/, L_0, /*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 Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::.ctor()
extern "C" void FluidMixer__ctor_m4184952816 (FluidMixer_t1501991927 * __this, const RuntimeMethod* method)
{
{
FluidParticlePairPlugin__ctor_m3478916401(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnResetPlugin()
extern "C" void FluidMixer_OnResetPlugin_m2956617223 (FluidMixer_t1501991927 * __this, const RuntimeMethod* method)
{
{
__this->set_fluidB_23((FluidBase_t2442071467 *)NULL);
__this->set_fluidC_24((ParticleSystem_t1800779281 *)NULL);
__this->set_fluidD_25((ParticleSystem_t1800779281 *)NULL);
__this->set_distanceMultiplier_26((0.5f));
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnEnablePlugin()
extern "C" void FluidMixer_OnEnablePlugin_m4174981106 (FluidMixer_t1501991927 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidMixer_OnEnablePlugin_m4174981106_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
__this->set_m_FirstFrame_34((bool)1);
IL2CPP_RUNTIME_CLASS_INIT(FluvioComputeShader_t2551470295_il2cpp_TypeInfo_var);
FluvioComputeShader_t2551470295 * L_0 = FluvioComputeShader_Find_m1425521817(NULL /*static, unused*/, _stringLiteral3787728118, /*hidden argument*/NULL);
FluidParallelPlugin_SetComputeShader_m1246912273(__this, L_0, _stringLiteral2126595046, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnSetComputeShaderVariables()
extern "C" void FluidMixer_OnSetComputeShaderVariables_m3099943613 (FluidMixer_t1501991927 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidMixer_OnSetComputeShaderVariables_m3099943613_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
FluidMixerData_t2739974414 * G_B2_0 = NULL;
FluidMixerData_t2739974414 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
FluidMixerData_t2739974414 * G_B3_1 = NULL;
{
FluidMixerDataU5BU5D_t901665531* L_0 = __this->get_m_MixerData_33();
NullCheck(L_0);
Vector4_t3319028937 * L_1 = ((L_0)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->get_address_of_emitPosition_0();
float L_2 = __this->get_m_MixingDistanceSq_39();
L_1->set_w_4(L_2);
FluidMixerDataU5BU5D_t901665531* L_3 = __this->get_m_MixerData_33();
NullCheck(L_3);
int32_t L_4 = __this->get_m_FluidBID_30();
((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->set_fluidB_2(L_4);
FluidMixerDataU5BU5D_t901665531* L_5 = __this->get_m_MixerData_33();
NullCheck(L_5);
int32_t L_6 = __this->get_m_FluidCID_31();
((L_5)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->set_fluidC_3(L_6);
FluidMixerDataU5BU5D_t901665531* L_7 = __this->get_m_MixerData_33();
NullCheck(L_7);
int32_t L_8 = __this->get_m_FluidDID_32();
((L_7)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->set_fluidD_4(L_8);
FluidMixerDataU5BU5D_t901665531* L_9 = __this->get_m_MixerData_33();
NullCheck(L_9);
bool L_10 = __this->get_m_MixingFluidsAreTheSame_38();
G_B1_0 = ((L_9)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)));
if (!L_10)
{
G_B2_0 = ((L_9)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)));
goto IL_007e;
}
}
{
G_B3_0 = 1;
G_B3_1 = G_B1_0;
goto IL_007f;
}
IL_007e:
{
G_B3_0 = 0;
G_B3_1 = G_B2_0;
}
IL_007f:
{
G_B3_1->set_mixingFluidsAreTheSame_5(G_B3_0);
FluidMixerDataU5BU5D_t901665531* L_11 = __this->get_m_MixerData_33();
FluidParallelPlugin_SetComputePluginBuffer_TisFluidMixerData_t2739974414_m1154187815(__this, 0, L_11, (bool)1, /*hidden argument*/FluidParallelPlugin_SetComputePluginBuffer_TisFluidMixerData_t2739974414_m1154187815_RuntimeMethod_var);
return;
}
}
// System.Boolean Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnStartPluginFrame(Thinksquirrel.Fluvio.FluvioTimeStep&)
extern "C" bool FluidMixer_OnStartPluginFrame_m2503903814 (FluidMixer_t1501991927 * __this, FluvioTimeStep_t3427387132 * ___timeStep0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidMixer_OnStartPluginFrame_m2503903814_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
FluidMixer_t1501991927 * G_B10_0 = NULL;
FluidMixer_t1501991927 * G_B9_0 = NULL;
int32_t G_B11_0 = 0;
FluidMixer_t1501991927 * G_B11_1 = NULL;
FluidMixer_t1501991927 * G_B13_0 = NULL;
FluidMixer_t1501991927 * G_B12_0 = NULL;
int32_t G_B14_0 = 0;
FluidMixer_t1501991927 * G_B14_1 = NULL;
int32_t G_B17_0 = 0;
{
FluidParallelPlugin_set_includeFluidGroup_m1797680778(__this, (bool)1, /*hidden argument*/NULL);
bool L_0 = __this->get_m_FirstFrame_34();
if (!L_0)
{
goto IL_001b;
}
}
{
__this->set_m_FirstFrame_34((bool)0);
return (bool)0;
}
IL_001b:
{
FluidBase_t2442071467 * L_1 = __this->get_fluidB_23();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_003b;
}
}
{
FluidBase_t2442071467 * L_3 = __this->get_fluidB_23();
NullCheck(L_3);
bool L_4 = Behaviour_get_enabled_m753527255(L_3, /*hidden argument*/NULL);
if (L_4)
{
goto IL_003d;
}
}
IL_003b:
{
return (bool)0;
}
IL_003d:
{
int32_t L_5 = __this->get_m_Count_27();
V_0 = L_5;
FluidBase_t2442071467 * L_6 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_6);
int32_t L_7 = FluidBase_GetTotalParticleCount_m1053880448(L_6, /*hidden argument*/NULL);
__this->set_m_Count_27(L_7);
FluidMixerDataU5BU5D_t901665531** L_8 = __this->get_address_of_m_MixerData_33();
int32_t L_9 = __this->get_m_Count_27();
Array_Resize_TisFluidMixerData_t2739974414_m3950388657(NULL /*static, unused*/, L_8, L_9, /*hidden argument*/Array_Resize_TisFluidMixerData_t2739974414_m3950388657_RuntimeMethod_var);
int32_t L_10 = V_0;
V_1 = L_10;
goto IL_008c;
}
IL_006d:
{
FluidMixerDataU5BU5D_t901665531* L_11 = __this->get_m_MixerData_33();
int32_t L_12 = V_1;
NullCheck(L_11);
Vector4_t3319028937 * L_13 = ((L_11)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_12)))->get_address_of_emitVelocity_1();
L_13->set_w_4((0.0f));
int32_t L_14 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
}
IL_008c:
{
int32_t L_15 = V_1;
int32_t L_16 = __this->get_m_Count_27();
if ((((int32_t)L_15) < ((int32_t)L_16)))
{
goto IL_006d;
}
}
{
FluvioTimeStep_t3427387132 * L_17 = ___timeStep0;
__this->set_m_TimeStep_35((*(FluvioTimeStep_t3427387132 *)L_17));
FluidBase_t2442071467 * L_18 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_18);
Vector3_t3722313464 L_19 = FluidBase_get_gravity_m3726848975(L_18, /*hidden argument*/NULL);
__this->set_m_Gravity_36(L_19);
FluidBase_t2442071467 * L_20 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_20);
float L_21 = FluidBase_get_simulationScale_m3896504596(L_20, /*hidden argument*/NULL);
__this->set_m_SimulationScale_37(L_21);
FluidBase_t2442071467 * L_22 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
FluidBase_t2442071467 * L_23 = __this->get_fluidB_23();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_24 = Object_op_Equality_m1810815630(NULL /*static, unused*/, L_22, L_23, /*hidden argument*/NULL);
__this->set_m_MixingFluidsAreTheSame_38(L_24);
FluidBase_t2442071467 * L_25 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_25);
float L_26 = FluidBase_get_smoothingDistance_m1804750112(L_25, /*hidden argument*/NULL);
FluidBase_t2442071467 * L_27 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_27);
float L_28 = FluidBase_get_smoothingDistance_m1804750112(L_27, /*hidden argument*/NULL);
float L_29 = __this->get_distanceMultiplier_26();
float L_30 = __this->get_distanceMultiplier_26();
__this->set_m_MixingDistanceSq_39(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_multiply((float)L_26, (float)L_28)), (float)L_29)), (float)L_30)));
FluidBase_t2442071467 * L_31 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_31);
int32_t L_32 = FluidBase_GetFluidID_m1999466632(L_31, /*hidden argument*/NULL);
__this->set_m_FluidAID_29(L_32);
FluidBase_t2442071467 * L_33 = __this->get_fluidB_23();
NullCheck(L_33);
int32_t L_34 = FluidBase_GetFluidID_m1999466632(L_33, /*hidden argument*/NULL);
__this->set_m_FluidBID_30(L_34);
ParticleSystem_t1800779281 * L_35 = __this->get_fluidC_24();
bool L_36 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_35, /*hidden argument*/NULL);
G_B9_0 = __this;
if (!L_36)
{
G_B10_0 = __this;
goto IL_0141;
}
}
{
G_B11_0 = 1;
G_B11_1 = G_B9_0;
goto IL_0142;
}
IL_0141:
{
G_B11_0 = 0;
G_B11_1 = G_B10_0;
}
IL_0142:
{
NullCheck(G_B11_1);
G_B11_1->set_m_FluidCID_31(G_B11_0);
ParticleSystem_t1800779281 * L_37 = __this->get_fluidD_25();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_38 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_37, /*hidden argument*/NULL);
G_B12_0 = __this;
if (!L_38)
{
G_B13_0 = __this;
goto IL_015e;
}
}
{
G_B14_0 = 2;
G_B14_1 = G_B12_0;
goto IL_015f;
}
IL_015e:
{
G_B14_0 = 0;
G_B14_1 = G_B13_0;
}
IL_015f:
{
NullCheck(G_B14_1);
G_B14_1->set_m_FluidDID_32(G_B14_0);
ParticleSystem_t1800779281 * L_39 = __this->get_fluidC_24();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_40 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_39, /*hidden argument*/NULL);
if (L_40)
{
goto IL_0181;
}
}
{
ParticleSystem_t1800779281 * L_41 = __this->get_fluidD_25();
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_42 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_41, /*hidden argument*/NULL);
G_B17_0 = ((int32_t)(L_42));
goto IL_0182;
}
IL_0181:
{
G_B17_0 = 1;
}
IL_0182:
{
return (bool)G_B17_0;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnUpdatePlugin(Thinksquirrel.Fluvio.Plugins.SolverData,System.Int32,System.Int32)
extern "C" void FluidMixer_OnUpdatePlugin_m3810918431 (FluidMixer_t1501991927 * __this, SolverData_t3372117984 * ___solverData0, int32_t ___particleIndex1, int32_t ___neighborIndex2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidMixer_OnUpdatePlugin_m3810918431_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
Vector3_t3722313464 V_3;
memset(&V_3, 0, sizeof(V_3));
Vector3_t3722313464 V_4;
memset(&V_4, 0, sizeof(V_4));
Vector3_t3722313464 V_5;
memset(&V_5, 0, sizeof(V_5));
Vector3_t3722313464 V_6;
memset(&V_6, 0, sizeof(V_6));
float V_7 = 0.0f;
bool V_8 = false;
Vector3_t3722313464 V_9;
memset(&V_9, 0, sizeof(V_9));
int32_t V_10 = 0;
Vector3_t3722313464 V_11;
memset(&V_11, 0, sizeof(V_11));
float V_12 = 0.0f;
float V_13 = 0.0f;
{
SolverData_t3372117984 * L_0 = ___solverData0;
int32_t L_1 = ___particleIndex1;
NullCheck(L_0);
FluidBase_t2442071467 * L_2 = SolverData_GetFluid_m174511767(L_0, L_1, /*hidden argument*/NULL);
NullCheck(L_2);
int32_t L_3 = FluidBase_GetFluidID_m1999466632(L_2, /*hidden argument*/NULL);
V_0 = L_3;
SolverData_t3372117984 * L_4 = ___solverData0;
int32_t L_5 = ___neighborIndex2;
NullCheck(L_4);
FluidBase_t2442071467 * L_6 = SolverData_GetFluid_m174511767(L_4, L_5, /*hidden argument*/NULL);
NullCheck(L_6);
int32_t L_7 = FluidBase_GetFluidID_m1999466632(L_6, /*hidden argument*/NULL);
V_1 = L_7;
int32_t L_8 = V_0;
int32_t L_9 = __this->get_m_FluidAID_29();
V_2 = (bool)((((int32_t)L_8) == ((int32_t)L_9))? 1 : 0);
bool L_10 = __this->get_m_MixingFluidsAreTheSame_38();
if (L_10)
{
goto IL_0036;
}
}
{
int32_t L_11 = V_0;
int32_t L_12 = V_1;
if ((((int32_t)L_11) == ((int32_t)L_12)))
{
goto IL_0276;
}
}
IL_0036:
{
bool L_13 = V_2;
if (L_13)
{
goto IL_0048;
}
}
{
int32_t L_14 = V_0;
int32_t L_15 = __this->get_m_FluidBID_30();
if ((!(((uint32_t)L_14) == ((uint32_t)L_15))))
{
goto IL_0276;
}
}
IL_0048:
{
int32_t L_16 = V_1;
int32_t L_17 = __this->get_m_FluidAID_29();
if ((((int32_t)L_16) == ((int32_t)L_17)))
{
goto IL_0060;
}
}
{
int32_t L_18 = V_1;
int32_t L_19 = __this->get_m_FluidBID_30();
if ((!(((uint32_t)L_18) == ((uint32_t)L_19))))
{
goto IL_0276;
}
}
IL_0060:
{
SolverData_t3372117984 * L_20 = ___solverData0;
int32_t L_21 = ___particleIndex1;
NullCheck(L_20);
Vector3_t3722313464 L_22 = SolverData_GetPosition_m3446942689(L_20, L_21, /*hidden argument*/NULL);
V_3 = L_22;
SolverData_t3372117984 * L_23 = ___solverData0;
int32_t L_24 = ___neighborIndex2;
NullCheck(L_23);
Vector3_t3722313464 L_25 = SolverData_GetPosition_m3446942689(L_23, L_24, /*hidden argument*/NULL);
V_4 = L_25;
Vector3_t3722313464 L_26 = V_3;
Vector3_t3722313464 L_27 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_28 = Vector3_op_Subtraction_m3073674971(NULL /*static, unused*/, L_26, L_27, /*hidden argument*/NULL);
V_5 = L_28;
float L_29 = Vector3_get_sqrMagnitude_m1474274574((&V_5), /*hidden argument*/NULL);
float L_30 = __this->get_m_MixingDistanceSq_39();
if ((!(((float)L_29) > ((float)L_30))))
{
goto IL_008e;
}
}
{
return;
}
IL_008e:
{
SolverData_t3372117984 * L_31 = ___solverData0;
int32_t L_32 = ___particleIndex1;
NullCheck(L_31);
Vector3_t3722313464 L_33 = SolverData_GetVelocity_m248941544(L_31, L_32, /*hidden argument*/NULL);
V_6 = L_33;
SolverData_t3372117984 * L_34 = ___solverData0;
int32_t L_35 = ___particleIndex1;
NullCheck(L_34);
float L_36 = SolverData_GetMass_m992124970(L_34, L_35, /*hidden argument*/NULL);
V_7 = ((float)((float)(1.0f)/(float)L_36));
V_8 = (bool)0;
int32_t L_37 = __this->get_m_FluidCID_31();
if (L_37)
{
goto IL_00ba;
}
}
{
bool L_38 = V_2;
if (L_38)
{
goto IL_00c9;
}
}
IL_00ba:
{
V_8 = (bool)1;
SolverData_t3372117984 * L_39 = ___solverData0;
int32_t L_40 = ___particleIndex1;
NullCheck(L_39);
SolverData_SetLifetime_m1596303488(L_39, L_40, (0.0f), /*hidden argument*/NULL);
}
IL_00c9:
{
int32_t L_41 = __this->get_m_FluidDID_32();
if (!L_41)
{
goto IL_00da;
}
}
{
bool L_42 = V_2;
if (!L_42)
{
goto IL_0121;
}
}
IL_00da:
{
bool L_43 = V_8;
if (!L_43)
{
goto IL_0101;
}
}
{
FluidMixerDataU5BU5D_t901665531* L_44 = __this->get_m_MixerData_33();
int32_t L_45 = ___particleIndex1;
NullCheck(L_44);
Vector4_t3319028937 * L_46 = ((L_44)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_45)))->get_address_of_emitVelocity_1();
L_46->set_w_4((1.0f));
goto IL_011c;
}
IL_0101:
{
FluidMixerDataU5BU5D_t901665531* L_47 = __this->get_m_MixerData_33();
int32_t L_48 = ___particleIndex1;
NullCheck(L_47);
Vector4_t3319028937 * L_49 = ((L_47)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_48)))->get_address_of_emitVelocity_1();
L_49->set_w_4((0.0f));
}
IL_011c:
{
goto IL_013c;
}
IL_0121:
{
FluidMixerDataU5BU5D_t901665531* L_50 = __this->get_m_MixerData_33();
int32_t L_51 = ___particleIndex1;
NullCheck(L_50);
Vector4_t3319028937 * L_52 = ((L_50)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_51)))->get_address_of_emitVelocity_1();
L_52->set_w_4((2.0f));
}
IL_013c:
{
Vector3_t3722313464 L_53 = __this->get_m_Gravity_36();
SolverData_t3372117984 * L_54 = ___solverData0;
int32_t L_55 = ___particleIndex1;
NullCheck(L_54);
Vector3_t3722313464 L_56 = SolverData_GetForce_m873236781(L_54, L_55, /*hidden argument*/NULL);
float L_57 = V_7;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_58 = Vector3_op_Multiply_m3376773913(NULL /*static, unused*/, L_56, L_57, /*hidden argument*/NULL);
Vector3_t3722313464 L_59 = Vector3_op_Addition_m779775034(NULL /*static, unused*/, L_53, L_58, /*hidden argument*/NULL);
V_9 = L_59;
V_10 = 0;
goto IL_01bd;
}
IL_015f:
{
FluvioTimeStep_t3427387132 * L_60 = __this->get_address_of_m_TimeStep_35();
float L_61 = L_60->get_dtIter_1();
Vector3_t3722313464 L_62 = V_9;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_63 = Vector3_op_Multiply_m2104357790(NULL /*static, unused*/, L_61, L_62, /*hidden argument*/NULL);
V_11 = L_63;
Vector3_t3722313464 L_64 = V_11;
bool L_65 = VectorValidationExtensions_IsNaN_m1363046296(NULL /*static, unused*/, L_64, /*hidden argument*/NULL);
if (L_65)
{
goto IL_01a5;
}
}
{
Vector3_t3722313464 L_66 = V_11;
bool L_67 = VectorValidationExtensions_IsInf_m3364351952(NULL /*static, unused*/, L_66, /*hidden argument*/NULL);
if (L_67)
{
goto IL_01a5;
}
}
{
Vector3_t3722313464 L_68 = V_11;
Vector3_t3722313464 L_69 = V_11;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
float L_70 = Vector3_Dot_m606404487(NULL /*static, unused*/, L_68, L_69, /*hidden argument*/NULL);
float L_71 = __this->get_m_SimulationScale_37();
if ((!(((float)L_70) > ((float)((float)il2cpp_codegen_multiply((float)(100.0f), (float)L_71))))))
{
goto IL_01ac;
}
}
IL_01a5:
{
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_72 = Vector3_get_zero_m1409827619(NULL /*static, unused*/, /*hidden argument*/NULL);
V_11 = L_72;
}
IL_01ac:
{
Vector3_t3722313464 L_73 = V_6;
Vector3_t3722313464 L_74 = V_11;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_75 = Vector3_op_Addition_m779775034(NULL /*static, unused*/, L_73, L_74, /*hidden argument*/NULL);
V_6 = L_75;
int32_t L_76 = V_10;
V_10 = ((int32_t)il2cpp_codegen_add((int32_t)L_76, (int32_t)1));
}
IL_01bd:
{
int32_t L_77 = V_10;
FluvioTimeStep_t3427387132 * L_78 = __this->get_address_of_m_TimeStep_35();
float L_79 = L_78->get_solverIterations_3();
if ((((float)(((float)((float)L_77)))) < ((float)L_79)))
{
goto IL_015f;
}
}
{
FluidMixerDataU5BU5D_t901665531* L_80 = __this->get_m_MixerData_33();
int32_t L_81 = ___particleIndex1;
NullCheck(L_80);
Vector4_t3319028937 * L_82 = ((L_80)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_81)))->get_address_of_emitPosition_0();
float L_83 = L_82->get_w_4();
V_12 = L_83;
FluidMixerDataU5BU5D_t901665531* L_84 = __this->get_m_MixerData_33();
int32_t L_85 = ___particleIndex1;
NullCheck(L_84);
Vector4_t3319028937 * L_86 = ((L_84)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_85)))->get_address_of_emitVelocity_1();
float L_87 = L_86->get_w_4();
V_13 = L_87;
FluidMixerDataU5BU5D_t901665531* L_88 = __this->get_m_MixerData_33();
int32_t L_89 = ___particleIndex1;
NullCheck(L_88);
Vector3_t3722313464 L_90 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(Vector4_t3319028937_il2cpp_TypeInfo_var);
Vector4_t3319028937 L_91 = Vector4_op_Implicit_m2966035112(NULL /*static, unused*/, L_90, /*hidden argument*/NULL);
((L_88)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_89)))->set_emitVelocity_1(L_91);
FluidMixerDataU5BU5D_t901665531* L_92 = __this->get_m_MixerData_33();
int32_t L_93 = ___particleIndex1;
NullCheck(L_92);
Vector3_t3722313464 L_94 = V_3;
Vector3_t3722313464 L_95 = V_6;
FluvioTimeStep_t3427387132 * L_96 = __this->get_address_of_m_TimeStep_35();
float L_97 = L_96->get_deltaTime_0();
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_98 = Vector3_op_Multiply_m3376773913(NULL /*static, unused*/, L_95, L_97, /*hidden argument*/NULL);
Vector3_t3722313464 L_99 = Vector3_op_Addition_m779775034(NULL /*static, unused*/, L_94, L_98, /*hidden argument*/NULL);
Vector4_t3319028937 L_100 = Vector4_op_Implicit_m2966035112(NULL /*static, unused*/, L_99, /*hidden argument*/NULL);
((L_92)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_93)))->set_emitPosition_0(L_100);
FluidMixerDataU5BU5D_t901665531* L_101 = __this->get_m_MixerData_33();
int32_t L_102 = ___particleIndex1;
NullCheck(L_101);
Vector4_t3319028937 * L_103 = ((L_101)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_102)))->get_address_of_emitPosition_0();
float L_104 = V_12;
L_103->set_w_4(L_104);
FluidMixerDataU5BU5D_t901665531* L_105 = __this->get_m_MixerData_33();
int32_t L_106 = ___particleIndex1;
NullCheck(L_105);
Vector4_t3319028937 * L_107 = ((L_105)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_106)))->get_address_of_emitVelocity_1();
float L_108 = V_13;
L_107->set_w_4(L_108);
}
IL_0276:
{
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnReadComputeBuffers()
extern "C" void FluidMixer_OnReadComputeBuffers_m3225133699 (FluidMixer_t1501991927 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidMixer_OnReadComputeBuffers_m3225133699_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
FluidMixerDataU5BU5D_t901665531* L_0 = __this->get_m_MixerData_33();
FluidParallelPlugin_GetComputePluginBuffer_TisFluidMixerData_t2739974414_m669696162(__this, 0, L_0, /*hidden argument*/FluidParallelPlugin_GetComputePluginBuffer_TisFluidMixerData_t2739974414_m669696162_RuntimeMethod_var);
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidMixer::OnPluginPostSolve()
extern "C" void FluidMixer_OnPluginPostSolve_m1987994228 (FluidMixer_t1501991927 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidMixer_OnPluginPostSolve_m1987994228_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
float V_1 = 0.0f;
ParticleSystem_t1800779281 * V_2 = NULL;
Matrix4x4_t1817901843 V_3;
memset(&V_3, 0, sizeof(V_3));
Transform_t3600365921 * V_4 = NULL;
int32_t V_5 = 0;
MainModule_t2320046318 V_6;
memset(&V_6, 0, sizeof(V_6));
int32_t V_7 = 0;
MainModule_t2320046318 V_8;
memset(&V_8, 0, sizeof(V_8));
MainModule_t2320046318 V_9;
memset(&V_9, 0, sizeof(V_9));
Transform_t3600365921 * V_10 = NULL;
MainModule_t2320046318 V_11;
memset(&V_11, 0, sizeof(V_11));
MainModule_t2320046318 V_12;
memset(&V_12, 0, sizeof(V_12));
int32_t V_13 = 0;
EmitParams_t2216423628 V_14;
memset(&V_14, 0, sizeof(V_14));
EmitParams_t2216423628 V_15;
memset(&V_15, 0, sizeof(V_15));
ParticleSystem_t1800779281 * G_B6_0 = NULL;
{
V_0 = 0;
goto IL_01bd;
}
IL_0007:
{
FluidMixerDataU5BU5D_t901665531* L_0 = __this->get_m_MixerData_33();
int32_t L_1 = V_0;
NullCheck(L_0);
Vector4_t3319028937 * L_2 = ((L_0)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_1)))->get_address_of_emitVelocity_1();
float L_3 = L_2->get_w_4();
V_1 = L_3;
float L_4 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Mathf_t3464937446_il2cpp_TypeInfo_var);
float L_5 = fabsf(L_4);
if ((!(((float)L_5) < ((float)(9.99999944E-11f)))))
{
goto IL_0033;
}
}
{
goto IL_01b9;
}
IL_0033:
{
float L_6 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Mathf_t3464937446_il2cpp_TypeInfo_var);
float L_7 = fabsf(((float)il2cpp_codegen_subtract((float)L_6, (float)(1.0f))));
if ((!(((float)L_7) < ((float)(9.99999944E-11f)))))
{
goto IL_0054;
}
}
{
ParticleSystem_t1800779281 * L_8 = __this->get_fluidC_24();
G_B6_0 = L_8;
goto IL_005a;
}
IL_0054:
{
ParticleSystem_t1800779281 * L_9 = __this->get_fluidD_25();
G_B6_0 = L_9;
}
IL_005a:
{
V_2 = G_B6_0;
FluidMixerDataU5BU5D_t901665531* L_10 = __this->get_m_MixerData_33();
int32_t L_11 = V_0;
NullCheck(L_10);
Vector4_t3319028937 * L_12 = ((L_10)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_11)))->get_address_of_emitVelocity_1();
L_12->set_w_4((0.0f));
IL2CPP_RUNTIME_CLASS_INIT(Matrix4x4_t1817901843_il2cpp_TypeInfo_var);
Matrix4x4_t1817901843 L_13 = Matrix4x4_get_identity_m1406790249(NULL /*static, unused*/, /*hidden argument*/NULL);
V_3 = L_13;
ParticleSystem_t1800779281 * L_14 = V_2;
NullCheck(L_14);
Transform_t3600365921 * L_15 = Component_get_transform_m3162698980(L_14, /*hidden argument*/NULL);
V_4 = L_15;
ParticleSystem_t1800779281 * L_16 = V_2;
NullCheck(L_16);
MainModule_t2320046318 L_17 = ParticleSystem_get_main_m3006917117(L_16, /*hidden argument*/NULL);
V_6 = L_17;
int32_t L_18 = MainModule_get_simulationSpace_m2279134456((&V_6), /*hidden argument*/NULL);
V_5 = L_18;
ParticleSystem_t1800779281 * L_19 = V_2;
NullCheck(L_19);
MainModule_t2320046318 L_20 = ParticleSystem_get_main_m3006917117(L_19, /*hidden argument*/NULL);
V_8 = L_20;
int32_t L_21 = MainModule_get_scalingMode_m747393725((&V_8), /*hidden argument*/NULL);
V_7 = L_21;
ParticleSystem_t1800779281 * L_22 = V_2;
NullCheck(L_22);
MainModule_t2320046318 L_23 = ParticleSystem_get_main_m3006917117(L_22, /*hidden argument*/NULL);
V_9 = L_23;
int32_t L_24 = MainModule_get_simulationSpace_m2279134456((&V_9), /*hidden argument*/NULL);
if ((!(((uint32_t)L_24) == ((uint32_t)2))))
{
goto IL_00dc;
}
}
{
ParticleSystem_t1800779281 * L_25 = V_2;
NullCheck(L_25);
MainModule_t2320046318 L_26 = ParticleSystem_get_main_m3006917117(L_25, /*hidden argument*/NULL);
V_11 = L_26;
Transform_t3600365921 * L_27 = MainModule_get_customSimulationSpace_m924936985((&V_11), /*hidden argument*/NULL);
V_10 = L_27;
Transform_t3600365921 * L_28 = V_10;
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_29 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_28, /*hidden argument*/NULL);
if (!L_29)
{
goto IL_00dc;
}
}
{
Transform_t3600365921 * L_30 = V_10;
V_4 = L_30;
}
IL_00dc:
{
int32_t L_31 = V_5;
if ((((int32_t)L_31) == ((int32_t)1)))
{
goto IL_015c;
}
}
{
ParticleSystem_t1800779281 * L_32 = V_2;
NullCheck(L_32);
MainModule_t2320046318 L_33 = ParticleSystem_get_main_m3006917117(L_32, /*hidden argument*/NULL);
V_12 = L_33;
int32_t L_34 = MainModule_get_scalingMode_m747393725((&V_12), /*hidden argument*/NULL);
V_13 = L_34;
int32_t L_35 = V_13;
if (!L_35)
{
goto IL_0111;
}
}
{
int32_t L_36 = V_13;
if ((((int32_t)L_36) == ((int32_t)1)))
{
goto IL_011e;
}
}
{
int32_t L_37 = V_13;
if ((((int32_t)L_37) == ((int32_t)2)))
{
goto IL_013e;
}
}
{
goto IL_015c;
}
IL_0111:
{
Transform_t3600365921 * L_38 = V_4;
NullCheck(L_38);
Matrix4x4_t1817901843 L_39 = Transform_get_localToWorldMatrix_m4155710351(L_38, /*hidden argument*/NULL);
V_3 = L_39;
goto IL_015c;
}
IL_011e:
{
Transform_t3600365921 * L_40 = V_4;
NullCheck(L_40);
Vector3_t3722313464 L_41 = Transform_get_position_m36019626(L_40, /*hidden argument*/NULL);
Transform_t3600365921 * L_42 = V_4;
NullCheck(L_42);
Quaternion_t2301928331 L_43 = Transform_get_rotation_m3502953881(L_42, /*hidden argument*/NULL);
Transform_t3600365921 * L_44 = V_4;
NullCheck(L_44);
Vector3_t3722313464 L_45 = Transform_get_localScale_m129152068(L_44, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Matrix4x4_t1817901843_il2cpp_TypeInfo_var);
Matrix4x4_t1817901843 L_46 = Matrix4x4_TRS_m3801934620(NULL /*static, unused*/, L_41, L_43, L_45, /*hidden argument*/NULL);
V_3 = L_46;
goto IL_015c;
}
IL_013e:
{
Transform_t3600365921 * L_47 = V_4;
NullCheck(L_47);
Vector3_t3722313464 L_48 = Transform_get_position_m36019626(L_47, /*hidden argument*/NULL);
Transform_t3600365921 * L_49 = V_4;
NullCheck(L_49);
Quaternion_t2301928331 L_50 = Transform_get_rotation_m3502953881(L_49, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_51 = Vector3_get_one_m1629952498(NULL /*static, unused*/, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Matrix4x4_t1817901843_il2cpp_TypeInfo_var);
Matrix4x4_t1817901843 L_52 = Matrix4x4_TRS_m3801934620(NULL /*static, unused*/, L_48, L_50, L_51, /*hidden argument*/NULL);
V_3 = L_52;
goto IL_015c;
}
IL_015c:
{
il2cpp_codegen_initobj((&V_15), sizeof(EmitParams_t2216423628 ));
FluidMixerDataU5BU5D_t901665531* L_53 = __this->get_m_MixerData_33();
int32_t L_54 = V_0;
NullCheck(L_53);
Vector4_t3319028937 L_55 = ((L_53)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_54)))->get_emitPosition_0();
IL2CPP_RUNTIME_CLASS_INIT(Vector4_t3319028937_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_56 = Vector4_op_Implicit_m1158564884(NULL /*static, unused*/, L_55, /*hidden argument*/NULL);
Vector3_t3722313464 L_57 = Matrix4x4_MultiplyPoint3x4_m4145063176((&V_3), L_56, /*hidden argument*/NULL);
EmitParams_set_position_m3162245934((&V_15), L_57, /*hidden argument*/NULL);
FluidMixerDataU5BU5D_t901665531* L_58 = __this->get_m_MixerData_33();
int32_t L_59 = V_0;
NullCheck(L_58);
Vector4_t3319028937 L_60 = ((L_58)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_59)))->get_emitVelocity_1();
Vector3_t3722313464 L_61 = Vector4_op_Implicit_m1158564884(NULL /*static, unused*/, L_60, /*hidden argument*/NULL);
Vector3_t3722313464 L_62 = Matrix4x4_MultiplyVector_m3808798942((&V_3), L_61, /*hidden argument*/NULL);
EmitParams_set_velocity_m4290211678((&V_15), L_62, /*hidden argument*/NULL);
EmitParams_t2216423628 L_63 = V_15;
V_14 = L_63;
ParticleSystem_t1800779281 * L_64 = V_2;
EmitParams_t2216423628 L_65 = V_14;
NullCheck(L_64);
ParticleSystem_Emit_m1241484254(L_64, L_65, 1, /*hidden argument*/NULL);
}
IL_01b9:
{
int32_t L_66 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_66, (int32_t)1));
}
IL_01bd:
{
int32_t L_67 = V_0;
int32_t L_68 = __this->get_m_Count_27();
if ((((int32_t)L_67) < ((int32_t)L_68)))
{
goto IL_0007;
}
}
{
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
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::.ctor()
extern "C" void FluidTouch__ctor_m887891685 (FluidTouch_t1832949139 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch__ctor_m887891685_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
__this->set_m_TouchPoints_28(((Vector4U5BU5D_t934056436*)SZArrayNew(Vector4U5BU5D_t934056436_il2cpp_TypeInfo_var, (uint32_t)((int32_t)20))));
FluidParticlePlugin__ctor_m1060527277(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::OnResetPlugin()
extern "C" void FluidTouch_OnResetPlugin_m2150035963 (FluidTouch_t1832949139 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch_OnResetPlugin_m2150035963_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
FluvioMinMaxCurve_t1877352570 * V_0 = NULL;
{
FluvioMinMaxCurve_t1877352570 * L_0 = (FluvioMinMaxCurve_t1877352570 *)il2cpp_codegen_object_new(FluvioMinMaxCurve_t1877352570_il2cpp_TypeInfo_var);
FluvioMinMaxCurve__ctor_m727629918(L_0, /*hidden argument*/NULL);
V_0 = L_0;
FluvioMinMaxCurve_t1877352570 * L_1 = V_0;
NullCheck(L_1);
FluvioMinMaxCurve_set_scalar_m3122854881(L_1, (1000.0f), /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_2 = V_0;
NullCheck(L_2);
FluvioMinMaxCurve_set_minConstant_m1565453508(L_2, (0.0f), /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_3 = V_0;
NullCheck(L_3);
FluvioMinMaxCurve_set_maxConstant_m1975126104(L_3, (1000.0f), /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_4 = V_0;
__this->set_acceleration_23(L_4);
FluvioMinMaxCurve_t1877352570 * L_5 = __this->get_acceleration_23();
FluidParallelPlugin_SetCurveAsSigned_m1549982698(__this, L_5, (bool)1, /*hidden argument*/NULL);
__this->set_radius_24((10.0f));
__this->set_alwaysOn_25((bool)0);
__this->set_mouseButton_26(0);
__this->set_useMultiTouch_27((bool)1);
return;
}
}
// System.Boolean Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::OnStartPluginFrame(Thinksquirrel.Fluvio.FluvioTimeStep&)
extern "C" bool FluidTouch_OnStartPluginFrame_m3338445436 (FluidTouch_t1832949139 * __this, FluvioTimeStep_t3427387132 * ___timeStep0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch_OnStartPluginFrame_m3338445436_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Camera_t4157153871 * V_0 = NULL;
Plane_t1000493321 V_1;
memset(&V_1, 0, sizeof(V_1));
bool V_2 = false;
Vector3_t3722313464 V_3;
memset(&V_3, 0, sizeof(V_3));
int32_t V_4 = 0;
int32_t V_5 = 0;
Touch_t1921856868 V_6;
memset(&V_6, 0, sizeof(V_6));
FluvioMinMaxCurve_t1877352570 * V_7 = NULL;
{
__this->set_m_TouchPointsCount_29(0);
bool L_0 = Application_get_isPlaying_m100394690(NULL /*static, unused*/, /*hidden argument*/NULL);
if (L_0)
{
goto IL_0013;
}
}
{
return (bool)0;
}
IL_0013:
{
Camera_t4157153871 * L_1 = Camera_get_main_m3643453163(NULL /*static, unused*/, /*hidden argument*/NULL);
V_0 = L_1;
Camera_t4157153871 * L_2 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(Object_t631007953_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Implicit_m3574996620(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
if (L_3)
{
goto IL_0026;
}
}
{
return (bool)0;
}
IL_0026:
{
Camera_t4157153871 * L_4 = V_0;
NullCheck(L_4);
Transform_t3600365921 * L_5 = Component_get_transform_m3162698980(L_4, /*hidden argument*/NULL);
NullCheck(L_5);
Vector3_t3722313464 L_6 = Transform_get_forward_m747522392(L_5, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_7 = Vector3_op_UnaryNegation_m1951478815(NULL /*static, unused*/, L_6, /*hidden argument*/NULL);
FluidBase_t2442071467 * L_8 = FluidPlugin_get_fluid_m1638503413(__this, /*hidden argument*/NULL);
NullCheck(L_8);
Transform_t3600365921 * L_9 = Component_get_transform_m3162698980(L_8, /*hidden argument*/NULL);
NullCheck(L_9);
Vector3_t3722313464 L_10 = Transform_get_position_m36019626(L_9, /*hidden argument*/NULL);
Plane__ctor_m2890438515((&V_1), L_7, L_10, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Input_t1431474628_il2cpp_TypeInfo_var);
int32_t L_11 = Input_get_touchCount_m3403849067(NULL /*static, unused*/, /*hidden argument*/NULL);
if (!L_11)
{
goto IL_0062;
}
}
{
bool L_12 = __this->get_useMultiTouch_27();
if (L_12)
{
goto IL_0093;
}
}
IL_0062:
{
int32_t L_13 = __this->get_mouseButton_26();
IL2CPP_RUNTIME_CLASS_INIT(Input_t1431474628_il2cpp_TypeInfo_var);
bool L_14 = Input_GetMouseButton_m513753021(NULL /*static, unused*/, L_13, /*hidden argument*/NULL);
V_2 = L_14;
bool L_15 = __this->get_alwaysOn_25();
if (L_15)
{
goto IL_007f;
}
}
{
bool L_16 = V_2;
if (!L_16)
{
goto IL_008e;
}
}
IL_007f:
{
IL2CPP_RUNTIME_CLASS_INIT(Input_t1431474628_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_17 = Input_get_mousePosition_m1616496925(NULL /*static, unused*/, /*hidden argument*/NULL);
V_3 = L_17;
Vector3_t3722313464 L_18 = V_3;
Camera_t4157153871 * L_19 = V_0;
Plane_t1000493321 L_20 = V_1;
FluidTouch_AddTouchPoint_m14484858(__this, L_18, L_19, L_20, /*hidden argument*/NULL);
}
IL_008e:
{
goto IL_00ce;
}
IL_0093:
{
V_4 = 0;
IL2CPP_RUNTIME_CLASS_INIT(Input_t1431474628_il2cpp_TypeInfo_var);
int32_t L_21 = Input_get_touchCount_m3403849067(NULL /*static, unused*/, /*hidden argument*/NULL);
V_5 = L_21;
goto IL_00c5;
}
IL_00a2:
{
int32_t L_22 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(Input_t1431474628_il2cpp_TypeInfo_var);
Touch_t1921856868 L_23 = Input_GetTouch_m2192712756(NULL /*static, unused*/, L_22, /*hidden argument*/NULL);
V_6 = L_23;
Vector2_t2156229523 L_24 = Touch_get_position_m3109777936((&V_6), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector2_t2156229523_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_25 = Vector2_op_Implicit_m1860157806(NULL /*static, unused*/, L_24, /*hidden argument*/NULL);
Camera_t4157153871 * L_26 = V_0;
Plane_t1000493321 L_27 = V_1;
FluidTouch_AddTouchPoint_m14484858(__this, L_25, L_26, L_27, /*hidden argument*/NULL);
int32_t L_28 = V_4;
V_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_00c5:
{
int32_t L_29 = V_4;
int32_t L_30 = V_5;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_00a2;
}
}
IL_00ce:
{
FluvioMinMaxCurve_t1877352570 * L_31 = __this->get_acceleration_23();
if (L_31)
{
goto IL_010c;
}
}
{
FluvioMinMaxCurve_t1877352570 * L_32 = (FluvioMinMaxCurve_t1877352570 *)il2cpp_codegen_object_new(FluvioMinMaxCurve_t1877352570_il2cpp_TypeInfo_var);
FluvioMinMaxCurve__ctor_m727629918(L_32, /*hidden argument*/NULL);
V_7 = L_32;
FluvioMinMaxCurve_t1877352570 * L_33 = V_7;
NullCheck(L_33);
FluvioMinMaxCurve_set_scalar_m3122854881(L_33, (1000.0f), /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_34 = V_7;
NullCheck(L_34);
FluvioMinMaxCurve_set_minConstant_m1565453508(L_34, (0.0f), /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_35 = V_7;
NullCheck(L_35);
FluvioMinMaxCurve_set_maxConstant_m1975126104(L_35, (1000.0f), /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_36 = V_7;
__this->set_acceleration_23(L_36);
}
IL_010c:
{
FluvioMinMaxCurve_t1877352570 * L_37 = __this->get_acceleration_23();
FluidParallelPlugin_SetCurveAsSigned_m1549982698(__this, L_37, (bool)1, /*hidden argument*/NULL);
int32_t L_38 = __this->get_m_TouchPointsCount_29();
return (bool)((((int32_t)L_38) > ((int32_t)0))? 1 : 0);
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::AddTouchPoint(UnityEngine.Vector3,UnityEngine.Camera,UnityEngine.Plane)
extern "C" void FluidTouch_AddTouchPoint_m14484858 (FluidTouch_t1832949139 * __this, Vector3_t3722313464 ___touchPosition0, Camera_t4157153871 * ___cam1, Plane_t1000493321 ___plane2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch_AddTouchPoint_m14484858_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
Vector3_t3722313464 V_1;
memset(&V_1, 0, sizeof(V_1));
Ray_t3785851493 V_2;
memset(&V_2, 0, sizeof(V_2));
{
int32_t L_0 = __this->get_m_TouchPointsCount_29();
Vector4U5BU5D_t934056436* L_1 = __this->get_m_TouchPoints_28();
NullCheck(L_1);
if ((!(((uint32_t)L_0) == ((uint32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_1)->max_length))))))))
{
goto IL_0014;
}
}
{
return;
}
IL_0014:
{
Camera_t4157153871 * L_2 = ___cam1;
NullCheck(L_2);
bool L_3 = Camera_get_orthographic_m2831464531(L_2, /*hidden argument*/NULL);
V_0 = L_3;
Camera_t4157153871 * L_4 = ___cam1;
NullCheck(L_4);
Camera_set_orthographic_m2855749523(L_4, (bool)1, /*hidden argument*/NULL);
Camera_t4157153871 * L_5 = ___cam1;
float L_6 = (&___touchPosition0)->get_x_1();
float L_7 = (&___touchPosition0)->get_y_2();
Camera_t4157153871 * L_8 = ___cam1;
NullCheck(L_8);
float L_9 = Camera_get_nearClipPlane_m837839537(L_8, /*hidden argument*/NULL);
Vector3_t3722313464 L_10;
memset(&L_10, 0, sizeof(L_10));
Vector3__ctor_m3353183577((&L_10), L_6, L_7, L_9, /*hidden argument*/NULL);
NullCheck(L_5);
Vector3_t3722313464 L_11 = Camera_ScreenToWorldPoint_m3978588570(L_5, L_10, /*hidden argument*/NULL);
V_1 = L_11;
Camera_t4157153871 * L_12 = ___cam1;
bool L_13 = V_0;
NullCheck(L_12);
Camera_set_orthographic_m2855749523(L_12, L_13, /*hidden argument*/NULL);
Vector3_t3722313464 L_14 = V_1;
Vector3_t3722313464 L_15 = Plane_get_normal_m2366091158((&___plane2), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_t3722313464_il2cpp_TypeInfo_var);
Vector3_t3722313464 L_16 = Vector3_op_UnaryNegation_m1951478815(NULL /*static, unused*/, L_15, /*hidden argument*/NULL);
Ray__ctor_m168149494((&V_2), L_14, L_16, /*hidden argument*/NULL);
Vector4U5BU5D_t934056436* L_17 = __this->get_m_TouchPoints_28();
int32_t L_18 = __this->get_m_TouchPointsCount_29();
NullCheck(L_17);
Vector3_t3722313464 L_19 = Ray_get_origin_m2819290985((&V_2), /*hidden argument*/NULL);
float L_20 = Plane_GetDistanceToPoint_m484165678((&___plane2), L_19, /*hidden argument*/NULL);
Vector3_t3722313464 L_21 = Ray_GetPoint_m1852405345((&V_2), L_20, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector4_t3319028937_il2cpp_TypeInfo_var);
Vector4_t3319028937 L_22 = Vector4_op_Implicit_m2966035112(NULL /*static, unused*/, L_21, /*hidden argument*/NULL);
*(Vector4_t3319028937 *)((L_17)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_18))) = L_22;
int32_t L_23 = __this->get_m_TouchPointsCount_29();
__this->set_m_TouchPointsCount_29(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1)));
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::OnEnablePlugin()
extern "C" void FluidTouch_OnEnablePlugin_m1459819939 (FluidTouch_t1832949139 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch_OnEnablePlugin_m1459819939_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(FluvioComputeShader_t2551470295_il2cpp_TypeInfo_var);
FluvioComputeShader_t2551470295 * L_0 = FluvioComputeShader_Find_m1425521817(NULL /*static, unused*/, _stringLiteral2023415654, /*hidden argument*/NULL);
FluidParallelPlugin_SetComputeShader_m1246912273(__this, L_0, _stringLiteral2126595046, /*hidden argument*/NULL);
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::OnSetComputeShaderVariables()
extern "C" void FluidTouch_OnSetComputeShaderVariables_m3500212163 (FluidTouch_t1832949139 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch_OnSetComputeShaderVariables_m3500212163_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
FluvioMinMaxCurve_t1877352570 * L_0 = __this->get_acceleration_23();
FluidParallelPlugin_SetComputePluginMinMaxCurve_m1504106939(__this, 0, L_0, /*hidden argument*/NULL);
Vector4U5BU5D_t934056436* L_1 = __this->get_m_TouchPoints_28();
NullCheck(L_1);
float L_2 = __this->get_radius_24();
((L_1)->GetAddressAt(static_cast<il2cpp_array_size_t>(0)))->set_w_4(L_2);
Vector4U5BU5D_t934056436* L_3 = __this->get_m_TouchPoints_28();
NullCheck(L_3);
int32_t L_4 = __this->get_m_TouchPointsCount_29();
((L_3)->GetAddressAt(static_cast<il2cpp_array_size_t>(1)))->set_w_4((((float)((float)L_4))));
Vector4U5BU5D_t934056436* L_5 = __this->get_m_TouchPoints_28();
FluidParallelPlugin_SetComputePluginBuffer_TisVector4_t3319028937_m1809992889(__this, 1, L_5, (bool)0, /*hidden argument*/FluidParallelPlugin_SetComputePluginBuffer_TisVector4_t3319028937_m1809992889_RuntimeMethod_var);
return;
}
}
// System.Void Thinksquirrel.Fluvio.SamplePlugins.FluidTouch::OnUpdatePlugin(Thinksquirrel.Fluvio.Plugins.SolverData,System.Int32)
extern "C" void FluidTouch_OnUpdatePlugin_m4094986156 (FluidTouch_t1832949139 * __this, SolverData_t3372117984 * ___solverData0, int32_t ___particleIndex1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (FluidTouch_OnUpdatePlugin_m4094986156_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
uint32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
Vector4_t3319028937 V_3;
memset(&V_3, 0, sizeof(V_3));
Vector4_t3319028937 V_4;
memset(&V_4, 0, sizeof(V_4));
Vector4_t3319028937 V_5;
memset(&V_5, 0, sizeof(V_5));
float V_6 = 0.0f;
{
SolverData_t3372117984 * L_0 = ___solverData0;
int32_t L_1 = ___particleIndex1;
NullCheck(L_0);
uint32_t L_2 = SolverData_GetRandomSeed_m1906802397(L_0, L_1, /*hidden argument*/NULL);
V_0 = L_2;
V_1 = 0;
int32_t L_3 = __this->get_m_TouchPointsCount_29();
V_2 = L_3;
goto IL_00a2;
}
IL_0016:
{
Vector4U5BU5D_t934056436* L_4 = __this->get_m_TouchPoints_28();
int32_t L_5 = V_1;
NullCheck(L_4);
V_3 = (*(Vector4_t3319028937 *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5))));
(&V_3)->set_w_4((0.0f));
SolverData_t3372117984 * L_6 = ___solverData0;
int32_t L_7 = ___particleIndex1;
NullCheck(L_6);
Vector3_t3722313464 L_8 = SolverData_GetPosition_m3446942689(L_6, L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector4_t3319028937_il2cpp_TypeInfo_var);
Vector4_t3319028937 L_9 = Vector4_op_Implicit_m2966035112(NULL /*static, unused*/, L_8, /*hidden argument*/NULL);
V_4 = L_9;
(&V_4)->set_w_4((0.0f));
Vector4_t3319028937 L_10 = V_3;
Vector4_t3319028937 L_11 = V_4;
Vector4_t3319028937 L_12 = Vector4_op_Subtraction_m1632208160(NULL /*static, unused*/, L_10, L_11, /*hidden argument*/NULL);
V_5 = L_12;
float L_13 = Vector4_get_magnitude_m3909302680((&V_5), /*hidden argument*/NULL);
V_6 = L_13;
float L_14 = V_6;
float L_15 = __this->get_radius_24();
if ((!(((float)L_14) < ((float)L_15))))
{
goto IL_009e;
}
}
{
SolverData_t3372117984 * L_16 = ___solverData0;
int32_t L_17 = ___particleIndex1;
Vector4_t3319028937 L_18 = V_5;
float L_19 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(Vector4_t3319028937_il2cpp_TypeInfo_var);
Vector4_t3319028937 L_20 = Vector4_op_Division_m264790546(NULL /*static, unused*/, L_18, L_19, /*hidden argument*/NULL);
FluvioMinMaxCurve_t1877352570 * L_21 = __this->get_acceleration_23();
uint32_t L_22 = V_0;
float L_23 = V_6;
float L_24 = __this->get_radius_24();
NullCheck(L_21);
float L_25 = FluvioMinMaxCurve_Evaluate_m1971349275(L_21, L_22, ((float)((float)L_23/(float)L_24)), /*hidden argument*/NULL);
Vector4_t3319028937 L_26 = Vector4_op_Multiply_m213790997(NULL /*static, unused*/, L_20, L_25, /*hidden argument*/NULL);
Vector3_t3722313464 L_27 = Vector4_op_Implicit_m1158564884(NULL /*static, unused*/, L_26, /*hidden argument*/NULL);
NullCheck(L_16);
SolverData_AddForce_m1375700085(L_16, L_17, L_27, 5, /*hidden argument*/NULL);
}
IL_009e:
{
int32_t L_28 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)1));
}
IL_00a2:
{
int32_t L_29 = V_1;
int32_t L_30 = V_2;
if ((((int32_t)L_29) < ((int32_t)L_30)))
{
goto IL_0016;
}
}
{
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 WalkthroughScript::.ctor()
extern "C" void WalkthroughScript__ctor_m2771975813 (WalkthroughScript_t1234213269 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WalkthroughScript__ctor_m2771975813_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
__this->set_step1_2(_stringLiteral1120238597);
__this->set_step1B_3(_stringLiteral1115913221);
__this->set_step2_7(_stringLiteral1120238594);
__this->set_step2B_8(_stringLiteral1115913218);
__this->set_step3_9(_stringLiteral1120238595);
__this->set_step3B_10(_stringLiteral1115913219);
__this->set_step4_11(_stringLiteral1120238600);
__this->set_step4B_12(_stringLiteral1115913224);
__this->set_step5_13(_stringLiteral1120238601);
__this->set_step5B_14(_stringLiteral1115913225);
StringU5BU5D_t1281789340* L_0 = ((StringU5BU5D_t1281789340*)SZArrayNew(StringU5BU5D_t1281789340_il2cpp_TypeInfo_var, (uint32_t)4));
NullCheck(L_0);
ArrayElementTypeCheck (L_0, _stringLiteral615818563);
(L_0)->SetAt(static_cast<il2cpp_array_size_t>(0), (String_t*)_stringLiteral615818563);
StringU5BU5D_t1281789340* L_1 = L_0;
NullCheck(L_1);
ArrayElementTypeCheck (L_1, _stringLiteral698882300);
(L_1)->SetAt(static_cast<il2cpp_array_size_t>(1), (String_t*)_stringLiteral698882300);
StringU5BU5D_t1281789340* L_2 = L_1;
NullCheck(L_2);
ArrayElementTypeCheck (L_2, _stringLiteral3102845756);
(L_2)->SetAt(static_cast<il2cpp_array_size_t>(2), (String_t*)_stringLiteral3102845756);
StringU5BU5D_t1281789340* L_3 = L_2;
NullCheck(L_3);
ArrayElementTypeCheck (L_3, _stringLiteral4072509764);
(L_3)->SetAt(static_cast<il2cpp_array_size_t>(3), (String_t*)_stringLiteral4072509764);
__this->set_step1Items_15(L_3);
StringU5BU5D_t1281789340* L_4 = ((StringU5BU5D_t1281789340*)SZArrayNew(StringU5BU5D_t1281789340_il2cpp_TypeInfo_var, (uint32_t)6));
NullCheck(L_4);
ArrayElementTypeCheck (L_4, _stringLiteral615818563);
(L_4)->SetAt(static_cast<il2cpp_array_size_t>(0), (String_t*)_stringLiteral615818563);
StringU5BU5D_t1281789340* L_5 = L_4;
NullCheck(L_5);
ArrayElementTypeCheck (L_5, _stringLiteral698882300);
(L_5)->SetAt(static_cast<il2cpp_array_size_t>(1), (String_t*)_stringLiteral698882300);
StringU5BU5D_t1281789340* L_6 = L_5;
NullCheck(L_6);
ArrayElementTypeCheck (L_6, _stringLiteral3102845756);
(L_6)->SetAt(static_cast<il2cpp_array_size_t>(2), (String_t*)_stringLiteral3102845756);
StringU5BU5D_t1281789340* L_7 = L_6;
NullCheck(L_7);
ArrayElementTypeCheck (L_7, _stringLiteral4072509764);
(L_7)->SetAt(static_cast<il2cpp_array_size_t>(3), (String_t*)_stringLiteral4072509764);
StringU5BU5D_t1281789340* L_8 = L_7;
NullCheck(L_8);
ArrayElementTypeCheck (L_8, _stringLiteral812293955);
(L_8)->SetAt(static_cast<il2cpp_array_size_t>(4), (String_t*)_stringLiteral812293955);
StringU5BU5D_t1281789340* L_9 = L_8;
NullCheck(L_9);
ArrayElementTypeCheck (L_9, _stringLiteral2981046623);
(L_9)->SetAt(static_cast<il2cpp_array_size_t>(5), (String_t*)_stringLiteral2981046623);
__this->set_step2Items_16(L_9);
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void WalkthroughScript::Start()
extern "C" void WalkthroughScript_Start_m832016931 (WalkthroughScript_t1234213269 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WalkthroughScript_Start_m832016931_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
GameObject_t1113636619 * L_0 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral3096022723, /*hidden argument*/NULL);
__this->set_InfoQuad_17(L_0);
GameObject_t1113636619 * L_1 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral1253950546, /*hidden argument*/NULL);
__this->set_ItemQuad_18(L_1);
GameObject_t1113636619 * L_2 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral3551354140, /*hidden argument*/NULL);
__this->set_InstructionQuad_19(L_2);
GameObject_t1113636619 * L_3 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral2103141284, /*hidden argument*/NULL);
__this->set_Lab_20(L_3);
String_t* L_4 = __this->get_step1_2();
WalkthroughScript_clearWorkspace_m1013203047(__this, L_4, /*hidden argument*/NULL);
((WalkthroughScript_t1234213269_StaticFields*)il2cpp_codegen_static_fields_for(WalkthroughScript_t1234213269_il2cpp_TypeInfo_var))->set_mordantRetrieved_4((bool)0);
((WalkthroughScript_t1234213269_StaticFields*)il2cpp_codegen_static_fields_for(WalkthroughScript_t1234213269_il2cpp_TypeInfo_var))->set_mordantPoured_5((bool)0);
GameObject_t1113636619 * L_5 = GameObject_Find_m2032535176(NULL /*static, unused*/, _stringLiteral1950909564, /*hidden argument*/NULL);
__this->set_Mordant_6(L_5);
return;
}
}
// System.Void WalkthroughScript::Update()
extern "C" void WalkthroughScript_Update_m331347622 (WalkthroughScript_t1234213269 * __this, const RuntimeMethod* method)
{
{
WalkthroughScript_onMordantRotation_m1252556939(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void WalkthroughScript::setStep(System.String)
extern "C" void WalkthroughScript_setStep_m1321547378 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___curStep0;
WalkthroughScript_clearWorkspace_m1013203047(__this, L_0, /*hidden argument*/NULL);
String_t* L_1 = ___curStep0;
WalkthroughScript_updateWorkspace_m751566600(__this, L_1, /*hidden argument*/NULL);
String_t* L_2 = ___curStep0;
WalkthroughScript_updateScreens_m1288599812(__this, L_2, /*hidden argument*/NULL);
return;
}
}
// System.Void WalkthroughScript::updateWorkspace(System.String)
extern "C" void WalkthroughScript_updateWorkspace_m751566600 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WalkthroughScript_updateWorkspace_m751566600_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
StringU5BU5D_t1281789340* V_0 = NULL;
String_t* V_1 = NULL;
StringU5BU5D_t1281789340* V_2 = NULL;
int32_t V_3 = 0;
{
V_0 = ((StringU5BU5D_t1281789340*)SZArrayNew(StringU5BU5D_t1281789340_il2cpp_TypeInfo_var, (uint32_t)0));
String_t* L_0 = ___curStep0;
String_t* L_1 = __this->get_step1B_3();
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
bool L_2 = String_op_Equality_m920492651(NULL /*static, unused*/, L_0, L_1, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0025;
}
}
{
StringU5BU5D_t1281789340* L_3 = __this->get_step1Items_15();
V_0 = L_3;
((WalkthroughScript_t1234213269_StaticFields*)il2cpp_codegen_static_fields_for(WalkthroughScript_t1234213269_il2cpp_TypeInfo_var))->set_mordantRetrieved_4((bool)1);
}
IL_0025:
{
String_t* L_4 = ___curStep0;
String_t* L_5 = __this->get_step2_7();
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
bool L_6 = String_op_Equality_m920492651(NULL /*static, unused*/, L_4, L_5, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0047;
}
}
{
StringU5BU5D_t1281789340* L_7 = __this->get_step2Items_16();
V_0 = L_7;
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral2086122013, /*hidden argument*/NULL);
}
IL_0047:
{
StringU5BU5D_t1281789340* L_8 = V_0;
V_2 = L_8;
V_3 = 0;
goto IL_0074;
}
IL_0050:
{
StringU5BU5D_t1281789340* L_9 = V_2;
int32_t L_10 = V_3;
NullCheck(L_9);
int32_t L_11 = L_10;
String_t* L_12 = (L_9)->GetAt(static_cast<il2cpp_array_size_t>(L_11));
V_1 = L_12;
GameObject_t1113636619 * L_13 = __this->get_Lab_20();
NullCheck(L_13);
Transform_t3600365921 * L_14 = GameObject_get_transform_m1369836730(L_13, /*hidden argument*/NULL);
String_t* L_15 = V_1;
NullCheck(L_14);
Transform_t3600365921 * L_16 = Transform_Find_m1729760951(L_14, L_15, /*hidden argument*/NULL);
NullCheck(L_16);
GameObject_t1113636619 * L_17 = Component_get_gameObject_m442555142(L_16, /*hidden argument*/NULL);
NullCheck(L_17);
GameObject_SetActive_m796801857(L_17, (bool)1, /*hidden argument*/NULL);
int32_t L_18 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
}
IL_0074:
{
int32_t L_19 = V_3;
StringU5BU5D_t1281789340* L_20 = V_2;
NullCheck(L_20);
if ((((int32_t)L_19) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray *)L_20)->max_length)))))))
{
goto IL_0050;
}
}
{
return;
}
}
// System.Void WalkthroughScript::updateScreens(System.String)
extern "C" void WalkthroughScript_updateScreens_m1288599812 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WalkthroughScript_updateScreens_m1288599812_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Material_t340375123 * V_0 = NULL;
Material_t340375123 * V_1 = NULL;
Material_t340375123 * V_2 = NULL;
{
Object_t631007953 * L_0 = Resources_Load_m3880010804(NULL /*static, unused*/, _stringLiteral1676927737, /*hidden argument*/NULL);
V_0 = ((Material_t340375123 *)CastclassClass((RuntimeObject*)L_0, Material_t340375123_il2cpp_TypeInfo_var));
Object_t631007953 * L_1 = Resources_Load_m3880010804(NULL /*static, unused*/, _stringLiteral3091825597, /*hidden argument*/NULL);
V_1 = ((Material_t340375123 *)CastclassClass((RuntimeObject*)L_1, Material_t340375123_il2cpp_TypeInfo_var));
Object_t631007953 * L_2 = Resources_Load_m3880010804(NULL /*static, unused*/, _stringLiteral2609262062, /*hidden argument*/NULL);
V_2 = ((Material_t340375123 *)CastclassClass((RuntimeObject*)L_2, Material_t340375123_il2cpp_TypeInfo_var));
String_t* L_3 = ___curStep0;
String_t* L_4 = __this->get_step1B_3();
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
bool L_5 = String_op_Equality_m920492651(NULL /*static, unused*/, L_3, L_4, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_0074;
}
}
{
GameObject_t1113636619 * L_6 = __this->get_InfoQuad_17();
NullCheck(L_6);
Renderer_t2627027031 * L_7 = GameObject_GetComponent_TisRenderer_t2627027031_m1619941042(L_6, /*hidden argument*/GameObject_GetComponent_TisRenderer_t2627027031_m1619941042_RuntimeMethod_var);
Material_t340375123 * L_8 = V_0;
NullCheck(L_7);
Renderer_set_material_m1157964140(L_7, L_8, /*hidden argument*/NULL);
GameObject_t1113636619 * L_9 = __this->get_ItemQuad_18();
NullCheck(L_9);
Renderer_t2627027031 * L_10 = GameObject_GetComponent_TisRenderer_t2627027031_m1619941042(L_9, /*hidden argument*/GameObject_GetComponent_TisRenderer_t2627027031_m1619941042_RuntimeMethod_var);
Material_t340375123 * L_11 = V_1;
NullCheck(L_10);
Renderer_set_material_m1157964140(L_10, L_11, /*hidden argument*/NULL);
GameObject_t1113636619 * L_12 = __this->get_InstructionQuad_19();
NullCheck(L_12);
Renderer_t2627027031 * L_13 = GameObject_GetComponent_TisRenderer_t2627027031_m1619941042(L_12, /*hidden argument*/GameObject_GetComponent_TisRenderer_t2627027031_m1619941042_RuntimeMethod_var);
Material_t340375123 * L_14 = V_2;
NullCheck(L_13);
Renderer_set_material_m1157964140(L_13, L_14, /*hidden argument*/NULL);
}
IL_0074:
{
String_t* L_15 = ___curStep0;
String_t* L_16 = __this->get_step2_7();
IL2CPP_RUNTIME_CLASS_INIT(String_t_il2cpp_TypeInfo_var);
bool L_17 = String_op_Equality_m920492651(NULL /*static, unused*/, L_15, L_16, /*hidden argument*/NULL);
if (!L_17)
{
goto IL_0085;
}
}
IL_0085:
{
return;
}
}
// System.Void WalkthroughScript::clearWorkspace(System.String)
extern "C" void WalkthroughScript_clearWorkspace_m1013203047 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WalkthroughScript_clearWorkspace_m1013203047_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Transform_t3600365921 * V_0 = NULL;
RuntimeObject* V_1 = NULL;
RuntimeObject* V_2 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
int32_t __leave_target = 0;
NO_UNUSED_WARNING (__leave_target);
{
GameObject_t1113636619 * L_0 = __this->get_Lab_20();
NullCheck(L_0);
Transform_t3600365921 * L_1 = GameObject_get_transform_m1369836730(L_0, /*hidden argument*/NULL);
NullCheck(L_1);
RuntimeObject* L_2 = Transform_GetEnumerator_m2717073726(L_1, /*hidden argument*/NULL);
V_1 = L_2;
}
IL_0011:
try
{ // begin try (depth: 1)
{
goto IL_0043;
}
IL_0016:
{
RuntimeObject* L_3 = V_1;
NullCheck(L_3);
RuntimeObject * L_4 = InterfaceFuncInvoker0< RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IEnumerator::get_Current() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_3);
V_0 = ((Transform_t3600365921 *)CastclassClass((RuntimeObject*)L_4, Transform_t3600365921_il2cpp_TypeInfo_var));
Transform_t3600365921 * L_5 = V_0;
NullCheck(L_5);
String_t* L_6 = Component_get_tag_m2716693327(L_5, /*hidden argument*/NULL);
NullCheck(L_6);
bool L_7 = String_Contains_m1147431944(L_6, _stringLiteral2103141252, /*hidden argument*/NULL);
if (!L_7)
{
goto IL_0043;
}
}
IL_0037:
{
Transform_t3600365921 * L_8 = V_0;
NullCheck(L_8);
GameObject_t1113636619 * L_9 = Component_get_gameObject_m442555142(L_8, /*hidden argument*/NULL);
NullCheck(L_9);
GameObject_SetActive_m796801857(L_9, (bool)0, /*hidden argument*/NULL);
}
IL_0043:
{
RuntimeObject* L_10 = V_1;
NullCheck(L_10);
bool L_11 = InterfaceFuncInvoker0< bool >::Invoke(1 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t1853284238_il2cpp_TypeInfo_var, L_10);
if (L_11)
{
goto IL_0016;
}
}
IL_004e:
{
IL2CPP_LEAVE(0x67, FINALLY_0053);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0053;
}
FINALLY_0053:
{ // begin finally (depth: 1)
{
RuntimeObject* L_12 = V_1;
RuntimeObject* L_13 = ((RuntimeObject*)IsInst((RuntimeObject*)L_12, IDisposable_t3640265483_il2cpp_TypeInfo_var));
V_2 = L_13;
if (!L_13)
{
goto IL_0066;
}
}
IL_0060:
{
RuntimeObject* L_14 = V_2;
NullCheck(L_14);
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t3640265483_il2cpp_TypeInfo_var, L_14);
}
IL_0066:
{
IL2CPP_END_FINALLY(83)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(83)
{
IL2CPP_JUMP_TBL(0x67, IL_0067)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0067:
{
return;
}
}
// System.Void WalkthroughScript::onMordantRotation()
extern "C" void WalkthroughScript_onMordantRotation_m1252556939 (WalkthroughScript_t1234213269 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WalkthroughScript_onMordantRotation_m1252556939_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Quaternion_t2301928331 V_0;
memset(&V_0, 0, sizeof(V_0));
Quaternion_t2301928331 V_1;
memset(&V_1, 0, sizeof(V_1));
Vector3_t3722313464 V_2;
memset(&V_2, 0, sizeof(V_2));
{
bool L_0 = ((WalkthroughScript_t1234213269_StaticFields*)il2cpp_codegen_static_fields_for(WalkthroughScript_t1234213269_il2cpp_TypeInfo_var))->get_mordantRetrieved_4();
if (!L_0)
{
goto IL_009d;
}
}
{
bool L_1 = ((WalkthroughScript_t1234213269_StaticFields*)il2cpp_codegen_static_fields_for(WalkthroughScript_t1234213269_il2cpp_TypeInfo_var))->get_mordantPoured_5();
if (L_1)
{
goto IL_009d;
}
}
{
GameObject_t1113636619 * L_2 = __this->get_Mordant_6();
NullCheck(L_2);
Transform_t3600365921 * L_3 = GameObject_get_transform_m1369836730(L_2, /*hidden argument*/NULL);
NullCheck(L_3);
Quaternion_t2301928331 L_4 = Transform_get_rotation_m3502953881(L_3, /*hidden argument*/NULL);
V_0 = L_4;
Vector3_t3722313464 L_5 = Quaternion_get_eulerAngles_m3425202016((&V_0), /*hidden argument*/NULL);
Vector3_t3722313464 L_6 = L_5;
RuntimeObject * L_7 = Box(Vector3_t3722313464_il2cpp_TypeInfo_var, &L_6);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, L_7, /*hidden argument*/NULL);
GameObject_t1113636619 * L_8 = __this->get_Mordant_6();
NullCheck(L_8);
Transform_t3600365921 * L_9 = GameObject_get_transform_m1369836730(L_8, /*hidden argument*/NULL);
NullCheck(L_9);
Quaternion_t2301928331 L_10 = Transform_get_rotation_m3502953881(L_9, /*hidden argument*/NULL);
V_1 = L_10;
Vector3_t3722313464 L_11 = Quaternion_get_eulerAngles_m3425202016((&V_1), /*hidden argument*/NULL);
V_2 = L_11;
float L_12 = (&V_2)->get_x_1();
if ((!(((float)L_12) < ((float)(60.0f)))))
{
goto IL_009d;
}
}
{
((WalkthroughScript_t1234213269_StaticFields*)il2cpp_codegen_static_fields_for(WalkthroughScript_t1234213269_il2cpp_TypeInfo_var))->set_mordantPoured_5((bool)1);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral2515395904, /*hidden argument*/NULL);
GameObject_t1113636619 * L_13 = __this->get_Mordant_6();
NullCheck(L_13);
ParticleSystem_t1800779281 * L_14 = GameObject_GetComponent_TisParticleSystem_t1800779281_m2609609468(L_13, /*hidden argument*/GameObject_GetComponent_TisParticleSystem_t1800779281_m2609609468_RuntimeMethod_var);
NullCheck(L_14);
ParticleSystem_Play_m882713458(L_14, /*hidden argument*/NULL);
GameObject_t1113636619 * L_15 = __this->get_Mordant_6();
NullCheck(L_15);
ParticleSystem_t1800779281 * L_16 = GameObject_GetComponent_TisParticleSystem_t1800779281_m2609609468(L_15, /*hidden argument*/GameObject_GetComponent_TisParticleSystem_t1800779281_m2609609468_RuntimeMethod_var);
NullCheck(L_16);
ParticleSystem_set_enableEmission_m2450064795(L_16, (bool)1, /*hidden argument*/NULL);
String_t* L_17 = __this->get_step2_7();
WalkthroughScript_setStep_m1321547378(__this, L_17, /*hidden argument*/NULL);
}
IL_009d:
{
return;
}
}
// System.Void WalkthroughScript::showStepCompleteScreen(System.String)
extern "C" void WalkthroughScript_showStepCompleteScreen_m1949826965 (WalkthroughScript_t1234213269 * __this, String_t* ___curStep0, const RuntimeMethod* method)
{
{
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 Wayfind::.ctor()
extern "C" void Wayfind__ctor_m2671561757 (Wayfind_t1312431753 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_m1579109191(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Wayfind::Start()
extern "C" void Wayfind_Start_m2398538477 (Wayfind_t1312431753 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Wayfind_Start_m2398538477_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
GameObject_t1113636619 * L_0 = __this->get_Cylinder_3();
NullCheck(L_0);
GameObject_SetActive_m796801857(L_0, (bool)0, /*hidden argument*/NULL);
GameObject_t1113636619 * L_1 = __this->get_Arrow_4();
NullCheck(L_1);
GameObject_SetActive_m796801857(L_1, (bool)1, /*hidden argument*/NULL);
GameObject_t1113636619 * L_2 = GameObject_FindGameObjectWithTag_m2129039296(NULL /*static, unused*/, _stringLiteral1950909564, /*hidden argument*/NULL);
__this->set_Look_2(L_2);
return;
}
}
// System.Void Wayfind::Update()
extern "C" void Wayfind_Update_m3068586243 (Wayfind_t1312431753 * __this, const RuntimeMethod* method)
{
{
Transform_t3600365921 * L_0 = Component_get_transform_m3162698980(__this, /*hidden argument*/NULL);
GameObject_t1113636619 * L_1 = __this->get_Look_2();
NullCheck(L_1);
Transform_t3600365921 * L_2 = GameObject_get_transform_m1369836730(L_1, /*hidden argument*/NULL);
NullCheck(L_0);
Transform_LookAt_m3968184312(L_0, L_2, /*hidden argument*/NULL);
return;
}
}
// System.Void Wayfind::MordantCollision()
extern "C" void Wayfind_MordantCollision_m2991484191 (Wayfind_t1312431753 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Wayfind_MordantCollision_m2991484191_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(Debug_t3317548046_il2cpp_TypeInfo_var);
Debug_Log_m4051431634(NULL /*static, unused*/, _stringLiteral109517304, /*hidden argument*/NULL);
GameObject_t1113636619 * L_0 = __this->get_Cylinder_3();
NullCheck(L_0);
GameObject_SetActive_m796801857(L_0, (bool)1, /*hidden argument*/NULL);
GameObject_t1113636619 * L_1 = __this->get_Arrow_4();
NullCheck(L_1);
GameObject_SetActive_m796801857(L_1, (bool)0, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
|
#include "graph.h"
#include<stdio.h>
int LocateMGraphVex(MGraph *G,VertexType v)
{
/*在邻接矩阵G中,若v是途中的顶点名字,
则返回v在图G中的位置,否则返回-1*/
int i;
for(i=0;i<G->vexnum;i++)
if(G->vers[i]==v)
return i;
return -1;
}
/*CreateDNMGraph:创建有向网的邻接矩阵*/
int CreateDNMGraph(MGraph *G)
{
int i,j,k;
VertexType v1,v2;
printf("创建有向网的邻接矩阵\n");
printf("请输入定点数,vexnum=");
scanf("%d",&G->vexnum);
printf("请输入弧数,arcnum=");
scanf("%d",&G->arcnum);
printf("弧是否含有信息:IncInfo=");
scanf("%d",&IncInfo);
printf("请输入顶点名:");
for(i=0;i<G->vexnum;i++)
scanf("%d",&G->vers[i]);
for(i=0;i<G->vexnum;i++)
{
for(j=0;j<G->arcnum;j++)
{
G->arcs[i][j].adj=INFINITY;
G->arcs[i][j].info=NULL;
if(i==j)
G->arcs[i][j].adj=0;
}
}
for(k=0;k<G->arcnum;k++)
{
printf("输入第%d条弧依附的顶点及权值:",k+1);
scanf("%d%d%d",&v1,&v2,&weight);
i=LocateMGraphVex(G,v1);
j=LocateMGraphVex(G,v2);
if(i!=-1 && j!=-1)
{
G->arcs[i][j].adj=weight;
if(IncInfo)
{
printf("弧含有相关信息,输入该弧的相关信息:");
scanf("%d",&G->arcs[i][j].info);
}
}
}
printf("有向网G的邻接矩阵创建完成\n");
return OK;
}
void ppath_Dijkstra(int path[],int i,VertexType v,MGraph G)
{
int k;
k=path[i];
if(k==LocateMGraphVex(&G,v))
return ;
ppath_Dijkstra(path,k,v,G);
printf("%d-->",G.vers[k]);
}
void DisPath_Dijkstra(int dist[],int path[],int final[],MGraph G,VertexType v)
{
int i,k;
k=LocateMGraphVex(&G,v);
printf("\n");
for(i=0;i<G.vexnum;i++)
if(final[i]==TRUE && i!=k)
{
printf("从%d到%d的最短路径长度为:%d\t 路径为:",v,G.vers[i],dist[i]);
printf("%d-->",v);
ppath_Dijkstra(path,i,v,G);
printf("%d\n",G.vers[i]);
}
else
printf("从%d到%d不存在路径\n",v,G.vers[i]);
}
void Dijkstra(MGraph G,VertexType v)
{
int dist[MAX_VERTEX];
int path[MAX_VERTEX];
int final[MAX_VERTEX];
int mindis,u;
int i,j,k;
k=LocateMGraphVex(&G,v);
for(i=0;i<G.vexnum;i++)
{
dist[i]=G.arcs[k][i].adj;
final[i]=FALSE;
if(G.arcs[k][i].adj<INFINITY)
path[i]=k;
else
path[i]=-1;
}
final[k]=TRUE;
path[k]=0;
for(i=0;i<G.vexnum;i++)
{
mindis=INFINITY;
u=-1;
for(j=0;j<G.vexnum;j++)
{
if(final[j]==FALSE && dist[j]<mindis)
{
u=j;
mindis=dist[j];
}
}
final[u]=TRUE;
for(j=0;j<G.vexnum;j++)
{
if(final[j]==FALSE)
if(G.arcs[u][j].adj<INFINITY &&
(mindis+G.arcs[u][j].adj)<dist[j])
{
dist[j]=mindis+G.arcs[u][j].adj;
path[j]=u;
}
}
}
printf("输出最短路径:\n");
DisPath_Dijkstra(dist,path,final,G,v);
}
int main()
{
MGraph G;
if(CreateDNMGraph(&G))
{
printf("Dijkstra:\n");
Dijkstra(G,G.vers[0]);
}
return 0;
}
|
/*
* Copyright (c) 2013 William Linna <william.linna(at)kapsi.fi>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include <vector>
#include <iostream>
#include <SDL.h>
#include <SDL_gfxPrimitives.h>
#include <boost/random.hpp>
#include "visual_debugger.hpp"
#include "circle.hpp"
#include "config.hpp"
VisualDebugger* VisualDebugger::instance_ = NULL;
Config* Config::instance_ = NULL;
static boost::random::mt19937 random_generator(std::time(0));
inline
double randomBetween(double a, double b) {
return boost::random::uniform_real_distribution<>(a, b)(random_generator);
}
bool spawnCircle(std::vector<Circle>& circles){
if (circles.empty()) {
// Insert super massive circle
const double radius = 60.0;
const double x = Config::getScreenWidth() / 2.0;
const double y = Config::getScreenHeight() / 2.0;
const long double mass = 3000000000000.0;
circles.push_back(Circle(x, y, radius, 0.0, 0.0, mass));
return true;
}
unsigned int tries = Config::getHowMany();
while (tries--) {
const double radius = randomBetween(Config::getRadiusMin() , Config::getRadiusMax());
const double x = randomBetween(radius, Config::getScreenWidth() - radius);
const double y = randomBetween(radius, Config::getScreenHeight() - radius);
const double spawnAxisSpeedMax = Config::getSpawnAxisSpeedMax();
const double vx = randomBetween(-spawnAxisSpeedMax, spawnAxisSpeedMax);
const double vy = randomBetween(-spawnAxisSpeedMax, spawnAxisSpeedMax);
const long double mass = randomBetween(Config::getMassMin(), Config::getMassMax());
circles.push_back(Circle(x, y, radius, vx, vy, mass));
}
return true;
}
void updateCircles(std::vector<Circle>& circles) {
// TODO: Invent better way to remove circles
std::vector<int> indicesToRemove;
for (std::vector<Circle>::iterator it_current = circles.begin(), it_end = circles.end(); it_current != it_end; ++it_current) {
it_current->update(circles, it_current);
const Vector2 pos = it_current->getPosition();
const int radius = it_current->getRadius();
if (it_current != circles.begin()) {
it_current->applyGravitation(circles[0]);
}
}
while (!indicesToRemove.empty()) {
int indexToRemove = indicesToRemove.back();
indicesToRemove.pop_back();
const Circle& circle = circles[indexToRemove];
circles.erase(circles.begin() + indexToRemove);
}
}
void drawCircles(const std::vector<Circle>& circles, SDL_Surface* screen) {
for (std::vector<Circle>::const_iterator it_current = circles.begin(), it_end = circles.end(); it_current != it_end; ++it_current) {
Circle_Funcs::draw(*it_current, screen);
}
}
int main(int argc, char **argv) {
if (SDL_Init(SDL_INIT_AUDIO | SDL_INIT_VIDEO) < 0) {
std::cout << "Nasty could not init SDL error" << std::endl;
}
std::cout << "This is OOD version of Circle software\n";
Config::readConfig();
SDL_Surface* screen = SDL_SetVideoMode(Config::getScreenWidth(), Config::getScreenHeight(), 16, SDL_SWSURFACE);
if (screen == NULL) {
std::cout << "Could nont create SDL screen: " << SDL_GetError() << std::endl;
exit(1);
}
VisualDebugger::make(screen);
std::vector<Circle> circles;
SDL_Event event;
bool running = true;
unsigned int frameCount = 0;
while(running) {
Uint32 frameStartTime = SDL_GetTicks();
while (SDL_PollEvent(&event)) {
if (event.type == SDL_QUIT) {
std::cout << "Pressed QUIT\n";
running = false;
}
if (event.type == SDL_KEYUP) {
spawnCircle(circles);
}
}
updateCircles(circles);
SDL_LockSurface(screen);
SDL_FillRect(screen, NULL, 0);
drawCircles(circles, screen);
SDL_UnlockSurface(screen);
SDL_Flip(screen);
++frameCount;
if (frameCount % 30 == 0) {
double fps = 1.0 / (double)(SDL_GetTicks() - frameStartTime) * 1000.0;
std::cout << "FPS: " << fps << " Amount of circles: " << circles.size() << std::endl;
}
SDL_Delay(1000/60);
}
std::cout << "Thank you for running ood :)" << std::endl;
return 0;
}
|
#include <iostream>
#include "../src/complex.h"
#include "../src/input_image.h"
#include <mpi.h>
#include <cmath>
#include <chrono>
// #include <sstream>
#define DBG 0
#define DBG_DATA 0
#define LOCATE(i, j) ((i) * sequence_len + (j))
#define TAG_INIT_R 0
#define TAG_COLLECTING_R 1
#define TAG_INIT_C 2
#define TAG_COLLECTING_C 3
#define FORWARD 4
#define REVERSE 5
using namespace std;
const float PI = 3.14159265358979f;
void calIndex(int *&array, int bits)
{
for (int i = 0; i < (1 << bits); i++)
{
array[i] = (array[i >> 1] >> 1) | (i & 1) << (bits - 1);
}
}
void FFT1d(Complex *&data, int *index, int cycle_time, int sequence_len, int direction)
{
Complex x1, x2, wk, *p_temp, *p_orig, *p_row;
Complex *temp_data = new Complex[sequence_len];
int idx1, idx2;
for (int i = 0; i < cycle_time; i++)
{
p_orig = data + i * sequence_len;
p_row = data + i * sequence_len;
for (int level = 1; (1 << level) <= sequence_len; level++)
{
int length = 1 << level;
int half_len = length >> 1;
// ******* todo : improve calculation **************
float w;
if (direction == FORWARD)
w = -2 * PI / length;
else
w = 2 * PI / length;
for (int j = 0; j < sequence_len; j += length)
{
for (int k = 0; k < half_len; k++)
{
if (k != 0)
{
wk.real = cos(w * k);
wk.imag = sin(w * k);
}
#if DBG
cout << "k is " << k << " and length is " << length << endl;
#endif
idx1 = j + k;
idx2 = j + k+ half_len;
if (level== 1)
{
x1 = p_row[index[j + k]];
x2 = p_row[index[j + k + half_len]];
}
else
{
x1 = p_row[idx1];
x2 = p_row[idx2];
}
if (k != 0)
{
temp_data[idx1] = x1 + wk * x2;
temp_data[idx2] = x1 - wk * x2;
}
else
{
temp_data[idx1] = x1 + x2;
temp_data[idx2] = x1 - x2;
}
if (direction == REVERSE)
{
temp_data[idx1] = Complex(1.0 / 2) * temp_data[idx1];
temp_data[idx2] = Complex(1.0 / 2) * temp_data[idx2];
}
#if DBG_DATA
cout << "level is " << level << ", j is " << j << ", k is " << k << ", x1 is " << x1 << ", x2 is " << x2 << ", half_len is " << half_len << ", idx1 is " << idx1 << ", idx2 is " << idx2 << ". temp idx 1 is " << temp_data[idx1] << " and temp idx 2 is " << temp_data[idx2] << endl;
#endif
}
}
p_temp = temp_data;
temp_data = p_row;
p_row = p_temp;
}
if (p_row != p_orig)
{
std::copy(p_row, p_row + sequence_len, p_orig);
p_temp = temp_data;
temp_data = p_row;
p_row = p_temp;
}
}
delete[] temp_data;
}
inline int prePos(int w, int h, int idx)
{
return (idx % h) * w + idx / h;
}
inline int nextPos(int w, int h, int idx)
{
return (idx % w) * h + idx / w;
}
void Transpose(Complex *&array, int w, int h)
{
int length = h * w;
for (int i = 0; i < length; i++)
{
int pre = prePos(w, h, i);
int next = nextPos(w, h, i);
while (pre > i && next > i && pre != next && prePos(w, h, pre) != next)
{
pre = prePos(w, h, pre);
next = nextPos(w, h, next);
}
if (pre < i || next < i) continue;
int cur = i;
Complex val = array[i];
pre = prePos(w, h, cur);
while (pre != i)
{
array[cur] = array[pre];
cur = pre;
pre = prePos(w, h, cur);
}
array[cur] = val;
}
}
void AllocateData(const int &rank, const int &size, Complex **&p_data, Complex *&data, Complex *&data_for_r0, const int &width, const int &height, const int &num_rows, const int &num_per_p_addi, int &rows_per_p, int TAG)
{
if (rank == 0)
{
unsigned int offset = 0;
unsigned int step = rows_per_p * width;
for (int i = 0; i < size; i++)
{
p_data[i] = data_for_r0 + offset;
if (i < num_per_p_addi)
{
offset += step + width;
}
else
{
offset += step;
}
}
#if DBG
for (int i = 0; i < size; i++)
{
cout << p_data[i] << endl;
}
#endif
data = p_data[0];
for (int i = 1; i < size; i++)
{
if (i + 1 == size)
{
#if DBG
cout << "rank 0 is going to send msg to rank " << i << endl;
#endif
MPI_Send(p_data[i], (p_data[0] + width * height - p_data[i]) * sizeof(Complex), MPI_CHAR, i, TAG, MPI_COMM_WORLD);
#if DBG
cout << "0 Sent to rank " << i << endl;
#endif
}
else
{
#if DBG
cout << "rank 0 is going to send msg to rank " << i << endl;
#endif
MPI_Send(p_data[i], (p_data[i + 1] - p_data[i]) * sizeof(Complex), MPI_CHAR, i, TAG, MPI_COMM_WORLD);
#if DBG
cout << "0 Sent to rank " << i << endl;
#endif
}
}
}
else if (rank < size)
{
MPI_Recv(data, num_rows * width * sizeof(Complex), MPI_CHAR, 0, TAG, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
#if DBG
cout << "rank " << rank << " received msg from rank 0" << endl;
#endif
}
}
void CollectData(Complex *&data_for_r0, const int rank, const int size, Complex **&p_data, Complex *&data, const int width, const int height, const int num_rows, int TAG)
{
if (rank == 0)
{
if (data == data_for_r0)
{
p_data[0] = data;
}
else
{
std::copy(data, data + num_rows * width, p_data[0]);
}
for (int i = 1; i < size; i++)
{
if (i + 1 == size)
{
#if DBG
cout << "starting address is " << data_for_r0 << ", rank " << i << " starts from adress " << p_data[i] << endl;
#endif
MPI_Recv(p_data[i], (data_for_r0 + width * height - p_data[i]) * sizeof(Complex), MPI_CHAR, i, TAG, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
#if DBG
cout << "rank 0 received msg from rank " << i << endl;
#endif
}
else
{
MPI_Recv(p_data[i], (p_data[i + 1] - p_data[i]) * sizeof(Complex), MPI_CHAR, i, TAG, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
#if DBG
cout << "rank 0 received msg from rank " << i << endl;
#endif
}
}
}
else if (rank < size)
{
MPI_Send(data, num_rows * width * sizeof(Complex), MPI_CHAR, 0, TAG, MPI_COMM_WORLD);
}
}
int main(int argc, char **argv) {
auto start = std::chrono::system_clock::now();
int rank, world_size, size, rc;
rc = MPI_Init(&argc, &argv);
// error check
if (rc != MPI_SUCCESS)
{
cerr << "mpi initialization error" << endl;
MPI_Finalize();
return 1;
}
if (argc != 4)
{
cerr << "unexpected arguments" << endl;
MPI_Finalize();
return 1;
}
int direction;
string s_dir(argv[1]);
if (s_dir == "forward")
direction = FORWARD;
else
direction = REVERSE;
int width, height; // the length of discrete sequence
Complex *data_for_r0; // used for storing input data info
Complex **p_data; // used for storing data address of each process
Complex *data; // used for storing data of each process
// Complex *temp_data; // used for storing temporary data while computing
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
// ********** Get Parameters ***********
int num_rows;
if (rank == 0)
{
InputImage in(argv[2]);
#if DBG
cout << "width is " << in.get_width() << " and height is " << in.get_height() << endl;
#endif
width = in.get_width();
height = in.get_height();
#if DBG_DATA
for (int i = 0; i < width; i++)
{
cout << in.get_image_data()[i] << " ";
}
cout << endl;
#endif
data_for_r0 = new Complex[width * height];
std::copy(in.get_image_data(), in.get_image_data() + width * height, data_for_r0);
#if DBG_DATA
for (int i = 0; i < width; i++)
{
cout << data_for_r0[i] << " ";
}
cout << endl;
#endif
}
MPI_Bcast(&width, 1, MPI_FLOAT, 0, MPI_COMM_WORLD);
MPI_Bcast(&height, 1, MPI_FLOAT, 0, MPI_COMM_WORLD);
#if DBG
cout << "rank " << rank << ": width is " << width << " and height is " << height << endl;
#endif
// ************************************
// ************ Row FFT **************
// calculate num_rows
int rows_per_p = height / world_size;
int num_per_p_addi = height % world_size;
if (rank < num_per_p_addi)
num_rows = rows_per_p + 1;
else
num_rows = rows_per_p;
// if height less than number of process
if (rows_per_p == 0 && num_per_p_addi < world_size)
size = num_per_p_addi;
else
size = world_size;
// array init
if (rank != 0)
data = new Complex[num_rows * width];
// temp_data = new Complex[num_rows * width];
p_data = (Complex **)malloc(size * sizeof(Complex *));
// send data to each process
AllocateData(rank, size, p_data, data, data_for_r0, width, height, num_rows, num_per_p_addi, rows_per_p, TAG_INIT_R);
// if (rank != 0)
// std::copy(data, data + num_rows * width, temp_data);
// else
// std::copy(data_for_r0, data_for_r0 + num_rows * width, temp_data);
int *index;
index = new int[width](); // store index after inverse the sequence
calIndex(index, (int)log2(width));
#if DBG_DATA
for (int i = 0; i < width; i++)
{
cout << index[i] << " ";
}
cout << endl;
#endif
// FFT
FFT1d(data, index, num_rows, width, direction);
// ********** collect data **********
CollectData(data_for_r0, rank, size, p_data, data, width, height, num_rows, TAG_COLLECTING_R);
// ****todo this is temp file
// if (rank == 0)
// {
// InputImage out;
// out.save_image_data("out1.txt", data_for_r0, width, height);
// }
// **********************************
#if DBG_DATA
MPI_Barrier(MPI_COMM_WORLD);
cout << "*****************************************" << endl;
#endif
// ************ Column FFT **************
// transpose matrix
if (rank == 0)
{
Transpose(data_for_r0, width, height);
}
// *******todo this is temp file
// if (rank == 0)
// {
// InputImage out;
// out.save_image_data("out2.txt", data_for_r0, height, width);
// // cout << data_for_r0[4] << "*****" << endl;
// }
int temp;
if (width != height)
{
temp = width;
width = height;
height = temp;
rows_per_p = height / world_size;
num_per_p_addi = height % world_size;
if (rank < num_per_p_addi)
num_rows = rows_per_p + 1;
else
num_rows = rows_per_p;
// if height less than number of process
if (rows_per_p == 0 && num_per_p_addi < world_size)
size = num_per_p_addi;
else
size = world_size;
#if DBG
cout << num_rows << rows_per_p << size << width << height << num_per_p_addi << endl;
#endif
if (rank != 0)
{
delete[] data;
data = new Complex[num_rows * width];
// delete[] temp_data;
// temp_data = new Complex[num_rows * width];
}
else
{
// if (temp_data == data_for_r0)
// delete[] data;
// else
// delete[] temp_data;
// temp_data = new Complex[num_rows * width];
}
delete[] index;
index = new int[width]();
calIndex(index, (int)log2(width));
}
AllocateData(rank, size, p_data, data, data_for_r0, width, height, num_rows, num_per_p_addi, rows_per_p, TAG_INIT_C);
FFT1d(data, index, num_rows, width, direction);
// InputImage out_rank;
// stringstream ss;
// ss << rank;
// string s = ss.str();
// out_rank.save_image_data(s.data(), data, width, num_rows);
CollectData(data_for_r0, rank, size, p_data, data, width, height, num_rows, TAG_COLLECTING_C);
// ************************************
// ************ IDFT Test ****************
// MPI_Barrier(MPI_COMM_WORLD);
// if (rank == 0)
// Transpose(data_for_r0, width, height);
// direction = REVERSE;
// AllocateData(rank, size, p_data, data, data_for_r0, width, height, num_rows, num_per_p_addi, rows_per_p, TAG_INIT_R);
// FFT1d(data, index, num_rows, width, direction);
// CollectData(data_for_r0, rank, size, p_data, data, width, height, num_rows, TAG_COLLECTING_R);
// MPI_Barrier(MPI_COMM_WORLD);
// if (rank == 0)
// Transpose(data_for_r0, width, height);
// AllocateData(rank, size, p_data, data, data_for_r0, width, height, num_rows, num_per_p_addi, rows_per_p, TAG_INIT_C);
// FFT1d(data, index, num_rows, width, direction);
// CollectData(data_for_r0, rank, size, p_data, data, width, height, num_rows, TAG_COLLECTING_C);
// ************ Save last result ***********
if (rank == 0)
{
Transpose(data_for_r0, width, height);
InputImage out;
out.save_image_data(argv[3], data_for_r0, height, width);
}
if (rank == 0)
{
free(p_data);
delete[] data_for_r0;
delete[] index;
}
else if (rank < size)
{
delete[] data;
delete[] index;
}
if (rank == 0)
{
auto end = std::chrono::system_clock::now();
std::chrono::duration<double> elapsed_seconds = end-start;
std::cout << elapsed_seconds.count() << std::endl;
}
MPI_Finalize();
return 0;
}
|
#include <iostream>
#include <algorithm>
#include <malloc>
using namespace std;
class bigNum{
public:
char num[50][50]; //Max Size of integer is 10^(50*50) - 1
bigNum add(bigNum, bigNum);
bigNum subtract(bigNum, bigNum);
bigNum multiply(bigNum, bigNum);
bigNum divide(bigNum, bigNum);
bigNum operator+(bigNum, bigNum);
bigNum operator-(bigNum, bigNum);
bigNum operator*(bigNum, bigNum);
bigNum operator/(bigNum, bigNum);
bigNum operator+=(bigNum);
bigNum operator-=(bigNum);
bigNum operator*=(bigNum);
bigNum operator/=(bigNum);
}
|
/* Rotate an array by K Postions [Reversal Method]
*/
#include <iostream>
#include <iomanip>
using namespace std;
//functions prototypes
void rightRotate(int arr[], int n, int k);
void reverseArray(int arr[], int low, int high);
void printArray(int arr[], int n);
int main()
{
int arr[] = {1, 2, 3, 4, 5};
int n = sizeof(arr)/ sizeof(arr[0]);
int k = 2; //K positions to rotate
rightRotate(arr, n, k);
printArray(arr, n);
return 0;
}
void rightRotate(int arr[], int n, int k)
{
//reverse array 0 to n-k-1
reverseArray(arr, 0, n-k-1); // n = 5; k = 2 ; then low = 0, high = 5 - 2 - 1 = 2; => reverseArray 0 to 2
//reverse remaining array
reverseArray(arr, n-k, n-1); // n - k = 5 - 2 = 3 and n - 1 = 5 - 1 = 4; then reverseArray 3 to 4(n-1)
//reverse whole array
reverseArray(arr, 0, n-1); //finally reverse the whole array
}
void reverseArray(int arr[], int low, int high)
{
int i, j;
for(i = low,j = high; i < j; i++, j--)
{
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
}
void printArray(int arr[], int n)
{
for(int i = 0; i < n; i++)
cout << arr[i] << " ";
cout << endl;
}
|
#include "Globals.h"
#include "Header.h"
using namespace Gdiplus;
class element
{
public:
element(int x,int y, int mass, int typ, std::vector<std::pair<int, int>> &position){
xpos = x;
ypos = y;
weight = mass;
type = typ;
position.push_back(std::make_pair(x, y));
is_obstacle = false;
cant_move = false;
}
void change_position(int dx, int dy, std::vector<std::pair<int, int>>& position) {//ten vector to pierwsze co mi przyszło do głowy w celu sprawdzania czy coś znajduje się na drodze obiektu
bool obstacle = false;
if (type == HOOK) { //Sprawdza czy wszystkie coorynaty po zmianie będą w obszarze dzwigu
std::vector<std::pair<int, int>>::iterator it = position.begin(); // hook to pierwszy element position
it->first = xpos + dx;
it->second = ypos + dy;
xpos += dx;
ypos += dy;
is_obstacle = false;
}
else if (xpos + dx - center_distance > beggining_of_crane and xpos + dx + center_distance < end_of_crane and ypos + dy - center_distance > top_of_crane and ypos + dy + center_distance <= GROUND ) { // Czy jest w obszarze dzwigu
for (std::vector<std::pair<int, int>>::iterator it = (position.begin() + 1); it < position.end(); it++) { // Przejdź przez wszystkie elementy
if (it->first == xpos and it->second == ypos) // Jeśli element ma te same koordynaty co przenoszony to jest on sam sobą i jest pomijany
continue;
if (dx) { //Jesli w elemencie jest
if ((xpos + dx + center_distance > it->first - center_distance and xpos + dx + center_distance < it->first + center_distance or // (prawa sciana LUB
xpos + dx - center_distance > it->first - center_distance and xpos + dx - center_distance < it->first + center_distance) and // lewa sciana) I
(ypos + dy + center_distance >= it->second - center_distance and ypos + dy + center_distance <= it->second + center_distance or // (dolna sciana LUB
ypos + dy - center_distance >= it->second - center_distance and ypos + dy - center_distance <= it->second + center_distance)) // gorna sciana)
obstacle = true; // To jest w elemencie
}
else
if ((xpos + dx + center_distance >= it->first - center_distance and xpos + dx + center_distance <= it->first + center_distance or // (prawa sciana LUB
xpos + dx - center_distance >= it->first - center_distance and xpos + dx - center_distance <= it->first + center_distance) and // lewa sciana) I
(ypos + dy + center_distance > it->second - center_distance and ypos + dy + center_distance < it->second + center_distance or // (dolna sciana LUB
ypos + dy - center_distance > it->second - center_distance and ypos + dy - center_distance < it->second + center_distance)) // gorna sciana)
obstacle = true;
is_obstacle = true;
}
if (!obstacle) {
for (std::vector<std::pair<int, int>>::iterator it = position.begin() + 1; it < position.end(); it++) {
if (it->first == xpos and it->second == ypos) {
it->first = xpos + dx;
it->second = ypos + dy;
xpos += dx;
ypos += dy;
is_obstacle = false;
}
}
}
}
else if (dx > 0 and !dy) {
for (std::vector<std::pair<int, int>>::iterator it = position.begin() + 1; it < position.end(); it++) {
if (it->first == xpos and it->second == ypos) {
it->first = end_of_crane - center_distance - 1;
xpos = end_of_crane - center_distance - 1;
is_obstacle = true;
}
}
}
else if (dx < 0 and !dy) {
for (std::vector<std::pair<int, int>>::iterator it = position.begin() + 1; it < position.end(); it++) {
if (it->first == xpos and it->second == ypos) {
it->first = beggining_of_crane + center_distance + 1;
xpos = beggining_of_crane + center_distance + 1;
is_obstacle = true;
}
}
}
else if (!dx and dy > 0 ) {
for (std::vector<std::pair<int, int>>::iterator it = position.begin() + 1; it < position.end(); it++) {
if (it->first == xpos and it->second == ypos) {
it->second = GROUND - center_distance - 1;
ypos = GROUND - center_distance - 1;
is_obstacle = true;
}
}
}
else if (!dx and dy < 0) {
for (std::vector<std::pair<int, int>>::iterator it = position.begin() + 1; it < position.end(); it++) {
if (it->first == xpos and it->second == ypos) {
it->second = top_of_crane + center_distance + 1;
ypos = top_of_crane + center_distance + 1;
is_obstacle = true;
}
}
}
}
void draw(HDC hdc)
{
switch (type) { //Zamiast wielu if else
case SQUARE:
draw_rect(hdc);
break;
case HOOK:
draw_line(hdc);
draw_hook(hdc);
break;
default:
break;
}
}
int check_weight()
{
return weight;
}
Point check_pos()
{
Point temp(xpos, ypos);
return temp;
}
int check_x() {
return xpos;
}
int check_y() {
return ypos;
}
bool was_made_obstacle() {
return is_obstacle;
}
bool can_move() {
return cant_move;
}
int check_type() {
return type;
}
private:
int weight;
int xpos;
int ypos;
int type;
bool is_obstacle;
bool cant_move;
Point starting_point = { xpos, ypos };
Color color{ 255,255,0,0 };
VOID draw_rect(HDC hdc)
{
Graphics graphics(hdc); //Klasa zawierająca metody do rysowania
Pen pen(color, 3); //Klasa zwierająca atrybuty lini takie jak: Opacity, Red, Green, Blue
pen.SetDashStyle(DashStyleSolid);
graphics.DrawRectangle(&pen, (xpos - CENTER_DISTANCE), (ypos - CENTER_DISTANCE), CENTER_DISTANCE * 2, CENTER_DISTANCE * 2);
DeleteObject(&pen);
}
VOID draw_line(HDC hdc) {
Graphics graphics(hdc);
Pen pen(color, 3);
Point beggining(xpos, top_of_crane);
Point ending(xpos, ypos);
graphics.DrawLine(&pen, beggining, ending); //From x,y -> x,y to coords
DeleteObject(&pen);
}
VOID draw_hook(HDC hdc) {
Graphics graphics(hdc);
Pen pen(color, 3);
Point first(xpos - HOOK_SIZE / 2, ypos);
Point second(xpos + HOOK_SIZE / 2, ypos);
graphics.DrawLine(&pen, first, second); //From x,y -> x,y to coords
DeleteObject(&pen);
}
};
|
//
// Created by twome on 06/05/2020.
//
#include <glm/gtc/matrix_transform.hpp>
#include "Camera.h"
#include "GameWindow.h"
void Camera::update() {
auto window = GameWindow::get_instance();
zoom.update();
// Calculate camera size depending on the zoom value
// but keeping the aspect ratio
auto aspectRatio = window->get_viewport_size().y / window->get_viewport_size().x;
auto camWidth = 1.0f / zoom.get_value();
auto camHeight = camWidth * aspectRatio;
sizeInWorld = glm::vec2(camWidth, camHeight);
this->midpoint.update();
glm::vec2 midpoint = this->midpoint.get_value();
projectionMatrix = glm::ortho(-camWidth / 2.f + midpoint.x, +camWidth / 2.f + midpoint.x,
-camHeight / 2.f + midpoint.y, +camHeight / 2.f + midpoint.y);
}
void Camera::set_midpoint(glm::vec2 midpoint) {
this->midpoint = midpoint;
}
void Camera::move_midpoint(glm::vec2 offset) {
this->midpoint += offset;
}
glm::mat4 Camera::get_matrix() const {
return projectionMatrix;
}
glm::vec2 Camera::get_size() const {
return sizeInWorld;
}
|
//结构体的优先级设置,需要用C++对<小于号重载
//重载大于号会编译错误,从数学来讲只需要重载小于号
//f1>f2等价于判断f2<f1
//f1==f2等价于判断 !(f1<f2)&&!(f2<f1)
#include<iostream>
#include<string>
#include<queue>
using namespace std;
struct fruit{
string name;
int price;
friend bool operator < (fruit f1,fruit f2){
return f1.price>f2.price; //价格低的优先级高,优先队列与sort里面的cmp是反着来
}
}f1,f2,f3;
int main()
{
priority_queue<fruit> q;
f1.name="苹果";
f1.price=20 ;
f2.name="桃子";
f2.price=15;
f3.name="梨子";
f3.price=100;
q.push(f1);
q.push(f2);
q.push(f3);
cout<<q.top().name<<" "<<q.top().price<<endl;
return 0;
}
|
#include <ESP8266WiFi.h>
#include <NTPClient.h>
#include <FirebaseArduino.h>
#include <ArduinoJson.h>
#include <Ticker.h>
#include<SoftwareSerial.h> //Included SoftwareSerial Library
#define FIREBASE_HOST "ph-safe.firebaseio.com"
#define FIREBASE_AUTH "2fxqpAHVPeqpfvNRA3VN3T6Yx61Zo53h9HDPjM4Q"
#define WIFI_SSID "Banhode1hora"
#define WIFI_PASSWORD "5239asfalto"
#define PH_PIN A0
#define PUBLISHING_TIME 1000*60*30 // Sends the pH value to Firebase every 30 minutes
//WiFiUDP ntpUDP;
//NTPClient timeClient(ntpUDP, "south-america.pool.ntp.org", utcOffsetInSeconds);
Ticker timer;
//JsonObject& json;
const long utcOffsetInSeconds = 3600;
float phValue;
bool publishNewValue;
int ph_pin = A0; //This is the pin number connected to Po
void publish() {
publishNewValue = true;
}
void unpublish() {
publishNewValue = false;
}
void setupPins() {
pinMode(PH_PIN, INPUT);
}
void setupWifi() {
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
Serial.print("Connecting...");
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
}
Serial.println();
Serial.print("Connected: ");
Serial.println(WiFi.localIP());
}
void setupTimeClient() {
//timeClient.begin();
}
void setupFirebase() {
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
}
void init() {
publishNewValue = true;
phValue = 0.0;
}
float getDataFromPHSensor() {
float valueFromSensor = 0;
// Calculate pH value... Paste pH code here!
// int ph_pin = A0; //PINO TROXCAS DE DADOS
int measure = analogRead(ph_pin);
Serial.print("Measure: ");
Serial.print(measure);
double voltage = 3 / 1024.0 * measure; //classic digital to voltage conversion
Serial.print("\tVoltage: ");
Serial.print(voltage, 3);
// PH_step = (voltage@PH7 - voltage@PH4) / (PH7 - PH4)
// PH_probe = PH7 - ((voltage@PH7 - voltage@probe) / PH_step)
float Po = 7 + ((2.51 - voltage) / 0.18); //float Po = 7 + ((2.598 - voltage) / 0.18);
Serial.print("\tPH: ");
Serial.print(Po, 3);
Serial.println("");
valueFromSensor = Po;
delay(1000);
if (!isnan(valueFromSensor) || phValue == -1.0) {
return valueFromSensor;
}
return valueFromSensor;
}
char* getDate() {
//return = timeClient.getDay() + "/" + timeClient.getMouth() + "/" + timeClient.getYear();
}
char* getTime() {
//return timeClient.getFormattedTime();
}
void mountJsonStructure() {
StaticJsonBuffer<200> jsonBuffer;
//json = jsonBuffer.createObject();
json["valor"] = phValue;
json["data"] = getDate();
json["hora"] = getTime();
}
void sendToFirebase() {
Firebase.push("ph", phValue);
}
void setup() {
Serial.begin(9600);
setupPins();
setupWifi();
setupTimeClient();
setupFirebase();
init();
timer.attach_ms(PUBLISHING_TIME, publish);
Serial.println(" PH ");
Serial.println("PROJETO GECO7AN | pH Sense");
}
void loop() {
float phValue;
//timeClient.update();
if (publishNewValue) {
phValue = getDataFromPHSensor();
if (!isnan(phValue) || phValue >= 0.0)) {
Serial.println("Publishing new pH value: " + phValue);
mountJsonStructure();
sendToFirebase();
unpublish();
} else {
Serial.println("Failed to read from pH sensor!");
}
}
delay(200);
}
|
// Fading LED
// by BARRAGAN <http://people.interaction-ivrea.it/h.barragan>
#include "WProgram.h"
void setup();
void loop();
int value = 0; // variable to keep the actual value
int green = 9; // light connected to digital pin 9 green
int blue = 10;
int red = 11;
int r_value = 0;
int g_value = 0;
int b_value = 0;
int time = 10;
int max = 15;
int min = 0;
void setup()
{
randomSeed(analogRead(0));
}
void loop()
{
r_value = random(min, max);
g_value = random(min, max);
b_value = random(min, max);
for(value = 0 ; value <= 255; value+=5) // fade in (from min to max)
{
analogWrite(red, r_value); // sets the value (range from 0 to 255)
analogWrite(blue, b_value); // sets the value (range from 0 to 255)
analogWrite(green, g_value); // sets the value (range from 0 to 255)
delay(time); // waits for 30 milli seconds to see the dimming effect
}
for(value = 255; value >=0; value-=5) // fade out (from max to min)
{
analogWrite(red, r_value); // sets the value (range from 0 to 255)
analogWrite(blue, b_value); // sets the value (range from 0 to 255)
analogWrite(green, g_value); // sets the value (range from 0 to 255)
delay(time);
}
}
int main(void)
{
init();
setup();
for (;;)
loop();
return 0;
}
|
/**
* Header file for the CommandPlus class.
@file CommandPlus.h
*/
#pragma once
#include<conio.h>
#include"point.h"
#include"Editor.h"
using namespace std;
class CommandPlus {
private:
char command{};
Point location;
string value;
bool isChar{ false }, isString{ false };
public:
// Default constructor.
// Does nothing as of now.
CommandPlus();
/** Returns the command char.
@pre None.
@post Returns private member char "command".
@return returns the character of the private member "command" */
char getCommand();
/** Sets the command char by calling _getwch();
@pre None.
@post Private member command char is set. */
void setCommand();
/** Sets the command to the passed paramter.
@param _command char, sets private member command.
@pre None.
@post Command char is set. */
void setCommand(const char _command);
/** Sets the string "deletedText"
@pre None.
@post Sets the private member "value".
@param _delText is a string that will set the private
"deletedText" member. */
void setValue(const string _value);
/** Getter method for private member "deletedText".
@pre There must be something stored in the deletedText string.
@post None.
@return Returns the string stored in the private member "deletedText". */
string getValue();
/** Saves the (x,y) pair into the private "location" Point object.
@pre None.
@post The (x,y) position of the user is saved into private Point
object member "location".
@param _location Takes in the current users (x,y) coordinates. */
void setLocation(const Point& _location);
/** Getter method to return the Y coord in private member "location".
@pre None.
@post None.
@return Returns the 'y' coordinate stored in private member "location". */
int getYLocation();
/** Getter method to retrieve the X coordinate in private member "location".
@pre None.
@post None.
@return Returns the 'x' coordinate stored in private member "location". */
int getXLocation();
/** Sets bool isChar to true;
@pre None.
@post bool isChar is set to true. */
void setTrueIsChar();
/** Returns bool value of isChar.
@pre None.
@post None.
@return Bool value of isChar.*/
bool getBoolIsChar();
/** Sets bool isString to true.
@pre None.
@post bool isString is set to true.*/
void setTrueIsString();
/** Returns bool value of isString.
@pre None.
@post None.
@return Returns bool value of isString. */
bool getBoolIsString();
};
|
#include "VulkanCommandPool.h"
#include "VulkanInstance.h"
#include "VulkanDevice.h"
#include "VulkanException.h"
#include <vulkan\vulkan.h>
VulkanCommandPool::VulkanCommandPool(VkPhysicalDevice* physicalDevice, VulkanDevice* device, VulkanInstance* instance) : device(device)
{
QueueFamilyIndices queueFamilyIndices = instance->FindQueueFamilies(physicalDevice);
VkCommandPoolCreateInfo poolInfo = {};
poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
poolInfo.queueFamilyIndex = queueFamilyIndices.graphicsFamily;
poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
if (vkCreateCommandPool(*device, &poolInfo, nullptr, &commandPool) != VK_SUCCESS) {
throw new VulkanException("failed to create command pool!", __LINE__, __FILE__);
}
}
VulkanCommandPool::~VulkanCommandPool()
{
vkDestroyCommandPool(*device, commandPool, nullptr);
}
VulkanCommandPool::operator VkCommandPool() const
{
return commandPool;
}
|
#include "stdafx.h"
#include "resource.h"
#include "FindFileDlg.h"
#include "FileFinder.h"
UINT _SearchForFile(void *p);
#define ICONS 11
HICON g_FindFileIconArray[ICONS];
BEGIN_MESSAGE_MAP(CFindFileDlg, CSnapDialog)
//{{AFX_MSG_MAP(CFindFileDlg)
ON_BN_CLICKED(ID_STOP, OnStop)
ON_WM_SHOWWINDOW()
ON_WM_TIMER()
//}}AFX_MSG_MAP
ON_MESSAGE(WM_BEGIN_SEARCH, OnBegin)
END_MESSAGE_MAP()
CFindFileDlg::CFindFileDlg(CWnd* pParent /*=NULL*/)
: inherited(CFindFileDlg::IDD, pParent)
{
PROC_TRACE;
//{{AFX_DATA_INIT(CFindFileDlg)
//}}AFX_DATA_INIT
m_bInThread = false;
m_bFindSingleFile = false;
m_bRecurse = true;
m_bCancel = false;
m_bSearchNetworkDrives = false;
m_bSearchRemovableDrives = false;
m_bSearchCDROMDrives = false;
m_bCancel = false;
m_iCurIcon = 0;
m_csTitle = "Searching for the file...";
g_FindFileIconArray[0] = AfxGetApp()->LoadIcon(IDI_SEARCH01);
g_FindFileIconArray[1] = AfxGetApp()->LoadIcon(IDI_SEARCH02);
g_FindFileIconArray[2] = AfxGetApp()->LoadIcon(IDI_SEARCH03);
g_FindFileIconArray[3] = AfxGetApp()->LoadIcon(IDI_SEARCH04);
g_FindFileIconArray[4] = AfxGetApp()->LoadIcon(IDI_SEARCH05);
g_FindFileIconArray[5] = AfxGetApp()->LoadIcon(IDI_SEARCH06);
g_FindFileIconArray[6] = AfxGetApp()->LoadIcon(IDI_SEARCH07);
g_FindFileIconArray[7] = AfxGetApp()->LoadIcon(IDI_SEARCH08);
g_FindFileIconArray[8] = AfxGetApp()->LoadIcon(IDI_SEARCH09);
g_FindFileIconArray[9] = AfxGetApp()->LoadIcon(IDI_SEARCH10);
g_FindFileIconArray[10] = AfxGetApp()->LoadIcon(IDI_SEARCH11);
}
//////////////////////////////////////////////////////////////////////
void CFindFileDlg::DoDataExchange(CDataExchange* pDX)
{
PROC_TRACE;
inherited::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFindFileDlg)
DDX_Control(pDX, IDC_PROCESS_STATIC, m_processStatic);
DDX_Control(pDX, ID_STOP, m_stopButton);
//}}AFX_DATA_MAP
}
BOOL CFindFileDlg::OnInitDialog()
{
PROC_TRACE;
inherited::OnInitDialog();
UpdateData(FALSE);
SetWindowText(m_csTitle);
m_stopButton.SetShaded();
m_processStatic.SetMax(50);
m_processStatic.SetStep(1);
m_processStatic.SetGradientFill(RGB(192,192,192),RGB(238,248,238));
m_processStatic.SetBkColor(RGB(192,192,192));
m_processStatic.SetSize(20);
m_processStatic.StepIt();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
//////////////////////////////////////////////////////////////////////
void CFindFileDlg::OnCancel()
{
PROC_TRACE;
if (!m_bInThread)
{
inherited::OnCancel();
}
else
{
m_bCancel = true;
}
}
void CFindFileDlg::MsgPump(DWORD dwLen)
{
PROC_TRACE;
MSG m_msgCur; // current message
CWinApp *pWinApp = AfxGetApp();
DWORD dInitTime = GetTickCount();
while (::PeekMessage(&m_msgCur, NULL, NULL, NULL, PM_NOREMOVE) &&
(GetTickCount() - dInitTime < dwLen) )
{
pWinApp->PumpMessage();
}
}
void CFindFileDlg::OnStop()
{
PROC_TRACE;
m_bCancel = true;
}
void CFindFileDlg::OnShowWindow(BOOL bShow, UINT nStatus)
{
PROC_TRACE;
inherited::OnShowWindow(bShow, nStatus);
PostMessage(WM_BEGIN_SEARCH);
}
long CFindFileDlg::OnBegin(UINT u, LONG l)
{
PROC_TRACE;
SetTimer(1, 50, NULL);
// this will protect our data while the two threads access it
InitializeCriticalSection(&g_findFileCritSection);
// our shared data space
searchStruct ss;
ss.m_bFindSingleFile = m_bFindSingleFile;
ss.m_csFindFile = m_csFindFile;
ss.m_bRecurse = m_bRecurse;
ss.m_csRootFolder = m_csRootFolder;
ss.m_bSearchNetworkDrives = m_bSearchNetworkDrives;
ss.m_bSearchRemovableDrives = m_bSearchRemovableDrives;
ss.m_bSearchCDROMDrives = m_bSearchCDROMDrives;
ss.m_csaFoundFiles.RemoveAll();
ss.m_bDone = false;
ss.m_bOk = true;
ss.m_bCancel = false;
// create the thread
CWinThread * pThread = AfxBeginThread(_SearchForFile, (LPVOID)&ss, THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED, NULL);
// be nice
if (pThread==NULL)
{
AfxMessageBox("Thread Creation Failed", MB_ICONEXCLAMATION);
}
else
{
// here we go!
m_bInThread = true;
// whee!!!
pThread->ResumeThread();
// while the thread is still alive...
while (!GET_SAFE(ss.m_bDone))
{
// have we been cancelled?
if (m_bCancel)
{
//if (!GET_SAFE(ss.m_bDone))
{
SET_SAFE(ss.m_bCancel, true);
}
}
// push some msgs around
MsgPump();
}
// done (the thread said so)
m_bInThread = false;
m_bCancel = false;
}
// don't need this any more
DeleteCriticalSection(&g_findFileCritSection);
// copy to output
m_csaFoundFiles.RemoveAll();
m_csaFoundFiles.Copy(ss.m_csaFoundFiles);
KillTimer(1);
if (ss.m_bOk)
{
inherited::OnOK();
}
else
{
inherited::OnCancel();
}
return 0L;
}
//////////////////////////////////////////////////////////////////////
UINT _SearchForFile(void *p)
{
PROC_TRACE;
// this is serious trouble...
if (p==NULL)
{
return 0L;
}
// let this class do all of the work for us
CFileFinder finder((searchStruct *)p);
// do it
bool ok = finder.FindFile();
// set the output status
SET_SAFE(((searchStruct *)p)->m_bOk, ok);
SET_SAFE(((searchStruct *)p)->m_bDone, true);
AfxEndThread(0, TRUE);
return 0;
}
//////////////////////////////////////////////////////////////////////
void CFindFileDlg::OnTimer(UINT nIDEvent)
{
PROC_TRACE;
if (nIDEvent==1)
{
m_processStatic.StepIt();
return;
}
inherited::OnTimer(nIDEvent);
}
|
/*
* =====================================================================================
*
* Filename: a.cpp
*
* Description:
*
* Version: 1.0
* Created: 09/12/2013 11:07:28 PM
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#include <iostream>
using namespace std;
class A
{
protected:
int m_data;
public:
A(int data=0) { m_data = data; }
int GetData() { return doGetData(); }
virtual int doGetData() { return m_data; }
};
class B: public A
{
protected:
int m_data;
public:
B(int data=0) { m_data = data; }
int doGetData() { return m_data; }
}
|
#ifndef __LINBOX_matrix_SlicedPolynomialMatrix_SlicedPolynomialMatrixConversion_H
#define __LINBOX_matrix_SlicedPolynomialMatrix_SlicedPolynomialMatrixConversion_H
#include "SlicedPolynomialMatrix.h"
#include "linbox/matrix/polynomial-matrix.h"
#include "linbox/matrix/DenseMatrix/blas-matrix.h"
#include <givaro/gfq.h>
namespace LinBox
{
//class PM is supposed to be PolynomialMatrix<PMType::polfirst, PMStorage::plain, _FieldF>
template <class SPM, class PM>
class SlicedPolynomialMatrixtoPolynomialMatrix
{
public:
PM& operator() (SPM &spm, PM &pm)
{
size_t rd = spm.rowdim();
size_t cd = spm.coldim();
size_t l = spm.length();
for (size_t i = 0; i < rd; i++)
{
for (size_t j = 0; j < cd; j++)
{
for (size_t k = 0; k < l; k++)
{
pm.ref(i, j, k) = spm.getEntry(k, i, j);
}
}
}
return PM;
}
};
template <class PM, class SPM>
class PolynomialMatrixtoSlicedPolynomialMatrix
{
public:
SPM &operator() (PM& pm, SPM& spm)
{
size_t rd = SPM.rowdim();
size_t cd = SPM.coldim();
size_t l = SPM.length();
for (size_t k = 0; k < l; k++)
{
SPM.setMatrixCoefficient(k, PM[k]);
}
return SPM;
}
};
template <class _FieldGF, class _Storage1, class _MatrixElement = double, class TT, class _Storage2>
template <class SPM, class BM>
class SlicedPolynomialMatrixtoBlasMatrix
{
private:
typedef BM::Element Element;
typedef typename Givaro::GFqDom<Element> GFqDom;
public:
BM &operator() (SPM &spm, BM &bm)
{
size_t rd = spm.rowdim();
size_t cd = spm.coldim();
size_t l = spm.length();
Element el;
typename GFqDom GF(spm.fieldGF().characteristic(), spm.fieldGF().exponent());
PolynomialMatrix<typename PMType::polfirst, typename PMStorage::plain,
typename SPM::IntField> pm(spm.fieldF(), rd, cd, l);
SlicedPolynomialMatrixtoPolynomialMatrix<_FieldGF, _Storage1,
_MatrixElement, spm::IntField>()(pm, spm);
for (size_t i = 0; i < rd; i++)
{
for (size_t j = 0; j < cd; j++)
{
GF.init(el, pm(i, j));
bm.setEntry(i, j, el);
}
}
return BM;
}
};
template <class BM, class SPM>
class BlasMatrixtoSlicedPolynomialMatrix
{
private:
typedef BM::Field Field;
typedef Givaro::GFqDom<TT> GField;
public:
SPM& operator() (BM &bm, SPM &spm)
{
size_t rd = spm.rowdim();
size_t cd = spm.coldim();
size_t l = spm.length();
if (l == 1)
{
for (size_t i = 0; i < rd; i++)
{
for (size_t j = 0; j < cd; j++)
{
spm.setEntry(0, i, j, BM.getEntry(i, j));
}
}
return spm;
}
else
{
Field GF = spm.fieldDF();
size_t p = GF.characteristic();
for (size_t i = 0; i < rd; i++)
{
for (size_t j = 0; j < cd; j++)
{
size_t el = GF.zech2padic(bm.getEntry(i, j));
for (size_t k = 0; k < l; k++)
{
spm.setEntry(k, i, j, el % p);
el /= p;
}
}
}
return SPM;
}
}
};
}
#endif
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main() { ll m,n,k; while(cin>>n>>m) { cout<<min((m+n)/3, min(m,n) )<<endl; } }
|
//Code developed by Rafael Ribeiro and Daniel Monteiro in previous PROG project;
#ifndef UTILS_H
#define UTILS_H
#include <iostream>
#include <string>
#include <ostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <algorithm>
namespace utils
{
/**
The first line in 'stream' that isn't whitespace is trimmed and assigned to 'input'
You may optionally set the third argument to 'true' so that only one line is read (useful for input prompts)
Returns true if no error ocurred. Returns false if an error occurs. If input == "EOF", an EOF happened while consuming the 'stream'
Note: only check for EOF if utils::read_str returns false
*/
bool read_str(std::istream & stream, std::string & input, bool read_only_one_string = false);
/**
Assigns the first integer it finds in 'stream' to 'input'
Returns true if no error ocurred. Returns false if an error occurs. If input == the maximum possible representable datatype,
an EOF happened while consuming the 'stream'
Note: the entire line is consumed, therefore it will read the first integer from the line and discard the rest of the line
Helpful tip: use this function from <limits> to get the maximum possible integer
std::numeric_limits<your_datatype>::max()
WARNING: The datatypes you can or cannot use with this function are not enforced, be careful
*/
template<class T>
bool read_num(std::istream & stream, T & input);
/**
Assigns the first integer it finds in 'str' to 'input'
Returns true if no error ocurred. Returns false if an error occurs. If input == the maximum possible representable datatype,
an EOF happened while reading the 'str'
Helpful tip: use this function from <limits> to get the maximum possible integer
std::numeric_limits<your_datatype>::max()
WARNING: The datatypes you can or cannot use with this function are not enforced, be careful
*/
template<class T>
bool read_num(const std::string & str, T & input);
/**
Assigns the first integer it finds in 'str' to 'input'
Returns true if no error ocurred. Returns false if an error occurs. If input == the maximum possible representable datatype,
an EOF happened while reading the 'str'
Helpful tip: use this function from <limits> to get the maximum possible integer
std::numeric_limits<your_datatype>::max()
WARNING: The datatypes you can or cannot use with this function are not enforced, be careful
*/
bool read_num(const std::string & str, size_t & input);
/**
Waits for the Enter key to be pressed
*/
void wait_for_enter();
/**
Prints the entity to 'stream' (std::cout by default) followed by 'endl' ("\n") by default
There is an optional second argument you can use to specify the output stream
There is an optional third argument you can use to change 'endl' to whatever you wish
*/
void print(const bool input, std::ostream & stream = std::cout, std::string endl = "\n");
/**
Prints the entity to 'stream' (std::cout by default) followed by 'endl' ("\n") by default
There is an optional second argument you can use to specify the output stream
There is an optional third argument you can use to change 'endl' to whatever you wish
*/
template<class T>
void print(const T & input, std::ostream & stream = std::cout, std::string endl = "\n");
/**
Trims all whitespace at the beggining and end of the string 'input'
Example: input = " \tMIEIC \v\n"; utils::trim(input); Now, input == "MIEIC"
*/
void trim(std::string & input);
/**
Returns a vector made of partitions of string 'input' that were seperated by the char 'delimiter'. Note: the partitions are automatically trimmed
Example: utils::split("a, ,b, c", ',') will return {"a", "", "b", "c"}, notice how the whitespace has been automatically trimmed
There is an optional third argument, 'max_splits' which indicate the maximum number of splits that can happen
Example: utils::split("a, ,b, c", ',', 1) will return {"a", ",b, c"}
*/
std::vector<std::string> split(std::string input, const char delimiter, size_t max_splits = -1); // -1 will make it loop back to its maximum value
/**
Fills 'output' with the casting of partitions of string 'input' that were seperated by the char 'delimiter'
Example: utils::parse_vector_of_nums(vec, "1,2,3" ',') will put {1, 2, 3} in vec (if vec allows)
Returns true if everything went OK, else returns false
*/
template <class T>
bool parse_vector_of_nums(std::vector<T> & output, const std::string & input, const char delimiter);
/**
Returns a string formed by all the elements in 'parts' with the string 'delimiter' in between them
More or less the opposite of utils::split
You may optionally choose to concatenate only a part of the vector by choosing the begginning index as the third argument
*/
std::string join(const std::vector<std::string> & parts, const std::string & delimiter, size_t begginning_index = 0);
/**
Returns an uppercase version of the string 'input'
Example: utils::uppercase("mieic") returns "MIEIC"
*/
std::string uppercase(std::string input);
/**
Returns an lowercase version of the string 'input'
Example: utils::lowercase("MIEIC") returns "mieic"
*/
std::string lowercase(std::string input);
/**
Clears the console screen
*/
void clear_screen();
/**
'prompt' is printed to screen until the user enters either 'yes' or 'no', or ctrl+Z
The function either returns "YES", "NO", or "EOF", to signal that the user pressed ctr+Z
There is an second optional argument to indicate what to return in case the user inputs something not nominal
Naturally, if this second argument (must be either "YES" or "NO") is used, the function won't indefinitely repeat
*/
std::string yes_no_prompt(std::string prompt, std::string default_answer = "");
/**
Compares two pairs of <string, long> by the second member of each.
Used to order the destination_visits vector in descending order of visits (higher number of visits at beginning)
*/
bool sortbysec(const std::pair<std::string, long> &a, const std::pair<std::string, long> &b);
/**
Used for display purposes
*/
static std::string FANCY_DELIMITER = std::string(90, '=');
}
template <class T>
bool utils::read_num(std::istream & stream, T & input)
{
input = 0;
std::string temp_string;
if (!read_str(stream, temp_string))
{
if (temp_string == "EOF" )
{
input = std::numeric_limits<T>::max();
}
return false;
}
return utils::read_num(temp_string, input);
}
template <class T>
bool utils::read_num(const std::string & str, T & input)
{
std::istringstream temp_stream(str);
temp_stream >> input;
return (!temp_stream.fail());
}
template<class T>
void utils::print(const T & input, std::ostream & stream , std::string endl)
{
stream << input << endl;
return;
}
template<class T>
bool utils::parse_vector_of_nums(std::vector<T>& output, const std::string & input, const char delimiter)
{
std::vector<std::string> parts = utils::split(input, delimiter);
output.resize(parts.size());
for (size_t i = 0; i < parts.size(); i++)
{
if (!utils::read_num(parts[i], output[i]))
return false;
}
return true;
}
#endif
|
/*
** Copyright (c) 2013, Xin YUAN, courses of Zhejiang University
** All rights reserved.
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the 2-Clause BSD License.
**
** Author contact information:
** yxxinyuan@zju.edu.cn
**
*/
/*
This file contains entry point function for SA.
*/
////////////////////////////////////////////////////////////////////////////////
#ifndef __ENTRY_POINT_H__
#define __ENTRY_POINT_H__
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
namespace GKC {
////////////////////////////////////////////////////////////////////////////////
// ProgramEntryPoint
class ProgramEntryPoint
{
public:
static bool SAMain(bool bInitOrDump)
{
if( bInitOrDump ) {
//init
if( !_InitGlobals() )
return false;
}
else {
//dump
_DumpGlobals();
}
return true;
}
};
////////////////////////////////////////////////////////////////////////////////
}
////////////////////////////////////////////////////////////////////////////////
#endif
////////////////////////////////////////////////////////////////////////////////
|
#include "BSModel.h"
#include <cmath>
#include <iostream>
using namespace std;
void BSModel::GenerateSamplePath(double T, int D, NormalRandomGenerator &RandomNumber)
{
double St = mS0;
for (int k = 0; k < D; k++)
{
St = St * exp((mInterestRate - pow(mSigma, 2)*0.5)*
(T / D) + mSigma * sqrt(T / D)*RandomNumber.generate());
mS.push_back(St);
}
}
|
// C++ for the Windows Runtime vv1.0.170303.6
// Copyright (c) 2017 Microsoft Corporation. All rights reserved.
#pragma once
WINRT_EXPORT namespace winrt {
namespace ABI::Windows::UI::Xaml::Documents {
struct IBlock;
struct IBlockFactory;
struct IBlockStatics;
struct IBold;
struct IGlyphs;
struct IGlyphs2;
struct IGlyphsStatics;
struct IGlyphsStatics2;
struct IHyperlink;
struct IHyperlink2;
struct IHyperlink3;
struct IHyperlink4;
struct IHyperlinkClickEventArgs;
struct IHyperlinkStatics;
struct IHyperlinkStatics2;
struct IHyperlinkStatics3;
struct IHyperlinkStatics4;
struct IInline;
struct IInlineFactory;
struct IInlineUIContainer;
struct IItalic;
struct ILineBreak;
struct IParagraph;
struct IParagraphStatics;
struct IRun;
struct IRunStatics;
struct ISpan;
struct ISpanFactory;
struct ITextElement;
struct ITextElement2;
struct ITextElement3;
struct ITextElement4;
struct ITextElementFactory;
struct ITextElementOverrides;
struct ITextElementStatics;
struct ITextElementStatics2;
struct ITextElementStatics3;
struct ITextElementStatics4;
struct ITextPointer;
struct ITypography;
struct ITypographyStatics;
struct IUnderline;
struct Block;
struct BlockCollection;
struct Bold;
struct Glyphs;
struct Hyperlink;
struct HyperlinkClickEventArgs;
struct Inline;
struct InlineCollection;
struct InlineUIContainer;
struct Italic;
struct LineBreak;
struct Paragraph;
struct Run;
struct Span;
struct TextElement;
struct TextPointer;
struct Typography;
struct Underline;
}
namespace Windows::UI::Xaml::Documents {
struct IBlock;
struct IBlockFactory;
struct IBlockStatics;
struct IBold;
struct IGlyphs;
struct IGlyphs2;
struct IGlyphsStatics;
struct IGlyphsStatics2;
struct IHyperlink;
struct IHyperlink2;
struct IHyperlink3;
struct IHyperlink4;
struct IHyperlinkClickEventArgs;
struct IHyperlinkStatics;
struct IHyperlinkStatics2;
struct IHyperlinkStatics3;
struct IHyperlinkStatics4;
struct IInline;
struct IInlineFactory;
struct IInlineUIContainer;
struct IItalic;
struct ILineBreak;
struct IParagraph;
struct IParagraphStatics;
struct IRun;
struct IRunStatics;
struct ISpan;
struct ISpanFactory;
struct ITextElement;
struct ITextElement2;
struct ITextElement3;
struct ITextElement4;
struct ITextElementFactory;
struct ITextElementOverrides;
struct ITextElementStatics;
struct ITextElementStatics2;
struct ITextElementStatics3;
struct ITextElementStatics4;
struct ITextPointer;
struct ITypography;
struct ITypographyStatics;
struct IUnderline;
struct Block;
struct BlockCollection;
struct Bold;
struct Glyphs;
struct Hyperlink;
struct HyperlinkClickEventArgs;
struct Inline;
struct InlineCollection;
struct InlineUIContainer;
struct Italic;
struct LineBreak;
struct Paragraph;
struct Run;
struct Span;
struct TextElement;
struct TextPointer;
struct Typography;
struct Underline;
}
namespace Windows::UI::Xaml::Documents {
template <typename T> struct impl_IBlock;
template <typename T> struct impl_IBlockFactory;
template <typename T> struct impl_IBlockStatics;
template <typename T> struct impl_IBold;
template <typename T> struct impl_IGlyphs;
template <typename T> struct impl_IGlyphs2;
template <typename T> struct impl_IGlyphsStatics;
template <typename T> struct impl_IGlyphsStatics2;
template <typename T> struct impl_IHyperlink;
template <typename T> struct impl_IHyperlink2;
template <typename T> struct impl_IHyperlink3;
template <typename T> struct impl_IHyperlink4;
template <typename T> struct impl_IHyperlinkClickEventArgs;
template <typename T> struct impl_IHyperlinkStatics;
template <typename T> struct impl_IHyperlinkStatics2;
template <typename T> struct impl_IHyperlinkStatics3;
template <typename T> struct impl_IHyperlinkStatics4;
template <typename T> struct impl_IInline;
template <typename T> struct impl_IInlineFactory;
template <typename T> struct impl_IInlineUIContainer;
template <typename T> struct impl_IItalic;
template <typename T> struct impl_ILineBreak;
template <typename T> struct impl_IParagraph;
template <typename T> struct impl_IParagraphStatics;
template <typename T> struct impl_IRun;
template <typename T> struct impl_IRunStatics;
template <typename T> struct impl_ISpan;
template <typename T> struct impl_ISpanFactory;
template <typename T> struct impl_ITextElement;
template <typename T> struct impl_ITextElement2;
template <typename T> struct impl_ITextElement3;
template <typename T> struct impl_ITextElement4;
template <typename T> struct impl_ITextElementFactory;
template <typename T> struct impl_ITextElementOverrides;
template <typename T> struct impl_ITextElementStatics;
template <typename T> struct impl_ITextElementStatics2;
template <typename T> struct impl_ITextElementStatics3;
template <typename T> struct impl_ITextElementStatics4;
template <typename T> struct impl_ITextPointer;
template <typename T> struct impl_ITypography;
template <typename T> struct impl_ITypographyStatics;
template <typename T> struct impl_IUnderline;
}
namespace Windows::UI::Xaml::Documents {
enum class LogicalDirection
{
Backward = 0,
Forward = 1,
};
enum class UnderlineStyle
{
None = 0,
Single = 1,
};
}
}
|
#include "surface.h"
#include <cmath>
namespace rt {
// Calculate the normal of the triangle
Triangle::Triangle(Material* m, Vec3f* a, Vec3f* b, Vec3f* c)
: Surface{m}, a{a}, b{b}, c{c}
{
normal = cross((*b - *a), (*c - *a)).normalize();
}
bool Triangle::hit(Ray ray, HitRecord* rec) const {
Vec3f ab = *a - *b;
Vec3f ac = *a - *c;
// Intermediate products
float ei_hf, gf_di, dh_eg;
ei_hf = ac.y * ray.d.z - ray.d.y * ac.z;
gf_di = ray.d.x * ac.z - ac.x * ray.d.z;
dh_eg = ac.x * ray.d.y - ac.y * ray.d.x;
float ak_jb, jc_al, bl_kc;
float j,k,l;
j = a->x - ray.e.x;
k = a->y - ray.e.y;
l = a->z - ray.e.z;
ak_jb = ab.x * k - j * ab.y;
jc_al = j * ab.z - ab.x * l;
bl_kc = ab.y * l - k * ab.z;
float M = ab.x * (ei_hf) +
ab.y * (gf_di) +
ab.z * (dh_eg);
float t = - (ac.z * ak_jb +
ac.y * jc_al +
ac.x * bl_kc) / M;
// Check for intersection
if (t <= 0) {
return false;
} else {
float gamma = (ray.d.z * ak_jb +
ray.d.y * jc_al +
ray.d.x * bl_kc) / M;
if (gamma < 0 || gamma > 1) {
return false;
} else {
float beta = (j * ei_hf +
k * gf_di +
l * dh_eg) / M;
if (beta < 0 || beta > 1 - gamma) {
return false;
} else {
// Fill out hit record
if (rec && rec->t > t) {
rec->t = t;
rec->normal = normal;
rec->pos = ray(t);
rec->m = material;
}
return true;
}
}
}
return false;
}
} // namespace rt
|
/*
Copyright (c) 2005-2023, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of Oxford nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <limits>
#include "AbstractTetrahedralMesh.hpp"
///////////////////////////////////////////////////////////////////////////////////
// Implementation
///////////////////////////////////////////////////////////////////////////////////
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::SetElementOwnerships()
{
unsigned lo=this->GetDistributedVectorFactory()->GetLow();
unsigned hi=this->GetDistributedVectorFactory()->GetHigh();
for (unsigned element_index=0; element_index<mElements.size(); element_index++)
{
Element<ELEMENT_DIM, SPACE_DIM>* p_element = mElements[element_index];
p_element->SetOwnership(false);
for (unsigned local_node_index=0; local_node_index< p_element->GetNumNodes(); local_node_index++)
{
unsigned global_node_index = p_element->GetNodeGlobalIndex(local_node_index);
if (lo<=global_node_index && global_node_index<hi)
{
p_element->SetOwnership(true);
break;
}
}
}
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::AbstractTetrahedralMesh()
: mMeshIsLinear(true)
{
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::~AbstractTetrahedralMesh()
{
// Iterate over elements and free the memory
for (unsigned i=0; i<mElements.size(); i++)
{
delete mElements[i];
}
// Iterate over boundary elements and free the memory
for (unsigned i=0; i<mBoundaryElements.size(); i++)
{
delete mBoundaryElements[i];
}
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumElements() const
{
return mElements.size();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumLocalElements() const
{
return GetNumElements();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumAllElements() const
{
return mElements.size();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumBoundaryElements() const
{
return mBoundaryElements.size();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumLocalBoundaryElements() const
{
return GetNumBoundaryElements();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumAllBoundaryElements() const
{
return mBoundaryElements.size();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumCableElements() const
{
return 0u;
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNumVertices() const
{
return this->GetNumNodes();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetMaximumNodeIndex()
{
return this->GetNumAllNodes();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
Element<ELEMENT_DIM, SPACE_DIM>* AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetElement(unsigned index) const
{
unsigned local_index = SolveElementMapping(index);
return mElements[local_index];
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
BoundaryElement<ELEMENT_DIM-1, SPACE_DIM>* AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetBoundaryElement(unsigned index) const
{
unsigned local_index = SolveBoundaryElementMapping(index);
return mBoundaryElements[local_index];
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
typename AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::BoundaryElementIterator AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetBoundaryElementIteratorBegin() const
{
return mBoundaryElements.begin();
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
typename AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::BoundaryElementIterator AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetBoundaryElementIteratorEnd() const
{
return mBoundaryElements.end();
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetInverseJacobianForElement(
unsigned elementIndex,
c_matrix<double, SPACE_DIM, ELEMENT_DIM>& rJacobian,
double& rJacobianDeterminant,
c_matrix<double, ELEMENT_DIM, SPACE_DIM>& rInverseJacobian) const
{
mElements[SolveElementMapping(elementIndex)]->CalculateInverseJacobian(rJacobian, rJacobianDeterminant, rInverseJacobian);
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetWeightedDirectionForBoundaryElement(
unsigned elementIndex,
c_vector<double, SPACE_DIM>& rWeightedDirection,
double& rJacobianDeterminant) const
{
mBoundaryElements[SolveBoundaryElementMapping(elementIndex)]->CalculateWeightedDirection(rWeightedDirection, rJacobianDeterminant );
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::CheckOutwardNormals()
{
if (ELEMENT_DIM <= 1)
{
//If the ELEMENT_DIM of the mesh is 1 then the boundary will have ELEMENT_DIM = 0
EXCEPTION("1-D mesh has no boundary normals");
}
for (typename AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::BoundaryElementIterator face_iter = this->GetBoundaryElementIteratorBegin();
face_iter != this->GetBoundaryElementIteratorEnd();
++face_iter)
{
//Form a set for the boundary element node indices
std::set<unsigned> boundary_element_node_indices;
for (unsigned i=0; i<ELEMENT_DIM; i++)
{
boundary_element_node_indices.insert( (*face_iter)->GetNodeGlobalIndex(i) );
}
Node<SPACE_DIM>* p_opposite_node = nullptr;
Node<SPACE_DIM>* p_representative_node = (*face_iter)->GetNode(0);
for (typename Node<SPACE_DIM>::ContainingElementIterator element_iter = p_representative_node->ContainingElementsBegin();
element_iter != p_representative_node->ContainingElementsEnd();
++element_iter)
{
Element<ELEMENT_DIM, SPACE_DIM>* p_element = this->GetElement(*element_iter);
//Form a set for the element node indices
std::set<unsigned> element_node_indices;
for (unsigned i=0; i<=ELEMENT_DIM; i++)
{
element_node_indices.insert( p_element->GetNodeGlobalIndex(i) );
}
std::vector<unsigned> difference(ELEMENT_DIM);
std::vector<unsigned>::iterator set_iter = std::set_difference(
element_node_indices.begin(),element_node_indices.end(),
boundary_element_node_indices.begin(), boundary_element_node_indices.end(),
difference.begin());
if (set_iter - difference.begin() == 1)
{
p_opposite_node = this -> GetNodeOrHaloNode(difference[0]);
break;
}
}
assert(p_opposite_node != nullptr);
// Vector from centroid of face to opposite node
c_vector<double, SPACE_DIM> into_mesh = p_opposite_node->rGetLocation() - (*face_iter)->CalculateCentroid();
c_vector<double, SPACE_DIM> normal = (*face_iter)->CalculateNormal();
if (inner_prod(into_mesh, normal) > 0.0)
{
EXCEPTION("Inward facing normal in boundary element index "<<(*face_iter)->GetIndex());
}
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ConstructLinearMesh(unsigned width)
{
assert(ELEMENT_DIM == 1); // LCOV_EXCL_LINE
for (unsigned node_index=0; node_index<=width; node_index++)
{
Node<SPACE_DIM>* p_node = new Node<SPACE_DIM>(node_index, node_index==0 || node_index==width, node_index);
this->mNodes.push_back(p_node); // create node
if (node_index==0) // create left boundary node and boundary element
{
this->mBoundaryNodes.push_back(p_node);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(0, p_node) );
}
if (node_index==width) // create right boundary node and boundary element
{
this->mBoundaryNodes.push_back(p_node);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(1, p_node) );
}
if (node_index > 0) // create element
{
std::vector<Node<SPACE_DIM>*> nodes;
nodes.push_back(this->mNodes[node_index-1]);
nodes.push_back(this->mNodes[node_index]);
this->mElements.push_back(new Element<ELEMENT_DIM,SPACE_DIM>(node_index-1, nodes) );
}
}
this->RefreshMesh();
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ConstructRectangularMesh(unsigned width, unsigned height, bool stagger)
{
assert(SPACE_DIM == 2); // LCOV_EXCL_LINE
assert(ELEMENT_DIM == 2); // LCOV_EXCL_LINE
//Construct the nodes
unsigned node_index=0;
for (unsigned j=0; j<height+1; j++)
{
for (unsigned i=0; i<width+1; i++)
{
bool is_boundary=false;
if (i==0 || j==0 || i==width || j==height)
{
is_boundary=true;
}
//Check in place for parallel
assert(node_index==(width+1)*(j) + i);
Node<SPACE_DIM>* p_node = new Node<SPACE_DIM>(node_index++, is_boundary, i, j);
this->mNodes.push_back(p_node);
if (is_boundary)
{
this->mBoundaryNodes.push_back(p_node);
}
}
}
//Construct the boundary elements
unsigned belem_index=0;
//Top
for (unsigned i=0; i<width; i++)
{
std::vector<Node<SPACE_DIM>*> nodes;
nodes.push_back(this->mNodes[height*(width+1)+i+1]);
nodes.push_back(this->mNodes[height*(width+1)+i]);
assert(belem_index==i);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,nodes));
}
//Right
for (unsigned j=1; j<=height; j++)
{
std::vector<Node<SPACE_DIM>*> nodes;
nodes.push_back(this->mNodes[(width+1)*j-1]);
nodes.push_back(this->mNodes[(width+1)*(j+1)-1]);
assert(belem_index==width+j-1);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,nodes));
}
//Bottom
for (unsigned i=0; i<width; i++)
{
std::vector<Node<SPACE_DIM>*> nodes;
nodes.push_back(this->mNodes[i]);
nodes.push_back(this->mNodes[i+1]);
assert(belem_index==width+height+i);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,nodes));
}
//Left
for (unsigned j=0; j<height; j++)
{
std::vector<Node<SPACE_DIM>*> nodes;
nodes.push_back(this->mNodes[(width+1)*(j+1)]);
nodes.push_back(this->mNodes[(width+1)*(j)]);
assert(belem_index==2*width+height+j);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,nodes));
}
//Construct the elements
unsigned elem_index = 0;
for (unsigned j=0; j<height; j++)
{
for (unsigned i=0; i<width; i++)
{
unsigned parity=(i+(height-j))%2;//Note that parity is measured from the top-left (not bottom left) for historical reasons
unsigned nw=(j+1)*(width+1)+i; //ne=nw+1
unsigned sw=(j)*(width+1)+i; //se=sw+1
std::vector<Node<SPACE_DIM>*> upper_nodes;
upper_nodes.push_back(this->mNodes[nw]);
upper_nodes.push_back(this->mNodes[nw+1]);
if (stagger==false || parity == 1)
{
upper_nodes.push_back(this->mNodes[sw+1]);
}
else
{
upper_nodes.push_back(this->mNodes[sw]);
}
assert(elem_index==2*(j*width+i));
this->mElements.push_back(new Element<ELEMENT_DIM,SPACE_DIM>(elem_index++,upper_nodes));
std::vector<Node<SPACE_DIM>*> lower_nodes;
lower_nodes.push_back(this->mNodes[sw+1]);
lower_nodes.push_back(this->mNodes[sw]);
if (stagger==false ||parity == 1)
{
lower_nodes.push_back(this->mNodes[nw]);
}
else
{
lower_nodes.push_back(this->mNodes[nw+1]);
}
this->mElements.push_back(new Element<ELEMENT_DIM,SPACE_DIM>(elem_index++,lower_nodes));
}
}
this->RefreshMesh();
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ConstructCuboid(unsigned width,
unsigned height,
unsigned depth)
{
assert(SPACE_DIM == 3); // LCOV_EXCL_LINE
assert(ELEMENT_DIM == 3); // LCOV_EXCL_LINE
//Construct the nodes
unsigned node_index = 0;
for (unsigned k=0; k<depth+1; k++)
{
for (unsigned j=0; j<height+1; j++)
{
for (unsigned i=0; i<width+1; i++)
{
bool is_boundary = false;
if (i==0 || j==0 || k==0 || i==width || j==height || k==depth)
{
is_boundary = true;
}
assert(node_index == (k*(height+1)+j)*(width+1)+i);
Node<SPACE_DIM>* p_node = new Node<SPACE_DIM>(node_index++, is_boundary, i, j, k);
this->mNodes.push_back(p_node);
if (is_boundary)
{
this->mBoundaryNodes.push_back(p_node);
}
}
}
}
// Construct the elements
unsigned elem_index = 0;
unsigned belem_index = 0;
unsigned element_nodes[6][4] = {{0, 1, 5, 7}, {0, 1, 3, 7},
{0, 2, 3, 7}, {0, 2, 6, 7},
{0, 4, 6, 7}, {0, 4, 5, 7}};
/* Alternative tessellation - (gerardus)
* Note that our method (above) has a bias that all tetrahedra share a
* common edge (the diagonal 0 - 7). In the following method the cube is
* split along the "face diagonal" 1-2-5-6 into two prisms. This also has a bias.
*
unsigned element_nodes[6][4] = {{ 0, 6, 5, 4},
{ 0, 2, 6, 1},
{ 0, 1, 6, 5},
{ 1, 2, 3, 7},
{ 1, 2, 6, 7},
{ 1, 6, 7, 5 }};
*/
std::vector<Node<SPACE_DIM>*> tetrahedra_nodes;
for (unsigned k=0; k<depth; k++)
{
if (k!=0)
{
// height*width squares on upper face, k layers of 2*height+2*width square aroun
assert(belem_index == 2*(height*width+k*2*(height+width)) );
}
for (unsigned j=0; j<height; j++)
{
for (unsigned i=0; i<width; i++)
{
// Compute the nodes' index
unsigned global_node_indices[8];
unsigned local_node_index = 0;
for (unsigned z = 0; z < 2; z++)
{
for (unsigned y = 0; y < 2; y++)
{
for (unsigned x = 0; x < 2; x++)
{
global_node_indices[local_node_index] = i+x+(width+1)*(j+y+(height+1)*(k+z));
local_node_index++;
}
}
}
for (unsigned m = 0; m < 6; m++)
{
// Tetrahedra #m
tetrahedra_nodes.clear();
for (unsigned n = 0; n < 4; n++)
{
tetrahedra_nodes.push_back(this->mNodes[global_node_indices[element_nodes[m][n]]]);
}
assert(elem_index == 6 * ((k*height+j)*width+i)+m );
this->mElements.push_back(new Element<ELEMENT_DIM,SPACE_DIM>(elem_index++, tetrahedra_nodes));
}
// Are we at a boundary?
std::vector<Node<SPACE_DIM>*> triangle_nodes;
if (i == 0) //low face at x==0
{
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[0]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[2]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[6]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[0]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[6]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[4]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
}
if (i == width-1) //high face at x=width
{
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[1]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[5]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[7]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[1]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[7]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[3]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
}
if (j == 0) //low face at y==0
{
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[0]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[5]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[1]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[0]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[4]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[5]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
}
if (j == height-1) //high face at y=height
{
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[2]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[3]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[7]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[2]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[7]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[6]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
}
if (k == 0) //low face at z==0
{
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[0]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[3]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[2]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[0]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[1]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[3]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
}
if (k == depth-1) //high face at z=depth
{
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[4]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[7]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[5]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
triangle_nodes.clear();
triangle_nodes.push_back(this->mNodes[global_node_indices[4]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[6]]);
triangle_nodes.push_back(this->mNodes[global_node_indices[7]]);
this->mBoundaryElements.push_back(new BoundaryElement<ELEMENT_DIM-1,SPACE_DIM>(belem_index++,triangle_nodes));
}
}//i
}//j
}//k
this->RefreshMesh();
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ConstructRegularSlabMesh(double spaceStep, double width, double height, double depth)
{
assert(spaceStep>0.0);
assert(width>0.0);
if (ELEMENT_DIM > 1)
{
assert(height>0.0);
}
if (ELEMENT_DIM > 2)
{
assert(depth>0.0);
}
unsigned num_elem_x=(unsigned)((width+0.5*spaceStep)/spaceStep); //0.5*spaceStep is to ensure that rounding down snaps to correct number
unsigned num_elem_y=(unsigned)((height+0.5*spaceStep)/spaceStep);
unsigned num_elem_z=(unsigned)((depth+0.5*spaceStep)/spaceStep);
//Make it obvious that actual_width_x etc. are temporaries used in spotting for exception
{
double actual_width_x=num_elem_x*spaceStep;
double actual_width_y=num_elem_y*spaceStep;
double actual_width_z=num_elem_z*spaceStep;
//Note here that in ELEMENT_DIM > 1 cases there may be a zero height or depth - in which case we don't need to use relative comparisons
// Doing relative comparisons with zero is okay - if we avoid division by zero.
// However, it's best not to test whether " fabs( 0.0 - 0.0) > DBL_EPSILON*0.0 "
if (fabs (actual_width_x - width) > DBL_EPSILON*width
||( height!= 0.0 && fabs (actual_width_y - height) > DBL_EPSILON*height)
||( depth != 0.0 && fabs (actual_width_z - depth) > DBL_EPSILON*depth ))
{
EXCEPTION("Space step does not divide the size of the mesh");
}
}
switch (ELEMENT_DIM)
{
case 1:
this->ConstructLinearMesh(num_elem_x);
break;
case 2:
this->ConstructRectangularMesh(num_elem_x, num_elem_y); // Stagger=default value
break;
default:
case 3:
this->ConstructCuboid(num_elem_x, num_elem_y, num_elem_z);
}
this->Scale(spaceStep, spaceStep, spaceStep);
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ConstructRegularSlabMeshWithDimensionSplit(
unsigned dimension, double spaceStep,
double width, double height, double depth)
{
assert(ELEMENT_DIM == SPACE_DIM); // LCOV_EXCL_LINE
if (dimension >= SPACE_DIM)
{
EXCEPTION("Cannot split on non-existent dimension");
}
// Rotate the width -> height -> depth around (if dimension is non-default)
if (SPACE_DIM == 2 && dimension == 0)
{
double temp = height ;
height = width;
width = temp;
}
else if (SPACE_DIM == 3)
{
unsigned rotate_perm = SPACE_DIM - 1u - dimension; // How many shuffles to get the user's axis to the top
for (unsigned i=0; i<rotate_perm; i++)
{
double temp = depth;
depth = height;
height = width;
width = temp;
}
}
this->ConstructRegularSlabMesh(spaceStep, width, height, depth);
if (SPACE_DIM == 2 && dimension == 0)
{
// Rotate the positions back again x -> y -> x
// this->Rotate(M_PI_2);
c_matrix<double, 2, 2> axis_rotation = zero_matrix<double>(2, 2);
axis_rotation(0,1)=1.0;
axis_rotation(1,0)=-1.0;
this->Rotate(axis_rotation);
this->Translate(0.0, width); // Formerly known as height, but we rotated it
}
else if (SPACE_DIM == 3 && dimension == 0)
{
// this->RotateZ(M_PI_2);
// this->RotateY(M_PI_2);
// RotY * RotZ = [0 0 1; 1 0 0; 0 1 0] x->y->z->x
//this->Translate(depth /*old width*/, width /*old height*/, 0.0);
c_matrix<double, 3, 3> axis_permutation = zero_matrix<double>(3, 3);
axis_permutation(0, 2)=1.0;
axis_permutation(1, 0)=1.0;
axis_permutation(2, 1)=1.0;
this->Rotate(axis_permutation);
}
else if (SPACE_DIM == 3 && dimension == 1)
{
// this->RotateY(-M_PI_2);
// this->RotateZ(-M_PI_2);
// // RotZ' after RotY' = RotZ' * RotY' = [0 1 0; 0 0 1; 1 0 0] x->z->y->x
// this->Translate(height /*old width*/, 0.0, width /*old depth*/);
c_matrix<double, 3, 3> axis_permutation = zero_matrix<double>(3, 3);
axis_permutation(0, 1)=1.0;
axis_permutation(1, 2)=1.0;
axis_permutation(2, 0)=1.0;
this->Rotate(axis_permutation);
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
bool AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::CalculateDesignatedOwnershipOfBoundaryElement( unsigned faceIndex )
{
// This may throw in the distributed parallel case
unsigned tie_break_index = this->GetBoundaryElement(faceIndex)->GetNodeGlobalIndex(0);
// if it is in my range
if (this->GetDistributedVectorFactory()->IsGlobalIndexLocal(tie_break_index))
{
return true;
}
else
{
return false;
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
bool AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::CalculateDesignatedOwnershipOfElement( unsigned elementIndex )
{
// This may throw in the distributed parallel case
unsigned tie_break_index = this->GetElement(elementIndex)->GetNodeGlobalIndex(0);
// if it is in my range
if (this->GetDistributedVectorFactory()->IsGlobalIndexLocal(tie_break_index))
{
return true;
}
else
{
return false;
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::CalculateMaximumNodeConnectivityPerProcess() const
{
if (this->mNodes.size() == 0u)
{
// LCOV_EXCL_START
/*
* Coverage of this block requires a mesh regular slab mesh with the number of
* elements in the primary dimension less than (num_procs - 1), e.g. a 1D mesh
* one element wide with num_procs >=3.
* Note that if a process owns no nodes, then it will still need to enter the
* collective call to MatMPIAIJSetPreallocation. In PetscTools::SetupMat, the
* rowPreallocation parameter uses the special value zero to indicate no preallocation.
*/
// This process owns no nodes and thus owns none of the mesh
return (1u);
// LCOV_EXCL_STOP
}
unsigned nodes_per_element = this->mElements[0]->GetNumNodes(); //Usually ELEMENT_DIM+1, except in Quadratic case
if (ELEMENT_DIM <= 2u)
{
/*
* Note that we start assuming that each internal node is connected to 1 element.
* This is to avoid the trivial situation in which there are no internal nodes (a
* single line or a single triangle. We need the minimum connectivity to be 2 (in 1D) or
* 3 (in 2D) even if there is only one element.
*/
unsigned max_num = 1u; // See note above.
unsigned boundary_max_num = 0u;
for (unsigned local_node_index=0; local_node_index<this->mNodes.size(); local_node_index++)
{
unsigned num = this->mNodes[local_node_index]->GetNumContainingElements();
if (this->mNodes[local_node_index]->IsBoundaryNode()==false && num>max_num)
{
max_num = num;
}
if (this->mNodes[local_node_index]->IsBoundaryNode() && num>boundary_max_num)
{
boundary_max_num = num;
}
}
bool linear = (nodes_per_element == ELEMENT_DIM + 1);
/*
* In 1d each containing element is connected to one node (or 2 if quadratic), add to this the node itself
* and the connectivity is GetNumContainingElements() + 1 or 2*GetNumContainingElements() + 1
*/
if (ELEMENT_DIM == 1)
{
if (linear)
{
return max_num+1;
}
else
{
return 2*max_num+1;
}
}
// Not returned ...else if (ELEMENT_DIM == 2)
/*
* In 2d each containing element adds one connected node (since one node will be shared by a previous element)
* this leads to a connectivity of GetNumContainingElements() + 1 (or 3*GetNumContainingElements() + 1) in the quadratic case
*
* If the node is on a boundary then the one elements will have an unpaired node and the connectivity is
* GetNumContainingElements() + 1 (or 3*(GetNumContainingElements() + 3 for quadratic)
*/
if (linear)
{
return std::max(max_num+1, boundary_max_num+2);
}
else
{
return std::max(3*max_num+1, 3*boundary_max_num+3);
}
}
/*
* In 3d there are many more cases. In general a non-boundary node has fewer connecting nodes than it has elements.
* A node on the boundary may have even fewer, unless it is on a corner and has more faces than it has elements.
* We can, in the linear case estimate an upper bound as max(elements, faces)+2.
* However for the sake of accuracy we are going for a brute force solution.
*
* This may prove to be a bottle-neck...
*/
std::set<unsigned> forward_star_nodes; // Used to collect each node's neighbours
unsigned max_connectivity = 0u;
for (unsigned local_node_index=0; local_node_index<this->mNodes.size(); local_node_index++)
{
forward_star_nodes.clear();
for (typename Node<SPACE_DIM>::ContainingElementIterator it = this->mNodes[local_node_index]->ContainingElementsBegin();
it != this->mNodes[local_node_index]->ContainingElementsEnd();
++it)
{
Element<ELEMENT_DIM, SPACE_DIM>* p_elem = this->GetElement(*it);
for (unsigned i=0; i<nodes_per_element; i++)
{
forward_star_nodes.insert(p_elem->GetNodeGlobalIndex(i));
}
}
if (forward_star_nodes.size() > max_connectivity)
{
max_connectivity = forward_star_nodes.size();
}
}
return max_connectivity;
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetHaloNodeIndices(std::vector<unsigned>& rHaloIndices) const
{
// Make sure the output vector is empty
rHaloIndices.clear();
}
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ConstructFromMesh(AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>& rOtherMesh)
{
for (unsigned i=0; i<rOtherMesh.GetNumNodes(); i++)
{
Node<SPACE_DIM>* p_node = rOtherMesh.GetNode(i);
assert(!p_node->IsDeleted());
const c_vector<double, SPACE_DIM>& location=p_node->rGetLocation();
bool is_boundary=p_node->IsBoundaryNode();
Node<SPACE_DIM>* p_node_copy = new Node<SPACE_DIM>(i, location, is_boundary);
this->mNodes.push_back( p_node_copy );
if (is_boundary)
{
this->mBoundaryNodes.push_back( p_node_copy );
}
}
for (unsigned i=0; i<rOtherMesh.GetNumElements(); i++)
{
Element<ELEMENT_DIM, SPACE_DIM>* p_elem = rOtherMesh.GetElement(i);
assert(!p_elem->IsDeleted());
std::vector<Node<SPACE_DIM>*> nodes_for_element;
for (unsigned j=0; j<p_elem->GetNumNodes(); j++)
{
nodes_for_element.push_back(this->mNodes[ p_elem->GetNodeGlobalIndex(j) ]);
}
Element<ELEMENT_DIM, SPACE_DIM>* p_elem_copy = new Element<ELEMENT_DIM, SPACE_DIM>(i, nodes_for_element);
p_elem_copy->RegisterWithNodes();
this->mElements.push_back(p_elem_copy);
}
for (unsigned i=0; i<rOtherMesh.GetNumBoundaryElements(); i++)
{
BoundaryElement<ELEMENT_DIM-1, SPACE_DIM>* p_b_elem = rOtherMesh.GetBoundaryElement(i);
assert(!p_b_elem->IsDeleted());
std::vector<Node<SPACE_DIM>*> nodes_for_element;
for (unsigned j=0; j<p_b_elem->GetNumNodes(); j++)
{
nodes_for_element.push_back(this->mNodes[ p_b_elem->GetNodeGlobalIndex(j) ]);
}
BoundaryElement<ELEMENT_DIM-1, SPACE_DIM>* p_b_elem_copy = new BoundaryElement<ELEMENT_DIM-1, SPACE_DIM>(i, nodes_for_element);
p_b_elem_copy->RegisterWithNodes();
this->mBoundaryElements.push_back(p_b_elem_copy);
}
this->RefreshMesh();
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::CalculateNodeExchange(
std::vector<std::vector<unsigned> >& rNodesToSendPerProcess,
std::vector<std::vector<unsigned> >& rNodesToReceivePerProcess)
{
assert( rNodesToSendPerProcess.empty() );
assert( rNodesToReceivePerProcess.empty() );
//Initialise vectors of sets for the exchange data
std::vector<std::set<unsigned> > node_sets_to_send_per_process;
std::vector<std::set<unsigned> > node_sets_to_receive_per_process;
node_sets_to_send_per_process.resize(PetscTools::GetNumProcs());
node_sets_to_receive_per_process.resize(PetscTools::GetNumProcs());
std::vector<unsigned> global_lows = this->GetDistributedVectorFactory()->rGetGlobalLows();
for (typename AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ElementIterator iter = this->GetElementIteratorBegin();
iter != this->GetElementIteratorEnd();
++iter)
{
std::vector <unsigned> nodes_on_this_process;
std::vector <unsigned> nodes_not_on_this_process;
//Calculate local and non-local node indices
for (unsigned i=0; i<ELEMENT_DIM+1; i++)
{
unsigned node_index=iter->GetNodeGlobalIndex(i);
if (this->GetDistributedVectorFactory()->IsGlobalIndexLocal(node_index))
{
nodes_on_this_process.push_back(node_index);
}
else
{
nodes_not_on_this_process.push_back(node_index);
}
}
/*
* If this is a TetrahedralMesh (not distributed) then it's possible that we own none
* of the nodes in this element. In that case we must skip the element.
*/
if (nodes_on_this_process.empty())
{
continue; //Move on to the next element.
///\todo #2426 This is where we should check that we DO HAVE a Tetrahedral (not Distributed mesh)
}
// If there are any non-local nodes on this element then we need to add to the data exchange
if (!nodes_not_on_this_process.empty())
{
for (unsigned i=0; i<nodes_not_on_this_process.size(); i++)
{
// Calculate who owns this remote node
unsigned remote_process=global_lows.size()-1;
for (; global_lows[remote_process] > nodes_not_on_this_process[i]; remote_process--)
{
}
// Add this node to the correct receive set
node_sets_to_receive_per_process[remote_process].insert(nodes_not_on_this_process[i]);
// Add all local nodes to the send set
for (unsigned j=0; j<nodes_on_this_process.size(); j++)
{
node_sets_to_send_per_process[remote_process].insert(nodes_on_this_process[j]);
}
}
}
}
for (unsigned process_number = 0; process_number < PetscTools::GetNumProcs(); process_number++)
{
std::vector<unsigned> process_send_vector( node_sets_to_send_per_process[process_number].begin(),
node_sets_to_send_per_process[process_number].end() );
std::sort(process_send_vector.begin(), process_send_vector.end());
rNodesToSendPerProcess.push_back(process_send_vector);
std::vector<unsigned> process_receive_vector( node_sets_to_receive_per_process[process_number].begin(),
node_sets_to_receive_per_process[process_number].end() );
std::sort(process_receive_vector.begin(), process_receive_vector.end());
rNodesToReceivePerProcess.push_back(process_receive_vector);
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
c_vector<double, 2> AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::CalculateMinMaxEdgeLengths()
{
c_vector<double, 2> min_max;
min_max[0] = DBL_MAX;
min_max[1] = 0.0;
for (typename AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::ElementIterator ele_iter = GetElementIteratorBegin();
ele_iter != GetElementIteratorEnd();
++ele_iter)
{
c_vector<double, 2> ele_min_max = ele_iter->CalculateMinMaxEdgeLengths();
if (ele_min_max[0] < min_max[0])
{
min_max[0] = ele_min_max[0];
}
if (ele_min_max[1] > min_max[1])
{
min_max[1] = ele_min_max[1];
}
}
return min_max;
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetContainingElementIndex(const ChastePoint<SPACE_DIM>& rTestPoint,
bool strict,
std::set<unsigned> testElements,
bool onlyTryWithTestElements)
{
for (std::set<unsigned>::iterator iter=testElements.begin(); iter!=testElements.end(); iter++)
{
assert(*iter<this->GetNumElements());
if (this->mElements[*iter]->IncludesPoint(rTestPoint, strict))
{
assert(!this->mElements[*iter]->IsDeleted());
return *iter;
}
}
if (!onlyTryWithTestElements)
{
for (unsigned i=0; i<this->mElements.size(); i++)
{
if (this->mElements[i]->IncludesPoint(rTestPoint, strict))
{
assert(!this->mElements[i]->IsDeleted());
return i;
}
}
}
// If it's in none of the elements, then throw
std::stringstream ss;
ss << "Point [";
for (unsigned j=0; (int)j<(int)SPACE_DIM-1; j++)
{
ss << rTestPoint[j] << ",";
}
ss << rTestPoint[SPACE_DIM-1] << "] is not in ";
if (!onlyTryWithTestElements)
{
ss << "mesh - all elements tested";
}
else
{
ss << "set of elements given";
}
EXCEPTION(ss.str());
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetNearestElementIndexFromTestElements(const ChastePoint<SPACE_DIM>& rTestPoint,
std::set<unsigned> testElements)
{
assert(testElements.size() > 0);
EXCEPT_IF_NOT(ELEMENT_DIM == SPACE_DIM); // LCOV_EXCL_LINE // CalculateInterpolationWeights hits an assertion otherwise
double max_min_weight = -std::numeric_limits<double>::infinity();
unsigned closest_index = 0;
for (std::set<unsigned>::iterator iter = testElements.begin();
iter != testElements.end();
iter++)
{
c_vector<double, ELEMENT_DIM+1> weight = this->mElements[*iter]->CalculateInterpolationWeights(rTestPoint);
double neg_weight_sum = 0.0;
for (unsigned j=0; j<=ELEMENT_DIM; j++)
{
if (weight[j] < 0.0)
{
neg_weight_sum += weight[j];
}
}
if (neg_weight_sum > max_min_weight)
{
max_min_weight = neg_weight_sum;
closest_index = *iter;
}
}
assert(!this->mElements[closest_index]->IsDeleted());
return closest_index;
}
// Explicit instantiation
template class AbstractTetrahedralMesh<1,1>;
template class AbstractTetrahedralMesh<1,2>;
template class AbstractTetrahedralMesh<1,3>;
template class AbstractTetrahedralMesh<2,2>;
template class AbstractTetrahedralMesh<2,3>;
template class AbstractTetrahedralMesh<3,3>;
|
#include <QtConcurrent/QtConcurrent>
#include "projectdetailsviewmodel.hpp"
#include "databasemanager.hpp"
ProjectDetailsViewModel::ProjectDetailsViewModel(QObject *parent)
: QObject (parent)
{
m_isWorking = false;
m_currentProject = nullptr;
m_appDatabase = QSqlDatabase::database(DATABASE_CONNECTION_NAME);
connect(this, &ProjectDetailsViewModel::membersReset, &m_memberModel, &MemberModel::membersReset);
}
ProjectDetailsViewModel::~ProjectDetailsViewModel()
{
if(m_currentProject != nullptr)
{
m_currentProject->deleteLater();
}
}
bool ProjectDetailsViewModel::isWorking() const
{
return m_isWorking;
}
Project* ProjectDetailsViewModel::currentProject() const
{
return m_currentProject;
}
QObject* ProjectDetailsViewModel::memberModel()
{
return dynamic_cast<QObject*>(&m_memberModel);
}
void ProjectDetailsViewModel::readProject(const quint64 &guid)
{
setIsWorking(true);
ProjectDetailsViewModel *viewModel = this;
QFuture<void> future = QtConcurrent::run([viewModel, guid]() {
viewModel->m_projectDao.setDatabase(viewModel->m_appDatabase);
if (viewModel->m_currentProject != nullptr)
{
Project *oldProject = viewModel->m_currentProject;
oldProject->deleteLater();
oldProject = nullptr;
viewModel->m_currentProject = new Project();
}
XMatcher matcher;
matcher.insert("guid", guid);
viewModel->m_projectDao.findOneBy(viewModel->m_currentProject, matcher);
viewModel->m_projectDao.resolveForeigns(viewModel->m_currentProject);
viewModel->m_currentProject->moveToThread(viewModel->thread());
emit viewModel->currentProjectChanged(viewModel->m_currentProject);
emit viewModel->membersReset(viewModel->m_currentProject->members());
viewModel->setIsWorking(false);
});
}
void ProjectDetailsViewModel::setIsWorking(const bool &isWorking)
{
if(m_isWorking != isWorking)
{
m_isWorking = isWorking;
emit isWorkingChanged(m_isWorking);
}
}
|
#include "Stage2.hpp"
Stage2::Stage2()
{
BGScale=2;
Visiblepath=true;
if (bacgroundImg.LoadFromFile("contents/Fantasy.jpg"))
{
BGWidth = bacgroundImg.GetWidth(); // megvizsgálom a háttér méretét
BGHeight = bacgroundImg.GetHeight();
BacgroundSp.SetImage(bacgroundImg);
BacgroundSp.SetScale(BGScale,BGScale);
cout << "Map original background size : " << BGWidth << " X " << BGHeight; // kikerül konzolra a háttér eredeti mérete
if (BGScale != 1)
{
BGWidth*=BGScale;
BGHeight*=BGScale;
cout << "\nMap is scaled (" << BGScale << "X), new size : " << BGWidth << " X " << BGHeight << "\n";// valamint ha átméretezem, akkor a megváltoztatott méret is
}
if (BGWidth<800) BGWidth=800; //apró óvintézkedés, hogy ha túl kicsi lenne a méret, véletlenül se omoljunk össze
if (BGHeight<600)
{
BacgroundSp.SetPosition(0,600-BGHeight);//ha a kép mérete nem éri el a 600at, akkor lejjebtolja, hogy a hézag ne alul hanem felül legyen, így még használható
BGHeight=600;
}
}
else
{
BGWidth = 800; // megvizsgálom a háttér méretét
BGHeight = 600;
}
topImg.LoadFromFile("contents/Fantasy3.png");
topSp.SetImage(topImg);
topSp.SetScale(BGScale,BGScale);
}
void Stage2::MakeStage(RenderWindow* window, b2World* World, TempObjectHandler* toh)
{
Window=window;
world=World;
TOH=toh;
//bacgroundImg.LoadFromFile("contents/Fantasy_Soldiers_of_the_Future_014066_.jpg");
/*bacgroundImg.LoadFromFile("contents/Fantasy.jpg");
int BGWidth = bacgroundImg.GetWidth(); // megvizsgálom a háttér méretét
int BGHeight = bacgroundImg.GetHeight();
float BGScale = 1.6;
BacgroundSp.SetImage(bacgroundImg);
BacgroundSp.SetScale(BGScale,BGScale);
cout << "Map original background size : " << BGWidth << " X " << BGHeight;
if (BGScale != 1)
{
BGWidth*=BGScale;
BGHeight*=BGScale;
cout << "\nMap is scaled (" << BGScale << "X), new size : " << BGWidth << " X " << BGHeight << "\n";
}*/
//ground
b2BodyDef groundBodyDef;
groundBodyDef.position.Set(BGWidth/2, BGHeight);
b2Body* groundBody = world->CreateBody(&groundBodyDef);
b2PolygonDef groundShapeDef;
groundShapeDef.SetAsBox(BGWidth/2, 5.0f);
groundShapeDef.friction=1.1f;
groundBody->CreateShape(&groundShapeDef);
grounddata.label="GROUND";
grounddata.object=this;
groundBody->SetUserData(&grounddata);
//grassImg.LoadFromFile("contents/d.bg_grass.png");
//grassImg.LoadFromFile("contents/xmas_ground.png");
GrassSp.SetImage(grassImg);
GrassSp.SetPosition(-50,1760);
//Ground=Shape::Rectangle(0, 0, 800, 10, Color(0,0,200));
//Ground.SetCenter(400,5);
//Ground.SetPosition(400,595);
//wall 1
b2BodyDef wall1BodyDef;
wall1BodyDef.position.Set(5.0f, BGHeight/2);
wall1Body = world->CreateBody(&wall1BodyDef);
b2PolygonDef wall1ShapeDef;
wall1ShapeDef.SetAsBox(5.0f, BGHeight/2);
wall1Body->CreateShape(&wall1ShapeDef);
wall1data.label="wall1";
wall1data.object=this;
wall1Body->SetUserData(&wall1data);
Wall1=Shape::Rectangle(0, 0, wall1ShapeDef.vertices[2].x*2, wall1ShapeDef.vertices[2].y*2, Color(0,0,200));
Wall1.SetCenter(wall1ShapeDef.vertices[2].x, wall1ShapeDef.vertices[2].y);
Wall1.SetPosition(wall1BodyDef.position.x,wall1BodyDef.position.y);
//wall 2
b2BodyDef wall2BodyDef;
wall2BodyDef.position.Set(BGWidth, BGHeight/2);
wall2Body = world->CreateBody(&wall2BodyDef);
b2PolygonDef wall2ShapeDef;
wall2ShapeDef.SetAsBox(5.0f, BGHeight/2);
wall2Body->CreateShape(&wall2ShapeDef);
wall2data.label="wall2";
wall2data.object=this;
wall2Body->SetUserData(&wall2data);
Wall2=Shape::Rectangle(0, 0, wall2ShapeDef.vertices[2].x*2, wall2ShapeDef.vertices[2].y*2, Color(0,0,200));
Wall2.SetCenter(wall2ShapeDef.vertices[2].x, wall2ShapeDef.vertices[2].y);
Wall2.SetPosition(wall2BodyDef.position.x,wall2BodyDef.position.y);
//roof
b2BodyDef roofBodyDef;
roofBodyDef.position.Set(BGWidth/2, 5.0f);
roofBody = world->CreateBody(&roofBodyDef);
b2PolygonDef roofShapeDef;
roofShapeDef.SetAsBox(BGWidth/2, 5.0f);
roofBody->CreateShape(&roofShapeDef);
roofdata.label="roof";
roofdata.object=this;
roofBody->SetUserData(&roofdata);
Roof=Shape::Rectangle(0, 0, roofShapeDef.vertices[2].x*2, roofShapeDef.vertices[2].y*2, Color(0,0,200));
Roof.SetCenter(roofShapeDef.vertices[2].x, roofShapeDef.vertices[2].y);
Roof.SetPosition(roofBodyDef.position.x,roofBodyDef.position.y);
//path 01
b2BodyDef path01BodyDef;
path01BodyDef.position.Set(RelativeWidth(20), RelativeHeight(83));
path01BodyDef.angle=(20*0.017453);
path01Body = world->CreateBody(&path01BodyDef);
b2PolygonDef path01ShapeDef;
path01ShapeDef.SetAsBox(RelativeWidth(5), 5.0f);
path01Body->CreateShape(&path01ShapeDef);
path01data.label="path01";
path01data.object=this;
path01Body->SetUserData(&path01data);
Path01=Shape::Rectangle(0, 0, path01ShapeDef.vertices[2].x*2, path01ShapeDef.vertices[2].y*2, Color(0,200,200));
Path01.SetCenter(path01ShapeDef.vertices[2].x, path01ShapeDef.vertices[2].y);
Path01.SetPosition(path01BodyDef.position.x,path01BodyDef.position.y);
Path01.SetRotation(-path01BodyDef.angle*57.29577);
//path02
b2BodyDef path02BodyDef;
path02BodyDef.position.Set(RelativeWidth(13), RelativeHeight(77));
path02BodyDef.angle=(30*0.017453);
path02Body = world->CreateBody(&path02BodyDef);
b2PolygonDef path02ShapeDef;
path02ShapeDef.SetAsBox(RelativeWidth(5), 5.0f);
path02Body->CreateShape(&path02ShapeDef);
path02data.label="path02";
path02data.object=this;
path02Body->SetUserData(&path02data);
Path02=Shape::Rectangle(0, 0, path02ShapeDef.vertices[2].x*2, path02ShapeDef.vertices[2].y*2, Color(0,200,200));
Path02.SetCenter(path02ShapeDef.vertices[2].x, path02ShapeDef.vertices[2].y);
Path02.SetPosition(path02BodyDef.position.x,path02BodyDef.position.y);
Path02.SetRotation(-path02BodyDef.angle*57.29577);
//path03
b2BodyDef path03BodyDef;
path03BodyDef.position.Set(RelativeWidth(25), RelativeHeight(84));
path03BodyDef.angle=(-10*0.017453);
path03Body = world->CreateBody(&path03BodyDef);
b2PolygonDef path03ShapeDef;
path03ShapeDef.SetAsBox(RelativeWidth(2.5), 5.0f);
path03Body->CreateShape(&path03ShapeDef);
path03data.label="path03";
path03data.object=this;
path03Body->SetUserData(&path03data);
Path03=Shape::Rectangle(0, 0, path03ShapeDef.vertices[2].x*2, path03ShapeDef.vertices[2].y*2, Color(0,200,200));
Path03.SetCenter(path03ShapeDef.vertices[2].x, path03ShapeDef.vertices[2].y);
Path03.SetPosition(path03BodyDef.position.x,path03BodyDef.position.y);
Path03.SetRotation(-path03BodyDef.angle*57.29577);
//path04
b2BodyDef path04BodyDef;
path04BodyDef.position.Set(RelativeWidth(27.5), RelativeHeight(81));
path04BodyDef.angle=(-50*0.017453);
path04Body = world->CreateBody(&path04BodyDef);
b2PolygonDef path04ShapeDef;
path04ShapeDef.SetAsBox(RelativeWidth(1.7), 5.0f);
path04Body->CreateShape(&path04ShapeDef);
path04data.label="path04";
path04data.object=this;
path04Body->SetUserData(&path04data);
Path04=Shape::Rectangle(0, 0, path04ShapeDef.vertices[2].x*2, path04ShapeDef.vertices[2].y*2, Color(0,200,200));
Path04.SetCenter(path04ShapeDef.vertices[2].x, path04ShapeDef.vertices[2].y);
Path04.SetPosition(path04BodyDef.position.x,path04BodyDef.position.y);
Path04.SetRotation(-path04BodyDef.angle*57.29577);
//path5
b2BodyDef path05BodyDef;
path05BodyDef.position.Set(RelativeWidth(29.4), RelativeHeight(77.9));
path05BodyDef.angle=(-32*0.017453);
path05Body = world->CreateBody(&path05BodyDef);
b2PolygonDef path05ShapeDef;
path05ShapeDef.SetAsBox(RelativeWidth(1), 5.0f);
path05Body->CreateShape(&path05ShapeDef);
path05data.label="path05";
path05data.object=this;
path05Body->SetUserData(&path05data);
Path05=Shape::Rectangle(0, 0, path05ShapeDef.vertices[2].x*2, path05ShapeDef.vertices[2].y*2, Color(0,200,200));
Path05.SetCenter(path05ShapeDef.vertices[2].x, path05ShapeDef.vertices[2].y);
Path05.SetPosition(path05BodyDef.position.x,path05BodyDef.position.y);
Path05.SetRotation(-path05BodyDef.angle*57.29577);
//path6
b2BodyDef path06BodyDef;
path06BodyDef.position.Set(RelativeWidth(31.6), RelativeHeight(76.6));
path06BodyDef.angle=(-7*0.017453);
path06Body = world->CreateBody(&path06BodyDef);
b2PolygonDef path06ShapeDef;
path06ShapeDef.SetAsBox(RelativeWidth(1.4), 5.0f);
path06Body->CreateShape(&path06ShapeDef);
path06data.label="path06";
path06data.object=this;
path06Body->SetUserData(&path06data);
Path06=Shape::Rectangle(0, 0, path06ShapeDef.vertices[2].x*2, path06ShapeDef.vertices[2].y*2, Color(0,200,200));
Path06.SetCenter(path06ShapeDef.vertices[2].x, path06ShapeDef.vertices[2].y);
Path06.SetPosition(path06BodyDef.position.x,path06BodyDef.position.y);
Path06.SetRotation(-path06BodyDef.angle*57.29577);
//path7
b2BodyDef path07BodyDef;
path07BodyDef.position.Set(RelativeWidth(34.3), RelativeHeight(76.74));
path07BodyDef.angle=(10*0.017453);
path07Body = world->CreateBody(&path07BodyDef);
b2PolygonDef path07ShapeDef;
path07ShapeDef.SetAsBox(RelativeWidth(1.4), 5.0f);
path07Body->CreateShape(&path07ShapeDef);
path07data.label="path07";
path07data.object=this;
path07Body->SetUserData(&path07data);
Path07=Shape::Rectangle(0, 0, path07ShapeDef.vertices[2].x*2, path07ShapeDef.vertices[2].y*2, Color(0,200,200));
Path07.SetCenter(path07ShapeDef.vertices[2].x, path07ShapeDef.vertices[2].y);
Path07.SetPosition(path07BodyDef.position.x,path07BodyDef.position.y);
Path07.SetRotation(-path07BodyDef.angle*57.29577);
//path8
b2BodyDef path08BodyDef;
path08BodyDef.position.Set(RelativeWidth(39), RelativeHeight(76));
path08BodyDef.angle=(-10*0.017453);
path08Body = world->CreateBody(&path08BodyDef);
b2PolygonDef path08ShapeDef;
path08ShapeDef.SetAsBox(RelativeWidth(4), 5.0f);
path08Body->CreateShape(&path08ShapeDef);
path08data.label="path08";
path08data.object=this;
path08Body->SetUserData(&path08data);
Path08=Shape::Rectangle(0, 0, path08ShapeDef.vertices[2].x*2, path08ShapeDef.vertices[2].y*2, Color(0,200,200));
Path08.SetCenter(path08ShapeDef.vertices[2].x, path08ShapeDef.vertices[2].y);
Path08.SetPosition(path08BodyDef.position.x,path08BodyDef.position.y);
Path08.SetRotation(-path08BodyDef.angle*57.29577);
//path9
b2BodyDef path09BodyDef;
path09BodyDef.position.Set(RelativeWidth(54), RelativeHeight(74.74));
//path09BodyDef.angle=(0*0.017453);
path09Body = world->CreateBody(&path09BodyDef);
b2PolygonDef path09ShapeDef;
path09ShapeDef.SetAsBox(RelativeWidth(11), 5.0f);
path09Body->CreateShape(&path09ShapeDef);
path09data.label="path09";
path09data.object=this;
path09Body->SetUserData(&path09data);
Path09=Shape::Rectangle(0, 0, path09ShapeDef.vertices[2].x*2, path09ShapeDef.vertices[2].y*2, Color(0,200,200));
Path09.SetCenter(path09ShapeDef.vertices[2].x, path09ShapeDef.vertices[2].y);
Path09.SetPosition(path09BodyDef.position.x,path09BodyDef.position.y);
// path09.SetRotation(-path09BodyDef.angle*57.29577);
//path10 stair
b2BodyDef path10BodyDef;
path10BodyDef.position.Set(RelativeWidth(69.5), RelativeHeight(68.9));
path10BodyDef.angle=(5*0.017453);
path10Body = world->CreateBody(&path10BodyDef);
b2PolygonDef path10ShapeDef;
path10ShapeDef.SetAsBox(RelativeWidth(1.5), 5.0f);
path10Body->CreateShape(&path10ShapeDef);
path10data.label="path10";
path10data.object=this;
path10Body->SetUserData(&path10data);
Path10=Shape::Rectangle(0, 0, path10ShapeDef.vertices[2].x*2, path10ShapeDef.vertices[2].y*2, Color(0,200,200));
Path10.SetCenter(path10ShapeDef.vertices[2].x, path10ShapeDef.vertices[2].y);
Path10.SetPosition(path10BodyDef.position.x,path10BodyDef.position.y);
Path10.SetRotation(-path10BodyDef.angle*57.29577);
//path11
b2BodyDef path11BodyDef;
path11BodyDef.position.Set(RelativeWidth(82), RelativeHeight(63));
//path11BodyDef.angle=(0*0.017453);
path11Body = world->CreateBody(&path11BodyDef);
b2PolygonDef path11ShapeDef;
path11ShapeDef.SetAsBox(RelativeWidth(7.8), 5.0f);
path11Body->CreateShape(&path11ShapeDef);
path11data.label="path11";
path11data.object=this;
path11Body->SetUserData(&path11data);
Path11=Shape::Rectangle(0, 0, path11ShapeDef.vertices[2].x*2, path11ShapeDef.vertices[2].y*2, Color(0,200,200));
Path11.SetCenter(path11ShapeDef.vertices[2].x, path11ShapeDef.vertices[2].y);
Path11.SetPosition(path11BodyDef.position.x,path11BodyDef.position.y);
// path11.SetRotation(-path11BodyDef.angle*57.29577);
//path12 dock
b2BodyDef path12BodyDef;
path12BodyDef.position.Set(RelativeWidth(72), RelativeHeight(76.7));
path12BodyDef.angle=(9*0.017453);
path12Body = world->CreateBody(&path12BodyDef);
b2PolygonDef path12ShapeDef;
path12ShapeDef.SetAsBox(RelativeWidth(7), 5.0f);
path12Body->CreateShape(&path12ShapeDef);
path12data.label="path12";
path12data.object=this;
path12Body->SetUserData(&path12data);
Path12=Shape::Rectangle(0, 0, path12ShapeDef.vertices[2].x*2, path12ShapeDef.vertices[2].y*2, Color(0,200,200));
Path12.SetCenter(path12ShapeDef.vertices[2].x, path12ShapeDef.vertices[2].y);
Path12.SetPosition(path12BodyDef.position.x,path12BodyDef.position.y);
Path12.SetRotation(-path12BodyDef.angle*57.29577);
//path13 barrel
b2BodyDef path13BodyDef;
path13BodyDef.position.Set(RelativeWidth(8.2), RelativeHeight(70));
path13BodyDef.angle=(85*0.017453);
path13Body = world->CreateBody(&path13BodyDef);
b2PolygonDef path13ShapeDef;
path13ShapeDef.SetAsBox(RelativeWidth(2.3), 5.0f);
path13Body->CreateShape(&path13ShapeDef);
path13data.label="path13";
path13data.object=this;
path13Body->SetUserData(&path13data);
Path13=Shape::Rectangle(0, 0, path13ShapeDef.vertices[2].x*2, path13ShapeDef.vertices[2].y*2, Color(0,200,200));
Path13.SetCenter(path13ShapeDef.vertices[2].x, path13ShapeDef.vertices[2].y);
Path13.SetPosition(path13BodyDef.position.x,path13BodyDef.position.y);
Path13.SetRotation(-path13BodyDef.angle*57.29577);
//path14barrel
b2BodyDef path14BodyDef;
path14BodyDef.position.Set(RelativeWidth(8.5), RelativeHeight(71.8));
path14BodyDef.angle=(50*0.017453);
path14Body = world->CreateBody(&path14BodyDef);
b2PolygonDef path14ShapeDef;
path14ShapeDef.SetAsBox(RelativeWidth(1), 5.0f);
path14Body->CreateShape(&path14ShapeDef);
path14data.label="path14";
path14data.object=this;
path14Body->SetUserData(&path14data);
Path14=Shape::Rectangle(0, 0, path14ShapeDef.vertices[2].x*2, path14ShapeDef.vertices[2].y*2, Color(0,200,200));
Path14.SetCenter(path14ShapeDef.vertices[2].x, path14ShapeDef.vertices[2].y);
Path14.SetPosition(path14BodyDef.position.x,path14BodyDef.position.y);
Path14.SetRotation(-path14BodyDef.angle*57.29577);
//path15 barrel
b2BodyDef path15BodyDef;
path15BodyDef.position.Set(RelativeWidth(7), RelativeHeight(65.5));
path15BodyDef.angle=(5*0.017453);
path15Body = world->CreateBody(&path15BodyDef);
b2PolygonDef path15ShapeDef;
path15ShapeDef.SetAsBox(RelativeWidth(1), 5.0f);
path15Body->CreateShape(&path15ShapeDef);
path15data.label="path15";
path15data.object=this;
path15Body->SetUserData(&path15data);
Path15=Shape::Rectangle(0, 0, path15ShapeDef.vertices[2].x*2, path15ShapeDef.vertices[2].y*2, Color(0,200,200));
Path15.SetCenter(path15ShapeDef.vertices[2].x, path15ShapeDef.vertices[2].y);
Path15.SetPosition(path15BodyDef.position.x,path15BodyDef.position.y);
Path15.SetRotation(-path15BodyDef.angle*57.29577);
//path16barrel
b2BodyDef path16BodyDef;
path16BodyDef.position.Set(RelativeWidth(6), RelativeHeight(62.5));
path16BodyDef.angle=(85*0.017453);
path16Body = world->CreateBody(&path16BodyDef);
b2PolygonDef path16ShapeDef;
path16ShapeDef.SetAsBox(RelativeWidth(2), 5.0f);
path16Body->CreateShape(&path16ShapeDef);
path16data.label="path16";
path16data.object=this;
path16Body->SetUserData(&path16data);
Path16=Shape::Rectangle(0, 0, path16ShapeDef.vertices[2].x*2, path16ShapeDef.vertices[2].y*2, Color(0,200,200));
Path16.SetCenter(path16ShapeDef.vertices[2].x, path16ShapeDef.vertices[2].y);
Path16.SetPosition(path16BodyDef.position.x,path16BodyDef.position.y);
Path16.SetRotation(-path16BodyDef.angle*57.29577);
//path17barrel
b2BodyDef path17BodyDef;
path17BodyDef.position.Set(RelativeWidth(5.9), RelativeHeight(58));
path17BodyDef.angle=(-85*0.017453);
path17Body = world->CreateBody(&path17BodyDef);
b2PolygonDef path17ShapeDef;
path17ShapeDef.SetAsBox(RelativeWidth(1), 5.0f);
path17Body->CreateShape(&path17ShapeDef);
path17data.label="path17";
path17data.object=this;
path17Body->SetUserData(&path17data);
Path17=Shape::Rectangle(0, 0, path17ShapeDef.vertices[2].x*2, path17ShapeDef.vertices[2].y*2, Color(0,200,200));
Path17.SetCenter(path17ShapeDef.vertices[2].x, path17ShapeDef.vertices[2].y);
Path17.SetPosition(path17BodyDef.position.x,path17BodyDef.position.y);
Path17.SetRotation(-path17BodyDef.angle*57.29577);
//path18barrel
b2BodyDef path18BodyDef;
path18BodyDef.position.Set(RelativeWidth(3), RelativeHeight(54.5));
path18BodyDef.angle=(15*0.017453);
path18Body = world->CreateBody(&path18BodyDef);
b2PolygonDef path18ShapeDef;
path18ShapeDef.SetAsBox(RelativeWidth(3), 5.0f);
path18Body->CreateShape(&path18ShapeDef);
path18data.label="path18";
path18data.object=this;
path18Body->SetUserData(&path18data);
Path18=Shape::Rectangle(0, 0, path18ShapeDef.vertices[2].x*2, path18ShapeDef.vertices[2].y*2, Color(0,200,200));
Path18.SetCenter(path18ShapeDef.vertices[2].x, path18ShapeDef.vertices[2].y);
Path18.SetPosition(path18BodyDef.position.x,path18BodyDef.position.y);
Path18.SetRotation(-path18BodyDef.angle*57.29577);
//path19barrel indoor
b2BodyDef path19BodyDef;
path19BodyDef.position.Set(RelativeWidth(16), RelativeHeight(55.5));
path19BodyDef.angle=(-35*0.017453);
path19Body = world->CreateBody(&path19BodyDef);
b2PolygonDef path19ShapeDef;
path19ShapeDef.SetAsBox(RelativeWidth(4.5), 5.0f);
path19Body->CreateShape(&path19ShapeDef);
path19data.label="path19";
path19data.object=this;
path19Body->SetUserData(&path19data);
Path19=Shape::Rectangle(0, 0, path19ShapeDef.vertices[2].x*2, path19ShapeDef.vertices[2].y*2, Color(0,200,200));
Path19.SetCenter(path19ShapeDef.vertices[2].x, path19ShapeDef.vertices[2].y);
Path19.SetPosition(path19BodyDef.position.x,path19BodyDef.position.y);
Path19.SetRotation(-path19BodyDef.angle*57.29577);
//path20barrel indoor
b2BodyDef path20BodyDef;
path20BodyDef.position.Set(RelativeWidth(34.9), RelativeHeight(49.9));
path20BodyDef.angle=(-2*0.017453);
path20Body = world->CreateBody(&path20BodyDef);
b2PolygonDef path20ShapeDef;
path20ShapeDef.SetAsBox(RelativeWidth(15.25), 5.0f);
path20Body->CreateShape(&path20ShapeDef);
path20data.label="path20";
path20data.object=this;
path20Body->SetUserData(&path20data);
Path20=Shape::Rectangle(0, 0, path20ShapeDef.vertices[2].x*2, path20ShapeDef.vertices[2].y*2, Color(0,200,200));
Path20.SetCenter(path20ShapeDef.vertices[2].x, path20ShapeDef.vertices[2].y);
Path20.SetPosition(path20BodyDef.position.x,path20BodyDef.position.y);
Path20.SetRotation(-path20BodyDef.angle*57.29577);
//path21 upper tunnel
b2BodyDef path21BodyDef;
path21BodyDef.position.Set(RelativeWidth(7.2), RelativeHeight(44));
//path21BodyDef.angle=(15*0.017453);
path21Body = world->CreateBody(&path21BodyDef);
b2PolygonDef path21ShapeDef;
path21ShapeDef.SetAsBox(RelativeWidth(1.5), 5.0f);
path21Body->CreateShape(&path21ShapeDef);
path21data.label="path21";
path21data.object=this;
path21Body->SetUserData(&path21data);
Path21=Shape::Rectangle(0, 0, path21ShapeDef.vertices[2].x*2, path21ShapeDef.vertices[2].y*2, Color(0,200,200));
Path21.SetCenter(path21ShapeDef.vertices[2].x, path21ShapeDef.vertices[2].y);
Path21.SetPosition(path21BodyDef.position.x,path21BodyDef.position.y);
//Path21.SetRotation(-path21BodyDef.angle*57.29577);
//path22barrel upper tunnel
b2BodyDef path22BodyDef;
path22BodyDef.position.Set(RelativeWidth(23.5), RelativeHeight(39));
path22BodyDef.angle=(-10.5*0.017453);
path22Body = world->CreateBody(&path22BodyDef);
b2PolygonDef path22ShapeDef;
path22ShapeDef.SetAsBox(RelativeWidth(15.25), 5.0f);
path22Body->CreateShape(&path22ShapeDef);
path22data.label="path22";
path22data.object=this;
path22Body->SetUserData(&path22data);
Path22=Shape::Rectangle(0, 0, path22ShapeDef.vertices[2].x*2, path22ShapeDef.vertices[2].y*2, Color(0,200,200));
Path22.SetCenter(path22ShapeDef.vertices[2].x, path22ShapeDef.vertices[2].y);
Path22.SetPosition(path22BodyDef.position.x,path22BodyDef.position.y);
Path22.SetRotation(-path22BodyDef.angle*57.29577);
//path23 kerítés
b2BodyDef path23BodyDef;
path23BodyDef.position.Set(RelativeWidth(69.5), RelativeHeight(55.5));
path23BodyDef.angle=(-5*0.017453);
path23Body = world->CreateBody(&path23BodyDef);
b2PolygonDef path23ShapeDef;
path23ShapeDef.SetAsBox(RelativeWidth(2), 5.0f);
path23Body->CreateShape(&path23ShapeDef);
path23data.label="path23";
path23data.object=this;
path23Body->SetUserData(&path23data);
Path23=Shape::Rectangle(0, 0, path23ShapeDef.vertices[2].x*2, path23ShapeDef.vertices[2].y*2, Color(0,200,200));
Path23.SetCenter(path23ShapeDef.vertices[2].x, path23ShapeDef.vertices[2].y);
Path23.SetPosition(path23BodyDef.position.x,path23BodyDef.position.y);
Path23.SetRotation(-path23BodyDef.angle*57.29577);
//path24 kerítés
b2BodyDef path24BodyDef;
path24BodyDef.position.Set(RelativeWidth(62.2), RelativeHeight(47));
path24BodyDef.angle=(25*0.017453);
path24Body = world->CreateBody(&path24BodyDef);
b2PolygonDef path24ShapeDef;
path24ShapeDef.SetAsBox(RelativeWidth(2), 5.0f);
path24Body->CreateShape(&path24ShapeDef);
path24data.label="path24";
path24data.object=this;
path24Body->SetUserData(&path24data);
Path24=Shape::Rectangle(0, 0, path24ShapeDef.vertices[2].x*2, path24ShapeDef.vertices[2].y*2, Color(0,200,200));
Path24.SetCenter(path24ShapeDef.vertices[2].x, path24ShapeDef.vertices[2].y);
Path24.SetPosition(path24BodyDef.position.x,path24BodyDef.position.y);
Path24.SetRotation(-path24BodyDef.angle*57.29577);
//balcony01
b2BodyDef balcony01BodyDef;
balcony01BodyDef.position.Set(RelativeWidth(46.1), RelativeHeight(33.737));
balcony01BodyDef.angle=(-1*0.017453);
balcony01Body = world->CreateBody(&balcony01BodyDef);
b2PolygonDef balcony01ShapeDef;
balcony01ShapeDef.SetAsBox(RelativeWidth(7.5), 5.0f);
balcony01Body->CreateShape(&balcony01ShapeDef);
balcony01data.label="balcony01";
balcony01data.object=this;
balcony01Body->SetUserData(&balcony01data);
Balcony01=Shape::Rectangle(0, 0, balcony01ShapeDef.vertices[2].x*2, balcony01ShapeDef.vertices[2].y*2, Color(0,200,200));
Balcony01.SetCenter(balcony01ShapeDef.vertices[2].x, balcony01ShapeDef.vertices[2].y);
Balcony01.SetPosition(balcony01BodyDef.position.x,balcony01BodyDef.position.y);
Balcony01.SetRotation(-balcony01BodyDef.angle*57.29577);
//balcony02
b2BodyDef balcony02BodyDef;
balcony02BodyDef.position.Set(RelativeWidth(53.61), RelativeHeight(32.2));
balcony02BodyDef.angle=(-85*0.017453);
balcony02Body = world->CreateBody(&balcony02BodyDef);
b2PolygonDef balcony02ShapeDef;
balcony02ShapeDef.SetAsBox(RelativeWidth(0.25), 5.0f);
balcony02Body->CreateShape(&balcony02ShapeDef);
balcony02data.label="balcony02";
balcony02data.object=this;
balcony02Body->SetUserData(&balcony02data);
Balcony02=Shape::Rectangle(0, 0, balcony02ShapeDef.vertices[2].x*2, balcony02ShapeDef.vertices[2].y*2, Color(0,200,200));
Balcony02.SetCenter(balcony02ShapeDef.vertices[2].x, balcony02ShapeDef.vertices[2].y);
Balcony02.SetPosition(balcony02BodyDef.position.x,balcony02BodyDef.position.y);
Balcony02.SetRotation(-balcony02BodyDef.angle*57.29577);
//balcony03 roof
b2BodyDef balcony03BodyDef;
balcony03BodyDef.position.Set(RelativeWidth(49), RelativeHeight(19.5));
balcony03BodyDef.angle=(-47.5*0.017453);
balcony03Body = world->CreateBody(&balcony03BodyDef);
b2PolygonDef balcony03ShapeDef;
balcony03ShapeDef.SetAsBox(RelativeWidth(3), 5.0f);
balcony03Body->CreateShape(&balcony03ShapeDef);
balcony03data.label="balcony03";
balcony03data.object=this;
balcony03Body->SetUserData(&balcony03data);
Balcony03=Shape::Rectangle(0, 0, balcony03ShapeDef.vertices[2].x*2, balcony03ShapeDef.vertices[2].y*2, Color(0,200,200));
Balcony03.SetCenter(balcony03ShapeDef.vertices[2].x, balcony03ShapeDef.vertices[2].y);
Balcony03.SetPosition(balcony03BodyDef.position.x,balcony03BodyDef.position.y);
Balcony03.SetRotation(-balcony03BodyDef.angle*57.29577);
//balcony04 roof
b2BodyDef balcony04BodyDef;
balcony04BodyDef.position.Set(RelativeWidth(52.9), RelativeHeight(20));
balcony04BodyDef.angle=(57.5*0.017453);
balcony04Body = world->CreateBody(&balcony04BodyDef);
b2PolygonDef balcony04ShapeDef;
balcony04ShapeDef.SetAsBox(RelativeWidth(3), 5.0f);
balcony04Body->CreateShape(&balcony04ShapeDef);
balcony04data.label="balcony04";
balcony04data.object=this;
balcony04Body->SetUserData(&balcony04data);
Balcony04=Shape::Rectangle(0, 0, balcony04ShapeDef.vertices[2].x*2, balcony04ShapeDef.vertices[2].y*2, Color(0,200,200));
Balcony04.SetCenter(balcony04ShapeDef.vertices[2].x, balcony04ShapeDef.vertices[2].y);
Balcony04.SetPosition(balcony04BodyDef.position.x,balcony04BodyDef.position.y);
Balcony04.SetRotation(-balcony04BodyDef.angle*57.29577);
//balcony05 windmill
b2BodyDef balcony05BodyDef;
balcony05BodyDef.position.Set(RelativeWidth(40.9), RelativeHeight(26));
balcony05BodyDef.angle=(-10*0.017453);
balcony05Body = world->CreateBody(&balcony05BodyDef);
b2PolygonDef balcony05ShapeDef;
balcony05ShapeDef.SetAsBox(RelativeWidth(2.4), 3.0f);
balcony05Body->CreateShape(&balcony05ShapeDef);
balcony05data.label="balcony05";
balcony05data.object=this;
balcony05Body->SetUserData(&balcony05data);
Balcony05=Shape::Rectangle(0, 0, balcony05ShapeDef.vertices[2].x*2, balcony05ShapeDef.vertices[2].y*2, Color(0,200,200));
Balcony05.SetCenter(balcony05ShapeDef.vertices[2].x, balcony05ShapeDef.vertices[2].y);
Balcony05.SetPosition(balcony05BodyDef.position.x,balcony05BodyDef.position.y);
Balcony05.SetRotation(-balcony05BodyDef.angle*57.29577);
//tree201
b2BodyDef tree201BodyDef;
tree201BodyDef.position.Set(RelativeWidth(92), RelativeHeight(60.5));
tree201BodyDef.angle=(-30*0.017453);
tree201Body = world->CreateBody(&tree201BodyDef);
b2PolygonDef tree201ShapeDef;
tree201ShapeDef.SetAsBox(RelativeWidth(3), 5.0f);
tree201Body->CreateShape(&tree201ShapeDef);
tree201data.label="tree201";
tree201data.object=this;
tree201Body->SetUserData(&tree201data);
Tree201=Shape::Rectangle(0, 0, tree201ShapeDef.vertices[2].x*2, tree201ShapeDef.vertices[2].y*2, Color(0,200,200));
Tree201.SetCenter(tree201ShapeDef.vertices[2].x, tree201ShapeDef.vertices[2].y);
Tree201.SetPosition(tree201BodyDef.position.x,tree201BodyDef.position.y);
Tree201.SetRotation(-tree201BodyDef.angle*57.29577);
//tree202
b2BodyDef tree202BodyDef;
tree202BodyDef.position.Set(RelativeWidth(89.5), RelativeHeight(62.1));
tree202BodyDef.angle=(-15*0.017453);
tree202Body = world->CreateBody(&tree202BodyDef);
b2PolygonDef tree202ShapeDef;
tree202ShapeDef.SetAsBox(RelativeWidth(2), 5.0f);
tree202Body->CreateShape(&tree202ShapeDef);
tree202data.label="tree202";
tree202data.object=this;
tree202Body->SetUserData(&tree202data);
Tree202=Shape::Rectangle(0, 0, tree202ShapeDef.vertices[2].x*2, tree202ShapeDef.vertices[2].y*2, Color(0,200,200));
Tree202.SetCenter(tree202ShapeDef.vertices[2].x, tree202ShapeDef.vertices[2].y);
Tree202.SetPosition(tree202BodyDef.position.x,tree202BodyDef.position.y);
Tree202.SetRotation(-tree202BodyDef.angle*57.29577);
//tree203
b2BodyDef tree203BodyDef;
tree203BodyDef.position.Set(RelativeWidth(96.2), RelativeHeight(48));
tree203BodyDef.angle=(-71.5*0.017453);
tree203Body = world->CreateBody(&tree203BodyDef);
b2PolygonDef tree203ShapeDef;
tree203ShapeDef.SetAsBox(RelativeWidth(6), 5.0f);
tree203Body->CreateShape(&tree203ShapeDef);
tree203data.label="tree203";
tree203data.object=this;
tree203Body->SetUserData(&tree203data);
Tree203=Shape::Rectangle(0, 0, tree203ShapeDef.vertices[2].x*2, tree203ShapeDef.vertices[2].y*2, Color(0,200,200));
Tree203.SetCenter(tree203ShapeDef.vertices[2].x, tree203ShapeDef.vertices[2].y);
Tree203.SetPosition(tree203BodyDef.position.x,tree203BodyDef.position.y);
Tree203.SetRotation(-tree203BodyDef.angle*57.29577);
//tree204
b2BodyDef tree204BodyDef;
tree204BodyDef.position.Set(RelativeWidth(99), RelativeHeight(22));
tree204BodyDef.angle=(-84*0.017453);
tree204Body = world->CreateBody(&tree204BodyDef);
b2PolygonDef tree204ShapeDef;
tree204ShapeDef.SetAsBox(RelativeWidth(10), 5.0f);
tree204Body->CreateShape(&tree204ShapeDef);
tree204data.label="tree204";
tree204data.object=this;
tree204Body->SetUserData(&tree204data);
Tree204=Shape::Rectangle(0, 0, tree204ShapeDef.vertices[2].x*2, tree204ShapeDef.vertices[2].y*2, Color(0,200,200));
Tree204.SetCenter(tree204ShapeDef.vertices[2].x, tree204ShapeDef.vertices[2].y);
Tree204.SetPosition(tree204BodyDef.position.x,tree204BodyDef.position.y);
Tree204.SetRotation(-tree204BodyDef.angle*57.29577);
//tree205
b2BodyDef tree205BodyDef;
tree205BodyDef.position.Set(RelativeWidth(85.5), RelativeHeight(28.7));
tree205BodyDef.angle=(12*0.017453);
tree205Body = world->CreateBody(&tree205BodyDef);
b2PolygonDef tree205ShapeDef;
tree205ShapeDef.SetAsBox(RelativeWidth(6.7), 5.0f);
tree205Body->CreateShape(&tree205ShapeDef);
tree205data.label="tree205";
tree205data.object=this;
tree205Body->SetUserData(&tree205data);
Tree205=Shape::Rectangle(0, 0, tree205ShapeDef.vertices[2].x*2, tree205ShapeDef.vertices[2].y*2, Color(0,200,200));
Tree205.SetCenter(tree205ShapeDef.vertices[2].x, tree205ShapeDef.vertices[2].y);
Tree205.SetPosition(tree205BodyDef.position.x,tree205BodyDef.position.y);
Tree205.SetRotation(-tree205BodyDef.angle*57.29577);
//tree206
b2BodyDef tree206BodyDef;
tree206BodyDef.position.Set(RelativeWidth(90.5), RelativeHeight(10));
tree206BodyDef.angle=(10*0.017453);
tree206Body = world->CreateBody(&tree206BodyDef);
b2PolygonDef tree206ShapeDef;
tree206ShapeDef.SetAsBox(RelativeWidth(3), 5.0f);
tree206Body->CreateShape(&tree206ShapeDef);
tree206data.label="tree206";
tree206data.object=this;
tree206Body->SetUserData(&tree206data);
Tree206=Shape::Rectangle(0, 0, tree206ShapeDef.vertices[2].x*2, tree206ShapeDef.vertices[2].y*2, Color(0,200,200));
Tree206.SetCenter(tree206ShapeDef.vertices[2].x, tree206ShapeDef.vertices[2].y);
Tree206.SetPosition(tree206BodyDef.position.x,tree206BodyDef.position.y);
Tree206.SetRotation(-tree206BodyDef.angle*57.29577);
/*treeImg.LoadFromFile("contents/fákk1.png");
TreeSp.SetImage(treeImg);
TreeSp.SetCenter(220,850);
TreeSp.SetScale(2,2);
TreeSp.SetPosition(5,1800);*/
}
void Stage2::Show(){
//Window->Draw(Ground);
Window->Draw(BacgroundSp);
Window->Draw(Wall1);
Window->Draw(Wall2);
Window->Draw(Roof);
if (Visiblepath==true)
{
Window->Draw(Path01);
Window->Draw(Path02);
Window->Draw(Path03);
Window->Draw(Path04);
Window->Draw(Path05);
Window->Draw(Path06);
Window->Draw(Path07);
Window->Draw(Path08);
Window->Draw(Path09);
Window->Draw(Path10);
Window->Draw(Path11);
Window->Draw(Path12);
Window->Draw(Path13);
Window->Draw(Path14);
Window->Draw(Path15);
Window->Draw(Path16);
Window->Draw(Path17);
Window->Draw(Path18);
Window->Draw(Path19);
Window->Draw(Path20);
Window->Draw(Path21);
Window->Draw(Path22);
Window->Draw(Path23);
Window->Draw(Path24);
Window->Draw(Balcony01);
Window->Draw(Balcony02);
Window->Draw(Balcony03);
Window->Draw(Balcony04);
Window->Draw(Balcony05);
Window->Draw(Tree201);
Window->Draw(Tree202);
Window->Draw(Tree203);
Window->Draw(Tree204);
Window->Draw(Tree205);
Window->Draw(Tree206);
}
Window->Draw(GrassSp);
GrassSp.SetPosition(-40,1765);
}
void Stage2::ShowAfter(){
//Window->Draw(TreeSp);
Window->Draw(GrassSp);
GrassSp.SetPosition(-50,1760);
Window->Draw(topSp);
}
void Stage2::InputHandling(/*Event ev*/){
}
|
#ifndef QARTNETNODE_H
#define QARTNETNODE_H
#include "qartnet_global.h"
#include "common.h"
#include <QObject>
#include <QHostAddress>
class QARTNETSHARED_EXPORT QArtNetNode : public QObject
{
Q_OBJECT
public:
explicit QArtNetNode(QObject *parent = 0);
void parsePollReplyPacket(QByteArray packet);
QByteArray getReplyPacket();
void setIp(QHostAddress ip) { m_ip = ip; }
QHostAddress getIp() { return m_ip; }
void setVersionInfo(u_int16_t vi) { m_versinfo = vi; }
u_int16_t getVersionInfo() { return m_versinfo; }
void setSubnet(u_int16_t subnet) { m_subnet = subnet; }
u_int16_t getSubnet() { return m_subnet; }
void setOem(u_int16_t oem) { m_oem = oem; }
u_int16_t getOem() { return m_oem; }
void setUbea(u_int8_t ubea) { m_ubea = ubea; }
u_int8_t getUbea() { return m_ubea; }
void setStatus(u_int8_t status) { m_status = status; }
u_int8_t getStatus() { return m_status; }
void setEstaman(u_int16_t esta) { m_estaman = esta; }
u_int16_t getEstaman() { return m_estaman; }
void setShortName(QString shortname) { m_shortname = shortname; }
QString getShortName() { return m_shortname; }
void setLongName(QString longname) { m_longname = longname; }
QString getLongName() { return m_longname; }
void setNodeReport(QString report) { m_nodereport = report; }
QString getNodeReport() { return m_nodereport; }
void setNumPorts(u_int16_t ports) { m_numports = ports; }
u_int16_t getNumPorts() { return m_numports; }
void setPortType(u_int8_t port, u_int8_t type);
u_int8_t getPortType(u_int8_t port);
void setGoodInput(u_int8_t port, u_int8_t input);
u_int8_t getGoodInput(u_int8_t port);
void setGoodOutput(u_int8_t port, u_int8_t output);
u_int8_t getGoodOutput(u_int8_t port);
void setSwin(u_int8_t port, u_int8_t swin);
u_int8_t getSwin(u_int8_t port);
void setSwout(u_int8_t port, u_int8_t swout);
u_int8_t getSwout(u_int8_t port);
void setSwVideo(u_int8_t video) { m_swvideo = video; }
u_int8_t getSwVideo() { return m_swvideo; }
void setSwMacro(u_int8_t macro) { m_swmacro = macro; }
u_int8_t getSwMacro() { return m_swmacro; }
void setSwRemote(u_int8_t remote) { m_swremote = remote; }
u_int8_t getSwRemote() { return m_swremote; }
void setStyle(u_int8_t style) { m_style = style; }
u_int8_t getStyle() { return m_style; }
void setMac(QString mac) { m_mac = mac; }
QString getMac() { return m_mac; }
void setStatus2(u_int8_t status) { m_status2 = status; }
u_int8_t getStatus2() { return m_status2; }
QString getNodeReportString();
void setController(bool ctrl) { m_isController = ctrl; }
bool isController() { return m_isController; }
void setSendDiagnostics(bool diag) { m_sendDiagnostics = diag; }
bool sendDiagnostics() { return m_sendDiagnostics; }
void setUnicast(bool unicast) { m_unicast = unicast; }
bool sendUnicast() { return m_unicast; }
void setAlwaysReply(bool always) { m_alwaysReply = always; }
bool alwaysReply() { return m_alwaysReply; }
private:
void ipToArray(QHostAddress ip, unsigned char *dest);
void macToArray(QString mac, unsigned char *dest);
QHostAddress m_ip; // Node IP Address
u_int16_t m_versinfo; // Firmware Version
u_int16_t m_subnet; // Net switch + Subnet Switch
u_int16_t m_oem; // OEM
u_int8_t m_ubea; // UBEA
u_int8_t m_status;
u_int16_t m_estaman; // ESTA Manufacturer code
QString m_shortname;
QString m_longname;
QString m_nodereport;
int16_t m_numports;
u_int8_t m_porttypes[ARTNET_MAX_PORTS]; // Type of ports
u_int8_t m_goodinput[ARTNET_MAX_PORTS];
u_int8_t m_goodoutput[ARTNET_MAX_PORTS];
u_int8_t m_swin[ARTNET_MAX_PORTS];
u_int8_t m_swout[ARTNET_MAX_PORTS];
u_int8_t m_swvideo;
u_int8_t m_swmacro;
u_int8_t m_swremote;
u_int8_t m_style;
QString m_mac;
u_int8_t m_status2;
bool m_isController;
bool m_sendDiagnostics;
bool m_unicast;
bool m_alwaysReply;
};
#endif // QARTNETNODE_H
|
#pragma once
#ifndef __MAP__
#define __MAP__
#define TILE_PIXEL 32
#define TILE_CELL 4
#define CELL_PIXEL 8
#define NUMS_MAP_LAYER 3
#include "framework.h"
#include "sprite.h"
#include "autoTile.h"
#include <map>
#include <string>
#include <vector>
class Autotile;
class MapManager;
class Node;
class Map
{
friend class MapManager;
private:
int cellNx;
int cellNy;
string mapName;
Bitmap* grid;
Bitmap* layer[3];
std::vector<std::vector<int>> blockMap;
std::vector<std::vector<int>> objectMap;
std::vector<std::vector<Node*>> graph;
public:
Map(string name, Bitmap* l1, Bitmap* l2, Bitmap* l3, Bitmap* grid = NULL);
struct MapData
{
std::string tilesetName;
int nx; int ny;
std::vector<std::vector<POINT>> cellData[3];
};
void draw(HDC& hdc, POINT pos, int layer);
int getWidth() const { return layer[0]->GetWidth(); }
int getHeight() const { return layer[0]->GetHeight(); }
bool isBlock(POINT p) const;
void setBlock(POINT p);
void unsetBlock(POINT p);
bool isBlock(POINT p, int size) const;
void setBlock(POINT p, int size);
void unsetBlock(POINT p, int size);
friend Node* findPath(POINT start, POINT end, int size);
friend void updateNode(POINT pos, POINT end, POINT prev, int size);
~Map()
{
delete grid;
delete layer[0];
delete layer[1];
delete layer[2];
}
};
class MapManager
{
friend class Map;
private:
MapManager();
MapManager(const MapManager& ref) {}
MapManager& operator=(const MapManager& ref) {}
struct TilesetData
{
std::string spriteName;
Autotile autotile[7];
int nx; int ny;
std::vector<std::vector<int>> cellData;
};
static std::map<std::string, TilesetData> tilesetTable;
static std::map<std::string, Map::MapData> mapTable;
static void initMapTable();
static void initTilesetTable();
static void drawUnitTile(Graphics& g, string mapName, int layer, POINT& srcPoint, Rect& dest);
public:
static MapManager& getInstance()
{
static MapManager s;
return s;
}
static Map* loadedMap;
static Map* loadMap(string mapName);
static POINT getLayerData(string mapName, int layer, POINT p)
{
if (p.x >= mapTable[mapName].cellData[0][0].size() || p.y >= mapTable[mapName].cellData[0].size()
|| p.x < 0 || p.y < 0)
return { -1, -1 };
return mapTable[mapName].cellData[layer][p.y][p.x];
}
};
#endif
|
#include "BulletSoftBody/btSoftBody.h"
#include "dSoftBodyCmd.h"
#include "softBodyNode.h"
#include <maya/MPxCommand.h>
#include <maya/MGlobal.h>
#include <maya/MSyntax.h>
#include <maya/MArgDatabase.h>
#include <maya/MDagModifier.h>
#include <maya/MString.h>
#include <iostream>
MString dSoftBodyCmd::typeName("dSoftBody");
dSoftBodyCmd::dSoftBodyCmd(void)
: m_argDatabase(0),
m_dagModifier(0)
{
}
dSoftBodyCmd::~dSoftBodyCmd(void)
{
if (m_argDatabase) {
delete m_argDatabase;
}
if (m_dagModifier) {
delete m_dagModifier;
}
}
void *dSoftBodyCmd::creator()
{
return new dSoftBodyCmd;
}
MStatus dSoftBodyCmd::doIt(const MArgList &args)
{
MStatus stat;
std::cout << "Invoking dSoftBodyCmd::doIt" << std::endl;
m_argDatabase = new MArgDatabase(syntax(), args, &stat);
if (stat == MS::kFailure) {
return stat;
}
return redoIt();
}
MStatus dSoftBodyCmd::undoIt()
{
MGlobal::setActiveSelectionList(m_undoSelectionList);
if (m_dagModifier) {
m_dagModifier->undoIt();
delete m_dagModifier;
m_dagModifier = 0;
}
return MS::kSuccess;
}
MStatus dSoftBodyCmd::redoIt()
{
MGlobal::getActiveSelectionList(m_undoSelectionList);
MString name;
if (m_argDatabase->isFlagSet("-name"))
{
m_argDatabase->getFlagArgument("-name", 0, name);
}
if (!name.length())
{
name = "dSoftBody";
}
m_dagModifier = new MDagModifier;
// when creating the softbody node, we parent it with a transform
// node named "dSoftBodyX" for X an integer
MObject parentObj = m_dagModifier->createNode("transform");
m_dagModifier->renameNode(parentObj, name + "#");
m_dagModifier->doIt();
MObject dSoftBodyObj = m_dagModifier->createNode(SoftBodyNode::typeId, parentObj);
// m_dagModifier->renameNode(dSoftBodyObj, name);
m_dagModifier->doIt();
// rename the soft body node itself to be of the form
// "dSoftBodyShapeX"
std::string dSoftBodyName = MFnDependencyNode(parentObj).name().asChar();
// determine position to insert string "shape" into the name
std::string::size_type pos = dSoftBodyName.find_last_not_of("0123456789");
dSoftBodyName.insert(pos + 1, "Shape");
m_dagModifier->renameNode(dSoftBodyObj, dSoftBodyName.c_str());
m_dagModifier->doIt();
// connect the solver attribute to the Dynamica solver
MPlug plgSolver(dSoftBodyObj, SoftBodyNode::ia_solver);
MSelectionList slist;
slist.add("dSolver1");
MObject solverObj;
if(slist.length() != 0)
{
slist.getDependNode(0, solverObj);
// comment this
MPlug plgSoftBodies = MFnDependencyNode(solverObj).findPlug("rigidBodies", false);
m_dagModifier->connect(plgSoftBodies, plgSolver);
m_dagModifier->doIt();
}
// MGlobal::select(parentObj, MGlobal::kReplaceList);
setResult(MFnDependencyNode(dSoftBodyObj).name());
return MS::kSuccess;
}
MSyntax dSoftBodyCmd::syntax()
{
MSyntax syntax;
syntax.enableQuery(false);
syntax.enableEdit(false);
syntax.addFlag("-n", "-name", MSyntax::kString);
// syntax.addFlag("-fn", "-filename", MSyntax::kString);
// syntax.addFlag("-col", "-color", MSyntax::kString);
// syntax.addFlag("-dia", "-diameter", MSyntax::kDouble);
return syntax;
}
|
#include "../src/stubgen.h"
#include "rpc_server_class_skel.h"
#include "rpc_server_class.h"
#define LOG(str) hlog_log(str, "hcomms.log")
class stubgen_test : public CxxTest::TestSuite
{
public:
stubgen_t *stubgen;
stubgen_test()
{
//stubgen = new stubgen_t();
//stubgen->gen("hfss_t", "hfss.h", "skelhfs.h");
//stubgen->gen("RpcServer", "rpc_server_class.h", "rpc_server_class_skel.h");
}
void test1()
{
RpcServer *obj = new RpcServer;
#define NSPORT 6001
#define SPORT 7000
#define EPORT 7010
try
{
hlog_clear("hcomm.log");
hlog_clear("hcomms.log");
hcomm_srv_t ns;
ns.start_server(NSPORT, SPORT, EPORT);
sleep(2);
hcomm_t comm_sharing("127.0.0.1", NSPORT, "node1");
comm_sharing.connect();
sleep(5);
comm_sharing.share_obj<RpcServer, RpcServerskel_t>(obj, "RpcServer");
comm_sharing.start_server();
sleep(5);
// this shit in new thread
hcomm_t comm_client("127.0.0.1", NSPORT, "node2");
comm_client.connect();
RpcServerstub_t *stub = new RpcServerstub_t(&comm_client ,"RpcServer");
// call
for (int i =0; i<10000; i++)
{
stub->setHandled(4);
stub->lockResult(5, "aisdahsodihaioshdaiosdhiasd");
stub->unlockResult(5, "aisdahsodihaioshdaiosdhiasd");
}
// call
vector<int> inp;
for (int i =0; i<1000; i++)
inp= stub->getInput(2, "worked_id_1");
TS_ASSERT_EQUALS(inp.size(), 3);
for (int i = 0; i<inp.size(); i++)
{
TS_ASSERT_EQUALS(inp[i], 2+i);
}
// call
for (int i =0; i<10000; i++)
TS_ASSERT_EQUALS(1, stub->isFinished());
stub->close();
// check this
ns.kill_server();
comm_sharing.kill_server();
delete stub;
}
catch (string* s)
{
LOG(*s);
}
//comm.share_obj()
}
};
/*
void printall(pair<char*, int> *p)
{
for (int i = 0; i<p->second; i++)
printf("%c", p->first[i]);
}
TEST_F(stubgen_test, ExtractTypes)
{
::testing::FLAGS_gtest_death_test_style = "threadsafe";
//vecpair_t *f = stubgen->get_type("read_ret_t");
//printf("!!! %s !!!", f->at(0).second);
//EXPECT_EQ(0, strcmp(f->at(0).first,"vector<bar>") );
//EXPECT_EQ(0, strcmp(f->at(0).second,"a ") );
// EXPECT_EQ(0, strcmp(f->at(1).first,"int") );
// EXPECT_EQ(0, strcmp(f->at(1).second,"crc ") );
type_t *type = stubgen->type->at(5);
// repr_gen::init();
// printall(repr_gen::gen_all(type));
}
*/
|
#ifndef GROUPMANAGER_H
#define GROUPMANAGER_H
#include "../Manager.h"
#include "../ImmutableBag.h"
#include <map>
#include <vector>
#include <string>
#include <algorithm>
class GroupManager : public Manager
{
public:
GroupManager() : Manager()
{
entitiesByGroup = new std::map<std::string, Bag<Entity*>* >();
groupsByEntity = new std::map<Entity*, std::vector<std::string> >();
}
void Initialize() {}
void Add(Entity* e, std::string group)
{
Bag<Entity*>* entities = entitiesByGroup[group];
if(entities == NULL) {
entities = new Bag<Entity*>();
entitiesByGroup[group] = entities;
}
entities->add(e);
std::vector<std::string> groups = groupsByEntity[e];
groups.push_back(group);
}
void Remove(Entity* e, std::string group)
{
Bag<Entity*>* entities = entitiesByGroup[group];
if(entities != NULL) {
entities->remove(e);
}
std::vector<std::string> groups = groupsByEntity[e];
groups.erase(std::remove(groups.begin(), groups.end(), group), groups.end());
}
void RemoveFromAllGroups(Entity* e)
{
std::vector<std::string> groups = groupsByEntity[e];
for(int i = 0; groups.size() > i; i++) {
Bag<Entity*>* entities = entitiesByGroup[groups[i]];
if(entities != NULL) {
entities->remove(e);
}
}
groups.clear();
}
Bag<Entity*>* GetEntities(std::string group)
{
Bag<Entity*>* entities = entitiesByGroup[group];
if(entities == NULL) {
entities = new Bag<Entity*>();
entitiesByGroup[group] = entities;
}
return entities;
}
std::vector<std::string> GetGroups(Entity* e)
{
return groupsByEntity[e];
}
bool IsInAnyGroup(Entity* e) {
return groupsByEntity[e].size() > 0;
}
bool IsInGroup(Entity* e, std::string group)
{
std::vector<std::string> groups = groupsByEntity[e];
for(int i = 0; groups.size() > i; i++)
{
std::string g = groups[i];
if(group == g || group.compare(g) == 0)
{
return true;
}
}
return false;
}
void Deleted(Entity* e) {
RemoveFromAllGroups(e);
}
protected:
private:
std::map<std::string, Bag<Entity*>* >* entitiesByGroup;
std::map<Entity*, std::vector<std::string> >* groupsByEntity;
};
#endif // GROUPMANAGER_H
|
#include "Topping.h"
Topping::Topping()
{
//ctor
}
Topping::Topping(string name, double price)
{
this -> name = name;
this -> price = price;
}
istream& operator >> (istream& in, Topping& topping)
{
cout << "Name: ";
in >> topping.name;
cout << "Price: ";
in >> topping.price;
return in;
}
ostream& operator << (ostream& out, const Topping& topping)
{
out << topping.name << " " <<topping.price;
return out;
}
|
#pragma once
#include "player.h"
namespace minesweeper::player {
auto human() -> Player;
}
|
/* -*- mode: C++ -*-
* All right reserved, Sure_star Coop.
* @Technic Support: <sdk@isurestar.com>
* $Id$
*/
#include <unistd.h>
#include <string>
#include <sstream>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <poll.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/file.h>
#include "rfans_driver.h"
#include "rfans_driver/RfansCommand.h"
#include "rfans_driver/RfansScan.h"
namespace rfans_driver {
static const size_t packet_size = sizeof(rfans_driver::RfansPacket().data);
static const int RFANS_PACKET_NUM = 1024 ;
size_t packet_size_pcap = 1206;
static Rfans_Driver *s_this = NULL;
/** @brief Rfans Command Handle */
bool CommandHandle(rfans_driver::RfansCommand::Request &req,
rfans_driver::RfansCommand::Response &res)
{
res.status = 1;
ROS_INFO("request: cmd= %d , speed = %d Hz", (int)req.cmd, (int)req.speed);
ROS_INFO("sending back response: [%d]", (int)res.status);
DEB_PROGRM_S tmpProg ;
tmpProg.cmdstat = (DEB_CMD_E)req.cmd;
tmpProg.dataFormat = eFormatCalcData;
tmpProg.scnSpeed = req.speed;
if(s_this) {
s_this->prog_Set(tmpProg);
}
return true;
}
Rfans_Driver::Rfans_Driver(ros::NodeHandle node, ros::NodeHandle nh)
{
setupNodeParams(node,nh);
//std::string node_name = ros::this_node::getName();//useless
server_ = node.advertiseService("rfans_driver/" + config_.command_path, CommandHandle);
//driver init
m_output = node.advertise<rfans_driver::RfansPacket>("rfans_driver/"+config_.advertise_path, RFANS_PACKET_NUM);
double packet_rate = calcReplayPacketRate();
if (config_.simu_filepath != "") {
input_ = new rfans_driver::InputPCAP(nh, config_.dataport, packet_rate,
config_.simu_filepath, config_.device_ip);
} else {
m_devapi = new rfans_driver::IOSocketAPI(config_.device_ip, config_.dataport, config_.dataport);
configDeviceParams();
}
s_this = this ;
}
Rfans_Driver::~Rfans_Driver()
{
if(m_devapi) delete m_devapi;
if(input_) delete input_;
}
/** @brief Rfnas Driver Core */
int Rfans_Driver::spinOnce()
{
if (worRealtime()) {
spinOnceRealtime();
} else {
spinOnceSimu();
}
}
int Rfans_Driver::spinOnceRealtime()
{
int rtn = 0 ;
m_devapi->revPacket(tmpPacket);
rtn = m_devapi->getPacket(tmpPacket);
if(rtn > 0) {
m_output.publish(tmpPacket) ;
}
return rtn ;
}
bool Rfans_Driver::spinOnceSimu(void)
{
rfans_driver::RfansScanPtr scan(new rfans_driver::RfansScan);
rfans_driver::RfansPacket pkt;
scan->packets.resize(32);
for (int i = 0; i < 32; i++) {
while (true) {
int rc = input_->getPacket(&scan->packets[i]);
if(rc ==0)break;
if(rc <0) return false;
}
}
ROS_DEBUG("Publishing a full Rfans scan");
scan->header.stamp = scan->packets.back().stamp;
scan->header.frame_id = "world";
pkt.data.resize(scan->packets.size()*packet_size_pcap);
for(int j=0; j<32; j++ )
{
memcpy(&pkt.data[j*packet_size_pcap],&(scan->packets[j].data[0]),packet_size_pcap);
}
pkt.stamp = scan->packets.back().stamp;
pkt.udpCount = scan->packets.size();
//pkt.udpSize = sizeof(rfans_driver::Packet().data);
pkt.udpSize = packet_size_pcap;
m_output.publish(pkt);
memset(&pkt,0,sizeof(pkt));
return true;
}
/** @brief control the device
* @param .parameters
*/
int Rfans_Driver::prog_Set(DEB_PROGRM_S &program)
{
unsigned int tmpData = 0;
switch (program.dataFormat) {
case eFormatCalcData:
tmpData |= CMD_CALC_DATA;
break;
case eFormatDebugData:
tmpData |= CMD_DEBUG_DATA;
break;
}
m_devapi->HW_WRREG(0, REG_DATA_TRANS, tmpData);
//===============================================================
tmpData = 0;
switch (program.scnSpeed) {
case ANGLE_SPEED_10HZ:
tmpData |= CMD_SCAN_ENABLE;
tmpData |= CMD_SCAN_SPEED_10HZ;
break;
case ANGLE_SPEED_20HZ:
tmpData |= CMD_SCAN_ENABLE;
tmpData |= CMD_SCAN_SPEED_20HZ;
break;
case ANGLE_SPEED_5HZ:
tmpData |= CMD_SCAN_ENABLE;
tmpData |= CMD_SCAN_SPEED_5HZ;
break;
default:
tmpData |= CMD_SCAN_ENABLE;
tmpData |= CMD_SCAN_SPEED_5HZ;
break;
}
tmpData |= CMD_LASER_ENABLE;
switch (program.cmdstat) {
case eDevCmdWork:
m_devapi->HW_WRREG(0, REG_DEVICE_CTRL, tmpData);
break;
case eDevCmdIdle:
tmpData = CMD_RCV_CLOSE;
m_devapi->HW_WRREG(0, REG_DEVICE_CTRL, tmpData);
break;
case eDevCmdAsk:
break;
default:
break;
}
return 0;
}
int Rfans_Driver::datalevel_Set(DEB_PROGRM_S &program)
{
unsigned int regData =0;
switch (program.dataFormat) {
case eFormatCalcData:
regData |= CMD_CALC_DATA;
break;
case eFormatDebugData:
regData |= CMD_DEBUG_DATA;
break;
}
m_devapi->HW_WRREG(0, REG_DATA_TRANS, regData);
regData =0;
switch (program.dataLevel) {
case LEVEL0_ECHO:
regData = CMD_LEVEL0_ECHO;
break;
case LEVEL0_DUAL_ECHO:
regData= CMD_LEVLE0_DUAL_ECHO;
break;
case LEVEL1_ECHO:
regData = CMD_LEVEL1_ECHO;
break;
case LEVEL1_DUAL_ECHO:
regData = CMD_LEVEL1_DUAL_ECHO;
break;
case LEVEL2_ECHO:
regData = CMD_LEVEL2_ECHO;
break;
case LEVEL2_DUAL_ECHO:
regData = CMD_LEVEL2_DUAL_ECHO;
break;
case LEVEL3_ECHO:
regData = CMD_LEVEL3_ECHO;
break;
case LEVEL3_DUAL_ECHO:
regData = CMD_LEVEL3_DUAL_ECHO;
break;
default:
break;
}
switch (program.cmdstat) {
case eDevCmdWork:
m_devapi->HW_WRREG(0, REG_DATA_LEVEL, regData);
break;
case eDevCmdAsk:
break;
default:
break;
}
return 0;
}
void Rfans_Driver::setupNodeParams(ros::NodeHandle node,ros::NodeHandle nh)
{
node.param<std::string>("model",config_.device_name,"R-Fans-32");
nh.param<std::string>("advertise_name", config_.advertise_path, "rfans_packets");
nh.param<std::string>("control_name", config_.command_path, "rfans_control");
nh.param<int>("device_port", config_.dataport, 2014);
nh.param<std::string>("device_ip", config_.device_ip, "192.168.0.3");
nh.param<int>("rps", config_.scnSpeed, 10);
nh.param<std::string>("pcap", config_.simu_filepath, "");
// nh.param<std::string>("model", config_.device_name, "R-Fans-32");
nh.param<bool>("use_double_echo", config_.dual_echo, "false");
nh.param<int>("data_level", config_.data_level, 0);
}
bool Rfans_Driver::worRealtime()
{
return ((config_.simu_filepath == "")? true : false);
}
double Rfans_Driver::calcReplayPacketRate()
{
double rate = 0.0f;
std::string device = config_.device_name;
int data_level = config_.data_level;
bool dual_echo = config_.dual_echo;
ROS_INFO("Device: %s",device.c_str());
//one second generate 640k points,and each packet have 32*12 points.
if (device == "R-Fans-32") {
if (((data_level == 0) || (data_level == 1)) && dual_echo) {
rate = 6666.67;
} else if (((data_level == 0)|| (data_level == 1)) && (!dual_echo)) {
rate = 3333.33;
} else if (data_level == 2 && dual_echo) {
rate = 4000;
} else if (data_level == 2 &&(!dual_echo)) {
rate = 2000;
} else if (data_level == 3 && dual_echo) {
rate = 3333.33;
} else if (data_level == 3 &&(!dual_echo)) {
rate = 1666.67;
} else if (data_level == 4 && dual_echo) {//FIXME: should check GM & BK format
rate = 3333.33;
}
else{
rate = 1666.67;
}
} else if (device == "R-Fans-16") {
if (((data_level == 0)|| (data_level == 1)) && dual_echo) {
rate = 3333.33;
} else if (((data_level == 0)|| (data_level == 1)) && (!dual_echo)) {
rate = 1666.67;
} else if (data_level == 2 && dual_echo) {
rate = 2000;
} else if (data_level == 2 && (!dual_echo)) {
rate = 1000;
} else if (data_level == 3 && dual_echo) {
rate = 1666.67;
} else if (data_level == 3 && (!dual_echo)) {
rate = 833.3;
} else if (data_level == 4) {
rate = 833.3;
}
}else if(device == "R-Fans-V6K"){
if (data_level == 2 && dual_echo) {
rate = 2133.33;
} else if (data_level == 2 && (!dual_echo)) {
rate = 1066.67;
} else if (data_level == 3 && dual_echo) {
rate = 1562.5;
} else if (data_level == 3 && (!dual_echo)) {
rate = 781.25;
}
}
else if (device == "C-Fans-128") {
rate = 1666.67;
// TODO:
} else if (device == "C-Fans-32") {
// TODO:
rate = 416.67;
} else {
//rate = 1666.67;
rate = 781.25;
}
return rate;
}
void Rfans_Driver::configDeviceParams()
{
int data_level = config_.data_level;
bool dual_echo = config_.dual_echo;
DEB_PROGRM_S params;
params.cmdstat = eDevCmdWork;
params.dataFormat = eFormatCalcData;
// set start rps
params.scnSpeed = config_.scnSpeed;
prog_Set(params);
if (data_level== 0 && !dual_echo) {
params.dataLevel = LEVEL0_ECHO;
} else if (data_level == 0 && dual_echo) {
params.dataLevel = LEVEL0_DUAL_ECHO;
} else if (data_level == 1 && !dual_echo) {
params.dataLevel = LEVEL1_ECHO;
} else if (data_level == 1 && dual_echo) {
params.dataLevel = LEVEL1_DUAL_ECHO;
} else if(data_level == 2 && !dual_echo) {
params.dataLevel = LEVEL2_ECHO;
} else if (data_level == 2 && dual_echo) {
params.dataLevel = LEVEL2_DUAL_ECHO;
} else if (data_level == 3 && !dual_echo) {
params.dataLevel = LEVEL3_ECHO;
} else {
params.dataLevel = LEVEL3_DUAL_ECHO;
}
// set data level
datalevel_Set(params);
}
} //rfans_driver namespace
|
#ifndef SNAPTOOLBAR_H
#define SNAPTOOLBAR_H
#include <QtGui>
#include <QWidget>
#include <QToolBar>
#include <QAction>
#include <QActionGroup>
class SnapToolBar : public QToolBar
{
Q_OBJECT
/*
这个类是绘图工具条,能进行画笔画刷的设置,其它类可以从它这里取到画笔和画刷的设置值
当然,这里面也可以选择绘图图形,也可以获取相应的值
*/
public:
explicit SnapToolBar(QWidget *parent = 0);
~SnapToolBar();
QAction* getShapeAction();
QList<QAction*> getShapeGroupActions();
int getShapeActionID();
QPen getPen();
QBrush getBrush();
protected:
void mousePressEvent(QMouseEvent *mouse);
void mouseMoveEvent(QMouseEvent *mouse);
signals:
void signalFinish();//当截图完成时发出此信号
void signalCancel();//当取消截图时发出此信号
private slots:
void slotActionTriggered(QAction *action);
void slotSetPenCapStyle(QAction *action);
void slotSetPenJoinStyle(QAction *action);
void slotSetPenStyle(QAction *action);
void slotSetBrushStyle(QAction *action);
void slotPenMenuTriggered(QAction *action);
void slotBrushMenuTriggered(QAction *action);
private:
//这是主要成员
QPalette toolBarPalette;//可恶,居然还要设置调色板
QPen pen;//…这是笔
QBrush brush;//这是刷…
QPoint clickPos;//移动时用到
//这是图形的菜单
QMenu shapeMenu;
QActionGroup *shapeGroup;
void initShapeMenu();
//这是画笔的菜单
QMenu penMenu;
QMenu penCapStyleMenu;//隶属于penMenu
QMenu penJoinStyleMenu;//隶属于penMenu
QMenu penStyleMenu;//隶属于penMenu
QActionGroup *penCapStyleGroup;
QActionGroup *penJoinStyleGroup;
QActionGroup *penStyleGroup;
void initPenMenu();
void initPenCapStyleMenu();
void initPenJoinStyleMenu();
void initPenStyleMenu();
//这是画刷的菜单
QMenu brushMenu;
QMenu brushStyleMenu;
QActionGroup *brushStyleGroup;
void initBrushMenu();
void initBrushStyleMenu();
};
#endif // SNAPTOOLBAR_H
|
#include<bits/stdc++.h>
using namespace std;
bool checkSNT(int x){
if (x<2){
return false;
} else {
for (int i=2; i<=sqrt(x); i++){
if (x%i==0){
return false;
}
}
}
return true;
}
int main(){
int n;
cin >> n;
for (int i=1; i<=n; ++i){
if (checkSNT(i)== true){
cout << i << " ";
}
}
}
|
//~ author : Sumit Prajapati
#include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
#define int long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define mk make_pair
#define ff first
#define ss second
#define all(a) a.begin(),a.end()
#define trav(x,v) for(auto &x:v)
#define rep(i,n) for(int i=0;i<n;i++)
#define repe(i,n) for(int i=1;i<=n;i++)
#define read(a,n) rep(i,n)cin>>a[i]
#define reade(a,n) repe(i,n)cin>>a[i]
#define FOR(i,a,b) for(int i=a;i<=b;i++)
#define printar(a,s,e) FOR(i,s,e)cout<<a[i]<<" ";cout<<'\n'
#define curtime chrono::high_resolution_clock::now()
#define timedif(start,end) chrono::duration_cast<chrono::nanoseconds>(end - start).count()
auto time0 = curtime;
const int MD=1e9+7;
const int MDL=998244353;
const int INF=1e16;
const int MX=2e5+5;
int n,m;
int a[MX];
int segm[4*MX],lazy[4*MX];
string s;
void buildtree(int cur,int start,int end){
if(start==end){
//BASE CASE
segm[cur]=a[start];
return;
}
int mid=(start+end)>>1;
buildtree(cur<<1,start,mid);
buildtree((cur<<1)+1,mid+1,end);
//MERGING STEP
segm[cur]=min(segm[cur<<1],segm[(cur<<1)^1]);
}
int query(int cur,int start,int end,int qs,int qe){
if(lazy[cur]!=0){
int dx=lazy[cur];
lazy[cur]=0;
segm[cur]+=dx;
if(start!=end){
lazy[2*cur]+=dx;
lazy[2*cur+1]+=dx;
}
}
if(start>=qs && end<=qe)
return segm[cur];
if(start>qe || end<qs)
return INF; //INVALID RETURN
int mid=(start+end)>>1;
int A=query(2*cur,start,mid,qs,qe);
int B=query(2*cur+1,mid+1,end,qs,qe);
//MERGING STEP
int res=min(A,B);
return res;
}
void update(int cur,int start,int end,int qs,int qe,int inc){
if(lazy[cur]!=0){
int dx=lazy[cur];
lazy[cur]=0;
segm[cur]+=dx;
if(start!=end){
lazy[2*cur]+=dx;
lazy[2*cur+1]+=dx;
}
}
if(start>=qs && end<=qe){
segm[cur]+=inc;
if(start!=end){
lazy[2*cur]+=inc;
lazy[2*cur+1]+=inc;
}
return;
}
if(start>qe || end<qs)
return ; //OUT OF RANGE
int mid=(start+end)>>1;
update(cur<<1,start,mid,qs,qe,inc);
update((cur<<1)^1,mid+1,end,qs,qe,inc);
//MERGING STEP
segm[cur]=min(segm[2*cur],segm[2*cur+1]);
}
void solve(){
scanf("%lld\n",&n);
repe(i,n){
scanf("%lld\n",&a[i]);
}
buildtree(1,1,n);
scanf("%lld\n",&m);
repe(i,m){
getline(cin,s);
stringstream sst(s);
vector<int>v;
int x,y;
while(sst>>x)
v.pb(x);
if(v.size()==2){
x=v[0];
y=v[1];
x++;
y++;
int ans;
if(x<=y)
ans=query(1,1,n,x,y);
else{
ans=min(query(1,1,n,x,n),
query(1,1,n,1,y));
}
cout<<ans<<'\n';
}
else if(v.size()==3){
x=v[0];
y=v[1];
x++;
y++;
int inc=v[2];
if(x<=y){
update(1,1,n,x,y,inc);
}
else{
update(1,1,n,x,n,inc);
update(1,1,n,1,y,inc);
}
}
else
assert(false);
}
}
int32_t main() {
// ios_base::sync_with_stdio(false);
// cin.tie(NULL);
time0 = curtime;
srand(time(NULL));
int t=1;
// cin>>t;
repe(tt,t){
// cout<<"Case #"<<tt<<": ";
solve();
}
// cerr<<"Execution Time: "<<timedif(time0,curtime)*1e-9<<" sec\n";
return 0;
}
|
#ifndef ADAPTIVE_TIME_HPP
#define ADAPTIVE_TIME_HPP
#include <vector>
#include "boost/numeric/ublas/vector.hpp"
namespace GALES{
/**
This file defines the adaptive time step criterion for fluid flow solvers
*/
template<int dim>
struct adaptive_time_criteria
{
using vec = boost::numeric::ublas::vector<double>;
using mat = boost::numeric::ublas::matrix<double>;
//------------------------------- criterion for sc ----------------------------------------------------------------
void f_sc(model<dim>& f_model, fluid_properties& props, read_setup& setup, int nb_dofs)
{
const double CFL = setup.CFL();
const int nb_el_nodes = f_model.mesh().nb_el_nodes();
const auto& mesh(f_model.mesh());
vec dofs_fluid;
point<dim> pt;
vec I(nb_dofs, 0.0), dI_dx(nb_dofs, 0.0), dI_dy(nb_dofs, 0.0), dI_dz(nb_dofs, 0.0);
std::vector<double> dt_vec;
const double tol = std::numeric_limits<double>::epsilon();
double shear_rate(0.0);
for(const auto& el : mesh.elements())
{
f_model.extract_element_dofs(*el, dofs_fluid);
std::vector<double> dt_gp_vec;
dt_gp_vec.reserve(el->nb_gp());
for(auto& quad_ptr : el->quad_i()) // here we loop over each gauss point of the element and compute dt
{
quad_ptr->interpolate(dofs_fluid, I);
quad_ptr->x_derivative_interpolate(dofs_fluid, dI_dx);
quad_ptr->y_derivative_interpolate(dofs_fluid, dI_dy);
if(dim==3) quad_ptr->z_derivative_interpolate(dofs_fluid, dI_dz);
auto del_v = compute_del_v(dI_dx, dI_dy, dI_dz);
const double p = I[0];
vec v(dim);
for(int i=0; i<dim; i++)
v[i] = I[1+i];
const double T = I[dim+1];
props.properties(p,T,shear_rate);
const double rho = props.rho_;
const double mu = props.mu_;
const double kappa = props.kappa_;
const double c = props.sound_speed_;
const double cv = props.cv_;
const double v_nrm = boost::numeric::ublas::norm_2(v);
if(v_nrm < tol)
{
dt_gp_vec.push_back(1.2*time::get().delta_t());
}
else
{
double h = quad_ptr->compute_h(v, del_v, pt);
double v_tau = v_nrm;
const double Mach = v_nrm/c;
if(Mach > 0.3)
{
if(dim==2) v_tau = sqrt(v_nrm*v_nrm + 1.5*c*c + c*sqrt(16.0*v_nrm*v_nrm + c*c));
else v_tau = sqrt(v_nrm*v_nrm + 2.0*c*c + c*sqrt(4.0*v_nrm*v_nrm + c*c));
}
const double use = 2.0*std::max(2.0*mu/rho, kappa/(rho*cv))/(h*h) + v_tau/h;
dt_gp_vec.push_back(CFL/use);
}
}
auto it = min_element(std::begin(dt_gp_vec), std::end(dt_gp_vec));
dt_vec.push_back(*it); // here we compute the minimum dt on all gauss points of the element and put that in dt_vec
}
set_dt(setup, dt_vec);
}
//-----------------------------------------------------------------------------------------------
//------------------------------- criterion for sc_isothermal ----------------------------------------------------------------
void f_sc_isothermal(model<dim>& f_model, fluid_properties& props, read_setup& setup, int nb_dofs)
{
const double CFL = setup.CFL();
const int nb_el_nodes = f_model.mesh().nb_el_nodes();
const auto& mesh(f_model.mesh());
vec dofs_fluid;
point<dim> pt;
vec I(nb_dofs, 0.0), dI_dx(nb_dofs, 0.0), dI_dy(nb_dofs, 0.0), dI_dz(nb_dofs, 0.0);
std::vector<double> dt_vec;
const double tol = std::numeric_limits<double>::epsilon();
double shear_rate(0.0);
for(const auto& el : mesh.elements())
{
f_model.extract_element_dofs(*el, dofs_fluid);
std::vector<double> dt_gp_vec;
dt_gp_vec.reserve(el->nb_gp());
for(auto& quad_ptr : el->quad_i()) // here we loop over each gauss point of the element and compute dt
{
quad_ptr->interpolate(dofs_fluid, I);
quad_ptr->x_derivative_interpolate(dofs_fluid, dI_dx);
quad_ptr->y_derivative_interpolate(dofs_fluid, dI_dy);
if(dim==3) quad_ptr->z_derivative_interpolate(dofs_fluid, dI_dz);
auto del_v = compute_del_v(dI_dx, dI_dy, dI_dz);
const double p = I[0];
vec v(dim);
for(int i=0; i<dim; i++)
v[i] = I[1+i];
props.properties(p,shear_rate);
const double rho = props.rho_;
const double mu = props.mu_;
const double c = props.sound_speed_;
const double v_nrm = boost::numeric::ublas::norm_2(v);
if(v_nrm < tol)
{
dt_gp_vec.push_back(1.2*time::get().delta_t());
}
else
{
double h = quad_ptr->compute_h(v, del_v, pt);
double v_tau = v_nrm;
const double Mach = v_nrm/c;
if(Mach > 0.3)
{
if(dim==2) v_tau = sqrt(v_nrm*v_nrm + 1.5*c*c + c*sqrt(16.0*v_nrm*v_nrm + c*c));
else v_tau = sqrt(v_nrm*v_nrm + 2.0*c*c + c*sqrt(4.0*v_nrm*v_nrm + c*c));
}
const double use = 4.0*mu/(rho*h*h) + v_tau/h;
dt_gp_vec.push_back(CFL/use);
}
}
auto it = min_element(std::begin(dt_gp_vec), std::end(dt_gp_vec));
dt_vec.push_back(*it); // here we compute the minimum dt on all gauss points of the element and put that in dt_vec
}
set_dt(setup, dt_vec);
}
//-----------------------------------------------------------------------------------------------
//------------------------------- criterion for MC ----------------------------------------------------------------
void f_mc
(
model<dim>& f_model, fluid_properties& props, read_setup& setup, int nb_dofs
)
{
const double CFL = setup.CFL();
const int nb_el_nodes = f_model.mesh().nb_el_nodes();
const auto& mesh(f_model.mesh());
vec dofs_fluid;
point<dim> pt;
vec I(nb_dofs), dI_dx(nb_dofs), dI_dy(nb_dofs), dI_dz(nb_dofs);
std::vector<double> dt_vec;
const double tol = std::numeric_limits<double>::epsilon();
double shear_rate(0.0);
for(const auto& el : mesh.elements())
{
f_model.extract_element_dofs(*el, dofs_fluid);
std::vector<double> dt_gp_vec;
dt_gp_vec.reserve(el->nb_gp());
for(auto& quad_ptr : el->quad_i()) // here we loop over each gauss point of the element and compute dt
{
quad_ptr->interpolate(dofs_fluid, I);
quad_ptr->x_derivative_interpolate(dofs_fluid, dI_dx);
quad_ptr->y_derivative_interpolate(dofs_fluid, dI_dy);
if(dim==3) quad_ptr->z_derivative_interpolate(dofs_fluid, dI_dz);
auto del_v = compute_del_v(dI_dx, dI_dy, dI_dz);
const double p = I[0];
vec v(dim, 0.0);
for(int i=0; i<dim; i++)
v[i] = I[1+i];
const double T = I[dim+1];
vec Y(props.nb_comp(), 0.0);
for (int i=0; i<props.nb_comp()-1; i++)
Y[i] = I[dim+2+i];
Y[props.nb_comp()-1] = 1.0- std::accumulate(&Y[0],&Y[props.nb_comp()-1],0.0);
props.properties(p,T,Y,shear_rate);
const double rho = props.rho_;
const double mu = props.mu_;
const double kappa = props.kappa_;
const double c = props.sound_speed_;
const double cv = props.cv_;
const double v_nrm = boost::numeric::ublas::norm_2(v);
if(v_nrm < tol)
{
dt_gp_vec.push_back(1.2*time::get().delta_t());
}
else
{
double h = quad_ptr->compute_h(v, del_v, pt);
double v_tau = v_nrm;
const double Mach = v_nrm/c;
if(Mach > 0.3)
{
if(dim==2) v_tau = sqrt(v_nrm*v_nrm + 1.5*c*c + c*sqrt(16.0*v_nrm*v_nrm + c*c));
else v_tau = sqrt(v_nrm*v_nrm + 2.0*c*c + c*sqrt(4.0*v_nrm*v_nrm + c*c));
}
const double use = 2.0*std::max(2.0*mu/rho, kappa/(rho*cv))/(h*h) + v_tau/h;
dt_gp_vec.push_back(CFL/use);
}
}
auto it = min_element(std::begin(dt_gp_vec), std::end(dt_gp_vec));
dt_vec.push_back(*it); // here we compute the minimum dt on all gauss points of the element and put that in dt_vec
}
set_dt(setup, dt_vec);
}
//-----------------------------------------------------------------------------------------------
//------------------------------- criterion for MC_isothermal ----------------------------------------------------------------
void f_mc_isothermal
(
model<dim>& f_model, fluid_properties& props, read_setup& setup, int nb_dofs
)
{
const double CFL = setup.CFL();
const int nb_el_nodes = f_model.mesh().nb_el_nodes();
const auto& mesh(f_model.mesh());
vec dofs_fluid;
point<dim> pt;
vec I(nb_dofs), dI_dx(nb_dofs), dI_dy(nb_dofs), dI_dz(nb_dofs);
std::vector<double> dt_vec;
const double tol = std::numeric_limits<double>::epsilon();
double shear_rate(0.0);
for(const auto& el : mesh.elements())
{
f_model.extract_element_dofs(*el, dofs_fluid);
std::vector<double> dt_gp_vec;
dt_gp_vec.reserve(el->nb_gp());
for(auto& quad_ptr : el->quad_i()) // here we loop over each gauss point of the element and compute dt
{
quad_ptr->interpolate(dofs_fluid, I);
quad_ptr->x_derivative_interpolate(dofs_fluid, dI_dx);
quad_ptr->y_derivative_interpolate(dofs_fluid, dI_dy);
if(dim==3) quad_ptr->z_derivative_interpolate(dofs_fluid, dI_dz);
auto del_v = compute_del_v(dI_dx, dI_dy, dI_dz);
const double p = I[0];
vec v(dim, 0.0);
for(int i=0; i<dim; i++)
v[i] = I[1+i];
vec Y(props.nb_comp(), 0.0);
for (int i=0; i<props.nb_comp()-1; i++)
Y[i] = I[dim+1+i];
Y[props.nb_comp()-1] = 1.0- std::accumulate(&Y[0],&Y[props.nb_comp()-1],0.0);
props.properties(p,Y,shear_rate);
const double rho = props.rho_;
const double mu = props.mu_;
const double c = props.sound_speed_;
const double v_nrm = boost::numeric::ublas::norm_2(v);
if(v_nrm < tol)
{
dt_gp_vec.push_back(1.2*time::get().delta_t());
}
else
{
double h = quad_ptr->compute_h(v, del_v, pt);
double v_tau = v_nrm;
const double Mach = v_nrm/c;
if(Mach > 0.3)
{
if(dim==2) v_tau = sqrt(v_nrm*v_nrm + 1.5*c*c + c*sqrt(16.0*v_nrm*v_nrm + c*c));
else v_tau = sqrt(v_nrm*v_nrm + 2.0*c*c + c*sqrt(4.0*v_nrm*v_nrm + c*c));
}
const double use = 4.0*mu/(rho*h*h) + v_tau/h;
dt_gp_vec.push_back(CFL/use);
}
}
auto it = min_element(std::begin(dt_gp_vec), std::end(dt_gp_vec));
dt_vec.push_back(*it); // here we compute the minimum dt on all gauss points of the element and put that in dt_vec
}
set_dt(setup, dt_vec);
}
//-----------------------------------------------------------------------------------------------
mat compute_del_v(const vec& dI_dx, const vec& dI_dy, const vec& dI_dz)
{
mat del_v(dim,dim,0.0);
if(dim==2)
{
for(int i=0; i<2; i++)
{
del_v(i,0) = dI_dx[1+i]; del_v(i,1) = dI_dy[1+i];
}
}
else
{
for(int i=0; i<3; i++)
{
del_v(i,0) = dI_dx[1+i]; del_v(i,1) = dI_dy[1+i]; del_v(i,2) = dI_dz[1+i];
}
}
return del_v;
}
void set_dt(read_setup& setup, const std::vector<double>& dt_vec)
{
auto it = min_element(std::begin(dt_vec), std::end(dt_vec));
double dt_pid = *it;
double dt_min(0.0);
MPI_Allreduce(&dt_pid, &dt_min, 1, MPI_DOUBLE, MPI_MIN, MPI_COMM_WORLD);
auto dt = time::get().delta_t();
if(dt_min > (1.01*dt)) dt = 1.01*dt; //Bound maximum increase in dt by 1% of previous dt value
else dt = dt_min;
dt = std::max(std::min(dt, setup.dt_max()), setup.dt_min());
time::get().delta_t(dt);
}
};
}
#endif
|
/**
* @file carton.h
* @author your name (you@domain.com)
* @brief Create a class
* @version 0.1
* @date 2019-12-18
*
* @copyright Copyright (c) 2019
*
*/
#pragma once
#include <iostream>
using namespace std;
// Create a class, declaration
class Carton //convention is capitalized
{
private: //concept of encapsulation, information is stored
double length_; // "_" convention means it is private
double width_;
double height_;
public:
//Static constants, declaration
// static const double kMaxSize; //For all dimensions
static const double kMinLength;
static const double kMinWidth;
static const double kMinHeight;
//constructor: create objects
Carton(); //same as class
Carton(double length, double width, double height);
~Carton();
// Getters (lower case)
double length();
double width();
double height();
//Setters
void set_length(double length);
void set_width(double width);
void set_height(double height);
//Other methods (upper case)
void ShowInfo();
void SetMeasurements(double length, double width, double height);
double Volume() const; //Does not allow to update because of "const". Read only.
void WriteData(std::ostream &out) const;
}; //must have ";"
|
/****************************************************************************
**
** Copyright (C) 2009 Du Hui.
**
****************************************************************************/
#ifndef QSERIALCOMM_H
#define QSERIALCOMM_H
#include <QIODevice>
class WinSerialComm;
enum BAUD_RATE_TYPE {
BAUD_RATE_TYPE_50 = 50, //POSIX ONLY
BAUD_RATE_TYPE_75 = 75, //POSIX ONLY
BAUD_RATE_TYPE_110 = 110,
BAUD_RATE_TYPE_134 = 134, //POSIX ONLY
BAUD_RATE_TYPE_150 = 150, //POSIX ONLY
BAUD_RATE_TYPE_200 = 200, //POSIX ONLY
BAUD_RATE_TYPE_300 = 300,
BAUD_RATE_TYPE_600 = 600,
BAUD_RATE_TYPE_1200 = 1200,
BAUD_RATE_TYPE_1800 = 1800, //POSIX ONLY
BAUD_RATE_TYPE_2400 = 2400,
BAUD_RATE_TYPE_4800 = 4800,
BAUD_RATE_TYPE_9600 = 9600,
BAUD_RATE_TYPE_14400 = 14400, //WINDOWS ONLY
BAUD_RATE_TYPE_19200 = 19200,
BAUD_RATE_TYPE_38400 = 38400,
BAUD_RATE_TYPE_56000 = 56000, //WINDOWS ONLY
BAUD_RATE_TYPE_57600 = 56700,
BAUD_RATE_TYPE_76800 = 76800, //POSIX ONLY
BAUD_RATE_TYPE_115200 = 115200,
BAUD_RATE_TYPE_128000 = 128000, //WINDOWS ONLY
BAUD_RATE_TYPE_256000 = 256000 //WINDOWS ONLY
};
enum DATA_BITS_TYPE {
DATA_BITS_TYPE_4 = 0, // Do not use it in 8250
DATA_BITS_TYPE_5 = 1,
DATA_BITS_TYPE_6 = 2,
DATA_BITS_TYPE_7 = 3,
DATA_BITS_TYPE_8 = 4
};
enum PARITY_TYPE {
PARITY_TYPE_NONE = 0,
PARITY_TYPE_ODD = 1,
PARITY_TYPE_EVEN = 2,
PARITY_TYPE_MARK = 3, //WINDOWS ONLY
PARITY_TYPE_SPACE = 4
};
enum STOP_BITS_TYPE {
STOP_BITS_TYPE_1 = 0,
STOP_BITS_TYPE_1_5 = 1, //WINDOWS ONLY
STOP_BITS_TYPE_2 = 2
};
enum FLOW_TYPE {
FLOW_TYPE_OFF = 0 ,
FLOW_TYPE_HARDWARE = 1,
FLOW_TYPE_XONXOFF = 2
};
struct PORTPROPERTY
{
PORTPROPERTY():
BaudRate(115200),
FlowControl(FLOW_TYPE_OFF),
DataBits(DATA_BITS_TYPE_8),
Parity(PARITY_TYPE_NONE),
StopBits(STOP_BITS_TYPE_1)
{
}
int BaudRate;
FLOW_TYPE FlowControl;
unsigned char DataBits;
unsigned char Parity;
unsigned char StopBits;
};
struct PORTBUFFERSIZE
{
PORTBUFFERSIZE():InputBufferSize(4096),OutputBufferSize(4096)
{}
qint32 InputBufferSize;
qint32 OutputBufferSize;
};
struct PORTTIMEOUTS
{
PORTTIMEOUTS():
ReadIntervalTimeout(0),
ReadTotalTimeoutMultiplier(100),
ReadTotalTimeoutConstant(1000),
WriteTotalTimeoutMultiplier(100),
WriteTotalTimeoutConstant(1000)
{}
int ReadIntervalTimeout;
int ReadTotalTimeoutMultiplier;
int ReadTotalTimeoutConstant;
int WriteTotalTimeoutMultiplier;
int WriteTotalTimeoutConstant;
};
#define PROPERTY_VALID_MASK 0X01
#define BUFFERSIZE_VALID_MASK 0X02
#define TIMEOUTS_VALID_MASK 0X04
/*structure to contain port settings*/
struct PORTSETTINGS
{
PORTSETTINGS():SettingsValidMask( PROPERTY_VALID_MASK|BUFFERSIZE_VALID_MASK|TIMEOUTS_VALID_MASK )
{}
PORTPROPERTY Properties;
PORTBUFFERSIZE BufferSize;
PORTTIMEOUTS Timeout;
int SettingsValidMask;
};
class QSerialComm : public QIODevice
{
Q_OBJECT
public:
explicit QSerialComm( QObject * parent = NULL );
~QSerialComm ();
// From QIODevice
virtual bool atEnd () const
{
return false;
}
// From QIODevice
virtual qint64 bytesAvailable () const;
// From QIODevice
virtual qint64 bytesToWrite () const;
// From QIODevice
virtual bool canReadLine () const
{
return true;
}
// From QIODevice
virtual void close ();
// From QIODevice
virtual bool isSequential () const
{
return true;
}
// From QIODevice
virtual qint64 size () const
{
return bytesAvailable();
}
// From QIODevice
virtual bool waitForBytesWritten ( int msecs );
// From QIODevice
virtual bool waitForReadyRead ( int msecs );
protected:
// From QIODevice
virtual qint64 readData ( char * data, qint64 maxSize );
// From QIODevice
virtual qint64 readLineData ( char * data, qint64 maxSize );
// From QIODevice
virtual qint64 writeData ( const char * data, qint64 maxSize );
// ----------------------------Add new methods------------------------------------------
public:
bool open ( const QString& comport, const PORTSETTINGS* portSettings = NULL, OpenMode mode = QIODevice::ReadWrite );
bool reopen ();
bool setPortSettings(const PORTSETTINGS* portSettings);
bool getPortSettings(PORTSETTINGS &portSettings);
int unreadBytes();
const QString getPortName();
bool setDTR(bool OnOrOff);
bool setRTS(bool OnOrOff);
bool setBreak(bool OnOrOff);
void clearInputBuffer();
// Discards all characters from the output buffer of a specified communications resource
void clearOutputBuffer();
private: // Comm not support method. Override them
// From QIODevice
virtual bool open ( OpenMode mode )
{
return false;
}
// From QIODevice
virtual bool seek ( qint64 pos )
{
return false;
}
// From QIODevice
virtual bool reset ()
{
return false;
}
// From QIODevice
virtual qint64 pos () const
{
return -1;
}
private: // Hide QIODevice method
bool isOpen () const;
// ----------------------------data member------------------------------------------
private:
WinSerialComm * serialCommImp;
};
#endif // QSERIALCOMM_H
|
/**
* Copyright (C) 2017 Alibaba Group Holding Limited. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "MMDpmsProxy.h"
#include <multimedia/mm_debug.h>
#include <DPMSProxy.h>
using namespace yunos;
namespace YUNOS_MM {
MM_LOG_DEFINE_MODULE_NAME("MMDpmsProxy");
void MMDpmsProxy::updateServiceSwitch(pid_t pid, MMSession::MediaUsage type, bool turnOff) {
SharedPtr<DPMSProxy> proxy = DPMSProxy::getInstance();
if (!proxy) {
ERROR("cannot get dpms proxy");
return;
}
int pageType = -1;
String name;
if (type == MMSession::MU_Player) {
pageType = DPMSProxy::SERVICE_MEDIA_PLAY;
name = "MediaPlayer";
} else if (type == MMSession::MU_Recorder) {
pageType = DPMSProxy::SERVICE_MEDIA_RECORD;
name = "MediaRecorder";
} else {
INFO("no need to track media usage %d", type);
return;
}
INFO(">>> updateServiceSwitch: %s of process[pid %d] is turn %s",
name.c_str(), pid, turnOff ? "off" : "on");
proxy->updateServiceSwitch(!turnOff, pageType, pid);
INFO("<<<");
return;
}
}
|
#include <iostream>
#include <cstring>
int main()
{
int n;
int c;
int arr[10000];
memset(arr, 0, 10000 * sizeof(int));
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d", &c);
arr[c - 1] += 1;
}
for (int i = 0; i < 10000; i++)
{
if (arr[i] != 0)
{
for (int j = 0; j < arr[i]; j++)
printf("%d\n", i + 1);
}
}
}
|
//программная реализация быстрой сортировки через параметрические циклы
#include <stdio.h>
#include <stdlib.h>
int b; //индекс первого элемента массива
int e; //индекс последнего элемента массива
int l; //индекс левого элемента
int r; //индекс правого элемента
int arr[] = { -6, 1, 0, 5, 7, 8, 4, 9, -17, 12 };
int n = sizeof(arr) / sizeof(int);
void qsort(int* arr, int b, int e)
{
if (b < e)
{
int piv = arr[(b + e) / 2]; // номер опорного элемента
int r = e;
for (l = b; l <= r; l++)
{
for (int i = l; i < n; i++)
if (arr[l] < piv)
l++;
else
break;
for (int i = r; i > 0; i--)
if (arr[r] > piv)
r--;
else
break;
if (l <= r)
{
int t = arr[l];
arr[l] = arr[r];
arr[r] = t;
r--;
}
}
qsort(arr, b, r);
qsort(arr, l, e);
}
}
int main()
{
qsort(arr, 0, n - 1);
for (int i = 0; i < n - 1; i++)
printf("%d ", arr[i]);
}
|
#pragma once
#include "Sequence.h"
#include "LinkedList.h"
template <class T>
class ListSequence : public Sequence<T> {
private:
LinkedList<T>* items;
int size;
public:
// Конструкторы
ListSequence() {
this->items = new LinkedList<T>();
this->size = 0;
};
ListSequence(LinkedList<T>* items, int size) {
this->size = size;
this->items = new LinkedList<T>();
for (int i = 0; i < size; i++) {
this->Prepend(items->Get(i));
}
};
ListSequence(T* items, int count) {
this->items = new LinkedList<T>(items, count);
};
ListSequence(const ListSequence<T>& list) {
this->size = list.size;
this->items = new LinkedList<T>(list.GetSize());
for (int i = 0; i < list.GetSize(); i++) {
this->Prepend(list.Get(i));
}
};
// Получение длины послед.
virtual int GetSize() const override {
return this->items->GetSize();
};
// Получение элемента послед. по индексу
virtual T Get(const int index) const override {
if (index < 0 || index > this->size)
throw std::exception("INDEX ERROR: Index out of range");
return this->items->Get(index);
};
// Получение последнего элемента послед.
virtual T GetLast() const override {
return this->items->GetLast();
};
// Получение первого элемента послед.
virtual T GetFirst() const override {
return this->items->GetFirst();
};
virtual void Set(int index, T item) override {
this->items->Set(index, item);
}
// Добавление элемента в начало
virtual void Append(T item) override {
this->items->Append(item);
++this->size;
};
// Добавление элемента в конец
virtual void Prepend(T item) override {
this->items->Prepend(item);
++this->size;
};
// Добавление элемента по индексу
virtual void Insert(int index, T item) override {
this->items->InsertAt(item, index);
++this->size;
};
// Удаление элемента по индексу
virtual void RemoveAt(int index) override {
if (index < 0 || index >= this->size)
throw std::exception("INDEX ERROR: Index out of range");
this->items->RemoveAt(index);
--this->size;
};
// Удаление элемента по значению
virtual void Remove(T item) override {
for (int i = 0; i < this->size; i++) {
if (this->items->Get(i) == item) {
this->items->RemoveAt(i);
break;
}
}
--this->size;
};
// Удаление всех элементов по значению
virtual void RemoveAll(T item) override {
for (int i = 0; i < this->size; i++) {
if (this->items->Get(i) == item) {
RemoveAt(i);
i--;
}
}
};
// Объединение послед.
virtual Sequence<T>* Concat(Sequence<T>* toConcat) override {
ListSequence<T>* tempList;
tempList = new ListSequence<T>();
T* temp;
temp = new T[this->GetSize() + toConcat->GetSize()];
for (int i = 0; i < this->GetSize(); i++) {
temp[i] = this->Get(i);
}
for (int i = 0; i < toConcat->GetSize(); i++) {
temp[i + this->GetSize()] = toConcat->Get(i);
}
for (int i = 0; i < this->GetSize() + toConcat->GetSize(); i++) {
tempList->Prepend(temp[i]);
}
return tempList;
};
// Получение подпослед. по индексам
virtual Sequence<T>* GetSubSequence(int start, int end) override {
if (start < 0 || start >= this->size || end < 0 || end >= this->size || end < start)
throw std::exception("INDEX ERROR: Index out of range");
ListSequence<T>* newList;
newList = new ListSequence();
newList->items = this->items->GetSubList(start, end);
newList->size = newList->GetSize();
this->size = newList->GetSize();
return newList;
};
// Копирование послед.
virtual Sequence<T>* Copy() override {
ListSequence<T>* copy;
copy = new ListSequence<T>();
for (int i = 0; i < this->size; i++) {
copy->items->Prepend(this->Get(i));
}
return copy;
};
void Print() {
for (int i = 0; i < this->GetSize(); i++) {
std::cout << "#" << i + 1 << ": " << this->Get(i) << std::endl;
}
}
// Деструктор
~ListSequence() {
delete this->items;
};
};
|
/*
* tracer_robot.hpp
*
* Created on: Jul 13, 2021 21:59
* Description:
*
* Copyright (c) 2021 Weston Robot Pte. Ltd.
*/
#ifndef TRACER_ROBOT_HPP
#define TRACER_ROBOT_HPP
#include "ugv_sdk/details/robot_base/tracer_base.hpp"
namespace westonrobot {
using TracerRobot = TracerBaseV2;
} // namespace westonrobot
#endif /* TRACER_ROBOT_HPP */
|
#include "include/sphere.h"
//#include "include/common.h"
#include <cmath>
namespace raytracer {
Sphere::Sphere()
: Shape()
{
}
Sphere::~Sphere() = default;
void Sphere::intersect(const Ray& ray, std::vector<Intersection>& xs) const {
Transform sphereTransform = this->getTransform();
Transform invertedTransform = inverse(sphereTransform);
Ray newRay = transform(ray, invertedTransform);
Tuple center = createPoint(0, 0, 0);
Tuple sphereToRay = newRay.getOrigin() - center;
double a = dot(newRay.getDirection(), newRay.getDirection());
double b = 2 * dot(newRay.getDirection(), sphereToRay);
double c = dot(sphereToRay, sphereToRay) - 1;
double discriminant = pow(b, 2) - 4 * a * c;
if (discriminant > 0) {
double t1 = (-b - sqrt(discriminant)) / (2 * a);
double t2 = (-b + sqrt(discriminant)) / (2 * a);
xs.emplace_back(t1, shared_from_this());
xs.emplace_back(t2, shared_from_this());
}
}
Tuple Sphere::getNormal(Tuple worldPoint) const {
Tuple objectPoint = inverse(this->getTransform()) * worldPoint;
Tuple objectNormal = objectPoint - createPoint(0, 0, 0);
Tuple worldNormal = transpose(inverse(this->getTransform())) * objectNormal;
worldNormal.w = 0;
return normalize(worldNormal);
}
void Sphere::createGlass() {
this->material.transparency = 1.0;
this->material.refractiveIndex = 1.5;
}
bool operator==(const Sphere& s1, const Sphere& s2) {
return typeid(s1) == typeid(s2);
}
bool operator!=(const Sphere& s1, const Sphere& s2) {
return !(s1 == s2);
}
} // namespace raytracer
|
#include<iostream>
#include <cstdio>
#include <string.h>
#include <cmath>
using namespace std;
double arr[1001][2006];
double find(int n,int k)
{
if (n == 0)
return k == 0 ? 100 : 0;
if (k <= 0)
return 0;
if (arr[n][k] > -0.5)
return arr[n][k];
return arr[n][k]=(find(n-1,k-1)+find(n-1,k-2)+find(n-1,k-3)+find(n-1,k-4)+find(n-1,k-5)+find(n-1,k-6))/6.0;
}
int main()
{
int t,n,k;
scanf("%d",&t);
int a=sizeof(arr);
cout<<a;
memset(arr,-1,sizeof(arr));
while(t--)
{
scanf("%d%d",&n,&k);
if(n>=1001||k>=2002)
printf("0\n");
else
{
int v;
v=find(n,k);
printf("%d\n",v);
}
}
system("pause");
return 0;
}
|
#include<iostream>
#include<string>
using namespace std;
class myclass
{
public:
string name;
int age;
void print(){
cout<<"Name-"<<name<<endl<<"Age-"<<age;
}
};
int main()
{
myclass obj;
cout<<"Enter your name and age:";
cin>>obj.name;
cin>>obj.age;
obj.print();
return 0;
}
|
/*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef FLUXNET_STREAMSOCKET_H
#define FLUXNET_STREAMSOCKET_H
#include <flux/SystemStream>
#include <flux/net/SocketAddress>
namespace flux {
namespace net {
/** \brief Connection oriented byte-sequential communication channel
* \see ConnectionMonitor
*/
class StreamSocket: public SystemStream
{
public:
static Ref<StreamSocket> listen(SocketAddress *address);
static Ref<StreamSocket> connect(SocketAddress *address);
SocketAddress *address() const;
bool getPeerAddress(SocketAddress *address);
Ref<StreamSocket> accept();
void shutdown(int how = SHUT_RDWR);
void setRecvTimeout(double interval);
void setSendTimeout(double interval);
protected:
StreamSocket(SocketAddress *address);
StreamSocket(SocketAddress *address, int fdc);
void bind();
void listen(int backlog = 8);
void connect();
Ref<SocketAddress> address_;
bool connected_;
};
}} // namespace flux::net
#endif // FLUXNET_STREAMSOCKET_H
|
/* Otto Shaft
* SHAFT ROBOTICA https://instagram.com/shaftrobotica
por VITOR DOMINGUES https://github.com/vitorshaft/
09 fev 2019
*/
#include <Servo.h>
#include <Oscillator.h>
#include <Otto.h>
#include <Otto_gestures.h>
Otto Otto;
#define Dir0 4 //D2
#define Dir1 5 //D1
#define Esq0 0 //D3
#define Esq1 2 //D4
// Servo Dir0,Dir1,E0,E1;
// Dir0 = Direita perna
// Dir1 = Direita pé
// E0 = Esquerda perna
// E1 = Esquerda pé
void setup() {
Otto.init(Esq0,Dir0,Esq1,Dir1,false);
Otto.home();
delay(50);
// Dir0.attach(4); // anexa servo Dir0 na porta GIO4 (D2)
// Dir1.attach(5); // anexa servo Dir1 na porta GIO5 (D1)
// E0.attach(0); // anexa servo E0 na porta GIO0 (D3)
// E1.attach(2); // anexa servo E1 na porta GIO2 (D4)
}
void loop() {
Otto.walk(2,1000,1);
Otto.home();
}
|
//**************************************************************************
//**
//** See jlquake.txt for copyright info.
//**
//** This program is free software; you can redistribute it and/or
//** modify it under the terms of the GNU General Public License
//** as published by the Free Software Foundation; either version 3
//** 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
//** included (gnu.txt) GNU General Public License for more details.
//**
//**************************************************************************
/*
THIS ENTIRE FILE IS BACK END
This file deals with applying shaders to surface data in the tess struct.
*/
#include "../cinematic/public.h"
#include "shader.h"
#include "main.h"
#include "backend.h"
#include "sky.h"
#include "cvars.h"
#include "state.h"
#include "scene.h"
#include "../../common/Common.h"
#include "../../common/common_defs.h"
#include "../../common/strings.h"
// Hex Color string support
#define gethex( ch ) ( ( ch ) > '9' ? ( ( ch ) >= 'a' ? ( ( ch ) - 'a' + 10 ) : ( ( ch ) - '7' ) ) : ( ( ch ) - '0' ) )
#define ishex( ch ) ( ( ch ) && ( ( ( ch ) >= '0' && ( ch ) <= '9' ) || ( ( ch ) >= 'A' && ( ch ) <= 'F' ) || ( ( ch ) >= 'a' && ( ch ) <= 'f' ) ) )
// check if it's format rrggbb r,g,b e {0..9} U {A...F}
#define Q_IsHexColorString( p ) ( ishex( *( p ) ) && ishex( *( ( p ) + 1 ) ) && ishex( *( ( p ) + 2 ) ) && ishex( *( ( p ) + 3 ) ) && ishex( *( ( p ) + 4 ) ) && ishex( *( ( p ) + 5 ) ) )
#define Q_HexColorStringHasAlpha( p ) ( ishex( *( ( p ) + 6 ) ) && ishex( *( ( p ) + 7 ) ) )
shaderCommands_t tess;
static bool setArraysOnce;
// This is just for OpenGL conformance testing, it should never be the fastest
static void APIENTRY R_ArrayElementDiscrete( GLint index ) {
qglColor4ubv( tess.svars.colors[ index ] );
if ( glState.currenttmu ) {
qglMultiTexCoord2fARB( 0, tess.svars.texcoords[ 0 ][ index ][ 0 ], tess.svars.texcoords[ 0 ][ index ][ 1 ] );
qglMultiTexCoord2fARB( 1, tess.svars.texcoords[ 1 ][ index ][ 0 ], tess.svars.texcoords[ 1 ][ index ][ 1 ] );
} else {
qglTexCoord2fv( tess.svars.texcoords[ 0 ][ index ] );
}
qglVertex3fv( tess.xyz[ index ] );
}
static void R_DrawStripElements( int numIndexes, const glIndex_t* indexes, void ( APIENTRY* element )( GLint ) ) {
if ( numIndexes <= 0 ) {
return;
}
qglBegin( GL_TRIANGLE_STRIP );
// prime the strip
element( indexes[ 0 ] );
element( indexes[ 1 ] );
element( indexes[ 2 ] );
glIndex_t last[ 3 ] = { -1, -1, -1 };
last[ 0 ] = indexes[ 0 ];
last[ 1 ] = indexes[ 1 ];
last[ 2 ] = indexes[ 2 ];
bool even = false;
for ( int i = 3; i < numIndexes; i += 3 ) {
// odd numbered triangle in potential strip
if ( !even ) {
// check previous triangle to see if we're continuing a strip
if ( ( indexes[ i + 0 ] == last[ 2 ] ) && ( indexes[ i + 1 ] == last[ 1 ] ) ) {
element( indexes[ i + 2 ] );
assert( indexes[ i + 2 ] < ( glIndex_t )tess.numVertexes );
even = true;
}
// otherwise we're done with this strip so finish it and start
// a new one
else {
qglEnd();
qglBegin( GL_TRIANGLE_STRIP );
element( indexes[ i + 0 ] );
element( indexes[ i + 1 ] );
element( indexes[ i + 2 ] );
even = false;
}
} else {
// check previous triangle to see if we're continuing a strip
if ( ( last[ 2 ] == indexes[ i + 1 ] ) && ( last[ 0 ] == indexes[ i + 0 ] ) ) {
element( indexes[ i + 2 ] );
even = false;
}
// otherwise we're done with this strip so finish it and start
// a new one
else {
qglEnd();
qglBegin( GL_TRIANGLE_STRIP );
element( indexes[ i + 0 ] );
element( indexes[ i + 1 ] );
element( indexes[ i + 2 ] );
even = false;
}
}
// cache the last three vertices
last[ 0 ] = indexes[ i + 0 ];
last[ 1 ] = indexes[ i + 1 ];
last[ 2 ] = indexes[ i + 2 ];
}
qglEnd();
}
// Optionally performs our own glDrawElements that looks for strip conditions
// instead of using the single glDrawElements call that may be inefficient
// without compiled vertex arrays.
static void R_DrawElements( int numIndexes, const glIndex_t* indexes ) {
int primitives = r_primitives->integer;
// default is to use triangles if compiled vertex arrays are present
if ( primitives == 0 ) {
if ( qglLockArraysEXT ) {
primitives = 2;
} else {
primitives = 1;
}
}
if ( primitives == 2 ) {
qglDrawElements( GL_TRIANGLES, numIndexes, GL_INDEX_TYPE, indexes );
return;
}
if ( primitives == 1 ) {
R_DrawStripElements( numIndexes, indexes, qglArrayElement );
return;
}
if ( primitives == 3 ) {
R_DrawStripElements( numIndexes, indexes, R_ArrayElementDiscrete );
return;
}
// anything else will cause no drawing
}
/*
=============================================================
SURFACE SHADERS
=============================================================
*/
static void R_BindAnimatedImage( textureBundle_t* bundle ) {
if ( bundle->isVideoMap ) {
CIN_RunCinematic( bundle->videoMapHandle );
CIN_UploadCinematic( bundle->videoMapHandle );
return;
}
if ( bundle->isLightmap && ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) ) {
GL_Bind( tr.whiteImage );
return;
}
if ( bundle->isLightmap && ( backEnd.currentEntity->e.renderfx & ( RF_TRANSLUCENT | RF_ABSOLUTE_LIGHT ) ) ) {
GL_Bind( tr.whiteImage );
return;
}
if ( bundle->numImageAnimations <= 1 ) {
GL_Bind( bundle->image[ 0 ] );
return;
}
// it is necessary to do this messy calc to make sure animations line up
// exactly with waveforms of the same frequency
int index = idMath::FtoiFast( tess.shaderTime * bundle->imageAnimationSpeed * FUNCTABLE_SIZE );
index >>= FUNCTABLE_SIZE2;
if ( index < 0 ) {
index = 0; // may happen with shader time offsets
}
index %= bundle->numImageAnimations;
GL_Bind( bundle->image[ index ] );
}
// Draws triangle outlines for debugging
static void DrawTris( shaderCommands_t* input ) {
GL_Bind( tr.whiteImage );
const char* s = r_trisColor->string;
vec4_t trisColor = { 1, 1, 1, 1 };
if ( *s == '0' && ( *( s + 1 ) == 'x' || *( s + 1 ) == 'X' ) ) {
s += 2;
if ( Q_IsHexColorString( s ) ) {
trisColor[ 0 ] = ( ( float )( gethex( *( s ) ) * 16 + gethex( *( s + 1 ) ) ) ) / 255.00;
trisColor[ 1 ] = ( ( float )( gethex( *( s + 2 ) ) * 16 + gethex( *( s + 3 ) ) ) ) / 255.00;
trisColor[ 2 ] = ( ( float )( gethex( *( s + 4 ) ) * 16 + gethex( *( s + 5 ) ) ) ) / 255.00;
if ( Q_HexColorStringHasAlpha( s ) ) {
trisColor[ 3 ] = ( ( float )( gethex( *( s + 6 ) ) * 16 + gethex( *( s + 7 ) ) ) ) / 255.00;
}
}
} else {
for ( int i = 0; i < 4; i++ ) {
char* token = String::Parse3( &s );
if ( token ) {
trisColor[ i ] = String::Atof( token );
} else {
trisColor[ i ] = 1.f;
}
}
if ( !trisColor[ 3 ] ) {
trisColor[ 3 ] = 1.f;
}
}
unsigned int stateBits = 0;
if ( trisColor[ 3 ] < 1.f ) {
stateBits |= ( GLS_SRCBLEND_SRC_ALPHA | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA );
}
qglColor4fv( trisColor );
if ( r_showtris->integer == 2 ) {
stateBits |= GLS_POLYMODE_LINE | GLS_DEPTHMASK_TRUE;
GL_State( stateBits );
qglDepthRange( 0, 0 );
} else {
stateBits |= GLS_POLYMODE_LINE;
GL_State( stateBits );
qglEnable( GL_POLYGON_OFFSET_LINE );
qglPolygonOffset( r_offsetFactor->value, r_offsetUnits->value );
}
qglDisableClientState( GL_COLOR_ARRAY );
qglDisableClientState( GL_TEXTURE_COORD_ARRAY );
qglVertexPointer( 3, GL_FLOAT, 16, input->xyz ); // padded for SIMD
if ( qglLockArraysEXT ) {
qglLockArraysEXT( 0, input->numVertexes );
QGL_LogComment( "glLockArraysEXT\n" );
}
R_DrawElements( input->numIndexes, input->indexes );
if ( qglUnlockArraysEXT ) {
qglUnlockArraysEXT();
QGL_LogComment( "glUnlockArraysEXT\n" );
}
qglDepthRange( 0, 1 );
qglDisable( GL_POLYGON_OFFSET_LINE );
}
// Draws vertex normals for debugging
static void DrawNormals( shaderCommands_t* input ) {
GL_Bind( tr.whiteImage );
qglColor3f( 1, 1, 1 );
qglDepthRange( 0, 0 ); // never occluded
GL_State( GLS_POLYMODE_LINE | GLS_DEPTHMASK_TRUE );
if ( r_shownormals->integer == 2 ) {
// ydnar: light direction
trRefEntity_t* ent = backEnd.currentEntity;
vec3_t temp2;
if ( ent->e.renderfx & RF_LIGHTING_ORIGIN ) {
VectorSubtract( ent->e.lightingOrigin, backEnd.orient.origin, temp2 );
} else {
VectorClear( temp2 );
}
vec3_t temp;
temp[ 0 ] = DotProduct( temp2, backEnd.orient.axis[ 0 ] );
temp[ 1 ] = DotProduct( temp2, backEnd.orient.axis[ 1 ] );
temp[ 2 ] = DotProduct( temp2, backEnd.orient.axis[ 2 ] );
qglColor3f( ent->ambientLight[ 0 ] / 255, ent->ambientLight[ 1 ] / 255, ent->ambientLight[ 2 ] / 255 );
qglPointSize( 5 );
qglBegin( GL_POINTS );
qglVertex3fv( temp );
qglEnd();
qglPointSize( 1 );
if ( fabs( VectorLengthSquared( ent->lightDir ) - 1.0f ) > 0.2f ) {
qglColor3f( 1, 0, 0 );
} else {
qglColor3f( ent->directedLight[ 0 ] / 255, ent->directedLight[ 1 ] / 255, ent->directedLight[ 2 ] / 255 );
}
qglLineWidth( 3 );
qglBegin( GL_LINES );
qglVertex3fv( temp );
VectorMA( temp, 32, ent->lightDir, temp );
qglVertex3fv( temp );
qglEnd();
qglLineWidth( 1 );
} else {
// ydnar: normals drawing
qglBegin( GL_LINES );
for ( int i = 0; i < input->numVertexes; i++ ) {
qglVertex3fv( input->xyz[ i ] );
vec3_t temp;
VectorMA( input->xyz[ i ], r_normallength->value, input->normal[ i ], temp );
qglVertex3fv( temp );
}
qglEnd();
}
qglDepthRange( 0, 1 );
}
// We must set some things up before beginning any tesselation, because a
// surface may be forced to perform a RB_End due to overflow.
void RB_BeginSurface( shader_t* shader, int fogNum ) {
shader_t* state = shader->remappedShader ? shader->remappedShader : shader;
tess.numIndexes = 0;
tess.numVertexes = 0;
tess.shader = state;
tess.fogNum = fogNum;
tess.dlightBits = 0; // will be OR'd in by surface functions
tess.xstages = state->stages;
tess.numPasses = state->numUnfoggedPasses;
tess.currentStageIteratorFunc = state->optimalStageIteratorFunc;
tess.ATI_tess = false;
tess.shaderTime = backEnd.refdef.floatTime - tess.shader->timeOffset;
if ( tess.shader->clampTime && tess.shaderTime >= tess.shader->clampTime ) {
tess.shaderTime = tess.shader->clampTime;
}
}
// output = t0 * t1 or t0 + t1
//
// t0 = most upstream according to spec
// t1 = most downstream according to spec
static void DrawMultitextured( shaderCommands_t* input, int stage ) {
shaderStage_t* pStage = tess.xstages[ stage ];
if ( tess.shader->noFog && pStage->isFogged ) {
R_FogOn();
} else if ( tess.shader->noFog && !pStage->isFogged ) {
R_FogOff(); // turn it back off
} else {
// make sure it's on
R_FogOn();
}
if ( pStage->translucentStateBits && backEnd.currentEntity->e.renderfx & RF_TRANSLUCENT ) {
GL_State( pStage->translucentStateBits );
} else {
GL_State( pStage->stateBits );
}
// this is an ugly hack to work around a GeForce driver
// bug with multitexture and clip planes
if ( backEnd.viewParms.isPortal ) {
qglPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
}
//
// base
//
GL_SelectTexture( 0 );
qglTexCoordPointer( 2, GL_FLOAT, 0, input->svars.texcoords[ 0 ] );
R_BindAnimatedImage( &pStage->bundle[ 0 ] );
//
// lightmap/secondary pass
//
GL_SelectTexture( 1 );
qglEnable( GL_TEXTURE_2D );
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
if ( r_lightmap->integer ) {
GL_TexEnv( GL_REPLACE );
} else {
GL_TexEnv( tess.shader->multitextureEnv );
}
qglTexCoordPointer( 2, GL_FLOAT, 0, input->svars.texcoords[ 1 ] );
R_BindAnimatedImage( &pStage->bundle[ 1 ] );
R_DrawElements( input->numIndexes, input->indexes );
//
// disable texturing on TEXTURE1, then select TEXTURE0
//
//qglDisableClientState( GL_TEXTURE_COORD_ARRAY );
qglDisable( GL_TEXTURE_2D );
GL_SelectTexture( 0 );
}
static void RB_IterateStagesGeneric( shaderCommands_t* input ) {
for ( int stage = 0; stage < MAX_SHADER_STAGES; stage++ ) {
shaderStage_t* pStage = tess.xstages[ stage ];
if ( !pStage ) {
break;
}
if ( backEnd.currentEntity->e.renderfx & ( RF_TRANSLUCENT | RF_ABSOLUTE_LIGHT ) ) {
if ( pStage->isOverbright ) {
continue;
}
if ( !pStage->bundle[ 1 ].image[ 0 ] && pStage->bundle[ 0 ].isLightmap ) {
continue;
}
}
ComputeColors( pStage );
ComputeTexCoords( pStage );
if ( !setArraysOnce ) {
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, input->svars.colors );
}
//
// do multitexture
//
if ( pStage->bundle[ 1 ].image[ 0 ] != 0 ) {
DrawMultitextured( input, stage );
} else {
if ( !setArraysOnce ) {
qglTexCoordPointer( 2, GL_FLOAT, 0, input->svars.texcoords[ 0 ] );
}
//
// set state
//
if ( pStage->bundle[ 0 ].vertexLightmap && r_vertexLight->integer && !r_uiFullScreen->integer && r_lightmap->integer ) {
GL_Bind( tr.whiteImage );
} else {
R_BindAnimatedImage( &pStage->bundle[ 0 ] );
}
// Ridah, per stage fogging (detail textures)
if ( tess.shader->noFog && pStage->isFogged ) {
R_FogOn();
} else if ( tess.shader->noFog && !pStage->isFogged ) {
R_FogOff(); // turn it back off
} else { // make sure it's on
R_FogOn();
}
int fadeStart = backEnd.currentEntity->e.fadeStartTime;
if ( fadeStart ) {
int fadeEnd = backEnd.currentEntity->e.fadeEndTime;
if ( fadeStart > tr.refdef.time ) {
// has not started to fade yet
GL_State( pStage->stateBits );
} else {
if ( fadeEnd < tr.refdef.time ) { // entity faded out completely
continue;
}
float alphaval = ( float )( fadeEnd - tr.refdef.time ) / ( float )( fadeEnd - fadeStart );
unsigned int tempState = pStage->stateBits;
// remove the current blend, and don't write to Z buffer
tempState &= ~( GLS_SRCBLEND_BITS | GLS_DSTBLEND_BITS | GLS_DEPTHMASK_TRUE );
// set the blend to src_alpha, dst_one_minus_src_alpha
tempState |= ( GLS_SRCBLEND_SRC_ALPHA | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA );
GL_State( tempState );
GL_Cull( CT_FRONT_SIDED );
// modulate the alpha component of each vertex in the render list
for ( int i = 0; i < tess.numVertexes; i++ ) {
tess.svars.colors[ i ][ 0 ] *= alphaval;
tess.svars.colors[ i ][ 1 ] *= alphaval;
tess.svars.colors[ i ][ 2 ] *= alphaval;
tess.svars.colors[ i ][ 3 ] *= alphaval;
}
}
} else if ( r_lightmap->integer && ( pStage->bundle[ 0 ].isLightmap || pStage->bundle[ 1 ].isLightmap ) ) {
// ydnar: lightmap stages should be GL_ONE GL_ZERO so they can be seen
unsigned int stateBits = ( pStage->stateBits & ~( GLS_SRCBLEND_BITS | GLS_DSTBLEND_BITS ) ) |
( GLS_SRCBLEND_ONE | GLS_DSTBLEND_ZERO );
GL_State( stateBits );
} else if ( pStage->translucentStateBits && backEnd.currentEntity->e.renderfx & RF_TRANSLUCENT ) {
GL_State( pStage->translucentStateBits );
} else {
GL_State( pStage->stateBits );
}
//
// draw
//
R_DrawElements( input->numIndexes, input->indexes );
}
// allow skipping out to show just lightmaps during development
if ( r_lightmap->integer && ( pStage->bundle[ 0 ].isLightmap || pStage->bundle[ 1 ].isLightmap || pStage->bundle[ 0 ].vertexLightmap ) ) {
break;
}
}
}
// Perform dynamic lighting with another rendering pass
static void ProjectDlightTexture() {
if ( !backEnd.refdef.num_dlights ) {
return;
}
if ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) {
// no dlights for snooper
return;
}
for ( int l = 0; l < backEnd.refdef.num_dlights; l++ ) {
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
continue; // this surface definately doesn't have any of this light
}
float texCoordsArray[ SHADER_MAX_VERTEXES ][ 2 ];
float* texCoords = texCoordsArray[ 0 ];
byte colorArray[ SHADER_MAX_VERTEXES ][ 4 ];
byte* colors = colorArray[ 0 ];
dlight_t* dl = &backEnd.refdef.dlights[ l ];
vec3_t origin;
VectorCopy( dl->transformed, origin );
float radius = dl->radius;
float scale = 1.0f / radius;
vec3_t floatColor;
floatColor[ 0 ] = dl->color[ 0 ] * 255.0f;
floatColor[ 1 ] = dl->color[ 1 ] * 255.0f;
floatColor[ 2 ] = dl->color[ 2 ] * 255.0f;
byte clipBits[ SHADER_MAX_VERTEXES ];
for ( int i = 0; i < tess.numVertexes; i++, texCoords += 2, colors += 4 ) {
backEnd.pc.c_dlightVertexes++;
vec3_t dist;
VectorSubtract( origin, tess.xyz[ i ], dist );
texCoords[ 0 ] = 0.5f + dist[ 0 ] * scale;
texCoords[ 1 ] = 0.5f + dist[ 1 ] * scale;
int clip = 0;
if ( texCoords[ 0 ] < 0.0f ) {
clip |= 1;
} else if ( texCoords[ 0 ] > 1.0f ) {
clip |= 2;
}
if ( texCoords[ 1 ] < 0.0f ) {
clip |= 4;
} else if ( texCoords[ 1 ] > 1.0f ) {
clip |= 8;
}
// modulate the strength based on the height and color
float modulate;
if ( dist[ 2 ] > radius ) {
clip |= 16;
modulate = 0.0f;
} else if ( dist[ 2 ] < -radius ) {
clip |= 32;
modulate = 0.0f;
} else {
dist[ 2 ] = idMath::Fabs( dist[ 2 ] );
if ( dist[ 2 ] < radius * 0.5f ) {
modulate = 1.0f;
} else {
modulate = 2.0f * ( radius - dist[ 2 ] ) * scale;
}
}
clipBits[ i ] = clip;
colors[ 0 ] = idMath::FtoiFast( floatColor[ 0 ] * modulate );
colors[ 1 ] = idMath::FtoiFast( floatColor[ 1 ] * modulate );
colors[ 2 ] = idMath::FtoiFast( floatColor[ 2 ] * modulate );
colors[ 3 ] = 255;
}
// build a list of triangles that need light
int numIndexes = 0;
unsigned hitIndexes[ SHADER_MAX_INDEXES ];
for ( int i = 0; i < tess.numIndexes; i += 3 ) {
int a = tess.indexes[ i ];
int b = tess.indexes[ i + 1 ];
int c = tess.indexes[ i + 2 ];
if ( clipBits[ a ] & clipBits[ b ] & clipBits[ c ] ) {
continue; // not lighted
}
hitIndexes[ numIndexes ] = a;
hitIndexes[ numIndexes + 1 ] = b;
hitIndexes[ numIndexes + 2 ] = c;
numIndexes += 3;
}
if ( !numIndexes ) {
continue;
}
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
qglTexCoordPointer( 2, GL_FLOAT, 0, texCoordsArray[ 0 ] );
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, colorArray );
// Creating dlight shader to allow for special blends or alternate dlight texture
shader_t* dls = dl->shader;
if ( dls ) {
for ( int i = 0; i < dls->numUnfoggedPasses; i++ ) {
shaderStage_t* stage = dls->stages[ i ];
R_BindAnimatedImage( &dls->stages[ i ]->bundle[ 0 ] );
GL_State( stage->stateBits | GLS_DEPTHFUNC_EQUAL );
R_DrawElements( numIndexes, hitIndexes );
backEnd.pc.c_totalIndexes += numIndexes;
backEnd.pc.c_dlightIndexes += numIndexes;
}
} else {
R_FogOff();
GL_Bind( tr.dlightImage );
// include GLS_DEPTHFUNC_EQUAL so alpha tested surfaces don't add light
// where they aren't rendered
if ( dl->additive ) {
GL_State( GLS_SRCBLEND_ONE | GLS_DSTBLEND_ONE | GLS_DEPTHFUNC_EQUAL );
} else {
GL_State( GLS_SRCBLEND_DST_COLOR | GLS_DSTBLEND_ONE | GLS_DEPTHFUNC_EQUAL );
}
R_DrawElements( numIndexes, hitIndexes );
backEnd.pc.c_totalIndexes += numIndexes;
backEnd.pc.c_dlightIndexes += numIndexes;
// Ridah, overdraw lights several times, rather than sending
// multiple lights through
for ( int i = 0; i < dl->overdraw; i++ ) {
R_DrawElements( numIndexes, hitIndexes );
backEnd.pc.c_totalIndexes += numIndexes;
backEnd.pc.c_dlightIndexes += numIndexes;
}
R_FogOn();
}
}
}
// perform all dynamic lighting with a single rendering pass
static void DynamicLightSinglePass() {
// early out
if ( backEnd.refdef.num_dlights == 0 ) {
return;
}
// clear colors
Com_Memset( tess.svars.colors, 0, sizeof ( tess.svars.colors ) );
// walk light list
for ( int l = 0; l < backEnd.refdef.num_dlights; l++ ) {
// early out
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
continue;
}
// setup
dlight_t* dl = &backEnd.refdef.dlights[ l ];
vec3_t origin;
VectorCopy( dl->transformed, origin );
float radius = dl->radius;
float radiusInverseCubed = dl->radiusInverseCubed;
float intensity = dl->intensity;
vec3_t floatColor;
floatColor[ 0 ] = dl->color[ 0 ] * 255.0f;
floatColor[ 1 ] = dl->color[ 1 ] * 255.0f;
floatColor[ 2 ] = dl->color[ 2 ] * 255.0f;
// directional lights have max intensity and washout remainder intensity
float remainder;
if ( dl->flags & REF_DIRECTED_DLIGHT ) {
remainder = intensity * 0.125;
} else {
remainder = 0.0f;
}
// illuminate vertexes
byte* colors = tess.svars.colors[ 0 ];
for ( int i = 0; i < tess.numVertexes; i++, colors += 4 ) {
backEnd.pc.c_dlightVertexes++;
float modulate;
// directional dlight, origin is a directional normal
if ( dl->flags & REF_DIRECTED_DLIGHT ) {
// twosided surfaces use absolute value of the calculated lighting
modulate = intensity * DotProduct( dl->origin, tess.normal[ i ] );
if ( tess.shader->cullType == CT_TWO_SIDED ) {
modulate = fabs( modulate );
}
modulate += remainder;
}
// ball dlight
else {
vec3_t dir;
dir[ 0 ] = radius - fabs( origin[ 0 ] - tess.xyz[ i ][ 0 ] );
if ( dir[ 0 ] <= 0.0f ) {
continue;
}
dir[ 1 ] = radius - fabs( origin[ 1 ] - tess.xyz[ i ][ 1 ] );
if ( dir[ 1 ] <= 0.0f ) {
continue;
}
dir[ 2 ] = radius - fabs( origin[ 2 ] - tess.xyz[ i ][ 2 ] );
if ( dir[ 2 ] <= 0.0f ) {
continue;
}
modulate = intensity * dir[ 0 ] * dir[ 1 ] * dir[ 2 ] * radiusInverseCubed;
}
// optimizations
if ( modulate < ( 1.0f / 128.0f ) ) {
continue;
} else if ( modulate > 1.0f ) {
modulate = 1.0f;
}
// add to color
int color = colors[ 0 ] + idMath::FtoiFast( floatColor[ 0 ] * modulate );
colors[ 0 ] = color > 255 ? 255 : color;
color = colors[ 1 ] + idMath::FtoiFast( floatColor[ 1 ] * modulate );
colors[ 1 ] = color > 255 ? 255 : color;
color = colors[ 2 ] + idMath::FtoiFast( floatColor[ 2 ] * modulate );
colors[ 2 ] = color > 255 ? 255 : color;
}
}
// build a list of triangles that need light
int* intColors = ( int* )tess.svars.colors;
int numIndexes = 0;
unsigned hitIndexes[ SHADER_MAX_INDEXES ];
for ( int i = 0; i < tess.numIndexes; i += 3 ) {
int a = tess.indexes[ i ];
int b = tess.indexes[ i + 1 ];
int c = tess.indexes[ i + 2 ];
if ( !( intColors[ a ] | intColors[ b ] | intColors[ c ] ) ) {
continue;
}
hitIndexes[ numIndexes++ ] = a;
hitIndexes[ numIndexes++ ] = b;
hitIndexes[ numIndexes++ ] = c;
}
if ( numIndexes == 0 ) {
return;
}
// debug code
//% for( i = 0; i < numIndexes; i++ )
//% intColors[ hitIndexes[ i ] ] = 0x000000FF;
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, tess.svars.colors );
// render the dynamic light pass
R_FogOff();
GL_Bind( tr.whiteImage );
GL_State( GLS_SRCBLEND_DST_COLOR | GLS_DSTBLEND_ONE | GLS_DEPTHFUNC_EQUAL );
R_DrawElements( numIndexes, hitIndexes );
backEnd.pc.c_totalIndexes += numIndexes;
backEnd.pc.c_dlightIndexes += numIndexes;
R_FogOn();
}
// Perform dynamic lighting with multiple rendering passes
static void DynamicLightPass() {
// early out
if ( backEnd.refdef.num_dlights == 0 ) {
return;
}
// walk light list
for ( int l = 0; l < backEnd.refdef.num_dlights; l++ ) {
// early out
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
continue;
}
// clear colors
Com_Memset( tess.svars.colors, 0, sizeof ( tess.svars.colors ) );
// setup
dlight_t* dl = &backEnd.refdef.dlights[ l ];
vec3_t origin;
VectorCopy( dl->transformed, origin );
float radius = dl->radius;
float radiusInverseCubed = dl->radiusInverseCubed;
float intensity = dl->intensity;
vec3_t floatColor;
floatColor[ 0 ] = dl->color[ 0 ] * 255.0f;
floatColor[ 1 ] = dl->color[ 1 ] * 255.0f;
floatColor[ 2 ] = dl->color[ 2 ] * 255.0f;
// directional lights have max intensity and washout remainder intensity
float remainder;
if ( dl->flags & REF_DIRECTED_DLIGHT ) {
remainder = intensity * 0.125;
} else {
remainder = 0.0f;
}
// illuminate vertexes
byte* colors = tess.svars.colors[ 0 ];
for ( int i = 0; i < tess.numVertexes; i++, colors += 4 ) {
backEnd.pc.c_dlightVertexes++;
// directional dlight, origin is a directional normal
float modulate;
if ( dl->flags & REF_DIRECTED_DLIGHT ) {
// twosided surfaces use absolute value of the calculated lighting
modulate = intensity * DotProduct( dl->origin, tess.normal[ i ] );
if ( tess.shader->cullType == CT_TWO_SIDED ) {
modulate = fabs( modulate );
}
modulate += remainder;
}
// ball dlight
else {
vec3_t dir;
dir[ 0 ] = radius - fabs( origin[ 0 ] - tess.xyz[ i ][ 0 ] );
if ( dir[ 0 ] <= 0.0f ) {
continue;
}
dir[ 1 ] = radius - fabs( origin[ 1 ] - tess.xyz[ i ][ 1 ] );
if ( dir[ 1 ] <= 0.0f ) {
continue;
}
dir[ 2 ] = radius - fabs( origin[ 2 ] - tess.xyz[ i ][ 2 ] );
if ( dir[ 2 ] <= 0.0f ) {
continue;
}
modulate = intensity * dir[ 0 ] * dir[ 1 ] * dir[ 2 ] * radiusInverseCubed;
}
// optimizations
if ( modulate < ( 1.0f / 128.0f ) ) {
continue;
} else if ( modulate > 1.0f ) {
modulate = 1.0f;
}
// set color
int color = idMath::FtoiFast( floatColor[ 0 ] * modulate );
colors[ 0 ] = color > 255 ? 255 : color;
color = idMath::FtoiFast( floatColor[ 1 ] * modulate );
colors[ 1 ] = color > 255 ? 255 : color;
color = idMath::FtoiFast( floatColor[ 2 ] * modulate );
colors[ 2 ] = color > 255 ? 255 : color;
}
// build a list of triangles that need light
int* intColors = ( int* )tess.svars.colors;
int numIndexes = 0;
unsigned hitIndexes[ SHADER_MAX_INDEXES ];
for ( int i = 0; i < tess.numIndexes; i += 3 ) {
int a = tess.indexes[ i ];
int b = tess.indexes[ i + 1 ];
int c = tess.indexes[ i + 2 ];
if ( !( intColors[ a ] | intColors[ b ] | intColors[ c ] ) ) {
continue;
}
hitIndexes[ numIndexes++ ] = a;
hitIndexes[ numIndexes++ ] = b;
hitIndexes[ numIndexes++ ] = c;
}
if ( numIndexes == 0 ) {
continue;
}
// debug code (fixme, there's a bug in this function!)
//% for( i = 0; i < numIndexes; i++ )
//% intColors[ hitIndexes[ i ] ] = 0x000000FF;
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, tess.svars.colors );
R_FogOff();
GL_Bind( tr.whiteImage );
GL_State( GLS_SRCBLEND_DST_COLOR | GLS_DSTBLEND_ONE | GLS_DEPTHFUNC_EQUAL );
R_DrawElements( numIndexes, hitIndexes );
backEnd.pc.c_totalIndexes += numIndexes;
backEnd.pc.c_dlightIndexes += numIndexes;
R_FogOn();
}
}
// Blends a fog texture on top of everything else
static void RB_FogPass() {
if ( tr.refdef.rdflags & RDF_SNOOPERVIEW ) {
// no fog pass in snooper
return;
}
if ( GGameType & GAME_ET ) {
if ( tess.shader->noFog || !r_wolffog->integer ) {
return;
}
// ydnar: no world, no fogging
if ( backEnd.refdef.rdflags & RDF_NOWORLDMODEL ) {
return;
}
}
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, tess.svars.colors );
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
qglTexCoordPointer( 2, GL_FLOAT, 0, tess.svars.texcoords[ 0 ] );
mbrush46_fog_t* fog = tr.world->fogs + tess.fogNum;
for ( int i = 0; i < tess.numVertexes; i++ ) {
*( int* )&tess.svars.colors[ i ] = GGameType & GAME_ET ? fog->shader->fogParms.colorInt : fog->colorInt;
}
RB_CalcFogTexCoords( ( float* )tess.svars.texcoords[ 0 ] );
GL_Bind( tr.fogImage );
if ( tess.shader->fogPass == FP_EQUAL ) {
GL_State( GLS_SRCBLEND_SRC_ALPHA | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA | GLS_DEPTHFUNC_EQUAL );
} else {
GL_State( GLS_SRCBLEND_SRC_ALPHA | GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA );
}
R_DrawElements( tess.numIndexes, tess.indexes );
}
// Set the fog parameters for this pass.
static void SetIteratorFog() {
if ( backEnd.refdef.rdflags & RDF_NOWORLDMODEL ) {
R_FogOff();
return;
}
if ( backEnd.refdef.rdflags & RDF_DRAWINGSKY ) {
if ( glfogsettings[ FOG_SKY ].registered ) {
R_Fog( &glfogsettings[ FOG_SKY ] );
} else {
R_FogOff();
}
return;
}
if ( skyboxportal && backEnd.refdef.rdflags & RDF_SKYBOXPORTAL ) {
if ( glfogsettings[ FOG_PORTALVIEW ].registered ) {
R_Fog( &glfogsettings[ FOG_PORTALVIEW ] );
} else {
R_FogOff();
}
} else {
if ( glfogNum > FOG_NONE ) {
R_Fog( &glfogsettings[ FOG_CURRENT ] );
} else {
R_FogOff();
}
}
}
void RB_StageIteratorGeneric() {
shaderCommands_t* input = &tess;
RB_DeformTessGeometry();
//
// log this call
//
if ( r_logFile->integer ) {
// don't just call LogComment, or we will get
// a call to va() every frame!
QGL_LogComment( va( "--- RB_StageIteratorGeneric( %s ) ---\n", tess.shader->name ) );
}
// set GL fog
SetIteratorFog();
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
// RF< so we can send the normals as an array
qglEnableClientState( GL_NORMAL_ARRAY );
qglEnable( GL_PN_TRIANGLES_ATI ); // ATI PN-Triangles extension
}
//
// set face culling appropriately
//
if ( backEnd.currentEntity->e.renderfx & RF_LEFTHAND ) {
if ( input->shader->cullType == CT_FRONT_SIDED ) {
GL_Cull( CT_BACK_SIDED );
} else if ( input->shader->cullType == CT_BACK_SIDED ) {
GL_Cull( CT_FRONT_SIDED );
} else {
GL_Cull( CT_TWO_SIDED );
}
} else {
GL_Cull( input->shader->cullType );
}
// set polygon offset if necessary
if ( input->shader->polygonOffset ) {
qglEnable( GL_POLYGON_OFFSET_FILL );
qglPolygonOffset( r_offsetFactor->value, r_offsetUnits->value );
}
//
// if there is only a single pass then we can enable color
// and texture arrays before we compile, otherwise we need
// to avoid compiling those arrays since they will change
// during multipass rendering
//
if ( tess.numPasses > 1 || input->shader->multitextureEnv ) {
setArraysOnce = false;
qglDisableClientState( GL_COLOR_ARRAY );
qglDisableClientState( GL_TEXTURE_COORD_ARRAY );
} else {
setArraysOnce = true;
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, tess.svars.colors );
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
qglTexCoordPointer( 2, GL_FLOAT, 0, tess.svars.texcoords[ 0 ] );
}
// RF, send normals only if required
// This must be done first, since we can't change the arrays once they have been
// locked
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
qglNormalPointer( GL_FLOAT, 16, input->normal );
}
//
// lock XYZ
//
qglVertexPointer( 3, GL_FLOAT, 16, input->xyz ); // padded for SIMD
if ( qglLockArraysEXT ) {
qglLockArraysEXT( 0, input->numVertexes );
QGL_LogComment( "glLockArraysEXT\n" );
}
//
// enable color and texcoord arrays after the lock if necessary
//
if ( !setArraysOnce ) {
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
qglEnableClientState( GL_COLOR_ARRAY );
}
//
// call shader function
//
RB_IterateStagesGeneric( input );
//
// now do any dynamic lighting needed
//
if ( GGameType & GAME_ET ) {
if ( tess.dlightBits && tess.shader->fogPass &&
!( tess.shader->surfaceFlags & ( BSP46SURF_NODLIGHT | BSP46SURF_SKY ) ) ) {
if ( r_dynamiclight->integer == 2 ) {
DynamicLightPass();
} else {
DynamicLightSinglePass();
}
}
} else {
if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE &&
!( tess.shader->surfaceFlags & ( BSP46SURF_NODLIGHT | BSP46SURF_SKY ) ) ) {
ProjectDlightTexture();
}
}
//
// now do fog
//
if ( tess.fogNum && tess.shader->fogPass ) {
RB_FogPass();
}
//
// unlock arrays
//
if ( qglUnlockArraysEXT ) {
qglUnlockArraysEXT();
QGL_LogComment( "glUnlockArraysEXT\n" );
}
//
// reset polygon offset
//
if ( input->shader->polygonOffset ) {
qglDisable( GL_POLYGON_OFFSET_FILL );
}
// turn truform back off
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
qglDisable( GL_PN_TRIANGLES_ATI ); // ATI PN-Triangles extension
qglDisableClientState( GL_NORMAL_ARRAY );
}
}
void RB_StageIteratorVertexLitTexture() {
shaderCommands_t* input = &tess;
//
// compute colors
//
RB_CalcDiffuseColor( ( byte* )tess.svars.colors );
//
// log this call
//
if ( r_logFile->integer ) {
// don't just call LogComment, or we will get
// a call to va() every frame!
QGL_LogComment( va( "--- RB_StageIteratorVertexLitTexturedUnfogged( %s ) ---\n", tess.shader->name ) );
}
// set GL fog
SetIteratorFog();
//
// set face culling appropriately
//
GL_Cull( input->shader->cullType );
//
// set arrays and lock
//
qglEnableClientState( GL_COLOR_ARRAY );
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
qglEnable( GL_PN_TRIANGLES_ATI ); // ATI PN-Triangles extension
qglEnableClientState( GL_NORMAL_ARRAY ); // RF< so we can send the normals as an array
qglNormalPointer( GL_FLOAT, 16, input->normal );
}
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, tess.svars.colors );
qglTexCoordPointer( 2, GL_FLOAT, 16, tess.texCoords[ 0 ][ 0 ] );
qglVertexPointer( 3, GL_FLOAT, 16, input->xyz );
if ( qglLockArraysEXT ) {
qglLockArraysEXT( 0, input->numVertexes );
QGL_LogComment( "glLockArraysEXT\n" );
}
//
// call special shade routine
//
R_BindAnimatedImage( &tess.xstages[ 0 ]->bundle[ 0 ] );
GL_State( tess.xstages[ 0 ]->stateBits );
R_DrawElements( input->numIndexes, input->indexes );
//
// now do any dynamic lighting needed
//
if ( GGameType & GAME_ET ) {
if ( tess.dlightBits && tess.shader->fogPass &&
!( tess.shader->surfaceFlags & ( BSP46SURF_NODLIGHT | BSP46SURF_SKY ) ) ) {
if ( r_dynamiclight->integer == 2 ) {
DynamicLightPass();
} else {
DynamicLightSinglePass();
}
}
} else {
if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE ) {
ProjectDlightTexture();
}
}
//
// now do fog
//
if ( tess.fogNum && tess.shader->fogPass ) {
RB_FogPass();
}
//
// unlock arrays
//
if ( qglUnlockArraysEXT ) {
qglUnlockArraysEXT();
QGL_LogComment( "glUnlockArraysEXT\n" );
}
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
qglDisable( GL_PN_TRIANGLES_ATI ); // ATI PN-Triangles extension
}
}
void RB_StageIteratorLightmappedMultitexture() {
shaderCommands_t* input = &tess;
//
// log this call
//
if ( r_logFile->integer ) {
// don't just call LogComment, or we will get
// a call to va() every frame!
QGL_LogComment( va( "--- RB_StageIteratorLightmappedMultitexture( %s ) ---\n", tess.shader->name ) );
}
// set GL fog
SetIteratorFog();
//
// set face culling appropriately
//
GL_Cull( input->shader->cullType );
//
// set color, pointers, and lock
//
GL_State( GLS_DEFAULT );
qglVertexPointer( 3, GL_FLOAT, 16, input->xyz );
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
qglEnable( GL_PN_TRIANGLES_ATI ); // ATI PN-Triangles extension
qglNormalPointer( GL_FLOAT, 16, input->normal );
}
qglEnableClientState( GL_COLOR_ARRAY );
qglColorPointer( 4, GL_UNSIGNED_BYTE, 0, tess.constantColor255 );
//
// select base stage
//
GL_SelectTexture( 0 );
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
R_BindAnimatedImage( &tess.xstages[ 0 ]->bundle[ 0 ] );
qglTexCoordPointer( 2, GL_FLOAT, 16, tess.texCoords[ 0 ][ 0 ] );
//
// configure second stage
//
GL_SelectTexture( 1 );
qglEnable( GL_TEXTURE_2D );
if ( r_lightmap->integer ) {
GL_TexEnv( GL_REPLACE );
} else {
GL_TexEnv( GL_MODULATE );
}
if ( tess.xstages[ 0 ]->bundle[ 1 ].isLightmap && ( backEnd.refdef.rdflags & RDF_SNOOPERVIEW ) ) {
GL_Bind( tr.whiteImage );
} else {
R_BindAnimatedImage( &tess.xstages[ 0 ]->bundle[ 1 ] );
}
qglEnableClientState( GL_TEXTURE_COORD_ARRAY );
qglTexCoordPointer( 2, GL_FLOAT, 16, tess.texCoords[ 0 ][ 1 ] );
//
// lock arrays
//
if ( qglLockArraysEXT ) {
qglLockArraysEXT( 0, input->numVertexes );
QGL_LogComment( "glLockArraysEXT\n" );
}
R_DrawElements( input->numIndexes, input->indexes );
//
// disable texturing on TEXTURE1, then select TEXTURE0
//
qglDisable( GL_TEXTURE_2D );
qglDisableClientState( GL_TEXTURE_COORD_ARRAY );
GL_SelectTexture( 0 );
//
// now do any dynamic lighting needed
//
if ( GGameType & GAME_ET ) {
if ( tess.dlightBits && tess.shader->fogPass &&
!( tess.shader->surfaceFlags & ( BSP46SURF_NODLIGHT | BSP46SURF_SKY ) ) ) {
if ( r_dynamiclight->integer == 2 ) {
DynamicLightPass();
} else {
DynamicLightSinglePass();
}
}
} else {
if ( tess.dlightBits && tess.shader->sort <= SS_OPAQUE ) {
ProjectDlightTexture();
}
}
//
// now do fog
//
if ( tess.fogNum && tess.shader->fogPass ) {
RB_FogPass();
}
//
// unlock arrays
//
if ( qglUnlockArraysEXT ) {
qglUnlockArraysEXT();
QGL_LogComment( "glUnlockArraysEXT\n" );
}
if ( qglPNTrianglesiATI && tess.ATI_tess ) {
qglDisable( GL_PN_TRIANGLES_ATI ); // ATI PN-Triangles extension
}
}
void RB_EndSurface() {
shaderCommands_t* input = &tess;
if ( input->numIndexes == 0 ) {
return;
}
if ( input->indexes[ SHADER_MAX_INDEXES - 1 ] != 0 ) {
common->Error( "RB_EndSurface() - SHADER_MAX_INDEXES hit" );
}
if ( input->xyz[ SHADER_MAX_VERTEXES - 1 ][ 0 ] != 0 ) {
common->Error( "RB_EndSurface() - SHADER_MAX_VERTEXES hit" );
}
if ( tess.shader == tr.shadowShader ) {
RB_ShadowTessEnd();
return;
}
// for debugging of sort order issues, stop rendering after a given sort value
if ( r_debugSort->integer && r_debugSort->integer < tess.shader->sort ) {
return;
}
if ( GGameType & GAME_WolfSP && skyboxportal ) {
// world
if ( !( backEnd.refdef.rdflags & RDF_SKYBOXPORTAL ) ) {
if ( tess.currentStageIteratorFunc == RB_StageIteratorSky ) {
// don't process these tris at all
return;
}
}
// portal sky
else {
if ( !drawskyboxportal ) {
if ( !( tess.currentStageIteratorFunc == RB_StageIteratorSky ) ) {
// /only/ process sky tris
return;
}
}
}
}
//
// update performance counters
//
backEnd.pc.c_shaders++;
backEnd.pc.c_vertexes += tess.numVertexes;
backEnd.pc.c_indexes += tess.numIndexes;
backEnd.pc.c_totalIndexes += tess.numIndexes * tess.numPasses;
//
// call off to shader specific tess end function
//
tess.currentStageIteratorFunc();
//
// draw debugging stuff
//
if ( r_showtris->integer ) {
DrawTris( input );
}
if ( r_shownormals->integer ) {
DrawNormals( input );
}
// clear shader so we can tell we don't have any unclosed surfaces
tess.numIndexes = 0;
QGL_LogComment( "----------\n" );
}
|
#pragma once
#include "CHandler.h"
#include "CShaderManager.h"
#include <stack>
#include "CDrawing.h"
struct SHierModelNode
{
shared_ptr<CDrawing> draw;
glm::mat4 trans;
glm::mat4 trans_s; // no inheritance
int port;
int left_child;
int right_sibling;
vector<int> homos; // nodes that will be drawed in same time
SHierModelNode() {
trans = glm::mat4(1.0); trans_s = glm::mat4(1.0); port = -1; left_child = -1; right_sibling = -1;}
};
class CHierModel :
public CHandler
{
protected:
GLuint V_Program;
map<int, glm::mat4> V_Trans2; //transforms applied after hiera transform, according to port. (for animation)
map<int, CHierModel*> V_Concat;
stack<glm::mat4> V_MatrixStack;
vector<SHierModelNode> V_Tree;
void M_Release(void);
void M_Draw_Rec(int index, glm::mat4 CTM);
SRenderInfo V_RenderInfo;
public:
void M_RegisterTrans2(int port, glm::mat4 t);
void M_ClearTrans2(void) { V_Trans2.clear(); }
void M_Draw(const SRenderInfo& r);
void M_ConcatHierModel(int index, CHierModel* c); // concat two hiermodel so that can be drawn together
CHierModel(vector<SHierModelNode>& t) { V_Tree = t; }
CHierModel(SHierModelNode& t) { V_Tree.push_back(t); }
virtual ~CHierModel();
};
|
/*
Summary:
Print hexadecimal values
Notes:
0000 - FFFF
-Copy/Pasting hex practice values from cmd to doc file
might require different IDE or directly loading file from
command prompt
*/
#include <iostream> /*cout, endl */
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
using namespace std;
void convertValue(int x, int y)
{
switch (x)
{
case 10:
cout << "A --- " << x * y << endl;
break;
case 11:
cout << "B --- " << x * y << endl;
break;
case 12:
cout << "C --- " << x * y << endl;
break;
case 13:
cout << "D --- " << x * y << endl;
break;
case 14:
cout << "E --- " << x * y << endl;
break;
case 15:
cout << "F --- " << x * y << endl;
break;
default:
break;
}
}
void printHex(int a, int b)
{
switch (a)
{
case 10:
cout << "A";
break;
case 11:
cout << "B";
break;
case 12:
cout << "C";
break;
case 13:
cout << "D";
break;
case 14:
cout << "E";
break;
case 15:
cout << "F";
break;
default:
cout << a;
break;
}
}
//Generate list of hex numbers for worksheet practice
void genHexNumbers()
{
/* initialize random seed: */
srand (time(NULL));
int a;
cout << "Copy/paste values into doc file to print" << endl;
for (int x = 0; x <= 100; x++)
{
a = rand() % 16;
printHex(a);
a = rand() % 16;
printHex(a);
cout << " "; //padding for printing worksheet
}
cout << endl;
}
int main()
{
for (int x = 0, y = 1; ; x++)
{
if (x <= 9)
{
cout << x << " --- " << x * y << endl;
}
else
{
convertValue(x, y);
}
if (x == 15)
{
x = 0;
y *= 16;
cout << endl << endl << endl;
}
if (y >= 5000 ) //greater than 4,096
{
break;
}
}
genHexNumbers();
return 0;
}
|
#include "CommitTaskDialog.h"
#include "ui_CommitTaskDialog.h"
#include "TaskMacro.h"
#include <QProgressBar>
#include <QDebug>
#include <QMessageBox>
using namespace Plugins;
CommitTaskDialog::CommitTaskDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CommitTaskDialog)
{
ui->setupUi(this);
// addItem();
ui->tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers);
ui->addUploadPushButton->hide();
}
CommitTaskDialog::~CommitTaskDialog()
{
delete ui;
}
void CommitTaskDialog::init()
{
QString name = "CommitTaskDialog";
TaskDataObserver::getInstance()->regis(name,std::bind(&CommitTaskDialog::updateTaskData, this, std::placeholders::_1));
// REGISTER_DATA_FUN(name, std::bind(&CommitTaskDialog::updateTaskData, this, std::placeholders::_1));
}
void CommitTaskDialog::updateTaskData(TaskData::Ptr &&ptr)
{
qDebug() << "CommitTaskDialog::updataTaskData";
switch (ptr->getState()) {
case TASK_STATE_LGN:
break;
case TASK_STATE_CREATE:
{
}
break;
case TASK_STATE_DEL:
break;
case TASK_STATE_UCOMMIT:
{
addItem(ptr);
}
break;
case TASK_STATE_DRESULT:
break;
case TASK_STATE_SEL:
break;
case TASK_STATE_CALCING:
{
}
break;
default:
break;
}
}
bool CommitTaskDialog::getRepeatUploadTask(QString name)
{
for (int i = 0; i < ui->tableWidget->rowCount(); ++i)
{
QTableWidgetItem* item = ui->tableWidget->item(0,0);
if(item->text() == name)
return true;
}
return false;
}
void CommitTaskDialog::addItem(const TaskData::Ptr &ptr)
{
if(getRepeatUploadTask(ptr->getTaskName()))
{
QMessageBox::about(this, tr("prompt"), tr("Task upload already exists"));
return;
}
QTableWidgetItem* nameItem = new QTableWidgetItem(ptr->getTaskName());
QTableWidgetItem* sizeItem = new QTableWidgetItem("");
QTableWidgetItem* speedItem = new QTableWidgetItem("");
QProgressBar *pbar = new QProgressBar;
pbar->setValue(0);
pbar->setStyleSheet(
"QProgressBar {border: 2px solid grey; border-radius: 5px;"
"background-color: #FFFFFF;"
"text-align: center;}"
"QProgressBar::chunk {background-color: rgb(0,250,0) ;}");
QTableWidgetItem* stateItem = new QTableWidgetItem("");
int row = ui->tableWidget->rowCount();
ui->tableWidget->setRowCount(row + 1);
ui->tableWidget->setItem(row, 0, nameItem);
ui->tableWidget->setItem(row, 1, sizeItem);
ui->tableWidget->setCellWidget(row, 2, pbar);
ui->tableWidget->setItem(row, 3, speedItem);
ui->tableWidget->setItem(row, 4, stateItem);
}
void CommitTaskDialog::updateTranslatorUI()
{
// QStringList strs = {tr("upFile"), tr("size"), tr("progress"),tr("speed"),tr("describe")};
// ui->tableWidget->setHorizontalHeaderLabels(strs);
ui->tableWidget->horizontalHeaderItem(0)->setText(tr("upFile"));
ui->tableWidget->horizontalHeaderItem(1)->setText(tr("size"));
ui->tableWidget->horizontalHeaderItem(2)->setText(tr("progress"));
ui->tableWidget->horizontalHeaderItem(3)->setText(tr("speed"));
ui->tableWidget->horizontalHeaderItem(4)->setText(tr("describe"));
ui->quitPushButton->setText(tr("quit"));
ui->addUploadPushButton->setText(tr("addUpload"));
ui->clearPushButton->setText(tr("clearCompleted"));
this->setWindowTitle(tr("TaskUpload"));
}
void CommitTaskDialog::onFileSize(QString fileName, int size)
{
qDebug() << "onFileSize " << size ;
QTableWidgetItem* item;
QList<QTableWidgetItem*> listItem = ui->tableWidget->findItems(fileName, Qt::MatchExactly);
foreach (auto& var, listItem) {
item = ui->tableWidget->item(var->row(), 1);
item->setText(QString("%1").arg(size));
}
qDebug() << "item text " << item->text() ;
}
void CommitTaskDialog::onCommitedSize(QString fileName, int schedule)
{
qDebug() << "onDownedSize = " << schedule;
QList<QTableWidgetItem*> listItem = ui->tableWidget->findItems(fileName, Qt::MatchExactly);
foreach (auto& var, listItem) {
QProgressBar *pbar = static_cast<QProgressBar*>( ui->tableWidget->cellWidget(var->row(), 2));
pbar->setValue(schedule);
}
}
void CommitTaskDialog::onSpeedSize(QString fileName, QString s)
{
QTableWidgetItem* item;
QList<QTableWidgetItem*> listItem = ui->tableWidget->findItems(fileName, Qt::MatchExactly);
foreach (auto& var, listItem) {
item = ui->tableWidget->item(var->row(), 3);
item->setText(s);
}
}
void Plugins::CommitTaskDialog::on_clearPushButton_clicked()
{
int count = ui->tableWidget->rowCount();
for (int i = count-1; i >= 0; --i) {
QProgressBar *pbar = static_cast<QProgressBar*>( ui->tableWidget->cellWidget(i, 2));
if(100 == pbar->value())
{
ui->tableWidget->removeRow(i);
}
}
}
void Plugins::CommitTaskDialog::on_quitPushButton_clicked()
{
this->hide();
}
|
//**************************************************************************
//**
//** See jlquake.txt for copyright info.
//**
//** This program is free software; you can redistribute it and/or
//** modify it under the terms of the GNU General Public License
//** as published by the Free Software Foundation; either version 3
//** 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
//** included (gnu.txt) GNU General Public License for more details.
//**
//**************************************************************************
// cvar.c -- dynamic variable tracking
#include "console_variable.h"
#include "Common.h"
#include "common_defs.h"
#include "strings.h"
#include "command_buffer.h"
#include "../server/public.h"
#include "../client/public.h"
#define MAX_CVARS 2048
#define FILE_HASH_SIZE 512
#define FOREIGN_MSG "Foreign characters are not allowed in userinfo variables.\n"
Cvar* cvar_vars;
int cvar_modifiedFlags;
static Cvar* cvar_cheats;
static Cvar* cvar_indexes[ MAX_CVARS ];
static int cvar_numIndexes;
static Cvar* cvar_hashTable[ FILE_HASH_SIZE ];
// Return a hash value for the filename
static int Cvar_GenerateHashValue( const char* fname ) {
if ( !fname ) {
common->Error( "null name in Cvar_GenerateHashValue" );
}
int hash = 0;
for ( int i = 0; fname[ i ] != '\0'; i++ ) {
char letter = String::ToLower( fname[ i ] );
hash += ( int )( letter ) * ( i + 119 );
}
hash &= ( FILE_HASH_SIZE - 1 );
return hash;
}
char* __CopyString( const char* in ) {
char* out = ( char* )Mem_Alloc( String::Length( in ) + 1 );
String::Cpy( out, in );
return out;
}
Cvar* Cvar_FindVar( const char* VarName ) {
int hash = Cvar_GenerateHashValue( VarName );
for ( Cvar* var = cvar_hashTable[ hash ]; var; var = var->hashNext ) {
if ( !String::ICmp( VarName, var->name ) ) {
return var;
}
}
return NULL;
}
static bool Cvar_ValidateString( const char* S ) {
if ( !S ) {
return false;
}
if ( strchr( S, '\\' ) ) {
return false;
}
if ( strchr( S, '\"' ) ) {
return false;
}
if ( strchr( S, ';' ) ) {
return false;
}
return true;
}
// Some cvar values need to be safe from foreign characters
static char* Cvar_ClearForeignCharacters( const char* value ) {
static char clean[ MAX_CVAR_VALUE_STRING ];
int j = 0;
for ( int i = 0; value[ i ] != '\0'; i++ ) {
if ( ( !( GGameType & GAME_ET ) && !( value[ i ] & 128 ) ) ||
( ( GGameType & GAME_ET ) && ( ( byte* )value )[ i ] != 0xFF && ( ( ( byte* )value )[ i ] <= 127 || ( ( byte* )value )[ i ] >= 161 ) ) ) {
clean[ j ] = value[ i ];
j++;
}
}
clean[ j ] = '\0';
return clean;
}
static Cvar* Cvar_Set2( const char* var_name, const char* value, bool force ) {
common->DPrintf( "Cvar_Set2: %s %s\n", var_name, value );
if ( !Cvar_ValidateString( var_name ) ) {
common->Printf( "invalid cvar name string: %s\n", var_name );
var_name = "BADNAME";
}
Cvar* var = Cvar_FindVar( var_name );
if ( !var ) {
if ( !value ) {
return NULL;
}
// create it
if ( !force ) {
return Cvar_Get( var_name, value, CVAR_USER_CREATED );
} else {
return Cvar_Get( var_name, value, 0 );
}
}
if ( !( GGameType & GAME_Tech3 ) && var->flags & ( CVAR_USERINFO | CVAR_SERVERINFO ) ) {
if ( !Cvar_ValidateString( value ) ) {
common->Printf( "invalid info cvar value\n" );
return var;
}
}
if ( !value ) {
value = var->resetString;
}
if ( ( GGameType & ( GAME_WolfMP | GAME_ET ) ) && ( var->flags & CVAR_USERINFO ) ) {
char* cleaned = Cvar_ClearForeignCharacters( value );
if ( String::Cmp( value, cleaned ) ) {
common->Printf( "%s", CL_TranslateStringBuf( FOREIGN_MSG ) );
common->Printf( "Using %s instead of %s\n", cleaned, value );
return Cvar_Set2( var_name, cleaned, force );
}
}
if ( !String::Cmp( value, var->string ) && !var->latchedString ) {
return var;
}
// note what types of cvars have been modified (userinfo, archive, serverinfo, systeminfo)
cvar_modifiedFlags |= var->flags;
if ( !force ) {
// ydnar: don't set unsafe variables when com_crashed is set
if ( ( var->flags & CVAR_UNSAFE ) && com_crashed && com_crashed->integer ) {
common->Printf( "%s is unsafe. Check com_crashed.\n", var_name );
return var;
}
if ( var->flags & CVAR_ROM ) {
common->Printf( "%s is read only.\n", var_name );
return var;
}
if ( var->flags & CVAR_INIT ) {
common->Printf( "%s is write protected.\n", var_name );
return var;
}
if ( ( var->flags & CVAR_CHEAT ) && !cvar_cheats->integer ) {
common->Printf( "%s is cheat protected.\n", var_name );
return var;
}
if ( var->flags & ( CVAR_LATCH | CVAR_LATCH2 ) ) {
if ( var->latchedString ) {
if ( String::Cmp( value, var->latchedString ) == 0 ) {
return var;
}
Mem_Free( var->latchedString );
} else {
if ( String::Cmp( value, var->string ) == 0 ) {
return var;
}
}
common->Printf( "%s will be changed upon restarting.\n", var_name );
var->latchedString = __CopyString( value );
var->modified = true;
var->modificationCount++;
return var;
}
} else {
if ( var->latchedString ) {
Mem_Free( var->latchedString );
var->latchedString = NULL;
}
}
if ( !String::Cmp( value, var->string ) ) {
return var; // not changed
}
var->modified = true;
var->modificationCount++;
Mem_Free( var->string ); // free the old value string
var->string = __CopyString( value );
var->value = String::Atof( var->string );
var->integer = String::Atoi( var->string );
SV_CvarChanged( var );
CL_CvarChanged( var );
return var;
}
Cvar* Cvar_Set( const char* var_name, const char* value ) {
return Cvar_Set2( var_name, value, true );
}
Cvar* Cvar_SetLatched( const char* var_name, const char* value ) {
return Cvar_Set2( var_name, value, false );
}
void Cvar_SetValue( const char* var_name, float value ) {
char val[ 32 ];
if ( value == ( int )value ) {
String::Sprintf( val, sizeof ( val ), "%i", ( int )value );
} else {
String::Sprintf( val, sizeof ( val ), "%f", value );
}
Cvar_Set( var_name, val );
}
void Cvar_SetValueLatched( const char* var_name, float value ) {
char val[ 32 ];
if ( value == ( int )value ) {
String::Sprintf( val, sizeof ( val ), "%i", ( int )value );
} else {
String::Sprintf( val, sizeof ( val ), "%f", value );
}
Cvar_SetLatched( var_name, val );
}
// If the variable already exists, the value will not be set.
// The flags will be or'ed in if the variable exists.
Cvar* Cvar_Get( const char* VarName, const char* VarValue, int Flags ) {
if ( !VarName || ( !( GGameType & GAME_Quake2 ) && !VarValue ) ) {
common->FatalError( "Cvar_Get: NULL parameter" );
}
if ( !( GGameType & GAME_Quake2 ) || ( Flags & ( CVAR_USERINFO | CVAR_SERVERINFO ) ) ) {
if ( !Cvar_ValidateString( VarName ) ) {
if ( GGameType & GAME_Quake2 ) {
common->Printf( "invalid info cvar name\n" );
return NULL;
}
common->Printf( "invalid cvar name string: %s\n", VarName );
VarName = "BADNAME";
}
}
Cvar* var = Cvar_FindVar( VarName );
if ( var ) {
// if the C code is now specifying a variable that the user already
// set a value for, take the new value as the reset value
if ( ( var->flags & CVAR_USER_CREATED ) && !( Flags & CVAR_USER_CREATED ) &&
VarValue[ 0 ] ) {
var->flags &= ~CVAR_USER_CREATED;
Mem_Free( var->resetString );
var->resetString = __CopyString( VarValue );
// ZOID--needs to be set so that cvars the game sets as
// SERVERINFO get sent to clients
cvar_modifiedFlags |= Flags;
}
var->flags |= Flags;
// only allow one non-empty reset string without a warning
if ( !var->resetString[ 0 ] ) {
// we don't have a reset string yet
Mem_Free( var->resetString );
var->resetString = __CopyString( VarValue );
} else if ( VarValue[ 0 ] && String::Cmp( var->resetString, VarValue ) ) {
common->DPrintf( "Warning: cvar \"%s\" given initial values: \"%s\" and \"%s\"\n",
VarName, var->resetString, VarValue );
}
// if we have a latched string, take that value now
// This is done only for Quake 3 type latched vars.
if ( ( var->flags & CVAR_LATCH2 ) && var->latchedString ) {
char* s = var->latchedString;
var->latchedString = NULL; // otherwise cvar_set2 would free it
Cvar_Set2( VarName, s, true );
Mem_Free( s );
}
// TTimo
// if CVAR_USERINFO was toggled on for an existing cvar, check wether the value needs to be cleaned from foreigh characters
// (for instance, seta name "name-with-foreign-chars" in the config file, and toggle to CVAR_USERINFO happens later in CL_Init)
if ( ( GGameType & ( GAME_WolfMP | GAME_ET ) ) && ( Flags & CVAR_USERINFO ) ) {
char* cleaned = Cvar_ClearForeignCharacters( var->string ); // NOTE: it is probably harmless to call Cvar_Set2 in all cases, but I don't want to risk it
if ( String::Cmp( var->string, cleaned ) ) {
Cvar_Set2( var->name, var->string, false ); // call Cvar_Set2 with the value to be cleaned up for verbosity
}
}
if ( GGameType & ( GAME_QuakeWorld | GAME_HexenWorld ) ) {
SV_CvarChanged( var );
CL_CvarChanged( var );
}
return var;
}
// Quake 2 case, other games check this above.
if ( !VarValue ) {
return NULL;
}
// Quake 3 doesn't check this at all. It had commented out check that
// ignored flags and it was commented out because variables that are not
// info variables can contain characters that are invalid for info srings.
// Currently for compatibility it's not done for Quake 3.
if ( !( GGameType & GAME_Tech3 ) && ( Flags & ( CVAR_USERINFO | CVAR_SERVERINFO ) ) ) {
if ( !Cvar_ValidateString( VarValue ) ) {
common->Printf( "invalid info cvar value\n" );
return NULL;
}
}
//
// allocate a new cvar
//
if ( cvar_numIndexes >= MAX_CVARS ) {
common->FatalError( "MAX_CVARS" );
}
var = new Cvar;
Com_Memset( var, 0, sizeof ( *var ) );
cvar_indexes[ cvar_numIndexes ] = var;
var->Handle = cvar_numIndexes;
cvar_numIndexes++;
var->name = __CopyString( VarName );
var->string = __CopyString( VarValue );
var->modified = true;
var->modificationCount = 1;
var->value = String::Atof( var->string );
var->integer = String::Atoi( var->string );
var->resetString = __CopyString( VarValue );
// link the variable in
var->next = cvar_vars;
cvar_vars = var;
var->flags = Flags;
int hash = Cvar_GenerateHashValue( VarName );
var->hashNext = cvar_hashTable[ hash ];
cvar_hashTable[ hash ] = var;
if ( GGameType & ( GAME_QuakeWorld | GAME_HexenWorld ) ) {
SV_CvarChanged( var );
CL_CvarChanged( var );
}
return var;
}
float Cvar_VariableValue( const char* var_name ) {
Cvar* var = Cvar_FindVar( var_name );
if ( !var ) {
return 0;
}
return var->value;
}
int Cvar_VariableIntegerValue( const char* var_name ) {
Cvar* var = Cvar_FindVar( var_name );
if ( !var ) {
return 0;
}
return var->integer;
}
const char* Cvar_VariableString( const char* var_name ) {
Cvar* var = Cvar_FindVar( var_name );
if ( !var ) {
return "";
}
return var->string;
}
void Cvar_VariableStringBuffer( const char* var_name, char* buffer, int bufsize ) {
Cvar* var = Cvar_FindVar( var_name );
if ( !var ) {
*buffer = 0;
} else {
String::NCpyZ( buffer, var->string, bufsize );
}
}
void Cvar_LatchedVariableStringBuffer( const char* var_name, char* buffer, int bufsize ) {
Cvar* var = Cvar_FindVar( var_name );
if ( !var ) {
*buffer = 0;
} else {
if ( var->latchedString ) {
String::NCpyZ( buffer, var->latchedString, bufsize );
} else {
String::NCpyZ( buffer, var->string, bufsize );
}
}
}
// Handles variable inspection and changing from the console
bool Cvar_Command() {
// check variables
Cvar* v = Cvar_FindVar( Cmd_Argv( 0 ) );
if ( !v ) {
return false;
}
// perform a variable print or set
if ( Cmd_Argc() == 1 ) {
common->Printf( "\"%s\" is:\"%s" S_COLOR_WHITE "\" default:\"%s" S_COLOR_WHITE "\"\n",
v->name, v->string, v->resetString );
if ( v->latchedString ) {
common->Printf( "latched: \"%s\"\n", v->latchedString );
}
return true;
}
// set the value if forcing isn't required
Cvar_Set2( v->name, Cmd_Argv( 1 ), false );
return true;
}
// Handles large info strings ( Q3CS_SYSTEMINFO )
char* Cvar_InfoString( int bit, int MaxSize, int MaxKeySize, int MaxValSize,
bool NoHighChars, bool LowerCaseVal ) {
static char info[ BIG_INFO_STRING ];
info[ 0 ] = 0;
for ( Cvar* var = cvar_vars; var; var = var->next ) {
if ( var->flags & bit ) {
Info_SetValueForKey( info, var->name, var->string, MaxSize,
MaxKeySize, MaxValSize, NoHighChars, LowerCaseVal );
}
}
return info;
}
static int ConvertTech3GameFlags( int flags ) {
// For Quake 2 compatibility some flags have been moved around,
// so map them to new values. Also clear unknown flags.
int TmpFlags = flags;
flags &= 0x3fc7;
if ( TmpFlags & 8 ) {
flags |= CVAR_SYSTEMINFO;
}
if ( TmpFlags & 16 ) {
flags |= CVAR_INIT;
}
if ( TmpFlags & 32 ) {
flags |= CVAR_LATCH2;
}
return flags;
}
void Cvar_InfoStringBuffer( int bit, int MaxSize, char* buff, int buffsize ) {
String::NCpyZ( buff, Cvar_InfoString( ConvertTech3GameFlags( bit ), MaxSize ), buffsize );
}
// basically a slightly modified Cvar_Get for the interpreted modules
void Cvar_Register( vmCvar_t* vmCvar, const char* varName, const char* defaultValue, int flags ) {
flags = ConvertTech3GameFlags( flags );
Cvar* cv = Cvar_Get( varName, defaultValue, flags );
if ( !vmCvar ) {
return;
}
vmCvar->handle = cv->Handle;
vmCvar->modificationCount = -1;
Cvar_Update( vmCvar );
}
// updates an interpreted modules' version of a cvar
void Cvar_Update( vmCvar_t* vmCvar ) {
assert( vmCvar ); // bk
if ( ( unsigned )vmCvar->handle >= ( unsigned )cvar_numIndexes ) {
common->Error( "Cvar_Update: handle out of range" );
}
Cvar* cv = cvar_indexes[ vmCvar->handle ];
if ( !cv ) {
return;
}
if ( cv->modificationCount == vmCvar->modificationCount ) {
return;
}
if ( !cv->string ) {
return; // variable might have been cleared by a cvar_restart
}
vmCvar->modificationCount = cv->modificationCount;
// bk001129 - mismatches.
if ( String::Length( cv->string ) + 1 > MAX_CVAR_VALUE_STRING ) {
common->Error( "Cvar_Update: src %s length %d exceeds MAX_CVAR_VALUE_STRING",
cv->string, String::Length( cv->string ) );
}
// bk001212 - Q_strncpyz guarantees zero padding and dest[MAX_CVAR_VALUE_STRING-1]==0
// bk001129 - paranoia. Never trust the destination string.
// bk001129 - beware, sizeof(char*) is always 4 (for cv->string).
// sizeof(vmCvar->string) always MAX_CVAR_VALUE_STRING
//Q_strncpyz( vmCvar->string, cv->string, sizeof( vmCvar->string ) ); // id
String::NCpyZ( vmCvar->string, cv->string, MAX_CVAR_VALUE_STRING );
vmCvar->value = cv->value;
vmCvar->integer = cv->integer;
}
const char* Cvar_CompleteVariable( const char* partial ) {
int len = String::Length( partial );
if ( !len ) {
return NULL;
}
// check exact match
for ( Cvar* cvar = cvar_vars; cvar; cvar = cvar->next ) {
if ( !String::Cmp( partial, cvar->name ) ) {
return cvar->name;
}
}
// check partial match
for ( Cvar* cvar = cvar_vars; cvar; cvar = cvar->next ) {
if ( !String::NCmp( partial,cvar->name, len ) ) {
return cvar->name;
}
}
return NULL;
}
void Cvar_CommandCompletion( void ( * callback )( const char* s ) ) {
for ( Cvar* cvar = cvar_vars; cvar; cvar = cvar->next ) {
callback( cvar->name );
}
}
// Any testing variables will be reset to the safe values
void Cvar_SetCheatState() {
// set all default vars to the safe value
for ( Cvar* var = cvar_vars; var; var = var->next ) {
if ( var->flags & CVAR_CHEAT ) {
// the CVAR_LATCHED|CVAR_CHEAT vars might escape the reset here
// because of a different var->latchedString
if ( var->latchedString ) {
Mem_Free( var->latchedString );
var->latchedString = NULL;
}
if ( String::Cmp( var->resetString, var->string ) ) {
Cvar_Set( var->name, var->resetString );
}
}
}
}
void Cvar_Reset( const char* var_name ) {
Cvar_Set2( var_name, NULL, false );
}
// Toggles a cvar for easy single key binding
static void Cvar_Toggle_f() {
if ( Cmd_Argc() != 2 ) {
common->Printf( "usage: toggle <variable>\n" );
return;
}
int v = Cvar_VariableValue( Cmd_Argv( 1 ) );
v = !v;
Cvar_Set2( Cmd_Argv( 1 ), va( "%i", v ), false );
}
// Cycles a cvar for easy single key binding
static void Cvar_Cycle_f() {
if ( Cmd_Argc() < 4 || Cmd_Argc() > 5 ) {
common->Printf( "usage: cycle <variable> <start> <end> [step]\n" );
return;
}
int value = Cvar_VariableIntegerValue( Cmd_Argv( 1 ) );
int oldvalue = value;
int start = String::Atoi( Cmd_Argv( 2 ) );
int end = String::Atoi( Cmd_Argv( 3 ) );
int step;
if ( Cmd_Argc() == 5 ) {
step = abs( String::Atoi( Cmd_Argv( 4 ) ) );
} else {
step = 1;
}
if ( abs( end - start ) < step ) {
step = 1;
}
if ( end < start ) {
value -= step;
if ( value < end ) {
value = start - ( step - ( oldvalue - end + 1 ) );
}
} else {
value += step;
if ( value > end ) {
value = start + ( step - ( end - oldvalue + 1 ) );
}
}
Cvar_Set2( Cmd_Argv( 1 ), va( "%i", value ), false );
}
// Allows setting and defining of arbitrary cvars from console, even if they
// weren't declared in C code.
static void Cvar_Set_f() {
int c = Cmd_Argc();
if ( c < 3 ) {
if ( GGameType & GAME_ET ) {
common->Printf( "usage: set <variable> <value> [unsafe]\n" );
} else {
common->Printf( "usage: set <variable> <value>\n" );
}
return;
}
// ydnar: handle unsafe vars
if ( ( GGameType & GAME_ET ) && c >= 4 && !String::Cmp( Cmd_Argv( c - 1 ), "unsafe" ) ) {
c--;
if ( com_crashed != NULL && com_crashed->integer ) {
common->Printf( "%s is unsafe. Check com_crashed.\n", Cmd_Argv( 1 ) );
return;
}
}
idStr combined;
for ( int i = 2; i < c; i++ ) {
combined += Cmd_Argv( i );
if ( i != c - 1 ) {
combined += " ";
}
}
Cvar_Set2( Cmd_Argv( 1 ), combined.CStr(), false );
}
// As Cvar_Set, but also flags it as userinfo
static void Cvar_SetU_f() {
if ( Cmd_Argc() < 3 ) {
if ( GGameType & GAME_ET ) {
common->Printf( "usage: setu <variable> <value> [unsafe]\n" );
} else {
common->Printf( "usage: setu <variable> <value>\n" );
}
return;
}
Cvar_Set_f();
Cvar* v = Cvar_FindVar( Cmd_Argv( 1 ) );
if ( !v ) {
return;
}
v->flags |= CVAR_USERINFO;
}
// As Cvar_Set, but also flags it as serverinfo
static void Cvar_SetS_f() {
if ( Cmd_Argc() < 3 ) {
if ( GGameType & GAME_ET ) {
common->Printf( "usage: sets <variable> <value> [unsafe]\n" );
} else {
common->Printf( "usage: sets <variable> <value>\n" );
}
return;
}
Cvar_Set_f();
Cvar* v = Cvar_FindVar( Cmd_Argv( 1 ) );
if ( !v ) {
return;
}
v->flags |= CVAR_SERVERINFO;
}
// As Cvar_Set, but also flags it as archived
static void Cvar_SetA_f() {
if ( Cmd_Argc() < 3 ) {
if ( GGameType & GAME_ET ) {
common->Printf( "usage: seta <variable> <value> [unsafe]\n" );
} else {
common->Printf( "usage: seta <variable> <value>\n" );
}
return;
}
Cvar_Set_f();
Cvar* v = Cvar_FindVar( Cmd_Argv( 1 ) );
if ( !v ) {
return;
}
v->flags |= CVAR_ARCHIVE;
}
static void Cvar_Reset_f() {
if ( Cmd_Argc() != 2 ) {
common->Printf( "usage: reset <variable>\n" );
return;
}
Cvar_Reset( Cmd_Argv( 1 ) );
}
static void Cvar_List_f() {
const char* match;
if ( Cmd_Argc() > 1 ) {
match = Cmd_Argv( 1 );
} else {
match = NULL;
}
int i = 0;
for ( Cvar* var = cvar_vars; var; var = var->next, i++ ) {
if ( match && !String::Filter( match, var->name, false ) ) {
continue;
}
if ( var->flags & CVAR_SERVERINFO ) {
common->Printf( "S" );
} else {
common->Printf( " " );
}
if ( var->flags & CVAR_USERINFO ) {
common->Printf( "U" );
} else {
common->Printf( " " );
}
if ( var->flags & CVAR_ROM ) {
common->Printf( "R" );
} else {
common->Printf( " " );
}
if ( var->flags & CVAR_INIT ) {
common->Printf( "I" );
} else {
common->Printf( " " );
}
if ( var->flags & CVAR_ARCHIVE ) {
common->Printf( "A" );
} else {
common->Printf( " " );
}
if ( var->flags & ( CVAR_LATCH | CVAR_LATCH2 ) ) {
common->Printf( "L" );
} else {
common->Printf( " " );
}
if ( var->flags & CVAR_CHEAT ) {
common->Printf( "C" );
} else {
common->Printf( " " );
}
common->Printf( " %s \"%s\"\n", var->name, var->string );
}
common->Printf( "\n%i total cvars\n", i );
common->Printf( "%i cvar indexes\n", cvar_numIndexes );
}
// Resets all cvars to their hardcoded values
static void Cvar_Restart_f() {
Cvar** prev = &cvar_vars;
while ( 1 ) {
Cvar* var = *prev;
if ( !var ) {
break;
}
// don't mess with rom values, or some inter-module
// communication will get broken (com_cl_running, etc)
if ( var->flags & ( CVAR_ROM | CVAR_INIT | CVAR_NORESTART ) ) {
prev = &var->next;
continue;
}
// throw out any variables the user created
if ( var->flags & CVAR_USER_CREATED ) {
*prev = var->next;
if ( var->name ) {
Mem_Free( var->name );
}
if ( var->string ) {
Mem_Free( var->string );
}
if ( var->latchedString ) {
Mem_Free( var->latchedString );
}
if ( var->resetString ) {
Mem_Free( var->resetString );
}
// clear the var completely, since we
// can't remove the index from the list
//Com_Memset( var, 0, sizeof( var ) );
cvar_indexes[ var->Handle ] = NULL;
delete var;
continue;
}
Cvar_Set( var->name, var->resetString );
prev = &var->next;
}
}
void Cvar_Init() {
if ( GGameType & GAME_WolfSP ) {
cvar_cheats = Cvar_Get( "sv_cheats", "0", CVAR_ROM | CVAR_SYSTEMINFO );
} else {
cvar_cheats = Cvar_Get( "sv_cheats", "1", CVAR_ROM | CVAR_SYSTEMINFO );
}
Cmd_AddCommand( "toggle", Cvar_Toggle_f );
Cmd_AddCommand( "cycle", Cvar_Cycle_f ); // ydnar
Cmd_AddCommand( "set", Cvar_Set_f );
Cmd_AddCommand( "sets", Cvar_SetS_f );
Cmd_AddCommand( "setu", Cvar_SetU_f );
Cmd_AddCommand( "seta", Cvar_SetA_f );
Cmd_AddCommand( "reset", Cvar_Reset_f );
Cmd_AddCommand( "cvarlist", Cvar_List_f );
Cmd_AddCommand( "cvar_restart", Cvar_Restart_f );
if ( GGameType & ( GAME_WolfMP | GAME_ET ) ) {
// NERVE - SMF - can't rely on autoexec to do this
Cvar_Get( "devdll", "1", CVAR_ROM );
}
}
// Appends lines containing "set variable value" for all variables with the
// archive flag set to true.
void Cvar_WriteVariables( fileHandle_t f ) {
char buffer[ 1024 ];
for ( Cvar* var = cvar_vars; var; var = var->next ) {
if ( String::ICmp( var->name, "cl_cdkey" ) == 0 ) {
continue;
}
if ( var->flags & CVAR_ARCHIVE ) {
// write the latched value, even if it hasn't taken effect yet
if ( var->latchedString ) {
if ( GGameType & GAME_ET && var->flags & CVAR_UNSAFE ) {
String::Sprintf( buffer, sizeof ( buffer ), "seta %s \"%s\" unsafe\n", var->name, var->latchedString );
} else {
String::Sprintf( buffer, sizeof ( buffer ), "seta %s \"%s\"\n", var->name, var->latchedString );
}
} else {
if ( GGameType & GAME_ET && var->flags & CVAR_UNSAFE ) {
String::Sprintf( buffer, sizeof ( buffer ), "seta %s \"%s\" unsafe\n", var->name, var->string );
} else {
String::Sprintf( buffer, sizeof ( buffer ), "seta %s \"%s\"\n", var->name, var->string );
}
}
FS_Printf( f, "%s", buffer );
}
}
}
void Cvar_UpdateIfExists( const char* name, const char* value ) {
// if this is a cvar, change it too
Cvar* var = Cvar_FindVar( name );
if ( var ) {
var->modified = true;
var->modificationCount++;
Mem_Free( var->string ); // free the old value string
var->string = __CopyString( value );
var->value = String::Atof( var->string );
var->integer = String::Atoi( var->string );
}
}
// Any variables with latched values will now be updated
void Cvar_GetLatchedVars() {
Cvar* var;
for ( var = cvar_vars; var; var = var->next ) {
if ( !var->latchedString ) {
continue;
}
// Only for Quake 2 type latched cvars.
if ( !( var->flags & CVAR_LATCH ) ) {
continue;
}
Mem_Free( var->string );
var->string = var->latchedString;
var->latchedString = NULL;
var->value = String::Atof( var->string );
if ( !String::Cmp( var->name, "game" ) ) {
FS_SetGamedir( var->string );
FS_ExecAutoexec();
}
}
}
|
/*
Copyright (c) 2005-2023, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of Oxford nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <cmath>
#include <iostream>
#include <boost/math/tools/roots.hpp>
#include <boost/bind.hpp>
#include "BoostTolerance.hpp"
#include "HiornsAirwayWall.hpp"
#include "MathsCustomFunctions.hpp"
#include "Exception.hpp"
HiornsAirwayWall::HiornsAirwayWall() : mTargetPressure(0),
mRIn(0),
mROut(0),
mmu(0),
mphi1(0),
mphi2(0),
mC1(0),
mC2(0),
mA(0)
{
}
HiornsAirwayWall::~HiornsAirwayWall() {}
void HiornsAirwayWall::SetTimestep(double dt) {}
double HiornsAirwayWall::CalculatePressureRadiusResidual(double radius)
{
mTargetPressure = mAirwayPressure - mPleuralPressure;
double rin = radius;
double areaOfAirwayWall = M_PI*(mROut*mROut - mRIn*mRIn);
double rout = sqrt(rin*rin + areaOfAirwayWall/M_PI);
double pressure;
pressure = mmu*log((rin*mROut)/(rout*mRIn)) + mmu*((rin*rin - mRIn*mRIn)/2.)*((1./rin*rin) - (1./rout*rout)) + 2*cos(mphi2)*cos(mphi2)*mA*log(mROut/mRIn);
if (rin - mRIn > 0.)
{
// THE COMMENTED OUT CODE CORRESPONDS TO THE PRELIMINARY VERSION OF THE HIORNS QUASI-STATIC
// AIRWAY WALL MODEL (I.E. EQUATION 1.1 IN THE HIORNS LOOKUP TABLES NOTES). THE VERSION THAT
// WE USE (FOLLOWING THE COMMENTED SECTION) INSTEAD IS MODIFIED SO THAT THE CONTRIBUTION OF
// THE COLLAGEN TO THE STRAIN-ENERGY LAW SATISFIES THE MODEL OF HOLZAPFEL ET AL.
// const int numberTrap = 10000;
// double integrandVals[numberTrap];
// double tVals[numberTrap];
// double integralStuff = 0.;
// double upperlimit = -1.;
// double lowerlimit = -1.;
// lowerlimit = ((sqrt(mC2)*(rout*rout - mROut*mROut)*cos(mphi1)*cos(mphi1))/((mROut)*(mROut)));
// upperlimit = ((sqrt(mC2)*(rin*rin - mRIn*mRIn)*cos(mphi1)*cos(mphi1))/((mRIn)*(mRIn)));
// for (int it = 0; it < numberTrap; it++)
// {
// double tVal = lowerlimit + ((double)it/((double)numberTrap - 1.))*(upperlimit - lowerlimit);
// tVals[it] = tVal;
// integrandVals[it] = (2.*exp(tVal*tVal)/sqrt(M_PI));
// }
// integralStuff = (0.5*(integrandVals[0] + integrandVals[numberTrap - 1]));
// integralStuff = integralStuff*(tVals[1] - tVals[0]);
// for (int i = 1; i < (numberTrap - 1); i++)
// {
// integralStuff = integralStuff + integrandVals[i]*(tVals[1] - tVals[0]);
// }
// pressure = pressure + mC1*sqrt(M_PI/mC2)*cos(mphi1)*cos(mphi1)*integralStuff;
double integralStuff = exp(mC2*((rin*rin - mRIn*mRIn)/(mRIn*mRIn))*((rin*rin - mRIn*mRIn)/(mRIn*mRIn))*cos(mphi1)*cos(mphi1)*cos(mphi1)*cos(mphi1)) - exp(mC2*((rout*rout - mROut*mROut)/(mROut*mROut))*((rout*rout - mROut*mROut)/(mROut*mROut))*cos(mphi1)*cos(mphi1)*cos(mphi1)*cos(mphi1));
pressure = pressure + (mC1/mC2)*cos(mphi1)*cos(mphi1)*integralStuff;
}
double residual = mTargetPressure - pressure;
return residual;
}
void HiornsAirwayWall::SolveAndUpdateState(double tStart, double tEnd)
{
double guess = (mRIn + mROut)/2.;
double factor = 2.;
Tolerance tol = 0.000001;
boost::uintmax_t maxIterations = 500u;
std::pair<double, double> found = boost::math::tools::bracket_and_solve_root(boost::bind(&HiornsAirwayWall::CalculatePressureRadiusResidual, this, _1), guess, factor, false, tol, maxIterations);
mDeformedAirwayRadius = found.first;
}
void HiornsAirwayWall::SetRIn(double RIn)
{
assert (RIn >= 0.0);
mRIn = RIn;
}
void HiornsAirwayWall::SetROut(double ROut)
{
assert (ROut >= 0.0);
mROut = ROut;
}
void HiornsAirwayWall::Setmu(double mu)
{
assert (mu >= 0.0);
mmu = mu;
}
void HiornsAirwayWall::Setphi1(double phi1)
{
mphi1 = phi1;
}
void HiornsAirwayWall::Setphi2(double phi2)
{
mphi2 = phi2;
}
void HiornsAirwayWall::SetC1(double C1)
{
mC1 = C1;
}
void HiornsAirwayWall::SetC2(double C2)
{
mC2 = C2;
}
void HiornsAirwayWall::SetA(double A)
{
mA = A;
}
double HiornsAirwayWall::GetLumenRadius()
{
return mDeformedAirwayRadius;
}
void HiornsAirwayWall::SetAirwayPressure(double pressure)
{
mAirwayPressure = pressure;
}
void HiornsAirwayWall::SetPleuralPressure(double pressure)
{
mPleuralPressure = pressure;
}
|
/*********************************************************************
Matt Marchant 2014 - 2016
http://trederia.blogspot.com
xygine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but
is not required.
2. Altered source versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any
source distribution.
*********************************************************************/
//shaders used for visualising normals on a model
#ifndef XY_GEOM_VIS_HPP_
#define XY_GEOM_VIS_HPP_
#include <string>
namespace xy
{
namespace Shader
{
namespace Mesh
{
static const std::string geomVisVert =
"in vec4 a_position;\n" \
"in vec3 a_normal;\n" \
"#if defined(BUMP)\n" \
"in vec3 a_tangent;\n" \
"in vec3 a_bitangent;\n" \
"#endif\n" \
"out VS_OUT\n" \
"{\n" \
" vec3 normal;\n" \
" vec3 tangent;\n" \
" vec3 bitangent;\n" \
"} vs_out;\n" \
"void main()\n" \
"{\n" \
" gl_Position = a_position;\n" \
" vs_out.normal = a_normal;\n" \
"#if defined(BUMP)\n" \
" vs_out.tangent = a_tangent;\n" \
" vs_out.bitangent = a_bitangent;\n" \
"#endif\n" \
"}\n";
static const std::string geomVisGeom =
"layout (triangles) in;\n" \
"layout (line_strip, max_vertices = 6) out;\n"
"in VS_OUT\n" \
"{\n" \
" vec3 normal;\n" \
" vec3 tangent;\n" \
" vec3 bitangent;\n" \
"}gs_in[];\n" \
"uniform mat4 u_worldViewMatrix;\n" \
"struct Point\n" \
"{\n" \
" vec3 position;\n" \
" float padding;\n" \
"};\n" \
"layout (std140) uniform u_matrixBlock\n" \
"{\n" \
" mat4 u_viewMatrix;\n" \
" mat4 u_projectionMatrix;\n" \
" Point u_pointLightPositions[8];\n" \
" vec3 u_cameraWorldPosition;\n" \
"};\n" \
"out vec3 vertColour;\n" \
"const float lineLength = 10.3;\n" \
"void createLines(int index)\n" \
"{\n" \
" mat4 worldViewProjectionMatrix = u_projectionMatrix * u_worldViewMatrix;\n" \
" gl_Position = worldViewProjectionMatrix * gl_in[index].gl_Position;\n" \
" vertColour = vec3(0.0, 0.0, 1.0);\n" \
" EmitVertex();\n" \
" gl_Position = worldViewProjectionMatrix * vec4(gl_in[index].gl_Position.xyz + gs_in[index].normal * lineLength, 1.0);\n" \
" EmitVertex();\n" \
"#if defined(BUMP)\n" \
" gl_Position = worldViewProjectionMatrix * gl_in[index].gl_Position;\n" \
" vertColour = vec3(1.0, 0.0, 0.0);\n" \
" EmitVertex();\n" \
" gl_Position = worldViewProjectionMatrix * vec4(gl_in[index].gl_Position.xyz + gs_in[index].tangent * lineLength, 1.0);\n" \
" EmitVertex();\n" \
" gl_Position = worldViewProjectionMatrix * gl_in[index].gl_Position;\n" \
" vertColour = vec3(0.0, 1.0, 0.0);\n" \
" EmitVertex();\n" \
" gl_Position = worldViewProjectionMatrix * vec4(gl_in[index].gl_Position.xyz + gs_in[index].bitangent * lineLength, 1.0);\n" \
" EmitVertex();\n" \
"#endif\n" \
" EndPrimitive();\n" \
"}\n" \
"void main()\n" \
"{\n" \
" createLines(0);\n" \
" createLines(1);\n" \
" createLines(2);\n" \
"}\n";
static const std::string geomVisFrag =
"in vec3 vertColour;\n" \
"out vec4 colour;\n" \
"void main()\n" \
"{\n" \
" colour = vec4(vertColour.r, vertColour.g, vertColour.b, 1.0);\n" \
"}\n";
}
}
}
#define GEOM_VERT "#version 150\n#define BUMP\n" + xy::Shader::Mesh::geomVisVert
#define GEOM_GEOM "#version 150\n#define BUMP\n" + xy::Shader::Mesh::geomVisGeom
#define GEOM_FRAG "#version 150\n#define BUMP\n" + xy::Shader::Mesh::geomVisFrag
#endif //XY_GEOM_VIS_HPP_
|
// FW UNKNOWN: a Mini Library for DLL COM Servers
// Facilitates creating COM DLL server modules without use of ATL
// A special extension for the FreeWill+ system
//
// Provides:
// - ERROR macrodefinition for reporting run-time errors the easy way
// - template-based FWUNKNOWN base class with full implementation for IFWUnknown interface
// - macrodefinitions for automatic implementation of IFWUnknown RTTI functions
// - macrodefinitions for automatic implementation of IFWUnknown error handling functions
//
// Does not require linking to CPP/LIB files
//
// Copyright (C) 2003-2005 by Jarek Francik
/////////////////////////////////////////////////////////////////////////////
#ifndef __FWUNKNOWN_H
#define __FWUNKNOWN_H
#include "unknown.h"
#include "common.h"
#include <map>
#include <assert.h>
#define DEBUG_SIGNATURE // allocates FWSTRING ClassId for life-cycle of each object
static const CLSID __CLSID_FWDevice = {0x4DAC894C,0x75C0,0x4538,{0xB8,0x3C,0xE0,0xC9,0x9D,0x70,0x99,0x7B}};
////////////////////////////////////////////////////////////////////////////////////
// The ERROR Macrodefinition
// Use the ERROR macro to report run-time errors
// Automatically provides the information on the source file name & line number
#include <stdio.h>
#define WIDEN2(x) L ## x
#define WIDEN(x) WIDEN2(x)
#define __WFILE__ WIDEN(__FILE__)
#undef ERROR
#define ERROR ErrorSrc(__WFILE__, __LINE__), Error
////////////////////////////////////////////////////////////////////////////////////
// Template Base Class: IFWUnknown + IUnknown implementation
template <class BASECLASS,
REFIID IID1 = IID_IUnknown, class INTERFACE1 = __DUMMY<1>,
REFIID IID3 = IID_IUnknown, class INTERFACE3 = __DUMMY<3>,
REFIID IID4 = IID_IUnknown, class INTERFACE4 = __DUMMY<4>,
REFIID IID5 = IID_IUnknown, class INTERFACE5 = __DUMMY<5>,
REFIID IID6 = IID_IUnknown, class INTERFACE6 = __DUMMY<6>,
REFIID IID7 = IID_IUnknown, class INTERFACE7 = __DUMMY<7>,
REFIID IID8 = IID_IUnknown, class INTERFACE8 = __DUMMY<8> >
class FWUNKNOWN : public UNKNOWN<BASECLASS,
IID1, INTERFACE1, IID_IFWUnknown, INTERFACE1, IID3, INTERFACE3, IID4, INTERFACE4,
IID5, INTERFACE5, IID6, INTERFACE6, IID7, INTERFACE7, IID8, INTERFACE8>
{
private:
IFWDevice *m_pFWDevice;
#ifdef DEBUG_SIGNATURE
public:
FWSTRING m_pDebugSignature;
#endif
public:
FWUNKNOWN() : m_pFWDevice(NULL)
{
#ifdef DEBUG_SIGNATURE
m_pDebugSignature = NULL;
#endif
}
virtual ~FWUNKNOWN()
{
#ifdef DEBUG_SIGNATURE
delete m_pDebugSignature;
#endif
// unregister
if (m_pFWDevice && m_pFWDevice != (IFWUnknown*)(ITFirst*)this)
{
m_pFWDevice->UnregisterObject((ITFirst*)this);
m_pFWDevice->Release();
}
}
/////////////////////////////////////////
// Error Handling
HRESULT _stdcall Error(HRESULT nErrorCode, FWULONG nParams = 0, FWULONG *pParams = NULL, FWSTRING pMessage = NULL, FWULONG nSeverity = FW_SEV_DEFAULT)
{
return FWDevice()->RaiseError((ITFirst*)this, nErrorCode, nParams, pParams, pMessage, nSeverity);
}
HRESULT _stdcall ErrorSrc(FWSTRING pSrcFile, FWULONG nSrcLine)
{
return FWDevice()->RaiseErrorSrc(pSrcFile, nSrcLine);
}
HRESULT _stdcall GetClassError(FWULONG nCode, FWULONG nParams, FWULONG *pParams, FWSTRING *pMsg, FWULONG *pSeverity)
{
return FW_E_UNIDENTIFIED;
}
/////////////////////////////////////////
// Cloning
HRESULT _stdcall GetClone(REFIID iid, IFWUnknown **p)
{
return ERROR(E_NOTIMPL);
}
IFWUnknown *_stdcall Clone(REFIID iid)
{
return NULL;
}
///////////////////////////////////////////////
// Object Initialisation
HRESULT _stdcall QueryFitness(IFWCreateContext*, /*[out, retval]*/ FWFLOAT *pfFitness)
{
if (pfFitness) *pfFitness = 1.0f;
return S_OK;
}
HRESULT _stdcall Create(IFWCreateContext*)
{
return S_OK;
}
/////////////////////////////////////////
// Class RT Identification
HRESULT _stdcall GetClassId(FWSTRING *p)
{ if (p) *p = L"uninitialised";
return S_OK;
}
HRESULT _stdcall GetRTCId(FWULONG *p)
{
static FWULONG N = (FWULONG)(__int64)&N;
if (p) *p = N;
return S_OK;
}
/////////////////////////////////////////
// FWDevice Access
HRESULT _stdcall GetFWDevice(IFWDevice **pp)
{
if (!m_pFWDevice)
CoCreateInstance(__CLSID_FWDevice, NULL, CLSCTX_INPROC_SERVER, IID_IFWDevice, (void**)&m_pFWDevice);
if (pp)
{
*pp = m_pFWDevice;
if (*pp) (*pp)->AddRef();
}
return S_OK;
}
IFWDevice *_stdcall FWDevice()
{
if (!m_pFWDevice)
CoCreateInstance(__CLSID_FWDevice, NULL, CLSCTX_INPROC_SERVER, IID_IFWDevice, (void**)&m_pFWDevice);
return m_pFWDevice;
}
HRESULT _stdcall PutFWDevice(IFWDevice *p)
{
if (m_pFWDevice) m_pFWDevice->Release();
m_pFWDevice = p;
if (m_pFWDevice) m_pFWDevice->AddRef();
#ifdef DEBUG_SIGNATURE
FWSTRING pId;
GetClassId(&pId);
m_pDebugSignature = wcsdup(pId);
#endif
return S_OK;
}
///////////////////////////////////////////////
// The Context Object
HRESULT _stdcall GetContextObject(FWULONG index, IID *pIID, void **pUnknown) { return ERROR(E_NOTIMPL); }
HRESULT _stdcall PutContextObject(FWULONG index, REFIID iid, void *pUnknown) { return ERROR(E_NOTIMPL); }
};
////////////////////////////////////////////////////////////////////////////////////
// Macrodefinitions for IFWUnknown RTTI functions
// Provides implementation for folowing member functions:
// - Clone
// - GetClassId
// - GetRTCId
#define FW_RTTI(classname) \
HRESULT _stdcall GetClone(REFIID iid, IFWUnknown **p) \
{ \
if (!p) return ERROR(FW_E_POINTER); \
C##classname *pUnknown = new C##classname; \
if (!pUnknown) return ERROR(FW_E_OUTOFMEMORY); \
FWDevice()->RegisterObject((ITFirst*)pUnknown); \
HRESULT h = pUnknown->QueryInterface(iid, (void**)p); \
pUnknown->Release(); \
if (FAILED(h)) return ERROR(FW_E_NOINTERFACE); \
return S_OK; \
} \
IFWUnknown *_stdcall Clone(REFIID iid) \
{ \
C##classname *pUnknown = new C##classname; \
if (!pUnknown) return NULL; \
FWDevice()->RegisterObject((ITFirst*)pUnknown); \
IFWUnknown *p; \
HRESULT h = pUnknown->QueryInterface(iid, (void**)&p); \
pUnknown->Release(); \
if (FAILED(h)) return NULL; \
return p; \
} \
HRESULT _stdcall GetClassId(FWSTRING *p) \
{ if (p) *p = L#classname; \
return S_OK; \
} \
HRESULT _stdcall GetRTCId(FWULONG *p) \
{ static FWULONG N = (FWULONG)(__int64)&N; \
if (p) *p = N; \
return S_OK; \
}
////////////////////////////////////////////////////////////////////////////////////
// Macrodefinitions for IFWUnknown error handling functions
// Provides implementation for folowing member functions:
// - GetClassError
#define FW_ERROR_BEGIN \
public: \
HRESULT _stdcall GetClassError(FWULONG nnCodeCode, FWULONG nParams, FWULONG *pParams, FWSTRING *pMsg, FWULONG *pSeverity) \
{ FWSTRING p = NULL; FWULONG nSeverity = 0; \
switch(nnCodeCode) {
#define FW_ERROR_ENTRY(code, msg, severity) \
case code: p = msg; nSeverity = severity; break;
#define FW_ERROR_DEFAULT \
default:
#define FW_ERROR_END \
} \
if (p == NULL) return FW_E_UNIDENTIFIED; \
FWULONG P[16]; \
memset(P, 0, sizeof(P)); \
if (nParams && pParams) memcpy(P, pParams, sizeof(FWULONG) * max(16, nParams)); \
static wchar_t pBuf[256]; \
_snwprintf(pBuf, 256, p, P[0], P[1], P[2], P[3], P[4], P[5], P[6], P[7], \
P[8], P[9], P[10], P[11], P[12], P[13], P[14], P[15]); \
if (pMsg) *pMsg = pBuf; \
if (pSeverity) *pSeverity = nSeverity; \
return S_OK; \
}
#endif
|
/*********************************************************************
Matt Marchant 2014 - 2016
http://trederia.blogspot.com
xygine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but
is not required.
2. Altered source versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any
source distribution.
*********************************************************************/
#ifndef XY_POINT_LIGHT_HPP_
#define XY_POINT_LIGHT_HPP_
#include <xygine/components/Component.hpp>
#include <SFML/System/Vector3.hpp>
namespace xy
{
/*!
\brief Point Light Component
Point lights represent a point in a scene which casts light of a specified
colour for a specified distance. Only a limited amount of lights can be active
at any one time and only affect drawables which use the normal map shader
(or any shader written specifically to take advantage of point lights).
Lights added to a scene are spatially partitioned, so that a Scene may be
queried for a list of light components in the curently visible area.
*/
class XY_EXPORT_API PointLight final : public Component
{
public:
/*!
\brief constructor.
\param MessageBus
\param range The distance in world units at which the light's effects become zero
\param radius The physical radius of the light used to position it in the Scene's visible area
\param diffuseColour The main light colour. Defaults to white.
\param specularColour The colour with which to affect specular highlights. Defaults to White
*/
PointLight(MessageBus&, float range, float radius, const sf::Color& diffuseColour = sf::Color::White, const sf::Color& specularColour = sf::Color::White);
Component::Type type() const { return Component::Type::Script; }
void entityUpdate(Entity&, float) override;
/*!
\brief Set the virtual z-depth of the light.
If this is a positive number, the larger the value the
further the perceived light is from the scene
*/
void setDepth(float);
/*!
\brief Set the light's intensity.
The light's intensity or brightness is a multiplier of
the diffuse colour. Usually in the range 0 - 1 (where 0
effectively turns the light off) the value may be higher
but will probably only serve to cause saturation.
*/
void setIntensity(float);
/*!
\brief Set the range of the light.
A positive value which defines the range, in pixels, of
the light's influence before it falls off to 0
*/
void setRange(float);
/*!
\brief Set the radius of the light.
This should be the equivilant of the physical size of the light
point, so that it may have its spatial partition in the world
correctly calculated. Therefor this should always be at least 1
*/
void setRadius(float);
/*!
\brief Set the light's diffuse colour
*/
void setDiffuseColour(const sf::Color&);
/*!
\brief Set the light's specular colour
*/
void setSpecularColour(const sf::Color&);
/*!
\brief Get the light's world position.
The positions is three dimensional, including the percieved
depth value. This is so that shader position properties can
be set directly.
*/
const sf::Vector3f& getWorldPosition() const;
/*!
\brief Get the light's intensity.
\see setIntensity
*/
float getIntensity() const;
/*!
\brief Return the light's *inverse* range.
The inverse range value is used by the shader to
calculate falloff. The shader property should be set directly
with this value
*/
float getInverseRange() const;
/*!
\brief Returns the range of the light
*/
float getRange() const { return m_range; }
/*!
\brief Returns the light's radius, used by the scene
when culling visible light sources.
*/
float getRadius() const;
/*!
\brief Returns the light's current diffuse colour
*/
const sf::Color& getDiffuseColour() const;
/*!
\brief Returns the light's current specular colour
*/
const sf::Color& getSpecularColour() const;
/*!
\brief Tell this light whether or not to cast shadows.
When used with the MeshRenderer sub-system it is possible
for point lights to cast shadows. This is disabled by default
as, although it looks pretty, many shadow casters incur a
perfomance hit. Shadow casting should generally be limited to
two or three lights within a scene.
*/
void enableShadowCasting(bool enable) { m_castShadows = enable; }
/*!
\brief Returns whether or not this light should cast shadows.
This is used by default by the MeshRenderer sub-system. it can also
be used to set properties of custom shaders for effects such as
<a href = "http://ncase.me/sight-and-light/">this</a>.
*/
bool castShadows() const { return m_castShadows; }
private:
float m_range;
float m_radius;
float m_inverseRange;
sf::Vector3f m_position;
float m_intensity;
sf::Color m_diffuseColour;
sf::Color m_specularColour;
bool m_castShadows;
};
}
#endif //XY_POINT_LIGHT_HPP_
|
/***************************************************************************
Copyright (c) 2020 Philip Fortier
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
***************************************************************************/
// ResourceListDoc.cpp : implementation file
//
#include "stdafx.h"
#include "AppState.h"
#include "ResourceListDoc.h"
#include "CObjectWrap.h"
#include "ResourceContainer.h"
#include "ResourceBlob.h"
#include "DependencyTracker.h"
// ResourceListDoc
IMPLEMENT_DYNCREATE(CResourceListDoc, CDocument)
CResourceListDoc::CResourceListDoc() : _shownResourceType(ResourceType::None)
{
// Add ourselves as a sync
CResourceMap &map = appState->GetResourceMap();
map.AddSync(this);
}
BOOL CResourceListDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
BOOL fRet = __super::OnOpenDocument(lpszPathName);
appState->GenerateBrowseInfo();
return fRet;
}
BOOL CResourceListDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
appState->GenerateBrowseInfo();
return TRUE;
}
void CResourceListDoc::OnCloseDocument()
{
std::string strEmpty;
appState->GetDependencyTracker().Clear();
appState->GetResourceMap().SetGameFolder(strEmpty);
// Remove ourselves as a sync
CResourceMap &map = appState->GetResourceMap();
map.RemoveSync((IResourceMapEvents*)this);
appState->ResetClassBrowser();
appState->ClearResourceManagerDoc();
__super::OnCloseDocument();
}
CResourceListDoc::~CResourceListDoc()
{
}
BEGIN_MESSAGE_MAP(CResourceListDoc, CDocument)
ON_UPDATE_COMMAND_UI(ID_FILE_CLOSE, OnDisableCommand)
ON_UPDATE_COMMAND_UI(ID_FILE_SAVE, OnDisableCommand)
ON_UPDATE_COMMAND_UI(ID_FILE_SAVE_AS, OnDisableCommand)
END_MESSAGE_MAP()
// Always disable certain commands when this doc has focus.
// You can't save/saveas or close a resource doc
void CResourceListDoc::OnDisableCommand(CCmdUI *pCmdUI)
{
pCmdUI->Enable(FALSE);
}
void CResourceListDoc::OnResourceAdded(const ResourceBlob *pData, AppendBehavior appendBehavior)
{
// Add this as the most recent resource of this type/number/package
appState->_resourceRecency.AddResourceToRecency(pData);
UpdateAllViews(nullptr, 0, &WrapObject((appendBehavior == AppendBehavior::Replace) ? ResourceMapChangeHint::Replaced : ResourceMapChangeHint::Added, pData));
}
void CResourceListDoc::OnResourceDeleted(const ResourceBlob *pDataDeleted)
{
// Delete this from the recency
// It is crucial that this come before the update below. We will check the recency list
// for the ResourceBlob passed to UpdateAllViews, and at this point, we want to not find
// it in the list.
appState->_resourceRecency.DeleteResourceFromRecency(pDataDeleted);
// Cast away constness...
UpdateAllViews(nullptr, 0, &WrapObject(ResourceMapChangeHint::Deleted, pDataDeleted));
}
void CResourceListDoc::OnResourceMapReloaded(bool isInitialLoad)
{
// Initial load is handled elsewhere (archive)
if (!isInitialLoad)
{
UpdateAllViews(nullptr, 0, &WrapHint(ResourceMapChangeHint::Change));
}
}
void CResourceListDoc::OnResourceTypeReloaded(ResourceType iType)
{
UpdateAllViews(nullptr, 0, &WrapObject(ResourceMapChangeHint::Type, iType));
}
void CResourceListDoc::OnImagesInvalidated()
{
UpdateAllViews(nullptr, 0, &WrapHint(ResourceMapChangeHint::Image));
}
//
// This class is just a CObject class that wraps a resource type number
//
class CResourceTypeWrap : public CObject
{
public:
CResourceTypeWrap(ResourceType iType) { _iType = iType; }
ResourceType GetType() { return _iType; }
private:
ResourceType _iType;
};
void CResourceListDoc::ShowResourceType(ResourceType iType)
{
if (iType != _shownResourceType)
{
_shownResourceType = ValidateResourceType(iType);
CResourceTypeWrap resourceType(iType);
UpdateAllViewsAndNonViews(nullptr, 0, &WrapObject(ResourceMapChangeHint::ShowType, iType));
}
}
// ResourceListDoc diagnostics
#ifdef _DEBUG
void CResourceListDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CResourceListDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// ResourceListDoc serialization
void CResourceListDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// There is nothing to save.
}
else
{
CFile *pFile = ar.GetFile();
// Set the current directory, so we know where to look for the resource files.
// If not, clicking on an item in the recent documents list won't work
CString path = pFile->GetFilePath();
path.MakeLower();
int iFileOffset = path.Find(TEXT("\\resource.map"));
if (iFileOffset > 0)
{
path.SetAt(iFileOffset, 0); // Null terminate it
// Set this folder as our new game folder
CResourceMap &map = appState->GetResourceMap();
appState->GetDependencyTracker().Clear();
map.SetGameFolder((PCSTR)path);
appState->_fUseOriginalAspectRatioCached = map.Helper().GetUseSierraAspectRatio(!!appState->_fUseOriginalAspectRatioDefault);
appState->LogInfo(TEXT("Open game: %s"), (PCTSTR)path);
UpdateAllViews(nullptr, 0, &WrapHint(ResourceMapChangeHint::Change));
}
else
{
AfxMessageBox(TEXT("SCI game resources must be called resource.map"), MB_OK | MB_ICONEXCLAMATION);
}
}
}
// ResourceListDoc commands
|
/*
Copyright (c) 2005-2023, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of Oxford nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef TESTPETSCTOOLS_HPP_
#define TESTPETSCTOOLS_HPP_
#include <cxxtest/TestSuite.h>
#include <petscvec.h>
#include <petscmat.h>
#include <cstring>
#include "DistributedVectorFactory.hpp"
#include "ReplicatableVector.hpp"
#include "PetscTools.hpp"
#include "PetscSetupAndFinalize.hpp"
#include "OutputFileHandler.hpp"
#include "DistributedVector.hpp"
class TestPetscTools : public CxxTest::TestSuite
{
public:
void TestMostOfPetscTools()
{
TS_ASSERT(PetscTools::IsInitialised());
PetscInt my_rank;
MPI_Comm_rank(PETSC_COMM_WORLD, &my_rank);
TS_ASSERT_EQUALS(PetscTools::GetMyRank(), (unsigned)my_rank);
bool am_master = (my_rank == 0);
TS_ASSERT_EQUALS( PetscTools::AmMaster(), am_master);
int num_procs;
MPI_Comm_size(PETSC_COMM_WORLD, &num_procs);
TS_ASSERT_EQUALS( PetscTools::GetNumProcs(), (unsigned)num_procs);
bool is_sequential = (num_procs==1);
TS_ASSERT_EQUALS( PetscTools::IsSequential(), is_sequential);
TS_ASSERT_EQUALS( PetscTools::IsParallel(), !is_sequential);
bool am_right = (my_rank == num_procs - 1 );
TS_ASSERT_EQUALS( PetscTools::AmTopMost(), am_right);
std::cout << "These should be ordered:" << std::endl;
PetscTools::BeginRoundRobin();
std::cout << " Process " << PetscTools::GetMyRank() << std::endl;
PetscTools::EndRoundRobin();
// Test CreateVec which returns a vec of constants
Vec vec1 = PetscTools::CreateAndSetVec(10, 3.41);
ReplicatableVector vec1_repl(vec1);
TS_ASSERT_EQUALS(vec1_repl.GetSize(), 10u);
for (unsigned i=0; i<10; i++)
{
TS_ASSERT_DELTA(vec1_repl[i], 3.41, 1e-12);
}
// Test CreateVec which uses a std::vector of data
std::vector<double> data(10);
for (unsigned i=0; i<10; i++)
{
data[i] = i+0.45;
}
Vec vec2 = PetscTools::CreateVec(data);
ReplicatableVector vec2_repl(vec2);
TS_ASSERT_EQUALS(vec2_repl.GetSize(), 10u);
for (unsigned i=0; i<10; i++)
{
TS_ASSERT_DELTA(vec2_repl[i], i+0.45, 1e-12);
}
// Test SetupMatrix
Mat mat;
PetscTools::SetupMat(mat, 10, 11, 11);
int m,n;
MatGetSize(mat, &m, &n);
TS_ASSERT_EQUALS(m, 10);
TS_ASSERT_EQUALS(n, 11);
#if (PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR <= 3) //PETSc 3.0 to PETSc 3.3
//The PETSc developers changed this one, but later changed it back again!
const MatType type;
#else
MatType type;
#endif
MatGetType(mat,&type);
if (PetscTools::IsSequential())
{
TS_ASSERT(strcmp(type, MATSEQAIJ)==0);
}
else
{
TS_ASSERT(strcmp(type, MATMPIAIJ)==0);
}
PetscTools::Destroy(vec1);
PetscTools::Destroy(vec2);
PetscTools::Destroy(mat);
// Test SetupMatrix with non-default preallocation
Mat mat2;
PetscTools::SetupMat(mat2, 11, 11, 4, PETSC_DECIDE, PETSC_DECIDE, false, false);
MatGetSize(mat2, &m, &n);
TS_ASSERT_EQUALS(m, 11);
TS_ASSERT_EQUALS(n, 11);
MatGetType(mat2,&type);
if (PetscTools::IsSequential())
{
TS_ASSERT(strcmp(type, MATSEQAIJ)==0);
}
else
{
TS_ASSERT(strcmp(type, MATMPIAIJ)==0);
}
MatInfo info;
unsigned nonzeros_allocated;
MatGetInfo(mat2,MAT_LOCAL,&info);
nonzeros_allocated = (unsigned) info.nz_allocated;
if (PetscTools::IsSequential())
{
TS_ASSERT_EQUALS( nonzeros_allocated, 4*11u );
}
else
{
/* Maximum number of nonzeros that should be allocated is 44 (11 = number of rows) in diagonal part,
plus 4*11 in the off-diagonal part. These are then split between the number of processes. So, a
process that owns n rows should have no more than 8*n nonzeros allocated.
In PETSc 3.11 onwards the number of non-zeros in the diagonal part is capped to the number of entries
in the block diagonal part. That means a process that owns n rows will allocate at most n*n diagonal non-zero.
*/
PetscInt lo, hi;
MatGetOwnershipRange(mat2, &lo, &hi);
unsigned expected_nz_per_row = std::min(4, hi-lo) + 4;
#if (PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR <= 10)
expected_nz_per_row = 4 + 4; // Older PETSc versions could over-allocate the blockdiagonal
#endif
TS_ASSERT_EQUALS( nonzeros_allocated, (unsigned)(expected_nz_per_row*(hi-lo)) );
}
PetscTools::Destroy(mat2);
Mat mat_over_allocate;
PetscTools::SetupMat(mat_over_allocate, 12, 12, 13);
PetscTools::Destroy(mat_over_allocate);
// coverage
Mat mat3;
PetscTools::SetupMat(mat3, 1, 1, 0);
PetscTools::Destroy(mat3);
}
void TestBarrier()
{
/*
* Testing the barrier method is kind of tricky, since we really want to check
* if it also works when PETSc isn't set up. So see TestPetscTools2.hpp!
*/
PetscTools::Barrier("TestBarrier");
}
void TestReplicateBool()
{
bool my_flag = false;
if (PetscTools::AmMaster())
{
my_flag = true;
}
TS_ASSERT(PetscTools::ReplicateBool(my_flag));
}
void TestReplicateException()
{
DistributedVectorFactory factory(1);
if (factory.IsGlobalIndexLocal(0))
{
TS_ASSERT_THROWS_NOTHING(PetscTools::ReplicateException(true));
}
else
{
TS_ASSERT_THROWS_THIS(PetscTools::ReplicateException(false), "Another process threw an exception; bailing out.");
}
}
void TestProcessIsolation()
{
TS_ASSERT_EQUALS(PetscTools::GetWorld(), PETSC_COMM_WORLD); // No isolation at first
TS_ASSERT(!PetscTools::IsIsolated());
bool really_parallel = PetscTools::IsParallel();
unsigned my_rank = PetscTools::GetMyRank();
unsigned num_procs = PetscTools::GetNumProcs();
PetscTools::IsolateProcesses();
TS_ASSERT_EQUALS(PetscTools::GetWorld(), PETSC_COMM_SELF); // Each process is its own world
TS_ASSERT(PetscTools::IsIsolated());
TS_ASSERT(PetscTools::AmMaster()); // All processes are masters
TS_ASSERT(PetscTools::AmTopMost()); // All processes are top
TS_ASSERT_EQUALS(PetscTools::GetMyRank(), my_rank); // Rank and process count are still accurate though
TS_ASSERT_EQUALS(PetscTools::GetNumProcs(), num_procs);
// Note: this will deadlock in parallel if IsolateProcesses doesn't work
if (PetscTools::GetMyRank() == 0u)
{
// Only the rank 0 process does this
PetscTools::Barrier("TestProcessIsolation");
}
bool am_top = (PetscTools::GetMyRank() == PetscTools::GetNumProcs() - 1);
bool any_is_top = PetscTools::ReplicateBool(am_top); // Replication is a no-op
TS_ASSERT_EQUALS(am_top, any_is_top);
if (PetscTools::GetMyRank() == 0u)
{
TS_ASSERT_THROWS_NOTHING(PetscTools::ReplicateException(true));
}
else
{
TS_ASSERT_THROWS_NOTHING(PetscTools::ReplicateException(false));
}
TS_ASSERT(PetscTools::IsSequential()); // IsParallel() will tell the truth, however
TS_ASSERT_EQUALS(PetscTools::IsParallel(), really_parallel);
PetscTools::IsolateProcesses(false);
TS_ASSERT(!PetscTools::IsIsolated());
}
void TestDumpPetscObjects()
{
Mat matrix;
Vec vector;
PetscTools::SetupMat(matrix, 10, 10, 10);
vector = PetscTools::CreateVec(10);
PetscInt lo, hi;
VecGetOwnershipRange(vector, &lo, &hi);
for (int row=0; row<10; row++)
{
if (row >= lo && row < hi)
{
for (int col=0; col<10; col++)
{
MatSetValue(matrix, row, col, (double) 10*row+col+1, INSERT_VALUES);
}
double value = row;
VecSetValues(vector, 1, &row, &value, INSERT_VALUES);
}
}
MatAssemblyBegin(matrix, MAT_FINAL_ASSEMBLY);
MatAssemblyEnd(matrix, MAT_FINAL_ASSEMBLY);
VecAssemblyBegin(vector);
VecAssemblyEnd(vector);
OutputFileHandler handler("DumpPetscObjects");
std::string output_dir = handler.GetOutputDirectoryFullPath();
PetscTools::DumpPetscObject(matrix, output_dir + "ten_times_ten.mat");
PetscTools::DumpPetscObject(vector, output_dir + "ten_times_ten.vec");
PetscTools::Destroy(matrix);
PetscTools::Destroy(vector);
Mat matrix_read;
Vec vector_read;
PetscTools::ReadPetscObject(matrix_read, output_dir + "ten_times_ten.mat");
PetscTools::ReadPetscObject(vector_read, output_dir + "ten_times_ten.vec");
double* p_vector_read;
VecGetArray(vector_read, &p_vector_read);
for (PetscInt row=0; row<10; row++)
{
if (lo<=row && row<hi)
{
for (PetscInt col=0; col<10; col++)
{
double value;
MatGetValues(matrix_read, 1, &row, 1, &col, &value);
TS_ASSERT_EQUALS(value, (double) 10*row+col+1);
}
unsigned local_index = row-lo;
TS_ASSERT_EQUALS(p_vector_read[local_index], (double)row);
}
}
VecRestoreArray(vector_read, &p_vector_read);
PetscTools::Destroy(matrix_read);
PetscTools::Destroy(vector_read);
}
/*
* This test reuses the 10x10 matrix written to disc in the previous test. It reads it
* back in with a different parallel layout. For p=2 it is partitioned in 6 and 4 rows,
* for p=3 4, 4, and 2.
*/
void TestReadWithNonDefaultParallelLayout()
{
DistributedVectorFactory factory(5);
//This is like factory.CreateVec(2) but doesn't change the block size
Vec parallel_layout;
unsigned small_locals = factory.GetHigh() - factory.GetLow();
VecCreateMPI(PETSC_COMM_WORLD, 2*small_locals, 10, ¶llel_layout);
PetscInt lo, hi;
VecGetOwnershipRange(parallel_layout, &lo, &hi);
Mat matrix_read;
Vec vector_read;
OutputFileHandler handler("DumpPetscObjects", false);
std::string output_dir = handler.GetOutputDirectoryFullPath();
PetscTools::ReadPetscObject(matrix_read, output_dir + "ten_times_ten.mat", parallel_layout);
PetscTools::ReadPetscObject(vector_read, output_dir + "ten_times_ten.vec", parallel_layout);
double* p_vector_read;
VecGetArray(vector_read, &p_vector_read);
for (PetscInt row=0; row<10; row++)
{
if (lo<=row && row<hi)
{
for (PetscInt col=0; col<10; col++)
{
double value;
MatGetValues(matrix_read, 1, &row, 1, &col, &value);
TS_ASSERT_EQUALS(value, (double) 10*row+col+1);
}
unsigned local_index = row-lo;
TS_ASSERT_EQUALS(p_vector_read[local_index], (double)row);
}
}
VecRestoreArray(vector_read, &p_vector_read);
PetscTools::Destroy(matrix_read);
PetscTools::Destroy(vector_read);
PetscTools::Destroy(parallel_layout);
}
void TestUnevenCreation()
{
/*
* Uneven test (as in TestDistributedVectorFactory).
* Calculate total number of elements in the vector.
*/
unsigned num_procs = PetscTools::GetNumProcs();
unsigned total_elements = (num_procs+1)*num_procs/2;
unsigned my_rank=PetscTools::GetMyRank();
Vec petsc_vec_uneven = PetscTools::CreateVec(total_elements, my_rank+1);
int petsc_lo, petsc_hi;
VecGetOwnershipRange(petsc_vec_uneven, &petsc_lo, &petsc_hi);
unsigned expected_lo = (my_rank+1)*my_rank/2;
unsigned expected_hi = (my_rank+2)*(my_rank+1)/2;
TS_ASSERT_EQUALS((unsigned)petsc_lo, expected_lo);
TS_ASSERT_EQUALS((unsigned)petsc_hi, expected_hi);
PetscTools::Destroy(petsc_vec_uneven);
}
void TestHasParMetis()
{
//This just covers the method, as there is no other way to test if ParMetis is available.
std::cout << "Testing to see if Petsc is configured with ParMetis support. " << std::endl;
PetscTools::HasParMetis();
}
void TestExceptionMacros()
{
// Should not throw
TS_ASSERT_THROWS_NOTHING(TRY_IF_MASTER(std::cout << "No exception\n"));
// Should not throw - since only master should run the contents of the macro
TS_ASSERT_THROWS_NOTHING(TRY_IF_MASTER(if (!PetscTools::AmMaster()) EXCEPTION("Should not occur")));
// Should get thrown by all processes as exception is replicated.
TS_ASSERT_THROWS_CONTAINS(TRY_IF_MASTER(EXCEPTION("master; bailing out")),
"; bailing out"); // both the replicated and original should contain this phrase
}
void TestSetOptionWithLogging()
{
// See #2933: we need to cover either PetscLogBegin() or PetscLogDefaultBegin()
PetscTools::SetOption("-log_summary", "");
}
};
#endif /*TESTPETSCTOOLS_HPP_*/
|
#include <iostream>
using namespace std;
int main()
{
int i, N;
cout << "Write N number ";
cin >> N;
for (i = 1; i <= N; i++)
cout << "Square root of " << i << " " << i * i << endl;
system("PAUSE");
}
|
#include "fadbad-pr2-sim.h"
/**
* FadbadArm constructors
*/
FadbadArm::FadbadArm(rave::RobotBasePtr robot, Arm::ArmType arm_type) {
origin = rave_utils::rave_to_eigen(robot->GetLink("torso_lift_link")->GetTransform()).cast<bdouble>();
arm_joint_axes = { Vector3b(0,0,1),
Vector3b(0,1,0),
Vector3b(1,0,0),
Vector3b(0,1,0),
Vector3b(1,0,0),
Vector3b(0,1,0),
Vector3b(1,0,0) };
arm_link_trans = { Vector3b(0, (arm_type == Arm::ArmType::left) ? 0.188 : -0.188, 0),
Vector3b(0.1, 0, 0),
Vector3b(0, 0, 0),
Vector3b(0.4, 0, 0),
Vector3b(0, 0, 0),
Vector3b(.321, 0, 0),
Vector3b(.18, 0, 0) };
}
/**
* FadbadArm public methods
*/
/**
* \param angle: radians
* \param axis: vector
*/
inline Matrix3b axis_angle_to_matrix(const bdouble& angle, const Vector3b& axis) {
bdouble sina = sin(angle);
bdouble cosa = cos(angle);
Matrix3b R = Vector3b(cosa, cosa, cosa).asDiagonal();
Matrix3b axis_outer = axis*axis.transpose();
for(int i=0; i < 3; ++i) {
for(int j=0; j < 3; ++j) {
axis_outer(i,j) *= (1-cosa);
}
}
R += axis_outer;
Vector3b axis_sina = axis;
for(int i=0; i < 3; ++i) { axis_sina(i) *= sina; }
Matrix3b mat_sina;
mat_sina << 0, -axis_sina(2), axis_sina(1),
axis_sina(2), 0, -axis_sina(0),
-axis_sina(1), axis_sina(0), 0;
R += mat_sina;
return R;
}
Matrix4b FadbadArm::get_pose(const Matrix<bdouble,ARM_DIM,1>& j) {
Matrix4b pose_mat = origin;
Matrix4b R = Matrix4b::Identity();
for(int i=0; i < ARM_DIM; ++i) {
R.block<3,3>(0,0) = axis_angle_to_matrix(j(i), arm_joint_axes[i]);
R.block<3,1>(0,3) = arm_link_trans[i];
pose_mat = pose_mat*R;
}
return pose_mat;
}
/**
* FadbadCamera constructors
*/
FadbadCamera::FadbadCamera(FadbadArm* a, const Matrix4d& g_t_to_s) : arm(a) {
gripper_tool_to_sensor = g_t_to_s.cast<bdouble>();
Matrix3b P = Matrix3b::Zero();
P(0,0) = fx_sub;
P(1,1) = fy_sub;
P(2,2) = 1;
P(0,2) = cx_sub;
P(1,2) = cy_sub;
depth_map = new FadbadDepthMap(P);
}
/**
* FadbadCamera public methods
*/
std::vector<std::vector<FadbadBeam3d> > FadbadCamera::get_beams(const Matrix<bdouble,ARM_DIM,1>& j, const StdVector3b& pcl) {
std::vector<std::vector<FadbadBeam3d> > beams(H_SUB-1, std::vector<FadbadBeam3d>(W_SUB-1));
Matrix4b cam_pose = get_pose(j);
depth_map->clear();
for(int i=0; i < pcl.size(); ++i) {
depth_map->add_point(pcl[i], cam_pose);
}
Matrix<bdouble,H_SUB,W_SUB> z_buffer = depth_map->get_z_buffer(get_position(j));
RowVector3b origin_pos = get_position(j);
Matrix<bdouble,N_SUB,3> dirs = get_directions(j);
for(int i=0; i < N_SUB; ++i) {
bdouble row_norm = dirs.row(i).norm();
for(int j=0; j < 3; ++j) {
dirs(i,j) /= row_norm;
}
}
std::vector<std::vector<Vector3b> > hits(H_SUB, std::vector<Vector3b>(W_SUB));
for(int i=0; i < H_SUB; ++i) {
for(int j=0; j < W_SUB; ++j) {
// hits[i][j] = origin_pos + z_buffer(i,j)*dirs.row(j*H_SUB+i);
for(int k=0; k < 3; ++k) {
hits[i][j](k) = origin_pos(k) + z_buffer(i,j)*dirs.row(j*H_SUB+i)(k);
}
}
}
for(int j=0; j < W_SUB-1; ++j) {
for(int i=0; i < H_SUB-1; ++i) {
beams[i][j].base = origin_pos;
beams[i][j].a = hits[i][j+1];
beams[i][j].b = hits[i][j];
beams[i][j].c = hits[i+1][j];
beams[i][j].d = hits[i+1][j+1];
}
}
return beams;
}
std::vector<FadbadTriangle3d> FadbadCamera::get_border(const std::vector<std::vector<FadbadBeam3d> >& beams, bool with_side_border) {
std::vector<FadbadTriangle3d> border;
int rows = beams.size(), cols = beams[0].size();
if (with_side_border) {
// deal with left and right border columns
for(int i=0; i < rows; ++i) {
border.push_back(FadbadTriangle3d(beams[i][0].base, beams[i][0].b, beams[i][0].c));
border.push_back(FadbadTriangle3d(beams[i][cols-1].base, beams[i][cols-1].a, beams[i][cols-1].d));
}
// deal with top and bottom border rows
for(int j=0; j < cols; ++j) {
border.push_back(FadbadTriangle3d(beams[0][j].base, beams[0][j].a, beams[0][j].b));
border.push_back(FadbadTriangle3d(beams[rows-1][j].base, beams[rows-1][j].c, beams[rows-1][j].d));
}
}
const bdouble min_sep = bepsilon;
// connect with left and top and add center
for(int i=0; i < rows; ++i) {
for(int j=0; j < cols; ++j) {
const FadbadBeam3d& curr = beams[i][j];
// left
if (i > 0) {
const FadbadBeam3d& left = beams[i-1][j];
// if (((left.a - curr.b).norm() > min_sep) || ((left.d - curr.c).norm() > min_sep)) {
// // not touching, add linkage
border.push_back(FadbadTriangle3d(left.a, left.d, curr.b));
border.push_back(FadbadTriangle3d(left.b, curr.b, curr.c));
// }
}
// top
if (j > 0) {
const FadbadBeam3d& top = beams[i][j-1];
// if (((top.c - curr.b).norm() > min_sep) || ((top.d - curr.a).norm() > min_sep)) {
// // not touching, add linkage
border.push_back(FadbadTriangle3d(top.c, top.d, curr.b));
border.push_back(FadbadTriangle3d(top.b, curr.b, curr.a));
// }
}
border.push_back(FadbadTriangle3d(curr.a, curr.b, curr.c));
border.push_back(FadbadTriangle3d(curr.a, curr.c, curr.d));
}
}
std::vector<FadbadTriangle3d> pruned_border;
for(int i=0; i < border.size(); ++i) {
if (border[i].area() > bepsilon) {
pruned_border.push_back(border[i]);
}
}
return pruned_border;
}
bool FadbadCamera::is_inside(const Vector3b& p, std::vector<std::vector<FadbadBeam3d> >& beams) {
bool inside = false;
for(int i=0; i < beams.size(); ++i) {
for(int j=0; j < beams[i].size(); ++j) {
if (beams[i][j].is_inside(p)) {
inside = true;
break;
}
}
if (inside) { break; }
}
return inside;
}
bdouble FadbadCamera::signed_distance(const Vector3b& p, std::vector<std::vector<FadbadBeam3d> >& beams, std::vector<FadbadTriangle3d>& border) {
bdouble sd_sign = (is_inside(p, beams)) ? -1 : 1;
bdouble sd = INFINITY;
for(int i=0; i < border.size(); ++i) {
bdouble dist = border[i].distance_to(p);
sd = (dist < sd) ? dist : sd;
}
return (sd_sign*sd);
}
/**
* FadbadCamera Private methods
*/
// H_SUB, W_SUB, H_SUB_M, W_SUB_M
Matrix<bdouble,N_SUB,3> FadbadCamera::get_directions(const Matrix<bdouble,ARM_DIM,1>& j) {
bdouble h_meters = static_cast<bdouble>(H_SUB_M);
bdouble w_meters = static_cast<bdouble>(W_SUB_M);
Matrix<bdouble,H_SUB,W_SUB> height_grid = Matrix<bdouble,H_SUB,1>::LinSpaced(H_SUB, (MAX_RANGE/FOCAL_LENGTH)*(-h_meters/2.0), (MAX_RANGE/FOCAL_LENGTH)*(h_meters/2.0)).replicate(1,W_SUB);
Matrix<bdouble,H_SUB,W_SUB> width_grid = Matrix<bdouble,1,W_SUB>::LinSpaced(W_SUB, (MAX_RANGE/FOCAL_LENGTH)*(-w_meters/2.0), (MAX_RANGE/FOCAL_LENGTH)*(w_meters/2.0)).replicate(H_SUB,1);
Matrix<bdouble,N_SUB,1> height_grid_vec(Map<Matrix<bdouble,N_SUB,1> >(height_grid.data(), N_SUB));
Matrix<bdouble,N_SUB,1> width_grid_vec(Map<Matrix<bdouble,N_SUB,1> >(width_grid.data(), N_SUB));
Matrix<bdouble,N_SUB,1> z_grid = Matrix<bdouble,N_SUB,1>::Zero(N_SUB,1);
Matrix<bdouble,N_SUB,3> offsets;
offsets << width_grid_vec, height_grid_vec, z_grid;
// for(int i=0; i < N_SUB; ++i) {
// for(int j=0; j < 3; ++j) {
// offsets *= (MAX_RANGE/FOCAL_LENGTH);
// }
// }
Matrix<bdouble,N_SUB,3> points_cam = RowVector3b(0,0,MAX_RANGE).replicate(N_SUB,1) + offsets;
Matrix4b ref_from_world = get_pose(j);
Vector3b origin_world_pos = ref_from_world.block<3,1>(0,3);
Matrix<bdouble,N_SUB,3> directions;
Matrix4b point_cam = Matrix4b::Identity();
Vector3b point_world;
for(int i=0; i < N_SUB; ++i) {
point_cam.block<3,1>(0,3) = points_cam.row(i);
point_world = (ref_from_world*point_cam).block<3,1>(0,3);
directions.row(i) = point_world - origin_world_pos;
}
return directions;
}
/**
* FadbadDepthMap Constructors
*/
FadbadDepthMap::FadbadDepthMap(const Matrix3b& P_mat) : P(P_mat) {
pixel_buckets = std::vector<std::vector<FadbadPixelBucket*> >(H_SUB, std::vector<FadbadPixelBucket*>(W_SUB));
for(int i=0; i < H_SUB; ++i) {
for(int j=0; j < W_SUB; ++j) {
Vector2b center(i+0.5, j+0.5);
pixel_buckets[i][j] = new FadbadPixelBucket(center);
}
}
};
/**
* FadbadDepthMap Public methods
*/
// TODO: only add point to bucket if point is either (1) closer than points in bucket or (2) closet to points in bucket
void FadbadDepthMap::add_point(const Vector3b& point, const Matrix4b& cam_pose) {
Matrix4b point_mat = Matrix4b::Identity();
point_mat.block<3,1>(0,3) = point;
Matrix4b point_mat_tilde = cam_pose.fullPivLu().solve(Matrix4b::Identity())*point_mat;
Vector3b y = P*point_mat_tilde.block<3,1>(0,3);
Vector2b pixel = {y(1)/y(2), y(0)/y(2)};
if ((0 <= pixel(0)) && (pixel(0) < H_SUB) && (0 <= pixel(1)) && (pixel(1) < W_SUB) &&
((cam_pose.block<3,1>(0,3) - point).norm() < MAX_RANGE)) { // TODO: should filter out points behind camera!
int i, j;
for(i=0; i < H_SUB; ++i) {
bdouble i_b = i;
if ((0 <= pixel(0) - i_b) && (pixel(0) - i_b < 1)) {
break;
}
}
for(j=0; j < W_SUB; ++j) {
bdouble j_b = j;
if ((0 <= pixel(1) - j_b) && (pixel(1) - j_b < 1)) {
break;
}
}
pixel_buckets[i][j]->add_point(pixel, point);
}
}
Matrix<bdouble,H_SUB,W_SUB> FadbadDepthMap::get_z_buffer(const Vector3b& cam_pos) {
Matrix<bdouble,H_SUB,W_SUB> z_buffer = Matrix<bdouble,H_SUB,W_SUB>::Ones();
for(int i=0; i < H_SUB; ++i) {
for(int j=0; j < W_SUB; ++j) {
if (!(pixel_buckets[i][j]->is_empty())) {
z_buffer(i,j) = (cam_pos - pixel_buckets[i][j]->average_point()).norm();
} else if (num_neighbors_empty(i,j) >= 5 ) {
z_buffer(i,j) = (cam_pos - average_of_neighbors(i, j)).norm();
} else {
z_buffer(i,j) = MAX_RANGE;
}
}
}
return z_buffer;
}
void FadbadDepthMap::clear() {
for(int i=0; i < H_SUB; ++i) {
for(int j=0; j < W_SUB; ++j) {
pixel_buckets[i][j]->clear();
}
}
}
/**
* FadbadDepthMap Private methods
*/
inline std::vector<std::vector<int> > offsets(int i, int j, int rows, int cols) {
if ((i == 0) && (j == 0)) {
return {{1,0}, {1,1}, {0,1}};
} else if ((i == 0) && (j == cols-1)) {
return {{0,-1}, {1,-1}, {1,0}};
} else if ((i == rows-1) && (j == cols-1)) {
return {{-1,0}, {-1,-1}, {0,-1}};
} else if ((i == rows-1) && (j == 0)) {
return {{-1,0}, {-1,1}, {0,1}};
} else if (j == 0) {
return {{-1,0}, {-1,1}, {0,1}, {1,1}, {1,0}};
} else if (j == cols-1) {
return {{-1,0}, {-1,-1}, {0,-1}, {1,-1}, {1,0}};
} else if (i == 0) {
return {{0,-1}, {1,-1}, {1,0}, {1,1}, {0,1}};
} else if (i == rows-1) {
return {{0,-1}, {-1,-1}, {-1,0}, {-1,1}, {0,1}};
} else {
return {{-1,-1}, {-1,0}, {-1,1}, {0,1}, {1,1}, {1,0}, {1,-1}, {0,-1}};
}
}
int FadbadDepthMap::num_neighbors_empty(int i, int j) {
int num_empty = 0;
std::vector<std::vector<int> > o = offsets(i, j, H_SUB, W_SUB);
for(int k=0; k < o.size(); ++k) {
num_empty += (pixel_buckets[i+o[k][0]][j+o[k][1]]->is_empty()) ? 1 : 0;
}
return num_empty;
}
Vector3b FadbadDepthMap::average_of_neighbors(int i, int j) {
std::vector<std::vector<int> > o = offsets(i, j, H_SUB, W_SUB);
Vector3b avg_pt = Vector3b::Zero();
bdouble num_neighbors = o.size();
for(int k=0; k < o.size(); ++k) {
FadbadPixelBucket* pb = pixel_buckets[i+o[k][0]][j+o[k][1]];
if (!(pb->is_empty())) {
Vector3b neighbor_avg = pb->average_point();
for(int l=0; l < 3; ++l) { avg_pt(l) += (1/num_neighbors)*neighbor_avg(l); }
}
}
return avg_pt;
}
|
#include "VB.h"
#define X ((1<<7)-1)
#define W (1<<7)
uint8 *VB::encode(int n, int &len)
{
static uint8 bytes[5];
len = 0;
while (n > X)
bytes[len++] = n & X, n >>= 7;
n |= W;
bytes[len++] = n;
return bytes;
}
int VB::decode(uint8 *bytes, int &len)
{
int ret = 0;
len = 0;
int move = 0;
while (!(bytes[len] & W))
{
ret |= bytes[len++] << move;
move+=7;
}
ret |= (bytes[len++] ^ W) << move;
return ret;
}
|
#include "LUACalls.h"
#include "..\\Threads.h"
#include "..\\Launcher.h"
#include <setjmp.h>
#include "..\\xboxinfo.h"
MenuList Menu[9]; // Number of Menu Items
CXboxInfo XBOXDriveStatus; // Xbox
// Globals
lua_State* LUA_STATE; // Main Secne State
string LUA_SCENE_BUFFER; // Scene Buffer
// Days
char szXboxDay[7][20] = {
"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"
};
//Months
char szXboxMonth[12][20] = {
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
};
// Variables For LUACalls.cpp Only!
bool g_bEnableXrayRendering = false;
bool g_bEnableAlphaRendering = false;
bool bCheckedNetStatus = false;
int CPUTempC;
int CPUTempF;
int SYSTempC;
int SYSTempF;
char Temperature[255];
char szFanSpeed[255];
DWORD dwFontColour = 0xFF000000;
DWORD NetStatus; // Network Connection Information
DWORD XnAddrStatus; // Network Address Information
XNADDR xnaddr;
// FTPClient
ftp* theFtpConnection=NULL;
int progress=0;
DWORD progressbar=0;
DWORD progressmax=0;
char progressmessage[128]="";
/////////////////////////////
// Register LUA Calls
void RegisterLUACalls( )
{
// Set The State
LUA_STATE = lua_open( );
luaopen_base(LUA_STATE); /* opens the basic library */
luaopen_table(LUA_STATE); /* opens the table library */
luaopen_io(LUA_STATE); /* opens the I/O library */
luaopen_string(LUA_STATE); /* opens the string lib. */
luaopen_math(LUA_STATE); /* opens the math lib. */
// Register The Calls
lua_register( LUA_STATE, "SceneLoad", lua_SceneLoad );
lua_register( LUA_STATE, "TrayOpen", lua_TrayOpen );
lua_register( LUA_STATE, "TrayClose", lua_TrayClose );
lua_register( LUA_STATE, "XBOX_POWEROFF", lua_XboxPoweroff );
lua_register( LUA_STATE, "XBOX_REBOOT", lua_XboxReboot );
lua_register( LUA_STATE, "XBOX_POWERCYCLE", lua_XboxPowercycle );
lua_register( LUA_STATE, "ClearScreen", lua_ClearScreen );
lua_register( LUA_STATE, "Present", lua_Present );
lua_register( LUA_STATE, "MeshLoad", lua_MeshLoad );
lua_register( LUA_STATE, "MeshFree", lua_MeshFree );
lua_register( LUA_STATE, "MeshPosition", lua_MeshPosition );
lua_register( LUA_STATE, "MeshScale", lua_MeshScale );
lua_register( LUA_STATE, "MeshRotate", lua_MeshRotate );
lua_register( LUA_STATE, "MeshRender", lua_MeshRender );
lua_register( LUA_STATE, "CameraSetFOV", lua_CameraSetFOV );
lua_register( LUA_STATE, "CameraSetAspect", lua_CameraSetAspect ); //fixed typo
lua_register( LUA_STATE, "CameraSetPosition", lua_CameraSetPosition );
lua_register( LUA_STATE, "CameraSetLookAt", lua_CameraSetLookAt);
lua_register( LUA_STATE, "CameraMoveForward", lua_CameraMoveForward);
lua_register( LUA_STATE, "CameraMoveBackward", lua_CameraMoveBackward);
lua_register( LUA_STATE, "CameraMoveLeft", lua_CameraMoveLeft);
lua_register( LUA_STATE, "CameraMoveRight", lua_CameraMoveRight);
lua_register( LUA_STATE, "FontLoad", lua_FontLoad );
lua_register( LUA_STATE, "FontFree", lua_FontFree );
lua_register( LUA_STATE, "FontColour", lua_FontColour );
lua_register( LUA_STATE, "FontDrawText", lua_FontDrawText );
lua_register( LUA_STATE, "FontPosition", lua_FontPosition );
lua_register( LUA_STATE, "XrayEnable", lua_XrayEnable );
lua_register( LUA_STATE, "XrayDisable", lua_XrayDisable );
lua_register( LUA_STATE, "AlphaEnable", lua_AlphaEnable );
lua_register( LUA_STATE, "AlphaDisable", lua_AlphaDisable );
lua_register( LUA_STATE, "FogRender", lua_FogRender );
lua_register( LUA_STATE, "FogColour", lua_FogColour );
lua_register( LUA_STATE, "StringMerge", lua_StringMerge );
lua_register( LUA_STATE, "GetMenuItems", lua_getmenuitems );
lua_register( LUA_STATE, "GetMenuItemName", lua_getmenuitemname );
lua_register( LUA_STATE, "GetItemRegion", lua_getitemregion );
lua_register( LUA_STATE, "GetItemRating", lua_getitemrating );
lua_register( LUA_STATE, "GetItemFilename", lua_getitemfilename );
lua_register( LUA_STATE, "GetItemIconPath", lua_getitemiconpath );
lua_register( LUA_STATE, "GetItemDblocks", lua_getitemdblocks );
lua_register( LUA_STATE, "GetItemType", lua_getitemtype );
lua_register( LUA_STATE, "TextureLoad", lua_TextureLoad );
lua_register( LUA_STATE, "TextureFree", lua_TextureFree );
lua_register( LUA_STATE, "DrawTexturedQuad", lua_DrawTexturedQuad );
lua_register( LUA_STATE, "DrawTexturedQuadAlpha", lua_DrawTexturedQuadAlpha );
lua_register( LUA_STATE, "FlakeLoad", lua_FlakeLoad );
/*lua_register( LUA_STATE, "FlakeFree", lua_FlakeFree );*/
lua_register( LUA_STATE, "FlakeBoundaries", lua_FlakeSetBoundaries );
lua_register( LUA_STATE, "FlakeSpeed", lua_FlakeSpeed );
lua_register( LUA_STATE, "FlakeTotal", lua_FlakeTotal );
lua_register( LUA_STATE, "FlakeScale", lua_FlakeScale );
lua_register( LUA_STATE, "FlakeRotateSpeed", lua_FlakeRotateSpeed );
lua_register( LUA_STATE, "FlakeRender", lua_FlakeRender );
lua_register( LUA_STATE, "SoundLoad", lua_WaveLoad );
lua_register( LUA_STATE, "SoundFree", lua_WaveFree );
lua_register( LUA_STATE, "SoundPlay", lua_WavePlay );
lua_register( LUA_STATE, "LaunchXBE", lua_LaunchXBE );
lua_register( LUA_STATE, "FormatDrive", lua_FormatDrive );
lua_register( LUA_STATE, "ClearCache", lua_ClearCache );
// FTP Functions
lua_register(LUA_STATE, "ftpopen", lua_ftpopen);
lua_register(LUA_STATE, "ftpclose", lua_ftpclose);
lua_register(LUA_STATE, "ftplist", lua_ftplist);
lua_register(LUA_STATE, "ftpcd", lua_ftpcd);
lua_register(LUA_STATE, "ftpsetuser", lua_ftpsetuser);
lua_register(LUA_STATE, "ftpsetpass", lua_ftpsetpass);
lua_register(LUA_STATE, "ftplcd", lua_ftplcd);
lua_register(LUA_STATE, "ftpput", lua_ftpput);
lua_register(LUA_STATE, "ftpget", lua_ftpget);
lua_register(LUA_STATE, "ftplls", lua_ftplls);
lua_register(LUA_STATE, "ftpbinary", lua_ftpbinary);
lua_register(LUA_STATE, "ftpascii", lua_ftpascii);
lua_register(LUA_STATE, "ftppwd", lua_ftppwd);
lua_register( LUA_STATE, "SetSkin", lua_SetSkin );
lua_register( LUA_STATE, "SaveConfig", lua_SaveConfig );
// lua_register( LUA_STATE, "LightPosition", lua_LightAmbient );
// lua_register( LUA_STATE, "LightAmbient", lua_LightAmbient );
//lua_register( LUA_STATE, "LightAmbient", lua_LightAmbient );
lua_register( LUA_STATE, "XBOX_LOCK_HDD", lua_LockHDD );
lua_register( LUA_STATE, "XBOX_UNLOCK_HDD", lua_UnlockHDD );
lua_register( LUA_STATE, "XBOX_AUTO_UPDATE", lua_AutoUpdate );
lua_register (LUA_STATE, "SetLCDText", lua_SetLCDText);
// Open Math Library
lua_mathlibopen( LUA_STATE );
lua_pushnumber( LUA_STATE, (double)D3DX_PI );
lua_setglobal( LUA_STATE, "PI" );
// Set LUA_PATH Global
lua_pushstring(LUA_STATE,"SKIN:\\?;SKIN:\\?.lua;SKINS:\\COMMON\\?;SKINS:\\COMMON\\?.lua");
lua_setglobal(LUA_STATE,"LUA_PATH");
// Strat FTPClient if net Connnected
if (IsEthernetConnected())
{
theFtpConnection = new ftp();
}
}
// Update The Variables In Script
void UpdateLUAVariables()
{
// Font Styles
lua_pushnumber( LUA_STATE, (int)1 );
lua_setglobal( LUA_STATE, "XBOX_FONT_LEFT" );
lua_pushnumber( LUA_STATE, (int)2 );
lua_setglobal( LUA_STATE, "XBOX_FONT_CENTER" );
lua_pushnumber( LUA_STATE, (int)3 );
lua_setglobal( LUA_STATE, "XBOX_FONT_RIGHT" );
// Fog Options
lua_pushnumber( LUA_STATE, (int)1 );
lua_setglobal( LUA_STATE, "D3DFOG_EXP" );
lua_pushnumber( LUA_STATE, (int)2 );
lua_setglobal( LUA_STATE, "D3DFOG_EXP2" );
lua_pushnumber( LUA_STATE, (int)3 );
lua_setglobal( LUA_STATE, "D3DFOG_LINEAR" );
// PI - 3.14***
lua_pushnumber( LUA_STATE, (double)D3DX_PI );
lua_setglobal( LUA_STATE, "PI" );
// XBOX version & encoder
lua_pushstring( LUA_STATE, g_szXboxVersion );
lua_setglobal( LUA_STATE, "XBOX_VERSION" );
lua_pushstring( LUA_STATE, g_szXboxEncoder );
lua_setglobal( LUA_STATE, "XBOX_ENCODER" );
// neXgen Version / Build Information
lua_pushstring(LUA_STATE, "neXgen Version 2.0");
lua_setglobal(LUA_STATE, "NEXGEN_VERSION");
lua_pushstring(LUA_STATE, "Build: 1425");
lua_setglobal(LUA_STATE, "NEXGEN_BUILD");
// IP -- Moved to Updateable Variables and returning IP the propper way not fixed from XML.
/*lua_pushstring( LUA_STATE, myDash.sIP.c_str() );
lua_setglobal( LUA_STATE, "XBOX_IP_ADDRESS" );*/
// XBOX Free Space (BYTES)
MEMORYSTATUS pMemStat;
GlobalMemoryStatus( &pMemStat );
lua_pushnumber( LUA_STATE, pMemStat.dwAvailPhys );
lua_setglobal( LUA_STATE, "XBOX_MEMORY" );
// XBOX Time & Date
SYSTEMTIME pTime;
char szBuffer[1000];
//GetSystemTime( &pTime ); // WorldTime
GetLocalTime( &pTime ); // Local Time
FILETIME NewTime;
SystemTimeToFileTime(&pTime, &NewTime);
// Hour
if( pTime.wHour < 10 ) { sprintf( szBuffer, "%i%i", 0, pTime.wHour ); }
else { sprintf( szBuffer, "%i", pTime.wHour ); }
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_TIME_HOUR" );
// Minutes
if( pTime.wMinute < 10 ) { sprintf( szBuffer, "%i%i", 0, pTime.wMinute ); }
else { sprintf( szBuffer, "%i", pTime.wMinute ); }
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_TIME_MINUTE" );
// Seconds
if( pTime.wSecond < 10 ) { sprintf( szBuffer, "%i%i", 0, pTime.wSecond ); }
else { sprintf( szBuffer, "%i", pTime.wSecond ); }
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_TIME_SECOND" );
// Milliseconds
if( pTime.wMilliseconds < 10 ) { sprintf( szBuffer, "%i%i", 0, pTime.wMilliseconds ); }
else { sprintf( szBuffer, "%i", pTime.wMilliseconds ); }
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_TIME_MILLISECOND" );
// Day Number
if( pTime.wDay < 10 ) { sprintf( szBuffer, "%i%i", 0, pTime.wDay ); }
else { sprintf( szBuffer, "%i", pTime.wDay ); }
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_DATE_DAY" );
// Day String
lua_pushstring( LUA_STATE, szXboxDay[pTime.wDayOfWeek] );
lua_setglobal( LUA_STATE, "XBOX_DATE_DAY_STRING" );
// Month Number
if( pTime.wMonth < 10 ) { sprintf( szBuffer, "%i%i", 0, pTime.wMonth ); }
else { sprintf( szBuffer, "%i", pTime.wMonth ); }
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_DATE_MONTH" );
// Month String
lua_pushstring( LUA_STATE, szXboxMonth[pTime.wMonth-1] );
lua_setglobal( LUA_STATE, "XBOX_DATE_MONTH_STRING" );
// Year
sprintf( szBuffer, "%i", pTime.wYear );
lua_pushstring( LUA_STATE, szBuffer );
lua_setglobal( LUA_STATE, "XBOX_DATE_YEAR" );
// Menu List Items
lua_pushnumber( LUA_STATE, 0 );
lua_setglobal( LUA_STATE, "APP_LIST" );
lua_pushnumber( LUA_STATE, 1 );
lua_setglobal( LUA_STATE, "EMU_LIST" );
lua_pushnumber( LUA_STATE, 2 );
lua_setglobal( LUA_STATE, "GAME_LIST" );
lua_pushnumber( LUA_STATE, 3 );
lua_setglobal( LUA_STATE, "SKIN_LIST" );
// XBOX DriveStatus
XBOXDriveStatus.GetDriveState();
if ( XBOXDriveStatus.m_bTrayOpen ) { lua_pushstring(LUA_STATE, "Tray Open"); }
else if( XBOXDriveStatus.m_iDVDType == XBI_DVD_INIT ) { lua_pushstring(LUA_STATE, "Init"); }
else if( XBOXDriveStatus.m_iDVDType == XBI_DVD_EMPTY ) { lua_pushstring(LUA_STATE, "Empty"); }
else if( XBOXDriveStatus.m_iDVDType == XBI_DVD_XBOX ) { lua_pushstring(LUA_STATE, "Game"); }
else if( XBOXDriveStatus.m_iDVDType == XBI_DVD_MOVIE ) { lua_pushstring(LUA_STATE, "Movie"); }
else { lua_pushstring(LUA_STATE, "Unknown"); }
lua_setglobal(LUA_STATE, "XBOX_DVD_DRIVE_STATUS");
// Hard Drive Space
string sFree = XGetDriveFree( 'C' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_FREE_C" );
sFree = XGetDriveFree( 'E' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_FREE_E" );
sFree = XGetDriveFree( 'F' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_FREE_F" );
sFree = XGetDriveFree( 'G' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_FREE_G" );
sFree = XGetDriveSize( 'C' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_SIZE_C" );
sFree = XGetDriveSize( 'E' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_SIZE_E" );
sFree = XGetDriveSize( 'F' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_SIZE_F" );
sFree = XGetDriveSize( 'G' );
lua_pushstring( LUA_STATE, sFree.c_str() );
lua_setglobal( LUA_STATE, "XBOX_SIZE_G" );
// XBOX Name
// Mem Leak! -- Fixed Mem Leak. :)
// no, mem leak was still there. Moved to xbutils.cpp instead
//lua_pushstring( LUA_STATE, GetXboxNick() );
//lua_setglobal( LUA_STATE, "XBOX_NAME" );
// XBOX Temperatures
XKUtils::GetCPUTemp(CPUTempC, false);
XKUtils::GetCPUTemp(CPUTempF, true);
XKUtils::GetSYSTemp(SYSTempC, false);
XKUtils::GetSYSTemp(SYSTempF, true);
sprintf(Temperature, "%d 'C", CPUTempC);
lua_pushstring( LUA_STATE, Temperature );
lua_setglobal( LUA_STATE, "XBOX_TEMP_CPU_C" );
sprintf(Temperature, "%d 'F", CPUTempF);
lua_pushstring( LUA_STATE, Temperature );
lua_setglobal( LUA_STATE, "XBOX_TEMP_CPU_F" );
sprintf(Temperature, "%d 'C", SYSTempC);
lua_pushstring( LUA_STATE, Temperature );
lua_setglobal( LUA_STATE, "XBOX_TEMP_SYS_C" );
sprintf(Temperature, "%d 'F", SYSTempF);
lua_pushstring( LUA_STATE, Temperature );
lua_setglobal( LUA_STATE, "XBOX_TEMP_SYS_F" );
// XBOX Network Connection Status
if (IsEthernetConnected())
{
// Cable Connected
lua_pushstring( LUA_STATE, "Connected" );
lua_setglobal( LUA_STATE, "XBOX_NET_CONNECTED" );
if (!bCheckedNetStatus)
{
// Set check status to true so we dont keep checking unless we need too upon a settings change!
// saves a crash as well :)
// Note: We are setting too soon when using DHCP this will return NULL!
// Need to move the connection to a thread or delay the lock for a few seconds after launch!.
//bCheckedNetStatus = true;
// XBOX Network Information
// Connection Information
char ipaddr[32];
XnAddrStatus = XNetGetTitleXnAddr(&xnaddr);
// XBOX Address Assign Type...
if (XnAddrStatus != XNET_GET_XNADDR_PENDING )
{
// XBOX IP Address.
sprintf(ipaddr, "%d.%d.%d.%d", xnaddr.ina.S_un.S_un_b.s_b1, xnaddr.ina.S_un.S_un_b.s_b2, xnaddr.ina.S_un.S_un_b.s_b3, xnaddr.ina.S_un.S_un_b.s_b4);
lua_pushstring(LUA_STATE, ipaddr);
lua_setglobal(LUA_STATE, "XBOX_IP_ADDRESS");
bCheckedNetStatus = true; // Temp Fix for IP Null problem!
if ( XnAddrStatus&XNET_GET_XNADDR_STATIC )
{
lua_pushstring( LUA_STATE, "Static IP" );
} else if ( XnAddrStatus&XNET_GET_XNADDR_DHCP )
{
lua_pushstring( LUA_STATE, "Dynamic IP" );
}
lua_setglobal( LUA_STATE, "XBOX_NET_ADDRESS_TYPE" );
}
// Get NetWork Status:
NetStatus=XNetGetEthernetLinkStatus();
if (NetStatus>0)
{
if (NetStatus&XNET_ETHERNET_LINK_100MBPS)
{
lua_pushstring(LUA_STATE, "100 Mbps");
}
else if (NetStatus&XNET_ETHERNET_LINK_10MBPS)
{
lua_pushstring(LUA_STATE, "10 Mbps");
}
lua_setglobal(LUA_STATE, "XBOX_NET_CONNECTION_SPEED");
// XBOX Duplex Mode
if (NetStatus&XNET_ETHERNET_LINK_FULL_DUPLEX)
{
lua_pushstring(LUA_STATE, "Full Duplex");
}
else if (NetStatus&XNET_ETHERNET_LINK_HALF_DUPLEX)
{
lua_pushstring(LUA_STATE, "Half Duplex");
}
lua_setglobal(LUA_STATE, "XBOX_NET_DUPLEX_INFO");
}
}
}
else
{
bCheckedNetStatus = false; // Reset so we can pickup network stats again
// No cable plugged in.
lua_pushstring( LUA_STATE, "Not Connected" );
lua_setglobal( LUA_STATE, "XBOX_NET_CONNECTED" );
// Set Defaul N/A Values as we are not connected
lua_pushstring(LUA_STATE, "0.0.0.0");
lua_setglobal(LUA_STATE, "XBOX_IP_ADDRESS");
lua_pushstring(LUA_STATE, "N/A");
lua_setglobal( LUA_STATE, "XBOX_NET_ADDRESS_TYPE" );
lua_pushstring(LUA_STATE, "N/A");
lua_setglobal(LUA_STATE, "XBOX_NET_CONNECTION_SPEED");
lua_pushstring(LUA_STATE, "N/A");
lua_setglobal(LUA_STATE, "XBOX_NET_DUPLEX_INFO");
}
// XBOX Fan Speed
// Set XBOX Fan Speed
int iSetFanSpeed = myDash.iFanSpeed;
/*if ( iSetFanSpeed < 5 ) { iSetFanSpeed = 5; }
if ( iSetFanSpeed > 50 ) { iSetFanSpeed = 50; }*/
// SetFanSpeed( iSetFanSpeed ); // Set XBOX Fan Speed
XKUtils::SetFanSpeed( iSetFanSpeed ); // Set XBOX Fan Speed
// Get FanSpeed
// sprintf(szFanSpeed, "%d %%", GetFanSpeed());
sprintf(szFanSpeed, "%d %%", XKUtils::GetFanSpeed());
lua_pushstring( LUA_STATE, szFanSpeed );
lua_setglobal( LUA_STATE, "XBOX_FAN_SPEED" );
// Soundtracks
lua_pushstring( LUA_STATE, mySndTrk.GetCurrentSoundTrackName() );
lua_setglobal( LUA_STATE, "XBOX_SND_TRACK_ALBUM" );
lua_pushstring( LUA_STATE, mySndTrk.GetCurrentSongName() );
lua_setglobal( LUA_STATE, "XBOX_SND_TRACK_TITLE" );
lua_pushstring( LUA_STATE, mySndTrk.GetCurrentSongTimePlayedString() );
lua_setglobal( LUA_STATE, "XBOX_SND_TRACK_TIME_PLAYED" );
lua_pushstring( LUA_STATE, mySndTrk.GetCurrentSongTimeTotalString() );
lua_setglobal( LUA_STATE, "XBOX_SND_TRACK_TIME_TOTAL" );
lua_pushstring( LUA_STATE, mySndTrk.GetCurrentSongTimeRemainsString() );
lua_setglobal( LUA_STATE, "XBOX_SND_TRACK_TIME_REMAINS" );
}
// Change Scene
void SetLUABuffer( const char* szFilename )
{
RegisterLUACalls(); // Reset Variables & Functions
UpdateLUAVariables(); // Push Variables
OutputDebugString ("Calling lua_dofile (\"");
OutputDebugString (szFilename);
OutputDebugString ("\")\n");
// char filename[MAX_PATH];
// sprintf(filename,"%s",szFilename);
char thislocation[MAX_PATH];
strcpy(thislocation,szFilename);
// Get lua filename
char* luafile = FileFromFilePathA(thislocation);
// see if we specify any mount point
if (strcmp(luafile,thislocation) != 0 ) {
char szStartPath[MAX_PATH];
char szMountPath[MAX_PATH];
// Yep so lets mount the drive as SKIN:
// Find out where the Engine was loaded from
XI_GetProgramPath(szStartPath);
// Get folder located under skins
char* mountpoint = MountpointFromFilePathA(thislocation);
mountpoint = PathFromFilePathA(mountpoint);
sprintf(szMountPath,"%s\\skins\\%s",szStartPath,mountpoint);
mappath(szMountPath, "SKIN:");
}
char luaPath[MAX_PATH];
sprintf(luaPath,"SKIN:\\%s",luafile);
lua_dofile( LUA_STATE, luaPath);
}
// Render Scene
void RenderLUAScene( )
{
lua_getglobal( LUA_STATE, "Render" ); // Find The Render() In *.lua
lua_call( LUA_STATE, 0, 0 ); // Now Call It!
}
// Move The Frame
void FrameMoveLUAScene( )
{
lua_getglobal(LUA_STATE, "FrameMove");
lua_call(LUA_STATE, 0, 0);
}
// Switch LUA Scene
int lua_SceneLoad( lua_State* L )
{
// Remove Any Stored TitleImages until next Page load
//ResetTitleImages(); // Needs fixing
// Passed SKINS:\\Default\\main.lua
char* filename = (char*) lua_tostring(L,1);
char thislocation[MAX_PATH];
strcpy(thislocation,filename);
// Get lua filename
char* luafile = FileFromFilePathA(thislocation);
// see if we specify any mount point
if (strcmp(luafile,thislocation) != 0 ) {
char szStartPath[MAX_PATH];
char szMountPath[MAX_PATH];
// Yep so lets mount the drive as SKIN:
// Find out where the Engine was loaded from
XI_GetProgramPath(szStartPath);
// Get folder located under skins
char* mountpoint = MountpointFromFilePathA(thislocation);
mountpoint = PathFromFilePathA(mountpoint);
sprintf(szMountPath,"%s\\skins\\%s",szStartPath,mountpoint);
mappath(szMountPath, "SKIN:");
}
char luaPath[MAX_PATH];
sprintf(luaPath,"SKIN:\\%s",luafile);
lua_dofile( LUA_STATE, luaPath);
return 1;
}
// Open DVD Tray
int lua_TrayOpen( lua_State* L )
{
XKUtils::DVDEjectTray();
return 1;
}
// Close DVD Tray
int lua_TrayClose( lua_State* L )
{
XKUtils::DVDLoadTray();
return 1;
}
// XBOX Power Off
int lua_XboxPoweroff( lua_State* L )
{
XKUtils::XBOXPowerOff();
return 1;
}
// XBOX Reboot
int lua_XboxReboot( lua_State* L )
{
XKUtils::XBOXReset();
return 1;
}
// XBOX Power Cycle
int lua_XboxPowercycle( lua_State* L )
{
XKUtils::XBOXPowerCycle();
return 1;
}
// Clear The Screen
int lua_ClearScreen( lua_State* L )
{
// Get Number Of Arguments
int iArgs = lua_gettop( L );
// Make Sure Theres 3 - R,G,B
// If Not Clear To Black Screen!
if( iArgs != 3 )
{
my3D.Device()->Clear( 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_STENCIL | D3DCLEAR_ZBUFFER, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0 );
return 0;
}
// Got 3!!
// Get The Values
int iR = (int)lua_tonumber( L, 1 );
int iG = (int)lua_tonumber( L, 2 );
int iB = (int)lua_tonumber( L, 3 );
// Now Clear
my3D.Device()->Clear( 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_STENCIL | D3DCLEAR_ZBUFFER, D3DCOLOR_XRGB(iR, iG, iB), 1.0f, 0 );
return 1;
}
// Present Whats Been Rendered
int lua_Present( lua_State* L )
{
my3D.Device()->Present( NULL, NULL, NULL, NULL );
return 1;
}
// Load A New Mesh
int lua_MeshLoad( lua_State* L )
{
char* Texture = "";
// Get Arg Number
int iArgs = lua_gettop( L );
// Must Be 2 Args! - Model Name & Model File
//if( iArgs != 2 ) { return 0; }
// Make Sure Model With Same Name Not Already Loaded!
int iModel;
bool bBreak = false;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Check Name Isnt NULL
while( myModels[iModel].szName == NULL )
{
if( iModel == MAX_OBJECTS-1 ) { bBreak = true; break; }
iModel++;
}
if( bBreak ) { break; }
// Name Match?
if( XmlCmpNoCase( myModels[iModel].szName, lua_tostring( L, 1 ) ) )
{
return 0;
}
}
// Get First Free Model
int iFree;
for( iFree = 0; iFree < MAX_OBJECTS; iFree++ )
{
// Empty?
if( myModels[iFree].szName == NULL ) { break; }
}
// Make Sure They Really Are Empty
delete [] myModels[iFree].szName;
delete [] myModels[iFree].pMesh;
myModels[iFree].szName = NULL;
myModels[iFree].pMesh = NULL;
// Set Name
myModels[iFree].szName = (char*)malloc( (int)strlen( lua_tostring( L, 1 ) ) + 1 );
sprintf( myModels[iFree].szName, "%s", lua_tostring( L, 1 ) );
// Load Model
Texture = (char*)lua_tostring(L, 3);
myModels[iFree].pMesh = new CXBMesh;
if (Texture > "")
{
char szMeshPath[MAX_PATH];
char szTexturePath[MAX_PATH];
char* sztmpFilePath = (char*) lua_tostring(L,2);
sztmpFilePath = (char*) lua_tostring(L,2);
if (strnicmp("SKIN",sztmpFilePath,4) == 0 ) {
sprintf(szMeshPath,"%s",sztmpFilePath);
} else {
sprintf(szMeshPath,"SKIN:\\%s",sztmpFilePath);
}
sztmpFilePath = (char*) lua_tostring(L,2);
sztmpFilePath = (char*) lua_tostring(L,2);
if (strnicmp("SKIN",sztmpFilePath,4) == 0 ) {
sprintf(szTexturePath,"%s",sztmpFilePath);
} else {
sprintf(szTexturePath,"SKIN:\\%s",sztmpFilePath);
}
// Creat model with Texture
myModels[iFree].pMesh->Create( (CHAR*)szMeshPath, szTexturePath );
}
else
{
// Create model without Texture
char szFilePath[MAX_PATH];
char* sztmpFilePath = (char*) lua_tostring(L,2);
sztmpFilePath = (char*) lua_tostring(L,2);
if (strnicmp("SKIN",sztmpFilePath,4) == 0 ) {
sprintf(szFilePath,"%s",sztmpFilePath);
} else {
sprintf(szFilePath,"SKIN:\\%s",sztmpFilePath);
}
myModels[iFree].pMesh->Create( (CHAR*)szFilePath );
}
// All Done
return 1;
}
// Free A Loaded Mesh
int lua_MeshFree( lua_State* L )
{
// Found Model?
bool bFoundModel = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Only Need 1! - Model Name!
if( iArgs != 1 ) { return 0; }
// Find Model
int iModel;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Name Match?
if( XmlCmpNoCase( myModels[iModel].szName, lua_tostring( L, 1 ) ) )
{
bFoundModel = true;
break;
}
}
if( bFoundModel )
{
delete [] myModels[iModel].szName;
myModels[iModel].szName = NULL;
delete [] myModels[iModel].pMesh;
myModels[iModel].pMesh = NULL;
return 1;
}
return 0;
}
// Set Position Of A Mesh
int lua_MeshPosition( lua_State* L )
{
// Found Model?
bool bFoundModel = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 1! - Model Name!
if( iArgs != 4 ) { return 0; }
// Get Model
int iModel;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Name Match?
if( XmlCmpNoCase( myModels[iModel].szName, lua_tostring( L, 1 ) ) )
{
bFoundModel = true;
break;
}
}
if( bFoundModel )
{
float fX = (float)lua_tonumber( L, 2 );
float fY = (float)lua_tonumber( L, 3 );
float fZ = (float)lua_tonumber( L, 4 );
myModels[iModel].pMesh->Move( fX, fY, fZ );
return 1;
}
return 0;
}
// Set Scale Of A Mesh
int lua_MeshScale( lua_State* L )
{
// Found Model?
bool bFoundModel = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 1! - Model Name!
if( iArgs != 4 ) { return 0; }
// Get Model
int iModel;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Name Match?
if( XmlCmpNoCase( myModels[iModel].szName, lua_tostring( L, 1 ) ) )
{
bFoundModel = true;
break;
}
}
if( bFoundModel )
{
float fX = (float)lua_tonumber( L, 2 );
float fY = (float)lua_tonumber( L, 3 );
float fZ = (float)lua_tonumber( L, 4 );
myModels[iModel].pMesh->Scale( fX, fY, fZ );
return 1;
}
return 0;
}
// Rotate A Mesh
int lua_MeshRotate( lua_State* L )
{
// Found Model?
bool bFoundModel = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 1! - Model Name!
if( iArgs != 4 ) { return 0; }
// Get Model
int iModel;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Name Match?
if( XmlCmpNoCase( myModels[iModel].szName, lua_tostring( L, 1 ) ) )
{
bFoundModel = true;
break;
}
}
if( bFoundModel )
{
float fX = (float)lua_tonumber( L, 2 );
float fY = (float)lua_tonumber( L, 3 );
float fZ = (float)lua_tonumber( L, 4 );
myModels[iModel].pMesh->Rotate( D3DXToRadian(fX), D3DXToRadian(fY), D3DXToRadian(fZ) );
return 1;
}
return 0;
}
// Render The Mesh To Screen
int lua_MeshRender( lua_State* L )
{
// Found Model?
bool bFoundModel = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 1! - Model Name!
if( iArgs != 1 ) { return 0; }
// Get Model
int iModel;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Name Match?
if( XmlCmpNoCase( myModels[iModel].szName, lua_tostring( L, 1 ) ) )
{
bFoundModel = true;
break;
}
}
if( bFoundModel )
{
if( g_bEnableXrayRendering )
{
myModels[iModel].pMesh->Render( XBMESH_XRAY );
}
else if ( g_bEnableAlphaRendering )
{
myModels[iModel].pMesh->Render( XBMESH_ALPHAON );
}
else
{
myModels[iModel].pMesh->Render();
}
return 1;
}
return 0;
}
// Sets Camera Field Of View
int lua_CameraSetFOV( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 1! - FOV Float
if( iArgs != 1 ) { return 0; }
// Set Value
float fField = (float)lua_tonumber( L, 1 );
myCam.SetFieldOfView( fField );
return 1;
}
// Set Cameras Aspect Ratio
int lua_CameraSetAspect( lua_State* L)
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 1! - Aspect Float
if( iArgs != 1 ) { return 0; }
// Set Value
float fRatio = (float)lua_tonumber( L, 1 );
myCam.SetAspectRatio( fRatio );
return 1;
}
// Set Position of Camera
int lua_CameraSetPosition( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 3! - X Y Z
if( iArgs != 3 ) { return 0; }
// Set Value
D3DXVECTOR3 myPos;
myPos.x = (float)lua_tonumber( L, 1 );
myPos.y = (float)lua_tonumber( L, 2 );
myPos.z = (float)lua_tonumber( L, 3 );
myCam.SetPosition( myPos );
return 1;
}
// Set point Camera is looking at
int lua_CameraSetLookAt( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 3! - X Y Z
if( iArgs != 3 ) { return 0; }
// Set Value
D3DXVECTOR3 myPos;
myPos.x = (float)lua_tonumber( L, 1 );
myPos.y = (float)lua_tonumber( L, 2 );
myPos.z = (float)lua_tonumber( L, 3 );
myCam.SetLookAt( myPos );
return 1;
}
int lua_CameraMoveForward( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 3! - X Y Z
if( iArgs != 1 ) { return 0; }
myCam.MoveForward( (float)lua_tonumber( L, 1 ) );
return 1;
}
int lua_CameraMoveBackward( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 3! - X Y Z
if( iArgs != 1 ) { return 0; }
myCam.MoveBackward( (float)lua_tonumber( L, 1 ) );
return 1;
}
int lua_CameraMoveLeft( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 3! - X Y Z
if( iArgs != 1 ) { return 0; }
myCam.MoveLeft( (float)lua_tonumber( L, 1 ) );
return 1;
}
int lua_CameraMoveRight( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Only 3! - X Y Z
if( iArgs != 1 ) { return 0; }
myCam.MoveRight( (float)lua_tonumber( L, 1 ) );
return 1;
}
// Load A New Font
int lua_FontLoad( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Must Be 2 Args! - Font Name & Font File
if( iArgs != 2 ) { return 0; }
// Make Sure Font With Same Name Not Already Loaded!
int iFont;
bool bBreak = false;
for( iFont = 0; iFont < MAX_OBJECTS; iFont++ )
{
// Check Name Isnt NULL
while( myFonts[iFont].szName == NULL )
{
if( iFont == MAX_OBJECTS-1 ) { bBreak = true; break; }
iFont++;
}
if( bBreak ) { break; }
// Name Match?
if( XmlCmpNoCase( myFonts[iFont].szName, lua_tostring( L, 1 ) ) )
{
return 0;
}
}
// Get First Free Font
int iFree;
for( iFree = 0; iFree < MAX_OBJECTS; iFree++ )
{
// Empty?
if( myFonts[iFree].szName == NULL ) { break; }
}
// Make Sure They Really Are Empty
delete [] myFonts[iFree].szName;
delete [] myFonts[iFree].pFont;
myFonts[iFree].szName = NULL;
myFonts[iFree].pFont = NULL;
// Set Name
myFonts[iFree].szName = (char*)malloc( (int)strlen( lua_tostring( L, 1 ) ) + 1 );
sprintf( myFonts[iFree].szName, "%s", lua_tostring( L, 1 ) );
// Load Font
char szFilePath[MAX_PATH];
char* sztmpFilePath = (char*) lua_tostring(L,2);
sztmpFilePath = (char*) lua_tostring(L,2);
if (strnicmp("SKIN",sztmpFilePath,4) == 0 ) {
sprintf(szFilePath,"%s",sztmpFilePath);
} else {
sprintf(szFilePath,"SKIN:\\%s",sztmpFilePath);
}
myFonts[iFree].pFont = new CXBFont;
myFonts[iFree].pFont->Create( (CHAR*)szFilePath );
// All Done
return 1;
}
// Free A Loaded Font
int lua_FontFree( lua_State* L )
{
// Found font?
bool bFoundFont = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Only Need 1! - Font Name!
if( iArgs != 1 ) { return 0; }
// Find Font
int iFont;
for( iFont = 0; iFont < MAX_OBJECTS; iFont++ )
{
// Name Match?
if( XmlCmpNoCase( myFonts[iFont].szName, lua_tostring( L, 1 ) ) )
{
bFoundFont = true;
break;
}
}
if( bFoundFont )
{
delete [] myFonts[iFont].szName;
myFonts[iFont].szName = NULL;
myFonts[iFont].pFont->Destroy();
free( myFonts[iFont].pFont );
myFonts[iFont].pFont = NULL;
return 1;
}
return 0;
}
// Set FOnt Colour
int lua_FontColour( lua_State* L )
{
// Set Text Colour
int iA = (int)lua_tonumber( L, 1 );
int iR = (int)lua_tonumber( L, 2 );
int iG = (int)lua_tonumber( L, 3 );
int iB = (int)lua_tonumber( L, 4 );
dwFontColour = (iA << 24) | (iR << 16) | (iG << 8) | (iB);
return 1;
}
// Render Text on Screen
int lua_FontDrawText( lua_State* L )
{
// Found font?
bool bFoundFont = false;
// Get Arg Number
int iArgs = lua_gettop( L );
// Find Font
int iFont;
for( iFont = 0; iFont < MAX_OBJECTS; iFont++ )
{
// Name Match?
if( XmlCmpNoCase( myFonts[iFont].szName, lua_tostring( L, 1 ) ) )
{
bFoundFont = true;
break;
}
}
if( bFoundFont )
{
// Styled
if( iArgs == 3 )
{
DWORD dwStyle;
// Get Style
if( lua_tonumber( L, 3 ) == 1 ) { dwStyle = XBFONT_LEFT; }
else if( lua_tonumber( L, 3 ) == 2 ) { dwStyle = XBFONT_CENTER; }
else if( lua_tonumber( L, 3 ) == 3 ) { dwStyle = XBFONT_RIGHT; }
else { dwStyle = 0x00000000; }
myFonts[iFont].pFont->DrawTextLine( lua_tostring( L, 2 ), dwFontColour, 0, dwStyle );
return 1;
}
// Normal
else
{
myFonts[iFont].pFont->DrawText( lua_tostring( L, 2 ), dwFontColour );
return 1;
}
}
return 0;
}
// Set Position
int lua_FontPosition( lua_State* L )
{
// Found font?
bool bFoundFont = false;
// Get Arg Number
int iArgs = lua_gettop( L );
// Find Font
int iFont;
for( iFont = 0; iFont < MAX_OBJECTS; iFont++ )
{
// Name Match?
if( XmlCmpNoCase( myFonts[iFont].szName, lua_tostring( L, 1 ) ) )
{
bFoundFont = true;
break;
}
}
if( bFoundFont )
{
float fX = (float)lua_tonumber( L, 2 );
float fY = (float)lua_tonumber( L, 3 );
myFonts[iFont].pFont->SetCursorPosition( fX, fY );
return 1;
}
return 0;
}
// Load A New Texture
int lua_TextureLoad( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Must Be 2 Args! - Texture Name & File
if( iArgs != 2 ) { return 0; }
// Make Sure Texture With Same Name Not Already Loaded!
int iTexture;
bool bBreak = false;
for( iTexture = 0; iTexture < MAX_OBJECTS; iTexture++ )
{
// Check Name Isnt NULL
while( myTextures[iTexture].szName == NULL )
{
if( iTexture == MAX_OBJECTS-1 ) { bBreak = true; break; }
iTexture++;
}
if( bBreak ) { break; }
// Name Match?
if( XmlCmpNoCase( myTextures[iTexture].szName, lua_tostring( L, 1 ) ) )
{
return 0;
}
}
// Get First Free Texture
int iFree;
for( iFree = 0; iFree < MAX_OBJECTS; iFree++ )
{
// Empty?
if( myTextures[iFree].szName == NULL ) { break; }
}
// Set Name);
myTextures[iFree].szName = (char*)malloc( (int)strlen( lua_tostring( L, 1 ) ) + 1 );
sprintf( myTextures[iFree].szName, "%s", lua_tostring( L, 1 ) );
// Set name again
char szFilePath[MAX_PATH];
char* sztmpFilePath = (char*) lua_tostring(L,2);
sztmpFilePath = (char*) lua_tostring(L,2);
// Handle TitleImage.xbx or *.xpr Files
string szFn(sztmpFilePath);
if (szFn.substr(szFn.length() - 4) == ".xpr"
|| szFn.substr(szFn.length() - 4) == ".xbx"){
myTextures[iFree].pTexture = (LPDIRECT3DTEXTURE8)LoadTextureFromXPR( sztmpFilePath );
myTextures[iFree].iType = 1; // Texture was loaded from an XBX / XPR
// All Done
return 1;
}
if (strnicmp("SKIN",sztmpFilePath,4) == 0 ) {
sprintf(szFilePath,"%s",sztmpFilePath);
} else {
sprintf(szFilePath,"SKIN:\\%s",sztmpFilePath);
}
OutputDebugString ("Loading ");
OutputDebugString (szFilePath);
OutputDebugString ("\n");
// Load Texture
D3DXCreateTextureFromFile( my3D.Device(), szFilePath, &myTextures[iFree].pTexture );
myTextures[iFree].iType = 0; // Normal Texture
// All Done
return 1;
}
// Free A Loaded Font
int lua_TextureFree( lua_State* L )
{
// Found font?
bool bFoundTexture = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Only Need 1! - Texture Name!
if( iArgs != 1 ) { return 0; }
// Find Font
int iTexture;
for( iTexture = 0; iTexture < MAX_OBJECTS; iTexture++ )
{
// Name Match?
if( XmlCmpNoCase( myTextures[iTexture].szName, lua_tostring( L, 1 ) ) )
{
bFoundTexture = true;
break;
}
}
if( bFoundTexture )
{
/*delete [] myTextures[iTexture].szName;
myTextures[iTexture].szName = NULL;
free( myTextures[iTexture].pTexture );
myTextures[iTexture].pTexture = NULL;*/
delete [] myTextures[iTexture].szName;
myTextures[iTexture].szName = NULL;
if (myTextures[iTexture].iType == 0) myTextures[iTexture].pTexture->Release();
if (myTextures[iTexture].iType == 1) {
free( myTextures[iTexture].pTexture );
}
//free( myTextures[iTexture].pTexture );
myTextures[iTexture].pTexture = NULL;
return 1;
}
return 0;
}
// SnowFlakes
// Load A New Snow Flake
int lua_FlakeLoad( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Must Be 3 Args! - 3 Flake Models
if( iArgs != 3 ) { return 0; }
/*char *Model1 = (char)lua_tostring( L, 1 );
char *Model2 = (char)lua_tostring( L, 2 );
char *Model3 = (char)lua_tostring( L, 3 );*/
//"SKINS:\\FLAKE1.XBG", "SKINS:\\FLAKE2.XBG", "SKINS:\\FLAKE3.XBG"
mySnow.LoadModels( (char*)lua_tostring( L, 1 ), (char*)lua_tostring( L, 2 ), (char*)lua_tostring( L, 3 ) );
// All Done
return 1;
}
/*
// Free A Loaded Flake
int lua_FlakeFree( lua_State* L )
{
// Found Model?
bool bFoundModel = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Only Need 1! - Model Name!
if( iArgs != 1 ) { return 0; }
// Find Model
int iModel;
for( iModel = 0; iModel < MAX_OBJECTS; iModel++ )
{
// Name Match?
if( XmlCmpNoCase( mySnowFlakes[iModel].szName, lua_tostring( L, 1 ) ) )
{
bFoundModel = true;
break;
}
}
if( bFoundModel )
{
delete [] mySnowFlakes[iModel].szName;
mySnowFlakes[iModel].szName = NULL;
// delete [] mySnowFlakes[iModel].pSnow;
free(mySnowFlakes[iModel].pSnow);
mySnowFlakes[iModel].pSnow = NULL;
return 1;
}
return 0;
}*/
// Set Boundaries Of A Flake
int lua_FlakeSetBoundaries( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 6! - XYZ Positions Start / End
if( iArgs != 6 ) { return 0; }
float fXStart = (float)lua_tonumber( L, 1 );
float fXEnd = (float)lua_tonumber( L, 2 );
float fYStart = (float)lua_tonumber( L, 3 );
float fYEnd = (float)lua_tonumber( L, 4 );
float fZStart = (float)lua_tonumber( L, 5 );
float fZEnd = (float)lua_tonumber( L, 6 );
mySnow.SetBoundaries( fXStart, fXEnd, fYStart, fYEnd, fZStart, fZEnd);
return 1;
}
int lua_FlakeSpeed( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 2! - MinSpeed, MaxSpeed
if( iArgs != 2 ) { return 0; }
float fMinFlakeSpeed = (float)lua_tonumber( L, 1 );
float fMaxFlakeSpeed = (float)lua_tonumber( L, 2 );
mySnow.SetSpeed( fMinFlakeSpeed, fMaxFlakeSpeed );
return 1;
}
int lua_FlakeTotal( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 1! - Total
if( iArgs != 1 ) { return 0; }
int iTotalFlakes = (int)lua_tonumber( L, 1 );
mySnow.SetFlakes( iTotalFlakes );
return 1;
}
int lua_FlakeScale( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 3! - X, Y, Z
if( iArgs != 3 ) { return 0; }
float fX = (float)lua_tonumber( L, 1 );
float fY = (float)lua_tonumber( L, 2 );
float fZ = (float)lua_tonumber( L, 3 );
mySnow.SetScale( fX, fY, fZ );
return 1;
}
int lua_FlakeRotateSpeed( lua_State* L )
{
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 3! - Flake1, Flake2, Flake3 Speed
if( iArgs != 3 ) { return 0; }
float fFlakeSpeed1 = (float)lua_tonumber( L, 1 );
float fFlakeSpeed2 = (float)lua_tonumber( L, 2 );
float fFlakeSpeed3 = (float)lua_tonumber( L, 3 );
mySnow.SetRotationSpeed( fFlakeSpeed1, fFlakeSpeed2, fFlakeSpeed3 );
return 1;
}
// Render The Flake To Screen
int lua_FlakeRender( lua_State* L )
{
// Render Snow Flakes
mySnow.Render();
return 1;
}
// End Snow Flakes
// Load A New Wave
int lua_WaveLoad( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Must Be 2 Args! - Wave Name & Wave File
if( iArgs != 2 ) { return 0; }
// Make Sure Wave With Same Name Not Already Loaded!
int iWave;
bool bBreak = false;
for( iWave = 0; iWave < MAX_OBJECTS; iWave++ )
{
// Check Name Isnt NULL
while( myWaveFiles[iWave].szName == NULL )
{
if( iWave == MAX_OBJECTS-1 ) { bBreak = true; break; }
iWave++;
}
if( bBreak ) { break; }
// Name Match?
if( XmlCmpNoCase( myWaveFiles[iWave].szName, lua_tostring( L, 1 ) ) )
{
return 0;
}
}
// Get First Free Wave
int iFree;
for( iFree = 0; iFree < MAX_OBJECTS; iFree++ )
{
// Empty?
if( myWaveFiles[iFree].szName == NULL ) { break; }
}
// Make Sure They Really Are Empty
delete [] myWaveFiles[iFree].szName;
delete [] myWaveFiles[iFree].pSound;
myWaveFiles[iFree].szName = NULL;
myWaveFiles[iFree].pSound = NULL;
// Set Name
myWaveFiles[iFree].szName = (char*)malloc( (int)strlen( lua_tostring( L, 1 ) ) + 1 );
sprintf( myWaveFiles[iFree].szName, "%s", lua_tostring( L, 1 ) );
// Load Wave
char szFilePath[MAX_PATH];
char* sztmpFilePath = (char*) lua_tostring(L,2);
sztmpFilePath = (char*) lua_tostring(L,2);
if (strnicmp("SKIN",sztmpFilePath,4) == 0 ) {
sprintf(szFilePath,"%s",sztmpFilePath);
} else {
sprintf(szFilePath,"SKIN:\\%s",sztmpFilePath);
}
myWaveFiles[iFree].pSound = new CXBSound;
myWaveFiles[iFree].pSound->Create( (CHAR*)lua_tostring( L, 2 ) );
// All Done
return 1;
}
// Free A Loaded Wave File
int lua_WaveFree( lua_State* L )
{
// Found font?
bool bFoundWave = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Only Need 1! - Font Name!
if( iArgs != 1 ) { return 0; }
// Find Wave
int iWave;
for( iWave = 0; iWave < MAX_OBJECTS; iWave++ )
{
// Name Match?
if( XmlCmpNoCase( myWaveFiles[iWave].szName, lua_tostring( L, 1 ) ) )
{
bFoundWave = true;
break;
}
}
if( bFoundWave )
{
delete [] myWaveFiles[iWave].szName;
myWaveFiles[iWave].szName = NULL;
myWaveFiles[iWave].pSound->Destroy();
free( myWaveFiles[iWave].pSound );
myWaveFiles[iWave].pSound = NULL;
return 1;
}
return 0;
}
int lua_WavePlay( lua_State* L )
{
// Found Model?
bool bFoundWave = false;
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 1! - Model Name!
if( iArgs != 1 ) { return 0; }
// Get Model
int iWave;
for( iWave = 0; iWave < MAX_OBJECTS; iWave++ )
{
// Name Match?
if( XmlCmpNoCase( myWaveFiles[iWave].szName, lua_tostring( L, 1 ) ) )
{
bFoundWave = true;
break;
}
}
if( bFoundWave )
{
// Reset Track to Zero then Play Again
//myWaveFiles[iWave].m_pDSoundBuffer->SetCurrentPosition(0);
//myWaveFiles[iWave].pSound->m_pDSoundBuffer->SetCurrentPosition(0);
myWaveFiles[iWave].pSound->Play();
}
return 1;
}
// Enable Xray
int lua_XrayEnable( lua_State* L )
{
g_bEnableXrayRendering = true;
return 1;
}
// Disable Xray
int lua_XrayDisable( lua_State* L )
{
g_bEnableXrayRendering = false;
return 1;
}
// Enable Alpha
int lua_AlphaEnable( lua_State* L )
{
g_bEnableAlphaRendering = true;
return 1;
}
// Disable Alpha
int lua_AlphaDisable( lua_State* L )
{
g_bEnableAlphaRendering = false;
return 1;
}
// Render Fog
int lua_FogRender( lua_State* L )
{
myFog.Enable();
myFog.Render();
myFog.Disable();
return 1;
}
// Fog Colour
int lua_FogColour( lua_State* L )
{
int Mode;
// Get Arg Count
int iArgs = lua_gettop( L );
// Should Be 8! - Model Name!
if( iArgs != 8 ) { return 0; }
Mode = (int)lua_tonumber(L, 1 ); // Fog Render Mode
// Fog Options
float fStart = (float)lua_tonumber(L, 2);
float fEnd = (float)lua_tonumber(L, 3);
float fDensity = (float)lua_tonumber(L, 4);
DWORD dA = (DWORD)lua_tonumber(L, 5);
DWORD dR = (DWORD)lua_tonumber(L, 6);
DWORD dG = (DWORD)lua_tonumber(L, 7);
DWORD dB = (DWORD)lua_tonumber(L, 8);
// Mode Switch for Fog render type:
switch ( Mode )
{
case 1:
{
myFog.ChangeFog(D3DFOG_EXP, fStart, fEnd, fDensity, D3DCOLOR_ARGB(dA, dR, dG, dB));
}
break;
case 2:
{
myFog.ChangeFog(D3DFOG_EXP2, fStart, fEnd, fDensity, D3DCOLOR_ARGB(dA, dR, dG, dB));
}
break;
case 3:
{
myFog.ChangeFog(D3DFOG_LINEAR, fStart, fEnd, fDensity, D3DCOLOR_ARGB(dA, dR, dG, dB));
}
break;
default:
{
myFog.ChangeFog(D3DFOG_LINEAR, fStart, fEnd, fDensity, D3DCOLOR_ARGB(dA, dR, dG, dB));
}
break;
}
return 1;
}
// Merge Strings Into One
int lua_StringMerge( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Get Size
int iSize = 0;
for( int i = 1; i <= iArgs; i++ )
{
iSize += strlen( lua_tostring( L, i ) );
}
// Create Buffer
char* szBuffer = (char*)malloc(iSize+1);
memset( szBuffer, 0, iSize+1 );
// Fill Buffer
for( int i = 1; i <= iArgs; i++ )
{
strcat( szBuffer, lua_tostring( L, i ) );
}
// Push Buffer
lua_pushstring( LUA_STATE, szBuffer );
//Cleanup
delete [] szBuffer;
szBuffer = NULL;
return 1;
}
/* Menu Functions */
// Return Total number of Menu Items
int lua_getmenuitems(lua_State *L)
{
int mnu=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 1! - Menu Number!
if( iArgs != 1 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
if(mnu>=0) {
lua_pushnumber(L, Menu[mnu].NodeCount());
return 1;
}
lua_pushnumber(L, 0);
return 1;
}
int lua_getmenuitemname(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if(mnu>=0 && itm>=0) {
if (Menu[mnu].IndexedMenu[itm]->Title!=NULL) {
lua_pushstring(L, Menu[mnu].IndexedMenu[itm]->Title);
return 1;
} else {
char * name = NULL;
sprintf (name,"IndexedMenu[%d] = NULL",itm);
lua_pushstring(L, name);
return 1;
}
}
lua_pushstring(L, "-- NULL --");
return 1;
}
int lua_getitemregion(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if (mnu >=0 && itm >=0)
{
if( Menu[mnu].IndexedMenu[itm]->Region & XBEIMAGE_GAME_REGION_NA )
{
lua_pushstring (L, "Region: NTSC");
}
else if( Menu[mnu].IndexedMenu[itm]->Region & XBEIMAGE_GAME_REGION_JAPAN )
{
lua_pushstring (L, "Region: NTSC-J");
}
else if( Menu[mnu].IndexedMenu[itm]->Region & XBEIMAGE_GAME_REGION_RESTOFWORLD )
{
lua_pushstring (L, "Region: PAL");
}
else if( Menu[mnu].IndexedMenu[itm]->Region & XBEIMAGE_GAME_REGION_MANUFACTURING )
{
lua_pushstring (L, "Region: DEBUG");
}
else
{
lua_pushstring (L, "Region: UNKNOWN");
}
}
return 1;
}
int lua_getitemrating(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if (mnu >=0 && itm >=0)
{
if( Menu[mnu].IndexedMenu[itm]->Rating & XC_PC_ESRB_ALL )
{
lua_pushstring (L, "Rating: ALL");
}
else if( Menu[mnu].IndexedMenu[itm]->Rating & XC_PC_ESRB_ADULT )
{
lua_pushstring (L, "Rating: ADULT");
}
else if( Menu[mnu].IndexedMenu[itm]->Rating & XC_PC_ESRB_MATURE )
{
lua_pushstring (L, "Rating: MATURE");
}
else if( Menu[mnu].IndexedMenu[itm]->Rating & XC_PC_ESRB_TEEN )
{
lua_pushstring (L, "Rating: TEEN");
}
else if( Menu[mnu].IndexedMenu[itm]->Rating & XC_PC_ESRB_KIDS_TO_ADULTS )
{
lua_pushstring (L, "Rating: KIDS TO ADULTS");
}
else if( Menu[mnu].IndexedMenu[itm]->Rating & XC_PC_ESRB_EARLY_CHILDHOOD)
{
lua_pushstring (L, "Rating: EARLY CHILDHOOD");
}
else
{
lua_pushstring (L, "Rating: UNKNOWN");
}
}
return 1;
}
int lua_getitemfilename(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if(mnu>=0 && itm>=0) {
lua_pushstring(L, Menu[mnu].IndexedMenu[itm]->File);
return 1;
}
lua_pushstring(L, "-- NULL --");
return 1;
}
int lua_getitemiconpath(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if(mnu>=0 && itm>=0) {
lua_pushstring(L, Menu[mnu].IndexedMenu[itm]->Icon);
return 1;
}
lua_pushstring(L, "-- NULL --");
return 1;
}
int lua_getitemdblocks(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if(mnu>=0 && itm>=0) {
lua_pushnumber(L, Menu[mnu].IndexedMenu[itm]->DBlocks);
return 1;
}
lua_pushnumber(L, 0);
return 1;
}
int lua_getitemtype(lua_State *L)
{
int mnu=-1;
int itm=-1;
// Get Arg Number
int iArgs = lua_gettop( L );
// Only Need 2! - Menu Number, Item number!
if( iArgs != 2 ) { return 0; }
mnu = (int)lua_tonumber(L, 1);
itm = (int)lua_tonumber(L, 2);
if(mnu>=0 && itm>=0) {
lua_pushnumber(L, Menu[mnu].IndexedMenu[itm]->Action);
return 1;
}
lua_pushnumber(L, -1);
return 1;
}
// Draw Texured Quad with alpha level
int lua_DrawTexturedQuadAlpha( lua_State* L )
{
// Found Texture?
bool bFoundTexture = false;
// Get Arg Number
int iArgs = lua_gettop( L );
// Check Args
// Need.. NAME TOP BOTTOM LEFT RIGHT ALPHA
if( iArgs != 6 ) { return 0; }
// Find Font
int iTexture;
for( iTexture = 0; iTexture < MAX_OBJECTS; iTexture++ )
{
// Name Match?
if( XmlCmpNoCase( myTextures[iTexture].szName, lua_tostring( L, 1 ) ) )
{
bFoundTexture = true;
break;
}
}
if( bFoundTexture )
{
float fLeft = (float)lua_tonumber( L, 2 );
float fRight = (float)lua_tonumber( L, 3 );
float fTop = (float)lua_tonumber( L, 4 );
float fBottom = (float)lua_tonumber( L, 5 );
float fAlpha = (float)lua_tonumber(L,6);
stVertex myVerts[] = {
{ fLeft, fTop, 0, 1, 0, 0 },
{ fRight, fTop, 0, 1, 1, 0 },
{ fLeft, fBottom, 0, 1, 0, 1 },
{ fLeft, fBottom, 0, 1, 0, 1 },
{ fRight, fTop, 0, 1, 1, 0 },
{ fRight, fBottom, 0, 1, 1, 1 },
};
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_SELECTARG1 );
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1 );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ALPHAARG1, D3DTA_TFACTOR );
my3D.Device()->SetTextureStageState( 1, D3DTSS_COLOROP, D3DTOP_DISABLE );
my3D.Device()->SetTextureStageState( 1, D3DTSS_ALPHAOP, D3DTOP_DISABLE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ADDRESSU, D3DTADDRESS_CLAMP );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ADDRESSV, D3DTADDRESS_CLAMP );
my3D.Device()->SetRenderState( D3DRS_TEXTUREFACTOR, (DWORD)(255.0f*fAlpha)<<24L );
my3D.Device()->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
my3D.Device()->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
my3D.Device()->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
my3D.Device()->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
my3D.Device()->SetRenderState( D3DRS_ZENABLE, FALSE );
my3D.Device()->SetRenderState( D3DRS_FOGENABLE, FALSE );
my3D.Device()->SetRenderState( D3DRS_FOGTABLEMODE, D3DFOG_NONE );
my3D.Device()->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );
my3D.Device()->SetVertexShader( D3DFVF_XYZRHW | D3DFVF_TEX1 );
my3D.Device()->SetTexture( 0, myTextures[iTexture].pTexture );
my3D.Device()->DrawVerticesUP( D3DPT_TRIANGLESTRIP, 6, &myVerts, sizeof(stVertex) );
return 1;
}
return 0;
}
struct VERTEX { D3DXVECTOR4 p; FLOAT tu, tv; };
// Draw Texured Quad
int lua_DrawTexturedQuad( lua_State* L )
{
// Found Texture?
bool bFoundTexture = false;
// Get Arg Number
int iArgs = lua_gettop( L );
// Check Args
// Need.. NAME TOP BOTTOM LEFT RIGHT
if( iArgs != 5 ) { return 0; }
// Find Font
int iTexture;
for( iTexture = 0; iTexture < MAX_OBJECTS; iTexture++ )
{
// Name Match?
if( XmlCmpNoCase( myTextures[iTexture].szName, lua_tostring( L, 1 ) ) )
{
bFoundTexture = true;
break;
}
}
if( bFoundTexture )
{
float fLeft = (float)lua_tonumber( L, 2 );
float fRight = (float)lua_tonumber( L, 3 );
float fTop = (float)lua_tonumber( L, 4 );
float fBottom = (float)lua_tonumber( L, 5 );
stVertex myVerts[] = {
{ fLeft, fTop, 0, 1, 0, 0 },
{ fRight, fTop, 0, 1, 1, 0 },
{ fLeft, fBottom, 0, 1, 0, 1 },
{ fLeft, fBottom, 0, 1, 0, 1 },
{ fRight, fTop, 0, 1, 1, 0 },
{ fRight, fBottom, 0, 1, 1, 1 },
};
my3D.Device()->SetRenderState(D3DRS_ALPHABLENDENABLE, true);
my3D.Device()->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
//my3D.Device()->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_DESTCOLOR);
my3D.Device()->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_DIFFUSE );
my3D.Device()->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1);
my3D.Device()->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE);
my3D.Device()->SetVertexShader( D3DFVF_XYZRHW | D3DFVF_TEX1 );
my3D.Device()->SetTexture( 0, myTextures[iTexture].pTexture );
my3D.Device()->DrawVerticesUP( D3DPT_TRIANGLESTRIP, 6, &myVerts, sizeof(stVertex) );
}
/*
LPDIRECT3DVERTEXBUFFER8 m_pVB;
float x, float y, float nw, float nh;
float m_nWidth=640;
float m_nHeight=480;
my3D.Device()->CreateVertexBuffer( 4*6*sizeof(FLOAT), D3DUSAGE_WRITEONLY,
0L, D3DPOOL_DEFAULT, &m_pVB );
x=fLeft;
y=fTop;
nw=fRight-fLeft;
nh=fBottom-fTop;
VERTEX* vertex;
m_pVB->Lock( 0, 0, (BYTE**)&vertex, 0L );
{
vertex[0].p = D3DXVECTOR4( x - 0.5f, y - 0.5f, 0, 0 );
vertex[0].tu = 0;
vertex[0].tv = 0;
vertex[1].p = D3DXVECTOR4( x+nw - 0.5f, y - 0.5f, 0, 0 );
vertex[1].tu = m_nWidth;
vertex[1].tv = 0;
vertex[2].p = D3DXVECTOR4( x+nw - 0.5f, y+nh - 0.5f, 0, 0 );
vertex[2].tu = m_nWidth;
vertex[2].tv = m_nHeight;
vertex[3].p = D3DXVECTOR4( x - 0.5f, y+nh - 0.5f, 0, 0 );
vertex[3].tu = 0;
vertex[3].tv = m_nHeight;
}
m_pVB->Unlock();
// Set state to render the image
my3D.Device()->SetTexture( 0, myTextures[iTexture].pTexture );
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_TEXTURE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_DIFFUSE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ALPHAOP, D3DTOP_MODULATE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ALPHAARG2, D3DTA_DIFFUSE );
my3D.Device()->SetTextureStageState( 1, D3DTSS_COLOROP, D3DTOP_DISABLE );
my3D.Device()->SetTextureStageState( 1, D3DTSS_ALPHAOP, D3DTOP_DISABLE );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ADDRESSU, D3DTADDRESS_CLAMP );
my3D.Device()->SetTextureStageState( 0, D3DTSS_ADDRESSV, D3DTADDRESS_CLAMP );
my3D.Device()->SetTextureStageState(0, D3DTSS_MAGFILTER,D3DTEXF_POINT );
my3D.Device()->SetTextureStageState(0, D3DTSS_MINFILTER,D3DTEXF_POINT );
my3D.Device()->SetTextureStageState(0, D3DTSS_MIPFILTER,D3DTEXF_NONE);
my3D.Device()->SetRenderState( D3DRS_ZENABLE, FALSE );
my3D.Device()->SetRenderState( D3DRS_FOGENABLE, FALSE );
my3D.Device()->SetRenderState( D3DRS_FOGTABLEMODE, D3DFOG_NONE );
my3D.Device()->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );
my3D.Device()->SetRenderState( D3DRS_CULLMODE, D3DCULL_CCW );
my3D.Device()->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
my3D.Device()->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
my3D.Device()->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
my3D.Device()->SetVertexShader( D3DFVF_XYZRHW|D3DFVF_TEX1 );
// Render the image
my3D.Device()->SetStreamSource( 0, m_pVB, 6*sizeof(FLOAT) );
my3D.Device()->DrawPrimitive( D3DPT_QUADLIST, 0, 1 );
if (m_pVB!=NULL)
{
m_pVB->Release();
m_pVB=NULL;
}
}*/
return 0;
}
// Launch XBE
int lua_LaunchXBE(lua_State *L)
{
bool EnablePatch = myDash.bRegionPatch;
char *xbefile=NULL;
// Get Arg Number
int iArgs = lua_gettop( L );
// Check Args
if( iArgs != 1 ) { return 0; }
xbefile = (char*)lua_tostring(L, 1);
// Launching DVD Title
if (XmlCmpNoCase("dvd", xbefile))
{
myXBELauncher.Launch_XBOX_Game();
myXBELauncher.Launch_XBOX_Movie();
}
else {
myXBELauncher.Custom_Launch_XBOX_Game(EnablePatch, xbefile);
}
return 1;
}
// Format Drive Partition
int lua_FormatDrive( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Check Args
if( iArgs != 1 ) { return 0; }
FormatDrivePartition((char*)lua_tostring(L, 1));
return 1;
}
// Reset TitleImages
void ResetTitleImages()
{
char szRemoveTitle[255];
// W-I-P Remove Only TitleImages TXR?
for(int i=0; i<MAX_OBJECTS; i++)
{
sprintf(szRemoveTitle, "txr%i", i);
if( myTextures[i].szName == szRemoveTitle ) {
// Release All Loaded Textures
delete [] myTextures[i].szName;
myTextures[i].szName = NULL;
if (myTextures[i].iType == 0) myTextures[i].pTexture->Release();
if (myTextures[i].iType == 1) {
free( myTextures[i].pTexture );
}
myTextures[i].pTexture = NULL;
}
}
}
// Reset Structures
void StructReset()
{
// Need a Check on total ammount of Objects Loaded!!! -- Check Now in Place 16/11/04
for(int i=0; i<MAX_OBJECTS; i++)
{
if( myModels[i].szName == NULL ) {
} else {
// Release All Loaded Mesh Files
delete [] myModels[i].szName;
myModels[i].szName = NULL;
delete [] myModels[i].pMesh;
myModels[i].pMesh = NULL;
}
if( myFonts[i].szName == NULL ) {
} else {
// Release All Loaded Font Files
delete [] myFonts[i].szName;
myFonts[i].szName = NULL;
myFonts[i].pFont->Destroy();
free( myFonts[i].pFont );
myFonts[i].pFont = NULL;
}
if( myTextures[i].szName == NULL ) {
} else {
// Release All Loaded Textures
delete [] myTextures[i].szName;
myTextures[i].szName = NULL;
//myTextures[i].pTexture->Release();
if (myTextures[i].iType == 0) myTextures[i].pTexture->Release();
if (myTextures[i].iType == 1) {
free( myTextures[i].pTexture );
}
myTextures[i].pTexture = NULL;
}
if( myWaveFiles[i].szName == NULL ) {
} else {
// Release All Loaded Wave Files
// Destroy Needs a Load Check!
delete [] myWaveFiles[i].szName;
myWaveFiles[i].szName = NULL;
myWaveFiles[i].pSound->Destroy();
free( myWaveFiles[i].pSound );
myWaveFiles[i].pSound = NULL;
}
}
}
// Set Skin
int lua_SetSkin( lua_State* L )
{
// Get Arg Number
int iArgs = lua_gettop( L );
// Check Args
if( iArgs != 1 ) { return 0; }
OutputDebugString(lua_tostring(L, 1));
myDash.sSkin = lua_tostring(L, 1);
StructReset(); // Clear All our Structurs ready for next Skin.
return 1;
}
// Save Configuration
int lua_SaveConfig( lua_State* L )
{
SaveConfig();
return 1;
}
// Lock / Unlock HDD
void HDDLockThread()
{
DWORD dwThreadId, dwThrdParam = 1;
HANDLE hThread;
hThread = CreateThread(
NULL, // (this parameter is ignored)
0, // use default stack size
LockHDDThread, // thread function
&dwThrdParam, // argument to thread function
0, // use default creation flags
&dwThreadId);
CloseHandle( hThread );
}
int lua_LockHDD( lua_State* L )
{
char *type;
type = "1";
//CreateThread(0, 0, &LockHDDThread, NULL, 0, 0);
//CreateThread(NULL, 0, LockHDDThread, type, 0, NULL);
//GetEEpromData();
//LockHDD();
HDDLockThread();
return 1;
}
int lua_UnlockHDD( lua_State* L )
{
char *type;
type = "1";
//CreateThread(0, 0, &UnLockHDDThread, NULL, 0, 0);
CreateThread(NULL, 0, UnLockHDDThread, type, 0, NULL);
//GetEEpromData();
//UnlockHDD();
return 1;
}
// AutoUpdate
int lua_AutoUpdate( lua_State* L )
{
CreateThread(0, 0, &AutoUpdateThread, NULL, 0, 0);
return 1;
}
// LUA OutputDebug
int lua_DebugOutput(lua_State *L)
{
int n=lua_gettop(L);
if (n)
{
char *DebugText = (char *)lua_tostring(L,1);
OutputDebugString (DebugText);
}
return 0;
}
// Set LCD Text from LUA
int lua_SetLCDText (lua_State* L)
{
char* pointer;
pointer = (char *) malloc(255);
int iArgs = lua_gettop( L );
switch (iArgs) {
case 1:
if (myxLCD.GetRenderTextStatus()) {
strcpy(pointer,lua_tostring(L,1));
myxLCD.UpdateDisplayText(pointer);
}
break;
case 2:
if (myxLCD.GetRenderTextStatus()) {
strcpy(pointer,lua_tostring(L,2));
myxLCD.UpdateLine((int)lua_tonumber(L,1),pointer);
}
break;
default:
break;
}
delete [] pointer;
pointer=NULL;
return 1;
}
// Clear Cache
int lua_ClearCache(lua_State *L)
{
DeleteFile("U:\\menu0.dat");
DeleteFile("U:\\menu1.dat");
DeleteFile("U:\\menu2.dat");
DeleteFile("U:\\menu3.dat");
DeleteFile("U:\\menu4.dat");
DeleteFile("U:\\menu5.dat");
DeleteFile("U:\\menu6.dat");
DeleteFile("U:\\menu7.dat");
DeleteFile("U:\\menu8.dat");
DeleteFile("U:\\default.dat");
return 1;
}
/*
FTP Client LUA Commands
*/
// Overkill, if any idiot actually uses shit that overflows this then they deserve what they get.
char ftpclient_user[30];
char ftpclient_pass[30];
DWORD WINAPI T_DoOpen(LPVOID string) {
progressmax=3;
theFtpConnection->DoOpen((char *) string);
char user_pass[64];
//sprintf(user_pass, "%s:%s", "xbox", "xbox");
sprintf(user_pass, "%s:%s", myDash.sRemoteFTPUser.c_str(), myDash.sRemoteFTPPass.c_str());
//sprintf(user_pass, "%s:%s", ftpclient_user, ftpclient_pass);
theFtpConnection->DoLogin(user_pass);
// progress++ causes Black screen on Connect
//progressbar++;
theFtpConnection->DoList("dirFiltered");
//progressbar++;
theFtpConnection->DoLLS("*");
return 0;
}
int lua_ftpopen(lua_State *L)
{
/*int n=lua_gettop(L);
int i;
char *remote;
for (i=1; i <= n; i++) {
switch(i) {
case 1: remote = (char *)lua_tostring(L, i); break;
}
}
if(remote!=NULL) {
if(CreateThread(NULL, 0, T_DoOpen, remote, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
}*/
char *remote;
//char szHostIP[255];
//sprintf(szHostIP, "%s", myDash.sRemoteFTPHost.c_str());
remote = (char *) myDash.sRemoteFTPHost.c_str();
//remote = "192.168.0.44";
if(CreateThread(NULL, 0, T_DoOpen, remote, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
lua_pushnumber(L, 0);
return 1;
}
DWORD WINAPI T_DoList(LPVOID string) {
theFtpConnection->DoList("dirFiltered");
return 0;
}
int lua_ftplist(lua_State *L)
{
if(CreateThread(NULL, 0, T_DoList, NULL, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
lua_pushnumber(L, 0);
return 1;
}
DWORD WINAPI T_DoLLS(LPVOID string) {
theFtpConnection->DoLLS("*");
return 0;
}
int lua_ftplls(lua_State *L)
{
if(CreateThread(NULL, 0, T_DoLLS, NULL, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
lua_pushnumber(L, 0);
return 1;
}
DWORD WINAPI T_DoCD(LPVOID string) {
theFtpConnection->DoCD((char *) string);
// Causes Crash!: Very odd as this works ok for OnConnect
theFtpConnection->DoList("dirFiltered");
return 0;
}
int lua_ftpcd(lua_State *L)
{
int n=lua_gettop(L);
int i;
char *type;
for (i=1; i <= n; i++) {
switch(i) {
case 1: type = (char *)lua_tostring(L, i); break;
}
}
if(type!=NULL) {
if(CreateThread(NULL, 0, T_DoCD, type, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
}
lua_pushnumber(L, 0);
return 1;
}
int lua_ftpsetuser(lua_State *L)
{
int n=lua_gettop(L);
int i;
char *type;
for (i=1; i <= n; i++) {
switch(i) {
case 1: type = (char *)lua_tostring(L, i); break;
}
}
if(type!=NULL) {
strcpy(ftpclient_user, type);
}
return 0;
}
int lua_ftpsetpass(lua_State *L)
{
int n=lua_gettop(L);
int i;
char *type;
for (i=1; i <= n; i++) {
switch(i) {
case 1: type = (char *)lua_tostring(L, i); break;
}
}
if(type!=NULL) {
strcpy(ftpclient_pass, type);
}
return 0;
}
int lua_ftpclose(lua_State *L)
{
theFtpConnection->DoClose();
return 0;
}
DWORD WINAPI T_DoLCD(LPVOID string) {
Menu[5].Clear();
theFtpConnection->DoLCD((char *) string);
theFtpConnection->DoLLS("*");
return 0;
}
int lua_ftplcd(lua_State *L)
{
int n=lua_gettop(L);
int i;
char *type;
for (i=1; i <= n; i++) {
switch(i) {
case 1: type = (char *)lua_tostring(L, i); break;
}
}
if(type!=NULL) {
if(CreateThread(NULL, 0, T_DoLCD, type, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
}
lua_pushnumber(L, 0);
return 1;
}
DWORD WINAPI T_DoPut(LPVOID string) {
theFtpConnection->DoPut((char *) string);
return 0;
}
int lua_ftpput(lua_State *L)
{
int n=lua_gettop(L);
int i;
char *type;
for (i=1; i <= n; i++) {
switch(i) {
case 1: type = (char *)lua_tostring(L, i); break;
}
}
if(type!=NULL) {
if(CreateThread(NULL, 0, T_DoPut, type, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
}
lua_pushnumber(L, 0);
return 1;
}
DWORD WINAPI T_DoGet(LPVOID string) {
theFtpConnection->DoGet((char *) string);
return 0;
}
int lua_ftpget(lua_State *L)
{
int n=lua_gettop(L);
int i;
char *type;
for (i=1; i <= n; i++) {
switch(i) {
case 1: type = (char *)lua_tostring(L, i); break;
}
}
if(type!=NULL) {
if(CreateThread(NULL, 0, T_DoGet, type, 0, NULL)!=NULL) {
lua_pushnumber(L, 1);
return 1;
}
}
lua_pushnumber(L, 0);
return 1;
}
int lua_ftpbinary(lua_State *L)
{
theFtpConnection->DoBinary();
return 0;
}
int lua_ftpascii(lua_State *L)
{
theFtpConnection->DoAscii();
return 0;
}
int lua_ftppwd(lua_State *L)
{
theFtpConnection->DoPWD();
return 0;
}
|
#include<bits/stdc++.h>
using namespace std;
bool isvalid(vector<int>& stalls,int n,int cows,int dist)
{
int position = 0;
int count = 1;
for(int i=1;i<n;i++)
{
long long diff = abs(stalls[i]-stalls[position]);
if(diff >= dist)
{
count+=1;
position = i;
}
if(count == cows)
{
return true;
}
}
return false;
}
long long solve(vector<int>& stalls,int n,int cows)
{
long long low = 0;
sort(stalls.begin(),stalls.end());
long long high = stalls[n-1]-stalls[0];
long long ans = -1;
while(low<=high)
{
long long mid = low + (high-low)/2;
if(isvalid(stalls,n,cows,mid)==true)
{
// mid can be our ans
ans = mid;
// we should maximize the minimum distance
low = mid+1;
}
else
{
high = mid-1;
}
}
return ans;
}
int main()
{
int t;
cin >> t;
while(t--)
{
int n;
cin >> n;
int cows;
cin >> cows;
vector<int> stalls(n);
for(int i=0;i<n;i++)
{
cin >> stalls[i];
}
cout << solve(stalls,n,cows) << endl;
}
return 0;
}
|
#include <ax12.h>
#include <avr/pgmspace.h>
//Initialize Variables.
int MotorID = -1;
int LEDDelay = 100;
int CommandType = -1;
int NumMotors = -1;
int NumCommandsLow = -1;
int NumCommandsHigh = -1;
int MoveDelay = 20;
int ReadDelay = 20;
void setup()
{
//Initialize serial communication with baud rate of 9600.
// Serial.begin(9600);
Serial.begin(115200);
//Set the built-in LED to be active.
pinMode(0, OUTPUT);
}
void loop()
{
//While the loop is running, have the LED blink.
digitalWrite(0, HIGH);
delay(LEDDelay);
digitalWrite(0, LOW);
delay(LEDDelay);
//Check for bytes in the queue and respond approperiately.
if (Serial.available() > 0) //If there are any bytes in the queue...
{
//Turn the LED on.
digitalWrite(0, HIGH);
//Read in the desired command type.
CommandType = Serial.read();
// Execute the motor commands.
if (CommandType == 1) // If the Command Type is set to 1...
{
//Write the positions to the motor.
MotorWrite();
}
// Read the motor positions.
if (CommandType == 2)
{
//Read the positions of the motors.
MotorRead();
}
//Turn off the LED.
digitalWrite(0, LOW);
}
}
void MotorWrite()
{
//Read in the number of motors to move.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
digitalWrite(0, HIGH);
NumMotors = Serial.read();
delay(ReadDelay);
//Read in the low byte of the number of commands to be sent to the motors.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
digitalWrite(0, HIGH);
NumCommandsLow = Serial.read(); //NEED TO READ IN TWO BYTES IN CASE THE NUMBER IS VERY LARGE.
delay(ReadDelay);
//Read in the high byte of the number of commands to be sent to the motors.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
digitalWrite(0, HIGH);
NumCommandsHigh = Serial.read(); //NEED TO READ IN TWO BYTES IN CASE THE NUMBER IS VERY LARGE.
delay(ReadDelay);
//Preallocate an array to store the Motors IDs.
int M[NumMotors];
//Read in all of the Motor IDs from Matlab.
for (int i2 = 0; i2 < NumMotors; i2++) {
//Read in the motor ID.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
M[i2] = Serial.read();
}
//Preallocate arrays to store the Position and Velocity Data.
int Plow;
int Phigh;
int Vlow;
int Vhigh;
int MaxSize = 100;
int Pmat[NumMotors][NumCommandsLow + 256*NumCommandsHigh];
int Vmat[NumMotors][NumCommandsLow + 256*NumCommandsHigh];
// int Pmat[NumMotors][MaxSize];
// int Vmat[NumMotors][MaxSize];
// int i3 = 0;
// int i4 = 0;
//Read in all of the Positions and Velocities from Matlab.
for (int i1 = 0; i1 < (NumCommandsLow + 256*NumCommandsHigh); i1++) {
for (int i2 = 0; i2 < NumMotors; i2++) {
digitalWrite(0, HIGH);
//Read in the motor position low byte.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
Plow = Serial.read();
//Read in the motor position high byte.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
Phigh = Serial.read();
//Read in the motor velocity low byte.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
Vlow = Serial.read();
//Read in the motor velocity high byte.
while (Serial.available() < 1) {digitalWrite(0, LOW);}
Vhigh = Serial.read();
//Assemble the values into matrices.
Pmat[i2][i1] = Plow + 256*Phigh;
Vmat[i2][i1] = Vlow + 256*Vhigh;
}
// //Advance the counter.
// i3++;
delay(ReadDelay);
}
//Blink for debugging.
for (int i = 0; i < 3; i++){
//While the loop is running, have the LED blink.
digitalWrite(0, HIGH);
delay(LEDDelay + 500);
digitalWrite(0, LOW);
delay(LEDDelay + 500);
}
//Write the Motor IDs, Positions, and Velocities to the Motors.
for (int i1 = 0; i1 < (NumCommandsLow + 256*NumCommandsHigh); i1++) {
for (int i2 = 0; i2 < NumMotors; i2++) {
//Set the motor velocity.
ax12SetRegister2(M[i2], 32, Vmat[i2][i1]);
}
//Use a negligible delay to ensure that the motor positions are sent.
delay(MoveDelay);
for (int i2 = 0; i2 < NumMotors; i2++) {
//Set the motor position.
SetPosition(M[i2], Pmat[i2][i1]);
}
//Use a negligible delay to ensure that the motor positions are sent.
delay(MoveDelay);
}
//Write to Matlab that the MotorWrite operation is complete.
Serial.write(1);
}
void MotorRead()
{
//Wait for the number of motors to be sent from Matlab.
while (Serial.available() < 1) {}
//Read in the number of motors to move.
NumMotors = Serial.read();
//Wait for all of the motor IDs to be sent.
while (Serial.available() < NumMotors) {}
//Write the current position of each motor to Matlab.
for(int i = 1; i <= NumMotors; i++) //Iterate through each motor...
{
//Retrieve the current Motor ID.
MotorID = Serial.read();
//Read the ACTUAL position of the motor and send it to Matlab.
Serial.write(ax12GetRegister(MotorID, 36, 1));
Serial.write(ax12GetRegister(MotorID, 37, 1));
delay(ReadDelay);
}
}
|
#pragma once
#ifndef __MainWindow_H
#define __MainWindow_H 1
#include <thread>
class window;
class input;
class keyboard;
enum keys;
class mouse;
class RenderContext;
class MainWindow
{
public:
MainWindow();
virtual ~MainWindow();
bool isKeyDown(keys key) const;
void getMousePos(long& x, long& y) const;
const window* const getWnd(void) const;
const input* const getInput(void) const;
const keyboard* const getKeyboard(void) const;
const mouse* const getMouse(void) const;
private:
std::thread m_thread;
window* m_pWindow;
input* m_pInput;
keyboard* m_pKeyboard;
mouse* m_pMouse;
RenderContext* m_pRC;
long m_mouseX, m_mouseY;
void mProc();
};
#endif // !__MainWindow_H
|
#include <iostream>
#include "libxl.h"
#include "headers/config.h"
using namespace libxl;
int getXLSData(struct artikel structure[])
{ /* Read Data from excel file (.xls) and load them into predefined structure, have error checking
* part of class providing methods to handle this type of files. Based on LibXL
*/
const char* arr_ptr;
int* x_location_ptr;
int* y_location_ptr;
double* price_ptr;
bool* availability_ptr;
// Dynamic memory allocation
Book* book = xlCreateBook(); //Create object
if(book)
{
if(book->load("example.xls"))
{
Sheet* sheet = book->getSheet(0); //Load sheet
if(sheet)
{
short int data_count =sheet -> lastRow()-2;
arr_ptr = new char* [data_count];
x_location_ptr = new int [data_count];
y_location_ptr = new int [data_count];
price_ptr = new double [data_count];
availability_ptr= new bool [data_count];
for(int i=0;i<data_count;i++) //First row is HEAD
{
arr_ptr[i] = sheet->readStr(i+2, 1); //Read name into memory
x_location_ptr[i] =(int) sheet->readNum(i+2, 2); // i - row, B - collum
y_location_ptr[i] =(int) sheet->readNum(i+2, 3);
price_ptr[i] = sheet->readNum(i+2, 4);
availability_ptr[i] = sheet -> readBool(i+2, 5);
}
for(int i=0;i<data_count;i++) { //edit asigment here!
structure[i].code = arr_ptr[i];
structure[i].location_x = x_location_ptr[i];
structure[i].location_y = y_location_ptr[i];
structure[i].price = price_ptr[i];
structure[i].is_available = availability_ptr[i];
}
} else return (-1);
} else return (-1);
book->release(); //Destructor
}
return 0;
}
|
/*
* Copyright 2017 Roman Katuntsev <sbkarr@stappler.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "Module.h"
#include "Binary.h"
#include <iomanip>
namespace wasm {
static void printType(std::ostream &stream, Type t) {
switch (t) {
case Type::I32: stream << "i32"; break;
case Type::I64: stream << "i64"; break;
case Type::F32: stream << "f32"; break;
case Type::F64: stream << "f64"; break;
case Type::Anyfunc: stream << "anyfunc"; break;
case Type::Func: stream << "func"; break;
case Type::Void: stream << "void"; break;
case Type::Any: stream << "any"; break;
}
}
static void printSignature(std::ostream &stream, const Module::Signature &sig) {
stream << "(";
bool first = true;
for (auto &it : sig.params) {
if (!first) { stream << ", "; } else { first = false; }
printType(stream, it);
}
if (!sig.results.empty()) {
if (sig.params.empty()) {
stream << "()";
}
stream << " -> ";
}
first = true;
for (auto &it : sig.results) {
if (!first) { stream << ", "; } else { first = false; }
printType(stream, it);
}
stream << ")";
}
static void printIndent(std::ostream &stream, Index indent) {
for (Index i = 0; i < indent; ++ i) {
stream << "\t";
}
}
static void printFunctionData(std::ostream &stream, const Func &it, Index indent) {
size_t j = 0;
printIndent(stream, indent);
if (!it.name.empty()) {
stream << it.name << ": ";
}
stream << "Code (" << it.opcodes.size() << ")\n";
for (auto &opcodeIt : it.opcodes) {
printIndent(stream, indent);
stream << "\t(" << j << ") " << Opcode(opcodeIt.opcode).GetName() << " ";
switch (opcodeIt.opcode) {
case Opcode::I32Const:
stream << opcodeIt.value32.v1;
break;
case Opcode::I64Const:
stream << opcodeIt.value64;
break;
case Opcode::F32Const:
stream << Value(opcodeIt.value32.v1).asFloat();
break;
case Opcode::F64Const:
stream << Value(opcodeIt.value64).asDouble();
break;
default:
stream << opcodeIt.value32.v1 << " " << opcodeIt.value32.v2;
break;
}
stream << "\n";
++ j;
}
}
Func::Local::Local(Type t, Index count) : type(t), count(count) { }
Func::Func(const Signature *sig, const Module *module) : sig(sig), module(module) { }
Module::Signature::Signature(Index param_count, Type* param_types, Index result_count, Type* result_types) {
params.reserve(param_count);
for (Index i = 0; i < param_count; ++ i) {
params.emplace_back(param_types[i]);
}
results.reserve(result_count);
for (Index i = 0; i < result_count; ++ i) {
results.emplace_back(result_types[i]);
}
}
Module::Signature::Signature(TypeInitList params, TypeInitList results)
: params(params), results(results) { }
void Module::Signature::printInfo(std::ostream &stream) const {
printSignature(stream, *this);
}
Module::Import::Import(ExternalKind kind) : kind(kind) { }
Module::Import::Import(ExternalKind kind, StringView module, StringView field, const Signature *sig)
: kind(kind), module(module.data(), module.size()), field(field.data(), field.size()) { func.sig = sig; }
Module::Import::Import(ExternalKind kind, StringView module, StringView field, Type t, const Limits &l)
: kind(kind), module(module.data(), module.size()), field(field.data(), field.size()) { table.type = t; table.limits = l; }
Module::Import::Import(ExternalKind kind, StringView module, StringView field, const Limits &l)
: kind(kind), module(module.data(), module.size()), field(field.data(), field.size()) { memory.limits = l; }
Module::Import::Import(ExternalKind kind, StringView module, StringView field, Type t, bool mut)
: kind(kind), module(module.data(), module.size()), field(field.data(), field.size()) { global.type = t; global.mut = mut; }
Module::Table::Table(Type t, const Limits& limits) : type(t), limits(limits) { }
Module::Memory::Memory(const Limits& limits) : limits(limits) { }
Module::Global::Global(const TypedValue& value, bool mut)
: value(value), mut(mut) { }
Module::Global::Global(Type type, bool mut)
: value(type), mut(mut) { }
Module::IndexObject::IndexObject(Index idx, bool import)
: import(import), index(idx) { }
Module::Export::Export(ExternalKind kind, Index obj, IndexObject index, StringView name)
: kind(kind), object(obj), index(index), name(name.data(), name.size()) { }
Module::Elements::Elements(Index t, Index off, Index capacity)
: table(t), offset(off) {
values.reserve(capacity);
}
Module::Data::Data(Index m, Address offset, Address size, const uint8_t *bytes)
: memory(m), offset(offset) {
data.assign(bytes, bytes + size);
}
bool Module::init(const uint8_t *data, size_t size, const ReadOptions &opts) {
return init(nullptr, data, size, opts);
}
bool Module::init(Environment *env, const uint8_t *data, size_t size, const ReadOptions &opts) {
wasm::ModuleReader reader;
return init(env, reader, data, size, opts);
}
bool Module::init(Environment *env, ModuleReader &reader, const uint8_t *data, size_t size, const ReadOptions &opts) {
return reader.init(this, env, data, size, opts);
}
bool Module::hasMemory() const {
return !_memoryIndex.empty();
}
bool Module::hasTable() const {
return !_tableIndex.empty();
}
Module::Signature *Module::getSignature(Index idx) {
if (idx < _types.size()) {
return &_types[idx];
}
return nullptr;
}
const Module::Signature *Module::getSignature(Index idx) const {
if (idx < _types.size()) {
return &_types[idx];
}
return nullptr;
}
Func * Module::getFunc(Index idx) {
if (idx < _funcs.size()) {
return &_funcs[idx];
}
return nullptr;
}
Module::Table * Module::getTable(Index idx) {
if (idx < _tables.size()) {
return &_tables[idx];
}
return nullptr;
}
Module::Memory * Module::getMemory(Index idx) {
if (idx < _memory.size()) {
return &_memory[idx];
}
return nullptr;
}
Module::Global * Module::getGlobal(Index idx) {
if (idx < _globals.size()) {
return &_globals[idx];
}
return nullptr;
}
const Func * Module::getFunc(Index idx) const {
if (idx < _funcs.size()) {
return &_funcs[idx];
}
return nullptr;
}
const Module::Table * Module::getTable(Index idx) const {
if (idx < _tables.size()) {
return &_tables[idx];
}
return nullptr;
}
const Module::Memory * Module::getMemory(Index idx) const {
if (idx < _memory.size()) {
return &_memory[idx];
}
return nullptr;
}
const Module::Global * Module::getGlobal(Index idx) const {
if (idx < _globals.size()) {
return &_globals[idx];
}
return nullptr;
}
const Module::Import * Module::getImportFunc(Index idx) const {
if (idx < _imports.size() && _imports[idx].kind == ExternalKind::Func) {
return &_imports[idx];
}
return nullptr;
}
const Module::Import * Module::getImportGlobal(Index idx) const {
if (idx < _imports.size() && _imports[idx].kind == ExternalKind::Global) {
return &_imports[idx];
}
return nullptr;
}
const Module::Import * Module::getImportMemory(Index idx) const {
if (idx < _imports.size() && _imports[idx].kind == ExternalKind::Memory) {
return &_imports[idx];
}
return nullptr;
}
const Module::Import * Module::getImportTable(Index idx) const {
if (idx < _imports.size() && _imports[idx].kind == ExternalKind::Table) {
return &_imports[idx];
}
return nullptr;
}
const Module::IndexObject *Module::getFunctionIndex(Index idx) const {
if (idx < _funcIndex.size()) {
return &_funcIndex[idx];
}
return nullptr;
}
const Module::IndexObject *Module::getGlobalIndex(Index idx) const {
if (idx < _globalIndex.size()) {
return &_globalIndex[idx];
}
return nullptr;
}
const Module::IndexObject *Module::getMemoryIndex(Index idx) const {
if (idx < _memoryIndex.size()) {
return &_memoryIndex[idx];
}
return nullptr;
}
const Module::IndexObject *Module::getTableIndex(Index idx) const {
if (idx < _tableIndex.size()) {
return &_tableIndex[idx];
}
return nullptr;
}
const Vector<Module::IndexObject> & Module::getFuncIndexVec() const {
return _funcIndex;
}
const Vector<Module::IndexObject> & Module::getGlobalIndexVec() const {
return _globalIndex;
}
const Vector<Module::IndexObject> & Module::getMemoryIndexVec() const {
return _memoryIndex;
}
const Vector<Module::IndexObject> & Module::getTableIndexVec() const {
return _tableIndex;
}
const Vector<Module::Import> & Module::getImports() const {
return _imports;
}
const Vector<Module::Export> & Module::getExports() const {
return _exports;
}
std::pair<const Module::Signature *, bool> Module::getFuncSignature(Index idx) const {
if (auto obj = getFunctionIndex(idx)) {
if (obj->import) {
if (auto func = getImportFunc(obj->index)) {
return std::pair<const Module::Signature *, bool>(func->func.sig, true);
}
} else {
if (auto func = getFunc(obj->index)) {
return std::pair<const Module::Signature *, bool>(func->sig, false);
}
}
}
return std::pair<const Module::Signature *, bool>(nullptr, false);
}
const Module::Signature * Module::getFuncSignature(const IndexObject &idx) const {
if (idx.import) {
if (auto func = getImportFunc(idx.index)) {
return func->func.sig;
}
} else {
if (auto func = getFunc(idx.index)) {
return func->sig;
}
}
return nullptr;
}
std::pair<Type, bool> Module::getGlobalType(Index idx) const {
if (auto obj = getGlobalIndex(idx)) {
if (obj->import) {
if (auto g = getImportGlobal(obj->index)) {
return std::pair<Type, bool>(g->global.type, g->global.mut);
}
} else {
if (auto g = getGlobal(obj->index)) {
return std::pair<Type, bool>(g->value.type, g->mut);
}
}
}
return std::pair<Type, bool>(Type::Void, false);
}
std::pair<Type, bool> Module::getGlobalType(const IndexObject &idx) const {
if (idx.import) {
if (auto g = getImportGlobal(idx.index)) {
return std::pair<Type, bool>(g->global.type, g->global.mut);
}
} else {
if (auto g = getGlobal(idx.index)) {
return std::pair<Type, bool>(g->value.type, g->mut);
}
}
return std::pair<Type, bool>(Type::Void, false);
}
const Vector<Module::Elements> &Module::getTableElements() const {
return _elements;
}
const Vector<Module::Data> &Module::getMemoryData() const {
return _data;
}
Offset Module::getLinkingOffset() const {
return _dataSize;
}
void Func::printInfo(std::ostream &stream) const {
printSignature(stream, *sig);
stream << "\n";
printFunctionData(stream, *this, 1);
}
void Module::printInfo(std::ostream &stream) const {
stream << "Types: (" << _types.size() << ")\n";
size_t i = 0;
for (auto &it : _types) {
stream << "\t(" << i << ") ";
printSignature(stream, it);
stream << "\n";
++ i;
}
stream << "Imports:\n";
if (!_imports.empty()) {
for (auto &it : _imports) {
stream << "\t";
switch (it.kind) {
case ExternalKind::Func:
stream << "function \"" << it.module << "\".\"" << it.field << "\" ";
printSignature(stream, *it.func.sig);
break;
case ExternalKind::Global:
stream << "global \"" << it.module << "\".\"" << it.field << "\" ";
printType(stream, it.global.type);
if (it.global.mut) {
stream << " mut";
}
break;
case ExternalKind::Memory:
stream << "memory \"" << it.module << "\".\"" << it.field << "\" initial:" << (it.memory.limits.initial * 64 * 1024) << "bytes";
if (it.memory.limits.has_max) {
stream << " max:" << (it.memory.limits.max * 64 * 1024) << "bytes";
}
if (it.memory.limits.is_shared) {
stream << " shared";
}
break;
case ExternalKind::Table:
stream << "table \"" << it.module << "\".\"" << it.field << "\" initial:" << it.table.limits.initial;
if (it.table.limits.has_max) {
stream << " max:" << it.table.limits.max;
}
if (it.table.limits.is_shared) {
stream << " shared";
}
break;
default:
break;
}
stream << "\n";
}
}
stream << "Index spaces:\n";
if (!_funcIndex.empty()) {
i = 0;
stream << "\tFunctions: (" << _funcIndex.size() << ")\n";
for (auto &it : _funcIndex) {
stream << "\t\t(" << i << ") -> (" << it.index << ") ";
auto sig = getFuncSignature(i);
if (sig.first) {
printSignature(stream, *sig.first);
}
if (it.import) { stream << " imported"; }
if (it.exported) { stream << " exported"; }
stream << "\n";
++ i;
}
}
if (!_globalIndex.empty()) {
i = 0;
stream << "\tGlobals: (" << _globalIndex.size() << ")\n";
for (auto &it : _globalIndex) {
stream << "\t\t(" << i << ") -> (" << it.index << ") (";
printType(stream, getGlobalType(i).first);
if (it.import) { stream << " imported"; }
if (it.exported) { stream << " exported"; }
stream << "\n";
++ i;
}
}
if (!_memoryIndex.empty()) {
i = 0;
stream << "\tMemory: (" << _memoryIndex.size() << ")\n";
for (auto &it : _memoryIndex) {
stream << "\t\t(" << i << ") -> (" << it.index << ")";
if (it.import) { stream << " imported"; }
if (it.exported) { stream << " exported"; }
if (it.index < _memory.size()) {
auto &mem = _memory[it.index];
stream << " ( " << mem.limits.initial;
if (mem.limits.has_max) {
stream << " max:" << mem.limits.max;
}
stream << " )";
}
stream << "\n";
++ i;
}
}
if (!_tableIndex.empty()) {
i = 0;
stream << "\tTables: (" << _tableIndex.size() << ")\n";
for (auto &it : _tableIndex) {
stream << "\t\t(" << i << ") -> (" << it.index << ")";
if (it.import) { stream << " imported"; }
if (it.exported) { stream << " exported"; }
stream << "\n";
++ i;
}
}
if (!_exports.empty()) {
stream << "Exports: (" << _data.size() << ")\n";
for (auto &it : _exports) {
stream << "\t";
if (it.index.import) {
stream << "imported ";
} else {
stream << "defined ";
}
switch (it.kind) {
case ExternalKind::Func:
stream << "function:" << it.index.index << " ";
if (auto sig = getFuncSignature(it.index)) {
printSignature(stream, *sig);
}
break;
case ExternalKind::Table:
stream << "table:" << it.index.index;
break;
case ExternalKind::Memory:
stream << "memory:" << it.index.index;
break;
case ExternalKind::Global:
stream << "global:" << it.index.index << " ";
printType(stream, getGlobalType(it.index).first);
break;
case ExternalKind::Except:
break;
}
stream << " as \"" << it.name << "\"\n";
}
}
i = 0;
stream << "Functions: (" << _funcs.size() << ")\n";
for (auto &it : _funcs) {
stream << "\t(" << i << ") ";
printSignature(stream, *it.sig);
stream << "\n";
printFunctionData(stream, it, 2);
++ i;
}
if (!_globals.empty()) {
i = 0;
stream << "Globals: (" << _globals.size() << ")\n";
for (auto &it : _globals) {
stream << "\t(" << i << ") ";
printType(stream, it.value.type);
switch (it.value.type) {
case Type::I32: stream << ":" << it.value.value.i32; break;
case Type::I64: stream << ":" << it.value.value.i64; break;
case Type::F32: stream << ":" << it.value.value.f32_bits; break;
case Type::F64: stream << ":" << it.value.value.f64_bits; break;
case Type::Anyfunc: stream << ":" << it.value.value.i32; break;
case Type::Func: stream << ":" << it.value.value.i32; break;
case Type::Any: stream << ":" << it.value.value.i32; break;
case Type::Void: break;
}
if (it.mut) {
stream << " mutable";
}
++ i;
}
}
if (!_data.empty()) {
stream << "Data: (" << _data.size() << ")\n";
i = 0;
for (auto &it : _data) {
stream << "\t(" << i << ") (" << it.offset << ":" << it.data.size() << ":\"";
stream << std::hex;
for (auto &b : it.data) {
if (b < 127 && b >= 32) {
stream << char(b);
} else {
stream << "\\" << std::setw(2) << std::setfill('0') << unsigned(b);
}
}
stream << std::dec << std::setw(1);
stream << "\") -> memory:" << it.memory << "\n";
++ i;
}
}
if (!_elements.empty()) {
stream << "Elements: (" << _elements.size() << ")\n";
i = 0;
for (auto &it : _elements) {
stream << "\t(" << i << ") (" << it.offset << ":" << it.values.size() << ":";
bool first = true;
for (auto &b : it.values) {
if (!first) { stream << ", "; } else { first = false; }
stream << "(" << b << ")";
}
stream << ") -> table:" << it.table << "\n";
++ i;
}
}
}
}
|
//////////////////////////////////////////////////////////////////////////
//
// data library
//
// Written by Pavel Amialiushka
// No commercial use permited.
//
//////////////////////////////////////////////////////////////////////////
#pragma once
#include "data_fwrd.h"
#include "criterion.h"
#include <boost/format.hpp>
namespace monpac
{
class classifier;
/////////////////////////////////////////////////////////////////////////
class outputter
{
public:
outputter();
virtual void accept(classifier*);
std::string get_text() const;
protected:
unsigned get_holds_count() const;
virtual void out_header();
virtual void out_finish();
virtual std::string get_line_format(channel const &)=0;
std::string get_zip(channel const &chan) const;
std::pair<bool, double> hold_criterion(channel const &chan, int index) const;
std::pair<bool, double> total_criterion(channel const &chan) const;
std::pair<bool, double> a65_criterion(channel const &chan) const;
std::pair<bool, double> dur_criterion(channel const &chan) const;
void print_line(channel const &);
protected:
void out(boost::format &fmt, const std::string &str);
protected:
criterion criterion_;
std::ostringstream buffer_;
};
}
|
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "ObjectMacros.h"
#include "ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef QBERT_PROJECT_MainMenuHUD_generated_h
#error "MainMenuHUD.generated.h already included, missing '#pragma once' in MainMenuHUD.h"
#endif
#define QBERT_PROJECT_MainMenuHUD_generated_h
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_RPC_WRAPPERS
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_RPC_WRAPPERS_NO_PURE_DECLS
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_INCLASS_NO_PURE_DECLS \
private: \
static void StaticRegisterNativesAMainMenuHUD(); \
friend QBERT_PROJECT_API class UClass* Z_Construct_UClass_AMainMenuHUD(); \
public: \
DECLARE_CLASS(AMainMenuHUD, AHUD, COMPILED_IN_FLAGS(0 | CLASS_Transient | CLASS_Config), 0, TEXT("/Script/QBert_Project"), NO_API) \
DECLARE_SERIALIZER(AMainMenuHUD) \
enum {IsIntrinsic=COMPILED_IN_INTRINSIC};
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_INCLASS \
private: \
static void StaticRegisterNativesAMainMenuHUD(); \
friend QBERT_PROJECT_API class UClass* Z_Construct_UClass_AMainMenuHUD(); \
public: \
DECLARE_CLASS(AMainMenuHUD, AHUD, COMPILED_IN_FLAGS(0 | CLASS_Transient | CLASS_Config), 0, TEXT("/Script/QBert_Project"), NO_API) \
DECLARE_SERIALIZER(AMainMenuHUD) \
enum {IsIntrinsic=COMPILED_IN_INTRINSIC};
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_STANDARD_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API AMainMenuHUD(const FObjectInitializer& ObjectInitializer); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(AMainMenuHUD) \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, AMainMenuHUD); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(AMainMenuHUD); \
private: \
/** Private move- and copy-constructors, should never be used */ \
NO_API AMainMenuHUD(AMainMenuHUD&&); \
NO_API AMainMenuHUD(const AMainMenuHUD&); \
public:
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_ENHANCED_CONSTRUCTORS \
private: \
/** Private move- and copy-constructors, should never be used */ \
NO_API AMainMenuHUD(AMainMenuHUD&&); \
NO_API AMainMenuHUD(const AMainMenuHUD&); \
public: \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, AMainMenuHUD); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(AMainMenuHUD); \
DEFINE_DEFAULT_CONSTRUCTOR_CALL(AMainMenuHUD)
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_PRIVATE_PROPERTY_OFFSET
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_14_PROLOG
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_GENERATED_BODY_LEGACY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_PRIVATE_PROPERTY_OFFSET \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_RPC_WRAPPERS \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_INCLASS \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_STANDARD_CONSTRUCTORS \
public: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#define QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_GENERATED_BODY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_PRIVATE_PROPERTY_OFFSET \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_RPC_WRAPPERS_NO_PURE_DECLS \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_INCLASS_NO_PURE_DECLS \
QBert_Project_Source_QBert_Project_MainMenuHUD_h_17_ENHANCED_CONSTRUCTORS \
private: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID QBert_Project_Source_QBert_Project_MainMenuHUD_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
#pragma once
#include "Person.h"
class Teacher : public Person
{
public:
Teacher();
Teacher(std::string teacherFirstName, std::string teacherLastName);
~Teacher();
};
|
/***************************************************************************
Copyright (c) 2020 Philip Fortier
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
***************************************************************************/
#pragma once
#include "NonViewClient.h"
#include "ExtDialogFwdCmd.h"
#include "NoFlickerStatic.h"
#include "MessageEditorListCtrl.h"
#include "Message.h"
#include "AudioPlaybackUI.h"
#include "ViewUIElement.h"
#include "Task.h"
class CMessageDoc;
struct SyncComponent;
struct TextComponent;
struct TextEntry;
enum class SidecarResourceStatus
{
Added = 0x1, // This has been added since we last saved
Deleted = 0x2, // This has been deleted since we last saved
Moved = 0x4, // This was moved (e.g. map needs to be updated, but not the thing)
};
DEFINE_ENUM_FLAGS(SidecarResourceStatus, uint32_t)
class MessageEditPane : public AudioPlaybackUI<CExtDialogFwdCmd>, public INonViewClient
{
public:
MessageEditPane(CWnd* pParent = nullptr); // standard constructor
virtual ~MessageEditPane();
// Dialog Data
enum
{
IDD = IDD_MESSAGEEDIT,
};
void SetDocument(CDocument *pDoc);
CMessageDoc *GetDocument() { return _pDoc; }
// INonViewClient
void UpdateNonView(CObject *pObject) override;
virtual BOOL PreTranslateMessage(MSG* pMsg);
void _Update();
const TextEntry *_GetEntry();
protected:
void OnNewResourceCreated(std::unique_ptr<ResourceEntity> audioResource, const std::string &name, bool isRecording) override;
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
afx_msg void OnPlayAudio();
DECLARE_MESSAGE_MAP()
BOOL OnEraseBkgnd(CDC *pDC);
private:
void _UpdateSequence(int sequence);
void _UpdateCombos(MessageChangeHint hint);
bool _UpdateAudio(const TextEntry &entry);
CMessageDoc *_pDoc;
CExtEdit m_wndEditMessage;
CExtComboBox m_wndComboNoun;
bool _nounEdited;
CExtComboBox m_wndComboVerb;
bool _verbEdited;
CExtComboBox m_wndComboTalker;
bool _talkerEdited;
CExtComboBox m_wndComboCondition;
bool _conditionEdited;
CExtCheckBox m_wndUseText;
CExtEdit m_wndEditSequence;
// Visual
CExtLabel m_wndLabel1;
CExtLabel m_wndLabel2;
CExtLabel m_wndLabel3;
CExtLabel m_wndLabel4;
CExtLabel m_wndLabel5;
CExtLabel m_wndLabel6;
CExtLabel m_wndLabelBase36;
CExtButton m_wndButton1;
CExtButton m_wndButton2;
CExtButton m_wndButton3;
CExtButton m_wndButtonFakeCommit;
CExtSpinWnd m_wndSpinner;
CExtButton m_wndDeleteAudio;
CExtButton m_wndEditAudio;
CExtGroupBox m_wndAudioGroup;
// Lipsync stuff
ViewUIElement m_wndMouth;
CExtButton m_wndQuickLipSync;
CExtButton m_wndLipSyncDialog;
std::unique_ptr<ResourceEntity> _mouthView;
int _mouthLoop;
int _mouthCel;
CBitmap _currentCelImage;
CWndTaskSink<SyncComponent> _lipSyncTaskSink;
int _spinnerValue;
HACCEL _hAccel;
bool _initialized;
public:
afx_msg void OnBnClickedButtonaddnoun();
afx_msg void OnBnClickedButtonaddcondition();
afx_msg void OnEnChangeEditmessage();
afx_msg void OnCbnSelchangeCombonoun();
afx_msg void OnCbnSelchangeComboverb();
afx_msg void OnEnChangeEditseq();
afx_msg void OnEnKillfocusEditmessage();
afx_msg void OnCbnSelchangeCombocondition();
afx_msg void OnCbnSelchangeCombotalker();
afx_msg void OnCbnEditchangeComboverb();
afx_msg void OnCbnEditupdateComboverb();
afx_msg void OnCbnKillfocusComboverb();
afx_msg void OnCbnSetfocusComboverb();
afx_msg void OnCbnSetfocusCombonoun();
afx_msg void OnCbnKillfocusCombonoun();
afx_msg void OnCbnEditchangeCombonoun();
afx_msg void OnCbnSetfocusCombocondition();
afx_msg void OnCbnKillfocusCombocondition();
afx_msg void OnCbnEditchangeCombocondition();
afx_msg void OnCbnSetfocusCombotalker();
afx_msg void OnCbnKillfocusCombotalker();
afx_msg void OnCbnEditchangeCombotalker();
afx_msg void OnBnClickedButtonlipsync();
LRESULT _OnLipSyncDone(WPARAM wParam, LPARAM lParam);
afx_msg void OnBnClickedButtonlipsyncDialog();
afx_msg void OnBnClickedButtondeleteaudio();
afx_msg void OnBnClickedEditaudio();
};
|
#include<iostream>
#include<vector>
#include<algorithm>//标准算法的头文件
using namespace std;
// vector容器存放内置数据类型
void myPrint(int val)
{
cout<<val<<endl;
}
void test01()
{
//创建vector容器,数组
vector<int> v;
//插入数据
v.push_back(10);//尾插
v.push_back(20);
v.push_back(30);
v.push_back(40);
// //第一种遍历方式
// // 通过迭代器访问容器中的数据
// vector<int>::iterator itBegin = v.begin();//起始迭代器 指向容器中的第一个元素
// vector<int>::iterator itEnd = v.end();//结束迭代器 指向容器中的最后一个元素的下个元素
// while(itBegin != itEnd)
// {
// cout<<*itBegin<<endl;
// itBegin++;
// }
// // 第二种遍历方式
// for(vector<int>::iterator it = v.begin(); it != v.end(); it++)
// {
// cout<<*it<<endl;
// }
// 第三种遍历方式 for_each()遍历算法
for_each(v.begin(),v.end(),myPrint);//回调函数
}
int main()
{
test01();
return 0;
}
|
#ifndef FACTORY_BTN_ERASER_H_
#define FACTORY_BTN_ERASER_H_
#include "Factory_Btn.h"
class Factory_Btn_Eraser : public Factory_Btn {
public:
Botton* generate();
};
#endif // !FACTORY_BTN_ERASER_H_
#pragma once
|
//
// Copyright Jason Rice 2019
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef NBDL_APP_SERIALIZER_JS_HPP
#define NBDL_APP_SERIALIZER_JS_HPP
#include <nbdl/binder/js.hpp>
#include <string>
namespace nbdl::app
{
namespace hana = boost::hana;
using full_duplex::promise;
// serializer - An object to be held by an actor and
// has a simple serialize function returning
// a reference to its buffer
template <typename Tag, typename Variant>
struct serializer
{
nbdl::js::val val = {};
serializer() = default;
serializer(serializer const&) = delete;
// converts to the variant type
// and serializes
template <typename Message>
nbdl::js::val& serialize(Message&& m) {
using nbdl::binder::js::bind_to;
bind_to(val, Variant(std::forward<Message>(m)));
return val;
}
};
// deserializer - A nullary function that returns a promise
// to handle deserialization and validation
template <typename Tag, typename Variant>
struct deserializer_fn
{
auto operator()() const {
using nbdl::binder::js::bind_from;
return promise([](auto& resolve, nbdl::js::val const& js_val) {
using full_duplex::make_error;
Variant var;
// populates var with data from the buffer in js land
bind_from(js_val, var);
nbdl::match(var, hana::overload_linearly(
[&resolve](nbdl::unresolved) {
// this should not happen unless we get
// garbage input or something
resolve(make_error("Deserialization failed"));
},
[&resolve](system_message sys_msg) {
// something bad happened?
resolve(make_error(std::move(sys_msg)));
},
[&resolve](auto&& msg) {
resolve(std::forward<decltype(msg)>(msg));
}));
});
}
};
}
#endif
|
#include "scripting\Singularity.Scripting.h"
using namespace Singularity::Components;
namespace Singularity
{
namespace Scripting
{
IMPLEMENT_OBJECT_TYPE(Singularity.Scripting, LuaRuntime, Singularity::Object);
#pragma region Static Variables
LuaRuntime* LuaRuntime::g_pInstance = NULL;
#pragma endregion
#pragma region Constructors and Finalizers
LuaRuntime::LuaRuntime()
{
this->Stack = lua_open();
luaopen_base(this->Stack);
luaopen_table(this->Stack);
luaopen_string(this->Stack);
luaopen_math(this->Stack);
luaopen_os(this->Stack);
lua_pushcfunction(this->Stack, luaopen_io);
lua_call(this->Stack, 0, 0);
tolua_Singularity_scripting_open(this->Stack);
}
LuaRuntime::~LuaRuntime()
{
lua_close(this->Stack);
}
#pragma endregion
#pragma region Methods
void LuaRuntime::LoadFile(String name)
{
unsigned error;
if(luaL_loadfile(LuaRuntime::Create()->Stack, name.c_str()) != 0)
throw SingularityException("Unknown error loading Lua script file.");
if((error = lua_pcall(LuaRuntime::g_pInstance->Stack, 0, 0, 0)) != 0)
throw SingularityException("Unable to add function to lua stack.", error);
}
void LuaRuntime::RegisterFunction(String name, lua_CFunction function)
{
lua_register(LuaRuntime::Create()->Stack, name.c_str(), function);
}
void LuaRuntime::ExecuteFunction(String name, float value)
{
unsigned error;
lua_getglobal(LuaRuntime::Create()->Stack, name.c_str());
if(lua_isfunction(LuaRuntime::g_pInstance->Stack, -1))
{
lua_pushnumber(LuaRuntime::g_pInstance->Stack, value);
if((error = lua_pcall(LuaRuntime::g_pInstance->Stack, 1, 0, 0)) != 0)
{
LuaRuntime::Dump();
throw SingularityException(lua_tostring(LuaRuntime::g_pInstance->Stack, -1), error);
}
}
}
void LuaRuntime::Dump()
{
int i;
int top = lua_gettop(LuaRuntime::Create()->Stack);
printf("total in stack %d\n",top);
for (i = 1; i <= top; i++)
{ /* repeat for each level */
int t = lua_type(LuaRuntime::g_pInstance->Stack, i);
switch (t) {
case LUA_TSTRING: /* strings */
printf("string: '%s'\n", lua_tostring(LuaRuntime::g_pInstance->Stack, i));
break;
case LUA_TBOOLEAN: /* booleans */
printf("boolean %s\n",lua_toboolean(LuaRuntime::g_pInstance->Stack, i) ? "true" : "false");
break;
case LUA_TNUMBER: /* numbers */
printf("number: %g\n", lua_tonumber(LuaRuntime::g_pInstance->Stack, i));
break;
default: /* other values */
printf("%s\n", lua_typename(LuaRuntime::g_pInstance->Stack, t));
break;
}
printf(" "); /* put a separator */
}
printf("\n"); /* end the listing */
}
LuaRuntime* LuaRuntime::Create()
{
if(LuaRuntime::g_pInstance == NULL)
LuaRuntime::g_pInstance = new LuaRuntime();
return LuaRuntime::g_pInstance;
}
#pragma endregion
}
}
|
#include <iostream>
using namespace std;
int main(){
bool b=cout.bad();
cout<<b<<endl;
b=cout.good();
cout<<b<<endl;
return 0;
}
|
#pragma once
#ifndef FILELOADER_H
#define FILELOADER_H
#include <Windows.h>
#include <iostream>
#include <fstream>
class FileLoader
{
private:
const char * FilePath;
FILE * FilePointer;
char * FileDataBuffer;
UINT FileLength = 0;
UINT BytesReadFromBuffer = 0;
void setLoaderFilePath(const char * FileToRead)
{
FilePath = FileToRead;
}
BOOL getFileHandle(void)
{
errno_t FileOpen = fopen_s(&FilePointer, FilePath, "rb");
if (FileOpen != 0)
{
std::cout << "Failed to open file";
return FALSE;
}
return TRUE;
}
BOOL getFileLength(void)
{
if (!FilePointer)
return FALSE;
if (fseek(FilePointer, 0, SEEK_END) != 0)
{
std::cout << "Failed to set cursor to end of file." << std::endl;
return FALSE;
}
FileLength = ftell(FilePointer);
if (FileLength == -1L)
{
std::cout << "Failed to get length of file (ftell)" << std::endl;
return FALSE;
}
rewind(FilePointer);
return TRUE;
}
void AllocateBufferMemory(void)
{
if (!FilePointer)
return;
FileDataBuffer = new char[FileLength + 1];
}
BOOL loadToMemory(void)
{
if (!FilePointer)
return FALSE;
UINT ReadSize = fread(FileDataBuffer, sizeof(char), FileLength, FilePointer);
if (ReadSize != FileLength)
{
std::cout << "loadToMemory Failed. ReadSize != FileLength";
return FALSE;
}
return TRUE;
}
public:
~FileLoader(void)
{
unloadFile ();
}
FileLoader(void)
{
}
BOOL createLoader(const char * FileToRead)
{
setLoaderFilePath(FileToRead);
if (!getFileHandle() || !getFileLength())
return FALSE;
AllocateBufferMemory();
FileDataBuffer[FileLength] = '\0';
return TRUE;
}
BOOL loadFile(void)
{
if (!loadToMemory())
return FALSE;
std::cout << "Length: " << FileLength << std::endl;
return TRUE;
}
// This function does not unload IFP data, to unload IFP call unloadIFP function
void unloadFile(void)
{
if (FileDataBuffer != nullptr)
{
delete[] FileDataBuffer;
fclose(FilePointer);
FileDataBuffer = nullptr;
}
}
void PrintReadOffset(void)
{
std::cout << "Bytes read from buffer: " << BytesReadFromBuffer << std::endl;
}
template < class T >
void readBuffer ( T * Destination )
{
const UINT ReadOffset = BytesReadFromBuffer;
BytesReadFromBuffer += sizeof ( T );
*Destination = *reinterpret_cast < T * > (FileDataBuffer + ReadOffset);
}
void readBytes(void * Destination, const UINT BytesToRead)
{
const UINT ReadOffset = BytesReadFromBuffer;
BytesReadFromBuffer += BytesToRead;
memcpy(Destination, FileDataBuffer + ReadOffset, BytesToRead);
}
std::string readString(UINT StringSizeInBytes)
{
std::string String;
String.resize(StringSizeInBytes);
for (UINT i = 0; i < StringSizeInBytes; i++)
{
const UINT ReadOffset = BytesReadFromBuffer;
String[i] = FileDataBuffer[ReadOffset];
BytesReadFromBuffer++;
}
return String;
}
void readCString (char * Destination, const UINT BytesToRead)
{
const UINT ReadOffset = BytesReadFromBuffer;
BytesReadFromBuffer += BytesToRead;
memcpy(Destination, FileDataBuffer + ReadOffset, BytesToRead);
*(Destination + (BytesToRead - 1)) = '\0';
}
void skipBytes(UINT TotalBytesToSkip)
{
BytesReadFromBuffer += TotalBytesToSkip;
}
};
#endif
|
#ifndef _RAVE_UTILS_H__
#define _RAVE_UTILS_H__
#include <iostream>
#include <armadillo>
using namespace arma;
#include <openrave-core.h>
namespace rave = OpenRAVE;
namespace rave_utils {
void cart_to_joint(rave::RobotBase::ManipulatorPtr manip, const rave::Transform &matrix4,
const std::string &ref_frame, const std::string &targ_frame, std::vector<double> &joint_values,
const int filter_options=0);
rave::Transform transform_relative_pose_for_ik(rave::RobotBase::ManipulatorPtr manip,
const rave::Transform &matrix4, const std::string &ref_frame, const std::string &targ_frame);
rave::GraphHandlePtr plot_point(rave::EnvironmentBasePtr env, const rave::Vector &pos, rave::Vector &color, float size=.01);
rave::GraphHandlePtr plot_point(rave::EnvironmentBasePtr env, const mat &pos, mat &color, float size=.01);
void plot_transform(rave::EnvironmentBasePtr env, rave::Transform T, std::vector<rave::GraphHandlePtr> &handles);
void save_view(rave::ViewerBasePtr viewer, std::string file_name);
mat rave_transform_to_mat(rave::Transform rt);
rave::Transform mat_to_rave_transform(mat m);
mat rave_vec_to_mat(rave::Vector v, bool is_4d=false);
rave::Vector mat_to_rave_vec(mat m);
}
#endif
|
/*
* Date.cpp
*
* Created on: Sep 12, 2016
* Author: Istvan
*/
//#include <iomanip>
#include "Date.h"
//////////Functions used for lab2//////////////////////////////////
Date::Date() {
year = 0;
month = 0;
day = 0;
}
int Date::getDate(){
return ((year *pow(10,4)) + (month *pow(10,2)) + day);
}
void Date::setDate(int d){
year = d/10000;
month = (d/100)%100;
day = d%100;
}
void Date::setDate(string d){
int temp = string2int(d);
year = temp/10000;
month = (temp/100)%100;
day = temp%100;
}
int Date::age(){
return getCalendarDate()/10000 - year;
}
void Date::print(){
cout << setfill('0') << setw(4)<< year;
cout << setfill('0') << setw(2) << month;
cout << setfill('0') << setw(2) << day;
}
////////////////////////////////////////////////////////////
////////////// More functions //////////////////////////////
/*
Date::Date(int d) {
year = d/10000;
month = (d/100)%100;
day = d%100;
}
Date::~Date() {
}
void Date::setDate(int d){
year = d/10000;
month = (d/100)%100;
day = d%100;
}
void Date::printNice(){
cout<<"Day: "<< setfill('0') << setw(2) << day;
cout << ", Month: " << setfill('0') << setw(2)<< month;
cout << ", Year: " << setfill('0') << setw(4) << year << endl;
}
//*/
|
#include "stdint.h"
#include <stdio.h>
#include <math.h>
typedef uint32_t color_t;
#define ONE_HALF 0x80
#define A_SHIFT 8 * 3
#define R_SHIFT 8 * 2
#define G_SHIFT 8
#define A_MASK 0xff000000
#define R_MASK 0xff0000
#define G_MASK 0xff00
const uint32_t rgba_r_shift = 0;
const uint32_t rgba_g_shift = 8;
const uint32_t rgba_b_shift = 16;
const uint32_t rgba_a_shift = 24;
const uint32_t rgba_r_mask = 0x000000ff;
const uint32_t rgba_g_mask = 0x0000ff00;
const uint32_t rgba_b_mask = 0x00ff0000;
const uint32_t rgba_rgb_mask = 0x00ffffff;
const uint32_t rgba_a_mask = 0xff000000;
inline uint8_t rgba_getr(uint32_t c) {
return (c >> rgba_r_shift) & 0xff;
}
inline uint8_t rgba_getg(uint32_t c) {
return (c >> rgba_g_shift) & 0xff;
}
inline uint8_t rgba_getb(uint32_t c) {
return (c >> rgba_b_shift) & 0xff;
}
inline uint8_t rgba_geta(uint32_t c) {
return (c >> rgba_a_shift) & 0xff;
}
inline uint32_t rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
return ((r << rgba_r_shift) |
(g << rgba_g_shift) |
(b << rgba_b_shift) |
(a << rgba_a_shift));
}
#define MUL_UN8(a, b, t) \
((t) = (a) * (uint16_t)(b) + ONE_HALF, ((((t) >> G_SHIFT ) + (t) ) >> G_SHIFT ))
// --------------------
static double lum(double r, double g, double b)
{
return 0.3*r + 0.59*g + 0.11*b;
}
static double maxd(double a, double b) {
if (a > b) {
return a;
} else {
return b;
}
}
static double mind(double a, double b) {
if (a < b) {
return a;
} else {
return b;
}
}
static double sat(double r, double g, double b)
{
return maxd(r, maxd(g, b)) - mind(r, mind(g, b));
}
static void clip_color(double& r, double& g, double& b)
{
double l = lum(r, g, b);
double n = mind(r, mind(g, b));
double x = maxd(r, maxd(g, b));
if (n < 0) {
r = l + (((r - l) * l) / (l - n));
g = l + (((g - l) * l) / (l - n));
b = l + (((b - l) * l) / (l - n));
}
if (x > 1) {
r = l + (((r - l) * (1 - l)) / (x - l));
g = l + (((g - l) * (1 - l)) / (x - l));
b = l + (((b - l) * (1 - l)) / (x - l));
}
}
static void set_lum(double& r, double& g, double& b, double l)
{
double d = l - lum(r, g, b);
r += d;
g += d;
b += d;
clip_color(r, g, b);
}
// TODO replace this with a better impl (and test this, not sure if it's correct)
static void set_sat(double& r, double& g, double& b, double s)
{
#undef MIN
#undef MAX
#undef MID
#define MIN(x,y) (((x) < (y)) ? (x) : (y))
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
#define MID(x,y,z) ((x) > (y) ? ((y) > (z) ? (y) : ((x) > (z) ? \
(z) : (x))) : ((y) > (z) ? ((z) > (x) ? (z) : \
(x)): (y)))
double& min = MIN(r, MIN(g, b));
double& mid = MID(r, g, b);
double& max = MAX(r, MAX(g, b));
if (max > min) {
mid = ((mid - min)*s) / (max - min);
max = s;
}
else
mid = max = 0;
min = 0;
}
static void set_sat2(double* r, double* g, double* b, double s)
{
double *tmp;
// Use a static sorting network with three swaps.
#define SWAP(x,y) if (!((*x) < (*y))) { tmp = (x); (x) = (y); (y) = tmp; }
double *min = r;
double *mid = g;
double *max = b;
SWAP(min, mid);
SWAP(min, max);
SWAP(mid, max);
// printf("min:%f mid:%f max:%f", *min, *mid, *max);
if (*max > *min) {
*mid = ((*mid - *min) * s) / (*max - *min);
*max = s;
}
else
*mid = *max = 0;
*min = 0;
#undef SWAP
}
// -----------------------------------------------------------------------------
#define STEP ((double)1.0 / 4)
#define DBG_LOG 0
#define MAX_FAILURES 5
bool test_set_sat() {
unsigned int num_failures = 0;
for (double s = 0.0; s <= 1.0; s += STEP) {
for (double in_r = 0.0; in_r <= 1.0; in_r += STEP) {
for (double in_g = 0.0; in_g <= 1.0; in_g += STEP) {
for (double in_b = 0.0; in_b <= 1.0; in_b += STEP) {
double r = in_r;
double g = in_g;
double b = in_b;
if (DBG_LOG) {
printf(
"* col=(%.4f, %.4f, %.4f), sat=%.4f => ",
r, g, b, sat(r, g, b)
);
}
set_sat(r, g, b, s);
//set_sat2(&r, &g, &b, s);
double new_s = sat(r, g, b);
if (DBG_LOG) {
printf(
"set_sat(%.4f) => (%.4f, %.4f, %.4f), new_sat=%.4f\n",
s, r, g, b, new_s
);
}
if (!(r == g && g == b)) {
if (fabs(s - new_s) > 0.00001) {
printf(
"ERROR: set_sat(%.4f, %.4f, %.4f, %.4f) => "
"(%.4f, %.4f, %.4f), sat(..) = %.4f\n",
in_r, in_g, in_b, s,
r, g, b, new_s
);
num_failures += 1;
if (num_failures >= MAX_FAILURES) {
return false;
}
}
}
}
}
}
}
return (num_failures == 0);
}
int main(int argc, char* argv[]) {
if (test_set_sat()) {
return 0;
} else {
printf("There were test failures");
return 1;
}
}
|
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
const int maxn = 1005;
int n, m, G[maxn][maxn] = { 0 };
int len[maxn] = { 0 }, ans = 0;
int dfs(int v) {
if (!len[v]) {
for (int u = 1; u <= n; ++u)
if (G[u][v])
len[v] = max(len[v], dfs(u));
++len[v];
ans = max(ans, len[v]);
}
return len[v];
}
// #define DEBUG
int main() {
#ifdef DEBUG
freopen("d:\\.in", "r", stdin);
freopen("d:\\.out", "w", stdout);
#endif
cin >> n >> m;
vector<int> vec;
int cnt, num;
for (int i = 0; i < m; ++i) {
vec.clear();
cin >> cnt;
for (int j = 0; j < cnt; ++j) {
cin >> num;
vec.push_back(num);
}
for (int j = 1; j < vec.size(); ++j)
for (int u = vec[j - 1] + 1; u < vec[j]; ++u)
for (auto v : vec)
G[u][v] = 1;
}
for (int i = 1; i <= n; ++i)
if (!len[i])
dfs(i);
cout << ans;
return 0;
}
|
#ifndef PROCESS_AST_TREE
#define PROCESS_AST_TREE
#include "AstInterface.h"
#include "SinglyLinkedList.h"
class ProcessAstTreeBase : public ProcessAstNode
{
public:
typedef enum {BEFORE = 1, AT = 2, INSIDE = 4, BEFORE_AT = 3, INSIDE_AT = 6} TraverseLocation;
private:
struct TraverseState{
AstNodePtr scope; int state; int skip;
TraverseState( const AstNodePtr &_scope, int _skip,
TraverseLocation _state)
: scope(_scope), state(_state), skip(_skip) {}
TraverseState( const TraverseState& that)
: scope(that.scope), state(that.state), skip(that.skip) {}
void operator = ( const TraverseState& that)
{ scope = that.scope; skip = that.skip; state = that.state; }
};
SinglyLinkedListWrap<TraverseState> scopeStack;
AstNodePtr cur;
void SetLocation( TraverseLocation state);
TraverseState GetScope() const;
void PopScope();
void PushScope( const AstNodePtr& scope, int skip, TraverseLocation state);
bool Traverse( AstInterface &fa, const AstNodePtr& s,
AstInterface::TraversalVisitType t);
protected:
virtual bool ProcessTree( AstInterface &fa, const AstNodePtr& s,
AstInterface::TraversalVisitType t) = 0;
void Skip( const AstNodePtr& s) ;
void SkipUntil( const AstNodePtr& s);
void SkipOnly( const AstNodePtr& s);
public:
bool operator()( AstInterface &fa, const AstNodePtr& s);
// DQ (2/18/2008): Added to fix warning from GNU g++
virtual ~ProcessAstTreeBase() {}
};
class ProcessAstTree : public ProcessAstTreeBase
{
protected:
virtual bool ProcessLoop(AstInterface &fa, const AstNodePtr& s,
const AstNodePtr& body,
AstInterface::TraversalVisitType t) ;
virtual bool ProcessIf( AstInterface &fa, const AstNodePtr& s,
const AstNodePtr& cond, const AstNodePtr& truebody,
const AstNodePtr& falsebody,
AstInterface::TraversalVisitType t) ;
virtual bool ProcessFunctionDefinition( AstInterface &fa, const AstNodePtr& s,
const AstNodePtr& body,
AstInterface::TraversalVisitType t) ;
virtual bool ProcessBlock( AstInterface &fa, const AstNodePtr& s,
AstInterface::TraversalVisitType t);
virtual bool ProcessGoto( AstInterface &fa, const AstNodePtr& s,
const AstNodePtr& dest);
virtual bool ProcessDecls(AstInterface &fa, const AstNodePtr& s);
virtual bool ProcessStmt(AstInterface &fa, const AstNodePtr& s);
bool ProcessTree( AstInterface &_fa, const AstNodePtr& s,
AstInterface::TraversalVisitType t);
public:
bool operator()( AstInterface &fa, const AstNodePtr& s);
};
#endif
|
/*
* scene_drawings.h
*
* Created on: 11.10.2015 г.
* Author: martin
*/
#ifndef SCENE_DRAWINGS_H_
#define SCENE_DRAWINGS_H_
#include "PhysicalWorld.h"
extern PhysicalWorld world;
namespace opengl_scene {
void initGLScene();
void drawScene();
void resize (int w, int h);
void keyInput(unsigned char key, int x, int y);
void specialKeyInput(int key, int x, int y);
void timer_function(int value);
void idle_function();
void drawPrimitive(btCollisionObject *p);
void drawCoordinateSystem();
}
#endif /* SCENE_DRAWINGS_H_ */
|
#include <ui_client/tag/tag_list_handler.h>
#include <core/debug/Debug.h>
#include "ui_tag_list_handler.h"
#define IDX_OR_RET(tag) \
const std::size_t _idx = indexOf(tag);\
if (_idx == tags_.size()) {\
return;\
}\
const int idx = static_cast<int>(_idx);
std::size_t
TagListHandler::indexOf(const TagWidget* tag) const
{
for (std::size_t i = 0; i < tags_.size(); i++) {
if (tag == tags_[i]) {
return i;
}
}
return tags_.size();
}
TagListHandler::TagListHandler(QWidget *parent) :
QWidget(parent),
ui(new Ui::TagListHandler)
{
ui->setupUi(this);
}
TagListHandler::~TagListHandler()
{
delete ui;
}
void
TagListHandler::addTag(TagWidget* tag)
{
ASSERT_PTR(tag);
tag->unhighlight();
tags_.push_back(tag);
ui->horizontalLayout->insertWidget(ui->horizontalLayout->count() - 1, tag);
}
void
TagListHandler::popTag(TagWidget* tag)
{
IDX_OR_RET(tag);
unselect(tag);
tags_.erase(tags_.begin() + idx);
index_--;
if (index_ >= 0 && tags_.size() > 0) {
select(tags_[static_cast<std::size_t>(index_)]);
}
ui->horizontalLayout->removeWidget(tag);
select(byIndex(index_));
}
void
TagListHandler::setTags(const std::vector<TagWidget*>& tags)
{
clear();
for (TagWidget* t : tags) {
addTag(t);
}
}
bool
TagListHandler::hasTagWithText(const std::string& text) const
{
for (const TagWidget* tw : tags_) {
if (text == tw->tag()->text()) {
return true;
}
}
return false;
}
void
TagListHandler::popAllTags(std::vector<TagWidget*>& tags)
{
tags = tags_;
clear();
}
void
TagListHandler::select(TagWidget* tag)
{
IDX_OR_RET(tag);
tag->highlight();
index_ = idx;
}
void
TagListHandler::unselect(TagWidget* tag)
{
IDX_OR_RET(tag);
tag->unhighlight();
index_ = -1;
}
TagWidget*
TagListHandler::first(void)
{
return tags_.empty() ? nullptr : tags_.front();
}
TagWidget*
TagListHandler::last(void)
{
return tags_.empty() ? nullptr : tags_.back();
}
bool
TagListHandler::selectNext(void)
{
if (tags_.empty()) {
return false;
}
const int next_idx = int((index_ + 1) % tags_.size());
const bool is_different = next_idx != index_;
unselect(selected());
select(byIndex(next_idx));
return is_different;
}
bool
TagListHandler::selectPrev(void)
{
if (tags_.empty()) {
return false;
}
int prev_idx = index_ - 1;
if (prev_idx < 0) {
prev_idx = int(tags_.size()) - 1;
}
const bool is_different = prev_idx != index_;
unselect(selected());
select(byIndex(prev_idx));
return is_different;
}
bool
TagListHandler::hasSelection(void) const
{
return selected() != nullptr;
}
TagWidget*
TagListHandler::selected(void) const
{
return byIndex(index_);
}
void
TagListHandler::clear(void)
{
for (TagWidget* w : tags_) {
ui->horizontalLayout->removeWidget(w);
}
tags_.clear();
index_ = -1;
}
bool
TagListHandler::hasTags(void) const
{
return !tags_.empty();
}
|
#include<bits/stdc++.h>
using namespace std;
struct node
{
int data;
struct node* left=NULL;
struct node* right=NULL;
int count = 0;
};
typedef struct node Node;
Node* newnode(int key)
{
Node* temp = new Node();
temp->data = key;
return temp;
}
int insert(Node*& root,int data)
{
if(root==NULL)
{
root = newnode(data);
return 0;
}
if(data > root->data)//root is on right side and all its smaller value are smaller than me
{
return root->count + 1 + insert(root->right,data);
}
// root is on right side and it is greater than me so i cant do anything and i will increment root left count
// data <= root->data
root->count+=1;
return insert(root->left,data);
}
int main()
{
int n;
cin >> n;
Node* root = NULL;
int* arr = new int[n];
int* count = new int[n]();
for(int i=0;i<n;i++)
{
cin >> arr[i];
}
for(int i=n-1;i>=0;i--)
{
count[i]=insert(root,arr[i]);
}
for(int i=0;i<n;i++)
{
cout << count[i] << " ";
}
cout << endl;
return 0;
}
|
#include"gts_minESingleV1.h"
#include"gts_repetitiveStructure.h"
#include<QFileDialog>
#include"opencv2/opencv.hpp"
#include"sw_functions.h"
#include <opencv2/core/core.hpp>
#include "opencv2/legacy/legacy.hpp"
#include<cmath>
#include<QTextStream>
#include<QTransform>
#include<QMessageBox>
#include<QRgb>
#define PI 3.1415916
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
double gaussian(const Vec3 &sample, const Vec3 & center, const cv::Mat & cov)
{
cv::Mat var(1, 3, CV_64FC1);
for(int i=0; i< 3; i++)
{
var.at<double> (i) = (double)( sample[i] - center[i] );
}
cv::Mat vm = var *cov.inv()*var.t();
double tmp = vm.at<double> (0);
tmp = exp(-0.5* tmp);
//cout<<"det: "<< determinant(cov)<<endl;
double w = sqrt( determinant(cov));
return 1.0/w * tmp;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void EMTraining(const vector<Vec3> &samples, int nCluster,
vector<Vec3> ¢ers, vector<float> &weights, vector<cv::Mat> & covs)
{
centers.clear();
weights.clear();
covs.clear();
centers.resize(nCluster);
weights.resize(nCluster);
covs.resize(nCluster);
/*************************EM 算法 ********************************/
#if 0
cv::Mat samplesM(samples.size(), 3, CV_32FC1);
cv::Mat labelsM (samples.size(), 1, CV_32SC1);
for(int i=0; i< samples.size(); i++)
{
samplesM.at<float>(i, 0) = samples[i].x_;
samplesM.at<float>(i, 1) = samples[i].y_;
samplesM.at<float>(i, 2) = samples[i].z_;
}
CvEM em_model;
CvEMParams params;
params.covs = NULL;
params.means = NULL;
params.weights = NULL;
params.probs = NULL;
params.nclusters = nCluster;
params.cov_mat_type = CvEM::COV_MAT_GENERIC;
params.start_step = CvEM::START_AUTO_STEP;
params.term_crit.max_iter = 300;
params.term_crit.epsilon = 0.01;
params.term_crit.type = CV_TERMCRIT_ITER|CV_TERMCRIT_EPS;
em_model.train(samplesM, cv::Mat(), params,&labelsM);
// get means
cv::Mat meansM = em_model.getMeans();
// get weights
cv::Mat weightsM = em_model.getWeights();
// get covs
em_model.getCovs(covs);
for(int i=0; i< nCluster; i++)
{
weights[i] = weightsM.at<double>(i);
}
for(int i=0; i< meansM.rows; i++)
{
for(int j=0; j< meansM.cols; j++)
{
centers[i][j] = meansM.at<double>(i, j);
}
}
#endif
/*************************Kmeans 算法 ********************************/
cv::Mat samplesM(samples.size(), 3, CV_32FC1);
cv::Mat labelsM (samples.size(), 1, CV_32SC1);
for(int i=0; i< samples.size(); i++)
{
samplesM.at<float>(i, 0) = samples[i].x_;
samplesM.at<float>(i, 1) = samples[i].y_;
samplesM.at<float>(i, 2) = samples[i].z_;
}
cv::TermCriteria criteria;
criteria.maxCount = 300;
criteria.epsilon = 0.01;
cv::kmeans(samplesM, nCluster,labelsM , criteria, 100, 0);
// collect indexs for each cluster
vector<vector<int> > clusters;
clusters.resize(nCluster);
for(int i=0; i< labelsM.rows; i++)
{
int label = labelsM.at<int>(i);
clusters[label].push_back(i);
}
// compute centers
for(int i=0; i< clusters.size(); i++)
{
int num = clusters[i].size();
for(int j=0;j< num; j++)
{
int id = clusters[i][j];
centers[i] =centers[i] + samples[id]/(float)num;
}
}
// compute weights
for(int i=0; i< clusters.size(); i++)
{
weights[i] =(float) clusters[i].size()/(float)samples.size();
}
// compute covarx matrix
for(int i=0; i< clusters.size(); i++)
{
int num = clusters[i].size();
cv::Mat subSamples(num, 3, CV_64FC1);
for(int j=0; j< num; j++)
{
int id = clusters[i][j];
subSamples.at<double>(j, 0) = samples[id].x_ - centers[i].x_;
subSamples.at<double>(j, 1) = samples[id].y_ - centers[i].y_;
subSamples.at<double>(j, 2) = samples[id].z_ - centers[i].z_;
}
cv::Mat tmp = subSamples.t()* subSamples/(num-1);
//cout<<"subSamples: "<<subSamples<<endl;
tmp.copyTo(covs[i]);
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
double EMPredict(vector<Vec3> ¢ers, vector<float> &weights, vector<cv::Mat> & covs, Vec3 &sample)
{
double pro = 0.0;
for(int i=0; i< centers.size(); i++)
{
pro += weights[i]*gaussian(sample, centers[i], covs[i]);
}
return pro;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QPoint transformedPoint(const QPoint & pt, const cv::Mat & H)
{
cv::Mat ptM(3, 1, CV_64FC1);
ptM.at<double>(0) = (double)pt.x();
ptM.at<double>(1) = (double)pt.y();
ptM.at<double>(2) = 1.0;
cv::Mat dstPt = H*ptM;
QPoint result;
result.setX( dstPt.at<double>(0)/dstPt.at<double>(2));
result.setY( dstPt.at<double>(1)/dstPt.at<double>(2));
ptM.release();
dstPt.release();
return result;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool ValidPoint(const QPoint &pt, int height, int width)
{
return ( pt.y()>=0&& pt.y()< height && pt.x()>=0&& pt.x()<width);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
GTSDetectionDialog::GTSDetectionDialog(QWidget *parent)
{
setupUi(this);
m_scale_ = 1.00;
m_with_rectification_ = false;
label_input->setBackgroundColor(Qt::gray);
widget_rectified->setBackgroundColor(Qt::gray);
label_output->setBackgroundColor(Qt::gray);
label_initialResults->setBackgroundColor(Qt::gray);
// signals and slots
connect(pushButton_loadImage, SIGNAL(clicked()), this, SLOT(loadImage()));
connect(pushButton_background, SIGNAL(clicked()), widget_rectified, SLOT(drawStrokeOnBackground()));
connect(pushButton_foreground, SIGNAL(clicked()), widget_rectified,SLOT(drawRectOnForeground()));
connect(pushButton_detect, SIGNAL(clicked()), this, SLOT(detect()));
// connect(verticalSlider_imgScale, SIGNAL(valueChanged(int)), SLOT(imageScale(int)));
connect(pushButton_rectification, SIGNAL(clicked()), this, SLOT(rectification()));
connect(pushButton_quad, SIGNAL(clicked()), widget_rectified, SLOT(drawQuad()));
connect(this, SIGNAL(dispFinalResultSignal()), this, SLOT(dispFinalResult()));
connect(this, SIGNAL(dispInitialResultSignal()), this, SLOT(dispInitialResult()));
connect(pushButton_abandon, SIGNAL(clicked()), this, SLOT(abandonResults()));
connect(pushButton_accept, SIGNAL(clicked()), this, SLOT(acceptResults()));
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QVector<QVector<double> > GTSDetectionDialog::getInitialLabels()
{
#if 1
// EM clusters
vector<Vec3> bg_samples;
vector<Vec3> gts_samples;
QImage img = m_rected_image_.copy(0, 0, m_rected_image_.width(), m_rected_image_.height());
img.convertToFormat(QImage::Format_RGB32);
/*******************get features(RGB) from image ***********/
uchar *imgBits = img.bits();
int height = img.height();
int width = img.width();
// back ground samples
foreach(QPoint pt, m_bg_samples)
{
int i = pt.y();
int j = pt.x();
Vec3 sample;
int line_num = i* width *4;
sample[0] = (float)imgBits[line_num + j*4 + 0];
sample[1] = (float)imgBits[line_num + j*4 + 1];
sample[2] = (float)imgBits[line_num + j*4 + 2];
if(sample.x_ ==0&& sample.y_ ==0&& sample.z_ ==0)continue;
/************还需要加上三维的一些信息,来确定建筑的范围 ********************************/
/********************************************************************************/
bg_samples.push_back(sample);
}
// gts samples
int start_h = m_GTS_pos_[0].topLeft().y();
int end_h = m_GTS_pos_[0].bottomRight().y();
int start_w = m_GTS_pos_[0].topLeft().x();
int end_w = m_GTS_pos_[0].bottomRight().x();
for(int i=start_h; i<=end_h; i++)
{
for(int j=start_w; j<=end_w; j++ )
{
int line_num = i* width *4;
Vec3 sample;
sample[0] = (float)imgBits[line_num + j*4 + 0];
sample[1] = (float)imgBits[line_num + j*4 + 1];
sample[2] = (float)imgBits[line_num + j*4 + 2];
gts_samples.push_back(sample);
}
}
/**********************EM clusters******************************/
int nCluster = 3;
if(bg_samples.size()< nCluster&& gts_samples.size()< nCluster)
{
QMessageBox::warning(this, tr("Warning"), tr("Samples are not Enough!"));
m_bg_samples.clear();
m_GTS_pos_.clear();
}
else{
vector<Vec3> bg_centers;
vector<float> bg_weights;
vector<cv::Mat> bg_covs;
EMTraining(bg_samples, nCluster, bg_centers, bg_weights, bg_covs);
// for(int i=0; i< bg_covs.size(); i++)
// {
// cout<<"center: "<< bg_centers[i].x_<<", "<<bg_centers[i].y_<<", "<< bg_centers[i].z_ <<endl;
// cout<<"cov matrix: "<<bg_covs[i]<<endl;
// cout<<"inv: "<< bg_covs[i].inv()<<endl;
// cout<<"det: "<<determinant(bg_covs[i])<<endl;
// }
vector<Vec3> gts_centers;
vector<float> gts_weights;
vector<cv::Mat> gts_covs;
EMTraining(gts_samples, nCluster, gts_centers, gts_weights, gts_covs);
// for(int i=0; i< bg_covs.size(); i++)
// {
// cout<<"center: "<< gts_centers[i].x_<<", "<<gts_centers[i].y_<<", "<< gts_centers[i].z_ <<endl;
// cout<<"cov matrix: "<<gts_covs[i]<<endl;
// cout<<"inv: "<<gts_covs[i].inv()<<endl;
// cout<<"det: "<<determinant(gts_covs[i])<<endl;
// }
vector<vector<double> > bg_probs;
vector<vector<double> > gts_probs;
bg_probs.resize(height);
gts_probs.resize(height);
for(int i=0; i<height; i++)
{
int line_num_img = i* width *4;
for(int j=0; j< width; j++)
{
// 不在 mask 范围之内的标定为背景
if(!m_rected_mask_.containsPoint(QPoint(j, i), Qt::OddEvenFill))
{
bg_probs[i].push_back(0.01);
gts_probs[i].push_back(0.99);
continue;
}
Vec3 sample;
sample[0] = (float)imgBits[line_num_img + j*4 + 0];
sample[1] = (float)imgBits[line_num_img + j*4 + 1];
sample[2] = (float)imgBits[line_num_img + j*4 + 2];
if(sample.x_ ==0&& sample.y_ ==0&& sample.z_ ==0)
{
bg_probs[i].push_back(-1);
gts_probs[i].push_back(-1);
}
else{
double gts_prob = EMPredict(gts_centers, gts_weights, gts_covs, sample);
double bg_prob = EMPredict(bg_centers, bg_weights, bg_covs, sample);
// cout<<"gts_prob: "<< gts_prob<<", "<< "bg_prob: "<< bg_prob<<endl;
bg_probs[i].push_back(-log(bg_prob));
gts_probs[i].push_back(-log(gts_prob));
}
}
}
// 1: for gts
// 0: for back ground
QVector<QVector<double> > initial_labels;
initial_labels.resize(height);
for(int i=0; i< bg_probs.size(); i++)
{
for(int j=0; j< bg_probs[i].size(); j++)
{
if(bg_probs[i][j]==-1&>s_probs[i][j]==-1)
{
initial_labels[i].append(-1);
}
else{
double label = bg_probs[i][j]> gts_probs[i][j]? 1: 0;
initial_labels[i].append(label);
}
}
}
return initial_labels;
#endif
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
double GTSDetectionDialog::computeEnergy(QVector<QVector<double> > &P,
QVector<QVector<double> > &R, QVector<QVector<double> > &Q)
{
QVector<QVector< double> > labels = getLabels(P, R, Q);
double error = 0;
for(int i=0; i< labels.size(); i++)
{
for(int j=0; j< labels[i].size(); j++)
{
double tmp = abs( m_initial_labels_[i][j] - labels[i][j]);
if( tmp !=0)
{
error += tmp;
}
}
}
return error;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QVector<QVector<double> > GTSDetectionDialog::optimizeP(QVector<QVector<double> > &R,QVector<QVector<double> > &Q)
{
// trans of Q
QVector<QVector<double> > QTM;
QTM.resize(m_img_w_);
for(int i=0; i< Q.size(); i++)
{
for(int j=0; j< Q[i].size(); j++)
{
QTM[j].append(Q[i][j]);
}
}
// get the cols that more than 0ne values
QVector<int> col_ids;
for(int i=0; i< QTM.size(); i++)
{
if(QTM[i].count(1)> 0)
{
col_ids.append(i);
}
}
//Y
double* Yptr = new double[m_img_h_ * (int)col_ids.size()];
for(int i=0;i < m_initial_labels_.size(); i++)
{
for(int j=0; j<col_ids.size(); j++ )
{
int id = col_ids[j];
Yptr[j* m_img_h_ +i] = m_initial_labels_[i][id];
}
}
// X
double *Xptr = new double[m_rect_h_ * (int)col_ids.size()];
cv::Mat RM(m_rect_h_, m_rect_w_, CV_64FC1);
for(int i=0; i< R.size(); i++)
{
for(int j=0; j< R[i].size(); j++)
{
RM.at<double>(i,j) = R[i][j];
}
}
cv::Mat subQM(m_rect_w_, (int) col_ids.size(), CV_64FC1);
for(int i=0; i< Q.size(); i++)
{
for(int j=0; j< col_ids.size(); j++)
{
int id = col_ids[j];
subQM.at<double>(i, j) = Q[i][id];
}
}
cv::Mat XM = RM* subQM;
for(int i=0; i< XM.rows; i++)
{
for(int j=0; j< XM.cols; j++)
{
Xptr[j* XM.rows +i] = XM.at<double>(i, j);
}
}
double * YTptr = new double [ (int)col_ids.size() * m_img_h_];
for(int i=0; i<col_ids.size(); i++ )
{
for(int j=0; j< m_img_h_; j++)
{
YTptr[ j* col_ids.size() + i] = Yptr[ i * m_img_h_ + j];
}
}
double * XTptr = new double [(int)col_ids.size() * m_rect_h_];
for(int i=0; i<col_ids.size(); i++ )
{
for(int j=0; j< m_rect_h_; j++)
{
XTptr[j* col_ids.size() + i] = Xptr[ i* m_rect_h_ +j];
}
}
//trans of P
double* PTptr = new double[m_rect_h_ * m_img_h_];
for(int i=0; i< m_rect_h_; i++)
{
for(int j=0; j< m_img_h_; j++)
{
PTptr[j* m_rect_h_ + i] = 0;
}
}
int H = (int)col_ids.size();
int W = m_img_h_;
int N = m_rect_h_;
int block = 0;
int r1 = m_GTS_pos_[0].topLeft().y();
int r2 = m_GTS_pos_[0].bottomRight().y();
// optimimization
MinESingle(PTptr, YTptr , Xptr, H, W, N, r1,r2,block);
QVector<QVector<double> > P;
P.resize(m_img_h_);
for(int i=0; i< P.size(); i++)
{
for(int j=0; j< m_rect_h_; j++)
{
P[i].append( PTptr[i* m_rect_h_ +j]);
}
}
RM.release();
subQM.release();
XM.release();
delete [] Yptr;
delete [] PTptr;
delete [] Xptr;
delete [] XTptr;
delete [] YTptr;
return P;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
QVector<QVector<double> > GTSDetectionDialog::optimizeQ(QVector<QVector<double> > &P, QVector<QVector<double> > &R)
{
// get the rows that has value 1
QVector<int> row_ids;
for(int i=0; i< P.size(); i++)
{
if(P[i].count(1)> 0)
{
row_ids.append(i);
}
}
//coressponding labels // col priority
double * Yptr = new double[ (int)row_ids.size() * m_img_w_];
for(int i=0; i< row_ids.size(); i++)
{
int id = row_ids[i];
for(int j=0; j< m_initial_labels_[id].size(); j++)
{
Yptr[j * row_ids.size() + i ] = m_initial_labels_[id][j];
}
}
// P(ids, :)*R
double *Xptr = new double[(int)row_ids.size() * m_rect_w_ ];
cv::Mat subPM(row_ids.size(), m_rect_h_, CV_64FC1);
for(int i=0; i< row_ids.size(); i++)
{
int id = row_ids[i];
for(int j=0; j< P[id].size(); j++)
{
subPM.at<double>(i,j) = P[id][j];
}
}
cv::Mat RM(m_rect_h_, m_rect_w_, CV_64FC1);
for(int i=0; i< R.size(); i++)
{
for(int j=0; j< R[i].size(); j++)
{
RM.at<double>(i,j) = R[i][j];
}
}
cv::Mat XM = subPM * RM;
for(int i=0; i< XM.rows; i++)
{
for(int j=0; j< XM.cols; j++)
{
Xptr[j* XM.rows + i] = XM.at<double> (i, j);
}
}
// Q
double *Qptr = new double [m_rect_w_ * m_img_w_];
for(int i=0; i< m_rect_w_; i++)
{
for(int j=0; j< m_img_w_; j++)
{
Qptr[j * m_rect_w_ + i] = 0;
}
}
int H = (int) row_ids.size();
int W = m_img_w_;
int N = m_rect_w_;
int block = 0;
int c1 = m_GTS_pos_[0].topLeft().x();
int c2 = m_GTS_pos_[0].bottomRight().x();
// optimimization
MinESingle(Qptr, Yptr , Xptr, H, W, N, c1,c2,block);
QVector<QVector<double> > Q;
Q.resize(m_rect_w_);
for(int i=0; i< m_rect_w_; i++)
{
for(int j=0; j< m_img_w_; j++)
{
Q[i].append(Qptr[j * m_rect_w_+ i]);
}
}
subPM.release();
RM.release();
XM.release();
delete []Qptr;
delete []Yptr;
delete []Xptr;
return Q;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// get labels given P,R and Q
QVector<QVector<double> > GTSDetectionDialog::getLabels(QVector<QVector<double> > &P,
QVector<QVector<double> > &R,QVector<QVector<double> > &Q)
{
QVector<QVector< double > > labels;
cv::Mat PM(m_img_h_, m_rect_h_, CV_32FC1);
cv::Mat RM((int)m_rect_h_, (int)m_rect_w_, CV_32FC1);
RM.setTo(1.0);
cv::Mat QM(m_rect_w_, m_img_w_, CV_32FC1);
// P
for(int i=0; i< P.size(); i++)
{
for(int j=0; j< P[i].size(); j++)
{
PM.at<float>(i, j) = (float)P[i][j];
}
}
// R
for(int i=0; i< R.size(); i++)
{
for(int j=0; j< R[i].size(); j++)
{
RM.at<float>(i, j) = (float)R[i][j];
}
}
//Q
for(int i=0; i<Q.size(); i++)
{
for(int j=0; j< Q[i].size(); j++)
{
QM.at<float>(i, j) = (float)Q[i][j];
}
}
// L = P*R*Q
cv::Mat L = PM * RM * QM;
labels.resize(L.rows);
for(int i=0; i< L.rows; i++)
{
for(int j=0; j< L.cols; j++)
{
labels[i].append( L.at<float> (i, j));// in case of floatting
}
}
PM.release();
RM.release();
QM.release();
L.release();
return labels;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::optimization(QVector<QVector<double> > &P,
QVector<QVector<double> > &R,QVector<QVector<double> > &Q)
{
int maxIter = 50;
double epsion = 0.1;
int iter =0;
m_E_ = computeEnergy(P, R, Q);
cout<<"initial E: "<< m_E_<<endl;
while(iter < maxIter)
{
QVector<QVector<double> > Q_tmp = optimizeQ(P, R);
Q.swap(Q_tmp);
QVector<QVector<double> > P_tmp = optimizeP(R, Q);
P.swap(P_tmp);
double pre_E = m_E_;
m_E_ = computeEnergy(P, R, Q);
cout<< iter<<" th iteration: "<< m_E_<<endl;
if(abs(m_E_ - pre_E)< epsion) break;
iter++;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::wheelEvent(QWheelEvent *event)
{
int numDegrees = event->delta() / 8;
int numSteps = numDegrees / 15;
m_scale_ += (float)numSteps* 0.05;
imageScale();
event->accept();
update();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::loadImage()
{
QString file_name = QFileDialog::getOpenFileName(this, tr("Open Image File"),".",
tr("Image Files(*.png *.PNG *JPEG *.jpg)") );
if(!file_name.isEmpty())
{
m_src_image_.load(file_name);
}
m_image_ = m_src_image_.scaled(QSize(m_scale_* m_src_image_.width(),
m_scale_* m_src_image_.height()) );
m_img_h_ = m_image_.height();
m_img_w_ = m_image_.width();
label_input->setPixmap(QPixmap::fromImage(m_image_));
// label_input->setFixedHeight(m_image_.height());
// label_input->setFixedWidth(m_image_.width());
widget_rectified->setImage(m_image_);
widget_rectified->setDrawImage(true);
// 调整显示的区域的大小
// widget_rectified->setFixedHeight(m_image_.height());
// widget_rectified->setFixedWidth(m_image_.width());
// label_initialResults->setFixedHeight(m_image_.height());
// label_initialResults->setFixedWidth(m_image_.width());
// label_output->setFixedHeight(m_image_.height());
// label_output->setFixedWidth(m_image_.width());
update();
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::rectification()
{
// used for rectification
QVector<QPoint> quad = widget_rectified->getQuad();
if(quad.size() ==0)
{
QMessageBox::warning(this, tr("Warning"), tr("Draw a Quadrilateral First!"));
}
else{
// src points
vector<cv::Point2f> src_pts;
src_pts.resize(quad.size());
for(int i=0; i< quad.size(); i++)
{
src_pts[i].x = (float)quad[i].x();
src_pts[i].y = (float)quad[i].y();
}
// dst points
float min_x = 10000; float min_y = 10000;
float max_x = -10000; float max_y = -10000;
for(int i=0; i< src_pts.size(); i++)
{
if(min_x> src_pts[i].x) min_x = src_pts[i].x;
if(min_y> src_pts[i].y) min_y = src_pts[i].y;
if(max_x< src_pts[i].x) max_x = src_pts[i].x;
if(max_y< src_pts[i].y) max_y = src_pts[i].y;
}
cv::Point2f dst0(min_x, min_y); cv::Point2f dst1(max_x, min_y);
cv::Point2f dst2(max_x, max_y); cv::Point2f dst3(min_x, max_y);
vector<cv::Point2f> dst_pts;
dst_pts.push_back(dst0); dst_pts.push_back(dst1);
dst_pts.push_back(dst2); dst_pts.push_back(dst3);
#if 0
for(int i=0; i< src_pts.size(); i++)
{
cout<<"src: ( "<<src_pts[i].x<<", "<< src_pts[i].y<<" )------>";
cout<<"dst: ( "<<dst_pts[i].x<<", "<< dst_pts[i].y<<" ) "<<endl;
}
#endif
m_H_ = findHomography(src_pts, dst_pts, cv::RANSAC, 2);
#if 0
for(int i=0; i< src_pts.size(); i++)
{
cv::Mat pt(3, 1, CV_64FC1);
pt.at<double>(0) = src_pts[i].x;
pt.at<double>(1) = src_pts[i].y;
pt.at<double>(2) = 1.0;
cv::Mat dstPt = H*pt;
cout<<"src: "<< pt<<"----> dst: "<< dstPt/dstPt.at<double>(2)<<endl;
}
cout<<"Homography: "<< H<<endl;
cv::Mat HT = H.t();
cout<<"inverse of Homography: "<< HT<<endl;
QTransform transform(HT.at<double>(0,0),HT.at<double>(0,1),HT.at<double>(0,2),
HT.at<double>(1,0),HT.at<double>(1,1),HT.at<double>(1,2),
0,0,HT.at<double>(2,2));
QImage img = m_image_.transformed(transform);
#endif
m_image_.convertToFormat(QImage::Format_RGB32);
int height = m_image_.height();
int width = m_image_.width();
m_rected_image_ = QImage(QSize(width, height), QImage::Format_RGB32);
// a mapping from new image to old images
for(int i=0; i< height; i++)
{
int lineNum = i* width *4;
for(int j=0; j< width; j++)
{
QPoint pt = transformedPoint(QPoint(j, i), m_H_.inv());
int ii = pt.y();
int jj = pt.x();
if(ValidPoint(pt, height, width))
{
m_rected_image_.setPixel(j, i, m_image_.pixel(jj, ii));
}
else{
m_rected_image_.setPixel(j, i, qRgb(0, 0, 0));
}
}
}
// same operations for mask images
m_rected_mask_.clear();
for(int i=0; i<m_mask_.size(); i++)
{
QPoint pt_r = transformedPoint(m_mask_[i], m_H_);
m_rected_mask_<<pt_r;
}
widget_rectified->setImage(m_rected_image_);
widget_rectified->setRectedMask(m_rected_mask_);
widget_rectified->setDrawImage(true);
widget_rectified->setDrawRectedMask(true);
m_with_rectification_ = true;
update();
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::detect()
{
clear();
// 图像无需矫正的情况下
if(m_with_rectification_ == false)
{
m_rected_image_ = m_image_.copy(0,0, m_image_.width(), m_image_.height());
m_rected_mask_.clear();
for(int i=0; i< m_mask_.size(); i++)
{
m_rected_mask_<<m_mask_[i];
}
}
//m_bg_samples.clear();
m_bg_samples = widget_rectified->getBGSamples();
// ************************保证样本再Mask 范围内 *************************//
QVector<QPoint> new_samples;
foreach(QPoint pt, m_bg_samples)
{
if(m_rected_mask_.containsPoint(pt, Qt::OddEvenFill) )
{
new_samples.append(pt);
}
}
m_bg_samples.swap(new_samples);
#if 0 //用于调试
QString filename("bg_coords.txt");
QFile file( filename);
if(!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
cout<<"error to read label File!"<<endl;
}
QTextStream in(&file);
int line_num = 0;
while(!in.atEnd())
{
QString line = in.readLine();
QStringList fields = line.split(" ");
QPoint pt;
pt.setY( fields.takeFirst().toInt() -1 );
pt.setX( fields.takeFirst().toInt() -1 );
m_bg_samples.append(pt);
line_num ++;
}
#endif
// 获取重复结构的样本
// m_GTS_pos_.clear();
m_GTS_pos_= widget_rectified->getGTSPos();
#if 0 // 用于调试
QRect rect;
rect.setBottomRight(QPoint(114, 148));
rect.setTopLeft(QPoint(76, 115));
m_GTS_pos_.push_back(rect);
#endif
m_rect_h_ = m_GTS_pos_[0].height();
m_rect_w_ = m_GTS_pos_[0].width();
//////////////////initial labels////////////////////////////
m_initial_labels_.clear();
m_initial_labels_= getInitialLabels();
emit dispInitialResultSignal();
/*****************intialization************************/
QVector<QVector<double> > P;
QVector<QVector<double> > Q;
QVector<QVector<double> > R;
R.resize(m_rect_h_);
for(int i=0; i< R.size(); i++)
{
for(int j=0; j< m_rect_w_; j++)
{
R[i].push_back(1);
}
}
// gts samples
int start_h = m_GTS_pos_[0].topLeft().y();
int end_h = m_GTS_pos_[0].bottomRight().y();
P.resize(m_img_h_);
for(int i=0; i< P.size(); i++)
{
P[i].resize(m_rect_h_);
for(int j=0; j< m_rect_h_; j++)
{
if(i<start_h)
{
P[i][j] = 0;
}
// identical matrix
else if(i<= end_h)
{
if(j== i - start_h) P[i][j]=1;
else{ P[i][j] = 0;}
}
else{
P[i][j]=0;
}
}
}
int start_w = m_GTS_pos_[0].topLeft().x();
int end_w = m_GTS_pos_[0].bottomRight().x();
Q.resize(m_rect_w_);
for(int i=0; i<Q.size() ; i++)
{
Q[i].resize(m_img_w_);
for(int j=0; j< start_w; j++)
{
Q[i][j] = 0;
}
for(int j= start_w; j<= end_w; j++)
{
if(i == j - start_w)
{
Q[i][j] = 1;
}
else
{
Q[i][j] = 0;
}
}
for(int j= end_w +1; j< m_img_w_; j++)
{
Q[i][j] =0;
}
}
/**************** optimization ***************************/
optimization(P, R, Q);
QVector<int> row_indices;
QVector<int> col_indices;
for(int i= 0; i< P.size(); i++)
{
if(P[i][0] == 1)
{
row_indices.append(i);
}
}
for(int j=0; j< Q[0].size(); j++)
{
if(Q[0][j]==1)
{
col_indices.append(j);
}
}
for(int i=0; i< row_indices.size(); i++)
{
for(int j=0; j< col_indices.size(); j++)
{
QPoint topLeft(col_indices[j], row_indices[i]);
QPoint topRight(col_indices[j] + m_rect_w_ -1, row_indices[i]);
QPoint bottomRight(col_indices[j] + m_rect_w_ -1,
row_indices[i] + m_rect_h_ -1);
QPoint bottomLeft(col_indices[j], row_indices[i] + m_rect_h_ -1);
QPolygon quad;
quad<<topLeft;
quad<<topRight;
quad<<bottomRight;
quad<<bottomLeft;
m_detected_gts_rected_.append(quad);
if(m_with_rectification_ == true)
{
//转化都原来的空间
QPolygon quad_src;
quad_src<< transformedPoint(topLeft, m_H_.inv())/m_scale_;
quad_src<< transformedPoint(topRight, m_H_.inv())/m_scale_;
quad_src<< transformedPoint(bottomRight, m_H_.inv())/m_scale_;
quad_src<< transformedPoint(bottomLeft, m_H_.inv())/m_scale_;
m_detected_gts_.append(quad_src);
}
if( m_with_rectification_ == false)
{
QPolygon quad_src;
quad_src<< topLeft/m_scale_;
quad_src<< topRight/m_scale_;
quad_src<< bottomRight/m_scale_;
quad_src<< bottomLeft/m_scale_;
m_detected_gts_.append(quad_src);
}
}
}
//cout<<"rect num: "<< m_detected_gts_.size()<<endl;
//foreach(QRect rect, m_detected_gts_)
//{
// cout<<"top: "<<rect.topLeft().x()<<", "<< rect.topLeft().y()<<endl;
// cout<<"bottom: "<< rect.bottomRight().x()<<", "<< rect.bottomRight().y()<<endl;
//}
/**************** get final labels ***********************/
m_final_labels_ = getLabels(P, R, Q);
emit dispFinalResultSignal();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::dispInitialResult()
{
QImage img = m_rected_image_.copy(0, 0, m_img_w_, m_img_h_);
uchar *imgBits = img.bits();
QColor gts_color = widget_rectified->getFGColor();
QColor bg_color = widget_rectified->getBGColor();
for(int i=0; i< img.height(); i++)
{
int lineNum = i* img.width() *4;
for(int j=0; j< img.width(); j++)
{
if((int)m_initial_labels_[i][j] == 1)
{
imgBits[lineNum + j*4 + 0] = (uchar)(gts_color.red());
imgBits[lineNum + j*4 + 1] = (uchar)(gts_color.green());
imgBits[lineNum + j*4 + 2] = (uchar)(gts_color.blue());
}
else if((int)m_initial_labels_[i][j] == 0)
{
imgBits[lineNum + j*4 + 0] = (uchar)(bg_color.red());
imgBits[lineNum + j*4 + 1] = (uchar)(bg_color.green());
imgBits[lineNum + j*4 + 2] = (uchar)(bg_color.blue());
}
}
}
label_initialResults->setPixmap(QPixmap::fromImage(img));
img.save("initial_result.jpg");
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::dispFinalResult()
{
QImage img = m_rected_image_.copy(0, 0, m_img_w_, m_img_h_);
uchar *imgBits = img.bits();
QColor gts_color = widget_rectified->getFGColor();
QColor bg_color = widget_rectified->getBGColor();
float alpha = 0.75;
foreach(QPolygon quad, m_detected_gts_rected_)
{
if(quad.size()< 4) continue;
int start_h = quad[0].y();
int start_w = quad[0].x();
int end_h = quad[2].y();
int end_w = quad[2].x();
for(int i=start_h; i<= end_h; i++)
{
int lineNum = i* img.width() *4;
for(int j= start_w; j<= end_w; j++)
{
imgBits[lineNum + j*4 + 0] = (uchar)( alpha* (float)imgBits[lineNum + j*4 + 0]
+ (1-alpha)* (float)gts_color.red());
imgBits[lineNum + j*4 + 1] = (uchar)( alpha* (float)imgBits[lineNum + j*4 + 1]
+ (1-alpha)* (float)gts_color.green());
imgBits[lineNum + j*4 + 2] = (uchar)( alpha* (float)imgBits[lineNum + j*4 + 2]
+ (1-alpha)* (float)gts_color.blue());
}
}
}
label_output->setPixmap(QPixmap::fromImage(img));
update();
img.save("final_result.jpg");
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void GTSDetectionDialog::imageScale()
{
m_image_ = m_src_image_.scaled( (QSize(m_scale_* m_src_image_.width(),
m_scale_* m_src_image_.height()) ));
m_img_h_ = m_image_.height();
m_img_w_ = m_image_.width();
label_input->setPixmap(QPixmap::fromImage(m_image_));
// label_input->setFixedHeight(m_image_.height());
// label_input->setFixedWidth(m_image_.width());
QPolygon tmp;
for(int i=0; i< m_src_mask_.size(); i++)
{
tmp<<m_scale_*m_src_mask_[i];
}
m_mask_.swap(tmp);
widget_rectified->setMask(m_mask_);
widget_rectified->setImage(m_image_);
widget_rectified->setDrawImage(true);
// 调整显示的区域的大小
// widget_rectified->setFixedHeight(m_image_.height());
// widget_rectified->setFixedWidth(m_image_.width());
// label_initialResults->setFixedHeight(m_image_.height());
// label_initialResults->setFixedWidth(m_image_.width());
// label_output->setFixedHeight(m_image_.height());
// label_output->setFixedWidth(m_image_.width());
update();
}
|
#include "Node.h"
#include "Glob.h"
#include <string>
#include <iostream>
using std::endl;
using std::cout;
using std::string;
int main() {
Node<string>* ns = new Node<string>(string("hello world!"));
Node<int>* ni = new Node<int>(5);
Node<double>* nd = new Node<double>(3.1459);
std::cout << ns->getValue()<< std::endl;
std::cout << ni->getValue()<< std::endl;
std::cout << nd->getValue()<< std::endl;
Glob<int>* g = new Glob<int>(*ni, 0, -8);
cout << "Glob pointer has value " << ((g->getNodePointer())->getValue()) << endl;
cout << "Has level of " << g->getLevel() << endl;
cout << "Has spread of " << g->getSpread() << endl;
return 0;
}
|
#include "command.h"
CommandOperator *CommandOperator::instance = nullptr;
bool CommandOperator::checkForExistence(Object *current)
{
for (std::size_t i = 0; i < objects.size(); i++)
{
if (*current == *objects[i])
{
return true;
}
}
return false;
}
void CommandOperator::setComand(std::string &input)
{
std::string param;
command.clear();
params.clear();
std::size_t endPos;
std::size_t startPos;
//get command
endPos = input.find(' ');
command = input.substr(0, endPos);
//make command in upper case
toUpper(command);
//get parameters
while (endPos < input.length())
{
while (input[endPos + 1] == ' ')
{
endPos++;
}
startPos = endPos + 1;
if (input[startPos] == '"')
{
startPos += 1;
endPos = input.find('"', startPos);
param = input.substr(startPos, endPos - startPos);
endPos++;
}
else
{
endPos = input.find(' ', startPos);
param = input.substr(startPos, endPos - startPos);
}
params.push_back(param);
}
}
Object *CommandOperator::getObject(std::string &obj_name)
{
for (std::size_t i = 0; i < objects.size(); i++)
{
if (objects[i]->getName() == obj_name)
{
return objects[i];
}
}
return nullptr;
}
bool validateType(const std::type_info &object, const std::type_info &type)
{
return (object.hash_code() == type.hash_code());
}
CommandOperator *CommandOperator::getInstance()
{
if (instance == nullptr)
{
instance = new CommandOperator();
}
return instance;
}
void toUpper(std::string &input) //make whole string to upper
{
for (std::size_t i = 0; i < input.length(); i++)
{
input[i] = std::toupper(input[i]);
}
}
//Create point A 2 3
//create line through A through B
//create line paralel a through A
void CommandOperator::initiateCommand(std::string &fullCommand)
{
setComand(fullCommand);
if (command == "CREATE")
{
Object *cur = nullptr;
toUpper(params[0]);
if (params[0] == "POINT")
{
if (params.size() == 1)
{
cur = new Point;
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else if (params.size() == 4)
{
//TODO: error handling for stoi
cur = new Point(params[1], std::stof(params[2]), std::stof(params[3]));
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else
{
throw std::invalid_argument("Invalid arguments for POINT");
}
}
else if (params[0] == "LINE")
{
if (params.size() == 6)
{
Object *paralel = nullptr;
Object *point1 = nullptr;
Object *point2 = nullptr;
bool paralel_used = false;
for (int i = 2; i < 6; i += 2)
{
toUpper(params[i]);
if (params[i] == "PARALEL" && !paralel_used)
{
paralel_used = true;
paralel = getObject(params[i + 1]);
}
else if (params[i] == "THROUGH")
{
if (point1)
{
point2 = getObject(params[i + 1]);
}
else
{
point1 = getObject(params[i + 1]);
}
}
else
{
throw std::invalid_argument("Invalid arguments for LINE");
}
}
if (!paralel)
{
if (typeid(*point1) != typeid(Point) ||
typeid(*point2) != typeid(Point))
{
throw std::invalid_argument("Invalid arguments for LINE");
}
Point *p1 = dynamic_cast<Point *>(point1);
Point *p2 = dynamic_cast<Point *>(point2);
cur = new Line(params[1], *p1, *p2);
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else if (point1)
{
//error
Point *p1 = dynamic_cast<Point *>(point1);
Line *l = dynamic_cast<Line *>(paralel);
cur = new Line(params[1], *p1, *l);
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else if (point2)
{
//error
Point *p2 = dynamic_cast<Point *>(point2);
Line *l = dynamic_cast<Line *>(paralel);
cur = new Line(params[1], *p2, *l);
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else
{
throw std::invalid_argument("Invalid arguments for LINE");
}
}
else
{
throw std::invalid_argument("Invalid arguments for LINE");
}
}
else if (params[0] == "VECTOR")
{
if (params.size() == 4)
{
//error for stof
cur = new Vector(params[1], std::stof(params[2]), std::stof(params[3]));
throw std::invalid_argument("Too many arguments for VECTOR");
}
else if (params.size() == 3)
{
Object *point;
Point *points[2];
std::size_t cnt = 0;
for (std::size_t i = 1; i < params.size(); i++)
{
point = getObject(params[i]);
if (!point || typeid(*point) != typeid(Point))
{
throw std::invalid_argument("All arguments for VECTOR must be points");
}
points[cnt] = dynamic_cast<Point *>(point);
cnt++;
}
cur = new Vector(*points[0], *points[1]);
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
}
else if (params[0] == "TRIANGLE")
{
if (params.size() != 4)
{
throw std::invalid_argument("Too many arguments for TRIANGLE");
}
Object *point = nullptr;
Point *points[3];
std::size_t cnt = 0;
for (std::size_t i = 1; i < params.size(); i++)
{
point = getObject(params[i]);
if (!point || typeid(*point) != typeid(Point))
{
throw std::invalid_argument("All arguments for TRIANGLE must be points");
}
points[cnt] = dynamic_cast<Point *>(point);
cnt++;
}
cur = new Triangle(points[0], points[1], points[2]);
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else if (params[0] == "POLYGON")
{
std::vector<Point *> points;
Object *point;
for (std::size_t i = 1; i < params.size(); i++)
{
point = getObject(params[i]);
if (!point || typeid(*point) != typeid(Point))
{
throw std::invalid_argument("All arguments for POLYGON must be points");
}
points.push_back(dynamic_cast<Point *>(point));
}
cur = new Polygon(points);
if (checkForExistence(cur))
{
throw std::invalid_argument("Object already created!");
}
objects.push_back(cur);
}
else
{
throw std::invalid_argument("Unknown object: " + params[0]);
}
}
else if (command == "GET")
{
toUpper(params[0]);
if (params[0] == "INTERSECTION")
{
if (params.size() == 3)
{
Object *line1 = getObject(params[1]);
Object *line2 = getObject(params[2]);
if (typeid(*line1).hash_code() != typeid(Line).hash_code() ||
typeid(*line2).hash_code() != typeid(Line).hash_code())
{
throw std::invalid_argument("All arguments must be lines");
}
Line *l1 = dynamic_cast<Line *>(line1);
Line *l2 = dynamic_cast<Line *>(line2);
Point *intersect = new Point();
intersect = l1->getIntesection(*l2);
//TODO: check if it exists
std::cout << *intersect;
if (getConfirmation("Do you want to save this point?"))
{
Object* cur = intersect;
if(checkForExistence(cur))
{
throw std::invalid_argument("Point already exists");
}
objects.push_back(intersect);
}
}
else
{
throw std::invalid_argument("Invalid arguments for INTERSECTION");
}
}
else if (params[0] == "AREA")
{
Object* cur = getObject(params[1]);
if(typeid(*cur).hash_code() != typeid(Polygon).hash_code() &&
typeid(*cur).hash_code() != typeid(Triangle).hash_code())
{
throw std::invalid_argument("Invalid arguments for AREA");
}
Shape* shape = dynamic_cast<Shape*>(cur);
std::cout << "area of " << shape->getName() << " = " << shape->area() << std::endl;
}
}
}
void CommandOperator::print()
{
for (std::size_t i = 0; i < objects.size(); i++)
{
std::cout << *objects[i];
}
}
CommandOperator::~CommandOperator()
{
for (std::size_t i = 0; i < objects.size(); i++)
{
delete objects[i];
}
}
bool getConfirmation(std::string question)
{
char answer;
std::cout << question << "(Y/N): ";
std::cin >> answer;
return toupper(answer) == 'Y';
}
|
#include<bits/stdc++.h>
using namespace std;
int solve(vector<int> arr,int n,int value,int index,int sum)
{
int count = 0;
if(index >= arr.size())
{
return 0;
}
if(sum >= value)
{
return 0;
}
// if(sum >= value)
// {
// return 0;
// }
// exclude
count+=solve(arr,n,value,index+1,sum);
// include
if(sum*arr[index] < value)
{
count+=solve(arr,n,value,index+1,sum*arr[index])+1;
}
return count;
}
int main()
{
int n,value;
cin >> n >> value;
vector<int> arr(n);
for(int i=0;i<n;i++)
{
cin >> arr[i];
}
cout << solve(arr,n,value,0,1) << endl;
return 0;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.