branch_name stringclasses 149 values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38 values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>process.stdin.resume();
process.stdin.setEncoding("utf8");
let num = "";
process.stdin.on("data", (data) => {
num += data;
});
process.stdin.on("end", () => {
main(num);
});
const main = (number) => {
console.log(num.split("\n")[0]);
};
<file_sep>let readable = process.stdin;
let inputArr = "";
let n;
let answer = "";
readable.on("data", (chunk) => {
inputArr += chunk;
});
readable.on("end", () => {
main();
console.log(answer);
});
const main = () => {
let arr = inputArr.split("\n");
arr.forEach((item, i) => {
if (n && i <= n) {
answer += `${
parseFloat(item.split(" ")[0]) % parseFloat(item.split(" ")[1])
}\n`;
}
if (!n) n = item;
});
};
| 489250f3a5804cc5945a47bf2fd54deddc699f70 | [
"JavaScript"
] | 2 | JavaScript | shobit1337/cpJS | 5bda7c9b64bae3b836d862d7a3ae14d3416e513c | a309223404f56bd762c5b7edf7a40725501b8391 |
refs/heads/master | <file_sep>class MoviesController < ApplicationController
def movie_params
params.require(:movie).permit(:title, :rating, :description, :release_date)
end
def show
id = params[:id] # retrieve movie ID from URI route
@movie = Movie.find(id) # look up movie by unique ID
# will render app/views/movies/show.<extension> by default
end
def index
@movies = Movie.all
#to store the name of column to be sorted
column_to_be_sorted = params[:column_to_be_sorted]
if(!column_to_be_sorted)
column_to_be_sorted = session[:column_to_be_sorted]
end
#to store the column that was sorted for the next operation
session[:column_to_be_sorted]= column_to_be_sorted
#sort operation
@movies = Movie.order(column_to_be_sorted)
#to store the available ratings
@all_ratings = ['G','R','PG','PG-13']
#stores the ratings that was filtered by the user
@filtered_rating = params[:ratings]
if(!@filtered_rating)
@filtered_rating=session[:ratings]
end
#stores the key values of the hash 'ratings'
if(@filtered_rating)
@filtered_rating_keys = @filtered_rating.keys
else
@filtered_rating_keys = @all_ratings
end
#stores the ratings that were filtered by the user if needed for the next operation
session[:ratings]=@filtered_rating
#sorts the list of movies with given filtered ratings
@movies = Movie.where(rating: @filtered_rating_keys).order(column_to_be_sorted)
end
def new
# default: render 'new' template
end
def create
@movie = Movie.create!(movie_params)
flash[:notice] = "#{@movie.title} was successfully created."
redirect_to movies_path
end
def edit
@movie = Movie.find params[:id]
end
def update
@movie = Movie.find params[:id]
@movie.update_attributes!(movie_params)
flash[:notice] = "#{@movie.title} was successfully updated."
redirect_to movie_path(@movie)
end
def destroy
@movie = Movie.find(params[:id])
@movie.destroy
flash[:notice] = "Movie '#{@movie.title}' deleted."
redirect_to movies_path
end
end<file_sep>module ApplicationHelper
def highlight_column(column_to_be_sorted)
if(params[:column_to_be_sorted]==column_to_be_sorted)
return 'hilite'
end
if(session[:column_to_be_sorted]==column_to_be_sorted)
return 'hilite'
end
end
end | 9f38318df6eb500899787a505bd0e8a9b06f7006 | [
"Ruby"
] | 2 | Ruby | G3Krishna/rottenpotatoes-rails-intro | 9283edd400d30dc4cdddb11540a1143f02234ec6 | 490e6549e7a741f01051adb6bbe3ba0d8b7006e5 |
refs/heads/master | <file_sep>#!/bin/bash
pulseaudio -k
sleep 5
pulseaudio --start
| e7e8271f1c1cedd6f6e2851b1c5beb87ed8a186e | [
"Shell"
] | 1 | Shell | pavelrtk/bin | c95a363e4eb626ffec1138a6fb68f99426b83280 | d83289eb992d1e74b0c1f213f009814ec746b6e4 |
refs/heads/main | <file_sep>import { SiCplusplus, SiCss3,
SiReact, SiPython,
SiJavascript, SiJava
} from "react-icons/si";
const Data = {
'intro':"Intro",
'experience': [{
'id' : 1,
'company' : "Seclore Technology",
'location' : 'Mumbai, India',
'work' : [{
'id' : 1,
'role' : 'Product Engineer (Windows C++ developer)',
'duration' : 'Jan 2021 - now',
'about': "Nice job aye!"
}, {
'id' : 2,
'role' : 'Trainee Product Engineer (Windows C++ developer)',
'duration' : 'Jul 2020 - Dec 2020',
'about': "Nice job aye!"
}
]
}, {
'id' : 2,
'company' : "Tata Consultancy Services",
'location' : 'Mumbai, India',
'work' : [{
'id' : 1,
'role' : 'Software Developer Intern (React native)',
'duration' : 'Jul 2019 - Aug 2019',
'about': "Nice job aye!"
}
]
}
],
'projects': [{
'id' : 1,
'name' : 'Visual Sorting',
'company' : 'Personal',
'duration' : 'Jan 2021 - now',
'technology' : 'React',
'description': "Nice job aye!"
}, {
'id' : 2,
'name' : 'Fake News Detector Telegram Bot',
'company' : 'Personal',
'duration' : 'Jul 2020 - Dec 2020',
'technology' : 'Python Flask, Telegram API',
'description': "Nice job aye!"
}
],
'skills':[{
'id': 1,
'name':'C++',
'icon': SiCplusplus,
'experience': '2 years',
'rating':4,
'outOf':5,
'projects':[{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
},{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
}]
},{
'id': 2,
'name':'Python',
'icon': SiPython,
'experience': '3 years',
'rating':4.5,
'outOf':5,
'projects':[{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
},{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
}]
},{
'id': 3,
'name':'React',
'icon': SiReact,
'experience': '1 years',
'rating':4,
'outOf':5,
'projects':[{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
},{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
}]
},{
'id': 4,
'name':'JavaScript',
'icon': SiJavascript,
'experience': '2 years',
'rating':4,
'outOf':5,
'projects':[{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
},{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
}]
},{
'id': 5,
'name':'CSS',
'icon': SiCss3,
'experience': '3 years',
'rating':3,
'outOf':5,
'projects':[{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
},{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
}]
},{
'id': 6,
'name':'Java',
'icon': SiJava,
'experience': '3 years',
'rating':3.5,
'outOf':5,
'projects':[{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
},{
'name':'Spreadsheet App',
'link': 'https://www.google.com/'
},{
'name': 'Modern IPMSG',
'link': 'https://www.google.com/'
}]
}]
}
export default Data;<file_sep>import React from 'react';
import './Intro.css';
import image from '../images/godfather.jpg';
const Intro = () =>{
return (
<div className="intro-page">
{/*<div className="intro-hello">
Salve! I'm
</div>
<div className="intro-name">
<NAME>
</div>*/}
<div className="intro-image-text">
<img className="intro-image" src={image} />
<div className="intro-codefather">
The <span className="intro-puppet">@</span><br/>Codefather
</div>
</div>
</div>
);
}
export default Intro;<file_sep>import React from 'react';
import { SiGooglecalendar } from "react-icons/si"
const WorkInfo = ({workItem}) =>{
return (
<div className = 'work-info'>
<div className='role-container'>
<div className='role-name'>{workItem['role']}</div>
<div className='role-duration'>
<SiGooglecalendar />
{' ' + workItem['duration']}</div>
</div>
<div className='role-about'>{workItem['about']}</div>
</div>
);
}
export default WorkInfo;<file_sep>import React from 'react';
const SkillMenuArray = ({skills, setSkillState, skillState}) =>{
const skillMenuList = skills.map((skill) =>
<div id={"skill-menu-button"+skill.id} key={skill.id} className={(skillState===skill.id-1)?"skill-menu-button-activate":"skill-menu"} onClick={()=>{setSkillState(skill.id - 1 )}} ><skill.icon></skill.icon></div>);
return (
<div className="skill-array">
{skillMenuList}
</div>
);
}
export default SkillMenuArray;<file_sep>import React, {useState} from 'react';
import './Skills.css';
import SkillCard from './SkillCard';
import SkillMenuArray from './SkillMenuArray';
import { SiCplusplus, SiCss3,
SiReact, SiPython,
SiJavascript, SiJava
} from "react-icons/si";
import {MdNavigateBefore, MdNavigateNext} from "react-icons/md";
const Skills = ({skills}) =>{
const [skillState, setSkillState] = useState(0);
const DecrementSkillState=()=>{
if (skillState === 0)
{
setSkillState(skills.length - 1)
}
else
{
setSkillState(skillState-1);
}
}
const IncrementSkillState=()=>{
setSkillState((skillState+1)%skills.length);
}
return (
<div id = "skill-page" className="section-page">
<div className="horizontal-half">
<div id="skill-heading" className='section-heading'>{"Skills"}</div>
<div className="skill-card-marque">
<div onClick={()=>{DecrementSkillState()}} className="skill-card-nav"><MdNavigateBefore></MdNavigateBefore></div>
<SkillCard skill={skills[skillState]}></SkillCard>
<div onClick={()=>{IncrementSkillState()}} className="skill-card-nav"><MdNavigateNext></MdNavigateNext></div>
</div>
</div>
<div id="half2" className="horizontal-half" >
<div id='skill-puppet' unselectable="on" className='intro-puppet'>@</div>
<SkillMenuArray skills={skills} setSkillState={setSkillState}skillState = {skillState}></SkillMenuArray>
</div>
{}
{/*<div className='section-heading'>{"</experience>"}</div>*/}
</div>
);
}
export default Skills;<file_sep>import React, { Children } from 'react';
import { ImStarEmpty, ImStarHalf, ImStarFull } from "react-icons/im"
import './Rating.css'
const Rating = ({piRating, piOutOf}) =>{
const RatingList = [];
for(let liCount = 1; liCount <= piOutOf; liCount++){
if (liCount <= piRating){
RatingList.push(
<div key={liCount} className="rating-character-activate" ><ImStarFull></ImStarFull></div>
);
}
else if (liCount-1<piRating)
{
RatingList.push(
<div key={liCount} className="rating-character-activate" ><ImStarHalf></ImStarHalf></div>
);
}
else{
RatingList.push(
<div key={liCount} className="rating-character-inactivate" ><ImStarEmpty></ImStarEmpty></div>
);
}
}
return (
<div className="rating-comp">
{RatingList}
</div>
);
}
export default Rating;<file_sep>import React from 'react';
import './SkillProjectList.css'
const SkillProjectList = ({SkillProjectList}) =>{
const ProjecLinktMap = [];
let key = 0;
for(let count = 0; count < SkillProjectList.length; count++)
{
let project = SkillProjectList[count];
ProjecLinktMap.push(
<a href={project['link']} key={key}>
{project['name']}
</a>);
if (count === SkillProjectList.length - 2){
key++;
ProjecLinktMap.push(<span key={key}>{" and "}</span>);
}
else if (count < SkillProjectList.length - 2){
key++;
ProjecLinktMap.push(<span key={key}>{" , "}</span>);
}
key++;
}
return (
<div className='skill-project-list'>
{ProjecLinktMap}
</div>
);
}
export default SkillProjectList;<file_sep>import React from 'react';
import Rating from './Rating';
import SkillProjectList from './SkillProjectList';
const SkillCard = ({skill}) =>{
const SkillIcon = skill.icon;
return (
<div className = 'skill-card'>
<div className="skill-card-heading">
<div className="skill-card-icon"><SkillIcon></SkillIcon></div>
<div className="skill-card-name">{skill.name}</div>
</div>
<div className="skill-card-info">
<div id="skill-card-experience" className="skill-card-info-piece">
<div>Experience: </div>
<div className="skill-card-info-piece-val">{skill.experience}</div>
</div>
<div id="skill-card-rating" className="skill-card-info-piece">
<div>Rating: </div>
<Rating
piRating={skill.rating}
piOutOf={skill.outOf}
pActiveColor={"#EC521E"}
pInactiveColor={"gray"}
className="skill-card-info-piece-val"
></Rating>
</div>
<div id="skill-card-projects" className="skill-card-info-piece">
<div>Projects:</div>
<SkillProjectList
SkillProjectList = {skill.projects}>
</SkillProjectList>
</div>
</div>
</div>
);
}
export default SkillCard;<file_sep>import React from 'react';
import WorkInfo from './WorkInfo';
import { MdLocationOn } from "react-icons/md";
const ProjectItem = ({projectItem}) =>{
return (
<div className='project-item'>
<div className='project-info'>
<div className='project-name'>
{projectItem['name']}
</div>
<div className = 'project-company'>
{projectItem['company']}
</div>
<div className='project-duration'>
{projectItem['duration']}
</div>
</div>
<div className='project-extra-info'>
<div className='project-tech'>
{projectItem['technology']}
</div>
<div className='project-desc'>
{projectItem['description']}
</div>
</div>
</div>
);
}
export default ProjectItem; | c7fd861dc24d687ec284fa120947b693ec8459fd | [
"JavaScript"
] | 9 | JavaScript | nerdjot/portfolio | 5c3ac0e94a44799f526ee963533348e62b2bff9d | d611bda3571d3c81b1a43814085b76ce1d3d35eb |
refs/heads/master | <file_sep>import random
snake=[23,17,45,5,52,33,67,23,90,50,99,24]
ladder=[8,29,22,61,54,68,65,97,72,93]
winners=[]
players={"a":0,"b":0,"c":0,"d":0}
global dice_value
global curr_player
def throw_dice():
global dice_value
global curr_player
print("throw dice")
dice_value=random.randint(1,6)
print("You got ",dice_value)
is_player_in(curr_player,dice_value)
def is_player_in(curr_player,dice_value):
print("is player in")
if players.get(curr_player)==0 and dice_value>=6:
status=0
decision(status,dice_value,curr_player)
return
if players.get(curr_player)>=1:
status=1
decision(status,dice_value,curr_player)
return
def decision(status,score,player):
print("decision")
print("score",score)
if status==1 and score==6:
throw_dice()
print(player, "You scored a 6. You get to play again")
score=+score
place=players.get(player)+score
print("place=",place)
if score in snake:
sn=snake.index(score)
if sn%2==0:
sn=sn+1
score=snake[sn]
if score in ladder:
lad=ladder.index(score)
if lad%2==0:
lad=lad+1
score=ladder[lad]
if score > 100:
return 0
print("decision score",score)
if status==0 and score>=6:
update_score(curr_player,score)
def update_score(player,score):
print("sYour place is ",score)
players[curr_player]=score
if score == 100:
winner(player,score)
else:
player_sequence()
def player_sequence():
global curr_player
for i in range(0,4):
curr_player=list(players)[i]
print("----------------PLAYER ",curr_player)
print("")
if i<=4:
throw_dice()
else:
display()
display()
def print1():
global curr_player
global dice_value
print(curr_player,dice_value)
def winner(curr_player,score):
print("PLAYER",curr_player ,"You win")
if score==100:
winners.append(curr_player)
print(winners)
player_sequence()
display()
def display():
print("done")
player_sequence()
| 0b016193a65b7e9db7b606178066c19d709672f5 | [
"Python"
] | 1 | Python | aishwaryalonarkar/snake_and_ladders | 6aae2462748bf43b92278e4d1b3f3ec7d8e3eea8 | c8b199a41e30864d8030ef6c6ef69b244e32cd95 |
refs/heads/master | <repo_name>paulcbetts/typescript-simple<file_sep>/index.ts
import fs = require('fs');
import os = require('os');
import path = require('path');
import ts = require('typescript');
const FILENAME_TS = 'file.ts';
const FILENAME_TSX = 'file.tsx';
function tss(code: string, options?: ts.CompilerOptions): string {
if (options) {
return new tss.TypeScriptSimple(options).compile(code);
} else {
return defaultTss.compile(code);
}
}
namespace tss {
export class TypeScriptSimple {
private service: ts.LanguageService = null;
private outputs: ts.Map<string> = {};
private options: ts.CompilerOptions;
private files: ts.Map<{ version: number; text: string; }> = {};
/**
* @param {ts.CompilerOptions=} options TypeScript compile options (some options are ignored)
* @param {boolean=} doSemanticChecks Throw if TypeScript semantic error found (default: true)
* @constructor
*/
constructor(options: ts.CompilerOptions = {}, private doSemanticChecks = true) {
// accept null
options = options || {};
if (options.target == null) {
options.target = ts.ScriptTarget.ES5;
}
if (options.module == null) {
options.module = ts.ModuleKind.None;
}
this.options = options;
}
/**
* @param {string} code TypeScript source code to compile
* @param {string=} fileName Only needed if you plan to use sourceMaps.
* Provide the complete filePath relevant to you
* @return {string} The JavaScript with inline sourceMaps if sourceMaps were enabled
* @throw {Error} A syntactic error or a semantic error (if doSemanticChecks is true)
*/
compile(code: string, fileName?: string): string {
if (!fileName) {
if (this.options.jsx === ts.JsxEmit.Preserve) {
fileName = FILENAME_TSX;
} else if (this.options.jsx === ts.JsxEmit.React) {
fileName = FILENAME_TSX;
} else {
fileName = FILENAME_TS;
}
}
if (!this.service) {
this.service = this.createService();
}
let file = this.files[fileName];
if (file) {
file.text = code;
file.version++;
} else {
this.files[fileName] = { version: 0, text: code };
}
return this.toJavaScript(this.service, fileName);
}
private createService(): ts.LanguageService {
let defaultLib = this.getDefaultLibFileName(this.options);
let defaultLibPath = path.join(this.getTypeScriptBinDir(), defaultLib);
this.files[defaultLib] = { version: 0, text: fs.readFileSync(defaultLibPath).toString() };
let serviceHost: ts.LanguageServiceHost = {
getScriptFileNames: () => [this.getDefaultLibFileName(this.options)].concat(Object.keys(this.files)),
getScriptVersion: (fileName) => this.files[fileName] && this.files[fileName].version.toString(),
getScriptSnapshot: (fileName) => {
let file = this.files[fileName];
if (file) {
return {
getText: (start, end) => file.text.substring(start, end),
getLength: () => file.text.length,
getLineStartPositions: (): number[] => [],
getChangeRange: (oldSnapshot) => undefined
};
} else { // This is some reference import
return {
getText: (start, end) => '',
getLength: () => 0,
getLineStartPositions: (): number[] => [],
getChangeRange: (oldSnapshot) => undefined
};
}
},
getCurrentDirectory: () => process.cwd(),
getCompilationSettings: () => this.options,
getDefaultLibFileName: (options: ts.CompilerOptions) => {
return this.getDefaultLibFileName(options);
},
// TODO: Use options.newLine
getNewLine: () => os.EOL,
log: (message: string) => console.log(message),
trace: (message: string) => console.debug(message),
error: (message: string) => console.error(message)
};
return ts.createLanguageService(serviceHost, ts.createDocumentRegistry())
}
private getTypeScriptBinDir(): string {
return path.dirname(require.resolve('typescript'));
}
private getDefaultLibFileName(options: ts.CompilerOptions): string {
if (options.target === ts.ScriptTarget.ES6) {
return 'lib.es6.d.ts';
} else {
return 'lib.d.ts';
}
}
/**
* converts {"version":3,"file":"file.js","sourceRoot":"","sources":["file.ts"],"names":[],
* "mappings":"AAAA,IAAI,CAAC,GAAG,MAAM,CAAC"}
* to {"version":3,"sources":["foo/test.ts"],"names":[],
* "mappings":"AAAA,IAAI,CAAC,GAAG,MAAM,CAAC","file":"foo/test.ts","sourcesContent":["var x = 'test';"]}
* derived from : https://github.com/thlorenz/convert-source-map
* @internal
*/
private getInlineSourceMap(mapText: string, fileName: string): string {
let sourceMap = JSON.parse(mapText);
sourceMap.file = fileName;
sourceMap.sources = [fileName];
sourceMap.sourcesContent = [this.files[fileName].text];
delete sourceMap.sourceRoot;
return JSON.stringify(sourceMap);
}
private toJavaScript(service: ts.LanguageService, fileName: string): string {
let output = service.getEmitOutput(fileName);
let allDiagnostics = service.getCompilerOptionsDiagnostics()
.concat(service.getSyntacticDiagnostics(fileName));
if (this.doSemanticChecks) {
allDiagnostics = allDiagnostics.concat(service.getSemanticDiagnostics(fileName));
}
if (allDiagnostics.length) {
throw new Error(this.formatDiagnostics(allDiagnostics));
}
let outDir = 'outDir' in this.options ? this.options.outDir : '';
let fileNameWithoutRoot = 'rootDir' in this.options ? fileName.replace(new RegExp('^' + this.options.rootDir), '') : fileName;
let outputFileName: string;
if (this.options.jsx === ts.JsxEmit.Preserve) {
outputFileName = path.join(outDir, fileNameWithoutRoot.replace(/\.tsx$/, '.jsx'));
} else {
outputFileName = path.join(outDir, fileNameWithoutRoot.replace(/\.tsx?$/, '.js'));
}
// for Windows #37
outputFileName = this.normalizeSlashes(outputFileName);
let file = output.outputFiles.filter((file) => file.name === outputFileName)[0];
let text = file.text;
// If we have sourceMaps convert them to inline sourceMaps
if (this.options.sourceMap) {
let sourceMapFileName = outputFileName + '.map';
let sourceMapFile = output.outputFiles.filter((file) => file.name === sourceMapFileName)[0];
// Transform sourcemap
let sourceMapText = sourceMapFile.text;
sourceMapText = this.getInlineSourceMap(sourceMapText, fileName);
let base64SourceMapText = new Buffer(sourceMapText).toString('base64');
let sourceMapComment = '//# sourceMappingURL=data:application/json;base64,' + base64SourceMapText;
text = text.replace('//# sourceMappingURL=' + path.basename(sourceMapFileName), sourceMapComment);
}
return text;
}
private normalizeSlashes(path: string): string {
return path.replace(/\\/g, "/");
}
private formatDiagnostics(diagnostics: ts.Diagnostic[]): string {
return diagnostics.map((d) => {
if (d.file) {
return 'L' + d.file.getLineAndCharacterOfPosition(d.start).line + ': ' + d.messageText;
} else {
return d.messageText;
}
}).join(os.EOL);
}
}
}
const defaultTss = new tss.TypeScriptSimple();
export = tss;
| f05553b907f2fe0e7789f5056db511264fb4e0e2 | [
"TypeScript"
] | 1 | TypeScript | paulcbetts/typescript-simple | bb81c855e09f1d2778bc7a26fc03024526f25bd2 | 44ca1a3ec1665b4e2e7a645af81a9957f4e01e0a |
refs/heads/master | <repo_name>vanard/simple-weather-app<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/ui/weather/WeatherActivity.kt
package com.vanard.simpleweatherapp.ui.weather
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log.d
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DividerItemDecoration
import com.google.android.gms.location.FusedLocationProviderClient
import com.google.android.gms.location.LocationCallback
import com.google.android.gms.location.LocationResult
import com.squareup.picasso.Picasso
import com.vanard.simpleweatherapp.R
import com.vanard.simpleweatherapp.data.model.CurrentWeather
import com.vanard.simpleweatherapp.data.model.FutureWeather
import com.vanard.simpleweatherapp.data.model.FutureWeatherEntry
import com.vanard.simpleweatherapp.data.network.ConnectivityInterceptorImpl
import com.vanard.simpleweatherapp.data.network.RetrofitClient
import com.vanard.simpleweatherapp.data.repository.ForecastRepositoryImpl
import com.vanard.simpleweatherapp.utility.LifecycleBoundLocationManager
import com.vanard.simpleweatherapp.utility.SetUpLayoutManager
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.support.v4.onRefresh
import org.kodein.di.KodeinAware
import org.kodein.di.android.closestKodein
import org.kodein.di.generic.instance
import kotlin.math.roundToInt
private const val MY_PERMISSION_ACCESS_COARSE_LOCATION = 1
class WeatherActivity : AppCompatActivity(), KodeinAware, WeatherContract.View {
private lateinit var presenter: WeatherPresenter
override val kodein by closestKodein()
private lateinit var mWeatherAdapter: WeatherAdapter
private val mWeatherList = ArrayList<FutureWeatherEntry>()
private val fusedLocationProviderClient: FusedLocationProviderClient by instance()
private val locationCallback = object : LocationCallback() {
override fun onLocationResult(p0: LocationResult?) {
super.onLocationResult(p0)
}
}
override fun setDataWeather(currentWeather: CurrentWeather) {
val s = currentWeather.currentWeatherEntry.condition.icon
Picasso.get().load("https://${s.substring(2, s.length)}").into(condition_icon)
location_text.text = currentWeather.location.name
condition_text.text = currentWeather.currentWeatherEntry.condition.text
suhu_text.text = currentWeather.currentWeatherEntry.tempC.roundToInt().toString() + 0x00B0.toChar()
refresh_layout.isRefreshing = false
}
override fun setDataListWeather(weatherList: FutureWeather) {
mWeatherList.clear()
mWeatherList.addAll(weatherList.futureWeatherEntries.entries)
mWeatherAdapter.notifyDataSetChanged()
refresh_layout.isRefreshing = false
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
requestLocationPermission()
if (hasLocationPermission()) {
bindLocationManager()
}
else
requestLocationPermission()
presenter = WeatherPresenter(this, ForecastRepositoryImpl(RetrofitClient.apiService(ConnectivityInterceptorImpl(this))))
setUpView()
setUpData()
}
private fun setUpView() {
SetUpLayoutManager.verticalLinearLayout(applicationContext, list_weather)
mWeatherAdapter = WeatherAdapter(mWeatherList)
list_weather.addItemDecoration(DividerItemDecoration(this, DividerItemDecoration.VERTICAL))
list_weather.adapter = mWeatherAdapter
}
private fun setUpData() {
presenter.getDataCurrentWeather("Bandung")
presenter.getDataForecastWeather("Bandung")
refresh_layout.onRefresh {
presenter.getDataCurrentWeather("Bandung")
presenter.getDataForecastWeather("Bandung")
}
}
private fun bindLocationManager() {
LifecycleBoundLocationManager(
this,
fusedLocationProviderClient, locationCallback
)
}
private fun requestLocationPermission() {
ActivityCompat.requestPermissions(
this,
arrayOf(Manifest.permission.ACCESS_COARSE_LOCATION),
MY_PERMISSION_ACCESS_COARSE_LOCATION
)
}
private fun hasLocationPermission(): Boolean {
return ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED
}
override fun onRequestPermissionsResult(
requestCode: Int,
permissions: Array<out String>,
grantResults: IntArray
) {
if (requestCode == MY_PERMISSION_ACCESS_COARSE_LOCATION) {
if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED)
bindLocationManager()
else
d("PTK", "Location must be active manually")
}
}
}
<file_sep>/app/src/test/java/com/vanard/simpleweatherapp/repository/RepositoryTest.kt
package com.vanard.simpleweatherapp.repository
import com.vanard.simpleweatherapp.data.network.WeatherApixuService
import com.vanard.simpleweatherapp.data.repository.ForecastRepositoryImpl
import org.junit.Before
import org.junit.Test
import org.mockito.Mock
import org.mockito.Mockito
import org.mockito.MockitoAnnotations
class RepositoryTest {
@Mock
lateinit var apiService: WeatherApixuService
private lateinit var forecastRepositoryImpl: ForecastRepositoryImpl
@Before
fun setUp() {
MockitoAnnotations.initMocks(this)
forecastRepositoryImpl = ForecastRepositoryImpl(apiService)
}
@Test
fun getCurrentWeatherTest() {
forecastRepositoryImpl.getCurrentWeather("Jakarta")
Mockito.verify(apiService).getCurrentWeather("Jakarta")
}
@Test
fun getForecastWeatherTest() {
forecastRepositoryImpl.getFutureWeatherList("Bandung")
Mockito.verify(apiService).getForecastWeather("Bandung")
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/ui/weather/WeatherAdapter.kt
package com.vanard.simpleweatherapp.ui.weather
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import androidx.recyclerview.widget.RecyclerView
import com.squareup.picasso.Picasso
import com.vanard.simpleweatherapp.R
import com.vanard.simpleweatherapp.data.model.FutureWeatherEntry
import com.vanard.simpleweatherapp.ui.detailweather.DetailWeatherActivity
import kotlinx.android.synthetic.main.item_weather.view.*
import org.jetbrains.anko.startActivity
import java.text.SimpleDateFormat
import java.util.*
import kotlin.math.roundToInt
class WeatherAdapter (private val weatherList: List<FutureWeatherEntry>) : RecyclerView.Adapter<WeatherAdapter.WeatherViewHolder>() {
class WeatherViewHolder (itemView: View) : RecyclerView.ViewHolder(itemView) {
private val weatherDay: AppCompatTextView = itemView.item_day
private val weatherDegree: AppCompatTextView = itemView.item_degree
private val weatherIcon: AppCompatImageView = itemView.item_icon
fun bindItems(weather: FutureWeatherEntry) {
val date = SimpleDateFormat("yyyy-mm-dd", Locale.getDefault()).parse(weather.date)
val day = SimpleDateFormat("EEEE", Locale.getDefault()).format(date)
val s = weather.day.condition.icon
Picasso.get().load("https://${s.substring(2, s.length)}").into(weatherIcon)
weatherDay.text = day
weatherDegree.text = weather.day.avgtempC.roundToInt().toString() + 0x00B0.toChar()
itemView.setOnClickListener {
itemView.context.startActivity<DetailWeatherActivity>("data" to weather.day, "day" to day)
}
}
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): WeatherViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.item_weather, parent, false)
return WeatherViewHolder(itemView)
}
override fun getItemCount() = weatherList.size
fun getItem(position: Int): FutureWeatherEntry = weatherList[position]
override fun onBindViewHolder(holder: WeatherViewHolder, position: Int) {
val weather = getItem(position)
holder.bindItems(weather)
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/repository/ForecastRepository.kt
package com.vanard.simpleweatherapp.data.repository
import com.vanard.simpleweatherapp.data.model.CurrentWeather
import com.vanard.simpleweatherapp.data.model.FutureWeather
import io.reactivex.Observable
interface ForecastRepository {
fun getCurrentWeather(location: String): Observable<out CurrentWeather>
fun getFutureWeatherList(location: String): Observable<out FutureWeather>
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/ui/weather/WeatherContract.kt
package com.vanard.simpleweatherapp.ui.weather
import com.vanard.simpleweatherapp.data.model.CurrentWeather
import com.vanard.simpleweatherapp.data.model.FutureWeather
interface WeatherContract {
interface View {
fun setDataWeather(currentWeather: CurrentWeather)
fun setDataListWeather(weatherList: FutureWeather)
}
interface Presenter {
fun getDataCurrentWeather(location: String)
fun getDataForecastWeather(location: String)
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/utility/SetUpLayoutManager.kt
package com.vanard.simpleweatherapp.utility
import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
object SetUpLayoutManager {
fun verticalLinearLayout(context: Context, targetRecyclerView: RecyclerView) {
val placeLayoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
targetRecyclerView.setHasFixedSize(true)
targetRecyclerView.layoutManager = placeLayoutManager
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/model/Condition.kt
package com.vanard.simpleweatherapp.data.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Condition(
val text: String,
val icon: String,
val code: Int
): Parcelable<file_sep>/README.md
# simple-weather-app

<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/model/CurrentWeather.kt
package com.vanard.simpleweatherapp.data.model
import com.google.gson.annotations.SerializedName
data class CurrentWeather(
val location: WeatherLocation,
@SerializedName("current")
val currentWeatherEntry: CurrentWeatherEntry
)<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/model/CurrentWeatherEntry.kt
package com.vanard.simpleweatherapp.data.model
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
data class CurrentWeatherEntry(
@SerializedName("temp_c")
val tempC: Double,
@SerializedName("temp_f")
val tempF: Double,
@SerializedName("is_day")
val isDay: Int,
val condition: Condition,
@SerializedName("wind_mph")
val windMph: Double,
@SerializedName("wind_kph")
val windKph: Double,
@SerializedName("wind_dir")
val windDir: String,
@SerializedName("precip_mm")
val precipMm: Double,
@SerializedName("precip_in")
val precipIn: Double,
@SerializedName("feelslike_c")
val feelslikeC: Double,
@SerializedName("feelslike_f")
val feelslikeF: Double,
@SerializedName("vis_km")
val visKm: Double,
@SerializedName("vis_miles")
val visMiles: Double
): Parcelable {
constructor(parcel: Parcel) : this(
parcel.readDouble(),
parcel.readDouble(),
parcel.readInt(),
TODO("condition"),
parcel.readDouble(),
parcel.readDouble(),
parcel.readString(),
parcel.readDouble(),
parcel.readDouble(),
parcel.readDouble(),
parcel.readDouble(),
parcel.readDouble(),
parcel.readDouble()
) {
}
override fun writeToParcel(parcel: Parcel, flags: Int) {
parcel.writeDouble(tempC)
parcel.writeDouble(tempF)
parcel.writeInt(isDay)
parcel.writeDouble(windMph)
parcel.writeDouble(windKph)
parcel.writeString(windDir)
parcel.writeDouble(precipMm)
parcel.writeDouble(precipIn)
parcel.writeDouble(feelslikeC)
parcel.writeDouble(feelslikeF)
parcel.writeDouble(visKm)
parcel.writeDouble(visMiles)
}
override fun describeContents(): Int {
return 0
}
companion object CREATOR : Parcelable.Creator<CurrentWeatherEntry> {
override fun createFromParcel(parcel: Parcel): CurrentWeatherEntry {
return CurrentWeatherEntry(parcel)
}
override fun newArray(size: Int): Array<CurrentWeatherEntry?> {
return arrayOfNulls(size)
}
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/repository/ForecastRepositoryImpl.kt
package com.vanard.simpleweatherapp.data.repository
import com.vanard.simpleweatherapp.data.model.CurrentWeather
import com.vanard.simpleweatherapp.data.model.FutureWeather
import com.vanard.simpleweatherapp.data.network.WeatherApixuService
import io.reactivex.Observable
class ForecastRepositoryImpl(
private val apixuService: WeatherApixuService
) : ForecastRepository {
override fun getFutureWeatherList(location: String): Observable<out FutureWeather> {
return apixuService.getForecastWeather(location)
}
override fun getCurrentWeather(location: String): Observable<out CurrentWeather> {
return apixuService.getCurrentWeather(location)
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/network/ConnectivityInterceptor.kt
package com.vanard.simpleweatherapp.data.network
import okhttp3.Interceptor
interface ConnectivityInterceptor : Interceptor<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/model/FutureWeather.kt
package com.vanard.simpleweatherapp.data.model
import com.google.gson.annotations.SerializedName
data class FutureWeather(
@SerializedName("forecast")
val futureWeatherEntries: ForecastDays,
val location: WeatherLocation
)<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/ui/weather/WeatherPresenter.kt
package com.vanard.simpleweatherapp.ui.weather
import android.util.Log.d
import com.vanard.simpleweatherapp.data.model.CurrentWeather
import com.vanard.simpleweatherapp.data.model.FutureWeather
import com.vanard.simpleweatherapp.data.repository.ForecastRepositoryImpl
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.observers.DisposableObserver
import io.reactivex.schedulers.Schedulers
class WeatherPresenter(private val mView: WeatherContract.View, private val forecastRepositoryImpl: ForecastRepositoryImpl) : WeatherContract.Presenter {
private val compositeDisposable = CompositeDisposable()
override fun getDataCurrentWeather(location: String) {
val dataObserver = getDataObserver()
compositeDisposable.add(
forecastRepositoryImpl.getCurrentWeather(location)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribeWith(dataObserver)
)
}
override fun getDataForecastWeather(location: String) {
val forecastObserver = getWeatherObserver()
compositeDisposable.add(
forecastRepositoryImpl.getFutureWeatherList(location)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribeWith(forecastObserver)
)
}
private fun getDataObserver(): DisposableObserver<CurrentWeather> {
return object : DisposableObserver<CurrentWeather>() {
override fun onNext(currentWeather: CurrentWeather) {
mView.setDataWeather(currentWeather)
}
override fun onError(e: Throwable) {
d("PTK", e.message)
}
override fun onComplete() {
}
}
}
private fun getWeatherObserver(): DisposableObserver<FutureWeather> {
return object : DisposableObserver<FutureWeather>() {
override fun onNext(weatherList: FutureWeather) {
mView.setDataListWeather(weatherList)
}
override fun onError(e: Throwable) {
d("PTK", e.localizedMessage)
}
override fun onComplete() {
}
}
}
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/ui/detailweather/DetailWeatherActivity.kt
package com.vanard.simpleweatherapp.ui.detailweather
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.squareup.picasso.Picasso
import com.vanard.simpleweatherapp.R
import com.vanard.simpleweatherapp.data.model.Day
import kotlinx.android.synthetic.main.activity_detail_weather.*
import kotlin.math.roundToInt
class DetailWeatherActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_detail_weather)
setUpView()
}
private fun setUpView() {
supportActionBar?.title = "Detail"
val data = intent.getParcelableExtra<Day>("data")
val day = intent.getStringExtra("day")
val s = data.condition.icon
Picasso.get().load("https://${s.substring(2, s.length)}").into(detail_icon)
detail_day.text = day
detail_degree.text = data.avgtempC.roundToInt().toString() + 0x00B0.toChar()
detail_condition.text = data.condition.text
detail_precipitation.text = "${data.totalprecipMm.roundToInt()} %"
detail_humidity.text = "${data.humidity.toInt()} %"
detail_wind.text = "${data.maxwindKph.toInt()} km/h"
}
}
<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/network/WeatherApixuService.kt
package com.vanard.simpleweatherapp.data.network
import com.vanard.simpleweatherapp.data.model.CurrentWeather
import com.vanard.simpleweatherapp.data.model.FutureWeather
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Query
const val FORECAST_DAYS_WEEK = 7
interface WeatherApixuService {
@GET("current.json")
fun getCurrentWeather(
@Query("q") location: String
): Observable<CurrentWeather>
@GET("forecast.json")
fun getForecastWeather(
@Query("q") location: String,
@Query("days") days: Int = FORECAST_DAYS_WEEK
): Observable<FutureWeather>
}<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/model/ForecastDays.kt
package com.vanard.simpleweatherapp.data.model
import com.google.gson.annotations.SerializedName
data class ForecastDays(@SerializedName("forecastday")
val entries: List<FutureWeatherEntry>)<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/model/FutureWeatherEntry.kt
package com.vanard.simpleweatherapp.data.model
data class FutureWeatherEntry(
val date: String,
val day: Day
)<file_sep>/app/src/main/java/com/vanard/simpleweatherapp/data/network/RetrofitClient.kt
package com.vanard.simpleweatherapp.data.network
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
object RetrofitClient {
private const val APIXU_BASE_URL = "https://api.apixu.com/v1/"
private const val API_KEY = "<KEY>"
fun apiService(connectivityInterceptor: ConnectivityInterceptor): WeatherApixuService {
val requestInterceptor = Interceptor { chain ->
val url = chain.request()
.url()
.newBuilder()
.addQueryParameter("key", API_KEY)
.build()
val request = chain.request()
.newBuilder()
.url(url)
.build()
return@Interceptor chain.proceed(request)
}
val loggingInterceptor = HttpLoggingInterceptor()
loggingInterceptor.level = HttpLoggingInterceptor.Level.BODY
val okHttpClient = OkHttpClient.Builder()
.addInterceptor(requestInterceptor)
.addInterceptor(connectivityInterceptor)
.addInterceptor(loggingInterceptor)
.build()
val retrofit = Retrofit.Builder()
.baseUrl(APIXU_BASE_URL)
.client(okHttpClient)
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.addConverterFactory(GsonConverterFactory.create())
.build()
return retrofit.create(WeatherApixuService::class.java)
}
} | 421f41e7830cf5bf144ea197e2050a0003b87470 | [
"Markdown",
"Kotlin"
] | 19 | Kotlin | vanard/simple-weather-app | 9f87cd28cb26598504cf60fad2c15d78b54da35f | 09de87eb21ed38c6ca330472dd22b1554894e7ce |
refs/heads/master | <repo_name>claudusd/rulerz<file_sep>/src/Visitor/ElasticsearchVisitor.php
<?php
namespace RulerZ\Visitor;
use Hoa\Ruler\Model as AST;
use Hoa\Visitor\Element as VisitorElement;
use Hoa\Visitor\Visit as Visitor;
class ElasticsearchVisitor implements Visitor
{
use Polyfill\CustomOperators;
/**
* List of parameters.
*
* @var array
*/
private $parameters = [];
/**
* Constructor.
*/
public function __construct(array $parameters = [])
{
$this->parameters = $parameters;
$this->defineBuiltInOperators();
}
/**
* Visit an element.
*
* @param \VisitorElement $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string The DQL code for the given rule.
*/
public function visit(VisitorElement $element, &$handle = null, $eldnah = null)
{
if ($element instanceof AST\Model) {
return $this->visitModel($element, $handle, $eldnah);
}
if ($element instanceof AST\Operator) {
return $this->visitOperator($element, $handle, $eldnah);
}
if ($element instanceof AST\Bag\Scalar) {
return $this->visitScalar($element, $handle, $eldnah);
}
if ($element instanceof AST\Bag\RulerArray) {
return $this->visitArray($element, $handle, $eldnah);
}
if ($element instanceof AST\Bag\Context) {
return $this->visitContext($element, $handle, $eldnah);
}
throw new \LogicException(sprintf('Element of type "%s" not handled', get_class($element)));
}
/**
* Visit a model
*
* @param AST\Model $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
public function visitModel(AST\Model $element, &$handle = null, $eldnah = null)
{
return $element->getExpression()->accept($this, $handle, $eldnah);
}
/**
* Visit a context (ie: a column access or a parameter)
*
* @param AST\Bag\Context $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitContext(AST\Bag\Context $element, &$handle = null, $eldnah = null)
{
$name = $element->getId();
// nested path
$dimensions = $element->getDimensions();
if (!empty($dimensions)) {
return $this->flattenAccessPath($element);
}
// parameter
if ($name[0] === ':') {
return $this->lookupParameter(substr($name, 1));
}
return $element->getId();
}
/**
* @param AST\Bag\Context $element Element to visit.
*
* @return string
*/
private function flattenAccessPath(AST\Bag\Context $element)
{
$flattenedDimensions = [$element->getId()];
foreach ($element->getDimensions() as $dimension) {
$flattenedDimensions[] = $dimension[1];
}
return implode('.', $flattenedDimensions);
}
/**
* Visit a scalar
*
* @param AST\Bag\Scalar $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitScalar(AST\Bag\Scalar $element, &$handle = null, $eldnah = null)
{
return $element->getValue();
}
/**
* Visit an array
*
* @param AST\Bag\RulerArray $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitArray(AST\Bag\RulerArray $element, &$handle = null, $eldnah = null)
{
return array_map(function ($item) use ($handle, $eldnah) {
return $item->accept($this, $handle, $eldnah);
}, $element->getArray());
}
/**
* Visit an operator
*
* @param AST\Operator $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitOperator(AST\Operator $element, &$handle = null, $eldnah = null)
{
$xcallable = $this->getOperator($element->getName());
$arguments = array_map(function ($argument) use ($handle, $eldnah) {
return $argument->accept($this, $handle, $eldnah);
}, $element->getArguments());
return $xcallable->distributeArguments($arguments);
}
/**
* Return the value of a parameter.
*
* @param string $name The parameter's name.
*
* @return mixed
*/
private function lookupParameter($name)
{
if (!array_key_exists($name, $this->parameters)) {
throw new \RuntimeException(sprintf('Parameter "%s" not defined', $name));
}
return $this->parameters[$name];
}
/**
* Define the built-in operators.
*/
private function defineBuiltInOperators()
{
// start with a few helpers
$must = function($query) {
return [
'bool' => ['must' => $query]
];
};
$mustNot = function($query) {
return [
'bool' => ['must_not' => $query]
];
};
$range = function($field, $value, $operator) use ($must) {
return $must([
'range' => [
$field => [$operator => $value],
]
]);
};
// Here are the operators!
$this->setOperator('and', function ($a, $b) use ($must) {
return $must([$a, $b]);
});
$this->setOperator('or', function ($a, $b) use ($must) {
return [
'bool' => ['should' => [$a, $b], 'minimum_should_match' => 1]
];
});
$this->setOperator('like', function ($a, $b) use ($must) {
return $must([
'match' => [
$a => is_array($b) ? implode(' ', $b) : $b,
]
]);
});
$this->setOperator('has', function ($a, $b) use ($must) {
return $must([
'terms' => [
$a => is_array($b) ? $b : [$b],
]
]);
});
$this->setOperator('in', $this->getOperator('has'));
$this->setOperator('=', function ($a, $b) use ($must) {
return $must([
'term' => [
$a => $b,
]
]);
});
$this->setOperator('not', $mustNot);
$this->setOperator('match_all', function() {
return ['match_all' => []];
});
$this->setOperator('>', function ($a, $b) use ($range) {
return $range($a, $b, 'gt');
});
$this->setOperator('>=', function ($a, $b) use ($range) {
return $range($a, $b, 'gte');
});
$this->setOperator('<', function ($a, $b) use ($range) {
return $range($a, $b, 'lt');
});
$this->setOperator('<=', function ($a, $b) use ($range) {
return $range($a, $b, 'lte');
});
$this->setOperator('!=', function ($a, $b) use ($mustNot) {
return $mustNot([
'terms' => [
$a => is_array($b) ? $b : [$b],
]
]);
});
$this->setOperator('in_envelope', function ($a, $b) use ($must) {
return $must([
'geo_shape' => [
$a => [
'shape' => [
'type' => 'envelope',
'coordinates' => $b,
]
]
]
]);
});
}
}
<file_sep>/src/Spec/Composite.php
<?php
namespace RulerZ\Spec;
class Composite implements Specification
{
/**
* @var string $operator
*/
private $operator;
/**
* @var array
*/
private $specifications = [];
/**
* Builds a composite specification.
*
* @param string $operator The operator used to join the specifications.
* @param array $specifications A list of initial specifications.
*/
public function __construct($operator, array $specifications = [])
{
$this->operator = $operator;
foreach ($specifications as $specification) {
$this->addSpecification($specification);
}
}
/**
* {@inheritDoc}
*/
public function getRule()
{
return implode(sprintf(' %s ', $this->operator), array_map(function (Specification $specification) {
return $specification->getRule();
}, $this->specifications));
}
/**
* {@inheritDoc}
*/
public function getParameters()
{
return call_user_func_array('array_merge', array_map(function (Specification $specification) {
return $specification->getParameters();
}, $this->specifications));
}
/**
* Adds a new specification.
*
* @param Specification $specification
*/
public function addSpecification(Specification $specification)
{
$this->specifications[] = $specification;
}
}
<file_sep>/src/Visitor/DoctrineQueryBuilderVisitor.php
<?php
namespace RulerZ\Visitor;
use Doctrine\ORM\QueryBuilder;
use Hoa\Ruler\Model as AST;
use Hoa\Visitor\Element as VisitorElement;
use Hoa\Visitor\Visit as Visitor;
use RulerZ\Exception\OperatorNotFoundException;
class DoctrineQueryBuilderVisitor implements Visitor
{
use Polyfill\CustomOperators;
/**
* The QueryBuilder to update.
*
* @var QueryBuilder
*/
private $qb;
/**
* Allow star operator.
*
* @var bool
*/
private $allowStarOperator = true;
/**
* Constructor.
*
* @param QueryBuilder $qb The query builder being manipulated.a
* @param bool $allowStarOperator Whether to allow the star operator or not (ie: implicit support of unknown operators).
*/
public function __construct(QueryBuilder $qb, $allowStarOperator = true)
{
$this->qb = $qb;
$this->allowStarOperator = (bool) $allowStarOperator;
$this->setOperator('and', function ($a, $b) { return sprintf('%s AND %s', $a, $b); });
$this->setOperator('or', function ($a, $b) { return sprintf('%s OR %s', $a, $b); });
//$this->setOperator('xor', function ($a, $b) { return (bool) ($a ^ $b); });
$this->setOperator('not', function ($a) { return sprintf('NOT (%s)', $a); });
$this->setOperator('=', function ($a, $b) { return sprintf('%s = %s', $a, $b); });
$this->setOperator('!=', function ($a, $b) { return sprintf('%s != %s', $a, $b); });
//$this->setOperator('is', $this->getOperator('='));
$this->setOperator('>', function ($a, $b) { return sprintf('%s > %s', $a, $b); });
$this->setOperator('>=', function ($a, $b) { return sprintf('%s >= %s', $a, $b); });
$this->setOperator('<', function ($a, $b) { return sprintf('%s < %s', $a, $b); });
$this->setOperator('<=', function ($a, $b) { return sprintf('%s <= %s', $a, $b); });
$this->setOperator('in', function ($a, $b) { return sprintf('%s IN %s', $a, $b[0] === '(' ? $b : '('.$b.')'); });
$this->setOperator('like', function ($a, $b) { return sprintf('%s LIKE %s', $a, $b); });
}
/**
* Visit an element.
*
* @param \VisitorElement $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string The DQL code for the given rule.
*/
public function visit(VisitorElement $element, &$handle = null, $eldnah = null)
{
if ($element instanceof AST\Model) {
return $this->visitModel($element, $handle, $eldnah);
}
if ($element instanceof AST\Operator) {
return $this->visitOperator($element, $handle, $eldnah);
}
if ($element instanceof AST\Bag\Scalar) {
return $this->visitScalar($element, $handle, $eldnah);
}
if ($element instanceof AST\Bag\RulerArray) {
return $this->visitArray($element, $handle, $eldnah);
}
if ($element instanceof AST\Bag\Context) {
return $this->visitContext($element, $handle, $eldnah);
}
throw new \LogicException(sprintf('Element of type "%s" not handled', get_class($element)));
}
/**
* Visit a model
*
* @param AST\Model $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
public function visitModel(AST\Model $element, &$handle = null, $eldnah = null)
{
return $element->getExpression()->accept($this, $handle, $eldnah);
}
/**
* Visit a context (ie: a column access or a parameter)
*
* @param AST\Bag\Context $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitContext(AST\Bag\Context $element, &$handle = null, $eldnah = null)
{
$name = $element->getId();
// parameter
if ($name[0] === ':') {
return $name;
}
return sprintf('%s.%s', $this->getRootAlias(), $element->getId());
}
/**
* Visit a scalar
*
* @param AST\Bag\Scalar $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitScalar(AST\Bag\Scalar $element, &$handle = null, $eldnah = null)
{
$value = $element->getValue();
return is_numeric($value) ? $value : sprintf("'%s'", $value);
}
/**
* Visit an array
*
* @param AST\Bag\RulerArray $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitArray(AST\Bag\RulerArray $element, &$handle = null, $eldnah = null)
{
$out = array_map(function ($item) use ($handle, $eldnah) {
return $item->accept($this, $handle, $eldnah);
}, $element->getArray());
return sprintf('(%s)', implode(', ', $out));
}
/**
* Visit an operator
*
* @param AST\Operator $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
*
* @return string
*/
private function visitOperator(AST\Operator $element, &$handle = null, $eldnah = null)
{
try {
$xcallable = $this->getOperator($element->getName());
} catch (OperatorNotFoundException $e) {
if (!$this->allowStarOperator) {
throw $e;
}
$xcallable = $this->getStarOperator($element);
}
$arguments = array_map(function ($argument) use ($handle, $eldnah) {
return $argument->accept($this, $handle, $eldnah);
}, $element->getArguments());
return $xcallable->distributeArguments($arguments);
}
/**
* Returns the root alias used by the query builder;
*
* @return string
*/
private function getRootAlias()
{
return $this->qb->getRootAliases()[0];
}
/**
* Return a "*" or "catch all" operator.
*
* @param Visitor\Element $element The node representing the operator.
*
* @return \Hoa\Core\Consistency\Xcallable
*/
private function getStarOperator(AST\Operator $element)
{
return xcallable(function () use ($element) {
return sprintf('%s(%s)', $element->getName(), implode(', ', func_get_args()));
});
}
}
<file_sep>/src/Context/ObjectContext.php
<?php
namespace RulerZ\Context;
use Hoa\Ruler\Context as BaseContext;
use Symfony\Component\PropertyAccess\PropertyAccess;
class ObjectContext extends BaseContext
{
/**
* @var mixed
*/
private $object;
/**
* @var \Symfony\Component\PropertyAccess\PropertyAccessor
*/
private $accessor;
/**
* Constructor.
*
* @param mixed $object The object to extract data from.
* @param array $data Additionnal data.
*/
public function __construct($object, array $data = [])
{
$this->object = $object;
$this->_data = $data;
$this->accessor = PropertyAccess::createPropertyAccessor();
}
/**
* Set a data.
*
* @param string $id ID.
* @param mixed $value Value.
*/
public function offsetSet($id, $value)
{
if ($this->accessor->isReadable($this->object, $id)) {
$this->accessor->setValue($this->object, $id, $value);
return;
}
parent::offsetSet($id, $value);
}
/**
* Get a data.
*
* @param string $id ID.
* @return mixed
* @throw \Hoa\Ruler\Exception
*/
public function offsetGet($id)
{
if (array_key_exists($id, $this->_data)) {
return parent::offsetGet($id);
}
return $this->accessor->getValue($this->object, $id);
}
/**
* Check if a data exists.
*
* @return bool
*/
public function offsetExists($id)
{
return parent::offsetExists($id) || $this->accessor->isReadable($this->object, $id);
}
}
<file_sep>/src/Visitor/Polyfill/CustomOperators.php
<?php
namespace RulerZ\Visitor\Polyfill;
use Hoa\Core\Consistency\Xcallable;
use RulerZ\Exception\OperatorNotFoundException;
trait CustomOperators
{
/**
* List of operators.
*
* @var array
*/
private $operators = [];
/**
* Set an operator.
*
* @param string $operator Operator.
* @param callable $transformer Callable.
*
* @return DoctrineQueryBuilderVisitor
*/
public function setOperator($operator, callable $transformer)
{
$this->operators[$operator] = $transformer;
return $this;
}
/**
* Check if an operator exists.
*
* @param string $operator Operator.
*
* @return bool
*/
public function operatorExists($operator)
{
return true === array_key_exists($operator, $this->operators);
}
/**
* Get an operator.
*
* @param string $operator Operator.
*
* @return Xcallable
*/
private function getOperator($operator)
{
if (false === $this->operatorExists($operator)) {
throw new OperatorNotFoundException($operator, sprintf('Operator "%s" does not exist.', $operator));
}
$handle = &$this->operators[$operator];
if (!$handle instanceof Xcallable) {
$handle = xcallable($handle);
}
return $this->operators[$operator];
}
}
<file_sep>/src/Executor/Polyfill/FilterBasedSatisfaction.php
<?php
namespace RulerZ\Executor\Polyfill;
use Hoa\Ruler\Model;
trait FilterBasedSatisfaction
{
/**
* {@inheritDoc}
*/
abstract public function filter($target, Model $rule, array $parameters = []);
/**
* {@inheritDoc}
*/
public function satisfies($target, Model $rule, array $parameters = [])
{
return count($this->filter($target, $rule, $parameters)) !== 0;
}
}
<file_sep>/src/Interpreter/HoaInterpreter.php
<?php
namespace RulerZ\Interpreter;
use Hoa\Compiler;
use Hoa\File;
use Hoa\Ruler\Visitor\Interpreter as RulerInterpreter;
/**
* Interpretes a rule.
*/
class HoaInterpreter implements Interpreter
{
/**
* Compiler.
*
* @var \Hoa\Compiler\Llk\Parser $compiler
*/
private $compiler;
/**
* Interpreter.
*
* @var \Hoa\Ruler\Visitor\Interpreter $Interpreter
*/
private $interpreter;
public function __construct()
{
$this->compiler = Compiler\Llk::load(
new File\Read('hoa://Library/Ruler/Grammar.pp')
);
$this->interpreter = new RulerInterpreter();
}
/**
* {@inheritDoc}
*/
public function interpret($rule)
{
return $this->interpreter->visit($this->compiler->parse($rule));
}
}
<file_sep>/spec/RulerZ/Interpreter/HoaInterpreterSpec.php
<?php
namespace spec\RulerZ\Interpreter;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class HoaInterpreterSpec extends ObjectBehavior
{
function it_is_initializable()
{
$this->shouldHaveType('RulerZ\Interpreter\HoaInterpreter');
}
function it_returns_an_ast_for_a_valid_rule()
{
$this->interpret('points > 30')->shouldHaveType('Hoa\Ruler\Model');
}
function it_throws_an_exception_for_an_invalid_rule()
{
$this->shouldThrow('Hoa\Compiler\Exception')->duringInterpret('> and');
}
}
<file_sep>/src/Visitor/ArrayVisitor.php
<?php
namespace RulerZ\Visitor;
use Hoa\Ruler\Exception as HoaException;
use Hoa\Ruler\Model as AST;
use Hoa\Ruler\Visitor\Asserter as HoaArrayVisitor;
use Symfony\Component\PropertyAccess\PropertyAccess;
class ArrayVisitor extends HoaArrayVisitor
{
/**
* Visit a context
*
* @access protected
* @param \Hoa\Visitor\Element $element Element to visit.
* @param mixed &$handle Handle (reference).
* @param mixed $eldnah Handle (not reference).
* @return mixed
*/
protected function visitContext(AST\Bag\Context $element, &$handle = null, $eldnah = null)
{
$accessor = PropertyAccess::createPropertyAccessor();
$context = $this->getContext();
if ($context === null) {
throw new HoaException\Asserter('Assert needs a context to work properly.', 0);
}
$id = $element->getId();
if (!isset($context[$id])) {
throw new HoaException\Asserter('Context reference %s does not exists.', 1, $id);
}
$contextPointer = $context[$id];
foreach ($element->getDimensions() as $dimensionNumber => $dimension) {
$rawAattribute = $dimension[AST\Bag\Context::ACCESS_VALUE];
$attribute = is_array($contextPointer) ? '['.$rawAattribute.']' : $rawAattribute;
$contextPointer = $accessor->getValue($contextPointer, $attribute);
}
return $contextPointer;
}
}
<file_sep>/src/Executor/ArrayExecutor.php
<?php
namespace RulerZ\Executor;
use Hoa\Ruler\Context as ArrayContext;
use Hoa\Ruler\Model;
use Hoa\Ruler\Exception\Asserter as AsserterException;
use RulerZ\Context\ObjectContext;
use RulerZ\Exception\OperatorNotFoundException;
use RulerZ\Visitor\ArrayVisitor;
/**
* Execute a rule on an array.
*/
class ArrayExecutor implements ExtendableExecutor
{
/**
* @var ArrayVisitor
*/
private $asserter;
/**
* Constructs the Array executor.
*
* @param array $operators A list of custom operators to register.
*/
public function __construct(array $operators = [])
{
$this->asserter = new ArrayVisitor();
$this->registerOperators($operators);
}
/**
* {@inheritDoc}
*/
public function filter($target, Model $rule, array $parameters = [])
{
$newParameters = $this->prepareParameters($parameters);
return array_filter($target, function ($row) use ($rule, $newParameters) {
return $this->filterItem($row, $rule, $newParameters);
});
}
/**
* {@inheritDoc}
*/
public function satisfies($target, Model $rule, array $parameters = [])
{
$newParameters = $this->prepareParameters($parameters);
return $this->filterItem($target, $rule, $newParameters) === true;
}
/**
* {@inheritDoc}
*/
public function supports($target, $mode)
{
if ($mode === self::MODE_FILTER) {
return is_array($target) || $target instanceof \Traversable;
}
return true;
}
/**
* {@inheritDoc}
*/
public function registerOperators(array $operators)
{
foreach ($operators as $name => $callable) {
$this->asserter->setOperator($name, $callable);
}
}
/**
* Test if an item matches the given rule.
*
* @param mixed $row The row to test.
* @param Model $rule The rule to apply.
* @param array $parameters The parameters used in the rule.
*
* @return boolean
*/
private function filterItem($row, Model $rule, array $parameters)
{
$this->asserter->setContext($this->createContext($row, $parameters));
try {
return $this->asserter->visit($rule);
} catch (AsserterException $e) {
if (strpos($e->getMessage(), 'Operator') !== false) {
throw new OperatorNotFoundException($e->getArguments()[0], $e->getMessage());
}
throw $e;
}
}
/**
* Create a context to be used by the asserter.
*
* @param mixed $row The row to test.
* @param array $parameters The parameters used in the rule.
*
* @return \Hoa\Ruler\Context
*/
private function createContext($row, array $parameters)
{
return is_array($row)
? new ArrayContext(array_merge($row, $parameters))
: new ObjectContext($row, $parameters);
}
/**
* Prepare the parameters so that they can be used in the asserter.
*
* @param array $parameters The parameters used in the rule.
*
* @return array
*/
private function prepareParameters(array $parameters)
{
$newParameters = [];
foreach ($parameters as $name => $value) {
$newParameters[':'.$name] = $value;
}
return $newParameters;
}
}
| c66ee856b49754ad19af652f7ef47d4a681c2613 | [
"PHP"
] | 10 | PHP | claudusd/rulerz | a16d3a6d1030bbb17b8d60eaf2886dd1c2443620 | d9d58d455054b5969fb4052f68b34bda4677d4d1 |
refs/heads/master | <repo_name>rcuyugan/coursera-todolist4-action-pack-assignment<file_sep>/app/models/profile.rb
class Profile < ActiveRecord::Base
belongs_to :user
validate :at_least_one_name_present
validates :gender, inclusion: %w(male female)
validate :boy_cannot_be_sue
def at_least_one_name_present
unless first_name.present? || last_name.present?
errors.add(:user, "Must contain at least a first or last_name")
end
end
def boy_cannot_be_sue
if first_name == "Sue" && gender == "male"
errors.add(:first_name, "Cannot use this for male!")
end
end
def self.get_all_profiles(min_year, max_year)
where("birth_year BETWEEN :min_year AND :max_year", min_year: min_year, max_year: max_year).order(birth_year: :asc)
end
end
| 34574692ed47020a12e87bf29ed2e57e070cbc6f | [
"Ruby"
] | 1 | Ruby | rcuyugan/coursera-todolist4-action-pack-assignment | 6583e388299e9e815b19e923860f9d416b6e8f01 | b0758c83d8b11407001704d6c01d75a82f77fe3e |
refs/heads/master | <repo_name>JIARC777/CS450_Le_Chapeau_Production<file_sep>/Le Chapeau/Assets/Scripts/PlayerController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
public class PlayerController : MonoBehaviourPunCallbacks, IPunObservable
{
[HideInInspector]
public int id;
[Header("Info")]
public float moveSpeed;
public float jumpForce;
public GameObject hatObj;
[HideInInspector]
public float currentHatTime;
[Header("Components")]
public Rigidbody rb;
public Player photonPlayer;
// Start is called before the first frame update
void Start()
{
// rb = this.GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
//if you are host check if a player has won
if (PhotonNetwork.IsMasterClient)
{
if (currentHatTime >= GameManager.instance.timeToWin && !GameManager.instance.gameEnded)
{
GameManager.instance.gameEnded = true;
GameManager.instance.photonView.RPC("WinGame", RpcTarget.All, id);
}
}
if (photonView.IsMine)
{
// checks for inputs on controls every frame, if Move detects an input it will change velocity
Move();
if (Input.GetKeyDown(KeyCode.Space))
TryJump();
//track amount of time hat worn
if (hatObj.activeInHierarchy)
currentHatTime+= Time.deltaTime;
}
}
void Move()
{
float x = Input.GetAxis("Horizontal") * moveSpeed;
float z = Input.GetAxis("Vertical") * moveSpeed;
// use a kinematic control for horizontal movement but leave vertical movement unaffected for jumping
rb.velocity = new Vector3(x, rb.velocity.y, z);
}
void TryJump()
{
// This method of jumping seems to implement a raycast to detect distance from ground to avoid a double jump
Ray ray = new Ray(transform.position, Vector3.down);
if (Physics.Raycast(ray, 0.7f))
rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
}
[PunRPC]
public void Initialize(Player player)
{
photonPlayer = player;
id = player.ActorNumber;
GameManager.instance.players[id - 1] = this;
//give first player hat
// disable physics for other players except yourself - let the network send position data
if(!photonView.IsMine)
{
rb.isKinematic = true;
}
if (id == 1)
GameManager.instance.GiveHat(id, true);
}
public void SetHat(bool hasHat)
{
hatObj.SetActive(hasHat);
}
void OnCollisionEnter(Collision collision)
{
// Debug.Log("Collision Detected");
if (!photonView.IsMine)
return;
if (collision.gameObject.CompareTag("Player"))
{
if (GameManager.instance.GetPlayer(collision.gameObject).id == GameManager.instance.playerWithHat)
{
if(GameManager.instance.CanGetHat())
{
GameManager.instance.photonView.RPC("GiveHat", RpcTarget.All, id, false);
}
}
}
}
// Rather than set up observable through photon view, access stream directly
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
{
if (stream.IsWriting)
stream.SendNext(currentHatTime);
else if (stream.IsReading)
currentHatTime = (float)stream.ReceiveNext();
}
}
<file_sep>/Le Chapeau/Assets/Scripts/Hat.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
public class Hat : MonoBehaviourPunCallbacks
{
public GameObject hatRef;
// Start is called before the first frame update
void OnCollisionEnter(Collision collision)
{
photonView.RPC("HideHat", RpcTarget.All);
}
[PunRPC]
void HideHat()
{
Destroy(hatRef.gameObject);
}
}
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/Assembly-CSharp_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Void GameManager::Awake()
extern void GameManager_Awake_mE60F41F3186E80B2BAB293918745366D18508C0F ();
// 0x00000002 System.Void GameManager::Start()
extern void GameManager_Start_mD77CCDBF1DA8EC5C3AE7ED955DE4E7F54B79C88E ();
// 0x00000003 System.Void GameManager::ImInGame()
extern void GameManager_ImInGame_mFC048F4A7EE745E51CC1AC67097AD2032052AE56 ();
// 0x00000004 System.Void GameManager::Update()
extern void GameManager_Update_m07DC32583BF09EB71183725B7B95FA7B4716988A ();
// 0x00000005 System.Void GameManager::SpawnHat()
extern void GameManager_SpawnHat_m645C9210553008A11CEED045A9664FA2185E314F ();
// 0x00000006 System.Void GameManager::ResetHat()
extern void GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA ();
// 0x00000007 System.Void GameManager::SpawnPlayer()
extern void GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29 ();
// 0x00000008 PlayerController GameManager::GetPlayer(System.Int32)
extern void GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868 ();
// 0x00000009 PlayerController GameManager::GetPlayer(UnityEngine.GameObject)
extern void GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51 ();
// 0x0000000A System.Void GameManager::GiveHat(System.Int32,System.Boolean)
extern void GameManager_GiveHat_mC847D218678428E7DAF3AF49AFD88F731DBA7ECF ();
// 0x0000000B System.Boolean GameManager::CanGetHat()
extern void GameManager_CanGetHat_m49FBC3E56EB6EEAA7B20866B3FEB5A5E2363C191 ();
// 0x0000000C System.Void GameManager::WinGame(System.Int32)
extern void GameManager_WinGame_m8F3D0B80EAE07903B38B9F34440527A99AA7D2C3 ();
// 0x0000000D System.Void GameManager::GoBackToMenu()
extern void GameManager_GoBackToMenu_m74630BE0DA972DDB8C068F4BA2BA5D2B492C6552 ();
// 0x0000000E System.Void GameManager::.ctor()
extern void GameManager__ctor_mF7F1107D38DE91EB8A57C1C3BB1A932C50CD9693 ();
// 0x0000000F System.Void PlayerUIContainer::.ctor()
extern void PlayerUIContainer__ctor_mB6CCAEC9164DAB14BF16F7047D08BF429B2F0D32 ();
// 0x00000010 System.Void GameUI::Awake()
extern void GameUI_Awake_m7E8168F25985A4BB698D33687AFF766EE1581904 ();
// 0x00000011 System.Void GameUI::Start()
extern void GameUI_Start_mFE3922E08427BF27BEDD28BC2D596A8CA9399D0E ();
// 0x00000012 System.Void GameUI::InitializePlayerUI()
extern void GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F ();
// 0x00000013 System.Void GameUI::Update()
extern void GameUI_Update_mAC534E039A52707418076CBC44C43B55C59F80DA ();
// 0x00000014 System.Void GameUI::UpdatePlayerUI()
extern void GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D ();
// 0x00000015 System.Void GameUI::SetWinText(System.String)
extern void GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7 ();
// 0x00000016 System.Void GameUI::.ctor()
extern void GameUI__ctor_mDBE3982B74C2EBF01D76742E8692B4827BF07964 ();
// 0x00000017 System.Void Hat::OnCollisionEnter(UnityEngine.Collision)
extern void Hat_OnCollisionEnter_m440C5DA62E0120D95EBFDD7F3148499BAEF1B103 ();
// 0x00000018 System.Void Hat::HideHat()
extern void Hat_HideHat_m2DDC659FF007E6BB25A066F854028D7ADD21C7F4 ();
// 0x00000019 System.Void Hat::.ctor()
extern void Hat__ctor_mAA5BB3CCC56358DE1AB3255B02EFC2DE530A427D ();
// 0x0000001A System.Void Menu::Start()
extern void Menu_Start_m26D2BE4EA9DEE5AF2FE548CF8EDDAFA0FE7379E9 ();
// 0x0000001B System.Void Menu::OnConnectedToMaster()
extern void Menu_OnConnectedToMaster_m8BCBD43CD74822A8610221CA28A7F7D7CA6ED867 ();
// 0x0000001C System.Void Menu::SetScreen(UnityEngine.GameObject)
extern void Menu_SetScreen_m1B0845A11F3AE3A5DBE2D445A140FA13B6686A45 ();
// 0x0000001D System.Void Menu::OnCreateRoomButton(TMPro.TMP_InputField)
extern void Menu_OnCreateRoomButton_mB1C99D83F0E3CF439C2CF001666027C9F9E46FFF ();
// 0x0000001E System.Void Menu::OnJoinRoomButton(TMPro.TMP_InputField)
extern void Menu_OnJoinRoomButton_m703E09B7A62EE0B407E440BFD86B980688AC5D8F ();
// 0x0000001F System.Void Menu::OnPlayerNameUpdate(TMPro.TMP_InputField)
extern void Menu_OnPlayerNameUpdate_m467F4E8FAA04E2E6D020763F4C1450512DEBDBAA ();
// 0x00000020 System.Void Menu::UpdateLobbyUI()
extern void Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95 ();
// 0x00000021 System.Void Menu::OnJoinedRoom()
extern void Menu_OnJoinedRoom_mBA464E8DE750747726F55F4DF1CF9D1D35BD2C90 ();
// 0x00000022 System.Void Menu::OnPlayerLeftRoom(Photon.Realtime.Player)
extern void Menu_OnPlayerLeftRoom_m3D3DEF1693BC102758D43422D2A33B589F8BDFCD ();
// 0x00000023 System.Void Menu::OnLeaveLobbyButton()
extern void Menu_OnLeaveLobbyButton_m1023FF94D36F696F8C7D02E21944B65D446D3976 ();
// 0x00000024 System.Void Menu::OnStartGameButton()
extern void Menu_OnStartGameButton_mC2F92820F2C0FBC0477D5B1A153B2009E4F9B47D ();
// 0x00000025 System.Void Menu::.ctor()
extern void Menu__ctor_mD372D109F6554E1F9A25291964C852C9F6BFC463 ();
// 0x00000026 System.Void NetworkManager::Awake()
extern void NetworkManager_Awake_m47DA4AE4B59D974EE100E14061AFD133B03D9929 ();
// 0x00000027 System.Void NetworkManager::Start()
extern void NetworkManager_Start_m3B9512EAC044A11F640BFF825019700586081828 ();
// 0x00000028 System.Void NetworkManager::OnConnectedToMaster()
extern void NetworkManager_OnConnectedToMaster_mEBA2DFFF805FA48BE8292B4632CDC2DD60DDD80B ();
// 0x00000029 System.Void NetworkManager::CreateRoom(System.String)
extern void NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7 ();
// 0x0000002A System.Void NetworkManager::JoinRoom(System.String)
extern void NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84 ();
// 0x0000002B System.Void NetworkManager::OnCreatedRoom()
extern void NetworkManager_OnCreatedRoom_mB2578DD702FFC14EE0ADD392A7B4A9C994B9EDD9 ();
// 0x0000002C System.Void NetworkManager::ChangeScene(System.String)
extern void NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D ();
// 0x0000002D System.Void NetworkManager::.ctor()
extern void NetworkManager__ctor_m2F799B6AD245DD0AEC3E92B5414FCAAE2994BAAE ();
// 0x0000002E System.Void PlayerController::Start()
extern void PlayerController_Start_mC0C9B9461D0BDAC48EC43715818A4BA63C4F45EF ();
// 0x0000002F System.Void PlayerController::Update()
extern void PlayerController_Update_m38903EF1C8F12B9388303741F8040EE26C33DC33 ();
// 0x00000030 System.Void PlayerController::Move()
extern void PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F ();
// 0x00000031 System.Void PlayerController::TryJump()
extern void PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C ();
// 0x00000032 System.Void PlayerController::Initialize(Photon.Realtime.Player)
extern void PlayerController_Initialize_mC6ABB84D5125516D8AAA4524874A0AC27C9F0638 ();
// 0x00000033 System.Void PlayerController::SetHat(System.Boolean)
extern void PlayerController_SetHat_m3F6774AA7A564DE73672AF19DB43B4D6ECB113B2 ();
// 0x00000034 System.Void PlayerController::OnCollisionEnter(UnityEngine.Collision)
extern void PlayerController_OnCollisionEnter_mC64545E3CBFFED17020D4B52BB65359240FA581D ();
// 0x00000035 System.Void PlayerController::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PlayerController_OnPhotonSerializeView_m110D5A8B36D7CD494A1DABAFE43B98BC0A12BC34 ();
// 0x00000036 System.Void PlayerController::.ctor()
extern void PlayerController__ctor_m648E40092E37395F4307411E855445886113CD60 ();
// 0x00000037 System.Void GameManager_<>c__DisplayClass18_0::.ctor()
extern void U3CU3Ec__DisplayClass18_0__ctor_mD90FF0B1F4FE2CA773E592D4F8EBF09B7E979DCC ();
// 0x00000038 System.Boolean GameManager_<>c__DisplayClass18_0::<GetPlayer>b__0(PlayerController)
extern void U3CU3Ec__DisplayClass18_0_U3CGetPlayerU3Eb__0_m816F8DFE4655CD84B0E28BEBA058BEA507B8949E ();
// 0x00000039 System.Void GameManager_<>c__DisplayClass19_0::.ctor()
extern void U3CU3Ec__DisplayClass19_0__ctor_m13F523D31350C5E78ACFD2D67DC14F4232357ACF ();
// 0x0000003A System.Boolean GameManager_<>c__DisplayClass19_0::<GetPlayer>b__0(PlayerController)
extern void U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290 ();
static Il2CppMethodPointer s_methodPointers[58] =
{
GameManager_Awake_mE60F41F3186E80B2BAB293918745366D18508C0F,
GameManager_Start_mD77CCDBF1DA8EC5C3AE7ED955DE4E7F54B79C88E,
GameManager_ImInGame_mFC048F4A7EE745E51CC1AC67097AD2032052AE56,
GameManager_Update_m07DC32583BF09EB71183725B7B95FA7B4716988A,
GameManager_SpawnHat_m645C9210553008A11CEED045A9664FA2185E314F,
GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA,
GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29,
GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868,
GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51,
GameManager_GiveHat_mC847D218678428E7DAF3AF49AFD88F731DBA7ECF,
GameManager_CanGetHat_m49FBC3E56EB6EEAA7B20866B3FEB5A5E2363C191,
GameManager_WinGame_m8F3D0B80EAE07903B38B9F34440527A99AA7D2C3,
GameManager_GoBackToMenu_m74630BE0DA972DDB8C068F4BA2BA5D2B492C6552,
GameManager__ctor_mF7F1107D38DE91EB8A57C1C3BB1A932C50CD9693,
PlayerUIContainer__ctor_mB6CCAEC9164DAB14BF16F7047D08BF429B2F0D32,
GameUI_Awake_m7E8168F25985A4BB698D33687AFF766EE1581904,
GameUI_Start_mFE3922E08427BF27BEDD28BC2D596A8CA9399D0E,
GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F,
GameUI_Update_mAC534E039A52707418076CBC44C43B55C59F80DA,
GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D,
GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7,
GameUI__ctor_mDBE3982B74C2EBF01D76742E8692B4827BF07964,
Hat_OnCollisionEnter_m440C5DA62E0120D95EBFDD7F3148499BAEF1B103,
Hat_HideHat_m2DDC659FF007E6BB25A066F854028D7ADD21C7F4,
Hat__ctor_mAA5BB3CCC56358DE1AB3255B02EFC2DE530A427D,
Menu_Start_m26D2BE4EA9DEE5AF2FE548CF8EDDAFA0FE7379E9,
Menu_OnConnectedToMaster_m8BCBD43CD74822A8610221CA28A7F7D7CA6ED867,
Menu_SetScreen_m1B0845A11F3AE3A5DBE2D445A140FA13B6686A45,
Menu_OnCreateRoomButton_mB1C99D83F0E3CF439C2CF001666027C9F9E46FFF,
Menu_OnJoinRoomButton_m703E09B7A62EE0B407E440BFD86B980688AC5D8F,
Menu_OnPlayerNameUpdate_m467F4E8FAA04E2E6D020763F4C1450512DEBDBAA,
Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95,
Menu_OnJoinedRoom_mBA464E8DE750747726F55F4DF1CF9D1D35BD2C90,
Menu_OnPlayerLeftRoom_m3D3DEF1693BC102758D43422D2A33B589F8BDFCD,
Menu_OnLeaveLobbyButton_m1023FF94D36F696F8C7D02E21944B65D446D3976,
Menu_OnStartGameButton_mC2F92820F2C0FBC0477D5B1A153B2009E4F9B47D,
Menu__ctor_mD372D109F6554E1F9A25291964C852C9F6BFC463,
NetworkManager_Awake_m47DA4AE4B59D974EE100E14061AFD133B03D9929,
NetworkManager_Start_m3B9512EAC044A11F640BFF825019700586081828,
NetworkManager_OnConnectedToMaster_mEBA2DFFF805FA48BE8292B4632CDC2DD60DDD80B,
NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7,
NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84,
NetworkManager_OnCreatedRoom_mB2578DD702FFC14EE0ADD392A7B4A9C994B9EDD9,
NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D,
NetworkManager__ctor_m2F799B6AD245DD0AEC3E92B5414FCAAE2994BAAE,
PlayerController_Start_mC0C9B9461D0BDAC48EC43715818A4BA63C4F45EF,
PlayerController_Update_m38903EF1C8F12B9388303741F8040EE26C33DC33,
PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F,
PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C,
PlayerController_Initialize_mC6ABB84D5125516D8AAA4524874A0AC27C9F0638,
PlayerController_SetHat_m3F6774AA7A564DE73672AF19DB43B4D6ECB113B2,
PlayerController_OnCollisionEnter_mC64545E3CBFFED17020D4B52BB65359240FA581D,
PlayerController_OnPhotonSerializeView_m110D5A8B36D7CD494A1DABAFE43B98BC0A12BC34,
PlayerController__ctor_m648E40092E37395F4307411E855445886113CD60,
U3CU3Ec__DisplayClass18_0__ctor_mD90FF0B1F4FE2CA773E592D4F8EBF09B7E979DCC,
U3CU3Ec__DisplayClass18_0_U3CGetPlayerU3Eb__0_m816F8DFE4655CD84B0E28BEBA058BEA507B8949E,
U3CU3Ec__DisplayClass19_0__ctor_m13F523D31350C5E78ACFD2D67DC14F4232357ACF,
U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290,
};
static const int32_t s_InvokerIndices[58] =
{
23,
23,
23,
23,
23,
23,
23,
34,
28,
139,
89,
32,
23,
23,
23,
23,
23,
23,
23,
23,
26,
23,
26,
23,
23,
23,
23,
26,
26,
26,
26,
23,
23,
26,
23,
23,
23,
23,
23,
23,
26,
26,
23,
26,
23,
23,
23,
23,
23,
26,
31,
26,
1960,
23,
23,
9,
23,
9,
};
extern const Il2CppCodeGenModule g_AssemblyU2DCSharpCodeGenModule;
const Il2CppCodeGenModule g_AssemblyU2DCSharpCodeGenModule =
{
"Assembly-CSharp.dll",
58,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
0,
NULL,
0,
NULL,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues2.cpp
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
// Photon.Pun.PhotonView
struct PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B;
// Photon.Realtime.Player
struct Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202;
// PlayerUIContainer[]
struct PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83;
// System.String
struct String_t;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
// TMPro.TextMeshProUGUI
struct TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438;
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F;
// UnityEngine.Rigidbody
struct Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5;
// UnityEngine.UI.Button
struct Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B;
// UnityEngine.UI.Slider
struct Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
// GameManager_<>c__DisplayClass18_0
struct U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F : public RuntimeObject
{
public:
// System.Int32 GameManager_<>c__DisplayClass18_0::playerId
int32_t ___playerId_0;
public:
inline static int32_t get_offset_of_playerId_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F, ___playerId_0)); }
inline int32_t get_playerId_0() const { return ___playerId_0; }
inline int32_t* get_address_of_playerId_0() { return &___playerId_0; }
inline void set_playerId_0(int32_t value)
{
___playerId_0 = value;
}
};
// GameManager_<>c__DisplayClass19_0
struct U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE : public RuntimeObject
{
public:
// UnityEngine.GameObject GameManager_<>c__DisplayClass19_0::playerObject
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___playerObject_0;
public:
inline static int32_t get_offset_of_playerObject_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE, ___playerObject_0)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_playerObject_0() const { return ___playerObject_0; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_playerObject_0() { return &___playerObject_0; }
inline void set_playerObject_0(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___playerObject_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerObject_0), (void*)value);
}
};
// PlayerUIContainer
struct PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 : public RuntimeObject
{
public:
// UnityEngine.GameObject PlayerUIContainer::obj
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___obj_0;
// TMPro.TextMeshProUGUI PlayerUIContainer::nameText
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___nameText_1;
// UnityEngine.UI.Slider PlayerUIContainer::hatTimeSlider
Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * ___hatTimeSlider_2;
public:
inline static int32_t get_offset_of_obj_0() { return static_cast<int32_t>(offsetof(PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9, ___obj_0)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_obj_0() const { return ___obj_0; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_obj_0() { return &___obj_0; }
inline void set_obj_0(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___obj_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___obj_0), (void*)value);
}
inline static int32_t get_offset_of_nameText_1() { return static_cast<int32_t>(offsetof(PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9, ___nameText_1)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_nameText_1() const { return ___nameText_1; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_nameText_1() { return &___nameText_1; }
inline void set_nameText_1(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___nameText_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___nameText_1), (void*)value);
}
inline static int32_t get_offset_of_hatTimeSlider_2() { return static_cast<int32_t>(offsetof(PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9, ___hatTimeSlider_2)); }
inline Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * get_hatTimeSlider_2() const { return ___hatTimeSlider_2; }
inline Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 ** get_address_of_hatTimeSlider_2() { return &___hatTimeSlider_2; }
inline void set_hatTimeSlider_2(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * value)
{
___hatTimeSlider_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatTimeSlider_2), (void*)value);
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
// System.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;
}
};
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// GameUI
struct GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// PlayerUIContainer[] GameUI::playerContainers
PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* ___playerContainers_4;
// TMPro.TextMeshProUGUI GameUI::winText
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___winText_5;
public:
inline static int32_t get_offset_of_playerContainers_4() { return static_cast<int32_t>(offsetof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0, ___playerContainers_4)); }
inline PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* get_playerContainers_4() const { return ___playerContainers_4; }
inline PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83** get_address_of_playerContainers_4() { return &___playerContainers_4; }
inline void set_playerContainers_4(PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* value)
{
___playerContainers_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerContainers_4), (void*)value);
}
inline static int32_t get_offset_of_winText_5() { return static_cast<int32_t>(offsetof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0, ___winText_5)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_winText_5() const { return ___winText_5; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_winText_5() { return &___winText_5; }
inline void set_winText_5(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___winText_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___winText_5), (void*)value);
}
};
struct GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields
{
public:
// GameUI GameUI::instance
GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * ___instance_6;
public:
inline static int32_t get_offset_of_instance_6() { return static_cast<int32_t>(offsetof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields, ___instance_6)); }
inline GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * get_instance_6() const { return ___instance_6; }
inline GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 ** get_address_of_instance_6() { return &___instance_6; }
inline void set_instance_6(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * value)
{
___instance_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instance_6), (void*)value);
}
};
// Photon.Pun.MonoBehaviourPun
struct MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// Photon.Pun.PhotonView Photon.Pun.MonoBehaviourPun::pvCache
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * ___pvCache_4;
public:
inline static int32_t get_offset_of_pvCache_4() { return static_cast<int32_t>(offsetof(MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A, ___pvCache_4)); }
inline PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * get_pvCache_4() const { return ___pvCache_4; }
inline PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B ** get_address_of_pvCache_4() { return &___pvCache_4; }
inline void set_pvCache_4(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * value)
{
___pvCache_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___pvCache_4), (void*)value);
}
};
// Photon.Pun.MonoBehaviourPunCallbacks
struct MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D : public MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A
{
public:
public:
};
// Hat
struct Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// UnityEngine.GameObject Hat::hatRef
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___hatRef_5;
public:
inline static int32_t get_offset_of_hatRef_5() { return static_cast<int32_t>(offsetof(Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F, ___hatRef_5)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_hatRef_5() const { return ___hatRef_5; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_hatRef_5() { return &___hatRef_5; }
inline void set_hatRef_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___hatRef_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatRef_5), (void*)value);
}
};
// Menu
struct Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// UnityEngine.GameObject Menu::mainScreen
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___mainScreen_5;
// UnityEngine.GameObject Menu::lobbyScreen
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___lobbyScreen_6;
// UnityEngine.UI.Button Menu::createRoomButton
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * ___createRoomButton_7;
// UnityEngine.UI.Button Menu::joinRoomButton
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * ___joinRoomButton_8;
// TMPro.TextMeshProUGUI Menu::playerListText
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___playerListText_9;
// UnityEngine.UI.Button Menu::startGameButton
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * ___startGameButton_10;
public:
inline static int32_t get_offset_of_mainScreen_5() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___mainScreen_5)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_mainScreen_5() const { return ___mainScreen_5; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_mainScreen_5() { return &___mainScreen_5; }
inline void set_mainScreen_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___mainScreen_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___mainScreen_5), (void*)value);
}
inline static int32_t get_offset_of_lobbyScreen_6() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___lobbyScreen_6)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_lobbyScreen_6() const { return ___lobbyScreen_6; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_lobbyScreen_6() { return &___lobbyScreen_6; }
inline void set_lobbyScreen_6(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___lobbyScreen_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___lobbyScreen_6), (void*)value);
}
inline static int32_t get_offset_of_createRoomButton_7() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___createRoomButton_7)); }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * get_createRoomButton_7() const { return ___createRoomButton_7; }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B ** get_address_of_createRoomButton_7() { return &___createRoomButton_7; }
inline void set_createRoomButton_7(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * value)
{
___createRoomButton_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___createRoomButton_7), (void*)value);
}
inline static int32_t get_offset_of_joinRoomButton_8() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___joinRoomButton_8)); }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * get_joinRoomButton_8() const { return ___joinRoomButton_8; }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B ** get_address_of_joinRoomButton_8() { return &___joinRoomButton_8; }
inline void set_joinRoomButton_8(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * value)
{
___joinRoomButton_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___joinRoomButton_8), (void*)value);
}
inline static int32_t get_offset_of_playerListText_9() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___playerListText_9)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_playerListText_9() const { return ___playerListText_9; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_playerListText_9() { return &___playerListText_9; }
inline void set_playerListText_9(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___playerListText_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerListText_9), (void*)value);
}
inline static int32_t get_offset_of_startGameButton_10() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___startGameButton_10)); }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * get_startGameButton_10() const { return ___startGameButton_10; }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B ** get_address_of_startGameButton_10() { return &___startGameButton_10; }
inline void set_startGameButton_10(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * value)
{
___startGameButton_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___startGameButton_10), (void*)value);
}
};
// NetworkManager
struct NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
public:
};
struct NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields
{
public:
// NetworkManager NetworkManager::instance
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * ___instance_5;
public:
inline static int32_t get_offset_of_instance_5() { return static_cast<int32_t>(offsetof(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields, ___instance_5)); }
inline NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * get_instance_5() const { return ___instance_5; }
inline NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C ** get_address_of_instance_5() { return &___instance_5; }
inline void set_instance_5(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * value)
{
___instance_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instance_5), (void*)value);
}
};
// PlayerController
struct PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// System.Int32 PlayerController::id
int32_t ___id_5;
// System.Single PlayerController::moveSpeed
float ___moveSpeed_6;
// System.Single PlayerController::jumpForce
float ___jumpForce_7;
// UnityEngine.GameObject PlayerController::hatObj
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___hatObj_8;
// System.Single PlayerController::currentHatTime
float ___currentHatTime_9;
// UnityEngine.Rigidbody PlayerController::rb
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * ___rb_10;
// Photon.Realtime.Player PlayerController::photonPlayer
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___photonPlayer_11;
public:
inline static int32_t get_offset_of_id_5() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___id_5)); }
inline int32_t get_id_5() const { return ___id_5; }
inline int32_t* get_address_of_id_5() { return &___id_5; }
inline void set_id_5(int32_t value)
{
___id_5 = value;
}
inline static int32_t get_offset_of_moveSpeed_6() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___moveSpeed_6)); }
inline float get_moveSpeed_6() const { return ___moveSpeed_6; }
inline float* get_address_of_moveSpeed_6() { return &___moveSpeed_6; }
inline void set_moveSpeed_6(float value)
{
___moveSpeed_6 = value;
}
inline static int32_t get_offset_of_jumpForce_7() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___jumpForce_7)); }
inline float get_jumpForce_7() const { return ___jumpForce_7; }
inline float* get_address_of_jumpForce_7() { return &___jumpForce_7; }
inline void set_jumpForce_7(float value)
{
___jumpForce_7 = value;
}
inline static int32_t get_offset_of_hatObj_8() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___hatObj_8)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_hatObj_8() const { return ___hatObj_8; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_hatObj_8() { return &___hatObj_8; }
inline void set_hatObj_8(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___hatObj_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatObj_8), (void*)value);
}
inline static int32_t get_offset_of_currentHatTime_9() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___currentHatTime_9)); }
inline float get_currentHatTime_9() const { return ___currentHatTime_9; }
inline float* get_address_of_currentHatTime_9() { return &___currentHatTime_9; }
inline void set_currentHatTime_9(float value)
{
___currentHatTime_9 = value;
}
inline static int32_t get_offset_of_rb_10() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___rb_10)); }
inline Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * get_rb_10() const { return ___rb_10; }
inline Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 ** get_address_of_rb_10() { return &___rb_10; }
inline void set_rb_10(Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * value)
{
___rb_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___rb_10), (void*)value);
}
inline static int32_t get_offset_of_photonPlayer_11() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___photonPlayer_11)); }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * get_photonPlayer_11() const { return ___photonPlayer_11; }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** get_address_of_photonPlayer_11() { return &___photonPlayer_11; }
inline void set_photonPlayer_11(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
___photonPlayer_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___photonPlayer_11), (void*)value);
}
};
#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
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3809;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3809 = { sizeof (U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F), -1, 0, 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3809[1] =
{
U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F::get_offset_of_playerId_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3810;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3810 = { sizeof (U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE), -1, 0, 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3810[1] =
{
U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE::get_offset_of_playerObject_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3811;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3811 = { sizeof (PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9), -1, 0, 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3811[3] =
{
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9::get_offset_of_obj_0(),
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9::get_offset_of_nameText_1(),
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9::get_offset_of_hatTimeSlider_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3812;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3812 = { sizeof (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0), -1, sizeof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields), 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3812[3] =
{
GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0::get_offset_of_playerContainers_4(),
GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0::get_offset_of_winText_5(),
GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields::get_offset_of_instance_6(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3813;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3813 = { sizeof (Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F), -1, 0, 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3813[1] =
{
Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F::get_offset_of_hatRef_5(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3814;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3814 = { sizeof (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129), -1, 0, 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3814[6] =
{
Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129::get_offset_of_mainScreen_5(),
Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129::get_offset_of_lobbyScreen_6(),
Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129::get_offset_of_createRoomButton_7(),
Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129::get_offset_of_joinRoomButton_8(),
Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129::get_offset_of_playerListText_9(),
Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129::get_offset_of_startGameButton_10(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3815;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3815 = { sizeof (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C), -1, sizeof(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields), 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3815[1] =
{
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields::get_offset_of_instance_5(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3816;
const Il2CppTypeDefinitionSizes g_typeDefinitionSize3816 = { sizeof (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85), -1, 0, 0 };
IL2CPP_EXTERN_C const int32_t g_FieldOffsetTable3816[7] =
{
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_id_5(),
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_moveSpeed_6(),
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_jumpForce_7(),
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_hatObj_8(),
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_currentHatTime_9(),
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_rb_10(),
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85::get_offset_of_photonPlayer_11(),
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/UnityEngine.UnityWebRequestWWWModule_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Void UnityEngine.WWW::.ctor(System.String)
extern void WWW__ctor_m855BBB40089401B7BE6DE7A19FAD81EB070A2196 ();
// 0x00000002 System.Boolean UnityEngine.WWW::get_isDone()
extern void WWW_get_isDone_m7D3800B83136885374E82BFC6ACB63BA3F6AB5DF ();
// 0x00000003 System.Boolean UnityEngine.WWW::get_keepWaiting()
extern void WWW_get_keepWaiting_m2C52E54F48964EFD711C55A514E738CDF5D2EEB4 ();
// 0x00000004 System.Void UnityEngine.WWW::Dispose()
extern void WWW_Dispose_m481A801C09AEF9D4B7EE5BD680ECE80C0B1E0F66 ();
static Il2CppMethodPointer s_methodPointers[4] =
{
WWW__ctor_m855BBB40089401B7BE6DE7A19FAD81EB070A2196,
WWW_get_isDone_m7D3800B83136885374E82BFC6ACB63BA3F6AB5DF,
WWW_get_keepWaiting_m2C52E54F48964EFD711C55A514E738CDF5D2EEB4,
WWW_Dispose_m481A801C09AEF9D4B7EE5BD680ECE80C0B1E0F66,
};
static const int32_t s_InvokerIndices[4] =
{
26,
89,
89,
23,
};
extern const Il2CppCodeGenModule g_UnityEngine_UnityWebRequestWWWModuleCodeGenModule;
const Il2CppCodeGenModule g_UnityEngine_UnityWebRequestWWWModuleCodeGenModule =
{
"UnityEngine.UnityWebRequestWWWModule.dll",
4,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
0,
NULL,
0,
NULL,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/Photon3Unity3D2.cpp
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template <typename R, typename T1>
struct VirtFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename R, typename T1, typename T2>
struct VirtFuncInvoker2
{
typedef R (*Func)(void*, T1, T2, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, p2, invokeData.method);
}
};
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);
}
};
template <typename T1>
struct VirtActionInvoker1
{
typedef void (*Action)(void*, T1, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, 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, typename T1, typename T2, typename T3, typename T4>
struct VirtFuncInvoker4
{
typedef R (*Func)(void*, T1, T2, T3, T4, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method);
}
};
template <typename T1, typename T2, typename T3, typename T4>
struct VirtActionInvoker4
{
typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method);
}
};
template <typename R>
struct GenericVirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData);
return ((Func)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);
}
};
template <typename R, typename T1>
struct InterfaceFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, p1, 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);
}
};
template <typename T1, typename T2>
struct InterfaceActionInvoker2
{
typedef void (*Action)(void*, T1, T2, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, p2, invokeData.method);
}
};
template <typename T1>
struct InterfaceActionInvoker1
{
typedef void (*Action)(void*, T1, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename R, typename T1, typename T2, typename T3>
struct InterfaceFuncInvoker3
{
typedef R (*Func)(void*, T1, T2, T3, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2, T3 p3)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method);
}
};
template <typename R>
struct GenericInterfaceFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
// ExitGames.Client.Photon.ByteArraySlicePool
struct ByteArraySlicePool_t5AE5E2B388EBAE3BBE7BEF4E074F586FD6AC01B0;
// ExitGames.Client.Photon.Encryption.IPhotonEncryptor
struct IPhotonEncryptor_tA5381BCD392FAFAE0EF487C35B93CBBDCCA4BF2A;
// ExitGames.Client.Photon.EventData
struct EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375;
// ExitGames.Client.Photon.Hashtable
struct Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133;
// ExitGames.Client.Photon.IPhotonPeerListener
struct IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D;
// ExitGames.Client.Photon.IPhotonSocket
struct IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587;
// ExitGames.Client.Photon.IProtocol
struct IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095;
// ExitGames.Client.Photon.ITrafficRecorder
struct ITrafficRecorder_t0E0E8B759DC502EAAA244BF94A873BFE3C1F2605;
// ExitGames.Client.Photon.NCommand
struct NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857;
// ExitGames.Client.Photon.NCommandPool
struct NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B;
// ExitGames.Client.Photon.NetworkSimulationSet
struct NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7;
// ExitGames.Client.Photon.OperationResponse
struct OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9;
// ExitGames.Client.Photon.PeerBase
struct PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884;
// ExitGames.Client.Photon.PeerBase/MyAction
struct MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC;
// ExitGames.Client.Photon.PeerBase/MyAction[]
struct MyActionU5BU5D_t920C8920AF664822853B8A9412E90DFAA036B69A;
// ExitGames.Client.Photon.PhotonPeer
struct PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD;
// ExitGames.Client.Photon.SocketTcp
struct SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D;
// ExitGames.Client.Photon.StreamBuffer
struct StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24;
// ExitGames.Client.Photon.StreamBuffer[]
struct StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E;
// ExitGames.Client.Photon.SupportClass
struct SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7;
// ExitGames.Client.Photon.SupportClass/<>c
struct U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D;
// ExitGames.Client.Photon.SupportClass/<>c__DisplayClass6_0
struct U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9;
// ExitGames.Client.Photon.SupportClass/IntegerMillisecondsDelegate
struct IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758;
// ExitGames.Client.Photon.SupportClass/ThreadSafeRandom
struct ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6;
// ExitGames.Client.Photon.TPeer
struct TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074;
// ExitGames.Client.Photon.TrafficStats
struct TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1;
// ExitGames.Client.Photon.TrafficStatsGameLevel
struct TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A;
// Photon.SocketServer.Numeric.BigInteger
struct BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1;
// Photon.SocketServer.Security.DiffieHellmanCryptoProvider
struct DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D;
// Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative
struct DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1;
// Photon.SocketServer.Security.ICryptoProvider
struct ICryptoProvider_tAA00C72BE565B6F16F48A5992A2A825791B5E569;
// System.Action`1<System.Object>
struct Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0;
// System.ArgumentException
struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1;
// System.ArgumentNullException
struct ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD;
// System.ArgumentOutOfRangeException
struct ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA;
// System.ArithmeticException
struct ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269;
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4;
// System.Byte[]
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821;
// System.Byte[][]
struct ByteU5BU5DU5BU5D_t1DE3927D87FD236507BFE9CA7E3EEA348C53E0E1;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.Generic.Dictionary`2/Entry<System.Byte,System.Object>[]
struct EntryU5BU5D_tE72F338533CAB40C554B7EB60D0842E51634A883;
// System.Collections.Generic.Dictionary`2/Entry<System.Object,System.Object>[]
struct EntryU5BU5D_t9EC04215E0A25794290249C0F6D7EA694596D2BE;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Byte,System.Object>
struct KeyCollection_tACF1090C1AD47AB88B96A6EC589146F41460761E;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Object,System.Object>
struct KeyCollection_t0394DE2BA7C2C82605C6E9DEBB21A8C5C792E97C;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Byte,System.Object>
struct ValueCollection_t45171E77ABFA412BFFA2BC69FCE8561DAF9738B9;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Object,System.Object>
struct ValueCollection_t0816666499CBD11E58E1E7C79A4EFC2AA47E08A2;
// System.Collections.Generic.Dictionary`2<ExitGames.Client.Photon.ConnectionProtocol,System.Type>
struct Dictionary_2_t7BE88B14041821866A1B365000220B43416B627A;
// System.Collections.Generic.Dictionary`2<System.Byte,System.Object>
struct Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D;
// System.Collections.Generic.IEqualityComparer`1<System.Byte>
struct IEqualityComparer_1_tA90617A2C656916626A63B98664B74DB098BCE8B;
// System.Collections.Generic.IEqualityComparer`1<System.Object>
struct IEqualityComparer_1_tAE7A8756D8CF0882DD348DC328FB36FEE0FB7DD0;
// System.Collections.Generic.LinkedList`1<ExitGames.Client.Photon.SimulationItem>
struct LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653;
// System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>
struct List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B;
// System.Collections.Generic.List`1<System.Object>
struct List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D;
// System.Collections.Generic.List`1<System.Reflection.MethodInfo>
struct List_1_t8693F442D94ED2E09D894940915C961D2F63C69B;
// System.Collections.Generic.List`1<System.Threading.Thread>
struct List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase/MyAction>
struct Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.StreamBuffer>
struct Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF;
// System.Collections.Generic.Queue`1<System.Byte[]>
struct Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519;
// System.Collections.Generic.Queue`1<System.Object>
struct Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0;
// System.Collections.IDictionary
struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7;
// System.Delegate
struct Delegate_t;
// System.DelegateData
struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE;
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
// System.Diagnostics.StackTrace[]
struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196;
// System.Diagnostics.Stopwatch
struct Stopwatch_t0778B5C8DF8FE1D87FC57A2411DA695850BD64D4;
// System.Exception
struct Exception_t;
// System.Func`1<System.Boolean>
struct Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1;
// System.Globalization.CultureInfo
struct CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F;
// System.IAsyncResult
struct IAsyncResult_t8E194308510B375B42432981AE5E7488C458D598;
// System.IFormatProvider
struct IFormatProvider_t4247E13AE2D97A079B88D594B7ABABF313259901;
// System.IO.TextWriter
struct TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0;
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
// System.IntPtr[]
struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD;
// System.LocalDataStoreHolder
struct LocalDataStoreHolder_tE0636E08496405406FD63190AC51EEB2EE51E304;
// System.LocalDataStoreMgr
struct LocalDataStoreMgr_t1964DDB9F2BE154BE3159A7507D0D0CCBF8FDCA9;
// System.MulticastDelegate
struct MulticastDelegate_t;
// System.Net.Sockets.Socket
struct Socket_t47148BFA7740C9C45A69F2F3722F734B9DCA45D8;
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
// System.Random
struct Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F;
// System.Reflection.Binder
struct Binder_t4D5CB06963501D32847C057B57157D6DC49CA759;
// System.Reflection.MemberFilter
struct MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.Reflection.MethodInfo[]
struct MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B;
// System.Runtime.Serialization.SafeSerializationManager
struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770;
// System.Security.Cryptography.HashAlgorithm
struct HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA;
// System.Security.Cryptography.KeySizes[]
struct KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E;
// System.Security.Cryptography.Rijndael
struct Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC;
// System.Security.Cryptography.RijndaelManaged
struct RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182;
// System.Security.Cryptography.SHA256Managed
struct SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2;
// System.Security.Principal.IPrincipal
struct IPrincipal_t63FD7F58FBBE134C8FE4D31710AAEA00B000F0BF;
// System.String
struct String_t;
// System.String[]
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
// System.Text.StringBuilder
struct StringBuilder_t;
// System.Threading.AsyncLocal`1<System.Globalization.CultureInfo>
struct AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A;
// System.Threading.ExecutionContext
struct ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70;
// System.Threading.InternalThread
struct InternalThread_tA4C58C2A7D15AF43C3E7507375E6D31DBBE7D192;
// System.Threading.ManualResetEvent
struct ManualResetEvent_tDFAF117B200ECA4CCF4FD09593F949A016D55408;
// System.Threading.Thread
struct Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7;
// System.Threading.ThreadStart
struct ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF;
// System.Threading.Thread[]
struct ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866;
// System.Type
struct Type_t;
// System.Type[]
struct TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F;
// System.UInt32[]
struct UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
IL2CPP_EXTERN_C RuntimeClass* ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* BitConverter_tD5DF1CB5C5A5CB087D90BD881C8E75A332E546EE_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* DeliveryMode_t1B8942F502723BBE123C47493B8CCB40DA9FD6A5_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Exception_t_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GC_tC1D7BD74E8F44ECCEF5CD2B5D84BFF9AAE02D01D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ICryptoProvider_tAA00C72BE565B6F16F48A5992A2A825791B5E569_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ICryptoTransform_t43C29A7F3A8C2DDAC9F3BF9BF739B03E4D5DE9A9_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IDisposable_t7218B22548186B208D65EA5B7870503810A2D15A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IEnumerable_tD74549CEA1AA48E768382B94FEACBB07E2E3FA2C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IEnumerator_t8789118187258CC88B77AFAC6315B5AF87D3E18A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* List_1_t8693F442D94ED2E09D894940915C961D2F63C69B_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Marshal_tC795CE9CC2FFBA41EDB1AC1C0FEC04607DFA8A40_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Protocol_t6C20E98C822F066C9F59D476704EA7C603A37DC2_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RuntimeObject_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* StringBuilder_t_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* String_t_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ThreadAbortException_t0B7CFB34B2901B695FBCFF84E0A1EBDFC8177468_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Type_t_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Version_tA7C397D7133E8F35E85A8C9DDB8A0DD5310091AB_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0_FieldInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2_FieldInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3_FieldInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4_FieldInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5_FieldInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6_FieldInfo_var;
IL2CPP_EXTERN_C String_t* _stringLiteral0CBD217BFB0EC93F291306B34BA5223B44B506A5;
IL2CPP_EXTERN_C String_t* _stringLiteral0DADC09E7EABB07021068B23CC5B5BE6EC31FD20;
IL2CPP_EXTERN_C String_t* _stringLiteral129BA976599D8E892992AC36E5D2E16A2DAA3269;
IL2CPP_EXTERN_C String_t* _stringLiteral1684357471109DBD863D23BEBFFC5992CAB3C811;
IL2CPP_EXTERN_C String_t* _stringLiteral21E0C87506B794C9D0CA9AAC1166237C82A12E17;
IL2CPP_EXTERN_C String_t* _stringLiteral22596C13EDD4026B32B1248314342143DC7A4C60;
IL2CPP_EXTERN_C String_t* _stringLiteral2BE88CA4242C76E8253AC62474851065032D6833;
IL2CPP_EXTERN_C String_t* _stringLiteral39AACA340AC6FA39FADE72A4BC162E3F68505A2F;
IL2CPP_EXTERN_C String_t* _stringLiteral3BC15C8AAE3E4124DD409035F32EA2FD6835EFC9;
IL2CPP_EXTERN_C String_t* _stringLiteral3C181A2281BAC62F1E17EEAB7A687DE4B9854812;
IL2CPP_EXTERN_C String_t* _stringLiteral4EA11D83FE1E0B01C6EB373B9EB32158F7CD061F;
IL2CPP_EXTERN_C String_t* _stringLiteral5B1FCBF196D62DAE66A87599DA5CCB20E8F05676;
IL2CPP_EXTERN_C String_t* _stringLiteral5C10B5B2CD673A0616D529AA5234B12EE7153808;
IL2CPP_EXTERN_C String_t* _stringLiteral60BA4B2DAA4ED4D070FEC06687E249E0E6F9EE45;
IL2CPP_EXTERN_C String_t* _stringLiteral60EDAB09E48F11D5A782C29B3BA4ABBF939D8C42;
IL2CPP_EXTERN_C String_t* _stringLiteral618DDC173BA3EDAA2FF921A857B096E4B1083ADF;
IL2CPP_EXTERN_C String_t* _stringLiteral63D27B87913E18B5F148C378CF5C14F6EA7FE36F;
IL2CPP_EXTERN_C String_t* _stringLiteral692207AB290401C1AF916CD5E76704398E27712E;
IL2CPP_EXTERN_C String_t* _stringLiteral74F6059628A004BF18CD6EC44600D208F451C153;
IL2CPP_EXTERN_C String_t* _stringLiteral80256F39A9D308650AC90D9BE9A72A9562454574;
IL2CPP_EXTERN_C String_t* _stringLiteral99EBF176FBFEF63165AAF27BF2838033094DF276;
IL2CPP_EXTERN_C String_t* _stringLiteral9E64EF2EA727C6FA0E1622CFAB8BDC40C203D79B;
IL2CPP_EXTERN_C String_t* _stringLiteralA01A6AE272652DBC032B2F9A43E6A57D0FC26EA6;
IL2CPP_EXTERN_C String_t* _stringLiteralA3A4DAB27D024E6F0C8849A888939EEACC4454B7;
IL2CPP_EXTERN_C String_t* _stringLiteralB0C54D8FCDA98B641A1A345AC980177945FDCC7C;
IL2CPP_EXTERN_C String_t* _stringLiteralB282C03E796EB00522EDA16ACEB5DE691C661498;
IL2CPP_EXTERN_C String_t* _stringLiteralB2F4EA8DB7DB66938DFB994A8250D024883852E8;
IL2CPP_EXTERN_C String_t* _stringLiteralB5CD017B62807F243FCA8D81EAE9CAE7D8902C6C;
IL2CPP_EXTERN_C String_t* _stringLiteralB6589FC6AB0DC82CF12099D1C2D40AB994E8410C;
IL2CPP_EXTERN_C String_t* _stringLiteralB69CAA709FF8200C11B7A5D573F524382BB0A08A;
IL2CPP_EXTERN_C String_t* _stringLiteralBAA3BCF38FA24577655C936BA6B37ADBA35CD288;
IL2CPP_EXTERN_C String_t* _stringLiteralC2B7DF6201FDD3362399091F0A29550DF3505B6A;
IL2CPP_EXTERN_C String_t* _stringLiteralC875C3ABB0F6D92C552DF040E91708BADE820156;
IL2CPP_EXTERN_C String_t* _stringLiteralD3BC9A378DAAA1DDDBA1B19C1AA641D3E9683C46;
IL2CPP_EXTERN_C String_t* _stringLiteralD41919407CE8F78B6CD89401353E39179FEC9AB2;
IL2CPP_EXTERN_C String_t* _stringLiteralD6A27955A5F3ECD495B10296A57CD35F1D0FEBC1;
IL2CPP_EXTERN_C String_t* _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
IL2CPP_EXTERN_C String_t* _stringLiteralDA49F969A456090F8FD78DB98E47E5D9FBA9F7AB;
IL2CPP_EXTERN_C String_t* _stringLiteralDD30075EF7818D67CCFDD3977372CDA880596961;
IL2CPP_EXTERN_C String_t* _stringLiteralE1381581CF7FAA889CB2AFA54785D825C6E0BAD4;
IL2CPP_EXTERN_C String_t* _stringLiteralE24B2AE346144B380995397756084920B60F6902;
IL2CPP_EXTERN_C String_t* _stringLiteralE495F483108024FBA57EA6E41B3E0345724A847A;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Add_m167D68C78B2820B929131E05BB2A242838DCC833_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2__ctor_mA38BDB6209548343F5C21CA8CCEF000923157407_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_Dispose_m568CABF735952058F73ABF25CC2AE4D57CEFA7A0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_MoveNext_mFA777BE67E36AE712834E1630F4E7B19111947CE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_get_Current_m94B8CC4707639E52FBADD53EB8741554E58ECD5E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Func_1_Invoke_mFA91B93A5C91290D4A3C475C4117CA05B43419E6_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_m1CA4BDBC8247F05F727DB5AB73D23373B86C3ADA_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_m7B53596524CC980DDAE06729469D15F51E21074E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_mB020CF1970BC807041D779C69DE0B129F319DB94_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Clear_m0A1085C5EB29FC7F6CB35B700EFF3BCD9E68FFF6_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Clear_mEF324469854ACF5512EC08B45D4FD2D410967E81_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_GetEnumerator_m05753BCE2C89FB542CBC0B1ADF1FD28549810082_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_m44FCC8E981945ABC4BDC871573CDE9EBF826EAA0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_m7A4FEC7537D92854E09F078941CE1B8C9C810F0F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_mFBB7F821AAC1F0F68A578448DD892C8F1D7CC7D2_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m11E3A74EDF4FB6EE4139A15DD104D59DDC402BFF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_mB2F7BB7DCE6EB926F0B14AD31559169B1CEBA448_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_m5584F887D702E20E9AF1D8EF97200115E997D9FB_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_m67740D7B5EC58BC41345C04A52D4E4A37E1F6301_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_set_Item_m66CC47458BF9C06655288BFD1ED154847E1C275C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1_Clear_mEAD8D659CB030722276865FEA9AF3A7E0B663C7A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1_Dequeue_m5A50FE82343DF951867F270B8FEAEF37D5CC193F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1_Dequeue_mFD6A8395329CC3B7DC1213203E630542B980B1B3_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1_Enqueue_m1F4E57E2CD8365D73FED4360D94AB59E451CE8FA_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1__ctor_m467D0CAFB245A84C8E5105E2B2D2C63757155A41_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1_get_Count_m5B41F5950B6BE1310C974FFD3B52B737FC626DE6_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Queue_1_get_Count_mCEF8E1B3E95B9A385B452A7E2B0DE10B19B9AAC9_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec_U3C_cctorU3Eb__20_0_mCEEC27615777A8FFF2C68CADE7171D62AB87837C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeType* ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_0_0_0_var;
IL2CPP_EXTERN_C const RuntimeType* Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133_0_0_0_var;
IL2CPP_EXTERN_C const RuntimeType* IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_0_0_0_var;
IL2CPP_EXTERN_C const RuntimeType* RuntimeObject_0_0_0_var;
IL2CPP_EXTERN_C const RuntimeType* StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E_0_0_0_var;
IL2CPP_EXTERN_C const uint32_t BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_Equals_m7205176C09F92065753845610C56CDE747821B19_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger__cctor_mF71C8E3FF6C0B3F85E197A6E0EE799B3C0C040BB_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProviderNative_Decrypt_mD76B7353A6E47CA9BFEBA496AE2597AE72EAAD40_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProviderNative_Dispose_m8A4318E08F4A4AB32554C4C18CF59C7389AFCC10_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProviderNative_Encrypt_m3468D009848944980F7965EB971258C650122A8D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider_Decrypt_m9AD8860DEC217DC76717883C4DFD3C6E59BD062B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider_DeriveSharedKey_m4307E1AD821B520CD377CB83E901BF918B2F25D9_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider_Dispose_m695ED7D77F64232768FBE1767766A05A9E88E146_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider_Encrypt_m74DD72284D17E3156A9C7F3182457CA3586F276C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E2194D10FB221184E91866E_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider__cctor_mC6430EB5D1201D7268063124E413DB10D2475558_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider__ctor_m756F19FDCD4B8BEC264F3C278188A94C4AD54795_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t DiffieHellmanCryptoProvider__ctor_mC60A298836C745155151805BC8666B0FE9E1FA4F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t OakleyGroups__cctor_mBCB3AA137F7D7C2F975BBBCE380FEE3CF3AB41C2_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_CalculateCrc_m15CFA22FBD259CC231E7366EC299D4F6077DB3D3_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_GetMethods_mC692EFCEACCC2C355BE7DAD291047B4984D29C1B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_HashtableToString_m87348FF98FB2C6DDFACA0FB6FA97B43AC4E01B4B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_StartBackgroundCalls_m4A8E179704C1F39B8BC274A0C6185168BAFEE0D8_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_StopAllBackgroundCalls_mDFC15194694FE3AC25024132C8E0DBF69B1AF901_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_StopBackgroundCalls_mAEEFE83BF78C6006DDC019FD7965F223E6AD1404_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SupportClass__cctor_m4A38DC2C2A324BCBE343E42C9266F8289CA69F6D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_Connect_mE7BCB997C5EB4DD6FD2F9A982BAC0D1F027433D4_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_Disconnect_mDBD4C9E85F53AC1785F38CE043E98224F28E57CF_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_DispatchIncomingCommands_mDACF10B846F4400FD47D4313D388025F843656E9_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_EnqueueMessage_m24AEFC73F037B4A4C69875ED2F263A0DF595C228_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_EnqueueOperation_m853FCDC19EC82B4D3FFA7D9276379EB4BD8428A2_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_FetchServerTimestamp_mA8D4EA81D4E271E5C0831125B1CEF53760D0F1B9_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_InitPeerBase_mF6C377C456842016F043C49E1A7361D19441BD22_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_OnConnect_m983C831E7E28781DC7D5EB04C23CC9EAF22076CA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_ReadPingResult_m2459F445356386582CE47CEB1F7521D9F1E3CC3F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_ReceiveIncomingCommands_mA0C4B969010D1C9614D1188BA8619169DA5A8425_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_SendAcksOnly_mD47D66B0267F3A9428834B0166853E06C1C014CA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_SendOutgoingCommands_mE28FFDBF29B0EC784F4EA9B8890D0571724F19DF_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_SerializeOperationToMessage_mA5E6E098B9682A9FB3AC6621B962775C9796CC90_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_StopConnection_mF41950B6DABD589AEBF7EC6D8909553326D5325A_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer__cctor_m34F83152414A1B570BB45BDA49EBA013C5F32332_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer__ctor_m2736C1E17818D50302E73053A9D33E1F4EDBAF25_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TPeer_get_QueuedIncomingCommandsCount_mC902717D6CC234CB56F2403A985C96D3BEB2396E_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t ThreadSafeRandom_Next_mDB4C15751362E0579C6354B6CCE56DAE6DD9EE47_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t ThreadSafeRandom__cctor_m9DBC66948E48D5FEEC2A252F76D9A1FF2F54F9A8_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TrafficStatsGameLevel_DispatchIncomingCommandsCalled_m2047B76836D234F1374C3AE2BA11DB59EC8A039C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TrafficStatsGameLevel_SendOutgoingCommandsCalled_m4FF3EFF1E68D5059903E8ED75EDE24D9E21B09A8_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TrafficStatsGameLevel_ToStringVitalStats_m66E31FABDDFE64E0C3AD8772FFB88440E7277B23_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TrafficStatsGameLevel_ToString_m0DCD7F7439AAAC07151768C96703FDD0B52B6F44_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t TrafficStats_ToString_m75C5ED9FA43C4C8BEE44D42DD4758AD39D393AAA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CU3Ec__cctor_m205A8B45E71762ECAD6FB159EABBB57129D374F1_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Version__cctor_m71E280F57F915B7C71267C2AEB1887F397517C14_MetadataUsageId;
struct Delegate_t_marshaled_com;
struct Delegate_t_marshaled_pinvoke;
struct Exception_t_marshaled_com;
struct Exception_t_marshaled_pinvoke;
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821;
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
struct MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B;
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
struct UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
// ExitGames.Client.Photon.IProtocol
struct IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 : public RuntimeObject
{
public:
// ExitGames.Client.Photon.ByteArraySlicePool ExitGames.Client.Photon.IProtocol::ByteArraySlicePool
ByteArraySlicePool_t5AE5E2B388EBAE3BBE7BEF4E074F586FD6AC01B0 * ___ByteArraySlicePool_0;
public:
inline static int32_t get_offset_of_ByteArraySlicePool_0() { return static_cast<int32_t>(offsetof(IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095, ___ByteArraySlicePool_0)); }
inline ByteArraySlicePool_t5AE5E2B388EBAE3BBE7BEF4E074F586FD6AC01B0 * get_ByteArraySlicePool_0() const { return ___ByteArraySlicePool_0; }
inline ByteArraySlicePool_t5AE5E2B388EBAE3BBE7BEF4E074F586FD6AC01B0 ** get_address_of_ByteArraySlicePool_0() { return &___ByteArraySlicePool_0; }
inline void set_ByteArraySlicePool_0(ByteArraySlicePool_t5AE5E2B388EBAE3BBE7BEF4E074F586FD6AC01B0 * value)
{
___ByteArraySlicePool_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ByteArraySlicePool_0), (void*)value);
}
};
// ExitGames.Client.Photon.NetworkSimulationSet
struct NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 : public RuntimeObject
{
public:
// System.Boolean ExitGames.Client.Photon.NetworkSimulationSet::isSimulationEnabled
bool ___isSimulationEnabled_0;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::outgoingLag
int32_t ___outgoingLag_1;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::outgoingJitter
int32_t ___outgoingJitter_2;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::outgoingLossPercentage
int32_t ___outgoingLossPercentage_3;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::incomingLag
int32_t ___incomingLag_4;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::incomingJitter
int32_t ___incomingJitter_5;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::incomingLossPercentage
int32_t ___incomingLossPercentage_6;
// ExitGames.Client.Photon.PeerBase ExitGames.Client.Photon.NetworkSimulationSet::peerBase
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___peerBase_7;
// System.Threading.Thread ExitGames.Client.Photon.NetworkSimulationSet::netSimThread
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * ___netSimThread_8;
// System.Threading.ManualResetEvent ExitGames.Client.Photon.NetworkSimulationSet::NetSimManualResetEvent
ManualResetEvent_tDFAF117B200ECA4CCF4FD09593F949A016D55408 * ___NetSimManualResetEvent_9;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::<LostPackagesOut>k__BackingField
int32_t ___U3CLostPackagesOutU3Ek__BackingField_10;
// System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::<LostPackagesIn>k__BackingField
int32_t ___U3CLostPackagesInU3Ek__BackingField_11;
public:
inline static int32_t get_offset_of_isSimulationEnabled_0() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___isSimulationEnabled_0)); }
inline bool get_isSimulationEnabled_0() const { return ___isSimulationEnabled_0; }
inline bool* get_address_of_isSimulationEnabled_0() { return &___isSimulationEnabled_0; }
inline void set_isSimulationEnabled_0(bool value)
{
___isSimulationEnabled_0 = value;
}
inline static int32_t get_offset_of_outgoingLag_1() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___outgoingLag_1)); }
inline int32_t get_outgoingLag_1() const { return ___outgoingLag_1; }
inline int32_t* get_address_of_outgoingLag_1() { return &___outgoingLag_1; }
inline void set_outgoingLag_1(int32_t value)
{
___outgoingLag_1 = value;
}
inline static int32_t get_offset_of_outgoingJitter_2() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___outgoingJitter_2)); }
inline int32_t get_outgoingJitter_2() const { return ___outgoingJitter_2; }
inline int32_t* get_address_of_outgoingJitter_2() { return &___outgoingJitter_2; }
inline void set_outgoingJitter_2(int32_t value)
{
___outgoingJitter_2 = value;
}
inline static int32_t get_offset_of_outgoingLossPercentage_3() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___outgoingLossPercentage_3)); }
inline int32_t get_outgoingLossPercentage_3() const { return ___outgoingLossPercentage_3; }
inline int32_t* get_address_of_outgoingLossPercentage_3() { return &___outgoingLossPercentage_3; }
inline void set_outgoingLossPercentage_3(int32_t value)
{
___outgoingLossPercentage_3 = value;
}
inline static int32_t get_offset_of_incomingLag_4() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___incomingLag_4)); }
inline int32_t get_incomingLag_4() const { return ___incomingLag_4; }
inline int32_t* get_address_of_incomingLag_4() { return &___incomingLag_4; }
inline void set_incomingLag_4(int32_t value)
{
___incomingLag_4 = value;
}
inline static int32_t get_offset_of_incomingJitter_5() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___incomingJitter_5)); }
inline int32_t get_incomingJitter_5() const { return ___incomingJitter_5; }
inline int32_t* get_address_of_incomingJitter_5() { return &___incomingJitter_5; }
inline void set_incomingJitter_5(int32_t value)
{
___incomingJitter_5 = value;
}
inline static int32_t get_offset_of_incomingLossPercentage_6() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___incomingLossPercentage_6)); }
inline int32_t get_incomingLossPercentage_6() const { return ___incomingLossPercentage_6; }
inline int32_t* get_address_of_incomingLossPercentage_6() { return &___incomingLossPercentage_6; }
inline void set_incomingLossPercentage_6(int32_t value)
{
___incomingLossPercentage_6 = value;
}
inline static int32_t get_offset_of_peerBase_7() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___peerBase_7)); }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * get_peerBase_7() const { return ___peerBase_7; }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 ** get_address_of_peerBase_7() { return &___peerBase_7; }
inline void set_peerBase_7(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * value)
{
___peerBase_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___peerBase_7), (void*)value);
}
inline static int32_t get_offset_of_netSimThread_8() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___netSimThread_8)); }
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * get_netSimThread_8() const { return ___netSimThread_8; }
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 ** get_address_of_netSimThread_8() { return &___netSimThread_8; }
inline void set_netSimThread_8(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * value)
{
___netSimThread_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___netSimThread_8), (void*)value);
}
inline static int32_t get_offset_of_NetSimManualResetEvent_9() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___NetSimManualResetEvent_9)); }
inline ManualResetEvent_tDFAF117B200ECA4CCF4FD09593F949A016D55408 * get_NetSimManualResetEvent_9() const { return ___NetSimManualResetEvent_9; }
inline ManualResetEvent_tDFAF117B200ECA4CCF4FD09593F949A016D55408 ** get_address_of_NetSimManualResetEvent_9() { return &___NetSimManualResetEvent_9; }
inline void set_NetSimManualResetEvent_9(ManualResetEvent_tDFAF117B200ECA4CCF4FD09593F949A016D55408 * value)
{
___NetSimManualResetEvent_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NetSimManualResetEvent_9), (void*)value);
}
inline static int32_t get_offset_of_U3CLostPackagesOutU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___U3CLostPackagesOutU3Ek__BackingField_10)); }
inline int32_t get_U3CLostPackagesOutU3Ek__BackingField_10() const { return ___U3CLostPackagesOutU3Ek__BackingField_10; }
inline int32_t* get_address_of_U3CLostPackagesOutU3Ek__BackingField_10() { return &___U3CLostPackagesOutU3Ek__BackingField_10; }
inline void set_U3CLostPackagesOutU3Ek__BackingField_10(int32_t value)
{
___U3CLostPackagesOutU3Ek__BackingField_10 = value;
}
inline static int32_t get_offset_of_U3CLostPackagesInU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7, ___U3CLostPackagesInU3Ek__BackingField_11)); }
inline int32_t get_U3CLostPackagesInU3Ek__BackingField_11() const { return ___U3CLostPackagesInU3Ek__BackingField_11; }
inline int32_t* get_address_of_U3CLostPackagesInU3Ek__BackingField_11() { return &___U3CLostPackagesInU3Ek__BackingField_11; }
inline void set_U3CLostPackagesInU3Ek__BackingField_11(int32_t value)
{
___U3CLostPackagesInU3Ek__BackingField_11 = value;
}
};
// ExitGames.Client.Photon.OperationResponse
struct OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9 : public RuntimeObject
{
public:
// System.Byte ExitGames.Client.Photon.OperationResponse::OperationCode
uint8_t ___OperationCode_0;
// System.Int16 ExitGames.Client.Photon.OperationResponse::ReturnCode
int16_t ___ReturnCode_1;
// System.String ExitGames.Client.Photon.OperationResponse::DebugMessage
String_t* ___DebugMessage_2;
// System.Collections.Generic.Dictionary`2<System.Byte,System.Object> ExitGames.Client.Photon.OperationResponse::Parameters
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * ___Parameters_3;
public:
inline static int32_t get_offset_of_OperationCode_0() { return static_cast<int32_t>(offsetof(OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9, ___OperationCode_0)); }
inline uint8_t get_OperationCode_0() const { return ___OperationCode_0; }
inline uint8_t* get_address_of_OperationCode_0() { return &___OperationCode_0; }
inline void set_OperationCode_0(uint8_t value)
{
___OperationCode_0 = value;
}
inline static int32_t get_offset_of_ReturnCode_1() { return static_cast<int32_t>(offsetof(OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9, ___ReturnCode_1)); }
inline int16_t get_ReturnCode_1() const { return ___ReturnCode_1; }
inline int16_t* get_address_of_ReturnCode_1() { return &___ReturnCode_1; }
inline void set_ReturnCode_1(int16_t value)
{
___ReturnCode_1 = value;
}
inline static int32_t get_offset_of_DebugMessage_2() { return static_cast<int32_t>(offsetof(OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9, ___DebugMessage_2)); }
inline String_t* get_DebugMessage_2() const { return ___DebugMessage_2; }
inline String_t** get_address_of_DebugMessage_2() { return &___DebugMessage_2; }
inline void set_DebugMessage_2(String_t* value)
{
___DebugMessage_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___DebugMessage_2), (void*)value);
}
inline static int32_t get_offset_of_Parameters_3() { return static_cast<int32_t>(offsetof(OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9, ___Parameters_3)); }
inline Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * get_Parameters_3() const { return ___Parameters_3; }
inline Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D ** get_address_of_Parameters_3() { return &___Parameters_3; }
inline void set_Parameters_3(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * value)
{
___Parameters_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Parameters_3), (void*)value);
}
};
// ExitGames.Client.Photon.PhotonCodes
struct PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7 : public RuntimeObject
{
public:
public:
};
struct PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields
{
public:
// System.Byte ExitGames.Client.Photon.PhotonCodes::ClientKey
uint8_t ___ClientKey_0;
// System.Byte ExitGames.Client.Photon.PhotonCodes::ModeKey
uint8_t ___ModeKey_1;
// System.Byte ExitGames.Client.Photon.PhotonCodes::ServerKey
uint8_t ___ServerKey_2;
// System.Byte ExitGames.Client.Photon.PhotonCodes::InitEncryption
uint8_t ___InitEncryption_3;
// System.Byte ExitGames.Client.Photon.PhotonCodes::Ping
uint8_t ___Ping_4;
public:
inline static int32_t get_offset_of_ClientKey_0() { return static_cast<int32_t>(offsetof(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields, ___ClientKey_0)); }
inline uint8_t get_ClientKey_0() const { return ___ClientKey_0; }
inline uint8_t* get_address_of_ClientKey_0() { return &___ClientKey_0; }
inline void set_ClientKey_0(uint8_t value)
{
___ClientKey_0 = value;
}
inline static int32_t get_offset_of_ModeKey_1() { return static_cast<int32_t>(offsetof(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields, ___ModeKey_1)); }
inline uint8_t get_ModeKey_1() const { return ___ModeKey_1; }
inline uint8_t* get_address_of_ModeKey_1() { return &___ModeKey_1; }
inline void set_ModeKey_1(uint8_t value)
{
___ModeKey_1 = value;
}
inline static int32_t get_offset_of_ServerKey_2() { return static_cast<int32_t>(offsetof(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields, ___ServerKey_2)); }
inline uint8_t get_ServerKey_2() const { return ___ServerKey_2; }
inline uint8_t* get_address_of_ServerKey_2() { return &___ServerKey_2; }
inline void set_ServerKey_2(uint8_t value)
{
___ServerKey_2 = value;
}
inline static int32_t get_offset_of_InitEncryption_3() { return static_cast<int32_t>(offsetof(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields, ___InitEncryption_3)); }
inline uint8_t get_InitEncryption_3() const { return ___InitEncryption_3; }
inline uint8_t* get_address_of_InitEncryption_3() { return &___InitEncryption_3; }
inline void set_InitEncryption_3(uint8_t value)
{
___InitEncryption_3 = value;
}
inline static int32_t get_offset_of_Ping_4() { return static_cast<int32_t>(offsetof(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields, ___Ping_4)); }
inline uint8_t get_Ping_4() const { return ___Ping_4; }
inline uint8_t* get_address_of_Ping_4() { return &___Ping_4; }
inline void set_Ping_4(uint8_t value)
{
___Ping_4 = value;
}
};
// ExitGames.Client.Photon.StreamBuffer
struct StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 : public RuntimeObject
{
public:
// System.Int32 ExitGames.Client.Photon.StreamBuffer::pos
int32_t ___pos_1;
// System.Int32 ExitGames.Client.Photon.StreamBuffer::len
int32_t ___len_2;
// System.Byte[] ExitGames.Client.Photon.StreamBuffer::buf
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buf_3;
public:
inline static int32_t get_offset_of_pos_1() { return static_cast<int32_t>(offsetof(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24, ___pos_1)); }
inline int32_t get_pos_1() const { return ___pos_1; }
inline int32_t* get_address_of_pos_1() { return &___pos_1; }
inline void set_pos_1(int32_t value)
{
___pos_1 = value;
}
inline static int32_t get_offset_of_len_2() { return static_cast<int32_t>(offsetof(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24, ___len_2)); }
inline int32_t get_len_2() const { return ___len_2; }
inline int32_t* get_address_of_len_2() { return &___len_2; }
inline void set_len_2(int32_t value)
{
___len_2 = value;
}
inline static int32_t get_offset_of_buf_3() { return static_cast<int32_t>(offsetof(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24, ___buf_3)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_buf_3() const { return ___buf_3; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_buf_3() { return &___buf_3; }
inline void set_buf_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___buf_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___buf_3), (void*)value);
}
};
// ExitGames.Client.Photon.SupportClass
struct SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7 : public RuntimeObject
{
public:
public:
};
struct SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields
{
public:
// System.Collections.Generic.List`1<System.Threading.Thread> ExitGames.Client.Photon.SupportClass::threadList
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * ___threadList_0;
// System.Object ExitGames.Client.Photon.SupportClass::ThreadListLock
RuntimeObject * ___ThreadListLock_1;
// ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate ExitGames.Client.Photon.SupportClass::IntegerMilliseconds
IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * ___IntegerMilliseconds_2;
// System.UInt32[] ExitGames.Client.Photon.SupportClass::crcLookupTable
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___crcLookupTable_3;
public:
inline static int32_t get_offset_of_threadList_0() { return static_cast<int32_t>(offsetof(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields, ___threadList_0)); }
inline List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * get_threadList_0() const { return ___threadList_0; }
inline List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D ** get_address_of_threadList_0() { return &___threadList_0; }
inline void set_threadList_0(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * value)
{
___threadList_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___threadList_0), (void*)value);
}
inline static int32_t get_offset_of_ThreadListLock_1() { return static_cast<int32_t>(offsetof(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields, ___ThreadListLock_1)); }
inline RuntimeObject * get_ThreadListLock_1() const { return ___ThreadListLock_1; }
inline RuntimeObject ** get_address_of_ThreadListLock_1() { return &___ThreadListLock_1; }
inline void set_ThreadListLock_1(RuntimeObject * value)
{
___ThreadListLock_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ThreadListLock_1), (void*)value);
}
inline static int32_t get_offset_of_IntegerMilliseconds_2() { return static_cast<int32_t>(offsetof(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields, ___IntegerMilliseconds_2)); }
inline IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * get_IntegerMilliseconds_2() const { return ___IntegerMilliseconds_2; }
inline IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 ** get_address_of_IntegerMilliseconds_2() { return &___IntegerMilliseconds_2; }
inline void set_IntegerMilliseconds_2(IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * value)
{
___IntegerMilliseconds_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___IntegerMilliseconds_2), (void*)value);
}
inline static int32_t get_offset_of_crcLookupTable_3() { return static_cast<int32_t>(offsetof(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields, ___crcLookupTable_3)); }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* get_crcLookupTable_3() const { return ___crcLookupTable_3; }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB** get_address_of_crcLookupTable_3() { return &___crcLookupTable_3; }
inline void set_crcLookupTable_3(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* value)
{
___crcLookupTable_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___crcLookupTable_3), (void*)value);
}
};
// ExitGames.Client.Photon.SupportClass_<>c
struct U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_StaticFields
{
public:
// ExitGames.Client.Photon.SupportClass_<>c ExitGames.Client.Photon.SupportClass_<>c::<>9
U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * ___U3CU3E9_0;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E9_0), (void*)value);
}
};
// ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0
struct U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 : public RuntimeObject
{
public:
// System.Int32 ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0::millisecondsInterval
int32_t ___millisecondsInterval_0;
// System.Func`1<System.Boolean> ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0::myThread
Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * ___myThread_1;
public:
inline static int32_t get_offset_of_millisecondsInterval_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9, ___millisecondsInterval_0)); }
inline int32_t get_millisecondsInterval_0() const { return ___millisecondsInterval_0; }
inline int32_t* get_address_of_millisecondsInterval_0() { return &___millisecondsInterval_0; }
inline void set_millisecondsInterval_0(int32_t value)
{
___millisecondsInterval_0 = value;
}
inline static int32_t get_offset_of_myThread_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9, ___myThread_1)); }
inline Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * get_myThread_1() const { return ___myThread_1; }
inline Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 ** get_address_of_myThread_1() { return &___myThread_1; }
inline void set_myThread_1(Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * value)
{
___myThread_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___myThread_1), (void*)value);
}
};
// ExitGames.Client.Photon.SupportClass_ThreadSafeRandom
struct ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6 : public RuntimeObject
{
public:
public:
};
struct ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_StaticFields
{
public:
// System.Random ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::_r
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * ____r_0;
public:
inline static int32_t get_offset_of__r_0() { return static_cast<int32_t>(offsetof(ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_StaticFields, ____r_0)); }
inline Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * get__r_0() const { return ____r_0; }
inline Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F ** get_address_of__r_0() { return &____r_0; }
inline void set__r_0(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * value)
{
____r_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____r_0), (void*)value);
}
};
// ExitGames.Client.Photon.TrafficStats
struct TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 : public RuntimeObject
{
public:
// System.Int32 ExitGames.Client.Photon.TrafficStats::<PackageHeaderSize>k__BackingField
int32_t ___U3CPackageHeaderSizeU3Ek__BackingField_0;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<ReliableCommandCount>k__BackingField
int32_t ___U3CReliableCommandCountU3Ek__BackingField_1;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<UnreliableCommandCount>k__BackingField
int32_t ___U3CUnreliableCommandCountU3Ek__BackingField_2;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<FragmentCommandCount>k__BackingField
int32_t ___U3CFragmentCommandCountU3Ek__BackingField_3;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<ControlCommandCount>k__BackingField
int32_t ___U3CControlCommandCountU3Ek__BackingField_4;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<TotalPacketCount>k__BackingField
int32_t ___U3CTotalPacketCountU3Ek__BackingField_5;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<TotalCommandsInPackets>k__BackingField
int32_t ___U3CTotalCommandsInPacketsU3Ek__BackingField_6;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<ReliableCommandBytes>k__BackingField
int32_t ___U3CReliableCommandBytesU3Ek__BackingField_7;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<UnreliableCommandBytes>k__BackingField
int32_t ___U3CUnreliableCommandBytesU3Ek__BackingField_8;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<FragmentCommandBytes>k__BackingField
int32_t ___U3CFragmentCommandBytesU3Ek__BackingField_9;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<ControlCommandBytes>k__BackingField
int32_t ___U3CControlCommandBytesU3Ek__BackingField_10;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<TimestampOfLastAck>k__BackingField
int32_t ___U3CTimestampOfLastAckU3Ek__BackingField_11;
// System.Int32 ExitGames.Client.Photon.TrafficStats::<TimestampOfLastReliableCommand>k__BackingField
int32_t ___U3CTimestampOfLastReliableCommandU3Ek__BackingField_12;
public:
inline static int32_t get_offset_of_U3CPackageHeaderSizeU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CPackageHeaderSizeU3Ek__BackingField_0)); }
inline int32_t get_U3CPackageHeaderSizeU3Ek__BackingField_0() const { return ___U3CPackageHeaderSizeU3Ek__BackingField_0; }
inline int32_t* get_address_of_U3CPackageHeaderSizeU3Ek__BackingField_0() { return &___U3CPackageHeaderSizeU3Ek__BackingField_0; }
inline void set_U3CPackageHeaderSizeU3Ek__BackingField_0(int32_t value)
{
___U3CPackageHeaderSizeU3Ek__BackingField_0 = value;
}
inline static int32_t get_offset_of_U3CReliableCommandCountU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CReliableCommandCountU3Ek__BackingField_1)); }
inline int32_t get_U3CReliableCommandCountU3Ek__BackingField_1() const { return ___U3CReliableCommandCountU3Ek__BackingField_1; }
inline int32_t* get_address_of_U3CReliableCommandCountU3Ek__BackingField_1() { return &___U3CReliableCommandCountU3Ek__BackingField_1; }
inline void set_U3CReliableCommandCountU3Ek__BackingField_1(int32_t value)
{
___U3CReliableCommandCountU3Ek__BackingField_1 = value;
}
inline static int32_t get_offset_of_U3CUnreliableCommandCountU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CUnreliableCommandCountU3Ek__BackingField_2)); }
inline int32_t get_U3CUnreliableCommandCountU3Ek__BackingField_2() const { return ___U3CUnreliableCommandCountU3Ek__BackingField_2; }
inline int32_t* get_address_of_U3CUnreliableCommandCountU3Ek__BackingField_2() { return &___U3CUnreliableCommandCountU3Ek__BackingField_2; }
inline void set_U3CUnreliableCommandCountU3Ek__BackingField_2(int32_t value)
{
___U3CUnreliableCommandCountU3Ek__BackingField_2 = value;
}
inline static int32_t get_offset_of_U3CFragmentCommandCountU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CFragmentCommandCountU3Ek__BackingField_3)); }
inline int32_t get_U3CFragmentCommandCountU3Ek__BackingField_3() const { return ___U3CFragmentCommandCountU3Ek__BackingField_3; }
inline int32_t* get_address_of_U3CFragmentCommandCountU3Ek__BackingField_3() { return &___U3CFragmentCommandCountU3Ek__BackingField_3; }
inline void set_U3CFragmentCommandCountU3Ek__BackingField_3(int32_t value)
{
___U3CFragmentCommandCountU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_U3CControlCommandCountU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CControlCommandCountU3Ek__BackingField_4)); }
inline int32_t get_U3CControlCommandCountU3Ek__BackingField_4() const { return ___U3CControlCommandCountU3Ek__BackingField_4; }
inline int32_t* get_address_of_U3CControlCommandCountU3Ek__BackingField_4() { return &___U3CControlCommandCountU3Ek__BackingField_4; }
inline void set_U3CControlCommandCountU3Ek__BackingField_4(int32_t value)
{
___U3CControlCommandCountU3Ek__BackingField_4 = value;
}
inline static int32_t get_offset_of_U3CTotalPacketCountU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CTotalPacketCountU3Ek__BackingField_5)); }
inline int32_t get_U3CTotalPacketCountU3Ek__BackingField_5() const { return ___U3CTotalPacketCountU3Ek__BackingField_5; }
inline int32_t* get_address_of_U3CTotalPacketCountU3Ek__BackingField_5() { return &___U3CTotalPacketCountU3Ek__BackingField_5; }
inline void set_U3CTotalPacketCountU3Ek__BackingField_5(int32_t value)
{
___U3CTotalPacketCountU3Ek__BackingField_5 = value;
}
inline static int32_t get_offset_of_U3CTotalCommandsInPacketsU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CTotalCommandsInPacketsU3Ek__BackingField_6)); }
inline int32_t get_U3CTotalCommandsInPacketsU3Ek__BackingField_6() const { return ___U3CTotalCommandsInPacketsU3Ek__BackingField_6; }
inline int32_t* get_address_of_U3CTotalCommandsInPacketsU3Ek__BackingField_6() { return &___U3CTotalCommandsInPacketsU3Ek__BackingField_6; }
inline void set_U3CTotalCommandsInPacketsU3Ek__BackingField_6(int32_t value)
{
___U3CTotalCommandsInPacketsU3Ek__BackingField_6 = value;
}
inline static int32_t get_offset_of_U3CReliableCommandBytesU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CReliableCommandBytesU3Ek__BackingField_7)); }
inline int32_t get_U3CReliableCommandBytesU3Ek__BackingField_7() const { return ___U3CReliableCommandBytesU3Ek__BackingField_7; }
inline int32_t* get_address_of_U3CReliableCommandBytesU3Ek__BackingField_7() { return &___U3CReliableCommandBytesU3Ek__BackingField_7; }
inline void set_U3CReliableCommandBytesU3Ek__BackingField_7(int32_t value)
{
___U3CReliableCommandBytesU3Ek__BackingField_7 = value;
}
inline static int32_t get_offset_of_U3CUnreliableCommandBytesU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CUnreliableCommandBytesU3Ek__BackingField_8)); }
inline int32_t get_U3CUnreliableCommandBytesU3Ek__BackingField_8() const { return ___U3CUnreliableCommandBytesU3Ek__BackingField_8; }
inline int32_t* get_address_of_U3CUnreliableCommandBytesU3Ek__BackingField_8() { return &___U3CUnreliableCommandBytesU3Ek__BackingField_8; }
inline void set_U3CUnreliableCommandBytesU3Ek__BackingField_8(int32_t value)
{
___U3CUnreliableCommandBytesU3Ek__BackingField_8 = value;
}
inline static int32_t get_offset_of_U3CFragmentCommandBytesU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CFragmentCommandBytesU3Ek__BackingField_9)); }
inline int32_t get_U3CFragmentCommandBytesU3Ek__BackingField_9() const { return ___U3CFragmentCommandBytesU3Ek__BackingField_9; }
inline int32_t* get_address_of_U3CFragmentCommandBytesU3Ek__BackingField_9() { return &___U3CFragmentCommandBytesU3Ek__BackingField_9; }
inline void set_U3CFragmentCommandBytesU3Ek__BackingField_9(int32_t value)
{
___U3CFragmentCommandBytesU3Ek__BackingField_9 = value;
}
inline static int32_t get_offset_of_U3CControlCommandBytesU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CControlCommandBytesU3Ek__BackingField_10)); }
inline int32_t get_U3CControlCommandBytesU3Ek__BackingField_10() const { return ___U3CControlCommandBytesU3Ek__BackingField_10; }
inline int32_t* get_address_of_U3CControlCommandBytesU3Ek__BackingField_10() { return &___U3CControlCommandBytesU3Ek__BackingField_10; }
inline void set_U3CControlCommandBytesU3Ek__BackingField_10(int32_t value)
{
___U3CControlCommandBytesU3Ek__BackingField_10 = value;
}
inline static int32_t get_offset_of_U3CTimestampOfLastAckU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CTimestampOfLastAckU3Ek__BackingField_11)); }
inline int32_t get_U3CTimestampOfLastAckU3Ek__BackingField_11() const { return ___U3CTimestampOfLastAckU3Ek__BackingField_11; }
inline int32_t* get_address_of_U3CTimestampOfLastAckU3Ek__BackingField_11() { return &___U3CTimestampOfLastAckU3Ek__BackingField_11; }
inline void set_U3CTimestampOfLastAckU3Ek__BackingField_11(int32_t value)
{
___U3CTimestampOfLastAckU3Ek__BackingField_11 = value;
}
inline static int32_t get_offset_of_U3CTimestampOfLastReliableCommandU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1, ___U3CTimestampOfLastReliableCommandU3Ek__BackingField_12)); }
inline int32_t get_U3CTimestampOfLastReliableCommandU3Ek__BackingField_12() const { return ___U3CTimestampOfLastReliableCommandU3Ek__BackingField_12; }
inline int32_t* get_address_of_U3CTimestampOfLastReliableCommandU3Ek__BackingField_12() { return &___U3CTimestampOfLastReliableCommandU3Ek__BackingField_12; }
inline void set_U3CTimestampOfLastReliableCommandU3Ek__BackingField_12(int32_t value)
{
___U3CTimestampOfLastReliableCommandU3Ek__BackingField_12 = value;
}
};
// ExitGames.Client.Photon.TrafficStatsGameLevel
struct TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A : public RuntimeObject
{
public:
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::timeOfLastDispatchCall
int32_t ___timeOfLastDispatchCall_0;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::timeOfLastSendCall
int32_t ___timeOfLastSendCall_1;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<OperationByteCount>k__BackingField
int32_t ___U3COperationByteCountU3Ek__BackingField_2;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<OperationCount>k__BackingField
int32_t ___U3COperationCountU3Ek__BackingField_3;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<ResultByteCount>k__BackingField
int32_t ___U3CResultByteCountU3Ek__BackingField_4;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<ResultCount>k__BackingField
int32_t ___U3CResultCountU3Ek__BackingField_5;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<EventByteCount>k__BackingField
int32_t ___U3CEventByteCountU3Ek__BackingField_6;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<EventCount>k__BackingField
int32_t ___U3CEventCountU3Ek__BackingField_7;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestOpResponseCallback>k__BackingField
int32_t ___U3CLongestOpResponseCallbackU3Ek__BackingField_8;
// System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestOpResponseCallbackOpCode>k__BackingField
uint8_t ___U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestEventCallback>k__BackingField
int32_t ___U3CLongestEventCallbackU3Ek__BackingField_10;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestMessageCallback>k__BackingField
int32_t ___U3CLongestMessageCallbackU3Ek__BackingField_11;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestRawMessageCallback>k__BackingField
int32_t ___U3CLongestRawMessageCallbackU3Ek__BackingField_12;
// System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestEventCallbackCode>k__BackingField
uint8_t ___U3CLongestEventCallbackCodeU3Ek__BackingField_13;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestDeltaBetweenDispatching>k__BackingField
int32_t ___U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<LongestDeltaBetweenSending>k__BackingField
int32_t ___U3CLongestDeltaBetweenSendingU3Ek__BackingField_15;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<DispatchIncomingCommandsCalls>k__BackingField
int32_t ___U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16;
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::<SendOutgoingCommandsCalls>k__BackingField
int32_t ___U3CSendOutgoingCommandsCallsU3Ek__BackingField_17;
public:
inline static int32_t get_offset_of_timeOfLastDispatchCall_0() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___timeOfLastDispatchCall_0)); }
inline int32_t get_timeOfLastDispatchCall_0() const { return ___timeOfLastDispatchCall_0; }
inline int32_t* get_address_of_timeOfLastDispatchCall_0() { return &___timeOfLastDispatchCall_0; }
inline void set_timeOfLastDispatchCall_0(int32_t value)
{
___timeOfLastDispatchCall_0 = value;
}
inline static int32_t get_offset_of_timeOfLastSendCall_1() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___timeOfLastSendCall_1)); }
inline int32_t get_timeOfLastSendCall_1() const { return ___timeOfLastSendCall_1; }
inline int32_t* get_address_of_timeOfLastSendCall_1() { return &___timeOfLastSendCall_1; }
inline void set_timeOfLastSendCall_1(int32_t value)
{
___timeOfLastSendCall_1 = value;
}
inline static int32_t get_offset_of_U3COperationByteCountU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3COperationByteCountU3Ek__BackingField_2)); }
inline int32_t get_U3COperationByteCountU3Ek__BackingField_2() const { return ___U3COperationByteCountU3Ek__BackingField_2; }
inline int32_t* get_address_of_U3COperationByteCountU3Ek__BackingField_2() { return &___U3COperationByteCountU3Ek__BackingField_2; }
inline void set_U3COperationByteCountU3Ek__BackingField_2(int32_t value)
{
___U3COperationByteCountU3Ek__BackingField_2 = value;
}
inline static int32_t get_offset_of_U3COperationCountU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3COperationCountU3Ek__BackingField_3)); }
inline int32_t get_U3COperationCountU3Ek__BackingField_3() const { return ___U3COperationCountU3Ek__BackingField_3; }
inline int32_t* get_address_of_U3COperationCountU3Ek__BackingField_3() { return &___U3COperationCountU3Ek__BackingField_3; }
inline void set_U3COperationCountU3Ek__BackingField_3(int32_t value)
{
___U3COperationCountU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_U3CResultByteCountU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CResultByteCountU3Ek__BackingField_4)); }
inline int32_t get_U3CResultByteCountU3Ek__BackingField_4() const { return ___U3CResultByteCountU3Ek__BackingField_4; }
inline int32_t* get_address_of_U3CResultByteCountU3Ek__BackingField_4() { return &___U3CResultByteCountU3Ek__BackingField_4; }
inline void set_U3CResultByteCountU3Ek__BackingField_4(int32_t value)
{
___U3CResultByteCountU3Ek__BackingField_4 = value;
}
inline static int32_t get_offset_of_U3CResultCountU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CResultCountU3Ek__BackingField_5)); }
inline int32_t get_U3CResultCountU3Ek__BackingField_5() const { return ___U3CResultCountU3Ek__BackingField_5; }
inline int32_t* get_address_of_U3CResultCountU3Ek__BackingField_5() { return &___U3CResultCountU3Ek__BackingField_5; }
inline void set_U3CResultCountU3Ek__BackingField_5(int32_t value)
{
___U3CResultCountU3Ek__BackingField_5 = value;
}
inline static int32_t get_offset_of_U3CEventByteCountU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CEventByteCountU3Ek__BackingField_6)); }
inline int32_t get_U3CEventByteCountU3Ek__BackingField_6() const { return ___U3CEventByteCountU3Ek__BackingField_6; }
inline int32_t* get_address_of_U3CEventByteCountU3Ek__BackingField_6() { return &___U3CEventByteCountU3Ek__BackingField_6; }
inline void set_U3CEventByteCountU3Ek__BackingField_6(int32_t value)
{
___U3CEventByteCountU3Ek__BackingField_6 = value;
}
inline static int32_t get_offset_of_U3CEventCountU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CEventCountU3Ek__BackingField_7)); }
inline int32_t get_U3CEventCountU3Ek__BackingField_7() const { return ___U3CEventCountU3Ek__BackingField_7; }
inline int32_t* get_address_of_U3CEventCountU3Ek__BackingField_7() { return &___U3CEventCountU3Ek__BackingField_7; }
inline void set_U3CEventCountU3Ek__BackingField_7(int32_t value)
{
___U3CEventCountU3Ek__BackingField_7 = value;
}
inline static int32_t get_offset_of_U3CLongestOpResponseCallbackU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestOpResponseCallbackU3Ek__BackingField_8)); }
inline int32_t get_U3CLongestOpResponseCallbackU3Ek__BackingField_8() const { return ___U3CLongestOpResponseCallbackU3Ek__BackingField_8; }
inline int32_t* get_address_of_U3CLongestOpResponseCallbackU3Ek__BackingField_8() { return &___U3CLongestOpResponseCallbackU3Ek__BackingField_8; }
inline void set_U3CLongestOpResponseCallbackU3Ek__BackingField_8(int32_t value)
{
___U3CLongestOpResponseCallbackU3Ek__BackingField_8 = value;
}
inline static int32_t get_offset_of_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9)); }
inline uint8_t get_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9() const { return ___U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9; }
inline uint8_t* get_address_of_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9() { return &___U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9; }
inline void set_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9(uint8_t value)
{
___U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9 = value;
}
inline static int32_t get_offset_of_U3CLongestEventCallbackU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestEventCallbackU3Ek__BackingField_10)); }
inline int32_t get_U3CLongestEventCallbackU3Ek__BackingField_10() const { return ___U3CLongestEventCallbackU3Ek__BackingField_10; }
inline int32_t* get_address_of_U3CLongestEventCallbackU3Ek__BackingField_10() { return &___U3CLongestEventCallbackU3Ek__BackingField_10; }
inline void set_U3CLongestEventCallbackU3Ek__BackingField_10(int32_t value)
{
___U3CLongestEventCallbackU3Ek__BackingField_10 = value;
}
inline static int32_t get_offset_of_U3CLongestMessageCallbackU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestMessageCallbackU3Ek__BackingField_11)); }
inline int32_t get_U3CLongestMessageCallbackU3Ek__BackingField_11() const { return ___U3CLongestMessageCallbackU3Ek__BackingField_11; }
inline int32_t* get_address_of_U3CLongestMessageCallbackU3Ek__BackingField_11() { return &___U3CLongestMessageCallbackU3Ek__BackingField_11; }
inline void set_U3CLongestMessageCallbackU3Ek__BackingField_11(int32_t value)
{
___U3CLongestMessageCallbackU3Ek__BackingField_11 = value;
}
inline static int32_t get_offset_of_U3CLongestRawMessageCallbackU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestRawMessageCallbackU3Ek__BackingField_12)); }
inline int32_t get_U3CLongestRawMessageCallbackU3Ek__BackingField_12() const { return ___U3CLongestRawMessageCallbackU3Ek__BackingField_12; }
inline int32_t* get_address_of_U3CLongestRawMessageCallbackU3Ek__BackingField_12() { return &___U3CLongestRawMessageCallbackU3Ek__BackingField_12; }
inline void set_U3CLongestRawMessageCallbackU3Ek__BackingField_12(int32_t value)
{
___U3CLongestRawMessageCallbackU3Ek__BackingField_12 = value;
}
inline static int32_t get_offset_of_U3CLongestEventCallbackCodeU3Ek__BackingField_13() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestEventCallbackCodeU3Ek__BackingField_13)); }
inline uint8_t get_U3CLongestEventCallbackCodeU3Ek__BackingField_13() const { return ___U3CLongestEventCallbackCodeU3Ek__BackingField_13; }
inline uint8_t* get_address_of_U3CLongestEventCallbackCodeU3Ek__BackingField_13() { return &___U3CLongestEventCallbackCodeU3Ek__BackingField_13; }
inline void set_U3CLongestEventCallbackCodeU3Ek__BackingField_13(uint8_t value)
{
___U3CLongestEventCallbackCodeU3Ek__BackingField_13 = value;
}
inline static int32_t get_offset_of_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14)); }
inline int32_t get_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14() const { return ___U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14; }
inline int32_t* get_address_of_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14() { return &___U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14; }
inline void set_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14(int32_t value)
{
___U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14 = value;
}
inline static int32_t get_offset_of_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CLongestDeltaBetweenSendingU3Ek__BackingField_15)); }
inline int32_t get_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15() const { return ___U3CLongestDeltaBetweenSendingU3Ek__BackingField_15; }
inline int32_t* get_address_of_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15() { return &___U3CLongestDeltaBetweenSendingU3Ek__BackingField_15; }
inline void set_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15(int32_t value)
{
___U3CLongestDeltaBetweenSendingU3Ek__BackingField_15 = value;
}
inline static int32_t get_offset_of_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16)); }
inline int32_t get_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16() const { return ___U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16; }
inline int32_t* get_address_of_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16() { return &___U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16; }
inline void set_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16(int32_t value)
{
___U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16 = value;
}
inline static int32_t get_offset_of_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A, ___U3CSendOutgoingCommandsCallsU3Ek__BackingField_17)); }
inline int32_t get_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17() const { return ___U3CSendOutgoingCommandsCallsU3Ek__BackingField_17; }
inline int32_t* get_address_of_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17() { return &___U3CSendOutgoingCommandsCallsU3Ek__BackingField_17; }
inline void set_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17(int32_t value)
{
___U3CSendOutgoingCommandsCallsU3Ek__BackingField_17 = value;
}
};
// ExitGames.Client.Photon.Version
struct Version_tA7C397D7133E8F35E85A8C9DDB8A0DD5310091AB : public RuntimeObject
{
public:
public:
};
struct Version_tA7C397D7133E8F35E85A8C9DDB8A0DD5310091AB_StaticFields
{
public:
// System.Byte[] ExitGames.Client.Photon.Version::clientVersion
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___clientVersion_0;
public:
inline static int32_t get_offset_of_clientVersion_0() { return static_cast<int32_t>(offsetof(Version_tA7C397D7133E8F35E85A8C9DDB8A0DD5310091AB_StaticFields, ___clientVersion_0)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_clientVersion_0() const { return ___clientVersion_0; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_clientVersion_0() { return &___clientVersion_0; }
inline void set_clientVersion_0(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___clientVersion_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___clientVersion_0), (void*)value);
}
};
// Photon.SocketServer.Numeric.BigInteger
struct BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 : public RuntimeObject
{
public:
// System.UInt32[] Photon.SocketServer.Numeric.BigInteger::data
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___data_1;
// System.Int32 Photon.SocketServer.Numeric.BigInteger::dataLength
int32_t ___dataLength_2;
public:
inline static int32_t get_offset_of_data_1() { return static_cast<int32_t>(offsetof(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1, ___data_1)); }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* get_data_1() const { return ___data_1; }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB** get_address_of_data_1() { return &___data_1; }
inline void set_data_1(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* value)
{
___data_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___data_1), (void*)value);
}
inline static int32_t get_offset_of_dataLength_2() { return static_cast<int32_t>(offsetof(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1, ___dataLength_2)); }
inline int32_t get_dataLength_2() const { return ___dataLength_2; }
inline int32_t* get_address_of_dataLength_2() { return &___dataLength_2; }
inline void set_dataLength_2(int32_t value)
{
___dataLength_2 = value;
}
};
struct BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_StaticFields
{
public:
// System.Int32[] Photon.SocketServer.Numeric.BigInteger::primesBelow2000
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___primesBelow2000_0;
public:
inline static int32_t get_offset_of_primesBelow2000_0() { return static_cast<int32_t>(offsetof(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_StaticFields, ___primesBelow2000_0)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_primesBelow2000_0() const { return ___primesBelow2000_0; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_primesBelow2000_0() { return &___primesBelow2000_0; }
inline void set_primesBelow2000_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___primesBelow2000_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___primesBelow2000_0), (void*)value);
}
};
// Photon.SocketServer.Security.DiffieHellmanCryptoProvider
struct DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D : public RuntimeObject
{
public:
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::prime
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___prime_1;
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::secret
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___secret_2;
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::publicKey
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___publicKey_3;
// System.Security.Cryptography.Rijndael Photon.SocketServer.Security.DiffieHellmanCryptoProvider::crypto
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * ___crypto_4;
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::sharedKey
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKey_5;
public:
inline static int32_t get_offset_of_prime_1() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D, ___prime_1)); }
inline BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * get_prime_1() const { return ___prime_1; }
inline BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 ** get_address_of_prime_1() { return &___prime_1; }
inline void set_prime_1(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * value)
{
___prime_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___prime_1), (void*)value);
}
inline static int32_t get_offset_of_secret_2() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D, ___secret_2)); }
inline BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * get_secret_2() const { return ___secret_2; }
inline BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 ** get_address_of_secret_2() { return &___secret_2; }
inline void set_secret_2(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * value)
{
___secret_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___secret_2), (void*)value);
}
inline static int32_t get_offset_of_publicKey_3() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D, ___publicKey_3)); }
inline BigInteger_<KEY> * get_publicKey_3() const { return ___publicKey_3; }
inline BigInteger_<KEY> ** get_address_of_publicKey_3() { return &___publicKey_3; }
inline void set_publicKey_3(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * value)
{
___publicKey_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___publicKey_3), (void*)value);
}
inline static int32_t get_offset_of_crypto_4() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D, ___crypto_4)); }
inline Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * get_crypto_4() const { return ___crypto_4; }
inline Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC ** get_address_of_crypto_4() { return &___crypto_4; }
inline void set_crypto_4(Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * value)
{
___crypto_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___crypto_4), (void*)value);
}
inline static int32_t get_offset_of_sharedKey_5() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D, ___sharedKey_5)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_sharedKey_5() const { return ___sharedKey_5; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_sharedKey_5() { return &___sharedKey_5; }
inline void set_sharedKey_5(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___sharedKey_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___sharedKey_5), (void*)value);
}
};
struct DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_StaticFields
{
public:
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::primeRoot
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___primeRoot_0;
public:
inline static int32_t get_offset_of_primeRoot_0() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_StaticFields, ___primeRoot_0)); }
inline BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * get_primeRoot_0() const { return ___primeRoot_0; }
inline BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 ** get_address_of_primeRoot_0() { return &___primeRoot_0; }
inline void set_primeRoot_0(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * value)
{
___primeRoot_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___primeRoot_0), (void*)value);
}
};
// Photon.SocketServer.Security.OakleyGroups
struct OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F : public RuntimeObject
{
public:
public:
};
struct OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields
{
public:
// System.Int32 Photon.SocketServer.Security.OakleyGroups::Generator
int32_t ___Generator_0;
// System.Byte[] Photon.SocketServer.Security.OakleyGroups::OakleyPrime768
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___OakleyPrime768_1;
// System.Byte[] Photon.SocketServer.Security.OakleyGroups::OakleyPrime1024
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___OakleyPrime1024_2;
// System.Byte[] Photon.SocketServer.Security.OakleyGroups::OakleyPrime1536
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___OakleyPrime1536_3;
public:
inline static int32_t get_offset_of_Generator_0() { return static_cast<int32_t>(offsetof(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields, ___Generator_0)); }
inline int32_t get_Generator_0() const { return ___Generator_0; }
inline int32_t* get_address_of_Generator_0() { return &___Generator_0; }
inline void set_Generator_0(int32_t value)
{
___Generator_0 = value;
}
inline static int32_t get_offset_of_OakleyPrime768_1() { return static_cast<int32_t>(offsetof(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields, ___OakleyPrime768_1)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_OakleyPrime768_1() const { return ___OakleyPrime768_1; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_OakleyPrime768_1() { return &___OakleyPrime768_1; }
inline void set_OakleyPrime768_1(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___OakleyPrime768_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___OakleyPrime768_1), (void*)value);
}
inline static int32_t get_offset_of_OakleyPrime1024_2() { return static_cast<int32_t>(offsetof(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields, ___OakleyPrime1024_2)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_OakleyPrime1024_2() const { return ___OakleyPrime1024_2; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_OakleyPrime1024_2() { return &___OakleyPrime1024_2; }
inline void set_OakleyPrime1024_2(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___OakleyPrime1024_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___OakleyPrime1024_2), (void*)value);
}
inline static int32_t get_offset_of_OakleyPrime1536_3() { return static_cast<int32_t>(offsetof(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields, ___OakleyPrime1536_3)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_OakleyPrime1536_3() const { return ___OakleyPrime1536_3; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_OakleyPrime1536_3() { return &___OakleyPrime1536_3; }
inline void set_OakleyPrime1536_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___OakleyPrime1536_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___OakleyPrime1536_3), (void*)value);
}
};
struct Il2CppArrayBounds;
// System.Array
// System.Collections.Generic.Dictionary`2<System.Byte,System.Object>
struct Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D : public RuntimeObject
{
public:
// System.Int32[] System.Collections.Generic.Dictionary`2::buckets
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___buckets_0;
// System.Collections.Generic.Dictionary`2_Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::entries
EntryU5BU5D_tE72F338533CAB40C554B7EB60D0842E51634A883* ___entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::count
int32_t ___count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::version
int32_t ___version_3;
// System.Int32 System.Collections.Generic.Dictionary`2::freeList
int32_t ___freeList_4;
// System.Int32 System.Collections.Generic.Dictionary`2::freeCount
int32_t ___freeCount_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::comparer
RuntimeObject* ___comparer_6;
// System.Collections.Generic.Dictionary`2_KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::keys
KeyCollection_tACF1090C1AD47AB88B96A6EC589146F41460761E * ___keys_7;
// System.Collections.Generic.Dictionary`2_ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t45171E77ABFA412BFFA2BC69FCE8561DAF9738B9 * ___values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject * ____syncRoot_9;
public:
inline static int32_t get_offset_of_buckets_0() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___buckets_0)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_buckets_0() const { return ___buckets_0; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_buckets_0() { return &___buckets_0; }
inline void set_buckets_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___buckets_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___buckets_0), (void*)value);
}
inline static int32_t get_offset_of_entries_1() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___entries_1)); }
inline EntryU5BU5D_tE72F338533CAB40C554B7EB60D0842E51634A883* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_tE72F338533CAB40C554B7EB60D0842E51634A883** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_tE72F338533CAB40C554B7EB60D0842E51634A883* value)
{
___entries_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___entries_1), (void*)value);
}
inline static int32_t get_offset_of_count_2() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___count_2)); }
inline int32_t get_count_2() const { return ___count_2; }
inline int32_t* get_address_of_count_2() { return &___count_2; }
inline void set_count_2(int32_t value)
{
___count_2 = value;
}
inline static int32_t get_offset_of_version_3() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___version_3)); }
inline int32_t get_version_3() const { return ___version_3; }
inline int32_t* get_address_of_version_3() { return &___version_3; }
inline void set_version_3(int32_t value)
{
___version_3 = value;
}
inline static int32_t get_offset_of_freeList_4() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___freeList_4)); }
inline int32_t get_freeList_4() const { return ___freeList_4; }
inline int32_t* get_address_of_freeList_4() { return &___freeList_4; }
inline void set_freeList_4(int32_t value)
{
___freeList_4 = value;
}
inline static int32_t get_offset_of_freeCount_5() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___freeCount_5)); }
inline int32_t get_freeCount_5() const { return ___freeCount_5; }
inline int32_t* get_address_of_freeCount_5() { return &___freeCount_5; }
inline void set_freeCount_5(int32_t value)
{
___freeCount_5 = value;
}
inline static int32_t get_offset_of_comparer_6() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___comparer_6)); }
inline RuntimeObject* get_comparer_6() const { return ___comparer_6; }
inline RuntimeObject** get_address_of_comparer_6() { return &___comparer_6; }
inline void set_comparer_6(RuntimeObject* value)
{
___comparer_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___comparer_6), (void*)value);
}
inline static int32_t get_offset_of_keys_7() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___keys_7)); }
inline KeyCollection_tACF1090C1AD47AB88B96A6EC589146F41460761E * get_keys_7() const { return ___keys_7; }
inline KeyCollection_tACF1090C1AD47AB88B96A6EC589146F41460761E ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_tACF1090C1AD47AB88B96A6EC589146F41460761E * value)
{
___keys_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___keys_7), (void*)value);
}
inline static int32_t get_offset_of_values_8() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ___values_8)); }
inline ValueCollection_t45171E77ABFA412BFFA2BC69FCE8561DAF9738B9 * get_values_8() const { return ___values_8; }
inline ValueCollection_t45171E77ABFA412BFFA2BC69FCE8561DAF9738B9 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t45171E77ABFA412BFFA2BC69FCE8561DAF9738B9 * value)
{
___values_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___values_8), (void*)value);
}
inline static int32_t get_offset_of__syncRoot_9() { return static_cast<int32_t>(offsetof(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D, ____syncRoot_9)); }
inline RuntimeObject * get__syncRoot_9() const { return ____syncRoot_9; }
inline RuntimeObject ** get_address_of__syncRoot_9() { return &____syncRoot_9; }
inline void set__syncRoot_9(RuntimeObject * value)
{
____syncRoot_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_9), (void*)value);
}
};
// System.Collections.Generic.Dictionary`2<System.Object,System.Object>
struct Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA : public RuntimeObject
{
public:
// System.Int32[] System.Collections.Generic.Dictionary`2::buckets
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___buckets_0;
// System.Collections.Generic.Dictionary`2_Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::entries
EntryU5BU5D_t9EC04215E0A25794290249C0F6D7EA694596D2BE* ___entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::count
int32_t ___count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::version
int32_t ___version_3;
// System.Int32 System.Collections.Generic.Dictionary`2::freeList
int32_t ___freeList_4;
// System.Int32 System.Collections.Generic.Dictionary`2::freeCount
int32_t ___freeCount_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::comparer
RuntimeObject* ___comparer_6;
// System.Collections.Generic.Dictionary`2_KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::keys
KeyCollection_t0394DE2BA7C2C82605C6E9DEBB21A8C5C792E97C * ___keys_7;
// System.Collections.Generic.Dictionary`2_ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_t0816666499CBD11E58E1E7C79A4EFC2AA47E08A2 * ___values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject * ____syncRoot_9;
public:
inline static int32_t get_offset_of_buckets_0() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___buckets_0)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_buckets_0() const { return ___buckets_0; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_buckets_0() { return &___buckets_0; }
inline void set_buckets_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___buckets_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___buckets_0), (void*)value);
}
inline static int32_t get_offset_of_entries_1() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___entries_1)); }
inline EntryU5BU5D_t9EC04215E0A25794290249C0F6D7EA694596D2BE* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t9EC04215E0A25794290249C0F6D7EA694596D2BE** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t9EC04215E0A25794290249C0F6D7EA694596D2BE* value)
{
___entries_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___entries_1), (void*)value);
}
inline static int32_t get_offset_of_count_2() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___count_2)); }
inline int32_t get_count_2() const { return ___count_2; }
inline int32_t* get_address_of_count_2() { return &___count_2; }
inline void set_count_2(int32_t value)
{
___count_2 = value;
}
inline static int32_t get_offset_of_version_3() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___version_3)); }
inline int32_t get_version_3() const { return ___version_3; }
inline int32_t* get_address_of_version_3() { return &___version_3; }
inline void set_version_3(int32_t value)
{
___version_3 = value;
}
inline static int32_t get_offset_of_freeList_4() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___freeList_4)); }
inline int32_t get_freeList_4() const { return ___freeList_4; }
inline int32_t* get_address_of_freeList_4() { return &___freeList_4; }
inline void set_freeList_4(int32_t value)
{
___freeList_4 = value;
}
inline static int32_t get_offset_of_freeCount_5() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___freeCount_5)); }
inline int32_t get_freeCount_5() const { return ___freeCount_5; }
inline int32_t* get_address_of_freeCount_5() { return &___freeCount_5; }
inline void set_freeCount_5(int32_t value)
{
___freeCount_5 = value;
}
inline static int32_t get_offset_of_comparer_6() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___comparer_6)); }
inline RuntimeObject* get_comparer_6() const { return ___comparer_6; }
inline RuntimeObject** get_address_of_comparer_6() { return &___comparer_6; }
inline void set_comparer_6(RuntimeObject* value)
{
___comparer_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___comparer_6), (void*)value);
}
inline static int32_t get_offset_of_keys_7() { return static_cast<int32_t>(offsetof(Dictionary_2_t<KEY>, ___keys_7)); }
inline KeyCollection_t0394DE2BA7C2C82605C6E9DEBB21A8C5C792E97C * get_keys_7() const { return ___keys_7; }
inline KeyCollection_t0394DE2BA7C2C82605C6E9DEBB21A8C5C792E97C ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_t0394DE2BA7C2C82605C6E9DEBB21A8C5C792E97C * value)
{
___keys_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___keys_7), (void*)value);
}
inline static int32_t get_offset_of_values_8() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ___values_8)); }
inline ValueCollection_t0816666499CBD11E58E1E7C79A4EFC2AA47E08A2 * get_values_8() const { return ___values_8; }
inline ValueCollection_t0816666499CBD11E58E1E7C79A4EFC2AA47E08A2 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_t0816666499CBD11E58E1E7C79A4EFC2AA47E08A2 * value)
{
___values_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___values_8), (void*)value);
}
inline static int32_t get_offset_of__syncRoot_9() { return static_cast<int32_t>(offsetof(Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA, ____syncRoot_9)); }
inline RuntimeObject * get__syncRoot_9() const { return ____syncRoot_9; }
inline RuntimeObject ** get_address_of__syncRoot_9() { return &____syncRoot_9; }
inline void set__syncRoot_9(RuntimeObject * value)
{
____syncRoot_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_9), (void*)value);
}
};
// System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>
struct List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B, ____items_1)); }
inline StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E* get__items_1() const { return ____items_1; }
inline StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B_StaticFields, ____emptyArray_5)); }
inline StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E* get__emptyArray_5() const { return ____emptyArray_5; }
inline StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(StreamBufferU5BU5D_t76F273CAAAC8E8526D31A7DB87AAD50FC184F31E* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<System.Object>
struct List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D, ____items_1)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__items_1() const { return ____items_1; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D_StaticFields, ____emptyArray_5)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__emptyArray_5() const { return ____emptyArray_5; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<System.Reflection.MethodInfo>
struct List_1_t8693F442D94ED2E09D894940915C961D2F63C69B : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t8693F442D94ED2E09D894940915C961D2F63C69B, ____items_1)); }
inline MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* get__items_1() const { return ____items_1; }
inline MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t8693F442D94ED2E09D894940915C961D2F63C69B, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t8693F442D94ED2E09D894940915C961D2F63C69B, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t8693F442D94ED2E09D894940915C961D2F63C69B, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t8693F442D94ED2E09D894940915C961D2F63C69B_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t8693F442D94ED2E09D894940915C961D2F63C69B_StaticFields, ____emptyArray_5)); }
inline MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* get__emptyArray_5() const { return ____emptyArray_5; }
inline MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<System.Threading.Thread>
struct List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D, ____items_1)); }
inline ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866* get__items_1() const { return ____items_1; }
inline ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D_StaticFields, ____emptyArray_5)); }
inline ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866* get__emptyArray_5() const { return ____emptyArray_5; }
inline ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ThreadU5BU5D_t300217D81F9B791A2813CC625D384FA082DA4866* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase_MyAction>
struct Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.Queue`1::_array
MyActionU5BU5D_t920C8920AF664822853B8A9412E90DFAA036B69A* ____array_0;
// System.Int32 System.Collections.Generic.Queue`1::_head
int32_t ____head_1;
// System.Int32 System.Collections.Generic.Queue`1::_tail
int32_t ____tail_2;
// System.Int32 System.Collections.Generic.Queue`1::_size
int32_t ____size_3;
// System.Int32 System.Collections.Generic.Queue`1::_version
int32_t ____version_4;
// System.Object System.Collections.Generic.Queue`1::_syncRoot
RuntimeObject * ____syncRoot_5;
public:
inline static int32_t get_offset_of__array_0() { return static_cast<int32_t>(offsetof(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73, ____array_0)); }
inline MyActionU5BU5D_t920C8920AF664822853B8A9412E90DFAA036B69A* get__array_0() const { return ____array_0; }
inline MyActionU5BU5D_t920C8920AF664822853B8A9412E90DFAA036B69A** get_address_of__array_0() { return &____array_0; }
inline void set__array_0(MyActionU5BU5D_t920C8920AF664822853B8A9412E90DFAA036B69A* value)
{
____array_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____array_0), (void*)value);
}
inline static int32_t get_offset_of__head_1() { return static_cast<int32_t>(offsetof(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73, ____head_1)); }
inline int32_t get__head_1() const { return ____head_1; }
inline int32_t* get_address_of__head_1() { return &____head_1; }
inline void set__head_1(int32_t value)
{
____head_1 = value;
}
inline static int32_t get_offset_of__tail_2() { return static_cast<int32_t>(offsetof(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73, ____tail_2)); }
inline int32_t get__tail_2() const { return ____tail_2; }
inline int32_t* get_address_of__tail_2() { return &____tail_2; }
inline void set__tail_2(int32_t value)
{
____tail_2 = value;
}
inline static int32_t get_offset_of__size_3() { return static_cast<int32_t>(offsetof(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73, ____size_3)); }
inline int32_t get__size_3() const { return ____size_3; }
inline int32_t* get_address_of__size_3() { return &____size_3; }
inline void set__size_3(int32_t value)
{
____size_3 = value;
}
inline static int32_t get_offset_of__version_4() { return static_cast<int32_t>(offsetof(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73, ____version_4)); }
inline int32_t get__version_4() const { return ____version_4; }
inline int32_t* get_address_of__version_4() { return &____version_4; }
inline void set__version_4(int32_t value)
{
____version_4 = value;
}
inline static int32_t get_offset_of__syncRoot_5() { return static_cast<int32_t>(offsetof(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73, ____syncRoot_5)); }
inline RuntimeObject * get__syncRoot_5() const { return ____syncRoot_5; }
inline RuntimeObject ** get_address_of__syncRoot_5() { return &____syncRoot_5; }
inline void set__syncRoot_5(RuntimeObject * value)
{
____syncRoot_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_5), (void*)value);
}
};
// System.Collections.Generic.Queue`1<System.Byte[]>
struct Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.Queue`1::_array
ByteU5BU5DU5BU5D_t1DE3927D87FD236507BFE9CA7E3EEA348C53E0E1* ____array_0;
// System.Int32 System.Collections.Generic.Queue`1::_head
int32_t ____head_1;
// System.Int32 System.Collections.Generic.Queue`1::_tail
int32_t ____tail_2;
// System.Int32 System.Collections.Generic.Queue`1::_size
int32_t ____size_3;
// System.Int32 System.Collections.Generic.Queue`1::_version
int32_t ____version_4;
// System.Object System.Collections.Generic.Queue`1::_syncRoot
RuntimeObject * ____syncRoot_5;
public:
inline static int32_t get_offset_of__array_0() { return static_cast<int32_t>(offsetof(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519, ____array_0)); }
inline ByteU5BU5DU5BU5D_t1DE3927D87FD236507BFE9CA7E3EEA348C53E0E1* get__array_0() const { return ____array_0; }
inline ByteU5BU5DU5BU5D_t1DE3927D87FD236507BFE9CA7E3EEA348C53E0E1** get_address_of__array_0() { return &____array_0; }
inline void set__array_0(ByteU5BU5DU5BU5D_t1DE3927D87FD236507BFE9CA7E3EEA348C53E0E1* value)
{
____array_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____array_0), (void*)value);
}
inline static int32_t get_offset_of__head_1() { return static_cast<int32_t>(offsetof(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519, ____head_1)); }
inline int32_t get__head_1() const { return ____head_1; }
inline int32_t* get_address_of__head_1() { return &____head_1; }
inline void set__head_1(int32_t value)
{
____head_1 = value;
}
inline static int32_t get_offset_of__tail_2() { return static_cast<int32_t>(offsetof(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519, ____tail_2)); }
inline int32_t get__tail_2() const { return ____tail_2; }
inline int32_t* get_address_of__tail_2() { return &____tail_2; }
inline void set__tail_2(int32_t value)
{
____tail_2 = value;
}
inline static int32_t get_offset_of__size_3() { return static_cast<int32_t>(offsetof(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519, ____size_3)); }
inline int32_t get__size_3() const { return ____size_3; }
inline int32_t* get_address_of__size_3() { return &____size_3; }
inline void set__size_3(int32_t value)
{
____size_3 = value;
}
inline static int32_t get_offset_of__version_4() { return static_cast<int32_t>(offsetof(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519, ____version_4)); }
inline int32_t get__version_4() const { return ____version_4; }
inline int32_t* get_address_of__version_4() { return &____version_4; }
inline void set__version_4(int32_t value)
{
____version_4 = value;
}
inline static int32_t get_offset_of__syncRoot_5() { return static_cast<int32_t>(offsetof(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519, ____syncRoot_5)); }
inline RuntimeObject * get__syncRoot_5() const { return ____syncRoot_5; }
inline RuntimeObject ** get_address_of__syncRoot_5() { return &____syncRoot_5; }
inline void set__syncRoot_5(RuntimeObject * value)
{
____syncRoot_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_5), (void*)value);
}
};
// System.Collections.Generic.Queue`1<System.Object>
struct Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.Queue`1::_array
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____array_0;
// System.Int32 System.Collections.Generic.Queue`1::_head
int32_t ____head_1;
// System.Int32 System.Collections.Generic.Queue`1::_tail
int32_t ____tail_2;
// System.Int32 System.Collections.Generic.Queue`1::_size
int32_t ____size_3;
// System.Int32 System.Collections.Generic.Queue`1::_version
int32_t ____version_4;
// System.Object System.Collections.Generic.Queue`1::_syncRoot
RuntimeObject * ____syncRoot_5;
public:
inline static int32_t get_offset_of__array_0() { return static_cast<int32_t>(offsetof(Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0, ____array_0)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__array_0() const { return ____array_0; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__array_0() { return &____array_0; }
inline void set__array_0(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____array_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____array_0), (void*)value);
}
inline static int32_t get_offset_of__head_1() { return static_cast<int32_t>(offsetof(Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0, ____head_1)); }
inline int32_t get__head_1() const { return ____head_1; }
inline int32_t* get_address_of__head_1() { return &____head_1; }
inline void set__head_1(int32_t value)
{
____head_1 = value;
}
inline static int32_t get_offset_of__tail_2() { return static_cast<int32_t>(offsetof(Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0, ____tail_2)); }
inline int32_t get__tail_2() const { return ____tail_2; }
inline int32_t* get_address_of__tail_2() { return &____tail_2; }
inline void set__tail_2(int32_t value)
{
____tail_2 = value;
}
inline static int32_t get_offset_of__size_3() { return static_cast<int32_t>(offsetof(Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0, ____size_3)); }
inline int32_t get__size_3() const { return ____size_3; }
inline int32_t* get_address_of__size_3() { return &____size_3; }
inline void set__size_3(int32_t value)
{
____size_3 = value;
}
inline static int32_t get_offset_of__version_4() { return static_cast<int32_t>(offsetof(Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0, ____version_4)); }
inline int32_t get__version_4() const { return ____version_4; }
inline int32_t* get_address_of__version_4() { return &____version_4; }
inline void set__version_4(int32_t value)
{
____version_4 = value;
}
inline static int32_t get_offset_of__syncRoot_5() { return static_cast<int32_t>(offsetof(Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0, ____syncRoot_5)); }
inline RuntimeObject * get__syncRoot_5() const { return ____syncRoot_5; }
inline RuntimeObject ** get_address_of__syncRoot_5() { return &____syncRoot_5; }
inline void set__syncRoot_5(RuntimeObject * value)
{
____syncRoot_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_5), (void*)value);
}
};
// System.MarshalByRefObject
struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF : public RuntimeObject
{
public:
// System.Object System.MarshalByRefObject::_identity
RuntimeObject * ____identity_0;
public:
inline static int32_t get_offset_of__identity_0() { return static_cast<int32_t>(offsetof(MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF, ____identity_0)); }
inline RuntimeObject * get__identity_0() const { return ____identity_0; }
inline RuntimeObject ** get_address_of__identity_0() { return &____identity_0; }
inline void set__identity_0(RuntimeObject * value)
{
____identity_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&____identity_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.MarshalByRefObject
struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF_marshaled_pinvoke
{
Il2CppIUnknown* ____identity_0;
};
// Native definition for COM marshalling of System.MarshalByRefObject
struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF_marshaled_com
{
Il2CppIUnknown* ____identity_0;
};
// System.Random
struct Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F : public RuntimeObject
{
public:
// System.Int32 System.Random::inext
int32_t ___inext_3;
// System.Int32 System.Random::inextp
int32_t ___inextp_4;
// System.Int32[] System.Random::SeedArray
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___SeedArray_5;
public:
inline static int32_t get_offset_of_inext_3() { return static_cast<int32_t>(offsetof(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F, ___inext_3)); }
inline int32_t get_inext_3() const { return ___inext_3; }
inline int32_t* get_address_of_inext_3() { return &___inext_3; }
inline void set_inext_3(int32_t value)
{
___inext_3 = value;
}
inline static int32_t get_offset_of_inextp_4() { return static_cast<int32_t>(offsetof(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F, ___inextp_4)); }
inline int32_t get_inextp_4() const { return ___inextp_4; }
inline int32_t* get_address_of_inextp_4() { return &___inextp_4; }
inline void set_inextp_4(int32_t value)
{
___inextp_4 = value;
}
inline static int32_t get_offset_of_SeedArray_5() { return static_cast<int32_t>(offsetof(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F, ___SeedArray_5)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_SeedArray_5() const { return ___SeedArray_5; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_SeedArray_5() { return &___SeedArray_5; }
inline void set_SeedArray_5(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___SeedArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SeedArray_5), (void*)value);
}
};
// System.Reflection.MemberInfo
struct MemberInfo_t : public RuntimeObject
{
public:
public:
};
// System.Runtime.ConstrainedExecution.CriticalFinalizerObject
struct CriticalFinalizerObject_t8B006E1DEE084E781F5C0F3283E9226E28894DD9 : public RuntimeObject
{
public:
public:
};
// System.Security.Cryptography.HashAlgorithm
struct HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA : public RuntimeObject
{
public:
// System.Int32 System.Security.Cryptography.HashAlgorithm::HashSizeValue
int32_t ___HashSizeValue_0;
// System.Byte[] System.Security.Cryptography.HashAlgorithm::HashValue
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___HashValue_1;
// System.Int32 System.Security.Cryptography.HashAlgorithm::State
int32_t ___State_2;
// System.Boolean System.Security.Cryptography.HashAlgorithm::m_bDisposed
bool ___m_bDisposed_3;
public:
inline static int32_t get_offset_of_HashSizeValue_0() { return static_cast<int32_t>(offsetof(HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA, ___HashSizeValue_0)); }
inline int32_t get_HashSizeValue_0() const { return ___HashSizeValue_0; }
inline int32_t* get_address_of_HashSizeValue_0() { return &___HashSizeValue_0; }
inline void set_HashSizeValue_0(int32_t value)
{
___HashSizeValue_0 = value;
}
inline static int32_t get_offset_of_HashValue_1() { return static_cast<int32_t>(offsetof(HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA, ___HashValue_1)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_HashValue_1() const { return ___HashValue_1; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_HashValue_1() { return &___HashValue_1; }
inline void set_HashValue_1(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___HashValue_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HashValue_1), (void*)value);
}
inline static int32_t get_offset_of_State_2() { return static_cast<int32_t>(offsetof(HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA, ___State_2)); }
inline int32_t get_State_2() const { return ___State_2; }
inline int32_t* get_address_of_State_2() { return &___State_2; }
inline void set_State_2(int32_t value)
{
___State_2 = value;
}
inline static int32_t get_offset_of_m_bDisposed_3() { return static_cast<int32_t>(offsetof(HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA, ___m_bDisposed_3)); }
inline bool get_m_bDisposed_3() const { return ___m_bDisposed_3; }
inline bool* get_address_of_m_bDisposed_3() { return &___m_bDisposed_3; }
inline void set_m_bDisposed_3(bool value)
{
___m_bDisposed_3 = value;
}
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.Text.StringBuilder
struct StringBuilder_t : public RuntimeObject
{
public:
// System.Char[] System.Text.StringBuilder::m_ChunkChars
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___m_ChunkChars_0;
// System.Text.StringBuilder System.Text.StringBuilder::m_ChunkPrevious
StringBuilder_t * ___m_ChunkPrevious_1;
// System.Int32 System.Text.StringBuilder::m_ChunkLength
int32_t ___m_ChunkLength_2;
// System.Int32 System.Text.StringBuilder::m_ChunkOffset
int32_t ___m_ChunkOffset_3;
// System.Int32 System.Text.StringBuilder::m_MaxCapacity
int32_t ___m_MaxCapacity_4;
public:
inline static int32_t get_offset_of_m_ChunkChars_0() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkChars_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_m_ChunkChars_0() const { return ___m_ChunkChars_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_m_ChunkChars_0() { return &___m_ChunkChars_0; }
inline void set_m_ChunkChars_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___m_ChunkChars_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ChunkChars_0), (void*)value);
}
inline static int32_t get_offset_of_m_ChunkPrevious_1() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkPrevious_1)); }
inline StringBuilder_t * get_m_ChunkPrevious_1() const { return ___m_ChunkPrevious_1; }
inline StringBuilder_t ** get_address_of_m_ChunkPrevious_1() { return &___m_ChunkPrevious_1; }
inline void set_m_ChunkPrevious_1(StringBuilder_t * value)
{
___m_ChunkPrevious_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ChunkPrevious_1), (void*)value);
}
inline static int32_t get_offset_of_m_ChunkLength_2() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkLength_2)); }
inline int32_t get_m_ChunkLength_2() const { return ___m_ChunkLength_2; }
inline int32_t* get_address_of_m_ChunkLength_2() { return &___m_ChunkLength_2; }
inline void set_m_ChunkLength_2(int32_t value)
{
___m_ChunkLength_2 = value;
}
inline static int32_t get_offset_of_m_ChunkOffset_3() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkOffset_3)); }
inline int32_t get_m_ChunkOffset_3() const { return ___m_ChunkOffset_3; }
inline int32_t* get_address_of_m_ChunkOffset_3() { return &___m_ChunkOffset_3; }
inline void set_m_ChunkOffset_3(int32_t value)
{
___m_ChunkOffset_3 = value;
}
inline static int32_t get_offset_of_m_MaxCapacity_4() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_MaxCapacity_4)); }
inline int32_t get_m_MaxCapacity_4() const { return ___m_MaxCapacity_4; }
inline int32_t* get_address_of_m_MaxCapacity_4() { return &___m_MaxCapacity_4; }
inline void set_m_MaxCapacity_4(int32_t value)
{
___m_MaxCapacity_4 = value;
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D120
struct __StaticArrayInitTypeSizeU3D120_t44324233EE2D8944AD5DC0C090A0C9B51CABEE40
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D120_t44324233EE2D8944AD5DC0C090A0C9B51CABEE40__padding[120];
};
public:
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D1212
struct __StaticArrayInitTypeSizeU3D1212_t2C4570CCBE5E1A083504724A1CE7C429106B3427
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D1212_t2C4570CCBE5E1A083504724A1CE7C429106B3427__padding[1212];
};
public:
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D128
struct __StaticArrayInitTypeSizeU3D128_tB6C2805CC977A8DEFD5DDA6D11E0A72452EAC0F4
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D128_tB6C2805CC977A8DEFD5DDA6D11E0A72452EAC0F4__padding[128];
};
public:
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D192
struct __StaticArrayInitTypeSizeU3D192_t1DB998B26578730EC61CF66FEC2458A60D9F101F
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D192_t1DB998B26578730EC61CF66FEC2458A60D9F101F__padding[192];
};
public:
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D9
struct __StaticArrayInitTypeSizeU3D9_tFB912DFBF349339B8FF8FD90664028147FE90392
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D9_tFB912DFBF349339B8FF8FD90664028147FE90392__padding[9];
};
public:
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D96
struct __StaticArrayInitTypeSizeU3D96_t0957F41433C484353F0E88F744AFDAE7883CA585
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D96_t0957F41433C484353F0E88F744AFDAE7883CA585__padding[96];
};
public:
};
// ExitGames.Client.Photon.Hashtable
struct Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 : public Dictionary_2_t32F25F093828AA9F93CB11C2A2B4648FD62A09BA
{
public:
public:
};
// System.Boolean
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Byte
struct Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07
{
public:
// System.Byte System.Byte::m_value
uint8_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07, ___m_value_0)); }
inline uint8_t get_m_value_0() const { return ___m_value_0; }
inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint8_t value)
{
___m_value_0 = value;
}
};
// System.Char
struct Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9
{
public:
// System.Char System.Char::m_value
Il2CppChar ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9, ___m_value_0)); }
inline Il2CppChar get_m_value_0() const { return ___m_value_0; }
inline Il2CppChar* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(Il2CppChar value)
{
___m_value_0 = value;
}
};
struct Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9_StaticFields
{
public:
// System.Byte[] System.Char::categoryForLatin1
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___categoryForLatin1_3;
public:
inline static int32_t get_offset_of_categoryForLatin1_3() { return static_cast<int32_t>(offsetof(Char_tBF22D9FC341BE970735250BB6FF1A4A92BBA58B9_StaticFields, ___categoryForLatin1_3)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_categoryForLatin1_3() const { return ___categoryForLatin1_3; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_categoryForLatin1_3() { return &___categoryForLatin1_3; }
inline void set_categoryForLatin1_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___categoryForLatin1_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___categoryForLatin1_3), (void*)value);
}
};
// System.Collections.Generic.List`1_Enumerator<System.Object>
struct Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1_Enumerator::list
List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * ___list_0;
// System.Int32 System.Collections.Generic.List`1_Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1_Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1_Enumerator::current
RuntimeObject * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD, ___list_0)); }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * get_list_0() const { return ___list_0; }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD, ___current_3)); }
inline RuntimeObject * get_current_3() const { return ___current_3; }
inline RuntimeObject ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(RuntimeObject * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Collections.Generic.List`1_Enumerator<System.Threading.Thread>
struct Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1_Enumerator::list
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * ___list_0;
// System.Int32 System.Collections.Generic.List`1_Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1_Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1_Enumerator::current
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C, ___list_0)); }
inline List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * get_list_0() const { return ___list_0; }
inline List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C, ___current_3)); }
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * get_current_3() const { return ___current_3; }
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 ** get_address_of_current_3() { return &___current_3; }
inline void set_current_3(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_3), (void*)value);
}
};
// System.Double
struct Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409
{
public:
// System.Double System.Double::m_value
double ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409, ___m_value_0)); }
inline double get_m_value_0() const { return ___m_value_0; }
inline double* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(double value)
{
___m_value_0 = value;
}
};
struct Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409_StaticFields
{
public:
// System.Double System.Double::NegativeZero
double ___NegativeZero_7;
public:
inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409_StaticFields, ___NegativeZero_7)); }
inline double get_NegativeZero_7() const { return ___NegativeZero_7; }
inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; }
inline void set_NegativeZero_7(double value)
{
___NegativeZero_7 = value;
}
};
// System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
{
public:
public:
};
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
{
};
// System.IO.TextWriter
struct TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 : public MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF
{
public:
// System.Char[] System.IO.TextWriter::CoreNewLine
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___CoreNewLine_9;
// System.IFormatProvider System.IO.TextWriter::InternalFormatProvider
RuntimeObject* ___InternalFormatProvider_10;
public:
inline static int32_t get_offset_of_CoreNewLine_9() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0, ___CoreNewLine_9)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_CoreNewLine_9() const { return ___CoreNewLine_9; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_CoreNewLine_9() { return &___CoreNewLine_9; }
inline void set_CoreNewLine_9(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___CoreNewLine_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CoreNewLine_9), (void*)value);
}
inline static int32_t get_offset_of_InternalFormatProvider_10() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0, ___InternalFormatProvider_10)); }
inline RuntimeObject* get_InternalFormatProvider_10() const { return ___InternalFormatProvider_10; }
inline RuntimeObject** get_address_of_InternalFormatProvider_10() { return &___InternalFormatProvider_10; }
inline void set_InternalFormatProvider_10(RuntimeObject* value)
{
___InternalFormatProvider_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___InternalFormatProvider_10), (void*)value);
}
};
struct TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields
{
public:
// System.IO.TextWriter System.IO.TextWriter::Null
TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * ___Null_1;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteCharDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____WriteCharDelegate_2;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteStringDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____WriteStringDelegate_3;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteCharArrayRangeDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____WriteCharArrayRangeDelegate_4;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteLineCharDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____WriteLineCharDelegate_5;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteLineStringDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____WriteLineStringDelegate_6;
// System.Action`1<System.Object> System.IO.TextWriter::_WriteLineCharArrayRangeDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____WriteLineCharArrayRangeDelegate_7;
// System.Action`1<System.Object> System.IO.TextWriter::_FlushDelegate
Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * ____FlushDelegate_8;
public:
inline static int32_t get_offset_of_Null_1() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ___Null_1)); }
inline TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * get_Null_1() const { return ___Null_1; }
inline TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 ** get_address_of_Null_1() { return &___Null_1; }
inline void set_Null_1(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * value)
{
___Null_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Null_1), (void*)value);
}
inline static int32_t get_offset_of__WriteCharDelegate_2() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____WriteCharDelegate_2)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__WriteCharDelegate_2() const { return ____WriteCharDelegate_2; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__WriteCharDelegate_2() { return &____WriteCharDelegate_2; }
inline void set__WriteCharDelegate_2(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____WriteCharDelegate_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WriteCharDelegate_2), (void*)value);
}
inline static int32_t get_offset_of__WriteStringDelegate_3() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____WriteStringDelegate_3)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__WriteStringDelegate_3() const { return ____WriteStringDelegate_3; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__WriteStringDelegate_3() { return &____WriteStringDelegate_3; }
inline void set__WriteStringDelegate_3(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____WriteStringDelegate_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WriteStringDelegate_3), (void*)value);
}
inline static int32_t get_offset_of__WriteCharArrayRangeDelegate_4() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____WriteCharArrayRangeDelegate_4)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__WriteCharArrayRangeDelegate_4() const { return ____WriteCharArrayRangeDelegate_4; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__WriteCharArrayRangeDelegate_4() { return &____WriteCharArrayRangeDelegate_4; }
inline void set__WriteCharArrayRangeDelegate_4(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____WriteCharArrayRangeDelegate_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WriteCharArrayRangeDelegate_4), (void*)value);
}
inline static int32_t get_offset_of__WriteLineCharDelegate_5() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____WriteLineCharDelegate_5)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__WriteLineCharDelegate_5() const { return ____WriteLineCharDelegate_5; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__WriteLineCharDelegate_5() { return &____WriteLineCharDelegate_5; }
inline void set__WriteLineCharDelegate_5(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____WriteLineCharDelegate_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WriteLineCharDelegate_5), (void*)value);
}
inline static int32_t get_offset_of__WriteLineStringDelegate_6() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____WriteLineStringDelegate_6)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__WriteLineStringDelegate_6() const { return ____WriteLineStringDelegate_6; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__WriteLineStringDelegate_6() { return &____WriteLineStringDelegate_6; }
inline void set__WriteLineStringDelegate_6(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____WriteLineStringDelegate_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WriteLineStringDelegate_6), (void*)value);
}
inline static int32_t get_offset_of__WriteLineCharArrayRangeDelegate_7() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____WriteLineCharArrayRangeDelegate_7)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__WriteLineCharArrayRangeDelegate_7() const { return ____WriteLineCharArrayRangeDelegate_7; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__WriteLineCharArrayRangeDelegate_7() { return &____WriteLineCharArrayRangeDelegate_7; }
inline void set__WriteLineCharArrayRangeDelegate_7(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____WriteLineCharArrayRangeDelegate_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WriteLineCharArrayRangeDelegate_7), (void*)value);
}
inline static int32_t get_offset_of__FlushDelegate_8() { return static_cast<int32_t>(offsetof(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0_StaticFields, ____FlushDelegate_8)); }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * get__FlushDelegate_8() const { return ____FlushDelegate_8; }
inline Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 ** get_address_of__FlushDelegate_8() { return &____FlushDelegate_8; }
inline void set__FlushDelegate_8(Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * value)
{
____FlushDelegate_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&____FlushDelegate_8), (void*)value);
}
};
// System.Int32
struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.Int64
struct Int64_t7A386C2FF7B0280A0F516992401DDFCF0FF7B436
{
public:
// System.Int64 System.Int64::m_value
int64_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int64_t7A386C2FF7B0280A0F516992401DDFCF0FF7B436, ___m_value_0)); }
inline int64_t get_m_value_0() const { return ___m_value_0; }
inline int64_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int64_t value)
{
___m_value_0 = value;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Reflection.MethodBase
struct MethodBase_t : public MemberInfo_t
{
public:
public:
};
// System.Security.Cryptography.SHA256
struct SHA256_tF15350D910DF8AC1E6ADDBA904218F95554711BD : public HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA
{
public:
public:
};
// System.Threading.Thread
struct Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 : public CriticalFinalizerObject_t8B006E1DEE084E781F5C0F3283E9226E28894DD9
{
public:
// System.Threading.InternalThread System.Threading.Thread::internal_thread
InternalThread_tA4C58C2A7D15AF43C3E7507375E6D31DBBE7D192 * ___internal_thread_6;
// System.Object System.Threading.Thread::m_ThreadStartArg
RuntimeObject * ___m_ThreadStartArg_7;
// System.Object System.Threading.Thread::pending_exception
RuntimeObject * ___pending_exception_8;
// System.Security.Principal.IPrincipal System.Threading.Thread::principal
RuntimeObject* ___principal_9;
// System.Int32 System.Threading.Thread::principal_version
int32_t ___principal_version_10;
// System.MulticastDelegate System.Threading.Thread::m_Delegate
MulticastDelegate_t * ___m_Delegate_12;
// System.Threading.ExecutionContext System.Threading.Thread::m_ExecutionContext
ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 * ___m_ExecutionContext_13;
// System.Boolean System.Threading.Thread::m_ExecutionContextBelongsToOuterScope
bool ___m_ExecutionContextBelongsToOuterScope_14;
public:
inline static int32_t get_offset_of_internal_thread_6() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___internal_thread_6)); }
inline InternalThread_tA4C58C2A7D15AF43C3E7507375E6D31DBBE7D192 * get_internal_thread_6() const { return ___internal_thread_6; }
inline InternalThread_tA4C58C2A7D15AF43C3E7507375E6D31DBBE7D192 ** get_address_of_internal_thread_6() { return &___internal_thread_6; }
inline void set_internal_thread_6(InternalThread_tA4C58C2A7D15AF43C3E7507375E6D31DBBE7D192 * value)
{
___internal_thread_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___internal_thread_6), (void*)value);
}
inline static int32_t get_offset_of_m_ThreadStartArg_7() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___m_ThreadStartArg_7)); }
inline RuntimeObject * get_m_ThreadStartArg_7() const { return ___m_ThreadStartArg_7; }
inline RuntimeObject ** get_address_of_m_ThreadStartArg_7() { return &___m_ThreadStartArg_7; }
inline void set_m_ThreadStartArg_7(RuntimeObject * value)
{
___m_ThreadStartArg_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ThreadStartArg_7), (void*)value);
}
inline static int32_t get_offset_of_pending_exception_8() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___pending_exception_8)); }
inline RuntimeObject * get_pending_exception_8() const { return ___pending_exception_8; }
inline RuntimeObject ** get_address_of_pending_exception_8() { return &___pending_exception_8; }
inline void set_pending_exception_8(RuntimeObject * value)
{
___pending_exception_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___pending_exception_8), (void*)value);
}
inline static int32_t get_offset_of_principal_9() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___principal_9)); }
inline RuntimeObject* get_principal_9() const { return ___principal_9; }
inline RuntimeObject** get_address_of_principal_9() { return &___principal_9; }
inline void set_principal_9(RuntimeObject* value)
{
___principal_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___principal_9), (void*)value);
}
inline static int32_t get_offset_of_principal_version_10() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___principal_version_10)); }
inline int32_t get_principal_version_10() const { return ___principal_version_10; }
inline int32_t* get_address_of_principal_version_10() { return &___principal_version_10; }
inline void set_principal_version_10(int32_t value)
{
___principal_version_10 = value;
}
inline static int32_t get_offset_of_m_Delegate_12() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___m_Delegate_12)); }
inline MulticastDelegate_t * get_m_Delegate_12() const { return ___m_Delegate_12; }
inline MulticastDelegate_t ** get_address_of_m_Delegate_12() { return &___m_Delegate_12; }
inline void set_m_Delegate_12(MulticastDelegate_t * value)
{
___m_Delegate_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Delegate_12), (void*)value);
}
inline static int32_t get_offset_of_m_ExecutionContext_13() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___m_ExecutionContext_13)); }
inline ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 * get_m_ExecutionContext_13() const { return ___m_ExecutionContext_13; }
inline ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 ** get_address_of_m_ExecutionContext_13() { return &___m_ExecutionContext_13; }
inline void set_m_ExecutionContext_13(ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 * value)
{
___m_ExecutionContext_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ExecutionContext_13), (void*)value);
}
inline static int32_t get_offset_of_m_ExecutionContextBelongsToOuterScope_14() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7, ___m_ExecutionContextBelongsToOuterScope_14)); }
inline bool get_m_ExecutionContextBelongsToOuterScope_14() const { return ___m_ExecutionContextBelongsToOuterScope_14; }
inline bool* get_address_of_m_ExecutionContextBelongsToOuterScope_14() { return &___m_ExecutionContextBelongsToOuterScope_14; }
inline void set_m_ExecutionContextBelongsToOuterScope_14(bool value)
{
___m_ExecutionContextBelongsToOuterScope_14 = value;
}
};
struct Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_StaticFields
{
public:
// System.LocalDataStoreMgr System.Threading.Thread::s_LocalDataStoreMgr
LocalDataStoreMgr_t1964DDB9F2BE154BE3159A7507D0D0CCBF8FDCA9 * ___s_LocalDataStoreMgr_0;
// System.Threading.AsyncLocal`1<System.Globalization.CultureInfo> System.Threading.Thread::s_asyncLocalCurrentCulture
AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A * ___s_asyncLocalCurrentCulture_4;
// System.Threading.AsyncLocal`1<System.Globalization.CultureInfo> System.Threading.Thread::s_asyncLocalCurrentUICulture
AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A * ___s_asyncLocalCurrentUICulture_5;
public:
inline static int32_t get_offset_of_s_LocalDataStoreMgr_0() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_StaticFields, ___s_LocalDataStoreMgr_0)); }
inline LocalDataStoreMgr_t1964DDB9F2BE154BE3159A7507D0D0CCBF8FDCA9 * get_s_LocalDataStoreMgr_0() const { return ___s_LocalDataStoreMgr_0; }
inline LocalDataStoreMgr_t1964DDB9F2BE154BE3159A7507D0D0CCBF8FDCA9 ** get_address_of_s_LocalDataStoreMgr_0() { return &___s_LocalDataStoreMgr_0; }
inline void set_s_LocalDataStoreMgr_0(LocalDataStoreMgr_t1964DDB9F2BE154BE3159A7507D0D0CCBF8FDCA9 * value)
{
___s_LocalDataStoreMgr_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_LocalDataStoreMgr_0), (void*)value);
}
inline static int32_t get_offset_of_s_asyncLocalCurrentCulture_4() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_StaticFields, ___s_asyncLocalCurrentCulture_4)); }
inline AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A * get_s_asyncLocalCurrentCulture_4() const { return ___s_asyncLocalCurrentCulture_4; }
inline AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A ** get_address_of_s_asyncLocalCurrentCulture_4() { return &___s_asyncLocalCurrentCulture_4; }
inline void set_s_asyncLocalCurrentCulture_4(AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A * value)
{
___s_asyncLocalCurrentCulture_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_asyncLocalCurrentCulture_4), (void*)value);
}
inline static int32_t get_offset_of_s_asyncLocalCurrentUICulture_5() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_StaticFields, ___s_asyncLocalCurrentUICulture_5)); }
inline AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A * get_s_asyncLocalCurrentUICulture_5() const { return ___s_asyncLocalCurrentUICulture_5; }
inline AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A ** get_address_of_s_asyncLocalCurrentUICulture_5() { return &___s_asyncLocalCurrentUICulture_5; }
inline void set_s_asyncLocalCurrentUICulture_5(AsyncLocal_1_tD39651C2EDD14B144FF3D9B9C716F807EB57655A * value)
{
___s_asyncLocalCurrentUICulture_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_asyncLocalCurrentUICulture_5), (void*)value);
}
};
struct Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_ThreadStaticFields
{
public:
// System.LocalDataStoreHolder System.Threading.Thread::s_LocalDataStore
LocalDataStoreHolder_tE0636E08496405406FD63190AC51EEB2EE51E304 * ___s_LocalDataStore_1;
// System.Globalization.CultureInfo System.Threading.Thread::m_CurrentCulture
CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F * ___m_CurrentCulture_2;
// System.Globalization.CultureInfo System.Threading.Thread::m_CurrentUICulture
CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F * ___m_CurrentUICulture_3;
// System.Threading.Thread System.Threading.Thread::current_thread
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * ___current_thread_11;
public:
inline static int32_t get_offset_of_s_LocalDataStore_1() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_ThreadStaticFields, ___s_LocalDataStore_1)); }
inline LocalDataStoreHolder_tE0636E08496405406FD63190AC51EEB2EE51E304 * get_s_LocalDataStore_1() const { return ___s_LocalDataStore_1; }
inline LocalDataStoreHolder_tE0636E08496405406FD63190AC51EEB2EE51E304 ** get_address_of_s_LocalDataStore_1() { return &___s_LocalDataStore_1; }
inline void set_s_LocalDataStore_1(LocalDataStoreHolder_tE0636E08496405406FD63190AC51EEB2EE51E304 * value)
{
___s_LocalDataStore_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_LocalDataStore_1), (void*)value);
}
inline static int32_t get_offset_of_m_CurrentCulture_2() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_ThreadStaticFields, ___m_CurrentCulture_2)); }
inline CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F * get_m_CurrentCulture_2() const { return ___m_CurrentCulture_2; }
inline CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F ** get_address_of_m_CurrentCulture_2() { return &___m_CurrentCulture_2; }
inline void set_m_CurrentCulture_2(CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F * value)
{
___m_CurrentCulture_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentCulture_2), (void*)value);
}
inline static int32_t get_offset_of_m_CurrentUICulture_3() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_ThreadStaticFields, ___m_CurrentUICulture_3)); }
inline CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F * get_m_CurrentUICulture_3() const { return ___m_CurrentUICulture_3; }
inline CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F ** get_address_of_m_CurrentUICulture_3() { return &___m_CurrentUICulture_3; }
inline void set_m_CurrentUICulture_3(CultureInfo_t345AC6924134F039ED9A11F3E03F8E91B6A3225F * value)
{
___m_CurrentUICulture_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentUICulture_3), (void*)value);
}
inline static int32_t get_offset_of_current_thread_11() { return static_cast<int32_t>(offsetof(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_ThreadStaticFields, ___current_thread_11)); }
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * get_current_thread_11() const { return ___current_thread_11; }
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 ** get_address_of_current_thread_11() { return &___current_thread_11; }
inline void set_current_thread_11(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * value)
{
___current_thread_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___current_thread_11), (void*)value);
}
};
// System.UInt32
struct UInt32_t4980FA09003AFAAB5A6E361BA2748EA9A005709B
{
public:
// System.UInt32 System.UInt32::m_value
uint32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt32_t4980FA09003AFAAB5A6E361BA2748EA9A005709B, ___m_value_0)); }
inline uint32_t get_m_value_0() const { return ___m_value_0; }
inline uint32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint32_t value)
{
___m_value_0 = value;
}
};
// System.UInt64
struct UInt64_tA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E
{
public:
// System.UInt64 System.UInt64::m_value
uint64_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt64_tA02DF3B59C8FC4A849BD207DA11038CC64E4CB4E, ___m_value_0)); }
inline uint64_t get_m_value_0() const { return ___m_value_0; }
inline uint64_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint64_t value)
{
___m_value_0 = value;
}
};
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
{
public:
union
{
struct
{
};
uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
};
public:
};
// <PrivateImplementationDetails>
struct U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C : public RuntimeObject
{
public:
public:
};
struct U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields
{
public:
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D128 <PrivateImplementationDetails>::3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0
__StaticArrayInitTypeSizeU3D128_tB6C2805CC977A8DEFD5DDA6D11E0A72452EAC0F4 ___3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0;
// System.Int64 <PrivateImplementationDetails>::5AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5
int64_t ___5AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1;
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D192 <PrivateImplementationDetails>::64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B
__StaticArrayInitTypeSizeU3D192_t1DB998B26578730EC61CF66FEC2458A60D9F101F ___64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2;
// System.Int32 <PrivateImplementationDetails>::9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578
int32_t ___9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3;
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D1212 <PrivateImplementationDetails>::AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080
__StaticArrayInitTypeSizeU3D1212_t2C4570CCBE5E1A083504724A1CE7C429106B3427 ___AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4;
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D96 <PrivateImplementationDetails>::B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D
__StaticArrayInitTypeSizeU3D96_t0957F41433C484353F0E88F744AFDAE7883CA585 ___B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5;
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D9 <PrivateImplementationDetails>::D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC
__StaticArrayInitTypeSizeU3D9_tFB912DFBF349339B8FF8FD90664028147FE90392 ___D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6;
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D120 <PrivateImplementationDetails>::FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175
__StaticArrayInitTypeSizeU3D120_t44324233EE2D8944AD5DC0C090A0C9B51CABEE40 ___FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7;
public:
inline static int32_t get_offset_of_U33F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0)); }
inline __StaticArrayInitTypeSizeU3D128_tB6C2805CC977A8DEFD5DDA6D11E0A72452EAC0F4 get_U33F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0() const { return ___3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0; }
inline __StaticArrayInitTypeSizeU3D128_tB6C2805CC977A8DEFD5DDA6D11E0A72452EAC0F4 * get_address_of_U33F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0() { return &___3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0; }
inline void set_U33F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0(__StaticArrayInitTypeSizeU3D128_tB6C2805CC977A8DEFD5DDA6D11E0A72452EAC0F4 value)
{
___3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0 = value;
}
inline static int32_t get_offset_of_U35AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___5AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1)); }
inline int64_t get_U35AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1() const { return ___5AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1; }
inline int64_t* get_address_of_U35AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1() { return &___5AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1; }
inline void set_U35AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1(int64_t value)
{
___5AC9831B2E30EB285EF34F8501620F878432D5C04331AD1AE47F977A83BA41A5_1 = value;
}
inline static int32_t get_offset_of_U364FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2)); }
inline __StaticArrayInitTypeSizeU3D192_t1DB998B26578730EC61CF66FEC2458A60D9F101F get_U364FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2() const { return ___64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2; }
inline __StaticArrayInitTypeSizeU3D192_t1DB998B26578730EC61CF66FEC2458A60D9F101F * get_address_of_U364FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2() { return &___64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2; }
inline void set_U364FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2(__StaticArrayInitTypeSizeU3D192_t1DB998B26578730EC61CF66FEC2458A60D9F101F value)
{
___64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2 = value;
}
inline static int32_t get_offset_of_U39861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3)); }
inline int32_t get_U39861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3() const { return ___9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3; }
inline int32_t* get_address_of_U39861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3() { return &___9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3; }
inline void set_U39861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3(int32_t value)
{
___9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3 = value;
}
inline static int32_t get_offset_of_AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4)); }
inline __StaticArrayInitTypeSizeU3D1212_t2C4570CCBE5E1A083504724A1CE7C429106B3427 get_AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4() const { return ___AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4; }
inline __StaticArrayInitTypeSizeU3D1212_t2C4570CCBE5E1A083504724A1CE7C429106B3427 * get_address_of_AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4() { return &___AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4; }
inline void set_AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4(__StaticArrayInitTypeSizeU3D1212_t2C4570CCBE5E1A083504724A1CE7C429106B3427 value)
{
___AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4 = value;
}
inline static int32_t get_offset_of_B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5)); }
inline __StaticArrayInitTypeSizeU3D96_t0957F41433C484353F0E88F744AFDAE7883CA585 get_B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5() const { return ___B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5; }
inline __StaticArrayInitTypeSizeU3D96_t0957F41433C484353F0E88F744AFDAE7883CA585 * get_address_of_B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5() { return &___B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5; }
inline void set_B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5(__StaticArrayInitTypeSizeU3D96_t0957F41433C484353F0E88F744AFDAE7883CA585 value)
{
___B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5 = value;
}
inline static int32_t get_offset_of_D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6)); }
inline __StaticArrayInitTypeSizeU3D9_tFB912DFBF349339B8FF8FD90664028147FE90392 get_D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6() const { return ___D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6; }
inline __StaticArrayInitTypeSizeU3D9_tFB912DFBF349339B8FF8FD90664028147FE90392 * get_address_of_D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6() { return &___D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6; }
inline void set_D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6(__StaticArrayInitTypeSizeU3D9_tFB912DFBF349339B8FF8FD90664028147FE90392 value)
{
___D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6 = value;
}
inline static int32_t get_offset_of_FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C_StaticFields, ___FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7)); }
inline __StaticArrayInitTypeSizeU3D120_t44324233EE2D8944AD5DC0C090A0C9B51CABEE40 get_FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7() const { return ___FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7; }
inline __StaticArrayInitTypeSizeU3D120_t44324233EE2D8944AD5DC0C090A0C9B51CABEE40 * get_address_of_FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7() { return &___FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7; }
inline void set_FA8<KEY>1<KEY>0BB2<KEY>AEBF6D280C11175_7(__StaticArrayInitTypeSizeU3D120_t44324233EE2D8944AD5DC0C090A0C9B51CABEE40 value)
{
___FA856B58B602D1AFB828D70020BB2D88B0C50B97FE8920E56AEBF6D280C11175_7 = value;
}
};
// ExitGames.Client.Photon.ConnectionProtocol
struct ConnectionProtocol_t8CB081E639C80F0C15D431DC73720F67553B219F
{
public:
// System.Byte ExitGames.Client.Photon.ConnectionProtocol::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ConnectionProtocol_t8CB081E639C80F0C15D431DC73720F67553B219F, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.ConnectionStateValue
struct ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D
{
public:
// System.Byte ExitGames.Client.Photon.ConnectionStateValue::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.DebugLevel
struct DebugLevel_t7DA42F6FB5B38D7DB5A26A130F0FD10524F3CAE0
{
public:
// System.Byte ExitGames.Client.Photon.DebugLevel::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DebugLevel_t7DA42F6FB5B38D7DB5A26A130F0FD10524F3CAE0, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.DeliveryMode
struct DeliveryMode_t1B8942F502723BBE123C47493B8CCB40DA9FD6A5
{
public:
// System.Int32 ExitGames.Client.Photon.DeliveryMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DeliveryMode_t1B8942F502723BBE123C47493B8CCB40DA9FD6A5, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.EgMessageType
struct EgMessageType_t566013069F3664ABF1AC6F7CED5480234A1DD345
{
public:
// System.Byte ExitGames.Client.Photon.EgMessageType::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(EgMessageType_t566013069F3664ABF1AC6F7CED5480234A1DD345, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.PhotonSocketError
struct PhotonSocketError_tA38FB5A32921FDDC5322B3B3F35F0416A72F6FE7
{
public:
// System.Int32 ExitGames.Client.Photon.PhotonSocketError::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PhotonSocketError_tA38FB5A32921FDDC5322B3B3F35F0416A72F6FE7, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.PhotonSocketState
struct PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4
{
public:
// System.Int32 ExitGames.Client.Photon.PhotonSocketState::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.SerializationProtocol
struct SerializationProtocol_t6A6490926E5397BEBE5A5E6B4ED3BDAC14E280B8
{
public:
// System.Int32 ExitGames.Client.Photon.SerializationProtocol::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SerializationProtocol_t6A6490926E5397BEBE5A5E6B4ED3BDAC14E280B8, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.StatusCode
struct StatusCode_tCFAA114CDE9F595AD6DF9260B8A0ABBFD84C40C4
{
public:
// System.Int32 ExitGames.Client.Photon.StatusCode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StatusCode_tCFAA114CDE9F595AD6DF9260B8A0ABBFD84C40C4, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative
struct DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 : public RuntimeObject
{
public:
// System.IntPtr Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::cryptor
intptr_t ___cryptor_0;
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::sharedKeyHash
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKeyHash_1;
public:
inline static int32_t get_offset_of_cryptor_0() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1, ___cryptor_0)); }
inline intptr_t get_cryptor_0() const { return ___cryptor_0; }
inline intptr_t* get_address_of_cryptor_0() { return &___cryptor_0; }
inline void set_cryptor_0(intptr_t value)
{
___cryptor_0 = value;
}
inline static int32_t get_offset_of_sharedKeyHash_1() { return static_cast<int32_t>(offsetof(DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1, ___sharedKeyHash_1)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_sharedKeyHash_1() const { return ___sharedKeyHash_1; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_sharedKeyHash_1() { return &___sharedKeyHash_1; }
inline void set_sharedKeyHash_1(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___sharedKeyHash_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___sharedKeyHash_1), (void*)value);
}
};
// System.Delegate
struct Delegate_t : 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::extra_arg
intptr_t ___extra_arg_5;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_6;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_7;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_8;
// System.DelegateData System.Delegate::data
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
// System.Boolean System.Delegate::method_is_virtual
bool ___method_is_virtual_10;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___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_t, ___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_t, ___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((void**)(&___m_target_2), (void*)value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___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_t, ___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_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); }
inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; }
inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; }
inline void set_extra_arg_5(intptr_t value)
{
___extra_arg_5 = value;
}
inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); }
inline intptr_t get_method_code_6() const { return ___method_code_6; }
inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; }
inline void set_method_code_6(intptr_t value)
{
___method_code_6 = value;
}
inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); }
inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; }
inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; }
inline void set_method_info_7(MethodInfo_t * value)
{
___method_info_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value);
}
inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); }
inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; }
inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; }
inline void set_original_method_info_8(MethodInfo_t * value)
{
___original_method_info_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value);
}
inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * get_data_9() const { return ___data_9; }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE ** get_address_of_data_9() { return &___data_9; }
inline void set_data_9(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * value)
{
___data_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value);
}
inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); }
inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; }
inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; }
inline void set_method_is_virtual_10(bool value)
{
___method_is_virtual_10 = value;
}
};
// Native definition for P/Invoke marshalling of System.Delegate
struct Delegate_t_marshaled_pinvoke
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// Native definition for COM marshalling of System.Delegate
struct Delegate_t_marshaled_com
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// System.Exception
struct Exception_t : public RuntimeObject
{
public:
// System.String System.Exception::_className
String_t* ____className_1;
// System.String System.Exception::_message
String_t* ____message_2;
// System.Collections.IDictionary System.Exception::_data
RuntimeObject* ____data_3;
// System.Exception System.Exception::_innerException
Exception_t * ____innerException_4;
// System.String System.Exception::_helpURL
String_t* ____helpURL_5;
// System.Object System.Exception::_stackTrace
RuntimeObject * ____stackTrace_6;
// System.String System.Exception::_stackTraceString
String_t* ____stackTraceString_7;
// System.String System.Exception::_remoteStackTraceString
String_t* ____remoteStackTraceString_8;
// System.Int32 System.Exception::_remoteStackIndex
int32_t ____remoteStackIndex_9;
// System.Object System.Exception::_dynamicMethods
RuntimeObject * ____dynamicMethods_10;
// System.Int32 System.Exception::_HResult
int32_t ____HResult_11;
// System.String System.Exception::_source
String_t* ____source_12;
// System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
// System.Diagnostics.StackTrace[] System.Exception::captured_traces
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
// System.IntPtr[] System.Exception::native_trace_ips
IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* ___native_trace_ips_15;
public:
inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); }
inline String_t* get__className_1() const { return ____className_1; }
inline String_t** get_address_of__className_1() { return &____className_1; }
inline void set__className_1(String_t* value)
{
____className_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____className_1), (void*)value);
}
inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); }
inline String_t* get__message_2() const { return ____message_2; }
inline String_t** get_address_of__message_2() { return &____message_2; }
inline void set__message_2(String_t* value)
{
____message_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&____message_2), (void*)value);
}
inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); }
inline RuntimeObject* get__data_3() const { return ____data_3; }
inline RuntimeObject** get_address_of__data_3() { return &____data_3; }
inline void set__data_3(RuntimeObject* value)
{
____data_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&____data_3), (void*)value);
}
inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); }
inline Exception_t * get__innerException_4() const { return ____innerException_4; }
inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; }
inline void set__innerException_4(Exception_t * value)
{
____innerException_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____innerException_4), (void*)value);
}
inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); }
inline String_t* get__helpURL_5() const { return ____helpURL_5; }
inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; }
inline void set__helpURL_5(String_t* value)
{
____helpURL_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____helpURL_5), (void*)value);
}
inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); }
inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; }
inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; }
inline void set__stackTrace_6(RuntimeObject * value)
{
____stackTrace_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stackTrace_6), (void*)value);
}
inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); }
inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; }
inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; }
inline void set__stackTraceString_7(String_t* value)
{
____stackTraceString_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stackTraceString_7), (void*)value);
}
inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); }
inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; }
inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; }
inline void set__remoteStackTraceString_8(String_t* value)
{
____remoteStackTraceString_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&____remoteStackTraceString_8), (void*)value);
}
inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); }
inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; }
inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; }
inline void set__remoteStackIndex_9(int32_t value)
{
____remoteStackIndex_9 = value;
}
inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); }
inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; }
inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; }
inline void set__dynamicMethods_10(RuntimeObject * value)
{
____dynamicMethods_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&____dynamicMethods_10), (void*)value);
}
inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); }
inline int32_t get__HResult_11() const { return ____HResult_11; }
inline int32_t* get_address_of__HResult_11() { return &____HResult_11; }
inline void set__HResult_11(int32_t value)
{
____HResult_11 = value;
}
inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); }
inline String_t* get__source_12() const { return ____source_12; }
inline String_t** get_address_of__source_12() { return &____source_12; }
inline void set__source_12(String_t* value)
{
____source_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&____source_12), (void*)value);
}
inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; }
inline void set__safeSerializationManager_13(SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * value)
{
____safeSerializationManager_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&____safeSerializationManager_13), (void*)value);
}
inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* get_captured_traces_14() const { return ___captured_traces_14; }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196** get_address_of_captured_traces_14() { return &___captured_traces_14; }
inline void set_captured_traces_14(StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* value)
{
___captured_traces_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___captured_traces_14), (void*)value);
}
inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* get_native_trace_ips_15() const { return ___native_trace_ips_15; }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; }
inline void set_native_trace_ips_15(IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* value)
{
___native_trace_ips_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___native_trace_ips_15), (void*)value);
}
};
struct Exception_t_StaticFields
{
public:
// System.Object System.Exception::s_EDILock
RuntimeObject * ___s_EDILock_0;
public:
inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); }
inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; }
inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; }
inline void set_s_EDILock_0(RuntimeObject * value)
{
___s_EDILock_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_EDILock_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Exception
struct Exception_t_marshaled_pinvoke
{
char* ____className_1;
char* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_pinvoke* ____innerException_4;
char* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
char* ____stackTraceString_7;
char* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
char* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// Native definition for COM marshalling of System.Exception
struct Exception_t_marshaled_com
{
Il2CppChar* ____className_1;
Il2CppChar* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_com* ____innerException_4;
Il2CppChar* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
Il2CppChar* ____stackTraceString_7;
Il2CppChar* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
Il2CppChar* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// System.Reflection.BindingFlags
struct BindingFlags_tE35C91D046E63A1B92BB9AB909FCF9DA84379ED0
{
public:
// System.Int32 System.Reflection.BindingFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(BindingFlags_tE35C91D046E63A1B92BB9AB909FCF9DA84379ED0, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Reflection.MethodInfo
struct MethodInfo_t : public MethodBase_t
{
public:
public:
};
// System.RuntimeFieldHandle
struct RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF
{
public:
// System.IntPtr System.RuntimeFieldHandle::value
intptr_t ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF, ___value_0)); }
inline intptr_t get_value_0() const { return ___value_0; }
inline intptr_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(intptr_t value)
{
___value_0 = value;
}
};
// System.RuntimeTypeHandle
struct RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D
{
public:
// System.IntPtr System.RuntimeTypeHandle::value
intptr_t ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D, ___value_0)); }
inline intptr_t get_value_0() const { return ___value_0; }
inline intptr_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(intptr_t value)
{
___value_0 = value;
}
};
// System.Security.Cryptography.CipherMode
struct CipherMode_t1DC3069D617AC3D17A2608F5BB36C0F115D229DF
{
public:
// System.Int32 System.Security.Cryptography.CipherMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CipherMode_t1DC3069D617AC3D17A2608F5BB36C0F115D229DF, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Security.Cryptography.PaddingMode
struct PaddingMode_tA6F228B2795D29C9554F2D6824DB9FF67519A0E0
{
public:
// System.Int32 System.Security.Cryptography.PaddingMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PaddingMode_tA6F228B2795D29C9554F2D6824DB9FF67519A0E0, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Security.Cryptography.SHA256Managed
struct SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2 : public SHA256_tF15350D910DF8AC1E6ADDBA904218F95554711BD
{
public:
// System.Byte[] System.Security.Cryptography.SHA256Managed::_buffer
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ____buffer_4;
// System.Int64 System.Security.Cryptography.SHA256Managed::_count
int64_t ____count_5;
// System.UInt32[] System.Security.Cryptography.SHA256Managed::_stateSHA256
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ____stateSHA256_6;
// System.UInt32[] System.Security.Cryptography.SHA256Managed::_W
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ____W_7;
public:
inline static int32_t get_offset_of__buffer_4() { return static_cast<int32_t>(offsetof(SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2, ____buffer_4)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get__buffer_4() const { return ____buffer_4; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of__buffer_4() { return &____buffer_4; }
inline void set__buffer_4(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
____buffer_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____buffer_4), (void*)value);
}
inline static int32_t get_offset_of__count_5() { return static_cast<int32_t>(offsetof(SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2, ____count_5)); }
inline int64_t get__count_5() const { return ____count_5; }
inline int64_t* get_address_of__count_5() { return &____count_5; }
inline void set__count_5(int64_t value)
{
____count_5 = value;
}
inline static int32_t get_offset_of__stateSHA256_6() { return static_cast<int32_t>(offsetof(SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2, ____stateSHA256_6)); }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* get__stateSHA256_6() const { return ____stateSHA256_6; }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB** get_address_of__stateSHA256_6() { return &____stateSHA256_6; }
inline void set__stateSHA256_6(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* value)
{
____stateSHA256_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stateSHA256_6), (void*)value);
}
inline static int32_t get_offset_of__W_7() { return static_cast<int32_t>(offsetof(SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2, ____W_7)); }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* get__W_7() const { return ____W_7; }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB** get_address_of__W_7() { return &____W_7; }
inline void set__W_7(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* value)
{
____W_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&____W_7), (void*)value);
}
};
struct SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2_StaticFields
{
public:
// System.UInt32[] System.Security.Cryptography.SHA256Managed::_K
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ____K_8;
public:
inline static int32_t get_offset_of__K_8() { return static_cast<int32_t>(offsetof(SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2_StaticFields, ____K_8)); }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* get__K_8() const { return ____K_8; }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB** get_address_of__K_8() { return &____K_8; }
inline void set__K_8(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* value)
{
____K_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&____K_8), (void*)value);
}
};
// ExitGames.Client.Photon.IPhotonSocket
struct IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 : public RuntimeObject
{
public:
// ExitGames.Client.Photon.PeerBase ExitGames.Client.Photon.IPhotonSocket::peerBase
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___peerBase_0;
// ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.IPhotonSocket::Protocol
uint8_t ___Protocol_1;
// System.Boolean ExitGames.Client.Photon.IPhotonSocket::PollReceive
bool ___PollReceive_2;
// ExitGames.Client.Photon.PhotonSocketState ExitGames.Client.Photon.IPhotonSocket::<State>k__BackingField
int32_t ___U3CStateU3Ek__BackingField_3;
// System.String ExitGames.Client.Photon.IPhotonSocket::ConnectAddress
String_t* ___ConnectAddress_4;
// System.String ExitGames.Client.Photon.IPhotonSocket::<ServerAddress>k__BackingField
String_t* ___U3CServerAddressU3Ek__BackingField_5;
// System.String ExitGames.Client.Photon.IPhotonSocket::<ProxyServerAddress>k__BackingField
String_t* ___U3CProxyServerAddressU3Ek__BackingField_6;
// System.Int32 ExitGames.Client.Photon.IPhotonSocket::<ServerPort>k__BackingField
int32_t ___U3CServerPortU3Ek__BackingField_8;
// System.Boolean ExitGames.Client.Photon.IPhotonSocket::<AddressResolvedAsIpv6>k__BackingField
bool ___U3CAddressResolvedAsIpv6U3Ek__BackingField_9;
// System.String ExitGames.Client.Photon.IPhotonSocket::<UrlProtocol>k__BackingField
String_t* ___U3CUrlProtocolU3Ek__BackingField_10;
// System.String ExitGames.Client.Photon.IPhotonSocket::<UrlPath>k__BackingField
String_t* ___U3CUrlPathU3Ek__BackingField_11;
public:
inline static int32_t get_offset_of_peerBase_0() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___peerBase_0)); }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * get_peerBase_0() const { return ___peerBase_0; }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 ** get_address_of_peerBase_0() { return &___peerBase_0; }
inline void set_peerBase_0(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * value)
{
___peerBase_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___peerBase_0), (void*)value);
}
inline static int32_t get_offset_of_Protocol_1() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___Protocol_1)); }
inline uint8_t get_Protocol_1() const { return ___Protocol_1; }
inline uint8_t* get_address_of_Protocol_1() { return &___Protocol_1; }
inline void set_Protocol_1(uint8_t value)
{
___Protocol_1 = value;
}
inline static int32_t get_offset_of_PollReceive_2() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___PollReceive_2)); }
inline bool get_PollReceive_2() const { return ___PollReceive_2; }
inline bool* get_address_of_PollReceive_2() { return &___PollReceive_2; }
inline void set_PollReceive_2(bool value)
{
___PollReceive_2 = value;
}
inline static int32_t get_offset_of_U3CStateU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CStateU3Ek__BackingField_3)); }
inline int32_t get_U3CStateU3Ek__BackingField_3() const { return ___U3CStateU3Ek__BackingField_3; }
inline int32_t* get_address_of_U3CStateU3Ek__BackingField_3() { return &___U3CStateU3Ek__BackingField_3; }
inline void set_U3CStateU3Ek__BackingField_3(int32_t value)
{
___U3CStateU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_ConnectAddress_4() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___ConnectAddress_4)); }
inline String_t* get_ConnectAddress_4() const { return ___ConnectAddress_4; }
inline String_t** get_address_of_ConnectAddress_4() { return &___ConnectAddress_4; }
inline void set_ConnectAddress_4(String_t* value)
{
___ConnectAddress_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ConnectAddress_4), (void*)value);
}
inline static int32_t get_offset_of_U3CServerAddressU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CServerAddressU3Ek__BackingField_5)); }
inline String_t* get_U3CServerAddressU3Ek__BackingField_5() const { return ___U3CServerAddressU3Ek__BackingField_5; }
inline String_t** get_address_of_U3CServerAddressU3Ek__BackingField_5() { return &___U3CServerAddressU3Ek__BackingField_5; }
inline void set_U3CServerAddressU3Ek__BackingField_5(String_t* value)
{
___U3CServerAddressU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CServerAddressU3Ek__BackingField_5), (void*)value);
}
inline static int32_t get_offset_of_U3CProxyServerAddressU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CProxyServerAddressU3Ek__BackingField_6)); }
inline String_t* get_U3CProxyServerAddressU3Ek__BackingField_6() const { return ___U3CProxyServerAddressU3Ek__BackingField_6; }
inline String_t** get_address_of_U3CProxyServerAddressU3Ek__BackingField_6() { return &___U3CProxyServerAddressU3Ek__BackingField_6; }
inline void set_U3CProxyServerAddressU3Ek__BackingField_6(String_t* value)
{
___U3CProxyServerAddressU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CProxyServerAddressU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_U3CServerPortU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CServerPortU3Ek__BackingField_8)); }
inline int32_t get_U3CServerPortU3Ek__BackingField_8() const { return ___U3CServerPortU3Ek__BackingField_8; }
inline int32_t* get_address_of_U3CServerPortU3Ek__BackingField_8() { return &___U3CServerPortU3Ek__BackingField_8; }
inline void set_U3CServerPortU3Ek__BackingField_8(int32_t value)
{
___U3CServerPortU3Ek__BackingField_8 = value;
}
inline static int32_t get_offset_of_U3CAddressResolvedAsIpv6U3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CAddressResolvedAsIpv6U3Ek__BackingField_9)); }
inline bool get_U3CAddressResolvedAsIpv6U3Ek__BackingField_9() const { return ___U3CAddressResolvedAsIpv6U3Ek__BackingField_9; }
inline bool* get_address_of_U3CAddressResolvedAsIpv6U3Ek__BackingField_9() { return &___U3CAddressResolvedAsIpv6U3Ek__BackingField_9; }
inline void set_U3CAddressResolvedAsIpv6U3Ek__BackingField_9(bool value)
{
___U3CAddressResolvedAsIpv6U3Ek__BackingField_9 = value;
}
inline static int32_t get_offset_of_U3CUrlProtocolU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CUrlProtocolU3Ek__BackingField_10)); }
inline String_t* get_U3CUrlProtocolU3Ek__BackingField_10() const { return ___U3CUrlProtocolU3Ek__BackingField_10; }
inline String_t** get_address_of_U3CUrlProtocolU3Ek__BackingField_10() { return &___U3CUrlProtocolU3Ek__BackingField_10; }
inline void set_U3CUrlProtocolU3Ek__BackingField_10(String_t* value)
{
___U3CUrlProtocolU3Ek__BackingField_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CUrlProtocolU3Ek__BackingField_10), (void*)value);
}
inline static int32_t get_offset_of_U3CUrlPathU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CUrlPathU3Ek__BackingField_11)); }
inline String_t* get_U3CUrlPathU3Ek__BackingField_11() const { return ___U3CUrlPathU3Ek__BackingField_11; }
inline String_t** get_address_of_U3CUrlPathU3Ek__BackingField_11() { return &___U3CUrlPathU3Ek__BackingField_11; }
inline void set_U3CUrlPathU3Ek__BackingField_11(String_t* value)
{
___U3CUrlPathU3Ek__BackingField_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CUrlPathU3Ek__BackingField_11), (void*)value);
}
};
struct IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587_StaticFields
{
public:
// System.String ExitGames.Client.Photon.IPhotonSocket::<ServerIpAddress>k__BackingField
String_t* ___U3CServerIpAddressU3Ek__BackingField_7;
public:
inline static int32_t get_offset_of_U3CServerIpAddressU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587_StaticFields, ___U3CServerIpAddressU3Ek__BackingField_7)); }
inline String_t* get_U3CServerIpAddressU3Ek__BackingField_7() const { return ___U3CServerIpAddressU3Ek__BackingField_7; }
inline String_t** get_address_of_U3CServerIpAddressU3Ek__BackingField_7() { return &___U3CServerIpAddressU3Ek__BackingField_7; }
inline void set_U3CServerIpAddressU3Ek__BackingField_7(String_t* value)
{
___U3CServerIpAddressU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CServerIpAddressU3Ek__BackingField_7), (void*)value);
}
};
// ExitGames.Client.Photon.PeerBase
struct PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 : public RuntimeObject
{
public:
// ExitGames.Client.Photon.PhotonPeer ExitGames.Client.Photon.PeerBase::photonPeer
PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * ___photonPeer_0;
// ExitGames.Client.Photon.IProtocol ExitGames.Client.Photon.PeerBase::SerializationProtocol
IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * ___SerializationProtocol_1;
// ExitGames.Client.Photon.NCommandPool ExitGames.Client.Photon.PeerBase::nCommandPool
NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B * ___nCommandPool_2;
// ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.PeerBase::usedTransportProtocol
uint8_t ___usedTransportProtocol_3;
// ExitGames.Client.Photon.IPhotonSocket ExitGames.Client.Photon.PeerBase::PhotonSocket
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * ___PhotonSocket_4;
// System.String ExitGames.Client.Photon.PeerBase::<ServerAddress>k__BackingField
String_t* ___U3CServerAddressU3Ek__BackingField_5;
// System.String ExitGames.Client.Photon.PeerBase::<ProxyServerAddress>k__BackingField
String_t* ___U3CProxyServerAddressU3Ek__BackingField_6;
// ExitGames.Client.Photon.ConnectionStateValue ExitGames.Client.Photon.PeerBase::peerConnectionState
uint8_t ___peerConnectionState_7;
// System.Int32 ExitGames.Client.Photon.PeerBase::ByteCountLastOperation
int32_t ___ByteCountLastOperation_8;
// System.Int32 ExitGames.Client.Photon.PeerBase::ByteCountCurrentDispatch
int32_t ___ByteCountCurrentDispatch_9;
// ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.PeerBase::CommandInCurrentDispatch
NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 * ___CommandInCurrentDispatch_10;
// System.Int32 ExitGames.Client.Photon.PeerBase::packetLossByCrc
int32_t ___packetLossByCrc_11;
// System.Int32 ExitGames.Client.Photon.PeerBase::packetLossByChallenge
int32_t ___packetLossByChallenge_12;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase_MyAction> ExitGames.Client.Photon.PeerBase::ActionQueue
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * ___ActionQueue_13;
// System.Int16 ExitGames.Client.Photon.PeerBase::peerID
int16_t ___peerID_14;
// System.Int32 ExitGames.Client.Photon.PeerBase::serverTimeOffset
int32_t ___serverTimeOffset_15;
// System.Boolean ExitGames.Client.Photon.PeerBase::serverTimeOffsetIsAvailable
bool ___serverTimeOffsetIsAvailable_16;
// System.Int32 ExitGames.Client.Photon.PeerBase::roundTripTime
int32_t ___roundTripTime_17;
// System.Int32 ExitGames.Client.Photon.PeerBase::roundTripTimeVariance
int32_t ___roundTripTimeVariance_18;
// System.Int32 ExitGames.Client.Photon.PeerBase::lastRoundTripTime
int32_t ___lastRoundTripTime_19;
// System.Int32 ExitGames.Client.Photon.PeerBase::lowestRoundTripTime
int32_t ___lowestRoundTripTime_20;
// System.Int32 ExitGames.Client.Photon.PeerBase::highestRoundTripTimeVariance
int32_t ___highestRoundTripTimeVariance_21;
// System.Int32 ExitGames.Client.Photon.PeerBase::timestampOfLastReceive
int32_t ___timestampOfLastReceive_22;
// System.Int64 ExitGames.Client.Photon.PeerBase::bytesOut
int64_t ___bytesOut_24;
// System.Int64 ExitGames.Client.Photon.PeerBase::bytesIn
int64_t ___bytesIn_25;
// System.Object ExitGames.Client.Photon.PeerBase::CustomInitData
RuntimeObject * ___CustomInitData_26;
// System.String ExitGames.Client.Photon.PeerBase::AppId
String_t* ___AppId_27;
// ExitGames.Client.Photon.EventData ExitGames.Client.Photon.PeerBase::reusableEventData
EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 * ___reusableEventData_28;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeBase
int32_t ___timeBase_29;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeoutInt
int32_t ___timeoutInt_30;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeLastAckReceive
int32_t ___timeLastAckReceive_31;
// System.Int32 ExitGames.Client.Photon.PeerBase::longestSentCall
int32_t ___longestSentCall_32;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeLastSendAck
int32_t ___timeLastSendAck_33;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeLastSendOutgoing
int32_t ___timeLastSendOutgoing_34;
// System.Boolean ExitGames.Client.Photon.PeerBase::ApplicationIsInitialized
bool ___ApplicationIsInitialized_35;
// System.Boolean ExitGames.Client.Photon.PeerBase::isEncryptionAvailable
bool ___isEncryptionAvailable_36;
// System.Int32 ExitGames.Client.Photon.PeerBase::outgoingCommandsInStream
int32_t ___outgoingCommandsInStream_37;
// Photon.SocketServer.Security.ICryptoProvider ExitGames.Client.Photon.PeerBase::CryptoProvider
RuntimeObject* ___CryptoProvider_39;
// System.Random ExitGames.Client.Photon.PeerBase::lagRandomizer
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * ___lagRandomizer_40;
// System.Collections.Generic.LinkedList`1<ExitGames.Client.Photon.SimulationItem> ExitGames.Client.Photon.PeerBase::NetSimListOutgoing
LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * ___NetSimListOutgoing_41;
// System.Collections.Generic.LinkedList`1<ExitGames.Client.Photon.SimulationItem> ExitGames.Client.Photon.PeerBase::NetSimListIncoming
LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * ___NetSimListIncoming_42;
// ExitGames.Client.Photon.NetworkSimulationSet ExitGames.Client.Photon.PeerBase::networkSimulationSettings
NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * ___networkSimulationSettings_43;
// System.Int32 ExitGames.Client.Photon.PeerBase::TrafficPackageHeaderSize
int32_t ___TrafficPackageHeaderSize_44;
public:
inline static int32_t get_offset_of_photonPeer_0() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___photonPeer_0)); }
inline PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * get_photonPeer_0() const { return ___photonPeer_0; }
inline PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD ** get_address_of_photonPeer_0() { return &___photonPeer_0; }
inline void set_photonPeer_0(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * value)
{
___photonPeer_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___photonPeer_0), (void*)value);
}
inline static int32_t get_offset_of_SerializationProtocol_1() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___SerializationProtocol_1)); }
inline IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * get_SerializationProtocol_1() const { return ___SerializationProtocol_1; }
inline IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 ** get_address_of_SerializationProtocol_1() { return &___SerializationProtocol_1; }
inline void set_SerializationProtocol_1(IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * value)
{
___SerializationProtocol_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SerializationProtocol_1), (void*)value);
}
inline static int32_t get_offset_of_nCommandPool_2() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___nCommandPool_2)); }
inline NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B * get_nCommandPool_2() const { return ___nCommandPool_2; }
inline NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B ** get_address_of_nCommandPool_2() { return &___nCommandPool_2; }
inline void set_nCommandPool_2(NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B * value)
{
___nCommandPool_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___nCommandPool_2), (void*)value);
}
inline static int32_t get_offset_of_usedTransportProtocol_3() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___usedTransportProtocol_3)); }
inline uint8_t get_usedTransportProtocol_3() const { return ___usedTransportProtocol_3; }
inline uint8_t* get_address_of_usedTransportProtocol_3() { return &___usedTransportProtocol_3; }
inline void set_usedTransportProtocol_3(uint8_t value)
{
___usedTransportProtocol_3 = value;
}
inline static int32_t get_offset_of_PhotonSocket_4() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___PhotonSocket_4)); }
inline IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * get_PhotonSocket_4() const { return ___PhotonSocket_4; }
inline IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 ** get_address_of_PhotonSocket_4() { return &___PhotonSocket_4; }
inline void set_PhotonSocket_4(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * value)
{
___PhotonSocket_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___PhotonSocket_4), (void*)value);
}
inline static int32_t get_offset_of_U3CServerAddressU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___U3CServerAddressU3Ek__BackingField_5)); }
inline String_t* get_U3CServerAddressU3Ek__BackingField_5() const { return ___U3CServerAddressU3Ek__BackingField_5; }
inline String_t** get_address_of_U3CServerAddressU3Ek__BackingField_5() { return &___U3CServerAddressU3Ek__BackingField_5; }
inline void set_U3CServerAddressU3Ek__BackingField_5(String_t* value)
{
___U3CServerAddressU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CServerAddressU3Ek__BackingField_5), (void*)value);
}
inline static int32_t get_offset_of_U3CProxyServerAddressU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___U3CProxyServerAddressU3Ek__BackingField_6)); }
inline String_t* get_U3CProxyServerAddressU3Ek__BackingField_6() const { return ___U3CProxyServerAddressU3Ek__BackingField_6; }
inline String_t** get_address_of_U3CProxyServerAddressU3Ek__BackingField_6() { return &___U3CProxyServerAddressU3Ek__BackingField_6; }
inline void set_U3CProxyServerAddressU3Ek__BackingField_6(String_t* value)
{
___U3CProxyServerAddressU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CProxyServerAddressU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_peerConnectionState_7() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___peerConnectionState_7)); }
inline uint8_t get_peerConnectionState_7() const { return ___peerConnectionState_7; }
inline uint8_t* get_address_of_peerConnectionState_7() { return &___peerConnectionState_7; }
inline void set_peerConnectionState_7(uint8_t value)
{
___peerConnectionState_7 = value;
}
inline static int32_t get_offset_of_ByteCountLastOperation_8() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ByteCountLastOperation_8)); }
inline int32_t get_ByteCountLastOperation_8() const { return ___ByteCountLastOperation_8; }
inline int32_t* get_address_of_ByteCountLastOperation_8() { return &___ByteCountLastOperation_8; }
inline void set_ByteCountLastOperation_8(int32_t value)
{
___ByteCountLastOperation_8 = value;
}
inline static int32_t get_offset_of_ByteCountCurrentDispatch_9() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ByteCountCurrentDispatch_9)); }
inline int32_t get_ByteCountCurrentDispatch_9() const { return ___ByteCountCurrentDispatch_9; }
inline int32_t* get_address_of_ByteCountCurrentDispatch_9() { return &___ByteCountCurrentDispatch_9; }
inline void set_ByteCountCurrentDispatch_9(int32_t value)
{
___ByteCountCurrentDispatch_9 = value;
}
inline static int32_t get_offset_of_CommandInCurrentDispatch_10() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___CommandInCurrentDispatch_10)); }
inline NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 * get_CommandInCurrentDispatch_10() const { return ___CommandInCurrentDispatch_10; }
inline NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 ** get_address_of_CommandInCurrentDispatch_10() { return &___CommandInCurrentDispatch_10; }
inline void set_CommandInCurrentDispatch_10(NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 * value)
{
___CommandInCurrentDispatch_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CommandInCurrentDispatch_10), (void*)value);
}
inline static int32_t get_offset_of_packetLossByCrc_11() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___packetLossByCrc_11)); }
inline int32_t get_packetLossByCrc_11() const { return ___packetLossByCrc_11; }
inline int32_t* get_address_of_packetLossByCrc_11() { return &___packetLossByCrc_11; }
inline void set_packetLossByCrc_11(int32_t value)
{
___packetLossByCrc_11 = value;
}
inline static int32_t get_offset_of_packetLossByChallenge_12() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___packetLossByChallenge_12)); }
inline int32_t get_packetLossByChallenge_12() const { return ___packetLossByChallenge_12; }
inline int32_t* get_address_of_packetLossByChallenge_12() { return &___packetLossByChallenge_12; }
inline void set_packetLossByChallenge_12(int32_t value)
{
___packetLossByChallenge_12 = value;
}
inline static int32_t get_offset_of_ActionQueue_13() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ActionQueue_13)); }
inline Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * get_ActionQueue_13() const { return ___ActionQueue_13; }
inline Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 ** get_address_of_ActionQueue_13() { return &___ActionQueue_13; }
inline void set_ActionQueue_13(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * value)
{
___ActionQueue_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ActionQueue_13), (void*)value);
}
inline static int32_t get_offset_of_peerID_14() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___peerID_14)); }
inline int16_t get_peerID_14() const { return ___peerID_14; }
inline int16_t* get_address_of_peerID_14() { return &___peerID_14; }
inline void set_peerID_14(int16_t value)
{
___peerID_14 = value;
}
inline static int32_t get_offset_of_serverTimeOffset_15() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___serverTimeOffset_15)); }
inline int32_t get_serverTimeOffset_15() const { return ___serverTimeOffset_15; }
inline int32_t* get_address_of_serverTimeOffset_15() { return &___serverTimeOffset_15; }
inline void set_serverTimeOffset_15(int32_t value)
{
___serverTimeOffset_15 = value;
}
inline static int32_t get_offset_of_serverTimeOffsetIsAvailable_16() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___serverTimeOffsetIsAvailable_16)); }
inline bool get_serverTimeOffsetIsAvailable_16() const { return ___serverTimeOffsetIsAvailable_16; }
inline bool* get_address_of_serverTimeOffsetIsAvailable_16() { return &___serverTimeOffsetIsAvailable_16; }
inline void set_serverTimeOffsetIsAvailable_16(bool value)
{
___serverTimeOffsetIsAvailable_16 = value;
}
inline static int32_t get_offset_of_roundTripTime_17() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___roundTripTime_17)); }
inline int32_t get_roundTripTime_17() const { return ___roundTripTime_17; }
inline int32_t* get_address_of_roundTripTime_17() { return &___roundTripTime_17; }
inline void set_roundTripTime_17(int32_t value)
{
___roundTripTime_17 = value;
}
inline static int32_t get_offset_of_roundTripTimeVariance_18() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___roundTripTimeVariance_18)); }
inline int32_t get_roundTripTimeVariance_18() const { return ___roundTripTimeVariance_18; }
inline int32_t* get_address_of_roundTripTimeVariance_18() { return &___roundTripTimeVariance_18; }
inline void set_roundTripTimeVariance_18(int32_t value)
{
___roundTripTimeVariance_18 = value;
}
inline static int32_t get_offset_of_lastRoundTripTime_19() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___lastRoundTripTime_19)); }
inline int32_t get_lastRoundTripTime_19() const { return ___lastRoundTripTime_19; }
inline int32_t* get_address_of_lastRoundTripTime_19() { return &___lastRoundTripTime_19; }
inline void set_lastRoundTripTime_19(int32_t value)
{
___lastRoundTripTime_19 = value;
}
inline static int32_t get_offset_of_lowestRoundTripTime_20() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___lowestRoundTripTime_20)); }
inline int32_t get_lowestRoundTripTime_20() const { return ___lowestRoundTripTime_20; }
inline int32_t* get_address_of_lowestRoundTripTime_20() { return &___lowestRoundTripTime_20; }
inline void set_lowestRoundTripTime_20(int32_t value)
{
___lowestRoundTripTime_20 = value;
}
inline static int32_t get_offset_of_highestRoundTripTimeVariance_21() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___highestRoundTripTimeVariance_21)); }
inline int32_t get_highestRoundTripTimeVariance_21() const { return ___highestRoundTripTimeVariance_21; }
inline int32_t* get_address_of_highestRoundTripTimeVariance_21() { return &___highestRoundTripTimeVariance_21; }
inline void set_highestRoundTripTimeVariance_21(int32_t value)
{
___highestRoundTripTimeVariance_21 = value;
}
inline static int32_t get_offset_of_timestampOfLastReceive_22() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timestampOfLastReceive_22)); }
inline int32_t get_timestampOfLastReceive_22() const { return ___timestampOfLastReceive_22; }
inline int32_t* get_address_of_timestampOfLastReceive_22() { return &___timestampOfLastReceive_22; }
inline void set_timestampOfLastReceive_22(int32_t value)
{
___timestampOfLastReceive_22 = value;
}
inline static int32_t get_offset_of_bytesOut_24() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___bytesOut_24)); }
inline int64_t get_bytesOut_24() const { return ___bytesOut_24; }
inline int64_t* get_address_of_bytesOut_24() { return &___bytesOut_24; }
inline void set_bytesOut_24(int64_t value)
{
___bytesOut_24 = value;
}
inline static int32_t get_offset_of_bytesIn_25() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___bytesIn_25)); }
inline int64_t get_bytesIn_25() const { return ___bytesIn_25; }
inline int64_t* get_address_of_bytesIn_25() { return &___bytesIn_25; }
inline void set_bytesIn_25(int64_t value)
{
___bytesIn_25 = value;
}
inline static int32_t get_offset_of_CustomInitData_26() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___CustomInitData_26)); }
inline RuntimeObject * get_CustomInitData_26() const { return ___CustomInitData_26; }
inline RuntimeObject ** get_address_of_CustomInitData_26() { return &___CustomInitData_26; }
inline void set_CustomInitData_26(RuntimeObject * value)
{
___CustomInitData_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CustomInitData_26), (void*)value);
}
inline static int32_t get_offset_of_AppId_27() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___AppId_27)); }
inline String_t* get_AppId_27() const { return ___AppId_27; }
inline String_t** get_address_of_AppId_27() { return &___AppId_27; }
inline void set_AppId_27(String_t* value)
{
___AppId_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___AppId_27), (void*)value);
}
inline static int32_t get_offset_of_reusableEventData_28() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___reusableEventData_28)); }
inline EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 * get_reusableEventData_28() const { return ___reusableEventData_28; }
inline EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 ** get_address_of_reusableEventData_28() { return &___reusableEventData_28; }
inline void set_reusableEventData_28(EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 * value)
{
___reusableEventData_28 = value;
Il2CppCodeGenWriteBarrier((void**)(&___reusableEventData_28), (void*)value);
}
inline static int32_t get_offset_of_timeBase_29() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeBase_29)); }
inline int32_t get_timeBase_29() const { return ___timeBase_29; }
inline int32_t* get_address_of_timeBase_29() { return &___timeBase_29; }
inline void set_timeBase_29(int32_t value)
{
___timeBase_29 = value;
}
inline static int32_t get_offset_of_timeoutInt_30() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeoutInt_30)); }
inline int32_t get_timeoutInt_30() const { return ___timeoutInt_30; }
inline int32_t* get_address_of_timeoutInt_30() { return &___timeoutInt_30; }
inline void set_timeoutInt_30(int32_t value)
{
___timeoutInt_30 = value;
}
inline static int32_t get_offset_of_timeLastAckReceive_31() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeLastAckReceive_31)); }
inline int32_t get_timeLastAckReceive_31() const { return ___timeLastAckReceive_31; }
inline int32_t* get_address_of_timeLastAckReceive_31() { return &___timeLastAckReceive_31; }
inline void set_timeLastAckReceive_31(int32_t value)
{
___timeLastAckReceive_31 = value;
}
inline static int32_t get_offset_of_longestSentCall_32() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___longestSentCall_32)); }
inline int32_t get_longestSentCall_32() const { return ___longestSentCall_32; }
inline int32_t* get_address_of_longestSentCall_32() { return &___longestSentCall_32; }
inline void set_longestSentCall_32(int32_t value)
{
___longestSentCall_32 = value;
}
inline static int32_t get_offset_of_timeLastSendAck_33() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeLastSendAck_33)); }
inline int32_t get_timeLastSendAck_33() const { return ___timeLastSendAck_33; }
inline int32_t* get_address_of_timeLastSendAck_33() { return &___timeLastSendAck_33; }
inline void set_timeLastSendAck_33(int32_t value)
{
___timeLastSendAck_33 = value;
}
inline static int32_t get_offset_of_timeLastSendOutgoing_34() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeLastSendOutgoing_34)); }
inline int32_t get_timeLastSendOutgoing_34() const { return ___timeLastSendOutgoing_34; }
inline int32_t* get_address_of_timeLastSendOutgoing_34() { return &___timeLastSendOutgoing_34; }
inline void set_timeLastSendOutgoing_34(int32_t value)
{
___timeLastSendOutgoing_34 = value;
}
inline static int32_t get_offset_of_ApplicationIsInitialized_35() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ApplicationIsInitialized_35)); }
inline bool get_ApplicationIsInitialized_35() const { return ___ApplicationIsInitialized_35; }
inline bool* get_address_of_ApplicationIsInitialized_35() { return &___ApplicationIsInitialized_35; }
inline void set_ApplicationIsInitialized_35(bool value)
{
___ApplicationIsInitialized_35 = value;
}
inline static int32_t get_offset_of_isEncryptionAvailable_36() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___isEncryptionAvailable_36)); }
inline bool get_isEncryptionAvailable_36() const { return ___isEncryptionAvailable_36; }
inline bool* get_address_of_isEncryptionAvailable_36() { return &___isEncryptionAvailable_36; }
inline void set_isEncryptionAvailable_36(bool value)
{
___isEncryptionAvailable_36 = value;
}
inline static int32_t get_offset_of_outgoingCommandsInStream_37() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___outgoingCommandsInStream_37)); }
inline int32_t get_outgoingCommandsInStream_37() const { return ___outgoingCommandsInStream_37; }
inline int32_t* get_address_of_outgoingCommandsInStream_37() { return &___outgoingCommandsInStream_37; }
inline void set_outgoingCommandsInStream_37(int32_t value)
{
___outgoingCommandsInStream_37 = value;
}
inline static int32_t get_offset_of_CryptoProvider_39() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___CryptoProvider_39)); }
inline RuntimeObject* get_CryptoProvider_39() const { return ___CryptoProvider_39; }
inline RuntimeObject** get_address_of_CryptoProvider_39() { return &___CryptoProvider_39; }
inline void set_CryptoProvider_39(RuntimeObject* value)
{
___CryptoProvider_39 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CryptoProvider_39), (void*)value);
}
inline static int32_t get_offset_of_lagRandomizer_40() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___lagRandomizer_40)); }
inline Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * get_lagRandomizer_40() const { return ___lagRandomizer_40; }
inline Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F ** get_address_of_lagRandomizer_40() { return &___lagRandomizer_40; }
inline void set_lagRandomizer_40(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * value)
{
___lagRandomizer_40 = value;
Il2CppCodeGenWriteBarrier((void**)(&___lagRandomizer_40), (void*)value);
}
inline static int32_t get_offset_of_NetSimListOutgoing_41() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___NetSimListOutgoing_41)); }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * get_NetSimListOutgoing_41() const { return ___NetSimListOutgoing_41; }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 ** get_address_of_NetSimListOutgoing_41() { return &___NetSimListOutgoing_41; }
inline void set_NetSimListOutgoing_41(LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * value)
{
___NetSimListOutgoing_41 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NetSimListOutgoing_41), (void*)value);
}
inline static int32_t get_offset_of_NetSimListIncoming_42() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___NetSimListIncoming_42)); }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * get_NetSimListIncoming_42() const { return ___NetSimListIncoming_42; }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 ** get_address_of_NetSimListIncoming_42() { return &___NetSimListIncoming_42; }
inline void set_NetSimListIncoming_42(LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * value)
{
___NetSimListIncoming_42 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NetSimListIncoming_42), (void*)value);
}
inline static int32_t get_offset_of_networkSimulationSettings_43() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___networkSimulationSettings_43)); }
inline NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * get_networkSimulationSettings_43() const { return ___networkSimulationSettings_43; }
inline NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 ** get_address_of_networkSimulationSettings_43() { return &___networkSimulationSettings_43; }
inline void set_networkSimulationSettings_43(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * value)
{
___networkSimulationSettings_43 = value;
Il2CppCodeGenWriteBarrier((void**)(&___networkSimulationSettings_43), (void*)value);
}
inline static int32_t get_offset_of_TrafficPackageHeaderSize_44() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___TrafficPackageHeaderSize_44)); }
inline int32_t get_TrafficPackageHeaderSize_44() const { return ___TrafficPackageHeaderSize_44; }
inline int32_t* get_address_of_TrafficPackageHeaderSize_44() { return &___TrafficPackageHeaderSize_44; }
inline void set_TrafficPackageHeaderSize_44(int32_t value)
{
___TrafficPackageHeaderSize_44 = value;
}
};
struct PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_StaticFields
{
public:
// System.Int16 ExitGames.Client.Photon.PeerBase::peerCount
int16_t ___peerCount_23;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.StreamBuffer> ExitGames.Client.Photon.PeerBase::MessageBufferPool
Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF * ___MessageBufferPool_38;
public:
inline static int32_t get_offset_of_peerCount_23() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_StaticFields, ___peerCount_23)); }
inline int16_t get_peerCount_23() const { return ___peerCount_23; }
inline int16_t* get_address_of_peerCount_23() { return &___peerCount_23; }
inline void set_peerCount_23(int16_t value)
{
___peerCount_23 = value;
}
inline static int32_t get_offset_of_MessageBufferPool_38() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_StaticFields, ___MessageBufferPool_38)); }
inline Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF * get_MessageBufferPool_38() const { return ___MessageBufferPool_38; }
inline Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF ** get_address_of_MessageBufferPool_38() { return &___MessageBufferPool_38; }
inline void set_MessageBufferPool_38(Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF * value)
{
___MessageBufferPool_38 = value;
Il2CppCodeGenWriteBarrier((void**)(&___MessageBufferPool_38), (void*)value);
}
};
// ExitGames.Client.Photon.PhotonPeer
struct PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD : public RuntimeObject
{
public:
// System.Int32 ExitGames.Client.Photon.PhotonPeer::<CommandBufferSize>k__BackingField
int32_t ___U3CCommandBufferSizeU3Ek__BackingField_0;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::<LimitOfUnreliableCommands>k__BackingField
int32_t ___U3CLimitOfUnreliableCommandsU3Ek__BackingField_1;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::WarningSize
int32_t ___WarningSize_2;
// System.Byte ExitGames.Client.Photon.PhotonPeer::ClientSdkId
uint8_t ___ClientSdkId_8;
// System.String ExitGames.Client.Photon.PhotonPeer::clientVersion
String_t* ___clientVersion_9;
// ExitGames.Client.Photon.SerializationProtocol ExitGames.Client.Photon.PhotonPeer::<SerializationProtocolType>k__BackingField
int32_t ___U3CSerializationProtocolTypeU3Ek__BackingField_14;
// System.Collections.Generic.Dictionary`2<ExitGames.Client.Photon.ConnectionProtocol,System.Type> ExitGames.Client.Photon.PhotonPeer::SocketImplementationConfig
Dictionary_2_t7BE88B14041821866A1B365000220B43416B627A * ___SocketImplementationConfig_15;
// System.Type ExitGames.Client.Photon.PhotonPeer::<SocketImplementation>k__BackingField
Type_t * ___U3CSocketImplementationU3Ek__BackingField_16;
// ExitGames.Client.Photon.DebugLevel ExitGames.Client.Photon.PhotonPeer::DebugOut
uint8_t ___DebugOut_17;
// ExitGames.Client.Photon.IPhotonPeerListener ExitGames.Client.Photon.PhotonPeer::<Listener>k__BackingField
RuntimeObject* ___U3CListenerU3Ek__BackingField_18;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::reuseEventInstance
bool ___reuseEventInstance_19;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::useByteArraySlicePoolForEvents
bool ___useByteArraySlicePoolForEvents_20;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::SendInCreationOrder
bool ___SendInCreationOrder_21;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::CommandLogSize
int32_t ___CommandLogSize_22;
// ExitGames.Client.Photon.ITrafficRecorder ExitGames.Client.Photon.PhotonPeer::TrafficRecorder
RuntimeObject* ___TrafficRecorder_23;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::<EnableServerTracing>k__BackingField
bool ___U3CEnableServerTracingU3Ek__BackingField_24;
// System.Byte ExitGames.Client.Photon.PhotonPeer::quickResendAttempts
uint8_t ___quickResendAttempts_25;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::RhttpMinConnections
int32_t ___RhttpMinConnections_26;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::RhttpMaxConnections
int32_t ___RhttpMaxConnections_27;
// System.Byte ExitGames.Client.Photon.PhotonPeer::ChannelCount
uint8_t ___ChannelCount_28;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::EnableEncryptedFlag
bool ___EnableEncryptedFlag_29;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::crcEnabled
bool ___crcEnabled_30;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::SentCountAllowance
int32_t ___SentCountAllowance_31;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::InitialResendTimeMax
int32_t ___InitialResendTimeMax_32;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::TimePingInterval
int32_t ___TimePingInterval_33;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::DisconnectTimeout
int32_t ___DisconnectTimeout_34;
// ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.PhotonPeer::<TransportProtocol>k__BackingField
uint8_t ___U3CTransportProtocolU3Ek__BackingField_35;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::mtu
int32_t ___mtu_37;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::<IsSendingOnlyAcks>k__BackingField
bool ___U3CIsSendingOnlyAcksU3Ek__BackingField_38;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::RandomizeSequenceNumbers
bool ___RandomizeSequenceNumbers_40;
// System.Byte[] ExitGames.Client.Photon.PhotonPeer::RandomizedSequenceNumbers
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___RandomizedSequenceNumbers_41;
// ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PhotonPeer::<TrafficStatsIncoming>k__BackingField
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * ___U3CTrafficStatsIncomingU3Ek__BackingField_42;
// ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PhotonPeer::<TrafficStatsOutgoing>k__BackingField
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * ___U3CTrafficStatsOutgoingU3Ek__BackingField_43;
// ExitGames.Client.Photon.TrafficStatsGameLevel ExitGames.Client.Photon.PhotonPeer::<TrafficStatsGameLevel>k__BackingField
TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * ___U3CTrafficStatsGameLevelU3Ek__BackingField_44;
// System.Diagnostics.Stopwatch ExitGames.Client.Photon.PhotonPeer::trafficStatsStopwatch
Stopwatch_t0778B5C8DF8FE1D87FC57A2411DA695850BD64D4 * ___trafficStatsStopwatch_45;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::trafficStatsEnabled
bool ___trafficStatsEnabled_46;
// ExitGames.Client.Photon.PeerBase ExitGames.Client.Photon.PhotonPeer::peerBase
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___peerBase_47;
// System.Object ExitGames.Client.Photon.PhotonPeer::SendOutgoingLockObject
RuntimeObject * ___SendOutgoingLockObject_48;
// System.Object ExitGames.Client.Photon.PhotonPeer::DispatchLockObject
RuntimeObject * ___DispatchLockObject_49;
// System.Object ExitGames.Client.Photon.PhotonPeer::EnqueueLock
RuntimeObject * ___EnqueueLock_50;
// System.Byte[] ExitGames.Client.Photon.PhotonPeer::PayloadEncryptionSecret
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___PayloadEncryptionSecret_51;
// System.Type ExitGames.Client.Photon.PhotonPeer::encryptorType
Type_t * ___encryptorType_52;
// ExitGames.Client.Photon.Encryption.IPhotonEncryptor ExitGames.Client.Photon.PhotonPeer::Encryptor
RuntimeObject* ___Encryptor_53;
public:
inline static int32_t get_offset_of_U3CCommandBufferSizeU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CCommandBufferSizeU3Ek__BackingField_0)); }
inline int32_t get_U3CCommandBufferSizeU3Ek__BackingField_0() const { return ___U3CCommandBufferSizeU3Ek__BackingField_0; }
inline int32_t* get_address_of_U3CCommandBufferSizeU3Ek__BackingField_0() { return &___U3CCommandBufferSizeU3Ek__BackingField_0; }
inline void set_U3CCommandBufferSizeU3Ek__BackingField_0(int32_t value)
{
___U3CCommandBufferSizeU3Ek__BackingField_0 = value;
}
inline static int32_t get_offset_of_U3CLimitOfUnreliableCommandsU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CLimitOfUnreliableCommandsU3Ek__BackingField_1)); }
inline int32_t get_U3CLimitOfUnreliableCommandsU3Ek__BackingField_1() const { return ___U3CLimitOfUnreliableCommandsU3Ek__BackingField_1; }
inline int32_t* get_address_of_U3CLimitOfUnreliableCommandsU3Ek__BackingField_1() { return &___U3CLimitOfUnreliableCommandsU3Ek__BackingField_1; }
inline void set_U3CLimitOfUnreliableCommandsU3Ek__BackingField_1(int32_t value)
{
___U3CLimitOfUnreliableCommandsU3Ek__BackingField_1 = value;
}
inline static int32_t get_offset_of_WarningSize_2() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___WarningSize_2)); }
inline int32_t get_WarningSize_2() const { return ___WarningSize_2; }
inline int32_t* get_address_of_WarningSize_2() { return &___WarningSize_2; }
inline void set_WarningSize_2(int32_t value)
{
___WarningSize_2 = value;
}
inline static int32_t get_offset_of_ClientSdkId_8() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___ClientSdkId_8)); }
inline uint8_t get_ClientSdkId_8() const { return ___ClientSdkId_8; }
inline uint8_t* get_address_of_ClientSdkId_8() { return &___ClientSdkId_8; }
inline void set_ClientSdkId_8(uint8_t value)
{
___ClientSdkId_8 = value;
}
inline static int32_t get_offset_of_clientVersion_9() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___clientVersion_9)); }
inline String_t* get_clientVersion_9() const { return ___clientVersion_9; }
inline String_t** get_address_of_clientVersion_9() { return &___clientVersion_9; }
inline void set_clientVersion_9(String_t* value)
{
___clientVersion_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___clientVersion_9), (void*)value);
}
inline static int32_t get_offset_of_U3CSerializationProtocolTypeU3Ek__BackingField_14() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CSerializationProtocolTypeU3Ek__BackingField_14)); }
inline int32_t get_U3CSerializationProtocolTypeU3Ek__BackingField_14() const { return ___U3CSerializationProtocolTypeU3Ek__BackingField_14; }
inline int32_t* get_address_of_U3CSerializationProtocolTypeU3Ek__BackingField_14() { return &___U3CSerializationProtocolTypeU3Ek__BackingField_14; }
inline void set_U3CSerializationProtocolTypeU3Ek__BackingField_14(int32_t value)
{
___U3CSerializationProtocolTypeU3Ek__BackingField_14 = value;
}
inline static int32_t get_offset_of_SocketImplementationConfig_15() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___SocketImplementationConfig_15)); }
inline Dictionary_2_t7BE88B14041821866A1B365000220B43416B627A * get_SocketImplementationConfig_15() const { return ___SocketImplementationConfig_15; }
inline Dictionary_2_t7BE88B14041821866A1B365000220B43416B627A ** get_address_of_SocketImplementationConfig_15() { return &___SocketImplementationConfig_15; }
inline void set_SocketImplementationConfig_15(Dictionary_2_t7BE88B14041821866A1B365000220B43416B627A * value)
{
___SocketImplementationConfig_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SocketImplementationConfig_15), (void*)value);
}
inline static int32_t get_offset_of_U3CSocketImplementationU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CSocketImplementationU3Ek__BackingField_16)); }
inline Type_t * get_U3CSocketImplementationU3Ek__BackingField_16() const { return ___U3CSocketImplementationU3Ek__BackingField_16; }
inline Type_t ** get_address_of_U3CSocketImplementationU3Ek__BackingField_16() { return &___U3CSocketImplementationU3Ek__BackingField_16; }
inline void set_U3CSocketImplementationU3Ek__BackingField_16(Type_t * value)
{
___U3CSocketImplementationU3Ek__BackingField_16 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CSocketImplementationU3Ek__BackingField_16), (void*)value);
}
inline static int32_t get_offset_of_DebugOut_17() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___DebugOut_17)); }
inline uint8_t get_DebugOut_17() const { return ___DebugOut_17; }
inline uint8_t* get_address_of_DebugOut_17() { return &___DebugOut_17; }
inline void set_DebugOut_17(uint8_t value)
{
___DebugOut_17 = value;
}
inline static int32_t get_offset_of_U3CListenerU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CListenerU3Ek__BackingField_18)); }
inline RuntimeObject* get_U3CListenerU3Ek__BackingField_18() const { return ___U3CListenerU3Ek__BackingField_18; }
inline RuntimeObject** get_address_of_U3CListenerU3Ek__BackingField_18() { return &___U3CListenerU3Ek__BackingField_18; }
inline void set_U3CListenerU3Ek__BackingField_18(RuntimeObject* value)
{
___U3CListenerU3Ek__BackingField_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CListenerU3Ek__BackingField_18), (void*)value);
}
inline static int32_t get_offset_of_reuseEventInstance_19() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___reuseEventInstance_19)); }
inline bool get_reuseEventInstance_19() const { return ___reuseEventInstance_19; }
inline bool* get_address_of_reuseEventInstance_19() { return &___reuseEventInstance_19; }
inline void set_reuseEventInstance_19(bool value)
{
___reuseEventInstance_19 = value;
}
inline static int32_t get_offset_of_useByteArraySlicePoolForEvents_20() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___useByteArraySlicePoolForEvents_20)); }
inline bool get_useByteArraySlicePoolForEvents_20() const { return ___useByteArraySlicePoolForEvents_20; }
inline bool* get_address_of_useByteArraySlicePoolForEvents_20() { return &___useByteArraySlicePoolForEvents_20; }
inline void set_useByteArraySlicePoolForEvents_20(bool value)
{
___useByteArraySlicePoolForEvents_20 = value;
}
inline static int32_t get_offset_of_SendInCreationOrder_21() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___SendInCreationOrder_21)); }
inline bool get_SendInCreationOrder_21() const { return ___SendInCreationOrder_21; }
inline bool* get_address_of_SendInCreationOrder_21() { return &___SendInCreationOrder_21; }
inline void set_SendInCreationOrder_21(bool value)
{
___SendInCreationOrder_21 = value;
}
inline static int32_t get_offset_of_CommandLogSize_22() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___CommandLogSize_22)); }
inline int32_t get_CommandLogSize_22() const { return ___CommandLogSize_22; }
inline int32_t* get_address_of_CommandLogSize_22() { return &___CommandLogSize_22; }
inline void set_CommandLogSize_22(int32_t value)
{
___CommandLogSize_22 = value;
}
inline static int32_t get_offset_of_TrafficRecorder_23() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___TrafficRecorder_23)); }
inline RuntimeObject* get_TrafficRecorder_23() const { return ___TrafficRecorder_23; }
inline RuntimeObject** get_address_of_TrafficRecorder_23() { return &___TrafficRecorder_23; }
inline void set_TrafficRecorder_23(RuntimeObject* value)
{
___TrafficRecorder_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrafficRecorder_23), (void*)value);
}
inline static int32_t get_offset_of_U3CEnableServerTracingU3Ek__BackingField_24() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CEnableServerTracingU3Ek__BackingField_24)); }
inline bool get_U3CEnableServerTracingU3Ek__BackingField_24() const { return ___U3CEnableServerTracingU3Ek__BackingField_24; }
inline bool* get_address_of_U3CEnableServerTracingU3Ek__BackingField_24() { return &___U3CEnableServerTracingU3Ek__BackingField_24; }
inline void set_U3CEnableServerTracingU3Ek__BackingField_24(bool value)
{
___U3CEnableServerTracingU3Ek__BackingField_24 = value;
}
inline static int32_t get_offset_of_quickResendAttempts_25() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___quickResendAttempts_25)); }
inline uint8_t get_quickResendAttempts_25() const { return ___quickResendAttempts_25; }
inline uint8_t* get_address_of_quickResendAttempts_25() { return &___quickResendAttempts_25; }
inline void set_quickResendAttempts_25(uint8_t value)
{
___quickResendAttempts_25 = value;
}
inline static int32_t get_offset_of_RhttpMinConnections_26() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___RhttpMinConnections_26)); }
inline int32_t get_RhttpMinConnections_26() const { return ___RhttpMinConnections_26; }
inline int32_t* get_address_of_RhttpMinConnections_26() { return &___RhttpMinConnections_26; }
inline void set_RhttpMinConnections_26(int32_t value)
{
___RhttpMinConnections_26 = value;
}
inline static int32_t get_offset_of_RhttpMaxConnections_27() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___RhttpMaxConnections_27)); }
inline int32_t get_RhttpMaxConnections_27() const { return ___RhttpMaxConnections_27; }
inline int32_t* get_address_of_RhttpMaxConnections_27() { return &___RhttpMaxConnections_27; }
inline void set_RhttpMaxConnections_27(int32_t value)
{
___RhttpMaxConnections_27 = value;
}
inline static int32_t get_offset_of_ChannelCount_28() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___ChannelCount_28)); }
inline uint8_t get_ChannelCount_28() const { return ___ChannelCount_28; }
inline uint8_t* get_address_of_ChannelCount_28() { return &___ChannelCount_28; }
inline void set_ChannelCount_28(uint8_t value)
{
___ChannelCount_28 = value;
}
inline static int32_t get_offset_of_EnableEncryptedFlag_29() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___EnableEncryptedFlag_29)); }
inline bool get_EnableEncryptedFlag_29() const { return ___EnableEncryptedFlag_29; }
inline bool* get_address_of_EnableEncryptedFlag_29() { return &___EnableEncryptedFlag_29; }
inline void set_EnableEncryptedFlag_29(bool value)
{
___EnableEncryptedFlag_29 = value;
}
inline static int32_t get_offset_of_crcEnabled_30() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___crcEnabled_30)); }
inline bool get_crcEnabled_30() const { return ___crcEnabled_30; }
inline bool* get_address_of_crcEnabled_30() { return &___crcEnabled_30; }
inline void set_crcEnabled_30(bool value)
{
___crcEnabled_30 = value;
}
inline static int32_t get_offset_of_SentCountAllowance_31() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___SentCountAllowance_31)); }
inline int32_t get_SentCountAllowance_31() const { return ___SentCountAllowance_31; }
inline int32_t* get_address_of_SentCountAllowance_31() { return &___SentCountAllowance_31; }
inline void set_SentCountAllowance_31(int32_t value)
{
___SentCountAllowance_31 = value;
}
inline static int32_t get_offset_of_InitialResendTimeMax_32() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___InitialResendTimeMax_32)); }
inline int32_t get_InitialResendTimeMax_32() const { return ___InitialResendTimeMax_32; }
inline int32_t* get_address_of_InitialResendTimeMax_32() { return &___InitialResendTimeMax_32; }
inline void set_InitialResendTimeMax_32(int32_t value)
{
___InitialResendTimeMax_32 = value;
}
inline static int32_t get_offset_of_TimePingInterval_33() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___TimePingInterval_33)); }
inline int32_t get_TimePingInterval_33() const { return ___TimePingInterval_33; }
inline int32_t* get_address_of_TimePingInterval_33() { return &___TimePingInterval_33; }
inline void set_TimePingInterval_33(int32_t value)
{
___TimePingInterval_33 = value;
}
inline static int32_t get_offset_of_DisconnectTimeout_34() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___DisconnectTimeout_34)); }
inline int32_t get_DisconnectTimeout_34() const { return ___DisconnectTimeout_34; }
inline int32_t* get_address_of_DisconnectTimeout_34() { return &___DisconnectTimeout_34; }
inline void set_DisconnectTimeout_34(int32_t value)
{
___DisconnectTimeout_34 = value;
}
inline static int32_t get_offset_of_U3CTransportProtocolU3Ek__BackingField_35() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CTransportProtocolU3Ek__BackingField_35)); }
inline uint8_t get_U3CTransportProtocolU3Ek__BackingField_35() const { return ___U3CTransportProtocolU3Ek__BackingField_35; }
inline uint8_t* get_address_of_U3CTransportProtocolU3Ek__BackingField_35() { return &___U3CTransportProtocolU3Ek__BackingField_35; }
inline void set_U3CTransportProtocolU3Ek__BackingField_35(uint8_t value)
{
___U3CTransportProtocolU3Ek__BackingField_35 = value;
}
inline static int32_t get_offset_of_mtu_37() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___mtu_37)); }
inline int32_t get_mtu_37() const { return ___mtu_37; }
inline int32_t* get_address_of_mtu_37() { return &___mtu_37; }
inline void set_mtu_37(int32_t value)
{
___mtu_37 = value;
}
inline static int32_t get_offset_of_U3CIsSendingOnlyAcksU3Ek__BackingField_38() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CIsSendingOnlyAcksU3Ek__BackingField_38)); }
inline bool get_U3CIsSendingOnlyAcksU3Ek__BackingField_38() const { return ___U3CIsSendingOnlyAcksU3Ek__BackingField_38; }
inline bool* get_address_of_U3CIsSendingOnlyAcksU3Ek__BackingField_38() { return &___U3CIsSendingOnlyAcksU3Ek__BackingField_38; }
inline void set_U3CIsSendingOnlyAcksU3Ek__BackingField_38(bool value)
{
___U3CIsSendingOnlyAcksU3Ek__BackingField_38 = value;
}
inline static int32_t get_offset_of_RandomizeSequenceNumbers_40() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___RandomizeSequenceNumbers_40)); }
inline bool get_RandomizeSequenceNumbers_40() const { return ___RandomizeSequenceNumbers_40; }
inline bool* get_address_of_RandomizeSequenceNumbers_40() { return &___RandomizeSequenceNumbers_40; }
inline void set_RandomizeSequenceNumbers_40(bool value)
{
___RandomizeSequenceNumbers_40 = value;
}
inline static int32_t get_offset_of_RandomizedSequenceNumbers_41() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___RandomizedSequenceNumbers_41)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_RandomizedSequenceNumbers_41() const { return ___RandomizedSequenceNumbers_41; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_RandomizedSequenceNumbers_41() { return &___RandomizedSequenceNumbers_41; }
inline void set_RandomizedSequenceNumbers_41(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___RandomizedSequenceNumbers_41 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RandomizedSequenceNumbers_41), (void*)value);
}
inline static int32_t get_offset_of_U3CTrafficStatsIncomingU3Ek__BackingField_42() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CTrafficStatsIncomingU3Ek__BackingField_42)); }
inline TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * get_U3CTrafficStatsIncomingU3Ek__BackingField_42() const { return ___U3CTrafficStatsIncomingU3Ek__BackingField_42; }
inline TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 ** get_address_of_U3CTrafficStatsIncomingU3Ek__BackingField_42() { return &___U3CTrafficStatsIncomingU3Ek__BackingField_42; }
inline void set_U3CTrafficStatsIncomingU3Ek__BackingField_42(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * value)
{
___U3CTrafficStatsIncomingU3Ek__BackingField_42 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CTrafficStatsIncomingU3Ek__BackingField_42), (void*)value);
}
inline static int32_t get_offset_of_U3CTrafficStatsOutgoingU3Ek__BackingField_43() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CTrafficStatsOutgoingU3Ek__BackingField_43)); }
inline TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * get_U3CTrafficStatsOutgoingU3Ek__BackingField_43() const { return ___U3CTrafficStatsOutgoingU3Ek__BackingField_43; }
inline TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 ** get_address_of_U3CTrafficStatsOutgoingU3Ek__BackingField_43() { return &___U3CTrafficStatsOutgoingU3Ek__BackingField_43; }
inline void set_U3CTrafficStatsOutgoingU3Ek__BackingField_43(TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * value)
{
___U3CTrafficStatsOutgoingU3Ek__BackingField_43 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CTrafficStatsOutgoingU3Ek__BackingField_43), (void*)value);
}
inline static int32_t get_offset_of_U3CTrafficStatsGameLevelU3Ek__BackingField_44() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___U3CTrafficStatsGameLevelU3Ek__BackingField_44)); }
inline TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * get_U3CTrafficStatsGameLevelU3Ek__BackingField_44() const { return ___U3CTrafficStatsGameLevelU3Ek__BackingField_44; }
inline TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A ** get_address_of_U3CTrafficStatsGameLevelU3Ek__BackingField_44() { return &___U3CTrafficStatsGameLevelU3Ek__BackingField_44; }
inline void set_U3CTrafficStatsGameLevelU3Ek__BackingField_44(TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * value)
{
___U3CTrafficStatsGameLevelU3Ek__BackingField_44 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CTrafficStatsGameLevelU3Ek__BackingField_44), (void*)value);
}
inline static int32_t get_offset_of_trafficStatsStopwatch_45() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___trafficStatsStopwatch_45)); }
inline Stopwatch_t0778B5C8DF8FE1D87FC57A2411DA695850BD64D4 * get_trafficStatsStopwatch_45() const { return ___trafficStatsStopwatch_45; }
inline Stopwatch_t0778B5C8DF8FE1D87FC57A2411DA695850BD64D4 ** get_address_of_trafficStatsStopwatch_45() { return &___trafficStatsStopwatch_45; }
inline void set_trafficStatsStopwatch_45(Stopwatch_t0778B5C8DF8FE1D87FC57A2411DA695850BD64D4 * value)
{
___trafficStatsStopwatch_45 = value;
Il2CppCodeGenWriteBarrier((void**)(&___trafficStatsStopwatch_45), (void*)value);
}
inline static int32_t get_offset_of_trafficStatsEnabled_46() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___trafficStatsEnabled_46)); }
inline bool get_trafficStatsEnabled_46() const { return ___trafficStatsEnabled_46; }
inline bool* get_address_of_trafficStatsEnabled_46() { return &___trafficStatsEnabled_46; }
inline void set_trafficStatsEnabled_46(bool value)
{
___trafficStatsEnabled_46 = value;
}
inline static int32_t get_offset_of_peerBase_47() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___peerBase_47)); }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * get_peerBase_47() const { return ___peerBase_47; }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 ** get_address_of_peerBase_47() { return &___peerBase_47; }
inline void set_peerBase_47(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * value)
{
___peerBase_47 = value;
Il2CppCodeGenWriteBarrier((void**)(&___peerBase_47), (void*)value);
}
inline static int32_t get_offset_of_SendOutgoingLockObject_48() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___SendOutgoingLockObject_48)); }
inline RuntimeObject * get_SendOutgoingLockObject_48() const { return ___SendOutgoingLockObject_48; }
inline RuntimeObject ** get_address_of_SendOutgoingLockObject_48() { return &___SendOutgoingLockObject_48; }
inline void set_SendOutgoingLockObject_48(RuntimeObject * value)
{
___SendOutgoingLockObject_48 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SendOutgoingLockObject_48), (void*)value);
}
inline static int32_t get_offset_of_DispatchLockObject_49() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___DispatchLockObject_49)); }
inline RuntimeObject * get_DispatchLockObject_49() const { return ___DispatchLockObject_49; }
inline RuntimeObject ** get_address_of_DispatchLockObject_49() { return &___DispatchLockObject_49; }
inline void set_DispatchLockObject_49(RuntimeObject * value)
{
___DispatchLockObject_49 = value;
Il2CppCodeGenWriteBarrier((void**)(&___DispatchLockObject_49), (void*)value);
}
inline static int32_t get_offset_of_EnqueueLock_50() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___EnqueueLock_50)); }
inline RuntimeObject * get_EnqueueLock_50() const { return ___EnqueueLock_50; }
inline RuntimeObject ** get_address_of_EnqueueLock_50() { return &___EnqueueLock_50; }
inline void set_EnqueueLock_50(RuntimeObject * value)
{
___EnqueueLock_50 = value;
Il2CppCodeGenWriteBarrier((void**)(&___EnqueueLock_50), (void*)value);
}
inline static int32_t get_offset_of_PayloadEncryptionSecret_51() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___PayloadEncryptionSecret_51)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_PayloadEncryptionSecret_51() const { return ___PayloadEncryptionSecret_51; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_PayloadEncryptionSecret_51() { return &___PayloadEncryptionSecret_51; }
inline void set_PayloadEncryptionSecret_51(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___PayloadEncryptionSecret_51 = value;
Il2CppCodeGenWriteBarrier((void**)(&___PayloadEncryptionSecret_51), (void*)value);
}
inline static int32_t get_offset_of_encryptorType_52() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___encryptorType_52)); }
inline Type_t * get_encryptorType_52() const { return ___encryptorType_52; }
inline Type_t ** get_address_of_encryptorType_52() { return &___encryptorType_52; }
inline void set_encryptorType_52(Type_t * value)
{
___encryptorType_52 = value;
Il2CppCodeGenWriteBarrier((void**)(&___encryptorType_52), (void*)value);
}
inline static int32_t get_offset_of_Encryptor_53() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD, ___Encryptor_53)); }
inline RuntimeObject* get_Encryptor_53() const { return ___Encryptor_53; }
inline RuntimeObject** get_address_of_Encryptor_53() { return &___Encryptor_53; }
inline void set_Encryptor_53(RuntimeObject* value)
{
___Encryptor_53 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Encryptor_53), (void*)value);
}
};
struct PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields
{
public:
// System.Boolean ExitGames.Client.Photon.PhotonPeer::NoNativeCallbacks
bool ___NoNativeCallbacks_7;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::checkedNativeLibs
bool ___checkedNativeLibs_10;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::useSocketNative
bool ___useSocketNative_11;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::useDiffieHellmanCryptoProvider
bool ___useDiffieHellmanCryptoProvider_12;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::useEncryptorNative
bool ___useEncryptorNative_13;
// System.Int32 ExitGames.Client.Photon.PhotonPeer::OutgoingStreamBufferSize
int32_t ___OutgoingStreamBufferSize_36;
// System.Boolean ExitGames.Client.Photon.PhotonPeer::AsyncKeyExchange
bool ___AsyncKeyExchange_39;
public:
inline static int32_t get_offset_of_NoNativeCallbacks_7() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___NoNativeCallbacks_7)); }
inline bool get_NoNativeCallbacks_7() const { return ___NoNativeCallbacks_7; }
inline bool* get_address_of_NoNativeCallbacks_7() { return &___NoNativeCallbacks_7; }
inline void set_NoNativeCallbacks_7(bool value)
{
___NoNativeCallbacks_7 = value;
}
inline static int32_t get_offset_of_checkedNativeLibs_10() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___checkedNativeLibs_10)); }
inline bool get_checkedNativeLibs_10() const { return ___checkedNativeLibs_10; }
inline bool* get_address_of_checkedNativeLibs_10() { return &___checkedNativeLibs_10; }
inline void set_checkedNativeLibs_10(bool value)
{
___checkedNativeLibs_10 = value;
}
inline static int32_t get_offset_of_useSocketNative_11() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___useSocketNative_11)); }
inline bool get_useSocketNative_11() const { return ___useSocketNative_11; }
inline bool* get_address_of_useSocketNative_11() { return &___useSocketNative_11; }
inline void set_useSocketNative_11(bool value)
{
___useSocketNative_11 = value;
}
inline static int32_t get_offset_of_useDiffieHellmanCryptoProvider_12() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___useDiffieHellmanCryptoProvider_12)); }
inline bool get_useDiffieHellmanCryptoProvider_12() const { return ___useDiffieHellmanCryptoProvider_12; }
inline bool* get_address_of_useDiffieHellmanCryptoProvider_12() { return &___useDiffieHellmanCryptoProvider_12; }
inline void set_useDiffieHellmanCryptoProvider_12(bool value)
{
___useDiffieHellmanCryptoProvider_12 = value;
}
inline static int32_t get_offset_of_useEncryptorNative_13() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___useEncryptorNative_13)); }
inline bool get_useEncryptorNative_13() const { return ___useEncryptorNative_13; }
inline bool* get_address_of_useEncryptorNative_13() { return &___useEncryptorNative_13; }
inline void set_useEncryptorNative_13(bool value)
{
___useEncryptorNative_13 = value;
}
inline static int32_t get_offset_of_OutgoingStreamBufferSize_36() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___OutgoingStreamBufferSize_36)); }
inline int32_t get_OutgoingStreamBufferSize_36() const { return ___OutgoingStreamBufferSize_36; }
inline int32_t* get_address_of_OutgoingStreamBufferSize_36() { return &___OutgoingStreamBufferSize_36; }
inline void set_OutgoingStreamBufferSize_36(int32_t value)
{
___OutgoingStreamBufferSize_36 = value;
}
inline static int32_t get_offset_of_AsyncKeyExchange_39() { return static_cast<int32_t>(offsetof(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD_StaticFields, ___AsyncKeyExchange_39)); }
inline bool get_AsyncKeyExchange_39() const { return ___AsyncKeyExchange_39; }
inline bool* get_address_of_AsyncKeyExchange_39() { return &___AsyncKeyExchange_39; }
inline void set_AsyncKeyExchange_39(bool value)
{
___AsyncKeyExchange_39 = value;
}
};
// ExitGames.Client.Photon.SendOptions
struct SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E
{
public:
// ExitGames.Client.Photon.DeliveryMode ExitGames.Client.Photon.SendOptions::DeliveryMode
int32_t ___DeliveryMode_2;
// System.Boolean ExitGames.Client.Photon.SendOptions::Encrypt
bool ___Encrypt_3;
// System.Byte ExitGames.Client.Photon.SendOptions::Channel
uint8_t ___Channel_4;
public:
inline static int32_t get_offset_of_DeliveryMode_2() { return static_cast<int32_t>(offsetof(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E, ___DeliveryMode_2)); }
inline int32_t get_DeliveryMode_2() const { return ___DeliveryMode_2; }
inline int32_t* get_address_of_DeliveryMode_2() { return &___DeliveryMode_2; }
inline void set_DeliveryMode_2(int32_t value)
{
___DeliveryMode_2 = value;
}
inline static int32_t get_offset_of_Encrypt_3() { return static_cast<int32_t>(offsetof(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E, ___Encrypt_3)); }
inline bool get_Encrypt_3() const { return ___Encrypt_3; }
inline bool* get_address_of_Encrypt_3() { return &___Encrypt_3; }
inline void set_Encrypt_3(bool value)
{
___Encrypt_3 = value;
}
inline static int32_t get_offset_of_Channel_4() { return static_cast<int32_t>(offsetof(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E, ___Channel_4)); }
inline uint8_t get_Channel_4() const { return ___Channel_4; }
inline uint8_t* get_address_of_Channel_4() { return &___Channel_4; }
inline void set_Channel_4(uint8_t value)
{
___Channel_4 = value;
}
};
struct SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E_StaticFields
{
public:
// ExitGames.Client.Photon.SendOptions ExitGames.Client.Photon.SendOptions::SendReliable
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E ___SendReliable_0;
// ExitGames.Client.Photon.SendOptions ExitGames.Client.Photon.SendOptions::SendUnreliable
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E ___SendUnreliable_1;
public:
inline static int32_t get_offset_of_SendReliable_0() { return static_cast<int32_t>(offsetof(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E_StaticFields, ___SendReliable_0)); }
inline SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E get_SendReliable_0() const { return ___SendReliable_0; }
inline SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E * get_address_of_SendReliable_0() { return &___SendReliable_0; }
inline void set_SendReliable_0(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E value)
{
___SendReliable_0 = value;
}
inline static int32_t get_offset_of_SendUnreliable_1() { return static_cast<int32_t>(offsetof(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E_StaticFields, ___SendUnreliable_1)); }
inline SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E get_SendUnreliable_1() const { return ___SendUnreliable_1; }
inline SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E * get_address_of_SendUnreliable_1() { return &___SendUnreliable_1; }
inline void set_SendUnreliable_1(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E value)
{
___SendUnreliable_1 = value;
}
};
// Native definition for P/Invoke marshalling of ExitGames.Client.Photon.SendOptions
struct SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E_marshaled_pinvoke
{
int32_t ___DeliveryMode_2;
int32_t ___Encrypt_3;
uint8_t ___Channel_4;
};
// Native definition for COM marshalling of ExitGames.Client.Photon.SendOptions
struct SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E_marshaled_com
{
int32_t ___DeliveryMode_2;
int32_t ___Encrypt_3;
uint8_t ___Channel_4;
};
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t
{
public:
// System.Delegate[] System.MulticastDelegate::delegates
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* ___delegates_11;
public:
inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* get_delegates_11() const { return ___delegates_11; }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86** get_address_of_delegates_11() { return &___delegates_11; }
inline void set_delegates_11(DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* value)
{
___delegates_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
{
Delegate_t_marshaled_pinvoke** ___delegates_11;
};
// Native definition for COM marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
{
Delegate_t_marshaled_com** ___delegates_11;
};
// System.Security.Cryptography.SymmetricAlgorithm
struct SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789 : public RuntimeObject
{
public:
// System.Int32 System.Security.Cryptography.SymmetricAlgorithm::BlockSizeValue
int32_t ___BlockSizeValue_0;
// System.Int32 System.Security.Cryptography.SymmetricAlgorithm::FeedbackSizeValue
int32_t ___FeedbackSizeValue_1;
// System.Byte[] System.Security.Cryptography.SymmetricAlgorithm::IVValue
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___IVValue_2;
// System.Byte[] System.Security.Cryptography.SymmetricAlgorithm::KeyValue
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___KeyValue_3;
// System.Security.Cryptography.KeySizes[] System.Security.Cryptography.SymmetricAlgorithm::LegalBlockSizesValue
KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* ___LegalBlockSizesValue_4;
// System.Security.Cryptography.KeySizes[] System.Security.Cryptography.SymmetricAlgorithm::LegalKeySizesValue
KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* ___LegalKeySizesValue_5;
// System.Int32 System.Security.Cryptography.SymmetricAlgorithm::KeySizeValue
int32_t ___KeySizeValue_6;
// System.Security.Cryptography.CipherMode System.Security.Cryptography.SymmetricAlgorithm::ModeValue
int32_t ___ModeValue_7;
// System.Security.Cryptography.PaddingMode System.Security.Cryptography.SymmetricAlgorithm::PaddingValue
int32_t ___PaddingValue_8;
public:
inline static int32_t get_offset_of_BlockSizeValue_0() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___BlockSizeValue_0)); }
inline int32_t get_BlockSizeValue_0() const { return ___BlockSizeValue_0; }
inline int32_t* get_address_of_BlockSizeValue_0() { return &___BlockSizeValue_0; }
inline void set_BlockSizeValue_0(int32_t value)
{
___BlockSizeValue_0 = value;
}
inline static int32_t get_offset_of_FeedbackSizeValue_1() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___FeedbackSizeValue_1)); }
inline int32_t get_FeedbackSizeValue_1() const { return ___FeedbackSizeValue_1; }
inline int32_t* get_address_of_FeedbackSizeValue_1() { return &___FeedbackSizeValue_1; }
inline void set_FeedbackSizeValue_1(int32_t value)
{
___FeedbackSizeValue_1 = value;
}
inline static int32_t get_offset_of_IVValue_2() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___IVValue_2)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_IVValue_2() const { return ___IVValue_2; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_IVValue_2() { return &___IVValue_2; }
inline void set_IVValue_2(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___IVValue_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___IVValue_2), (void*)value);
}
inline static int32_t get_offset_of_KeyValue_3() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___KeyValue_3)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_KeyValue_3() const { return ___KeyValue_3; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_KeyValue_3() { return &___KeyValue_3; }
inline void set_KeyValue_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___KeyValue_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___KeyValue_3), (void*)value);
}
inline static int32_t get_offset_of_LegalBlockSizesValue_4() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___LegalBlockSizesValue_4)); }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* get_LegalBlockSizesValue_4() const { return ___LegalBlockSizesValue_4; }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E** get_address_of_LegalBlockSizesValue_4() { return &___LegalBlockSizesValue_4; }
inline void set_LegalBlockSizesValue_4(KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* value)
{
___LegalBlockSizesValue_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___LegalBlockSizesValue_4), (void*)value);
}
inline static int32_t get_offset_of_LegalKeySizesValue_5() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___LegalKeySizesValue_5)); }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* get_LegalKeySizesValue_5() const { return ___LegalKeySizesValue_5; }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E** get_address_of_LegalKeySizesValue_5() { return &___LegalKeySizesValue_5; }
inline void set_LegalKeySizesValue_5(KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* value)
{
___LegalKeySizesValue_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___LegalKeySizesValue_5), (void*)value);
}
inline static int32_t get_offset_of_KeySizeValue_6() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___KeySizeValue_6)); }
inline int32_t get_KeySizeValue_6() const { return ___KeySizeValue_6; }
inline int32_t* get_address_of_KeySizeValue_6() { return &___KeySizeValue_6; }
inline void set_KeySizeValue_6(int32_t value)
{
___KeySizeValue_6 = value;
}
inline static int32_t get_offset_of_ModeValue_7() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___ModeValue_7)); }
inline int32_t get_ModeValue_7() const { return ___ModeValue_7; }
inline int32_t* get_address_of_ModeValue_7() { return &___ModeValue_7; }
inline void set_ModeValue_7(int32_t value)
{
___ModeValue_7 = value;
}
inline static int32_t get_offset_of_PaddingValue_8() { return static_cast<int32_t>(offsetof(SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789, ___PaddingValue_8)); }
inline int32_t get_PaddingValue_8() const { return ___PaddingValue_8; }
inline int32_t* get_address_of_PaddingValue_8() { return &___PaddingValue_8; }
inline void set_PaddingValue_8(int32_t value)
{
___PaddingValue_8 = value;
}
};
// System.SystemException
struct SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 : public Exception_t
{
public:
public:
};
// System.Type
struct Type_t : public MemberInfo_t
{
public:
// System.RuntimeTypeHandle System.Type::_impl
RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D ____impl_9;
public:
inline static int32_t get_offset_of__impl_9() { return static_cast<int32_t>(offsetof(Type_t, ____impl_9)); }
inline RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D get__impl_9() const { return ____impl_9; }
inline RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D * get_address_of__impl_9() { return &____impl_9; }
inline void set__impl_9(RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D value)
{
____impl_9 = value;
}
};
struct Type_t_StaticFields
{
public:
// System.Reflection.MemberFilter System.Type::FilterAttribute
MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * ___FilterAttribute_0;
// System.Reflection.MemberFilter System.Type::FilterName
MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * ___FilterName_1;
// System.Reflection.MemberFilter System.Type::FilterNameIgnoreCase
MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * ___FilterNameIgnoreCase_2;
// System.Object System.Type::Missing
RuntimeObject * ___Missing_3;
// System.Char System.Type::Delimiter
Il2CppChar ___Delimiter_4;
// System.Type[] System.Type::EmptyTypes
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___EmptyTypes_5;
// System.Reflection.Binder System.Type::defaultBinder
Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 * ___defaultBinder_6;
public:
inline static int32_t get_offset_of_FilterAttribute_0() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterAttribute_0)); }
inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * get_FilterAttribute_0() const { return ___FilterAttribute_0; }
inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 ** get_address_of_FilterAttribute_0() { return &___FilterAttribute_0; }
inline void set_FilterAttribute_0(MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * value)
{
___FilterAttribute_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FilterAttribute_0), (void*)value);
}
inline static int32_t get_offset_of_FilterName_1() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterName_1)); }
inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * get_FilterName_1() const { return ___FilterName_1; }
inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 ** get_address_of_FilterName_1() { return &___FilterName_1; }
inline void set_FilterName_1(MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * value)
{
___FilterName_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FilterName_1), (void*)value);
}
inline static int32_t get_offset_of_FilterNameIgnoreCase_2() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___FilterNameIgnoreCase_2)); }
inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * get_FilterNameIgnoreCase_2() const { return ___FilterNameIgnoreCase_2; }
inline MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 ** get_address_of_FilterNameIgnoreCase_2() { return &___FilterNameIgnoreCase_2; }
inline void set_FilterNameIgnoreCase_2(MemberFilter_t25C1BD92C42BE94426E300787C13C452CB89B381 * value)
{
___FilterNameIgnoreCase_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FilterNameIgnoreCase_2), (void*)value);
}
inline static int32_t get_offset_of_Missing_3() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Missing_3)); }
inline RuntimeObject * get_Missing_3() const { return ___Missing_3; }
inline RuntimeObject ** get_address_of_Missing_3() { return &___Missing_3; }
inline void set_Missing_3(RuntimeObject * value)
{
___Missing_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Missing_3), (void*)value);
}
inline static int32_t get_offset_of_Delimiter_4() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___Delimiter_4)); }
inline Il2CppChar get_Delimiter_4() const { return ___Delimiter_4; }
inline Il2CppChar* get_address_of_Delimiter_4() { return &___Delimiter_4; }
inline void set_Delimiter_4(Il2CppChar value)
{
___Delimiter_4 = value;
}
inline static int32_t get_offset_of_EmptyTypes_5() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___EmptyTypes_5)); }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get_EmptyTypes_5() const { return ___EmptyTypes_5; }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of_EmptyTypes_5() { return &___EmptyTypes_5; }
inline void set_EmptyTypes_5(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value)
{
___EmptyTypes_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___EmptyTypes_5), (void*)value);
}
inline static int32_t get_offset_of_defaultBinder_6() { return static_cast<int32_t>(offsetof(Type_t_StaticFields, ___defaultBinder_6)); }
inline Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 * get_defaultBinder_6() const { return ___defaultBinder_6; }
inline Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 ** get_address_of_defaultBinder_6() { return &___defaultBinder_6; }
inline void set_defaultBinder_6(Binder_t4D5CB06963501D32847C057B57157D6DC49CA759 * value)
{
___defaultBinder_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___defaultBinder_6), (void*)value);
}
};
// ExitGames.Client.Photon.PeerBase_MyAction
struct MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC : public MulticastDelegate_t
{
public:
public:
};
// ExitGames.Client.Photon.SocketTcp
struct SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D : public IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587
{
public:
// System.Net.Sockets.Socket ExitGames.Client.Photon.SocketTcp::sock
Socket_t47148BFA7740C9C45A69F2F3722F734B9DCA45D8 * ___sock_12;
// System.Object ExitGames.Client.Photon.SocketTcp::syncer
RuntimeObject * ___syncer_13;
public:
inline static int32_t get_offset_of_sock_12() { return static_cast<int32_t>(offsetof(SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D, ___sock_12)); }
inline Socket_t47148BFA7740C9C45A69F2F3722F734B9DCA45D8 * get_sock_12() const { return ___sock_12; }
inline Socket_t47148BFA7740C9C45A69F2F3722F734B9DCA45D8 ** get_address_of_sock_12() { return &___sock_12; }
inline void set_sock_12(Socket_t47148BFA7740C9C45A69F2F3722F734B9DCA45D8 * value)
{
___sock_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___sock_12), (void*)value);
}
inline static int32_t get_offset_of_syncer_13() { return static_cast<int32_t>(offsetof(SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D, ___syncer_13)); }
inline RuntimeObject * get_syncer_13() const { return ___syncer_13; }
inline RuntimeObject ** get_address_of_syncer_13() { return &___syncer_13; }
inline void set_syncer_13(RuntimeObject * value)
{
___syncer_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___syncer_13), (void*)value);
}
};
// ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate
struct IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 : public MulticastDelegate_t
{
public:
public:
};
// ExitGames.Client.Photon.TPeer
struct TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 : public PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884
{
public:
// System.Collections.Generic.Queue`1<System.Byte[]> ExitGames.Client.Photon.TPeer::incomingList
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * ___incomingList_48;
// System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer> ExitGames.Client.Photon.TPeer::outgoingStream
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * ___outgoingStream_49;
// System.Int32 ExitGames.Client.Photon.TPeer::lastPingResult
int32_t ___lastPingResult_50;
// System.Byte[] ExitGames.Client.Photon.TPeer::pingRequest
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___pingRequest_51;
// System.Byte[] ExitGames.Client.Photon.TPeer::messageHeader
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___messageHeader_54;
// System.Boolean ExitGames.Client.Photon.TPeer::DoFraming
bool ___DoFraming_55;
public:
inline static int32_t get_offset_of_incomingList_48() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074, ___incomingList_48)); }
inline Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * get_incomingList_48() const { return ___incomingList_48; }
inline Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 ** get_address_of_incomingList_48() { return &___incomingList_48; }
inline void set_incomingList_48(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * value)
{
___incomingList_48 = value;
Il2CppCodeGenWriteBarrier((void**)(&___incomingList_48), (void*)value);
}
inline static int32_t get_offset_of_outgoingStream_49() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074, ___outgoingStream_49)); }
inline List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * get_outgoingStream_49() const { return ___outgoingStream_49; }
inline List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B ** get_address_of_outgoingStream_49() { return &___outgoingStream_49; }
inline void set_outgoingStream_49(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * value)
{
___outgoingStream_49 = value;
Il2CppCodeGenWriteBarrier((void**)(&___outgoingStream_49), (void*)value);
}
inline static int32_t get_offset_of_lastPingResult_50() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074, ___lastPingResult_50)); }
inline int32_t get_lastPingResult_50() const { return ___lastPingResult_50; }
inline int32_t* get_address_of_lastPingResult_50() { return &___lastPingResult_50; }
inline void set_lastPingResult_50(int32_t value)
{
___lastPingResult_50 = value;
}
inline static int32_t get_offset_of_pingRequest_51() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074, ___pingRequest_51)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_pingRequest_51() const { return ___pingRequest_51; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_pingRequest_51() { return &___pingRequest_51; }
inline void set_pingRequest_51(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___pingRequest_51 = value;
Il2CppCodeGenWriteBarrier((void**)(&___pingRequest_51), (void*)value);
}
inline static int32_t get_offset_of_messageHeader_54() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074, ___messageHeader_54)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_messageHeader_54() const { return ___messageHeader_54; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_messageHeader_54() { return &___messageHeader_54; }
inline void set_messageHeader_54(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___messageHeader_54 = value;
Il2CppCodeGenWriteBarrier((void**)(&___messageHeader_54), (void*)value);
}
inline static int32_t get_offset_of_DoFraming_55() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074, ___DoFraming_55)); }
inline bool get_DoFraming_55() const { return ___DoFraming_55; }
inline bool* get_address_of_DoFraming_55() { return &___DoFraming_55; }
inline void set_DoFraming_55(bool value)
{
___DoFraming_55 = value;
}
};
struct TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields
{
public:
// System.Byte[] ExitGames.Client.Photon.TPeer::tcpFramedMessageHead
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___tcpFramedMessageHead_52;
// System.Byte[] ExitGames.Client.Photon.TPeer::tcpMsgHead
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___tcpMsgHead_53;
public:
inline static int32_t get_offset_of_tcpFramedMessageHead_52() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields, ___tcpFramedMessageHead_52)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_tcpFramedMessageHead_52() const { return ___tcpFramedMessageHead_52; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_tcpFramedMessageHead_52() { return &___tcpFramedMessageHead_52; }
inline void set_tcpFramedMessageHead_52(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___tcpFramedMessageHead_52 = value;
Il2CppCodeGenWriteBarrier((void**)(&___tcpFramedMessageHead_52), (void*)value);
}
inline static int32_t get_offset_of_tcpMsgHead_53() { return static_cast<int32_t>(offsetof(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields, ___tcpMsgHead_53)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_tcpMsgHead_53() const { return ___tcpMsgHead_53; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_tcpMsgHead_53() { return &___tcpMsgHead_53; }
inline void set_tcpMsgHead_53(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___tcpMsgHead_53 = value;
Il2CppCodeGenWriteBarrier((void**)(&___tcpMsgHead_53), (void*)value);
}
};
// System.ArgumentException
struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
// System.String System.ArgumentException::m_paramName
String_t* ___m_paramName_17;
public:
inline static int32_t get_offset_of_m_paramName_17() { return static_cast<int32_t>(offsetof(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1, ___m_paramName_17)); }
inline String_t* get_m_paramName_17() const { return ___m_paramName_17; }
inline String_t** get_address_of_m_paramName_17() { return &___m_paramName_17; }
inline void set_m_paramName_17(String_t* value)
{
___m_paramName_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_paramName_17), (void*)value);
}
};
// System.ArithmeticException
struct ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
public:
};
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 : public MulticastDelegate_t
{
public:
public:
};
// System.Func`1<System.Boolean>
struct Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 : public MulticastDelegate_t
{
public:
public:
};
// System.Security.Cryptography.Rijndael
struct Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC : public SymmetricAlgorithm_t0A2EC7E7AD8B8976832B4F0AC432B691F862E789
{
public:
public:
};
struct Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC_StaticFields
{
public:
// System.Security.Cryptography.KeySizes[] System.Security.Cryptography.Rijndael::s_legalBlockSizes
KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* ___s_legalBlockSizes_9;
// System.Security.Cryptography.KeySizes[] System.Security.Cryptography.Rijndael::s_legalKeySizes
KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* ___s_legalKeySizes_10;
public:
inline static int32_t get_offset_of_s_legalBlockSizes_9() { return static_cast<int32_t>(offsetof(Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC_StaticFields, ___s_legalBlockSizes_9)); }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* get_s_legalBlockSizes_9() const { return ___s_legalBlockSizes_9; }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E** get_address_of_s_legalBlockSizes_9() { return &___s_legalBlockSizes_9; }
inline void set_s_legalBlockSizes_9(KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* value)
{
___s_legalBlockSizes_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_legalBlockSizes_9), (void*)value);
}
inline static int32_t get_offset_of_s_legalKeySizes_10() { return static_cast<int32_t>(offsetof(Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC_StaticFields, ___s_legalKeySizes_10)); }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* get_s_legalKeySizes_10() const { return ___s_legalKeySizes_10; }
inline KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E** get_address_of_s_legalKeySizes_10() { return &___s_legalKeySizes_10; }
inline void set_s_legalKeySizes_10(KeySizesU5BU5D_t934CCA482596402177BAF86727F169872D74934E* value)
{
___s_legalKeySizes_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_legalKeySizes_10), (void*)value);
}
};
// System.Threading.ThreadAbortException
struct ThreadAbortException_t0B7CFB34B2901B695FBCFF84E0A1EBDFC8177468 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
public:
};
// System.Threading.ThreadStart
struct ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF : public MulticastDelegate_t
{
public:
public:
};
// System.ArgumentNullException
struct ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD : public ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1
{
public:
public:
};
// System.ArgumentOutOfRangeException
struct ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA : public ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1
{
public:
// System.Object System.ArgumentOutOfRangeException::m_actualValue
RuntimeObject * ___m_actualValue_19;
public:
inline static int32_t get_offset_of_m_actualValue_19() { return static_cast<int32_t>(offsetof(ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA, ___m_actualValue_19)); }
inline RuntimeObject * get_m_actualValue_19() const { return ___m_actualValue_19; }
inline RuntimeObject ** get_address_of_m_actualValue_19() { return &___m_actualValue_19; }
inline void set_m_actualValue_19(RuntimeObject * value)
{
___m_actualValue_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_actualValue_19), (void*)value);
}
};
struct ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA_StaticFields
{
public:
// System.String modreq(System.Runtime.CompilerServices.IsVolatile) System.ArgumentOutOfRangeException::_rangeMessage
String_t* ____rangeMessage_18;
public:
inline static int32_t get_offset_of__rangeMessage_18() { return static_cast<int32_t>(offsetof(ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA_StaticFields, ____rangeMessage_18)); }
inline String_t* get__rangeMessage_18() const { return ____rangeMessage_18; }
inline String_t** get_address_of__rangeMessage_18() { return &____rangeMessage_18; }
inline void set__rangeMessage_18(String_t* value)
{
____rangeMessage_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&____rangeMessage_18), (void*)value);
}
};
// System.Security.Cryptography.RijndaelManaged
struct RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182 : public Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Reflection.MethodInfo[]
struct MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B : public RuntimeArray
{
public:
ALIGN_FIELD (8) MethodInfo_t * m_Items[1];
public:
inline MethodInfo_t * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline MethodInfo_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, MethodInfo_t * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline MethodInfo_t * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline MethodInfo_t ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, MethodInfo_t * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.String[]
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E : 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((void**)m_Items + index, (void*)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((void**)m_Items + index, (void*)value);
}
};
// System.Byte[]
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821 : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint8_t m_Items[1];
public:
inline uint8_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint8_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, uint8_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint8_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint8_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint8_t value)
{
m_Items[index] = value;
}
};
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A : 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((void**)m_Items + index, (void*)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((void**)m_Items + index, (void*)value);
}
};
// System.UInt32[]
struct UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint32_t m_Items[1];
public:
inline uint32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint32_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, uint32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint32_t value)
{
m_Items[index] = value;
}
};
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Delegate_t * m_Items[1];
public:
inline Delegate_t * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Delegate_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, Delegate_t * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Delegate_t * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Delegate_t ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Delegate_t * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83 : public RuntimeArray
{
public:
ALIGN_FIELD (8) int32_t m_Items[1];
public:
inline int32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline int32_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, int32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value)
{
m_Items[index] = value;
}
};
// System.Void System.Collections.Generic.List`1<System.Object>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_mC832F1AC0F814BAEB19175F5D7972A7507508BC3_gshared (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::Add(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Add_m6930161974C7504C80F52EC379EF012387D43138_gshared (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, RuntimeObject * ___item0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<System.Object>::get_Count()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m507C9149FF7F83AAC72C29091E745D557DA47D22_gshared_inline (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<System.Object>::get_Item(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * List_1_get_Item_mFDB8AD680C600072736579BBF5F38F7416396588_gshared_inline (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, int32_t ___index0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::set_Item(System.Int32,!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_set_Item_m451452782977192583A6374A799099FCCD9BD83E_gshared (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, int32_t ___index0, RuntimeObject * ___value1, const RuntimeMethod* method);
// System.Collections.Generic.List`1/Enumerator<!0> System.Collections.Generic.List`1<System.Object>::GetEnumerator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD List_1_GetEnumerator_m52CC760E475D226A2B75048D70C4E22692F9F68D_gshared (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1/Enumerator<System.Object>::get_Current()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * Enumerator_get_Current_mD7829C7E8CFBEDD463B15A951CDE9B90A12CC55C_gshared_inline (Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD * __this, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.List`1/Enumerator<System.Object>::MoveNext()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerator_MoveNext_m38B1099DDAD7EEDE2F4CDAB11C095AC784AC2E34_gshared (Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1/Enumerator<System.Object>::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Enumerator_Dispose_m94D0DAE031619503CDA6E53C5C3CC78AF3139472_gshared (Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Object>::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Clear_mC5CFC6C9F3007FC24FE020198265D4B5B0659FFC_gshared (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, const RuntimeMethod* method);
// !0 System.Func`1<System.Boolean>::Invoke()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Func_1_Invoke_mFA91B93A5C91290D4A3C475C4117CA05B43419E6_gshared (Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * __this, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.Queue`1<System.Object>::get_Count()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t Queue_1_get_Count_m0CE0B6919A09EFFBB1EBA5B5DFEF50E4F8A89CFA_gshared_inline (Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Queue`1<System.Object>::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Queue_1__ctor_mE0E643F58A585BC8AE43393CD21B0AC6C7602D5E_gshared (Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 * __this, int32_t ___capacity0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Queue`1<System.Object>::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Queue_1_Clear_m939D1C7DDAB472FAE8EFD5EE37C55A8C0B9B718B_gshared (Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.Queue`1<System.Object>::Dequeue()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Queue_1_Dequeue_m6013DB8A542ACA15F662B6832ED389BB061EFEDE_gshared (Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Byte,System.Object>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2__ctor_mA38BDB6209548343F5C21CA8CCEF000923157407_gshared (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Byte,System.Object>::Add(!0,!1)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_Add_m167D68C78B2820B929131E05BB2A242838DCC833_gshared (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * __this, uint8_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Queue`1<System.Object>::Enqueue(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Queue_1_Enqueue_m12D1C0BBE742C2537335B7E2B71F7E42A421A6FD_gshared (Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 * __this, RuntimeObject * ___item0, const RuntimeMethod* method);
// !1 System.Collections.Generic.Dictionary`2<System.Byte,System.Object>::get_Item(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3_gshared (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * __this, uint8_t ___key0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Reflection.MethodInfo>::.ctor()
inline void List_1__ctor_mFBB7F821AAC1F0F68A578448DD892C8F1D7CC7D2 (List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_t8693F442D94ED2E09D894940915C961D2F63C69B *, const RuntimeMethod*))List_1__ctor_mC832F1AC0F814BAEB19175F5D7972A7507508BC3_gshared)(__this, method);
}
// System.Void System.Collections.Generic.List`1<System.Reflection.MethodInfo>::Add(!0)
inline void List_1_Add_mB020CF1970BC807041D779C69DE0B129F319DB94 (List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * __this, MethodInfo_t * ___item0, const RuntimeMethod* method)
{
(( void (*) (List_1_t8693F442D94ED2E09D894940915C961D2F63C69B *, MethodInfo_t *, const RuntimeMethod*))List_1_Add_m6930161974C7504C80F52EC379EF012387D43138_gshared)(__this, ___item0, method);
}
// System.Int32 ExitGames.Client.Photon.SupportClass/IntegerMillisecondsDelegate::Invoke()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t IntegerMillisecondsDelegate_Invoke_m1D6A82EA4C00DD01FE6DB867E1D5111DB6030916 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SupportClass/<>c__DisplayClass6_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass6_0__ctor_m9239E5DEB52C89E747C3C22914C9E233DD5CA480 (U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * __this, const RuntimeMethod* method);
// System.Void System.Threading.Monitor::Enter(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102 (RuntimeObject * ___obj0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Threading.Thread>::.ctor()
inline void List_1__ctor_m7A4FEC7537D92854E09F078941CE1B8C9C810F0F (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, const RuntimeMethod*))List_1__ctor_mC832F1AC0F814BAEB19175F5D7972A7507508BC3_gshared)(__this, method);
}
// System.Void System.Threading.ThreadStart::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThreadStart__ctor_m692348FEAEBAF381D62984EE95B217CC024A77D5 (ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void System.Threading.Thread::.ctor(System.Threading.ThreadStart)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Thread__ctor_m36A33B990160C4499E991D288341CA325AE66DDD (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * __this, ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF * ___start0, const RuntimeMethod* method);
// System.Boolean System.String::IsNullOrEmpty(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_IsNullOrEmpty_m06A85A206AC2106D1982826C5665B9BD35324229 (String_t* ___value0, const RuntimeMethod* method);
// System.Void System.Threading.Thread::set_Name(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Thread_set_Name_mEBD0DF20D69C49612949EA6F24E8E4EADB7F5E77 (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void System.Threading.Thread::set_IsBackground(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Thread_set_IsBackground_mF62551A195DCB09D44E512F52916145E39362D39 (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * __this, bool ___value0, const RuntimeMethod* method);
// System.Void System.Threading.Thread::Start()
IL2CPP_EXTERN_C IL2CPP_NO_INLINE IL2CPP_METHOD_ATTR void Thread_Start_mE2AC4744AFD147FDC84E8D9317B4E3AB890BC2D6 (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Threading.Thread>::Add(!0)
inline void List_1_Add_m1CA4BDBC8247F05F727DB5AB73D23373B86C3ADA (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * ___item0, const RuntimeMethod* method)
{
(( void (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 *, const RuntimeMethod*))List_1_Add_m6930161974C7504C80F52EC379EF012387D43138_gshared)(__this, ___item0, method);
}
// System.Void System.Threading.Monitor::Exit(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2 (RuntimeObject * ___obj0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<System.Threading.Thread>::get_Count()
inline int32_t List_1_get_Count_m11E3A74EDF4FB6EE4139A15DD104D59DDC402BFF_inline (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, const RuntimeMethod*))List_1_get_Count_m507C9149FF7F83AAC72C29091E745D557DA47D22_gshared_inline)(__this, method);
}
// !0 System.Collections.Generic.List`1<System.Threading.Thread>::get_Item(System.Int32)
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * List_1_get_Item_m5584F887D702E20E9AF1D8EF97200115E997D9FB_inline (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, int32_t ___index0, const RuntimeMethod* method)
{
return (( Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, int32_t, const RuntimeMethod*))List_1_get_Item_mFDB8AD680C600072736579BBF5F38F7416396588_gshared_inline)(__this, ___index0, method);
}
// System.Void System.Threading.Thread::Abort()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Thread_Abort_mFF7FBB8E9DAF2ABC8DD85C48F6BDB91502B7DA44 (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Threading.Thread>::set_Item(System.Int32,!0)
inline void List_1_set_Item_m66CC47458BF9C06655288BFD1ED154847E1C275C (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, int32_t ___index0, Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * ___value1, const RuntimeMethod* method)
{
(( void (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, int32_t, Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 *, const RuntimeMethod*))List_1_set_Item_m451452782977192583A6374A799099FCCD9BD83E_gshared)(__this, ___index0, ___value1, method);
}
// System.Collections.Generic.List`1/Enumerator<!0> System.Collections.Generic.List`1<System.Threading.Thread>::GetEnumerator()
inline Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C List_1_GetEnumerator_m05753BCE2C89FB542CBC0B1ADF1FD28549810082 (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, const RuntimeMethod* method)
{
return (( Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, const RuntimeMethod*))List_1_GetEnumerator_m52CC760E475D226A2B75048D70C4E22692F9F68D_gshared)(__this, method);
}
// !0 System.Collections.Generic.List`1/Enumerator<System.Threading.Thread>::get_Current()
inline Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * Enumerator_get_Current_m94B8CC4707639E52FBADD53EB8741554E58ECD5E_inline (Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C * __this, const RuntimeMethod* method)
{
return (( Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * (*) (Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C *, const RuntimeMethod*))Enumerator_get_Current_mD7829C7E8CFBEDD463B15A951CDE9B90A12CC55C_gshared_inline)(__this, method);
}
// System.Boolean System.Collections.Generic.List`1/Enumerator<System.Threading.Thread>::MoveNext()
inline bool Enumerator_MoveNext_mFA777BE67E36AE712834E1630F4E7B19111947CE (Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C * __this, const RuntimeMethod* method)
{
return (( bool (*) (Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C *, const RuntimeMethod*))Enumerator_MoveNext_m38B1099DDAD7EEDE2F4CDAB11C095AC784AC2E34_gshared)(__this, method);
}
// System.Void System.Collections.Generic.List`1/Enumerator<System.Threading.Thread>::Dispose()
inline void Enumerator_Dispose_m568CABF735952058F73ABF25CC2AE4D57CEFA7A0 (Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C * __this, const RuntimeMethod* method)
{
(( void (*) (Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C *, const RuntimeMethod*))Enumerator_Dispose_m94D0DAE031619503CDA6E53C5C3CC78AF3139472_gshared)(__this, method);
}
// System.Void System.Collections.Generic.List`1<System.Threading.Thread>::Clear()
inline void List_1_Clear_m0A1085C5EB29FC7F6CB35B700EFF3BCD9E68FFF6 (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *, const RuntimeMethod*))List_1_Clear_mC5CFC6C9F3007FC24FE020198265D4B5B0659FFC_gshared)(__this, method);
}
// System.Void System.Diagnostics.Debug::WriteLine(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_WriteLine_m0340AA03A71685D0C1BF132EF3173A33860132C2 (String_t* ___message0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SupportClass::WriteStackTrace(System.Exception,System.IO.TextWriter)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SupportClass_WriteStackTrace_m10DB7B98F45AF1B2A0FFFCDCFB175C155B99363D (Exception_t * ___throwable0, TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * ___stream1, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.SupportClass::DictionaryToString(System.Collections.IDictionary,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405 (RuntimeObject* ___dictionary0, bool ___includeTypes1, const RuntimeMethod* method);
// System.Void System.Text.StringBuilder::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StringBuilder__ctor_mF928376F82E8C8FF3C11842C562DB8CF28B2735E (StringBuilder_t * __this, const RuntimeMethod* method);
// System.Text.StringBuilder System.Text.StringBuilder::Append(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StringBuilder_t * StringBuilder_Append_mDBB8CCBB7750C67BE2F2D92F47E6C0FA42793260 (StringBuilder_t * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Int32 System.Text.StringBuilder::get_Length()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t StringBuilder_get_Length_m44BCD2BF32D45E9376761FF33AA429BFBD902F07 (StringBuilder_t * __this, const RuntimeMethod* method);
// System.Type System.Type::GetTypeFromHandle(System.RuntimeTypeHandle)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Type_t * Type_GetTypeFromHandle_m9DC58ADF0512987012A8A016FB64B068F3B1AFF6 (RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D ___handle0, const RuntimeMethod* method);
// System.Type System.Object::GetType()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Type_t * Object_GetType_m2E0B62414ECCAA3094B703790CE88CBB2F83EA60 (RuntimeObject * __this, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.SupportClass::DictionaryToString(System.Collections.IDictionary)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771 (RuntimeObject* ___dictionary0, const RuntimeMethod* method);
// System.String System.String::Join(System.String,System.String[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Join_m49371BED70248F0FCE970CB4F2E39E9A688AAFA4 (String_t* ___separator0, StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___value1, const RuntimeMethod* method);
// System.String System.String::Format(System.String,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA (String_t* ___format0, RuntimeObject * ___arg01, const RuntimeMethod* method);
// System.Text.StringBuilder System.Text.StringBuilder::AppendFormat(System.String,System.Object[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StringBuilder_t * StringBuilder_AppendFormat_m23742FE1E3C60341F37C243EB6BEE06AE444C774 (StringBuilder_t * __this, String_t* ___format0, ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args1, const RuntimeMethod* method);
// System.Text.StringBuilder System.Text.StringBuilder::AppendFormat(System.String,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StringBuilder_t * StringBuilder_AppendFormat_m9DBA7709F546159ABC85BA341965305AB044D1B7 (StringBuilder_t * __this, String_t* ___format0, RuntimeObject * ___arg01, RuntimeObject * ___arg12, const RuntimeMethod* method);
// System.String System.BitConverter::ToString(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* BitConverter_ToString_m6201360C9B19FD17437AA1C88AF1743DCF3442E3 (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___value0, const RuntimeMethod* method);
// System.UInt32[] ExitGames.Client.Photon.SupportClass::InitializeTable(System.UInt32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1 (uint32_t ___polynomial0, const RuntimeMethod* method);
// System.Void System.Object::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0 (RuntimeObject * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SupportClass/IntegerMillisecondsDelegate::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IntegerMillisecondsDelegate__ctor_m8D2F4B02FBF44CED73C0CB458806E986FEF36989 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SupportClass/<>c::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__ctor_mB3AFC86D8A660853BAF4DE2FCE7A0906752903EE (U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * __this, const RuntimeMethod* method);
// System.Int32 System.Environment::get_TickCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Environment_get_TickCount_m0A119BE4354EA90C82CC48E559588C987A79FE0C (const RuntimeMethod* method);
// System.Void System.Threading.Thread::Sleep(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Thread_Sleep_m2CD320EAB7BE02CC1F395EAFE9970D53A5F9EAEF (int32_t ___millisecondsTimeout0, const RuntimeMethod* method);
// !0 System.Func`1<System.Boolean>::Invoke()
inline bool Func_1_Invoke_mFA91B93A5C91290D4A3C475C4117CA05B43419E6 (Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * __this, const RuntimeMethod* method)
{
return (( bool (*) (Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 *, const RuntimeMethod*))Func_1_Invoke_mFA91B93A5C91290D4A3C475C4117CA05B43419E6_gshared)(__this, method);
}
// System.Void System.Random::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Random__ctor_mCD4B6E9DFD27A19F52FA441CD8CAEB687A9DD2F2 (Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * __this, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.Queue`1<System.Byte[]>::get_Count()
inline int32_t Queue_1_get_Count_mCEF8E1B3E95B9A385B452A7E2B0DE10B19B9AAC9_inline (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *, const RuntimeMethod*))Queue_1_get_Count_m0CE0B6919A09EFFBB1EBA5B5DFEF50E4F8A89CFA_gshared_inline)(__this, method);
}
// System.Void System.Collections.Generic.Queue`1<System.Byte[]>::.ctor(System.Int32)
inline void Queue_1__ctor_m467D0CAFB245A84C8E5105E2B2D2C63757155A41 (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * __this, int32_t ___capacity0, const RuntimeMethod* method)
{
(( void (*) (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *, int32_t, const RuntimeMethod*))Queue_1__ctor_mE0E643F58A585BC8AE43393CD21B0AC6C7602D5E_gshared)(__this, ___capacity0, method);
}
// System.Void ExitGames.Client.Photon.PeerBase::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase__ctor_m9CC65137693C6926711A1C9917A18368B76E33D9 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::InitPeerBase()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_InitPeerBase_m9D9F192FA22FC5B7A759F4BA433CBBD09F1C91C4 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.SupportClass::GetTickCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15 (const RuntimeMethod* method);
// ExitGames.Client.Photon.IPhotonPeerListener ExitGames.Client.Photon.PeerBase::get_Listener()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// ExitGames.Client.Photon.DebugLevel ExitGames.Client.Photon.PeerBase::get_debugOut()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::set_ServerAddress(System.String)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void PeerBase_set_ServerAddress_mD01CBD300E8005A193FA30A6EEBD78010B99036B_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::set_ProxyServerAddress(System.String)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void PeerBase_set_ProxyServerAddress_mB5F65528B1184E8DB02D6F8F51BB588348C0C5A7_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>::.ctor()
inline void List_1__ctor_m44FCC8E981945ABC4BDC871573CDE9EBF826EAA0 (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B *, const RuntimeMethod*))List_1__ctor_mC832F1AC0F814BAEB19175F5D7972A7507508BC3_gshared)(__this, method);
}
// System.Type ExitGames.Client.Photon.PeerBase::get_SocketImplementation()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Type_t * PeerBase_get_SocketImplementation_m6344139D00050B3B1A65798CC3699F732F566384 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Object System.Activator::CreateInstance(System.Type,System.Object[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Activator_CreateInstance_mEE50708E1E8AAD4E5021A2FFDB992DDF65727E17 (Type_t * ___type0, ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args1, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SocketTcp::.ctor(ExitGames.Client.Photon.PeerBase)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SocketTcp__ctor_m1FC77993862E696BAC65926A18164F48527DB579 (SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D * __this, PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___npeer0, const RuntimeMethod* method);
// System.String System.String::Concat(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE (String_t* ___str00, String_t* ___str11, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.PeerBase::PepareWebSocketUrl(System.String,System.String,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* PeerBase_PepareWebSocketUrl_m0F28107ABDED0654941BF1CC60FE68E54C9AA885 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, String_t* ___serverAddress0, String_t* ___appId1, RuntimeObject * ___customData2, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.PeerBase::get_ServerAddress()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR String_t* PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Byte[] ExitGames.Client.Photon.PeerBase::PrepareConnectData(System.String,System.String,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* PeerBase_PrepareConnectData_m1EC98A6E30BCD49987849E838D064AA378613564 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, String_t* ___serverAddress0, String_t* ___appID1, RuntimeObject * ___custom2, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TPeer::EnqueueInit(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Queue`1<System.Byte[]>::Clear()
inline void Queue_1_Clear_mEAD8D659CB030722276865FEA9AF3A7E0B663C7A (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * __this, const RuntimeMethod* method)
{
(( void (*) (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *, const RuntimeMethod*))Queue_1_Clear_m939D1C7DDAB472FAE8EFD5EE37C55A8C0B9B718B_gshared)(__this, method);
}
// System.Void ExitGames.Client.Photon.PeerBase::EnqueueStatusCallback(ExitGames.Client.Photon.StatusCode)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_EnqueueStatusCallback_m65E16421DDFD3F092A19EFA87BBDD899203718BA (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, int32_t ___statusValue0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TPeer::SendPing()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.StreamBuffer::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StreamBuffer__ctor_m70E35CA204B802318F9870E2FE7AB43B53727C25 (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * __this, int32_t ___size0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.Protocol::Serialize(System.Int32,System.Byte[],System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Protocol_Serialize_m7C3C2A61BAEEC7F272F78C7F789A48E7E4E036E6 (int32_t ___value0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___target1, int32_t* ___targetOffset2, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.StreamBuffer::Write(System.Byte[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buffer0, int32_t ___srcOffset1, int32_t ___count2, const RuntimeMethod* method);
// System.Boolean ExitGames.Client.Photon.PeerBase::get_TrafficStatsEnabled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PeerBase::get_TrafficStatsOutgoing()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalPacketCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_TotalPacketCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandsInPackets()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_TotalCommandsInPackets(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.StreamBuffer::get_Length()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2 (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::CountControlCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method);
// System.Boolean ExitGames.Client.Photon.TPeer::EnqueueMessageAsPayload(ExitGames.Client.Photon.DeliveryMode,ExitGames.Client.Photon.StreamBuffer,System.Byte)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, int32_t ___deliveryMode0, StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * ___opMessage1, uint8_t ___channelId2, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.PeerBase::get_DisconnectTimeout()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PeerBase_get_DisconnectTimeout_m52D7CF5CC40D7DE41E8A7511509E158404789142 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase/MyAction::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MyAction__ctor_m2881F84D663A6400E5606F80D96255E2CF16E735 (MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::EnqueueActionForDispatch(ExitGames.Client.Photon.PeerBase/MyAction)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_EnqueueActionForDispatch_m63FEA39A8E22952E05481D38672C9780E1853132 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * ___action0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase/MyAction>::get_Count()
inline int32_t Queue_1_get_Count_m5B41F5950B6BE1310C974FFD3B52B737FC626DE6_inline (Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 *, const RuntimeMethod*))Queue_1_get_Count_m0CE0B6919A09EFFBB1EBA5B5DFEF50E4F8A89CFA_gshared_inline)(__this, method);
}
// !0 System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase/MyAction>::Dequeue()
inline MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * Queue_1_Dequeue_mFD6A8395329CC3B7DC1213203E630542B980B1B3 (Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * __this, const RuntimeMethod* method)
{
return (( MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * (*) (Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 *, const RuntimeMethod*))Queue_1_Dequeue_m6013DB8A542ACA15F662B6832ED389BB061EFEDE_gshared)(__this, method);
}
// System.Void ExitGames.Client.Photon.PeerBase/MyAction::Invoke()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MyAction_Invoke_m24D676BF96D5136153897A729905C57A84D5D139 (MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.Queue`1<System.Byte[]>::Dequeue()
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* Queue_1_Dequeue_m5A50FE82343DF951867F270B8FEAEF37D5CC193F (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * __this, const RuntimeMethod* method)
{
return (( ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* (*) (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *, const RuntimeMethod*))Queue_1_Dequeue_m6013DB8A542ACA15F662B6832ED389BB061EFEDE_gshared)(__this, method);
}
// System.Void ExitGames.Client.Photon.StreamBuffer::.ctor(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StreamBuffer__ctor_m3BDBD16C2E872DE0910B9DA926381E5609AE70EB (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buf0, const RuntimeMethod* method);
// System.Boolean ExitGames.Client.Photon.IPhotonSocket::get_Connected()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool IPhotonSocket_get_Connected_m2100BD967AB992A5A1F6615ADA113840002D75A8 (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.PeerBase::get_timeInt()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PeerBase_get_timeInt_m13898C3E7147372B2237260DE7E57F9675927883 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.PeerBase::get_timePingInterval()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t PeerBase_get_timePingInterval_m992C0AD6F00F3E6BC0B9EE5619A19AEE0E21EFC8 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>::get_Item(System.Int32)
inline StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * List_1_get_Item_m67740D7B5EC58BC41345C04A52D4E4A37E1F6301_inline (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * __this, int32_t ___index0, const RuntimeMethod* method)
{
return (( StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * (*) (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B *, int32_t, const RuntimeMethod*))List_1_get_Item_mFDB8AD680C600072736579BBF5F38F7416396588_gshared_inline)(__this, ___index0, method);
}
// System.Byte[] ExitGames.Client.Photon.StreamBuffer::GetBuffer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TPeer::SendData(System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___length1, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::MessageBufferPoolPut(ExitGames.Client.Photon.StreamBuffer)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_MessageBufferPoolPut_mE4A6CE10E420E2EFA635BF9CE5A9950BD5DA6618 (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * ___buff0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>::get_Count()
inline int32_t List_1_get_Count_mB2F7BB7DCE6EB926F0B14AD31559169B1CEBA448_inline (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B *, const RuntimeMethod*))List_1_get_Count_m507C9149FF7F83AAC72C29091E745D557DA47D22_gshared_inline)(__this, method);
}
// System.Void System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>::Clear()
inline void List_1_Clear_mEF324469854ACF5512EC08B45D4FD2D410967E81 (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B *, const RuntimeMethod*))List_1_Clear_mC5CFC6C9F3007FC24FE020198265D4B5B0659FFC_gshared)(__this, method);
}
// System.String System.Byte::ToString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263 (uint8_t* __this, const RuntimeMethod* method);
// System.String System.String::Concat(System.String,System.String,System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mDD2E38332DED3A8C088D38D78A0E0BEB5091DA64 (String_t* ___str00, String_t* ___str11, String_t* ___str22, String_t* ___str33, const RuntimeMethod* method);
// System.Byte ExitGames.Client.Photon.PeerBase::get_ChannelCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.String System.String::Concat(System.String[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_m232E857CA5107EA6AC52E7DD7018716C021F237B (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___values0, const RuntimeMethod* method);
// ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::SerializeMessageToMessage(System.Object,System.Boolean,System.Byte[],System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * PeerBase_SerializeMessageToMessage_m95614478AF9C86205FB5CA05677802E36B9F1A39 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, RuntimeObject * ___message0, bool ___encrypt1, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___messageHeader2, bool ___writeLength3, const RuntimeMethod* method);
// ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::MessageBufferPoolGet()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * PeerBase_MessageBufferPoolGet_m06DF85A20CD278D7BF90AF33590DCEA7FCAC3F1D (const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.StreamBuffer::SetLength(System.Int64)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StreamBuffer_SetLength_m12A6391CD4BD83881DFF0EE18D08964A015539B5 (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * __this, int64_t ___value0, const RuntimeMethod* method);
// System.Void System.ArgumentOutOfRangeException::.ctor(System.String,System.Object,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentOutOfRangeException__ctor_m755B01B4B4595B447596E3281F22FD7CE6DAE378 (ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA * __this, String_t* ___paramName0, RuntimeObject * ___actualValue1, String_t* ___message2, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<ExitGames.Client.Photon.StreamBuffer>::Add(!0)
inline void List_1_Add_m7B53596524CC980DDAE06729469D15F51E21074E (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * __this, StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * ___item0, const RuntimeMethod* method)
{
(( void (*) (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B *, StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *, const RuntimeMethod*))List_1_Add_m6930161974C7504C80F52EC379EF012387D43138_gshared)(__this, ___item0, method);
}
// System.Void ExitGames.Client.Photon.TrafficStats::CountUnreliableOpCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountUnreliableOpCommand_m367D8B4DE36D0F23894286A7F06F97A637E08C5E (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::CountReliableOpCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountReliableOpCommand_m71BF86C54D4ED1E2F9C877F32B589CE96A90DB59 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method);
// ExitGames.Client.Photon.TrafficStatsGameLevel ExitGames.Client.Photon.PeerBase::get_TrafficStatsGameLevel()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * PeerBase_get_TrafficStatsGameLevel_mA5990EFE2FEF80C8BC5EA77B02FD91FF6AA9B6BD (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountOperation(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_CountOperation_m3A0547B6073AD68C02D89F04BDF52F284E77D46F (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___operationBytes0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Byte,System.Object>::.ctor()
inline void Dictionary_2__ctor_mA38BDB6209548343F5C21CA8CCEF000923157407 (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * __this, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *, const RuntimeMethod*))Dictionary_2__ctor_mA38BDB6209548343F5C21CA8CCEF000923157407_gshared)(__this, method);
}
// System.Void System.Collections.Generic.Dictionary`2<System.Byte,System.Object>::Add(!0,!1)
inline void Dictionary_2_Add_m167D68C78B2820B929131E05BB2A242838DCC833 (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * __this, uint8_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *, uint8_t, RuntimeObject *, const RuntimeMethod*))Dictionary_2_Add_m167D68C78B2820B929131E05BB2A242838DCC833_gshared)(__this, ___key0, ___value1, method);
}
// ExitGames.Client.Photon.NetworkSimulationSet ExitGames.Client.Photon.PeerBase::get_NetworkSimulationSettings()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * PeerBase_get_NetworkSimulationSettings_mBF3D4BC27DE78A657A6D93E08ACCA656BEB34B39 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Boolean ExitGames.Client.Photon.NetworkSimulationSet::get_IsSimulationEnabled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool NetworkSimulationSet_get_IsSimulationEnabled_mDD9673C5601FB3064E12D0A6ED8E7F55CC5CC2D1 (NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * __this, const RuntimeMethod* method);
// System.Void System.Buffer::BlockCopy(System.Array,System.Int32,System.Array,System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Buffer_BlockCopy_m1F882D595976063718AF6E405664FC761924D353 (RuntimeArray * ___src0, int32_t ___srcOffset1, RuntimeArray * ___dst2, int32_t ___dstOffset3, int32_t ___count4, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::SendNetworkSimulated(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_SendNetworkSimulated_m32C7A78D580D063BE86713AB7D7F61C23E122123 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___dataToSend0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SupportClass::WriteStackTrace(System.Exception)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385 (Exception_t * ___throwable0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::EnqueueDebugReturn(ExitGames.Client.Photon.DebugLevel,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_EnqueueDebugReturn_mC20714873CBA559EEE723AB0989EF4AE9660D117 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, uint8_t ___level0, String_t* ___debugReturn1, const RuntimeMethod* method);
// ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PeerBase::get_TrafficStatsIncoming()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * PeerBase_get_TrafficStatsIncoming_m8373A3797B073192282A57B1588732DF84F8249D (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Queue`1<System.Byte[]>::Enqueue(!0)
inline void Queue_1_Enqueue_m1F4E57E2CD8365D73FED4360D94AB59E451CE8FA (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___item0, const RuntimeMethod* method)
{
(( void (*) (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, const RuntimeMethod*))Queue_1_Enqueue_m12D1C0BBE742C2537335B7E2B71F7E42A421A6FD_gshared)(__this, ___item0, method);
}
// System.Void ExitGames.Client.Photon.TPeer::ReadPingResult(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___inbuff0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.Protocol::Deserialize(System.Int32&,System.Byte[],System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Protocol_Deserialize_m4BF6131A8C009C7785B333FAC6B9BCA4F5EBF284 (int32_t* ___value0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___source1, int32_t* ___offset2, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.PeerBase::UpdateRoundTripTimeAndVariance(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PeerBase_UpdateRoundTripTimeAndVariance_mDBDA944DE4B3798D2B570B5780A60520F1BBF5F7 (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, int32_t ___lastRoundtripTime0, const RuntimeMethod* method);
// !1 System.Collections.Generic.Dictionary`2<System.Byte,System.Object>::get_Item(!0)
inline RuntimeObject * Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3 (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * __this, uint8_t ___key0, const RuntimeMethod* method)
{
return (( RuntimeObject * (*) (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *, uint8_t, const RuntimeMethod*))Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3_gshared)(__this, ___key0, method);
}
// System.Void System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(System.Array,System.RuntimeFieldHandle)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A (RuntimeArray * ___array0, RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF ___fldHandle1, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_PackageHeaderSize(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_PackageHeaderSize_mAE818A528A1C5A59EF26EA6389AED7B54B1096ED_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ReliableCommandCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_UnreliableCommandCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_FragmentCommandCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ControlCommandCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ReliableCommandBytes()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_UnreliableCommandBytes()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_FragmentCommandBytes()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ControlCommandBytes()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalCommandBytes_mB383A7A252C329333B1586EDC1BCAEC5EFF8DFF7 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_PackageHeaderSize()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_PackageHeaderSize_m6DDAC0D97C22D96113F3CC03C17EB31E5FEF4786_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_ControlCommandBytes(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ControlCommandBytes_mD9728C15CC1EF0CAFB1825D66A8C82133AA26FC7_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_ControlCommandCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ControlCommandCount_m731BED58A92CB20A30F6911269CB55F556D7FFC3_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_ReliableCommandBytes(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ReliableCommandBytes_m1ACF9B259E8544025094BDBA03F24BEE2AB07BEE_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_ReliableCommandCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ReliableCommandCount_m8D36D1B6FC616B6CB3BE2ECD1B8EC7468E15E46E_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_UnreliableCommandBytes(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_UnreliableCommandBytes_m6172F51043B3A763FFB98BBBD57EB5BA271396B3_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_UnreliableCommandCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_UnreliableCommandCount_m24194C72567D19FE10C5205CDF2745884F95BE89_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_FragmentCommandBytes(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_FragmentCommandBytes_m0F0D591C4A0E5EAA13143999BDDCB690E761F0F2_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStats::set_FragmentCommandCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_FragmentCommandCount_m7575514F5532ABA49440639F466D65678AFA9BBD_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalPacketBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalPacketBytes_m1C9C5903F2EEDD995CAD025E84047485BB22A9B3 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method);
// System.String System.String::Format(System.String,System.Object[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_mA3AC3FE7B23D97F3A5BAA082D25B0E01B341A865 (String_t* ___format0, ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args1, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_DispatchIncomingCommandsCalls()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_OperationByteCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_ResultByteCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_EventByteCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_OperationCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_ResultCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_EventCount()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_OperationByteCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_OperationByteCount_m61EC810AF51F6AEBE591A30B4E96908781966CD2_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_OperationCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_OperationCount_mF031F074BA1BB8C0E34AC46955DFDDF65FAC418A_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_ResultByteCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_ResultByteCount_mEE65C5FA649E839121DC46E21C2A314A5859DFDB_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_ResultCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_ResultCount_m8640EBCCA2E7F3B03120AD4F970E8D15E9480F6A_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_EventByteCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_EventByteCount_mE8D047D92F707F6A8D28B07AD0092D95ABEF2017_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_EventCount(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_EventCount_m9AA09E5AA7DDF2F81837257B034E82C7FED5A474_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestOpResponseCallback()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestOpResponseCallback(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestOpResponseCallbackOpCode(System.Byte)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestEventCallback()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestEventCallback(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestEventCallbackCode(System.Byte)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestMessageCallback()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestMessageCallback_m7CB4710B66709978395F803F53185B17531F33D9_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestMessageCallback(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestMessageCallback_m2983F2737EF4E6407F326CE8554E2E4C1BA68D7B_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestRawMessageCallback()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestRawMessageCallback_mEC136AA45D27B645EAE49D2D6AF8DFD02855A0A3_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestRawMessageCallback(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestRawMessageCallback_m953E6A841776CE4581FD2051F3E8DD520FF3ADC5_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestDeltaBetweenDispatching()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestDeltaBetweenDispatching(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_DispatchIncomingCommandsCalls(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_DispatchIncomingCommandsCalls_mC14CDD723C55083B9E19CB7611C267D391A478B3_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestDeltaBetweenSending()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestDeltaBetweenSending(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_SendOutgoingCommandsCalls()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_SendOutgoingCommandsCalls(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_SendOutgoingCommandsCalls_m3A4A39B8D4DBCCC3DEB830286BF931F22A599F3B_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method);
// System.String System.String::Format(System.String,System.Object,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m26BBF75F9609FAD0B39C2242FEBAAD7D68F14D99 (String_t* ___format0, RuntimeObject * ___arg01, RuntimeObject * ___arg12, RuntimeObject * ___arg23, const RuntimeMethod* method);
// System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestEventCallbackCode()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR uint8_t TrafficStatsGameLevel_get_LongestEventCallbackCode_m2EDA97E93839E9983B7C36210430FC4BA8E3D368_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestOpResponseCallbackOpCode()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR uint8_t TrafficStatsGameLevel_get_LongestOpResponseCallbackOpCode_m1D27D4106B5F50A1D30B218D87E7A618E6A8301F_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method);
// System.Void System.ArithmeticException::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * __this, String_t* ___message0, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.Int64)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, int64_t ___value0, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method);
// System.Void System.ArithmeticException::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArithmeticException__ctor_m8F13CB2C5B293239D87D5D7CD065630DE2C9C4D9 (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * __this, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_UnaryNegation(Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi0, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Numeric.BigInteger::shiftLeft(System.UInt32[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_shiftLeft_mA43634983AAF71B5E3ACACF7595C67AD50EB8677 (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___buffer0, int32_t ___shiftVal1, const RuntimeMethod* method);
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_Equality(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_GreaterThan(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_GreaterThan_mB3F96B34F601F8C58BC630362E7F2AE1B1116006 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_LeftShift(Photon.SocketServer.Numeric.BigInteger,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, int32_t ___shiftVal1, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.UInt32[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___inData0, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Implicit(System.Int64)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E (int64_t ___value0, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Multiply(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Subtraction(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Numeric.BigInteger::shiftRight(System.UInt32[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_shiftRight_m00A521D4E5F2DCA3462D793A6F5B3620551DA70A (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___buffer0, int32_t ___shiftVal1, const RuntimeMethod* method);
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_LessThan(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_LessThan_mB222680D4D19B23782419ADB68687ED8F057BBB4 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::singleByteDivide(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outQuotient2, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outRemainder3, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::multiByteDivide(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outQuotient2, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outRemainder3, const RuntimeMethod* method);
// System.String Photon.SocketServer.Numeric.BigInteger::ToString(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, int32_t ___radix0, const RuntimeMethod* method);
// System.Void System.ArgumentException::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7 (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * __this, String_t* ___message0, const RuntimeMethod* method);
// System.String System.UInt32::ToString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* UInt32_ToString_m7D8A934AF1D74C5C8194D1556AA71BBA0D4600F2 (uint32_t* __this, const RuntimeMethod* method);
// System.Char System.String::get_Chars(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Il2CppChar String_get_Chars_m14308AC3B95F8C1D9F1D1055B116B37D595F1D96 (String_t* __this, int32_t ___index0, const RuntimeMethod* method);
// System.String System.Char::ToString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Char_ToString_mA42A88FEBA41B72D48BB24373E3101B7A91B6FD8 (Il2CppChar* __this, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Implicit(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60 (int32_t ___value0, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Modulus(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Division(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Numeric.BigInteger::bitCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_bitCount_m496893A7F384B4DFFD4492EA46C62A45E8F4FC69 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::BarrettReduction(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___x0, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___n1, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___constant2, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Addition(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_GreaterThanOrEqual(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::genRandomBits(System.Int32,System.Random)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, int32_t ___bits0, Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * ___rand1, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___inData0, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::GenerateRandomSecret(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E2194D10FB221184E91866E (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, int32_t ___secretLength0, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::CalculatePublicKey()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, const RuntimeMethod* method);
// System.Void System.Security.Cryptography.RijndaelManaged::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RijndaelManaged__ctor_mA6A1CDD39CD6CFCD208B3F102A01C90B5C4D4134 (RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182 * __this, const RuntimeMethod* method);
// System.Byte[] Photon.SocketServer.Numeric.BigInteger::GetBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::CalculateSharedKey(Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * DiffieHellmanCryptoProvider_CalculateSharedKey_mD31E24DA719371ABDCA5F4A0CBD4629C0E5E12A7 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___otherPartyPublicKey0, const RuntimeMethod* method);
// System.Void System.Security.Cryptography.SHA256Managed::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SHA256Managed__ctor_mE7ED908AA6371B0BA6184B06894171B10A589529 (SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2 * __this, const RuntimeMethod* method);
// System.Byte[] System.Security.Cryptography.HashAlgorithm::ComputeHash(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* HashAlgorithm_ComputeHash_m18501D3068AEBEB5FA83EA72BE780E371DB0C122 (HashAlgorithm_t65659695B16C0BBF05707BF45191A97DC156D6BA * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buffer0, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Dispose(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider_Dispose_m5019411EFF7D26EA519E8721DC3A69CC41E23DB3 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, bool ___disposing0, const RuntimeMethod* method);
// System.Void System.GC::SuppressFinalize(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GC_SuppressFinalize_m037319A9B95A5BA437E806DE592802225EE5B425 (RuntimeObject * ___obj0, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::ModPow(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___exp0, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___n1, const RuntimeMethod* method);
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::GenerateRandom(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0 (int32_t ___bits0, const RuntimeMethod* method);
// System.IntPtr Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorCreate()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR intptr_t DiffieHellmanCryptoProviderNative_egCryptorCreate_m282278D194293372D8BF3DD9D0C756844F93094A (const RuntimeMethod* method);
// System.Void System.ArgumentNullException::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * __this, String_t* ___paramName0, const RuntimeMethod* method);
// System.Void System.Exception::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Exception__ctor_m89BADFF36C3B170013878726E07729D51AA9FBE0 (Exception_t * __this, String_t* ___message0, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorPublicKey(System.IntPtr,System.IntPtr&,System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorPublicKey_m936DA64D7FABD6E890E0C0919D9482C90C537AF6 (intptr_t ___cryptor0, intptr_t* ___key1, int32_t* ___keySize2, const RuntimeMethod* method);
// System.Void System.Runtime.InteropServices.Marshal::Copy(System.IntPtr,System.Byte[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Marshal_Copy_m64744D9E23AFC00AA06CD6B057E19B7C0CE4C0C2 (intptr_t ___source0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___destination1, int32_t ___startIndex2, int32_t ___length3, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDeriveSharedKey(System.IntPtr,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorDeriveSharedKey_mE62543C5EA2D91B93999E1CC15D6A14D98EFF650 (intptr_t ___cryptor0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___serverPublicKey1, int32_t ___keySize2, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorEncrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.IntPtr&,System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorEncrypt_mA8DA63FA96EB12756651890BF40A9ECF9E5120A8 (intptr_t ___cryptor0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___plainData1, int32_t ___plainDataOffset2, int32_t ___plainDataSize3, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKeyHash4, intptr_t* ___encodedData5, int32_t* ___encodedDataSize6, const RuntimeMethod* method);
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDecrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.IntPtr&,System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorDecrypt_m1ECA9577B04E13C12E6A6B469476AAB6AED3E0E8 (intptr_t ___cryptor0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___encodedData1, int32_t ___encodedDataOffset2, int32_t ___encodedDataSize3, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKeyHash4, intptr_t* ___plainData5, int32_t* ___plainDataSize6, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Dispose(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative_Dispose_m6AEC734973EAA3E24BB1BB7C46967A167EB13D8F (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, bool ___disposing0, const RuntimeMethod* method);
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDispose(System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative_egCryptorDispose_mE9DE80C11D2F5B587B406B4907DCAF10BC991C93 (intptr_t ___cryptor0, const RuntimeMethod* method);
// System.Void System.ThrowHelper::ThrowArgumentOutOfRangeException()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550 (const RuntimeMethod* method);
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.List`1<System.Reflection.MethodInfo> ExitGames.Client.Photon.SupportClass::GetMethods(System.Type,System.Type)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * SupportClass_GetMethods_mC692EFCEACCC2C355BE7DAD291047B4984D29C1B (Type_t * ___type0, Type_t * ___attribute1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_GetMethods_mC692EFCEACCC2C355BE7DAD291047B4984D29C1B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * V_0 = NULL;
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* V_1 = NULL;
bool V_2 = false;
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * V_3 = NULL;
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* V_4 = NULL;
int32_t V_5 = 0;
MethodInfo_t * V_6 = NULL;
bool V_7 = false;
int32_t G_B6_0 = 0;
{
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * L_0 = (List_1_t8693F442D94ED2E09D894940915C961D2F63C69B *)il2cpp_codegen_object_new(List_1_t8693F442D94ED2E09D894940915C961D2F63C69B_il2cpp_TypeInfo_var);
List_1__ctor_mFBB7F821AAC1F0F68A578448DD892C8F1D7CC7D2(L_0, /*hidden argument*/List_1__ctor_mFBB7F821AAC1F0F68A578448DD892C8F1D7CC7D2_RuntimeMethod_var);
V_0 = L_0;
Type_t * L_1 = ___type0;
V_2 = (bool)((((RuntimeObject*)(Type_t *)L_1) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_2 = V_2;
if (!L_2)
{
goto IL_0014;
}
}
{
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * L_3 = V_0;
V_3 = L_3;
goto IL_0061;
}
IL_0014:
{
Type_t * L_4 = ___type0;
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* L_5 = VirtFuncInvoker1< MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B*, int32_t >::Invoke(41 /* System.Reflection.MethodInfo[] System.Type::GetMethods(System.Reflection.BindingFlags) */, L_4, ((int32_t)52));
V_1 = L_5;
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* L_6 = V_1;
V_4 = L_6;
V_5 = 0;
goto IL_0055;
}
IL_0026:
{
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* L_7 = V_4;
int32_t L_8 = V_5;
int32_t L_9 = L_8;
MethodInfo_t * L_10 = (L_7)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_9));
V_6 = L_10;
Type_t * L_11 = ___attribute1;
if (!L_11)
{
goto IL_003c;
}
}
{
MethodInfo_t * L_12 = V_6;
Type_t * L_13 = ___attribute1;
bool L_14 = VirtFuncInvoker2< bool, Type_t *, bool >::Invoke(12 /* System.Boolean System.Reflection.MemberInfo::IsDefined(System.Type,System.Boolean) */, L_12, L_13, (bool)0);
G_B6_0 = ((int32_t)(L_14));
goto IL_003d;
}
IL_003c:
{
G_B6_0 = 1;
}
IL_003d:
{
V_7 = (bool)G_B6_0;
bool L_15 = V_7;
if (!L_15)
{
goto IL_004e;
}
}
{
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * L_16 = V_0;
MethodInfo_t * L_17 = V_6;
List_1_Add_mB020CF1970BC807041D779C69DE0B129F319DB94(L_16, L_17, /*hidden argument*/List_1_Add_mB020CF1970BC807041D779C69DE0B129F319DB94_RuntimeMethod_var);
}
IL_004e:
{
int32_t L_18 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
}
IL_0055:
{
int32_t L_19 = V_5;
MethodInfoU5BU5D_t93E968F23AF2DB5CFCFF13BE775A0E222C03586B* L_20 = V_4;
if ((((int32_t)L_19) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_20)->max_length)))))))
{
goto IL_0026;
}
}
{
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * L_21 = V_0;
V_3 = L_21;
goto IL_0061;
}
IL_0061:
{
List_1_t8693F442D94ED2E09D894940915C961D2F63C69B * L_22 = V_3;
return L_22;
}
}
// System.Int32 ExitGames.Client.Photon.SupportClass::GetTickCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * L_0 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_IntegerMilliseconds_2();
int32_t L_1 = IntegerMillisecondsDelegate_Invoke_m1D6A82EA4C00DD01FE6DB867E1D5111DB6030916(L_0, /*hidden argument*/NULL);
V_0 = L_1;
goto IL_000e;
}
IL_000e:
{
int32_t L_2 = V_0;
return L_2;
}
}
// System.Byte ExitGames.Client.Photon.SupportClass::StartBackgroundCalls(System.Func`1<System.Boolean>,System.Int32,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t SupportClass_StartBackgroundCalls_m4A8E179704C1F39B8BC274A0C6185168BAFEE0D8 (Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * ___myThread0, int32_t ___millisecondsInterval1, String_t* ___taskName2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_StartBackgroundCalls_m4A8E179704C1F39B8BC274A0C6185168BAFEE0D8_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * V_0 = NULL;
RuntimeObject * V_1 = NULL;
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * V_2 = NULL;
bool V_3 = false;
bool V_4 = false;
uint8_t V_5 = 0x0;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * L_0 = (U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass6_0__ctor_m9239E5DEB52C89E747C3C22914C9E233DD5CA480(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * L_1 = V_0;
int32_t L_2 = ___millisecondsInterval1;
L_1->set_millisecondsInterval_0(L_2);
U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * L_3 = V_0;
Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * L_4 = ___myThread0;
L_3->set_myThread_1(L_4);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
RuntimeObject * L_5 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_ThreadListLock_1();
V_1 = L_5;
RuntimeObject * L_6 = V_1;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_6, /*hidden argument*/NULL);
}
IL_0022:
try
{ // begin try (depth: 1)
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_7 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
V_3 = (bool)((((RuntimeObject*)(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *)L_7) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_8 = V_3;
if (!L_8)
{
goto IL_003b;
}
}
IL_002f:
{
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_9 = (List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *)il2cpp_codegen_object_new(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D_il2cpp_TypeInfo_var);
List_1__ctor_m7A4FEC7537D92854E09F078941CE1B8C9C810F0F(L_9, /*hidden argument*/List_1__ctor_m7A4FEC7537D92854E09F078941CE1B8C9C810F0F_RuntimeMethod_var);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->set_threadList_0(L_9);
}
IL_003b:
{
U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * L_10 = V_0;
ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF * L_11 = (ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF *)il2cpp_codegen_object_new(ThreadStart_t09FFA4371E4B2A713F212B157CC9B8B61983B5BF_il2cpp_TypeInfo_var);
ThreadStart__ctor_m692348FEAEBAF381D62984EE95B217CC024A77D5(L_11, L_10, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A_RuntimeMethod_var), /*hidden argument*/NULL);
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_12 = (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 *)il2cpp_codegen_object_new(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7_il2cpp_TypeInfo_var);
Thread__ctor_m36A33B990160C4499E991D288341CA325AE66DDD(L_12, L_11, /*hidden argument*/NULL);
V_2 = L_12;
String_t* L_13 = ___taskName2;
bool L_14 = String_IsNullOrEmpty_m06A85A206AC2106D1982826C5665B9BD35324229(L_13, /*hidden argument*/NULL);
V_4 = (bool)((((int32_t)L_14) == ((int32_t)0))? 1 : 0);
bool L_15 = V_4;
if (!L_15)
{
goto IL_0066;
}
}
IL_005c:
{
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_16 = V_2;
String_t* L_17 = ___taskName2;
Thread_set_Name_mEBD0DF20D69C49612949EA6F24E8E4EADB7F5E77(L_16, L_17, /*hidden argument*/NULL);
}
IL_0066:
{
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_18 = V_2;
Thread_set_IsBackground_mF62551A195DCB09D44E512F52916145E39362D39(L_18, (bool)1, /*hidden argument*/NULL);
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_19 = V_2;
Thread_Start_mE2AC4744AFD147FDC84E8D9317B4E3AB890BC2D6(L_19, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_20 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_21 = V_2;
List_1_Add_m1CA4BDBC8247F05F727DB5AB73D23373B86C3ADA(L_20, L_21, /*hidden argument*/List_1_Add_m1CA4BDBC8247F05F727DB5AB73D23373B86C3ADA_RuntimeMethod_var);
IL2CPP_LEAVE(0x8C, FINALLY_0084);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0084;
}
FINALLY_0084:
{ // begin finally (depth: 1)
RuntimeObject * L_22 = V_1;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_22, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(132)
} // end finally (depth: 1)
IL2CPP_CLEANUP(132)
{
IL2CPP_JUMP_TBL(0x8C, IL_008c)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_008c:
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_23 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
int32_t L_24 = List_1_get_Count_m11E3A74EDF4FB6EE4139A15DD104D59DDC402BFF_inline(L_23, /*hidden argument*/List_1_get_Count_m11E3A74EDF4FB6EE4139A15DD104D59DDC402BFF_RuntimeMethod_var);
V_5 = (uint8_t)(((int32_t)((uint8_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_24, (int32_t)1)))));
goto IL_009d;
}
IL_009d:
{
uint8_t L_25 = V_5;
return L_25;
}
}
// System.Boolean ExitGames.Client.Photon.SupportClass::StopBackgroundCalls(System.Byte)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SupportClass_StopBackgroundCalls_mAEEFE83BF78C6006DDC019FD7965F223E6AD1404 (uint8_t ___id0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_StopBackgroundCalls_mAEEFE83BF78C6006DDC019FD7965F223E6AD1404_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B5_0 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
RuntimeObject * L_0 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_ThreadListLock_1();
V_0 = L_0;
RuntimeObject * L_1 = V_0;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_1, /*hidden argument*/NULL);
}
IL_000e:
try
{ // begin try (depth: 1)
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_2 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
if (!L_2)
{
goto IL_0033;
}
}
IL_0016:
{
uint8_t L_3 = ___id0;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_4 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
int32_t L_5 = List_1_get_Count_m11E3A74EDF4FB6EE4139A15DD104D59DDC402BFF_inline(L_4, /*hidden argument*/List_1_get_Count_m11E3A74EDF4FB6EE4139A15DD104D59DDC402BFF_RuntimeMethod_var);
if ((((int32_t)L_3) >= ((int32_t)L_5)))
{
goto IL_0033;
}
}
IL_0023:
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_6 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
uint8_t L_7 = ___id0;
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_8 = List_1_get_Item_m5584F887D702E20E9AF1D8EF97200115E997D9FB_inline(L_6, L_7, /*hidden argument*/List_1_get_Item_m5584F887D702E20E9AF1D8EF97200115E997D9FB_RuntimeMethod_var);
G_B5_0 = ((((RuntimeObject*)(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 *)L_8) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
goto IL_0034;
}
IL_0033:
{
G_B5_0 = 1;
}
IL_0034:
{
V_1 = (bool)G_B5_0;
bool L_9 = V_1;
if (!L_9)
{
goto IL_003d;
}
}
IL_0038:
{
V_2 = (bool)0;
IL2CPP_LEAVE(0x67, FINALLY_005f);
}
IL_003d:
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_10 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
uint8_t L_11 = ___id0;
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_12 = List_1_get_Item_m5584F887D702E20E9AF1D8EF97200115E997D9FB_inline(L_10, L_11, /*hidden argument*/List_1_get_Item_m5584F887D702E20E9AF1D8EF97200115E997D9FB_RuntimeMethod_var);
Thread_Abort_mFF7FBB8E9DAF2ABC8DD85C48F6BDB91502B7DA44(L_12, /*hidden argument*/NULL);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_13 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
uint8_t L_14 = ___id0;
List_1_set_Item_m66CC47458BF9C06655288BFD1ED154847E1C275C(L_13, L_14, (Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 *)NULL, /*hidden argument*/List_1_set_Item_m66CC47458BF9C06655288BFD1ED154847E1C275C_RuntimeMethod_var);
V_2 = (bool)1;
IL2CPP_LEAVE(0x67, FINALLY_005f);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_005f;
}
FINALLY_005f:
{ // begin finally (depth: 1)
RuntimeObject * L_15 = V_0;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_15, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(95)
} // end finally (depth: 1)
IL2CPP_CLEANUP(95)
{
IL2CPP_JUMP_TBL(0x67, IL_0067)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0067:
{
bool L_16 = V_2;
return L_16;
}
}
// System.Boolean ExitGames.Client.Photon.SupportClass::StopAllBackgroundCalls()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SupportClass_StopAllBackgroundCalls_mDFC15194694FE3AC25024132C8E0DBF69B1AF901 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_StopAllBackgroundCalls_mDFC15194694FE3AC25024132C8E0DBF69B1AF901_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject * V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C V_3;
memset((&V_3), 0, sizeof(V_3));
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * V_4 = NULL;
bool V_5 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 3);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
RuntimeObject * L_0 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_ThreadListLock_1();
V_0 = L_0;
RuntimeObject * L_1 = V_0;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_1, /*hidden argument*/NULL);
}
IL_000e:
try
{ // begin try (depth: 1)
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_2 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
V_1 = (bool)((((RuntimeObject*)(List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D *)L_2) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_3 = V_1;
if (!L_3)
{
goto IL_0020;
}
}
IL_001b:
{
V_2 = (bool)0;
IL2CPP_LEAVE(0x82, FINALLY_0076);
}
IL_0020:
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_4 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C L_5 = List_1_GetEnumerator_m05753BCE2C89FB542CBC0B1ADF1FD28549810082(L_4, /*hidden argument*/List_1_GetEnumerator_m05753BCE2C89FB542CBC0B1ADF1FD28549810082_RuntimeMethod_var);
V_3 = L_5;
}
IL_002c:
try
{ // begin try (depth: 2)
{
goto IL_004e;
}
IL_002e:
{
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_6 = Enumerator_get_Current_m94B8CC4707639E52FBADD53EB8741554E58ECD5E_inline((Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C *)(&V_3), /*hidden argument*/Enumerator_get_Current_m94B8CC4707639E52FBADD53EB8741554E58ECD5E_RuntimeMethod_var);
V_4 = L_6;
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_7 = V_4;
V_5 = (bool)((!(((RuntimeObject*)(Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 *)L_7) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_8 = V_5;
if (!L_8)
{
goto IL_004d;
}
}
IL_0043:
{
Thread_tF60E0A146CD3B5480CB65FF9B6016E84C5460CC7 * L_9 = V_4;
Thread_Abort_mFF7FBB8E9DAF2ABC8DD85C48F6BDB91502B7DA44(L_9, /*hidden argument*/NULL);
}
IL_004d:
{
}
IL_004e:
{
bool L_10 = Enumerator_MoveNext_mFA777BE67E36AE712834E1630F4E7B19111947CE((Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C *)(&V_3), /*hidden argument*/Enumerator_MoveNext_mFA777BE67E36AE712834E1630F4E7B19111947CE_RuntimeMethod_var);
if (L_10)
{
goto IL_002e;
}
}
IL_0057:
{
IL2CPP_LEAVE(0x68, FINALLY_0059);
}
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0059;
}
FINALLY_0059:
{ // begin finally (depth: 2)
Enumerator_Dispose_m568CABF735952058F73ABF25CC2AE4D57CEFA7A0((Enumerator_t170516E89C4F5403AAE7A7CFFEA81DB998A2510C *)(&V_3), /*hidden argument*/Enumerator_Dispose_m568CABF735952058F73ABF25CC2AE4D57CEFA7A0_RuntimeMethod_var);
IL2CPP_END_FINALLY(89)
} // end finally (depth: 2)
IL2CPP_CLEANUP(89)
{
IL2CPP_JUMP_TBL(0x68, IL_0068)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0068:
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
List_1_t584FFF54C798BF7768C5EA483641BADEC0CB963D * L_11 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_threadList_0();
List_1_Clear_m0A1085C5EB29FC7F6CB35B700EFF3BCD9E68FFF6(L_11, /*hidden argument*/List_1_Clear_m0A1085C5EB29FC7F6CB35B700EFF3BCD9E68FFF6_RuntimeMethod_var);
IL2CPP_LEAVE(0x7E, FINALLY_0076);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0076;
}
FINALLY_0076:
{ // begin finally (depth: 1)
RuntimeObject * L_12 = V_0;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_12, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(118)
} // end finally (depth: 1)
IL2CPP_CLEANUP(118)
{
IL2CPP_JUMP_TBL(0x82, IL_0082)
IL2CPP_JUMP_TBL(0x7E, IL_007e)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_007e:
{
V_2 = (bool)1;
goto IL_0082;
}
IL_0082:
{
bool L_13 = V_2;
return L_13;
}
}
// System.Void ExitGames.Client.Photon.SupportClass::WriteStackTrace(System.Exception,System.IO.TextWriter)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SupportClass_WriteStackTrace_m10DB7B98F45AF1B2A0FFFCDCFB175C155B99363D (Exception_t * ___throwable0, TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * ___stream1, const RuntimeMethod* method)
{
bool V_0 = false;
{
TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * L_0 = ___stream1;
V_0 = (bool)((!(((RuntimeObject*)(TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 *)L_0) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_002e;
}
}
{
TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * L_2 = ___stream1;
Exception_t * L_3 = ___throwable0;
String_t* L_4 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_3);
VirtActionInvoker1< String_t* >::Invoke(18 /* System.Void System.IO.TextWriter::WriteLine(System.String) */, L_2, L_4);
TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * L_5 = ___stream1;
Exception_t * L_6 = ___throwable0;
String_t* L_7 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Exception::get_StackTrace() */, L_6);
VirtActionInvoker1< String_t* >::Invoke(18 /* System.Void System.IO.TextWriter::WriteLine(System.String) */, L_5, L_7);
TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 * L_8 = ___stream1;
VirtActionInvoker0::Invoke(10 /* System.Void System.IO.TextWriter::Flush() */, L_8);
goto IL_0048;
}
IL_002e:
{
Exception_t * L_9 = ___throwable0;
String_t* L_10 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_9);
Debug_WriteLine_m0340AA03A71685D0C1BF132EF3173A33860132C2(L_10, /*hidden argument*/NULL);
Exception_t * L_11 = ___throwable0;
String_t* L_12 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Exception::get_StackTrace() */, L_11);
Debug_WriteLine_m0340AA03A71685D0C1BF132EF3173A33860132C2(L_12, /*hidden argument*/NULL);
}
IL_0048:
{
return;
}
}
// System.Void ExitGames.Client.Photon.SupportClass::WriteStackTrace(System.Exception)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385 (Exception_t * ___throwable0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Exception_t * L_0 = ___throwable0;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
SupportClass_WriteStackTrace_m10DB7B98F45AF1B2A0FFFCDCFB175C155B99363D(L_0, (TextWriter_t92451D929322093838C41489883D5B2D7ABAF3F0 *)NULL, /*hidden argument*/NULL);
return;
}
}
// System.String ExitGames.Client.Photon.SupportClass::DictionaryToString(System.Collections.IDictionary)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771 (RuntimeObject* ___dictionary0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
RuntimeObject* L_0 = ___dictionary0;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
String_t* L_1 = SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405(L_0, (bool)1, /*hidden argument*/NULL);
V_0 = L_1;
goto IL_000b;
}
IL_000b:
{
String_t* L_2 = V_0;
return L_2;
}
}
// System.String ExitGames.Client.Photon.SupportClass::DictionaryToString(System.Collections.IDictionary,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405 (RuntimeObject* ___dictionary0, bool ___includeTypes1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
StringBuilder_t * V_0 = NULL;
Type_t * V_1 = NULL;
String_t* V_2 = NULL;
bool V_3 = false;
String_t* V_4 = NULL;
RuntimeObject* V_5 = NULL;
RuntimeObject * V_6 = NULL;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
bool V_11 = false;
bool V_12 = false;
RuntimeObject* V_13 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B12_0 = 0;
{
RuntimeObject* L_0 = ___dictionary0;
V_3 = (bool)((((RuntimeObject*)(RuntimeObject*)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_1 = V_3;
if (!L_1)
{
goto IL_0016;
}
}
{
V_4 = _stringLiteral2BE88CA4242C76E8253AC62474851065032D6833;
goto IL_01d3;
}
IL_0016:
{
StringBuilder_t * L_2 = (StringBuilder_t *)il2cpp_codegen_object_new(StringBuilder_t_il2cpp_TypeInfo_var);
StringBuilder__ctor_mF928376F82E8C8FF3C11842C562DB8CF28B2735E(L_2, /*hidden argument*/NULL);
V_0 = L_2;
StringBuilder_t * L_3 = V_0;
StringBuilder_Append_mDBB8CCBB7750C67BE2F2D92F47E6C0FA42793260(L_3, _stringLiteral60BA4B2DAA4ED4D070FEC06687E249E0E6F9EE45, /*hidden argument*/NULL);
RuntimeObject* L_4 = ___dictionary0;
RuntimeObject* L_5 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(2 /* System.Collections.ICollection System.Collections.IDictionary::get_Keys() */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_4);
RuntimeObject* L_6 = InterfaceFuncInvoker0< RuntimeObject* >::Invoke(0 /* System.Collections.IEnumerator System.Collections.IEnumerable::GetEnumerator() */, IEnumerable_tD74549CEA1AA48E768382B94FEACBB07E2E3FA2C_il2cpp_TypeInfo_var, L_5);
V_5 = L_6;
}
IL_0036:
try
{ // begin try (depth: 1)
{
goto IL_0199;
}
IL_003b:
{
RuntimeObject* L_7 = V_5;
RuntimeObject * L_8 = InterfaceFuncInvoker0< RuntimeObject * >::Invoke(1 /* System.Object System.Collections.IEnumerator::get_Current() */, IEnumerator_t8789118187258CC88B77AFAC6315B5AF87D3E18A_il2cpp_TypeInfo_var, L_7);
V_6 = L_8;
StringBuilder_t * L_9 = V_0;
int32_t L_10 = StringBuilder_get_Length_m44BCD2BF32D45E9376761FF33AA429BFBD902F07(L_9, /*hidden argument*/NULL);
V_7 = (bool)((((int32_t)L_10) > ((int32_t)1))? 1 : 0);
bool L_11 = V_7;
if (!L_11)
{
goto IL_0062;
}
}
IL_0054:
{
StringBuilder_t * L_12 = V_0;
StringBuilder_Append_mDBB8CCBB7750C67BE2F2D92F47E6C0FA42793260(L_12, _stringLiteralD3BC9A378DAAA1DDDBA1B19C1AA641D3E9683C46, /*hidden argument*/NULL);
}
IL_0062:
{
RuntimeObject* L_13 = ___dictionary0;
RuntimeObject * L_14 = V_6;
RuntimeObject * L_15 = InterfaceFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IDictionary::get_Item(System.Object) */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_13, L_14);
V_8 = (bool)((((RuntimeObject*)(RuntimeObject *)L_15) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_16 = V_8;
if (!L_16)
{
goto IL_0088;
}
}
IL_0073:
{
RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D L_17 = { reinterpret_cast<intptr_t> (RuntimeObject_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_18 = Type_GetTypeFromHandle_m9DC58ADF0512987012A8A016FB64B068F3B1AFF6(L_17, /*hidden argument*/NULL);
V_1 = L_18;
V_2 = _stringLiteral2BE88CA4242C76E8253AC62474851065032D6833;
goto IL_00a6;
}
IL_0088:
{
RuntimeObject* L_19 = ___dictionary0;
RuntimeObject * L_20 = V_6;
RuntimeObject * L_21 = InterfaceFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IDictionary::get_Item(System.Object) */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_19, L_20);
Type_t * L_22 = Object_GetType_m2E0B62414ECCAA3094B703790CE88CBB2F83EA60(L_21, /*hidden argument*/NULL);
V_1 = L_22;
RuntimeObject* L_23 = ___dictionary0;
RuntimeObject * L_24 = V_6;
RuntimeObject * L_25 = InterfaceFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IDictionary::get_Item(System.Object) */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_23, L_24);
String_t* L_26 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_25);
V_2 = L_26;
}
IL_00a6:
{
RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D L_27 = { reinterpret_cast<intptr_t> (IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_28 = Type_GetTypeFromHandle_m9DC58ADF0512987012A8A016FB64B068F3B1AFF6(L_27, /*hidden argument*/NULL);
Type_t * L_29 = V_1;
if ((((RuntimeObject*)(Type_t *)L_28) == ((RuntimeObject*)(Type_t *)L_29)))
{
goto IL_00c2;
}
}
IL_00b3:
{
RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D L_30 = { reinterpret_cast<intptr_t> (Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_31 = Type_GetTypeFromHandle_m9DC58ADF0512987012A8A016FB64B068F3B1AFF6(L_30, /*hidden argument*/NULL);
Type_t * L_32 = V_1;
G_B12_0 = ((((RuntimeObject*)(Type_t *)L_31) == ((RuntimeObject*)(Type_t *)L_32))? 1 : 0);
goto IL_00c3;
}
IL_00c2:
{
G_B12_0 = 1;
}
IL_00c3:
{
V_9 = (bool)G_B12_0;
bool L_33 = V_9;
if (!L_33)
{
goto IL_00de;
}
}
IL_00c9:
{
RuntimeObject* L_34 = ___dictionary0;
RuntimeObject * L_35 = V_6;
RuntimeObject * L_36 = InterfaceFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IDictionary::get_Item(System.Object) */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_34, L_35);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
String_t* L_37 = SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771(((RuntimeObject*)Castclass((RuntimeObject*)L_36, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var)), /*hidden argument*/NULL);
V_2 = L_37;
}
IL_00de:
{
RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D L_38 = { reinterpret_cast<intptr_t> (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_39 = Type_GetTypeFromHandle_m9DC58ADF0512987012A8A016FB64B068F3B1AFF6(L_38, /*hidden argument*/NULL);
Type_t * L_40 = V_1;
V_10 = (bool)((((RuntimeObject*)(Type_t *)L_39) == ((RuntimeObject*)(Type_t *)L_40))? 1 : 0);
bool L_41 = V_10;
if (!L_41)
{
goto IL_0115;
}
}
IL_00f1:
{
RuntimeObject* L_42 = ___dictionary0;
RuntimeObject * L_43 = V_6;
RuntimeObject * L_44 = InterfaceFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IDictionary::get_Item(System.Object) */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_42, L_43);
String_t* L_45 = String_Join_m49371BED70248F0FCE970CB4F2E39E9A688AAFA4(_stringLiteral5C10B5B2CD673A0616D529AA5234B12EE7153808, ((StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)Castclass((RuntimeObject*)L_44, StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E_il2cpp_TypeInfo_var)), /*hidden argument*/NULL);
String_t* L_46 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralA3A4DAB27D024E6F0C8849A888939EEACC4454B7, L_45, /*hidden argument*/NULL);
V_2 = L_46;
}
IL_0115:
{
RuntimeTypeHandle_t7B542280A22F0EC4EAC2061C29178845847A8B2D L_47 = { reinterpret_cast<intptr_t> (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_0_0_0_var) };
IL2CPP_RUNTIME_CLASS_INIT(Type_t_il2cpp_TypeInfo_var);
Type_t * L_48 = Type_GetTypeFromHandle_m9DC58ADF0512987012A8A016FB64B068F3B1AFF6(L_47, /*hidden argument*/NULL);
Type_t * L_49 = V_1;
V_11 = (bool)((((RuntimeObject*)(Type_t *)L_48) == ((RuntimeObject*)(Type_t *)L_49))? 1 : 0);
bool L_50 = V_11;
if (!L_50)
{
goto IL_0149;
}
}
IL_0128:
{
RuntimeObject* L_51 = ___dictionary0;
RuntimeObject * L_52 = V_6;
RuntimeObject * L_53 = InterfaceFuncInvoker1< RuntimeObject *, RuntimeObject * >::Invoke(0 /* System.Object System.Collections.IDictionary::get_Item(System.Object) */, IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7_il2cpp_TypeInfo_var, L_51, L_52);
int32_t L_54 = (((int32_t)((int32_t)(((RuntimeArray*)((ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)Castclass((RuntimeObject*)L_53, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var)))->max_length))));
RuntimeObject * L_55 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_54);
String_t* L_56 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral129BA976599D8E892992AC36E5D2E16A2DAA3269, L_55, /*hidden argument*/NULL);
V_2 = L_56;
}
IL_0149:
{
bool L_57 = ___includeTypes1;
V_12 = L_57;
bool L_58 = V_12;
if (!L_58)
{
goto IL_0187;
}
}
IL_0150:
{
StringBuilder_t * L_59 = V_0;
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_60 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)4);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_61 = L_60;
RuntimeObject * L_62 = V_6;
Type_t * L_63 = Object_GetType_m2E0B62414ECCAA3094B703790CE88CBB2F83EA60(L_62, /*hidden argument*/NULL);
String_t* L_64 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_63);
ArrayElementTypeCheck (L_61, L_64);
(L_61)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_64);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_65 = L_61;
RuntimeObject * L_66 = V_6;
ArrayElementTypeCheck (L_65, L_66);
(L_65)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_66);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_67 = L_65;
Type_t * L_68 = V_1;
String_t* L_69 = VirtFuncInvoker0< String_t* >::Invoke(7 /* System.String System.Reflection.MemberInfo::get_Name() */, L_68);
ArrayElementTypeCheck (L_67, L_69);
(L_67)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_69);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_70 = L_67;
String_t* L_71 = V_2;
ArrayElementTypeCheck (L_70, L_71);
(L_70)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_71);
StringBuilder_AppendFormat_m23742FE1E3C60341F37C243EB6BEE06AE444C774(L_59, _stringLiteral22596C13EDD4026B32B1248314342143DC7A4C60, L_70, /*hidden argument*/NULL);
goto IL_0198;
}
IL_0187:
{
StringBuilder_t * L_72 = V_0;
RuntimeObject * L_73 = V_6;
String_t* L_74 = V_2;
StringBuilder_AppendFormat_m9DBA7709F546159ABC85BA341965305AB044D1B7(L_72, _stringLiteralE24B2AE346144B380995397756084920B60F6902, L_73, L_74, /*hidden argument*/NULL);
}
IL_0198:
{
}
IL_0199:
{
RuntimeObject* L_75 = V_5;
bool L_76 = InterfaceFuncInvoker0< bool >::Invoke(0 /* System.Boolean System.Collections.IEnumerator::MoveNext() */, IEnumerator_t8789118187258CC88B77AFAC6315B5AF87D3E18A_il2cpp_TypeInfo_var, L_75);
if (L_76)
{
goto IL_003b;
}
}
IL_01a5:
{
IL2CPP_LEAVE(0x1BD, FINALLY_01a7);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_01a7;
}
FINALLY_01a7:
{ // begin finally (depth: 1)
{
RuntimeObject* L_77 = V_5;
V_13 = ((RuntimeObject*)IsInst((RuntimeObject*)L_77, IDisposable_t7218B22548186B208D65EA5B7870503810A2D15A_il2cpp_TypeInfo_var));
RuntimeObject* L_78 = V_13;
if (!L_78)
{
goto IL_01bc;
}
}
IL_01b4:
{
RuntimeObject* L_79 = V_13;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t7218B22548186B208D65EA5B7870503810A2D15A_il2cpp_TypeInfo_var, L_79);
}
IL_01bc:
{
IL2CPP_END_FINALLY(423)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(423)
{
IL2CPP_JUMP_TBL(0x1BD, IL_01bd)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_01bd:
{
StringBuilder_t * L_80 = V_0;
StringBuilder_Append_mDBB8CCBB7750C67BE2F2D92F47E6C0FA42793260(L_80, _stringLiteralC2B7DF6201FDD3362399091F0A29550DF3505B6A, /*hidden argument*/NULL);
StringBuilder_t * L_81 = V_0;
String_t* L_82 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_81);
V_4 = L_82;
goto IL_01d3;
}
IL_01d3:
{
String_t* L_83 = V_4;
return L_83;
}
}
// System.String ExitGames.Client.Photon.SupportClass::HashtableToString(ExitGames.Client.Photon.Hashtable)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_HashtableToString_m87348FF98FB2C6DDFACA0FB6FA97B43AC4E01B4B (Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * ___hash0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_HashtableToString_m87348FF98FB2C6DDFACA0FB6FA97B43AC4E01B4B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * L_0 = ___hash0;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
String_t* L_1 = SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771(L_0, /*hidden argument*/NULL);
V_0 = L_1;
goto IL_000a;
}
IL_000a:
{
String_t* L_2 = V_0;
return L_2;
}
}
// System.String ExitGames.Client.Photon.SupportClass::ByteArrayToString(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1 (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___list0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
String_t* V_1 = NULL;
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___list0;
V_0 = (bool)((((RuntimeObject*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0012;
}
}
{
String_t* L_2 = ((String_t_StaticFields*)il2cpp_codegen_static_fields_for(String_t_il2cpp_TypeInfo_var))->get_Empty_5();
V_1 = L_2;
goto IL_001b;
}
IL_0012:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = ___list0;
IL2CPP_RUNTIME_CLASS_INIT(BitConverter_tD5DF1CB5C5A5CB087D90BD881C8E75A332E546EE_il2cpp_TypeInfo_var);
String_t* L_4 = BitConverter_ToString_m6201360C9B19FD17437AA1C88AF1743DCF3442E3(L_3, /*hidden argument*/NULL);
V_1 = L_4;
goto IL_001b;
}
IL_001b:
{
String_t* L_5 = V_1;
return L_5;
}
}
// System.UInt32[] ExitGames.Client.Photon.SupportClass::InitializeTable(System.UInt32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1 (uint32_t ___polynomial0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* V_0 = NULL;
int32_t V_1 = 0;
uint32_t V_2 = 0;
int32_t V_3 = 0;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* V_7 = NULL;
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)256));
V_0 = L_0;
V_1 = 0;
goto IL_004c;
}
IL_0010:
{
int32_t L_1 = V_1;
V_2 = L_1;
V_3 = 0;
goto IL_0039;
}
IL_0017:
{
uint32_t L_2 = V_2;
V_4 = (bool)((((int32_t)((int32_t)((int32_t)L_2&(int32_t)1))) == ((int32_t)1))? 1 : 0);
bool L_3 = V_4;
if (!L_3)
{
goto IL_002e;
}
}
{
uint32_t L_4 = V_2;
uint32_t L_5 = ___polynomial0;
V_2 = ((int32_t)((int32_t)((int32_t)((uint32_t)L_4>>1))^(int32_t)L_5));
goto IL_0034;
}
IL_002e:
{
uint32_t L_6 = V_2;
V_2 = ((int32_t)((uint32_t)L_6>>1));
}
IL_0034:
{
int32_t L_7 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1));
}
IL_0039:
{
int32_t L_8 = V_3;
V_5 = (bool)((((int32_t)L_8) < ((int32_t)8))? 1 : 0);
bool L_9 = V_5;
if (L_9)
{
goto IL_0017;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_10 = V_0;
int32_t L_11 = V_1;
uint32_t L_12 = V_2;
(L_10)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_11), (uint32_t)L_12);
int32_t L_13 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)1));
}
IL_004c:
{
int32_t L_14 = V_1;
V_6 = (bool)((((int32_t)L_14) < ((int32_t)((int32_t)256)))? 1 : 0);
bool L_15 = V_6;
if (L_15)
{
goto IL_0010;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_16 = V_0;
V_7 = L_16;
goto IL_005f;
}
IL_005f:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_17 = V_7;
return L_17;
}
}
// System.UInt32 ExitGames.Client.Photon.SupportClass::CalculateCrc(System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint32_t SupportClass_CalculateCrc_m15CFA22FBD259CC231E7366EC299D4F6077DB3D3 (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buffer0, int32_t ___length1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass_CalculateCrc_m15CFA22FBD259CC231E7366EC299D4F6077DB3D3_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
uint32_t V_0 = 0;
uint32_t V_1 = 0;
bool V_2 = false;
int32_t V_3 = 0;
bool V_4 = false;
uint32_t V_5 = 0;
{
V_0 = (-1);
V_1 = ((int32_t)-306674912);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_crcLookupTable_3();
V_2 = (bool)((((RuntimeObject*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_1 = V_2;
if (!L_1)
{
goto IL_0022;
}
}
{
uint32_t L_2 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_3 = SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1(L_2, /*hidden argument*/NULL);
((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->set_crcLookupTable_3(L_3);
}
IL_0022:
{
V_3 = 0;
goto IL_0042;
}
IL_0026:
{
uint32_t L_4 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_5 = ((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->get_crcLookupTable_3();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = ___buffer0;
int32_t L_7 = V_3;
int32_t L_8 = L_7;
uint8_t L_9 = (L_6)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_8));
uint32_t L_10 = V_0;
int32_t L_11 = ((int32_t)((int32_t)L_9^(int32_t)((int32_t)((int32_t)L_10&(int32_t)((int32_t)255)))));
uint32_t L_12 = (L_5)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_11));
V_0 = ((int32_t)((int32_t)((int32_t)((uint32_t)L_4>>8))^(int32_t)L_12));
int32_t L_13 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)1));
}
IL_0042:
{
int32_t L_14 = V_3;
int32_t L_15 = ___length1;
V_4 = (bool)((((int32_t)L_14) < ((int32_t)L_15))? 1 : 0);
bool L_16 = V_4;
if (L_16)
{
goto IL_0026;
}
}
{
uint32_t L_17 = V_0;
V_5 = L_17;
goto IL_0051;
}
IL_0051:
{
uint32_t L_18 = V_5;
return L_18;
}
}
// System.Void ExitGames.Client.Photon.SupportClass::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SupportClass__ctor_m53AD9535E4A79AD7674D7B72D0329CE8E132BB78 (SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.SupportClass::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SupportClass__cctor_m4A38DC2C2A324BCBE343E42C9266F8289CA69F6D (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SupportClass__cctor_m4A38DC2C2A324BCBE343E42C9266F8289CA69F6D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
RuntimeObject * L_0 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(L_0, /*hidden argument*/NULL);
((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->set_ThreadListLock_1(L_0);
IL2CPP_RUNTIME_CLASS_INIT(U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_il2cpp_TypeInfo_var);
U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * L_1 = ((U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_il2cpp_TypeInfo_var))->get_U3CU3E9_0();
IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * L_2 = (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 *)il2cpp_codegen_object_new(IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758_il2cpp_TypeInfo_var);
IntegerMillisecondsDelegate__ctor_m8D2F4B02FBF44CED73C0CB458806E986FEF36989(L_2, L_1, (intptr_t)((intptr_t)U3CU3Ec_U3C_cctorU3Eb__20_0_mCEEC27615777A8FFF2C68CADE7171D62AB87837C_RuntimeMethod_var), /*hidden argument*/NULL);
((SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_StaticFields*)il2cpp_codegen_static_fields_for(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var))->set_IntegerMilliseconds_2(L_2);
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 ExitGames.Client.Photon.SupportClass_<>c::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__cctor_m205A8B45E71762ECAD6FB159EABBB57129D374F1 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__cctor_m205A8B45E71762ECAD6FB159EABBB57129D374F1_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * L_0 = (U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D *)il2cpp_codegen_object_new(U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_il2cpp_TypeInfo_var);
U3CU3Ec__ctor_mB3AFC86D8A660853BAF4DE2FCE7A0906752903EE(L_0, /*hidden argument*/NULL);
((U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_StaticFields*)il2cpp_codegen_static_fields_for(U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D_il2cpp_TypeInfo_var))->set_U3CU3E9_0(L_0);
return;
}
}
// System.Void ExitGames.Client.Photon.SupportClass_<>c::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__ctor_mB3AFC86D8A660853BAF4DE2FCE7A0906752903EE (U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Int32 ExitGames.Client.Photon.SupportClass_<>c::<.cctor>b__20_0()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t U3CU3Ec_U3C_cctorU3Eb__20_0_mCEEC27615777A8FFF2C68CADE7171D62AB87837C (U3CU3Ec_tDE6575663C881C31CF788B4EA8778340087B1C7D * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = Environment_get_TickCount_m0A119BE4354EA90C82CC48E559588C987A79FE0C(/*hidden argument*/NULL);
return L_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 ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass6_0__ctor_m9239E5DEB52C89E747C3C22914C9E233DD5CA480 (U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0::<StartBackgroundCalls>b__0()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A (U3CU3Ec__DisplayClass6_0_tAF7368DBE61A6B81FD3DAD799BBB3308A9E5FDA9 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
}
IL_0001:
try
{ // begin try (depth: 1)
{
goto IL_0012;
}
IL_0004:
{
int32_t L_0 = __this->get_millisecondsInterval_0();
Thread_Sleep_m2CD320EAB7BE02CC1F395EAFE9970D53A5F9EAEF(L_0, /*hidden argument*/NULL);
}
IL_0012:
{
Func_1_t4ABD6DAD480574F152452DD6B9C9A55F4F6655F1 * L_1 = __this->get_myThread_1();
bool L_2 = Func_1_Invoke_mFA91B93A5C91290D4A3C475C4117CA05B43419E6(L_1, /*hidden argument*/Func_1_Invoke_mFA91B93A5C91290D4A3C475C4117CA05B43419E6_RuntimeMethod_var);
V_0 = L_2;
bool L_3 = V_0;
if (L_3)
{
goto IL_0004;
}
}
IL_0021:
{
goto IL_0029;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (ThreadAbortException_t0B7CFB34B2901B695FBCFF84E0A1EBDFC8177468_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0024;
throw e;
}
CATCH_0024:
{ // begin catch(System.Threading.ThreadAbortException)
goto IL_0029;
} // end catch (depth: 1)
IL_0029:
{
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
IL2CPP_EXTERN_C int32_t DelegatePInvokeWrapper_IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc)();
PInvokeFunc il2cppPInvokeFunc = reinterpret_cast<PInvokeFunc>(il2cpp_codegen_get_method_pointer(((RuntimeDelegate*)__this)->method));
// Native function invocation
int32_t returnValue = il2cppPInvokeFunc();
return returnValue;
}
// System.Void ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IntegerMillisecondsDelegate__ctor_m8D2F4B02FBF44CED73C0CB458806E986FEF36989 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
__this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1));
__this->set_method_3(___method1);
__this->set_m_target_2(___object0);
}
// System.Int32 ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::Invoke()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t IntegerMillisecondsDelegate_Invoke_m1D6A82EA4C00DD01FE6DB867E1D5111DB6030916 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, const RuntimeMethod* method)
{
int32_t result = 0;
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* delegateArrayToInvoke = __this->get_delegates_11();
Delegate_t** delegatesToInvoke;
il2cpp_array_size_t length;
if (delegateArrayToInvoke != NULL)
{
length = delegateArrayToInvoke->max_length;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(delegateArrayToInvoke->GetAddressAtUnchecked(0));
}
else
{
length = 1;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(&__this);
}
for (il2cpp_array_size_t i = 0; i < length; i++)
{
Delegate_t* currentDelegate = delegatesToInvoke[i];
Il2CppMethodPointer targetMethodPointer = currentDelegate->get_method_ptr_0();
RuntimeObject* targetThis = currentDelegate->get_m_target_2();
RuntimeMethod* targetMethod = (RuntimeMethod*)(currentDelegate->get_method_3());
if (!il2cpp_codegen_method_is_virtual(targetMethod))
{
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod);
}
bool ___methodIsStatic = MethodIsStatic(targetMethod);
int ___parameterCount = il2cpp_codegen_method_parameter_count(targetMethod);
if (___methodIsStatic)
{
if (___parameterCount == 0)
{
// open
typedef int32_t (*FunctionPointerType) (const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(targetMethod);
}
else
{
// closed
typedef int32_t (*FunctionPointerType) (void*, const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(targetThis, targetMethod);
}
}
else
{
// closed
if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this))
{
if (il2cpp_codegen_method_is_generic_instance(targetMethod))
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
result = GenericInterfaceFuncInvoker0< int32_t >::Invoke(targetMethod, targetThis);
else
result = GenericVirtFuncInvoker0< int32_t >::Invoke(targetMethod, targetThis);
}
else
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
result = InterfaceFuncInvoker0< int32_t >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), targetThis);
else
result = VirtFuncInvoker0< int32_t >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), targetThis);
}
}
else
{
typedef int32_t (*FunctionPointerType) (void*, const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(targetThis, targetMethod);
}
}
}
return result;
}
// System.IAsyncResult ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::BeginInvoke(System.AsyncCallback,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* IntegerMillisecondsDelegate_BeginInvoke_mC17635B0E9C8AB14A13C490A4E38F34A683074A8 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 * ___callback0, RuntimeObject * ___object1, const RuntimeMethod* method)
{
void *__d_args[1] = {0};
return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback0, (RuntimeObject*)___object1);
}
// System.Int32 ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::EndInvoke(System.IAsyncResult)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t IntegerMillisecondsDelegate_EndInvoke_m9975254F86D41320F36942B66260AD2BF809E719 (IntegerMillisecondsDelegate_tCD016B25AA16D1CBD0FA3D8AD659796E95757758 * __this, RuntimeObject* ___result0, const RuntimeMethod* method)
{
RuntimeObject *__result = il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0);
return *(int32_t*)UnBox ((RuntimeObject*)__result);
}
#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.Int32 ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::Next()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t ThreadSafeRandom_Next_mDB4C15751362E0579C6354B6CCE56DAE6DD9EE47 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadSafeRandom_Next_mDB4C15751362E0579C6354B6CCE56DAE6DD9EE47_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * V_0 = NULL;
int32_t V_1 = 0;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
IL2CPP_RUNTIME_CLASS_INIT(ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_il2cpp_TypeInfo_var);
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_0 = ((ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_StaticFields*)il2cpp_codegen_static_fields_for(ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_il2cpp_TypeInfo_var))->get__r_0();
V_0 = L_0;
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_1 = V_0;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_1, /*hidden argument*/NULL);
}
IL_000e:
try
{ // begin try (depth: 1)
IL2CPP_RUNTIME_CLASS_INIT(ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_il2cpp_TypeInfo_var);
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_2 = ((ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_StaticFields*)il2cpp_codegen_static_fields_for(ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_il2cpp_TypeInfo_var))->get__r_0();
int32_t L_3 = VirtFuncInvoker0< int32_t >::Invoke(5 /* System.Int32 System.Random::Next() */, L_2);
V_1 = L_3;
IL2CPP_LEAVE(0x24, FINALLY_001c);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_001c;
}
FINALLY_001c:
{ // begin finally (depth: 1)
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_4 = V_0;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_4, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(28)
} // end finally (depth: 1)
IL2CPP_CLEANUP(28)
{
IL2CPP_JUMP_TBL(0x24, IL_0024)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0024:
{
int32_t L_5 = V_1;
return L_5;
}
}
// System.Void ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThreadSafeRandom__ctor_m7546D8A0EFD5AE34896563B7A245A72D02675C67 (ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThreadSafeRandom__cctor_m9DBC66948E48D5FEEC2A252F76D9A1FF2F54F9A8 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ThreadSafeRandom__cctor_m9DBC66948E48D5FEEC2A252F76D9A1FF2F54F9A8_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_0 = (Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F *)il2cpp_codegen_object_new(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F_il2cpp_TypeInfo_var);
Random__ctor_mCD4B6E9DFD27A19F52FA441CD8CAEB687A9DD2F2(L_0, /*hidden argument*/NULL);
((ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_StaticFields*)il2cpp_codegen_static_fields_for(ThreadSafeRandom_t3100FF5CA5A43C29BC554B59B8042DF6DAC927C6_il2cpp_TypeInfo_var))->set__r_0(L_0);
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.Int32 ExitGames.Client.Photon.TPeer::get_QueuedIncomingCommandsCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TPeer_get_QueuedIncomingCommandsCount_mC902717D6CC234CB56F2403A985C96D3BEB2396E (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_get_QueuedIncomingCommandsCount_mC902717D6CC234CB56F2403A985C96D3BEB2396E_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_0 = __this->get_incomingList_48();
int32_t L_1 = Queue_1_get_Count_mCEF8E1B3E95B9A385B452A7E2B0DE10B19B9AAC9_inline(L_0, /*hidden argument*/Queue_1_get_Count_mCEF8E1B3E95B9A385B452A7E2B0DE10B19B9AAC9_RuntimeMethod_var);
V_0 = L_1;
goto IL_000f;
}
IL_000f:
{
int32_t L_2 = V_0;
return L_2;
}
}
// System.Int32 ExitGames.Client.Photon.TPeer::get_QueuedOutgoingCommandsCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TPeer_get_QueuedOutgoingCommandsCount_mF4AF3675528D3AAD4E801FE4BFBF09772252E493 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_outgoingCommandsInStream_37();
V_0 = L_0;
goto IL_000a;
}
IL_000a:
{
int32_t L_1 = V_0;
return L_1;
}
}
// System.Void ExitGames.Client.Photon.TPeer::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer__ctor_m2736C1E17818D50302E73053A9D33E1F4EDBAF25 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer__ctor_m2736C1E17818D50302E73053A9D33E1F4EDBAF25_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_0 = (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *)il2cpp_codegen_object_new(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519_il2cpp_TypeInfo_var);
Queue_1__ctor_m467D0CAFB245A84C8E5105E2B2D2C63757155A41(L_0, ((int32_t)32), /*hidden argument*/Queue_1__ctor_m467D0CAFB245A84C8E5105E2B2D2C63757155A41_RuntimeMethod_var);
__this->set_incomingList_48(L_0);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)5);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = L_1;
(L_2)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (uint8_t)((int32_t)240));
__this->set_pingRequest_51(L_2);
__this->set_DoFraming_55((bool)1);
IL2CPP_RUNTIME_CLASS_INIT(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_il2cpp_TypeInfo_var);
PeerBase__ctor_m9CC65137693C6926711A1C9917A18368B76E33D9(__this, /*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_TrafficPackageHeaderSize_44(0);
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::InitPeerBase()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_InitPeerBase_mF6C377C456842016F043C49E1A7361D19441BD22 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_InitPeerBase_mF6C377C456842016F043C49E1A7361D19441BD22_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
PeerBase_InitPeerBase_m9D9F192FA22FC5B7A759F4BA433CBBD09F1C91C4(__this, /*hidden argument*/NULL);
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_0 = (Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 *)il2cpp_codegen_object_new(Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519_il2cpp_TypeInfo_var);
Queue_1__ctor_m467D0CAFB245A84C8E5105E2B2D2C63757155A41(L_0, ((int32_t)32), /*hidden argument*/Queue_1__ctor_m467D0CAFB245A84C8E5105E2B2D2C63757155A41_RuntimeMethod_var);
__this->set_incomingList_48(L_0);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_1 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_timestampOfLastReceive_22(L_1);
return;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::Connect(System.String,System.String,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_Connect_m196EA8283A0431705737200EDB8A44CB2C0B3BE4 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, String_t* ___serverAddress0, String_t* ___appID1, RuntimeObject * ___customData2, const RuntimeMethod* method)
{
bool V_0 = false;
{
String_t* L_0 = ___serverAddress0;
String_t* L_1 = ___appID1;
RuntimeObject * L_2 = ___customData2;
bool L_3 = VirtFuncInvoker4< bool, String_t*, String_t*, String_t*, RuntimeObject * >::Invoke(10 /* System.Boolean ExitGames.Client.Photon.PeerBase::Connect(System.String,System.String,System.String,System.Object) */, __this, L_0, (String_t*)NULL, L_1, L_2);
V_0 = L_3;
goto IL_000e;
}
IL_000e:
{
bool L_4 = V_0;
return L_4;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::Connect(System.String,System.String,System.String,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_Connect_mE7BCB997C5EB4DD6FD2F9A982BAC0D1F027433D4 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, String_t* ___serverAddress0, String_t* ___proxyServerAddress1, String_t* ___appID2, RuntimeObject * ___customData3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_Connect_mE7BCB997C5EB4DD6FD2F9A982BAC0D1F027433D4_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
Type_t * G_B10_0 = NULL;
String_t* G_B10_1 = NULL;
int32_t G_B10_2 = 0;
RuntimeObject* G_B10_3 = NULL;
Type_t * G_B9_0 = NULL;
String_t* G_B9_1 = NULL;
int32_t G_B9_2 = 0;
RuntimeObject* G_B9_3 = NULL;
String_t* G_B11_0 = NULL;
String_t* G_B11_1 = NULL;
int32_t G_B11_2 = 0;
RuntimeObject* G_B11_3 = NULL;
TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * G_B14_0 = NULL;
TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * G_B13_0 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* G_B15_0 = NULL;
TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * G_B15_1 = NULL;
int32_t G_B18_0 = 0;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
V_0 = (bool)((!(((uint32_t)L_0) <= ((uint32_t)0)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0028;
}
}
{
RuntimeObject* L_2 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_2, 2, _stringLiteralB282C03E796EB00522EDA16ACEB5DE691C661498);
V_1 = (bool)0;
goto IL_015e;
}
IL_0028:
{
uint8_t L_3 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)((((int32_t)L_3) < ((int32_t)5))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_4 = V_2;
if (!L_4)
{
goto IL_004c;
}
}
{
RuntimeObject* L_5 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_5, 5, _stringLiteral63D27B87913E18B5F148C378CF5C14F6EA7FE36F);
}
IL_004c:
{
String_t* L_6 = ___serverAddress0;
PeerBase_set_ServerAddress_mD01CBD300E8005A193FA30A6EEBD78010B99036B_inline(__this, L_6, /*hidden argument*/NULL);
String_t* L_7 = ___proxyServerAddress1;
PeerBase_set_ProxyServerAddress_mB5F65528B1184E8DB02D6F8F51BB588348C0C5A7_inline(__this, L_7, /*hidden argument*/NULL);
VirtActionInvoker0::Invoke(8 /* System.Void ExitGames.Client.Photon.PeerBase::InitPeerBase() */, __this);
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_8 = (List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B *)il2cpp_codegen_object_new(List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B_il2cpp_TypeInfo_var);
List_1__ctor_m44FCC8E981945ABC4BDC871573CDE9EBF826EAA0(L_8, /*hidden argument*/List_1__ctor_m44FCC8E981945ABC4BDC871573CDE9EBF826EAA0_RuntimeMethod_var);
__this->set_outgoingStream_49(L_8);
Type_t * L_9 = PeerBase_get_SocketImplementation_m6344139D00050B3B1A65798CC3699F732F566384(__this, /*hidden argument*/NULL);
V_3 = (bool)((!(((RuntimeObject*)(Type_t *)L_9) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_10 = V_3;
if (!L_10)
{
goto IL_009f;
}
}
{
Type_t * L_11 = PeerBase_get_SocketImplementation_m6344139D00050B3B1A65798CC3699F732F566384(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_12 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)1);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_13 = L_12;
ArrayElementTypeCheck (L_13, __this);
(L_13)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)__this);
RuntimeObject * L_14 = Activator_CreateInstance_mEE50708E1E8AAD4E5021A2FFDB992DDF65727E17(L_11, L_13, /*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_PhotonSocket_4(((IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 *)CastclassClass((RuntimeObject*)L_14, IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587_il2cpp_TypeInfo_var)));
goto IL_00ad;
}
IL_009f:
{
SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D * L_15 = (SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D *)il2cpp_codegen_object_new(SocketTcp_tEE89F82A45D014EEE491EC0ACDB7AF882FCB3F0D_il2cpp_TypeInfo_var);
SocketTcp__ctor_m1FC77993862E696BAC65926A18164F48527DB579(L_15, __this, /*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_PhotonSocket_4(L_15);
}
IL_00ad:
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_16 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
V_4 = (bool)((((RuntimeObject*)(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 *)L_16) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_17 = V_4;
if (!L_17)
{
goto IL_00ea;
}
}
{
RuntimeObject* L_18 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
Type_t * L_19 = PeerBase_get_SocketImplementation_m6344139D00050B3B1A65798CC3699F732F566384(__this, /*hidden argument*/NULL);
Type_t * L_20 = L_19;
G_B9_0 = L_20;
G_B9_1 = _stringLiteral60EDAB09E48F11D5A782C29B3BA4ABBF939D8C42;
G_B9_2 = 1;
G_B9_3 = L_18;
if (L_20)
{
G_B10_0 = L_20;
G_B10_1 = _stringLiteral60EDAB09E48F11D5A782C29B3BA4ABBF939D8C42;
G_B10_2 = 1;
G_B10_3 = L_18;
goto IL_00d6;
}
}
{
G_B11_0 = ((String_t*)(NULL));
G_B11_1 = G_B9_1;
G_B11_2 = G_B9_2;
G_B11_3 = G_B9_3;
goto IL_00db;
}
IL_00d6:
{
String_t* L_21 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, G_B10_0);
G_B11_0 = L_21;
G_B11_1 = G_B10_1;
G_B11_2 = G_B10_2;
G_B11_3 = G_B10_3;
}
IL_00db:
{
String_t* L_22 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(G_B11_1, G_B11_0, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, G_B11_3, G_B11_2, L_22);
V_1 = (bool)0;
goto IL_015e;
}
IL_00ea:
{
bool L_23 = __this->get_DoFraming_55();
G_B13_0 = __this;
if (L_23)
{
G_B14_0 = __this;
goto IL_00fa;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_24 = ((TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields*)il2cpp_codegen_static_fields_for(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var))->get_tcpMsgHead_53();
G_B15_0 = L_24;
G_B15_1 = G_B13_0;
goto IL_00ff;
}
IL_00fa:
{
IL2CPP_RUNTIME_CLASS_INIT(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_25 = ((TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields*)il2cpp_codegen_static_fields_for(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var))->get_tcpFramedMessageHead_52();
G_B15_0 = L_25;
G_B15_1 = G_B14_0;
}
IL_00ff:
{
G_B15_1->set_messageHeader_54(G_B15_0);
uint8_t L_26 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_usedTransportProtocol_3();
if ((((int32_t)L_26) == ((int32_t)4)))
{
goto IL_0118;
}
}
{
uint8_t L_27 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_usedTransportProtocol_3();
G_B18_0 = ((((int32_t)L_27) == ((int32_t)5))? 1 : 0);
goto IL_0119;
}
IL_0118:
{
G_B18_0 = 1;
}
IL_0119:
{
V_5 = (bool)G_B18_0;
bool L_28 = V_5;
if (!L_28)
{
goto IL_0136;
}
}
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_29 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
String_t* L_30 = ___serverAddress0;
String_t* L_31 = ___appID2;
RuntimeObject * L_32 = ___customData3;
String_t* L_33 = PeerBase_PepareWebSocketUrl_m0F28107ABDED0654941BF1CC60FE68E54C9AA885(__this, L_30, L_31, L_32, /*hidden argument*/NULL);
L_29->set_ConnectAddress_4(L_33);
}
IL_0136:
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_34 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
bool L_35 = VirtFuncInvoker0< bool >::Invoke(4 /* System.Boolean ExitGames.Client.Photon.IPhotonSocket::Connect() */, L_34);
V_6 = L_35;
bool L_36 = V_6;
if (!L_36)
{
goto IL_0153;
}
}
{
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_peerConnectionState_7(1);
V_1 = (bool)1;
goto IL_015e;
}
IL_0153:
{
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_peerConnectionState_7(0);
V_1 = (bool)0;
goto IL_015e;
}
IL_015e:
{
bool L_37 = V_1;
return L_37;
}
}
// System.Void ExitGames.Client.Photon.TPeer::OnConnect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_OnConnect_m983C831E7E28781DC7D5EB04C23CC9EAF22076CA (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_OnConnect_m983C831E7E28781DC7D5EB04C23CC9EAF22076CA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_1 = NULL;
int32_t G_B3_0 = 0;
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_0 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
__this->set_lastPingResult_50(L_0);
bool L_1 = __this->get_DoFraming_55();
if (L_1)
{
goto IL_001f;
}
}
{
RuntimeObject * L_2 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_CustomInitData_26();
G_B3_0 = ((!(((RuntimeObject*)(RuntimeObject *)L_2) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
goto IL_0020;
}
IL_001f:
{
G_B3_0 = 1;
}
IL_0020:
{
V_0 = (bool)G_B3_0;
bool L_3 = V_0;
if (!L_3)
{
goto IL_0047;
}
}
{
String_t* L_4 = PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0_inline(__this, /*hidden argument*/NULL);
String_t* L_5 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_AppId_27();
RuntimeObject * L_6 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_CustomInitData_26();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = PeerBase_PrepareConnectData_m1EC98A6E30BCD49987849E838D064AA378613564(__this, L_4, L_5, L_6, /*hidden argument*/NULL);
V_1 = L_7;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_8 = V_1;
TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D(__this, L_8, /*hidden argument*/NULL);
}
IL_0047:
{
VirtFuncInvoker0< bool >::Invoke(18 /* System.Boolean ExitGames.Client.Photon.PeerBase::SendOutgoingCommands() */, __this);
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::Disconnect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_Disconnect_mDBD4C9E85F53AC1785F38CE043E98224F28E57CF (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_Disconnect_mDBD4C9E85F53AC1785F38CE043E98224F28E57CF_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
int32_t G_B3_0 = 0;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
if (!L_0)
{
goto IL_0014;
}
}
{
uint8_t L_1 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
G_B3_0 = ((((int32_t)L_1) == ((int32_t)4))? 1 : 0);
goto IL_0015;
}
IL_0014:
{
G_B3_0 = 1;
}
IL_0015:
{
V_0 = (bool)G_B3_0;
bool L_2 = V_0;
if (!L_2)
{
goto IL_001c;
}
}
{
goto IL_0047;
}
IL_001c:
{
uint8_t L_3 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_1 = (bool)((((int32_t)((((int32_t)L_3) < ((int32_t)5))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_4 = V_1;
if (!L_4)
{
goto IL_0040;
}
}
{
RuntimeObject* L_5 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_5, 5, _stringLiteral3C181A2281BAC62F1E17EEAB7A687DE4B9854812);
}
IL_0040:
{
VirtActionInvoker0::Invoke(13 /* System.Void ExitGames.Client.Photon.PeerBase::StopConnection() */, __this);
}
IL_0047:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::StopConnection()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_StopConnection_mF41950B6DABD589AEBF7EC6D8909553326D5325A (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_StopConnection_mF41950B6DABD589AEBF7EC6D8909553326D5325A_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * V_1 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_peerConnectionState_7(4);
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
V_0 = (bool)((!(((RuntimeObject*)(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 *)L_0) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0023;
}
}
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_2 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
VirtFuncInvoker0< bool >::Invoke(5 /* System.Boolean ExitGames.Client.Photon.IPhotonSocket::Disconnect() */, L_2);
}
IL_0023:
{
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_3 = __this->get_incomingList_48();
V_1 = L_3;
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_4 = V_1;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_4, /*hidden argument*/NULL);
}
IL_0031:
try
{ // begin try (depth: 1)
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_5 = __this->get_incomingList_48();
Queue_1_Clear_mEAD8D659CB030722276865FEA9AF3A7E0B663C7A(L_5, /*hidden argument*/Queue_1_Clear_mEAD8D659CB030722276865FEA9AF3A7E0B663C7A_RuntimeMethod_var);
IL2CPP_LEAVE(0x49, FINALLY_0041);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0041;
}
FINALLY_0041:
{ // begin finally (depth: 1)
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_6 = V_1;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_6, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(65)
} // end finally (depth: 1)
IL2CPP_CLEANUP(65)
{
IL2CPP_JUMP_TBL(0x49, IL_0049)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0049:
{
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_peerConnectionState_7(0);
PeerBase_EnqueueStatusCallback_m65E16421DDFD3F092A19EFA87BBDD899203718BA(__this, ((int32_t)1025), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::FetchServerTimestamp()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_FetchServerTimestamp_mA8D4EA81D4E271E5C0831125B1CEF53760D0F1B9 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_FetchServerTimestamp_mA8D4EA81D4E271E5C0831125B1CEF53760D0F1B9_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
V_0 = (bool)((((int32_t)((((int32_t)L_0) == ((int32_t)3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_005f;
}
}
{
uint8_t L_2 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_1 = (bool)((((int32_t)((((int32_t)L_2) < ((int32_t)3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_3 = V_1;
if (!L_3)
{
goto IL_004c;
}
}
{
RuntimeObject* L_4 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
uint8_t* L_5 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_address_of_peerConnectionState_7();
RuntimeObject * L_6 = Box(ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D_il2cpp_TypeInfo_var, L_5);
String_t* L_7 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_6);
*L_5 = *(uint8_t*)UnBox(L_6);
String_t* L_8 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteralA01A6AE272652DBC032B2F9A43E6A57D0FC26EA6, L_7, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_4, 3, L_8);
}
IL_004c:
{
RuntimeObject* L_9 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker1< int32_t >::Invoke(2 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnStatusChanged(ExitGames.Client.Photon.StatusCode) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_9, ((int32_t)1030));
goto IL_006d;
}
IL_005f:
{
TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205(__this, /*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_serverTimeOffsetIsAvailable_16((bool)0);
}
IL_006d:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::EnqueueInit(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_0 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_1 = NULL;
int32_t V_2 = 0;
bool V_3 = false;
int32_t V_4 = 0;
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___data0;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_1 = (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *)il2cpp_codegen_object_new(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24_il2cpp_TypeInfo_var);
StreamBuffer__ctor_m70E35CA204B802318F9870E2FE7AB43B53727C25(L_1, ((int32_t)il2cpp_codegen_add((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_0)->max_length)))), (int32_t)((int32_t)32))), /*hidden argument*/NULL);
V_0 = L_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)7);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = L_2;
(L_3)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (uint8_t)((int32_t)251));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = L_3;
(L_4)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(6), (uint8_t)1);
V_1 = L_4;
V_2 = 1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = ___data0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Protocol_t6C20E98C822F066C9F59D476704EA7C603A37DC2_il2cpp_TypeInfo_var);
Protocol_Serialize_m7C3C2A61BAEEC7F272F78C7F789A48E7E4E036E6(((int32_t)il2cpp_codegen_add((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length)))), (int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_6)->max_length)))))), L_7, (int32_t*)(&V_2), /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_8 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = V_1;
StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C(L_8, L_9, 0, (((int32_t)((int32_t)(((RuntimeArray*)L_10)->max_length)))), /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_11 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_12 = ___data0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_13 = ___data0;
StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C(L_11, L_12, 0, (((int32_t)((int32_t)(((RuntimeArray*)L_13)->max_length)))), /*hidden argument*/NULL);
bool L_14 = PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B(__this, /*hidden argument*/NULL);
V_3 = L_14;
bool L_15 = V_3;
if (!L_15)
{
goto IL_0098;
}
}
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_16 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_17 = L_16;
int32_t L_18 = TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline(L_17, /*hidden argument*/NULL);
V_4 = L_18;
int32_t L_19 = V_4;
TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0_inline(L_17, ((int32_t)il2cpp_codegen_add((int32_t)L_19, (int32_t)1)), /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_20 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_21 = L_20;
int32_t L_22 = TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD_inline(L_21, /*hidden argument*/NULL);
V_4 = L_22;
int32_t L_23 = V_4;
TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9_inline(L_21, ((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1)), /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_24 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_25 = V_0;
int32_t L_26 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_25, /*hidden argument*/NULL);
TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD(L_24, L_26, /*hidden argument*/NULL);
}
IL_0098:
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_27 = V_0;
TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE(__this, 1, L_27, (uint8_t)0, /*hidden argument*/NULL);
return;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::DispatchIncomingCommands()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_DispatchIncomingCommands_mDACF10B846F4400FD47D4313D388025F843656E9 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_DispatchIncomingCommands_mDACF10B846F4400FD47D4313D388025F843656E9_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * V_0 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_1 = NULL;
bool V_2 = false;
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * V_3 = NULL;
bool V_4 = false;
bool V_5 = false;
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * V_6 = NULL;
bool V_7 = false;
bool V_8 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 4);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B3_0 = 0;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
if ((!(((uint32_t)L_0) == ((uint32_t)3))))
{
goto IL_0020;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_1 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_2 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_timestampOfLastReceive_22();
int32_t L_3 = PeerBase_get_DisconnectTimeout_m52D7CF5CC40D7DE41E8A7511509E158404789142(__this, /*hidden argument*/NULL);
G_B3_0 = ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)L_2))) > ((int32_t)L_3))? 1 : 0);
goto IL_0021;
}
IL_0020:
{
G_B3_0 = 0;
}
IL_0021:
{
V_2 = (bool)G_B3_0;
bool L_4 = V_2;
if (!L_4)
{
goto IL_0047;
}
}
{
PeerBase_EnqueueStatusCallback_m65E16421DDFD3F092A19EFA87BBDD899203718BA(__this, ((int32_t)1040), /*hidden argument*/NULL);
MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * L_5 = (MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC *)il2cpp_codegen_object_new(MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC_il2cpp_TypeInfo_var);
MyAction__ctor_m2881F84D663A6400E5606F80D96255E2CF16E735(L_5, __this, (intptr_t)((intptr_t)GetVirtualMethodInfo(__this, 12)), /*hidden argument*/NULL);
PeerBase_EnqueueActionForDispatch_m63FEA39A8E22952E05481D38672C9780E1853132(__this, L_5, /*hidden argument*/NULL);
}
IL_0047:
{
goto IL_0092;
}
IL_0049:
{
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * L_6 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_ActionQueue_13();
V_3 = L_6;
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * L_7 = V_3;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_7, /*hidden argument*/NULL);
}
IL_0058:
try
{ // begin try (depth: 1)
{
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * L_8 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_ActionQueue_13();
int32_t L_9 = Queue_1_get_Count_m5B41F5950B6BE1310C974FFD3B52B737FC626DE6_inline(L_8, /*hidden argument*/Queue_1_get_Count_m5B41F5950B6BE1310C974FFD3B52B737FC626DE6_RuntimeMethod_var);
V_4 = (bool)((((int32_t)((((int32_t)L_9) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_10 = V_4;
if (!L_10)
{
goto IL_0073;
}
}
IL_0070:
{
IL2CPP_LEAVE(0x97, FINALLY_0082);
}
IL_0073:
{
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * L_11 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_ActionQueue_13();
MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * L_12 = Queue_1_Dequeue_mFD6A8395329CC3B7DC1213203E630542B980B1B3(L_11, /*hidden argument*/Queue_1_Dequeue_mFD6A8395329CC3B7DC1213203E630542B980B1B3_RuntimeMethod_var);
V_0 = L_12;
IL2CPP_LEAVE(0x8A, FINALLY_0082);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0082;
}
FINALLY_0082:
{ // begin finally (depth: 1)
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * L_13 = V_3;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_13, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(130)
} // end finally (depth: 1)
IL2CPP_CLEANUP(130)
{
IL2CPP_JUMP_TBL(0x97, IL_0097)
IL2CPP_JUMP_TBL(0x8A, IL_008a)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_008a:
{
MyAction_tD55003EAF538A956CFED30647786ED4B9C0797FC * L_14 = V_0;
MyAction_Invoke_m24D676BF96D5136153897A729905C57A84D5D139(L_14, /*hidden argument*/NULL);
}
IL_0092:
{
V_5 = (bool)1;
goto IL_0049;
}
IL_0097:
{
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_15 = __this->get_incomingList_48();
V_6 = L_15;
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_16 = V_6;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_16, /*hidden argument*/NULL);
}
IL_00a7:
try
{ // begin try (depth: 1)
{
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_17 = __this->get_incomingList_48();
int32_t L_18 = Queue_1_get_Count_mCEF8E1B3E95B9A385B452A7E2B0DE10B19B9AAC9_inline(L_17, /*hidden argument*/Queue_1_get_Count_mCEF8E1B3E95B9A385B452A7E2B0DE10B19B9AAC9_RuntimeMethod_var);
V_7 = (bool)((((int32_t)((((int32_t)L_18) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_19 = V_7;
if (!L_19)
{
goto IL_00c5;
}
}
IL_00bf:
{
V_8 = (bool)0;
IL2CPP_LEAVE(0xF8, FINALLY_00d4);
}
IL_00c5:
{
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_20 = __this->get_incomingList_48();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_21 = Queue_1_Dequeue_m5A50FE82343DF951867F270B8FEAEF37D5CC193F(L_20, /*hidden argument*/Queue_1_Dequeue_m5A50FE82343DF951867F270B8FEAEF37D5CC193F_RuntimeMethod_var);
V_1 = L_21;
IL2CPP_LEAVE(0xDD, FINALLY_00d4);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00d4;
}
FINALLY_00d4:
{ // begin finally (depth: 1)
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_22 = V_6;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_22, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(212)
} // end finally (depth: 1)
IL2CPP_CLEANUP(212)
{
IL2CPP_JUMP_TBL(0xF8, IL_00f8)
IL2CPP_JUMP_TBL(0xDD, IL_00dd)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00dd:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_23 = V_1;
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_ByteCountCurrentDispatch_9(((int32_t)il2cpp_codegen_add((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_23)->max_length)))), (int32_t)3)));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_24 = V_1;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_25 = (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *)il2cpp_codegen_object_new(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24_il2cpp_TypeInfo_var);
StreamBuffer__ctor_m3BDBD16C2E872DE0910B9DA926381E5609AE70EB(L_25, L_24, /*hidden argument*/NULL);
bool L_26 = VirtFuncInvoker1< bool, StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * >::Invoke(22 /* System.Boolean ExitGames.Client.Photon.PeerBase::DeserializeMessageAndCallback(ExitGames.Client.Photon.StreamBuffer) */, __this, L_25);
V_8 = L_26;
goto IL_00f8;
}
IL_00f8:
{
bool L_27 = V_8;
return L_27;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::SendOutgoingCommands()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_SendOutgoingCommands_mE28FFDBF29B0EC784F4EA9B8890D0571724F19DF (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_SendOutgoingCommands_mE28FFDBF29B0EC784F4EA9B8890D0571724F19DF_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * V_4 = NULL;
int32_t V_5 = 0;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_6 = NULL;
bool V_7 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B7_0 = 0;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
V_0 = (bool)((((int32_t)L_0) == ((int32_t)0))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0016;
}
}
{
V_1 = (bool)0;
goto IL_00f0;
}
IL_0016:
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_2 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
bool L_3 = IPhotonSocket_get_Connected_m2100BD967AB992A5A1F6615ADA113840002D75A8(L_2, /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)L_3) == ((int32_t)0))? 1 : 0);
bool L_4 = V_2;
if (!L_4)
{
goto IL_0030;
}
}
{
V_1 = (bool)0;
goto IL_00f0;
}
IL_0030:
{
int32_t L_5 = PeerBase_get_timeInt_m13898C3E7147372B2237260DE7E57F9675927883(__this, /*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_timeLastSendOutgoing_34(L_5);
uint8_t L_6 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
if ((!(((uint32_t)L_6) == ((uint32_t)3))))
{
goto IL_0060;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_7 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_8 = __this->get_lastPingResult_50();
IL2CPP_RUNTIME_CLASS_INIT(Math_tFB388E53C7FDC6FCCF9A19ABF5A4E521FBD52E19_il2cpp_TypeInfo_var);
int32_t L_9 = il2cpp_codegen_abs(((int32_t)il2cpp_codegen_subtract((int32_t)L_7, (int32_t)L_8)));
int32_t L_10 = PeerBase_get_timePingInterval_m992C0AD6F00F3E6BC0B9EE5619A19AEE0E21EFC8(__this, /*hidden argument*/NULL);
G_B7_0 = ((((int32_t)L_9) > ((int32_t)L_10))? 1 : 0);
goto IL_0061;
}
IL_0060:
{
G_B7_0 = 0;
}
IL_0061:
{
V_3 = (bool)G_B7_0;
bool L_11 = V_3;
if (!L_11)
{
goto IL_006e;
}
}
{
TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205(__this, /*hidden argument*/NULL);
}
IL_006e:
{
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_12 = __this->get_outgoingStream_49();
V_4 = L_12;
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_13 = V_4;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_13, /*hidden argument*/NULL);
}
IL_007e:
try
{ // begin try (depth: 1)
{
V_5 = 0;
goto IL_00b8;
}
IL_0084:
{
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_14 = __this->get_outgoingStream_49();
int32_t L_15 = V_5;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_16 = List_1_get_Item_m67740D7B5EC58BC41345C04A52D4E4A37E1F6301_inline(L_14, L_15, /*hidden argument*/List_1_get_Item_m67740D7B5EC58BC41345C04A52D4E4A37E1F6301_RuntimeMethod_var);
V_6 = L_16;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_17 = V_6;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_18 = StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F(L_17, /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_19 = V_6;
int32_t L_20 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_19, /*hidden argument*/NULL);
TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731(__this, L_18, L_20, /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_21 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_il2cpp_TypeInfo_var);
PeerBase_MessageBufferPoolPut_mE4A6CE10E420E2EFA635BF9CE5A9950BD5DA6618(L_21, /*hidden argument*/NULL);
int32_t L_22 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_22, (int32_t)1));
}
IL_00b8:
{
int32_t L_23 = V_5;
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_24 = __this->get_outgoingStream_49();
int32_t L_25 = List_1_get_Count_mB2F7BB7DCE6EB926F0B14AD31559169B1CEBA448_inline(L_24, /*hidden argument*/List_1_get_Count_mB2F7BB7DCE6EB926F0B14AD31559169B1CEBA448_RuntimeMethod_var);
V_7 = (bool)((((int32_t)L_23) < ((int32_t)L_25))? 1 : 0);
bool L_26 = V_7;
if (L_26)
{
goto IL_0084;
}
}
IL_00cd:
{
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_27 = __this->get_outgoingStream_49();
List_1_Clear_mEF324469854ACF5512EC08B45D4FD2D410967E81(L_27, /*hidden argument*/List_1_Clear_mEF324469854ACF5512EC08B45D4FD2D410967E81_RuntimeMethod_var);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_outgoingCommandsInStream_37(0);
IL2CPP_LEAVE(0xEC, FINALLY_00e3);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00e3;
}
FINALLY_00e3:
{ // begin finally (depth: 1)
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_28 = V_4;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_28, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(227)
} // end finally (depth: 1)
IL2CPP_CLEANUP(227)
{
IL2CPP_JUMP_TBL(0xEC, IL_00ec)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00ec:
{
V_1 = (bool)0;
goto IL_00f0;
}
IL_00f0:
{
bool L_29 = V_1;
return L_29;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::SendAcksOnly()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_SendAcksOnly_mD47D66B0267F3A9428834B0166853E06C1C014CA (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_SendAcksOnly_mD47D66B0267F3A9428834B0166853E06C1C014CA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
bool V_2 = false;
int32_t G_B3_0 = 0;
int32_t G_B8_0 = 0;
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
if (!L_0)
{
goto IL_0019;
}
}
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_1 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
bool L_2 = IPhotonSocket_get_Connected_m2100BD967AB992A5A1F6615ADA113840002D75A8(L_1, /*hidden argument*/NULL);
G_B3_0 = ((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
goto IL_001a;
}
IL_0019:
{
G_B3_0 = 1;
}
IL_001a:
{
V_0 = (bool)G_B3_0;
bool L_3 = V_0;
if (!L_3)
{
goto IL_0023;
}
}
{
V_1 = (bool)0;
goto IL_0054;
}
IL_0023:
{
uint8_t L_4 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
if ((!(((uint32_t)L_4) == ((uint32_t)3))))
{
goto IL_0042;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_5 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_6 = __this->get_lastPingResult_50();
int32_t L_7 = PeerBase_get_timePingInterval_m992C0AD6F00F3E6BC0B9EE5619A19AEE0E21EFC8(__this, /*hidden argument*/NULL);
G_B8_0 = ((((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_5, (int32_t)L_6))) > ((int32_t)L_7))? 1 : 0);
goto IL_0043;
}
IL_0042:
{
G_B8_0 = 0;
}
IL_0043:
{
V_2 = (bool)G_B8_0;
bool L_8 = V_2;
if (!L_8)
{
goto IL_0050;
}
}
{
TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205(__this, /*hidden argument*/NULL);
}
IL_0050:
{
V_1 = (bool)0;
goto IL_0054;
}
IL_0054:
{
bool L_9 = V_1;
return L_9;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::EnqueueOperation(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Byte,ExitGames.Client.Photon.SendOptions,ExitGames.Client.Photon.EgMessageType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_EnqueueOperation_m853FCDC19EC82B4D3FFA7D9276379EB4BD8428A2 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * ___parameters0, uint8_t ___opCode1, SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E ___sendParams2, uint8_t ___messageType3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_EnqueueOperation_m853FCDC19EC82B4D3FFA7D9276379EB4BD8428A2_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
uint8_t V_6 = 0x0;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
V_1 = (bool)((((int32_t)((((int32_t)L_0) == ((int32_t)3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1 = V_1;
if (!L_1)
{
goto IL_0070;
}
}
{
uint8_t L_2 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)((((int32_t)L_2) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_3 = V_2;
if (!L_3)
{
goto IL_0058;
}
}
{
RuntimeObject* L_4 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
String_t* L_5 = Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263((uint8_t*)(&___opCode1), /*hidden argument*/NULL);
uint8_t* L_6 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_address_of_peerConnectionState_7();
RuntimeObject * L_7 = Box(ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D_il2cpp_TypeInfo_var, L_6);
String_t* L_8 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_7);
*L_6 = *(uint8_t*)UnBox(L_7);
String_t* L_9 = String_Concat_mDD2E38332DED3A8C088D38D78A0E0BEB5091DA64(_stringLiteral99EBF176FBFEF63165AAF27BF2838033094DF276, L_5, _stringLiteral1684357471109DBD863D23BEBFFC5992CAB3C811, L_8, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_4, 1, L_9);
}
IL_0058:
{
RuntimeObject* L_10 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker1< int32_t >::Invoke(2 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnStatusChanged(ExitGames.Client.Photon.StatusCode) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_10, ((int32_t)1030));
V_3 = (bool)0;
goto IL_0129;
}
IL_0070:
{
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_11 = ___sendParams2;
uint8_t L_12 = L_11.get_Channel_4();
uint8_t L_13 = PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63(__this, /*hidden argument*/NULL);
V_4 = (bool)((((int32_t)((((int32_t)L_12) < ((int32_t)L_13))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_14 = V_4;
if (!L_14)
{
goto IL_0102;
}
}
{
uint8_t L_15 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_5 = (bool)((((int32_t)((((int32_t)L_15) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_16 = V_5;
if (!L_16)
{
goto IL_00ed;
}
}
{
RuntimeObject* L_17 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_18 = (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)SZArrayNew(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E_il2cpp_TypeInfo_var, (uint32_t)5);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_19 = L_18;
ArrayElementTypeCheck (L_19, _stringLiteralB2F4EA8DB7DB66938DFB994A8250D024883852E8);
(L_19)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (String_t*)_stringLiteralB2F4EA8DB7DB66938DFB994A8250D024883852E8);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_20 = L_19;
uint8_t* L_21 = (&___sendParams2)->get_address_of_Channel_4();
String_t* L_22 = Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263((uint8_t*)L_21, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_20, L_22);
(L_20)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (String_t*)L_22);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_23 = L_20;
ArrayElementTypeCheck (L_23, _stringLiteralB69CAA709FF8200C11B7A5D573F524382BB0A08A);
(L_23)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (String_t*)_stringLiteralB69CAA709FF8200C11B7A5D573F524382BB0A08A);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_24 = L_23;
uint8_t L_25 = PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63(__this, /*hidden argument*/NULL);
V_6 = L_25;
String_t* L_26 = Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263((uint8_t*)(&V_6), /*hidden argument*/NULL);
ArrayElementTypeCheck (L_24, L_26);
(L_24)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (String_t*)L_26);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_27 = L_24;
ArrayElementTypeCheck (L_27, _stringLiteralD41919407CE8F78B6CD89401353E39179FEC9AB2);
(L_27)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(4), (String_t*)_stringLiteralD41919407CE8F78B6CD89401353E39179FEC9AB2);
String_t* L_28 = String_Concat_m232E857CA5107EA6AC52E7DD7018716C021F237B(L_27, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_17, 1, L_28);
}
IL_00ed:
{
RuntimeObject* L_29 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker1< int32_t >::Invoke(2 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnStatusChanged(ExitGames.Client.Photon.StatusCode) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_29, ((int32_t)1030));
V_3 = (bool)0;
goto IL_0129;
}
IL_0102:
{
uint8_t L_30 = ___opCode1;
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * L_31 = ___parameters0;
uint8_t L_32 = ___messageType3;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_33 = ___sendParams2;
bool L_34 = L_33.get_Encrypt_3();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_35 = VirtFuncInvoker4< StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *, uint8_t, Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *, uint8_t, bool >::Invoke(16 /* ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::SerializeOperationToMessage(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.EgMessageType,System.Boolean) */, __this, L_30, L_31, L_32, L_34);
V_0 = L_35;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_36 = ___sendParams2;
int32_t L_37 = L_36.get_DeliveryMode_2();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_38 = V_0;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_39 = ___sendParams2;
uint8_t L_40 = L_39.get_Channel_4();
bool L_41 = TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE(__this, L_37, L_38, L_40, /*hidden argument*/NULL);
V_3 = L_41;
goto IL_0129;
}
IL_0129:
{
bool L_42 = V_3;
return L_42;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::EnqueueMessage(System.Object,ExitGames.Client.Photon.SendOptions)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_EnqueueMessage_m24AEFC73F037B4A4C69875ED2F263A0DF595C228 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, RuntimeObject * ___msg0, SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E ___sendOptions1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_EnqueueMessage_m24AEFC73F037B4A4C69875ED2F263A0DF595C228_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
uint8_t V_0 = 0x0;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_1 = NULL;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
uint8_t V_7 = 0x0;
{
uint8_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_peerConnectionState_7();
V_2 = (bool)((((int32_t)((((int32_t)L_0) == ((int32_t)3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1 = V_2;
if (!L_1)
{
goto IL_0065;
}
}
{
uint8_t L_2 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_3 = (bool)((((int32_t)((((int32_t)L_2) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_3 = V_3;
if (!L_3)
{
goto IL_004c;
}
}
{
RuntimeObject* L_4 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
uint8_t* L_5 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_address_of_peerConnectionState_7();
RuntimeObject * L_6 = Box(ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D_il2cpp_TypeInfo_var, L_5);
String_t* L_7 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_6);
*L_5 = *(uint8_t*)UnBox(L_6);
String_t* L_8 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteralC875C3ABB0F6D92C552DF040E91708BADE820156, L_7, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_4, 1, L_8);
}
IL_004c:
{
RuntimeObject* L_9 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker1< int32_t >::Invoke(2 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnStatusChanged(ExitGames.Client.Photon.StatusCode) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_9, ((int32_t)1030));
V_4 = (bool)0;
goto IL_011c;
}
IL_0065:
{
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_10 = ___sendOptions1;
uint8_t L_11 = L_10.get_Channel_4();
V_0 = L_11;
uint8_t L_12 = V_0;
uint8_t L_13 = PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63(__this, /*hidden argument*/NULL);
V_5 = (bool)((((int32_t)((((int32_t)L_12) < ((int32_t)L_13))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_14 = V_5;
if (!L_14)
{
goto IL_00f5;
}
}
{
uint8_t L_15 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_6 = (bool)((((int32_t)((((int32_t)L_15) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_16 = V_6;
if (!L_16)
{
goto IL_00df;
}
}
{
RuntimeObject* L_17 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_18 = (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)SZArrayNew(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E_il2cpp_TypeInfo_var, (uint32_t)5);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_19 = L_18;
ArrayElementTypeCheck (L_19, _stringLiteralB2F4EA8DB7DB66938DFB994A8250D024883852E8);
(L_19)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (String_t*)_stringLiteralB2F4EA8DB7DB66938DFB994A8250D024883852E8);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_20 = L_19;
String_t* L_21 = Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263((uint8_t*)(&V_0), /*hidden argument*/NULL);
ArrayElementTypeCheck (L_20, L_21);
(L_20)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (String_t*)L_21);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_22 = L_20;
ArrayElementTypeCheck (L_22, _stringLiteralB69CAA709FF8200C11B7A5D573F524382BB0A08A);
(L_22)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (String_t*)_stringLiteralB69CAA709FF8200C11B7A5D573F524382BB0A08A);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_23 = L_22;
uint8_t L_24 = PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63(__this, /*hidden argument*/NULL);
V_7 = L_24;
String_t* L_25 = Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263((uint8_t*)(&V_7), /*hidden argument*/NULL);
ArrayElementTypeCheck (L_23, L_25);
(L_23)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (String_t*)L_25);
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* L_26 = L_23;
ArrayElementTypeCheck (L_26, _stringLiteralD41919407CE8F78B6CD89401353E39179FEC9AB2);
(L_26)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(4), (String_t*)_stringLiteralD41919407CE8F78B6CD89401353E39179FEC9AB2);
String_t* L_27 = String_Concat_m232E857CA5107EA6AC52E7DD7018716C021F237B(L_26, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_17, 1, L_27);
}
IL_00df:
{
RuntimeObject* L_28 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
InterfaceActionInvoker1< int32_t >::Invoke(2 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnStatusChanged(ExitGames.Client.Photon.StatusCode) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_28, ((int32_t)1030));
V_4 = (bool)0;
goto IL_011c;
}
IL_00f5:
{
RuntimeObject * L_29 = ___msg0;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_30 = ___sendOptions1;
bool L_31 = L_30.get_Encrypt_3();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_32 = __this->get_messageHeader_54();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_33 = PeerBase_SerializeMessageToMessage_m95614478AF9C86205FB5CA05677802E36B9F1A39(__this, L_29, L_31, L_32, (bool)1, /*hidden argument*/NULL);
V_1 = L_33;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_34 = ___sendOptions1;
int32_t L_35 = L_34.get_DeliveryMode_2();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_36 = V_1;
uint8_t L_37 = V_0;
bool L_38 = TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE(__this, L_35, L_36, L_37, /*hidden argument*/NULL);
V_4 = L_38;
goto IL_011c;
}
IL_011c:
{
bool L_39 = V_4;
return L_39;
}
}
// ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.TPeer::SerializeOperationToMessage(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.EgMessageType,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * TPeer_SerializeOperationToMessage_mA5E6E098B9682A9FB3AC6621B962775C9796CC90 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, uint8_t ___opCode0, Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * ___parameters1, uint8_t ___messageType2, bool ___encrypt3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_SerializeOperationToMessage_mA5E6E098B9682A9FB3AC6621B962775C9796CC90_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_1 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_2 = NULL;
bool V_3 = false;
bool V_4 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_5 = NULL;
bool V_6 = false;
bool V_7 = false;
bool V_8 = false;
int32_t V_9 = 0;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_10 = NULL;
int32_t G_B3_0 = 0;
int32_t G_B13_0 = 0;
int32_t G_B15_0 = 0;
{
bool L_0 = ___encrypt3;
if (!L_0)
{
goto IL_0013;
}
}
{
uint8_t L_1 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_usedTransportProtocol_3();
G_B3_0 = ((((int32_t)((((int32_t)L_1) == ((int32_t)5))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0014;
}
IL_0013:
{
G_B3_0 = 0;
}
IL_0014:
{
V_0 = (bool)G_B3_0;
IL2CPP_RUNTIME_CLASS_INIT(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_il2cpp_TypeInfo_var);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_2 = PeerBase_MessageBufferPoolGet_m06DF85A20CD278D7BF90AF33590DCEA7FCAC3F1D(/*hidden argument*/NULL);
V_1 = L_2;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_3 = V_1;
StreamBuffer_SetLength_m12A6391CD4BD83881DFF0EE18D08964A015539B5(L_3, (((int64_t)((int64_t)0))), /*hidden argument*/NULL);
bool L_4 = V_0;
V_3 = (bool)((((int32_t)L_4) == ((int32_t)0))? 1 : 0);
bool L_5 = V_3;
if (!L_5)
{
goto IL_0044;
}
}
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_6 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = __this->get_messageHeader_54();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_8 = __this->get_messageHeader_54();
StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C(L_6, L_7, 0, (((int32_t)((int32_t)(((RuntimeArray*)L_8)->max_length)))), /*hidden argument*/NULL);
}
IL_0044:
{
IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * L_9 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_SerializationProtocol_1();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_10 = V_1;
uint8_t L_11 = ___opCode0;
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * L_12 = ___parameters1;
VirtActionInvoker4< StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *, uint8_t, Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *, bool >::Invoke(10 /* System.Void ExitGames.Client.Photon.IProtocol::SerializeOperationRequest(ExitGames.Client.Photon.StreamBuffer,System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Boolean) */, L_9, L_10, L_11, L_12, (bool)0);
bool L_13 = V_0;
V_4 = L_13;
bool L_14 = V_4;
if (!L_14)
{
goto IL_00a4;
}
}
{
RuntimeObject* L_15 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_CryptoProvider_39();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_16 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_17 = StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F(L_16, /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_18 = V_1;
int32_t L_19 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_18, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_20 = InterfaceFuncInvoker3< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, int32_t, int32_t >::Invoke(2 /* System.Byte[] Photon.SocketServer.Security.ICryptoProvider::Encrypt(System.Byte[],System.Int32,System.Int32) */, ICryptoProvider_tAA00C72BE565B6F16F48A5992A2A825791B5E569_il2cpp_TypeInfo_var, L_15, L_17, 0, L_19);
V_5 = L_20;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_21 = V_1;
StreamBuffer_SetLength_m12A6391CD4BD83881DFF0EE18D08964A015539B5(L_21, (((int64_t)((int64_t)0))), /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_22 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_23 = __this->get_messageHeader_54();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_24 = __this->get_messageHeader_54();
StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C(L_22, L_23, 0, (((int32_t)((int32_t)(((RuntimeArray*)L_24)->max_length)))), /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_25 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_26 = V_5;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_27 = V_5;
StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C(L_25, L_26, 0, (((int32_t)((int32_t)(((RuntimeArray*)L_27)->max_length)))), /*hidden argument*/NULL);
}
IL_00a4:
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_28 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_29 = StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F(L_28, /*hidden argument*/NULL);
V_2 = L_29;
uint8_t L_30 = ___messageType2;
V_6 = (bool)((((int32_t)((((int32_t)L_30) == ((int32_t)2))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_31 = V_6;
if (!L_31)
{
goto IL_00c7;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_32 = V_2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_33 = __this->get_messageHeader_54();
uint8_t L_34 = ___messageType2;
(L_32)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_33)->max_length)))), (int32_t)1))), (uint8_t)L_34);
}
IL_00c7:
{
bool L_35 = V_0;
if (L_35)
{
goto IL_00de;
}
}
{
bool L_36 = ___encrypt3;
if (!L_36)
{
goto IL_00db;
}
}
{
PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * L_37 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_photonPeer_0();
bool L_38 = L_37->get_EnableEncryptedFlag_29();
G_B13_0 = ((int32_t)(L_38));
goto IL_00dc;
}
IL_00db:
{
G_B13_0 = 0;
}
IL_00dc:
{
G_B15_0 = G_B13_0;
goto IL_00df;
}
IL_00de:
{
G_B15_0 = 1;
}
IL_00df:
{
V_7 = (bool)G_B15_0;
bool L_39 = V_7;
if (!L_39)
{
goto IL_0106;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_40 = V_2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_41 = __this->get_messageHeader_54();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_42 = V_2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_43 = __this->get_messageHeader_54();
int32_t L_44 = ((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_43)->max_length)))), (int32_t)1));
uint8_t L_45 = (L_42)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_44));
(L_40)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_41)->max_length)))), (int32_t)1))), (uint8_t)(((int32_t)((uint8_t)((int32_t)((int32_t)L_45|(int32_t)((int32_t)128)))))));
}
IL_0106:
{
bool L_46 = __this->get_DoFraming_55();
V_8 = L_46;
bool L_47 = V_8;
if (!L_47)
{
goto IL_0126;
}
}
{
V_9 = 1;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_48 = V_1;
int32_t L_49 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_48, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_50 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(Protocol_t6C20E98C822F066C9F59D476704EA7C603A37DC2_il2cpp_TypeInfo_var);
Protocol_Serialize_m7C3C2A61BAEEC7F272F78C7F789A48E7E4E036E6(L_49, L_50, (int32_t*)(&V_9), /*hidden argument*/NULL);
}
IL_0126:
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_51 = V_1;
V_10 = L_51;
goto IL_012b;
}
IL_012b:
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_52 = V_10;
return L_52;
}
}
// System.Boolean ExitGames.Client.Photon.TPeer::EnqueueMessageAsPayload(ExitGames.Client.Photon.DeliveryMode,ExitGames.Client.Photon.StreamBuffer,System.Byte)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, int32_t ___deliveryMode0, StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * ___opMessage1, uint8_t ___channelId2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_4 = NULL;
int32_t V_5 = 0;
int32_t V_6 = 0;
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * V_7 = NULL;
bool V_8 = false;
int32_t V_9 = 0;
int32_t V_10 = 0;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_0 = ___opMessage1;
V_1 = (bool)((((RuntimeObject*)(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_1 = V_1;
if (!L_1)
{
goto IL_0011;
}
}
{
V_2 = (bool)0;
goto IL_0121;
}
IL_0011:
{
bool L_2 = __this->get_DoFraming_55();
V_3 = L_2;
bool L_3 = V_3;
if (!L_3)
{
goto IL_0078;
}
}
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_4 = ___opMessage1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F(L_4, /*hidden argument*/NULL);
V_4 = L_5;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = V_4;
uint8_t L_7 = ___channelId2;
(L_6)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(5), (uint8_t)L_7);
int32_t L_8 = ___deliveryMode0;
V_6 = L_8;
int32_t L_9 = V_6;
V_5 = L_9;
int32_t L_10 = V_5;
switch (L_10)
{
case 0:
{
goto IL_0049;
}
case 1:
{
goto IL_0050;
}
case 2:
{
goto IL_0057;
}
case 3:
{
goto IL_005e;
}
}
}
{
goto IL_0065;
}
IL_0049:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_11 = V_4;
(L_11)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(6), (uint8_t)0);
goto IL_0077;
}
IL_0050:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_12 = V_4;
(L_12)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(6), (uint8_t)1);
goto IL_0077;
}
IL_0057:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_13 = V_4;
(L_13)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(6), (uint8_t)2);
goto IL_0077;
}
IL_005e:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_14 = V_4;
(L_14)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(6), (uint8_t)3);
goto IL_0077;
}
IL_0065:
{
int32_t L_15 = ___deliveryMode0;
int32_t L_16 = L_15;
RuntimeObject * L_17 = Box(DeliveryMode_t1B8942F502723BBE123C47493B8CCB40DA9FD6A5_il2cpp_TypeInfo_var, &L_16);
ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA * L_18 = (ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m755B01B4B4595B447596E3281F22FD7CE6DAE378(L_18, _stringLiteral0DADC09E7EABB07021068B23CC5B5BE6EC31FD20, L_17, (String_t*)NULL, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_18, NULL, TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE_RuntimeMethod_var);
}
IL_0077:
{
}
IL_0078:
{
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_19 = __this->get_outgoingStream_49();
V_7 = L_19;
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_20 = V_7;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_20, /*hidden argument*/NULL);
}
IL_0088:
try
{ // begin try (depth: 1)
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_21 = __this->get_outgoingStream_49();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_22 = ___opMessage1;
List_1_Add_m7B53596524CC980DDAE06729469D15F51E21074E(L_21, L_22, /*hidden argument*/List_1_Add_m7B53596524CC980DDAE06729469D15F51E21074E_RuntimeMethod_var);
int32_t L_23 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_outgoingCommandsInStream_37();
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_outgoingCommandsInStream_37(((int32_t)il2cpp_codegen_add((int32_t)L_23, (int32_t)1)));
IL2CPP_LEAVE(0xB0, FINALLY_00a7);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00a7;
}
FINALLY_00a7:
{ // begin finally (depth: 1)
List_1_t1C4BDE88D406FB9B6DDD83E492BC4AB22F73AC8B * L_24 = V_7;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_24, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(167)
} // end finally (depth: 1)
IL2CPP_CLEANUP(167)
{
IL2CPP_JUMP_TBL(0xB0, IL_00b0)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00b0:
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_25 = ___opMessage1;
int32_t L_26 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_25, /*hidden argument*/NULL);
V_0 = L_26;
int32_t L_27 = V_0;
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_ByteCountLastOperation_8(L_27);
bool L_28 = PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B(__this, /*hidden argument*/NULL);
V_8 = L_28;
bool L_29 = V_8;
if (!L_29)
{
goto IL_011d;
}
}
{
int32_t L_30 = ___deliveryMode0;
V_10 = L_30;
int32_t L_31 = V_10;
V_9 = L_31;
int32_t L_32 = V_9;
if (!L_32)
{
goto IL_00df;
}
}
{
goto IL_00d8;
}
IL_00d8:
{
int32_t L_33 = V_9;
if ((((int32_t)L_33) == ((int32_t)1)))
{
goto IL_00ee;
}
}
{
goto IL_00fd;
}
IL_00df:
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_34 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
int32_t L_35 = V_0;
TrafficStats_CountUnreliableOpCommand_m367D8B4DE36D0F23894286A7F06F97A637E08C5E(L_34, L_35, /*hidden argument*/NULL);
goto IL_010f;
}
IL_00ee:
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_36 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
int32_t L_37 = V_0;
TrafficStats_CountReliableOpCommand_m71BF86C54D4ED1E2F9C877F32B589CE96A90DB59(L_36, L_37, /*hidden argument*/NULL);
goto IL_010f;
}
IL_00fd:
{
int32_t L_38 = ___deliveryMode0;
int32_t L_39 = L_38;
RuntimeObject * L_40 = Box(DeliveryMode_t1B8942F502723BBE123C47493B8CCB40DA9FD6A5_il2cpp_TypeInfo_var, &L_39);
ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA * L_41 = (ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA *)il2cpp_codegen_object_new(ArgumentOutOfRangeException_t94D19DF918A54511AEDF4784C9A08741BAD1DEDA_il2cpp_TypeInfo_var);
ArgumentOutOfRangeException__ctor_m755B01B4B4595B447596E3281F22FD7CE6DAE378(L_41, _stringLiteralB0C54D8FCDA98B641A1A345AC980177945FDCC7C, L_40, (String_t*)NULL, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_41, NULL, TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE_RuntimeMethod_var);
}
IL_010f:
{
TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * L_42 = PeerBase_get_TrafficStatsGameLevel_mA5990EFE2FEF80C8BC5EA77B02FD91FF6AA9B6BD(__this, /*hidden argument*/NULL);
int32_t L_43 = V_0;
TrafficStatsGameLevel_CountOperation_m3A0547B6073AD68C02D89F04BDF52F284E77D46F(L_42, L_43, /*hidden argument*/NULL);
}
IL_011d:
{
V_2 = (bool)1;
goto IL_0121;
}
IL_0121:
{
bool L_44 = V_2;
return L_44;
}
}
// System.Void ExitGames.Client.Photon.TPeer::SendPing()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E V_2;
memset((&V_2), 0, sizeof(V_2));
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * V_3 = NULL;
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E V_4;
memset((&V_4), 0, sizeof(V_4));
bool V_5 = false;
int32_t V_6 = 0;
bool V_7 = false;
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_0 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
V_0 = L_0;
int32_t L_1 = V_0;
__this->set_lastPingResult_50(L_1);
bool L_2 = __this->get_DoFraming_55();
V_1 = (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
bool L_3 = V_1;
if (!L_3)
{
goto IL_0092;
}
}
{
il2cpp_codegen_initobj((&V_4), sizeof(SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E ));
(&V_4)->set_DeliveryMode_2(1);
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_4 = V_4;
V_2 = L_4;
IL2CPP_RUNTIME_CLASS_INIT(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_il2cpp_TypeInfo_var);
uint8_t L_5 = ((PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields*)il2cpp_codegen_static_fields_for(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_il2cpp_TypeInfo_var))->get_Ping_4();
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * L_6 = (Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *)il2cpp_codegen_object_new(Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D_il2cpp_TypeInfo_var);
Dictionary_2__ctor_mA38BDB6209548343F5C21CA8CCEF000923157407(L_6, /*hidden argument*/Dictionary_2__ctor_mA38BDB6209548343F5C21CA8CCEF000923157407_RuntimeMethod_var);
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * L_7 = L_6;
int32_t L_8 = V_0;
int32_t L_9 = L_8;
RuntimeObject * L_10 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_9);
Dictionary_2_Add_m167D68C78B2820B929131E05BB2A242838DCC833(L_7, (uint8_t)1, L_10, /*hidden argument*/Dictionary_2_Add_m167D68C78B2820B929131E05BB2A242838DCC833_RuntimeMethod_var);
SendOptions_t832E262E8A0037CA051A3B97AE4FF64365CAB98E L_11 = V_2;
bool L_12 = L_11.get_Encrypt_3();
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_13 = VirtFuncInvoker4< StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *, uint8_t, Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D *, uint8_t, bool >::Invoke(16 /* ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::SerializeOperationToMessage(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.EgMessageType,System.Boolean) */, __this, L_5, L_7, 6, L_12);
V_3 = L_13;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_14 = V_3;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_15 = StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F(L_14, /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_16 = V_3;
int32_t L_17 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_16, /*hidden argument*/NULL);
TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731(__this, L_15, L_17, /*hidden argument*/NULL);
bool L_18 = PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B(__this, /*hidden argument*/NULL);
V_5 = L_18;
bool L_19 = V_5;
if (!L_19)
{
goto IL_0088;
}
}
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_20 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_21 = V_3;
int32_t L_22 = StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2(L_21, /*hidden argument*/NULL);
TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD(L_20, L_22, /*hidden argument*/NULL);
}
IL_0088:
{
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_23 = V_3;
IL2CPP_RUNTIME_CLASS_INIT(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_il2cpp_TypeInfo_var);
PeerBase_MessageBufferPoolPut_mE4A6CE10E420E2EFA635BF9CE5A9950BD5DA6618(L_23, /*hidden argument*/NULL);
goto IL_00dd;
}
IL_0092:
{
V_6 = 1;
int32_t L_24 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_25 = __this->get_pingRequest_51();
IL2CPP_RUNTIME_CLASS_INIT(Protocol_t6C20E98C822F066C9F59D476704EA7C603A37DC2_il2cpp_TypeInfo_var);
Protocol_Serialize_m7C3C2A61BAEEC7F272F78C7F789A48E7E4E036E6(L_24, L_25, (int32_t*)(&V_6), /*hidden argument*/NULL);
bool L_26 = PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B(__this, /*hidden argument*/NULL);
V_7 = L_26;
bool L_27 = V_7;
if (!L_27)
{
goto IL_00c7;
}
}
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_28 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_29 = __this->get_pingRequest_51();
TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD(L_28, (((int32_t)((int32_t)(((RuntimeArray*)L_29)->max_length)))), /*hidden argument*/NULL);
}
IL_00c7:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_30 = __this->get_pingRequest_51();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_31 = __this->get_pingRequest_51();
TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731(__this, L_30, (((int32_t)((int32_t)(((RuntimeArray*)L_31)->max_length)))), /*hidden argument*/NULL);
}
IL_00dd:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::SendData(System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___length1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t V_1 = 0;
bool V_2 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_3 = NULL;
Exception_t * V_4 = NULL;
bool V_5 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
}
IL_0001:
try
{ // begin try (depth: 1)
{
int64_t L_0 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_bytesOut_24();
int32_t L_1 = ___length1;
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_bytesOut_24(((int64_t)il2cpp_codegen_add((int64_t)L_0, (int64_t)(((int64_t)((int64_t)L_1))))));
bool L_2 = PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B(__this, /*hidden argument*/NULL);
V_0 = L_2;
bool L_3 = V_0;
if (!L_3)
{
goto IL_004c;
}
}
IL_001b:
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_4 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_5 = L_4;
int32_t L_6 = TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline(L_5, /*hidden argument*/NULL);
V_1 = L_6;
int32_t L_7 = V_1;
TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0_inline(L_5, ((int32_t)il2cpp_codegen_add((int32_t)L_7, (int32_t)1)), /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_8 = PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5(__this, /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_9 = L_8;
int32_t L_10 = TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD_inline(L_9, /*hidden argument*/NULL);
int32_t L_11 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_outgoingCommandsInStream_37();
TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9_inline(L_9, ((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)L_11)), /*hidden argument*/NULL);
}
IL_004c:
{
NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * L_12 = PeerBase_get_NetworkSimulationSettings_mBF3D4BC27DE78A657A6D93E08ACCA656BEB34B39(__this, /*hidden argument*/NULL);
bool L_13 = NetworkSimulationSet_get_IsSimulationEnabled_mDD9673C5601FB3064E12D0A6ED8E7F55CC5CC2D1(L_12, /*hidden argument*/NULL);
V_2 = L_13;
bool L_14 = V_2;
if (!L_14)
{
goto IL_0079;
}
}
IL_005b:
{
int32_t L_15 = ___length1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_16 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_15);
V_3 = L_16;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_17 = ___data0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_18 = V_3;
int32_t L_19 = ___length1;
Buffer_BlockCopy_m1F882D595976063718AF6E405664FC761924D353((RuntimeArray *)(RuntimeArray *)L_17, 0, (RuntimeArray *)(RuntimeArray *)L_18, 0, L_19, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_20 = V_3;
PeerBase_SendNetworkSimulated_m32C7A78D580D063BE86713AB7D7F61C23E122123(__this, L_20, /*hidden argument*/NULL);
goto IL_0089;
}
IL_0079:
{
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * L_21 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_PhotonSocket_4();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_22 = ___data0;
int32_t L_23 = ___length1;
VirtFuncInvoker2< int32_t, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, int32_t >::Invoke(6 /* ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.IPhotonSocket::Send(System.Byte[],System.Int32) */, L_21, L_22, L_23);
}
IL_0089:
{
goto IL_00c2;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_008c;
throw e;
}
CATCH_008c:
{ // begin catch(System.Exception)
{
V_4 = ((Exception_t *)__exception_local);
uint8_t L_24 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_5 = (bool)((((int32_t)((((int32_t)L_24) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_25 = V_5;
if (!L_25)
{
goto IL_00b7;
}
}
IL_00a1:
{
RuntimeObject* L_26 = PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990(__this, /*hidden argument*/NULL);
Exception_t * L_27 = V_4;
String_t* L_28 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_27);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_26, 1, L_28);
}
IL_00b7:
{
Exception_t * L_29 = V_4;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385(L_29, /*hidden argument*/NULL);
goto IL_00c2;
}
} // end catch (depth: 1)
IL_00c2:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::ReceiveIncomingCommands(System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_ReceiveIncomingCommands_mA0C4B969010D1C9614D1188BA8619169DA5A8425 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___inbuff0, int32_t ___dataLength1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_ReceiveIncomingCommands_mA0C4B969010D1C9614D1188BA8619169DA5A8425_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
bool V_2 = false;
int32_t V_3 = 0;
bool V_4 = false;
uint8_t V_5 = 0x0;
uint8_t V_6 = 0x0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_7 = NULL;
bool V_8 = false;
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * V_9 = NULL;
bool V_10 = false;
bool V_11 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B10_0 = 0;
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___inbuff0;
V_0 = (bool)((((RuntimeObject*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_002e;
}
}
{
uint8_t L_2 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_1 = (bool)((((int32_t)((((int32_t)L_2) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_3 = V_1;
if (!L_3)
{
goto IL_0029;
}
}
{
PeerBase_EnqueueDebugReturn_mC20714873CBA559EEE723AB0989EF4AE9660D117(__this, 1, _stringLiteralD6A27955A5F3ECD495B10296A57CD35F1D0FEBC1, /*hidden argument*/NULL);
}
IL_0029:
{
goto IL_016a;
}
IL_002e:
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_4 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_timestampOfLastReceive_22(L_4);
int64_t L_5 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_bytesIn_25();
int32_t L_6 = ___dataLength1;
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_bytesIn_25(((int64_t)il2cpp_codegen_add((int64_t)L_5, (int64_t)(((int64_t)((int64_t)((int32_t)il2cpp_codegen_add((int32_t)L_6, (int32_t)7))))))));
bool L_7 = PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B(__this, /*hidden argument*/NULL);
V_2 = L_7;
bool L_8 = V_2;
if (!L_8)
{
goto IL_0082;
}
}
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_9 = PeerBase_get_TrafficStatsIncoming_m8373A3797B073192282A57B1588732DF84F8249D(__this, /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_10 = L_9;
int32_t L_11 = TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline(L_10, /*hidden argument*/NULL);
V_3 = L_11;
int32_t L_12 = V_3;
TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0_inline(L_10, ((int32_t)il2cpp_codegen_add((int32_t)L_12, (int32_t)1)), /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_13 = PeerBase_get_TrafficStatsIncoming_m8373A3797B073192282A57B1588732DF84F8249D(__this, /*hidden argument*/NULL);
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_14 = L_13;
int32_t L_15 = TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD_inline(L_14, /*hidden argument*/NULL);
V_3 = L_15;
int32_t L_16 = V_3;
TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9_inline(L_14, ((int32_t)il2cpp_codegen_add((int32_t)L_16, (int32_t)1)), /*hidden argument*/NULL);
}
IL_0082:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_17 = ___inbuff0;
int32_t L_18 = 0;
uint8_t L_19 = (L_17)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18));
V_4 = (bool)((((int32_t)L_19) == ((int32_t)((int32_t)243)))? 1 : 0);
bool L_20 = V_4;
if (!L_20)
{
goto IL_010d;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_21 = ___inbuff0;
int32_t L_22 = 1;
uint8_t L_23 = (L_21)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_22));
V_5 = (uint8_t)(((int32_t)((uint8_t)((int32_t)((int32_t)L_23&(int32_t)((int32_t)127))))));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_24 = ___inbuff0;
int32_t L_25 = 2;
uint8_t L_26 = (L_24)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_25));
V_6 = L_26;
uint8_t L_27 = V_5;
if ((!(((uint32_t)L_27) == ((uint32_t)7))))
{
goto IL_00b1;
}
}
{
uint8_t L_28 = V_6;
IL2CPP_RUNTIME_CLASS_INIT(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_il2cpp_TypeInfo_var);
uint8_t L_29 = ((PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_StaticFields*)il2cpp_codegen_static_fields_for(PhotonCodes_t1B1ED597052267A59B96C7BE1A96A3959FB11EC7_il2cpp_TypeInfo_var))->get_Ping_4();
G_B10_0 = ((((int32_t)L_28) == ((int32_t)L_29))? 1 : 0);
goto IL_00b2;
}
IL_00b1:
{
G_B10_0 = 0;
}
IL_00b2:
{
V_8 = (bool)G_B10_0;
bool L_30 = V_8;
if (!L_30)
{
goto IL_00cb;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_31 = ___inbuff0;
StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * L_32 = (StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 *)il2cpp_codegen_object_new(StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24_il2cpp_TypeInfo_var);
StreamBuffer__ctor_m3BDBD16C2E872DE0910B9DA926381E5609AE70EB(L_32, L_31, /*hidden argument*/NULL);
VirtFuncInvoker1< bool, StreamBuffer_t07D4AAF1E5B8248890A7F20DFD46F57F8AA1DC24 * >::Invoke(22 /* System.Boolean ExitGames.Client.Photon.PeerBase::DeserializeMessageAndCallback(ExitGames.Client.Photon.StreamBuffer) */, __this, L_32);
goto IL_016a;
}
IL_00cb:
{
int32_t L_33 = ___dataLength1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_34 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_33);
V_7 = L_34;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_35 = ___inbuff0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_36 = V_7;
int32_t L_37 = ___dataLength1;
Buffer_BlockCopy_m1F882D595976063718AF6E405664FC761924D353((RuntimeArray *)(RuntimeArray *)L_35, 0, (RuntimeArray *)(RuntimeArray *)L_36, 0, L_37, /*hidden argument*/NULL);
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_38 = __this->get_incomingList_48();
V_9 = L_38;
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_39 = V_9;
Monitor_Enter_m903755FCC479745619842CCDBF5E6355319FA102(L_39, /*hidden argument*/NULL);
}
IL_00ef:
try
{ // begin try (depth: 1)
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_40 = __this->get_incomingList_48();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_41 = V_7;
Queue_1_Enqueue_m1F4E57E2CD8365D73FED4360D94AB59E451CE8FA(L_40, L_41, /*hidden argument*/Queue_1_Enqueue_m1F4E57E2CD8365D73FED4360D94AB59E451CE8FA_RuntimeMethod_var);
IL2CPP_LEAVE(0x10A, FINALLY_0101);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0101;
}
FINALLY_0101:
{ // begin finally (depth: 1)
Queue_1_t623E595D5142BF9CB1808ED4238AD608809FA519 * L_42 = V_9;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_42, /*hidden argument*/NULL);
IL2CPP_END_FINALLY(257)
} // end finally (depth: 1)
IL2CPP_CLEANUP(257)
{
IL2CPP_JUMP_TBL(0x10A, IL_010a)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_010a:
{
goto IL_016a;
}
IL_010d:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_43 = ___inbuff0;
int32_t L_44 = 0;
uint8_t L_45 = (L_43)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_44));
V_10 = (bool)((((int32_t)L_45) == ((int32_t)((int32_t)240)))? 1 : 0);
bool L_46 = V_10;
if (!L_46)
{
goto IL_0138;
}
}
{
TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * L_47 = PeerBase_get_TrafficStatsIncoming_m8373A3797B073192282A57B1588732DF84F8249D(__this, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_48 = ___inbuff0;
TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD(L_47, (((int32_t)((int32_t)(((RuntimeArray*)L_48)->max_length)))), /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_49 = ___inbuff0;
TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84(__this, L_49, /*hidden argument*/NULL);
goto IL_016a;
}
IL_0138:
{
uint8_t L_50 = PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9(__this, /*hidden argument*/NULL);
V_11 = (bool)((((int32_t)((((int32_t)L_50) < ((int32_t)1))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_51 = V_11;
if (!L_51)
{
goto IL_016a;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_52 = ___inbuff0;
String_t* L_53 = Byte_ToString_m461A53F95948CC32D6646704F994C1F38DD8B263((uint8_t*)((L_52)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(0))), /*hidden argument*/NULL);
String_t* L_54 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteral618DDC173BA3EDAA2FF921A857B096E4B1083ADF, L_53, /*hidden argument*/NULL);
PeerBase_EnqueueDebugReturn_mC20714873CBA559EEE723AB0989EF4AE9660D117(__this, 1, L_54, /*hidden argument*/NULL);
}
IL_016a:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::ReadPingResult(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84 (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___inbuff0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
bool V_3 = false;
bool V_4 = false;
{
V_0 = 0;
V_1 = 0;
V_2 = 1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___inbuff0;
IL2CPP_RUNTIME_CLASS_INIT(Protocol_t6C20E98C822F066C9F59D476704EA7C603A37DC2_il2cpp_TypeInfo_var);
Protocol_Deserialize_m4BF6131A8C009C7785B333FAC6B9BCA4F5EBF284((int32_t*)(&V_0), L_0, (int32_t*)(&V_2), /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = ___inbuff0;
Protocol_Deserialize_m4BF6131A8C009C7785B333FAC6B9BCA4F5EBF284((int32_t*)(&V_1), L_1, (int32_t*)(&V_2), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_2 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_3 = V_1;
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_lastRoundTripTime_19(((int32_t)il2cpp_codegen_subtract((int32_t)L_2, (int32_t)L_3)));
bool L_4 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_serverTimeOffsetIsAvailable_16();
V_3 = (bool)((((int32_t)L_4) == ((int32_t)0))? 1 : 0);
bool L_5 = V_3;
if (!L_5)
{
goto IL_0045;
}
}
{
int32_t L_6 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_lastRoundTripTime_19();
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_roundTripTime_17(L_6);
}
IL_0045:
{
int32_t L_7 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_lastRoundTripTime_19();
PeerBase_UpdateRoundTripTimeAndVariance_mDBDA944DE4B3798D2B570B5780A60520F1BBF5F7(__this, L_7, /*hidden argument*/NULL);
bool L_8 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_serverTimeOffsetIsAvailable_16();
V_4 = (bool)((((int32_t)L_8) == ((int32_t)0))? 1 : 0);
bool L_9 = V_4;
if (!L_9)
{
goto IL_0080;
}
}
{
int32_t L_10 = V_0;
int32_t L_11 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_lastRoundTripTime_19();
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_12 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_serverTimeOffset_15(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)((int32_t)((int32_t)L_11>>(int32_t)1)))), (int32_t)L_12)));
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_serverTimeOffsetIsAvailable_16((bool)1);
}
IL_0080:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::ReadPingResult(ExitGames.Client.Photon.OperationResponse)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer_ReadPingResult_m2459F445356386582CE47CEB1F7521D9F1E3CC3F (TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074 * __this, OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9 * ___operationResponse0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer_ReadPingResult_m2459F445356386582CE47CEB1F7521D9F1E3CC3F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
bool V_3 = false;
{
OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9 * L_0 = ___operationResponse0;
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * L_1 = L_0->get_Parameters_3();
RuntimeObject * L_2 = Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3(L_1, (uint8_t)2, /*hidden argument*/Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3_RuntimeMethod_var);
V_0 = ((*(int32_t*)((int32_t*)UnBox(L_2, Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var))));
OperationResponse_t4B2480431CFA3E8B1A42F7D2968752FBA5AFF3C9 * L_3 = ___operationResponse0;
Dictionary_2_t9B5BD8E7A4C7EADD189175CF887E6C5F917E965D * L_4 = L_3->get_Parameters_3();
RuntimeObject * L_5 = Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3(L_4, (uint8_t)1, /*hidden argument*/Dictionary_2_get_Item_m80F5E81639EAF030176B6213D555F2037CF81FB3_RuntimeMethod_var);
V_1 = ((*(int32_t*)((int32_t*)UnBox(L_5, Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var))));
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_6 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_7 = V_1;
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_lastRoundTripTime_19(((int32_t)il2cpp_codegen_subtract((int32_t)L_6, (int32_t)L_7)));
bool L_8 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_serverTimeOffsetIsAvailable_16();
V_2 = (bool)((((int32_t)L_8) == ((int32_t)0))? 1 : 0);
bool L_9 = V_2;
if (!L_9)
{
goto IL_004d;
}
}
{
int32_t L_10 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_lastRoundTripTime_19();
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_roundTripTime_17(L_10);
}
IL_004d:
{
int32_t L_11 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_lastRoundTripTime_19();
PeerBase_UpdateRoundTripTimeAndVariance_mDBDA944DE4B3798D2B570B5780A60520F1BBF5F7(__this, L_11, /*hidden argument*/NULL);
bool L_12 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_serverTimeOffsetIsAvailable_16();
V_3 = (bool)((((int32_t)L_12) == ((int32_t)0))? 1 : 0);
bool L_13 = V_3;
if (!L_13)
{
goto IL_0086;
}
}
{
int32_t L_14 = V_0;
int32_t L_15 = ((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->get_lastRoundTripTime_19();
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_16 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_serverTimeOffset_15(((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)((int32_t)((int32_t)L_15>>(int32_t)1)))), (int32_t)L_16)));
((PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 *)__this)->set_serverTimeOffsetIsAvailable_16((bool)1);
}
IL_0086:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TPeer::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TPeer__cctor_m34F83152414A1B570BB45BDA49EBA013C5F32332 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TPeer__cctor_m34F83152414A1B570BB45BDA49EBA013C5F32332_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)9));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = L_0;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____D0707B65D15E1083DE1735661550D02D20F47B8BC1C144D4F7EFFB60924A7CFC_6_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL);
((TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields*)il2cpp_codegen_static_fields_for(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var))->set_tcpFramedMessageHead_52(L_1);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)2);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = L_3;
(L_4)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (uint8_t)((int32_t)243));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = L_4;
(L_5)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (uint8_t)2);
((TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_StaticFields*)il2cpp_codegen_static_fields_for(TPeer_t269DD59ED7CD17E3B067C928274F46FFBE7AE074_il2cpp_TypeInfo_var))->set_tcpMsgHead_53(L_5);
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.Int32 ExitGames.Client.Photon.TrafficStats::get_PackageHeaderSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_PackageHeaderSize_m6DDAC0D97C22D96113F3CC03C17EB31E5FEF4786 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CPackageHeaderSizeU3Ek__BackingField_0();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_PackageHeaderSize(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_PackageHeaderSize_mAE818A528A1C5A59EF26EA6389AED7B54B1096ED (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CPackageHeaderSizeU3Ek__BackingField_0(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ReliableCommandCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CReliableCommandCountU3Ek__BackingField_1();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_ReliableCommandCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_ReliableCommandCount_m8D36D1B6FC616B6CB3BE2ECD1B8EC7468E15E46E (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CReliableCommandCountU3Ek__BackingField_1(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_UnreliableCommandCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CUnreliableCommandCountU3Ek__BackingField_2();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_UnreliableCommandCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_UnreliableCommandCount_m24194C72567D19FE10C5205CDF2745884F95BE89 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CUnreliableCommandCountU3Ek__BackingField_2(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_FragmentCommandCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CFragmentCommandCountU3Ek__BackingField_3();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_FragmentCommandCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_FragmentCommandCount_m7575514F5532ABA49440639F466D65678AFA9BBD (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CFragmentCommandCountU3Ek__BackingField_3(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ControlCommandCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CControlCommandCountU3Ek__BackingField_4();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_ControlCommandCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_ControlCommandCount_m731BED58A92CB20A30F6911269CB55F556D7FFC3 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CControlCommandCountU3Ek__BackingField_4(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalPacketCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CTotalPacketCountU3Ek__BackingField_5();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_TotalPacketCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CTotalPacketCountU3Ek__BackingField_5(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandsInPackets()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CTotalCommandsInPacketsU3Ek__BackingField_6();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_TotalCommandsInPackets(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CTotalCommandsInPacketsU3Ek__BackingField_6(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ReliableCommandBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CReliableCommandBytesU3Ek__BackingField_7();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_ReliableCommandBytes(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_ReliableCommandBytes_m1ACF9B259E8544025094BDBA03F24BEE2AB07BEE (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CReliableCommandBytesU3Ek__BackingField_7(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_UnreliableCommandBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CUnreliableCommandBytesU3Ek__BackingField_8();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_UnreliableCommandBytes(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_UnreliableCommandBytes_m6172F51043B3A763FFB98BBBD57EB5BA271396B3 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CUnreliableCommandBytesU3Ek__BackingField_8(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_FragmentCommandBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CFragmentCommandBytesU3Ek__BackingField_9();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_FragmentCommandBytes(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_FragmentCommandBytes_m0F0D591C4A0E5EAA13143999BDDCB690E761F0F2 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CFragmentCommandBytesU3Ek__BackingField_9(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_ControlCommandBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CControlCommandBytesU3Ek__BackingField_10();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_ControlCommandBytes(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_ControlCommandBytes_mD9728C15CC1EF0CAFB1825D66A8C82133AA26FC7 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CControlCommandBytesU3Ek__BackingField_10(L_0);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats__ctor_mE38A22CB44818349588B97E2252555561E0B8BC2 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___packageHeaderSize0, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
int32_t L_0 = ___packageHeaderSize0;
TrafficStats_set_PackageHeaderSize_mAE818A528A1C5A59EF26EA6389AED7B54B1096ED_inline(__this, L_0, /*hidden argument*/NULL);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalCommandCount_mB2C45AE3C3656B55A49D518155AD933F3DCF1195 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728_inline(__this, /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C_inline(__this, /*hidden argument*/NULL);
int32_t L_3 = TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), (int32_t)L_2)), (int32_t)L_3));
goto IL_001f;
}
IL_001f:
{
int32_t L_4 = V_0;
return L_4;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalCommandBytes_mB383A7A252C329333B1586EDC1BCAEC5EFF8DFF7 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8_inline(__this, /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A_inline(__this, /*hidden argument*/NULL);
int32_t L_3 = TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), (int32_t)L_2)), (int32_t)L_3));
goto IL_001f;
}
IL_001f:
{
int32_t L_4 = V_0;
return L_4;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalPacketBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalPacketBytes_m1C9C5903F2EEDD995CAD025E84047485BB22A9B3 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_TotalCommandBytes_mB383A7A252C329333B1586EDC1BCAEC5EFF8DFF7(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline(__this, /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_PackageHeaderSize_m6DDAC0D97C22D96113F3CC03C17EB31E5FEF4786_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)((int32_t)il2cpp_codegen_multiply((int32_t)L_1, (int32_t)L_2))));
goto IL_0018;
}
IL_0018:
{
int32_t L_3 = V_0;
return L_3;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TimestampOfLastAck()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TimestampOfLastAck_m5032D4D94415DB8FAEA09BE42C71DAB5EBEF2745 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CTimestampOfLastAckU3Ek__BackingField_11();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_TimestampOfLastAck(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_TimestampOfLastAck_mD560814C2B65A82A5E59A7A30404925AF2DE36C1 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CTimestampOfLastAckU3Ek__BackingField_11(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStats::get_TimestampOfLastReliableCommand()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TimestampOfLastReliableCommand_mA6C7673A7A6C653D7DB9F10D85C58DD2A96ADEFE (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CTimestampOfLastReliableCommandU3Ek__BackingField_12();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::set_TimestampOfLastReliableCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_set_TimestampOfLastReliableCommand_m23C5646968E13B18D2C6F89E41963679FC5CAF2B (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CTimestampOfLastReliableCommandU3Ek__BackingField_12(L_0);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::CountControlCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___size0;
TrafficStats_set_ControlCommandBytes_mD9728C15CC1EF0CAFB1825D66A8C82133AA26FC7_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStats_set_ControlCommandCount_m731BED58A92CB20A30F6911269CB55F556D7FFC3_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::CountReliableOpCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountReliableOpCommand_m71BF86C54D4ED1E2F9C877F32B589CE96A90DB59 (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___size0;
TrafficStats_set_ReliableCommandBytes_m1ACF9B259E8544025094BDBA03F24BEE2AB07BEE_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStats_set_ReliableCommandCount_m8D36D1B6FC616B6CB3BE2ECD1B8EC7468E15E46E_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::CountUnreliableOpCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountUnreliableOpCommand_m367D8B4DE36D0F23894286A7F06F97A637E08C5E (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___size0;
TrafficStats_set_UnreliableCommandBytes_m6172F51043B3A763FFB98BBBD57EB5BA271396B3_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStats_set_UnreliableCommandCount_m24194C72567D19FE10C5205CDF2745884F95BE89_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStats::CountFragmentOpCommand(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStats_CountFragmentOpCommand_m793233BFDD2295CB6F1291CCB0C00F9E0DEA9B4B (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___size0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___size0;
TrafficStats_set_FragmentCommandBytes_m0F0D591C4A0E5EAA13143999BDDCB690E761F0F2_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStats_set_FragmentCommandCount_m7575514F5532ABA49440639F466D65678AFA9BBD_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.String ExitGames.Client.Photon.TrafficStats::ToString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* TrafficStats_ToString_m75C5ED9FA43C4C8BEE44D42DD4758AD39D393AAA (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TrafficStats_ToString_m75C5ED9FA43C4C8BEE44D42DD4758AD39D393AAA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_0 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)4);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_1 = L_0;
int32_t L_2 = TrafficStats_get_TotalPacketBytes_m1C9C5903F2EEDD995CAD025E84047485BB22A9B3(__this, /*hidden argument*/NULL);
int32_t L_3 = L_2;
RuntimeObject * L_4 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_3);
ArrayElementTypeCheck (L_1, L_4);
(L_1)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_4);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_5 = L_1;
int32_t L_6 = TrafficStats_get_TotalCommandBytes_mB383A7A252C329333B1586EDC1BCAEC5EFF8DFF7(__this, /*hidden argument*/NULL);
int32_t L_7 = L_6;
RuntimeObject * L_8 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_7);
ArrayElementTypeCheck (L_5, L_8);
(L_5)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_8);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_9 = L_5;
int32_t L_10 = TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline(__this, /*hidden argument*/NULL);
int32_t L_11 = L_10;
RuntimeObject * L_12 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_11);
ArrayElementTypeCheck (L_9, L_12);
(L_9)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_12);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_13 = L_9;
int32_t L_14 = TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD_inline(__this, /*hidden argument*/NULL);
int32_t L_15 = L_14;
RuntimeObject * L_16 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_15);
ArrayElementTypeCheck (L_13, L_16);
(L_13)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_16);
String_t* L_17 = String_Format_mA3AC3FE7B23D97F3A5BAA082D25B0E01B341A865(_stringLiteral9E64EF2EA727C6FA0E1622CFAB8BDC40C203D79B, L_13, /*hidden argument*/NULL);
V_0 = L_17;
goto IL_004c;
}
IL_004c:
{
String_t* L_18 = V_0;
return L_18;
}
}
#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.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_OperationByteCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3COperationByteCountU3Ek__BackingField_2();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_OperationByteCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_OperationByteCount_m61EC810AF51F6AEBE591A30B4E96908781966CD2 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3COperationByteCountU3Ek__BackingField_2(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_OperationCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3COperationCountU3Ek__BackingField_3();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_OperationCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_OperationCount_mF031F074BA1BB8C0E34AC46955DFDDF65FAC418A (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3COperationCountU3Ek__BackingField_3(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_ResultByteCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CResultByteCountU3Ek__BackingField_4();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_ResultByteCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_ResultByteCount_mEE65C5FA649E839121DC46E21C2A314A5859DFDB (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CResultByteCountU3Ek__BackingField_4(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_ResultCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CResultCountU3Ek__BackingField_5();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_ResultCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_ResultCount_m8640EBCCA2E7F3B03120AD4F970E8D15E9480F6A (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CResultCountU3Ek__BackingField_5(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_EventByteCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CEventByteCountU3Ek__BackingField_6();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_EventByteCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_EventByteCount_mE8D047D92F707F6A8D28B07AD0092D95ABEF2017 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CEventByteCountU3Ek__BackingField_6(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_EventCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CEventCountU3Ek__BackingField_7();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_EventCount(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_EventCount_m9AA09E5AA7DDF2F81837257B034E82C7FED5A474 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CEventCountU3Ek__BackingField_7(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestOpResponseCallback()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestOpResponseCallbackU3Ek__BackingField_8();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestOpResponseCallback(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestOpResponseCallbackU3Ek__BackingField_8(L_0);
return;
}
}
// System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestOpResponseCallbackOpCode()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t TrafficStatsGameLevel_get_LongestOpResponseCallbackOpCode_m1D27D4106B5F50A1D30B218D87E7A618E6A8301F (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
uint8_t L_0 = __this->get_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestOpResponseCallbackOpCode(System.Byte)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___value0, const RuntimeMethod* method)
{
{
uint8_t L_0 = ___value0;
__this->set_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestEventCallback()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestEventCallbackU3Ek__BackingField_10();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestEventCallback(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestEventCallbackU3Ek__BackingField_10(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestMessageCallback()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestMessageCallback_m7CB4710B66709978395F803F53185B17531F33D9 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestMessageCallbackU3Ek__BackingField_11();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestMessageCallback(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestMessageCallback_m2983F2737EF4E6407F326CE8554E2E4C1BA68D7B (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestMessageCallbackU3Ek__BackingField_11(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestRawMessageCallback()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestRawMessageCallback_mEC136AA45D27B645EAE49D2D6AF8DFD02855A0A3 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestRawMessageCallbackU3Ek__BackingField_12();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestRawMessageCallback(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestRawMessageCallback_m953E6A841776CE4581FD2051F3E8DD520FF3ADC5 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestRawMessageCallbackU3Ek__BackingField_12(L_0);
return;
}
}
// System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestEventCallbackCode()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR uint8_t TrafficStatsGameLevel_get_LongestEventCallbackCode_m2EDA97E93839E9983B7C36210430FC4BA8E3D368 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
uint8_t L_0 = __this->get_U3CLongestEventCallbackCodeU3Ek__BackingField_13();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestEventCallbackCode(System.Byte)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___value0, const RuntimeMethod* method)
{
{
uint8_t L_0 = ___value0;
__this->set_U3CLongestEventCallbackCodeU3Ek__BackingField_13(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestDeltaBetweenDispatching()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestDeltaBetweenDispatching(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestDeltaBetweenSending()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestDeltaBetweenSending(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_DispatchCalls()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_DispatchCalls_mD9CF1A66628BE7C50DCE960AA7095C342A6E0831 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591_inline(__this, /*hidden argument*/NULL);
V_0 = L_0;
goto IL_000a;
}
IL_000a:
{
int32_t L_1 = V_0;
return L_1;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_DispatchIncomingCommandsCalls()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_DispatchIncomingCommandsCalls(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_DispatchIncomingCommandsCalls_mC14CDD723C55083B9E19CB7611C267D391A478B3 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_SendOutgoingCommandsCalls()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_SendOutgoingCommandsCalls(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_SendOutgoingCommandsCalls_m3A4A39B8D4DBCCC3DEB830286BF931F22A599F3B (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17(L_0);
return;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalByteCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_TotalByteCount_mED91B21463A60B1073893B3DE63E1CB765BAC8E7 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4_inline(__this, /*hidden argument*/NULL);
int32_t L_2 = TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), (int32_t)L_2));
goto IL_0018;
}
IL_0018:
{
int32_t L_3 = V_0;
return L_3;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalMessageCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_TotalMessageCount_mAA54DEB9B4408B47B7EA5F082709936D1B3C636E (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7_inline(__this, /*hidden argument*/NULL);
int32_t L_2 = TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), (int32_t)L_2));
goto IL_0018;
}
IL_0018:
{
int32_t L_3 = V_0;
return L_3;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalIncomingByteCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_TotalIncomingByteCount_mD5B15DE2D5F5255FCA336B2A1F842B0E462ED7C4 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1));
goto IL_0011;
}
IL_0011:
{
int32_t L_2 = V_0;
return L_2;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalIncomingMessageCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_TotalIncomingMessageCount_m684A4D0A90DB32E72ADFA9025435A0FFD42BDCAE (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2_inline(__this, /*hidden argument*/NULL);
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1));
goto IL_0011;
}
IL_0011:
{
int32_t L_2 = V_0;
return L_2;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalOutgoingByteCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_TotalOutgoingByteCount_mCC89FB2621A29EBA83137ED8D391EC5A3B6C3FD1 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E_inline(__this, /*hidden argument*/NULL);
V_0 = L_0;
goto IL_000a;
}
IL_000a:
{
int32_t L_1 = V_0;
return L_1;
}
}
// System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalOutgoingMessageCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_TotalOutgoingMessageCount_m0CC1D8B52C136766544F10B650C59F26F6D57B89 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3_inline(__this, /*hidden argument*/NULL);
V_0 = L_0;
goto IL_000a;
}
IL_000a:
{
int32_t L_1 = V_0;
return L_1;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountOperation(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_CountOperation_m3A0547B6073AD68C02D89F04BDF52F284E77D46F (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___operationBytes0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___operationBytes0;
TrafficStatsGameLevel_set_OperationByteCount_m61EC810AF51F6AEBE591A30B4E96908781966CD2_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStatsGameLevel_set_OperationCount_mF031F074BA1BB8C0E34AC46955DFDDF65FAC418A_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountResult(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_CountResult_m8EB7CB70E871FBEB9E6C4C85F2F78B4E25FB5C7A (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___resultBytes0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___resultBytes0;
TrafficStatsGameLevel_set_ResultByteCount_mEE65C5FA649E839121DC46E21C2A314A5859DFDB_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStatsGameLevel_set_ResultCount_m8640EBCCA2E7F3B03120AD4F970E8D15E9480F6A_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountEvent(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_CountEvent_m405185B173483581FDF85937C850051B1FE4E547 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___eventBytes0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = ___eventBytes0;
TrafficStatsGameLevel_set_EventByteCount_mE8D047D92F707F6A8D28B07AD0092D95ABEF2017_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)L_1)), /*hidden argument*/NULL);
int32_t L_2 = TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
TrafficStatsGameLevel_set_EventCount_m9AA09E5AA7DDF2F81837257B034E82C7FED5A474_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_3, (int32_t)1)), /*hidden argument*/NULL);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForResponseCallback(System.Byte,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_TimeForResponseCallback_m17974202E46F17878CA8D7AD60C21C53EC9C5EC8 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___code0, int32_t ___time1, const RuntimeMethod* method)
{
bool V_0 = false;
{
int32_t L_0 = ___time1;
int32_t L_1 = TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588_inline(__this, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_0020;
}
}
{
int32_t L_3 = ___time1;
TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2_inline(__this, L_3, /*hidden argument*/NULL);
uint8_t L_4 = ___code0;
TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B_inline(__this, L_4, /*hidden argument*/NULL);
}
IL_0020:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForEventCallback(System.Byte,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_TimeForEventCallback_m67AFEF4CA5C29840B46E629A5334D551CE8546EB (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___code0, int32_t ___time1, const RuntimeMethod* method)
{
bool V_0 = false;
{
int32_t L_0 = ___time1;
int32_t L_1 = TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E_inline(__this, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_0020;
}
}
{
int32_t L_3 = ___time1;
TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F_inline(__this, L_3, /*hidden argument*/NULL);
uint8_t L_4 = ___code0;
TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54_inline(__this, L_4, /*hidden argument*/NULL);
}
IL_0020:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForMessageCallback(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_TimeForMessageCallback_m4172FE3F45E9647F66DFED62E18139C275460004 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___time0, const RuntimeMethod* method)
{
bool V_0 = false;
{
int32_t L_0 = ___time0;
int32_t L_1 = TrafficStatsGameLevel_get_LongestMessageCallback_m7CB4710B66709978395F803F53185B17531F33D9_inline(__this, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_0018;
}
}
{
int32_t L_3 = ___time0;
TrafficStatsGameLevel_set_LongestMessageCallback_m2983F2737EF4E6407F326CE8554E2E4C1BA68D7B_inline(__this, L_3, /*hidden argument*/NULL);
}
IL_0018:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForRawMessageCallback(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_TimeForRawMessageCallback_mF535B74DE8A7D95C4926EF7A04535D16DB6DCA17 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___time0, const RuntimeMethod* method)
{
bool V_0 = false;
{
int32_t L_0 = ___time0;
int32_t L_1 = TrafficStatsGameLevel_get_LongestRawMessageCallback_mEC136AA45D27B645EAE49D2D6AF8DFD02855A0A3_inline(__this, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_0) > ((int32_t)L_1))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_0018;
}
}
{
int32_t L_3 = ___time0;
TrafficStatsGameLevel_set_LongestRawMessageCallback_m953E6A841776CE4581FD2051F3E8DD520FF3ADC5_inline(__this, L_3, /*hidden argument*/NULL);
}
IL_0018:
{
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::DispatchIncomingCommandsCalled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_DispatchIncomingCommandsCalled_m2047B76836D234F1374C3AE2BA11DB59EC8A039C (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TrafficStatsGameLevel_DispatchIncomingCommandsCalled_m2047B76836D234F1374C3AE2BA11DB59EC8A039C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t V_1 = 0;
bool V_2 = false;
int32_t V_3 = 0;
{
int32_t L_0 = __this->get_timeOfLastDispatchCall_0();
V_0 = (bool)((!(((uint32_t)L_0) <= ((uint32_t)0)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0034;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_2 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_3 = __this->get_timeOfLastDispatchCall_0();
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_2, (int32_t)L_3));
int32_t L_4 = V_1;
int32_t L_5 = TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861_inline(__this, /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)L_4) > ((int32_t)L_5))? 1 : 0);
bool L_6 = V_2;
if (!L_6)
{
goto IL_0033;
}
}
{
int32_t L_7 = V_1;
TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C_inline(__this, L_7, /*hidden argument*/NULL);
}
IL_0033:
{
}
IL_0034:
{
int32_t L_8 = TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591_inline(__this, /*hidden argument*/NULL);
V_3 = L_8;
int32_t L_9 = V_3;
TrafficStatsGameLevel_set_DispatchIncomingCommandsCalls_mC14CDD723C55083B9E19CB7611C267D391A478B3_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1)), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_10 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
__this->set_timeOfLastDispatchCall_0(L_10);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::SendOutgoingCommandsCalled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_SendOutgoingCommandsCalled_m4FF3EFF1E68D5059903E8ED75EDE24D9E21B09A8 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TrafficStatsGameLevel_SendOutgoingCommandsCalled_m4FF3EFF1E68D5059903E8ED75EDE24D9E21B09A8_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t V_1 = 0;
bool V_2 = false;
int32_t V_3 = 0;
{
int32_t L_0 = __this->get_timeOfLastSendCall_1();
V_0 = (bool)((!(((uint32_t)L_0) <= ((uint32_t)0)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0034;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_2 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
int32_t L_3 = __this->get_timeOfLastSendCall_1();
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_2, (int32_t)L_3));
int32_t L_4 = V_1;
int32_t L_5 = TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671_inline(__this, /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)L_4) > ((int32_t)L_5))? 1 : 0);
bool L_6 = V_2;
if (!L_6)
{
goto IL_0033;
}
}
{
int32_t L_7 = V_1;
TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E_inline(__this, L_7, /*hidden argument*/NULL);
}
IL_0033:
{
}
IL_0034:
{
int32_t L_8 = TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE_inline(__this, /*hidden argument*/NULL);
V_3 = L_8;
int32_t L_9 = V_3;
TrafficStatsGameLevel_set_SendOutgoingCommandsCalls_m3A4A39B8D4DBCCC3DEB830286BF931F22A599F3B_inline(__this, ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1)), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
int32_t L_10 = SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15(/*hidden argument*/NULL);
__this->set_timeOfLastSendCall_1(L_10);
return;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::ResetMaximumCounters()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_ResetMaximumCounters_m343E41FB2963FCA691E2496EA1F3E0FF0BB06ACF (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C_inline(__this, 0, /*hidden argument*/NULL);
TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E_inline(__this, 0, /*hidden argument*/NULL);
TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F_inline(__this, 0, /*hidden argument*/NULL);
TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54_inline(__this, (uint8_t)0, /*hidden argument*/NULL);
TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2_inline(__this, 0, /*hidden argument*/NULL);
TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B_inline(__this, (uint8_t)0, /*hidden argument*/NULL);
__this->set_timeOfLastDispatchCall_0(0);
__this->set_timeOfLastSendCall_1(0);
return;
}
}
// System.String ExitGames.Client.Photon.TrafficStatsGameLevel::ToString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* TrafficStatsGameLevel_ToString_m0DCD7F7439AAAC07151768C96703FDD0B52B6F44 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TrafficStatsGameLevel_ToString_m0DCD7F7439AAAC07151768C96703FDD0B52B6F44_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
int32_t L_0 = TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E_inline(__this, /*hidden argument*/NULL);
int32_t L_1 = L_0;
RuntimeObject * L_2 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_1);
int32_t L_3 = TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4_inline(__this, /*hidden argument*/NULL);
int32_t L_4 = L_3;
RuntimeObject * L_5 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_4);
int32_t L_6 = TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023_inline(__this, /*hidden argument*/NULL);
int32_t L_7 = L_6;
RuntimeObject * L_8 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_7);
String_t* L_9 = String_Format_m26BBF75F9609FAD0B39C2242FEBAAD7D68F14D99(_stringLiteralBAA3BCF38FA24577655C936BA6B37ADBA35CD288, L_2, L_5, L_8, /*hidden argument*/NULL);
V_0 = L_9;
goto IL_002f;
}
IL_002f:
{
String_t* L_10 = V_0;
return L_10;
}
}
// System.String ExitGames.Client.Photon.TrafficStatsGameLevel::ToStringVitalStats()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* TrafficStatsGameLevel_ToStringVitalStats_m66E31FABDDFE64E0C3AD8772FFB88440E7277B23 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (TrafficStatsGameLevel_ToStringVitalStats_m66E31FABDDFE64E0C3AD8772FFB88440E7277B23_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
{
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_0 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)8);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_1 = L_0;
int32_t L_2 = TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671_inline(__this, /*hidden argument*/NULL);
int32_t L_3 = L_2;
RuntimeObject * L_4 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_3);
ArrayElementTypeCheck (L_1, L_4);
(L_1)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_4);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_5 = L_1;
int32_t L_6 = TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861_inline(__this, /*hidden argument*/NULL);
int32_t L_7 = L_6;
RuntimeObject * L_8 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_7);
ArrayElementTypeCheck (L_5, L_8);
(L_5)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_8);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_9 = L_5;
int32_t L_10 = TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E_inline(__this, /*hidden argument*/NULL);
int32_t L_11 = L_10;
RuntimeObject * L_12 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_11);
ArrayElementTypeCheck (L_9, L_12);
(L_9)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_12);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_13 = L_9;
uint8_t L_14 = TrafficStatsGameLevel_get_LongestEventCallbackCode_m2EDA97E93839E9983B7C36210430FC4BA8E3D368_inline(__this, /*hidden argument*/NULL);
uint8_t L_15 = L_14;
RuntimeObject * L_16 = Box(Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07_il2cpp_TypeInfo_var, &L_15);
ArrayElementTypeCheck (L_13, L_16);
(L_13)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_16);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_17 = L_13;
int32_t L_18 = TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588_inline(__this, /*hidden argument*/NULL);
int32_t L_19 = L_18;
RuntimeObject * L_20 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_19);
ArrayElementTypeCheck (L_17, L_20);
(L_17)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)L_20);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_21 = L_17;
uint8_t L_22 = TrafficStatsGameLevel_get_LongestOpResponseCallbackOpCode_m1D27D4106B5F50A1D30B218D87E7A618E6A8301F_inline(__this, /*hidden argument*/NULL);
uint8_t L_23 = L_22;
RuntimeObject * L_24 = Box(Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07_il2cpp_TypeInfo_var, &L_23);
ArrayElementTypeCheck (L_21, L_24);
(L_21)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(5), (RuntimeObject *)L_24);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_25 = L_21;
int32_t L_26 = TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE_inline(__this, /*hidden argument*/NULL);
int32_t L_27 = L_26;
RuntimeObject * L_28 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_27);
ArrayElementTypeCheck (L_25, L_28);
(L_25)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(6), (RuntimeObject *)L_28);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_29 = L_25;
int32_t L_30 = TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591_inline(__this, /*hidden argument*/NULL);
int32_t L_31 = L_30;
RuntimeObject * L_32 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_31);
ArrayElementTypeCheck (L_29, L_32);
(L_29)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(7), (RuntimeObject *)L_32);
String_t* L_33 = String_Format_mA3AC3FE7B23D97F3A5BAA082D25B0E01B341A865(_stringLiteral5B1FCBF196D62DAE66A87599DA5CCB20E8F05676, L_29, /*hidden argument*/NULL);
V_0 = L_33;
goto IL_0084;
}
IL_0084:
{
String_t* L_34 = V_0;
return L_34;
}
}
// System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TrafficStatsGameLevel__ctor_m1FC4294115E3939D687F4C6D7EE860B52593F114 (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void ExitGames.Client.Photon.Version::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Version__cctor_m71E280F57F915B7C71267C2AEB1887F397517C14 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Version__cctor_m71E280F57F915B7C71267C2AEB1887F397517C14_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)4);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = L_0;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____9861CC9D89A9C2AC4A3E5E45590B8E6295934212CF1D66E474F7DA16A8CCD578_3_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL);
((Version_tA7C397D7133E8F35E85A8C9DDB8A0DD5310091AB_StaticFields*)il2cpp_codegen_static_fields_for(Version_tA7C397D7133E8F35E85A8C9DDB8A0DD5310091AB_il2cpp_TypeInfo_var))->set_clientVersion_0(L_1);
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 Photon.SocketServer.Numeric.BigInteger::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
__this->set_data_1((UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)NULL);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
__this->set_data_1(L_0);
__this->set_dataLength_2(1);
return;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.Int64)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, int64_t ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int64_t V_0 = 0;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
int32_t G_B5_0 = 0;
int32_t G_B10_0 = 0;
int32_t G_B17_0 = 0;
{
__this->set_data_1((UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)NULL);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
__this->set_data_1(L_0);
int64_t L_1 = ___value0;
V_0 = L_1;
__this->set_dataLength_2(0);
goto IL_004f;
}
IL_0027:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_2 = __this->get_data_1();
int32_t L_3 = __this->get_dataLength_2();
int64_t L_4 = ___value0;
(L_2)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_4&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
int64_t L_5 = ___value0;
___value0 = ((int64_t)((int64_t)L_5>>(int32_t)((int32_t)32)));
int32_t L_6 = __this->get_dataLength_2();
__this->set_dataLength_2(((int32_t)il2cpp_codegen_add((int32_t)L_6, (int32_t)1)));
}
IL_004f:
{
int64_t L_7 = ___value0;
if (!L_7)
{
goto IL_005e;
}
}
{
int32_t L_8 = __this->get_dataLength_2();
G_B5_0 = ((((int32_t)L_8) < ((int32_t)((int32_t)70)))? 1 : 0);
goto IL_005f;
}
IL_005e:
{
G_B5_0 = 0;
}
IL_005f:
{
V_1 = (bool)G_B5_0;
bool L_9 = V_1;
if (L_9)
{
goto IL_0027;
}
}
{
int64_t L_10 = V_0;
V_2 = (bool)((((int64_t)L_10) > ((int64_t)(((int64_t)((int64_t)0)))))? 1 : 0);
bool L_11 = V_2;
if (!L_11)
{
goto IL_0097;
}
}
{
int64_t L_12 = ___value0;
if (L_12)
{
goto IL_0084;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_13 = __this->get_data_1();
int32_t L_14 = ((int32_t)69);
uint32_t L_15 = (L_13)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_14));
G_B10_0 = ((!(((uint32_t)((int32_t)((int32_t)L_15&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
goto IL_0085;
}
IL_0084:
{
G_B10_0 = 1;
}
IL_0085:
{
V_3 = (bool)G_B10_0;
bool L_16 = V_3;
if (!L_16)
{
goto IL_0094;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_17 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_17, _stringLiteral21E0C87506B794C9D0CA9AAC1166237C82A12E17, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_17, NULL, BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C_RuntimeMethod_var);
}
IL_0094:
{
goto IL_00d5;
}
IL_0097:
{
int64_t L_18 = V_0;
V_4 = (bool)((((int64_t)L_18) < ((int64_t)(((int64_t)((int64_t)0)))))? 1 : 0);
bool L_19 = V_4;
if (!L_19)
{
goto IL_00d5;
}
}
{
int64_t L_20 = ___value0;
if ((!(((uint64_t)L_20) == ((uint64_t)(((int64_t)((int64_t)(-1))))))))
{
goto IL_00c2;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_21 = __this->get_data_1();
int32_t L_22 = __this->get_dataLength_2();
int32_t L_23 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_22, (int32_t)1));
uint32_t L_24 = (L_21)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_23));
G_B17_0 = ((((int32_t)((int32_t)((int32_t)L_24&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)0))? 1 : 0);
goto IL_00c3;
}
IL_00c2:
{
G_B17_0 = 1;
}
IL_00c3:
{
V_5 = (bool)G_B17_0;
bool L_25 = V_5;
if (!L_25)
{
goto IL_00d4;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_26 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_26, _stringLiteralB5CD017B62807F243FCA8D81EAE9CAE7D8902C6C, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_26, NULL, BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C_RuntimeMethod_var);
}
IL_00d4:
{
}
IL_00d5:
{
int32_t L_27 = __this->get_dataLength_2();
V_6 = (bool)((((int32_t)L_27) == ((int32_t)0))? 1 : 0);
bool L_28 = V_6;
if (!L_28)
{
goto IL_00eb;
}
}
{
__this->set_dataLength_2(1);
}
IL_00eb:
{
return;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
{
__this->set_data_1((UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)NULL);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
__this->set_data_1(L_0);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = ___bi0;
int32_t L_2 = L_1->get_dataLength_2();
__this->set_dataLength_2(L_2);
V_0 = 0;
goto IL_0040;
}
IL_002c:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_3 = __this->get_data_1();
int32_t L_4 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_5 = ___bi0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_6 = L_5->get_data_1();
int32_t L_7 = V_0;
int32_t L_8 = L_7;
uint32_t L_9 = (L_6)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_8));
(L_3)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_4), (uint32_t)L_9);
int32_t L_10 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_10, (int32_t)1));
}
IL_0040:
{
int32_t L_11 = V_0;
int32_t L_12 = __this->get_dataLength_2();
V_1 = (bool)((((int32_t)L_11) < ((int32_t)L_12))? 1 : 0);
bool L_13 = V_1;
if (L_13)
{
goto IL_002c;
}
}
{
return;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___inData0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
bool V_2 = false;
int32_t V_3 = 0;
int32_t V_4 = 0;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
int32_t G_B18_0 = 0;
{
__this->set_data_1((UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)NULL);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___inData0;
__this->set_dataLength_2(((int32_t)((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_0)->max_length))))>>(int32_t)2)));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = ___inData0;
V_0 = ((int32_t)((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_1)->max_length))))&(int32_t)3));
int32_t L_2 = V_0;
V_1 = (bool)((!(((uint32_t)L_2) <= ((uint32_t)0)))? 1 : 0);
bool L_3 = V_1;
if (!L_3)
{
goto IL_0036;
}
}
{
int32_t L_4 = __this->get_dataLength_2();
__this->set_dataLength_2(((int32_t)il2cpp_codegen_add((int32_t)L_4, (int32_t)1)));
}
IL_0036:
{
int32_t L_5 = __this->get_dataLength_2();
V_2 = (bool)((((int32_t)L_5) > ((int32_t)((int32_t)70)))? 1 : 0);
bool L_6 = V_2;
if (!L_6)
{
goto IL_004f;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_7 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_7, _stringLiteralE1381581CF7FAA889CB2AFA54785D825C6E0BAD4, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160_RuntimeMethod_var);
}
IL_004f:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_8 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
__this->set_data_1(L_8);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = ___inData0;
V_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_9)->max_length)))), (int32_t)1));
V_4 = 0;
goto IL_0099;
}
IL_0067:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_10 = __this->get_data_1();
int32_t L_11 = V_4;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_12 = ___inData0;
int32_t L_13 = V_3;
int32_t L_14 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_13, (int32_t)3));
uint8_t L_15 = (L_12)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_14));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_16 = ___inData0;
int32_t L_17 = V_3;
int32_t L_18 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)2));
uint8_t L_19 = (L_16)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_20 = ___inData0;
int32_t L_21 = V_3;
int32_t L_22 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_21, (int32_t)1));
uint8_t L_23 = (L_20)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_22));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_24 = ___inData0;
int32_t L_25 = V_3;
int32_t L_26 = L_25;
uint8_t L_27 = (L_24)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_26));
(L_10)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_11), (uint32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)((int32_t)L_15<<(int32_t)((int32_t)24))), (int32_t)((int32_t)((int32_t)L_19<<(int32_t)((int32_t)16))))), (int32_t)((int32_t)((int32_t)L_23<<(int32_t)8)))), (int32_t)L_27)));
int32_t L_28 = V_3;
V_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_28, (int32_t)4));
int32_t L_29 = V_4;
V_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_29, (int32_t)1));
}
IL_0099:
{
int32_t L_30 = V_3;
V_5 = (bool)((((int32_t)((((int32_t)L_30) < ((int32_t)3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_31 = V_5;
if (L_31)
{
goto IL_0067;
}
}
{
int32_t L_32 = V_0;
V_6 = (bool)((((int32_t)L_32) == ((int32_t)1))? 1 : 0);
bool L_33 = V_6;
if (!L_33)
{
goto IL_00c4;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_34 = __this->get_data_1();
int32_t L_35 = __this->get_dataLength_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_36 = ___inData0;
int32_t L_37 = 0;
uint8_t L_38 = (L_36)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_37));
(L_34)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_35, (int32_t)1))), (uint32_t)L_38);
goto IL_0111;
}
IL_00c4:
{
int32_t L_39 = V_0;
V_7 = (bool)((((int32_t)L_39) == ((int32_t)2))? 1 : 0);
bool L_40 = V_7;
if (!L_40)
{
goto IL_00e8;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_41 = __this->get_data_1();
int32_t L_42 = __this->get_dataLength_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_43 = ___inData0;
int32_t L_44 = 0;
uint8_t L_45 = (L_43)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_44));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_46 = ___inData0;
int32_t L_47 = 1;
uint8_t L_48 = (L_46)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_47));
(L_41)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_42, (int32_t)1))), (uint32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)((int32_t)L_45<<(int32_t)8)), (int32_t)L_48)));
goto IL_0111;
}
IL_00e8:
{
int32_t L_49 = V_0;
V_8 = (bool)((((int32_t)L_49) == ((int32_t)3))? 1 : 0);
bool L_50 = V_8;
if (!L_50)
{
goto IL_0111;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_51 = __this->get_data_1();
int32_t L_52 = __this->get_dataLength_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_53 = ___inData0;
int32_t L_54 = 0;
uint8_t L_55 = (L_53)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_54));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_56 = ___inData0;
int32_t L_57 = 1;
uint8_t L_58 = (L_56)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_57));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_59 = ___inData0;
int32_t L_60 = 2;
uint8_t L_61 = (L_59)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_60));
(L_51)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_52, (int32_t)1))), (uint32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)((int32_t)L_55<<(int32_t)((int32_t)16))), (int32_t)((int32_t)((int32_t)L_58<<(int32_t)8)))), (int32_t)L_61)));
}
IL_0111:
{
goto IL_0121;
}
IL_0113:
{
int32_t L_62 = __this->get_dataLength_2();
__this->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_62, (int32_t)1)));
}
IL_0121:
{
int32_t L_63 = __this->get_dataLength_2();
if ((((int32_t)L_63) <= ((int32_t)1)))
{
goto IL_013e;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_64 = __this->get_data_1();
int32_t L_65 = __this->get_dataLength_2();
int32_t L_66 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_65, (int32_t)1));
uint32_t L_67 = (L_64)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_66));
G_B18_0 = ((((int32_t)L_67) == ((int32_t)0))? 1 : 0);
goto IL_013f;
}
IL_013e:
{
G_B18_0 = 0;
}
IL_013f:
{
V_9 = (bool)G_B18_0;
bool L_68 = V_9;
if (L_68)
{
goto IL_0113;
}
}
{
return;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.UInt32[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___inData0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t V_1 = 0;
int32_t V_2 = 0;
bool V_3 = false;
bool V_4 = false;
int32_t G_B10_0 = 0;
{
__this->set_data_1((UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)NULL);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = ___inData0;
__this->set_dataLength_2((((int32_t)((int32_t)(((RuntimeArray*)L_0)->max_length)))));
int32_t L_1 = __this->get_dataLength_2();
V_0 = (bool)((((int32_t)L_1) > ((int32_t)((int32_t)70)))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_0031;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_3 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_3, _stringLiteralE1381581CF7FAA889CB2AFA54785D825C6E0BAD4, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_3, NULL, BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F_RuntimeMethod_var);
}
IL_0031:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_4 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
__this->set_data_1(L_4);
int32_t L_5 = __this->get_dataLength_2();
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_5, (int32_t)1));
V_2 = 0;
goto IL_005e;
}
IL_004b:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_6 = __this->get_data_1();
int32_t L_7 = V_2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_8 = ___inData0;
int32_t L_9 = V_1;
int32_t L_10 = L_9;
uint32_t L_11 = (L_8)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_10));
(L_6)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_7), (uint32_t)L_11);
int32_t L_12 = V_1;
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_12, (int32_t)1));
int32_t L_13 = V_2;
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_13, (int32_t)1));
}
IL_005e:
{
int32_t L_14 = V_1;
V_3 = (bool)((((int32_t)((((int32_t)L_14) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_15 = V_3;
if (L_15)
{
goto IL_004b;
}
}
{
goto IL_0079;
}
IL_006b:
{
int32_t L_16 = __this->get_dataLength_2();
__this->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_16, (int32_t)1)));
}
IL_0079:
{
int32_t L_17 = __this->get_dataLength_2();
if ((((int32_t)L_17) <= ((int32_t)1)))
{
goto IL_0096;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_18 = __this->get_data_1();
int32_t L_19 = __this->get_dataLength_2();
int32_t L_20 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1));
uint32_t L_21 = (L_18)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_20));
G_B10_0 = ((((int32_t)L_21) == ((int32_t)0))? 1 : 0);
goto IL_0097;
}
IL_0096:
{
G_B10_0 = 0;
}
IL_0097:
{
V_4 = (bool)G_B10_0;
bool L_22 = V_4;
if (L_22)
{
goto IL_006b;
}
}
{
return;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Implicit(System.Int64)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E (int64_t ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
{
int64_t L_0 = ___value0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C(L_1, L_0, /*hidden argument*/NULL);
V_0 = L_1;
goto IL_000a;
}
IL_000a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = V_0;
return L_2;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Implicit(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60 (int32_t ___value0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
{
int32_t L_0 = ___value0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C(L_1, (((int64_t)((int64_t)L_0))), /*hidden argument*/NULL);
V_0 = L_1;
goto IL_000b;
}
IL_000b:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = V_0;
return L_2;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Addition(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
int64_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int64_t V_4 = 0;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
bool V_8 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_9 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * G_B2_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * G_B3_1 = NULL;
int32_t G_B9_0 = 0;
int32_t G_B16_0 = 0;
int32_t G_B20_0 = 0;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_0, /*hidden argument*/NULL);
V_0 = L_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = ___bi10;
int32_t L_3 = L_2->get_dataLength_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = ___bi21;
int32_t L_5 = L_4->get_dataLength_2();
G_B1_0 = L_1;
if ((((int32_t)L_3) > ((int32_t)L_5)))
{
G_B2_0 = L_1;
goto IL_001e;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_6 = ___bi21;
int32_t L_7 = L_6->get_dataLength_2();
G_B3_0 = L_7;
G_B3_1 = G_B1_0;
goto IL_0024;
}
IL_001e:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = ___bi10;
int32_t L_9 = L_8->get_dataLength_2();
G_B3_0 = L_9;
G_B3_1 = G_B2_0;
}
IL_0024:
{
G_B3_1->set_dataLength_2(G_B3_0);
V_1 = (((int64_t)((int64_t)0)));
V_3 = 0;
goto IL_0061;
}
IL_0030:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_10 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_11 = L_10->get_data_1();
int32_t L_12 = V_3;
int32_t L_13 = L_12;
uint32_t L_14 = (L_11)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_13));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_15 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_16 = L_15->get_data_1();
int32_t L_17 = V_3;
int32_t L_18 = L_17;
uint32_t L_19 = (L_16)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18));
int64_t L_20 = V_1;
V_4 = ((int64_t)il2cpp_codegen_add((int64_t)((int64_t)il2cpp_codegen_add((int64_t)(((int64_t)((uint64_t)L_14))), (int64_t)(((int64_t)((uint64_t)L_19))))), (int64_t)L_20));
int64_t L_21 = V_4;
V_1 = ((int64_t)((int64_t)L_21>>(int32_t)((int32_t)32)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_23 = L_22->get_data_1();
int32_t L_24 = V_3;
int64_t L_25 = V_4;
(L_23)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_24), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_25&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
int32_t L_26 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1));
}
IL_0061:
{
int32_t L_27 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_28 = V_0;
int32_t L_29 = L_28->get_dataLength_2();
V_5 = (bool)((((int32_t)L_27) < ((int32_t)L_29))? 1 : 0);
bool L_30 = V_5;
if (L_30)
{
goto IL_0030;
}
}
{
int64_t L_31 = V_1;
if (!L_31)
{
goto IL_007f;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_32 = V_0;
int32_t L_33 = L_32->get_dataLength_2();
G_B9_0 = ((((int32_t)L_33) < ((int32_t)((int32_t)70)))? 1 : 0);
goto IL_0080;
}
IL_007f:
{
G_B9_0 = 0;
}
IL_0080:
{
V_6 = (bool)G_B9_0;
bool L_34 = V_6;
if (!L_34)
{
goto IL_00a5;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_35 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_36 = L_35->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_37 = V_0;
int32_t L_38 = L_37->get_dataLength_2();
int64_t L_39 = V_1;
(L_36)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_38), (uint32_t)(((int32_t)((uint32_t)L_39))));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_40 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_41 = L_40;
int32_t L_42 = L_41->get_dataLength_2();
L_41->set_dataLength_2(((int32_t)il2cpp_codegen_add((int32_t)L_42, (int32_t)1)));
}
IL_00a5:
{
goto IL_00b5;
}
IL_00a7:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_43 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_44 = L_43;
int32_t L_45 = L_44->get_dataLength_2();
L_44->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_45, (int32_t)1)));
}
IL_00b5:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = V_0;
int32_t L_47 = L_46->get_dataLength_2();
if ((((int32_t)L_47) <= ((int32_t)1)))
{
goto IL_00d2;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_49 = L_48->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_50 = V_0;
int32_t L_51 = L_50->get_dataLength_2();
int32_t L_52 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_51, (int32_t)1));
uint32_t L_53 = (L_49)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_52));
G_B16_0 = ((((int32_t)L_53) == ((int32_t)0))? 1 : 0);
goto IL_00d3;
}
IL_00d2:
{
G_B16_0 = 0;
}
IL_00d3:
{
V_7 = (bool)G_B16_0;
bool L_54 = V_7;
if (L_54)
{
goto IL_00a7;
}
}
{
V_2 = ((int32_t)69);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_55 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_56 = L_55->get_data_1();
int32_t L_57 = V_2;
int32_t L_58 = L_57;
uint32_t L_59 = (L_56)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_58));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_60 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_61 = L_60->get_data_1();
int32_t L_62 = V_2;
int32_t L_63 = L_62;
uint32_t L_64 = (L_61)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_63));
if ((!(((uint32_t)((int32_t)((int32_t)L_59&(int32_t)((int32_t)-2147483648LL)))) == ((uint32_t)((int32_t)((int32_t)L_64&(int32_t)((int32_t)-2147483648LL)))))))
{
goto IL_011d;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_65 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_66 = L_65->get_data_1();
int32_t L_67 = V_2;
int32_t L_68 = L_67;
uint32_t L_69 = (L_66)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_68));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_70 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_71 = L_70->get_data_1();
int32_t L_72 = V_2;
int32_t L_73 = L_72;
uint32_t L_74 = (L_71)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_73));
G_B20_0 = ((((int32_t)((((int32_t)((int32_t)((int32_t)L_69&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)((int32_t)((int32_t)L_74&(int32_t)((int32_t)-2147483648LL)))))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_011e;
}
IL_011d:
{
G_B20_0 = 0;
}
IL_011e:
{
V_8 = (bool)G_B20_0;
bool L_75 = V_8;
if (!L_75)
{
goto IL_012b;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_76 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_m8F13CB2C5B293239D87D5D7CD065630DE2C9C4D9(L_76, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_76, NULL, BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C_RuntimeMethod_var);
}
IL_012b:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_77 = V_0;
V_9 = L_77;
goto IL_0130;
}
IL_0130:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_78 = V_9;
return L_78;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Subtraction(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
int64_t V_1 = 0;
int32_t V_2 = 0;
int32_t V_3 = 0;
int64_t V_4 = 0;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
int32_t V_8 = 0;
bool V_9 = false;
bool V_10 = false;
bool V_11 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_12 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * G_B2_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * G_B1_0 = NULL;
int32_t G_B3_0 = 0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * G_B3_1 = NULL;
int32_t G_B19_0 = 0;
int32_t G_B23_0 = 0;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_0, /*hidden argument*/NULL);
V_0 = L_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = ___bi10;
int32_t L_3 = L_2->get_dataLength_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = ___bi21;
int32_t L_5 = L_4->get_dataLength_2();
G_B1_0 = L_1;
if ((((int32_t)L_3) > ((int32_t)L_5)))
{
G_B2_0 = L_1;
goto IL_001e;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_6 = ___bi21;
int32_t L_7 = L_6->get_dataLength_2();
G_B3_0 = L_7;
G_B3_1 = G_B1_0;
goto IL_0024;
}
IL_001e:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = ___bi10;
int32_t L_9 = L_8->get_dataLength_2();
G_B3_0 = L_9;
G_B3_1 = G_B2_0;
}
IL_0024:
{
G_B3_1->set_dataLength_2(G_B3_0);
V_1 = (((int64_t)((int64_t)0)));
V_3 = 0;
goto IL_006f;
}
IL_0030:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_10 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_11 = L_10->get_data_1();
int32_t L_12 = V_3;
int32_t L_13 = L_12;
uint32_t L_14 = (L_11)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_13));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_15 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_16 = L_15->get_data_1();
int32_t L_17 = V_3;
int32_t L_18 = L_17;
uint32_t L_19 = (L_16)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18));
int64_t L_20 = V_1;
V_4 = ((int64_t)il2cpp_codegen_subtract((int64_t)((int64_t)il2cpp_codegen_subtract((int64_t)(((int64_t)((uint64_t)L_14))), (int64_t)(((int64_t)((uint64_t)L_19))))), (int64_t)L_20));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_21 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_22 = L_21->get_data_1();
int32_t L_23 = V_3;
int64_t L_24 = V_4;
(L_22)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_23), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_24&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
int64_t L_25 = V_4;
V_5 = (bool)((((int64_t)L_25) < ((int64_t)(((int64_t)((int64_t)0)))))? 1 : 0);
bool L_26 = V_5;
if (!L_26)
{
goto IL_0067;
}
}
{
V_1 = (((int64_t)((int64_t)1)));
goto IL_006a;
}
IL_0067:
{
V_1 = (((int64_t)((int64_t)0)));
}
IL_006a:
{
int32_t L_27 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_27, (int32_t)1));
}
IL_006f:
{
int32_t L_28 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_29 = V_0;
int32_t L_30 = L_29->get_dataLength_2();
V_6 = (bool)((((int32_t)L_28) < ((int32_t)L_30))? 1 : 0);
bool L_31 = V_6;
if (L_31)
{
goto IL_0030;
}
}
{
int64_t L_32 = V_1;
V_7 = (bool)((!(((uint64_t)L_32) <= ((uint64_t)(((int64_t)((int64_t)0))))))? 1 : 0);
bool L_33 = V_7;
if (!L_33)
{
goto IL_00b9;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_34 = V_0;
int32_t L_35 = L_34->get_dataLength_2();
V_8 = L_35;
goto IL_00a4;
}
IL_0094:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_36 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_37 = L_36->get_data_1();
int32_t L_38 = V_8;
(L_37)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_38), (uint32_t)(-1));
int32_t L_39 = V_8;
V_8 = ((int32_t)il2cpp_codegen_add((int32_t)L_39, (int32_t)1));
}
IL_00a4:
{
int32_t L_40 = V_8;
V_9 = (bool)((((int32_t)L_40) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_41 = V_9;
if (L_41)
{
goto IL_0094;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_42 = V_0;
L_42->set_dataLength_2(((int32_t)70));
}
IL_00b9:
{
goto IL_00c9;
}
IL_00bb:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_43 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_44 = L_43;
int32_t L_45 = L_44->get_dataLength_2();
L_44->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_45, (int32_t)1)));
}
IL_00c9:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = V_0;
int32_t L_47 = L_46->get_dataLength_2();
if ((((int32_t)L_47) <= ((int32_t)1)))
{
goto IL_00e6;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_49 = L_48->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_50 = V_0;
int32_t L_51 = L_50->get_dataLength_2();
int32_t L_52 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_51, (int32_t)1));
uint32_t L_53 = (L_49)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_52));
G_B19_0 = ((((int32_t)L_53) == ((int32_t)0))? 1 : 0);
goto IL_00e7;
}
IL_00e6:
{
G_B19_0 = 0;
}
IL_00e7:
{
V_10 = (bool)G_B19_0;
bool L_54 = V_10;
if (L_54)
{
goto IL_00bb;
}
}
{
V_2 = ((int32_t)69);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_55 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_56 = L_55->get_data_1();
int32_t L_57 = V_2;
int32_t L_58 = L_57;
uint32_t L_59 = (L_56)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_58));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_60 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_61 = L_60->get_data_1();
int32_t L_62 = V_2;
int32_t L_63 = L_62;
uint32_t L_64 = (L_61)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_63));
if ((((int32_t)((int32_t)((int32_t)L_59&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)((int32_t)((int32_t)L_64&(int32_t)((int32_t)-2147483648LL))))))
{
goto IL_0131;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_65 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_66 = L_65->get_data_1();
int32_t L_67 = V_2;
int32_t L_68 = L_67;
uint32_t L_69 = (L_66)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_68));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_70 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_71 = L_70->get_data_1();
int32_t L_72 = V_2;
int32_t L_73 = L_72;
uint32_t L_74 = (L_71)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_73));
G_B23_0 = ((((int32_t)((((int32_t)((int32_t)((int32_t)L_69&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)((int32_t)((int32_t)L_74&(int32_t)((int32_t)-2147483648LL)))))? 1 : 0)) == ((int32_t)0))? 1 : 0);
goto IL_0132;
}
IL_0131:
{
G_B23_0 = 0;
}
IL_0132:
{
V_11 = (bool)G_B23_0;
bool L_75 = V_11;
if (!L_75)
{
goto IL_013f;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_76 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_m8F13CB2C5B293239D87D5D7CD065630DE2C9C4D9(L_76, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_76, NULL, BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3_RuntimeMethod_var);
}
IL_013f:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_77 = V_0;
V_12 = L_77;
goto IL_0144;
}
IL_0144:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_78 = V_12;
return L_78;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Multiply(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
bool V_2 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_3 = NULL;
bool V_4 = false;
bool V_5 = false;
int32_t V_6 = 0;
uint64_t V_7 = 0;
bool V_8 = false;
int32_t V_9 = 0;
int32_t V_10 = 0;
uint64_t V_11 = 0;
bool V_12 = false;
bool V_13 = false;
bool V_14 = false;
bool V_15 = false;
bool V_16 = false;
bool V_17 = false;
bool V_18 = false;
bool V_19 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_20 = NULL;
bool V_21 = false;
int32_t V_22 = 0;
bool V_23 = false;
bool V_24 = false;
bool V_25 = false;
bool V_26 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 3);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B28_0 = 0;
int32_t G_B33_0 = 0;
{
V_0 = ((int32_t)69);
V_1 = (bool)0;
V_2 = (bool)0;
}
IL_0008:
try
{ // begin try (depth: 1)
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_1 = L_0->get_data_1();
int32_t L_2 = V_0;
int32_t L_3 = L_2;
uint32_t L_4 = (L_1)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3));
V_4 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_4&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_5 = V_4;
if (!L_5)
{
goto IL_002c;
}
}
IL_0020:
{
V_1 = (bool)1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_6 = ___bi10;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_7 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_6, /*hidden argument*/NULL);
___bi10 = L_7;
}
IL_002c:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_9 = L_8->get_data_1();
int32_t L_10 = V_0;
int32_t L_11 = L_10;
uint32_t L_12 = (L_9)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_11));
V_5 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_12&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_13 = V_5;
if (!L_13)
{
goto IL_004f;
}
}
IL_0043:
{
V_2 = (bool)1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_14 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_15 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_14, /*hidden argument*/NULL);
___bi21 = L_15;
}
IL_004f:
{
goto IL_0057;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0052;
throw e;
}
CATCH_0052:
{ // begin catch(System.Exception)
goto IL_0057;
} // end catch (depth: 1)
IL_0057:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_16 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_16, /*hidden argument*/NULL);
V_3 = L_16;
}
IL_005d:
try
{ // begin try (depth: 1)
{
V_6 = 0;
goto IL_010a;
}
IL_0066:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_17 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_18 = L_17->get_data_1();
int32_t L_19 = V_6;
int32_t L_20 = L_19;
uint32_t L_21 = (L_18)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_20));
V_8 = (bool)((((int32_t)L_21) == ((int32_t)0))? 1 : 0);
bool L_22 = V_8;
if (!L_22)
{
goto IL_007e;
}
}
IL_0079:
{
goto IL_0104;
}
IL_007e:
{
V_7 = (((int64_t)((int64_t)0)));
V_9 = 0;
int32_t L_23 = V_6;
V_10 = L_23;
goto IL_00d4;
}
IL_008b:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_25 = L_24->get_data_1();
int32_t L_26 = V_6;
int32_t L_27 = L_26;
uint32_t L_28 = (L_25)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_27));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_29 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_30 = L_29->get_data_1();
int32_t L_31 = V_9;
int32_t L_32 = L_31;
uint32_t L_33 = (L_30)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_32));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_34 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_35 = L_34->get_data_1();
int32_t L_36 = V_10;
int32_t L_37 = L_36;
uint32_t L_38 = (L_35)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_37));
uint64_t L_39 = V_7;
V_11 = ((int64_t)il2cpp_codegen_add((int64_t)((int64_t)il2cpp_codegen_add((int64_t)((int64_t)il2cpp_codegen_multiply((int64_t)(((int64_t)((uint64_t)L_28))), (int64_t)(((int64_t)((uint64_t)L_33))))), (int64_t)(((int64_t)((uint64_t)L_38))))), (int64_t)L_39));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_40 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_41 = L_40->get_data_1();
int32_t L_42 = V_10;
uint64_t L_43 = V_11;
(L_41)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_42), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_43&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
uint64_t L_44 = V_11;
V_7 = ((int64_t)((uint64_t)L_44>>((int32_t)32)));
int32_t L_45 = V_9;
V_9 = ((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1));
int32_t L_46 = V_10;
V_10 = ((int32_t)il2cpp_codegen_add((int32_t)L_46, (int32_t)1));
}
IL_00d4:
{
int32_t L_47 = V_9;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = ___bi21;
int32_t L_49 = L_48->get_dataLength_2();
V_12 = (bool)((((int32_t)L_47) < ((int32_t)L_49))? 1 : 0);
bool L_50 = V_12;
if (L_50)
{
goto IL_008b;
}
}
IL_00e4:
{
uint64_t L_51 = V_7;
V_13 = (bool)((!(((uint64_t)L_51) <= ((uint64_t)(((int64_t)((int64_t)0))))))? 1 : 0);
bool L_52 = V_13;
if (!L_52)
{
goto IL_0103;
}
}
IL_00f0:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_53 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_54 = L_53->get_data_1();
int32_t L_55 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_56 = ___bi21;
int32_t L_57 = L_56->get_dataLength_2();
uint64_t L_58 = V_7;
(L_54)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_55, (int32_t)L_57))), (uint32_t)(((int32_t)((uint32_t)L_58))));
}
IL_0103:
{
}
IL_0104:
{
int32_t L_59 = V_6;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_59, (int32_t)1));
}
IL_010a:
{
int32_t L_60 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_61 = ___bi10;
int32_t L_62 = L_61->get_dataLength_2();
V_14 = (bool)((((int32_t)L_60) < ((int32_t)L_62))? 1 : 0);
bool L_63 = V_14;
if (L_63)
{
goto IL_0066;
}
}
IL_011d:
{
goto IL_012d;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0120;
throw e;
}
CATCH_0120:
{ // begin catch(System.Exception)
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_64 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_64, _stringLiteralDA49F969A456090F8FD78DB98E47E5D9FBA9F7AB, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_64, NULL, BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D_RuntimeMethod_var);
} // end catch (depth: 1)
IL_012d:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_65 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_66 = ___bi10;
int32_t L_67 = L_66->get_dataLength_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_68 = ___bi21;
int32_t L_69 = L_68->get_dataLength_2();
L_65->set_dataLength_2(((int32_t)il2cpp_codegen_add((int32_t)L_67, (int32_t)L_69)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_70 = V_3;
int32_t L_71 = L_70->get_dataLength_2();
V_15 = (bool)((((int32_t)L_71) > ((int32_t)((int32_t)70)))? 1 : 0);
bool L_72 = V_15;
if (!L_72)
{
goto IL_0158;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_73 = V_3;
L_73->set_dataLength_2(((int32_t)70));
}
IL_0158:
{
goto IL_0168;
}
IL_015a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_74 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_75 = L_74;
int32_t L_76 = L_75->get_dataLength_2();
L_75->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_76, (int32_t)1)));
}
IL_0168:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_77 = V_3;
int32_t L_78 = L_77->get_dataLength_2();
if ((((int32_t)L_78) <= ((int32_t)1)))
{
goto IL_0185;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_79 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_80 = L_79->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_81 = V_3;
int32_t L_82 = L_81->get_dataLength_2();
int32_t L_83 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_82, (int32_t)1));
uint32_t L_84 = (L_80)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_83));
G_B28_0 = ((((int32_t)L_84) == ((int32_t)0))? 1 : 0);
goto IL_0186;
}
IL_0185:
{
G_B28_0 = 0;
}
IL_0186:
{
V_16 = (bool)G_B28_0;
bool L_85 = V_16;
if (L_85)
{
goto IL_015a;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_86 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_87 = L_86->get_data_1();
int32_t L_88 = V_0;
int32_t L_89 = L_88;
uint32_t L_90 = (L_87)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_89));
V_17 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_90&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_91 = V_17;
if (!L_91)
{
goto IL_022d;
}
}
{
bool L_92 = V_1;
bool L_93 = V_2;
if ((((int32_t)L_92) == ((int32_t)L_93)))
{
goto IL_01bc;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_94 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_95 = L_94->get_data_1();
int32_t L_96 = V_0;
int32_t L_97 = L_96;
uint32_t L_98 = (L_95)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_97));
G_B33_0 = ((((int32_t)L_98) == ((int32_t)((int32_t)-2147483648LL)))? 1 : 0);
goto IL_01bd;
}
IL_01bc:
{
G_B33_0 = 0;
}
IL_01bd:
{
V_18 = (bool)G_B33_0;
bool L_99 = V_18;
if (!L_99)
{
goto IL_0222;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_100 = V_3;
int32_t L_101 = L_100->get_dataLength_2();
V_19 = (bool)((((int32_t)L_101) == ((int32_t)1))? 1 : 0);
bool L_102 = V_19;
if (!L_102)
{
goto IL_01d8;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_103 = V_3;
V_20 = L_103;
goto IL_0249;
}
IL_01d8:
{
V_21 = (bool)1;
V_22 = 0;
goto IL_01fe;
}
IL_01e1:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_104 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_105 = L_104->get_data_1();
int32_t L_106 = V_22;
int32_t L_107 = L_106;
uint32_t L_108 = (L_105)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_107));
V_23 = (bool)((!(((uint32_t)L_108) <= ((uint32_t)0)))? 1 : 0);
bool L_109 = V_23;
if (!L_109)
{
goto IL_01f7;
}
}
{
V_21 = (bool)0;
}
IL_01f7:
{
int32_t L_110 = V_22;
V_22 = ((int32_t)il2cpp_codegen_add((int32_t)L_110, (int32_t)1));
}
IL_01fe:
{
int32_t L_111 = V_22;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_112 = V_3;
int32_t L_113 = L_112->get_dataLength_2();
bool L_114 = V_21;
V_24 = (bool)((int32_t)((int32_t)((((int32_t)L_111) < ((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_113, (int32_t)1))))? 1 : 0)&(int32_t)L_114));
bool L_115 = V_24;
if (L_115)
{
goto IL_01e1;
}
}
{
bool L_116 = V_21;
V_25 = L_116;
bool L_117 = V_25;
if (!L_117)
{
goto IL_0220;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_118 = V_3;
V_20 = L_118;
goto IL_0249;
}
IL_0220:
{
}
IL_0222:
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_119 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_119, _stringLiteralDA49F969A456090F8FD78DB98E47E5D9FBA9F7AB, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_119, NULL, BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D_RuntimeMethod_var);
}
IL_022d:
{
bool L_120 = V_1;
bool L_121 = V_2;
V_26 = (bool)((((int32_t)((((int32_t)L_120) == ((int32_t)L_121))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_122 = V_26;
if (!L_122)
{
goto IL_0244;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_123 = V_3;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_124 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_123, /*hidden argument*/NULL);
V_20 = L_124;
goto IL_0249;
}
IL_0244:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_125 = V_3;
V_20 = L_125;
goto IL_0249;
}
IL_0249:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_126 = V_20;
return L_126;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_LeftShift(Photon.SocketServer.Numeric.BigInteger,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, int32_t ___shiftVal1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_1 = NULL;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA(L_1, L_0, /*hidden argument*/NULL);
V_0 = L_1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_4 = L_3->get_data_1();
int32_t L_5 = ___shiftVal1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
int32_t L_6 = BigInteger_shiftLeft_mA43634983AAF71B5E3ACACF7595C67AD50EB8677(L_4, L_5, /*hidden argument*/NULL);
L_2->set_dataLength_2(L_6);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_7 = V_0;
V_1 = L_7;
goto IL_001e;
}
IL_001e:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = V_1;
return L_8;
}
}
// System.Int32 Photon.SocketServer.Numeric.BigInteger::shiftLeft(System.UInt32[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_shiftLeft_mA43634983AAF71B5E3ACACF7595C67AD50EB8677 (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___buffer0, int32_t ___shiftVal1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
int32_t V_3 = 0;
uint64_t V_4 = 0;
bool V_5 = false;
int32_t V_6 = 0;
uint64_t V_7 = 0;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
bool V_11 = false;
int32_t V_12 = 0;
int32_t G_B5_0 = 0;
{
V_0 = ((int32_t)32);
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = ___buffer0;
V_1 = (((int32_t)((int32_t)(((RuntimeArray*)L_0)->max_length))));
goto IL_000e;
}
IL_000a:
{
int32_t L_1 = V_1;
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)1));
}
IL_000e:
{
int32_t L_2 = V_1;
if ((((int32_t)L_2) <= ((int32_t)1)))
{
goto IL_001c;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_3 = ___buffer0;
int32_t L_4 = V_1;
int32_t L_5 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)1));
uint32_t L_6 = (L_3)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_5));
G_B5_0 = ((((int32_t)L_6) == ((int32_t)0))? 1 : 0);
goto IL_001d;
}
IL_001c:
{
G_B5_0 = 0;
}
IL_001d:
{
V_2 = (bool)G_B5_0;
bool L_7 = V_2;
if (L_7)
{
goto IL_000a;
}
}
{
int32_t L_8 = ___shiftVal1;
V_3 = L_8;
goto IL_00a2;
}
IL_0025:
{
int32_t L_9 = V_3;
int32_t L_10 = V_0;
V_5 = (bool)((((int32_t)L_9) < ((int32_t)L_10))? 1 : 0);
bool L_11 = V_5;
if (!L_11)
{
goto IL_0032;
}
}
{
int32_t L_12 = V_3;
V_0 = L_12;
}
IL_0032:
{
V_4 = (((int64_t)((int64_t)0)));
V_6 = 0;
goto IL_0067;
}
IL_003b:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_13 = ___buffer0;
int32_t L_14 = V_6;
int32_t L_15 = L_14;
uint32_t L_16 = (L_13)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_15));
int32_t L_17 = V_0;
V_7 = ((int64_t)((int64_t)(((int64_t)((uint64_t)L_16)))<<(int32_t)((int32_t)((int32_t)L_17&(int32_t)((int32_t)63)))));
uint64_t L_18 = V_7;
uint64_t L_19 = V_4;
V_7 = ((int64_t)((int64_t)L_18|(int64_t)L_19));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_20 = ___buffer0;
int32_t L_21 = V_6;
uint64_t L_22 = V_7;
(L_20)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_21), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_22&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
uint64_t L_23 = V_7;
V_4 = ((int64_t)((uint64_t)L_23>>((int32_t)32)));
int32_t L_24 = V_6;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_0067:
{
int32_t L_25 = V_6;
int32_t L_26 = V_1;
V_8 = (bool)((((int32_t)L_25) < ((int32_t)L_26))? 1 : 0);
bool L_27 = V_8;
if (L_27)
{
goto IL_003b;
}
}
{
uint64_t L_28 = V_4;
V_9 = (bool)((!(((uint64_t)L_28) <= ((uint64_t)(((int64_t)((int64_t)0))))))? 1 : 0);
bool L_29 = V_9;
if (!L_29)
{
goto IL_009d;
}
}
{
int32_t L_30 = V_1;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_31 = ___buffer0;
V_10 = (bool)((((int32_t)((((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)1))) > ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_31)->max_length))))))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_32 = V_10;
if (!L_32)
{
goto IL_009c;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_33 = ___buffer0;
int32_t L_34 = V_1;
uint64_t L_35 = V_4;
(L_33)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_34), (uint32_t)(((int32_t)((uint32_t)L_35))));
int32_t L_36 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_36, (int32_t)1));
}
IL_009c:
{
}
IL_009d:
{
int32_t L_37 = V_3;
int32_t L_38 = V_0;
V_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_37, (int32_t)L_38));
}
IL_00a2:
{
int32_t L_39 = V_3;
V_11 = (bool)((((int32_t)L_39) > ((int32_t)0))? 1 : 0);
bool L_40 = V_11;
if (L_40)
{
goto IL_0025;
}
}
{
int32_t L_41 = V_1;
V_12 = L_41;
goto IL_00b4;
}
IL_00b4:
{
int32_t L_42 = V_12;
return L_42;
}
}
// System.Int32 Photon.SocketServer.Numeric.BigInteger::shiftRight(System.UInt32[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_shiftRight_m00A521D4E5F2DCA3462D793A6F5B3620551DA70A (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___buffer0, int32_t ___shiftVal1, const RuntimeMethod* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
bool V_3 = false;
int32_t V_4 = 0;
uint64_t V_5 = 0;
bool V_6 = false;
int32_t V_7 = 0;
uint64_t V_8 = 0;
bool V_9 = false;
bool V_10 = false;
bool V_11 = false;
int32_t V_12 = 0;
int32_t G_B5_0 = 0;
int32_t G_B19_0 = 0;
{
V_0 = ((int32_t)32);
V_1 = 0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = ___buffer0;
V_2 = (((int32_t)((int32_t)(((RuntimeArray*)L_0)->max_length))));
goto IL_0010;
}
IL_000c:
{
int32_t L_1 = V_2;
V_2 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_1, (int32_t)1));
}
IL_0010:
{
int32_t L_2 = V_2;
if ((((int32_t)L_2) <= ((int32_t)1)))
{
goto IL_001e;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_3 = ___buffer0;
int32_t L_4 = V_2;
int32_t L_5 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_4, (int32_t)1));
uint32_t L_6 = (L_3)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_5));
G_B5_0 = ((((int32_t)L_6) == ((int32_t)0))? 1 : 0);
goto IL_001f;
}
IL_001e:
{
G_B5_0 = 0;
}
IL_001f:
{
V_3 = (bool)G_B5_0;
bool L_7 = V_3;
if (L_7)
{
goto IL_000c;
}
}
{
int32_t L_8 = ___shiftVal1;
V_4 = L_8;
goto IL_008c;
}
IL_0028:
{
int32_t L_9 = V_4;
int32_t L_10 = V_0;
V_6 = (bool)((((int32_t)L_9) < ((int32_t)L_10))? 1 : 0);
bool L_11 = V_6;
if (!L_11)
{
goto IL_003e;
}
}
{
int32_t L_12 = V_4;
V_0 = L_12;
int32_t L_13 = V_0;
V_1 = ((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)32), (int32_t)L_13));
}
IL_003e:
{
V_5 = (((int64_t)((int64_t)0)));
int32_t L_14 = V_2;
V_7 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_14, (int32_t)1));
goto IL_0077;
}
IL_0049:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_15 = ___buffer0;
int32_t L_16 = V_7;
int32_t L_17 = L_16;
uint32_t L_18 = (L_15)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_17));
int32_t L_19 = V_0;
V_8 = ((int64_t)((uint64_t)(((int64_t)((uint64_t)L_18)))>>((int32_t)((int32_t)L_19&(int32_t)((int32_t)63)))));
uint64_t L_20 = V_8;
uint64_t L_21 = V_5;
V_8 = ((int64_t)((int64_t)L_20|(int64_t)L_21));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_22 = ___buffer0;
int32_t L_23 = V_7;
int32_t L_24 = L_23;
uint32_t L_25 = (L_22)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_24));
int32_t L_26 = V_1;
V_5 = ((int64_t)((int64_t)(((int64_t)((uint64_t)L_25)))<<(int32_t)((int32_t)((int32_t)L_26&(int32_t)((int32_t)63)))));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_27 = ___buffer0;
int32_t L_28 = V_7;
uint64_t L_29 = V_8;
(L_27)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_28), (uint32_t)(((int32_t)((uint32_t)L_29))));
int32_t L_30 = V_7;
V_7 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_30, (int32_t)1));
}
IL_0077:
{
int32_t L_31 = V_7;
V_9 = (bool)((((int32_t)((((int32_t)L_31) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_32 = V_9;
if (L_32)
{
goto IL_0049;
}
}
{
int32_t L_33 = V_4;
int32_t L_34 = V_0;
V_4 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_33, (int32_t)L_34));
}
IL_008c:
{
int32_t L_35 = V_4;
V_10 = (bool)((((int32_t)L_35) > ((int32_t)0))? 1 : 0);
bool L_36 = V_10;
if (L_36)
{
goto IL_0028;
}
}
{
goto IL_009d;
}
IL_0099:
{
int32_t L_37 = V_2;
V_2 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_37, (int32_t)1));
}
IL_009d:
{
int32_t L_38 = V_2;
if ((((int32_t)L_38) <= ((int32_t)1)))
{
goto IL_00ab;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_39 = ___buffer0;
int32_t L_40 = V_2;
int32_t L_41 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_40, (int32_t)1));
uint32_t L_42 = (L_39)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_41));
G_B19_0 = ((((int32_t)L_42) == ((int32_t)0))? 1 : 0);
goto IL_00ac;
}
IL_00ab:
{
G_B19_0 = 0;
}
IL_00ac:
{
V_11 = (bool)G_B19_0;
bool L_43 = V_11;
if (L_43)
{
goto IL_0099;
}
}
{
int32_t L_44 = V_2;
V_12 = L_44;
goto IL_00b7;
}
IL_00b7:
{
int32_t L_45 = V_12;
return L_45;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_UnaryNegation(Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
int64_t V_1 = 0;
int64_t V_2 = 0;
int32_t V_3 = 0;
bool V_4 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_5 = NULL;
int32_t V_6 = 0;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
int32_t G_B3_0 = 0;
int32_t G_B13_0 = 0;
int32_t G_B21_0 = 0;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
int32_t L_1 = L_0->get_dataLength_2();
if ((!(((uint32_t)L_1) == ((uint32_t)1))))
{
goto IL_0017;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_3 = L_2->get_data_1();
int32_t L_4 = 0;
uint32_t L_5 = (L_3)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_4));
G_B3_0 = ((((int32_t)L_5) == ((int32_t)0))? 1 : 0);
goto IL_0018;
}
IL_0017:
{
G_B3_0 = 0;
}
IL_0018:
{
V_4 = (bool)G_B3_0;
bool L_6 = V_4;
if (!L_6)
{
goto IL_002a;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_7 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_7, /*hidden argument*/NULL);
V_5 = L_7;
goto IL_010c;
}
IL_002a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_9 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA(L_9, L_8, /*hidden argument*/NULL);
V_0 = L_9;
V_6 = 0;
goto IL_004f;
}
IL_0036:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_10 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_11 = L_10->get_data_1();
int32_t L_12 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_13 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_14 = L_13->get_data_1();
int32_t L_15 = V_6;
int32_t L_16 = L_15;
uint32_t L_17 = (L_14)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_16));
(L_11)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_12), (uint32_t)((~L_17)));
int32_t L_18 = V_6;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
}
IL_004f:
{
int32_t L_19 = V_6;
V_7 = (bool)((((int32_t)L_19) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_20 = V_7;
if (L_20)
{
goto IL_0036;
}
}
{
V_2 = (((int64_t)((int64_t)1)));
V_3 = 0;
goto IL_0089;
}
IL_0062:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_21 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_22 = L_21->get_data_1();
int32_t L_23 = V_3;
int32_t L_24 = L_23;
uint32_t L_25 = (L_22)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_24));
V_1 = (((int64_t)((uint64_t)L_25)));
int64_t L_26 = V_1;
V_1 = ((int64_t)il2cpp_codegen_add((int64_t)L_26, (int64_t)(((int64_t)((int64_t)1)))));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_27 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_28 = L_27->get_data_1();
int32_t L_29 = V_3;
int64_t L_30 = V_1;
(L_28)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_29), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_30&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
int64_t L_31 = V_1;
V_2 = ((int64_t)((int64_t)L_31>>(int32_t)((int32_t)32)));
int32_t L_32 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_32, (int32_t)1));
}
IL_0089:
{
int64_t L_33 = V_2;
if (!L_33)
{
goto IL_0093;
}
}
{
int32_t L_34 = V_3;
G_B13_0 = ((((int32_t)L_34) < ((int32_t)((int32_t)70)))? 1 : 0);
goto IL_0094;
}
IL_0093:
{
G_B13_0 = 0;
}
IL_0094:
{
V_8 = (bool)G_B13_0;
bool L_35 = V_8;
if (L_35)
{
goto IL_0062;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_36 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_37 = L_36->get_data_1();
int32_t L_38 = ((int32_t)69);
uint32_t L_39 = (L_37)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_38));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_40 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_41 = L_40->get_data_1();
int32_t L_42 = ((int32_t)69);
uint32_t L_43 = (L_41)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_42));
V_9 = (bool)((((int32_t)((int32_t)((int32_t)L_39&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)((int32_t)((int32_t)L_43&(int32_t)((int32_t)-2147483648LL)))))? 1 : 0);
bool L_44 = V_9;
if (!L_44)
{
goto IL_00cb;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_45 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_45, _stringLiteral4EA11D83FE1E0B01C6EB373B9EB32158F7CD061F, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_45, NULL, BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784_RuntimeMethod_var);
}
IL_00cb:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = V_0;
L_46->set_dataLength_2(((int32_t)70));
goto IL_00e3;
}
IL_00d5:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_47 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = L_47;
int32_t L_49 = L_48->get_dataLength_2();
L_48->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1)));
}
IL_00e3:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_50 = V_0;
int32_t L_51 = L_50->get_dataLength_2();
if ((((int32_t)L_51) <= ((int32_t)1)))
{
goto IL_0100;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_52 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_53 = L_52->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_54 = V_0;
int32_t L_55 = L_54->get_dataLength_2();
int32_t L_56 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_55, (int32_t)1));
uint32_t L_57 = (L_53)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_56));
G_B21_0 = ((((int32_t)L_57) == ((int32_t)0))? 1 : 0);
goto IL_0101;
}
IL_0100:
{
G_B21_0 = 0;
}
IL_0101:
{
V_10 = (bool)G_B21_0;
bool L_58 = V_10;
if (L_58)
{
goto IL_00d5;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_59 = V_0;
V_5 = L_59;
goto IL_010c;
}
IL_010c:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_60 = V_5;
return L_60;
}
}
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_Equality(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
bool V_0 = false;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = ___bi21;
bool L_2 = VirtFuncInvoker1< bool, RuntimeObject * >::Invoke(0 /* System.Boolean System.Object::Equals(System.Object) */, L_0, L_1);
V_0 = L_2;
goto IL_000b;
}
IL_000b:
{
bool L_3 = V_0;
return L_3;
}
}
// System.Boolean Photon.SocketServer.Numeric.BigInteger::Equals(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_Equals_m7205176C09F92065753845610C56CDE747821B19 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, RuntimeObject * ___o0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_Equals_m7205176C09F92065753845610C56CDE747821B19_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
int32_t V_3 = 0;
bool V_4 = false;
bool V_5 = false;
{
RuntimeObject * L_0 = ___o0;
V_0 = ((BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)CastclassClass((RuntimeObject*)L_0, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var));
int32_t L_1 = __this->get_dataLength_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = V_0;
int32_t L_3 = L_2->get_dataLength_2();
V_1 = (bool)((((int32_t)((((int32_t)L_1) == ((int32_t)L_3))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_4 = V_1;
if (!L_4)
{
goto IL_0021;
}
}
{
V_2 = (bool)0;
goto IL_005d;
}
IL_0021:
{
V_3 = 0;
goto IL_004a;
}
IL_0025:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_5 = __this->get_data_1();
int32_t L_6 = V_3;
int32_t L_7 = L_6;
uint32_t L_8 = (L_5)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_7));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_9 = V_0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_10 = L_9->get_data_1();
int32_t L_11 = V_3;
int32_t L_12 = L_11;
uint32_t L_13 = (L_10)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_12));
V_4 = (bool)((((int32_t)((((int32_t)L_8) == ((int32_t)L_13))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_14 = V_4;
if (!L_14)
{
goto IL_0045;
}
}
{
V_2 = (bool)0;
goto IL_005d;
}
IL_0045:
{
int32_t L_15 = V_3;
V_3 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)1));
}
IL_004a:
{
int32_t L_16 = V_3;
int32_t L_17 = __this->get_dataLength_2();
V_5 = (bool)((((int32_t)L_16) < ((int32_t)L_17))? 1 : 0);
bool L_18 = V_5;
if (L_18)
{
goto IL_0025;
}
}
{
V_2 = (bool)1;
goto IL_005d;
}
IL_005d:
{
bool L_19 = V_2;
return L_19;
}
}
// System.Int32 Photon.SocketServer.Numeric.BigInteger::GetHashCode()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_GetHashCode_mD71A55A43FFA23081DA676C8B574BA164BAED9B7 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
String_t* L_0 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, __this);
int32_t L_1 = VirtFuncInvoker0< int32_t >::Invoke(2 /* System.Int32 System.Object::GetHashCode() */, L_0);
V_0 = L_1;
goto IL_000f;
}
IL_000f:
{
int32_t L_2 = V_0;
return L_2;
}
}
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_GreaterThan(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_GreaterThan_mB3F96B34F601F8C58BC630362E7F2AE1B1116006 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
int32_t G_B3_0 = 0;
int32_t G_B8_0 = 0;
int32_t G_B13_0 = 0;
int32_t G_B18_0 = 0;
{
V_0 = ((int32_t)69);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_1 = L_0->get_data_1();
int32_t L_2 = V_0;
int32_t L_3 = L_2;
uint32_t L_4 = (L_1)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3));
if (!((int32_t)((int32_t)L_4&(int32_t)((int32_t)-2147483648LL))))
{
goto IL_0027;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_5 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_6 = L_5->get_data_1();
int32_t L_7 = V_0;
int32_t L_8 = L_7;
uint32_t L_9 = (L_6)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_8));
G_B3_0 = ((((int32_t)((int32_t)((int32_t)L_9&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)0))? 1 : 0);
goto IL_0028;
}
IL_0027:
{
G_B3_0 = 0;
}
IL_0028:
{
V_2 = (bool)G_B3_0;
bool L_10 = V_2;
if (!L_10)
{
goto IL_0033;
}
}
{
V_3 = (bool)0;
goto IL_00da;
}
IL_0033:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_11 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_12 = L_11->get_data_1();
int32_t L_13 = V_0;
int32_t L_14 = L_13;
uint32_t L_15 = (L_12)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_14));
if (((int32_t)((int32_t)L_15&(int32_t)((int32_t)-2147483648LL))))
{
goto IL_0056;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_16 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_17 = L_16->get_data_1();
int32_t L_18 = V_0;
int32_t L_19 = L_18;
uint32_t L_20 = (L_17)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_19));
G_B8_0 = ((!(((uint32_t)((int32_t)((int32_t)L_20&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
goto IL_0057;
}
IL_0056:
{
G_B8_0 = 0;
}
IL_0057:
{
V_4 = (bool)G_B8_0;
bool L_21 = V_4;
if (!L_21)
{
goto IL_0061;
}
}
{
V_3 = (bool)1;
goto IL_00da;
}
IL_0061:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = ___bi10;
int32_t L_23 = L_22->get_dataLength_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = ___bi21;
int32_t L_25 = L_24->get_dataLength_2();
if ((((int32_t)L_23) > ((int32_t)L_25)))
{
goto IL_0077;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_26 = ___bi21;
int32_t L_27 = L_26->get_dataLength_2();
G_B13_0 = L_27;
goto IL_007d;
}
IL_0077:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_28 = ___bi10;
int32_t L_29 = L_28->get_dataLength_2();
G_B13_0 = L_29;
}
IL_007d:
{
V_1 = G_B13_0;
int32_t L_30 = V_1;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_30, (int32_t)1));
goto IL_0089;
}
IL_0084:
{
int32_t L_31 = V_0;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1));
}
IL_0089:
{
int32_t L_32 = V_0;
if ((((int32_t)L_32) < ((int32_t)0)))
{
goto IL_00a1;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_34 = L_33->get_data_1();
int32_t L_35 = V_0;
int32_t L_36 = L_35;
uint32_t L_37 = (L_34)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_36));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_38 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_39 = L_38->get_data_1();
int32_t L_40 = V_0;
int32_t L_41 = L_40;
uint32_t L_42 = (L_39)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_41));
G_B18_0 = ((((int32_t)L_37) == ((int32_t)L_42))? 1 : 0);
goto IL_00a2;
}
IL_00a1:
{
G_B18_0 = 0;
}
IL_00a2:
{
V_5 = (bool)G_B18_0;
bool L_43 = V_5;
if (L_43)
{
goto IL_0084;
}
}
{
int32_t L_44 = V_0;
V_6 = (bool)((((int32_t)((((int32_t)L_44) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_45 = V_6;
if (!L_45)
{
goto IL_00d6;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_47 = L_46->get_data_1();
int32_t L_48 = V_0;
int32_t L_49 = L_48;
uint32_t L_50 = (L_47)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_49));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_51 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_52 = L_51->get_data_1();
int32_t L_53 = V_0;
int32_t L_54 = L_53;
uint32_t L_55 = (L_52)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_54));
V_7 = (bool)((!(((uint32_t)L_50) <= ((uint32_t)L_55)))? 1 : 0);
bool L_56 = V_7;
if (!L_56)
{
goto IL_00d2;
}
}
{
V_3 = (bool)1;
goto IL_00da;
}
IL_00d2:
{
V_3 = (bool)0;
goto IL_00da;
}
IL_00d6:
{
V_3 = (bool)0;
goto IL_00da;
}
IL_00da:
{
bool L_57 = V_3;
return L_57;
}
}
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_LessThan(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_LessThan_mB222680D4D19B23782419ADB68687ED8F057BBB4 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
int32_t G_B3_0 = 0;
int32_t G_B8_0 = 0;
int32_t G_B13_0 = 0;
int32_t G_B18_0 = 0;
{
V_0 = ((int32_t)69);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_1 = L_0->get_data_1();
int32_t L_2 = V_0;
int32_t L_3 = L_2;
uint32_t L_4 = (L_1)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3));
if (!((int32_t)((int32_t)L_4&(int32_t)((int32_t)-2147483648LL))))
{
goto IL_0027;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_5 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_6 = L_5->get_data_1();
int32_t L_7 = V_0;
int32_t L_8 = L_7;
uint32_t L_9 = (L_6)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_8));
G_B3_0 = ((((int32_t)((int32_t)((int32_t)L_9&(int32_t)((int32_t)-2147483648LL)))) == ((int32_t)0))? 1 : 0);
goto IL_0028;
}
IL_0027:
{
G_B3_0 = 0;
}
IL_0028:
{
V_2 = (bool)G_B3_0;
bool L_10 = V_2;
if (!L_10)
{
goto IL_0033;
}
}
{
V_3 = (bool)1;
goto IL_00da;
}
IL_0033:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_11 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_12 = L_11->get_data_1();
int32_t L_13 = V_0;
int32_t L_14 = L_13;
uint32_t L_15 = (L_12)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_14));
if (((int32_t)((int32_t)L_15&(int32_t)((int32_t)-2147483648LL))))
{
goto IL_0056;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_16 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_17 = L_16->get_data_1();
int32_t L_18 = V_0;
int32_t L_19 = L_18;
uint32_t L_20 = (L_17)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_19));
G_B8_0 = ((!(((uint32_t)((int32_t)((int32_t)L_20&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
goto IL_0057;
}
IL_0056:
{
G_B8_0 = 0;
}
IL_0057:
{
V_4 = (bool)G_B8_0;
bool L_21 = V_4;
if (!L_21)
{
goto IL_0061;
}
}
{
V_3 = (bool)0;
goto IL_00da;
}
IL_0061:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = ___bi10;
int32_t L_23 = L_22->get_dataLength_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = ___bi21;
int32_t L_25 = L_24->get_dataLength_2();
if ((((int32_t)L_23) > ((int32_t)L_25)))
{
goto IL_0077;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_26 = ___bi21;
int32_t L_27 = L_26->get_dataLength_2();
G_B13_0 = L_27;
goto IL_007d;
}
IL_0077:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_28 = ___bi10;
int32_t L_29 = L_28->get_dataLength_2();
G_B13_0 = L_29;
}
IL_007d:
{
V_1 = G_B13_0;
int32_t L_30 = V_1;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_30, (int32_t)1));
goto IL_0089;
}
IL_0084:
{
int32_t L_31 = V_0;
V_0 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_31, (int32_t)1));
}
IL_0089:
{
int32_t L_32 = V_0;
if ((((int32_t)L_32) < ((int32_t)0)))
{
goto IL_00a1;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_34 = L_33->get_data_1();
int32_t L_35 = V_0;
int32_t L_36 = L_35;
uint32_t L_37 = (L_34)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_36));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_38 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_39 = L_38->get_data_1();
int32_t L_40 = V_0;
int32_t L_41 = L_40;
uint32_t L_42 = (L_39)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_41));
G_B18_0 = ((((int32_t)L_37) == ((int32_t)L_42))? 1 : 0);
goto IL_00a2;
}
IL_00a1:
{
G_B18_0 = 0;
}
IL_00a2:
{
V_5 = (bool)G_B18_0;
bool L_43 = V_5;
if (L_43)
{
goto IL_0084;
}
}
{
int32_t L_44 = V_0;
V_6 = (bool)((((int32_t)((((int32_t)L_44) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_45 = V_6;
if (!L_45)
{
goto IL_00d6;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_47 = L_46->get_data_1();
int32_t L_48 = V_0;
int32_t L_49 = L_48;
uint32_t L_50 = (L_47)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_49));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_51 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_52 = L_51->get_data_1();
int32_t L_53 = V_0;
int32_t L_54 = L_53;
uint32_t L_55 = (L_52)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_54));
V_7 = (bool)((!(((uint32_t)L_50) >= ((uint32_t)L_55)))? 1 : 0);
bool L_56 = V_7;
if (!L_56)
{
goto IL_00d2;
}
}
{
V_3 = (bool)1;
goto IL_00da;
}
IL_00d2:
{
V_3 = (bool)0;
goto IL_00da;
}
IL_00d6:
{
V_3 = (bool)0;
goto IL_00da;
}
IL_00da:
{
bool L_57 = V_3;
return L_57;
}
}
// System.Boolean Photon.SocketServer.Numeric.BigInteger::op_GreaterThanOrEqual(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t G_B3_0 = 0;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
bool L_2 = BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967(L_0, L_1, /*hidden argument*/NULL);
if (L_2)
{
goto IL_0013;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
bool L_5 = BigInteger_op_GreaterThan_mB3F96B34F601F8C58BC630362E7F2AE1B1116006(L_3, L_4, /*hidden argument*/NULL);
G_B3_0 = ((int32_t)(L_5));
goto IL_0014;
}
IL_0013:
{
G_B3_0 = 1;
}
IL_0014:
{
V_0 = (bool)G_B3_0;
goto IL_0017;
}
IL_0017:
{
bool L_6 = V_0;
return L_6;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::multiByteDivide(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outQuotient2, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outRemainder3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* V_0 = NULL;
int32_t V_1 = 0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* V_2 = NULL;
uint32_t V_3 = 0;
uint32_t V_4 = 0;
int32_t V_5 = 0;
int32_t V_6 = 0;
int32_t V_7 = 0;
int32_t V_8 = 0;
uint64_t V_9 = 0;
uint64_t V_10 = 0;
int32_t V_11 = 0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* V_12 = NULL;
int32_t V_13 = 0;
bool V_14 = false;
int32_t V_15 = 0;
bool V_16 = false;
uint64_t V_17 = 0;
uint64_t V_18 = 0;
uint64_t V_19 = 0;
bool V_20 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_21 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_22 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_23 = NULL;
bool V_24 = false;
bool V_25 = false;
bool V_26 = false;
int32_t V_27 = 0;
bool V_28 = false;
bool V_29 = false;
int32_t V_30 = 0;
bool V_31 = false;
bool V_32 = false;
int32_t V_33 = 0;
bool V_34 = false;
bool V_35 = false;
bool V_36 = false;
bool V_37 = false;
bool V_38 = false;
bool V_39 = false;
int32_t G_B5_0 = 0;
int32_t G_B14_0 = 0;
int32_t G_B42_0 = 0;
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
V_0 = L_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = ___bi10;
int32_t L_2 = L_1->get_dataLength_2();
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_2, (int32_t)1));
int32_t L_3 = V_1;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_4 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)L_3);
V_2 = L_4;
V_3 = ((int32_t)-2147483648LL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_5 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_6 = L_5->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_7 = ___bi21;
int32_t L_8 = L_7->get_dataLength_2();
int32_t L_9 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1));
uint32_t L_10 = (L_6)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_9));
V_4 = L_10;
V_5 = 0;
V_6 = 0;
goto IL_0044;
}
IL_0038:
{
int32_t L_11 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_11, (int32_t)1));
uint32_t L_12 = V_3;
V_3 = ((int32_t)((uint32_t)L_12>>1));
}
IL_0044:
{
uint32_t L_13 = V_3;
if (!L_13)
{
goto IL_0050;
}
}
{
uint32_t L_14 = V_4;
uint32_t L_15 = V_3;
G_B5_0 = ((((int32_t)((int32_t)((int32_t)L_14&(int32_t)L_15))) == ((int32_t)0))? 1 : 0);
goto IL_0051;
}
IL_0050:
{
G_B5_0 = 0;
}
IL_0051:
{
V_14 = (bool)G_B5_0;
bool L_16 = V_14;
if (L_16)
{
goto IL_0038;
}
}
{
V_15 = 0;
goto IL_006f;
}
IL_005c:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_17 = V_2;
int32_t L_18 = V_15;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_19 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_20 = L_19->get_data_1();
int32_t L_21 = V_15;
int32_t L_22 = L_21;
uint32_t L_23 = (L_20)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_22));
(L_17)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18), (uint32_t)L_23);
int32_t L_24 = V_15;
V_15 = ((int32_t)il2cpp_codegen_add((int32_t)L_24, (int32_t)1));
}
IL_006f:
{
int32_t L_25 = V_15;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_26 = ___bi10;
int32_t L_27 = L_26->get_dataLength_2();
V_16 = (bool)((((int32_t)L_25) < ((int32_t)L_27))? 1 : 0);
bool L_28 = V_16;
if (L_28)
{
goto IL_005c;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_29 = V_2;
int32_t L_30 = V_5;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_shiftLeft_mA43634983AAF71B5E3ACACF7595C67AD50EB8677(L_29, L_30, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = ___bi21;
int32_t L_32 = V_5;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6(L_31, L_32, /*hidden argument*/NULL);
___bi21 = L_33;
int32_t L_34 = V_1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_35 = ___bi21;
int32_t L_36 = L_35->get_dataLength_2();
V_7 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_34, (int32_t)L_36));
int32_t L_37 = V_1;
V_8 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_37, (int32_t)1));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_38 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_39 = L_38->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_40 = ___bi21;
int32_t L_41 = L_40->get_dataLength_2();
int32_t L_42 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_41, (int32_t)1));
uint32_t L_43 = (L_39)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_42));
V_9 = (((int64_t)((uint64_t)L_43)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_44 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_45 = L_44->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = ___bi21;
int32_t L_47 = L_46->get_dataLength_2();
int32_t L_48 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_47, (int32_t)2));
uint32_t L_49 = (L_45)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_48));
V_10 = (((int64_t)((uint64_t)L_49)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_50 = ___bi21;
int32_t L_51 = L_50->get_dataLength_2();
V_11 = ((int32_t)il2cpp_codegen_add((int32_t)L_51, (int32_t)1));
int32_t L_52 = V_11;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_53 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)L_52);
V_12 = L_53;
goto IL_0215;
}
IL_00dd:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_54 = V_2;
int32_t L_55 = V_8;
int32_t L_56 = L_55;
uint32_t L_57 = (L_54)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_56));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_58 = V_2;
int32_t L_59 = V_8;
int32_t L_60 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_59, (int32_t)1));
uint32_t L_61 = (L_58)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_60));
V_17 = ((int64_t)il2cpp_codegen_add((int64_t)((int64_t)((int64_t)(((int64_t)((uint64_t)L_57)))<<(int32_t)((int32_t)32))), (int64_t)(((int64_t)((uint64_t)L_61)))));
uint64_t L_62 = V_17;
uint64_t L_63 = V_9;
V_18 = ((int64_t)((uint64_t)(int64_t)L_62/(uint64_t)(int64_t)L_63));
uint64_t L_64 = V_17;
uint64_t L_65 = V_9;
V_19 = ((int64_t)((uint64_t)(int64_t)L_64%(uint64_t)(int64_t)L_65));
V_20 = (bool)0;
goto IL_0158;
}
IL_0103:
{
V_20 = (bool)1;
uint64_t L_66 = V_18;
if ((((int64_t)L_66) == ((int64_t)((int64_t)4294967296LL))))
{
goto IL_012a;
}
}
{
uint64_t L_67 = V_18;
uint64_t L_68 = V_10;
uint64_t L_69 = V_19;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_70 = V_2;
int32_t L_71 = V_8;
int32_t L_72 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_71, (int32_t)2));
uint32_t L_73 = (L_70)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_72));
G_B14_0 = ((!(((uint64_t)((int64_t)il2cpp_codegen_multiply((int64_t)L_67, (int64_t)L_68))) <= ((uint64_t)((int64_t)il2cpp_codegen_add((int64_t)((int64_t)((int64_t)L_69<<(int32_t)((int32_t)32))), (int64_t)(((int64_t)((uint64_t)L_73))))))))? 1 : 0);
goto IL_012b;
}
IL_012a:
{
G_B14_0 = 1;
}
IL_012b:
{
V_24 = (bool)G_B14_0;
bool L_74 = V_24;
if (!L_74)
{
goto IL_0157;
}
}
{
uint64_t L_75 = V_18;
V_18 = ((int64_t)il2cpp_codegen_subtract((int64_t)L_75, (int64_t)(((int64_t)((int64_t)1)))));
uint64_t L_76 = V_19;
uint64_t L_77 = V_9;
V_19 = ((int64_t)il2cpp_codegen_add((int64_t)L_76, (int64_t)L_77));
uint64_t L_78 = V_19;
V_25 = (bool)((!(((uint64_t)L_78) >= ((uint64_t)((int64_t)4294967296LL))))? 1 : 0);
bool L_79 = V_25;
if (!L_79)
{
goto IL_0156;
}
}
{
V_20 = (bool)0;
}
IL_0156:
{
}
IL_0157:
{
}
IL_0158:
{
bool L_80 = V_20;
V_26 = (bool)((((int32_t)L_80) == ((int32_t)0))? 1 : 0);
bool L_81 = V_26;
if (L_81)
{
goto IL_0103;
}
}
{
V_27 = 0;
goto IL_017a;
}
IL_0168:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_82 = V_12;
int32_t L_83 = V_27;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_84 = V_2;
int32_t L_85 = V_8;
int32_t L_86 = V_27;
int32_t L_87 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_85, (int32_t)L_86));
uint32_t L_88 = (L_84)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_87));
(L_82)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_83), (uint32_t)L_88);
int32_t L_89 = V_27;
V_27 = ((int32_t)il2cpp_codegen_add((int32_t)L_89, (int32_t)1));
}
IL_017a:
{
int32_t L_90 = V_27;
int32_t L_91 = V_11;
V_28 = (bool)((((int32_t)L_90) < ((int32_t)L_91))? 1 : 0);
bool L_92 = V_28;
if (L_92)
{
goto IL_0168;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_93 = V_12;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_94 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F(L_94, L_93, /*hidden argument*/NULL);
V_21 = L_94;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_95 = ___bi21;
uint64_t L_96 = V_18;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_97 = BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E(L_96, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_98 = BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D(L_95, L_97, /*hidden argument*/NULL);
V_22 = L_98;
goto IL_01b3;
}
IL_01a0:
{
uint64_t L_99 = V_18;
V_18 = ((int64_t)il2cpp_codegen_subtract((int64_t)L_99, (int64_t)(((int64_t)((int64_t)1)))));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_100 = V_22;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_101 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_102 = BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3(L_100, L_101, /*hidden argument*/NULL);
V_22 = L_102;
}
IL_01b3:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_103 = V_22;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_104 = V_21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
bool L_105 = BigInteger_op_GreaterThan_mB3F96B34F601F8C58BC630362E7F2AE1B1116006(L_103, L_104, /*hidden argument*/NULL);
V_29 = L_105;
bool L_106 = V_29;
if (L_106)
{
goto IL_01a0;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_107 = V_21;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_108 = V_22;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_109 = BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3(L_107, L_108, /*hidden argument*/NULL);
V_23 = L_109;
V_30 = 0;
goto IL_01f0;
}
IL_01d2:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_110 = V_2;
int32_t L_111 = V_8;
int32_t L_112 = V_30;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_113 = V_23;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_114 = L_113->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_115 = ___bi21;
int32_t L_116 = L_115->get_dataLength_2();
int32_t L_117 = V_30;
int32_t L_118 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_116, (int32_t)L_117));
uint32_t L_119 = (L_114)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_118));
(L_110)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_111, (int32_t)L_112))), (uint32_t)L_119);
int32_t L_120 = V_30;
V_30 = ((int32_t)il2cpp_codegen_add((int32_t)L_120, (int32_t)1));
}
IL_01f0:
{
int32_t L_121 = V_30;
int32_t L_122 = V_11;
V_31 = (bool)((((int32_t)L_121) < ((int32_t)L_122))? 1 : 0);
bool L_123 = V_31;
if (L_123)
{
goto IL_01d2;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_124 = V_0;
int32_t L_125 = V_6;
int32_t L_126 = L_125;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_126, (int32_t)1));
uint64_t L_127 = V_18;
(L_124)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_126), (uint32_t)(((int32_t)((uint32_t)L_127))));
int32_t L_128 = V_8;
V_8 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_128, (int32_t)1));
int32_t L_129 = V_7;
V_7 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_129, (int32_t)1));
}
IL_0215:
{
int32_t L_130 = V_7;
V_32 = (bool)((((int32_t)L_130) > ((int32_t)0))? 1 : 0);
bool L_131 = V_32;
if (L_131)
{
goto IL_00dd;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_132 = ___outQuotient2;
int32_t L_133 = V_6;
L_132->set_dataLength_2(L_133);
V_13 = 0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_134 = ___outQuotient2;
int32_t L_135 = L_134->get_dataLength_2();
V_33 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_135, (int32_t)1));
goto IL_0253;
}
IL_023a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_136 = ___outQuotient2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_137 = L_136->get_data_1();
int32_t L_138 = V_13;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_139 = V_0;
int32_t L_140 = V_33;
int32_t L_141 = L_140;
uint32_t L_142 = (L_139)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_141));
(L_137)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_138), (uint32_t)L_142);
int32_t L_143 = V_33;
V_33 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_143, (int32_t)1));
int32_t L_144 = V_13;
V_13 = ((int32_t)il2cpp_codegen_add((int32_t)L_144, (int32_t)1));
}
IL_0253:
{
int32_t L_145 = V_33;
V_34 = (bool)((((int32_t)((((int32_t)L_145) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_146 = V_34;
if (L_146)
{
goto IL_023a;
}
}
{
goto IL_0273;
}
IL_0263:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_147 = ___outQuotient2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_148 = L_147->get_data_1();
int32_t L_149 = V_13;
(L_148)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_149), (uint32_t)0);
int32_t L_150 = V_13;
V_13 = ((int32_t)il2cpp_codegen_add((int32_t)L_150, (int32_t)1));
}
IL_0273:
{
int32_t L_151 = V_13;
V_35 = (bool)((((int32_t)L_151) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_152 = V_35;
if (L_152)
{
goto IL_0263;
}
}
{
goto IL_028f;
}
IL_0281:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_153 = ___outQuotient2;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_154 = L_153;
int32_t L_155 = L_154->get_dataLength_2();
L_154->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_155, (int32_t)1)));
}
IL_028f:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_156 = ___outQuotient2;
int32_t L_157 = L_156->get_dataLength_2();
if ((((int32_t)L_157) <= ((int32_t)1)))
{
goto IL_02ac;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_158 = ___outQuotient2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_159 = L_158->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_160 = ___outQuotient2;
int32_t L_161 = L_160->get_dataLength_2();
int32_t L_162 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_161, (int32_t)1));
uint32_t L_163 = (L_159)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_162));
G_B42_0 = ((((int32_t)L_163) == ((int32_t)0))? 1 : 0);
goto IL_02ad;
}
IL_02ac:
{
G_B42_0 = 0;
}
IL_02ad:
{
V_36 = (bool)G_B42_0;
bool L_164 = V_36;
if (L_164)
{
goto IL_0281;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_165 = ___outQuotient2;
int32_t L_166 = L_165->get_dataLength_2();
V_37 = (bool)((((int32_t)L_166) == ((int32_t)0))? 1 : 0);
bool L_167 = V_37;
if (!L_167)
{
goto IL_02c9;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_168 = ___outQuotient2;
L_168->set_dataLength_2(1);
}
IL_02c9:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_169 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_170 = V_2;
int32_t L_171 = V_5;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
int32_t L_172 = BigInteger_shiftRight_m00A521D4E5F2DCA3462D793A6F5B3620551DA70A(L_170, L_171, /*hidden argument*/NULL);
L_169->set_dataLength_2(L_172);
V_13 = 0;
goto IL_02ef;
}
IL_02dc:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_173 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_174 = L_173->get_data_1();
int32_t L_175 = V_13;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_176 = V_2;
int32_t L_177 = V_13;
int32_t L_178 = L_177;
uint32_t L_179 = (L_176)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_178));
(L_174)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_175), (uint32_t)L_179);
int32_t L_180 = V_13;
V_13 = ((int32_t)il2cpp_codegen_add((int32_t)L_180, (int32_t)1));
}
IL_02ef:
{
int32_t L_181 = V_13;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_182 = ___outRemainder3;
int32_t L_183 = L_182->get_dataLength_2();
V_38 = (bool)((((int32_t)L_181) < ((int32_t)L_183))? 1 : 0);
bool L_184 = V_38;
if (L_184)
{
goto IL_02dc;
}
}
{
goto IL_0311;
}
IL_0301:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_185 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_186 = L_185->get_data_1();
int32_t L_187 = V_13;
(L_186)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_187), (uint32_t)0);
int32_t L_188 = V_13;
V_13 = ((int32_t)il2cpp_codegen_add((int32_t)L_188, (int32_t)1));
}
IL_0311:
{
int32_t L_189 = V_13;
V_39 = (bool)((((int32_t)L_189) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_190 = V_39;
if (L_190)
{
goto IL_0301;
}
}
{
return;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::singleByteDivide(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outQuotient2, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___outRemainder3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* V_0 = NULL;
int32_t V_1 = 0;
uint64_t V_2 = 0;
int32_t V_3 = 0;
uint64_t V_4 = 0;
int32_t V_5 = 0;
int32_t V_6 = 0;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
uint64_t V_10 = 0;
uint64_t V_11 = 0;
bool V_12 = false;
int32_t V_13 = 0;
bool V_14 = false;
bool V_15 = false;
bool V_16 = false;
bool V_17 = false;
bool V_18 = false;
int32_t G_B8_0 = 0;
int32_t G_B25_0 = 0;
int32_t G_B33_0 = 0;
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_0 = (UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB*)SZArrayNew(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB_il2cpp_TypeInfo_var, (uint32_t)((int32_t)70));
V_0 = L_0;
V_1 = 0;
V_6 = 0;
goto IL_0028;
}
IL_0010:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_2 = L_1->get_data_1();
int32_t L_3 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_5 = L_4->get_data_1();
int32_t L_6 = V_6;
int32_t L_7 = L_6;
uint32_t L_8 = (L_5)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_7));
(L_2)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3), (uint32_t)L_8);
int32_t L_9 = V_6;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_9, (int32_t)1));
}
IL_0028:
{
int32_t L_10 = V_6;
V_7 = (bool)((((int32_t)L_10) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_11 = V_7;
if (L_11)
{
goto IL_0010;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_12 = ___outRemainder3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_13 = ___bi10;
int32_t L_14 = L_13->get_dataLength_2();
L_12->set_dataLength_2(L_14);
goto IL_0050;
}
IL_0042:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_15 = ___outRemainder3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_16 = L_15;
int32_t L_17 = L_16->get_dataLength_2();
L_16->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_17, (int32_t)1)));
}
IL_0050:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_18 = ___outRemainder3;
int32_t L_19 = L_18->get_dataLength_2();
if ((((int32_t)L_19) <= ((int32_t)1)))
{
goto IL_006d;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_20 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_21 = L_20->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = ___outRemainder3;
int32_t L_23 = L_22->get_dataLength_2();
int32_t L_24 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_23, (int32_t)1));
uint32_t L_25 = (L_21)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_24));
G_B8_0 = ((((int32_t)L_25) == ((int32_t)0))? 1 : 0);
goto IL_006e;
}
IL_006d:
{
G_B8_0 = 0;
}
IL_006e:
{
V_8 = (bool)G_B8_0;
bool L_26 = V_8;
if (L_26)
{
goto IL_0042;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_27 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_28 = L_27->get_data_1();
int32_t L_29 = 0;
uint32_t L_30 = (L_28)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_29));
V_2 = (((int64_t)((uint64_t)L_30)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = ___outRemainder3;
int32_t L_32 = L_31->get_dataLength_2();
V_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_32, (int32_t)1));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_34 = L_33->get_data_1();
int32_t L_35 = V_3;
int32_t L_36 = L_35;
uint32_t L_37 = (L_34)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_36));
V_4 = (((int64_t)((uint64_t)L_37)));
uint64_t L_38 = V_4;
uint64_t L_39 = V_2;
V_9 = (bool)((((int32_t)((!(((uint64_t)L_38) >= ((uint64_t)L_39)))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_40 = V_9;
if (!L_40)
{
goto IL_00bf;
}
}
{
uint64_t L_41 = V_4;
uint64_t L_42 = V_2;
V_10 = ((int64_t)((uint64_t)(int64_t)L_41/(uint64_t)(int64_t)L_42));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_43 = V_0;
int32_t L_44 = V_1;
int32_t L_45 = L_44;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_45, (int32_t)1));
uint64_t L_46 = V_10;
(L_43)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_45), (uint32_t)(((int32_t)((uint32_t)L_46))));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_47 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_48 = L_47->get_data_1();
int32_t L_49 = V_3;
uint64_t L_50 = V_4;
uint64_t L_51 = V_2;
(L_48)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_49), (uint32_t)(((int32_t)((uint32_t)((int64_t)((uint64_t)(int64_t)L_50%(uint64_t)(int64_t)L_51))))));
}
IL_00bf:
{
int32_t L_52 = V_3;
V_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_52, (int32_t)1));
goto IL_010d;
}
IL_00c5:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_53 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_54 = L_53->get_data_1();
int32_t L_55 = V_3;
int32_t L_56 = ((int32_t)il2cpp_codegen_add((int32_t)L_55, (int32_t)1));
uint32_t L_57 = (L_54)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_56));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_58 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_59 = L_58->get_data_1();
int32_t L_60 = V_3;
int32_t L_61 = L_60;
uint32_t L_62 = (L_59)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_61));
V_4 = ((int64_t)il2cpp_codegen_add((int64_t)((int64_t)((int64_t)(((int64_t)((uint64_t)L_57)))<<(int32_t)((int32_t)32))), (int64_t)(((int64_t)((uint64_t)L_62)))));
uint64_t L_63 = V_4;
uint64_t L_64 = V_2;
V_11 = ((int64_t)((uint64_t)(int64_t)L_63/(uint64_t)(int64_t)L_64));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_65 = V_0;
int32_t L_66 = V_1;
int32_t L_67 = L_66;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_67, (int32_t)1));
uint64_t L_68 = V_11;
(L_65)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_67), (uint32_t)(((int32_t)((uint32_t)L_68))));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_69 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_70 = L_69->get_data_1();
int32_t L_71 = V_3;
(L_70)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_71, (int32_t)1))), (uint32_t)0);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_72 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_73 = L_72->get_data_1();
int32_t L_74 = V_3;
int32_t L_75 = L_74;
V_3 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_75, (int32_t)1));
uint64_t L_76 = V_4;
uint64_t L_77 = V_2;
(L_73)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_75), (uint32_t)(((int32_t)((uint32_t)((int64_t)((uint64_t)(int64_t)L_76%(uint64_t)(int64_t)L_77))))));
}
IL_010d:
{
int32_t L_78 = V_3;
V_12 = (bool)((((int32_t)((((int32_t)L_78) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_79 = V_12;
if (L_79)
{
goto IL_00c5;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_80 = ___outQuotient2;
int32_t L_81 = V_1;
L_80->set_dataLength_2(L_81);
V_5 = 0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_82 = ___outQuotient2;
int32_t L_83 = L_82->get_dataLength_2();
V_13 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_83, (int32_t)1));
goto IL_0149;
}
IL_0130:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_84 = ___outQuotient2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_85 = L_84->get_data_1();
int32_t L_86 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_87 = V_0;
int32_t L_88 = V_13;
int32_t L_89 = L_88;
uint32_t L_90 = (L_87)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_89));
(L_85)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_86), (uint32_t)L_90);
int32_t L_91 = V_13;
V_13 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_91, (int32_t)1));
int32_t L_92 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_92, (int32_t)1));
}
IL_0149:
{
int32_t L_93 = V_13;
V_14 = (bool)((((int32_t)((((int32_t)L_93) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_94 = V_14;
if (L_94)
{
goto IL_0130;
}
}
{
goto IL_0169;
}
IL_0159:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_95 = ___outQuotient2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_96 = L_95->get_data_1();
int32_t L_97 = V_5;
(L_96)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_97), (uint32_t)0);
int32_t L_98 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_98, (int32_t)1));
}
IL_0169:
{
int32_t L_99 = V_5;
V_15 = (bool)((((int32_t)L_99) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_100 = V_15;
if (L_100)
{
goto IL_0159;
}
}
{
goto IL_0185;
}
IL_0177:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_101 = ___outQuotient2;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_102 = L_101;
int32_t L_103 = L_102->get_dataLength_2();
L_102->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_103, (int32_t)1)));
}
IL_0185:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_104 = ___outQuotient2;
int32_t L_105 = L_104->get_dataLength_2();
if ((((int32_t)L_105) <= ((int32_t)1)))
{
goto IL_01a2;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_106 = ___outQuotient2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_107 = L_106->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_108 = ___outQuotient2;
int32_t L_109 = L_108->get_dataLength_2();
int32_t L_110 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_109, (int32_t)1));
uint32_t L_111 = (L_107)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_110));
G_B25_0 = ((((int32_t)L_111) == ((int32_t)0))? 1 : 0);
goto IL_01a3;
}
IL_01a2:
{
G_B25_0 = 0;
}
IL_01a3:
{
V_16 = (bool)G_B25_0;
bool L_112 = V_16;
if (L_112)
{
goto IL_0177;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_113 = ___outQuotient2;
int32_t L_114 = L_113->get_dataLength_2();
V_17 = (bool)((((int32_t)L_114) == ((int32_t)0))? 1 : 0);
bool L_115 = V_17;
if (!L_115)
{
goto IL_01bf;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_116 = ___outQuotient2;
L_116->set_dataLength_2(1);
}
IL_01bf:
{
goto IL_01cf;
}
IL_01c1:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_117 = ___outRemainder3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_118 = L_117;
int32_t L_119 = L_118->get_dataLength_2();
L_118->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_119, (int32_t)1)));
}
IL_01cf:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_120 = ___outRemainder3;
int32_t L_121 = L_120->get_dataLength_2();
if ((((int32_t)L_121) <= ((int32_t)1)))
{
goto IL_01ec;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_122 = ___outRemainder3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_123 = L_122->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_124 = ___outRemainder3;
int32_t L_125 = L_124->get_dataLength_2();
int32_t L_126 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_125, (int32_t)1));
uint32_t L_127 = (L_123)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_126));
G_B33_0 = ((((int32_t)L_127) == ((int32_t)0))? 1 : 0);
goto IL_01ed;
}
IL_01ec:
{
G_B33_0 = 0;
}
IL_01ed:
{
V_18 = (bool)G_B33_0;
bool L_128 = V_18;
if (L_128)
{
goto IL_01c1;
}
}
{
return;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Division(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_1 = NULL;
int32_t V_2 = 0;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_8 = NULL;
bool V_9 = false;
bool V_10 = false;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_0, /*hidden argument*/NULL);
V_0 = L_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_1, /*hidden argument*/NULL);
V_1 = L_1;
V_2 = ((int32_t)69);
V_3 = (bool)0;
V_4 = (bool)0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_3 = L_2->get_data_1();
int32_t L_4 = V_2;
int32_t L_5 = L_4;
uint32_t L_6 = (L_3)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_5));
V_5 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_6&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_7 = V_5;
if (!L_7)
{
goto IL_0039;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = ___bi10;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_9 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_8, /*hidden argument*/NULL);
___bi10 = L_9;
V_4 = (bool)1;
}
IL_0039:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_10 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_11 = L_10->get_data_1();
int32_t L_12 = V_2;
int32_t L_13 = L_12;
uint32_t L_14 = (L_11)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_13));
V_6 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_14&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_15 = V_6;
if (!L_15)
{
goto IL_005c;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_16 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_17 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_16, /*hidden argument*/NULL);
___bi21 = L_17;
V_3 = (bool)1;
}
IL_005c:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_18 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_19 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
bool L_20 = BigInteger_op_LessThan_mB222680D4D19B23782419ADB68687ED8F057BBB4(L_18, L_19, /*hidden argument*/NULL);
V_7 = L_20;
bool L_21 = V_7;
if (!L_21)
{
goto IL_006f;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = V_0;
V_8 = L_22;
goto IL_00b2;
}
IL_006f:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_23 = ___bi21;
int32_t L_24 = L_23->get_dataLength_2();
V_9 = (bool)((((int32_t)L_24) == ((int32_t)1))? 1 : 0);
bool L_25 = V_9;
if (!L_25)
{
goto IL_008b;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_26 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_27 = ___bi21;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_28 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_29 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A(L_26, L_27, L_28, L_29, /*hidden argument*/NULL);
goto IL_0095;
}
IL_008b:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_30 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = ___bi21;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_32 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416(L_30, L_31, L_32, L_33, /*hidden argument*/NULL);
}
IL_0095:
{
bool L_34 = V_4;
bool L_35 = V_3;
V_10 = (bool)((((int32_t)((((int32_t)L_34) == ((int32_t)L_35))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_36 = V_10;
if (!L_36)
{
goto IL_00ad;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_37 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_38 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_37, /*hidden argument*/NULL);
V_8 = L_38;
goto IL_00b2;
}
IL_00ad:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_39 = V_0;
V_8 = L_39;
goto IL_00b2;
}
IL_00b2:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_40 = V_8;
return L_40;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Modulus(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi10, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___bi21, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_1 = NULL;
int32_t V_2 = 0;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_7 = NULL;
bool V_8 = false;
bool V_9 = false;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_0, /*hidden argument*/NULL);
V_0 = L_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA(L_2, L_1, /*hidden argument*/NULL);
V_1 = L_2;
V_2 = ((int32_t)69);
V_3 = (bool)0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = ___bi10;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_4 = L_3->get_data_1();
int32_t L_5 = V_2;
int32_t L_6 = L_5;
uint32_t L_7 = (L_4)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_6));
V_4 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_7&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_8 = V_4;
if (!L_8)
{
goto IL_0036;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_9 = ___bi10;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_10 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_9, /*hidden argument*/NULL);
___bi10 = L_10;
V_3 = (bool)1;
}
IL_0036:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_11 = ___bi21;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_12 = L_11->get_data_1();
int32_t L_13 = V_2;
int32_t L_14 = L_13;
uint32_t L_15 = (L_12)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_14));
V_5 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_15&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_16 = V_5;
if (!L_16)
{
goto IL_0055;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_17 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_18 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_17, /*hidden argument*/NULL);
___bi21 = L_18;
}
IL_0055:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_19 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_20 = ___bi21;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
bool L_21 = BigInteger_op_LessThan_mB222680D4D19B23782419ADB68687ED8F057BBB4(L_19, L_20, /*hidden argument*/NULL);
V_6 = L_21;
bool L_22 = V_6;
if (!L_22)
{
goto IL_0068;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_23 = V_1;
V_7 = L_23;
goto IL_00a4;
}
IL_0068:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = ___bi21;
int32_t L_25 = L_24->get_dataLength_2();
V_8 = (bool)((((int32_t)L_25) == ((int32_t)1))? 1 : 0);
bool L_26 = V_8;
if (!L_26)
{
goto IL_0084;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_27 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_28 = ___bi21;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_29 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_30 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A(L_27, L_28, L_29, L_30, /*hidden argument*/NULL);
goto IL_008e;
}
IL_0084:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = ___bi10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_32 = ___bi21;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_34 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416(L_31, L_32, L_33, L_34, /*hidden argument*/NULL);
}
IL_008e:
{
bool L_35 = V_3;
V_9 = L_35;
bool L_36 = V_9;
if (!L_36)
{
goto IL_009f;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_37 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_38 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_37, /*hidden argument*/NULL);
V_7 = L_38;
goto IL_00a4;
}
IL_009f:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_39 = V_1;
V_7 = L_39;
goto IL_00a4;
}
IL_00a4:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_40 = V_7;
return L_40;
}
}
// System.String Photon.SocketServer.Numeric.BigInteger::ToString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* BigInteger_ToString_mB4BF88746F9BA518365B1E00145221F93061E3FA (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method)
{
String_t* V_0 = NULL;
{
String_t* L_0 = BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5(__this, ((int32_t)10), /*hidden argument*/NULL);
V_0 = L_0;
goto IL_000c;
}
IL_000c:
{
String_t* L_1 = V_0;
return L_1;
}
}
// System.String Photon.SocketServer.Numeric.BigInteger::ToString(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, int32_t ___radix0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
String_t* V_1 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_2 = NULL;
bool V_3 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_4 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_5 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_6 = NULL;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
Il2CppChar V_11 = 0x0;
bool V_12 = false;
bool V_13 = false;
String_t* V_14 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B3_0 = 0;
int32_t G_B13_0 = 0;
int32_t G_B24_0 = 0;
int32_t G_B26_0 = 0;
{
int32_t L_0 = ___radix0;
if ((((int32_t)L_0) < ((int32_t)2)))
{
goto IL_000c;
}
}
{
int32_t L_1 = ___radix0;
G_B3_0 = ((((int32_t)L_1) > ((int32_t)((int32_t)36)))? 1 : 0);
goto IL_000d;
}
IL_000c:
{
G_B3_0 = 1;
}
IL_000d:
{
V_7 = (bool)G_B3_0;
bool L_2 = V_7;
if (!L_2)
{
goto IL_001e;
}
}
{
ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * L_3 = (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 *)il2cpp_codegen_object_new(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var);
ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7(L_3, _stringLiteral692207AB290401C1AF916CD5E76704398E27712E, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_3, NULL, BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5_RuntimeMethod_var);
}
IL_001e:
{
V_0 = _stringLiteral80256F39A9D308650AC90D9BE9A72A9562454574;
V_1 = _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
V_2 = __this;
V_3 = (bool)0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = V_2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_5 = L_4->get_data_1();
int32_t L_6 = ((int32_t)69);
uint32_t L_7 = (L_5)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_6));
V_8 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_7&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_8 = V_8;
if (!L_8)
{
goto IL_005a;
}
}
{
V_3 = (bool)1;
}
IL_0049:
try
{ // begin try (depth: 1)
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_9 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_10 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_9, /*hidden argument*/NULL);
V_2 = L_10;
goto IL_0059;
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0054;
throw e;
}
CATCH_0054:
{ // begin catch(System.Exception)
goto IL_0059;
} // end catch (depth: 1)
IL_0059:
{
}
IL_005a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_11 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_11, /*hidden argument*/NULL);
V_4 = L_11;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_12 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_12, /*hidden argument*/NULL);
V_5 = L_12;
int32_t L_13 = ___radix0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_14 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C(L_14, (((int64_t)((int64_t)L_13))), /*hidden argument*/NULL);
V_6 = L_14;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_15 = V_2;
int32_t L_16 = L_15->get_dataLength_2();
if ((!(((uint32_t)L_16) == ((uint32_t)1))))
{
goto IL_0087;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_17 = V_2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_18 = L_17->get_data_1();
int32_t L_19 = 0;
uint32_t L_20 = (L_18)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_19));
G_B13_0 = ((((int32_t)L_20) == ((int32_t)0))? 1 : 0);
goto IL_0088;
}
IL_0087:
{
G_B13_0 = 0;
}
IL_0088:
{
V_9 = (bool)G_B13_0;
bool L_21 = V_9;
if (!L_21)
{
goto IL_0099;
}
}
{
V_1 = _stringLiteralB6589FC6AB0DC82CF12099D1C2D40AB994E8410C;
goto IL_013e;
}
IL_0099:
{
goto IL_00fe;
}
IL_009c:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = V_2;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_23 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = V_4;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_25 = V_5;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A(L_22, L_23, L_24, L_25, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_26 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_27 = L_26->get_data_1();
int32_t L_28 = 0;
uint32_t L_29 = (L_27)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_28));
V_10 = (bool)((!(((uint32_t)L_29) >= ((uint32_t)((int32_t)10))))? 1 : 0);
bool L_30 = V_10;
if (!L_30)
{
goto IL_00d8;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_32 = L_31->get_data_1();
String_t* L_33 = UInt32_ToString_m7D8A934AF1D74C5C8194D1556AA71BBA0D4600F2((uint32_t*)((L_32)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(0))), /*hidden argument*/NULL);
String_t* L_34 = V_1;
String_t* L_35 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(L_33, L_34, /*hidden argument*/NULL);
V_1 = L_35;
goto IL_00fa;
}
IL_00d8:
{
String_t* L_36 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_37 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_38 = L_37->get_data_1();
int32_t L_39 = 0;
uint32_t L_40 = (L_38)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_39));
Il2CppChar L_41 = String_get_Chars_m14308AC3B95F8C1D9F1D1055B116B37D595F1D96(L_36, ((int32_t)il2cpp_codegen_subtract((int32_t)L_40, (int32_t)((int32_t)10))), /*hidden argument*/NULL);
V_11 = L_41;
String_t* L_42 = Char_ToString_mA42A88FEBA41B72D48BB24373E3101B7A91B6FD8((Il2CppChar*)(&V_11), /*hidden argument*/NULL);
String_t* L_43 = V_1;
String_t* L_44 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(L_42, L_43, /*hidden argument*/NULL);
V_1 = L_44;
}
IL_00fa:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_45 = V_4;
V_2 = L_45;
}
IL_00fe:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = V_2;
int32_t L_47 = L_46->get_dataLength_2();
if ((((int32_t)L_47) > ((int32_t)1)))
{
goto IL_0120;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = V_2;
int32_t L_49 = L_48->get_dataLength_2();
if ((!(((uint32_t)L_49) == ((uint32_t)1))))
{
goto IL_011d;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_50 = V_2;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_51 = L_50->get_data_1();
int32_t L_52 = 0;
uint32_t L_53 = (L_51)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_52));
G_B24_0 = ((!(((uint32_t)L_53) <= ((uint32_t)0)))? 1 : 0);
goto IL_011e;
}
IL_011d:
{
G_B24_0 = 0;
}
IL_011e:
{
G_B26_0 = G_B24_0;
goto IL_0121;
}
IL_0120:
{
G_B26_0 = 1;
}
IL_0121:
{
V_12 = (bool)G_B26_0;
bool L_54 = V_12;
if (L_54)
{
goto IL_009c;
}
}
{
bool L_55 = V_3;
V_13 = L_55;
bool L_56 = V_13;
if (!L_56)
{
goto IL_013d;
}
}
{
String_t* L_57 = V_1;
String_t* L_58 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteral3BC15C8AAE3E4124DD409035F32EA2FD6835EFC9, L_57, /*hidden argument*/NULL);
V_1 = L_58;
}
IL_013d:
{
}
IL_013e:
{
String_t* L_59 = V_1;
V_14 = L_59;
goto IL_0143;
}
IL_0143:
{
String_t* L_60 = V_14;
return L_60;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::ModPow(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___exp0, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___n1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_1 = NULL;
bool V_2 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_3 = NULL;
int32_t V_4 = 0;
int32_t V_5 = 0;
int32_t V_6 = 0;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
int32_t V_10 = 0;
uint32_t V_11 = 0;
int32_t V_12 = 0;
bool V_13 = false;
bool V_14 = false;
bool V_15 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_16 = NULL;
bool V_17 = false;
bool V_18 = false;
bool V_19 = false;
bool V_20 = false;
int32_t G_B14_0 = 0;
int32_t G_B18_0 = 0;
int32_t G_B30_0 = 0;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___exp0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_1 = L_0->get_data_1();
int32_t L_2 = ((int32_t)69);
uint32_t L_3 = (L_1)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_2));
V_7 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_3&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_4 = V_7;
if (!L_4)
{
goto IL_0024;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_5 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_5, _stringLiteralDD30075EF7818D67CCFDD3977372CDA880596961, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_5, NULL, BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3_RuntimeMethod_var);
}
IL_0024:
{
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_6 = BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60(1, /*hidden argument*/NULL);
V_0 = L_6;
V_2 = (bool)0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_7 = __this->get_data_1();
int32_t L_8 = ((int32_t)69);
uint32_t L_9 = (L_7)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_8));
V_8 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_9&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_10 = V_8;
if (!L_10)
{
goto IL_0058;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_11 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(__this, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_12 = ___n1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_13 = BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3(L_11, L_12, /*hidden argument*/NULL);
V_1 = L_13;
V_2 = (bool)1;
goto IL_0060;
}
IL_0058:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_14 = ___n1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_15 = BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3(__this, L_14, /*hidden argument*/NULL);
V_1 = L_15;
}
IL_0060:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_16 = ___n1;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_17 = L_16->get_data_1();
int32_t L_18 = ((int32_t)69);
uint32_t L_19 = (L_17)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18));
V_9 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_19&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_20 = V_9;
if (!L_20)
{
goto IL_0080;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_21 = ___n1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_22 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_21, /*hidden argument*/NULL);
___n1 = L_22;
}
IL_0080:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_23 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_23, /*hidden argument*/NULL);
V_3 = L_23;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = ___n1;
int32_t L_25 = L_24->get_dataLength_2();
V_4 = ((int32_t)((int32_t)L_25<<(int32_t)1));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_26 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_27 = L_26->get_data_1();
int32_t L_28 = V_4;
(L_27)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_28), (uint32_t)1);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_29 = V_3;
int32_t L_30 = V_4;
L_29->set_dataLength_2(((int32_t)il2cpp_codegen_add((int32_t)L_30, (int32_t)1)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_32 = ___n1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87(L_31, L_32, /*hidden argument*/NULL);
V_3 = L_33;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_34 = ___exp0;
int32_t L_35 = BigInteger_bitCount_m496893A7F384B4DFFD4492EA46C62A45E8F4FC69(L_34, /*hidden argument*/NULL);
V_5 = L_35;
V_6 = 0;
V_10 = 0;
goto IL_017e;
}
IL_00bf:
{
V_11 = 1;
V_12 = 0;
goto IL_0168;
}
IL_00cb:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_36 = ___exp0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_37 = L_36->get_data_1();
int32_t L_38 = V_10;
int32_t L_39 = L_38;
uint32_t L_40 = (L_37)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_39));
uint32_t L_41 = V_11;
V_13 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_40&(int32_t)L_41))) <= ((uint32_t)0)))? 1 : 0);
bool L_42 = V_13;
if (!L_42)
{
goto IL_00f1;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_43 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_44 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_45 = BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D(L_43, L_44, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_46 = ___n1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_47 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D(__this, L_45, L_46, L_47, /*hidden argument*/NULL);
V_0 = L_48;
}
IL_00f1:
{
uint32_t L_49 = V_11;
V_11 = ((int32_t)((int32_t)L_49<<(int32_t)1));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_50 = V_1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_51 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_52 = BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D(L_50, L_51, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_53 = ___n1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_54 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_55 = BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D(__this, L_52, L_53, L_54, /*hidden argument*/NULL);
V_1 = L_55;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_56 = V_1;
int32_t L_57 = L_56->get_dataLength_2();
if ((!(((uint32_t)L_57) == ((uint32_t)1))))
{
goto IL_011d;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_58 = V_1;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_59 = L_58->get_data_1();
int32_t L_60 = 0;
uint32_t L_61 = (L_59)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_60));
G_B14_0 = ((((int32_t)L_61) == ((int32_t)1))? 1 : 0);
goto IL_011e;
}
IL_011d:
{
G_B14_0 = 0;
}
IL_011e:
{
V_14 = (bool)G_B14_0;
bool L_62 = V_14;
if (!L_62)
{
goto IL_014d;
}
}
{
bool L_63 = V_2;
if (!L_63)
{
goto IL_0137;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_64 = ___exp0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_65 = L_64->get_data_1();
int32_t L_66 = 0;
uint32_t L_67 = (L_65)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_66));
G_B18_0 = ((!(((uint32_t)((int32_t)((int32_t)L_67&(int32_t)1))) <= ((uint32_t)0)))? 1 : 0);
goto IL_0138;
}
IL_0137:
{
G_B18_0 = 0;
}
IL_0138:
{
V_15 = (bool)G_B18_0;
bool L_68 = V_15;
if (!L_68)
{
goto IL_0148;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_69 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_70 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_69, /*hidden argument*/NULL);
V_16 = L_70;
goto IL_01b9;
}
IL_0148:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_71 = V_0;
V_16 = L_71;
goto IL_01b9;
}
IL_014d:
{
int32_t L_72 = V_6;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_72, (int32_t)1));
int32_t L_73 = V_6;
int32_t L_74 = V_5;
V_17 = (bool)((((int32_t)L_73) == ((int32_t)L_74))? 1 : 0);
bool L_75 = V_17;
if (!L_75)
{
goto IL_0161;
}
}
{
goto IL_0177;
}
IL_0161:
{
int32_t L_76 = V_12;
V_12 = ((int32_t)il2cpp_codegen_add((int32_t)L_76, (int32_t)1));
}
IL_0168:
{
int32_t L_77 = V_12;
V_18 = (bool)((((int32_t)L_77) < ((int32_t)((int32_t)32)))? 1 : 0);
bool L_78 = V_18;
if (L_78)
{
goto IL_00cb;
}
}
IL_0177:
{
int32_t L_79 = V_10;
V_10 = ((int32_t)il2cpp_codegen_add((int32_t)L_79, (int32_t)1));
}
IL_017e:
{
int32_t L_80 = V_10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_81 = ___exp0;
int32_t L_82 = L_81->get_dataLength_2();
V_19 = (bool)((((int32_t)L_80) < ((int32_t)L_82))? 1 : 0);
bool L_83 = V_19;
if (L_83)
{
goto IL_00bf;
}
}
{
bool L_84 = V_2;
if (!L_84)
{
goto IL_01a3;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_85 = ___exp0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_86 = L_85->get_data_1();
int32_t L_87 = 0;
uint32_t L_88 = (L_86)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_87));
G_B30_0 = ((!(((uint32_t)((int32_t)((int32_t)L_88&(int32_t)1))) <= ((uint32_t)0)))? 1 : 0);
goto IL_01a4;
}
IL_01a3:
{
G_B30_0 = 0;
}
IL_01a4:
{
V_20 = (bool)G_B30_0;
bool L_89 = V_20;
if (!L_89)
{
goto IL_01b4;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_90 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_91 = BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784(L_90, /*hidden argument*/NULL);
V_16 = L_91;
goto IL_01b9;
}
IL_01b4:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_92 = V_0;
V_16 = L_92;
goto IL_01b9;
}
IL_01b9:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_93 = V_16;
return L_93;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::BarrettReduction(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___x0, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___n1, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___constant2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
int32_t V_2 = 0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_3 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_4 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_5 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_6 = NULL;
int32_t V_7 = 0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_8 = NULL;
int32_t V_9 = 0;
int32_t V_10 = 0;
bool V_11 = false;
bool V_12 = false;
int32_t V_13 = 0;
int32_t V_14 = 0;
bool V_15 = false;
bool V_16 = false;
int32_t V_17 = 0;
bool V_18 = false;
int32_t V_19 = 0;
uint64_t V_20 = 0;
int32_t V_21 = 0;
bool V_22 = false;
int32_t V_23 = 0;
uint64_t V_24 = 0;
bool V_25 = false;
bool V_26 = false;
bool V_27 = false;
bool V_28 = false;
bool V_29 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_30 = NULL;
bool V_31 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_32 = NULL;
int32_t G_B13_0 = 0;
int32_t G_B24_0 = 0;
int32_t G_B35_0 = 0;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___n1;
int32_t L_1 = L_0->get_dataLength_2();
V_0 = L_1;
int32_t L_2 = V_0;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_2, (int32_t)1));
int32_t L_3 = V_0;
V_2 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_3, (int32_t)1));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_4, /*hidden argument*/NULL);
V_3 = L_4;
int32_t L_5 = V_2;
V_9 = L_5;
V_10 = 0;
goto IL_003c;
}
IL_001e:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_6 = V_3;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_7 = L_6->get_data_1();
int32_t L_8 = V_10;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_9 = ___x0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_10 = L_9->get_data_1();
int32_t L_11 = V_9;
int32_t L_12 = L_11;
uint32_t L_13 = (L_10)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_12));
(L_7)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_8), (uint32_t)L_13);
int32_t L_14 = V_9;
V_9 = ((int32_t)il2cpp_codegen_add((int32_t)L_14, (int32_t)1));
int32_t L_15 = V_10;
V_10 = ((int32_t)il2cpp_codegen_add((int32_t)L_15, (int32_t)1));
}
IL_003c:
{
int32_t L_16 = V_9;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_17 = ___x0;
int32_t L_18 = L_17->get_dataLength_2();
V_11 = (bool)((((int32_t)L_16) < ((int32_t)L_18))? 1 : 0);
bool L_19 = V_11;
if (L_19)
{
goto IL_001e;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_20 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_21 = ___x0;
int32_t L_22 = L_21->get_dataLength_2();
int32_t L_23 = V_2;
L_20->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_22, (int32_t)L_23)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_24 = V_3;
int32_t L_25 = L_24->get_dataLength_2();
V_12 = (bool)((((int32_t)((((int32_t)L_25) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_26 = V_12;
if (!L_26)
{
goto IL_0073;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_27 = V_3;
L_27->set_dataLength_2(1);
}
IL_0073:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_28 = V_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_29 = ___constant2;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_30 = BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D(L_28, L_29, /*hidden argument*/NULL);
V_4 = L_30;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_31 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_31, /*hidden argument*/NULL);
V_5 = L_31;
int32_t L_32 = V_1;
V_13 = L_32;
V_14 = 0;
goto IL_00ab;
}
IL_008b:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_33 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_34 = L_33->get_data_1();
int32_t L_35 = V_14;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_36 = V_4;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_37 = L_36->get_data_1();
int32_t L_38 = V_13;
int32_t L_39 = L_38;
uint32_t L_40 = (L_37)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_39));
(L_34)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_35), (uint32_t)L_40);
int32_t L_41 = V_13;
V_13 = ((int32_t)il2cpp_codegen_add((int32_t)L_41, (int32_t)1));
int32_t L_42 = V_14;
V_14 = ((int32_t)il2cpp_codegen_add((int32_t)L_42, (int32_t)1));
}
IL_00ab:
{
int32_t L_43 = V_13;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_44 = V_4;
int32_t L_45 = L_44->get_dataLength_2();
V_15 = (bool)((((int32_t)L_43) < ((int32_t)L_45))? 1 : 0);
bool L_46 = V_15;
if (L_46)
{
goto IL_008b;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_47 = V_5;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_48 = V_4;
int32_t L_49 = L_48->get_dataLength_2();
int32_t L_50 = V_1;
L_47->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)L_50)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_51 = V_5;
int32_t L_52 = L_51->get_dataLength_2();
V_16 = (bool)((((int32_t)((((int32_t)L_52) > ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_53 = V_16;
if (!L_53)
{
goto IL_00e7;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_54 = V_5;
L_54->set_dataLength_2(1);
}
IL_00e7:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_55 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_55, /*hidden argument*/NULL);
V_6 = L_55;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_56 = ___x0;
int32_t L_57 = L_56->get_dataLength_2();
int32_t L_58 = V_1;
if ((((int32_t)L_57) > ((int32_t)L_58)))
{
goto IL_00ff;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_59 = ___x0;
int32_t L_60 = L_59->get_dataLength_2();
G_B13_0 = L_60;
goto IL_0100;
}
IL_00ff:
{
int32_t L_61 = V_1;
G_B13_0 = L_61;
}
IL_0100:
{
V_7 = G_B13_0;
V_17 = 0;
goto IL_0120;
}
IL_0107:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_62 = V_6;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_63 = L_62->get_data_1();
int32_t L_64 = V_17;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_65 = ___x0;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_66 = L_65->get_data_1();
int32_t L_67 = V_17;
int32_t L_68 = L_67;
uint32_t L_69 = (L_66)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_68));
(L_63)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_64), (uint32_t)L_69);
int32_t L_70 = V_17;
V_17 = ((int32_t)il2cpp_codegen_add((int32_t)L_70, (int32_t)1));
}
IL_0120:
{
int32_t L_71 = V_17;
int32_t L_72 = V_7;
V_18 = (bool)((((int32_t)L_71) < ((int32_t)L_72))? 1 : 0);
bool L_73 = V_18;
if (L_73)
{
goto IL_0107;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_74 = V_6;
int32_t L_75 = V_7;
L_74->set_dataLength_2(L_75);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_76 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_76, /*hidden argument*/NULL);
V_8 = L_76;
V_19 = 0;
goto IL_01ed;
}
IL_0144:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_77 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_78 = L_77->get_data_1();
int32_t L_79 = V_19;
int32_t L_80 = L_79;
uint32_t L_81 = (L_78)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_80));
V_22 = (bool)((((int32_t)L_81) == ((int32_t)0))? 1 : 0);
bool L_82 = V_22;
if (!L_82)
{
goto IL_015d;
}
}
{
goto IL_01e7;
}
IL_015d:
{
V_20 = (((int64_t)((int64_t)0)));
int32_t L_83 = V_19;
V_21 = L_83;
V_23 = 0;
goto IL_01b6;
}
IL_016a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_84 = V_5;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_85 = L_84->get_data_1();
int32_t L_86 = V_19;
int32_t L_87 = L_86;
uint32_t L_88 = (L_85)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_87));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_89 = ___n1;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_90 = L_89->get_data_1();
int32_t L_91 = V_23;
int32_t L_92 = L_91;
uint32_t L_93 = (L_90)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_92));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_94 = V_8;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_95 = L_94->get_data_1();
int32_t L_96 = V_21;
int32_t L_97 = L_96;
uint32_t L_98 = (L_95)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_97));
uint64_t L_99 = V_20;
V_24 = ((int64_t)il2cpp_codegen_add((int64_t)((int64_t)il2cpp_codegen_add((int64_t)((int64_t)il2cpp_codegen_multiply((int64_t)(((int64_t)((uint64_t)L_88))), (int64_t)(((int64_t)((uint64_t)L_93))))), (int64_t)(((int64_t)((uint64_t)L_98))))), (int64_t)L_99));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_100 = V_8;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_101 = L_100->get_data_1();
int32_t L_102 = V_21;
uint64_t L_103 = V_24;
(L_101)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_102), (uint32_t)(((int32_t)((uint32_t)((int64_t)((int64_t)L_103&(int64_t)(((int64_t)((uint64_t)(((uint32_t)((uint32_t)(-1)))))))))))));
uint64_t L_104 = V_24;
V_20 = ((int64_t)((uint64_t)L_104>>((int32_t)32)));
int32_t L_105 = V_23;
V_23 = ((int32_t)il2cpp_codegen_add((int32_t)L_105, (int32_t)1));
int32_t L_106 = V_21;
V_21 = ((int32_t)il2cpp_codegen_add((int32_t)L_106, (int32_t)1));
}
IL_01b6:
{
int32_t L_107 = V_23;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_108 = ___n1;
int32_t L_109 = L_108->get_dataLength_2();
if ((((int32_t)L_107) >= ((int32_t)L_109)))
{
goto IL_01c7;
}
}
{
int32_t L_110 = V_21;
int32_t L_111 = V_1;
G_B24_0 = ((((int32_t)L_110) < ((int32_t)L_111))? 1 : 0);
goto IL_01c8;
}
IL_01c7:
{
G_B24_0 = 0;
}
IL_01c8:
{
V_25 = (bool)G_B24_0;
bool L_112 = V_25;
if (L_112)
{
goto IL_016a;
}
}
{
int32_t L_113 = V_21;
int32_t L_114 = V_1;
V_26 = (bool)((((int32_t)L_113) < ((int32_t)L_114))? 1 : 0);
bool L_115 = V_26;
if (!L_115)
{
goto IL_01e6;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_116 = V_8;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_117 = L_116->get_data_1();
int32_t L_118 = V_21;
uint64_t L_119 = V_20;
(L_117)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_118), (uint32_t)(((int32_t)((uint32_t)L_119))));
}
IL_01e6:
{
}
IL_01e7:
{
int32_t L_120 = V_19;
V_19 = ((int32_t)il2cpp_codegen_add((int32_t)L_120, (int32_t)1));
}
IL_01ed:
{
int32_t L_121 = V_19;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_122 = V_5;
int32_t L_123 = L_122->get_dataLength_2();
V_27 = (bool)((((int32_t)L_121) < ((int32_t)L_123))? 1 : 0);
bool L_124 = V_27;
if (L_124)
{
goto IL_0144;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_125 = V_8;
int32_t L_126 = V_1;
L_125->set_dataLength_2(L_126);
goto IL_021a;
}
IL_020b:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_127 = V_8;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_128 = L_127;
int32_t L_129 = L_128->get_dataLength_2();
L_128->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_129, (int32_t)1)));
}
IL_021a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_130 = V_8;
int32_t L_131 = L_130->get_dataLength_2();
if ((((int32_t)L_131) <= ((int32_t)1)))
{
goto IL_023a;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_132 = V_8;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_133 = L_132->get_data_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_134 = V_8;
int32_t L_135 = L_134->get_dataLength_2();
int32_t L_136 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_135, (int32_t)1));
uint32_t L_137 = (L_133)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_136));
G_B35_0 = ((((int32_t)L_137) == ((int32_t)0))? 1 : 0);
goto IL_023b;
}
IL_023a:
{
G_B35_0 = 0;
}
IL_023b:
{
V_28 = (bool)G_B35_0;
bool L_138 = V_28;
if (L_138)
{
goto IL_020b;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_139 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_140 = V_8;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_141 = BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3(L_139, L_140, /*hidden argument*/NULL);
V_6 = L_141;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_142 = V_6;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_143 = L_142->get_data_1();
int32_t L_144 = ((int32_t)69);
uint32_t L_145 = (L_143)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_144));
V_29 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_145&(int32_t)((int32_t)-2147483648LL)))) <= ((uint32_t)0)))? 1 : 0);
bool L_146 = V_29;
if (!L_146)
{
goto IL_028d;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_147 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_147, /*hidden argument*/NULL);
V_30 = L_147;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_148 = V_30;
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_149 = L_148->get_data_1();
int32_t L_150 = V_1;
(L_149)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_150), (uint32_t)1);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_151 = V_30;
int32_t L_152 = V_1;
L_151->set_dataLength_2(((int32_t)il2cpp_codegen_add((int32_t)L_152, (int32_t)1)));
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_153 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_154 = V_30;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_155 = BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C(L_153, L_154, /*hidden argument*/NULL);
V_6 = L_155;
}
IL_028d:
{
goto IL_0299;
}
IL_028f:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_156 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_157 = ___n1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_158 = BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3(L_156, L_157, /*hidden argument*/NULL);
V_6 = L_158;
}
IL_0299:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_159 = V_6;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_160 = ___n1;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
bool L_161 = BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC(L_159, L_160, /*hidden argument*/NULL);
V_31 = L_161;
bool L_162 = V_31;
if (L_162)
{
goto IL_028f;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_163 = V_6;
V_32 = L_163;
goto IL_02ad;
}
IL_02ad:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_164 = V_32;
return L_164;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::GenerateRandom(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0 (int32_t ___bits0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_1 = NULL;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14(L_0, /*hidden argument*/NULL);
V_0 = L_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = V_0;
int32_t L_2 = ___bits0;
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_3 = (Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F *)il2cpp_codegen_object_new(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F_il2cpp_TypeInfo_var);
Random__ctor_mCD4B6E9DFD27A19F52FA441CD8CAEB687A9DD2F2(L_3, /*hidden argument*/NULL);
BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F(L_1, L_2, L_3, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = V_0;
V_1 = L_4;
goto IL_0018;
}
IL_0018:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_5 = V_1;
return L_5;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::genRandomBits(System.Int32,System.Random)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, int32_t ___bits0, Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * ___rand1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
bool V_2 = false;
bool V_3 = false;
int32_t V_4 = 0;
bool V_5 = false;
int32_t V_6 = 0;
bool V_7 = false;
bool V_8 = false;
uint32_t V_9 = 0;
bool V_10 = false;
{
int32_t L_0 = ___bits0;
V_0 = ((int32_t)((int32_t)L_0>>(int32_t)5));
int32_t L_1 = ___bits0;
V_1 = ((int32_t)((int32_t)L_1&(int32_t)((int32_t)31)));
int32_t L_2 = V_1;
V_2 = (bool)((!(((uint32_t)L_2) <= ((uint32_t)0)))? 1 : 0);
bool L_3 = V_2;
if (!L_3)
{
goto IL_0016;
}
}
{
int32_t L_4 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_4, (int32_t)1));
}
IL_0016:
{
int32_t L_5 = V_0;
V_3 = (bool)((((int32_t)L_5) > ((int32_t)((int32_t)70)))? 1 : 0);
bool L_6 = V_3;
if (!L_6)
{
goto IL_002a;
}
}
{
ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 * L_7 = (ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269 *)il2cpp_codegen_object_new(ArithmeticException_tF9EF5FE94597830EF315C5934258F994B8648269_il2cpp_TypeInfo_var);
ArithmeticException__ctor_mAE18F94959F9827DEA553C7C2F3C5568BEC81CCF(L_7, _stringLiteralE495F483108024FBA57EA6E41B3E0345724A847A, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F_RuntimeMethod_var);
}
IL_002a:
{
V_4 = 0;
goto IL_004f;
}
IL_002f:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_8 = __this->get_data_1();
int32_t L_9 = V_4;
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * L_10 = ___rand1;
double L_11 = VirtFuncInvoker0< double >::Invoke(8 /* System.Double System.Random::NextDouble() */, L_10);
(L_8)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_9), (uint32_t)(il2cpp_codegen_cast_floating_point<uint32_t, int32_t, double>(((double)il2cpp_codegen_multiply((double)L_11, (double)(4294967296.0))))));
int32_t L_12 = V_4;
V_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_12, (int32_t)1));
}
IL_004f:
{
int32_t L_13 = V_4;
int32_t L_14 = V_0;
V_5 = (bool)((((int32_t)L_13) < ((int32_t)L_14))? 1 : 0);
bool L_15 = V_5;
if (L_15)
{
goto IL_002f;
}
}
{
int32_t L_16 = V_0;
V_6 = L_16;
goto IL_006f;
}
IL_005f:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_17 = __this->get_data_1();
int32_t L_18 = V_6;
(L_17)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(L_18), (uint32_t)0);
int32_t L_19 = V_6;
V_6 = ((int32_t)il2cpp_codegen_add((int32_t)L_19, (int32_t)1));
}
IL_006f:
{
int32_t L_20 = V_6;
V_7 = (bool)((((int32_t)L_20) < ((int32_t)((int32_t)70)))? 1 : 0);
bool L_21 = V_7;
if (L_21)
{
goto IL_005f;
}
}
{
int32_t L_22 = V_1;
V_8 = (bool)((!(((uint32_t)L_22) <= ((uint32_t)0)))? 1 : 0);
bool L_23 = V_8;
if (!L_23)
{
goto IL_00c6;
}
}
{
int32_t L_24 = V_1;
V_9 = ((int32_t)((int32_t)1<<(int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_24, (int32_t)1))&(int32_t)((int32_t)31)))));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_25 = __this->get_data_1();
int32_t L_26 = V_0;
uint32_t* L_27 = ((L_25)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_26, (int32_t)1)))));
int32_t L_28 = *((uint32_t*)L_27);
uint32_t L_29 = V_9;
*((int32_t*)L_27) = (int32_t)((int32_t)((int32_t)L_28|(int32_t)L_29));
int32_t L_30 = V_1;
V_9 = ((int32_t)((uint32_t)(-1)>>((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)((int32_t)32), (int32_t)L_30))&(int32_t)((int32_t)31)))));
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_31 = __this->get_data_1();
int32_t L_32 = V_0;
uint32_t* L_33 = ((L_31)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_32, (int32_t)1)))));
int32_t L_34 = *((uint32_t*)L_33);
uint32_t L_35 = V_9;
*((int32_t*)L_33) = (int32_t)((int32_t)((int32_t)L_34&(int32_t)L_35));
goto IL_00dd;
}
IL_00c6:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_36 = __this->get_data_1();
int32_t L_37 = V_0;
uint32_t* L_38 = ((L_36)->GetAddressAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_37, (int32_t)1)))));
int32_t L_39 = *((uint32_t*)L_38);
*((int32_t*)L_38) = (int32_t)((int32_t)((int32_t)L_39|(int32_t)((int32_t)-2147483648LL)));
}
IL_00dd:
{
int32_t L_40 = V_0;
__this->set_dataLength_2(L_40);
int32_t L_41 = __this->get_dataLength_2();
V_10 = (bool)((((int32_t)L_41) == ((int32_t)0))? 1 : 0);
bool L_42 = V_10;
if (!L_42)
{
goto IL_00fa;
}
}
{
__this->set_dataLength_2(1);
}
IL_00fa:
{
return;
}
}
// System.Int32 Photon.SocketServer.Numeric.BigInteger::bitCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t BigInteger_bitCount_m496893A7F384B4DFFD4492EA46C62A45E8F4FC69 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method)
{
uint32_t V_0 = 0;
uint32_t V_1 = 0;
int32_t V_2 = 0;
bool V_3 = false;
bool V_4 = false;
int32_t V_5 = 0;
int32_t G_B5_0 = 0;
int32_t G_B11_0 = 0;
{
goto IL_0011;
}
IL_0003:
{
int32_t L_0 = __this->get_dataLength_2();
__this->set_dataLength_2(((int32_t)il2cpp_codegen_subtract((int32_t)L_0, (int32_t)1)));
}
IL_0011:
{
int32_t L_1 = __this->get_dataLength_2();
if ((((int32_t)L_1) <= ((int32_t)1)))
{
goto IL_002e;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_2 = __this->get_data_1();
int32_t L_3 = __this->get_dataLength_2();
int32_t L_4 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_3, (int32_t)1));
uint32_t L_5 = (L_2)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_4));
G_B5_0 = ((((int32_t)L_5) == ((int32_t)0))? 1 : 0);
goto IL_002f;
}
IL_002e:
{
G_B5_0 = 0;
}
IL_002f:
{
V_3 = (bool)G_B5_0;
bool L_6 = V_3;
if (L_6)
{
goto IL_0003;
}
}
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_7 = __this->get_data_1();
int32_t L_8 = __this->get_dataLength_2();
int32_t L_9 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_8, (int32_t)1));
uint32_t L_10 = (L_7)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_9));
V_0 = L_10;
V_1 = ((int32_t)-2147483648LL);
V_2 = ((int32_t)32);
goto IL_0058;
}
IL_004e:
{
int32_t L_11 = V_2;
V_2 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_11, (int32_t)1));
uint32_t L_12 = V_1;
V_1 = ((int32_t)((uint32_t)L_12>>1));
}
IL_0058:
{
int32_t L_13 = V_2;
if ((((int32_t)L_13) <= ((int32_t)0)))
{
goto IL_0064;
}
}
{
uint32_t L_14 = V_0;
uint32_t L_15 = V_1;
G_B11_0 = ((((int32_t)((int32_t)((int32_t)L_14&(int32_t)L_15))) == ((int32_t)0))? 1 : 0);
goto IL_0065;
}
IL_0064:
{
G_B11_0 = 0;
}
IL_0065:
{
V_4 = (bool)G_B11_0;
bool L_16 = V_4;
if (L_16)
{
goto IL_004e;
}
}
{
int32_t L_17 = V_2;
int32_t L_18 = __this->get_dataLength_2();
V_2 = ((int32_t)il2cpp_codegen_add((int32_t)L_17, (int32_t)((int32_t)((int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_18, (int32_t)1))<<(int32_t)5))));
int32_t L_19 = V_2;
V_5 = L_19;
goto IL_007d;
}
IL_007d:
{
int32_t L_20 = V_5;
return L_20;
}
}
// System.Byte[] Photon.SocketServer.Numeric.BigInteger::GetBytes()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0 (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
int32_t V_1 = 0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_2 = NULL;
int32_t V_3 = 0;
int32_t V_4 = 0;
bool V_5 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_6 = NULL;
bool V_7 = false;
bool V_8 = false;
int32_t V_9 = 0;
uint32_t V_10 = 0;
int32_t V_11 = 0;
bool V_12 = false;
bool V_13 = false;
{
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60(0, /*hidden argument*/NULL);
bool L_1 = BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967(__this, L_0, /*hidden argument*/NULL);
V_5 = L_1;
bool L_2 = V_5;
if (!L_2)
{
goto IL_0021;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)1);
V_6 = L_3;
goto IL_00c7;
}
IL_0021:
{
int32_t L_4 = BigInteger_bitCount_m496893A7F384B4DFFD4492EA46C62A45E8F4FC69(__this, /*hidden argument*/NULL);
V_0 = L_4;
int32_t L_5 = V_0;
V_1 = ((int32_t)((int32_t)L_5>>(int32_t)3));
int32_t L_6 = V_0;
V_7 = (bool)((!(((uint32_t)((int32_t)((int32_t)L_6&(int32_t)7))) <= ((uint32_t)0)))? 1 : 0);
bool L_7 = V_7;
if (!L_7)
{
goto IL_003e;
}
}
{
int32_t L_8 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_8, (int32_t)1));
}
IL_003e:
{
int32_t L_9 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_9);
V_2 = L_10;
int32_t L_11 = V_1;
V_3 = ((int32_t)((int32_t)L_11&(int32_t)3));
int32_t L_12 = V_3;
V_8 = (bool)((((int32_t)L_12) == ((int32_t)0))? 1 : 0);
bool L_13 = V_8;
if (!L_13)
{
goto IL_0057;
}
}
{
V_3 = 4;
}
IL_0057:
{
V_4 = 0;
int32_t L_14 = __this->get_dataLength_2();
V_9 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_14, (int32_t)1));
goto IL_00b4;
}
IL_0066:
{
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* L_15 = __this->get_data_1();
int32_t L_16 = V_9;
int32_t L_17 = L_16;
uint32_t L_18 = (L_15)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_17));
V_10 = L_18;
int32_t L_19 = V_3;
V_11 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_19, (int32_t)1));
goto IL_0097;
}
IL_0079:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_20 = V_2;
int32_t L_21 = V_4;
int32_t L_22 = V_11;
uint32_t L_23 = V_10;
(L_20)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)L_22))), (uint8_t)(((int32_t)((uint8_t)((int32_t)((int32_t)L_23&(int32_t)((int32_t)255)))))));
uint32_t L_24 = V_10;
V_10 = ((int32_t)((uint32_t)L_24>>8));
int32_t L_25 = V_11;
V_11 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_25, (int32_t)1));
}
IL_0097:
{
int32_t L_26 = V_11;
V_12 = (bool)((((int32_t)((((int32_t)L_26) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_27 = V_12;
if (L_27)
{
goto IL_0079;
}
}
{
int32_t L_28 = V_4;
int32_t L_29 = V_3;
V_4 = ((int32_t)il2cpp_codegen_add((int32_t)L_28, (int32_t)L_29));
V_3 = 4;
int32_t L_30 = V_9;
V_9 = ((int32_t)il2cpp_codegen_subtract((int32_t)L_30, (int32_t)1));
}
IL_00b4:
{
int32_t L_31 = V_9;
V_13 = (bool)((((int32_t)((((int32_t)L_31) < ((int32_t)0))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_32 = V_13;
if (L_32)
{
goto IL_0066;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_33 = V_2;
V_6 = L_33;
goto IL_00c7;
}
IL_00c7:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_34 = V_6;
return L_34;
}
}
// System.Void Photon.SocketServer.Numeric.BigInteger::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BigInteger__cctor_mF71C8E3FF6C0B3F85E197A6E0EE799B3C0C040BB (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (BigInteger__cctor_mF71C8E3FF6C0B3F85E197A6E0EE799B3C0C040BB_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)SZArrayNew(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var, (uint32_t)((int32_t)303));
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_1 = L_0;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____AE7403CB8E1F18EE4BC7F393E29CEC17BD61C7113E81F786B632AF02ED952080_4_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL);
((BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_StaticFields*)il2cpp_codegen_static_fields_for(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var))->set_primesBelow2000_0(L_1);
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 Photon.SocketServer.Security.DiffieHellmanCryptoProvider::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider__ctor_m756F19FDCD4B8BEC264F3C278188A94C4AD54795 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider__ctor_m756F19FDCD4B8BEC264F3C278188A94C4AD54795_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ((OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields*)il2cpp_codegen_static_fields_for(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var))->get_OakleyPrime768_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160(L_1, L_0, /*hidden argument*/NULL);
__this->set_prime_1(L_1);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E2194D10FB221184E91866E(__this, ((int32_t)160), /*hidden argument*/NULL);
__this->set_secret_2(L_2);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284(__this, /*hidden argument*/NULL);
__this->set_publicKey_3(L_3);
return;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::.ctor(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider__ctor_mC60A298836C745155151805BC8666B0FE9E1FA4F (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___cryptoKey0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider__ctor_mC60A298836C745155151805BC8666B0FE9E1FA4F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182 * L_0 = (RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182 *)il2cpp_codegen_object_new(RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182_il2cpp_TypeInfo_var);
RijndaelManaged__ctor_mA6A1CDD39CD6CFCD208B3F102A01C90B5C4D4134(L_0, /*hidden argument*/NULL);
__this->set_crypto_4(L_0);
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_1 = __this->get_crypto_4();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = ___cryptoKey0;
VirtActionInvoker1< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* >::Invoke(13 /* System.Void System.Security.Cryptography.SymmetricAlgorithm::set_Key(System.Byte[]) */, L_1, L_2);
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_3 = __this->get_crypto_4();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
VirtActionInvoker1< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* >::Invoke(11 /* System.Void System.Security.Cryptography.SymmetricAlgorithm::set_IV(System.Byte[]) */, L_3, L_4);
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_5 = __this->get_crypto_4();
VirtActionInvoker1< int32_t >::Invoke(21 /* System.Void System.Security.Cryptography.SymmetricAlgorithm::set_Padding(System.Security.Cryptography.PaddingMode) */, L_5, 2);
return;
}
}
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::get_PublicKey()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* DiffieHellmanCryptoProvider_get_PublicKey_<KEY> (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, const RuntimeMethod* method)
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_0 = NULL;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = __this->get_publicKey_3();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0(L_0, /*hidden argument*/NULL);
V_0 = L_1;
goto IL_000f;
}
IL_000f:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = V_0;
return L_2;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::DeriveSharedKey(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider_DeriveSharedKey_m4307E1AD821B520CD377CB83E901BF918B2F25D9 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___otherPartyPublicKey0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider_DeriveSharedKey_m4307E1AD821B520CD377CB83E901BF918B2F25D9_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_1 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_2 = NULL;
SHA256_tF15350D910DF8AC1E6ADDBA904218F95554711BD * V_3 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___otherPartyPublicKey0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160(L_1, L_0, /*hidden argument*/NULL);
V_0 = L_1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = DiffieHellmanCryptoProvider_CalculateSharedKey_mD31E24DA719371ABDCA5F4A0CBD4629C0E5E12A7(__this, L_2, /*hidden argument*/NULL);
V_1 = L_3;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0(L_4, /*hidden argument*/NULL);
__this->set_sharedKey_5(L_5);
SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2 * L_6 = (SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2 *)il2cpp_codegen_object_new(SHA256Managed_tC093E6558E9FD287F00C58DE11B758F4779FB3A2_il2cpp_TypeInfo_var);
SHA256Managed__ctor_mE7ED908AA6371B0BA6184B06894171B10A589529(L_6, /*hidden argument*/NULL);
V_3 = L_6;
}
IL_0022:
try
{ // begin try (depth: 1)
SHA256_tF15350D910DF8AC1E6ADDBA904218F95554711BD * L_7 = V_3;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_8 = __this->get_sharedKey_5();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = HashAlgorithm_ComputeHash_m18501D3068AEBEB5FA83EA72BE780E371DB0C122(L_7, L_8, /*hidden argument*/NULL);
V_2 = L_9;
IL2CPP_LEAVE(0x3E, FINALLY_0033);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0033;
}
FINALLY_0033:
{ // begin finally (depth: 1)
{
SHA256_tF15350D910DF8AC1E6ADDBA904218F95554711BD * L_10 = V_3;
if (!L_10)
{
goto IL_003d;
}
}
IL_0036:
{
SHA256_tF15350D910DF8AC1E6ADDBA904218F95554711BD * L_11 = V_3;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t7218B22548186B208D65EA5B7870503810A2D15A_il2cpp_TypeInfo_var, L_11);
}
IL_003d:
{
IL2CPP_END_FINALLY(51)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(51)
{
IL2CPP_JUMP_TBL(0x3E, IL_003e)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_003e:
{
RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182 * L_12 = (RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182 *)il2cpp_codegen_object_new(RijndaelManaged_t4E3376C5DAE4AB0D658F4A00A1FE7496DB258182_il2cpp_TypeInfo_var);
RijndaelManaged__ctor_mA6A1CDD39CD6CFCD208B3F102A01C90B5C4D4134(L_12, /*hidden argument*/NULL);
__this->set_crypto_4(L_12);
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_13 = __this->get_crypto_4();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_14 = V_2;
VirtActionInvoker1< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* >::Invoke(13 /* System.Void System.Security.Cryptography.SymmetricAlgorithm::set_Key(System.Byte[]) */, L_13, L_14);
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_15 = __this->get_crypto_4();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_16 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16));
VirtActionInvoker1< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* >::Invoke(11 /* System.Void System.Security.Cryptography.SymmetricAlgorithm::set_IV(System.Byte[]) */, L_15, L_16);
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_17 = __this->get_crypto_4();
VirtActionInvoker1< int32_t >::Invoke(21 /* System.Void System.Security.Cryptography.SymmetricAlgorithm::set_Padding(System.Security.Cryptography.PaddingMode) */, L_17, 2);
return;
}
}
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Encrypt(System.Byte[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* DiffieHellmanCryptoProvider_Encrypt_m74DD72284D17E3156A9C7F3182457CA3586F276C (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___offset1, int32_t ___count2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider_Encrypt_m74DD72284D17E3156A9C7F3182457CA3586F276C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* V_0 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_1 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_0 = __this->get_crypto_4();
RuntimeObject* L_1 = VirtFuncInvoker0< RuntimeObject* >::Invoke(22 /* System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.SymmetricAlgorithm::CreateEncryptor() */, L_0);
V_0 = L_1;
}
IL_000d:
try
{ // begin try (depth: 1)
RuntimeObject* L_2 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = ___data0;
int32_t L_4 = ___offset1;
int32_t L_5 = ___count2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = InterfaceFuncInvoker3< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, int32_t, int32_t >::Invoke(5 /* System.Byte[] System.Security.Cryptography.ICryptoTransform::TransformFinalBlock(System.Byte[],System.Int32,System.Int32) */, ICryptoTransform_t43C29A7F3A8C2DDAC9F3BF9BF739B03E4D5DE9A9_il2cpp_TypeInfo_var, L_2, L_3, L_4, L_5);
V_1 = L_6;
IL2CPP_LEAVE(0x25, FINALLY_001a);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_001a;
}
FINALLY_001a:
{ // begin finally (depth: 1)
{
RuntimeObject* L_7 = V_0;
if (!L_7)
{
goto IL_0024;
}
}
IL_001d:
{
RuntimeObject* L_8 = V_0;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t7218B22548186B208D65EA5B7870503810A2D15A_il2cpp_TypeInfo_var, L_8);
}
IL_0024:
{
IL2CPP_END_FINALLY(26)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(26)
{
IL2CPP_JUMP_TBL(0x25, IL_0025)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0025:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = V_1;
return L_9;
}
}
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Decrypt(System.Byte[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* DiffieHellmanCryptoProvider_Decrypt_m9AD8860DEC217DC76717883C4DFD3C6E59BD062B (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___offset1, int32_t ___count2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider_Decrypt_m9AD8860DEC217DC76717883C4DFD3C6E59BD062B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
RuntimeObject* V_0 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_1 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
Rijndael_t9C59A398CC1C66BF7FC586DE417CCB517CCEB1DC * L_0 = __this->get_crypto_4();
RuntimeObject* L_1 = VirtFuncInvoker0< RuntimeObject* >::Invoke(24 /* System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.SymmetricAlgorithm::CreateDecryptor() */, L_0);
V_0 = L_1;
}
IL_000d:
try
{ // begin try (depth: 1)
RuntimeObject* L_2 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = ___data0;
int32_t L_4 = ___offset1;
int32_t L_5 = ___count2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = InterfaceFuncInvoker3< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, int32_t, int32_t >::Invoke(5 /* System.Byte[] System.Security.Cryptography.ICryptoTransform::TransformFinalBlock(System.Byte[],System.Int32,System.Int32) */, ICryptoTransform_t43C29A7F3A8C2DDAC9F3BF9BF739B03E4D5DE9A9_il2cpp_TypeInfo_var, L_2, L_3, L_4, L_5);
V_1 = L_6;
IL2CPP_LEAVE(0x25, FINALLY_001a);
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_001a;
}
FINALLY_001a:
{ // begin finally (depth: 1)
{
RuntimeObject* L_7 = V_0;
if (!L_7)
{
goto IL_0024;
}
}
IL_001d:
{
RuntimeObject* L_8 = V_0;
InterfaceActionInvoker0::Invoke(0 /* System.Void System.IDisposable::Dispose() */, IDisposable_t7218B22548186B208D65EA5B7870503810A2D15A_il2cpp_TypeInfo_var, L_8);
}
IL_0024:
{
IL2CPP_END_FINALLY(26)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(26)
{
IL2CPP_JUMP_TBL(0x25, IL_0025)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0025:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = V_1;
return L_9;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider_Dispose_m695ED7D77F64232768FBE1767766A05A9E88E146 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider_Dispose_m695ED7D77F64232768FBE1767766A05A9E88E146_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
DiffieHellmanCryptoProvider_Dispose_m5019411EFF7D26EA519E8721DC3A69CC41E23DB3(__this, (bool)1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(GC_tC1D7BD74E8F44ECCEF5CD2B5D84BFF9AAE02D01D_il2cpp_TypeInfo_var);
GC_SuppressFinalize_m037319A9B95A5BA437E806DE592802225EE5B425(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Dispose(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider_Dispose_m5019411EFF7D26EA519E8721DC3A69CC41E23DB3 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, bool ___disposing0, const RuntimeMethod* method)
{
bool V_0 = false;
{
bool L_0 = ___disposing0;
V_0 = (bool)((((int32_t)L_0) == ((int32_t)0))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_000c;
}
}
{
goto IL_000c;
}
IL_000c:
{
return;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::CalculatePublicKey()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
{
IL2CPP_RUNTIME_CLASS_INIT(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ((DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_StaticFields*)il2cpp_codegen_static_fields_for(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_il2cpp_TypeInfo_var))->get_primeRoot_0();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = __this->get_secret_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = __this->get_prime_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3(L_0, L_1, L_2, /*hidden argument*/NULL);
V_0 = L_3;
goto IL_001a;
}
IL_001a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = V_0;
return L_4;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::CalculateSharedKey(Photon.SocketServer.Numeric.BigInteger)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * DiffieHellmanCryptoProvider_CalculateSharedKey_mD31E24DA719371ABDCA5F4A0CBD4629C0E5E12A7 (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * ___otherPartyPublicKey0, const RuntimeMethod* method)
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_0 = ___otherPartyPublicKey0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = __this->get_secret_2();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = __this->get_prime_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3(L_0, L_1, L_2, /*hidden argument*/NULL);
V_0 = L_3;
goto IL_0016;
}
IL_0016:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = V_0;
return L_4;
}
}
// Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::GenerateRandomSecret(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E2194D10FB221184E91866E (DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D * __this, int32_t ___secretLength0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E2194D10FB221184E91866E_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_0 = NULL;
bool V_1 = false;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * V_2 = NULL;
int32_t G_B4_0 = 0;
{
}
IL_0001:
{
int32_t L_0 = ___secretLength0;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0(L_0, /*hidden argument*/NULL);
V_0 = L_1;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_2 = V_0;
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_3 = __this->get_prime_1();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_4 = BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60(1, /*hidden argument*/NULL);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_5 = BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3(L_3, L_4, /*hidden argument*/NULL);
bool L_6 = BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC(L_2, L_5, /*hidden argument*/NULL);
if (L_6)
{
goto IL_0031;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_7 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_8 = BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60(0, /*hidden argument*/NULL);
bool L_9 = BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967(L_7, L_8, /*hidden argument*/NULL);
G_B4_0 = ((int32_t)(L_9));
goto IL_0032;
}
IL_0031:
{
G_B4_0 = 1;
}
IL_0032:
{
V_1 = (bool)G_B4_0;
bool L_10 = V_1;
if (L_10)
{
goto IL_0001;
}
}
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_11 = V_0;
V_2 = L_11;
goto IL_003a;
}
IL_003a:
{
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_12 = V_2;
return L_12;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProvider__cctor_mC6430EB5D1201D7268063124E413DB10D2475558 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProvider__cctor_mC6430EB5D1201D7268063124E413DB10D2475558_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
IL2CPP_RUNTIME_CLASS_INIT(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var);
int32_t L_0 = ((OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields*)il2cpp_codegen_static_fields_for(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var))->get_Generator_0();
BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 * L_1 = (BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1 *)il2cpp_codegen_object_new(BigInteger_tB13213F2E9593E0FB1B6CD9E0F85B7DA14A7C5E1_il2cpp_TypeInfo_var);
BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C(L_1, (((int64_t)((int64_t)L_0))), /*hidden argument*/NULL);
((DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_StaticFields*)il2cpp_codegen_static_fields_for(DiffieHellmanCryptoProvider_t5B3F8408DAD9118CCF4547CBA34C83FE502B205D_il2cpp_TypeInfo_var))->set_primeRoot_0(L_1);
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
#if FORCE_PINVOKE_INTERNAL
IL2CPP_EXTERN_C intptr_t DEFAULT_CALL egCryptorCreate();
#endif
// System.IntPtr Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorCreate()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR intptr_t DiffieHellmanCryptoProviderNative_egCryptorCreate_m282278D194293372D8BF3DD9D0C756844F93094A (const RuntimeMethod* method)
{
typedef intptr_t (DEFAULT_CALL *PInvokeFunc) ();
#if !FORCE_PINVOKE_INTERNAL
static PInvokeFunc il2cppPInvokeFunc;
if (il2cppPInvokeFunc == NULL)
{
int parameterSize = 0;
il2cppPInvokeFunc = il2cpp_codegen_resolve_pinvoke<PInvokeFunc>(IL2CPP_NATIVE_STRING("PhotonCryptoPlugin"), "egCryptorCreate", IL2CPP_CALL_DEFAULT, CHARSET_NOT_SPECIFIED, parameterSize, false);
if (il2cppPInvokeFunc == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Unable to find method for p/invoke: 'egCryptorCreate'"), NULL, NULL);
}
}
#endif
// Native function invocation
#if FORCE_PINVOKE_INTERNAL
intptr_t returnValue = reinterpret_cast<PInvokeFunc>(egCryptorCreate)();
#else
intptr_t returnValue = il2cppPInvokeFunc();
#endif
return returnValue;
}
#if FORCE_PINVOKE_INTERNAL
IL2CPP_EXTERN_C int32_t DEFAULT_CALL egCryptorPublicKey(intptr_t, intptr_t*, int32_t*);
#endif
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorPublicKey(System.IntPtr,System.IntPtr&,System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorPublicKey_m936DA64D7FABD6E890E0C0919D9482C90C537AF6 (intptr_t ___cryptor0, intptr_t* ___key1, int32_t* ___keySize2, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (intptr_t, intptr_t*, int32_t*);
#if !FORCE_PINVOKE_INTERNAL
static PInvokeFunc il2cppPInvokeFunc;
if (il2cppPInvokeFunc == NULL)
{
int parameterSize = sizeof(intptr_t) + sizeof(intptr_t*) + sizeof(int32_t*);
il2cppPInvokeFunc = il2cpp_codegen_resolve_pinvoke<PInvokeFunc>(IL2CPP_NATIVE_STRING("PhotonCryptoPlugin"), "egCryptorPublicKey", IL2CPP_CALL_DEFAULT, CHARSET_NOT_SPECIFIED, parameterSize, false);
if (il2cppPInvokeFunc == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Unable to find method for p/invoke: 'egCryptorPublicKey'"), NULL, NULL);
}
}
#endif
// Native function invocation
#if FORCE_PINVOKE_INTERNAL
int32_t returnValue = reinterpret_cast<PInvokeFunc>(egCryptorPublicKey)(___cryptor0, ___key1, ___keySize2);
#else
int32_t returnValue = il2cppPInvokeFunc(___cryptor0, ___key1, ___keySize2);
#endif
return returnValue;
}
#if FORCE_PINVOKE_INTERNAL
IL2CPP_EXTERN_C int32_t DEFAULT_CALL egCryptorDeriveSharedKey(intptr_t, uint8_t*, int32_t);
#endif
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDeriveSharedKey(System.IntPtr,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorDeriveSharedKey_mE62543C5EA2D91B93999E1CC15D6A14D98EFF650 (intptr_t ___cryptor0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___serverPublicKey1, int32_t ___keySize2, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (intptr_t, uint8_t*, int32_t);
#if !FORCE_PINVOKE_INTERNAL
static PInvokeFunc il2cppPInvokeFunc;
if (il2cppPInvokeFunc == NULL)
{
int parameterSize = sizeof(intptr_t) + sizeof(void*) + sizeof(int32_t);
il2cppPInvokeFunc = il2cpp_codegen_resolve_pinvoke<PInvokeFunc>(IL2CPP_NATIVE_STRING("PhotonCryptoPlugin"), "egCryptorDeriveSharedKey", IL2CPP_CALL_DEFAULT, CHARSET_NOT_SPECIFIED, parameterSize, false);
if (il2cppPInvokeFunc == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Unable to find method for p/invoke: 'egCryptorDeriveSharedKey'"), NULL, NULL);
}
}
#endif
// Marshaling of parameter '___serverPublicKey1' to native representation
uint8_t* ____serverPublicKey1_marshaled = NULL;
if (___serverPublicKey1 != NULL)
{
____serverPublicKey1_marshaled = reinterpret_cast<uint8_t*>((___serverPublicKey1)->GetAddressAtUnchecked(0));
}
// Native function invocation
#if FORCE_PINVOKE_INTERNAL
int32_t returnValue = reinterpret_cast<PInvokeFunc>(egCryptorDeriveSharedKey)(___cryptor0, ____serverPublicKey1_marshaled, ___keySize2);
#else
int32_t returnValue = il2cppPInvokeFunc(___cryptor0, ____serverPublicKey1_marshaled, ___keySize2);
#endif
return returnValue;
}
#if FORCE_PINVOKE_INTERNAL
IL2CPP_EXTERN_C int32_t DEFAULT_CALL egCryptorEncrypt(intptr_t, uint8_t*, int32_t, int32_t, uint8_t*, intptr_t*, int32_t*);
#endif
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorEncrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.IntPtr&,System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorEncrypt_mA8DA63FA96EB12756651890BF40A9ECF9E5120A8 (intptr_t ___cryptor0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___plainData1, int32_t ___plainDataOffset2, int32_t ___plainDataSize3, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKeyHash4, intptr_t* ___encodedData5, int32_t* ___encodedDataSize6, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (intptr_t, uint8_t*, int32_t, int32_t, uint8_t*, intptr_t*, int32_t*);
#if !FORCE_PINVOKE_INTERNAL
static PInvokeFunc il2cppPInvokeFunc;
if (il2cppPInvokeFunc == NULL)
{
int parameterSize = sizeof(intptr_t) + sizeof(void*) + sizeof(int32_t) + sizeof(int32_t) + sizeof(void*) + sizeof(intptr_t*) + sizeof(int32_t*);
il2cppPInvokeFunc = il2cpp_codegen_resolve_pinvoke<PInvokeFunc>(IL2CPP_NATIVE_STRING("PhotonCryptoPlugin"), "egCryptorEncrypt", IL2CPP_CALL_DEFAULT, CHARSET_NOT_SPECIFIED, parameterSize, false);
if (il2cppPInvokeFunc == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Unable to find method for p/invoke: 'egCryptorEncrypt'"), NULL, NULL);
}
}
#endif
// Marshaling of parameter '___plainData1' to native representation
uint8_t* ____plainData1_marshaled = NULL;
if (___plainData1 != NULL)
{
____plainData1_marshaled = reinterpret_cast<uint8_t*>((___plainData1)->GetAddressAtUnchecked(0));
}
// Marshaling of parameter '___sharedKeyHash4' to native representation
uint8_t* ____sharedKeyHash4_marshaled = NULL;
if (___sharedKeyHash4 != NULL)
{
____sharedKeyHash4_marshaled = reinterpret_cast<uint8_t*>((___sharedKeyHash4)->GetAddressAtUnchecked(0));
}
// Native function invocation
#if FORCE_PINVOKE_INTERNAL
int32_t returnValue = reinterpret_cast<PInvokeFunc>(egCryptorEncrypt)(___cryptor0, ____plainData1_marshaled, ___plainDataOffset2, ___plainDataSize3, ____sharedKeyHash4_marshaled, ___encodedData5, ___encodedDataSize6);
#else
int32_t returnValue = il2cppPInvokeFunc(___cryptor0, ____plainData1_marshaled, ___plainDataOffset2, ___plainDataSize3, ____sharedKeyHash4_marshaled, ___encodedData5, ___encodedDataSize6);
#endif
return returnValue;
}
#if FORCE_PINVOKE_INTERNAL
IL2CPP_EXTERN_C int32_t DEFAULT_CALL egCryptorDecrypt(intptr_t, uint8_t*, int32_t, int32_t, uint8_t*, intptr_t*, int32_t*);
#endif
// System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDecrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.IntPtr&,System.Int32&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t DiffieHellmanCryptoProviderNative_egCryptorDecrypt_m1ECA9577B04E13C12E6A6B469476AAB6AED3E0E8 (intptr_t ___cryptor0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___encodedData1, int32_t ___encodedDataOffset2, int32_t ___encodedDataSize3, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKeyHash4, intptr_t* ___plainData5, int32_t* ___plainDataSize6, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (intptr_t, uint8_t*, int32_t, int32_t, uint8_t*, intptr_t*, int32_t*);
#if !FORCE_PINVOKE_INTERNAL
static PInvokeFunc il2cppPInvokeFunc;
if (il2cppPInvokeFunc == NULL)
{
int parameterSize = sizeof(intptr_t) + sizeof(void*) + sizeof(int32_t) + sizeof(int32_t) + sizeof(void*) + sizeof(intptr_t*) + sizeof(int32_t*);
il2cppPInvokeFunc = il2cpp_codegen_resolve_pinvoke<PInvokeFunc>(IL2CPP_NATIVE_STRING("PhotonCryptoPlugin"), "egCryptorDecrypt", IL2CPP_CALL_DEFAULT, CHARSET_NOT_SPECIFIED, parameterSize, false);
if (il2cppPInvokeFunc == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Unable to find method for p/invoke: 'egCryptorDecrypt'"), NULL, NULL);
}
}
#endif
// Marshaling of parameter '___encodedData1' to native representation
uint8_t* ____encodedData1_marshaled = NULL;
if (___encodedData1 != NULL)
{
____encodedData1_marshaled = reinterpret_cast<uint8_t*>((___encodedData1)->GetAddressAtUnchecked(0));
}
// Marshaling of parameter '___sharedKeyHash4' to native representation
uint8_t* ____sharedKeyHash4_marshaled = NULL;
if (___sharedKeyHash4 != NULL)
{
____sharedKeyHash4_marshaled = reinterpret_cast<uint8_t*>((___sharedKeyHash4)->GetAddressAtUnchecked(0));
}
// Native function invocation
#if FORCE_PINVOKE_INTERNAL
int32_t returnValue = reinterpret_cast<PInvokeFunc>(egCryptorDecrypt)(___cryptor0, ____encodedData1_marshaled, ___encodedDataOffset2, ___encodedDataSize3, ____sharedKeyHash4_marshaled, ___plainData5, ___plainDataSize6);
#else
int32_t returnValue = il2cppPInvokeFunc(___cryptor0, ____encodedData1_marshaled, ___encodedDataOffset2, ___encodedDataSize3, ____sharedKeyHash4_marshaled, ___plainData5, ___plainDataSize6);
#endif
return returnValue;
}
#if FORCE_PINVOKE_INTERNAL
IL2CPP_EXTERN_C void DEFAULT_CALL egCryptorDispose(intptr_t);
#endif
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDispose(System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative_egCryptorDispose_mE9DE80C11D2F5B587B406B4907DCAF10BC991C93 (intptr_t ___cryptor0, const RuntimeMethod* method)
{
typedef void (DEFAULT_CALL *PInvokeFunc) (intptr_t);
#if !FORCE_PINVOKE_INTERNAL
static PInvokeFunc il2cppPInvokeFunc;
if (il2cppPInvokeFunc == NULL)
{
int parameterSize = sizeof(intptr_t);
il2cppPInvokeFunc = il2cpp_codegen_resolve_pinvoke<PInvokeFunc>(IL2CPP_NATIVE_STRING("PhotonCryptoPlugin"), "egCryptorDispose", IL2CPP_CALL_DEFAULT, CHARSET_NOT_SPECIFIED, parameterSize, false);
if (il2cppPInvokeFunc == NULL)
{
IL2CPP_RAISE_MANAGED_EXCEPTION(il2cpp_codegen_get_not_supported_exception("Unable to find method for p/invoke: 'egCryptorDispose'"), NULL, NULL);
}
}
#endif
// Native function invocation
#if FORCE_PINVOKE_INTERNAL
reinterpret_cast<PInvokeFunc>(egCryptorDispose)(___cryptor0);
#else
il2cppPInvokeFunc(___cryptor0);
#endif
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative__ctor_m1D753DA810935AC7373C4A4A32440E596BB46B64 (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
intptr_t L_0 = DiffieHellmanCryptoProviderNative_egCryptorCreate_m282278D194293372D8BF3DD9D0C756844F93094A(/*hidden argument*/NULL);
__this->set_cryptor_0((intptr_t)L_0);
return;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::.ctor(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___sharedKeyHash0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = ___sharedKeyHash0;
V_0 = (bool)((((RuntimeObject*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)L_0) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_001c;
}
}
{
ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_2 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_2, _stringLiteral39AACA340AC6FA39FADE72A4BC162E3F68505A2F, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_2, NULL, DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A_RuntimeMethod_var);
}
IL_001c:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = ___sharedKeyHash0;
__this->set_sharedKeyHash_1(L_3);
return;
}
}
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::get_PublicKey()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457 (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
intptr_t V_0;
memset((&V_0), 0, sizeof(V_0));
int32_t V_1 = 0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_2 = NULL;
bool V_3 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_4 = NULL;
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = __this->get_sharedKeyHash_1();
V_3 = (bool)((!(((RuntimeObject*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)L_0) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_1 = V_3;
if (!L_1)
{
goto IL_001a;
}
}
{
Exception_t * L_2 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m89BADFF36C3B170013878726E07729D51AA9FBE0(L_2, _stringLiteral0CBD217BFB0EC93F291306B34BA5223B44B506A5, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_2, NULL, DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457_RuntimeMethod_var);
}
IL_001a:
{
intptr_t L_3 = __this->get_cryptor_0();
DiffieHellmanCryptoProviderNative_egCryptorPublicKey_m936DA64D7FABD6E890E0C0919D9482C90C537AF6((intptr_t)L_3, (intptr_t*)(&V_0), (int32_t*)(&V_1), /*hidden argument*/NULL);
int32_t L_4 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_4);
V_2 = L_5;
intptr_t L_6 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = V_2;
int32_t L_8 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Marshal_tC795CE9CC2FFBA41EDB1AC1C0FEC04607DFA8A40_il2cpp_TypeInfo_var);
Marshal_Copy_m64744D9E23AFC00AA06CD6B057E19B7C0CE4C0C2((intptr_t)L_6, L_7, 0, L_8, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = V_2;
V_4 = L_9;
goto IL_0040;
}
IL_0040:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = V_4;
return L_10;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::DeriveSharedKey(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___otherPartyPublicKey0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = __this->get_sharedKeyHash_1();
V_0 = (bool)((!(((RuntimeObject*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)L_0) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_001a;
}
}
{
Exception_t * L_2 = (Exception_t *)il2cpp_codegen_object_new(Exception_t_il2cpp_TypeInfo_var);
Exception__ctor_m89BADFF36C3B170013878726E07729D51AA9FBE0(L_2, _stringLiteral74F6059628A004BF18CD6EC44600D208F451C153, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_2, NULL, DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB_RuntimeMethod_var);
}
IL_001a:
{
intptr_t L_3 = __this->get_cryptor_0();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = ___otherPartyPublicKey0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = ___otherPartyPublicKey0;
DiffieHellmanCryptoProviderNative_egCryptorDeriveSharedKey_mE62543C5EA2D91B93999E1CC15D6A14D98EFF650((intptr_t)L_3, L_4, (((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length)))), /*hidden argument*/NULL);
return;
}
}
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Encrypt(System.Byte[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* DiffieHellmanCryptoProviderNative_Encrypt_m3468D009848944980F7965EB971258C650122A8D (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___offset1, int32_t ___count2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProviderNative_Encrypt_m3468D009848944980F7965EB971258C650122A8D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
intptr_t V_0;
memset((&V_0), 0, sizeof(V_0));
int32_t V_1 = 0;
bool V_2 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_3 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_4 = NULL;
{
intptr_t L_0 = __this->get_cryptor_0();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = ___data0;
int32_t L_2 = ___offset1;
int32_t L_3 = ___count2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = __this->get_sharedKeyHash_1();
int32_t L_5 = DiffieHellmanCryptoProviderNative_egCryptorEncrypt_mA8DA63FA96EB12756651890BF40A9ECF9E5120A8((intptr_t)L_0, L_1, L_2, L_3, L_4, (intptr_t*)(&V_0), (int32_t*)(&V_1), /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)L_5) == ((int32_t)0))? 1 : 0);
bool L_6 = V_2;
if (!L_6)
{
goto IL_0037;
}
}
{
int32_t L_7 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_8 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_7);
V_3 = L_8;
intptr_t L_9 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = V_3;
int32_t L_11 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Marshal_tC795CE9CC2FFBA41EDB1AC1C0FEC04607DFA8A40_il2cpp_TypeInfo_var);
Marshal_Copy_m64744D9E23AFC00AA06CD6B057E19B7C0CE4C0C2((intptr_t)L_9, L_10, 0, L_11, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_12 = V_3;
V_4 = L_12;
goto IL_003d;
}
IL_0037:
{
V_4 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)NULL;
goto IL_003d;
}
IL_003d:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_13 = V_4;
return L_13;
}
}
// System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Decrypt(System.Byte[],System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* DiffieHellmanCryptoProviderNative_Decrypt_mD76B7353A6E47CA9BFEBA496AE2597AE72EAAD40 (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___offset1, int32_t ___count2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProviderNative_Decrypt_mD76B7353A6E47CA9BFEBA496AE2597AE72EAAD40_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
intptr_t V_0;
memset((&V_0), 0, sizeof(V_0));
int32_t V_1 = 0;
bool V_2 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_3 = NULL;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_4 = NULL;
{
intptr_t L_0 = __this->get_cryptor_0();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = ___data0;
int32_t L_2 = ___offset1;
int32_t L_3 = ___count2;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = __this->get_sharedKeyHash_1();
int32_t L_5 = DiffieHellmanCryptoProviderNative_egCryptorDecrypt_m1ECA9577B04E13C12E6A6B469476AAB6AED3E0E8((intptr_t)L_0, L_1, L_2, L_3, L_4, (intptr_t*)(&V_0), (int32_t*)(&V_1), /*hidden argument*/NULL);
V_2 = (bool)((((int32_t)L_5) == ((int32_t)0))? 1 : 0);
bool L_6 = V_2;
if (!L_6)
{
goto IL_0037;
}
}
{
int32_t L_7 = V_1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_8 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_7);
V_3 = L_8;
intptr_t L_9 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = V_3;
int32_t L_11 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Marshal_tC795CE9CC2FFBA41EDB1AC1C0FEC04607DFA8A40_il2cpp_TypeInfo_var);
Marshal_Copy_m64744D9E23AFC00AA06CD6B057E19B7C0CE4C0C2((intptr_t)L_9, L_10, 0, L_11, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_12 = V_3;
V_4 = L_12;
goto IL_003d;
}
IL_0037:
{
V_4 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)NULL;
goto IL_003d;
}
IL_003d:
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_13 = V_4;
return L_13;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative_Dispose_m8A4318E08F4A4AB32554C4C18CF59C7389AFCC10 (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (DiffieHellmanCryptoProviderNative_Dispose_m8A4318E08F4A4AB32554C4C18CF59C7389AFCC10_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
DiffieHellmanCryptoProviderNative_Dispose_m6AEC734973EAA3E24BB1BB7C46967A167EB13D8F(__this, (bool)1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(GC_tC1D7BD74E8F44ECCEF5CD2B5D84BFF9AAE02D01D_il2cpp_TypeInfo_var);
GC_SuppressFinalize_m037319A9B95A5BA437E806DE592802225EE5B425(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Dispose(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void DiffieHellmanCryptoProviderNative_Dispose_m6AEC734973EAA3E24BB1BB7C46967A167EB13D8F (DiffieHellmanCryptoProviderNative_t592764678EAE96D9085E7AD9B6A883AAD09934A1 * __this, bool ___disposing0, const RuntimeMethod* method)
{
bool V_0 = false;
bool V_1 = false;
{
bool L_0 = ___disposing0;
V_0 = L_0;
bool L_1 = V_0;
if (!L_1)
{
goto IL_0022;
}
}
{
intptr_t L_2 = __this->get_cryptor_0();
V_1 = (bool)1;
bool L_3 = V_1;
if (!L_3)
{
goto IL_0021;
}
}
{
intptr_t L_4 = __this->get_cryptor_0();
DiffieHellmanCryptoProviderNative_egCryptorDispose_mE9DE80C11D2F5B587B406B4907DCAF10BC991C93((intptr_t)L_4, /*hidden argument*/NULL);
}
IL_0021:
{
}
IL_0022:
{
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 Photon.SocketServer.Security.OakleyGroups::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void OakleyGroups__cctor_mBCB3AA137F7D7C2F975BBBCE380FEE3CF3AB41C2 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (OakleyGroups__cctor_mBCB3AA137F7D7C2F975BBBCE380FEE3CF3AB41C2_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
((OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields*)il2cpp_codegen_static_fields_for(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var))->set_Generator_0(((int32_t)22));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)96));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = L_0;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____B52BA6A3026520A6C49D37E4587601801BEE500123B3259B6BF03E7CECC3E63D_5_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL);
((OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields*)il2cpp_codegen_static_fields_for(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var))->set_OakleyPrime768_1(L_1);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_3 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)128));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = L_3;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_5 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____3F35A3F5F6C4376A744ACAD409BB22F8D897F949D2311D885ADAA890981B67A0_0_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_4, L_5, /*hidden argument*/NULL);
((OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields*)il2cpp_codegen_static_fields_for(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var))->set_OakleyPrime1024_2(L_4);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)192));
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = L_6;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_8 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_t16DB311CA7461C87E565684E5517CF184ACB7F0C____64FCC83EC403930BF18393DBC883CCAA1FBB08AC876F77F7AA99748CA945019B_2_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_7, L_8, /*hidden argument*/NULL);
((OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_StaticFields*)il2cpp_codegen_static_fields_for(OakleyGroups_t5687DCD9A0690BF8E47117394A7788C94FD1621F_il2cpp_TypeInfo_var))->set_OakleyPrime1536_3(L_7);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void PeerBase_set_ServerAddress_mD01CBD300E8005A193FA30A6EEBD78010B99036B_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CServerAddressU3Ek__BackingField_5(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void PeerBase_set_ProxyServerAddress_mB5F65528B1184E8DB02D6F8F51BB588348C0C5A7_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CProxyServerAddressU3Ek__BackingField_6(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR String_t* PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_U3CServerAddressU3Ek__BackingField_5();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CTotalPacketCountU3Ek__BackingField_5();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CTotalPacketCountU3Ek__BackingField_5(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CTotalCommandsInPacketsU3Ek__BackingField_6();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CTotalCommandsInPacketsU3Ek__BackingField_6(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_PackageHeaderSize_mAE818A528A1C5A59EF26EA6389AED7B54B1096ED_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CPackageHeaderSizeU3Ek__BackingField_0(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CReliableCommandCountU3Ek__BackingField_1();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CUnreliableCommandCountU3Ek__BackingField_2();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CFragmentCommandCountU3Ek__BackingField_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CControlCommandCountU3Ek__BackingField_4();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CReliableCommandBytesU3Ek__BackingField_7();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CUnreliableCommandBytesU3Ek__BackingField_8();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CFragmentCommandBytesU3Ek__BackingField_9();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CControlCommandBytesU3Ek__BackingField_10();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStats_get_PackageHeaderSize_m6DDAC0D97C22D96113F3CC03C17EB31E5FEF4786_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CPackageHeaderSizeU3Ek__BackingField_0();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ControlCommandBytes_mD9728C15CC1EF0CAFB1825D66A8C82133AA26FC7_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CControlCommandBytesU3Ek__BackingField_10(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ControlCommandCount_m731BED58A92CB20A30F6911269CB55F556D7FFC3_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CControlCommandCountU3Ek__BackingField_4(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ReliableCommandBytes_m1ACF9B259E8544025094BDBA03F24BEE2AB07BEE_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CReliableCommandBytesU3Ek__BackingField_7(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_ReliableCommandCount_m8D36D1B6FC616B6CB3BE2ECD1B8EC7468E15E46E_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CReliableCommandCountU3Ek__BackingField_1(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_UnreliableCommandBytes_m6172F51043B3A763FFB98BBBD57EB5BA271396B3_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CUnreliableCommandBytesU3Ek__BackingField_8(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_UnreliableCommandCount_m24194C72567D19FE10C5205CDF2745884F95BE89_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CUnreliableCommandCountU3Ek__BackingField_2(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_FragmentCommandBytes_m0F0D591C4A0E5EAA13143999BDDCB690E761F0F2_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CFragmentCommandBytesU3Ek__BackingField_9(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStats_set_FragmentCommandCount_m7575514F5532ABA49440639F466D65678AFA9BBD_inline (TrafficStats_tAA67E7AA7336D7A6E7C39C646FDA6CBE643CA7A1 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CFragmentCommandCountU3Ek__BackingField_3(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3COperationByteCountU3Ek__BackingField_2();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CResultByteCountU3Ek__BackingField_4();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CEventByteCountU3Ek__BackingField_6();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3COperationCountU3Ek__BackingField_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CResultCountU3Ek__BackingField_5();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CEventCountU3Ek__BackingField_7();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_OperationByteCount_m61EC810AF51F6AEBE591A30B4E96908781966CD2_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3COperationByteCountU3Ek__BackingField_2(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_OperationCount_mF031F074BA1BB8C0E34AC46955DFDDF65FAC418A_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3COperationCountU3Ek__BackingField_3(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_ResultByteCount_mEE65C5FA649E839121DC46E21C2A314A5859DFDB_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CResultByteCountU3Ek__BackingField_4(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_ResultCount_m8640EBCCA2E7F3B03120AD4F970E8D15E9480F6A_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CResultCountU3Ek__BackingField_5(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_EventByteCount_mE8D047D92F707F6A8D28B07AD0092D95ABEF2017_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CEventByteCountU3Ek__BackingField_6(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_EventCount_m9AA09E5AA7DDF2F81837257B034E82C7FED5A474_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CEventCountU3Ek__BackingField_7(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestOpResponseCallbackU3Ek__BackingField_8();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestOpResponseCallbackU3Ek__BackingField_8(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___value0, const RuntimeMethod* method)
{
{
uint8_t L_0 = ___value0;
__this->set_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestEventCallbackU3Ek__BackingField_10();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestEventCallbackU3Ek__BackingField_10(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, uint8_t ___value0, const RuntimeMethod* method)
{
{
uint8_t L_0 = ___value0;
__this->set_U3CLongestEventCallbackCodeU3Ek__BackingField_13(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestMessageCallback_m7CB4710B66709978395F803F53185B17531F33D9_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestMessageCallbackU3Ek__BackingField_11();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestMessageCallback_m2983F2737EF4E6407F326CE8554E2E4C1BA68D7B_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestMessageCallbackU3Ek__BackingField_11(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestRawMessageCallback_mEC136AA45D27B645EAE49D2D6AF8DFD02855A0A3_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestRawMessageCallbackU3Ek__BackingField_12();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestRawMessageCallback_m953E6A841776CE4581FD2051F3E8DD520FF3ADC5_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestRawMessageCallbackU3Ek__BackingField_12(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestDeltaBetweenDispatchingU3Ek__BackingField_14(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_DispatchIncomingCommandsCalls_mC14CDD723C55083B9E19CB7611C267D391A478B3_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CDispatchIncomingCommandsCallsU3Ek__BackingField_16(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CLongestDeltaBetweenSendingU3Ek__BackingField_15(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void TrafficStatsGameLevel_set_SendOutgoingCommandsCalls_m3A4A39B8D4DBCCC3DEB830286BF931F22A599F3B_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CSendOutgoingCommandsCallsU3Ek__BackingField_17(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR uint8_t TrafficStatsGameLevel_get_LongestEventCallbackCode_m2EDA97E93839E9983B7C36210430FC4BA8E3D368_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
uint8_t L_0 = __this->get_U3CLongestEventCallbackCodeU3Ek__BackingField_13();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR uint8_t TrafficStatsGameLevel_get_LongestOpResponseCallbackOpCode_m1D27D4106B5F50A1D30B218D87E7A618E6A8301F_inline (TrafficStatsGameLevel_t14270F74D92668765E50DBBB57FEEBFFDBDEC84A * __this, const RuntimeMethod* method)
{
{
uint8_t L_0 = __this->get_U3CLongestOpResponseCallbackOpCodeU3Ek__BackingField_9();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m507C9149FF7F83AAC72C29091E745D557DA47D22_gshared_inline (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get__size_2();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * List_1_get_Item_mFDB8AD680C600072736579BBF5F38F7416396588_gshared_inline (List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * __this, int32_t ___index0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___index0;
int32_t L_1 = (int32_t)__this->get__size_2();
if ((!(((uint32_t)L_0) >= ((uint32_t)L_1))))
{
goto IL_000e;
}
}
{
ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550(/*hidden argument*/NULL);
}
IL_000e:
{
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_2 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)__this->get__items_1();
int32_t L_3 = ___index0;
RuntimeObject * L_4 = IL2CPP_ARRAY_UNSAFE_LOAD((ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)L_2, (int32_t)L_3);
return L_4;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * Enumerator_get_Current_mD7829C7E8CFBEDD463B15A951CDE9B90A12CC55C_gshared_inline (Enumerator_tE0C99528D3DCE5863566CE37BD94162A4C0431CD * __this, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get_current_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t Queue_1_get_Count_m0CE0B6919A09EFFBB1EBA5B5DFEF50E4F8A89CFA_gshared_inline (Queue_1_tCC0C12E9ABD1C1421DEDD8C737F1A87C67ACC8F0 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get__size_3();
return L_0;
}
}
<file_sep>/Le Chapeau/Assets/Scripts/GameManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
using System.Linq;
public class GameManager : MonoBehaviourPunCallbacks
{
[Header("Stats")]
public bool gameEnded = false;
public float timeToWin;
public float invincibleDuration;
private float hatPickUpTime;
[Header("Players")]
public string playerPrefabLocation;
public Transform[] spawnPoints;
public PlayerController[] players;
public int playerWithHat;
private int playersInGame;
// Thinking this is meant as a global access point but not a singleton
public static GameManager instance;
private void Awake()
{
// every time a new GM is created it overwrites the old one
instance = this;
}
void Start()
{
// PhotonView PV = GetComponent<PhotonView>();
// Debug.Log(PV);
// Get a list of all players and announce you are in game
players = new PlayerController[PhotonNetwork.PlayerList.Length];
photonView.RPC("ImInGame", RpcTarget.AllBuffered);
}
[PunRPC]
void ImInGame()
{
playersInGame++;
// Guessing this is just a failsafe against errors in joining
if (playersInGame == PhotonNetwork.PlayerList.Length)
SpawnPlayer();
}
// Update is called once per frame
void Update()
{
}
void SpawnPlayer()
{
// Choose a random spawn point and instantiate the player across the network
GameObject playerObj = PhotonNetwork.Instantiate(playerPrefabLocation, spawnPoints[Random.Range(0, spawnPoints.Length)].position, Quaternion.identity);
//get player script
PlayerController playerScript = playerObj.GetComponent<PlayerController>();
playerScript.photonView.RPC("Initialize", RpcTarget.All, PhotonNetwork.LocalPlayer);
}
public PlayerController GetPlayer(int playerId)
{
return players.First(x => x.id == playerId);
}
public PlayerController GetPlayer(GameObject playerObject)
{
return players.First(x => x.gameObject == playerObject);
}
[PunRPC]
public void GiveHat(int playerId, bool initialGive)
{
//remove hat from current player
if (!initialGive)
{
GetPlayer(playerWithHat).SetHat(false);
}
playerWithHat = playerId;
GetPlayer(playerId).SetHat(true);
hatPickUpTime = Time.time;
}
public bool CanGetHat()
{
if (Time.time > hatPickUpTime + invincibleDuration)
return true;
else
return false;
}
[PunRPC]
void WinGame (int playerId)
{
gameEnded = true;
PlayerController player = GetPlayer(playerId);
GameUI.instance.SetWinText(player.photonPlayer.NickName);
Invoke("GoBackToMenu", 3.0f);
}
void GoBackToMenu()
{
PhotonNetwork.LeaveRoom();
NetworkManager.instance.ChangeScene("Menu");
}
}
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/PhotonRealtime_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Boolean Photon.Realtime.AppSettings::get_IsMasterServerAddress()
extern void AppSettings_get_IsMasterServerAddress_m2F43A395E93E666FA86C8D6994E00260BAD434A5 ();
// 0x00000002 System.Boolean Photon.Realtime.AppSettings::get_IsBestRegion()
extern void AppSettings_get_IsBestRegion_m534861CD875A9D5E8801052024D12A5F31EA1FE7 ();
// 0x00000003 System.Boolean Photon.Realtime.AppSettings::get_IsDefaultNameServer()
extern void AppSettings_get_IsDefaultNameServer_m70F8F26188A7EB0B8D55A9904A2F51498B36C941 ();
// 0x00000004 System.Boolean Photon.Realtime.AppSettings::get_IsDefaultPort()
extern void AppSettings_get_IsDefaultPort_mFD502FC4090BAE524899B8FE8D73F783A7BEF851 ();
// 0x00000005 System.String Photon.Realtime.AppSettings::ToStringFull()
extern void AppSettings_ToStringFull_m1C7E9BA1BBCB3C2AA844F4928FE9676AD5359750 ();
// 0x00000006 System.String Photon.Realtime.AppSettings::HideAppId(System.String)
extern void AppSettings_HideAppId_mA370DE64E29F1DA81F0A1815198001C1ABBB5E62 ();
// 0x00000007 Photon.Realtime.AppSettings Photon.Realtime.AppSettings::CopyTo(Photon.Realtime.AppSettings)
extern void AppSettings_CopyTo_mBCFA850C8D4305A03EF9C53F567095D6D5B54AC1 ();
// 0x00000008 System.Void Photon.Realtime.AppSettings::.ctor()
extern void AppSettings__ctor_mEE7F23500B21898BF51BD410D1CB360DEBF66931 ();
// 0x00000009 Photon.Realtime.LoadBalancingClient Photon.Realtime.ConnectionHandler::get_Client()
extern void ConnectionHandler_get_Client_mD602A5800223D074F0CF6B96FFE8529F545A4E80 ();
// 0x0000000A System.Void Photon.Realtime.ConnectionHandler::set_Client(Photon.Realtime.LoadBalancingClient)
extern void ConnectionHandler_set_Client_m41E8AA7C73CEC09E0C73FE3532C233F109DCBC45 ();
// 0x0000000B System.Int32 Photon.Realtime.ConnectionHandler::get_CountSendAcksOnly()
extern void ConnectionHandler_get_CountSendAcksOnly_m91028B52B53946478ACB442ED9DD1C16E7115C57 ();
// 0x0000000C System.Void Photon.Realtime.ConnectionHandler::set_CountSendAcksOnly(System.Int32)
extern void ConnectionHandler_set_CountSendAcksOnly_mD2D80CCEEBAACC896F8B35C6938F734E01C4104E ();
// 0x0000000D System.Boolean Photon.Realtime.ConnectionHandler::get_FallbackThreadRunning()
extern void ConnectionHandler_get_FallbackThreadRunning_m1BE4BE852820C4869BBBC66C21F57B9E573620B7 ();
// 0x0000000E System.Void Photon.Realtime.ConnectionHandler::OnApplicationQuit()
extern void ConnectionHandler_OnApplicationQuit_m3417E7F60D002C50325C2586F18DD3AF7E9550E6 ();
// 0x0000000F System.Void Photon.Realtime.ConnectionHandler::Awake()
extern void ConnectionHandler_Awake_m83D273997434940D3BB1A5431B7FFB4C8C1C5DAB ();
// 0x00000010 System.Void Photon.Realtime.ConnectionHandler::OnDisable()
extern void ConnectionHandler_OnDisable_mDFD9EF4418130730F105A69F1554FD1DA0842F31 ();
// 0x00000011 System.Void Photon.Realtime.ConnectionHandler::StartFallbackSendAckThread()
extern void ConnectionHandler_StartFallbackSendAckThread_mC683B581861BC397A4F8B6D5DD497C3BBA20B7A7 ();
// 0x00000012 System.Void Photon.Realtime.ConnectionHandler::StopFallbackSendAckThread()
extern void ConnectionHandler_StopFallbackSendAckThread_m735B91669EDB32A4F14196C741629CAF97E8D13D ();
// 0x00000013 System.Boolean Photon.Realtime.ConnectionHandler::RealtimeFallbackThread()
extern void ConnectionHandler_RealtimeFallbackThread_m3D6526BB05E1494789907593A678F679B159C273 ();
// 0x00000014 System.Void Photon.Realtime.ConnectionHandler::.ctor()
extern void ConnectionHandler__ctor_mB639F2C7F1DCE9C49A17C1CBEBABAC03ABB218E2 ();
// 0x00000015 System.Void Photon.Realtime.Extensions::Merge(System.Collections.IDictionary,System.Collections.IDictionary)
extern void Extensions_Merge_mE5A42AF13B84826877703729DB671E74D15D5AC9 ();
// 0x00000016 System.Void Photon.Realtime.Extensions::MergeStringKeys(System.Collections.IDictionary,System.Collections.IDictionary)
extern void Extensions_MergeStringKeys_mDCDF6621E96473D5021BFCEC97B22804F387951A ();
// 0x00000017 System.String Photon.Realtime.Extensions::ToStringFull(System.Collections.IDictionary)
extern void Extensions_ToStringFull_m7D5DC29B4341359CC4354664509068EF620E9DCC ();
// 0x00000018 System.String Photon.Realtime.Extensions::ToStringFull(System.Collections.Generic.List`1<T>)
// 0x00000019 System.String Photon.Realtime.Extensions::ToStringFull(System.Object[])
extern void Extensions_ToStringFull_m2121FA96DD4725901A192FA61DC03AAF6766D239 ();
// 0x0000001A ExitGames.Client.Photon.Hashtable Photon.Realtime.Extensions::StripToStringKeys(System.Collections.IDictionary)
extern void Extensions_StripToStringKeys_m3308CA9F76B4513C17698D6DAA3E3C06BD6AF47B ();
// 0x0000001B System.Void Photon.Realtime.Extensions::StripKeysWithNullValues(System.Collections.IDictionary)
extern void Extensions_StripKeysWithNullValues_m7708059EAF935DD384169C58E072392DB34E0055 ();
// 0x0000001C System.Boolean Photon.Realtime.Extensions::Contains(System.Int32[],System.Int32)
extern void Extensions_Contains_m93F4A6BA815601CE40B03D37FCA0F51C9BA1EC71 ();
// 0x0000001D System.Void Photon.Realtime.Extensions::.cctor()
extern void Extensions__cctor_m026E9175E0BFF4F6D6624481B752C0E29EC6A4B7 ();
// 0x0000001E System.String Photon.Realtime.FriendInfo::get_Name()
extern void FriendInfo_get_Name_m7E6D9124C3CDE8D6045D3FA8B4AB2B4BE03D08AE ();
// 0x0000001F System.String Photon.Realtime.FriendInfo::get_UserId()
extern void FriendInfo_get_UserId_m475DCCA64B31738682706B4B7D02A520394E951C ();
// 0x00000020 System.Void Photon.Realtime.FriendInfo::set_UserId(System.String)
extern void FriendInfo_set_UserId_m635303D0D3B6F265DC5EA4BC48DC6F7F7CAEAC4B ();
// 0x00000021 System.Boolean Photon.Realtime.FriendInfo::get_IsOnline()
extern void FriendInfo_get_IsOnline_mB5135E0CCCE94C97B89DC682844A93E04E7AC461 ();
// 0x00000022 System.Void Photon.Realtime.FriendInfo::set_IsOnline(System.Boolean)
extern void FriendInfo_set_IsOnline_mF82EFFC6D63C22396272B734F74176E4B46D3ABE ();
// 0x00000023 System.String Photon.Realtime.FriendInfo::get_Room()
extern void FriendInfo_get_Room_m67D7169E01E1F1C9C31EBCCB8BC706090BAB3119 ();
// 0x00000024 System.Void Photon.Realtime.FriendInfo::set_Room(System.String)
extern void FriendInfo_set_Room_m77970C7788BA7A903FA0E4C83CD2C53CC7CBF251 ();
// 0x00000025 System.Boolean Photon.Realtime.FriendInfo::get_IsInRoom()
extern void FriendInfo_get_IsInRoom_mF994126A3C7188F446816E4D1079A1327DE0F9D8 ();
// 0x00000026 System.String Photon.Realtime.FriendInfo::ToString()
extern void FriendInfo_ToString_mEADB7533405EBFBF96B8FD2BD79A9E421170A61C ();
// 0x00000027 System.Void Photon.Realtime.FriendInfo::.ctor()
extern void FriendInfo__ctor_m3E7BB94A24F402D1A41247C30F470CE6F6AEB4B0 ();
// 0x00000028 Photon.Realtime.LoadBalancingPeer Photon.Realtime.LoadBalancingClient::get_LoadBalancingPeer()
extern void LoadBalancingClient_get_LoadBalancingPeer_m0997FEE69F076CDD9740F8A3B34038733175A243 ();
// 0x00000029 System.Void Photon.Realtime.LoadBalancingClient::set_LoadBalancingPeer(Photon.Realtime.LoadBalancingPeer)
extern void LoadBalancingClient_set_LoadBalancingPeer_m8B21BEA9184F84DCDE7BBB9FBB60134B29B29C3D ();
// 0x0000002A ExitGames.Client.Photon.SerializationProtocol Photon.Realtime.LoadBalancingClient::get_SerializationProtocol()
extern void LoadBalancingClient_get_SerializationProtocol_m530CA20A4128CA9729B069A8975CA79165FD6E7A ();
// 0x0000002B System.Void Photon.Realtime.LoadBalancingClient::set_SerializationProtocol(ExitGames.Client.Photon.SerializationProtocol)
extern void LoadBalancingClient_set_SerializationProtocol_mA4721398801BDF3D206EF073F7E92DDBBF528A9E ();
// 0x0000002C System.String Photon.Realtime.LoadBalancingClient::get_AppVersion()
extern void LoadBalancingClient_get_AppVersion_m2D816CED5CD4B71B47C03B33D2C5DFAE08997B9D ();
// 0x0000002D System.Void Photon.Realtime.LoadBalancingClient::set_AppVersion(System.String)
extern void LoadBalancingClient_set_AppVersion_mB366065ACFDA6142E92B1585194423E398A9260E ();
// 0x0000002E System.String Photon.Realtime.LoadBalancingClient::get_AppId()
extern void LoadBalancingClient_get_AppId_m49A1261CC79356CABF9A709AAC4674B406ECA1DD ();
// 0x0000002F System.Void Photon.Realtime.LoadBalancingClient::set_AppId(System.String)
extern void LoadBalancingClient_set_AppId_m526B1D687E3EE08B889F2CBD2F84853C6DA86F27 ();
// 0x00000030 Photon.Realtime.AuthenticationValues Photon.Realtime.LoadBalancingClient::get_AuthValues()
extern void LoadBalancingClient_get_AuthValues_mE56B5ADE8CC0EBB1CB9C5DFA64913AC5B36B7F02 ();
// 0x00000031 System.Void Photon.Realtime.LoadBalancingClient::set_AuthValues(Photon.Realtime.AuthenticationValues)
extern void LoadBalancingClient_set_AuthValues_mB58414B316951242AD2045E85DF048B5357A9C28 ();
// 0x00000032 System.Nullable`1<ExitGames.Client.Photon.ConnectionProtocol> Photon.Realtime.LoadBalancingClient::get_ExpectedProtocol()
extern void LoadBalancingClient_get_ExpectedProtocol_mBB0B05DA0F702E2A1E4E9811B248A807DFB579A5 ();
// 0x00000033 System.Void Photon.Realtime.LoadBalancingClient::set_ExpectedProtocol(System.Nullable`1<ExitGames.Client.Photon.ConnectionProtocol>)
extern void LoadBalancingClient_set_ExpectedProtocol_mADD7BD637137FD001681F3C160865902ECF2AE87 ();
// 0x00000034 System.String Photon.Realtime.LoadBalancingClient::get_TokenForInit()
extern void LoadBalancingClient_get_TokenForInit_m069DD8AE48586F2D321FC639DFF6C9D9182ADC13 ();
// 0x00000035 System.Boolean Photon.Realtime.LoadBalancingClient::get_IsUsingNameServer()
extern void LoadBalancingClient_get_IsUsingNameServer_m018A230E641F2CEC1B60DE60EB6BE472834F5092 ();
// 0x00000036 System.Void Photon.Realtime.LoadBalancingClient::set_IsUsingNameServer(System.Boolean)
extern void LoadBalancingClient_set_IsUsingNameServer_mDF99F6C889F0139711EB50A21D0055A7E4A0F8B2 ();
// 0x00000037 System.String Photon.Realtime.LoadBalancingClient::get_NameServerAddress()
extern void LoadBalancingClient_get_NameServerAddress_m3427DF83D68B873E55A3496C4B5C77E1324C7D06 ();
// 0x00000038 System.Boolean Photon.Realtime.LoadBalancingClient::get_UseAlternativeUdpPorts()
extern void LoadBalancingClient_get_UseAlternativeUdpPorts_m99F6E198B4B848CDF32991FBED08120DCB87915B ();
// 0x00000039 System.Void Photon.Realtime.LoadBalancingClient::set_UseAlternativeUdpPorts(System.Boolean)
extern void LoadBalancingClient_set_UseAlternativeUdpPorts_mE307DBDAB3A4BC8E2D81F5BF899830132F53C1A3 ();
// 0x0000003A System.Boolean Photon.Realtime.LoadBalancingClient::get_EnableProtocolFallback()
extern void LoadBalancingClient_get_EnableProtocolFallback_mB180B5ED5729E1B1598295C2736A370FE8F0B888 ();
// 0x0000003B System.Void Photon.Realtime.LoadBalancingClient::set_EnableProtocolFallback(System.Boolean)
extern void LoadBalancingClient_set_EnableProtocolFallback_m711220BE304C2B1F3E624FEB2ECAEC278CE5EABC ();
// 0x0000003C System.String Photon.Realtime.LoadBalancingClient::get_CurrentServerAddress()
extern void LoadBalancingClient_get_CurrentServerAddress_m617D5473B405AA52AA10EBC3FB8CEC4E65252A02 ();
// 0x0000003D System.String Photon.Realtime.LoadBalancingClient::get_MasterServerAddress()
extern void LoadBalancingClient_get_MasterServerAddress_mE550265A7F1B30E6D1464D0139E859483D507F6B ();
// 0x0000003E System.Void Photon.Realtime.LoadBalancingClient::set_MasterServerAddress(System.String)
extern void LoadBalancingClient_set_MasterServerAddress_m988C29C7041A715EDA996AD6B5A6370AD6842424 ();
// 0x0000003F System.String Photon.Realtime.LoadBalancingClient::get_GameServerAddress()
extern void LoadBalancingClient_get_GameServerAddress_m572210F250D42394A3E6E0FAB7E15DBD6EE78E05 ();
// 0x00000040 System.Void Photon.Realtime.LoadBalancingClient::set_GameServerAddress(System.String)
extern void LoadBalancingClient_set_GameServerAddress_mD863BE3068C8A77BD9E85C5F090EB88A73EF9B65 ();
// 0x00000041 Photon.Realtime.ServerConnection Photon.Realtime.LoadBalancingClient::get_Server()
extern void LoadBalancingClient_get_Server_mF0DA3FA871E123896E53C39758BAF853F1A80EC3 ();
// 0x00000042 System.Void Photon.Realtime.LoadBalancingClient::set_Server(Photon.Realtime.ServerConnection)
extern void LoadBalancingClient_set_Server_m6F4DE1ABC82A6FF949AA370EA18D18920597527E ();
// 0x00000043 Photon.Realtime.ClientState Photon.Realtime.LoadBalancingClient::get_State()
extern void LoadBalancingClient_get_State_mDCC22D02A85973C68623C764C96BE9A862C8BD11 ();
// 0x00000044 System.Void Photon.Realtime.LoadBalancingClient::set_State(Photon.Realtime.ClientState)
extern void LoadBalancingClient_set_State_m1D4AA099CA318F90B257BC03CF9F54979E677BCA ();
// 0x00000045 System.Boolean Photon.Realtime.LoadBalancingClient::get_IsConnected()
extern void LoadBalancingClient_get_IsConnected_m90DAE8B064E99BA87DC5CDAC811D38647D468C2C ();
// 0x00000046 System.Boolean Photon.Realtime.LoadBalancingClient::get_IsConnectedAndReady()
extern void LoadBalancingClient_get_IsConnectedAndReady_m14A6F4A0A3D74E499F65B0360C76A33E94AFAC9C ();
// 0x00000047 System.Void Photon.Realtime.LoadBalancingClient::add_StateChanged(System.Action`2<Photon.Realtime.ClientState,Photon.Realtime.ClientState>)
extern void LoadBalancingClient_add_StateChanged_m630663477C5815D2183AC49D0F5B9C1A5860B50B ();
// 0x00000048 System.Void Photon.Realtime.LoadBalancingClient::remove_StateChanged(System.Action`2<Photon.Realtime.ClientState,Photon.Realtime.ClientState>)
extern void LoadBalancingClient_remove_StateChanged_mC9DBCEE79FE46D63C9BDB1FDDD3509040BB0F622 ();
// 0x00000049 System.Void Photon.Realtime.LoadBalancingClient::add_EventReceived(System.Action`1<ExitGames.Client.Photon.EventData>)
extern void LoadBalancingClient_add_EventReceived_mB9CA21DC8A6CC6C5CC104CA95EBE8EC3BDB0E89E ();
// 0x0000004A System.Void Photon.Realtime.LoadBalancingClient::remove_EventReceived(System.Action`1<ExitGames.Client.Photon.EventData>)
extern void LoadBalancingClient_remove_EventReceived_mB5E8B057AC7F815D23527D023E0AE9DDCCE1D410 ();
// 0x0000004B System.Void Photon.Realtime.LoadBalancingClient::add_OpResponseReceived(System.Action`1<ExitGames.Client.Photon.OperationResponse>)
extern void LoadBalancingClient_add_OpResponseReceived_m62C814B15A34EDBA8EB903BE2301C723779C23C3 ();
// 0x0000004C System.Void Photon.Realtime.LoadBalancingClient::remove_OpResponseReceived(System.Action`1<ExitGames.Client.Photon.OperationResponse>)
extern void LoadBalancingClient_remove_OpResponseReceived_m63B38E969559A3AAE7B5CCD9D29E44DFB45168DB ();
// 0x0000004D Photon.Realtime.DisconnectCause Photon.Realtime.LoadBalancingClient::get_DisconnectedCause()
extern void LoadBalancingClient_get_DisconnectedCause_mEC001DE2A4D9E6BC4A364D7F3039EDF72DF395B2 ();
// 0x0000004E System.Void Photon.Realtime.LoadBalancingClient::set_DisconnectedCause(Photon.Realtime.DisconnectCause)
extern void LoadBalancingClient_set_DisconnectedCause_mA384559B6EA4E119910272DF3BBBC1326C47C3E6 ();
// 0x0000004F System.Boolean Photon.Realtime.LoadBalancingClient::get_InLobby()
extern void LoadBalancingClient_get_InLobby_mEF3C513D70D233C19ED61DAF2D4450DA5184A7B9 ();
// 0x00000050 Photon.Realtime.TypedLobby Photon.Realtime.LoadBalancingClient::get_CurrentLobby()
extern void LoadBalancingClient_get_CurrentLobby_mA012C41E1DF7DF53F0CF4A024C9E0FABDDDC2456 ();
// 0x00000051 System.Void Photon.Realtime.LoadBalancingClient::set_CurrentLobby(Photon.Realtime.TypedLobby)
extern void LoadBalancingClient_set_CurrentLobby_m77CC4772915A138EE66B874EBB0A9F707C4A8FF8 ();
// 0x00000052 Photon.Realtime.Player Photon.Realtime.LoadBalancingClient::get_LocalPlayer()
extern void LoadBalancingClient_get_LocalPlayer_mAB1446D19EBDAE3D7D47E92F560AE939B3F21CD8 ();
// 0x00000053 System.Void Photon.Realtime.LoadBalancingClient::set_LocalPlayer(Photon.Realtime.Player)
extern void LoadBalancingClient_set_LocalPlayer_m3AA86EC255BF530EC13FA13CB3BE4D8475D60137 ();
// 0x00000054 System.String Photon.Realtime.LoadBalancingClient::get_NickName()
extern void LoadBalancingClient_get_NickName_m8075389432D8241A5681B82A8C63222B894E060F ();
// 0x00000055 System.Void Photon.Realtime.LoadBalancingClient::set_NickName(System.String)
extern void LoadBalancingClient_set_NickName_m5DBB4C8C18626B5CC593EC56A564C55B51A3306E ();
// 0x00000056 System.String Photon.Realtime.LoadBalancingClient::get_UserId()
extern void LoadBalancingClient_get_UserId_mE44D3E9907F0B72F57E8D6CBF3A0E80B07064AA8 ();
// 0x00000057 System.Void Photon.Realtime.LoadBalancingClient::set_UserId(System.String)
extern void LoadBalancingClient_set_UserId_m8CE468179FE3969883147E165AD466021B0BABB6 ();
// 0x00000058 Photon.Realtime.Room Photon.Realtime.LoadBalancingClient::get_CurrentRoom()
extern void LoadBalancingClient_get_CurrentRoom_mA294529AE11CDDF17597FADE478A392B8B534002 ();
// 0x00000059 System.Void Photon.Realtime.LoadBalancingClient::set_CurrentRoom(Photon.Realtime.Room)
extern void LoadBalancingClient_set_CurrentRoom_mE849A43CF3269E76CE909EE4DE23265175EEB596 ();
// 0x0000005A System.Boolean Photon.Realtime.LoadBalancingClient::get_InRoom()
extern void LoadBalancingClient_get_InRoom_m7DAE0F52D1CF9FF0B2373BE9559788C1752E03B3 ();
// 0x0000005B System.Int32 Photon.Realtime.LoadBalancingClient::get_PlayersOnMasterCount()
extern void LoadBalancingClient_get_PlayersOnMasterCount_m8DBA036419F15FE61A7FCDFE8DE1906FE95DB67F ();
// 0x0000005C System.Void Photon.Realtime.LoadBalancingClient::set_PlayersOnMasterCount(System.Int32)
extern void LoadBalancingClient_set_PlayersOnMasterCount_mBC03E29C60BE48118AD42E71EF2B123029B53E32 ();
// 0x0000005D System.Int32 Photon.Realtime.LoadBalancingClient::get_PlayersInRoomsCount()
extern void LoadBalancingClient_get_PlayersInRoomsCount_m064FF861BE6A381EC4D87C4F342F62AA6ACA3C21 ();
// 0x0000005E System.Void Photon.Realtime.LoadBalancingClient::set_PlayersInRoomsCount(System.Int32)
extern void LoadBalancingClient_set_PlayersInRoomsCount_m99D3F0A6CDA8A3475CBFE8EB3549E2192E970447 ();
// 0x0000005F System.Int32 Photon.Realtime.LoadBalancingClient::get_RoomsCount()
extern void LoadBalancingClient_get_RoomsCount_mDE93A42C477C145F9643BF64FA678B7546819063 ();
// 0x00000060 System.Void Photon.Realtime.LoadBalancingClient::set_RoomsCount(System.Int32)
extern void LoadBalancingClient_set_RoomsCount_m3F6B5B1193EB8419109C85CDCF5220B377932AEA ();
// 0x00000061 System.Boolean Photon.Realtime.LoadBalancingClient::get_IsFetchingFriendList()
extern void LoadBalancingClient_get_IsFetchingFriendList_m173C51FE398A7F356F7875DCA876B059960BFCD8 ();
// 0x00000062 System.String Photon.Realtime.LoadBalancingClient::get_CloudRegion()
extern void LoadBalancingClient_get_CloudRegion_m0AAC37B5520321CC88C90C625E56EBEC822C3DEB ();
// 0x00000063 System.Void Photon.Realtime.LoadBalancingClient::set_CloudRegion(System.String)
extern void LoadBalancingClient_set_CloudRegion_m6DBD960027DE67168D93A00A75861C9552ED9393 ();
// 0x00000064 System.String Photon.Realtime.LoadBalancingClient::get_CurrentCluster()
extern void LoadBalancingClient_get_CurrentCluster_mEDA76121FC84D677906B31A2EF74EB72292C3B82 ();
// 0x00000065 System.Void Photon.Realtime.LoadBalancingClient::set_CurrentCluster(System.String)
extern void LoadBalancingClient_set_CurrentCluster_m8AA87CB42014FB4F1305ECF87124B4E2023F6154 ();
// 0x00000066 System.Void Photon.Realtime.LoadBalancingClient::.ctor(ExitGames.Client.Photon.ConnectionProtocol)
extern void LoadBalancingClient__ctor_m3770A74AE443B3A4EA6E78A205501B0C7037E11A ();
// 0x00000067 System.Void Photon.Realtime.LoadBalancingClient::.ctor(System.String,System.String,System.String,ExitGames.Client.Photon.ConnectionProtocol)
extern void LoadBalancingClient__ctor_mEA9061ACAA0714BDA88A90A10E3802DD65D0FA47 ();
// 0x00000068 System.String Photon.Realtime.LoadBalancingClient::GetNameServerAddress()
extern void LoadBalancingClient_GetNameServerAddress_m11E7EB63DB1C7E0DDBE48A49D7DE82140ED634BC ();
// 0x00000069 System.Boolean Photon.Realtime.LoadBalancingClient::ConnectUsingSettings(Photon.Realtime.AppSettings)
extern void LoadBalancingClient_ConnectUsingSettings_mA48FB48E02A0508F5EB4DC7DF4FA99B7D19E0408 ();
// 0x0000006A System.Boolean Photon.Realtime.LoadBalancingClient::Connect()
extern void LoadBalancingClient_Connect_mCF5DFFA5B00A2F5EF372AEC99932E51AE7E6E81C ();
// 0x0000006B System.Boolean Photon.Realtime.LoadBalancingClient::ConnectToMasterServer()
extern void LoadBalancingClient_ConnectToMasterServer_m879AE005065AFF4C0C9B4B69962F6B2B0F118962 ();
// 0x0000006C System.Boolean Photon.Realtime.LoadBalancingClient::ConnectToNameServer()
extern void LoadBalancingClient_ConnectToNameServer_m2DFF6510956EA30345D6A055272C86D7390BC9FC ();
// 0x0000006D System.Boolean Photon.Realtime.LoadBalancingClient::ConnectToRegionMaster(System.String)
extern void LoadBalancingClient_ConnectToRegionMaster_m10E860D595ED32FBAF8F7809C20CEA18C477DD76 ();
// 0x0000006E System.Void Photon.Realtime.LoadBalancingClient::CheckConnectSetupWebGl()
extern void LoadBalancingClient_CheckConnectSetupWebGl_m6FEF688E16EE639BBCC4E399B2E0C873D8A8AA8C ();
// 0x0000006F System.Void Photon.Realtime.LoadBalancingClient::CheckConnectSetupXboxOne()
extern void LoadBalancingClient_CheckConnectSetupXboxOne_m2FD4C61BEE5B0257328922C2877223D68B55BD1E ();
// 0x00000070 System.Boolean Photon.Realtime.LoadBalancingClient::Connect(System.String,System.String,Photon.Realtime.ServerConnection)
extern void LoadBalancingClient_Connect_m50D3F6D481ADD385DEF6BF0ED539EF5BFB710221 ();
// 0x00000071 System.Boolean Photon.Realtime.LoadBalancingClient::ReconnectToMaster()
extern void LoadBalancingClient_ReconnectToMaster_m4761338630C7B0FF8917913FC1FDB6AA6E78FCC1 ();
// 0x00000072 System.Boolean Photon.Realtime.LoadBalancingClient::ReconnectAndRejoin()
extern void LoadBalancingClient_ReconnectAndRejoin_m033BA70D4D0605C4CC679DCFEC7CDDDFA18AA563 ();
// 0x00000073 System.Void Photon.Realtime.LoadBalancingClient::Disconnect(Photon.Realtime.DisconnectCause)
extern void LoadBalancingClient_Disconnect_mE1BB26362BDB2731ACFFDB0082C8BFFAF39A34B4 ();
// 0x00000074 System.Void Photon.Realtime.LoadBalancingClient::DisconnectToReconnect()
extern void LoadBalancingClient_DisconnectToReconnect_mD4506B2DB0BAC6E370909D28CA8C5B4630D631FE ();
// 0x00000075 System.Void Photon.Realtime.LoadBalancingClient::SimulateConnectionLoss(System.Boolean)
extern void LoadBalancingClient_SimulateConnectionLoss_m4C381965C26752DD6E9D6EACDBCEFB25D72CD6A1 ();
// 0x00000076 System.Boolean Photon.Realtime.LoadBalancingClient::CallAuthenticate()
extern void LoadBalancingClient_CallAuthenticate_mCA1632629441AA360D28CAF559445F4DC3D0C9E3 ();
// 0x00000077 System.Void Photon.Realtime.LoadBalancingClient::Service()
extern void LoadBalancingClient_Service_m443AD58B507AD1E7601CB7785BD4804ACFD1868A ();
// 0x00000078 System.Boolean Photon.Realtime.LoadBalancingClient::OpGetRegions()
extern void LoadBalancingClient_OpGetRegions_m46A3AFA0AD29E32E2424BC20F78D438333D421FE ();
// 0x00000079 System.Boolean Photon.Realtime.LoadBalancingClient::OpFindFriends(System.String[],Photon.Realtime.FindFriendsOptions)
extern void LoadBalancingClient_OpFindFriends_m7ECF4CAB63B89AA5D1AC0D6A2E6222BD16AB9985 ();
// 0x0000007A System.Boolean Photon.Realtime.LoadBalancingClient::OpJoinLobby(Photon.Realtime.TypedLobby)
extern void LoadBalancingClient_OpJoinLobby_m6FEB6C0808D3963ADC90E55D9ED9B7357AD61DB7 ();
// 0x0000007B System.Boolean Photon.Realtime.LoadBalancingClient::OpLeaveLobby()
extern void LoadBalancingClient_OpLeaveLobby_m079C4D33791C5B254E2EC06A95D29CC6D618F9EA ();
// 0x0000007C System.Boolean Photon.Realtime.LoadBalancingClient::OpJoinRandomRoom(Photon.Realtime.OpJoinRandomRoomParams)
extern void LoadBalancingClient_OpJoinRandomRoom_m538FE487F277FF1F054E8A0309F751DA76704376 ();
// 0x0000007D System.Boolean Photon.Realtime.LoadBalancingClient::OpJoinRandomOrCreateRoom(Photon.Realtime.OpJoinRandomRoomParams,Photon.Realtime.EnterRoomParams)
extern void LoadBalancingClient_OpJoinRandomOrCreateRoom_m0594DC879B570D9C75EBA2B87181D50D804D2057 ();
// 0x0000007E System.Boolean Photon.Realtime.LoadBalancingClient::OpCreateRoom(Photon.Realtime.EnterRoomParams)
extern void LoadBalancingClient_OpCreateRoom_m5B1E30682BEFB186628ABACBBDA004259AA37CD8 ();
// 0x0000007F System.Boolean Photon.Realtime.LoadBalancingClient::OpJoinOrCreateRoom(Photon.Realtime.EnterRoomParams)
extern void LoadBalancingClient_OpJoinOrCreateRoom_m7619F10D86CF4AC1F62C2B23CD5CFF56876753B6 ();
// 0x00000080 System.Boolean Photon.Realtime.LoadBalancingClient::OpJoinRoom(Photon.Realtime.EnterRoomParams)
extern void LoadBalancingClient_OpJoinRoom_m3BD6B9BB0D6A67A9A0FA7D3F0B56D9A2580B26A8 ();
// 0x00000081 System.Boolean Photon.Realtime.LoadBalancingClient::OpRejoinRoom(System.String)
extern void LoadBalancingClient_OpRejoinRoom_m918AFF2E3CEDDFFBC6DE787F799C7A88D797CBC8 ();
// 0x00000082 System.Boolean Photon.Realtime.LoadBalancingClient::OpLeaveRoom(System.Boolean,System.Boolean)
extern void LoadBalancingClient_OpLeaveRoom_m210103CE0E2DA347DF6C962173DE4D59FE2C9C8B ();
// 0x00000083 System.Boolean Photon.Realtime.LoadBalancingClient::OpGetGameList(Photon.Realtime.TypedLobby,System.String)
extern void LoadBalancingClient_OpGetGameList_mB230101A905B4322C01D32D1B148787EF6A6F48A ();
// 0x00000084 System.Boolean Photon.Realtime.LoadBalancingClient::OpSetCustomPropertiesOfActor(System.Int32,ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void LoadBalancingClient_OpSetCustomPropertiesOfActor_m7C266D112E4C1C3B88B33082D67BC3802F8E8161 ();
// 0x00000085 System.Boolean Photon.Realtime.LoadBalancingClient::OpSetPropertiesOfActor(System.Int32,ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void LoadBalancingClient_OpSetPropertiesOfActor_mBD4BF4811B631552F5CC24790D5DFD4B5DC9076E ();
// 0x00000086 System.Boolean Photon.Realtime.LoadBalancingClient::OpSetCustomPropertiesOfRoom(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void LoadBalancingClient_OpSetCustomPropertiesOfRoom_m2846C19E9B01FCEDE7DD623453152EF9D10D384D ();
// 0x00000087 System.Boolean Photon.Realtime.LoadBalancingClient::OpSetPropertyOfRoom(System.Byte,System.Object)
extern void LoadBalancingClient_OpSetPropertyOfRoom_mCB8F1CBD88BB217EB1C85388CA3532FE79B0A337 ();
// 0x00000088 System.Boolean Photon.Realtime.LoadBalancingClient::OpSetPropertiesOfRoom(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void LoadBalancingClient_OpSetPropertiesOfRoom_mA3338828F2797365FB5451923B8484E191BA8452 ();
// 0x00000089 System.Boolean Photon.Realtime.LoadBalancingClient::OpRaiseEvent(System.Byte,System.Object,Photon.Realtime.RaiseEventOptions,ExitGames.Client.Photon.SendOptions)
extern void LoadBalancingClient_OpRaiseEvent_mE57B99D4F2C2F2E3FAD2E389126044F89A466790 ();
// 0x0000008A System.Boolean Photon.Realtime.LoadBalancingClient::OpChangeGroups(System.Byte[],System.Byte[])
extern void LoadBalancingClient_OpChangeGroups_mBC257BAFF6ADFA776D8B357477332E22AD0D65CB ();
// 0x0000008B System.Void Photon.Realtime.LoadBalancingClient::ReadoutProperties(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,System.Int32)
extern void LoadBalancingClient_ReadoutProperties_mDE7C1DC185112B08C186DA6104C2DCB6140BCC7C ();
// 0x0000008C ExitGames.Client.Photon.Hashtable Photon.Realtime.LoadBalancingClient::ReadoutPropertiesForActorNr(ExitGames.Client.Photon.Hashtable,System.Int32)
extern void LoadBalancingClient_ReadoutPropertiesForActorNr_mF03F6A56B22E5F39FCAD90B77C6DF46C2F1076D2 ();
// 0x0000008D System.Void Photon.Realtime.LoadBalancingClient::ChangeLocalID(System.Int32)
extern void LoadBalancingClient_ChangeLocalID_mAC51D66CAD91AD689FC634E450ED0CE8E3429C41 ();
// 0x0000008E System.Void Photon.Realtime.LoadBalancingClient::GameEnteredOnGameServer(ExitGames.Client.Photon.OperationResponse)
extern void LoadBalancingClient_GameEnteredOnGameServer_mB862886F5A7C4407A86E49A547695CE3E2508525 ();
// 0x0000008F System.Void Photon.Realtime.LoadBalancingClient::UpdatedActorList(System.Int32[])
extern void LoadBalancingClient_UpdatedActorList_mA355582E01CBAE38175910FC738C4B9EA5C80D5D ();
// 0x00000090 Photon.Realtime.Player Photon.Realtime.LoadBalancingClient::CreatePlayer(System.String,System.Int32,System.Boolean,ExitGames.Client.Photon.Hashtable)
extern void LoadBalancingClient_CreatePlayer_mFBC5E3E1BA806B5052293CECA22A18B8108CFBE6 ();
// 0x00000091 Photon.Realtime.Room Photon.Realtime.LoadBalancingClient::CreateRoom(System.String,Photon.Realtime.RoomOptions)
extern void LoadBalancingClient_CreateRoom_m2A44592E172B369A6540C607BE5594E042366393 ();
// 0x00000092 System.Boolean Photon.Realtime.LoadBalancingClient::CheckIfOpAllowedOnServer(System.Byte,Photon.Realtime.ServerConnection)
extern void LoadBalancingClient_CheckIfOpAllowedOnServer_mD2284A0C2FFEA7824E4E08FE62A3C33A1620DBC2 ();
// 0x00000093 System.Boolean Photon.Realtime.LoadBalancingClient::CheckIfOpCanBeSent(System.Byte,Photon.Realtime.ServerConnection,System.String)
extern void LoadBalancingClient_CheckIfOpCanBeSent_m1E0ACAE5106D3E8D10B03F96E857E3E98244D64D ();
// 0x00000094 System.Boolean Photon.Realtime.LoadBalancingClient::CheckIfClientIsReadyToCallOperation(System.Byte)
extern void LoadBalancingClient_CheckIfClientIsReadyToCallOperation_m618BC7E29479E88C6ED9F6809D770E4A941D7099 ();
// 0x00000095 System.Void Photon.Realtime.LoadBalancingClient::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String)
extern void LoadBalancingClient_DebugReturn_m43559B8136B783BDDACC300D008B50FDC34D6411 ();
// 0x00000096 System.Void Photon.Realtime.LoadBalancingClient::CallbackRoomEnterFailed(ExitGames.Client.Photon.OperationResponse)
extern void LoadBalancingClient_CallbackRoomEnterFailed_m6630DC15FEF2C4D7314FE7FDF87FB8A8D9D56693 ();
// 0x00000097 System.Void Photon.Realtime.LoadBalancingClient::OnOperationResponse(ExitGames.Client.Photon.OperationResponse)
extern void LoadBalancingClient_OnOperationResponse_m3AD6008AF2B047C0704E62C0FC33ACFDE8F79CCF ();
// 0x00000098 System.Void Photon.Realtime.LoadBalancingClient::OnStatusChanged(ExitGames.Client.Photon.StatusCode)
extern void LoadBalancingClient_OnStatusChanged_mDBCB55CE9FE6620B26A10B23B6662A427A1EBB62 ();
// 0x00000099 System.Void Photon.Realtime.LoadBalancingClient::OnEvent(ExitGames.Client.Photon.EventData)
extern void LoadBalancingClient_OnEvent_m508337C5FF635F156751A24A5640E99D9F19EF49 ();
// 0x0000009A System.Void Photon.Realtime.LoadBalancingClient::OnMessage(System.Object)
extern void LoadBalancingClient_OnMessage_m6D60BAA1FE0540E3BF0D7D0C73790B8637AF89B1 ();
// 0x0000009B System.Void Photon.Realtime.LoadBalancingClient::OnRegionPingCompleted(Photon.Realtime.RegionHandler)
extern void LoadBalancingClient_OnRegionPingCompleted_m9392917806ED5E96E6FD6B90A83F52B599C0694E ();
// 0x0000009C System.Void Photon.Realtime.LoadBalancingClient::SetupEncryption(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>)
extern void LoadBalancingClient_SetupEncryption_m9BBD4278BAC5CC5FEC3679A49439405600DE3E76 ();
// 0x0000009D System.Boolean Photon.Realtime.LoadBalancingClient::OpWebRpc(System.String,System.Object,System.Boolean)
extern void LoadBalancingClient_OpWebRpc_m767BB659C353F0C1FC540301D1F3EBB300236542 ();
// 0x0000009E System.Void Photon.Realtime.LoadBalancingClient::AddCallbackTarget(System.Object)
extern void LoadBalancingClient_AddCallbackTarget_m17553A4C53D4BC96DF74BD3DFE8D8487E3B52565 ();
// 0x0000009F System.Void Photon.Realtime.LoadBalancingClient::RemoveCallbackTarget(System.Object)
extern void LoadBalancingClient_RemoveCallbackTarget_mA166E163D02518ED621B80E8F07B31FFE79507A0 ();
// 0x000000A0 System.Void Photon.Realtime.LoadBalancingClient::UpdateCallbackTargets()
extern void LoadBalancingClient_UpdateCallbackTargets_m4F0C56B00E0DC74B26294FA61A83186A710DBFFA ();
// 0x000000A1 System.Void Photon.Realtime.LoadBalancingClient::UpdateCallbackTarget(Photon.Realtime.LoadBalancingClient_CallbackTargetChange,System.Collections.Generic.List`1<T>)
// 0x000000A2 System.Void Photon.Realtime.LoadBalancingClient::.cctor()
extern void LoadBalancingClient__cctor_m852A3AC2587002191CFA49935C4C2769DCEC7DCD ();
// 0x000000A3 System.Void Photon.Realtime.IConnectionCallbacks::OnConnected()
// 0x000000A4 System.Void Photon.Realtime.IConnectionCallbacks::OnConnectedToMaster()
// 0x000000A5 System.Void Photon.Realtime.IConnectionCallbacks::OnDisconnected(Photon.Realtime.DisconnectCause)
// 0x000000A6 System.Void Photon.Realtime.IConnectionCallbacks::OnRegionListReceived(Photon.Realtime.RegionHandler)
// 0x000000A7 System.Void Photon.Realtime.IConnectionCallbacks::OnCustomAuthenticationResponse(System.Collections.Generic.Dictionary`2<System.String,System.Object>)
// 0x000000A8 System.Void Photon.Realtime.IConnectionCallbacks::OnCustomAuthenticationFailed(System.String)
// 0x000000A9 System.Void Photon.Realtime.ILobbyCallbacks::OnJoinedLobby()
// 0x000000AA System.Void Photon.Realtime.ILobbyCallbacks::OnLeftLobby()
// 0x000000AB System.Void Photon.Realtime.ILobbyCallbacks::OnRoomListUpdate(System.Collections.Generic.List`1<Photon.Realtime.RoomInfo>)
// 0x000000AC System.Void Photon.Realtime.ILobbyCallbacks::OnLobbyStatisticsUpdate(System.Collections.Generic.List`1<Photon.Realtime.TypedLobbyInfo>)
// 0x000000AD System.Void Photon.Realtime.IMatchmakingCallbacks::OnFriendListUpdate(System.Collections.Generic.List`1<Photon.Realtime.FriendInfo>)
// 0x000000AE System.Void Photon.Realtime.IMatchmakingCallbacks::OnCreatedRoom()
// 0x000000AF System.Void Photon.Realtime.IMatchmakingCallbacks::OnCreateRoomFailed(System.Int16,System.String)
// 0x000000B0 System.Void Photon.Realtime.IMatchmakingCallbacks::OnJoinedRoom()
// 0x000000B1 System.Void Photon.Realtime.IMatchmakingCallbacks::OnJoinRoomFailed(System.Int16,System.String)
// 0x000000B2 System.Void Photon.Realtime.IMatchmakingCallbacks::OnJoinRandomFailed(System.Int16,System.String)
// 0x000000B3 System.Void Photon.Realtime.IMatchmakingCallbacks::OnLeftRoom()
// 0x000000B4 System.Void Photon.Realtime.IInRoomCallbacks::OnPlayerEnteredRoom(Photon.Realtime.Player)
// 0x000000B5 System.Void Photon.Realtime.IInRoomCallbacks::OnPlayerLeftRoom(Photon.Realtime.Player)
// 0x000000B6 System.Void Photon.Realtime.IInRoomCallbacks::OnRoomPropertiesUpdate(ExitGames.Client.Photon.Hashtable)
// 0x000000B7 System.Void Photon.Realtime.IInRoomCallbacks::OnPlayerPropertiesUpdate(Photon.Realtime.Player,ExitGames.Client.Photon.Hashtable)
// 0x000000B8 System.Void Photon.Realtime.IInRoomCallbacks::OnMasterClientSwitched(Photon.Realtime.Player)
// 0x000000B9 System.Void Photon.Realtime.IOnEventCallback::OnEvent(ExitGames.Client.Photon.EventData)
// 0x000000BA System.Void Photon.Realtime.IWebRpcCallback::OnWebRpcResponse(ExitGames.Client.Photon.OperationResponse)
// 0x000000BB System.Void Photon.Realtime.IErrorInfoCallback::OnErrorInfo(Photon.Realtime.ErrorInfo)
// 0x000000BC System.Void Photon.Realtime.ConnectionCallbacksContainer::.ctor(Photon.Realtime.LoadBalancingClient)
extern void ConnectionCallbacksContainer__ctor_m86519082BDB51074C0A08444C9D058F9DFECC174 ();
// 0x000000BD System.Void Photon.Realtime.ConnectionCallbacksContainer::OnConnected()
extern void ConnectionCallbacksContainer_OnConnected_m86DCC1AFF556E53DAC6104AAF966FD2283AF8B54 ();
// 0x000000BE System.Void Photon.Realtime.ConnectionCallbacksContainer::OnConnectedToMaster()
extern void ConnectionCallbacksContainer_OnConnectedToMaster_mCA9F1A159894B869AD631CE53B2EFB2F1082C513 ();
// 0x000000BF System.Void Photon.Realtime.ConnectionCallbacksContainer::OnRegionListReceived(Photon.Realtime.RegionHandler)
extern void ConnectionCallbacksContainer_OnRegionListReceived_mA1598011E293574C634F3DD5B8F6D9E9036E8FC9 ();
// 0x000000C0 System.Void Photon.Realtime.ConnectionCallbacksContainer::OnDisconnected(Photon.Realtime.DisconnectCause)
extern void ConnectionCallbacksContainer_OnDisconnected_m4A6BE9270567815E0A07624DD92D8C56C3AF74CC ();
// 0x000000C1 System.Void Photon.Realtime.ConnectionCallbacksContainer::OnCustomAuthenticationResponse(System.Collections.Generic.Dictionary`2<System.String,System.Object>)
extern void ConnectionCallbacksContainer_OnCustomAuthenticationResponse_mFB070A71F70D10E9F785B97C1109517499342FEA ();
// 0x000000C2 System.Void Photon.Realtime.ConnectionCallbacksContainer::OnCustomAuthenticationFailed(System.String)
extern void ConnectionCallbacksContainer_OnCustomAuthenticationFailed_m6F71D63E9DF50E376B12BE5DDE4856BB80D27028 ();
// 0x000000C3 System.Void Photon.Realtime.MatchMakingCallbacksContainer::.ctor(Photon.Realtime.LoadBalancingClient)
extern void MatchMakingCallbacksContainer__ctor_m2DC6BFC48067B04691D90703F1B598AAB1C39D0D ();
// 0x000000C4 System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnCreatedRoom()
extern void MatchMakingCallbacksContainer_OnCreatedRoom_mBFE7022F4C9E6E03FD47DA8272D33A819CC8F6D5 ();
// 0x000000C5 System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnJoinedRoom()
extern void MatchMakingCallbacksContainer_OnJoinedRoom_m5779B6F7EBBF9C65B8E59BC8C1799B30EAF9D348 ();
// 0x000000C6 System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnCreateRoomFailed(System.Int16,System.String)
extern void MatchMakingCallbacksContainer_OnCreateRoomFailed_mA64F4F5D2E1EE8AF1C2AE80ED1D81121CBF8092C ();
// 0x000000C7 System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnJoinRandomFailed(System.Int16,System.String)
extern void MatchMakingCallbacksContainer_OnJoinRandomFailed_m1D7DC1D9BDE49CDB34B20CEDFF105A932030C87A ();
// 0x000000C8 System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnJoinRoomFailed(System.Int16,System.String)
extern void MatchMakingCallbacksContainer_OnJoinRoomFailed_mEAC9F4C37B2F04F228DC585FE90DF4C44464A9CD ();
// 0x000000C9 System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnLeftRoom()
extern void MatchMakingCallbacksContainer_OnLeftRoom_m463DC02884ABEA72E6329D0FCF8F9F29DF8138C2 ();
// 0x000000CA System.Void Photon.Realtime.MatchMakingCallbacksContainer::OnFriendListUpdate(System.Collections.Generic.List`1<Photon.Realtime.FriendInfo>)
extern void MatchMakingCallbacksContainer_OnFriendListUpdate_m0B78E17F0EB2E1038F8C6351D6D895DF510E413F ();
// 0x000000CB System.Void Photon.Realtime.InRoomCallbacksContainer::.ctor(Photon.Realtime.LoadBalancingClient)
extern void InRoomCallbacksContainer__ctor_mAB5D415C40517C66AFA4EE51FDE27BABB34CB1BC ();
// 0x000000CC System.Void Photon.Realtime.InRoomCallbacksContainer::OnPlayerEnteredRoom(Photon.Realtime.Player)
extern void InRoomCallbacksContainer_OnPlayerEnteredRoom_m390990124F7343BFEE2082780A788AD7F2F6FA3C ();
// 0x000000CD System.Void Photon.Realtime.InRoomCallbacksContainer::OnPlayerLeftRoom(Photon.Realtime.Player)
extern void InRoomCallbacksContainer_OnPlayerLeftRoom_m118CCAC5C3B5BB1271F2ACAFBC61461F49772123 ();
// 0x000000CE System.Void Photon.Realtime.InRoomCallbacksContainer::OnRoomPropertiesUpdate(ExitGames.Client.Photon.Hashtable)
extern void InRoomCallbacksContainer_OnRoomPropertiesUpdate_mE132931D9505B8FFE5BE7A47AB03F04A01E3ED21 ();
// 0x000000CF System.Void Photon.Realtime.InRoomCallbacksContainer::OnPlayerPropertiesUpdate(Photon.Realtime.Player,ExitGames.Client.Photon.Hashtable)
extern void InRoomCallbacksContainer_OnPlayerPropertiesUpdate_m37A89ACF122F14D7BCEF0C4FEAF664A1340FF1EB ();
// 0x000000D0 System.Void Photon.Realtime.InRoomCallbacksContainer::OnMasterClientSwitched(Photon.Realtime.Player)
extern void InRoomCallbacksContainer_OnMasterClientSwitched_mDE73A982F91D03B67103CD7083734A37ED3CB07D ();
// 0x000000D1 System.Void Photon.Realtime.LobbyCallbacksContainer::.ctor(Photon.Realtime.LoadBalancingClient)
extern void LobbyCallbacksContainer__ctor_m5EA40FFCF7EE793CD70AFCDF27EC96F8B3A546E3 ();
// 0x000000D2 System.Void Photon.Realtime.LobbyCallbacksContainer::OnJoinedLobby()
extern void LobbyCallbacksContainer_OnJoinedLobby_mE527C59A2BD5CBD6761A07F1B70BECC1EEA7EBF3 ();
// 0x000000D3 System.Void Photon.Realtime.LobbyCallbacksContainer::OnLeftLobby()
extern void LobbyCallbacksContainer_OnLeftLobby_m89700E7E4FE1528CCA913969F5D122EB1481DD6B ();
// 0x000000D4 System.Void Photon.Realtime.LobbyCallbacksContainer::OnRoomListUpdate(System.Collections.Generic.List`1<Photon.Realtime.RoomInfo>)
extern void LobbyCallbacksContainer_OnRoomListUpdate_m4CB513C7248881B9FC9A7D020608B2FE1B9736F3 ();
// 0x000000D5 System.Void Photon.Realtime.LobbyCallbacksContainer::OnLobbyStatisticsUpdate(System.Collections.Generic.List`1<Photon.Realtime.TypedLobbyInfo>)
extern void LobbyCallbacksContainer_OnLobbyStatisticsUpdate_m3DB8D26C9441DBD8D9DA605F568E6821D0B3A053 ();
// 0x000000D6 System.Void Photon.Realtime.WebRpcCallbacksContainer::.ctor(Photon.Realtime.LoadBalancingClient)
extern void WebRpcCallbacksContainer__ctor_mC0E65E12EA20C9F14D401D8F08FDB85E806176AF ();
// 0x000000D7 System.Void Photon.Realtime.WebRpcCallbacksContainer::OnWebRpcResponse(ExitGames.Client.Photon.OperationResponse)
extern void WebRpcCallbacksContainer_OnWebRpcResponse_m2B741909EF7BFFCE4E5A84A69741D3A628469B93 ();
// 0x000000D8 System.Void Photon.Realtime.ErrorInfoCallbacksContainer::.ctor(Photon.Realtime.LoadBalancingClient)
extern void ErrorInfoCallbacksContainer__ctor_m7F1BCF8EF5155CDF6ACF44C44FC637C3F52B1377 ();
// 0x000000D9 System.Void Photon.Realtime.ErrorInfoCallbacksContainer::OnErrorInfo(Photon.Realtime.ErrorInfo)
extern void ErrorInfoCallbacksContainer_OnErrorInfo_mA0C8F01C3BBC0361B3E7AD2F6467811289E2EE90 ();
// 0x000000DA System.Void Photon.Realtime.ErrorInfo::.ctor(ExitGames.Client.Photon.EventData)
extern void ErrorInfo__ctor_mDD9400B253313630ABD6317C1F72658920FBA522 ();
// 0x000000DB System.String Photon.Realtime.ErrorInfo::ToString()
extern void ErrorInfo_ToString_mA55EBE37103C2C63D138E5E207E2F6152D160F51 ();
// 0x000000DC System.Type Photon.Realtime.LoadBalancingPeer::get_PingImplementation()
extern void LoadBalancingPeer_get_PingImplementation_mEB22DB3683DF202468666A32F746B446C8AA6327 ();
// 0x000000DD System.Void Photon.Realtime.LoadBalancingPeer::set_PingImplementation(System.Type)
extern void LoadBalancingPeer_set_PingImplementation_m41371ACC1AE8F2888EF7E0187BF5CF51DF903A3E ();
// 0x000000DE System.Void Photon.Realtime.LoadBalancingPeer::.ctor(ExitGames.Client.Photon.ConnectionProtocol)
extern void LoadBalancingPeer__ctor_m3F0B99A73CA72CF3C176D60F6BA86696271F496B ();
// 0x000000DF System.Void Photon.Realtime.LoadBalancingPeer::.ctor(ExitGames.Client.Photon.IPhotonPeerListener,ExitGames.Client.Photon.ConnectionProtocol)
extern void LoadBalancingPeer__ctor_mBABBE81238A948B1911528A638A6B3B5AAE78E36 ();
// 0x000000E0 System.Void Photon.Realtime.LoadBalancingPeer::ConfigUnitySockets()
extern void LoadBalancingPeer_ConfigUnitySockets_m408D89E41EE7698B701CB80AB3FB5CA9CEC8BDD2 ();
// 0x000000E1 System.Boolean Photon.Realtime.LoadBalancingPeer::OpGetRegions(System.String)
extern void LoadBalancingPeer_OpGetRegions_m9F4665F4D56ED67248CBA86B21DE935C9B389CAD ();
// 0x000000E2 System.Boolean Photon.Realtime.LoadBalancingPeer::OpJoinLobby(Photon.Realtime.TypedLobby)
extern void LoadBalancingPeer_OpJoinLobby_m7793464CC70817DCF1C649D900206941E23EA1D6 ();
// 0x000000E3 System.Boolean Photon.Realtime.LoadBalancingPeer::OpLeaveLobby()
extern void LoadBalancingPeer_OpLeaveLobby_mA6F5BC8D94B95A77E9C4FE307C6A8A995D59CCA3 ();
// 0x000000E4 System.Void Photon.Realtime.LoadBalancingPeer::RoomOptionsToOpParameters(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,Photon.Realtime.RoomOptions,System.Boolean)
extern void LoadBalancingPeer_RoomOptionsToOpParameters_m493A0A04572A343401C95AFDB825979A1E493022 ();
// 0x000000E5 System.Boolean Photon.Realtime.LoadBalancingPeer::OpCreateRoom(Photon.Realtime.EnterRoomParams)
extern void LoadBalancingPeer_OpCreateRoom_m2F616AFF2B1236D7CE8D50692972483DD39533D6 ();
// 0x000000E6 System.Boolean Photon.Realtime.LoadBalancingPeer::OpJoinRoom(Photon.Realtime.EnterRoomParams)
extern void LoadBalancingPeer_OpJoinRoom_m824B43FB7C5B63B573C4FD19731373D240A20A2D ();
// 0x000000E7 System.Boolean Photon.Realtime.LoadBalancingPeer::OpJoinRandomRoom(Photon.Realtime.OpJoinRandomRoomParams)
extern void LoadBalancingPeer_OpJoinRandomRoom_mA20F3B8E4FD9AC8336B87DFC59CC4D1444C426E0 ();
// 0x000000E8 System.Boolean Photon.Realtime.LoadBalancingPeer::OpJoinRandomOrCreateRoom(Photon.Realtime.OpJoinRandomRoomParams,Photon.Realtime.EnterRoomParams)
extern void LoadBalancingPeer_OpJoinRandomOrCreateRoom_m8BA07BB581495C5D23E021A7C41559018E6EFD83 ();
// 0x000000E9 System.Boolean Photon.Realtime.LoadBalancingPeer::OpLeaveRoom(System.Boolean,System.Boolean)
extern void LoadBalancingPeer_OpLeaveRoom_m75F3F8B5E8DF51903186AAE2CD98558E10512D90 ();
// 0x000000EA System.Boolean Photon.Realtime.LoadBalancingPeer::OpGetGameList(Photon.Realtime.TypedLobby,System.String)
extern void LoadBalancingPeer_OpGetGameList_m3F3C7405CA812472E08707F930958C66F2440E3F ();
// 0x000000EB System.Boolean Photon.Realtime.LoadBalancingPeer::OpFindFriends(System.String[],Photon.Realtime.FindFriendsOptions)
extern void LoadBalancingPeer_OpFindFriends_m27C2BBE02BFDEA67B761195F3739EEAE29252B21 ();
// 0x000000EC System.Boolean Photon.Realtime.LoadBalancingPeer::OpSetCustomPropertiesOfActor(System.Int32,ExitGames.Client.Photon.Hashtable)
extern void LoadBalancingPeer_OpSetCustomPropertiesOfActor_mED663ECE99163F3B5792EE2D52005D8CEF8D24F4 ();
// 0x000000ED System.Boolean Photon.Realtime.LoadBalancingPeer::OpSetPropertiesOfActor(System.Int32,ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void LoadBalancingPeer_OpSetPropertiesOfActor_mF0B8876B60F1E6939F71A2BB0E9D905EDB6F7FAA ();
// 0x000000EE System.Boolean Photon.Realtime.LoadBalancingPeer::OpSetPropertyOfRoom(System.Byte,System.Object)
extern void LoadBalancingPeer_OpSetPropertyOfRoom_m78766E6FDE0DC4C8E98232C40E30C6C35E6DF20D ();
// 0x000000EF System.Boolean Photon.Realtime.LoadBalancingPeer::OpSetCustomPropertiesOfRoom(ExitGames.Client.Photon.Hashtable)
extern void LoadBalancingPeer_OpSetCustomPropertiesOfRoom_m1030D2A255E55A01B0CCE8261E5EBD607BD85C51 ();
// 0x000000F0 System.Boolean Photon.Realtime.LoadBalancingPeer::OpSetPropertiesOfRoom(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void LoadBalancingPeer_OpSetPropertiesOfRoom_m93591CD3281618DF19B566E5B10CDFCDF11BD1A8 ();
// 0x000000F1 System.Boolean Photon.Realtime.LoadBalancingPeer::OpAuthenticate(System.String,System.String,Photon.Realtime.AuthenticationValues,System.String,System.Boolean)
extern void LoadBalancingPeer_OpAuthenticate_mCD39661E2951112370B6A517FED9309059E1FD68 ();
// 0x000000F2 System.Boolean Photon.Realtime.LoadBalancingPeer::OpAuthenticateOnce(System.String,System.String,Photon.Realtime.AuthenticationValues,System.String,Photon.Realtime.EncryptionMode,ExitGames.Client.Photon.ConnectionProtocol)
extern void LoadBalancingPeer_OpAuthenticateOnce_m4787BE5D2DD6CDA361558AC5AAEF1E899319C4DF ();
// 0x000000F3 System.Boolean Photon.Realtime.LoadBalancingPeer::OpChangeGroups(System.Byte[],System.Byte[])
extern void LoadBalancingPeer_OpChangeGroups_mA6BC6B7D1F66608D35A38228525EBEEF767F4C95 ();
// 0x000000F4 System.Boolean Photon.Realtime.LoadBalancingPeer::OpRaiseEvent(System.Byte,System.Object,Photon.Realtime.RaiseEventOptions,ExitGames.Client.Photon.SendOptions)
extern void LoadBalancingPeer_OpRaiseEvent_m4A3E5492AF65ADC64DF3547026B1EB4E62BE3ABA ();
// 0x000000F5 System.Boolean Photon.Realtime.LoadBalancingPeer::OpSettings(System.Boolean)
extern void LoadBalancingPeer_OpSettings_m696CF4ADA61882FB43470A158410CADD7E45DA57 ();
// 0x000000F6 System.Int32 Photon.Realtime.FindFriendsOptions::ToIntFlags()
extern void FindFriendsOptions_ToIntFlags_m2F26BC5B39283350C3A2E7489F71E40BF8E7AEBE ();
// 0x000000F7 System.Void Photon.Realtime.FindFriendsOptions::.ctor()
extern void FindFriendsOptions__ctor_mEDA35D63C83F547827AC02637FCFCBF0D1E543F1 ();
// 0x000000F8 System.Void Photon.Realtime.OpJoinRandomRoomParams::.ctor()
extern void OpJoinRandomRoomParams__ctor_m7EAF5F874DE8AFABDFF8DD4BF96CEBD695E26880 ();
// 0x000000F9 System.Void Photon.Realtime.EnterRoomParams::.ctor()
extern void EnterRoomParams__ctor_mD79E1A3DA37FE25323DC2721FB0DFDC00D7F3EDE ();
// 0x000000FA System.Void Photon.Realtime.ErrorCode::.ctor()
extern void ErrorCode__ctor_m76E0631999B20B536126A83C8F75EBF7BF5C219E ();
// 0x000000FB System.Void Photon.Realtime.ActorProperties::.ctor()
extern void ActorProperties__ctor_mA0104A194D96AA6BC466E2CD41370572AF43DDF1 ();
// 0x000000FC System.Void Photon.Realtime.GamePropertyKey::.ctor()
extern void GamePropertyKey__ctor_m0DAB913601AD9E333243D10E454397BB55187EA2 ();
// 0x000000FD System.Void Photon.Realtime.EventCode::.ctor()
extern void EventCode__ctor_m6A1C78CC6506BA88D96DC46861DC0B3C74FCDB1E ();
// 0x000000FE System.Void Photon.Realtime.ParameterCode::.ctor()
extern void ParameterCode__ctor_m7EDF2626AA921ACA7EE1B03D813F8219E15CB0BA ();
// 0x000000FF System.Void Photon.Realtime.OperationCode::.ctor()
extern void OperationCode__ctor_mDE1A1F05CBB3D4DE66EE837F430112E3849A4F26 ();
// 0x00000100 System.Boolean Photon.Realtime.RoomOptions::get_IsVisible()
extern void RoomOptions_get_IsVisible_mEBC48A6E7D7A0422A0CEA3A4AD339EA8B7061976 ();
// 0x00000101 System.Void Photon.Realtime.RoomOptions::set_IsVisible(System.Boolean)
extern void RoomOptions_set_IsVisible_mC18F0091F40004E92A6B0D65DADE6B8ACE4FC4AC ();
// 0x00000102 System.Boolean Photon.Realtime.RoomOptions::get_IsOpen()
extern void RoomOptions_get_IsOpen_m63600C2FCC2227779869060317764624F9536147 ();
// 0x00000103 System.Void Photon.Realtime.RoomOptions::set_IsOpen(System.Boolean)
extern void RoomOptions_set_IsOpen_mB8FC22B596C9CD2534DB1F5911B352D9FC73F031 ();
// 0x00000104 System.Boolean Photon.Realtime.RoomOptions::get_CleanupCacheOnLeave()
extern void RoomOptions_get_CleanupCacheOnLeave_m5BC86AE25FB6DCE474527C5FDB7363F1212C120B ();
// 0x00000105 System.Void Photon.Realtime.RoomOptions::set_CleanupCacheOnLeave(System.Boolean)
extern void RoomOptions_set_CleanupCacheOnLeave_mC9C34F080C4EDFD2FF80D959CAEC057DC619D48B ();
// 0x00000106 System.Boolean Photon.Realtime.RoomOptions::get_SuppressRoomEvents()
extern void RoomOptions_get_SuppressRoomEvents_mD4FCCD8AFF0DD842C04BA3D385FF0F9A128D1F50 ();
// 0x00000107 System.Void Photon.Realtime.RoomOptions::set_SuppressRoomEvents(System.Boolean)
extern void RoomOptions_set_SuppressRoomEvents_mDE84DE82AACEB351CC93E17B781149D52E97DB1E ();
// 0x00000108 System.Boolean Photon.Realtime.RoomOptions::get_PublishUserId()
extern void RoomOptions_get_PublishUserId_mEFF1EA9F5F3310DCED3A7BF9DE99174274DC5766 ();
// 0x00000109 System.Void Photon.Realtime.RoomOptions::set_PublishUserId(System.Boolean)
extern void RoomOptions_set_PublishUserId_m2D2C26B98C031D132D3A7D450299BE55EBE2DE12 ();
// 0x0000010A System.Boolean Photon.Realtime.RoomOptions::get_DeleteNullProperties()
extern void RoomOptions_get_DeleteNullProperties_m63EDCA05FFC2792D99F87A8BCB52F8D535236277 ();
// 0x0000010B System.Void Photon.Realtime.RoomOptions::set_DeleteNullProperties(System.Boolean)
extern void RoomOptions_set_DeleteNullProperties_mD834C5A7E29312EAEBDE491AD005FCD7C4983AF2 ();
// 0x0000010C System.Boolean Photon.Realtime.RoomOptions::get_BroadcastPropsChangeToAll()
extern void RoomOptions_get_BroadcastPropsChangeToAll_m148AB75D5E3A17B735D739B8C2217DA72774BE99 ();
// 0x0000010D System.Void Photon.Realtime.RoomOptions::set_BroadcastPropsChangeToAll(System.Boolean)
extern void RoomOptions_set_BroadcastPropsChangeToAll_m79EAEFCFEB7472FDD91FD10152BB60F6A1F0C9E7 ();
// 0x0000010E System.Void Photon.Realtime.RoomOptions::.ctor()
extern void RoomOptions__ctor_m254044C6ACFBFED793E00A41DF8E76F953EE16CF ();
// 0x0000010F System.Void Photon.Realtime.RaiseEventOptions::.ctor()
extern void RaiseEventOptions__ctor_m566DA262F193D98A75A09C2A00007CD8472A4329 ();
// 0x00000110 System.Void Photon.Realtime.RaiseEventOptions::.cctor()
extern void RaiseEventOptions__cctor_m0C865100F0214AB2184220C5B586BC98C80A92EB ();
// 0x00000111 System.Boolean Photon.Realtime.TypedLobby::get_IsDefault()
extern void TypedLobby_get_IsDefault_m9EABBD862010C30DC98DCFAC650D5DE378BDE77C ();
// 0x00000112 System.Void Photon.Realtime.TypedLobby::.ctor()
extern void TypedLobby__ctor_m00923523872B0E50E15357CBBED9A08D5F944586 ();
// 0x00000113 System.Void Photon.Realtime.TypedLobby::.ctor(System.String,Photon.Realtime.LobbyType)
extern void TypedLobby__ctor_mE5A5B745646CA0B8228EE2B6451B06BBE02D561D ();
// 0x00000114 System.String Photon.Realtime.TypedLobby::ToString()
extern void TypedLobby_ToString_mA56D3E449966F9879512DB3400679974B80DB5AA ();
// 0x00000115 System.Void Photon.Realtime.TypedLobby::.cctor()
extern void TypedLobby__cctor_m9A3C3621A62B5E941CBC71894D7318FA30EE84B7 ();
// 0x00000116 System.String Photon.Realtime.TypedLobbyInfo::ToString()
extern void TypedLobbyInfo_ToString_m5C7AB7E7308A8603657D1621D9AA98C027BD467C ();
// 0x00000117 System.Void Photon.Realtime.TypedLobbyInfo::.ctor()
extern void TypedLobbyInfo__ctor_m608A819C4E7B3D755880CBBE88AD68B11447F76B ();
// 0x00000118 Photon.Realtime.CustomAuthenticationType Photon.Realtime.AuthenticationValues::get_AuthType()
extern void AuthenticationValues_get_AuthType_m7644167D1D9D4B1EB47E98BF5FDA05D1B3F1770A ();
// 0x00000119 System.Void Photon.Realtime.AuthenticationValues::set_AuthType(Photon.Realtime.CustomAuthenticationType)
extern void AuthenticationValues_set_AuthType_mE9BBAB1E6FEFE22AE6318280C01AF83D0C96FDBB ();
// 0x0000011A System.String Photon.Realtime.AuthenticationValues::get_AuthGetParameters()
extern void AuthenticationValues_get_AuthGetParameters_m0D2F684B97C2814BFD84060C6A0CE55D49ACEB99 ();
// 0x0000011B System.Void Photon.Realtime.AuthenticationValues::set_AuthGetParameters(System.String)
extern void AuthenticationValues_set_AuthGetParameters_m62F77A15600CFD28F020C41EA6F853BC157BF6FE ();
// 0x0000011C System.Object Photon.Realtime.AuthenticationValues::get_AuthPostData()
extern void AuthenticationValues_get_AuthPostData_mF020D81C8FB8E5DAC6D3593EDD6590F0F50B2588 ();
// 0x0000011D System.Void Photon.Realtime.AuthenticationValues::set_AuthPostData(System.Object)
extern void AuthenticationValues_set_AuthPostData_m3AC15E1E1E29C1AE359C46DE691142CDF47820E5 ();
// 0x0000011E System.String Photon.Realtime.AuthenticationValues::get_Token()
extern void AuthenticationValues_get_Token_mA7C6F8A1DC5CE286C5E3BF198A08A82D573285DF ();
// 0x0000011F System.Void Photon.Realtime.AuthenticationValues::set_Token(System.String)
extern void AuthenticationValues_set_Token_m58AECA36241053F97241E0B3886BA8421ECA204C ();
// 0x00000120 System.String Photon.Realtime.AuthenticationValues::get_UserId()
extern void AuthenticationValues_get_UserId_m04BBEC6A7AEFD6975DB9F49E659A7963F8D840DC ();
// 0x00000121 System.Void Photon.Realtime.AuthenticationValues::set_UserId(System.String)
extern void AuthenticationValues_set_UserId_mC1264E09EC8EE5FE8717275120E4104643969E5D ();
// 0x00000122 System.Void Photon.Realtime.AuthenticationValues::.ctor()
extern void AuthenticationValues__ctor_mF5DC44DD388FE8648E072B765D5502C27D70FB8D ();
// 0x00000123 System.Void Photon.Realtime.AuthenticationValues::.ctor(System.String)
extern void AuthenticationValues__ctor_m5887BFFDEFDF7055AD84B5F94F0BF5E09F6D8190 ();
// 0x00000124 System.Void Photon.Realtime.AuthenticationValues::SetAuthPostData(System.String)
extern void AuthenticationValues_SetAuthPostData_m8CD17481FF2EE2FC2A880926D5314DC498498F41 ();
// 0x00000125 System.Void Photon.Realtime.AuthenticationValues::SetAuthPostData(System.Byte[])
extern void AuthenticationValues_SetAuthPostData_m92995794722C380DF97690DFEC803C871662B93F ();
// 0x00000126 System.Void Photon.Realtime.AuthenticationValues::SetAuthPostData(System.Collections.Generic.Dictionary`2<System.String,System.Object>)
extern void AuthenticationValues_SetAuthPostData_mF7283839644EAECF797CF6D9054A431F03E7C8E1 ();
// 0x00000127 System.Void Photon.Realtime.AuthenticationValues::AddAuthParameter(System.String,System.String)
extern void AuthenticationValues_AddAuthParameter_m2A7C499EA88A7CA15235304CA2FF080F4E13609E ();
// 0x00000128 System.String Photon.Realtime.AuthenticationValues::ToString()
extern void AuthenticationValues_ToString_m3D48D62AA7D57B8CF36E53C0E9A1AA8FABE9B858 ();
// 0x00000129 System.Boolean Photon.Realtime.PhotonPing::StartPing(System.String)
extern void PhotonPing_StartPing_m788B4EE59589E0D94D3AD208796B528AE4990411 ();
// 0x0000012A System.Boolean Photon.Realtime.PhotonPing::Done()
extern void PhotonPing_Done_m254644D4502B85A8A07E44BAA1E0F1B2C49FBFEB ();
// 0x0000012B System.Void Photon.Realtime.PhotonPing::Dispose()
extern void PhotonPing_Dispose_m0156F3A8D813288DDF437B61584F1EE133A9EF10 ();
// 0x0000012C System.Void Photon.Realtime.PhotonPing::Init()
extern void PhotonPing_Init_m54A5083386B01DF1DC852147913AC351863A4382 ();
// 0x0000012D System.Void Photon.Realtime.PhotonPing::.ctor()
extern void PhotonPing__ctor_mECF370ED85CFB0BD665631E8703A986485C17E5E ();
// 0x0000012E System.Void Photon.Realtime.PhotonPing::.cctor()
extern void PhotonPing__cctor_m56D1897D0278FABF7BCF7D5BA6A1B35629E237F7 ();
// 0x0000012F System.Boolean Photon.Realtime.PingMono::StartPing(System.String)
extern void PingMono_StartPing_m496A6971FE2DFBB3E2DE3B39EB0F32B12876BF20 ();
// 0x00000130 System.Boolean Photon.Realtime.PingMono::Done()
extern void PingMono_Done_mDE321FDDDA836C83A48624812C3E2EB267B6A4BC ();
// 0x00000131 System.Void Photon.Realtime.PingMono::Dispose()
extern void PingMono_Dispose_m3B12B9C9C32DF1B54EEFE1C1F25763146F2DE756 ();
// 0x00000132 System.Void Photon.Realtime.PingMono::.ctor()
extern void PingMono__ctor_mD2498F5A127182A684E088A9C4CE268B878CF101 ();
// 0x00000133 System.Boolean Photon.Realtime.PingHttp::StartPing(System.String)
extern void PingHttp_StartPing_m0FB98F00AB0009E3093AD733CB9DFD683B075659 ();
// 0x00000134 System.Boolean Photon.Realtime.PingHttp::Done()
extern void PingHttp_Done_m3ABE81A4C34DCC99A35BF62FE8A4C9D168101936 ();
// 0x00000135 System.Void Photon.Realtime.PingHttp::Dispose()
extern void PingHttp_Dispose_m0A52372EB52302F59BE6554D0F4B4D84EC8C3DAC ();
// 0x00000136 System.Void Photon.Realtime.PingHttp::.ctor()
extern void PingHttp__ctor_m62558C59D4D2547C2812187FCE31BFFDA3A0FC51 ();
// 0x00000137 Photon.Realtime.Room Photon.Realtime.Player::get_RoomReference()
extern void Player_get_RoomReference_m930E8CD16F6BABE612F24D6C66D20749F7E34184 ();
// 0x00000138 System.Void Photon.Realtime.Player::set_RoomReference(Photon.Realtime.Room)
extern void Player_set_RoomReference_m94972048535DB91480569BC5E3B463A89CB12A91 ();
// 0x00000139 System.Int32 Photon.Realtime.Player::get_ActorNumber()
extern void Player_get_ActorNumber_m02157560C558C6007C8146F1FCDA7E759AD0CF1D ();
// 0x0000013A System.Boolean Photon.Realtime.Player::get_HasRejoined()
extern void Player_get_HasRejoined_m523D4554740BD0485F1B904849CB3CC2A770DB4F ();
// 0x0000013B System.Void Photon.Realtime.Player::set_HasRejoined(System.Boolean)
extern void Player_set_HasRejoined_m87608E365AB31EC8860A221D9CA29676AC8308C7 ();
// 0x0000013C System.String Photon.Realtime.Player::get_NickName()
extern void Player_get_NickName_mB7D3A3FD8493B2FFF9B0537194CE9C697473C2EE ();
// 0x0000013D System.Void Photon.Realtime.Player::set_NickName(System.String)
extern void Player_set_NickName_m3AEC143158F0AC02C3139CC0501F90CF8062A32F ();
// 0x0000013E System.String Photon.Realtime.Player::get_UserId()
extern void Player_get_UserId_m1913731AD3876AA194CB56074FEBA28C6CB612E3 ();
// 0x0000013F System.Void Photon.Realtime.Player::set_UserId(System.String)
extern void Player_set_UserId_m84AA51D6267A1CD7E621206B543AB25ECAC80657 ();
// 0x00000140 System.Boolean Photon.Realtime.Player::get_IsMasterClient()
extern void Player_get_IsMasterClient_m54EECECB76D6BB178E5D7A75D32DEF78C3422695 ();
// 0x00000141 System.Boolean Photon.Realtime.Player::get_IsInactive()
extern void Player_get_IsInactive_m565C1FB590912C70E7720C6E1EFFFD5EE755C403 ();
// 0x00000142 System.Void Photon.Realtime.Player::set_IsInactive(System.Boolean)
extern void Player_set_IsInactive_mE662074B1394644E061C34E341119FF9F6C53245 ();
// 0x00000143 ExitGames.Client.Photon.Hashtable Photon.Realtime.Player::get_CustomProperties()
extern void Player_get_CustomProperties_m908764641F7C2D7EB7101F3C60A6C91EA67055C8 ();
// 0x00000144 System.Void Photon.Realtime.Player::set_CustomProperties(ExitGames.Client.Photon.Hashtable)
extern void Player_set_CustomProperties_m4F9AB6E579E8C8C73CC99516B518EBDF7BE9DB99 ();
// 0x00000145 System.Void Photon.Realtime.Player::.ctor(System.String,System.Int32,System.Boolean)
extern void Player__ctor_m9BE0732C50CAC2F96D3ECDC5CB14BCD292E955CF ();
// 0x00000146 System.Void Photon.Realtime.Player::.ctor(System.String,System.Int32,System.Boolean,ExitGames.Client.Photon.Hashtable)
extern void Player__ctor_m6EF8CDD04526FDDD85233F0DD2226B9113BDABE8 ();
// 0x00000147 Photon.Realtime.Player Photon.Realtime.Player::Get(System.Int32)
extern void Player_Get_m4451719287EC83169424B9E50B85AAF385D9789D ();
// 0x00000148 Photon.Realtime.Player Photon.Realtime.Player::GetNext()
extern void Player_GetNext_m138BBE906F321BCEAA9C8E2B958C51E27343FE5E ();
// 0x00000149 Photon.Realtime.Player Photon.Realtime.Player::GetNextFor(Photon.Realtime.Player)
extern void Player_GetNextFor_mBB761E337EE5FB5FDCCB68CE7ABE00613C219007 ();
// 0x0000014A Photon.Realtime.Player Photon.Realtime.Player::GetNextFor(System.Int32)
extern void Player_GetNextFor_m6FC25EC7D3F354FB4525BE0236B579D4B3A05821 ();
// 0x0000014B System.Void Photon.Realtime.Player::InternalCacheProperties(ExitGames.Client.Photon.Hashtable)
extern void Player_InternalCacheProperties_m57185BF0802E92054EB8A3BFC77A388FC788EC36 ();
// 0x0000014C System.String Photon.Realtime.Player::ToString()
extern void Player_ToString_m12CA93AF311B38987A36D29A13B6E5ECF165D9A0 ();
// 0x0000014D System.String Photon.Realtime.Player::ToStringFull()
extern void Player_ToStringFull_m3D8C720DEABC8F8104DC7C7B64831F80F740A926 ();
// 0x0000014E System.Boolean Photon.Realtime.Player::Equals(System.Object)
extern void Player_Equals_m20F6705EDCF31CA05EEE84209396E709019AC3DB ();
// 0x0000014F System.Int32 Photon.Realtime.Player::GetHashCode()
extern void Player_GetHashCode_m0B65F82910CDF0C5C0BFAA356172255EC6F55EC1 ();
// 0x00000150 System.Void Photon.Realtime.Player::ChangeLocalID(System.Int32)
extern void Player_ChangeLocalID_m70BF740B95E44DBC724FE10C66335DCFE9FFE9B8 ();
// 0x00000151 System.Boolean Photon.Realtime.Player::SetCustomProperties(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void Player_SetCustomProperties_m109095CC7D9E36015647460273C61F3F42B7F671 ();
// 0x00000152 System.Boolean Photon.Realtime.Player::SetPlayerNameProperty()
extern void Player_SetPlayerNameProperty_mBE534BF104B381056EA26C917041A304FFBA6138 ();
// 0x00000153 System.String Photon.Realtime.Region::get_Code()
extern void Region_get_Code_m8669BE5070358182B467A85EFB042D25D5CDA3BC ();
// 0x00000154 System.Void Photon.Realtime.Region::set_Code(System.String)
extern void Region_set_Code_mDE9D1C927F6333EC50C6BA5E32DF4F0E07D6ECE6 ();
// 0x00000155 System.String Photon.Realtime.Region::get_Cluster()
extern void Region_get_Cluster_m850B9B953F6C87D089A2208F217662F8E3C90917 ();
// 0x00000156 System.Void Photon.Realtime.Region::set_Cluster(System.String)
extern void Region_set_Cluster_m989B1AE668634B2F4B1D2B065159CBA2FF026CA4 ();
// 0x00000157 System.String Photon.Realtime.Region::get_HostAndPort()
extern void Region_get_HostAndPort_m087CC4E1545F622AF35114318203F5BA85F287AC ();
// 0x00000158 System.Void Photon.Realtime.Region::set_HostAndPort(System.String)
extern void Region_set_HostAndPort_mA46DD23667655C529FE8F6D5F9AA469FA7268F30 ();
// 0x00000159 System.Int32 Photon.Realtime.Region::get_Ping()
extern void Region_get_Ping_mC348787B425CB426446A25A8CFC45030AB71C94E ();
// 0x0000015A System.Void Photon.Realtime.Region::set_Ping(System.Int32)
extern void Region_set_Ping_m6D98DD720653EEBC8C0A1D8B4E79CF80669ABA5D ();
// 0x0000015B System.Boolean Photon.Realtime.Region::get_WasPinged()
extern void Region_get_WasPinged_mD0FFE35A28AD219017CD894E52B9F113BCF88A82 ();
// 0x0000015C System.Void Photon.Realtime.Region::.ctor(System.String,System.String)
extern void Region__ctor_m4A0A97C2052C8BD4259777A271C4F3DA5EA420E0 ();
// 0x0000015D System.Void Photon.Realtime.Region::.ctor(System.String,System.Int32)
extern void Region__ctor_mB1E557941DB9463D60C45866B68870FEE7CE12D0 ();
// 0x0000015E System.Void Photon.Realtime.Region::SetCodeAndCluster(System.String)
extern void Region_SetCodeAndCluster_mB935EFD0D57480D78B21E1539E82DED3C243AD36 ();
// 0x0000015F System.String Photon.Realtime.Region::ToString()
extern void Region_ToString_m662501AB15980CD061ACEF5508E37628BDD28F00 ();
// 0x00000160 System.String Photon.Realtime.Region::ToString(System.Boolean)
extern void Region_ToString_m23EC241BD327ED9226F6E45B74FC433A4945F7E1 ();
// 0x00000161 System.Collections.Generic.List`1<Photon.Realtime.Region> Photon.Realtime.RegionHandler::get_EnabledRegions()
extern void RegionHandler_get_EnabledRegions_m9293FC4BE35917E9BC9F9689E5CA9C27DA639701 ();
// 0x00000162 System.Void Photon.Realtime.RegionHandler::set_EnabledRegions(System.Collections.Generic.List`1<Photon.Realtime.Region>)
extern void RegionHandler_set_EnabledRegions_m2BBACC92EA8CE600EFDB5D847992D9E22FDBF8B3 ();
// 0x00000163 Photon.Realtime.Region Photon.Realtime.RegionHandler::get_BestRegion()
extern void RegionHandler_get_BestRegion_m6C04157AB2A06C9FD8253DB875326225D9F2A9C2 ();
// 0x00000164 System.String Photon.Realtime.RegionHandler::get_SummaryToCache()
extern void RegionHandler_get_SummaryToCache_mE53B11556105433EBE7C76137D7FAAE4B5C57415 ();
// 0x00000165 System.String Photon.Realtime.RegionHandler::GetResults()
extern void RegionHandler_GetResults_mA141C10F13D5074C2FE740B8763C6C24832F1601 ();
// 0x00000166 System.Void Photon.Realtime.RegionHandler::SetRegions(ExitGames.Client.Photon.OperationResponse)
extern void RegionHandler_SetRegions_m0487B794D0D4DC0EAF224A17C6A18C23139E03DD ();
// 0x00000167 System.Boolean Photon.Realtime.RegionHandler::get_IsPinging()
extern void RegionHandler_get_IsPinging_m90810A16C9825D7B6EA68B026F700FCB65C095D8 ();
// 0x00000168 System.Void Photon.Realtime.RegionHandler::set_IsPinging(System.Boolean)
extern void RegionHandler_set_IsPinging_mB9A230BD4F3B2B2564252341BD931F47968FB1A1 ();
// 0x00000169 System.Boolean Photon.Realtime.RegionHandler::PingMinimumOfRegions(System.Action`1<Photon.Realtime.RegionHandler>,System.String)
extern void RegionHandler_PingMinimumOfRegions_m5C8AE60A1AF4A9E06E3EA17A0B07C681FE455B17 ();
// 0x0000016A System.Void Photon.Realtime.RegionHandler::OnPreferredRegionPinged(Photon.Realtime.Region)
extern void RegionHandler_OnPreferredRegionPinged_m08CFBD385294B89DC35037B9EC36FB0309B6DA53 ();
// 0x0000016B System.Boolean Photon.Realtime.RegionHandler::PingEnabledRegions()
extern void RegionHandler_PingEnabledRegions_m58091984F466221DA5073C828543FECC667DACF4 ();
// 0x0000016C System.Void Photon.Realtime.RegionHandler::OnRegionDone(Photon.Realtime.Region)
extern void RegionHandler_OnRegionDone_m5416802428349BB3F28E925532C412A50DC3A172 ();
// 0x0000016D System.Void Photon.Realtime.RegionHandler::.ctor()
extern void RegionHandler__ctor_m97108E371414B468F72FAC6180DD4EC17E477D49 ();
// 0x0000016E System.Boolean Photon.Realtime.RegionPinger::get_Done()
extern void RegionPinger_get_Done_m2AA784BEAD23896BDC2D714D3C84CD1994469B0A ();
// 0x0000016F System.Void Photon.Realtime.RegionPinger::set_Done(System.Boolean)
extern void RegionPinger_set_Done_m3EFDA967730B0EEBC55AF5FE2C1F14D536D88AC2 ();
// 0x00000170 System.Void Photon.Realtime.RegionPinger::.ctor(Photon.Realtime.Region,System.Action`1<Photon.Realtime.Region>)
extern void RegionPinger__ctor_m2F25C93D7E6519E079AF5E3272004AF106E602E7 ();
// 0x00000171 Photon.Realtime.PhotonPing Photon.Realtime.RegionPinger::GetPingImplementation()
extern void RegionPinger_GetPingImplementation_m063FEEB76623D94A4B074E0257DDC90C92AC800A ();
// 0x00000172 System.Boolean Photon.Realtime.RegionPinger::Start()
extern void RegionPinger_Start_m7F7D855E24C252AB1BD68D035FBDFDF7989673A5 ();
// 0x00000173 System.Void Photon.Realtime.RegionPinger::RegionPingPooled(System.Object)
extern void RegionPinger_RegionPingPooled_mF99DDD61898D332E903F1E0A713F05DEEBA0E914 ();
// 0x00000174 System.Boolean Photon.Realtime.RegionPinger::RegionPingThreaded()
extern void RegionPinger_RegionPingThreaded_m483F046E255AACD42F9AC1758F9CEEAEE1E2629B ();
// 0x00000175 System.Collections.IEnumerator Photon.Realtime.RegionPinger::RegionPingCoroutine()
extern void RegionPinger_RegionPingCoroutine_mAA6EE986AB89E9B169021BD8698BDA9657AA5123 ();
// 0x00000176 System.String Photon.Realtime.RegionPinger::GetResults()
extern void RegionPinger_GetResults_mE78DBC4D3180AE742CDB2B077E1E01E647BBDC07 ();
// 0x00000177 System.String Photon.Realtime.RegionPinger::ResolveHost(System.String)
extern void RegionPinger_ResolveHost_m40FF2580A77B893BD7EF2A7B6A1C7B5713CB0CB0 ();
// 0x00000178 System.Void Photon.Realtime.RegionPinger::.cctor()
extern void RegionPinger__cctor_mB7CC8C974A4E6616D9682EB35BD32CBE3385E664 ();
// 0x00000179 Photon.Realtime.MonoBehaviourEmpty Photon.Realtime.MonoBehaviourEmpty::get_Instance()
extern void MonoBehaviourEmpty_get_Instance_m8283366832463FB351A7D0F366151266A20C1793 ();
// 0x0000017A System.Void Photon.Realtime.MonoBehaviourEmpty::SelfDestroy()
extern void MonoBehaviourEmpty_SelfDestroy_mB7846F99BFD18675271E769CBA03FD832E1FDCF2 ();
// 0x0000017B System.Void Photon.Realtime.MonoBehaviourEmpty::.ctor()
extern void MonoBehaviourEmpty__ctor_m232F46E6ADE167B42B0FD4EC9DED6BB16D5CDF6B ();
// 0x0000017C Photon.Realtime.LoadBalancingClient Photon.Realtime.Room::get_LoadBalancingClient()
extern void Room_get_LoadBalancingClient_m352E09ADBA5592B3FC0F1432CE9F5D7D0FACC52B ();
// 0x0000017D System.Void Photon.Realtime.Room::set_LoadBalancingClient(Photon.Realtime.LoadBalancingClient)
extern void Room_set_LoadBalancingClient_mFA6EE0C996848CD1979DC014BDB9AAEF09B5728F ();
// 0x0000017E System.String Photon.Realtime.Room::get_Name()
extern void Room_get_Name_mCDF41719862596519BBE7091948656DF28B30607 ();
// 0x0000017F System.Void Photon.Realtime.Room::set_Name(System.String)
extern void Room_set_Name_mC4C4FFFFA614A20BFD543979EB818B9F332D77F9 ();
// 0x00000180 System.Boolean Photon.Realtime.Room::get_IsOffline()
extern void Room_get_IsOffline_mED7792F1D0C59ED40BE6B0F30D133D5B718DE73A ();
// 0x00000181 System.Void Photon.Realtime.Room::set_IsOffline(System.Boolean)
extern void Room_set_IsOffline_mB8087AC7DE2C5F438DE0EA52623EBEA97D6D9A01 ();
// 0x00000182 System.Boolean Photon.Realtime.Room::get_IsOpen()
extern void Room_get_IsOpen_m36A93CB7C99FF6ABB9F77C8E9DCE793362DC0436 ();
// 0x00000183 System.Void Photon.Realtime.Room::set_IsOpen(System.Boolean)
extern void Room_set_IsOpen_m9BF3D27C133879A9EF88E4EEB553878DC88AB4A2 ();
// 0x00000184 System.Boolean Photon.Realtime.Room::get_IsVisible()
extern void Room_get_IsVisible_m3C0E0466B3DFF449182378D88FA1D61251594838 ();
// 0x00000185 System.Void Photon.Realtime.Room::set_IsVisible(System.Boolean)
extern void Room_set_IsVisible_m5506840C476AFB8F2FF510C8A3320EC19042C010 ();
// 0x00000186 System.Byte Photon.Realtime.Room::get_MaxPlayers()
extern void Room_get_MaxPlayers_mD4BF3E0BF13AE675F4831A129E91D8F06D3EB124 ();
// 0x00000187 System.Void Photon.Realtime.Room::set_MaxPlayers(System.Byte)
extern void Room_set_MaxPlayers_mA500CB2E9F2F4A3E498FA8707B1409247BE790EA ();
// 0x00000188 System.Byte Photon.Realtime.Room::get_PlayerCount()
extern void Room_get_PlayerCount_mCBF32BA967FF797861D5E9C2B26C3A6BDACA2E99 ();
// 0x00000189 System.Collections.Generic.Dictionary`2<System.Int32,Photon.Realtime.Player> Photon.Realtime.Room::get_Players()
extern void Room_get_Players_m8F39EA784277611D7051C8A37EE813FFF4BCDDD7 ();
// 0x0000018A System.Void Photon.Realtime.Room::set_Players(System.Collections.Generic.Dictionary`2<System.Int32,Photon.Realtime.Player>)
extern void Room_set_Players_m0D5CFB1E82363D1AB270484990EE5D79D9811FB8 ();
// 0x0000018B System.String[] Photon.Realtime.Room::get_ExpectedUsers()
extern void Room_get_ExpectedUsers_mF6928B3A5B8CD93A75882BDDB08A2E759D4C565F ();
// 0x0000018C System.Int32 Photon.Realtime.Room::get_PlayerTtl()
extern void Room_get_PlayerTtl_m9947D50F953F4C37988D5496A3E03336F27CE370 ();
// 0x0000018D System.Void Photon.Realtime.Room::set_PlayerTtl(System.Int32)
extern void Room_set_PlayerTtl_mDC5CA1C7F2790DD26EDB6D8FD7FCFE723E60C55E ();
// 0x0000018E System.Int32 Photon.Realtime.Room::get_EmptyRoomTtl()
extern void Room_get_EmptyRoomTtl_mB2AB26E021613CAE926EED6C14FE2CB92100CBF9 ();
// 0x0000018F System.Void Photon.Realtime.Room::set_EmptyRoomTtl(System.Int32)
extern void Room_set_EmptyRoomTtl_mA79AEB412F560A793F95EF26DDDFF53367D5E8FD ();
// 0x00000190 System.Int32 Photon.Realtime.Room::get_MasterClientId()
extern void Room_get_MasterClientId_m1F799A66FDFD9D1BCB2F32B0F2327BF8CDF5075E ();
// 0x00000191 System.String[] Photon.Realtime.Room::get_PropertiesListedInLobby()
extern void Room_get_PropertiesListedInLobby_mBCB796C319E1DEF67E4F914072668F4844FB053D ();
// 0x00000192 System.Void Photon.Realtime.Room::set_PropertiesListedInLobby(System.String[])
extern void Room_set_PropertiesListedInLobby_m804175FB0D480F47629CA96F82DE6401DDF3F06F ();
// 0x00000193 System.Boolean Photon.Realtime.Room::get_AutoCleanUp()
extern void Room_get_AutoCleanUp_m2BA5EC0F7D2A7ADAB38AB0FEB5B0A130A252B48F ();
// 0x00000194 System.Boolean Photon.Realtime.Room::get_BroadcastPropertiesChangeToAll()
extern void Room_get_BroadcastPropertiesChangeToAll_m41F0ED85671F3EB13B39709EAFEFFA53316B321F ();
// 0x00000195 System.Void Photon.Realtime.Room::set_BroadcastPropertiesChangeToAll(System.Boolean)
extern void Room_set_BroadcastPropertiesChangeToAll_m79D02C344D870A92D087EB3233E577563360E021 ();
// 0x00000196 System.Void Photon.Realtime.Room::.ctor(System.String,Photon.Realtime.RoomOptions,System.Boolean)
extern void Room__ctor_mD644FF2C795EC5BBD50438BAB949C2414A873CB6 ();
// 0x00000197 System.Void Photon.Realtime.Room::SetRoomFlags(System.Int32)
extern void Room_SetRoomFlags_mB6ADE5E1D80F699EDC0A5D2B9C1B19018F3B39E4 ();
// 0x00000198 System.Void Photon.Realtime.Room::InternalCacheProperties(ExitGames.Client.Photon.Hashtable)
extern void Room_InternalCacheProperties_mBE0740DD3127B36F1DFDC6B3363A096579189AEF ();
// 0x00000199 System.Boolean Photon.Realtime.Room::SetCustomProperties(ExitGames.Client.Photon.Hashtable,ExitGames.Client.Photon.Hashtable,Photon.Realtime.WebFlags)
extern void Room_SetCustomProperties_m546BBBAB6A48FDEFC73845C195A50C0F3290F3B0 ();
// 0x0000019A System.Boolean Photon.Realtime.Room::SetPropertiesListedInLobby(System.String[])
extern void Room_SetPropertiesListedInLobby_mECC17F1937DC2405E339FB401C653AEE0A1C1367 ();
// 0x0000019B System.Void Photon.Realtime.Room::RemovePlayer(Photon.Realtime.Player)
extern void Room_RemovePlayer_m238395556BB7C376C19ADE84074EA4D3C043B215 ();
// 0x0000019C System.Void Photon.Realtime.Room::RemovePlayer(System.Int32)
extern void Room_RemovePlayer_mA6BA0D249B52408DE1C1C4B5E870CB2A27BF3BF5 ();
// 0x0000019D System.Boolean Photon.Realtime.Room::SetMasterClient(Photon.Realtime.Player)
extern void Room_SetMasterClient_m332177B7EA4EBF00CABB88FA984B651954CFA21C ();
// 0x0000019E System.Boolean Photon.Realtime.Room::AddPlayer(Photon.Realtime.Player)
extern void Room_AddPlayer_m563868E24D9EF0C9DAE29389430F2F07F3FFB147 ();
// 0x0000019F Photon.Realtime.Player Photon.Realtime.Room::StorePlayer(Photon.Realtime.Player)
extern void Room_StorePlayer_m12DAA94744AE461D74B16FDB01A71F6FEE3325CE ();
// 0x000001A0 Photon.Realtime.Player Photon.Realtime.Room::GetPlayer(System.Int32)
extern void Room_GetPlayer_mFC75FEBE25AE023F5D8C4441EB6D168BF052BBD9 ();
// 0x000001A1 System.Boolean Photon.Realtime.Room::ClearExpectedUsers()
extern void Room_ClearExpectedUsers_mE4627419E610BE7C3CF9D8AA81E24F88F6042D47 ();
// 0x000001A2 System.String Photon.Realtime.Room::ToString()
extern void Room_ToString_mEFDF611A6369048A0F0471689A43585AD19D76BB ();
// 0x000001A3 System.String Photon.Realtime.Room::ToStringFull()
extern void Room_ToStringFull_m94133A3D76BCF79806886BBFCBEA1B6699BF0579 ();
// 0x000001A4 ExitGames.Client.Photon.Hashtable Photon.Realtime.RoomInfo::get_CustomProperties()
extern void RoomInfo_get_CustomProperties_m3674186FCBD88FD364CC1373A735EC8FFF9DB17C ();
// 0x000001A5 System.String Photon.Realtime.RoomInfo::get_Name()
extern void RoomInfo_get_Name_m24C3CFCDD6E862D5E0EA27A0B2736E09D72843DA ();
// 0x000001A6 System.Int32 Photon.Realtime.RoomInfo::get_PlayerCount()
extern void RoomInfo_get_PlayerCount_m6E97FB80FDADD5A3B15ED2D51F071B3F343C1CC1 ();
// 0x000001A7 System.Void Photon.Realtime.RoomInfo::set_PlayerCount(System.Int32)
extern void RoomInfo_set_PlayerCount_m406E55A69DFEB12E15AEB7B8DDF0B0C8F704911F ();
// 0x000001A8 System.Byte Photon.Realtime.RoomInfo::get_MaxPlayers()
extern void RoomInfo_get_MaxPlayers_mB393159F17C716B593EC71158399F415ED15CA51 ();
// 0x000001A9 System.Boolean Photon.Realtime.RoomInfo::get_IsOpen()
extern void RoomInfo_get_IsOpen_mB6999468BA5346E8D7C421DB3CDBA882C1288856 ();
// 0x000001AA System.Boolean Photon.Realtime.RoomInfo::get_IsVisible()
extern void RoomInfo_get_IsVisible_mB12677A2EC41DE627005F79B86C3CEB9A0532491 ();
// 0x000001AB System.Void Photon.Realtime.RoomInfo::.ctor(System.String,ExitGames.Client.Photon.Hashtable)
extern void RoomInfo__ctor_m08E92F3A21843E5B564329A473C33BEAE7EBDD8B ();
// 0x000001AC System.Boolean Photon.Realtime.RoomInfo::Equals(System.Object)
extern void RoomInfo_Equals_mA1F83E98B362D4DAF441D42C360164E18057BECC ();
// 0x000001AD System.Int32 Photon.Realtime.RoomInfo::GetHashCode()
extern void RoomInfo_GetHashCode_m86A2462634914114B25337548809456667A6240B ();
// 0x000001AE System.String Photon.Realtime.RoomInfo::ToString()
extern void RoomInfo_ToString_m47D9484C51886F87648BA365109134FB53CD933A ();
// 0x000001AF System.String Photon.Realtime.RoomInfo::ToStringFull()
extern void RoomInfo_ToStringFull_mE676F4200194103F85618888DE0790156EF89768 ();
// 0x000001B0 System.Void Photon.Realtime.RoomInfo::InternalCacheProperties(ExitGames.Client.Photon.Hashtable)
extern void RoomInfo_InternalCacheProperties_m3F403CC517046994543F8D2349ABCE5537B8BE26 ();
// 0x000001B1 Photon.Realtime.LoadBalancingClient Photon.Realtime.SupportLogger::get_Client()
extern void SupportLogger_get_Client_mB26343CDA21A09F3EA30AD740275EAFC083D52B7 ();
// 0x000001B2 System.Void Photon.Realtime.SupportLogger::set_Client(Photon.Realtime.LoadBalancingClient)
extern void SupportLogger_set_Client_m166B9D97ABDFAA4A8E7792F8C8861BE4C7193976 ();
// 0x000001B3 System.Void Photon.Realtime.SupportLogger::Start()
extern void SupportLogger_Start_m1198B8A81F90188616E5942DCA38D0D79A8C7479 ();
// 0x000001B4 System.Void Photon.Realtime.SupportLogger::OnApplicationPause(System.Boolean)
extern void SupportLogger_OnApplicationPause_m394AE8B8288BFCE03DD16287100911E4D922E01B ();
// 0x000001B5 System.Void Photon.Realtime.SupportLogger::OnApplicationQuit()
extern void SupportLogger_OnApplicationQuit_mF14FE14659F54814A80D0DDCA9A8FFEC532CEC81 ();
// 0x000001B6 System.Void Photon.Realtime.SupportLogger::StartLogStats()
extern void SupportLogger_StartLogStats_m973A1BFAAB04C8F0F9568E1A281C6EE553384610 ();
// 0x000001B7 System.Void Photon.Realtime.SupportLogger::StopLogStats()
extern void SupportLogger_StopLogStats_m5EA95B7B9DD9BEB62FCB674FBDED85DB910C3B06 ();
// 0x000001B8 System.Void Photon.Realtime.SupportLogger::StartTrackValues()
extern void SupportLogger_StartTrackValues_mCCA9284BFA342F2822E786C069773B61ED626F55 ();
// 0x000001B9 System.Void Photon.Realtime.SupportLogger::StopTrackValues()
extern void SupportLogger_StopTrackValues_m0806BA608466711C295BC23883AFAF6AEE153CB4 ();
// 0x000001BA System.String Photon.Realtime.SupportLogger::GetFormattedTimestamp()
extern void SupportLogger_GetFormattedTimestamp_m32FC37B0F0AE804113DD4C24DB3BE4AE6193D821 ();
// 0x000001BB System.Void Photon.Realtime.SupportLogger::TrackValues()
extern void SupportLogger_TrackValues_m66D40C21DDFC4AA2988C44ACAF53AE3FE76FC39C ();
// 0x000001BC System.Void Photon.Realtime.SupportLogger::LogStats()
extern void SupportLogger_LogStats_m420DC4631D59DCE0F7D33C3146C8688D08C54F94 ();
// 0x000001BD System.Void Photon.Realtime.SupportLogger::LogBasics()
extern void SupportLogger_LogBasics_m1DD18EAF9701CABB4D230E939DC67A471B2C4B13 ();
// 0x000001BE System.Void Photon.Realtime.SupportLogger::OnConnected()
extern void SupportLogger_OnConnected_mA89BCA9B3319032CF17DEB3BE76B87AA54C06C76 ();
// 0x000001BF System.Void Photon.Realtime.SupportLogger::OnConnectedToMaster()
extern void SupportLogger_OnConnectedToMaster_mF52A4381DCC7C6CE19F3451D539020E39B2A11C4 ();
// 0x000001C0 System.Void Photon.Realtime.SupportLogger::OnFriendListUpdate(System.Collections.Generic.List`1<Photon.Realtime.FriendInfo>)
extern void SupportLogger_OnFriendListUpdate_mB422AD317F908DDCA99272016652A88A22FBAF47 ();
// 0x000001C1 System.Void Photon.Realtime.SupportLogger::OnJoinedLobby()
extern void SupportLogger_OnJoinedLobby_m3F1EFC503B05CA5A2410C4B5FF08405E6A4ECB2C ();
// 0x000001C2 System.Void Photon.Realtime.SupportLogger::OnLeftLobby()
extern void SupportLogger_OnLeftLobby_m33D2D8A6305BA65C80658D8B0AC3DADB7FAEC419 ();
// 0x000001C3 System.Void Photon.Realtime.SupportLogger::OnCreateRoomFailed(System.Int16,System.String)
extern void SupportLogger_OnCreateRoomFailed_mE38FC7667E7002A91626809317BECD47D71FDCCF ();
// 0x000001C4 System.Void Photon.Realtime.SupportLogger::OnJoinedRoom()
extern void SupportLogger_OnJoinedRoom_mB37EE4EAB942E5A6A8890C6FA4E1EB6740E16B82 ();
// 0x000001C5 System.Void Photon.Realtime.SupportLogger::OnJoinRoomFailed(System.Int16,System.String)
extern void SupportLogger_OnJoinRoomFailed_m3488EE58BF74437B2142A96EBF18DCB6B4B2C48C ();
// 0x000001C6 System.Void Photon.Realtime.SupportLogger::OnJoinRandomFailed(System.Int16,System.String)
extern void SupportLogger_OnJoinRandomFailed_mAE5ECBF451C6E4FDFE2F85E0DC30F525319D12F0 ();
// 0x000001C7 System.Void Photon.Realtime.SupportLogger::OnCreatedRoom()
extern void SupportLogger_OnCreatedRoom_mF35AB68837976AC88555409F51F24C21C4A8C2F2 ();
// 0x000001C8 System.Void Photon.Realtime.SupportLogger::OnLeftRoom()
extern void SupportLogger_OnLeftRoom_m05D5834FFADC1CCD590D7606819AA48399A3C76F ();
// 0x000001C9 System.Void Photon.Realtime.SupportLogger::OnDisconnected(Photon.Realtime.DisconnectCause)
extern void SupportLogger_OnDisconnected_mDE77493509B7A736D17258EABD0BD827843C9950 ();
// 0x000001CA System.Void Photon.Realtime.SupportLogger::OnRegionListReceived(Photon.Realtime.RegionHandler)
extern void SupportLogger_OnRegionListReceived_mC0CEDEA1F7A9B6376FAF45AFEB99FE7F0B36A720 ();
// 0x000001CB System.Void Photon.Realtime.SupportLogger::OnRoomListUpdate(System.Collections.Generic.List`1<Photon.Realtime.RoomInfo>)
extern void SupportLogger_OnRoomListUpdate_m8268A931B26BA87B2F0B52F6F21A02B76CF7E2F5 ();
// 0x000001CC System.Void Photon.Realtime.SupportLogger::OnPlayerEnteredRoom(Photon.Realtime.Player)
extern void SupportLogger_OnPlayerEnteredRoom_m154F337E9EB056F73C076F87B3D79F7C60203933 ();
// 0x000001CD System.Void Photon.Realtime.SupportLogger::OnPlayerLeftRoom(Photon.Realtime.Player)
extern void SupportLogger_OnPlayerLeftRoom_m341B83040EF40500E395885DEE61E6EF45B7FD31 ();
// 0x000001CE System.Void Photon.Realtime.SupportLogger::OnRoomPropertiesUpdate(ExitGames.Client.Photon.Hashtable)
extern void SupportLogger_OnRoomPropertiesUpdate_m31BE5B8A2D88B9907CE8A75D53A1026247BF83D8 ();
// 0x000001CF System.Void Photon.Realtime.SupportLogger::OnPlayerPropertiesUpdate(Photon.Realtime.Player,ExitGames.Client.Photon.Hashtable)
extern void SupportLogger_OnPlayerPropertiesUpdate_mE2DF15B31EF1ED642BFE5AFA3029E8F7CF85C5FE ();
// 0x000001D0 System.Void Photon.Realtime.SupportLogger::OnMasterClientSwitched(Photon.Realtime.Player)
extern void SupportLogger_OnMasterClientSwitched_m3658AC3899549A5D3788B25BD338CDDA9C842F8D ();
// 0x000001D1 System.Void Photon.Realtime.SupportLogger::OnCustomAuthenticationResponse(System.Collections.Generic.Dictionary`2<System.String,System.Object>)
extern void SupportLogger_OnCustomAuthenticationResponse_mF5F844DB7163FEE64FB92021F75C644C44D2CF35 ();
// 0x000001D2 System.Void Photon.Realtime.SupportLogger::OnCustomAuthenticationFailed(System.String)
extern void SupportLogger_OnCustomAuthenticationFailed_m63D26B6876F0FD3409FD609D7354B59DCA6B6648 ();
// 0x000001D3 System.Void Photon.Realtime.SupportLogger::OnLobbyStatisticsUpdate(System.Collections.Generic.List`1<Photon.Realtime.TypedLobbyInfo>)
extern void SupportLogger_OnLobbyStatisticsUpdate_m9224062BC0172E2FE07283717A658EF01153EB68 ();
// 0x000001D4 System.Void Photon.Realtime.SupportLogger::OnErrorInfo(Photon.Realtime.ErrorInfo)
extern void SupportLogger_OnErrorInfo_m20D7E6C6F87BF2BA88711037EEC5F34871B55C8D ();
// 0x000001D5 System.Void Photon.Realtime.SupportLogger::.ctor()
extern void SupportLogger__ctor_m17A4C242A97DE0BC726D88511103F1AB72B49653 ();
// 0x000001D6 System.String Photon.Realtime.WebRpcResponse::get_Name()
extern void WebRpcResponse_get_Name_m0B6E38116B73FE932B4809D1510013A2D0E75FEB ();
// 0x000001D7 System.Void Photon.Realtime.WebRpcResponse::set_Name(System.String)
extern void WebRpcResponse_set_Name_mEADC4EB6ED220410F817BB3A5864230A0215CA01 ();
// 0x000001D8 System.Int32 Photon.Realtime.WebRpcResponse::get_ResultCode()
extern void WebRpcResponse_get_ResultCode_mFC73DF1E0EF9021C8C3E53EC0EF548915B566886 ();
// 0x000001D9 System.Void Photon.Realtime.WebRpcResponse::set_ResultCode(System.Int32)
extern void WebRpcResponse_set_ResultCode_m8E4EE89F34D749CCFEA3B1D2D777A5A8D3FA33AA ();
// 0x000001DA System.Int32 Photon.Realtime.WebRpcResponse::get_ReturnCode()
extern void WebRpcResponse_get_ReturnCode_mC2DB2985F6E1F2AB60A26975A4D7DC88C5D7562A ();
// 0x000001DB System.String Photon.Realtime.WebRpcResponse::get_Message()
extern void WebRpcResponse_get_Message_m9F817E8E921967871322B123F6C1BEF6F8BF5138 ();
// 0x000001DC System.Void Photon.Realtime.WebRpcResponse::set_Message(System.String)
extern void WebRpcResponse_set_Message_m0A4DB2E9F565AD93775CAE27C140A9DB4E411B78 ();
// 0x000001DD System.String Photon.Realtime.WebRpcResponse::get_DebugMessage()
extern void WebRpcResponse_get_DebugMessage_mD4740D583D4CF227657519753D2145759B371714 ();
// 0x000001DE System.Collections.Generic.Dictionary`2<System.String,System.Object> Photon.Realtime.WebRpcResponse::get_Parameters()
extern void WebRpcResponse_get_Parameters_m73734E2B75DC69FF24E5EBFE1C58383DB7F01969 ();
// 0x000001DF System.Void Photon.Realtime.WebRpcResponse::set_Parameters(System.Collections.Generic.Dictionary`2<System.String,System.Object>)
extern void WebRpcResponse_set_Parameters_mC93C08CE135944569FF91BC362C850E628E0563A ();
// 0x000001E0 System.Void Photon.Realtime.WebRpcResponse::.ctor(ExitGames.Client.Photon.OperationResponse)
extern void WebRpcResponse__ctor_m3F9AE28F4DDDAE01D8846E6A2206ED8C1D097B1E ();
// 0x000001E1 System.String Photon.Realtime.WebRpcResponse::ToStringFull()
extern void WebRpcResponse_ToStringFull_mD16B7B3F985553A86DC907BC3836B249EC84F203 ();
// 0x000001E2 System.Boolean Photon.Realtime.WebFlags::get_HttpForward()
extern void WebFlags_get_HttpForward_m06B3FF0980DD3F3AC493ECF0897CFAFEB6101AB7 ();
// 0x000001E3 System.Void Photon.Realtime.WebFlags::set_HttpForward(System.Boolean)
extern void WebFlags_set_HttpForward_m5057520D45E0EE8B75146FF633C741C88E6DB1E5 ();
// 0x000001E4 System.Boolean Photon.Realtime.WebFlags::get_SendAuthCookie()
extern void WebFlags_get_SendAuthCookie_m4C3809BF83E26E6A0A0BBCF1B656FB420DB099C5 ();
// 0x000001E5 System.Void Photon.Realtime.WebFlags::set_SendAuthCookie(System.Boolean)
extern void WebFlags_set_SendAuthCookie_m67D7AF57044292DA159A46AE8F4DC27F1DD3A46E ();
// 0x000001E6 System.Boolean Photon.Realtime.WebFlags::get_SendSync()
extern void WebFlags_get_SendSync_m8E4500A08237E7ACF599CF7A77EF1F0B419D7FE2 ();
// 0x000001E7 System.Void Photon.Realtime.WebFlags::set_SendSync(System.Boolean)
extern void WebFlags_set_SendSync_m1C9961C96558BF31ED185876EA55990A4F54CAE3 ();
// 0x000001E8 System.Boolean Photon.Realtime.WebFlags::get_SendState()
extern void WebFlags_get_SendState_m7085E7394ECDB9CDC07BF0A4C2A0037E344076C5 ();
// 0x000001E9 System.Void Photon.Realtime.WebFlags::set_SendState(System.Boolean)
extern void WebFlags_set_SendState_m772DFC77F5169E3548302A9F601B87DC11765909 ();
// 0x000001EA System.Void Photon.Realtime.WebFlags::.ctor(System.Byte)
extern void WebFlags__ctor_mF30D282AD9F1D728C06672D22FCB7E108BCB1993 ();
// 0x000001EB System.Void Photon.Realtime.WebFlags::.cctor()
extern void WebFlags__cctor_m98EB282DAF4EDC93CC587315D2B06E55CB86DDE0 ();
// 0x000001EC System.Void Photon.Realtime.LoadBalancingClient_CallbackTargetChange::.ctor(System.Object,System.Boolean)
extern void CallbackTargetChange__ctor_m071B8C0B4920F5D8508B702D0F378FF09FEA6AAF ();
// 0x000001ED System.Void Photon.Realtime.LoadBalancingPeer_<>c::.cctor()
extern void U3CU3Ec__cctor_m454CC236AFD52C5F76904A4B4AB34679FDFCEE89 ();
// 0x000001EE System.Void Photon.Realtime.LoadBalancingPeer_<>c::.ctor()
extern void U3CU3Ec__ctor_mCCE86F50244BA16818CE238231A60D33DA7126CF ();
// 0x000001EF System.Collections.Generic.Dictionary`2<System.Byte,System.Object> Photon.Realtime.LoadBalancingPeer_<>c::<.ctor>b__4_0()
extern void U3CU3Ec_U3C_ctorU3Eb__4_0_m289A926A537815EABB922908021EA427195B3B56 ();
// 0x000001F0 System.Void Photon.Realtime.LoadBalancingPeer_<>c::<.ctor>b__4_1(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>)
extern void U3CU3Ec_U3C_ctorU3Eb__4_1_m6B36D5038AA5DCB59B9C1CB07D06B9D161D2173A ();
// 0x000001F1 System.Void Photon.Realtime.RegionHandler_<>c::.cctor()
extern void U3CU3Ec__cctor_mE157ACC2760DCC7D615439E9D2BF9512AB689D75 ();
// 0x000001F2 System.Void Photon.Realtime.RegionHandler_<>c::.ctor()
extern void U3CU3Ec__ctor_m4D4266CBFC2BBD4129FA851865400633B635659D ();
// 0x000001F3 System.Int32 Photon.Realtime.RegionHandler_<>c::<get_BestRegion>b__8_0(Photon.Realtime.Region,Photon.Realtime.Region)
extern void U3CU3Ec_U3Cget_BestRegionU3Eb__8_0_m9739F165BF2C69800927AAC250290613EFD9F38B ();
// 0x000001F4 System.Void Photon.Realtime.RegionHandler_<>c__DisplayClass21_0::.ctor()
extern void U3CU3Ec__DisplayClass21_0__ctor_mF25E447B2D64446843E6EF14E2FDC724A867E6B0 ();
// 0x000001F5 System.Boolean Photon.Realtime.RegionHandler_<>c__DisplayClass21_0::<PingMinimumOfRegions>b__0(Photon.Realtime.Region)
extern void U3CU3Ec__DisplayClass21_0_U3CPingMinimumOfRegionsU3Eb__0_m6EF2CA9B0F6E0D861BD0E4AC710C2490D8AB4DC8 ();
// 0x000001F6 System.Void Photon.Realtime.RegionPinger_<RegionPingCoroutine>d__19::.ctor(System.Int32)
extern void U3CRegionPingCoroutineU3Ed__19__ctor_mAF17F0DE6598CF53151AA203A1DB977FC10A22AE ();
// 0x000001F7 System.Void Photon.Realtime.RegionPinger_<RegionPingCoroutine>d__19::System.IDisposable.Dispose()
extern void U3CRegionPingCoroutineU3Ed__19_System_IDisposable_Dispose_mE742DAB197B9A3223CBA8FE92E97011B4950510C ();
// 0x000001F8 System.Boolean Photon.Realtime.RegionPinger_<RegionPingCoroutine>d__19::MoveNext()
extern void U3CRegionPingCoroutineU3Ed__19_MoveNext_m01F7E696B6F543A9EFD7E2847A028207246A294E ();
// 0x000001F9 System.Object Photon.Realtime.RegionPinger_<RegionPingCoroutine>d__19::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CRegionPingCoroutineU3Ed__19_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mFEB50FD2B237F3F24FA9634AFD63484E3BA92505 ();
// 0x000001FA System.Void Photon.Realtime.RegionPinger_<RegionPingCoroutine>d__19::System.Collections.IEnumerator.Reset()
extern void U3CRegionPingCoroutineU3Ed__19_System_Collections_IEnumerator_Reset_m2EE199B2E01A0AC0ED496D21547B739B6C655CCE ();
// 0x000001FB System.Object Photon.Realtime.RegionPinger_<RegionPingCoroutine>d__19::System.Collections.IEnumerator.get_Current()
extern void U3CRegionPingCoroutineU3Ed__19_System_Collections_IEnumerator_get_Current_mA99D955E3CD2456F91DCFC73753892F196CC54B2 ();
static Il2CppMethodPointer s_methodPointers[507] =
{
AppSettings_get_IsMasterServerAddress_m2F43A395E93E666FA86C8D6994E00260BAD434A5,
AppSettings_get_IsBestRegion_m534861CD875A9D5E8801052024D12A5F31EA1FE7,
AppSettings_get_IsDefaultNameServer_m70F8F26188A7EB0B8D55A9904A2F51498B36C941,
AppSettings_get_IsDefaultPort_mFD502FC4090BAE524899B8FE8D73F783A7BEF851,
AppSettings_ToStringFull_m1C7E9BA1BBCB3C2AA844F4928FE9676AD5359750,
AppSettings_HideAppId_mA370DE64E29F1DA81F0A1815198001C1ABBB5E62,
AppSettings_CopyTo_mBCFA850C8D4305A03EF9C53F567095D6D5B54AC1,
AppSettings__ctor_mEE7F23500B21898BF51BD410D1CB360DEBF66931,
ConnectionHandler_get_Client_mD602A5800223D074F0CF6B96FFE8529F545A4E80,
ConnectionHandler_set_Client_m41E8AA7C73CEC09E0C73FE3532C233F109DCBC45,
ConnectionHandler_get_CountSendAcksOnly_m91028B52B53946478ACB442ED9DD1C16E7115C57,
ConnectionHandler_set_CountSendAcksOnly_mD2D80CCEEBAACC896F8B35C6938F734E01C4104E,
ConnectionHandler_get_FallbackThreadRunning_m1BE4BE852820C4869BBBC66C21F57B9E573620B7,
ConnectionHandler_OnApplicationQuit_m3417E7F60D002C50325C2586F18DD3AF7E9550E6,
ConnectionHandler_Awake_m83D273997434940D3BB1A5431B7FFB4C8C1C5DAB,
ConnectionHandler_OnDisable_mDFD9EF4418130730F105A69F1554FD1DA0842F31,
ConnectionHandler_StartFallbackSendAckThread_mC683B581861BC397A4F8B6D5DD497C3BBA20B7A7,
ConnectionHandler_StopFallbackSendAckThread_m735B91669EDB32A4F14196C741629CAF97E8D13D,
ConnectionHandler_RealtimeFallbackThread_m3D6526BB05E1494789907593A678F679B159C273,
ConnectionHandler__ctor_mB639F2C7F1DCE9C49A17C1CBEBABAC03ABB218E2,
Extensions_Merge_mE5A42AF13B84826877703729DB671E74D15D5AC9,
Extensions_MergeStringKeys_mDCDF6621E96473D5021BFCEC97B22804F387951A,
Extensions_ToStringFull_m7D5DC29B4341359CC4354664509068EF620E9DCC,
NULL,
Extensions_ToStringFull_m2121FA96DD4725901A192FA61DC03AAF6766D239,
Extensions_StripToStringKeys_m3308CA9F76B4513C17698D6DAA3E3C06BD6AF47B,
Extensions_StripKeysWithNullValues_m7708059EAF935DD384169C58E072392DB34E0055,
Extensions_Contains_m93F4A6BA815601CE40B03D37FCA0F51C9BA1EC71,
Extensions__cctor_m026E9175E0BFF4F6D6624481B752C0E29EC6A4B7,
FriendInfo_get_Name_m7E6D9124C3CDE8D6045D3FA8B4AB2B4BE03D08AE,
FriendInfo_get_UserId_m475DCCA64B31738682706B4B7D02A520394E951C,
FriendInfo_set_UserId_m635303D0D3B6F265DC5EA4BC48DC6F7F7CAEAC4B,
FriendInfo_get_IsOnline_mB5135E0CCCE94C97B89DC682844A93E04E7AC461,
FriendInfo_set_IsOnline_mF82EFFC6D63C22396272B734F74176E4B46D3ABE,
FriendInfo_get_Room_m67D7169E01E1F1C9C31EBCCB8BC706090BAB3119,
FriendInfo_set_Room_m77970C7788BA7A903FA0E4C83CD2C53CC7CBF251,
FriendInfo_get_IsInRoom_mF994126A3C7188F446816E4D1079A1327DE0F9D8,
FriendInfo_ToString_mEADB7533405EBFBF96B8FD2BD79A9E421170A61C,
FriendInfo__ctor_m3E7BB94A24F402D1A41247C30F470CE6F6AEB4B0,
LoadBalancingClient_get_LoadBalancingPeer_m0997FEE69F076CDD9740F8A3B34038733175A243,
LoadBalancingClient_set_LoadBalancingPeer_m8B21BEA9184F84DCDE7BBB9FBB60134B29B29C3D,
LoadBalancingClient_get_SerializationProtocol_m530CA20A4128CA9729B069A8975CA79165FD6E7A,
LoadBalancingClient_set_SerializationProtocol_mA4721398801BDF3D206EF073F7E92DDBBF528A9E,
LoadBalancingClient_get_AppVersion_m2D816CED5CD4B71B47C03B33D2C5DFAE08997B9D,
LoadBalancingClient_set_AppVersion_mB366065ACFDA6142E92B1585194423E398A9260E,
LoadBalancingClient_get_AppId_m49A1261CC79356CABF9A709AAC4674B406ECA1DD,
LoadBalancingClient_set_AppId_m526B1D687E3EE08B889F2CBD2F84853C6DA86F27,
LoadBalancingClient_get_AuthValues_mE56B5ADE8CC0EBB1CB9C5DFA64913AC5B36B7F02,
LoadBalancingClient_set_AuthValues_mB58414B316951242AD2045E85DF048B5357A9C28,
LoadBalancingClient_get_ExpectedProtocol_mBB0B05DA0F702E2A1E4E9811B248A807DFB579A5,
LoadBalancingClient_set_ExpectedProtocol_mADD7BD637137FD001681F3C160865902ECF2AE87,
LoadBalancingClient_get_TokenForInit_<KEY>,
LoadBalancingClient_get_IsUsingNameServer_m018A230E641F2CEC1B60DE60EB6BE472834F5092,
LoadBalancingClient_set_IsUsingNameServer_mDF99F6C889F0139711EB50A21D0055A7E4A0F8B2,
LoadBalancingClient_get_NameServerAddress_m3427DF83D68B873E55A3496C4B5C77E1324C7D06,
LoadBalancingClient_get_UseAlternativeUdpPorts_m99F6E198B4B848CDF32991FBED08120DCB87915B,
LoadBalancingClient_set_UseAlternativeUdpPorts_mE307DBDAB3A4BC8E2D81F5BF899830132F53C1A3,
LoadBalancingClient_get_EnableProtocolFallback_mB180B5ED5729E1B1598295C2736A370FE8F0B888,
LoadBalancingClient_set_EnableProtocolFallback_m711220BE304C2B1F3E624FEB2ECAEC278CE5EABC,
LoadBalancingClient_get_CurrentServerAddress_m617D5473B405AA52AA10EBC3FB8CEC4E65252A02,
LoadBalancingClient_get_MasterServerAddress_mE550265A7F1B30E6D1464D0139E859483D507F6B,
LoadBalancingClient_set_MasterServerAddress_m988C29C7041A715EDA996AD6B5A6370AD6842424,
LoadBalancingClient_get_GameServerAddress_m572210F250D42394A3E6E0FAB7E15DBD6EE78E05,
LoadBalancingClient_set_GameServerAddress_mD863BE3068C8A77BD9E85C5F090EB88A73EF9B65,
LoadBalancingClient_get_Server_mF0DA3FA871E123896E53C39758BAF853F1A80EC3,
LoadBalancingClient_set_Server_m6F4DE1ABC82A6FF949AA370EA18D18920597527E,
LoadBalancingClient_get_State_mDCC22D02A85973C68623C764C96BE9A862C8BD11,
LoadBalancingClient_set_State_m1D4AA099CA318F90B257BC03CF9F54979E677BCA,
LoadBalancingClient_get_IsConnected_m90DAE8B064E99BA87DC5CDAC811D38647D468C2C,
LoadBalancingClient_get_IsConnectedAndReady_m14A6F4A0A3D74E499F65B0360C76A33E94AFAC9C,
LoadBalancingClient_add_StateChanged_m630663477C5815D2183AC49D0F5B9C1A5860B50B,
LoadBalancingClient_remove_StateChanged_mC9DBCEE79FE46D63C9BDB1FDDD3509040BB0F622,
LoadBalancingClient_add_EventReceived_mB9CA21DC8A6CC6C5CC104CA95EBE8EC3BDB0E89E,
LoadBalancingClient_remove_EventReceived_mB5E8B057AC7F815D23527D023E0AE9DDCCE1D410,
LoadBalancingClient_add_OpResponseReceived_m62C814B15A34EDBA8EB903BE2301C723779C23C3,
LoadBalancingClient_remove_OpResponseReceived_m63B38E969559A3AAE7B5CCD9D29E44DFB45168DB,
LoadBalancingClient_get_DisconnectedCause_mEC001DE2A4D9E6BC4A364D7F3039EDF72DF395B2,
LoadBalancingClient_set_DisconnectedCause_mA384559B6EA4E119910272DF3BBBC1326C47C3E6,
LoadBalancingClient_get_InLobby_mEF3C513D70D233C19ED61DAF2D4450DA5184A7B9,
LoadBalancingClient_get_CurrentLobby_mA012C41E1DF7DF53F0CF4A024C9E0FABDDDC2456,
LoadBalancingClient_set_CurrentLobby_m77CC4772915A138EE66B874EBB0A9F707C4A8FF8,
LoadBalancingClient_get_LocalPlayer_mAB1446D19EBDAE3D7D47E92F560AE939B3F21CD8,
LoadBalancingClient_set_LocalPlayer_m3AA86EC255BF530EC13FA13CB3BE4D8475D60137,
LoadBalancingClient_get_NickName_m8075389432D8241A5681B82A8C63222B894E060F,
LoadBalancingClient_set_NickName_m5DBB4C8C18626B5CC593EC56A564C55B51A3306E,
LoadBalancingClient_get_UserId_mE44D3E9907F0B72F57E8D6CBF3A0E80B07064AA8,
LoadBalancingClient_set_UserId_m8CE468179FE3969883147E165AD466021B0BABB6,
LoadBalancingClient_get_CurrentRoom_mA294529AE11CDDF17597FADE478A392B8B534002,
LoadBalancingClient_set_CurrentRoom_mE849A43CF3269E76CE909EE4DE23265175EEB596,
LoadBalancingClient_get_InRoom_m7DAE0F52D1CF9FF0B2373BE9559788C1752E03B3,
LoadBalancingClient_get_PlayersOnMasterCount_m8DBA036419F15FE61A7FCDFE8DE1906FE95DB67F,
LoadBalancingClient_set_PlayersOnMasterCount_mBC03E29C60BE48118AD42E71EF2B123029B53E32,
LoadBalancingClient_get_PlayersInRoomsCount_m064FF861BE6A381EC4D87C4F342F62AA6ACA3C21,
LoadBalancingClient_set_PlayersInRoomsCount_m99D3F0A6CDA8A3475CBFE8EB3549E2192E970447,
LoadBalancingClient_get_RoomsCount_mDE93A42C477C145F9643BF64FA678B7546819063,
LoadBalancingClient_set_RoomsCount_m3F6B5B1193EB8419109C85CDCF5220B377932AEA,
LoadBalancingClient_get_IsFetchingFriendList_m173C51FE398A7F356F7875DCA876B059960BFCD8,
LoadBalancingClient_get_CloudRegion_m0AAC37B5520321CC88C90C625E56EBEC822C3DEB,
LoadBalancingClient_set_CloudRegion_m6DBD960027DE67168D93A00A75861C9552ED9393,
LoadBalancingClient_get_CurrentCluster_mEDA76121FC84D677906B31A2EF74EB72292C3B82,
LoadBalancingClient_set_CurrentCluster_m8AA87CB42014FB4F1305ECF87124B4E2023F6154,
LoadBalancingClient__ctor_m3770A74AE443B3A4EA6E78A205501B0C7037E11A,
LoadBalancingClient__ctor_mEA9061ACAA0714BDA88A90A10E3802DD65D0FA47,
LoadBalancingClient_GetNameServerAddress_m11E7EB63DB1C7E0DDBE48A49D7DE82140ED634BC,
LoadBalancingClient_ConnectUsingSettings_mA48FB48E02A0508F5EB4DC7DF4FA99B7D19E0408,
LoadBalancingClient_Connect_mCF5DFFA5B00A2F5EF372AEC99932E51AE7E6E81C,
LoadBalancingClient_ConnectToMasterServer_m879AE005065AFF4C0C9B4B69962F6B2B0F118962,
LoadBalancingClient_ConnectToNameServer_m2DFF6510956EA30345D6A055272C86D7390BC9FC,
LoadBalancingClient_ConnectToRegionMaster_m10E860D595ED32FBAF8F7809C20CEA18C477DD76,
LoadBalancingClient_CheckConnectSetupWebGl_m6FEF688E16EE639BBCC4E399B2E0C873D8A8AA8C,
LoadBalancingClient_CheckConnectSetupXboxOne_m2FD4C61BEE5B0257328922C2877223D68B55BD1E,
LoadBalancingClient_Connect_m50D3F6D481ADD385DEF6BF0ED539EF5BFB710221,
LoadBalancingClient_ReconnectToMaster_m4761338630C7B0FF8917913FC1FDB6AA6E78FCC1,
LoadBalancingClient_ReconnectAndRejoin_m033BA70D4D0605C4CC679DCFEC7CDDDFA18AA563,
LoadBalancingClient_Disconnect_mE1BB26362BDB2731ACFFDB0082C8BFFAF39A34B4,
LoadBalancingClient_DisconnectToReconnect_mD4506B2DB0BAC6E370909D28CA8C5B4630D631FE,
LoadBalancingClient_SimulateConnectionLoss_m4C381965C26752DD6E9D6EACDBCEFB25D72CD6A1,
LoadBalancingClient_CallAuthenticate_mCA1632629441AA360D28CAF559445F4DC3D0C9E3,
LoadBalancingClient_Service_m443AD58B507AD1E7601CB7785BD4804ACFD1868A,
LoadBalancingClient_OpGetRegions_m46A3AFA0AD29E32E2424BC20F78D438333D421FE,
LoadBalancingClient_OpFindFriends_m7ECF4CAB63B89AA5D1AC0D6A2E6222BD16AB9985,
LoadBalancingClient_OpJoinLobby_m6FEB6C0808D3963ADC90E55D9ED9B7357AD61DB7,
LoadBalancingClient_OpLeaveLobby_m079C4D33791C5B254E2EC06A95D29CC6D618F9EA,
LoadBalancingClient_OpJoinRandomRoom_m538FE487F277FF1F054E8A0309F751DA76704376,
LoadBalancingClient_OpJoinRandomOrCreateRoom_m0594DC879B570D9C75EBA2B87181D50D804D2057,
LoadBalancingClient_OpCreateRoom_m5B1E30682BEFB186628ABACBBDA004259AA37CD8,
LoadBalancingClient_OpJoinOrCreateRoom_m7619F10D86CF4AC1F62C2B23CD5CFF56876753B6,
LoadBalancingClient_OpJoinRoom_m3BD6B9BB0D6A67A9A0FA7D3F0B56D9A2580B26A8,
LoadBalancingClient_OpRejoinRoom_m918AFF2E3CEDDFFBC6DE787F799C7A88D797CBC8,
LoadBalancingClient_OpLeaveRoom_m210103CE0E2DA347DF6C962173DE4D59FE2C9C8B,
LoadBalancingClient_OpGetGameList_mB230101A905B4322C01D32D1B148787EF6A6F48A,
LoadBalancingClient_OpSetCustomPropertiesOfActor_m7C266D112E4C1C3B88B33082D67BC3802F8E8161,
LoadBalancingClient_OpSetPropertiesOfActor_mBD4BF4811B631552F5CC24790D5DFD4B5DC9076E,
LoadBalancingClient_OpSetCustomPropertiesOfRoom_m2846C19E9B01FCEDE7DD623453152EF9D10D384D,
LoadBalancingClient_OpSetPropertyOfRoom_mCB8F1CBD88BB217EB1C85388CA3532FE79B0A337,
LoadBalancingClient_OpSetPropertiesOfRoom_mA3338828F2797365FB5451923B8484E191BA8452,
LoadBalancingClient_OpRaiseEvent_mE57B99D4F2C2F2E3FAD2E389126044F89A466790,
LoadBalancingClient_OpChangeGroups_mBC257BAFF6ADFA776D8B357477332E22AD0D65CB,
LoadBalancingClient_ReadoutProperties_mDE7C1DC185112B08C186DA6104C2DCB6140BCC7C,
LoadBalancingClient_ReadoutPropertiesForActorNr_mF03F6A56B22E5F39FCAD90B77C6DF46C2F1076D2,
LoadBalancingClient_ChangeLocalID_mAC51D66CAD91AD689FC634E450ED0CE8E3429C41,
LoadBalancingClient_GameEnteredOnGameServer_mB862886F5A7C4407A86E49A547695CE3E2508525,
LoadBalancingClient_UpdatedActorList_mA355582E01CBAE38175910FC738C4B9EA5C80D5D,
LoadBalancingClient_CreatePlayer_mFBC5E3E1BA806B5052293CECA22A18B8108CFBE6,
LoadBalancingClient_CreateRoom_m2A44592E172B369A6540C607BE5594E042366393,
LoadBalancingClient_CheckIfOpAllowedOnServer_mD2284A0C2FFEA7824E4E08FE62A3C33A1620DBC2,
LoadBalancingClient_CheckIfOpCanBeSent_m1E0ACAE5106D3E8D10B03F96E857E3E98244D64D,
LoadBalancingClient_CheckIfClientIsReadyToCallOperation_m618BC7E29479E88C6ED9F6809D770E4A941D7099,
LoadBalancingClient_DebugReturn_m43559B8136B783BDDACC300D008B50FDC34D6411,
LoadBalancingClient_CallbackRoomEnterFailed_m6630DC15FEF2C4D7314FE7FDF87FB8A8D9D56693,
LoadBalancingClient_OnOperationResponse_m3AD6008AF2B047C0704E62C0FC33ACFDE8F79CCF,
LoadBalancingClient_OnStatusChanged_mDBCB55CE9FE6620B26A10B23B6662A427A1EBB62,
LoadBalancingClient_OnEvent_m508337C5FF635F156751A24A5640E99D9F19EF49,
LoadBalancingClient_OnMessage_m6D60BAA1FE0540E3BF0D7D0C73790B8637AF89B1,
LoadBalancingClient_OnRegionPingCompleted_m9392917806ED5E96E6FD6B90A83F52B599C0694E,
LoadBalancingClient_SetupEncryption_m9BBD4278BAC5CC5FEC3679A49439405600DE3E76,
LoadBalancingClient_OpWebRpc_m767BB659C353F0C1FC540301D1F3EBB300236542,
LoadBalancingClient_AddCallbackTarget_m17553A4C53D4BC96DF74BD3DFE8D8487E3B52565,
LoadBalancingClient_RemoveCallbackTarget_mA166E163D02518ED621B80E8F07B31FFE79507A0,
LoadBalancingClient_UpdateCallbackTargets_m4F0C56B00E0DC74B26294FA61A83186A710DBFFA,
NULL,
LoadBalancingClient__cctor_m852A3AC2587002191CFA49935C4C2769DCEC7DCD,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
ConnectionCallbacksContainer__ctor_m86519082BDB51074C0A08444C9D058F9DFECC174,
ConnectionCallbacksContainer_OnConnected_m86DCC1AFF556E53DAC6104AAF966FD2283AF8B54,
ConnectionCallbacksContainer_OnConnectedToMaster_mCA9F1A159894B869AD631CE53B2EFB2F1082C513,
ConnectionCallbacksContainer_OnRegionListReceived_mA1598011E293574C634F3DD5B8F6D9E9036E8FC9,
ConnectionCallbacksContainer_OnDisconnected_m4A6BE9270567815E0A07624DD92D8C56C3AF74CC,
ConnectionCallbacksContainer_OnCustomAuthenticationResponse_mFB070A71F70D10E9F785B97C1109517499342FEA,
ConnectionCallbacksContainer_OnCustomAuthenticationFailed_m6F71D63E9DF50E376B12BE5DDE4856BB80D27028,
MatchMakingCallbacksContainer__ctor_m2DC6BFC48067B04691D90703F1B598AAB1C39D0D,
MatchMakingCallbacksContainer_OnCreatedRoom_mBFE7022F4C9E6E03FD47DA8272D33A819CC8F6D5,
MatchMakingCallbacksContainer_OnJoinedRoom_m5779B6F7EBBF9C65B8E59BC8C1799B30EAF9D348,
MatchMakingCallbacksContainer_OnCreateRoomFailed_mA64F4F5D2E1EE8AF1C2AE80ED1D81121CBF8092C,
MatchMakingCallbacksContainer_OnJoinRandomFailed_m1D7DC1D9BDE49CDB34B20CEDFF105A932030C87A,
MatchMakingCallbacksContainer_OnJoinRoomFailed_mEAC9F4C37B2F04F228DC585FE90DF4C44464A9CD,
MatchMakingCallbacksContainer_OnLeftRoom_m463DC02884ABEA72E6329D0FCF8F9F29DF8138C2,
MatchMakingCallbacksContainer_OnFriendListUpdate_m0B78E17F0EB2E1038F8C6351D6D895DF510E413F,
InRoomCallbacksContainer__ctor_mAB5D415C40517C66AFA4EE51FDE27BABB34CB1BC,
InRoomCallbacksContainer_OnPlayerEnteredRoom_m390990124F7343BFEE2082780A788AD7F2F6FA3C,
InRoomCallbacksContainer_OnPlayerLeftRoom_m118CCAC5C3B5BB1271F2ACAFBC61461F49772123,
InRoomCallbacksContainer_OnRoomPropertiesUpdate_mE132931D9505B8FFE5BE7A47AB03F04A01E3ED21,
InRoomCallbacksContainer_OnPlayerPropertiesUpdate_m37A89ACF122F14D7BCEF0C4FEAF664A1340FF1EB,
InRoomCallbacksContainer_OnMasterClientSwitched_mDE73A982F91D03B67103CD7083734A37ED3CB07D,
LobbyCallbacksContainer__ctor_m5EA40FFCF7EE793CD70AFCDF27EC96F8B3A546E3,
LobbyCallbacksContainer_OnJoinedLobby_mE527C59A2BD5CBD6761A07F1B70BECC1EEA7EBF3,
LobbyCallbacksContainer_OnLeftLobby_m89700E7E4FE1528CCA913969F5D122EB1481DD6B,
LobbyCallbacksContainer_OnRoomListUpdate_m4CB513C7248881B9FC9A7D020608B2FE1B9736F3,
LobbyCallbacksContainer_OnLobbyStatisticsUpdate_m3DB8D26C9441DBD8D9DA605F568E6821D0B3A053,
WebRpcCallbacksContainer__ctor_mC0E65E12EA20C9F14D401D8F08FDB85E806176AF,
WebRpcCallbacksContainer_OnWebRpcResponse_m2B741909EF7BFFCE4E5A84A69741D3A628469B93,
ErrorInfoCallbacksContainer__ctor_m7F1BCF8EF5155CDF6ACF44C44FC637C3F52B1377,
ErrorInfoCallbacksContainer_OnErrorInfo_mA0C8F01C3BBC0361B3E7AD2F6467811289E2EE90,
ErrorInfo__ctor_mDD9400B253313630ABD6317C1F72658920FBA522,
ErrorInfo_ToString_mA55EBE37103C2C63D138E5E207E2F6152D160F51,
LoadBalancingPeer_get_PingImplementation_mEB22DB3683DF202468666A32F746B446C8AA6327,
LoadBalancingPeer_set_PingImplementation_m41371ACC1AE8F2888EF7E0187BF5CF51DF903A3E,
LoadBalancingPeer__ctor_m3F0B99A73CA72CF3C176D60F6BA86696271F496B,
LoadBalancingPeer__ctor_mBABBE81238A948B1911528A638A6B3B5AAE78E36,
LoadBalancingPeer_ConfigUnitySockets_m408D89E41EE7698B701CB80AB3FB5CA9CEC8BDD2,
LoadBalancingPeer_OpGetRegions_m9F4665F4D56ED67248CBA86B21DE935C9B389CAD,
LoadBalancingPeer_OpJoinLobby_m7793464CC70817DCF1C649D900206941E23EA1D6,
LoadBalancingPeer_OpLeaveLobby_mA6F5BC8D94B95A77E9C4FE307C6A8A995D59CCA3,
LoadBalancingPeer_RoomOptionsToOpParameters_m493A0A04572A343401C95AFDB825979A1E493022,
LoadBalancingPeer_OpCreateRoom_m2F616AFF2B1236D7CE8D50692972483DD39533D6,
LoadBalancingPeer_OpJoinRoom_m824B43FB7C5B63B573C4FD19731373D240A20A2D,
LoadBalancingPeer_OpJoinRandomRoom_mA20F3B8E4FD9AC8336B87DFC59CC4D1444C426E0,
LoadBalancingPeer_OpJoinRandomOrCreateRoom_m8BA07BB581495C5D23E021A7C41559018E6EFD83,
LoadBalancingPeer_OpLeaveRoom_m75F3F8B5E8DF51903186AAE2CD98558E10512D90,
LoadBalancingPeer_OpGetGameList_m3F3C7405CA812472E08707F930958C66F2440E3F,
LoadBalancingPeer_OpFindFriends_m27C2BBE02BFDEA67B761195F3739EEAE29252B21,
LoadBalancingPeer_OpSetCustomPropertiesOfActor_mED663ECE99163F3B5792EE2D52005D8CEF8D24F4,
LoadBalancingPeer_OpSetPropertiesOfActor_mF0B8876B60F1E6939F71A2BB0E9D905EDB6F7FAA,
LoadBalancingPeer_OpSetPropertyOfRoom_m78766E6FDE0DC4C8E98232C40E30C6C35E6DF20D,
LoadBalancingPeer_OpSetCustomPropertiesOfRoom_m1030D2A255E55A01B0CCE8261E5EBD607BD85C51,
LoadBalancingPeer_OpSetPropertiesOfRoom_m93591CD3281618DF19B566E5B10CDFCDF11BD1A8,
LoadBalancingPeer_OpAuthenticate_mCD39661E2951112370B6A517FED9309059E1FD68,
LoadBalancingPeer_OpAuthenticateOnce_m4787BE5D2DD6CDA361558AC5AAEF1E899319C4DF,
LoadBalancingPeer_OpChangeGroups_mA6BC6B7D1F66608D35A38228525EBEEF767F4C95,
LoadBalancingPeer_OpRaiseEvent_m4A3E5492AF65ADC64DF3547026B1EB4E62BE3ABA,
LoadBalancingPeer_OpSettings_m696CF4ADA61882FB43470A158410CADD7E45DA57,
FindFriendsOptions_ToIntFlags_m2F26BC5B39283350C3A2E7489F71E40BF8E7AEBE,
FindFriendsOptions__ctor_mEDA35D63C83F547827AC02637FCFCBF0D1E543F1,
OpJoinRandomRoomParams__ctor_m7EAF5F874DE8AFABDFF8DD4BF96CEBD695E26880,
EnterRoomParams__ctor_mD79E1A3DA37FE25323DC2721FB0DFDC00D7F3EDE,
ErrorCode__ctor_m76E0631999B20B536126A83C8F75EBF7BF5C219E,
ActorProperties__ctor_mA0104A194D96AA6BC466E2CD41370572AF43DDF1,
GamePropertyKey__ctor_m0DAB913601AD9E333243D10E454397BB55187EA2,
EventCode__ctor_m6A1C78CC6506BA88D96DC46861DC0B3C74FCDB1E,
ParameterCode__ctor_m7EDF2626AA921ACA7EE1B03D813F8219E15CB0BA,
OperationCode__ctor_mDE1A1F05CBB3D4DE66EE837F430112E3849A4F26,
RoomOptions_get_IsVisible_mEBC48A6E7D7A0422A0CEA3A4AD339EA8B7061976,
RoomOptions_set_IsVisible_mC18F0091F40004E92A6B0D65DADE6B8ACE4FC4AC,
RoomOptions_get_IsOpen_m63600C2FCC2227779869060317764624F9536147,
RoomOptions_set_IsOpen_mB8FC22B596C9CD2534DB1F5911B352D9FC73F031,
RoomOptions_get_CleanupCacheOnLeave_m5BC86AE25FB6DCE474527C5FDB7363F1212C120B,
RoomOptions_set_CleanupCacheOnLeave_mC9C34F080C4EDFD2FF80D959CAEC057DC619D48B,
RoomOptions_get_SuppressRoomEvents_mD4FCCD8AFF0DD842C04BA3D385FF0F9A128D1F50,
RoomOptions_set_SuppressRoomEvents_mDE84DE82AACEB351CC93E17B781149D52E97DB1E,
RoomOptions_get_PublishUserId_mEFF1EA9F5F3310DCED3A7BF9DE99174274DC5766,
RoomOptions_set_PublishUserId_m2D2C26B98C031D132D3A7D450299BE55EBE2DE12,
RoomOptions_get_DeleteNullProperties_m63EDCA05FFC2792D99F87A8BCB52F8D535236277,
RoomOptions_set_DeleteNullProperties_mD834C5A7E29312EAEBDE491AD005FCD7C4983AF2,
RoomOptions_get_BroadcastPropsChangeToAll_m148AB75D5E3A17B735D739B8C2217DA72774BE99,
RoomOptions_set_BroadcastPropsChangeToAll_m79EAEFCFEB7472FDD91FD10152BB60F6A1F0C9E7,
RoomOptions__ctor_m254044C6ACFBFED793E00A41DF8E76F953EE16CF,
RaiseEventOptions__ctor_m566DA262F193D98A75A09C2A00007CD8472A4329,
RaiseEventOptions__cctor_m0C865100F0214AB2184220C5B586BC98C80A92EB,
TypedLobby_get_IsDefault_m9EABBD862010C30DC98DCFAC650D5DE378BDE77C,
TypedLobby__ctor_m00923523872B0E50E15357CBBED9A08D5F944586,
TypedLobby__ctor_mE5A5B745646CA0B8228EE2B6451B06BBE02D561D,
TypedLobby_ToString_mA56D3E449966F9879512DB3400679974B80DB5AA,
TypedLobby__cctor_m9A3C3621A62B5E941CBC71894D7318FA30EE84B7,
TypedLobbyInfo_ToString_m5C7AB7E7308A8603657D1621D9AA98C027BD467C,
TypedLobbyInfo__ctor_m608A819C4E7B3D755880CBBE88AD68B11447F76B,
AuthenticationValues_get_AuthType_m7644167D1D9D4B1EB47E98BF5FDA05D1B3F1770A,
AuthenticationValues_set_AuthType_mE9BBAB1E6FEFE22AE6318280C01AF83D0C96FDBB,
AuthenticationValues_get_AuthGetParameters_m0D2F684B97C2814BFD84060C6A0CE55D49ACEB99,
AuthenticationValues_set_AuthGetParameters_m62F77A15600CFD28F020C41EA6F853BC157BF6FE,
AuthenticationValues_get_AuthPostData_mF020D81C8FB8E5DAC6D3593EDD6590F0F50B2588,
AuthenticationValues_set_AuthPostData_m3AC15E1E1E29C1AE359C46DE691142CDF47820E5,
AuthenticationValues_get_Token_mA7C6F8A1DC5CE286C5E3BF198A08A82D573285DF,
AuthenticationValues_set_Token_m58AECA36241053F97241E0B3886BA8421ECA204C,
AuthenticationValues_get_UserId_m04BBEC6A7AEFD6975DB9F49E659A7963F8D840DC,
AuthenticationValues_set_UserId_mC1264E09EC8EE5FE8717275120E4104643969E5D,
AuthenticationValues__ctor_mF5DC44DD388FE8648E072B765D5502C27D70FB8D,
AuthenticationValues__ctor_m5887BFFDEFDF7055AD84B5F94F0BF5E09F6D8190,
AuthenticationValues_SetAuthPostData_m8CD17481FF2EE2FC2A880926D5314DC498498F41,
AuthenticationValues_SetAuthPostData_m92995794722C380DF97690DFEC803C871662B93F,
AuthenticationValues_SetAuthPostData_mF7283839644EAECF797CF6D9054A431F03E7C8E1,
AuthenticationValues_AddAuthParameter_m2A7C499EA88A7CA15235304CA2FF080F4E13609E,
AuthenticationValues_ToString_m3D48D62AA7D57B8CF36E53C0E9A1AA8FABE9B858,
PhotonPing_StartPing_m788B4EE59589E0D94D3AD208796B528AE4990411,
PhotonPing_Done_m254644D4502B85A8A07E44BAA1E0F1B2C49FBFEB,
PhotonPing_Dispose_m0156F3A8D813288DDF437B61584F1EE133A9EF10,
PhotonPing_Init_m54A5083386B01DF1DC852147913AC351863A4382,
PhotonPing__ctor_mECF370ED85CFB0BD665631E8703A986485C17E5E,
PhotonPing__cctor_m56D1897D0278FABF7BCF7D5BA6A1B35629E237F7,
PingMono_StartPing_m496A6971FE2DFBB3E2DE3B39EB0F32B12876BF20,
PingMono_Done_mDE321FDDDA836C83A48624812C3E2EB267B6A4BC,
PingMono_Dispose_m3B12B9C9C32DF1B54EEFE1C1F25763146F2DE756,
PingMono__ctor_mD2498F5A127182A684E088A9C4CE268B878CF101,
PingHttp_StartPing_m0FB98F00AB0009E3093AD733CB9DFD683B075659,
PingHttp_Done_m3ABE81A4C34DCC99A35BF62FE8A4C9D168101936,
PingHttp_Dispose_m0A52372EB52302F59BE6554D0F4B4D84EC8C3DAC,
PingHttp__ctor_m62558C59D4D2547C2812187FCE31BFFDA3A0FC51,
Player_get_RoomReference_m930E8CD16F6BABE612F24D6C66D20749F7E34184,
Player_set_RoomReference_m94972048535DB91480569BC5E3B463A89CB12A91,
Player_get_ActorNumber_m02157560C558C6007C8146F1FCDA7E759AD0CF1D,
Player_get_HasRejoined_m523D4554740BD0485F1B904849CB3CC2A770DB4F,
Player_set_HasRejoined_m87608E365AB31EC8860A221D9CA29676AC8308C7,
Player_get_NickName_mB7D3A3FD8493B2FFF9B0537194CE9C697473C2EE,
Player_set_NickName_m3AEC143158F0AC02C3139CC0501F90CF8062A32F,
Player_get_UserId_m1913731AD3876AA194CB56074FEBA28C6CB612E3,
Player_set_UserId_m84AA51D6267A1CD7E621206B543AB25ECAC80657,
Player_get_IsMasterClient_m54EECECB76D6BB178E5D7A75D32DEF78C3422695,
Player_get_IsInactive_m565C1FB590912C70E7720C6E1EFFFD5EE755C403,
Player_set_IsInactive_mE662074B1394644E061C34E341119FF9F6C53245,
Player_get_CustomProperties_m908764641F7C2D7EB7101F3C60A6C91EA67055C8,
Player_set_CustomProperties_m4F9AB6E579E8C8C73CC99516B518EBDF7BE9DB99,
Player__ctor_m9BE0732C50CAC2F96D3ECDC5CB14BCD292E955CF,
Player__ctor_m6EF8CDD04526FDDD85233F0DD2226B9113BDABE8,
Player_Get_m4451719287EC83169424B9E50B85AAF385D9789D,
Player_GetNext_m138BBE906F321BCEAA9C8E2B958C51E27343FE5E,
Player_GetNextFor_mBB761E337EE5FB5FDCCB68CE7ABE00613C219007,
Player_GetNextFor_m6FC25EC7D3F354FB4525BE0236B579D4B3A05821,
Player_InternalCacheProperties_m57185BF0802E92054EB8A3BFC77A388FC788EC36,
Player_ToString_m12CA93AF311B38987A36D29A13B6E5ECF165D9A0,
Player_ToStringFull_m3D8C720DEABC8F8104DC7C7B64831F80F740A926,
Player_Equals_m20F6705EDCF31CA05EEE84209396E709019AC3DB,
Player_GetHashCode_m0B65F82910CDF0C5C0BFAA356172255EC6F55EC1,
Player_ChangeLocalID_m70BF740B95E44DBC724FE10C66335DCFE9FFE9B8,
Player_SetCustomProperties_m109095CC7D9E36015647460273C61F3F42B7F671,
Player_SetPlayerNameProperty_mBE534BF104B381056EA26C917041A304FFBA6138,
Region_get_Code_m8669BE5070358182B467A85EFB042D25D5CDA3BC,
Region_set_Code_mDE9D1C927F6333EC50C6BA5E32DF4F0E07D6ECE6,
Region_get_Cluster_m850B9B953F6C87D089A2208F217662F8E3C90917,
Region_set_Cluster_m989B1AE668634B2F4B1D2B065159CBA2FF026CA4,
Region_get_HostAndPort_m087CC4E1545F622AF35114318203F5BA85F287AC,
Region_set_HostAndPort_mA46DD23667655C529FE8F6D5F9AA469FA7268F30,
Region_get_Ping_mC348787B425CB426446A25A8CFC45030AB71C94E,
Region_set_Ping_m6D98DD720653EEBC8C0A1D8B4E79CF80669ABA5D,
Region_get_WasPinged_mD0FFE35A28AD219017CD894E52B9F113BCF88A82,
Region__ctor_m4A0A97C2052C8BD4259777A271C4F3DA5EA420E0,
Region__ctor_mB1E557941DB9463D60C45866B68870FEE7CE12D0,
Region_SetCodeAndCluster_mB935EFD0D57480D78B21E1539E82DED3C243AD36,
Region_ToString_m662501AB15980CD061ACEF5508E37628BDD28F00,
Region_ToString_m23EC241BD327ED9226F6E45B74FC433A4945F7E1,
RegionHandler_get_EnabledRegions_m9293FC4BE35917E9BC9F9689E5CA9C27DA639701,
RegionHandler_set_EnabledRegions_m2BBACC92EA8CE600EFDB5D847992D9E22FDBF8B3,
RegionHandler_get_BestRegion_m6C04157AB2A06C9FD8253DB875326225D9F2A9C2,
RegionHandler_get_SummaryToCache_mE53B11556105433EBE7C76137D7FAAE4B5C57415,
RegionHandler_GetResults_mA141C10F13D5074C2FE740B8763C6C24832F1601,
RegionHandler_SetRegions_m0487B794D0D4DC0EAF224A17C6A18C23139E03DD,
RegionHandler_get_IsPinging_m90810A16C9825D7B6EA68B026F700FCB65C095D8,
RegionHandler_set_IsPinging_mB9A230BD4F3B2B2564252341BD931F47968FB1A1,
RegionHandler_PingMinimumOfRegions_m5C8AE60A1AF4A9E06E3EA17A0B07C681FE455B17,
RegionHandler_OnPreferredRegionPinged_m08CFBD385294B89DC35037B9EC36FB0309B6DA53,
RegionHandler_PingEnabledRegions_m58091984F466221DA5073C828543FECC667DACF4,
RegionHandler_OnRegionDone_m5416802428349BB3F28E925532C412A50DC3A172,
RegionHandler__ctor_m97108E371414B468F72FAC6180DD4EC17E477D49,
RegionPinger_get_Done_m2AA784BEAD23896BDC2D714D3C84CD1994469B0A,
RegionPinger_set_Done_m3EFDA967730B0EEBC55AF5FE2C1F14D536D88AC2,
RegionPinger__ctor_m2F25C93D7E6519E079AF5E3272004AF106E602E7,
RegionPinger_GetPingImplementation_m063FEEB76623D94A4B074E0257DDC90C92AC800A,
RegionPinger_Start_m7F7D855E24C252AB1BD68D035FBDFDF7989673A5,
RegionPinger_RegionPingPooled_mF99DDD61898D332E903F1E0A713F05DEEBA0E914,
RegionPinger_RegionPingThreaded_m483F046E255AACD42F9AC1758F9CEEAEE1E2629B,
RegionPinger_RegionPingCoroutine_mAA6EE986AB89E9B169021BD8698BDA9657AA5123,
RegionPinger_GetResults_mE78DBC4D3180AE742CDB2B077E1E01E647BBDC07,
RegionPinger_ResolveHost_m40FF2580A77B893BD7EF2A7B6A1C7B5713CB0CB0,
RegionPinger__cctor_mB7CC8C974A4E6616D9682EB35BD32CBE3385E664,
MonoBehaviourEmpty_get_Instance_m8283366832463FB351A7D0F366151266A20C1793,
MonoBehaviourEmpty_SelfDestroy_mB7846F99BFD18675271E769CBA03FD832E1FDCF2,
MonoBehaviourEmpty__ctor_m232F46E6ADE167B42B0FD4EC9DED6BB16D5CDF6B,
Room_get_LoadBalancingClient_m352E09ADBA5592B3FC0F1432CE9F5D7D0FACC52B,
Room_set_LoadBalancingClient_mFA6EE0C996848CD1979DC014BDB9AAEF09B5728F,
Room_get_Name_mCDF41719862596519BBE7091948656DF28B30607,
Room_set_Name_mC4C4FFFFA614A20BFD543979EB818B9F332D77F9,
Room_get_IsOffline_mED7792F1D0C59ED40BE6B0F30D133D5B718DE73A,
Room_set_IsOffline_mB8087AC7DE2C5F438DE0EA52623EBEA97D6D9A01,
Room_get_IsOpen_m36A93CB7C99FF6ABB9F77C8E9DCE793362DC0436,
Room_set_IsOpen_m9BF3D27C133879A9EF88E4EEB553878DC88AB4A2,
Room_get_IsVisible_m3C0E0466B3DFF449182378D88FA1D61251594838,
Room_set_IsVisible_m5506840C476AFB8F2FF510C8A3320EC19042C010,
Room_get_MaxPlayers_mD4BF3E0BF13AE675F4831A129E91D8F06D3EB124,
Room_set_MaxPlayers_mA500CB2E9F2F4A3E498FA8707B1409247BE790EA,
Room_get_PlayerCount_mCBF32BA967FF797861D5E9C2B26C3A6BDACA2E99,
Room_get_Players_m8F39EA784277611D7051C8A37EE813FFF4BCDDD7,
Room_set_Players_m0D5CFB1E82363D1AB270484990EE5D79D9811FB8,
Room_get_ExpectedUsers_mF6928B3A5B8CD93A75882BDDB08A2E759D4C565F,
Room_get_PlayerTtl_m9947D50F953F4C37988D5496A3E03336F27CE370,
Room_set_PlayerTtl_mDC5CA1C7F2790DD26EDB6D8FD7FCFE723E60C55E,
Room_get_EmptyRoomTtl_mB2AB26E021613CAE926EED6C14FE2CB92100CBF9,
Room_set_EmptyRoomTtl_mA79AEB412F560A793F95EF26DDDFF53367D5E8FD,
Room_get_MasterClientId_m1F799A66FDFD9D1BCB2F32B0F2327BF8CDF5075E,
Room_get_PropertiesListedInLobby_mBCB796C319E1DEF67E4F914072668F4844FB053D,
Room_set_PropertiesListedInLobby_m804175FB0D480F47629CA96F82DE6401DDF3F06F,
Room_get_AutoCleanUp_m2BA5EC0F7D2A7ADAB38AB0FEB5B0A130A252B48F,
Room_get_BroadcastPropertiesChangeToAll_m41F0ED85671F3EB13B39709EAFEFFA53316B321F,
Room_set_BroadcastPropertiesChangeToAll_m79D02C344D870A92D087EB3233E577563360E021,
Room__ctor_mD644FF2C795EC5BBD50438BAB949C2414A873CB6,
Room_SetRoomFlags_mB6ADE5E1D80F699EDC0A5D2B9C1B19018F3B39E4,
Room_InternalCacheProperties_mBE0740DD3127B36F1DFDC6B3363A096579189AEF,
Room_SetCustomProperties_m546BBBAB6A48FDEFC73845C195A50C0F3290F3B0,
Room_SetPropertiesListedInLobby_mECC17F1937DC2405E339FB401C653AEE0A1C1367,
Room_RemovePlayer_m238395556BB7C376C19ADE84074EA4D3C043B215,
Room_RemovePlayer_mA6BA0D249B52408DE1C1C4B5E870CB2A27BF3BF5,
Room_SetMasterClient_m332177B7EA4EBF00CABB88FA984B651954CFA21C,
Room_AddPlayer_m563868E24D9EF0C9DAE29389430F2F07F3FFB147,
Room_StorePlayer_m12DAA94744AE461D74B16FDB01A71F6FEE3325CE,
Room_GetPlayer_mFC75FEBE25AE023F5D8C4441EB6D168BF052BBD9,
Room_ClearExpectedUsers_mE4627419E610BE7C3CF9D8AA81E24F88F6042D47,
Room_ToString_mEFDF611A6369048A0F0471689A43585AD19D76BB,
Room_ToStringFull_m94133A3D76BCF79806886BBFCBEA1B6699BF0579,
RoomInfo_get_CustomProperties_m3674186FCBD88FD364CC1373A735EC8FFF9DB17C,
RoomInfo_get_Name_m24C3CFCDD6E862D5E0EA27A0B2736E09D72843DA,
RoomInfo_get_PlayerCount_m6E97FB80FDADD5A3B15ED2D51F071B3F343C1CC1,
RoomInfo_set_PlayerCount_m406E55A69DFEB12E15AEB7B8DDF0B0C8F704911F,
RoomInfo_get_MaxPlayers_mB393159F17C716B593EC71158399F415ED15CA51,
RoomInfo_get_IsOpen_mB6999468BA5346E8D7C421DB3CDBA882C1288856,
RoomInfo_get_IsVisible_mB12677A2EC41DE627005F79B86C3CEB9A0532491,
RoomInfo__ctor_m08E92F3A21843E5B564329A473C33BEAE7EBDD8B,
RoomInfo_Equals_mA1F83E98B362D4DAF441D42C360164E18057BECC,
RoomInfo_GetHashCode_m86A2462634914114B25337548809456667A6240B,
RoomInfo_ToString_m47D9484C51886F87648BA365109134FB53CD933A,
RoomInfo_ToStringFull_mE676F4200194103F85618888DE0790156EF89768,
RoomInfo_InternalCacheProperties_m3F403CC517046994543F8D2349ABCE5537B8BE26,
SupportLogger_get_Client_mB26343CDA21A09F3EA30AD740275EAFC083D52B7,
SupportLogger_set_Client_m166B9D97ABDFAA4A8E7792F8C8861BE4C7193976,
SupportLogger_Start_m1198B8A81F90188616E5942DCA38D0D79A8C7479,
SupportLogger_OnApplicationPause_m394AE8B8288BFCE03DD16287100911E4D922E01B,
SupportLogger_OnApplicationQuit_mF14FE14659F54814A80D0DDCA9A8FFEC532CEC81,
SupportLogger_StartLogStats_m973A1BFAAB04C8F0F9568E1A281C6EE553384610,
SupportLogger_StopLogStats_m5EA95B7B9DD9BEB62FCB674FBDED85DB910C3B06,
SupportLogger_StartTrackValues_mCCA9284BFA342F2822E786C069773B61ED626F55,
SupportLogger_StopTrackValues_m0806BA608466711C295BC23883AFAF6AEE153CB4,
SupportLogger_GetFormattedTimestamp_m32FC37B0F0AE804113DD4C24DB3BE4AE6193D821,
SupportLogger_TrackValues_m66D40C21DDFC4AA2988C44ACAF53AE3FE76FC39C,
SupportLogger_LogStats_m420DC4631D59DCE0F7D33C3146C8688D08C54F94,
SupportLogger_LogBasics_m1DD18EAF9701CABB4D230E939DC67A471B2C4B13,
SupportLogger_OnConnected_mA89BCA9B3319032CF17DEB3BE76B87AA54C06C76,
SupportLogger_OnConnectedToMaster_mF52A4381DCC7C6CE19F3451D539020E39B2A11C4,
SupportLogger_OnFriendListUpdate_mB422AD317F908DDCA99272016652A88A22FBAF47,
SupportLogger_OnJoinedLobby_m3F1EFC503B05CA5A2410C4B5FF08405E6A4ECB2C,
SupportLogger_OnLeftLobby_m33D2D8A6305BA65C80658D8B0AC3DADB7FAEC419,
SupportLogger_OnCreateRoomFailed_mE38FC7667E7002A91626809317BECD47D71FDCCF,
SupportLogger_OnJoinedRoom_mB37EE4EAB942E5A6A8890C6FA4E1EB6740E16B82,
SupportLogger_OnJoinRoomFailed_m3488EE58BF74437B2142A96EBF18DCB6B4B2C48C,
SupportLogger_OnJoinRandomFailed_mAE5ECBF451C6E4FDFE2F85E0DC30F525319D12F0,
SupportLogger_OnCreatedRoom_mF35AB68837976AC88555409F51F24C21C4A8C2F2,
SupportLogger_OnLeftRoom_m05D5834FFADC1CCD590D7606819AA48399A3C76F,
SupportLogger_OnDisconnected_mDE77493509B7A736D17258EABD0BD827843C9950,
SupportLogger_OnRegionListReceived_mC0CEDEA1F7A9B6376FAF45AFEB99FE7F0B36A720,
SupportLogger_OnRoomListUpdate_m8268A931B26BA87B2F0B52F6F21A02B76CF7E2F5,
SupportLogger_OnPlayerEnteredRoom_m154F337E9EB056F73C076F87B3D79F7C60203933,
SupportLogger_OnPlayerLeftRoom_m341B83040EF40500E395885DEE61E6EF45B7FD31,
SupportLogger_OnRoomPropertiesUpdate_m31BE5B8A2D88B9907CE8A75D53A1026247BF83D8,
SupportLogger_OnPlayerPropertiesUpdate_mE2DF15B31EF1ED642BFE5AFA3029E8F7CF85C5FE,
SupportLogger_OnMasterClientSwitched_m3658AC3899549A5D3788B25BD338CDDA9C842F8D,
SupportLogger_OnCustomAuthenticationResponse_mF5F844DB7163FEE64FB92021F75C644C44D2CF35,
SupportLogger_OnCustomAuthenticationFailed_m63D26B6876F0FD3409FD609D7354B59DCA6B6648,
SupportLogger_OnLobbyStatisticsUpdate_m9224062BC0172E2FE07283717A658EF01153EB68,
SupportLogger_OnErrorInfo_m20D7E6C6F87BF2BA88711037EEC5F34871B55C8D,
SupportLogger__ctor_m17A4C242A97DE0BC726D88511103F1AB72B49653,
WebRpcResponse_get_Name_m0B6E38116B73FE932B4809D1510013A2D0E75FEB,
WebRpcResponse_set_Name_mEADC4EB6ED220410F817BB3A5864230A0215CA01,
WebRpcResponse_get_ResultCode_mFC73DF1E0EF9021C8C3E53EC0EF548915B566886,
WebRpcResponse_set_ResultCode_m8E4EE89F34D749CCFEA3B1D2D777A5A8D3FA33AA,
WebRpcResponse_get_ReturnCode_mC2DB2985F6E1F2AB60A26975A4D7DC88C5D7562A,
WebRpcResponse_get_Message_m9F817E8E921967871322B123F6C1BEF6F8BF5138,
WebRpcResponse_set_Message_m0A4DB2E9F565AD93775CAE27C140A9DB4E411B78,
WebRpcResponse_get_DebugMessage_mD4740D583D4CF227657519753D2145759B371714,
WebRpcResponse_get_Parameters_m73734E2B75DC69FF24E5EBFE1C58383DB7F01969,
WebRpcResponse_set_Parameters_mC93C08CE135944569FF91BC362C850E628E0563A,
WebRpcResponse__ctor_m3F9AE28F4DDDAE01D8846E6A2206ED8C1D097B1E,
WebRpcResponse_ToStringFull_mD16B7B3F985553A86DC907BC3836B249EC84F203,
WebFlags_get_HttpForward_m06B3FF0980DD3F3AC493ECF0897CFAFEB6101AB7,
WebFlags_set_HttpForward_m5057520D45E0EE8B75146FF633C741C88E6DB1E5,
WebFlags_get_SendAuthCookie_m4C3809BF83E26E6A0A0BBCF1B656FB420DB099C5,
WebFlags_set_SendAuthCookie_m67D7AF57044292DA159A46AE8F4DC27F1DD3A46E,
WebFlags_get_SendSync_m8E4500A08237E7ACF599CF7A77EF1F0B419D7FE2,
WebFlags_set_SendSync_m1C9961C96558BF31ED185876EA55990A4F54CAE3,
WebFlags_get_SendState_m7085E7394ECDB9CDC07BF0A4C2A0037E344076C5,
WebFlags_set_SendState_m772DFC77F5169E3548302A9F601B87DC11765909,
WebFlags__ctor_mF30D282AD9F1D728C06672D22FCB7E108BCB1993,
WebFlags__cctor_m98EB282DAF4EDC93CC587315D2B06E55CB86DDE0,
CallbackTargetChange__ctor_m071B8C0B4920F5D8508B702D0F378FF09FEA6AAF,
U3CU3Ec__cctor_m454CC236AFD52C5F76904A4B4AB34679FDFCEE89,
U3CU3Ec__ctor_mCCE86F50244BA16818CE238231A60D33DA7126CF,
U3CU3Ec_U3C_ctorU3Eb__4_0_m289A926A537815EABB922908021EA427195B3B56,
U3CU3Ec_U3C_ctorU3Eb__4_1_m6B36D5038AA5DCB59B9C1CB07D06B9D161D2173A,
U3CU3Ec__cctor_mE157ACC2760DCC7D615439E9D2BF9512AB689D75,
U3CU3Ec__ctor_m4D4266CBFC2BBD4129FA851865400633B635659D,
U3CU3Ec_U3Cget_BestRegionU3Eb__8_0_m9739F165BF2C69800927AAC250290613EFD9F38B,
U3CU3Ec__DisplayClass21_0__ctor_mF25E447B2D64446843E6EF14E2FDC724A867E6B0,
U3CU3Ec__DisplayClass21_0_U3CPingMinimumOfRegionsU3Eb__0_m6EF2CA9B0F6E0D861BD0E4AC710C2490D8AB4DC8,
U3CRegionPingCoroutineU3Ed__19__ctor_mAF17F0DE6598CF53151AA203A1DB977FC10A22AE,
U3CRegionPingCoroutineU3Ed__19_System_IDisposable_Dispose_mE742DAB197B9A3223CBA8FE92E97011B4950510C,
U3CRegionPingCoroutineU3Ed__19_MoveNext_m01F7E696B6F543A9EFD7E2847A028207246A294E,
U3CRegionPingCoroutineU3Ed__19_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_mFEB50FD2B237F3F24FA9634AFD63484E3BA92505,
U3CRegionPingCoroutineU3Ed__19_System_Collections_IEnumerator_Reset_m2EE199B2E01A0AC0ED496D21547B739B6C655CCE,
U3CRegionPingCoroutineU3Ed__19_System_Collections_IEnumerator_get_Current_mA99D955E3CD2456F91DCFC73753892F196CC54B2,
};
static const int32_t s_InvokerIndices[507] =
{
89,
89,
89,
89,
14,
28,
28,
23,
14,
26,
10,
32,
89,
23,
23,
23,
23,
23,
89,
23,
142,
142,
0,
-1,
0,
0,
168,
140,
3,
14,
14,
26,
89,
31,
14,
26,
89,
14,
23,
14,
26,
10,
32,
14,
26,
14,
26,
14,
26,
1843,
1844,
14,
89,
31,
14,
89,
31,
89,
31,
14,
14,
26,
14,
26,
10,
32,
10,
32,
89,
89,
26,
26,
26,
26,
26,
26,
10,
32,
89,
14,
26,
14,
26,
14,
26,
14,
26,
14,
26,
89,
10,
32,
10,
32,
10,
32,
89,
14,
26,
14,
26,
31,
981,
14,
9,
89,
89,
89,
9,
23,
23,
67,
89,
89,
32,
23,
31,
89,
23,
89,
90,
9,
89,
9,
90,
9,
9,
9,
9,
665,
90,
1845,
1845,
940,
1846,
940,
1847,
90,
120,
58,
32,
26,
26,
489,
105,
664,
1848,
227,
88,
26,
26,
32,
26,
26,
26,
26,
1849,
26,
26,
23,
-1,
3,
23,
23,
32,
26,
26,
26,
23,
23,
26,
26,
26,
23,
1117,
23,
1117,
1117,
23,
26,
26,
26,
27,
26,
26,
26,
26,
26,
23,
23,
26,
32,
26,
26,
26,
23,
23,
1117,
1117,
1117,
23,
26,
26,
26,
26,
26,
27,
26,
26,
23,
23,
26,
26,
26,
26,
26,
26,
26,
14,
4,
168,
31,
462,
23,
9,
9,
89,
161,
9,
9,
9,
90,
665,
90,
90,
1850,
1845,
1846,
9,
940,
1851,
1852,
90,
1847,
227,
10,
23,
23,
23,
23,
23,
23,
23,
23,
23,
89,
31,
89,
31,
89,
31,
89,
31,
89,
31,
89,
31,
89,
31,
23,
23,
3,
89,
23,
462,
14,
3,
14,
23,
89,
31,
14,
26,
14,
26,
14,
26,
14,
26,
23,
26,
26,
26,
26,
27,
14,
9,
89,
23,
23,
23,
3,
9,
89,
23,
23,
9,
89,
23,
23,
14,
26,
10,
89,
31,
14,
26,
14,
26,
89,
89,
31,
14,
26,
365,
1853,
34,
14,
28,
34,
26,
14,
14,
9,
10,
32,
940,
89,
14,
26,
14,
26,
14,
26,
10,
32,
89,
27,
137,
26,
14,
130,
14,
26,
14,
14,
14,
26,
89,
31,
90,
26,
89,
26,
23,
89,
31,
27,
14,
89,
26,
89,
14,
14,
0,
3,
4,
3,
23,
14,
26,
14,
26,
89,
31,
89,
31,
89,
31,
89,
31,
89,
14,
26,
14,
10,
32,
10,
32,
10,
14,
26,
89,
89,
31,
161,
32,
26,
940,
9,
26,
32,
9,
9,
28,
34,
89,
14,
14,
14,
14,
10,
32,
89,
89,
89,
27,
9,
10,
14,
14,
26,
14,
26,
23,
31,
23,
23,
23,
23,
23,
14,
23,
23,
23,
23,
23,
26,
23,
23,
1117,
23,
1117,
1117,
23,
23,
32,
26,
26,
26,
26,
26,
27,
26,
26,
26,
26,
26,
23,
14,
26,
10,
32,
10,
14,
26,
14,
14,
26,
26,
14,
89,
31,
89,
31,
89,
31,
89,
31,
31,
3,
462,
3,
23,
14,
26,
3,
23,
41,
23,
9,
32,
23,
89,
14,
23,
14,
};
static const Il2CppTokenRangePair s_rgctxIndices[2] =
{
{ 0x06000018, { 0, 3 } },
{ 0x060000A1, { 3, 3 } },
};
static const Il2CppRGCTXDefinition s_rgctxValues[6] =
{
{ (Il2CppRGCTXDataType)3, 15375 },
{ (Il2CppRGCTXDataType)3, 15376 },
{ (Il2CppRGCTXDataType)2, 20154 },
{ (Il2CppRGCTXDataType)2, 20190 },
{ (Il2CppRGCTXDataType)3, 15377 },
{ (Il2CppRGCTXDataType)3, 15378 },
};
extern const Il2CppCodeGenModule g_PhotonRealtimeCodeGenModule;
const Il2CppCodeGenModule g_PhotonRealtimeCodeGenModule =
{
"PhotonRealtime.dll",
507,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
2,
s_rgctxIndices,
6,
s_rgctxValues,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/PhotonWebSocket.cpp
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
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, typename T1>
struct VirtFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2>
struct InterfaceActionInvoker2
{
typedef void (*Action)(void*, T1, T2, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, p2, invokeData.method);
}
};
// ExitGames.Client.Photon.EventData
struct EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375;
// ExitGames.Client.Photon.IPhotonPeerListener
struct IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D;
// ExitGames.Client.Photon.IPhotonSocket
struct IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587;
// ExitGames.Client.Photon.IProtocol
struct IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095;
// ExitGames.Client.Photon.NCommand
struct NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857;
// ExitGames.Client.Photon.NCommandPool
struct NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B;
// ExitGames.Client.Photon.NetworkSimulationSet
struct NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7;
// ExitGames.Client.Photon.PeerBase
struct PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884;
// ExitGames.Client.Photon.PhotonPeer
struct PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD;
// ExitGames.Client.Photon.SocketWebTcp
struct SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05;
// ExitGames.Client.Photon.SocketWebTcp/<ReceiveLoop>d__12
struct U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18;
// ExitGames.Client.Photon.SocketWebTcp/MonoBehaviourExt
struct MonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62;
// ExitGames.Client.Photon.WaitForRealSeconds
struct WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B;
// Photon.SocketServer.Security.ICryptoProvider
struct ICryptoProvider_tAA00C72BE565B6F16F48A5992A2A825791B5E569;
// System.ArgumentException
struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1;
// System.Byte[]
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.Generic.LinkedList`1<ExitGames.Client.Photon.SimulationItem>
struct LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase/MyAction>
struct Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.StreamBuffer>
struct Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF;
// System.Collections.Hashtable
struct Hashtable_t978F65B8006C8F5504B286526AEC6608FF983FC9;
// System.Collections.IDictionary
struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7;
// System.Collections.IEnumerator
struct IEnumerator_t8789118187258CC88B77AFAC6315B5AF87D3E18A;
// System.Diagnostics.StackTrace[]
struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196;
// System.Exception
struct Exception_t;
// System.Globalization.CodePageDataItem
struct CodePageDataItem_t6E34BEE9CCCBB35C88D714664633AF6E5F5671FB;
// System.IntPtr[]
struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD;
// System.NotSupportedException
struct NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010;
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
// System.Random
struct Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F;
// System.Runtime.Serialization.SafeSerializationManager
struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770;
// System.String
struct String_t;
// System.Text.DecoderFallback
struct DecoderFallback_t128445EB7676870485230893338EF044F6B72F60;
// System.Text.EncoderFallback
struct EncoderFallback_tDE342346D01608628F1BCEBB652D31009852CF63;
// System.Text.Encoding
struct Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4;
// System.Uri
struct Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E;
// System.Uri/UriInfo
struct UriInfo_t9FCC6BD4EC1EA14D75209E6A35417057BF6EDC5E;
// System.UriParser
struct UriParser_t07C77D673CCE8D2DA253B8A7ACCB010147F1A4AC;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
// UnityEngine.Coroutine
struct Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC;
// UnityEngine.CustomYieldInstruction
struct CustomYieldInstruction_t819BB0973AFF22766749FF087B8AEFEAF3C2CB7D;
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F;
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429;
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0;
// WebSocket
struct WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1;
IL2CPP_EXTERN_C RuntimeClass* ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Exception_t_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RuntimeObject_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C String_t* _stringLiteral03ABDBB1D2AAD35AB98B15EB780567CFE3049D55;
IL2CPP_EXTERN_C String_t* _stringLiteral05A79F06CF3F67F726DAE68D18A2290F6C9A50C9;
IL2CPP_EXTERN_C String_t* _stringLiteral0EA7A0D63AA274B8DC5DD1262CBBD62BBBA93C18;
IL2CPP_EXTERN_C String_t* _stringLiteral110BE4F4AA851DA91271D7D722097AD2AEEAD525;
IL2CPP_EXTERN_C String_t* _stringLiteral1121626CDA8822F6C270AC85EA7EC7F26F8ACDDB;
IL2CPP_EXTERN_C String_t* _stringLiteral1457B75DC8C5500C0F1D4503CF801B60DEB045A4;
IL2CPP_EXTERN_C String_t* _stringLiteral1948936FA67836750CFAD635F543D2432102F2C8;
IL2CPP_EXTERN_C String_t* _stringLiteral43E8D3616C9020CA1F920A91B916FDFC68C9FAB7;
IL2CPP_EXTERN_C String_t* _stringLiteral498118096F2D17F55E0FAC7A2793779D847AF121;
IL2CPP_EXTERN_C String_t* _stringLiteral4CE93410B4EA19AEDAC5AC09A95AF9631E8BCC73;
IL2CPP_EXTERN_C String_t* _stringLiteral5C0F1931205BEB656BDBEE03B33372A5D2708DA5;
IL2CPP_EXTERN_C String_t* _stringLiteral7B2A3AD8BDDBE3384049CE9FB992B14DABAF7BB8;
IL2CPP_EXTERN_C String_t* _stringLiteral8BEFC06B50F7D6242FE4EEB12EC7AE67DD15D9CB;
IL2CPP_EXTERN_C String_t* _stringLiteral94C67DA09E3C3949480AC8458C225636B0DD8B77;
IL2CPP_EXTERN_C String_t* _stringLiteralAEA24EDDB576D89118750EEEF34A826C66FCFB96;
IL2CPP_EXTERN_C String_t* _stringLiteralBA2B0DD158763C472A7D7B22AEF6FF6571B9365C;
IL2CPP_EXTERN_C String_t* _stringLiteralC5E415532AEDFF33CF1D61EE70F18E1F52637895;
IL2CPP_EXTERN_C String_t* _stringLiteralCA881053856A40960971364BD00D2EC97D0F9AE0;
IL2CPP_EXTERN_C String_t* _stringLiteralCCFA3E06472B96F7C2C1B003D7AB4B66602E04FE;
IL2CPP_EXTERN_C String_t* _stringLiteralD28E20F790C8A4363F46ED50CE5B0A7F04B69304;
IL2CPP_EXTERN_C String_t* _stringLiteralE195846A0092CA96F9669413CD1682EE524A1508;
IL2CPP_EXTERN_C String_t* _stringLiteralE37C4CFBAB05794477AF10FD4166E8AE5B3F2247;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62_m2BDB16A91BD72D7BFD24E899E59A050F3C183BE1_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20_RuntimeMethod_var;
IL2CPP_EXTERN_C const uint32_t SocketWebTcp_Connect_m6C42A78E9138498FC45D5BAAFA50C6BCD5628314_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SocketWebTcp_Disconnect_m02753D61D41DF0F28806333CFDD46E9C0B084E95_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SocketWebTcp_Dispose_mD73D71D21C4D7AF4F35D5E63034C589E44E47514_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SocketWebTcp_Send_m38322896DD1584529859D53EC97EFD094C9BF48F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SocketWebTcp__ctor_m0F4F1DF0C9E1EDC0F42A531638FAAA36F40DF199_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CReceiveLoopU3Ed__12_MoveNext_mD0BDF116134D6EA3C97E70685F10F839A03E221B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492_MetadataUsageId;
struct Exception_t_marshaled_com;
struct Exception_t_marshaled_pinvoke;
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821;
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <Module>
struct U3CModuleU3E_t2D35D876FED2BDD175BE36DB8283DBD59BA7B06E
{
public:
public:
};
// System.Object
// ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12
struct U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 : public RuntimeObject
{
public:
// System.Int32 ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::<>1__state
int32_t ___U3CU3E1__state_0;
// System.Object ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::<>2__current
RuntimeObject * ___U3CU3E2__current_1;
// ExitGames.Client.Photon.SocketWebTcp ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::<>4__this
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * ___U3CU3E4__this_2;
// System.Byte[] ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::<inBuff>5__1
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___U3CinBuffU3E5__1_3;
// System.Exception ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::<e>5__2
Exception_t * ___U3CeU3E5__2_4;
public:
inline static int32_t get_offset_of_U3CU3E1__state_0() { return static_cast<int32_t>(offsetof(U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18, ___U3CU3E1__state_0)); }
inline int32_t get_U3CU3E1__state_0() const { return ___U3CU3E1__state_0; }
inline int32_t* get_address_of_U3CU3E1__state_0() { return &___U3CU3E1__state_0; }
inline void set_U3CU3E1__state_0(int32_t value)
{
___U3CU3E1__state_0 = value;
}
inline static int32_t get_offset_of_U3CU3E2__current_1() { return static_cast<int32_t>(offsetof(U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18, ___U3CU3E2__current_1)); }
inline RuntimeObject * get_U3CU3E2__current_1() const { return ___U3CU3E2__current_1; }
inline RuntimeObject ** get_address_of_U3CU3E2__current_1() { return &___U3CU3E2__current_1; }
inline void set_U3CU3E2__current_1(RuntimeObject * value)
{
___U3CU3E2__current_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E2__current_1), (void*)value);
}
inline static int32_t get_offset_of_U3CU3E4__this_2() { return static_cast<int32_t>(offsetof(U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18, ___U3CU3E4__this_2)); }
inline SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * get_U3CU3E4__this_2() const { return ___U3CU3E4__this_2; }
inline SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 ** get_address_of_U3CU3E4__this_2() { return &___U3CU3E4__this_2; }
inline void set_U3CU3E4__this_2(SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * value)
{
___U3CU3E4__this_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CU3E4__this_2), (void*)value);
}
inline static int32_t get_offset_of_U3CinBuffU3E5__1_3() { return static_cast<int32_t>(offsetof(U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18, ___U3CinBuffU3E5__1_3)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_U3CinBuffU3E5__1_3() const { return ___U3CinBuffU3E5__1_3; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_U3CinBuffU3E5__1_3() { return &___U3CinBuffU3E5__1_3; }
inline void set_U3CinBuffU3E5__1_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___U3CinBuffU3E5__1_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CinBuffU3E5__1_3), (void*)value);
}
inline static int32_t get_offset_of_U3CeU3E5__2_4() { return static_cast<int32_t>(offsetof(U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18, ___U3CeU3E5__2_4)); }
inline Exception_t * get_U3CeU3E5__2_4() const { return ___U3CeU3E5__2_4; }
inline Exception_t ** get_address_of_U3CeU3E5__2_4() { return &___U3CeU3E5__2_4; }
inline void set_U3CeU3E5__2_4(Exception_t * value)
{
___U3CeU3E5__2_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CeU3E5__2_4), (void*)value);
}
};
struct Il2CppArrayBounds;
// System.Array
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.Text.Encoding
struct Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 : public RuntimeObject
{
public:
// System.Int32 System.Text.Encoding::m_codePage
int32_t ___m_codePage_9;
// System.Globalization.CodePageDataItem System.Text.Encoding::dataItem
CodePageDataItem_t6E34BEE9CCCBB35C88D714664633AF6E5F5671FB * ___dataItem_10;
// System.Boolean System.Text.Encoding::m_deserializedFromEverett
bool ___m_deserializedFromEverett_11;
// System.Boolean System.Text.Encoding::m_isReadOnly
bool ___m_isReadOnly_12;
// System.Text.EncoderFallback System.Text.Encoding::encoderFallback
EncoderFallback_tDE342346D01608628F1BCEBB652D31009852CF63 * ___encoderFallback_13;
// System.Text.DecoderFallback System.Text.Encoding::decoderFallback
DecoderFallback_t128445EB7676870485230893338EF044F6B72F60 * ___decoderFallback_14;
public:
inline static int32_t get_offset_of_m_codePage_9() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4, ___m_codePage_9)); }
inline int32_t get_m_codePage_9() const { return ___m_codePage_9; }
inline int32_t* get_address_of_m_codePage_9() { return &___m_codePage_9; }
inline void set_m_codePage_9(int32_t value)
{
___m_codePage_9 = value;
}
inline static int32_t get_offset_of_dataItem_10() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4, ___dataItem_10)); }
inline CodePageDataItem_t6E34BEE9CCCBB35C88D714664633AF6E5F5671FB * get_dataItem_10() const { return ___dataItem_10; }
inline CodePageDataItem_t6E34BEE9CCCBB35C88D714664633AF6E5F5671FB ** get_address_of_dataItem_10() { return &___dataItem_10; }
inline void set_dataItem_10(CodePageDataItem_t6E34BEE9CCCBB35C88D714664633AF6E5F5671FB * value)
{
___dataItem_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dataItem_10), (void*)value);
}
inline static int32_t get_offset_of_m_deserializedFromEverett_11() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4, ___m_deserializedFromEverett_11)); }
inline bool get_m_deserializedFromEverett_11() const { return ___m_deserializedFromEverett_11; }
inline bool* get_address_of_m_deserializedFromEverett_11() { return &___m_deserializedFromEverett_11; }
inline void set_m_deserializedFromEverett_11(bool value)
{
___m_deserializedFromEverett_11 = value;
}
inline static int32_t get_offset_of_m_isReadOnly_12() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4, ___m_isReadOnly_12)); }
inline bool get_m_isReadOnly_12() const { return ___m_isReadOnly_12; }
inline bool* get_address_of_m_isReadOnly_12() { return &___m_isReadOnly_12; }
inline void set_m_isReadOnly_12(bool value)
{
___m_isReadOnly_12 = value;
}
inline static int32_t get_offset_of_encoderFallback_13() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4, ___encoderFallback_13)); }
inline EncoderFallback_tDE342346D01608628F1BCEBB652D31009852CF63 * get_encoderFallback_13() const { return ___encoderFallback_13; }
inline EncoderFallback_tDE342346D01608628F1BCEBB652D31009852CF63 ** get_address_of_encoderFallback_13() { return &___encoderFallback_13; }
inline void set_encoderFallback_13(EncoderFallback_tDE342346D01608628F1BCEBB652D31009852CF63 * value)
{
___encoderFallback_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___encoderFallback_13), (void*)value);
}
inline static int32_t get_offset_of_decoderFallback_14() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4, ___decoderFallback_14)); }
inline DecoderFallback_t128445EB7676870485230893338EF044F6B72F60 * get_decoderFallback_14() const { return ___decoderFallback_14; }
inline DecoderFallback_t128445EB7676870485230893338EF044F6B72F60 ** get_address_of_decoderFallback_14() { return &___decoderFallback_14; }
inline void set_decoderFallback_14(DecoderFallback_t128445EB7676870485230893338EF044F6B72F60 * value)
{
___decoderFallback_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___decoderFallback_14), (void*)value);
}
};
struct Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields
{
public:
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::defaultEncoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___defaultEncoding_0;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::unicodeEncoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___unicodeEncoding_1;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::bigEndianUnicode
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___bigEndianUnicode_2;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::utf7Encoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___utf7Encoding_3;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::utf8Encoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___utf8Encoding_4;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::utf32Encoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___utf32Encoding_5;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::asciiEncoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___asciiEncoding_6;
// System.Text.Encoding modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::latin1Encoding
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * ___latin1Encoding_7;
// System.Collections.Hashtable modreq(System.Runtime.CompilerServices.IsVolatile) System.Text.Encoding::encodings
Hashtable_t978F65B8006C8F5504B286526AEC6608FF983FC9 * ___encodings_8;
// System.Object System.Text.Encoding::s_InternalSyncObject
RuntimeObject * ___s_InternalSyncObject_15;
public:
inline static int32_t get_offset_of_defaultEncoding_0() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___defaultEncoding_0)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_defaultEncoding_0() const { return ___defaultEncoding_0; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_defaultEncoding_0() { return &___defaultEncoding_0; }
inline void set_defaultEncoding_0(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___defaultEncoding_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___defaultEncoding_0), (void*)value);
}
inline static int32_t get_offset_of_unicodeEncoding_1() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___unicodeEncoding_1)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_unicodeEncoding_1() const { return ___unicodeEncoding_1; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_unicodeEncoding_1() { return &___unicodeEncoding_1; }
inline void set_unicodeEncoding_1(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___unicodeEncoding_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___unicodeEncoding_1), (void*)value);
}
inline static int32_t get_offset_of_bigEndianUnicode_2() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___bigEndianUnicode_2)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_bigEndianUnicode_2() const { return ___bigEndianUnicode_2; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_bigEndianUnicode_2() { return &___bigEndianUnicode_2; }
inline void set_bigEndianUnicode_2(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___bigEndianUnicode_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___bigEndianUnicode_2), (void*)value);
}
inline static int32_t get_offset_of_utf7Encoding_3() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___utf7Encoding_3)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_utf7Encoding_3() const { return ___utf7Encoding_3; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_utf7Encoding_3() { return &___utf7Encoding_3; }
inline void set_utf7Encoding_3(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___utf7Encoding_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___utf7Encoding_3), (void*)value);
}
inline static int32_t get_offset_of_utf8Encoding_4() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___utf8Encoding_4)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_utf8Encoding_4() const { return ___utf8Encoding_4; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_utf8Encoding_4() { return &___utf8Encoding_4; }
inline void set_utf8Encoding_4(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___utf8Encoding_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___utf8Encoding_4), (void*)value);
}
inline static int32_t get_offset_of_utf32Encoding_5() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___utf32Encoding_5)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_utf32Encoding_5() const { return ___utf32Encoding_5; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_utf32Encoding_5() { return &___utf32Encoding_5; }
inline void set_utf32Encoding_5(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___utf32Encoding_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___utf32Encoding_5), (void*)value);
}
inline static int32_t get_offset_of_asciiEncoding_6() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___asciiEncoding_6)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_asciiEncoding_6() const { return ___asciiEncoding_6; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_asciiEncoding_6() { return &___asciiEncoding_6; }
inline void set_asciiEncoding_6(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___asciiEncoding_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___asciiEncoding_6), (void*)value);
}
inline static int32_t get_offset_of_latin1Encoding_7() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___latin1Encoding_7)); }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * get_latin1Encoding_7() const { return ___latin1Encoding_7; }
inline Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 ** get_address_of_latin1Encoding_7() { return &___latin1Encoding_7; }
inline void set_latin1Encoding_7(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * value)
{
___latin1Encoding_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___latin1Encoding_7), (void*)value);
}
inline static int32_t get_offset_of_encodings_8() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___encodings_8)); }
inline Hashtable_t978F65B8006C8F5504B286526AEC6608FF983FC9 * get_encodings_8() const { return ___encodings_8; }
inline Hashtable_t978F65B8006C8F5504B286526AEC6608FF983FC9 ** get_address_of_encodings_8() { return &___encodings_8; }
inline void set_encodings_8(Hashtable_t978F65B8006C8F5504B286526AEC6608FF983FC9 * value)
{
___encodings_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___encodings_8), (void*)value);
}
inline static int32_t get_offset_of_s_InternalSyncObject_15() { return static_cast<int32_t>(offsetof(Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4_StaticFields, ___s_InternalSyncObject_15)); }
inline RuntimeObject * get_s_InternalSyncObject_15() const { return ___s_InternalSyncObject_15; }
inline RuntimeObject ** get_address_of_s_InternalSyncObject_15() { return &___s_InternalSyncObject_15; }
inline void set_s_InternalSyncObject_15(RuntimeObject * value)
{
___s_InternalSyncObject_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_InternalSyncObject_15), (void*)value);
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
// UnityEngine.CustomYieldInstruction
struct CustomYieldInstruction_t819BB0973AFF22766749FF087B8AEFEAF3C2CB7D : public RuntimeObject
{
public:
public:
};
// UnityEngine.YieldInstruction
struct YieldInstruction_t836035AC7BD07A3C7909F7AD2A5B42DE99D91C44 : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of UnityEngine.YieldInstruction
struct YieldInstruction_t836035AC7BD07A3C7909F7AD2A5B42DE99D91C44_marshaled_pinvoke
{
};
// Native definition for COM marshalling of UnityEngine.YieldInstruction
struct YieldInstruction_t836035AC7BD07A3C7909F7AD2A5B42DE99D91C44_marshaled_com
{
};
// WebSocket
struct WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 : public RuntimeObject
{
public:
// System.Uri WebSocket::mUrl
Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * ___mUrl_0;
// System.String WebSocket::protocols
String_t* ___protocols_1;
// System.Int32 WebSocket::m_NativeRef
int32_t ___m_NativeRef_2;
public:
inline static int32_t get_offset_of_mUrl_0() { return static_cast<int32_t>(offsetof(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1, ___mUrl_0)); }
inline Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * get_mUrl_0() const { return ___mUrl_0; }
inline Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E ** get_address_of_mUrl_0() { return &___mUrl_0; }
inline void set_mUrl_0(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * value)
{
___mUrl_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___mUrl_0), (void*)value);
}
inline static int32_t get_offset_of_protocols_1() { return static_cast<int32_t>(offsetof(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1, ___protocols_1)); }
inline String_t* get_protocols_1() const { return ___protocols_1; }
inline String_t** get_address_of_protocols_1() { return &___protocols_1; }
inline void set_protocols_1(String_t* value)
{
___protocols_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___protocols_1), (void*)value);
}
inline static int32_t get_offset_of_m_NativeRef_2() { return static_cast<int32_t>(offsetof(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1, ___m_NativeRef_2)); }
inline int32_t get_m_NativeRef_2() const { return ___m_NativeRef_2; }
inline int32_t* get_address_of_m_NativeRef_2() { return &___m_NativeRef_2; }
inline void set_m_NativeRef_2(int32_t value)
{
___m_NativeRef_2 = value;
}
};
// ExitGames.Client.Photon.WaitForRealSeconds
struct WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B : public CustomYieldInstruction_t819BB0973AFF22766749FF087B8AEFEAF3C2CB7D
{
public:
// System.Single ExitGames.Client.Photon.WaitForRealSeconds::_endTime
float ____endTime_0;
public:
inline static int32_t get_offset_of__endTime_0() { return static_cast<int32_t>(offsetof(WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B, ____endTime_0)); }
inline float get__endTime_0() const { return ____endTime_0; }
inline float* get_address_of__endTime_0() { return &____endTime_0; }
inline void set__endTime_0(float value)
{
____endTime_0 = value;
}
};
// System.Boolean
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Byte
struct Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07
{
public:
// System.Byte System.Byte::m_value
uint8_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07, ___m_value_0)); }
inline uint8_t get_m_value_0() const { return ___m_value_0; }
inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint8_t value)
{
___m_value_0 = value;
}
};
// System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
{
public:
public:
};
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
{
};
// System.Int32
struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Single
struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1
{
public:
// System.Single System.Single::m_value
float ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); }
inline float get_m_value_0() const { return ___m_value_0; }
inline float* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(float value)
{
___m_value_0 = value;
}
};
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
{
public:
union
{
struct
{
};
uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
};
public:
};
// ExitGames.Client.Photon.ConnectionProtocol
struct ConnectionProtocol_t8CB081E639C80F0C15D431DC73720F67553B219F
{
public:
// System.Byte ExitGames.Client.Photon.ConnectionProtocol::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ConnectionProtocol_t8CB081E639C80F0C15D431DC73720F67553B219F, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.ConnectionStateValue
struct ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D
{
public:
// System.Byte ExitGames.Client.Photon.ConnectionStateValue::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ConnectionStateValue_tD59A7A4580A4F2E18D3E68526155879DF3D1F84D, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.DebugLevel
struct DebugLevel_t7DA42F6FB5B38D7DB5A26A130F0FD10524F3CAE0
{
public:
// System.Byte ExitGames.Client.Photon.DebugLevel::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DebugLevel_t7DA42F6FB5B38D7DB5A26A130F0FD10524F3CAE0, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.PhotonSocketError
struct PhotonSocketError_tA38FB5A32921FDDC5322B3B3F35F0416A72F6FE7
{
public:
// System.Int32 ExitGames.Client.Photon.PhotonSocketError::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PhotonSocketError_tA38FB5A32921FDDC5322B3B3F35F0416A72F6FE7, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.PhotonSocketState
struct PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4
{
public:
// System.Int32 ExitGames.Client.Photon.PhotonSocketState::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// ExitGames.Client.Photon.StatusCode
struct StatusCode_tCFAA114CDE9F595AD6DF9260B8A0ABBFD84C40C4
{
public:
// System.Int32 ExitGames.Client.Photon.StatusCode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(StatusCode_tCFAA114CDE9F595AD6DF9260B8A0ABBFD84C40C4, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// System.Exception
struct Exception_t : public RuntimeObject
{
public:
// System.String System.Exception::_className
String_t* ____className_1;
// System.String System.Exception::_message
String_t* ____message_2;
// System.Collections.IDictionary System.Exception::_data
RuntimeObject* ____data_3;
// System.Exception System.Exception::_innerException
Exception_t * ____innerException_4;
// System.String System.Exception::_helpURL
String_t* ____helpURL_5;
// System.Object System.Exception::_stackTrace
RuntimeObject * ____stackTrace_6;
// System.String System.Exception::_stackTraceString
String_t* ____stackTraceString_7;
// System.String System.Exception::_remoteStackTraceString
String_t* ____remoteStackTraceString_8;
// System.Int32 System.Exception::_remoteStackIndex
int32_t ____remoteStackIndex_9;
// System.Object System.Exception::_dynamicMethods
RuntimeObject * ____dynamicMethods_10;
// System.Int32 System.Exception::_HResult
int32_t ____HResult_11;
// System.String System.Exception::_source
String_t* ____source_12;
// System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
// System.Diagnostics.StackTrace[] System.Exception::captured_traces
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
// System.IntPtr[] System.Exception::native_trace_ips
IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* ___native_trace_ips_15;
public:
inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); }
inline String_t* get__className_1() const { return ____className_1; }
inline String_t** get_address_of__className_1() { return &____className_1; }
inline void set__className_1(String_t* value)
{
____className_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____className_1), (void*)value);
}
inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); }
inline String_t* get__message_2() const { return ____message_2; }
inline String_t** get_address_of__message_2() { return &____message_2; }
inline void set__message_2(String_t* value)
{
____message_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&____message_2), (void*)value);
}
inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); }
inline RuntimeObject* get__data_3() const { return ____data_3; }
inline RuntimeObject** get_address_of__data_3() { return &____data_3; }
inline void set__data_3(RuntimeObject* value)
{
____data_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&____data_3), (void*)value);
}
inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); }
inline Exception_t * get__innerException_4() const { return ____innerException_4; }
inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; }
inline void set__innerException_4(Exception_t * value)
{
____innerException_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____innerException_4), (void*)value);
}
inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); }
inline String_t* get__helpURL_5() const { return ____helpURL_5; }
inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; }
inline void set__helpURL_5(String_t* value)
{
____helpURL_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____helpURL_5), (void*)value);
}
inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); }
inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; }
inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; }
inline void set__stackTrace_6(RuntimeObject * value)
{
____stackTrace_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stackTrace_6), (void*)value);
}
inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); }
inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; }
inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; }
inline void set__stackTraceString_7(String_t* value)
{
____stackTraceString_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stackTraceString_7), (void*)value);
}
inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); }
inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; }
inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; }
inline void set__remoteStackTraceString_8(String_t* value)
{
____remoteStackTraceString_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&____remoteStackTraceString_8), (void*)value);
}
inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); }
inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; }
inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; }
inline void set__remoteStackIndex_9(int32_t value)
{
____remoteStackIndex_9 = value;
}
inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); }
inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; }
inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; }
inline void set__dynamicMethods_10(RuntimeObject * value)
{
____dynamicMethods_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&____dynamicMethods_10), (void*)value);
}
inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); }
inline int32_t get__HResult_11() const { return ____HResult_11; }
inline int32_t* get_address_of__HResult_11() { return &____HResult_11; }
inline void set__HResult_11(int32_t value)
{
____HResult_11 = value;
}
inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); }
inline String_t* get__source_12() const { return ____source_12; }
inline String_t** get_address_of__source_12() { return &____source_12; }
inline void set__source_12(String_t* value)
{
____source_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&____source_12), (void*)value);
}
inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; }
inline void set__safeSerializationManager_13(SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * value)
{
____safeSerializationManager_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&____safeSerializationManager_13), (void*)value);
}
inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* get_captured_traces_14() const { return ___captured_traces_14; }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196** get_address_of_captured_traces_14() { return &___captured_traces_14; }
inline void set_captured_traces_14(StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* value)
{
___captured_traces_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___captured_traces_14), (void*)value);
}
inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* get_native_trace_ips_15() const { return ___native_trace_ips_15; }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; }
inline void set_native_trace_ips_15(IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* value)
{
___native_trace_ips_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___native_trace_ips_15), (void*)value);
}
};
struct Exception_t_StaticFields
{
public:
// System.Object System.Exception::s_EDILock
RuntimeObject * ___s_EDILock_0;
public:
inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); }
inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; }
inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; }
inline void set_s_EDILock_0(RuntimeObject * value)
{
___s_EDILock_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_EDILock_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Exception
struct Exception_t_marshaled_pinvoke
{
char* ____className_1;
char* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_pinvoke* ____innerException_4;
char* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
char* ____stackTraceString_7;
char* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
char* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// Native definition for COM marshalling of System.Exception
struct Exception_t_marshaled_com
{
Il2CppChar* ____className_1;
Il2CppChar* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_com* ____innerException_4;
Il2CppChar* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
Il2CppChar* ____stackTraceString_7;
Il2CppChar* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
Il2CppChar* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// System.Uri_Flags
struct Flags_tEBE7CABEBD13F16920D6950B384EB8F988250A2A
{
public:
// System.UInt64 System.Uri_Flags::value__
uint64_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Flags_tEBE7CABEBD13F16920D6950B384EB8F988250A2A, ___value___2)); }
inline uint64_t get_value___2() const { return ___value___2; }
inline uint64_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint64_t value)
{
___value___2 = value;
}
};
// System.UriIdnScope
struct UriIdnScope_tE1574B39C7492C761EFE2FC12DDE82DE013AC9D1
{
public:
// System.Int32 System.UriIdnScope::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(UriIdnScope_tE1574B39C7492C761EFE2FC12DDE82DE013AC9D1, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Coroutine
struct Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC : public YieldInstruction_t836035AC7BD07A3C7909F7AD2A5B42DE99D91C44
{
public:
// System.IntPtr UnityEngine.Coroutine::m_Ptr
intptr_t ___m_Ptr_0;
public:
inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC, ___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;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Coroutine
struct Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC_marshaled_pinvoke : public YieldInstruction_t836035AC7BD07A3C7909F7AD2A5B42DE99D91C44_marshaled_pinvoke
{
intptr_t ___m_Ptr_0;
};
// Native definition for COM marshalling of UnityEngine.Coroutine
struct Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC_marshaled_com : public YieldInstruction_t836035AC7BD07A3C7909F7AD2A5B42DE99D91C44_marshaled_com
{
intptr_t ___m_Ptr_0;
};
// UnityEngine.HideFlags
struct HideFlags_t30B57DC00548E963A569318C8F4A4123E7447E37
{
public:
// System.Int32 UnityEngine.HideFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(HideFlags_t30B57DC00548E963A569318C8F4A4123E7447E37, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// ExitGames.Client.Photon.IPhotonSocket
struct IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 : public RuntimeObject
{
public:
// ExitGames.Client.Photon.PeerBase ExitGames.Client.Photon.IPhotonSocket::peerBase
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___peerBase_0;
// ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.IPhotonSocket::Protocol
uint8_t ___Protocol_1;
// System.Boolean ExitGames.Client.Photon.IPhotonSocket::PollReceive
bool ___PollReceive_2;
// ExitGames.Client.Photon.PhotonSocketState ExitGames.Client.Photon.IPhotonSocket::<State>k__BackingField
int32_t ___U3CStateU3Ek__BackingField_3;
// System.String ExitGames.Client.Photon.IPhotonSocket::ConnectAddress
String_t* ___ConnectAddress_4;
// System.String ExitGames.Client.Photon.IPhotonSocket::<ServerAddress>k__BackingField
String_t* ___U3CServerAddressU3Ek__BackingField_5;
// System.String ExitGames.Client.Photon.IPhotonSocket::<ProxyServerAddress>k__BackingField
String_t* ___U3CProxyServerAddressU3Ek__BackingField_6;
// System.Int32 ExitGames.Client.Photon.IPhotonSocket::<ServerPort>k__BackingField
int32_t ___U3CServerPortU3Ek__BackingField_8;
// System.Boolean ExitGames.Client.Photon.IPhotonSocket::<AddressResolvedAsIpv6>k__BackingField
bool ___U3CAddressResolvedAsIpv6U3Ek__BackingField_9;
// System.String ExitGames.Client.Photon.IPhotonSocket::<UrlProtocol>k__BackingField
String_t* ___U3CUrlProtocolU3Ek__BackingField_10;
// System.String ExitGames.Client.Photon.IPhotonSocket::<UrlPath>k__BackingField
String_t* ___U3CUrlPathU3Ek__BackingField_11;
public:
inline static int32_t get_offset_of_peerBase_0() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___peerBase_0)); }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * get_peerBase_0() const { return ___peerBase_0; }
inline PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 ** get_address_of_peerBase_0() { return &___peerBase_0; }
inline void set_peerBase_0(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * value)
{
___peerBase_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___peerBase_0), (void*)value);
}
inline static int32_t get_offset_of_Protocol_1() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___Protocol_1)); }
inline uint8_t get_Protocol_1() const { return ___Protocol_1; }
inline uint8_t* get_address_of_Protocol_1() { return &___Protocol_1; }
inline void set_Protocol_1(uint8_t value)
{
___Protocol_1 = value;
}
inline static int32_t get_offset_of_PollReceive_2() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___PollReceive_2)); }
inline bool get_PollReceive_2() const { return ___PollReceive_2; }
inline bool* get_address_of_PollReceive_2() { return &___PollReceive_2; }
inline void set_PollReceive_2(bool value)
{
___PollReceive_2 = value;
}
inline static int32_t get_offset_of_U3CStateU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CStateU3Ek__BackingField_3)); }
inline int32_t get_U3CStateU3Ek__BackingField_3() const { return ___U3CStateU3Ek__BackingField_3; }
inline int32_t* get_address_of_U3CStateU3Ek__BackingField_3() { return &___U3CStateU3Ek__BackingField_3; }
inline void set_U3CStateU3Ek__BackingField_3(int32_t value)
{
___U3CStateU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_ConnectAddress_4() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___ConnectAddress_4)); }
inline String_t* get_ConnectAddress_4() const { return ___ConnectAddress_4; }
inline String_t** get_address_of_ConnectAddress_4() { return &___ConnectAddress_4; }
inline void set_ConnectAddress_4(String_t* value)
{
___ConnectAddress_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ConnectAddress_4), (void*)value);
}
inline static int32_t get_offset_of_U3CServerAddressU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CServerAddressU3Ek__BackingField_5)); }
inline String_t* get_U3CServerAddressU3Ek__BackingField_5() const { return ___U3CServerAddressU3Ek__BackingField_5; }
inline String_t** get_address_of_U3CServerAddressU3Ek__BackingField_5() { return &___U3CServerAddressU3Ek__BackingField_5; }
inline void set_U3CServerAddressU3Ek__BackingField_5(String_t* value)
{
___U3CServerAddressU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CServerAddressU3Ek__BackingField_5), (void*)value);
}
inline static int32_t get_offset_of_U3CProxyServerAddressU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CProxyServerAddressU3Ek__BackingField_6)); }
inline String_t* get_U3CProxyServerAddressU3Ek__BackingField_6() const { return ___U3CProxyServerAddressU3Ek__BackingField_6; }
inline String_t** get_address_of_U3CProxyServerAddressU3Ek__BackingField_6() { return &___U3CProxyServerAddressU3Ek__BackingField_6; }
inline void set_U3CProxyServerAddressU3Ek__BackingField_6(String_t* value)
{
___U3CProxyServerAddressU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CProxyServerAddressU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_U3CServerPortU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CServerPortU3Ek__BackingField_8)); }
inline int32_t get_U3CServerPortU3Ek__BackingField_8() const { return ___U3CServerPortU3Ek__BackingField_8; }
inline int32_t* get_address_of_U3CServerPortU3Ek__BackingField_8() { return &___U3CServerPortU3Ek__BackingField_8; }
inline void set_U3CServerPortU3Ek__BackingField_8(int32_t value)
{
___U3CServerPortU3Ek__BackingField_8 = value;
}
inline static int32_t get_offset_of_U3CAddressResolvedAsIpv6U3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CAddressResolvedAsIpv6U3Ek__BackingField_9)); }
inline bool get_U3CAddressResolvedAsIpv6U3Ek__BackingField_9() const { return ___U3CAddressResolvedAsIpv6U3Ek__BackingField_9; }
inline bool* get_address_of_U3CAddressResolvedAsIpv6U3Ek__BackingField_9() { return &___U3CAddressResolvedAsIpv6U3Ek__BackingField_9; }
inline void set_U3CAddressResolvedAsIpv6U3Ek__BackingField_9(bool value)
{
___U3CAddressResolvedAsIpv6U3Ek__BackingField_9 = value;
}
inline static int32_t get_offset_of_U3CUrlProtocolU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CUrlProtocolU3Ek__BackingField_10)); }
inline String_t* get_U3CUrlProtocolU3Ek__BackingField_10() const { return ___U3CUrlProtocolU3Ek__BackingField_10; }
inline String_t** get_address_of_U3CUrlProtocolU3Ek__BackingField_10() { return &___U3CUrlProtocolU3Ek__BackingField_10; }
inline void set_U3CUrlProtocolU3Ek__BackingField_10(String_t* value)
{
___U3CUrlProtocolU3Ek__BackingField_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CUrlProtocolU3Ek__BackingField_10), (void*)value);
}
inline static int32_t get_offset_of_U3CUrlPathU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587, ___U3CUrlPathU3Ek__BackingField_11)); }
inline String_t* get_U3CUrlPathU3Ek__BackingField_11() const { return ___U3CUrlPathU3Ek__BackingField_11; }
inline String_t** get_address_of_U3CUrlPathU3Ek__BackingField_11() { return &___U3CUrlPathU3Ek__BackingField_11; }
inline void set_U3CUrlPathU3Ek__BackingField_11(String_t* value)
{
___U3CUrlPathU3Ek__BackingField_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CUrlPathU3Ek__BackingField_11), (void*)value);
}
};
struct IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587_StaticFields
{
public:
// System.String ExitGames.Client.Photon.IPhotonSocket::<ServerIpAddress>k__BackingField
String_t* ___U3CServerIpAddressU3Ek__BackingField_7;
public:
inline static int32_t get_offset_of_U3CServerIpAddressU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587_StaticFields, ___U3CServerIpAddressU3Ek__BackingField_7)); }
inline String_t* get_U3CServerIpAddressU3Ek__BackingField_7() const { return ___U3CServerIpAddressU3Ek__BackingField_7; }
inline String_t** get_address_of_U3CServerIpAddressU3Ek__BackingField_7() { return &___U3CServerIpAddressU3Ek__BackingField_7; }
inline void set_U3CServerIpAddressU3Ek__BackingField_7(String_t* value)
{
___U3CServerIpAddressU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CServerIpAddressU3Ek__BackingField_7), (void*)value);
}
};
// ExitGames.Client.Photon.PeerBase
struct PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 : public RuntimeObject
{
public:
// ExitGames.Client.Photon.PhotonPeer ExitGames.Client.Photon.PeerBase::photonPeer
PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * ___photonPeer_0;
// ExitGames.Client.Photon.IProtocol ExitGames.Client.Photon.PeerBase::SerializationProtocol
IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * ___SerializationProtocol_1;
// ExitGames.Client.Photon.NCommandPool ExitGames.Client.Photon.PeerBase::nCommandPool
NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B * ___nCommandPool_2;
// ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.PeerBase::usedTransportProtocol
uint8_t ___usedTransportProtocol_3;
// ExitGames.Client.Photon.IPhotonSocket ExitGames.Client.Photon.PeerBase::PhotonSocket
IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * ___PhotonSocket_4;
// System.String ExitGames.Client.Photon.PeerBase::<ServerAddress>k__BackingField
String_t* ___U3CServerAddressU3Ek__BackingField_5;
// System.String ExitGames.Client.Photon.PeerBase::<ProxyServerAddress>k__BackingField
String_t* ___U3CProxyServerAddressU3Ek__BackingField_6;
// ExitGames.Client.Photon.ConnectionStateValue ExitGames.Client.Photon.PeerBase::peerConnectionState
uint8_t ___peerConnectionState_7;
// System.Int32 ExitGames.Client.Photon.PeerBase::ByteCountLastOperation
int32_t ___ByteCountLastOperation_8;
// System.Int32 ExitGames.Client.Photon.PeerBase::ByteCountCurrentDispatch
int32_t ___ByteCountCurrentDispatch_9;
// ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.PeerBase::CommandInCurrentDispatch
NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 * ___CommandInCurrentDispatch_10;
// System.Int32 ExitGames.Client.Photon.PeerBase::packetLossByCrc
int32_t ___packetLossByCrc_11;
// System.Int32 ExitGames.Client.Photon.PeerBase::packetLossByChallenge
int32_t ___packetLossByChallenge_12;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.PeerBase_MyAction> ExitGames.Client.Photon.PeerBase::ActionQueue
Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * ___ActionQueue_13;
// System.Int16 ExitGames.Client.Photon.PeerBase::peerID
int16_t ___peerID_14;
// System.Int32 ExitGames.Client.Photon.PeerBase::serverTimeOffset
int32_t ___serverTimeOffset_15;
// System.Boolean ExitGames.Client.Photon.PeerBase::serverTimeOffsetIsAvailable
bool ___serverTimeOffsetIsAvailable_16;
// System.Int32 ExitGames.Client.Photon.PeerBase::roundTripTime
int32_t ___roundTripTime_17;
// System.Int32 ExitGames.Client.Photon.PeerBase::roundTripTimeVariance
int32_t ___roundTripTimeVariance_18;
// System.Int32 ExitGames.Client.Photon.PeerBase::lastRoundTripTime
int32_t ___lastRoundTripTime_19;
// System.Int32 ExitGames.Client.Photon.PeerBase::lowestRoundTripTime
int32_t ___lowestRoundTripTime_20;
// System.Int32 ExitGames.Client.Photon.PeerBase::highestRoundTripTimeVariance
int32_t ___highestRoundTripTimeVariance_21;
// System.Int32 ExitGames.Client.Photon.PeerBase::timestampOfLastReceive
int32_t ___timestampOfLastReceive_22;
// System.Int64 ExitGames.Client.Photon.PeerBase::bytesOut
int64_t ___bytesOut_24;
// System.Int64 ExitGames.Client.Photon.PeerBase::bytesIn
int64_t ___bytesIn_25;
// System.Object ExitGames.Client.Photon.PeerBase::CustomInitData
RuntimeObject * ___CustomInitData_26;
// System.String ExitGames.Client.Photon.PeerBase::AppId
String_t* ___AppId_27;
// ExitGames.Client.Photon.EventData ExitGames.Client.Photon.PeerBase::reusableEventData
EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 * ___reusableEventData_28;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeBase
int32_t ___timeBase_29;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeoutInt
int32_t ___timeoutInt_30;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeLastAckReceive
int32_t ___timeLastAckReceive_31;
// System.Int32 ExitGames.Client.Photon.PeerBase::longestSentCall
int32_t ___longestSentCall_32;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeLastSendAck
int32_t ___timeLastSendAck_33;
// System.Int32 ExitGames.Client.Photon.PeerBase::timeLastSendOutgoing
int32_t ___timeLastSendOutgoing_34;
// System.Boolean ExitGames.Client.Photon.PeerBase::ApplicationIsInitialized
bool ___ApplicationIsInitialized_35;
// System.Boolean ExitGames.Client.Photon.PeerBase::isEncryptionAvailable
bool ___isEncryptionAvailable_36;
// System.Int32 ExitGames.Client.Photon.PeerBase::outgoingCommandsInStream
int32_t ___outgoingCommandsInStream_37;
// Photon.SocketServer.Security.ICryptoProvider ExitGames.Client.Photon.PeerBase::CryptoProvider
RuntimeObject* ___CryptoProvider_39;
// System.Random ExitGames.Client.Photon.PeerBase::lagRandomizer
Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * ___lagRandomizer_40;
// System.Collections.Generic.LinkedList`1<ExitGames.Client.Photon.SimulationItem> ExitGames.Client.Photon.PeerBase::NetSimListOutgoing
LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * ___NetSimListOutgoing_41;
// System.Collections.Generic.LinkedList`1<ExitGames.Client.Photon.SimulationItem> ExitGames.Client.Photon.PeerBase::NetSimListIncoming
LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * ___NetSimListIncoming_42;
// ExitGames.Client.Photon.NetworkSimulationSet ExitGames.Client.Photon.PeerBase::networkSimulationSettings
NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * ___networkSimulationSettings_43;
// System.Int32 ExitGames.Client.Photon.PeerBase::TrafficPackageHeaderSize
int32_t ___TrafficPackageHeaderSize_44;
public:
inline static int32_t get_offset_of_photonPeer_0() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___photonPeer_0)); }
inline PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * get_photonPeer_0() const { return ___photonPeer_0; }
inline PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD ** get_address_of_photonPeer_0() { return &___photonPeer_0; }
inline void set_photonPeer_0(PhotonPeer_t90B35860CCF25FE27F3598C3F0176EB1F58AAFCD * value)
{
___photonPeer_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___photonPeer_0), (void*)value);
}
inline static int32_t get_offset_of_SerializationProtocol_1() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___SerializationProtocol_1)); }
inline IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * get_SerializationProtocol_1() const { return ___SerializationProtocol_1; }
inline IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 ** get_address_of_SerializationProtocol_1() { return &___SerializationProtocol_1; }
inline void set_SerializationProtocol_1(IProtocol_t16280713274BB2E78CDC45D03F3A8EAC1F040095 * value)
{
___SerializationProtocol_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SerializationProtocol_1), (void*)value);
}
inline static int32_t get_offset_of_nCommandPool_2() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___nCommandPool_2)); }
inline NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B * get_nCommandPool_2() const { return ___nCommandPool_2; }
inline NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B ** get_address_of_nCommandPool_2() { return &___nCommandPool_2; }
inline void set_nCommandPool_2(NCommandPool_t1CA0DA32D07C30A65CE27C6D2708B3726300370B * value)
{
___nCommandPool_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___nCommandPool_2), (void*)value);
}
inline static int32_t get_offset_of_usedTransportProtocol_3() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___usedTransportProtocol_3)); }
inline uint8_t get_usedTransportProtocol_3() const { return ___usedTransportProtocol_3; }
inline uint8_t* get_address_of_usedTransportProtocol_3() { return &___usedTransportProtocol_3; }
inline void set_usedTransportProtocol_3(uint8_t value)
{
___usedTransportProtocol_3 = value;
}
inline static int32_t get_offset_of_PhotonSocket_4() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___PhotonSocket_4)); }
inline IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * get_PhotonSocket_4() const { return ___PhotonSocket_4; }
inline IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 ** get_address_of_PhotonSocket_4() { return &___PhotonSocket_4; }
inline void set_PhotonSocket_4(IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * value)
{
___PhotonSocket_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___PhotonSocket_4), (void*)value);
}
inline static int32_t get_offset_of_U3CServerAddressU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___U3CServerAddressU3Ek__BackingField_5)); }
inline String_t* get_U3CServerAddressU3Ek__BackingField_5() const { return ___U3CServerAddressU3Ek__BackingField_5; }
inline String_t** get_address_of_U3CServerAddressU3Ek__BackingField_5() { return &___U3CServerAddressU3Ek__BackingField_5; }
inline void set_U3CServerAddressU3Ek__BackingField_5(String_t* value)
{
___U3CServerAddressU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CServerAddressU3Ek__BackingField_5), (void*)value);
}
inline static int32_t get_offset_of_U3CProxyServerAddressU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___U3CProxyServerAddressU3Ek__BackingField_6)); }
inline String_t* get_U3CProxyServerAddressU3Ek__BackingField_6() const { return ___U3CProxyServerAddressU3Ek__BackingField_6; }
inline String_t** get_address_of_U3CProxyServerAddressU3Ek__BackingField_6() { return &___U3CProxyServerAddressU3Ek__BackingField_6; }
inline void set_U3CProxyServerAddressU3Ek__BackingField_6(String_t* value)
{
___U3CProxyServerAddressU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CProxyServerAddressU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_peerConnectionState_7() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___peerConnectionState_7)); }
inline uint8_t get_peerConnectionState_7() const { return ___peerConnectionState_7; }
inline uint8_t* get_address_of_peerConnectionState_7() { return &___peerConnectionState_7; }
inline void set_peerConnectionState_7(uint8_t value)
{
___peerConnectionState_7 = value;
}
inline static int32_t get_offset_of_ByteCountLastOperation_8() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ByteCountLastOperation_8)); }
inline int32_t get_ByteCountLastOperation_8() const { return ___ByteCountLastOperation_8; }
inline int32_t* get_address_of_ByteCountLastOperation_8() { return &___ByteCountLastOperation_8; }
inline void set_ByteCountLastOperation_8(int32_t value)
{
___ByteCountLastOperation_8 = value;
}
inline static int32_t get_offset_of_ByteCountCurrentDispatch_9() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ByteCountCurrentDispatch_9)); }
inline int32_t get_ByteCountCurrentDispatch_9() const { return ___ByteCountCurrentDispatch_9; }
inline int32_t* get_address_of_ByteCountCurrentDispatch_9() { return &___ByteCountCurrentDispatch_9; }
inline void set_ByteCountCurrentDispatch_9(int32_t value)
{
___ByteCountCurrentDispatch_9 = value;
}
inline static int32_t get_offset_of_CommandInCurrentDispatch_10() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___CommandInCurrentDispatch_10)); }
inline NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 * get_CommandInCurrentDispatch_10() const { return ___CommandInCurrentDispatch_10; }
inline NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 ** get_address_of_CommandInCurrentDispatch_10() { return &___CommandInCurrentDispatch_10; }
inline void set_CommandInCurrentDispatch_10(NCommand_t9FAD53AE3EE931BF2BCFDCAAD9758FDF68438857 * value)
{
___CommandInCurrentDispatch_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CommandInCurrentDispatch_10), (void*)value);
}
inline static int32_t get_offset_of_packetLossByCrc_11() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___packetLossByCrc_11)); }
inline int32_t get_packetLossByCrc_11() const { return ___packetLossByCrc_11; }
inline int32_t* get_address_of_packetLossByCrc_11() { return &___packetLossByCrc_11; }
inline void set_packetLossByCrc_11(int32_t value)
{
___packetLossByCrc_11 = value;
}
inline static int32_t get_offset_of_packetLossByChallenge_12() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___packetLossByChallenge_12)); }
inline int32_t get_packetLossByChallenge_12() const { return ___packetLossByChallenge_12; }
inline int32_t* get_address_of_packetLossByChallenge_12() { return &___packetLossByChallenge_12; }
inline void set_packetLossByChallenge_12(int32_t value)
{
___packetLossByChallenge_12 = value;
}
inline static int32_t get_offset_of_ActionQueue_13() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ActionQueue_13)); }
inline Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * get_ActionQueue_13() const { return ___ActionQueue_13; }
inline Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 ** get_address_of_ActionQueue_13() { return &___ActionQueue_13; }
inline void set_ActionQueue_13(Queue_1_tBFCBC92CA9F7707D67994B726A6028264B5F4D73 * value)
{
___ActionQueue_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ActionQueue_13), (void*)value);
}
inline static int32_t get_offset_of_peerID_14() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___peerID_14)); }
inline int16_t get_peerID_14() const { return ___peerID_14; }
inline int16_t* get_address_of_peerID_14() { return &___peerID_14; }
inline void set_peerID_14(int16_t value)
{
___peerID_14 = value;
}
inline static int32_t get_offset_of_serverTimeOffset_15() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___serverTimeOffset_15)); }
inline int32_t get_serverTimeOffset_15() const { return ___serverTimeOffset_15; }
inline int32_t* get_address_of_serverTimeOffset_15() { return &___serverTimeOffset_15; }
inline void set_serverTimeOffset_15(int32_t value)
{
___serverTimeOffset_15 = value;
}
inline static int32_t get_offset_of_serverTimeOffsetIsAvailable_16() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___serverTimeOffsetIsAvailable_16)); }
inline bool get_serverTimeOffsetIsAvailable_16() const { return ___serverTimeOffsetIsAvailable_16; }
inline bool* get_address_of_serverTimeOffsetIsAvailable_16() { return &___serverTimeOffsetIsAvailable_16; }
inline void set_serverTimeOffsetIsAvailable_16(bool value)
{
___serverTimeOffsetIsAvailable_16 = value;
}
inline static int32_t get_offset_of_roundTripTime_17() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___roundTripTime_17)); }
inline int32_t get_roundTripTime_17() const { return ___roundTripTime_17; }
inline int32_t* get_address_of_roundTripTime_17() { return &___roundTripTime_17; }
inline void set_roundTripTime_17(int32_t value)
{
___roundTripTime_17 = value;
}
inline static int32_t get_offset_of_roundTripTimeVariance_18() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___roundTripTimeVariance_18)); }
inline int32_t get_roundTripTimeVariance_18() const { return ___roundTripTimeVariance_18; }
inline int32_t* get_address_of_roundTripTimeVariance_18() { return &___roundTripTimeVariance_18; }
inline void set_roundTripTimeVariance_18(int32_t value)
{
___roundTripTimeVariance_18 = value;
}
inline static int32_t get_offset_of_lastRoundTripTime_19() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___lastRoundTripTime_19)); }
inline int32_t get_lastRoundTripTime_19() const { return ___lastRoundTripTime_19; }
inline int32_t* get_address_of_lastRoundTripTime_19() { return &___lastRoundTripTime_19; }
inline void set_lastRoundTripTime_19(int32_t value)
{
___lastRoundTripTime_19 = value;
}
inline static int32_t get_offset_of_lowestRoundTripTime_20() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___lowestRoundTripTime_20)); }
inline int32_t get_lowestRoundTripTime_20() const { return ___lowestRoundTripTime_20; }
inline int32_t* get_address_of_lowestRoundTripTime_20() { return &___lowestRoundTripTime_20; }
inline void set_lowestRoundTripTime_20(int32_t value)
{
___lowestRoundTripTime_20 = value;
}
inline static int32_t get_offset_of_highestRoundTripTimeVariance_21() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___highestRoundTripTimeVariance_21)); }
inline int32_t get_highestRoundTripTimeVariance_21() const { return ___highestRoundTripTimeVariance_21; }
inline int32_t* get_address_of_highestRoundTripTimeVariance_21() { return &___highestRoundTripTimeVariance_21; }
inline void set_highestRoundTripTimeVariance_21(int32_t value)
{
___highestRoundTripTimeVariance_21 = value;
}
inline static int32_t get_offset_of_timestampOfLastReceive_22() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timestampOfLastReceive_22)); }
inline int32_t get_timestampOfLastReceive_22() const { return ___timestampOfLastReceive_22; }
inline int32_t* get_address_of_timestampOfLastReceive_22() { return &___timestampOfLastReceive_22; }
inline void set_timestampOfLastReceive_22(int32_t value)
{
___timestampOfLastReceive_22 = value;
}
inline static int32_t get_offset_of_bytesOut_24() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___bytesOut_24)); }
inline int64_t get_bytesOut_24() const { return ___bytesOut_24; }
inline int64_t* get_address_of_bytesOut_24() { return &___bytesOut_24; }
inline void set_bytesOut_24(int64_t value)
{
___bytesOut_24 = value;
}
inline static int32_t get_offset_of_bytesIn_25() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___bytesIn_25)); }
inline int64_t get_bytesIn_25() const { return ___bytesIn_25; }
inline int64_t* get_address_of_bytesIn_25() { return &___bytesIn_25; }
inline void set_bytesIn_25(int64_t value)
{
___bytesIn_25 = value;
}
inline static int32_t get_offset_of_CustomInitData_26() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___CustomInitData_26)); }
inline RuntimeObject * get_CustomInitData_26() const { return ___CustomInitData_26; }
inline RuntimeObject ** get_address_of_CustomInitData_26() { return &___CustomInitData_26; }
inline void set_CustomInitData_26(RuntimeObject * value)
{
___CustomInitData_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CustomInitData_26), (void*)value);
}
inline static int32_t get_offset_of_AppId_27() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___AppId_27)); }
inline String_t* get_AppId_27() const { return ___AppId_27; }
inline String_t** get_address_of_AppId_27() { return &___AppId_27; }
inline void set_AppId_27(String_t* value)
{
___AppId_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___AppId_27), (void*)value);
}
inline static int32_t get_offset_of_reusableEventData_28() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___reusableEventData_28)); }
inline EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 * get_reusableEventData_28() const { return ___reusableEventData_28; }
inline EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 ** get_address_of_reusableEventData_28() { return &___reusableEventData_28; }
inline void set_reusableEventData_28(EventData_t4BD1B2CB11F280FB36B3B114EE0BBE0487EEA375 * value)
{
___reusableEventData_28 = value;
Il2CppCodeGenWriteBarrier((void**)(&___reusableEventData_28), (void*)value);
}
inline static int32_t get_offset_of_timeBase_29() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeBase_29)); }
inline int32_t get_timeBase_29() const { return ___timeBase_29; }
inline int32_t* get_address_of_timeBase_29() { return &___timeBase_29; }
inline void set_timeBase_29(int32_t value)
{
___timeBase_29 = value;
}
inline static int32_t get_offset_of_timeoutInt_30() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeoutInt_30)); }
inline int32_t get_timeoutInt_30() const { return ___timeoutInt_30; }
inline int32_t* get_address_of_timeoutInt_30() { return &___timeoutInt_30; }
inline void set_timeoutInt_30(int32_t value)
{
___timeoutInt_30 = value;
}
inline static int32_t get_offset_of_timeLastAckReceive_31() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeLastAckReceive_31)); }
inline int32_t get_timeLastAckReceive_31() const { return ___timeLastAckReceive_31; }
inline int32_t* get_address_of_timeLastAckReceive_31() { return &___timeLastAckReceive_31; }
inline void set_timeLastAckReceive_31(int32_t value)
{
___timeLastAckReceive_31 = value;
}
inline static int32_t get_offset_of_longestSentCall_32() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___longestSentCall_32)); }
inline int32_t get_longestSentCall_32() const { return ___longestSentCall_32; }
inline int32_t* get_address_of_longestSentCall_32() { return &___longestSentCall_32; }
inline void set_longestSentCall_32(int32_t value)
{
___longestSentCall_32 = value;
}
inline static int32_t get_offset_of_timeLastSendAck_33() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeLastSendAck_33)); }
inline int32_t get_timeLastSendAck_33() const { return ___timeLastSendAck_33; }
inline int32_t* get_address_of_timeLastSendAck_33() { return &___timeLastSendAck_33; }
inline void set_timeLastSendAck_33(int32_t value)
{
___timeLastSendAck_33 = value;
}
inline static int32_t get_offset_of_timeLastSendOutgoing_34() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___timeLastSendOutgoing_34)); }
inline int32_t get_timeLastSendOutgoing_34() const { return ___timeLastSendOutgoing_34; }
inline int32_t* get_address_of_timeLastSendOutgoing_34() { return &___timeLastSendOutgoing_34; }
inline void set_timeLastSendOutgoing_34(int32_t value)
{
___timeLastSendOutgoing_34 = value;
}
inline static int32_t get_offset_of_ApplicationIsInitialized_35() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___ApplicationIsInitialized_35)); }
inline bool get_ApplicationIsInitialized_35() const { return ___ApplicationIsInitialized_35; }
inline bool* get_address_of_ApplicationIsInitialized_35() { return &___ApplicationIsInitialized_35; }
inline void set_ApplicationIsInitialized_35(bool value)
{
___ApplicationIsInitialized_35 = value;
}
inline static int32_t get_offset_of_isEncryptionAvailable_36() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___isEncryptionAvailable_36)); }
inline bool get_isEncryptionAvailable_36() const { return ___isEncryptionAvailable_36; }
inline bool* get_address_of_isEncryptionAvailable_36() { return &___isEncryptionAvailable_36; }
inline void set_isEncryptionAvailable_36(bool value)
{
___isEncryptionAvailable_36 = value;
}
inline static int32_t get_offset_of_outgoingCommandsInStream_37() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___outgoingCommandsInStream_37)); }
inline int32_t get_outgoingCommandsInStream_37() const { return ___outgoingCommandsInStream_37; }
inline int32_t* get_address_of_outgoingCommandsInStream_37() { return &___outgoingCommandsInStream_37; }
inline void set_outgoingCommandsInStream_37(int32_t value)
{
___outgoingCommandsInStream_37 = value;
}
inline static int32_t get_offset_of_CryptoProvider_39() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___CryptoProvider_39)); }
inline RuntimeObject* get_CryptoProvider_39() const { return ___CryptoProvider_39; }
inline RuntimeObject** get_address_of_CryptoProvider_39() { return &___CryptoProvider_39; }
inline void set_CryptoProvider_39(RuntimeObject* value)
{
___CryptoProvider_39 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CryptoProvider_39), (void*)value);
}
inline static int32_t get_offset_of_lagRandomizer_40() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___lagRandomizer_40)); }
inline Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * get_lagRandomizer_40() const { return ___lagRandomizer_40; }
inline Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F ** get_address_of_lagRandomizer_40() { return &___lagRandomizer_40; }
inline void set_lagRandomizer_40(Random_t18A28484F67EFA289C256F508A5C71D9E6DEE09F * value)
{
___lagRandomizer_40 = value;
Il2CppCodeGenWriteBarrier((void**)(&___lagRandomizer_40), (void*)value);
}
inline static int32_t get_offset_of_NetSimListOutgoing_41() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___NetSimListOutgoing_41)); }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * get_NetSimListOutgoing_41() const { return ___NetSimListOutgoing_41; }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 ** get_address_of_NetSimListOutgoing_41() { return &___NetSimListOutgoing_41; }
inline void set_NetSimListOutgoing_41(LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * value)
{
___NetSimListOutgoing_41 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NetSimListOutgoing_41), (void*)value);
}
inline static int32_t get_offset_of_NetSimListIncoming_42() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___NetSimListIncoming_42)); }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * get_NetSimListIncoming_42() const { return ___NetSimListIncoming_42; }
inline LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 ** get_address_of_NetSimListIncoming_42() { return &___NetSimListIncoming_42; }
inline void set_NetSimListIncoming_42(LinkedList_1_t2012FA1715E42F21E1C255C3C7F1960455F6C653 * value)
{
___NetSimListIncoming_42 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NetSimListIncoming_42), (void*)value);
}
inline static int32_t get_offset_of_networkSimulationSettings_43() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___networkSimulationSettings_43)); }
inline NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * get_networkSimulationSettings_43() const { return ___networkSimulationSettings_43; }
inline NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 ** get_address_of_networkSimulationSettings_43() { return &___networkSimulationSettings_43; }
inline void set_networkSimulationSettings_43(NetworkSimulationSet_t8D40B91FD9D34AC4865EBD40F88A999EF39085D7 * value)
{
___networkSimulationSettings_43 = value;
Il2CppCodeGenWriteBarrier((void**)(&___networkSimulationSettings_43), (void*)value);
}
inline static int32_t get_offset_of_TrafficPackageHeaderSize_44() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884, ___TrafficPackageHeaderSize_44)); }
inline int32_t get_TrafficPackageHeaderSize_44() const { return ___TrafficPackageHeaderSize_44; }
inline int32_t* get_address_of_TrafficPackageHeaderSize_44() { return &___TrafficPackageHeaderSize_44; }
inline void set_TrafficPackageHeaderSize_44(int32_t value)
{
___TrafficPackageHeaderSize_44 = value;
}
};
struct PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_StaticFields
{
public:
// System.Int16 ExitGames.Client.Photon.PeerBase::peerCount
int16_t ___peerCount_23;
// System.Collections.Generic.Queue`1<ExitGames.Client.Photon.StreamBuffer> ExitGames.Client.Photon.PeerBase::MessageBufferPool
Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF * ___MessageBufferPool_38;
public:
inline static int32_t get_offset_of_peerCount_23() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_StaticFields, ___peerCount_23)); }
inline int16_t get_peerCount_23() const { return ___peerCount_23; }
inline int16_t* get_address_of_peerCount_23() { return &___peerCount_23; }
inline void set_peerCount_23(int16_t value)
{
___peerCount_23 = value;
}
inline static int32_t get_offset_of_MessageBufferPool_38() { return static_cast<int32_t>(offsetof(PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884_StaticFields, ___MessageBufferPool_38)); }
inline Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF * get_MessageBufferPool_38() const { return ___MessageBufferPool_38; }
inline Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF ** get_address_of_MessageBufferPool_38() { return &___MessageBufferPool_38; }
inline void set_MessageBufferPool_38(Queue_1_t9161B8DFF664B5FF74049CE2C362C97D79AFE2DF * value)
{
___MessageBufferPool_38 = value;
Il2CppCodeGenWriteBarrier((void**)(&___MessageBufferPool_38), (void*)value);
}
};
// System.SystemException
struct SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 : public Exception_t
{
public:
public:
};
// System.Uri
struct Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E : public RuntimeObject
{
public:
// System.String System.Uri::m_String
String_t* ___m_String_13;
// System.String System.Uri::m_originalUnicodeString
String_t* ___m_originalUnicodeString_14;
// System.UriParser System.Uri::m_Syntax
UriParser_t07C77D673CCE8D2DA253B8A7ACCB010147F1A4AC * ___m_Syntax_15;
// System.String System.Uri::m_DnsSafeHost
String_t* ___m_DnsSafeHost_16;
// System.Uri_Flags System.Uri::m_Flags
uint64_t ___m_Flags_17;
// System.Uri_UriInfo System.Uri::m_Info
UriInfo_t9FCC6BD4EC1EA14D75209E6A35417057BF6EDC5E * ___m_Info_18;
// System.Boolean System.Uri::m_iriParsing
bool ___m_iriParsing_19;
public:
inline static int32_t get_offset_of_m_String_13() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_String_13)); }
inline String_t* get_m_String_13() const { return ___m_String_13; }
inline String_t** get_address_of_m_String_13() { return &___m_String_13; }
inline void set_m_String_13(String_t* value)
{
___m_String_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_String_13), (void*)value);
}
inline static int32_t get_offset_of_m_originalUnicodeString_14() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_originalUnicodeString_14)); }
inline String_t* get_m_originalUnicodeString_14() const { return ___m_originalUnicodeString_14; }
inline String_t** get_address_of_m_originalUnicodeString_14() { return &___m_originalUnicodeString_14; }
inline void set_m_originalUnicodeString_14(String_t* value)
{
___m_originalUnicodeString_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_originalUnicodeString_14), (void*)value);
}
inline static int32_t get_offset_of_m_Syntax_15() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_Syntax_15)); }
inline UriParser_t07C77D673CCE8D2DA253B8A7ACCB010147F1A4AC * get_m_Syntax_15() const { return ___m_Syntax_15; }
inline UriParser_t07C77D673CCE8D2DA253B8A7ACCB010147F1A4AC ** get_address_of_m_Syntax_15() { return &___m_Syntax_15; }
inline void set_m_Syntax_15(UriParser_t07C77D673CCE8D2DA253B8A7ACCB010147F1A4AC * value)
{
___m_Syntax_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Syntax_15), (void*)value);
}
inline static int32_t get_offset_of_m_DnsSafeHost_16() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_DnsSafeHost_16)); }
inline String_t* get_m_DnsSafeHost_16() const { return ___m_DnsSafeHost_16; }
inline String_t** get_address_of_m_DnsSafeHost_16() { return &___m_DnsSafeHost_16; }
inline void set_m_DnsSafeHost_16(String_t* value)
{
___m_DnsSafeHost_16 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DnsSafeHost_16), (void*)value);
}
inline static int32_t get_offset_of_m_Flags_17() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_Flags_17)); }
inline uint64_t get_m_Flags_17() const { return ___m_Flags_17; }
inline uint64_t* get_address_of_m_Flags_17() { return &___m_Flags_17; }
inline void set_m_Flags_17(uint64_t value)
{
___m_Flags_17 = value;
}
inline static int32_t get_offset_of_m_Info_18() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_Info_18)); }
inline UriInfo_t9FCC6BD4EC1EA14D75209E6A35417057BF6EDC5E * get_m_Info_18() const { return ___m_Info_18; }
inline UriInfo_t9FCC6BD4EC1EA14D75209E6A35417057BF6EDC5E ** get_address_of_m_Info_18() { return &___m_Info_18; }
inline void set_m_Info_18(UriInfo_t9FCC6BD4EC1EA14D75209E6A35417057BF6EDC5E * value)
{
___m_Info_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Info_18), (void*)value);
}
inline static int32_t get_offset_of_m_iriParsing_19() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E, ___m_iriParsing_19)); }
inline bool get_m_iriParsing_19() const { return ___m_iriParsing_19; }
inline bool* get_address_of_m_iriParsing_19() { return &___m_iriParsing_19; }
inline void set_m_iriParsing_19(bool value)
{
___m_iriParsing_19 = value;
}
};
struct Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields
{
public:
// System.String System.Uri::UriSchemeFile
String_t* ___UriSchemeFile_0;
// System.String System.Uri::UriSchemeFtp
String_t* ___UriSchemeFtp_1;
// System.String System.Uri::UriSchemeGopher
String_t* ___UriSchemeGopher_2;
// System.String System.Uri::UriSchemeHttp
String_t* ___UriSchemeHttp_3;
// System.String System.Uri::UriSchemeHttps
String_t* ___UriSchemeHttps_4;
// System.String System.Uri::UriSchemeWs
String_t* ___UriSchemeWs_5;
// System.String System.Uri::UriSchemeWss
String_t* ___UriSchemeWss_6;
// System.String System.Uri::UriSchemeMailto
String_t* ___UriSchemeMailto_7;
// System.String System.Uri::UriSchemeNews
String_t* ___UriSchemeNews_8;
// System.String System.Uri::UriSchemeNntp
String_t* ___UriSchemeNntp_9;
// System.String System.Uri::UriSchemeNetTcp
String_t* ___UriSchemeNetTcp_10;
// System.String System.Uri::UriSchemeNetPipe
String_t* ___UriSchemeNetPipe_11;
// System.String System.Uri::SchemeDelimiter
String_t* ___SchemeDelimiter_12;
// System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Uri::s_ConfigInitialized
bool ___s_ConfigInitialized_20;
// System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Uri::s_ConfigInitializing
bool ___s_ConfigInitializing_21;
// System.UriIdnScope modreq(System.Runtime.CompilerServices.IsVolatile) System.Uri::s_IdnScope
int32_t ___s_IdnScope_22;
// System.Boolean modreq(System.Runtime.CompilerServices.IsVolatile) System.Uri::s_IriParsing
bool ___s_IriParsing_23;
// System.Boolean System.Uri::useDotNetRelativeOrAbsolute
bool ___useDotNetRelativeOrAbsolute_24;
// System.Boolean System.Uri::IsWindowsFileSystem
bool ___IsWindowsFileSystem_25;
// System.Object System.Uri::s_initLock
RuntimeObject * ___s_initLock_26;
// System.Char[] System.Uri::HexLowerChars
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___HexLowerChars_27;
// System.Char[] System.Uri::_WSchars
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ____WSchars_28;
public:
inline static int32_t get_offset_of_UriSchemeFile_0() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeFile_0)); }
inline String_t* get_UriSchemeFile_0() const { return ___UriSchemeFile_0; }
inline String_t** get_address_of_UriSchemeFile_0() { return &___UriSchemeFile_0; }
inline void set_UriSchemeFile_0(String_t* value)
{
___UriSchemeFile_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeFile_0), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeFtp_1() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeFtp_1)); }
inline String_t* get_UriSchemeFtp_1() const { return ___UriSchemeFtp_1; }
inline String_t** get_address_of_UriSchemeFtp_1() { return &___UriSchemeFtp_1; }
inline void set_UriSchemeFtp_1(String_t* value)
{
___UriSchemeFtp_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeFtp_1), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeGopher_2() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeGopher_2)); }
inline String_t* get_UriSchemeGopher_2() const { return ___UriSchemeGopher_2; }
inline String_t** get_address_of_UriSchemeGopher_2() { return &___UriSchemeGopher_2; }
inline void set_UriSchemeGopher_2(String_t* value)
{
___UriSchemeGopher_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeGopher_2), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeHttp_3() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeHttp_3)); }
inline String_t* get_UriSchemeHttp_3() const { return ___UriSchemeHttp_3; }
inline String_t** get_address_of_UriSchemeHttp_3() { return &___UriSchemeHttp_3; }
inline void set_UriSchemeHttp_3(String_t* value)
{
___UriSchemeHttp_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeHttp_3), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeHttps_4() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeHttps_4)); }
inline String_t* get_UriSchemeHttps_4() const { return ___UriSchemeHttps_4; }
inline String_t** get_address_of_UriSchemeHttps_4() { return &___UriSchemeHttps_4; }
inline void set_UriSchemeHttps_4(String_t* value)
{
___UriSchemeHttps_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeHttps_4), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeWs_5() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeWs_5)); }
inline String_t* get_UriSchemeWs_5() const { return ___UriSchemeWs_5; }
inline String_t** get_address_of_UriSchemeWs_5() { return &___UriSchemeWs_5; }
inline void set_UriSchemeWs_5(String_t* value)
{
___UriSchemeWs_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeWs_5), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeWss_6() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeWss_6)); }
inline String_t* get_UriSchemeWss_6() const { return ___UriSchemeWss_6; }
inline String_t** get_address_of_UriSchemeWss_6() { return &___UriSchemeWss_6; }
inline void set_UriSchemeWss_6(String_t* value)
{
___UriSchemeWss_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeWss_6), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeMailto_7() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeMailto_7)); }
inline String_t* get_UriSchemeMailto_7() const { return ___UriSchemeMailto_7; }
inline String_t** get_address_of_UriSchemeMailto_7() { return &___UriSchemeMailto_7; }
inline void set_UriSchemeMailto_7(String_t* value)
{
___UriSchemeMailto_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeMailto_7), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeNews_8() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeNews_8)); }
inline String_t* get_UriSchemeNews_8() const { return ___UriSchemeNews_8; }
inline String_t** get_address_of_UriSchemeNews_8() { return &___UriSchemeNews_8; }
inline void set_UriSchemeNews_8(String_t* value)
{
___UriSchemeNews_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeNews_8), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeNntp_9() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeNntp_9)); }
inline String_t* get_UriSchemeNntp_9() const { return ___UriSchemeNntp_9; }
inline String_t** get_address_of_UriSchemeNntp_9() { return &___UriSchemeNntp_9; }
inline void set_UriSchemeNntp_9(String_t* value)
{
___UriSchemeNntp_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeNntp_9), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeNetTcp_10() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeNetTcp_10)); }
inline String_t* get_UriSchemeNetTcp_10() const { return ___UriSchemeNetTcp_10; }
inline String_t** get_address_of_UriSchemeNetTcp_10() { return &___UriSchemeNetTcp_10; }
inline void set_UriSchemeNetTcp_10(String_t* value)
{
___UriSchemeNetTcp_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeNetTcp_10), (void*)value);
}
inline static int32_t get_offset_of_UriSchemeNetPipe_11() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___UriSchemeNetPipe_11)); }
inline String_t* get_UriSchemeNetPipe_11() const { return ___UriSchemeNetPipe_11; }
inline String_t** get_address_of_UriSchemeNetPipe_11() { return &___UriSchemeNetPipe_11; }
inline void set_UriSchemeNetPipe_11(String_t* value)
{
___UriSchemeNetPipe_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___UriSchemeNetPipe_11), (void*)value);
}
inline static int32_t get_offset_of_SchemeDelimiter_12() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___SchemeDelimiter_12)); }
inline String_t* get_SchemeDelimiter_12() const { return ___SchemeDelimiter_12; }
inline String_t** get_address_of_SchemeDelimiter_12() { return &___SchemeDelimiter_12; }
inline void set_SchemeDelimiter_12(String_t* value)
{
___SchemeDelimiter_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___SchemeDelimiter_12), (void*)value);
}
inline static int32_t get_offset_of_s_ConfigInitialized_20() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___s_ConfigInitialized_20)); }
inline bool get_s_ConfigInitialized_20() const { return ___s_ConfigInitialized_20; }
inline bool* get_address_of_s_ConfigInitialized_20() { return &___s_ConfigInitialized_20; }
inline void set_s_ConfigInitialized_20(bool value)
{
___s_ConfigInitialized_20 = value;
}
inline static int32_t get_offset_of_s_ConfigInitializing_21() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___s_ConfigInitializing_21)); }
inline bool get_s_ConfigInitializing_21() const { return ___s_ConfigInitializing_21; }
inline bool* get_address_of_s_ConfigInitializing_21() { return &___s_ConfigInitializing_21; }
inline void set_s_ConfigInitializing_21(bool value)
{
___s_ConfigInitializing_21 = value;
}
inline static int32_t get_offset_of_s_IdnScope_22() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___s_IdnScope_22)); }
inline int32_t get_s_IdnScope_22() const { return ___s_IdnScope_22; }
inline int32_t* get_address_of_s_IdnScope_22() { return &___s_IdnScope_22; }
inline void set_s_IdnScope_22(int32_t value)
{
___s_IdnScope_22 = value;
}
inline static int32_t get_offset_of_s_IriParsing_23() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___s_IriParsing_23)); }
inline bool get_s_IriParsing_23() const { return ___s_IriParsing_23; }
inline bool* get_address_of_s_IriParsing_23() { return &___s_IriParsing_23; }
inline void set_s_IriParsing_23(bool value)
{
___s_IriParsing_23 = value;
}
inline static int32_t get_offset_of_useDotNetRelativeOrAbsolute_24() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___useDotNetRelativeOrAbsolute_24)); }
inline bool get_useDotNetRelativeOrAbsolute_24() const { return ___useDotNetRelativeOrAbsolute_24; }
inline bool* get_address_of_useDotNetRelativeOrAbsolute_24() { return &___useDotNetRelativeOrAbsolute_24; }
inline void set_useDotNetRelativeOrAbsolute_24(bool value)
{
___useDotNetRelativeOrAbsolute_24 = value;
}
inline static int32_t get_offset_of_IsWindowsFileSystem_25() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___IsWindowsFileSystem_25)); }
inline bool get_IsWindowsFileSystem_25() const { return ___IsWindowsFileSystem_25; }
inline bool* get_address_of_IsWindowsFileSystem_25() { return &___IsWindowsFileSystem_25; }
inline void set_IsWindowsFileSystem_25(bool value)
{
___IsWindowsFileSystem_25 = value;
}
inline static int32_t get_offset_of_s_initLock_26() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___s_initLock_26)); }
inline RuntimeObject * get_s_initLock_26() const { return ___s_initLock_26; }
inline RuntimeObject ** get_address_of_s_initLock_26() { return &___s_initLock_26; }
inline void set_s_initLock_26(RuntimeObject * value)
{
___s_initLock_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_initLock_26), (void*)value);
}
inline static int32_t get_offset_of_HexLowerChars_27() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ___HexLowerChars_27)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_HexLowerChars_27() const { return ___HexLowerChars_27; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_HexLowerChars_27() { return &___HexLowerChars_27; }
inline void set_HexLowerChars_27(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___HexLowerChars_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HexLowerChars_27), (void*)value);
}
inline static int32_t get_offset_of__WSchars_28() { return static_cast<int32_t>(offsetof(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_StaticFields, ____WSchars_28)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get__WSchars_28() const { return ____WSchars_28; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of__WSchars_28() { return &____WSchars_28; }
inline void set__WSchars_28(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
____WSchars_28 = value;
Il2CppCodeGenWriteBarrier((void**)(&____WSchars_28), (void*)value);
}
};
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// ExitGames.Client.Photon.SocketWebTcp
struct SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 : public IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587
{
public:
// WebSocket ExitGames.Client.Photon.SocketWebTcp::sock
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * ___sock_12;
// System.Object ExitGames.Client.Photon.SocketWebTcp::syncer
RuntimeObject * ___syncer_13;
// UnityEngine.GameObject ExitGames.Client.Photon.SocketWebTcp::websocketConnectionObject
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___websocketConnectionObject_14;
public:
inline static int32_t get_offset_of_sock_12() { return static_cast<int32_t>(offsetof(SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05, ___sock_12)); }
inline WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * get_sock_12() const { return ___sock_12; }
inline WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 ** get_address_of_sock_12() { return &___sock_12; }
inline void set_sock_12(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * value)
{
___sock_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___sock_12), (void*)value);
}
inline static int32_t get_offset_of_syncer_13() { return static_cast<int32_t>(offsetof(SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05, ___syncer_13)); }
inline RuntimeObject * get_syncer_13() const { return ___syncer_13; }
inline RuntimeObject ** get_address_of_syncer_13() { return &___syncer_13; }
inline void set_syncer_13(RuntimeObject * value)
{
___syncer_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___syncer_13), (void*)value);
}
inline static int32_t get_offset_of_websocketConnectionObject_14() { return static_cast<int32_t>(offsetof(SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05, ___websocketConnectionObject_14)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_websocketConnectionObject_14() const { return ___websocketConnectionObject_14; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_websocketConnectionObject_14() { return &___websocketConnectionObject_14; }
inline void set_websocketConnectionObject_14(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___websocketConnectionObject_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___websocketConnectionObject_14), (void*)value);
}
};
// System.ArgumentException
struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
// System.String System.ArgumentException::m_paramName
String_t* ___m_paramName_17;
public:
inline static int32_t get_offset_of_m_paramName_17() { return static_cast<int32_t>(offsetof(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1, ___m_paramName_17)); }
inline String_t* get_m_paramName_17() const { return ___m_paramName_17; }
inline String_t** get_address_of_m_paramName_17() { return &___m_paramName_17; }
inline void set_m_paramName_17(String_t* value)
{
___m_paramName_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_paramName_17), (void*)value);
}
};
// System.NotSupportedException
struct NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
public:
};
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// ExitGames.Client.Photon.SocketWebTcp_MonoBehaviourExt
struct MonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Byte[]
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821 : public RuntimeArray
{
public:
ALIGN_FIELD (8) uint8_t m_Items[1];
public:
inline uint8_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline uint8_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, uint8_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline uint8_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline uint8_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, uint8_t value)
{
m_Items[index] = value;
}
};
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A : 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((void**)m_Items + index, (void*)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((void**)m_Items + index, (void*)value);
}
};
// !!0 UnityEngine.GameObject::AddComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_AddComponent_TisRuntimeObject_m80EDFEAC4927F588A7A702F81524EDBFA8603FE2_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Void System.Object::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0 (RuntimeObject * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.IPhotonSocket::.ctor(ExitGames.Client.Photon.PeerBase)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IPhotonSocket__ctor_mA0C8A34D0778116D5C56115CA48E8B358DE8D2FA (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___peerBase0, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.PeerBase::get_ServerAddress()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR String_t* PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.IPhotonSocket::set_ServerAddress(System.String)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void IPhotonSocket_set_ServerAddress_m910219EE93B8B1D338F86AB111DC5B0DF22D1B96_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Boolean ExitGames.Client.Photon.IPhotonSocket::ReportDebugOfLevel(ExitGames.Client.Photon.DebugLevel)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6 (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, uint8_t ___levelOfMessage0, const RuntimeMethod* method);
// ExitGames.Client.Photon.IPhotonPeerListener ExitGames.Client.Photon.IPhotonSocket::get_Listener()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6 (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.IPhotonSocket::get_ServerAddress()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR String_t* IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method);
// System.String System.String::Concat(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE (String_t* ___str00, String_t* ___str11, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.IPhotonSocket::set_State(ExitGames.Client.Photon.PhotonSocketState)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Boolean WebSocket::get_Connected()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool WebSocket_get_Connected_m1C81E20F99151E858869D09376F1AE424B9C0E5D (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method);
// System.Void WebSocket::Close()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_Close_m6B90FA1A407C8656164EF39654DC599A59D89A39 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method);
// System.String System.String::Concat(System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mBB19C73816BDD1C3519F248E1ADC8E11A6FDB495 (RuntimeObject * ___arg00, RuntimeObject * ___arg11, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.IPhotonSocket::EnqueueDebugReturn(ExitGames.Client.Photon.DebugLevel,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IPhotonSocket_EnqueueDebugReturn_m10CCC336C219196818A745EAD556E48343B03D6D (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, uint8_t ___debugLevel0, String_t* ___message1, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
// System.Void UnityEngine.Object::Destroy(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___obj0, const RuntimeMethod* method);
// System.Void UnityEngine.GameObject::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, String_t* ___name0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<ExitGames.Client.Photon.SocketWebTcp/MonoBehaviourExt>()
inline MonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62 * GameObject_AddComponent_TisMonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62_m2BDB16A91BD72D7BFD24E899E59A050F3C183BE1 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( MonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_m80EDFEAC4927F588A7A702F81524EDBFA8603FE2_gshared)(__this, method);
}
// System.Void UnityEngine.Object::set_hideFlags(UnityEngine.HideFlags)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_set_hideFlags_mB0B45A19A5871EF407D7B09E0EB76003496BA4F0 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Object::DontDestroyOnLoad(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_DontDestroyOnLoad_m4DC90770AD6084E4B1B8489C6B41205DC020C207 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___target0, const RuntimeMethod* method);
// System.Void System.Uri::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Uri__ctor_mBA69907A1D799CD12ED44B611985B25FE4C626A2 (Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * __this, String_t* ___uriString0, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.IPhotonSocket::get_SerializationProtocol()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* IPhotonSocket_get_SerializationProtocol_m3A7A47D1F23FC2F33D6DB9CFA51C9A97CD6DCBD8 (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method);
// System.Void WebSocket::.ctor(System.Uri,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * ___url0, String_t* ___serialization1, const RuntimeMethod* method);
// System.Void WebSocket::Connect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_Connect_m718C25341A77457BEF505EBB148B7D8F136BD750 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method);
// System.Collections.IEnumerator ExitGames.Client.Photon.SocketWebTcp::ReceiveLoop()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70 (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, const RuntimeMethod* method);
// UnityEngine.Coroutine UnityEngine.MonoBehaviour::StartCoroutine(System.Collections.IEnumerator)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * MonoBehaviour_StartCoroutine_mBF8044CE06A35D76A69669ADD8977D05956616B7 (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, RuntimeObject* ___routine0, const RuntimeMethod* method);
// System.Void System.Threading.Monitor::Enter(System.Object,System.Boolean&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Monitor_Enter_mC5B353DD83A0B0155DF6FBCC4DF5A580C25534C5 (RuntimeObject * ___obj0, bool* ___lockTaken1, const RuntimeMethod* method);
// System.Void System.Threading.Monitor::Exit(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2 (RuntimeObject * ___obj0, const RuntimeMethod* method);
// ExitGames.Client.Photon.PhotonSocketState ExitGames.Client.Photon.IPhotonSocket::get_State()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method);
// System.Void System.Buffer::BlockCopy(System.Array,System.Int32,System.Array,System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Buffer_BlockCopy_m1F882D595976063718AF6E405664FC761924D353 (RuntimeArray * ___src0, int32_t ___srcOffset1, RuntimeArray * ___dst2, int32_t ___dstOffset3, int32_t ___count4, const RuntimeMethod* method);
// System.String ExitGames.Client.Photon.SupportClass::ByteArrayToString(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1 (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___list0, const RuntimeMethod* method);
// System.Void WebSocket::Send(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_Send_mACD0C71153FD5E84CD2027379B702F64CC59A70A (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buffer0, const RuntimeMethod* method);
// System.String System.String::Concat(System.String,System.String,System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mDD2E38332DED3A8C088D38D78A0E0BEB5091DA64 (String_t* ___str00, String_t* ___str11, String_t* ___str22, String_t* ___str33, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.IPhotonSocket::HandleException(ExitGames.Client.Photon.StatusCode)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9 (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, int32_t ___statusCode0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.SocketWebTcp/<ReceiveLoop>d__12::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CReceiveLoopU3Ed__12__ctor_mD84B898C6C4D7FF90EBEDDD300DA387BD196C21F (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, int32_t ___U3CU3E1__state0, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.WaitForRealSeconds::.ctor(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WaitForRealSeconds__ctor_m5D74E80850385FFB772B318E99AC587BD306106C (WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B * __this, float ___seconds0, const RuntimeMethod* method);
// System.String WebSocket::get_Error()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method);
// System.Int32 ExitGames.Client.Photon.IPhotonSocket::get_ServerPort()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t IPhotonSocket_get_ServerPort_m85638BB2174A42FB9AB49E39E1F6D611E5F22028_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method);
// System.String System.String::Concat(System.Object[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mB7BA84F13912303B2E5E40FBF0109E1A328ACA07 (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args0, const RuntimeMethod* method);
// System.Byte[] WebSocket::Recv()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method);
// System.Void ExitGames.Client.Photon.IPhotonSocket::HandleReceivedDatagram(System.Byte[],System.Int32,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void IPhotonSocket_HandleReceivedDatagram_m54B1ADEC42A1B461E5DC1F9BF30EE03186E842B3 (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___inBuffer0, int32_t ___length1, bool ___willBeReused2, const RuntimeMethod* method);
// System.Void System.NotSupportedException::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NotSupportedException__ctor_mA121DE1CAC8F25277DEB489DC7771209D91CAE33 (NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.MonoBehaviour::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97 (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, const RuntimeMethod* method);
// System.Single UnityEngine.Time::get_realtimeSinceStartup()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Time_get_realtimeSinceStartup_mCA1086EC9DFCF135F77BC46D3B7127711EA3DE03 (const RuntimeMethod* method);
// System.Void UnityEngine.CustomYieldInstruction::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void CustomYieldInstruction__ctor_m06E2B5BC73763FE2E734FAA600D567701EA21EC5 (CustomYieldInstruction_t819BB0973AFF22766749FF087B8AEFEAF3C2CB7D * __this, const RuntimeMethod* method);
// System.String System.Uri::get_Scheme()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Uri_get_Scheme_m14A8F0018D8AACADBEF39600A59944F33EE39187 (Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * __this, const RuntimeMethod* method);
// System.Boolean System.String::Equals(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_Equals_m9C4D78DFA0979504FE31429B64A4C26DF48020D1 (String_t* __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void System.ArgumentException::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7 (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * __this, String_t* ___message0, const RuntimeMethod* method);
// System.Text.Encoding System.Text.Encoding::get_UTF8()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * Encoding_get_UTF8_m67C8652936B681E7BC7505E459E88790E0FF16D9 (const RuntimeMethod* method);
// System.Void WebSocket::SocketSend(System.Int32,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SocketSend_m8904F854B2067C30E91AEFFB00EB0E5CD482A438 (int32_t ___socketInstance0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___ptr1, int32_t ___length2, const RuntimeMethod* method);
// System.Int32 WebSocket::SocketRecvLength(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketRecvLength_m9EBA5464DB624650083C7D0F1DD3164E2D333484 (int32_t ___socketInstance0, const RuntimeMethod* method);
// System.Void WebSocket::SocketRecv(System.Int32,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SocketRecv_mF5D7669F0A55DC6F5FD72A84C25D665D8B33AA55 (int32_t ___socketInstance0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___ptr1, int32_t ___length2, const RuntimeMethod* method);
// System.Int32 WebSocket::SocketCreate(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketCreate_m2E87311952C480797C579A66CFF38B955599BC70 (String_t* ___url0, String_t* ___protocols1, const RuntimeMethod* method);
// System.Void WebSocket::SocketClose(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SocketClose_mD92515A97D30554F43355DDA18C08BA09D272CB2 (int32_t ___socketInstance0, const RuntimeMethod* method);
// System.Int32 WebSocket::SocketState(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketState_m0F9859F79B80FA190FB9DB0AE55B283C643C13DB (int32_t ___socketInstance0, const RuntimeMethod* method);
// System.Int32 WebSocket::SocketError(System.Int32,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketError_m90E2FF27FC4F47C5B081EA2193AE92451770940A (int32_t ___socketInstance0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___ptr1, int32_t ___length2, const RuntimeMethod* method);
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void ExitGames.Client.Photon.SocketWebTcp::.ctor(ExitGames.Client.Photon.PeerBase)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SocketWebTcp__ctor_m0F4F1DF0C9E1EDC0F42A531638FAAA36F40DF199 (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * ___npeer0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SocketWebTcp__ctor_m0F4F1DF0C9E1EDC0F42A531638FAAA36F40DF199_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
// private readonly object syncer = new object();
RuntimeObject * L_0 = (RuntimeObject *)il2cpp_codegen_object_new(RuntimeObject_il2cpp_TypeInfo_var);
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(L_0, /*hidden argument*/NULL);
__this->set_syncer_13(L_0);
// public SocketWebTcp(PeerBase npeer) : base(npeer)
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * L_1 = ___npeer0;
IPhotonSocket__ctor_mA0C8A34D0778116D5C56115CA48E8B358DE8D2FA(__this, L_1, /*hidden argument*/NULL);
// this.ServerAddress = npeer.ServerAddress;
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * L_2 = ___npeer0;
String_t* L_3 = PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0_inline(L_2, /*hidden argument*/NULL);
IPhotonSocket_set_ServerAddress_m910219EE93B8B1D338F86AB111DC5B0DF22D1B96_inline(__this, L_3, /*hidden argument*/NULL);
// if (this.ReportDebugOfLevel(DebugLevel.INFO))
bool L_4 = IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6(__this, 3, /*hidden argument*/NULL);
V_0 = L_4;
bool L_5 = V_0;
if (!L_5)
{
goto IL_004b;
}
}
{
// this.Listener.DebugReturn(DebugLevel.INFO, "new SocketWebTcp() for Unity. Server: " + this.ServerAddress);
RuntimeObject* L_6 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(__this, /*hidden argument*/NULL);
String_t* L_7 = IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline(__this, /*hidden argument*/NULL);
String_t* L_8 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteralCA881053856A40960971364BD00D2EC97D0F9AE0, L_7, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_6, 3, L_8);
}
IL_004b:
{
// this.PollReceive = false;
((IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 *)__this)->set_PollReceive_2((bool)0);
// }
return;
}
}
// System.Void ExitGames.Client.Photon.SocketWebTcp::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SocketWebTcp_Dispose_mD73D71D21C4D7AF4F35D5E63034C589E44E47514 (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SocketWebTcp_Dispose_mD73D71D21C4D7AF4F35D5E63034C589E44E47514_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
Exception_t * 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);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// this.State = PhotonSocketState.Disconnecting;
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline(__this, 3, /*hidden argument*/NULL);
// if (this.sock != null)
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_0 = __this->get_sock_12();
V_0 = (bool)((!(((RuntimeObject*)(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)L_0) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_004f;
}
}
{
}
IL_0017:
try
{ // begin try (depth: 1)
{
// if (this.sock.Connected) this.sock.Close();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_2 = __this->get_sock_12();
bool L_3 = WebSocket_get_Connected_m1C81E20F99151E858869D09376F1AE424B9C0E5D(L_2, /*hidden argument*/NULL);
V_1 = L_3;
bool L_4 = V_1;
if (!L_4)
{
goto IL_0033;
}
}
IL_0027:
{
// if (this.sock.Connected) this.sock.Close();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_5 = __this->get_sock_12();
WebSocket_Close_m6B90FA1A407C8656164EF39654DC599A59D89A39(L_5, /*hidden argument*/NULL);
}
IL_0033:
{
goto IL_004e;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0036;
throw e;
}
CATCH_0036:
{ // begin catch(System.Exception)
// catch (Exception ex)
V_2 = ((Exception_t *)__exception_local);
// this.EnqueueDebugReturn(DebugLevel.INFO, "Exception in Dispose(): " + ex);
Exception_t * L_6 = V_2;
String_t* L_7 = String_Concat_mBB19C73816BDD1C3519F248E1ADC8E11A6FDB495(_stringLiteral5C0F1931205BEB656BDBEE03B33372A5D2708DA5, L_6, /*hidden argument*/NULL);
IPhotonSocket_EnqueueDebugReturn_m10CCC336C219196818A745EAD556E48343B03D6D(__this, 3, L_7, /*hidden argument*/NULL);
goto IL_004e;
} // end catch (depth: 1)
IL_004e:
{
}
IL_004f:
{
// this.sock = null;
__this->set_sock_12((WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)NULL);
// this.State = PhotonSocketState.Disconnected;
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline(__this, 0, /*hidden argument*/NULL);
// }
return;
}
}
// System.Boolean ExitGames.Client.Photon.SocketWebTcp::Connect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SocketWebTcp_Connect_m6C42A78E9138498FC45D5BAAFA50C6BCD5628314 (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SocketWebTcp_Connect_m6C42A78E9138498FC45D5BAAFA50C6BCD5628314_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
{
// this.State = PhotonSocketState.Connecting;
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline(__this, 1, /*hidden argument*/NULL);
// if (this.websocketConnectionObject != null)
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_websocketConnectionObject_14();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
V_1 = L_1;
bool L_2 = V_1;
if (!L_2)
{
goto IL_0027;
}
}
{
// UnityEngine.Object.Destroy(this.websocketConnectionObject);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_3 = __this->get_websocketConnectionObject_14();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_3, /*hidden argument*/NULL);
}
IL_0027:
{
// this.websocketConnectionObject = new GameObject("websocketConnectionObject");
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)il2cpp_codegen_object_new(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var);
GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686(L_4, _stringLiteral498118096F2D17F55E0FAC7A2793779D847AF121, /*hidden argument*/NULL);
__this->set_websocketConnectionObject_14(L_4);
// MonoBehaviour mb = this.websocketConnectionObject.AddComponent<MonoBehaviourExt>();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_5 = __this->get_websocketConnectionObject_14();
MonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62 * L_6 = GameObject_AddComponent_TisMonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62_m2BDB16A91BD72D7BFD24E899E59A050F3C183BE1(L_5, /*hidden argument*/GameObject_AddComponent_TisMonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62_m2BDB16A91BD72D7BFD24E899E59A050F3C183BE1_RuntimeMethod_var);
V_0 = L_6;
// this.websocketConnectionObject.hideFlags = HideFlags.HideInHierarchy;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = __this->get_websocketConnectionObject_14();
Object_set_hideFlags_mB0B45A19A5871EF407D7B09E0EB76003496BA4F0(L_7, 1, /*hidden argument*/NULL);
// UnityEngine.Object.DontDestroyOnLoad(this.websocketConnectionObject);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = __this->get_websocketConnectionObject_14();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_DontDestroyOnLoad_m4DC90770AD6084E4B1B8489C6B41205DC020C207(L_8, /*hidden argument*/NULL);
// this.sock = new WebSocket(new Uri(this.ConnectAddress), this.SerializationProtocol);
String_t* L_9 = ((IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 *)__this)->get_ConnectAddress_4();
Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * L_10 = (Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E *)il2cpp_codegen_object_new(Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E_il2cpp_TypeInfo_var);
Uri__ctor_mBA69907A1D799CD12ED44B611985B25FE4C626A2(L_10, L_9, /*hidden argument*/NULL);
String_t* L_11 = IPhotonSocket_get_SerializationProtocol_m3A7A47D1F23FC2F33D6DB9CFA51C9A97CD6DCBD8(__this, /*hidden argument*/NULL);
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_12 = (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)il2cpp_codegen_object_new(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1_il2cpp_TypeInfo_var);
WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20(L_12, L_10, L_11, /*hidden argument*/NULL);
__this->set_sock_12(L_12);
// this.sock.Connect();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_13 = __this->get_sock_12();
WebSocket_Connect_m718C25341A77457BEF505EBB148B7D8F136BD750(L_13, /*hidden argument*/NULL);
// mb.StartCoroutine(this.ReceiveLoop());
MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * L_14 = V_0;
RuntimeObject* L_15 = SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70(__this, /*hidden argument*/NULL);
MonoBehaviour_StartCoroutine_mBF8044CE06A35D76A69669ADD8977D05956616B7(L_14, L_15, /*hidden argument*/NULL);
// return true;
V_2 = (bool)1;
goto IL_0095;
}
IL_0095:
{
// }
bool L_16 = V_2;
return L_16;
}
}
// System.Boolean ExitGames.Client.Photon.SocketWebTcp::Disconnect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SocketWebTcp_Disconnect_m02753D61D41DF0F28806333CFDD46E9C0B084E95 (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SocketWebTcp_Disconnect_m02753D61D41DF0F28806333CFDD46E9C0B084E95_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
RuntimeObject * V_1 = NULL;
bool V_2 = false;
bool V_3 = false;
Exception_t * V_4 = NULL;
bool V_5 = false;
bool V_6 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 3);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (this.ReportDebugOfLevel(DebugLevel.INFO))
bool L_0 = IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6(__this, 3, /*hidden argument*/NULL);
V_0 = L_0;
bool L_1 = V_0;
if (!L_1)
{
goto IL_0020;
}
}
{
// this.Listener.DebugReturn(DebugLevel.INFO, "SocketWebTcp.Disconnect()");
RuntimeObject* L_2 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(__this, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_2, 3, _stringLiteralE37C4CFBAB05794477AF10FD4166E8AE5B3F2247);
}
IL_0020:
{
// this.State = PhotonSocketState.Disconnecting;
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline(__this, 3, /*hidden argument*/NULL);
// lock (this.syncer)
RuntimeObject * L_3 = __this->get_syncer_13();
V_1 = L_3;
V_2 = (bool)0;
}
IL_0031:
try
{ // begin try (depth: 1)
{
RuntimeObject * L_4 = V_1;
Monitor_Enter_mC5B353DD83A0B0155DF6FBCC4DF5A580C25534C5(L_4, (bool*)(&V_2), /*hidden argument*/NULL);
// if (this.sock != null)
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_5 = __this->get_sock_12();
V_3 = (bool)((!(((RuntimeObject*)(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)L_5) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_6 = V_3;
if (!L_6)
{
goto IL_0080;
}
}
IL_0048:
{
}
IL_0049:
try
{ // begin try (depth: 2)
// this.sock.Close();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_7 = __this->get_sock_12();
WebSocket_Close_m6B90FA1A407C8656164EF39654DC599A59D89A39(L_7, /*hidden argument*/NULL);
goto IL_0078;
} // end try (depth: 2)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0059;
throw e;
}
CATCH_0059:
{ // begin catch(System.Exception)
// catch (Exception ex)
V_4 = ((Exception_t *)__exception_local);
// this.Listener.DebugReturn(DebugLevel.ERROR, "Exception in Disconnect(): " + ex);
RuntimeObject* L_8 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(__this, /*hidden argument*/NULL);
Exception_t * L_9 = V_4;
String_t* L_10 = String_Concat_mBB19C73816BDD1C3519F248E1ADC8E11A6FDB495(_stringLiteralC5E415532AEDFF33CF1D61EE70F18E1F52637895, L_9, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_8, 1, L_10);
goto IL_0078;
} // end catch (depth: 2)
IL_0078:
{
// this.sock = null;
__this->set_sock_12((WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)NULL);
}
IL_0080:
{
IL2CPP_LEAVE(0x8E, FINALLY_0083);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0083;
}
FINALLY_0083:
{ // begin finally (depth: 1)
{
bool L_11 = V_2;
if (!L_11)
{
goto IL_008d;
}
}
IL_0086:
{
RuntimeObject * L_12 = V_1;
Monitor_Exit_m49A1E5356D984D0B934BB97A305E2E5E207225C2(L_12, /*hidden argument*/NULL);
}
IL_008d:
{
IL2CPP_END_FINALLY(131)
}
} // end finally (depth: 1)
IL2CPP_CLEANUP(131)
{
IL2CPP_JUMP_TBL(0x8E, IL_008e)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_008e:
{
// if (this.websocketConnectionObject != null)
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_13 = __this->get_websocketConnectionObject_14();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_14 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_13, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
V_5 = L_14;
bool L_15 = V_5;
if (!L_15)
{
goto IL_00ae;
}
}
{
// UnityEngine.Object.Destroy(this.websocketConnectionObject);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_16 = __this->get_websocketConnectionObject_14();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_16, /*hidden argument*/NULL);
}
IL_00ae:
{
// this.State = PhotonSocketState.Disconnected;
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline(__this, 0, /*hidden argument*/NULL);
// return true;
V_6 = (bool)1;
goto IL_00bb;
}
IL_00bb:
{
// }
bool L_17 = V_6;
return L_17;
}
}
// ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketWebTcp::Send(System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SocketWebTcp_Send_m38322896DD1584529859D53EC97EFD094C9BF48F (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___data0, int32_t ___length1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SocketWebTcp_Send_m38322896DD1584529859D53EC97EFD094C9BF48F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t V_1 = 0;
bool V_2 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_3 = NULL;
bool V_4 = false;
bool V_5 = false;
Exception_t * V_6 = NULL;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (this.State != PhotonSocketState.Connected)
int32_t L_0 = IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline(__this, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)((((int32_t)L_0) == ((int32_t)2))? 1 : 0)) == ((int32_t)0))? 1 : 0);
bool L_1 = V_0;
if (!L_1)
{
goto IL_0019;
}
}
{
// return PhotonSocketError.Skipped;
V_1 = 1;
goto IL_00c9;
}
IL_0019:
{
}
IL_001a:
try
{ // begin try (depth: 1)
{
// if (data.Length > length)
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = ___data0;
int32_t L_3 = ___length1;
V_2 = (bool)((((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_2)->max_length))))) > ((int32_t)L_3))? 1 : 0);
bool L_4 = V_2;
if (!L_4)
{
goto IL_003c;
}
}
IL_0025:
{
// byte[] trimmedData = new byte[length];
int32_t L_5 = ___length1;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_6 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_5);
V_3 = L_6;
// Buffer.BlockCopy(data, 0, trimmedData, 0, length);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = ___data0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_8 = V_3;
int32_t L_9 = ___length1;
Buffer_BlockCopy_m1F882D595976063718AF6E405664FC761924D353((RuntimeArray *)(RuntimeArray *)L_7, 0, (RuntimeArray *)(RuntimeArray *)L_8, 0, L_9, /*hidden argument*/NULL);
// data = trimmedData;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = V_3;
___data0 = L_10;
}
IL_003c:
{
// if (this.ReportDebugOfLevel(DebugLevel.ALL))
bool L_11 = IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6(__this, 5, /*hidden argument*/NULL);
V_4 = L_11;
bool L_12 = V_4;
if (!L_12)
{
goto IL_0068;
}
}
IL_0049:
{
// this.Listener.DebugReturn(DebugLevel.ALL, "Sending: " + SupportClassPun.ByteArrayToString(data));
RuntimeObject* L_13 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(__this, /*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_14 = ___data0;
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
String_t* L_15 = SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1(L_14, /*hidden argument*/NULL);
String_t* L_16 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteral1121626CDA8822F6C270AC85EA7EC7F26F8ACDDB, L_15, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_13, 5, L_16);
}
IL_0068:
{
// if (this.sock != null)
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_17 = __this->get_sock_12();
V_5 = (bool)((!(((RuntimeObject*)(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)L_17) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_18 = V_5;
if (!L_18)
{
goto IL_0086;
}
}
IL_0077:
{
// this.sock.Send(data);
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_19 = __this->get_sock_12();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_20 = ___data0;
WebSocket_Send_mACD0C71153FD5E84CD2027379B702F64CC59A70A(L_19, L_20, /*hidden argument*/NULL);
}
IL_0086:
{
goto IL_00c5;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_0089;
throw e;
}
CATCH_0089:
{ // begin catch(System.Exception)
// catch (Exception e)
V_6 = ((Exception_t *)__exception_local);
// this.Listener.DebugReturn(DebugLevel.ERROR, "Cannot send to: " + this.ServerAddress + ". " + e.Message);
RuntimeObject* L_21 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(__this, /*hidden argument*/NULL);
String_t* L_22 = IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline(__this, /*hidden argument*/NULL);
Exception_t * L_23 = V_6;
String_t* L_24 = VirtFuncInvoker0< String_t* >::Invoke(5 /* System.String System.Exception::get_Message() */, L_23);
String_t* L_25 = String_Concat_mDD2E38332DED3A8C088D38D78A0E0BEB5091DA64(_stringLiteralCCFA3E06472B96F7C2C1B003D7AB4B66602E04FE, L_22, _stringLiteral94C67DA09E3C3949480AC8458C225636B0DD8B77, L_24, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_21, 1, L_25);
// this.HandleException(StatusCode.Exception);
IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9(__this, ((int32_t)1026), /*hidden argument*/NULL);
// return PhotonSocketError.Exception;
V_1 = 3;
goto IL_00c9;
} // end catch (depth: 1)
IL_00c5:
{
// return PhotonSocketError.Success;
V_1 = 0;
goto IL_00c9;
}
IL_00c9:
{
// }
int32_t L_26 = V_1;
return L_26;
}
}
// ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketWebTcp::Receive(System.Byte[]&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SocketWebTcp_Receive_m1D94A61941F63E15B7F4C173976EC87A18ACE2DB (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** ___data0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
// data = null;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** L_0 = ___data0;
*((RuntimeObject **)L_0) = (RuntimeObject *)NULL;
Il2CppCodeGenWriteBarrier((void**)(RuntimeObject **)L_0, (void*)(RuntimeObject *)NULL);
// return PhotonSocketError.NoData;
V_0 = 2;
goto IL_0008;
}
IL_0008:
{
// }
int32_t L_1 = V_0;
return L_1;
}
}
// System.Collections.IEnumerator ExitGames.Client.Photon.SocketWebTcp::ReceiveLoop()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70 (SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * L_0 = (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 *)il2cpp_codegen_object_new(U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18_il2cpp_TypeInfo_var);
U3CReceiveLoopU3Ed__12__ctor_mD84B898C6C4D7FF90EBEDDD300DA387BD196C21F(L_0, 0, /*hidden argument*/NULL);
U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * L_1 = L_0;
L_1->set_U3CU3E4__this_2(__this);
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 ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::.ctor(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CReceiveLoopU3Ed__12__ctor_mD84B898C6C4D7FF90EBEDDD300DA387BD196C21F (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, int32_t ___U3CU3E1__state0, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
int32_t L_0 = ___U3CU3E1__state0;
__this->set_U3CU3E1__state_0(L_0);
return;
}
}
// System.Void ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.IDisposable.Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CReceiveLoopU3Ed__12_System_IDisposable_Dispose_m45EE99B4D723F3A3047D9CEF7CC5034DC1688E26 (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, const RuntimeMethod* method)
{
{
return;
}
}
// System.Boolean ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::MoveNext()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CReceiveLoopU3Ed__12_MoveNext_mD0BDF116134D6EA3C97E70685F10F839A03E221B (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CReceiveLoopU3Ed__12_MoveNext_mD0BDF116134D6EA3C97E70685F10F839A03E221B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
bool V_7 = false;
bool V_8 = false;
bool V_9 = false;
bool V_10 = false;
Exception_t * V_11 = NULL;
bool V_12 = false;
bool V_13 = false;
bool V_14 = false;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
int32_t G_B14_0 = 0;
int32_t G_B27_0 = 0;
int32_t G_B38_0 = 0;
{
int32_t L_0 = __this->get_U3CU3E1__state_0();
V_0 = L_0;
int32_t L_1 = V_0;
switch (L_1)
{
case 0:
{
goto IL_001b;
}
case 1:
{
goto IL_001d;
}
case 2:
{
goto IL_001f;
}
}
}
{
goto IL_0024;
}
IL_001b:
{
goto IL_0026;
}
IL_001d:
{
goto IL_0060;
}
IL_001f:
{
goto IL_02b9;
}
IL_0024:
{
return (bool)0;
}
IL_0026:
{
__this->set_U3CU3E1__state_0((-1));
// if (this.sock != null)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_2 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_3 = L_2->get_sock_12();
V_1 = (bool)((!(((RuntimeObject*)(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)L_3) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_4 = V_1;
if (!L_4)
{
goto IL_0436;
}
}
{
goto IL_0068;
}
IL_0046:
{
// yield return new WaitForRealSeconds(0.1f);
WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B * L_5 = (WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B *)il2cpp_codegen_object_new(WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B_il2cpp_TypeInfo_var);
WaitForRealSeconds__ctor_m5D74E80850385FFB772B318E99AC587BD306106C(L_5, (0.1f), /*hidden argument*/NULL);
__this->set_U3CU3E2__current_1(L_5);
__this->set_U3CU3E1__state_0(1);
return (bool)1;
}
IL_0060:
{
__this->set_U3CU3E1__state_0((-1));
}
IL_0068:
{
// while (this.sock != null && !this.sock.Connected && this.sock.Error == null)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_6 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_7 = L_6->get_sock_12();
if (!L_7)
{
goto IL_009c;
}
}
{
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_8 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_9 = L_8->get_sock_12();
bool L_10 = WebSocket_get_Connected_m1C81E20F99151E858869D09376F1AE424B9C0E5D(L_9, /*hidden argument*/NULL);
if (L_10)
{
goto IL_009c;
}
}
{
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_11 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_12 = L_11->get_sock_12();
String_t* L_13 = WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492(L_12, /*hidden argument*/NULL);
G_B14_0 = ((((RuntimeObject*)(String_t*)L_13) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
goto IL_009d;
}
IL_009c:
{
G_B14_0 = 0;
}
IL_009d:
{
V_2 = (bool)G_B14_0;
bool L_14 = V_2;
if (L_14)
{
goto IL_0046;
}
}
{
// if (this.sock != null)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_15 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_16 = L_15->get_sock_12();
V_3 = (bool)((!(((RuntimeObject*)(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)L_16) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_17 = V_3;
if (!L_17)
{
goto IL_0435;
}
}
{
// if (this.sock.Error != null)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_18 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_19 = L_18->get_sock_12();
String_t* L_20 = WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492(L_19, /*hidden argument*/NULL);
V_4 = (bool)((!(((RuntimeObject*)(String_t*)L_20) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_21 = V_4;
if (!L_21)
{
goto IL_0154;
}
}
{
// this.Listener.DebugReturn(DebugLevel.ERROR, "Exiting receive thread. Server: " + this.ServerAddress + ":" + this.ServerPort + " Error: " + this.sock.Error);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_22 = __this->get_U3CU3E4__this_2();
RuntimeObject* L_23 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(L_22, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_24 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)6);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_25 = L_24;
ArrayElementTypeCheck (L_25, _stringLiteral8BEFC06B50F7D6242FE4EEB12EC7AE67DD15D9CB);
(L_25)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteral8BEFC06B50F7D6242FE4EEB12EC7AE67DD15D9CB);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_26 = L_25;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_27 = __this->get_U3CU3E4__this_2();
String_t* L_28 = IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline(L_27, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_26, L_28);
(L_26)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_28);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_29 = L_26;
ArrayElementTypeCheck (L_29, _stringLiteral05A79F06CF3F67F726DAE68D18A2290F6C9A50C9);
(L_29)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral05A79F06CF3F67F726DAE68D18A2290F6C9A50C9);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_30 = L_29;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_31 = __this->get_U3CU3E4__this_2();
int32_t L_32 = IPhotonSocket_get_ServerPort_m85638BB2174A42FB9AB49E39E1F6D611E5F22028_inline(L_31, /*hidden argument*/NULL);
int32_t L_33 = L_32;
RuntimeObject * L_34 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_33);
ArrayElementTypeCheck (L_30, L_34);
(L_30)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_34);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_35 = L_30;
ArrayElementTypeCheck (L_35, _stringLiteral4CE93410B4EA19AEDAC5AC09A95AF9631E8BCC73);
(L_35)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)_stringLiteral4CE93410B4EA19AEDAC5AC09A95AF9631E8BCC73);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_36 = L_35;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_37 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_38 = L_37->get_sock_12();
String_t* L_39 = WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492(L_38, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_36, L_39);
(L_36)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(5), (RuntimeObject *)L_39);
String_t* L_40 = String_Concat_mB7BA84F13912303B2E5E40FBF0109E1A328ACA07(L_36, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_23, 1, L_40);
// this.HandleException(StatusCode.ExceptionOnConnect);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_41 = __this->get_U3CU3E4__this_2();
IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9(L_41, ((int32_t)1023), /*hidden argument*/NULL);
goto IL_0434;
}
IL_0154:
{
// if (this.ReportDebugOfLevel(DebugLevel.ALL))
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_42 = __this->get_U3CU3E4__this_2();
bool L_43 = IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6(L_42, 5, /*hidden argument*/NULL);
V_5 = L_43;
bool L_44 = V_5;
if (!L_44)
{
goto IL_0195;
}
}
{
// this.Listener.DebugReturn(DebugLevel.ALL, "Receiving by websocket. this.State: " + this.State);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_45 = __this->get_U3CU3E4__this_2();
RuntimeObject* L_46 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(L_45, /*hidden argument*/NULL);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_47 = __this->get_U3CU3E4__this_2();
int32_t L_48 = IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline(L_47, /*hidden argument*/NULL);
int32_t L_49 = L_48;
RuntimeObject * L_50 = Box(PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4_il2cpp_TypeInfo_var, &L_49);
String_t* L_51 = String_Concat_mBB19C73816BDD1C3519F248E1ADC8E11A6FDB495(_stringLiteralE195846A0092CA96F9669413CD1682EE524A1508, L_50, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_46, 5, L_51);
}
IL_0195:
{
// this.State = PhotonSocketState.Connected;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_52 = __this->get_U3CU3E4__this_2();
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline(L_52, 2, /*hidden argument*/NULL);
// this.peerBase.OnConnect();
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_53 = __this->get_U3CU3E4__this_2();
PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * L_54 = ((IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 *)L_53)->get_peerBase_0();
VirtActionInvoker0::Invoke(11 /* System.Void ExitGames.Client.Photon.PeerBase::OnConnect() */, L_54);
goto IL_041c;
}
IL_01b8:
{
// if (this.sock != null)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_55 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_56 = L_55->get_sock_12();
V_6 = (bool)((!(((RuntimeObject*)(WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 *)L_56) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_57 = V_6;
if (!L_57)
{
goto IL_041b;
}
}
{
// if (this.sock.Error != null)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_58 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_59 = L_58->get_sock_12();
String_t* L_60 = WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492(L_59, /*hidden argument*/NULL);
V_7 = (bool)((!(((RuntimeObject*)(String_t*)L_60) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_61 = V_7;
if (!L_61)
{
goto IL_026d;
}
}
{
// this.Listener.DebugReturn(DebugLevel.ERROR, "Exiting receive thread (inside loop). Server: " + this.ServerAddress + ":" + this.ServerPort + " Error: " + this.sock.Error);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_62 = __this->get_U3CU3E4__this_2();
RuntimeObject* L_63 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(L_62, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_64 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)6);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_65 = L_64;
ArrayElementTypeCheck (L_65, _stringLiteralD28E20F790C8A4363F46ED50CE5B0A7F04B69304);
(L_65)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteralD28E20F790C8A4363F46ED50CE5B0A7F04B69304);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_66 = L_65;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_67 = __this->get_U3CU3E4__this_2();
String_t* L_68 = IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline(L_67, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_66, L_68);
(L_66)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_68);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_69 = L_66;
ArrayElementTypeCheck (L_69, _stringLiteral05A79F06CF3F67F726DAE68D18A2290F6C9A50C9);
(L_69)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral05A79F06CF3F67F726DAE68D18A2290F6C9A50C9);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_70 = L_69;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_71 = __this->get_U3CU3E4__this_2();
int32_t L_72 = IPhotonSocket_get_ServerPort_m85638BB2174A42FB9AB49E39E1F6D611E5F22028_inline(L_71, /*hidden argument*/NULL);
int32_t L_73 = L_72;
RuntimeObject * L_74 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_73);
ArrayElementTypeCheck (L_70, L_74);
(L_70)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_74);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_75 = L_70;
ArrayElementTypeCheck (L_75, _stringLiteral4CE93410B4EA19AEDAC5AC09A95AF9631E8BCC73);
(L_75)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)_stringLiteral4CE93410B4EA19AEDAC5AC09A95AF9631E8BCC73);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_76 = L_75;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_77 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_78 = L_77->get_sock_12();
String_t* L_79 = WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492(L_78, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_76, L_79);
(L_76)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(5), (RuntimeObject *)L_79);
String_t* L_80 = String_Concat_mB7BA84F13912303B2E5E40FBF0109E1A328ACA07(L_76, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_63, 1, L_80);
// this.HandleException(StatusCode.ExceptionOnReceive);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_81 = __this->get_U3CU3E4__this_2();
IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9(L_81, ((int32_t)1039), /*hidden argument*/NULL);
// break;
goto IL_0433;
}
IL_026d:
{
// byte[] inBuff = this.sock.Recv();
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_82 = __this->get_U3CU3E4__this_2();
WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * L_83 = L_82->get_sock_12();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_84 = WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006(L_83, /*hidden argument*/NULL);
__this->set_U3CinBuffU3E5__1_3(L_84);
// if (inBuff == null || inBuff.Length == 0)
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_85 = __this->get_U3CinBuffU3E5__1_3();
if (!L_85)
{
goto IL_0298;
}
}
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_86 = __this->get_U3CinBuffU3E5__1_3();
G_B27_0 = ((((int32_t)(((RuntimeArray*)L_86)->max_length)) == ((int32_t)0))? 1 : 0);
goto IL_0299;
}
IL_0298:
{
G_B27_0 = 1;
}
IL_0299:
{
V_8 = (bool)G_B27_0;
bool L_87 = V_8;
if (!L_87)
{
goto IL_02c5;
}
}
{
// yield return new WaitForRealSeconds(0.02f);
WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B * L_88 = (WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B *)il2cpp_codegen_object_new(WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B_il2cpp_TypeInfo_var);
WaitForRealSeconds__ctor_m5D74E80850385FFB772B318E99AC587BD306106C(L_88, (0.02f), /*hidden argument*/NULL);
__this->set_U3CU3E2__current_1(L_88);
__this->set_U3CU3E1__state_0(2);
return (bool)1;
}
IL_02b9:
{
__this->set_U3CU3E1__state_0((-1));
// continue;
goto IL_041c;
}
IL_02c5:
{
// if (this.ReportDebugOfLevel(DebugLevel.ALL))
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_89 = __this->get_U3CU3E4__this_2();
bool L_90 = IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6(L_89, 5, /*hidden argument*/NULL);
V_9 = L_90;
bool L_91 = V_9;
if (!L_91)
{
goto IL_0324;
}
}
{
// this.Listener.DebugReturn(DebugLevel.ALL, "TCP << " + inBuff.Length + " = " + SupportClassPun.ByteArrayToString(inBuff));
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_92 = __this->get_U3CU3E4__this_2();
RuntimeObject* L_93 = IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6(L_92, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_94 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)4);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_95 = L_94;
ArrayElementTypeCheck (L_95, _stringLiteral43E8D3616C9020CA1F920A91B916FDFC68C9FAB7);
(L_95)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteral43E8D3616C9020CA1F920A91B916FDFC68C9FAB7);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_96 = L_95;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_97 = __this->get_U3CinBuffU3E5__1_3();
int32_t L_98 = (((int32_t)((int32_t)(((RuntimeArray*)L_97)->max_length))));
RuntimeObject * L_99 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_98);
ArrayElementTypeCheck (L_96, L_99);
(L_96)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_99);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_100 = L_96;
ArrayElementTypeCheck (L_100, _stringLiteral110BE4F4AA851DA91271D7D722097AD2AEEAD525);
(L_100)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral110BE4F4AA851DA91271D7D722097AD2AEEAD525);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_101 = L_100;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_102 = __this->get_U3CinBuffU3E5__1_3();
IL2CPP_RUNTIME_CLASS_INIT(SupportClass_t7D0FA3513A2804FE9C56E732973ADE1697F466E7_il2cpp_TypeInfo_var);
String_t* L_103 = SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1(L_102, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_101, L_103);
(L_101)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_103);
String_t* L_104 = String_Concat_mB7BA84F13912303B2E5E40FBF0109E1A328ACA07(L_101, /*hidden argument*/NULL);
InterfaceActionInvoker2< uint8_t, String_t* >::Invoke(0 /* System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String) */, IPhotonPeerListener_t5C75CAE77B55813CF71287B751C138F38B86382D_il2cpp_TypeInfo_var, L_93, 5, L_104);
}
IL_0324:
{
// if (inBuff.Length > 0)
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_105 = __this->get_U3CinBuffU3E5__1_3();
V_10 = (bool)((!(((uint32_t)(((RuntimeArray*)L_105)->max_length)) <= ((uint32_t)0)))? 1 : 0);
bool L_106 = V_10;
if (!L_106)
{
goto IL_0412;
}
}
{
}
IL_0338:
try
{ // begin try (depth: 1)
// this.HandleReceivedDatagram(inBuff, inBuff.Length, false);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_107 = __this->get_U3CU3E4__this_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_108 = __this->get_U3CinBuffU3E5__1_3();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_109 = __this->get_U3CinBuffU3E5__1_3();
IPhotonSocket_HandleReceivedDatagram_m54B1ADEC42A1B461E5DC1F9BF30EE03186E842B3(L_107, L_108, (((int32_t)((int32_t)(((RuntimeArray*)L_109)->max_length)))), (bool)0, /*hidden argument*/NULL);
goto IL_0411;
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (Exception_t_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_035a;
throw e;
}
CATCH_035a:
{ // begin catch(System.Exception)
{
// catch (Exception e)
V_11 = ((Exception_t *)__exception_local);
Exception_t * L_110 = V_11;
__this->set_U3CeU3E5__2_4(L_110);
// if (this.State != PhotonSocketState.Disconnecting && this.State != PhotonSocketState.Disconnected)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_111 = __this->get_U3CU3E4__this_2();
int32_t L_112 = IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline(L_111, /*hidden argument*/NULL);
if ((((int32_t)L_112) == ((int32_t)3)))
{
goto IL_0383;
}
}
IL_0373:
{
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_113 = __this->get_U3CU3E4__this_2();
int32_t L_114 = IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline(L_113, /*hidden argument*/NULL);
G_B38_0 = ((!(((uint32_t)L_114) <= ((uint32_t)0)))? 1 : 0);
goto IL_0384;
}
IL_0383:
{
G_B38_0 = 0;
}
IL_0384:
{
V_12 = (bool)G_B38_0;
bool L_115 = V_12;
if (!L_115)
{
goto IL_040e;
}
}
IL_038d:
{
// if (this.ReportDebugOfLevel(DebugLevel.ERROR))
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_116 = __this->get_U3CU3E4__this_2();
bool L_117 = IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6(L_116, 1, /*hidden argument*/NULL);
V_13 = L_117;
bool L_118 = V_13;
if (!L_118)
{
goto IL_03fc;
}
}
IL_03a0:
{
// this.EnqueueDebugReturn(DebugLevel.ERROR, "Receive issue. State: " + this.State + ". Server: '" + this.ServerAddress + "' Exception: " + e);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_119 = __this->get_U3CU3E4__this_2();
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_120 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)6);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_121 = L_120;
ArrayElementTypeCheck (L_121, _stringLiteral7B2A3AD8BDDBE3384049CE9FB992B14DABAF7BB8);
(L_121)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteral7B2A3AD8BDDBE3384049CE9FB992B14DABAF7BB8);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_122 = L_121;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_123 = __this->get_U3CU3E4__this_2();
int32_t L_124 = IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline(L_123, /*hidden argument*/NULL);
int32_t L_125 = L_124;
RuntimeObject * L_126 = Box(PhotonSocketState_t239FD2FDDED03A8F3091A57EBB47E180839F25A4_il2cpp_TypeInfo_var, &L_125);
ArrayElementTypeCheck (L_122, L_126);
(L_122)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_126);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_127 = L_122;
ArrayElementTypeCheck (L_127, _stringLiteral0EA7A0D63AA274B8DC5DD1262CBBD62BBBA93C18);
(L_127)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)_stringLiteral0EA7A0D63AA274B8DC5DD1262CBBD62BBBA93C18);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_128 = L_127;
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_129 = __this->get_U3CU3E4__this_2();
String_t* L_130 = IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline(L_129, /*hidden argument*/NULL);
ArrayElementTypeCheck (L_128, L_130);
(L_128)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_130);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_131 = L_128;
ArrayElementTypeCheck (L_131, _stringLiteral1948936FA67836750CFAD635F543D2432102F2C8);
(L_131)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)_stringLiteral1948936FA67836750CFAD635F543D2432102F2C8);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_132 = L_131;
Exception_t * L_133 = __this->get_U3CeU3E5__2_4();
ArrayElementTypeCheck (L_132, L_133);
(L_132)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(5), (RuntimeObject *)L_133);
String_t* L_134 = String_Concat_mB7BA84F13912303B2E5E40FBF0109E1A328ACA07(L_132, /*hidden argument*/NULL);
IPhotonSocket_EnqueueDebugReturn_m10CCC336C219196818A745EAD556E48343B03D6D(L_119, 1, L_134, /*hidden argument*/NULL);
}
IL_03fc:
{
// this.HandleException(StatusCode.ExceptionOnReceive);
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_135 = __this->get_U3CU3E4__this_2();
IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9(L_135, ((int32_t)1039), /*hidden argument*/NULL);
}
IL_040e:
{
goto IL_0411;
}
} // end catch (depth: 1)
IL_0411:
{
}
IL_0412:
{
__this->set_U3CinBuffU3E5__1_3((ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)NULL);
}
IL_041b:
{
}
IL_041c:
{
// while (this.State == PhotonSocketState.Connected)
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_136 = __this->get_U3CU3E4__this_2();
int32_t L_137 = IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline(L_136, /*hidden argument*/NULL);
V_14 = (bool)((((int32_t)L_137) == ((int32_t)2))? 1 : 0);
bool L_138 = V_14;
if (L_138)
{
goto IL_01b8;
}
}
IL_0433:
{
}
IL_0434:
{
}
IL_0435:
{
}
IL_0436:
{
// this.Disconnect();
SocketWebTcp_t0E15655CB224F0EEFE304B5733B4FBDD80714B05 * L_139 = __this->get_U3CU3E4__this_2();
VirtFuncInvoker0< bool >::Invoke(5 /* System.Boolean ExitGames.Client.Photon.IPhotonSocket::Disconnect() */, L_139);
// }
return (bool)0;
}
}
// System.Object ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * U3CReceiveLoopU3Ed__12_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m5709C874CA651AE846C6A851817D6E9F2BFBED9C (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = __this->get_U3CU3E2__current_1();
return L_0;
}
}
// System.Void ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.Collections.IEnumerator.Reset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146 (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010 * L_0 = (NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010 *)il2cpp_codegen_object_new(NotSupportedException_tE75B318D6590A02A5D9B29FD97409B1750FA0010_il2cpp_TypeInfo_var);
NotSupportedException__ctor_mA121DE1CAC8F25277DEB489DC7771209D91CAE33(L_0, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_0, NULL, U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146_RuntimeMethod_var);
}
}
// System.Object ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.Collections.IEnumerator.get_Current()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_get_Current_m2E2E317CF955E4D93E94617EC7F4886C82668E73 (U3CReceiveLoopU3Ed__12_t77B5096D7436C92E32F8D1AC35E66C06A261CF18 * __this, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = __this->get_U3CU3E2__current_1();
return L_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 ExitGames.Client.Photon.SocketWebTcp_MonoBehaviourExt::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviourExt__ctor_m3424CBBA1BD2C0D3AB229C237661AC92ACD7FA62 (MonoBehaviourExt_t0B1A35C69ACC1530B6A574415DBEBBE483D42F62 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean ExitGames.Client.Photon.WaitForRealSeconds::get_keepWaiting()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool WaitForRealSeconds_get_keepWaiting_m16B8FDB6CF7600B101B2307507C9F1EB2864B781 (WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B * __this, const RuntimeMethod* method)
{
bool V_0 = false;
{
// get { return this._endTime > Time.realtimeSinceStartup; }
float L_0 = __this->get__endTime_0();
float L_1 = Time_get_realtimeSinceStartup_mCA1086EC9DFCF135F77BC46D3B7127711EA3DE03(/*hidden argument*/NULL);
V_0 = (bool)((((float)L_0) > ((float)L_1))? 1 : 0);
goto IL_0011;
}
IL_0011:
{
// get { return this._endTime > Time.realtimeSinceStartup; }
bool L_2 = V_0;
return L_2;
}
}
// System.Void ExitGames.Client.Photon.WaitForRealSeconds::.ctor(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WaitForRealSeconds__ctor_m5D74E80850385FFB772B318E99AC587BD306106C (WaitForRealSeconds_t3E54B03AA8DED1346FB3696E24A1FC6C04288B1B * __this, float ___seconds0, const RuntimeMethod* method)
{
{
// public WaitForRealSeconds(float seconds)
CustomYieldInstruction__ctor_m06E2B5BC73763FE2E734FAA600D567701EA21EC5(__this, /*hidden argument*/NULL);
// this._endTime = Time.realtimeSinceStartup + seconds;
float L_0 = Time_get_realtimeSinceStartup_mCA1086EC9DFCF135F77BC46D3B7127711EA3DE03(/*hidden argument*/NULL);
float L_1 = ___seconds0;
__this->set__endTime_0(((float)il2cpp_codegen_add((float)L_0, (float)L_1)));
// }
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 WebSocket::.ctor(System.Uri,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * ___url0, String_t* ___serialization1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
String_t* V_0 = NULL;
bool V_1 = false;
bool V_2 = false;
int32_t G_B5_0 = 0;
{
// private string protocols = "GpBinaryV16";
__this->set_protocols_1(_stringLiteralAEA24EDDB576D89118750EEEF34A826C66FCFB96);
// int m_NativeRef = 0;
__this->set_m_NativeRef_2(0);
// public WebSocket(Uri url, string serialization = null)
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
// this.mUrl = url;
Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * L_0 = ___url0;
__this->set_mUrl_0(L_0);
// if (serialization != null)
String_t* L_1 = ___serialization1;
V_1 = (bool)((!(((RuntimeObject*)(String_t*)L_1) <= ((RuntimeObject*)(RuntimeObject *)NULL)))? 1 : 0);
bool L_2 = V_1;
if (!L_2)
{
goto IL_0032;
}
}
{
// this.protocols = serialization;
String_t* L_3 = ___serialization1;
__this->set_protocols_1(L_3);
}
IL_0032:
{
// string protocol = mUrl.Scheme;
Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * L_4 = __this->get_mUrl_0();
String_t* L_5 = Uri_get_Scheme_m14A8F0018D8AACADBEF39600A59944F33EE39187(L_4, /*hidden argument*/NULL);
V_0 = L_5;
// if (!protocol.Equals("ws") && !protocol.Equals("wss"))
String_t* L_6 = V_0;
bool L_7 = String_Equals_m9C4D78DFA0979504FE31429B64A4C26DF48020D1(L_6, _stringLiteral1457B75DC8C5500C0F1D4503CF801B60DEB045A4, /*hidden argument*/NULL);
if (L_7)
{
goto IL_005b;
}
}
{
String_t* L_8 = V_0;
bool L_9 = String_Equals_m9C4D78DFA0979504FE31429B64A4C26DF48020D1(L_8, _stringLiteralBA2B0DD158763C472A7D7B22AEF6FF6571B9365C, /*hidden argument*/NULL);
G_B5_0 = ((((int32_t)L_9) == ((int32_t)0))? 1 : 0);
goto IL_005c;
}
IL_005b:
{
G_B5_0 = 0;
}
IL_005c:
{
V_2 = (bool)G_B5_0;
bool L_10 = V_2;
if (!L_10)
{
goto IL_0071;
}
}
{
// throw new ArgumentException("Unsupported protocol: " + protocol);
String_t* L_11 = V_0;
String_t* L_12 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteral03ABDBB1D2AAD35AB98B15EB780567CFE3049D55, L_11, /*hidden argument*/NULL);
ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * L_13 = (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 *)il2cpp_codegen_object_new(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var);
ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7(L_13, L_12, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_13, NULL, WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20_RuntimeMethod_var);
}
IL_0071:
{
// }
return;
}
}
// System.Void WebSocket::SendString(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SendString_mE96F6A6EEA92613D8955B99DA6155116E2C9833F (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, String_t* ___str0, const RuntimeMethod* method)
{
{
// Send(Encoding.UTF8.GetBytes (str));
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * L_0 = Encoding_get_UTF8_m67C8652936B681E7BC7505E459E88790E0FF16D9(/*hidden argument*/NULL);
String_t* L_1 = ___str0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = VirtFuncInvoker1< ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*, String_t* >::Invoke(16 /* System.Byte[] System.Text.Encoding::GetBytes(System.String) */, L_0, L_1);
WebSocket_Send_mACD0C71153FD5E84CD2027379B702F64CC59A70A(__this, L_2, /*hidden argument*/NULL);
// }
return;
}
}
// System.String WebSocket::RecvString()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* WebSocket_RecvString_m02E9D4BCED1B11F467612476ADDF41E299CC9849 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method)
{
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_0 = NULL;
bool V_1 = false;
String_t* V_2 = NULL;
{
// byte[] retval = Recv();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006(__this, /*hidden argument*/NULL);
V_0 = L_0;
// if (retval == null)
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = V_0;
V_1 = (bool)((((RuntimeObject*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)L_1) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
bool L_2 = V_1;
if (!L_2)
{
goto IL_0014;
}
}
{
// return null;
V_2 = (String_t*)NULL;
goto IL_0022;
}
IL_0014:
{
// return Encoding.UTF8.GetString (retval);
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * L_3 = Encoding_get_UTF8_m67C8652936B681E7BC7505E459E88790E0FF16D9(/*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_4 = V_0;
String_t* L_5 = VirtFuncInvoker1< String_t*, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* >::Invoke(32 /* System.String System.Text.Encoding::GetString(System.Byte[]) */, L_3, L_4);
V_2 = L_5;
goto IL_0022;
}
IL_0022:
{
// }
String_t* L_6 = V_2;
return L_6;
}
}
IL2CPP_EXTERN_C int32_t DEFAULT_CALL SocketCreate(char*, char*);
// System.Int32 WebSocket::SocketCreate(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketCreate_m2E87311952C480797C579A66CFF38B955599BC70 (String_t* ___url0, String_t* ___protocols1, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (char*, char*);
// Marshaling of parameter '___url0' to native representation
char* ____url0_marshaled = NULL;
____url0_marshaled = il2cpp_codegen_marshal_string(___url0);
// Marshaling of parameter '___protocols1' to native representation
char* ____protocols1_marshaled = NULL;
____protocols1_marshaled = il2cpp_codegen_marshal_string(___protocols1);
// Native function invocation
int32_t returnValue = reinterpret_cast<PInvokeFunc>(SocketCreate)(____url0_marshaled, ____protocols1_marshaled);
// Marshaling cleanup of parameter '___url0' native representation
il2cpp_codegen_marshal_free(____url0_marshaled);
____url0_marshaled = NULL;
// Marshaling cleanup of parameter '___protocols1' native representation
il2cpp_codegen_marshal_free(____protocols1_marshaled);
____protocols1_marshaled = NULL;
return returnValue;
}
IL2CPP_EXTERN_C int32_t DEFAULT_CALL SocketState(int32_t);
// System.Int32 WebSocket::SocketState(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketState_m0F9859F79B80FA190FB9DB0AE55B283C643C13DB (int32_t ___socketInstance0, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (int32_t);
// Native function invocation
int32_t returnValue = reinterpret_cast<PInvokeFunc>(SocketState)(___socketInstance0);
return returnValue;
}
IL2CPP_EXTERN_C void DEFAULT_CALL SocketSend(int32_t, uint8_t*, int32_t);
// System.Void WebSocket::SocketSend(System.Int32,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SocketSend_m8904F854B2067C30E91AEFFB00EB0E5CD482A438 (int32_t ___socketInstance0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___ptr1, int32_t ___length2, const RuntimeMethod* method)
{
typedef void (DEFAULT_CALL *PInvokeFunc) (int32_t, uint8_t*, int32_t);
// Marshaling of parameter '___ptr1' to native representation
uint8_t* ____ptr1_marshaled = NULL;
if (___ptr1 != NULL)
{
____ptr1_marshaled = reinterpret_cast<uint8_t*>((___ptr1)->GetAddressAtUnchecked(0));
}
// Native function invocation
reinterpret_cast<PInvokeFunc>(SocketSend)(___socketInstance0, ____ptr1_marshaled, ___length2);
}
IL2CPP_EXTERN_C void DEFAULT_CALL SocketRecv(int32_t, uint8_t*, int32_t);
// System.Void WebSocket::SocketRecv(System.Int32,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SocketRecv_mF5D7669F0A55DC6F5FD72A84C25D665D8B33AA55 (int32_t ___socketInstance0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___ptr1, int32_t ___length2, const RuntimeMethod* method)
{
typedef void (DEFAULT_CALL *PInvokeFunc) (int32_t, uint8_t*, int32_t);
// Marshaling of parameter '___ptr1' to native representation
uint8_t* ____ptr1_marshaled = NULL;
if (___ptr1 != NULL)
{
____ptr1_marshaled = reinterpret_cast<uint8_t*>((___ptr1)->GetAddressAtUnchecked(0));
}
// Native function invocation
reinterpret_cast<PInvokeFunc>(SocketRecv)(___socketInstance0, ____ptr1_marshaled, ___length2);
}
IL2CPP_EXTERN_C int32_t DEFAULT_CALL SocketRecvLength(int32_t);
// System.Int32 WebSocket::SocketRecvLength(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketRecvLength_m9EBA5464DB624650083C7D0F1DD3164E2D333484 (int32_t ___socketInstance0, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (int32_t);
// Native function invocation
int32_t returnValue = reinterpret_cast<PInvokeFunc>(SocketRecvLength)(___socketInstance0);
return returnValue;
}
IL2CPP_EXTERN_C void DEFAULT_CALL SocketClose(int32_t);
// System.Void WebSocket::SocketClose(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_SocketClose_mD92515A97D30554F43355DDA18C08BA09D272CB2 (int32_t ___socketInstance0, const RuntimeMethod* method)
{
typedef void (DEFAULT_CALL *PInvokeFunc) (int32_t);
// Native function invocation
reinterpret_cast<PInvokeFunc>(SocketClose)(___socketInstance0);
}
IL2CPP_EXTERN_C int32_t DEFAULT_CALL SocketError(int32_t, uint8_t*, int32_t);
// System.Int32 WebSocket::SocketError(System.Int32,System.Byte[],System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t WebSocket_SocketError_m90E2FF27FC4F47C5B081EA2193AE92451770940A (int32_t ___socketInstance0, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___ptr1, int32_t ___length2, const RuntimeMethod* method)
{
typedef int32_t (DEFAULT_CALL *PInvokeFunc) (int32_t, uint8_t*, int32_t);
// Marshaling of parameter '___ptr1' to native representation
uint8_t* ____ptr1_marshaled = NULL;
if (___ptr1 != NULL)
{
____ptr1_marshaled = reinterpret_cast<uint8_t*>((___ptr1)->GetAddressAtUnchecked(0));
}
// Native function invocation
int32_t returnValue = reinterpret_cast<PInvokeFunc>(SocketError)(___socketInstance0, ____ptr1_marshaled, ___length2);
return returnValue;
}
// System.Void WebSocket::Send(System.Byte[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_Send_mACD0C71153FD5E84CD2027379B702F64CC59A70A (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___buffer0, const RuntimeMethod* method)
{
{
// SocketSend (m_NativeRef, buffer, buffer.Length);
int32_t L_0 = __this->get_m_NativeRef_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_1 = ___buffer0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = ___buffer0;
WebSocket_SocketSend_m8904F854B2067C30E91AEFFB00EB0E5CD482A438(L_0, L_1, (((int32_t)((int32_t)(((RuntimeArray*)L_2)->max_length)))), /*hidden argument*/NULL);
// }
return;
}
}
// System.Byte[] WebSocket::Recv()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_1 = NULL;
bool V_2 = false;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_3 = NULL;
{
// int length = SocketRecvLength (m_NativeRef);
int32_t L_0 = __this->get_m_NativeRef_2();
int32_t L_1 = WebSocket_SocketRecvLength_m9EBA5464DB624650083C7D0F1DD3164E2D333484(L_0, /*hidden argument*/NULL);
V_0 = L_1;
// if (length == 0)
int32_t L_2 = V_0;
V_2 = (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
bool L_3 = V_2;
if (!L_3)
{
goto IL_0019;
}
}
{
// return null;
V_3 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)NULL;
goto IL_0032;
}
IL_0019:
{
// byte[] buffer = new byte[length];
int32_t L_4 = V_0;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_5 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)L_4);
V_1 = L_5;
// SocketRecv (m_NativeRef, buffer, length);
int32_t L_6 = __this->get_m_NativeRef_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = V_1;
int32_t L_8 = V_0;
WebSocket_SocketRecv_mF5D7669F0A55DC6F5FD72A84C25D665D8B33AA55(L_6, L_7, L_8, /*hidden argument*/NULL);
// return buffer;
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_9 = V_1;
V_3 = L_9;
goto IL_0032;
}
IL_0032:
{
// }
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_10 = V_3;
return L_10;
}
}
// System.Void WebSocket::Connect()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_Connect_m718C25341A77457BEF505EBB148B7D8F136BD750 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method)
{
{
// m_NativeRef = SocketCreate (mUrl.ToString(), this.protocols);
Uri_t87E4A94B2901F5EEDD18AA72C3DB1B00E672D68E * L_0 = __this->get_mUrl_0();
String_t* L_1 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_0);
String_t* L_2 = __this->get_protocols_1();
int32_t L_3 = WebSocket_SocketCreate_m2E87311952C480797C579A66CFF38B955599BC70(L_1, L_2, /*hidden argument*/NULL);
__this->set_m_NativeRef_2(L_3);
// }
return;
}
}
// System.Void WebSocket::Close()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void WebSocket_Close_m6B90FA1A407C8656164EF39654DC599A59D89A39 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method)
{
{
// SocketClose(m_NativeRef);
int32_t L_0 = __this->get_m_NativeRef_2();
WebSocket_SocketClose_mD92515A97D30554F43355DDA18C08BA09D272CB2(L_0, /*hidden argument*/NULL);
// }
return;
}
}
// System.Boolean WebSocket::get_Connected()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool WebSocket_get_Connected_m1C81E20F99151E858869D09376F1AE424B9C0E5D (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method)
{
bool V_0 = false;
{
// get { return SocketState(m_NativeRef) != 0; }
int32_t L_0 = __this->get_m_NativeRef_2();
int32_t L_1 = WebSocket_SocketState_m0F9859F79B80FA190FB9DB0AE55B283C643C13DB(L_0, /*hidden argument*/NULL);
V_0 = (bool)((!(((uint32_t)L_1) <= ((uint32_t)0)))? 1 : 0);
goto IL_0012;
}
IL_0012:
{
// get { return SocketState(m_NativeRef) != 0; }
bool L_2 = V_0;
return L_2;
}
}
// System.String WebSocket::get_Error()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492 (WebSocket_t9488887110689CBAFF2BDB3FDC4A80B67EDA72C1 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* V_0 = NULL;
int32_t V_1 = 0;
bool V_2 = false;
String_t* V_3 = NULL;
{
// byte[] buffer = new byte[bufsize];
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_0 = (ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821*)SZArrayNew(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821_il2cpp_TypeInfo_var, (uint32_t)((int32_t)1024));
V_0 = L_0;
// int result = SocketError (m_NativeRef, buffer, bufsize);
int32_t L_1 = __this->get_m_NativeRef_2();
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_2 = V_0;
int32_t L_3 = WebSocket_SocketError_m90E2FF27FC4F47C5B081EA2193AE92451770940A(L_1, L_2, ((int32_t)1024), /*hidden argument*/NULL);
V_1 = L_3;
// if (result == 0)
int32_t L_4 = V_1;
V_2 = (bool)((((int32_t)L_4) == ((int32_t)0))? 1 : 0);
bool L_5 = V_2;
if (!L_5)
{
goto IL_002a;
}
}
{
// return null;
V_3 = (String_t*)NULL;
goto IL_0038;
}
IL_002a:
{
// return Encoding.UTF8.GetString (buffer);
Encoding_t7837A3C0F55EAE0E3959A53C6D6E88B113ED78A4 * L_6 = Encoding_get_UTF8_m67C8652936B681E7BC7505E459E88790E0FF16D9(/*hidden argument*/NULL);
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* L_7 = V_0;
String_t* L_8 = VirtFuncInvoker1< String_t*, ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* >::Invoke(32 /* System.String System.Text.Encoding::GetString(System.Byte[]) */, L_6, L_7);
V_3 = L_8;
goto IL_0038;
}
IL_0038:
{
// }
String_t* L_9 = V_3;
return L_9;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR String_t* PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0_inline (PeerBase_t0BA5615C035C8038B9DD9E1EBC7AF075C5A0A884 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_U3CServerAddressU3Ek__BackingField_5();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void IPhotonSocket_set_ServerAddress_m910219EE93B8B1D338F86AB111DC5B0DF22D1B96_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, String_t* ___value0, const RuntimeMethod* method)
{
{
String_t* L_0 = ___value0;
__this->set_U3CServerAddressU3Ek__BackingField_5(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR String_t* IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method)
{
{
String_t* L_0 = __this->get_U3CServerAddressU3Ek__BackingField_5();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___value0;
__this->set_U3CStateU3Ek__BackingField_3(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CStateU3Ek__BackingField_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t IPhotonSocket_get_ServerPort_m85638BB2174A42FB9AB49E39E1F6D611E5F22028_inline (IPhotonSocket_t5BA9F3C8946D00B51353CB1C0AC6B60BC2ECF587 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_U3CServerPortU3Ek__BackingField_8();
return L_0;
}
}
<file_sep>/Le Chapeau/Assets/Scripts/Menu.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using Photon.Pun;
using Photon.Realtime;
public class Menu : MonoBehaviourPunCallbacks
{
[Header("Screens")]
public GameObject mainScreen;
public GameObject lobbyScreen;
[Header("Main Screen")]
public Button createRoomButton;
public Button joinRoomButton;
[Header("Lobby Screen")]
public TextMeshProUGUI playerListText;
public Button startGameButton;
// [Header("Components")]
// public PhotonView photonViewer;
// Start is called before the first frame update
void Start()
{
// disable buttons when we arent connected to the server
createRoomButton.interactable = false;
joinRoomButton.interactable = false;
}
public override void OnConnectedToMaster()
{
createRoomButton.interactable = true;
joinRoomButton.interactable = true;
}
// toggle which menu you want based on input selection
void SetScreen (GameObject screen)
{
//deactivate
mainScreen.SetActive(false);
lobbyScreen.SetActive(false);
// only enable requested screen
screen.SetActive(true);
}
// set room name based on field test and send to network manager
public void OnCreateRoomButton(TMP_InputField roomNameInput)
{
NetworkManager.instance.CreateRoom(roomNameInput.text);
}
// request room name based on field test and send to network manager
public void OnJoinRoomButton(TMP_InputField roomNameInput)
{
NetworkManager.instance.JoinRoom(roomNameInput.text);
}
// Get name from name field and send to Photon Network
public void OnPlayerNameUpdate (TMP_InputField playerNameInput)
{
PhotonNetwork.NickName = playerNameInput.text;
}
// This function handles the updating of the player list in the lobby screen and permissions for starting the game
[PunRPC]
public void UpdateLobbyUI ()
{
// playerListText.text = "Test";
// display players currently in lobby
foreach (Player player in PhotonNetwork.PlayerList)
{
playerListText.text += player.NickName + "\n";
}
// only host can start the game
if (PhotonNetwork.IsMasterClient)
startGameButton.interactable = true;
else startGameButton.interactable = false;
}
// Swap Menu Screens when room is joined
public override void OnJoinedRoom()
{
SetScreen(lobbyScreen);
// since this means a player joined the lobby, update the lobby screen (note this gets called from every computer as it joins, so it updates as people join)
photonView.RPC("UpdateLobbyUI", RpcTarget.All);
}
public override void OnPlayerLeftRoom (Player otherPlayer)
{
// This gets called for everyone in the room by default so no need to RPC
UpdateLobbyUI();
}
// When you leave the lobby, disconnect and go back to main screen
public void OnLeaveLobbyButton()
{
PhotonNetwork.LeaveRoom();
SetScreen(mainScreen);
}
// Since this button is only used by master client, pressing it allows them to change scenes for everyone
public void OnStartGameButton()
{
NetworkManager.instance.photonView.RPC("ChangeScene", RpcTarget.All, "Game");
}
}
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/PhotonWebSocket_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Void WebSocket::.ctor(System.Uri,System.String)
extern void WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20 ();
// 0x00000002 System.Void WebSocket::SendString(System.String)
extern void WebSocket_SendString_mE96F6A6EEA92613D8955B99DA6155116E2C9833F ();
// 0x00000003 System.String WebSocket::RecvString()
extern void WebSocket_RecvString_m02E9D4BCED1B11F467612476ADDF41E299CC9849 ();
// 0x00000004 System.Int32 WebSocket::SocketCreate(System.String,System.String)
extern void WebSocket_SocketCreate_m2E87311952C480797C579A66CFF38B955599BC70 ();
// 0x00000005 System.Int32 WebSocket::SocketState(System.Int32)
extern void WebSocket_SocketState_m0F9859F79B80FA190FB9DB0AE55B283C643C13DB ();
// 0x00000006 System.Void WebSocket::SocketSend(System.Int32,System.Byte[],System.Int32)
extern void WebSocket_SocketSend_m8904F854B2067C30E91AEFFB00EB0E5CD482A438 ();
// 0x00000007 System.Void WebSocket::SocketRecv(System.Int32,System.Byte[],System.Int32)
extern void WebSocket_SocketRecv_mF5D7669F0A55DC6F5FD72A84C25D665D8B33AA55 ();
// 0x00000008 System.Int32 WebSocket::SocketRecvLength(System.Int32)
extern void WebSocket_SocketRecvLength_m9EBA5464DB624650083C7D0F1DD3164E2D333484 ();
// 0x00000009 System.Void WebSocket::SocketClose(System.Int32)
extern void WebSocket_SocketClose_mD92515A97D30554F43355DDA18C08BA09D272CB2 ();
// 0x0000000A System.Int32 WebSocket::SocketError(System.Int32,System.Byte[],System.Int32)
extern void WebSocket_SocketError_m90E2FF27FC4F47C5B081EA2193AE92451770940A ();
// 0x0000000B System.Void WebSocket::Send(System.Byte[])
extern void WebSocket_Send_mACD0C71153FD5E84CD2027379B702F64CC59A70A ();
// 0x0000000C System.Byte[] WebSocket::Recv()
extern void WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006 ();
// 0x0000000D System.Void WebSocket::Connect()
extern void WebSocket_Connect_m718C25341A77457BEF505EBB148B7D8F136BD750 ();
// 0x0000000E System.Void WebSocket::Close()
extern void WebSocket_Close_m6B90FA1A407C8656164EF39654DC599A59D89A39 ();
// 0x0000000F System.Boolean WebSocket::get_Connected()
extern void WebSocket_get_Connected_m1C81E20F99151E858869D09376F1AE424B9C0E5D ();
// 0x00000010 System.String WebSocket::get_Error()
extern void WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492 ();
// 0x00000011 System.Boolean ExitGames.Client.Photon.WaitForRealSeconds::get_keepWaiting()
extern void WaitForRealSeconds_get_keepWaiting_m16B8FDB6CF7600B101B2307507C9F1EB2864B781 ();
// 0x00000012 System.Void ExitGames.Client.Photon.WaitForRealSeconds::.ctor(System.Single)
extern void WaitForRealSeconds__ctor_m5D74E80850385FFB772B318E99AC587BD306106C ();
// 0x00000013 System.Void ExitGames.Client.Photon.SocketWebTcp::.ctor(ExitGames.Client.Photon.PeerBase)
extern void SocketWebTcp__ctor_m0F4F1DF0C9E1EDC0F42A531638FAAA36F40DF199 ();
// 0x00000014 System.Void ExitGames.Client.Photon.SocketWebTcp::Dispose()
extern void SocketWebTcp_Dispose_mD73D71D21C4D7AF4F35D5E63034C589E44E47514 ();
// 0x00000015 System.Boolean ExitGames.Client.Photon.SocketWebTcp::Connect()
extern void SocketWebTcp_Connect_m6C42A78E9138498FC45D5BAAFA50C6BCD5628314 ();
// 0x00000016 System.Boolean ExitGames.Client.Photon.SocketWebTcp::Disconnect()
extern void SocketWebTcp_Disconnect_m02753D61D41DF0F28806333CFDD46E9C0B084E95 ();
// 0x00000017 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketWebTcp::Send(System.Byte[],System.Int32)
extern void SocketWebTcp_Send_m38322896DD1584529859D53EC97EFD094C9BF48F ();
// 0x00000018 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketWebTcp::Receive(System.Byte[]&)
extern void SocketWebTcp_Receive_m1D94A61941F63E15B7F4C173976EC87A18ACE2DB ();
// 0x00000019 System.Collections.IEnumerator ExitGames.Client.Photon.SocketWebTcp::ReceiveLoop()
extern void SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70 ();
// 0x0000001A System.Void ExitGames.Client.Photon.SocketWebTcp_MonoBehaviourExt::.ctor()
extern void MonoBehaviourExt__ctor_m3424CBBA1BD2C0D3AB229C237661AC92ACD7FA62 ();
// 0x0000001B System.Void ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::.ctor(System.Int32)
extern void U3CReceiveLoopU3Ed__12__ctor_mD84B898C6C4D7FF90EBEDDD300DA387BD196C21F ();
// 0x0000001C System.Void ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.IDisposable.Dispose()
extern void U3CReceiveLoopU3Ed__12_System_IDisposable_Dispose_m45EE99B4D723F3A3047D9CEF7CC5034DC1688E26 ();
// 0x0000001D System.Boolean ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::MoveNext()
extern void U3CReceiveLoopU3Ed__12_MoveNext_mD0BDF116134D6EA3C97E70685F10F839A03E221B ();
// 0x0000001E System.Object ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.Collections.Generic.IEnumerator<System.Object>.get_Current()
extern void U3CReceiveLoopU3Ed__12_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m5709C874CA651AE846C6A851817D6E9F2BFBED9C ();
// 0x0000001F System.Void ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.Collections.IEnumerator.Reset()
extern void U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146 ();
// 0x00000020 System.Object ExitGames.Client.Photon.SocketWebTcp_<ReceiveLoop>d__12::System.Collections.IEnumerator.get_Current()
extern void U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_get_Current_m2E2E317CF955E4D93E94617EC7F4886C82668E73 ();
static Il2CppMethodPointer s_methodPointers[32] =
{
WebSocket__ctor_mB9AD0AE90FBA24AD356BD335684A3A9B52606B20,
WebSocket_SendString_mE96F6A6EEA92613D8955B99DA6155116E2C9833F,
WebSocket_RecvString_m02E9D4BCED1B11F467612476ADDF41E299CC9849,
WebSocket_SocketCreate_m2E87311952C480797C579A66CFF38B955599BC70,
WebSocket_SocketState_m0F9859F79B80FA190FB9DB0AE55B283C643C13DB,
WebSocket_SocketSend_m8904F854B2067C30E91AEFFB00EB0E5CD482A438,
WebSocket_SocketRecv_mF5D7669F0A55DC6F5FD72A84C25D665D8B33AA55,
WebSocket_SocketRecvLength_m9EBA5464DB624650083C7D0F1DD3164E2D333484,
WebSocket_SocketClose_mD92515A97D30554F43355DDA18C08BA09D272CB2,
WebSocket_SocketError_m90E2FF27FC4F47C5B081EA2193AE92451770940A,
WebSocket_Send_mACD0C71153FD5E84CD2027379B702F64CC59A70A,
WebSocket_Recv_m68C3B57C63B3FAA28FE958E05207619957C37006,
WebSocket_Connect_m718C25341A77457BEF505EBB148B7D8F136BD750,
WebSocket_Close_m6B90FA1A407C8656164EF39654DC599A59D89A39,
WebSocket_get_Connected_m1C81E20F99151E858869D09376F1AE424B9C0E5D,
WebSocket_get_Error_m8AFCBCFB183165725FDDE649138FE476FACAA492,
WaitForRealSeconds_get_keepWaiting_m16B8FDB6CF7600B101B2307507C9F1EB2864B781,
WaitForRealSeconds__ctor_m5D74E80850385FFB772B318E99AC587BD306106C,
SocketWebTcp__ctor_m0F4F1DF0C9E1EDC0F42A531638FAAA36F40DF199,
SocketWebTcp_Dispose_mD73D71D21C4D7AF4F35D5E63034C589E44E47514,
SocketWebTcp_Connect_m6C42A78E9138498FC45D5BAAFA50C6BCD5628314,
SocketWebTcp_Disconnect_m02753D61D41DF0F28806333CFDD46E9C0B084E95,
SocketWebTcp_Send_m38322896DD1584529859D53EC97EFD094C9BF48F,
SocketWebTcp_Receive_m1D94A61941F63E15B7F4C173976EC87A18ACE2DB,
SocketWebTcp_ReceiveLoop_m1186161C3A6AE16E7D3671555CE847A013F44E70,
MonoBehaviourExt__ctor_m3424CBBA1BD2C0D3AB229C237661AC92ACD7FA62,
U3CReceiveLoopU3Ed__12__ctor_mD84B898C6C4D7FF90EBEDDD300DA387BD196C21F,
U3CReceiveLoopU3Ed__12_System_IDisposable_Dispose_m45EE99B4D723F3A3047D9CEF7CC5034DC1688E26,
U3CReceiveLoopU3Ed__12_MoveNext_mD0BDF116134D6EA3C97E70685F10F839A03E221B,
U3CReceiveLoopU3Ed__12_System_Collections_Generic_IEnumeratorU3CSystem_ObjectU3E_get_Current_m5709C874CA651AE846C6A851817D6E9F2BFBED9C,
U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_Reset_m937706ABF1C5019A7E243A62DE5D564852D12146,
U3CReceiveLoopU3Ed__12_System_Collections_IEnumerator_get_Current_m2E2E317CF955E4D93E94617EC7F4886C82668E73,
};
static const int32_t s_InvokerIndices[32] =
{
27,
26,
14,
143,
21,
2060,
2060,
21,
178,
685,
26,
14,
23,
23,
89,
14,
89,
346,
26,
23,
89,
89,
512,
1799,
14,
23,
32,
23,
89,
14,
23,
14,
};
extern const Il2CppCodeGenModule g_PhotonWebSocketCodeGenModule;
const Il2CppCodeGenModule g_PhotonWebSocketCodeGenModule =
{
"PhotonWebSocket.dll",
32,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
0,
NULL,
0,
NULL,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/UnityEngine.AnimationModule_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Void UnityEngine.StateMachineBehaviour::.ctor()
extern void StateMachineBehaviour__ctor_m60289315ADCB494227D881EEFA6C4458BACA79DB ();
// 0x00000002 System.Void UnityEngine.StateMachineBehaviour::OnStateEnter(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32)
extern void StateMachineBehaviour_OnStateEnter_mAB25325C96611ADDF93038EC6792EC4F76AEF4EE ();
// 0x00000003 System.Void UnityEngine.StateMachineBehaviour::OnStateUpdate(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32)
extern void StateMachineBehaviour_OnStateUpdate_mE12079F72B209DDFFAB4088B2B210EA20C2C4266 ();
// 0x00000004 System.Void UnityEngine.StateMachineBehaviour::OnStateExit(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32)
extern void StateMachineBehaviour_OnStateExit_m83F9656CE5265BD15F3B5D1AB91411A211922730 ();
// 0x00000005 System.Void UnityEngine.StateMachineBehaviour::OnStateMove(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32)
extern void StateMachineBehaviour_OnStateMove_mAE38B3B50B0A495AF30E6711F52381668B63DAA2 ();
// 0x00000006 System.Void UnityEngine.StateMachineBehaviour::OnStateIK(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32)
extern void StateMachineBehaviour_OnStateIK_mB977958BB73727EF2F721BB449DFEA781529785B ();
// 0x00000007 System.Void UnityEngine.StateMachineBehaviour::OnStateMachineEnter(UnityEngine.Animator,System.Int32)
extern void StateMachineBehaviour_OnStateMachineEnter_m5497D76EAE53BEF94431E3C1AAD0B58B89E745C7 ();
// 0x00000008 System.Void UnityEngine.StateMachineBehaviour::OnStateMachineExit(UnityEngine.Animator,System.Int32)
extern void StateMachineBehaviour_OnStateMachineExit_m8A0744B8E90157AE466269DF324C44BFCBB47FF3 ();
// 0x00000009 System.Void UnityEngine.StateMachineBehaviour::OnStateEnter(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateEnter_mAAD23D49A3F84438928677D2FA3F8E26CFDE2522 ();
// 0x0000000A System.Void UnityEngine.StateMachineBehaviour::OnStateUpdate(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateUpdate_mF1E4E77449D427AE5DDD68FD8EECCAD1E54E1EE9 ();
// 0x0000000B System.Void UnityEngine.StateMachineBehaviour::OnStateExit(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateExit_m43A13AA682B9E86F6D2952338F47CE1B2BF9D4A7 ();
// 0x0000000C System.Void UnityEngine.StateMachineBehaviour::OnStateMove(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateMove_mD8060C6C70456CDC4D678184723C05A7750846F3 ();
// 0x0000000D System.Void UnityEngine.StateMachineBehaviour::OnStateIK(UnityEngine.Animator,UnityEngine.AnimatorStateInfo,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateIK_m09D6AC0300060ACF7B82283AD947E9A260585576 ();
// 0x0000000E System.Void UnityEngine.StateMachineBehaviour::OnStateMachineEnter(UnityEngine.Animator,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateMachineEnter_m6DE0F767D565EFC33361BA13A6DCC65AC89D3D07 ();
// 0x0000000F System.Void UnityEngine.StateMachineBehaviour::OnStateMachineExit(UnityEngine.Animator,System.Int32,UnityEngine.Animations.AnimatorControllerPlayable)
extern void StateMachineBehaviour_OnStateMachineExit_m01575716EA20F88A56C3CB778FACE2CBDA68EF26 ();
// 0x00000010 UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationClipPlayable::GetHandle()
extern void AnimationClipPlayable_GetHandle_mB1B706B9ADB194766DC938C332469AC698AD0D9E_AdjustorThunk ();
// 0x00000011 System.Boolean UnityEngine.Animations.AnimationClipPlayable::Equals(UnityEngine.Animations.AnimationClipPlayable)
extern void AnimationClipPlayable_Equals_m06BA3E1C3AE0CC205C8531CCF6596C99C8D927EE_AdjustorThunk ();
// 0x00000012 System.Void UnityEngine.Animations.AnimationLayerMixerPlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationLayerMixerPlayable__ctor_mA2156DFDEA435F14446528098837ED3FF6B7147C_AdjustorThunk ();
// 0x00000013 UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationLayerMixerPlayable::GetHandle()
extern void AnimationLayerMixerPlayable_GetHandle_mD4159505D29B17D507599ED6FA3BEC1370691DB8_AdjustorThunk ();
// 0x00000014 System.Boolean UnityEngine.Animations.AnimationLayerMixerPlayable::Equals(UnityEngine.Animations.AnimationLayerMixerPlayable)
extern void AnimationLayerMixerPlayable_Equals_m0A6A86FEDCE98E63B84BD01D0D362D03EA733E59_AdjustorThunk ();
// 0x00000015 System.Void UnityEngine.Animations.AnimationLayerMixerPlayable::.cctor()
extern void AnimationLayerMixerPlayable__cctor_m3712A5D44F275E70624C0D734C9CED9BD12D0AC9 ();
// 0x00000016 System.Void UnityEngine.Animations.AnimationMixerPlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationMixerPlayable__ctor_mD446E3257F803A3D4C04D394A75AA5376533CF43_AdjustorThunk ();
// 0x00000017 UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationMixerPlayable::GetHandle()
extern void AnimationMixerPlayable_GetHandle_mC5939239D7C47C6E0FF4EC72021EE793863BC567_AdjustorThunk ();
// 0x00000018 System.Boolean UnityEngine.Animations.AnimationMixerPlayable::Equals(UnityEngine.Animations.AnimationMixerPlayable)
extern void AnimationMixerPlayable_Equals_m7CB1B61B74A6BE00A35AD072490F07D4C7A17B0F_AdjustorThunk ();
// 0x00000019 System.Void UnityEngine.Animations.AnimationMixerPlayable::.cctor()
extern void AnimationMixerPlayable__cctor_m820F56C1D4257D4F5446BD66402D4428E0DF8E3E ();
// 0x0000001A System.Void UnityEngine.Animations.AnimationMotionXToDeltaPlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationMotionXToDeltaPlayable__ctor_mC51D5F76DD0CE29B305932303A4A5AA42ACCD9E6_AdjustorThunk ();
// 0x0000001B UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationMotionXToDeltaPlayable::GetHandle()
extern void AnimationMotionXToDeltaPlayable_GetHandle_mE36F0671962333EAF5B434A062930D9E76A79076_AdjustorThunk ();
// 0x0000001C System.Boolean UnityEngine.Animations.AnimationMotionXToDeltaPlayable::Equals(UnityEngine.Animations.AnimationMotionXToDeltaPlayable)
extern void AnimationMotionXToDeltaPlayable_Equals_m53B4AAB54D7F3633C3954056F8C334BB8B7D590E_AdjustorThunk ();
// 0x0000001D System.Void UnityEngine.Animations.AnimationMotionXToDeltaPlayable::.cctor()
extern void AnimationMotionXToDeltaPlayable__cctor_mCB948CE31E0AAEC53CB1D6746D091604413C5EEE ();
// 0x0000001E System.Void UnityEngine.Animations.AnimationOffsetPlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationOffsetPlayable__ctor_m380B4761BE82E4684F82A18933DBBC79E3D5F607_AdjustorThunk ();
// 0x0000001F UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationOffsetPlayable::GetHandle()
extern void AnimationOffsetPlayable_GetHandle_m5213878A6D7F29801F74CD3A8B866D444793665E_AdjustorThunk ();
// 0x00000020 System.Boolean UnityEngine.Animations.AnimationOffsetPlayable::Equals(UnityEngine.Animations.AnimationOffsetPlayable)
extern void AnimationOffsetPlayable_Equals_m30B207FC6287EABF6FC1FDA47784322A3ABB98DF_AdjustorThunk ();
// 0x00000021 System.Void UnityEngine.Animations.AnimationOffsetPlayable::.cctor()
extern void AnimationOffsetPlayable__cctor_m174AD41778526FA15E41C6A11303A4F190A4CEA6 ();
// 0x00000022 System.Void UnityEngine.Animations.AnimationPosePlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationPosePlayable__ctor_mF02468DCD2C8C0226C89C4DF90454DD9D230595D_AdjustorThunk ();
// 0x00000023 UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationPosePlayable::GetHandle()
extern void AnimationPosePlayable_GetHandle_m9D856E83755A447ABCD6C0D8FE011AFF659A016E_AdjustorThunk ();
// 0x00000024 System.Boolean UnityEngine.Animations.AnimationPosePlayable::Equals(UnityEngine.Animations.AnimationPosePlayable)
extern void AnimationPosePlayable_Equals_m4417430115DCF9B39D3E4B64424120CE7E555961_AdjustorThunk ();
// 0x00000025 System.Void UnityEngine.Animations.AnimationPosePlayable::.cctor()
extern void AnimationPosePlayable__cctor_mDE42A26BC2624427AA8086C4AB69FB531949153F ();
// 0x00000026 System.Void UnityEngine.Animations.AnimationRemoveScalePlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationRemoveScalePlayable__ctor_mB06216973E6B635E7F4A3C8E372E5F7E89D327E1_AdjustorThunk ();
// 0x00000027 UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationRemoveScalePlayable::GetHandle()
extern void AnimationRemoveScalePlayable_GetHandle_mA5063F10E01C8546F88E9ABE07B71373BF290EED_AdjustorThunk ();
// 0x00000028 System.Boolean UnityEngine.Animations.AnimationRemoveScalePlayable::Equals(UnityEngine.Animations.AnimationRemoveScalePlayable)
extern void AnimationRemoveScalePlayable_Equals_m58B139243E3B27CE86CA4CC470895BF719CD9BAD_AdjustorThunk ();
// 0x00000029 System.Void UnityEngine.Animations.AnimationRemoveScalePlayable::.cctor()
extern void AnimationRemoveScalePlayable__cctor_m7BA13559FDA2BF8E061839B333085C402DED6829 ();
// 0x0000002A System.Void UnityEngine.Experimental.Animations.AnimationScriptPlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimationScriptPlayable__ctor_mCEAA71DEFF829CA9D60EFB004CC0278FE8C58EF7_AdjustorThunk ();
// 0x0000002B UnityEngine.Playables.PlayableHandle UnityEngine.Experimental.Animations.AnimationScriptPlayable::GetHandle()
extern void AnimationScriptPlayable_GetHandle_mE9B490654A320F11EFBB0E3180C6CF647E384C80_AdjustorThunk ();
// 0x0000002C System.Boolean UnityEngine.Experimental.Animations.AnimationScriptPlayable::Equals(UnityEngine.Experimental.Animations.AnimationScriptPlayable)
extern void AnimationScriptPlayable_Equals_m39A1F71C360404625ABD1EAD32DCAEDD7736E1B3_AdjustorThunk ();
// 0x0000002D System.Void UnityEngine.Experimental.Animations.AnimationScriptPlayable::.cctor()
extern void AnimationScriptPlayable__cctor_mC78B0B27BE44BD802817190E620DB326D730BF70 ();
// 0x0000002E System.Single UnityEngine.Animator::GetFloat(System.String)
extern void Animator_GetFloat_m1C8B853CA82031CE4775FBDCDEDDB3C9E702695F ();
// 0x0000002F System.Void UnityEngine.Animator::SetFloat(System.String,System.Single)
extern void Animator_SetFloat_mE4C29F6980EBBBD954637721E6E13A0BE2B13C43 ();
// 0x00000030 System.Boolean UnityEngine.Animator::GetBool(System.String)
extern void Animator_GetBool_mA8837B3CA5790D26D1FDB51DF5DD9B846B898717 ();
// 0x00000031 System.Void UnityEngine.Animator::SetBool(System.String,System.Boolean)
extern void Animator_SetBool_m497805BA217139E42808899782FA05C15BC9879E ();
// 0x00000032 System.Int32 UnityEngine.Animator::GetInteger(System.String)
extern void Animator_GetInteger_m16203A9DA336AED55D110B790DC65B0E168D808A ();
// 0x00000033 System.Void UnityEngine.Animator::SetInteger(System.String,System.Int32)
extern void Animator_SetInteger_m1E6D66416F48D6E02E7618A0142D70F5232BCC22 ();
// 0x00000034 System.Void UnityEngine.Animator::SetTrigger(System.String)
extern void Animator_SetTrigger_m68D29B7FA54C2F230F5AD780D462612B18E74245 ();
// 0x00000035 System.Void UnityEngine.Animator::ResetTrigger(System.String)
extern void Animator_ResetTrigger_m70120C9A00EA482BF0880D2C02EC814CE3D71FD1 ();
// 0x00000036 System.Boolean UnityEngine.Animator::get_applyRootMotion()
extern void Animator_get_applyRootMotion_mD07C6372485DDF19274F1C70CE1540549F91EA2F ();
// 0x00000037 System.Void UnityEngine.Animator::set_applyRootMotion(System.Boolean)
extern void Animator_set_applyRootMotion_mD25B7FCFCDAD7C5D107E860D2E46AB765271A982 ();
// 0x00000038 System.Single UnityEngine.Animator::GetLayerWeight(System.Int32)
extern void Animator_GetLayerWeight_m3BB4629945E1B7275FC9850F2FFB435015E1ED42 ();
// 0x00000039 System.Void UnityEngine.Animator::SetLayerWeight(System.Int32,System.Single)
extern void Animator_SetLayerWeight_mCD79BBDCD7DD47929E00C5EA69DEF2573EAD939F ();
// 0x0000003A System.Boolean UnityEngine.Animator::get_hasBoundPlayables()
extern void Animator_get_hasBoundPlayables_m283AF0BA9B841E3FD1ADC5541C41B936A9D1EB05 ();
// 0x0000003B System.Void UnityEngine.Animator::SetFloatString(System.String,System.Single)
extern void Animator_SetFloatString_mE425F554C50682E41D362D7593B3B069609B7091 ();
// 0x0000003C System.Single UnityEngine.Animator::GetFloatString(System.String)
extern void Animator_GetFloatString_mB1518F1964EE15625814C558BB3565330491F3C2 ();
// 0x0000003D System.Void UnityEngine.Animator::SetBoolString(System.String,System.Boolean)
extern void Animator_SetBoolString_mA61F1A44D13EF82A7C2CAF466EBA81E65D054D46 ();
// 0x0000003E System.Boolean UnityEngine.Animator::GetBoolString(System.String)
extern void Animator_GetBoolString_m8A5CDC7098636F88CA4DADCA80CCBAAFABECE8EC ();
// 0x0000003F System.Void UnityEngine.Animator::SetIntegerString(System.String,System.Int32)
extern void Animator_SetIntegerString_m6D069E7F310547EA883ABC2D72BA41C3CDA6B1C4 ();
// 0x00000040 System.Int32 UnityEngine.Animator::GetIntegerString(System.String)
extern void Animator_GetIntegerString_m2A45CD7EA21DBC7A1EA8DA26BE132E00925DC0D3 ();
// 0x00000041 System.Void UnityEngine.Animator::SetTriggerString(System.String)
extern void Animator_SetTriggerString_m77CE57996467D0C973FA2D0CB4DF87BD062C8A1E ();
// 0x00000042 System.Void UnityEngine.Animator::ResetTriggerString(System.String)
extern void Animator_ResetTriggerString_m31B233F948D7551D220FEDA56B002E6724B89851 ();
// 0x00000043 System.Void UnityEngine.Animations.AnimatorControllerPlayable::.ctor(UnityEngine.Playables.PlayableHandle)
extern void AnimatorControllerPlayable__ctor_m739B1BFC592B6C160410141057F1B2BA1B971897_AdjustorThunk ();
// 0x00000044 UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimatorControllerPlayable::GetHandle()
extern void AnimatorControllerPlayable_GetHandle_mB83731910E1534BECA36F64BA22AA68A71D08CA8_AdjustorThunk ();
// 0x00000045 System.Void UnityEngine.Animations.AnimatorControllerPlayable::SetHandle(UnityEngine.Playables.PlayableHandle)
extern void AnimatorControllerPlayable_SetHandle_m2CAE8DABC4B19AB6BD90249D0D7FC7A9E07C3A96_AdjustorThunk ();
// 0x00000046 System.Boolean UnityEngine.Animations.AnimatorControllerPlayable::Equals(UnityEngine.Animations.AnimatorControllerPlayable)
extern void AnimatorControllerPlayable_Equals_m04685CCA5A5FC388A0387D3453A677C0CB47D173_AdjustorThunk ();
// 0x00000047 System.Void UnityEngine.Animations.AnimatorControllerPlayable::.cctor()
extern void AnimatorControllerPlayable__cctor_m6FCC197F3BF33EAFC37D5217617FCDC64E8B304E ();
// 0x00000048 System.Void UnityEngine.AnimatorOverrideController::OnInvalidateOverrideController(UnityEngine.AnimatorOverrideController)
extern void AnimatorOverrideController_OnInvalidateOverrideController_mA538F1349FCF3968C5042F2D8860114F51818CB2 ();
// 0x00000049 System.Void UnityEngine.AnimatorOverrideController_OnOverrideControllerDirtyCallback::.ctor(System.Object,System.IntPtr)
extern void OnOverrideControllerDirtyCallback__ctor_m9277DED194C85B1C3B4C7ABBB1D54CCB43C724D8 ();
// 0x0000004A System.Void UnityEngine.AnimatorOverrideController_OnOverrideControllerDirtyCallback::Invoke()
extern void OnOverrideControllerDirtyCallback_Invoke_m002CFC2CE3C42A058380BE98F015E654D5F9F177 ();
// 0x0000004B System.IAsyncResult UnityEngine.AnimatorOverrideController_OnOverrideControllerDirtyCallback::BeginInvoke(System.AsyncCallback,System.Object)
extern void OnOverrideControllerDirtyCallback_BeginInvoke_m35CE43BF7D40E88192183CF666F2BB7EFE8C6F9D ();
// 0x0000004C System.Void UnityEngine.AnimatorOverrideController_OnOverrideControllerDirtyCallback::EndInvoke(System.IAsyncResult)
extern void OnOverrideControllerDirtyCallback_EndInvoke_m39CFD9FD2CC3035CFF6809F56447932B1394C08E ();
// 0x0000004D System.Void UnityEngine.AnimationEvent::.ctor()
extern void AnimationEvent__ctor_m6C228EB716B6B53DE2665091C056428EFB90897F ();
static Il2CppMethodPointer s_methodPointers[77] =
{
StateMachineBehaviour__ctor_m60289315ADCB494227D881EEFA6C4458BACA79DB,
StateMachineBehaviour_OnStateEnter_mAB25325C96611ADDF93038EC6792EC4F76AEF4EE,
StateMachineBehaviour_OnStateUpdate_mE12079F72B209DDFFAB4088B2B210EA20C2C4266,
StateMachineBehaviour_OnStateExit_m83F9656CE5265BD15F3B5D1AB91411A211922730,
StateMachineBehaviour_OnStateMove_mAE38B3B50B0A495AF30E6711F52381668B63DAA2,
StateMachineBehaviour_OnStateIK_mB977958BB73727EF2F721BB449DFEA781529785B,
StateMachineBehaviour_OnStateMachineEnter_m5497D76EAE53BEF94431E3C1AAD0B58B89E745C7,
StateMachineBehaviour_OnStateMachineExit_m8A0744B8E90157AE466269DF324C44BFCBB47FF3,
StateMachineBehaviour_OnStateEnter_mAAD23D49A3F84438928677D2FA3F8E26CFDE2522,
StateMachineBehaviour_OnStateUpdate_mF1E4E77449D427AE5DDD68FD8EECCAD1E54E1EE9,
StateMachineBehaviour_OnStateExit_m43A13AA682B9E86F6D2952338F47CE1B2BF9D4A7,
StateMachineBehaviour_OnStateMove_mD8060C6C70456CDC4D678184723C05A7750846F3,
StateMachineBehaviour_OnStateIK_m09D6AC0300060ACF7B82283AD947E9A260585576,
StateMachineBehaviour_OnStateMachineEnter_m6DE0F767D565EFC33361BA13A6DCC65AC89D3D07,
StateMachineBehaviour_OnStateMachineExit_m01575716EA20F88A56C3CB778FACE2CBDA68EF26,
AnimationClipPlayable_GetHandle_mB1B706B9ADB194766DC938C332469AC698AD0D9E_AdjustorThunk,
AnimationClipPlayable_Equals_m06BA3E1C3AE0CC205C8531CCF6596C99C8D927EE_AdjustorThunk,
AnimationLayerMixerPlayable__ctor_mA2156DFDEA435F14446528098837ED3FF6B7147C_AdjustorThunk,
AnimationLayerMixerPlayable_GetHandle_mD4159505D29B17D507599ED6FA3BEC1370691DB8_AdjustorThunk,
AnimationLayerMixerPlayable_Equals_m0A6A86FEDCE98E63B84BD01D0D362D03EA733E59_AdjustorThunk,
AnimationLayerMixerPlayable__cctor_m3712A5D44F275E70624C0D734C9CED9BD12D0AC9,
AnimationMixerPlayable__ctor_mD446E3257F803A3D4C04D394A75AA5376533CF43_AdjustorThunk,
AnimationMixerPlayable_GetHandle_mC5939239D7C47C6E0FF4EC72021EE793863BC567_AdjustorThunk,
AnimationMixerPlayable_Equals_m7CB1B61B74A6BE00A35AD072490F07D4C7A17B0F_AdjustorThunk,
AnimationMixerPlayable__cctor_m820F56C1D4257D4F5446BD66402D4428E0DF8E3E,
AnimationMotionXToDeltaPlayable__ctor_mC51D5F76DD0CE29B305932303A4A5AA42ACCD9E6_AdjustorThunk,
AnimationMotionXToDeltaPlayable_GetHandle_mE36F0671962333EAF5B434A062930D9E76A79076_AdjustorThunk,
AnimationMotionXToDeltaPlayable_Equals_m53B4AAB54D7F3633C3954056F8C334BB8B7D590E_AdjustorThunk,
AnimationMotionXToDeltaPlayable__cctor_mCB948CE31E0AAEC53CB1D6746D091604413C5EEE,
AnimationOffsetPlayable__ctor_m380B4761BE82E4684F82A18933DBBC79E3D5F607_AdjustorThunk,
AnimationOffsetPlayable_GetHandle_m5213878A6D7F29801F74CD3A8B866D444793665E_AdjustorThunk,
AnimationOffsetPlayable_Equals_m30B207FC6287EABF6FC1FDA47784322A3ABB98DF_AdjustorThunk,
AnimationOffsetPlayable__cctor_m174AD41778526FA15E41C6A11303A4F190A4CEA6,
AnimationPosePlayable__ctor_mF02468DCD2C8C0226C89C4DF90454DD9D230595D_AdjustorThunk,
AnimationPosePlayable_GetHandle_m9D856E83755A447ABCD6C0D8FE011AFF659A016E_AdjustorThunk,
AnimationPosePlayable_Equals_m4417430115DCF9B39D3E4B64424120CE7E555961_AdjustorThunk,
AnimationPosePlayable__cctor_mDE42A26BC2624427AA8086C4AB69FB531949153F,
AnimationRemoveScalePlayable__ctor_mB06216973E6B635E7F4A3C8E372E5F7E89D327E1_AdjustorThunk,
AnimationRemoveScalePlayable_GetHandle_mA5063F10E01C8546F88E9ABE07B71373BF290EED_AdjustorThunk,
AnimationRemoveScalePlayable_Equals_m58B139243E3B27CE86CA4CC470895BF719CD9BAD_AdjustorThunk,
AnimationRemoveScalePlayable__cctor_m7BA13559FDA2BF8E061839B333085C402DED6829,
AnimationScriptPlayable__ctor_mCEAA71DEFF829CA9D60EFB004CC0278FE8C58EF7_AdjustorThunk,
AnimationScriptPlayable_GetHandle_mE9B490654A320F11EFBB0E3180C6CF647E384C80_AdjustorThunk,
AnimationScriptPlayable_Equals_m39A1F71C360404625ABD1EAD32DCAEDD7736E1B3_AdjustorThunk,
AnimationScriptPlayable__cctor_mC78B0B27BE44BD802817190E620DB326D730BF70,
Animator_GetFloat_m1C8B853CA82031CE4775FBDCDEDDB3C9E702695F,
Animator_SetFloat_mE4C29F6980EBBBD954637721E6E13A0BE2B13C43,
Animator_GetBool_mA8837B3CA5790D26D1FDB51DF5DD9B846B898717,
Animator_SetBool_m497805BA217139E42808899782FA05C15BC9879E,
Animator_GetInteger_m16203A9DA336AED55D110B790DC65B0E168D808A,
Animator_SetInteger_m1E6D66416F48D6E02E7618A0142D70F5232BCC22,
Animator_SetTrigger_m68D29B7FA54C2F230F5AD780D462612B18E74245,
Animator_ResetTrigger_m70120C9A00EA482BF0880D2C02EC814CE3D71FD1,
Animator_get_applyRootMotion_mD07C6372485DDF19274F1C70CE1540549F91EA2F,
Animator_set_applyRootMotion_mD25B7FCFCDAD7C5D107E860D2E46AB765271A982,
Animator_GetLayerWeight_m3BB4629945E1B7275FC9850F2FFB435015E1ED42,
Animator_SetLayerWeight_mCD79BBDCD7DD47929E00C5EA69DEF2573EAD939F,
Animator_get_hasBoundPlayables_m283AF0BA9B841E3FD1ADC5541C41B936A9D1EB05,
Animator_SetFloatString_mE425F554C50682E41D362D7593B3B069609B7091,
Animator_GetFloatString_mB1518F1964EE15625814C558BB3565330491F3C2,
Animator_SetBoolString_mA61F1A44D13EF82A7C2CAF466EBA81E65D054D46,
Animator_GetBoolString_m8A5CDC7098636F88CA4DADCA80CCBAAFABECE8EC,
Animator_SetIntegerString_m6D069E7F310547EA883ABC2D72BA41C3CDA6B1C4,
Animator_GetIntegerString_m2A45CD7EA21DBC7A1EA8DA26BE132E00925DC0D3,
Animator_SetTriggerString_m77CE57996467D0C973FA2D0CB4DF87BD062C8A1E,
Animator_ResetTriggerString_m31B233F948D7551D220FEDA56B002E6724B89851,
AnimatorControllerPlayable__ctor_m739B1BFC592B6C160410141057F1B2BA1B971897_AdjustorThunk,
AnimatorControllerPlayable_GetHandle_mB83731910E1534BECA36F64BA22AA68A71D08CA8_AdjustorThunk,
AnimatorControllerPlayable_SetHandle_m2CAE8DABC4B19AB6BD90249D0D7FC7A9E07C3A96_AdjustorThunk,
AnimatorControllerPlayable_Equals_m04685CCA5A5FC388A0387D3453A677C0CB47D173_AdjustorThunk,
AnimatorControllerPlayable__cctor_m6FCC197F3BF33EAFC37D5217617FCDC64E8B304E,
AnimatorOverrideController_OnInvalidateOverrideController_mA538F1349FCF3968C5042F2D8860114F51818CB2,
OnOverrideControllerDirtyCallback__ctor_m9277DED194C85B1C3B4C7ABBB1D54CCB43C724D8,
OnOverrideControllerDirtyCallback_Invoke_m002CFC2CE3C42A058380BE98F015E654D5F9F177,
OnOverrideControllerDirtyCallback_BeginInvoke_m35CE43BF7D40E88192183CF666F2BB7EFE8C6F9D,
OnOverrideControllerDirtyCallback_EndInvoke_m39CFD9FD2CC3035CFF6809F56447932B1394C08E,
AnimationEvent__ctor_m6C228EB716B6B53DE2665091C056428EFB90897F,
};
static const int32_t s_InvokerIndices[77] =
{
23,
1618,
1618,
1618,
1618,
1618,
137,
137,
1619,
1619,
1619,
1619,
1619,
1620,
1620,
1411,
1621,
1418,
1411,
1622,
3,
1418,
1411,
1623,
3,
1418,
1411,
1624,
3,
1418,
1411,
1625,
3,
1418,
1411,
1626,
3,
1418,
1411,
1627,
3,
1418,
1411,
1628,
3,
232,
965,
9,
462,
112,
137,
26,
26,
89,
31,
1468,
1041,
89,
965,
232,
462,
9,
137,
112,
26,
26,
1418,
1411,
1418,
1629,
3,
168,
131,
23,
105,
26,
23,
};
extern const Il2CppCodeGenModule g_UnityEngine_AnimationModuleCodeGenModule;
const Il2CppCodeGenModule g_UnityEngine_AnimationModuleCodeGenModule =
{
"UnityEngine.AnimationModule.dll",
77,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
0,
NULL,
0,
NULL,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/PhotonUnityNetworking_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Void Photon.Pun.CustomTypes::Register()
extern void CustomTypes_Register_mE838FCEDF93C0347A744A9DCCCACB836F6D35EBE ();
// 0x00000002 System.Int16 Photon.Pun.CustomTypes::SerializeVector3(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void CustomTypes_SerializeVector3_m50B18267D0B3E634B25A7F01851F5300834EA296 ();
// 0x00000003 System.Object Photon.Pun.CustomTypes::DeserializeVector3(ExitGames.Client.Photon.StreamBuffer,System.Int16)
extern void CustomTypes_DeserializeVector3_m590F9D3263EDFAA2FED6B2F4D0F0425BAECFAF66 ();
// 0x00000004 System.Int16 Photon.Pun.CustomTypes::SerializeVector2(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void CustomTypes_SerializeVector2_mCB73DDB3C160ADCB75F9EE9FBB22B37B75DD48CB ();
// 0x00000005 System.Object Photon.Pun.CustomTypes::DeserializeVector2(ExitGames.Client.Photon.StreamBuffer,System.Int16)
extern void CustomTypes_DeserializeVector2_m01DFBC36F1BAA17FBCE5D7C3F40A73C2FAB7227D ();
// 0x00000006 System.Int16 Photon.Pun.CustomTypes::SerializeQuaternion(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void CustomTypes_SerializeQuaternion_mE593BA6C4497AB5D6568B7EFE35F58F4AC093D5A ();
// 0x00000007 System.Object Photon.Pun.CustomTypes::DeserializeQuaternion(ExitGames.Client.Photon.StreamBuffer,System.Int16)
extern void CustomTypes_DeserializeQuaternion_m18C1800FF361AB81E186711C16157B4D98F8D758 ();
// 0x00000008 System.Int16 Photon.Pun.CustomTypes::SerializePhotonPlayer(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void CustomTypes_SerializePhotonPlayer_mF6B9F7FD7FF2766050F9532252973A1A748384AE ();
// 0x00000009 System.Object Photon.Pun.CustomTypes::DeserializePhotonPlayer(ExitGames.Client.Photon.StreamBuffer,System.Int16)
extern void CustomTypes_DeserializePhotonPlayer_m9AD2D7F6D67D64A59FCD4F5BD36DD3D6AEA08BC8 ();
// 0x0000000A System.Void Photon.Pun.CustomTypes::.cctor()
extern void CustomTypes__cctor_mC7E91754D15B50BD38C76ACE7D3924BA33F3FF98 ();
// 0x0000000B Photon.Pun.PhotonHandler Photon.Pun.PhotonHandler::get_Instance()
extern void PhotonHandler_get_Instance_mAB17EF1C35F258AC0D253E193DAEE2B222316BF6 ();
// 0x0000000C System.Void Photon.Pun.PhotonHandler::Awake()
extern void PhotonHandler_Awake_m51CD79689BD6A1AFFCBD5DF3B7DDAB8C2090E43E ();
// 0x0000000D System.Void Photon.Pun.PhotonHandler::OnEnable()
extern void PhotonHandler_OnEnable_mB2D33220CD24BC2690D1CE96866EF5E5C0AB9CC7 ();
// 0x0000000E System.Void Photon.Pun.PhotonHandler::Start()
extern void PhotonHandler_Start_mC4932CC3B74F42C8659D24E9D40E86AA97F91083 ();
// 0x0000000F System.Void Photon.Pun.PhotonHandler::OnDisable()
extern void PhotonHandler_OnDisable_m0195D14B740E67DB8C5E3E5F4B082CBD9316FFEF ();
// 0x00000010 System.Void Photon.Pun.PhotonHandler::FixedUpdate()
extern void PhotonHandler_FixedUpdate_mD19AF6C0A4A43F2EA6BDF6605BDFE0522A987DC6 ();
// 0x00000011 System.Void Photon.Pun.PhotonHandler::LateUpdate()
extern void PhotonHandler_LateUpdate_m2F112E7078627C3205F83D1D6A3D902F32123436 ();
// 0x00000012 System.Void Photon.Pun.PhotonHandler::Dispatch()
extern void PhotonHandler_Dispatch_m227B4D0F66594085A9D03F2A97671F48C2E390BD ();
// 0x00000013 System.Void Photon.Pun.PhotonHandler::OnCreatedRoom()
extern void PhotonHandler_OnCreatedRoom_m2852AE1F829452CFC36B491ED2D6E456F0E98EA8 ();
// 0x00000014 System.Void Photon.Pun.PhotonHandler::OnRoomPropertiesUpdate(ExitGames.Client.Photon.Hashtable)
extern void PhotonHandler_OnRoomPropertiesUpdate_m2F5B8063E919DE5AA996B1B330726D5033978710 ();
// 0x00000015 System.Void Photon.Pun.PhotonHandler::OnPlayerPropertiesUpdate(Photon.Realtime.Player,ExitGames.Client.Photon.Hashtable)
extern void PhotonHandler_OnPlayerPropertiesUpdate_m16307BED1170400F310387F92AF9AB1A36C780EA ();
// 0x00000016 System.Void Photon.Pun.PhotonHandler::OnMasterClientSwitched(Photon.Realtime.Player)
extern void PhotonHandler_OnMasterClientSwitched_mB13C2E687694D564F624CA408995A32BED382DE9 ();
// 0x00000017 System.Void Photon.Pun.PhotonHandler::OnFriendListUpdate(System.Collections.Generic.List`1<Photon.Realtime.FriendInfo>)
extern void PhotonHandler_OnFriendListUpdate_m4259D639FC7D558C660831E9BCA64912AED3C13D ();
// 0x00000018 System.Void Photon.Pun.PhotonHandler::OnCreateRoomFailed(System.Int16,System.String)
extern void PhotonHandler_OnCreateRoomFailed_m3C25C57401588871F00C1C8439E79B01B9CFD8E4 ();
// 0x00000019 System.Void Photon.Pun.PhotonHandler::OnJoinRoomFailed(System.Int16,System.String)
extern void PhotonHandler_OnJoinRoomFailed_m741916027AA5686EC08BE6D6D45F6B61E93FE024 ();
// 0x0000001A System.Void Photon.Pun.PhotonHandler::OnJoinRandomFailed(System.Int16,System.String)
extern void PhotonHandler_OnJoinRandomFailed_mDB77390CF2D70D608AB97D3377BADE6C38BAB803 ();
// 0x0000001B System.Void Photon.Pun.PhotonHandler::OnJoinedRoom()
extern void PhotonHandler_OnJoinedRoom_mEE5BE2F0A68F029943369484DD116DE636C55D8D ();
// 0x0000001C System.Void Photon.Pun.PhotonHandler::OnLeftRoom()
extern void PhotonHandler_OnLeftRoom_m7ABDE0409572111FF488F5CB4BD3AF8B606F2D0B ();
// 0x0000001D System.Void Photon.Pun.PhotonHandler::OnPlayerEnteredRoom(Photon.Realtime.Player)
extern void PhotonHandler_OnPlayerEnteredRoom_mF2D693C4117DE18329C035144A0AA9E11F97BDA4 ();
// 0x0000001E System.Void Photon.Pun.PhotonHandler::OnPlayerLeftRoom(Photon.Realtime.Player)
extern void PhotonHandler_OnPlayerLeftRoom_m3AB14AD6EFD5799454C36431BF15C92AD7774193 ();
// 0x0000001F System.Void Photon.Pun.PhotonHandler::.ctor()
extern void PhotonHandler__ctor_m1F8580D818F0C414B9FE146B502A9DAC47C1A112 ();
// 0x00000020 System.Void Photon.Pun.PhotonHandler::.cctor()
extern void PhotonHandler__cctor_mFD62746E820C76E21AB28260A7FFF629EA0B99DB ();
// 0x00000021 System.Void Photon.Pun.InstantiateParameters::.ctor(System.String,UnityEngine.Vector3,UnityEngine.Quaternion,System.Byte,System.Object[],System.Byte,System.Int32[],Photon.Realtime.Player,System.Int32)
extern void InstantiateParameters__ctor_mBCC98333EC365FE08A5B1B046EC654442F10767C_AdjustorThunk ();
// 0x00000022 System.String Photon.Pun.PhotonNetwork::get_GameVersion()
extern void PhotonNetwork_get_GameVersion_mCDC06B3EC50413FAE0F5610B1747BD6D42AF4148 ();
// 0x00000023 System.Void Photon.Pun.PhotonNetwork::set_GameVersion(System.String)
extern void PhotonNetwork_set_GameVersion_mE3F9A63714D393062731D0E017D87F7C6115FA24 ();
// 0x00000024 System.String Photon.Pun.PhotonNetwork::get_AppVersion()
extern void PhotonNetwork_get_AppVersion_m674387BDF6698480F16BEAD5B18222E7236D646E ();
// 0x00000025 Photon.Pun.ServerSettings Photon.Pun.PhotonNetwork::get_PhotonServerSettings()
extern void PhotonNetwork_get_PhotonServerSettings_m4199A755089F2278DFCF324152D3B265726BC227 ();
// 0x00000026 System.Void Photon.Pun.PhotonNetwork::set_PhotonServerSettings(Photon.Pun.ServerSettings)
extern void PhotonNetwork_set_PhotonServerSettings_m53CBA95E482FC0ADF9D674BF07124B012352BF5B ();
// 0x00000027 System.String Photon.Pun.PhotonNetwork::get_ServerAddress()
extern void PhotonNetwork_get_ServerAddress_m53779D4C257E22AFB168C01E79565F619903D85D ();
// 0x00000028 System.String Photon.Pun.PhotonNetwork::get_CloudRegion()
extern void PhotonNetwork_get_CloudRegion_m4197DD908736A0B3E69164E9E64AE60BE611BF22 ();
// 0x00000029 System.String Photon.Pun.PhotonNetwork::get_CurrentCluster()
extern void PhotonNetwork_get_CurrentCluster_m7C87C2B7B1A2AF2F1F4B0DEEAA1B623AE036B471 ();
// 0x0000002A System.String Photon.Pun.PhotonNetwork::get_BestRegionSummaryInPreferences()
extern void PhotonNetwork_get_BestRegionSummaryInPreferences_m3A4C27D397D7C07BF59B7675A3CBC1A3B232AF7D ();
// 0x0000002B System.Void Photon.Pun.PhotonNetwork::set_BestRegionSummaryInPreferences(System.String)
extern void PhotonNetwork_set_BestRegionSummaryInPreferences_mFEA6A32B0FADC858803016461E656BA4BD884961 ();
// 0x0000002C System.Boolean Photon.Pun.PhotonNetwork::get_IsConnected()
extern void PhotonNetwork_get_IsConnected_m3D90FF7631B589CB771CE01CA421A40426AC6187 ();
// 0x0000002D System.Boolean Photon.Pun.PhotonNetwork::get_IsConnectedAndReady()
extern void PhotonNetwork_get_IsConnectedAndReady_mAB2CC497386B5EDADDDA63962C8973AAD392EDE6 ();
// 0x0000002E Photon.Realtime.ClientState Photon.Pun.PhotonNetwork::get_NetworkClientState()
extern void PhotonNetwork_get_NetworkClientState_m5B876DF86C16E84ADC8909400918DDF49975B009 ();
// 0x0000002F Photon.Realtime.ServerConnection Photon.Pun.PhotonNetwork::get_Server()
extern void PhotonNetwork_get_Server_m53BB0245BD13769574DA6B6DC0D2FE6379BD938C ();
// 0x00000030 Photon.Realtime.AuthenticationValues Photon.Pun.PhotonNetwork::get_AuthValues()
extern void PhotonNetwork_get_AuthValues_mE1AB5329BC4395D9155C5BADACC6DC1FCC0AAA51 ();
// 0x00000031 System.Void Photon.Pun.PhotonNetwork::set_AuthValues(Photon.Realtime.AuthenticationValues)
extern void PhotonNetwork_set_AuthValues_m735DB15E5393EB691FF6D237FB3B9E030DB6BE15 ();
// 0x00000032 Photon.Realtime.TypedLobby Photon.Pun.PhotonNetwork::get_CurrentLobby()
extern void PhotonNetwork_get_CurrentLobby_mA9D9A133B9CB5DCBB6F4CBC13BF40855578E9C86 ();
// 0x00000033 Photon.Realtime.Room Photon.Pun.PhotonNetwork::get_CurrentRoom()
extern void PhotonNetwork_get_CurrentRoom_m493DA29D80F75DC0BEFF3125207AE9101C0100A1 ();
// 0x00000034 Photon.Realtime.Player Photon.Pun.PhotonNetwork::get_LocalPlayer()
extern void PhotonNetwork_get_LocalPlayer_m06E2D9682B713C828A00C0BD4F03A0CBC1E2D1B6 ();
// 0x00000035 System.String Photon.Pun.PhotonNetwork::get_NickName()
extern void PhotonNetwork_get_NickName_mB6B4A740D685871B2A3DDABE1BB44048F9921DEB ();
// 0x00000036 System.Void Photon.Pun.PhotonNetwork::set_NickName(System.String)
extern void PhotonNetwork_set_NickName_m6AECDDC42FD01FEF165A3E325FCFE7F2967FFEAD ();
// 0x00000037 Photon.Realtime.Player[] Photon.Pun.PhotonNetwork::get_PlayerList()
extern void PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141 ();
// 0x00000038 Photon.Realtime.Player[] Photon.Pun.PhotonNetwork::get_PlayerListOthers()
extern void PhotonNetwork_get_PlayerListOthers_m7D2DFF5567A2975B90A9E96FF713698EF09B0D1C ();
// 0x00000039 System.Boolean Photon.Pun.PhotonNetwork::get_OfflineMode()
extern void PhotonNetwork_get_OfflineMode_m504F8D865C08967255DEDC709769DBAE8ED15C4B ();
// 0x0000003A System.Void Photon.Pun.PhotonNetwork::set_OfflineMode(System.Boolean)
extern void PhotonNetwork_set_OfflineMode_mAB80BD8500AF75C1B390D09B4EA6D0174394C1DE ();
// 0x0000003B System.Boolean Photon.Pun.PhotonNetwork::get_AutomaticallySyncScene()
extern void PhotonNetwork_get_AutomaticallySyncScene_m3DC2ADB2ABF80B6FDDFE006C9880EBAB258AD146 ();
// 0x0000003C System.Void Photon.Pun.PhotonNetwork::set_AutomaticallySyncScene(System.Boolean)
extern void PhotonNetwork_set_AutomaticallySyncScene_m2281D30EB1B6545FDFE7BA16B0E8662A0378DAE0 ();
// 0x0000003D System.Boolean Photon.Pun.PhotonNetwork::get_EnableLobbyStatistics()
extern void PhotonNetwork_get_EnableLobbyStatistics_mA2437F6897F125E7F0055DD5D7D0A6D697D06987 ();
// 0x0000003E System.Boolean Photon.Pun.PhotonNetwork::get_InLobby()
extern void PhotonNetwork_get_InLobby_m98BE6CCBAC915D353D343302BF4747231D20B715 ();
// 0x0000003F System.Int32 Photon.Pun.PhotonNetwork::get_SendRate()
extern void PhotonNetwork_get_SendRate_m9BF212EF9AC5B4A2DB91516A11A8BE81D1F8650B ();
// 0x00000040 System.Void Photon.Pun.PhotonNetwork::set_SendRate(System.Int32)
extern void PhotonNetwork_set_SendRate_m5C6E1386637484D8FDA64D7059E994730FBA714E ();
// 0x00000041 System.Int32 Photon.Pun.PhotonNetwork::get_SerializationRate()
extern void PhotonNetwork_get_SerializationRate_m1121F935DAB7130246C63A55847F75EB6465B294 ();
// 0x00000042 System.Void Photon.Pun.PhotonNetwork::set_SerializationRate(System.Int32)
extern void PhotonNetwork_set_SerializationRate_mE05399BF9C0A38A8CE2F70F4AEDCC2AA614093FD ();
// 0x00000043 System.Boolean Photon.Pun.PhotonNetwork::get_IsMessageQueueRunning()
extern void PhotonNetwork_get_IsMessageQueueRunning_mA769CD017937833037A0B2F4D4BF415D0494434B ();
// 0x00000044 System.Void Photon.Pun.PhotonNetwork::set_IsMessageQueueRunning(System.Boolean)
extern void PhotonNetwork_set_IsMessageQueueRunning_mABEB1F780CC55CF765FC6EBA7599789CB58801FF ();
// 0x00000045 System.Double Photon.Pun.PhotonNetwork::get_Time()
extern void PhotonNetwork_get_Time_mDFD12A6E273C6B14118DD8E6DA3EE24C489487F7 ();
// 0x00000046 System.Int32 Photon.Pun.PhotonNetwork::get_ServerTimestamp()
extern void PhotonNetwork_get_ServerTimestamp_mD63EC86765B4C6F57A6445F1CE8A8084D3A2594B ();
// 0x00000047 System.Void Photon.Pun.PhotonNetwork::set_KeepAliveInBackground(System.Single)
extern void PhotonNetwork_set_KeepAliveInBackground_mD624E6CE86110238D7970BB69CC8963480ACCCD9 ();
// 0x00000048 System.Single Photon.Pun.PhotonNetwork::get_KeepAliveInBackground()
extern void PhotonNetwork_get_KeepAliveInBackground_m6484EECDB128B1976AD38CAF5403F0F5ADA63576 ();
// 0x00000049 System.Boolean Photon.Pun.PhotonNetwork::get_IsMasterClient()
extern void PhotonNetwork_get_IsMasterClient_m7EE228BA31428CCA42C74D8805DD9B3A951E7E57 ();
// 0x0000004A Photon.Realtime.Player Photon.Pun.PhotonNetwork::get_MasterClient()
extern void PhotonNetwork_get_MasterClient_mE95EB702C5632D7DDADF199B4B9ECD4B45556B65 ();
// 0x0000004B System.Boolean Photon.Pun.PhotonNetwork::get_InRoom()
extern void PhotonNetwork_get_InRoom_mB13290C6303826E3B9A56D0BA792FFB535E7B3D0 ();
// 0x0000004C System.Int32 Photon.Pun.PhotonNetwork::get_CountOfPlayersOnMaster()
extern void PhotonNetwork_get_CountOfPlayersOnMaster_mB7973FFC7CD63A3A249CBF34969080DB31E17E30 ();
// 0x0000004D System.Int32 Photon.Pun.PhotonNetwork::get_CountOfPlayersInRooms()
extern void PhotonNetwork_get_CountOfPlayersInRooms_m34762E1517E322B125F32899E59C5567C0165030 ();
// 0x0000004E System.Int32 Photon.Pun.PhotonNetwork::get_CountOfPlayers()
extern void PhotonNetwork_get_CountOfPlayers_m42C91025CAF946918286B835E0CAD7663B599F35 ();
// 0x0000004F System.Int32 Photon.Pun.PhotonNetwork::get_CountOfRooms()
extern void PhotonNetwork_get_CountOfRooms_mCBC7FB574206EBCB054FDDF7A10938DA0BC3D8FD ();
// 0x00000050 System.Boolean Photon.Pun.PhotonNetwork::get_NetworkStatisticsEnabled()
extern void PhotonNetwork_get_NetworkStatisticsEnabled_m2B057A641F3753351F9320E434E704113B1F76CE ();
// 0x00000051 System.Void Photon.Pun.PhotonNetwork::set_NetworkStatisticsEnabled(System.Boolean)
extern void PhotonNetwork_set_NetworkStatisticsEnabled_m6BFC09A115CDCB9C9965742945593395C65BFABD ();
// 0x00000052 System.Int32 Photon.Pun.PhotonNetwork::get_ResentReliableCommands()
extern void PhotonNetwork_get_ResentReliableCommands_m2CB9A0417C55040D832FBED9A1F6561D659957EE ();
// 0x00000053 System.Boolean Photon.Pun.PhotonNetwork::get_CrcCheckEnabled()
extern void PhotonNetwork_get_CrcCheckEnabled_mB75B51E5F9850D44334A0DC932011CA15E828FDA ();
// 0x00000054 System.Void Photon.Pun.PhotonNetwork::set_CrcCheckEnabled(System.Boolean)
extern void PhotonNetwork_set_CrcCheckEnabled_m77070278B87FABC0AF1FCA9E9BD4D205C2BE31C3 ();
// 0x00000055 System.Int32 Photon.Pun.PhotonNetwork::get_PacketLossByCrcCheck()
extern void PhotonNetwork_get_PacketLossByCrcCheck_m25B7EF45F0E7A5F254B8738A10BC642D887E4C13 ();
// 0x00000056 System.Int32 Photon.Pun.PhotonNetwork::get_MaxResendsBeforeDisconnect()
extern void PhotonNetwork_get_MaxResendsBeforeDisconnect_m98A3A74F751A1D51639BB000040A749B71928865 ();
// 0x00000057 System.Void Photon.Pun.PhotonNetwork::set_MaxResendsBeforeDisconnect(System.Int32)
extern void PhotonNetwork_set_MaxResendsBeforeDisconnect_mB0844BFFE3FE1DA7222015BF3BCE6DF8B5DE2F33 ();
// 0x00000058 System.Int32 Photon.Pun.PhotonNetwork::get_QuickResends()
extern void PhotonNetwork_get_QuickResends_m79B4A23A7E9315FC2CBE91C608981A4B8F709A8C ();
// 0x00000059 System.Void Photon.Pun.PhotonNetwork::set_QuickResends(System.Int32)
extern void PhotonNetwork_set_QuickResends_m571ECFFDC476BA0D29887687CCE002106CD7B73B ();
// 0x0000005A System.Boolean Photon.Pun.PhotonNetwork::get_UseAlternativeUdpPorts()
extern void PhotonNetwork_get_UseAlternativeUdpPorts_m3BCD9138D354D5C2E994A284EF8909FAB8EAA1F0 ();
// 0x0000005B System.Void Photon.Pun.PhotonNetwork::set_UseAlternativeUdpPorts(System.Boolean)
extern void PhotonNetwork_set_UseAlternativeUdpPorts_m313624DA5352DE3D6BA387E3587F3E00BE12037A ();
// 0x0000005C System.Void Photon.Pun.PhotonNetwork::.cctor()
extern void PhotonNetwork__cctor_mF243EB3E8B6DA084C771ADDD00DF42F235CED03D ();
// 0x0000005D System.Void Photon.Pun.PhotonNetwork::StaticReset()
extern void PhotonNetwork_StaticReset_m332D0704B5AE561E10BC9F71E1F50347655A3956 ();
// 0x0000005E System.Boolean Photon.Pun.PhotonNetwork::ConnectUsingSettings()
extern void PhotonNetwork_ConnectUsingSettings_m8021DCB20F8D5D3A9FBFEE38935D95CCC5579355 ();
// 0x0000005F System.Boolean Photon.Pun.PhotonNetwork::ConnectUsingSettings(Photon.Realtime.AppSettings,System.Boolean)
extern void PhotonNetwork_ConnectUsingSettings_m862C23C350E9E424D1FE32E42618FC111E757971 ();
// 0x00000060 System.Boolean Photon.Pun.PhotonNetwork::ConnectToMaster(System.String,System.Int32,System.String)
extern void PhotonNetwork_ConnectToMaster_m65B7CF881C878BA26C5AE89DDDCBAE8224E00EF1 ();
// 0x00000061 System.Boolean Photon.Pun.PhotonNetwork::ConnectToBestCloudServer()
extern void PhotonNetwork_ConnectToBestCloudServer_mF8879029A7F3BEF0AB4B4F1BEF17DE4AE8E54961 ();
// 0x00000062 System.Boolean Photon.Pun.PhotonNetwork::ConnectToRegion(System.String)
extern void PhotonNetwork_ConnectToRegion_m19F8940D3BEFAC5F345ABDD2F7A366DB61008A2E ();
// 0x00000063 System.Void Photon.Pun.PhotonNetwork::Disconnect()
extern void PhotonNetwork_Disconnect_m00145C9A4F819E3162CC1E8EC7C325E6D6A8ED05 ();
// 0x00000064 System.Boolean Photon.Pun.PhotonNetwork::Reconnect()
extern void PhotonNetwork_Reconnect_m181A2201EA605231FB3032651E521ABDC287B926 ();
// 0x00000065 System.Void Photon.Pun.PhotonNetwork::NetworkStatisticsReset()
extern void PhotonNetwork_NetworkStatisticsReset_m51B4F1337F0B4D0B6A68D13160E7A049B3C21F10 ();
// 0x00000066 System.String Photon.Pun.PhotonNetwork::NetworkStatisticsToString()
extern void PhotonNetwork_NetworkStatisticsToString_m95BB7256AE2DFFE6BAB7887DBF7117F37133DA1F ();
// 0x00000067 System.Boolean Photon.Pun.PhotonNetwork::VerifyCanUseNetwork()
extern void PhotonNetwork_VerifyCanUseNetwork_m605A2E9BDA36F0AD066D4C7293B05EFAA16F1FCC ();
// 0x00000068 System.Int32 Photon.Pun.PhotonNetwork::GetPing()
extern void PhotonNetwork_GetPing_m19C66FE34028DB920307BB89AFF5E954C57FA165 ();
// 0x00000069 System.Void Photon.Pun.PhotonNetwork::FetchServerTimestamp()
extern void PhotonNetwork_FetchServerTimestamp_mF05E00DC84D7BEB913275F2DCEF47F294FB77F52 ();
// 0x0000006A System.Void Photon.Pun.PhotonNetwork::SendAllOutgoingCommands()
extern void PhotonNetwork_SendAllOutgoingCommands_m6A18D264DC3333CBEBD220BC5CA15027BED7EE90 ();
// 0x0000006B System.Boolean Photon.Pun.PhotonNetwork::CloseConnection(Photon.Realtime.Player)
extern void PhotonNetwork_CloseConnection_mD82F058A684C2F7C91775E7D9989FBEF7B51B8D0 ();
// 0x0000006C System.Boolean Photon.Pun.PhotonNetwork::SetMasterClient(Photon.Realtime.Player)
extern void PhotonNetwork_SetMasterClient_mF1D284F2AA87AD1A7C8D5C4BF0521C067ECC1797 ();
// 0x0000006D System.Boolean Photon.Pun.PhotonNetwork::JoinRandomRoom()
extern void PhotonNetwork_JoinRandomRoom_mE7178455302B4CD1C57E02F370A4DCFF6386EFF0 ();
// 0x0000006E System.Boolean Photon.Pun.PhotonNetwork::JoinRandomRoom(ExitGames.Client.Photon.Hashtable,System.Byte)
extern void PhotonNetwork_JoinRandomRoom_m0CAEC917A4E1F1791A0114C3369BB693AA3D6BF7 ();
// 0x0000006F System.Boolean Photon.Pun.PhotonNetwork::JoinRandomRoom(ExitGames.Client.Photon.Hashtable,System.Byte,Photon.Realtime.MatchmakingMode,Photon.Realtime.TypedLobby,System.String,System.String[])
extern void PhotonNetwork_JoinRandomRoom_mB0FA04BCEFA317D8A3564B17515115628D164E3E ();
// 0x00000070 System.Boolean Photon.Pun.PhotonNetwork::CreateRoom(System.String,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,System.String[])
extern void PhotonNetwork_CreateRoom_m8F4C5E1CB330B138058D6A7C96971DB1E43AF915 ();
// 0x00000071 System.Boolean Photon.Pun.PhotonNetwork::JoinOrCreateRoom(System.String,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,System.String[])
extern void PhotonNetwork_JoinOrCreateRoom_m1E3B1ED93FD5BEDACDD6ECBB7F47F5FEC9EB5D0C ();
// 0x00000072 System.Boolean Photon.Pun.PhotonNetwork::JoinRoom(System.String,System.String[])
extern void PhotonNetwork_JoinRoom_m636ADAA907982A002F39B01CD1CEEBEEE0B8A524 ();
// 0x00000073 System.Boolean Photon.Pun.PhotonNetwork::RejoinRoom(System.String)
extern void PhotonNetwork_RejoinRoom_m2D5C7545B52EFBFBE1C0BA992CCBCCEA47010A34 ();
// 0x00000074 System.Boolean Photon.Pun.PhotonNetwork::ReconnectAndRejoin()
extern void PhotonNetwork_ReconnectAndRejoin_mDB2FCA23266F23213EA5A017B162428F3A9555F1 ();
// 0x00000075 System.Boolean Photon.Pun.PhotonNetwork::LeaveRoom(System.Boolean)
extern void PhotonNetwork_LeaveRoom_mF8484F679A0477C0D4647CA2EF50036D38E16C44 ();
// 0x00000076 System.Void Photon.Pun.PhotonNetwork::EnterOfflineRoom(System.String,Photon.Realtime.RoomOptions,System.Boolean)
extern void PhotonNetwork_EnterOfflineRoom_m74AA2AA4E4DA140BC39B9578E32303CA2B2D330E ();
// 0x00000077 System.Boolean Photon.Pun.PhotonNetwork::JoinLobby()
extern void PhotonNetwork_JoinLobby_m25C0476153B72E0D0EA24EBAD22E0A94FFD18542 ();
// 0x00000078 System.Boolean Photon.Pun.PhotonNetwork::JoinLobby(Photon.Realtime.TypedLobby)
extern void PhotonNetwork_JoinLobby_mD2F0934DAF65B508C3B85F7E027248DF8D904C3B ();
// 0x00000079 System.Boolean Photon.Pun.PhotonNetwork::LeaveLobby()
extern void PhotonNetwork_LeaveLobby_mD83D15753B3253E6F7F5AF611DF1AF85F5FCE41A ();
// 0x0000007A System.Boolean Photon.Pun.PhotonNetwork::FindFriends(System.String[])
extern void PhotonNetwork_FindFriends_mF0BB04A56FA2E8D6C95758CA70C727D39C2A5A32 ();
// 0x0000007B System.Boolean Photon.Pun.PhotonNetwork::GetCustomRoomList(Photon.Realtime.TypedLobby,System.String)
extern void PhotonNetwork_GetCustomRoomList_m42437C6EF0F825C1236D8D9EA197069D7BBA7F5A ();
// 0x0000007C System.Boolean Photon.Pun.PhotonNetwork::SetPlayerCustomProperties(ExitGames.Client.Photon.Hashtable)
extern void PhotonNetwork_SetPlayerCustomProperties_mCC08AE905A33DE57FB8DE77E1E6DA05AE8CD2625 ();
// 0x0000007D System.Void Photon.Pun.PhotonNetwork::RemovePlayerCustomProperties(System.String[])
extern void PhotonNetwork_RemovePlayerCustomProperties_m88BA381052C0866EA5F599847CDE1815A3A2DFA0 ();
// 0x0000007E System.Boolean Photon.Pun.PhotonNetwork::RaiseEvent(System.Byte,System.Object,Photon.Realtime.RaiseEventOptions,ExitGames.Client.Photon.SendOptions)
extern void PhotonNetwork_RaiseEvent_m24343ED9DBD78AC22E843ABCA134254D4855D88E ();
// 0x0000007F System.Boolean Photon.Pun.PhotonNetwork::RaiseEventInternal(System.Byte,System.Object,Photon.Realtime.RaiseEventOptions,ExitGames.Client.Photon.SendOptions)
extern void PhotonNetwork_RaiseEventInternal_mCC2791A2E1A654ECF7D64AB62ACA312F3AAEA5FA ();
// 0x00000080 System.Boolean Photon.Pun.PhotonNetwork::AllocateViewID(Photon.Pun.PhotonView)
extern void PhotonNetwork_AllocateViewID_mBCAB5C9BFC87A3AC7469C91443770D3C7289698D ();
// 0x00000081 System.Boolean Photon.Pun.PhotonNetwork::AllocateSceneViewID(Photon.Pun.PhotonView)
extern void PhotonNetwork_AllocateSceneViewID_m629CC0F440C70E4D511769704DCBC4C475E5E50E ();
// 0x00000082 System.Int32 Photon.Pun.PhotonNetwork::AllocateViewID(System.Boolean)
extern void PhotonNetwork_AllocateViewID_m06746AED05CE366B39C9F335E676F89366E3F47D ();
// 0x00000083 System.Int32 Photon.Pun.PhotonNetwork::AllocateViewID(System.Int32)
extern void PhotonNetwork_AllocateViewID_m4E19570B7A0E1799E593D15F657709306A568D93 ();
// 0x00000084 UnityEngine.GameObject Photon.Pun.PhotonNetwork::Instantiate(System.String,UnityEngine.Vector3,UnityEngine.Quaternion,System.Byte,System.Object[])
extern void PhotonNetwork_Instantiate_m9D218816B3E0E9BE9143CB7952E35B49EBCD8145 ();
// 0x00000085 UnityEngine.GameObject Photon.Pun.PhotonNetwork::InstantiateSceneObject(System.String,UnityEngine.Vector3,UnityEngine.Quaternion,System.Byte,System.Object[])
extern void PhotonNetwork_InstantiateSceneObject_m91F19C63F04D2E9F158EACC9672547117163A8EB ();
// 0x00000086 UnityEngine.GameObject Photon.Pun.PhotonNetwork::InstantiateRoomObject(System.String,UnityEngine.Vector3,UnityEngine.Quaternion,System.Byte,System.Object[])
extern void PhotonNetwork_InstantiateRoomObject_m2BD806F61A9A39A77DF8E6A63ABD3E6471692025 ();
// 0x00000087 UnityEngine.GameObject Photon.Pun.PhotonNetwork::NetworkInstantiate(ExitGames.Client.Photon.Hashtable,Photon.Realtime.Player)
extern void PhotonNetwork_NetworkInstantiate_m5F1C6DE0093498864C27EC187A5317BD16643F4C ();
// 0x00000088 UnityEngine.GameObject Photon.Pun.PhotonNetwork::NetworkInstantiate(Photon.Pun.InstantiateParameters,System.Boolean,System.Boolean)
extern void PhotonNetwork_NetworkInstantiate_m39041A44BBE9F7AFB01AE2AA41F5A0546B778DA4 ();
// 0x00000089 System.Boolean Photon.Pun.PhotonNetwork::SendInstantiate(Photon.Pun.InstantiateParameters,System.Boolean)
extern void PhotonNetwork_SendInstantiate_m54108A9BDDFEDB7E2447D37EEEA2D009DF0A236A ();
// 0x0000008A System.Void Photon.Pun.PhotonNetwork::Destroy(Photon.Pun.PhotonView)
extern void PhotonNetwork_Destroy_mDC59FBFE4DF9B2B20F09AD17433617299C47A561 ();
// 0x0000008B System.Void Photon.Pun.PhotonNetwork::Destroy(UnityEngine.GameObject)
extern void PhotonNetwork_Destroy_mC2CEB136AA285ABD82F15C742435A0DA4310DCD1 ();
// 0x0000008C System.Void Photon.Pun.PhotonNetwork::DestroyPlayerObjects(Photon.Realtime.Player)
extern void PhotonNetwork_DestroyPlayerObjects_mA7B830A1C45FB957A926D4FBC279C973A88245F5 ();
// 0x0000008D System.Void Photon.Pun.PhotonNetwork::DestroyPlayerObjects(System.Int32)
extern void PhotonNetwork_DestroyPlayerObjects_m9DBB863FF92C431498361B8F5BF5C6FC81EB31DE ();
// 0x0000008E System.Void Photon.Pun.PhotonNetwork::DestroyAll()
extern void PhotonNetwork_DestroyAll_m449D1835324CB9FA522C09C8F1EE8BE8C55FE7B3 ();
// 0x0000008F System.Void Photon.Pun.PhotonNetwork::RemoveRPCs(Photon.Realtime.Player)
extern void PhotonNetwork_RemoveRPCs_mCBD0152472ABC18CA7625E88B4BC22A83803E759 ();
// 0x00000090 System.Void Photon.Pun.PhotonNetwork::RemoveRPCs(Photon.Pun.PhotonView)
extern void PhotonNetwork_RemoveRPCs_mD93C81C322F237907BD6E0E0FC8073A0F27D266F ();
// 0x00000091 System.Void Photon.Pun.PhotonNetwork::RPC(Photon.Pun.PhotonView,System.String,Photon.Pun.RpcTarget,System.Boolean,System.Object[])
extern void PhotonNetwork_RPC_m2A2AEB859A31D6676325C7DEFC0765454A74899B ();
// 0x00000092 System.Void Photon.Pun.PhotonNetwork::RPC(Photon.Pun.PhotonView,System.String,Photon.Realtime.Player,System.Boolean,System.Object[])
extern void PhotonNetwork_RPC_m3A324E2F867852F769217DD61E03E902E4A642B7 ();
// 0x00000093 System.Collections.Generic.HashSet`1<UnityEngine.GameObject> Photon.Pun.PhotonNetwork::FindGameObjectsWithComponent(System.Type)
extern void PhotonNetwork_FindGameObjectsWithComponent_m150927F0D7809968CD9DB26F0DD865B9334199CD ();
// 0x00000094 System.Void Photon.Pun.PhotonNetwork::SetInterestGroups(System.Byte,System.Boolean)
extern void PhotonNetwork_SetInterestGroups_m49B7C1AAE8E7B14871F077A563F00DAF093C2577 ();
// 0x00000095 System.Void Photon.Pun.PhotonNetwork::LoadLevel(System.Int32)
extern void PhotonNetwork_LoadLevel_mADEE2A15C6B9D00DDB9AF5F776E823A8547EFC69 ();
// 0x00000096 System.Void Photon.Pun.PhotonNetwork::LoadLevel(System.String)
extern void PhotonNetwork_LoadLevel_m018189075246B97065C057D7128BE87C6514D7E6 ();
// 0x00000097 System.Boolean Photon.Pun.PhotonNetwork::WebRpc(System.String,System.Object,System.Boolean)
extern void PhotonNetwork_WebRpc_m2663368E6BB930480F68E880D1D602D3C8860AF3 ();
// 0x00000098 System.Void Photon.Pun.PhotonNetwork::SetupLogging()
extern void PhotonNetwork_SetupLogging_m1099B50F49C5349495246117FE0DA1EE78C860C6 ();
// 0x00000099 Photon.Pun.PhotonView[] Photon.Pun.PhotonNetwork::get_PhotonViews()
extern void PhotonNetwork_get_PhotonViews_m0B1A26F163070E5E2EDAE89A654508373C8170E2 ();
// 0x0000009A ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator<System.Int32,Photon.Pun.PhotonView> Photon.Pun.PhotonNetwork::get_PhotonViewCollection()
extern void PhotonNetwork_get_PhotonViewCollection_m3975660675AB2504CD05411B7D14AB9DB40E5AC2 ();
// 0x0000009B System.Int32 Photon.Pun.PhotonNetwork::get_ViewCount()
extern void PhotonNetwork_get_ViewCount_mE32DF8D076C61D344115F05AF03822BD37333220 ();
// 0x0000009C System.Void Photon.Pun.PhotonNetwork::add_OnOwnershipRequestEv(System.Action`2<Photon.Pun.PhotonView,Photon.Realtime.Player>)
extern void PhotonNetwork_add_OnOwnershipRequestEv_mD6ACFF2E7FA050B6CF4B962389027C97A2A14928 ();
// 0x0000009D System.Void Photon.Pun.PhotonNetwork::remove_OnOwnershipRequestEv(System.Action`2<Photon.Pun.PhotonView,Photon.Realtime.Player>)
extern void PhotonNetwork_remove_OnOwnershipRequestEv_m5E99BF5B96906B38D10F7AE691D454B8589B4463 ();
// 0x0000009E System.Void Photon.Pun.PhotonNetwork::add_OnOwnershipTransferedEv(System.Action`2<Photon.Pun.PhotonView,Photon.Realtime.Player>)
extern void PhotonNetwork_add_OnOwnershipTransferedEv_m848F6B7CEE9217BD6DD035CFD9B49A4ABA3513A3 ();
// 0x0000009F System.Void Photon.Pun.PhotonNetwork::remove_OnOwnershipTransferedEv(System.Action`2<Photon.Pun.PhotonView,Photon.Realtime.Player>)
extern void PhotonNetwork_remove_OnOwnershipTransferedEv_m8834F5E7338F3D9AAFB6EF911C867BA28EBECC49 ();
// 0x000000A0 System.Void Photon.Pun.PhotonNetwork::AddCallbackTarget(System.Object)
extern void PhotonNetwork_AddCallbackTarget_mFE2597E0B7830015D59AF8832DCF5A187EA81AD5 ();
// 0x000000A1 System.Void Photon.Pun.PhotonNetwork::RemoveCallbackTarget(System.Object)
extern void PhotonNetwork_RemoveCallbackTarget_mB3AE428879AE247E58DE338B029E98A35FD98C6E ();
// 0x000000A2 System.String Photon.Pun.PhotonNetwork::CallbacksToString()
extern void PhotonNetwork_CallbacksToString_mC9F80A43AD92B787E488CC7B33D314239CD73BEA ();
// 0x000000A3 Photon.Pun.IPunPrefabPool Photon.Pun.PhotonNetwork::get_PrefabPool()
extern void PhotonNetwork_get_PrefabPool_m48DD97C32D592E00F5DF381AA8AFC3560C6F4D51 ();
// 0x000000A4 System.Void Photon.Pun.PhotonNetwork::set_PrefabPool(Photon.Pun.IPunPrefabPool)
extern void PhotonNetwork_set_PrefabPool_mD27A046D76F37696404576883C803FB6AA7D8C42 ();
// 0x000000A5 System.Single Photon.Pun.PhotonNetwork::get_LevelLoadingProgress()
extern void PhotonNetwork_get_LevelLoadingProgress_m7B107807AD23FB009EBB20AC9BBF5C4E300FA1FD ();
// 0x000000A6 System.Void Photon.Pun.PhotonNetwork::LeftRoomCleanup()
extern void PhotonNetwork_LeftRoomCleanup_m7DD2D79ABDCFB19C911CB9C384093BAA9A69C607 ();
// 0x000000A7 System.Void Photon.Pun.PhotonNetwork::LocalCleanupAnythingInstantiated(System.Boolean)
extern void PhotonNetwork_LocalCleanupAnythingInstantiated_m81B62F3D8681EA552FEE035B135EA46F6C7FA67B ();
// 0x000000A8 System.Void Photon.Pun.PhotonNetwork::ResetPhotonViewsOnSerialize()
extern void PhotonNetwork_ResetPhotonViewsOnSerialize_m7D8B23766F4EA9DCAC30B1F47AEE7F290AA547B8 ();
// 0x000000A9 System.Void Photon.Pun.PhotonNetwork::ExecuteRpc(ExitGames.Client.Photon.Hashtable,Photon.Realtime.Player)
extern void PhotonNetwork_ExecuteRpc_mD31E376DABACEF9CF05FB45B3BAF7662B1B0D2AF ();
// 0x000000AA System.Boolean Photon.Pun.PhotonNetwork::CheckTypeMatch(System.Reflection.ParameterInfo[],System.Type[])
extern void PhotonNetwork_CheckTypeMatch_mBCE7C69DAA098EA9CB7709241E2A82C16E04785D ();
// 0x000000AB System.Void Photon.Pun.PhotonNetwork::DestroyPlayerObjects(System.Int32,System.Boolean)
extern void PhotonNetwork_DestroyPlayerObjects_m1B119B44B7C3FC1509715353F8E6DE8EDD1D9CD3 ();
// 0x000000AC System.Void Photon.Pun.PhotonNetwork::DestroyAll(System.Boolean)
extern void PhotonNetwork_DestroyAll_m5100A9893A1B6EBE3D0120C91179BDB8DC739241 ();
// 0x000000AD System.Void Photon.Pun.PhotonNetwork::RemoveInstantiatedGO(UnityEngine.GameObject,System.Boolean)
extern void PhotonNetwork_RemoveInstantiatedGO_m94A57CE94596A8636D8B3E020820D2003F76E8E8 ();
// 0x000000AE System.Void Photon.Pun.PhotonNetwork::ServerCleanInstantiateAndDestroy(Photon.Pun.PhotonView)
extern void PhotonNetwork_ServerCleanInstantiateAndDestroy_m2ECFBB9A86022510D1E9EC11CE6FC00FD0060EB7 ();
// 0x000000AF System.Void Photon.Pun.PhotonNetwork::SendDestroyOfPlayer(System.Int32)
extern void PhotonNetwork_SendDestroyOfPlayer_m6DE23C448686BB5EF7E1001660FBA1B8E951AA28 ();
// 0x000000B0 System.Void Photon.Pun.PhotonNetwork::SendDestroyOfAll()
extern void PhotonNetwork_SendDestroyOfAll_m4741AD22C95659201B758F93B4B61C801F65B86C ();
// 0x000000B1 System.Void Photon.Pun.PhotonNetwork::OpRemoveFromServerInstantiationsOfPlayer(System.Int32)
extern void PhotonNetwork_OpRemoveFromServerInstantiationsOfPlayer_m1DC50EB0D5B680E88546100B8E46C5557EDC46B0 ();
// 0x000000B2 System.Void Photon.Pun.PhotonNetwork::RequestOwnership(System.Int32,System.Int32)
extern void PhotonNetwork_RequestOwnership_m878535F79D0B82193E6FDAE66B6C29467A8AC4C5 ();
// 0x000000B3 System.Void Photon.Pun.PhotonNetwork::TransferOwnership(System.Int32,System.Int32)
extern void PhotonNetwork_TransferOwnership_m4A9E407E53070DEF7479C557BCDCD18E1E085486 ();
// 0x000000B4 System.Void Photon.Pun.PhotonNetwork::OnwershipUpdate(System.Int32[],System.Int32)
extern void PhotonNetwork_OnwershipUpdate_m38176600BB3F6DD9F3528A51463F1C1420C8546D ();
// 0x000000B5 System.Boolean Photon.Pun.PhotonNetwork::LocalCleanPhotonView(Photon.Pun.PhotonView)
extern void PhotonNetwork_LocalCleanPhotonView_m843AF475A4D66F8224E414855427B78D2F14D9B2 ();
// 0x000000B6 Photon.Pun.PhotonView Photon.Pun.PhotonNetwork::GetPhotonView(System.Int32)
extern void PhotonNetwork_GetPhotonView_mC8007120235F150ECB55FD563D1CE42E8D5AF153 ();
// 0x000000B7 System.Void Photon.Pun.PhotonNetwork::RegisterPhotonView(Photon.Pun.PhotonView)
extern void PhotonNetwork_RegisterPhotonView_m4E523EEA4FE46B919ACBC4EEB2FF76AC2ED5A25F ();
// 0x000000B8 System.Void Photon.Pun.PhotonNetwork::OpCleanActorRpcBuffer(System.Int32)
extern void PhotonNetwork_OpCleanActorRpcBuffer_m93EA6C38ADB02629D28681B048DD2BA1010F4D6A ();
// 0x000000B9 System.Void Photon.Pun.PhotonNetwork::OpRemoveCompleteCacheOfPlayer(System.Int32)
extern void PhotonNetwork_OpRemoveCompleteCacheOfPlayer_mC614A8440D05EAC688FD8A3C43D6B51A8C35C5F4 ();
// 0x000000BA System.Void Photon.Pun.PhotonNetwork::OpRemoveCompleteCache()
extern void PhotonNetwork_OpRemoveCompleteCache_m7D4E8C9B04B79C7FFACB2E624EB14F77DCF7F308 ();
// 0x000000BB System.Void Photon.Pun.PhotonNetwork::RemoveCacheOfLeftPlayers()
extern void PhotonNetwork_RemoveCacheOfLeftPlayers_m1D2CC446E13E67381E2FA2958CB0880A5D8F2EE8 ();
// 0x000000BC System.Void Photon.Pun.PhotonNetwork::CleanRpcBufferIfMine(Photon.Pun.PhotonView)
extern void PhotonNetwork_CleanRpcBufferIfMine_mB697279C9E1DD804944AF252116807865300A8AF ();
// 0x000000BD System.Void Photon.Pun.PhotonNetwork::OpCleanRpcBuffer(Photon.Pun.PhotonView)
extern void PhotonNetwork_OpCleanRpcBuffer_mFB2A5F95C71A3CB8D5D6C0CA6A68B56418924206 ();
// 0x000000BE System.Void Photon.Pun.PhotonNetwork::RemoveRPCsInGroup(System.Int32)
extern void PhotonNetwork_RemoveRPCsInGroup_m8F4383B134EEE3ABF7A9B3AEBDF17A106DE7CAF2 ();
// 0x000000BF System.Void Photon.Pun.PhotonNetwork::SetLevelPrefix(System.Byte)
extern void PhotonNetwork_SetLevelPrefix_m6F71EDE4DCC9C3C2F633187816F37FE92F70C3FC ();
// 0x000000C0 System.Void Photon.Pun.PhotonNetwork::RPC(Photon.Pun.PhotonView,System.String,Photon.Pun.RpcTarget,Photon.Realtime.Player,System.Boolean,System.Object[])
extern void PhotonNetwork_RPC_m875921ED23428B48440502D4E58D697A8654DC29 ();
// 0x000000C1 System.Void Photon.Pun.PhotonNetwork::SetInterestGroups(System.Byte[],System.Byte[])
extern void PhotonNetwork_SetInterestGroups_m4DECB089C3E9CF4E0A019AC06A006498541FD742 ();
// 0x000000C2 System.Void Photon.Pun.PhotonNetwork::SetSendingEnabled(System.Byte,System.Boolean)
extern void PhotonNetwork_SetSendingEnabled_m30A756CE4308E6C6E501F50AE262216342548B66 ();
// 0x000000C3 System.Void Photon.Pun.PhotonNetwork::SetSendingEnabled(System.Byte[],System.Byte[])
extern void PhotonNetwork_SetSendingEnabled_m62A7D73464710FD8F299A4485B61FA1F626AE1DF ();
// 0x000000C4 System.Void Photon.Pun.PhotonNetwork::NewSceneLoaded()
extern void PhotonNetwork_NewSceneLoaded_mE565F3FFBE627108DB4B93D02D6D3E081BC390D4 ();
// 0x000000C5 System.Void Photon.Pun.PhotonNetwork::RunViewUpdate()
extern void PhotonNetwork_RunViewUpdate_mFCAF112C08930B2DC3F1499261A3CEA3FCCE0BA8 ();
// 0x000000C6 System.Void Photon.Pun.PhotonNetwork::SendSerializeViewBatch(Photon.Pun.PhotonNetwork_SerializeViewBatch)
extern void PhotonNetwork_SendSerializeViewBatch_mEAC3E4B6D68BFF3CBB318F6FAE5E40E78787FE65 ();
// 0x000000C7 System.Collections.Generic.List`1<System.Object> Photon.Pun.PhotonNetwork::OnSerializeWrite(Photon.Pun.PhotonView)
extern void PhotonNetwork_OnSerializeWrite_mB9CD36BBBEB5BFD70C5D195F2C967B915304212E ();
// 0x000000C8 System.Void Photon.Pun.PhotonNetwork::OnSerializeRead(System.Object[],Photon.Realtime.Player,System.Int32,System.Int16)
extern void PhotonNetwork_OnSerializeRead_m7463895B4662BB62D88BE2C5E1C73D67CC65400C ();
// 0x000000C9 System.Collections.Generic.List`1<System.Object> Photon.Pun.PhotonNetwork::DeltaCompressionWrite(System.Collections.Generic.List`1<System.Object>,System.Collections.Generic.List`1<System.Object>)
extern void PhotonNetwork_DeltaCompressionWrite_mE1CF6E393AFEB8F7D7688FFF1B786F50AD005688 ();
// 0x000000CA System.Object[] Photon.Pun.PhotonNetwork::DeltaCompressionRead(System.Object[],System.Object[])
extern void PhotonNetwork_DeltaCompressionRead_mA701B58F04EBE123EE9BA5C340FA121D9E349DC9 ();
// 0x000000CB System.Boolean Photon.Pun.PhotonNetwork::AlmostEquals(System.Collections.Generic.IList`1<System.Object>,System.Collections.Generic.IList`1<System.Object>)
extern void PhotonNetwork_AlmostEquals_mBA2825EE524C764CAF2191B4F925F21260495947 ();
// 0x000000CC System.Boolean Photon.Pun.PhotonNetwork::AlmostEquals(System.Object,System.Object)
extern void PhotonNetwork_AlmostEquals_m2E957FD413F1BF260098F87E19BB5C68B4032108 ();
// 0x000000CD System.Boolean Photon.Pun.PhotonNetwork::GetMethod(UnityEngine.MonoBehaviour,System.String,System.Reflection.MethodInfo&)
extern void PhotonNetwork_GetMethod_m7DEA18FE8C962D6CD704CBC5980DFDED691E7506 ();
// 0x000000CE System.Void Photon.Pun.PhotonNetwork::LoadLevelIfSynced()
extern void PhotonNetwork_LoadLevelIfSynced_m14726F48038ACC4BF84BD321138FF15DB68E7BD9 ();
// 0x000000CF System.Void Photon.Pun.PhotonNetwork::SetLevelInPropsIfSynced(System.Object)
extern void PhotonNetwork_SetLevelInPropsIfSynced_m13E0A2EE3B6692976C480FE812765CF3C073D863 ();
// 0x000000D0 System.Void Photon.Pun.PhotonNetwork::OnEvent(ExitGames.Client.Photon.EventData)
extern void PhotonNetwork_OnEvent_mF423B2B735FF6A0DDB169DDA8B2976455210CF3D ();
// 0x000000D1 System.Void Photon.Pun.PhotonNetwork::OnOperation(ExitGames.Client.Photon.OperationResponse)
extern void PhotonNetwork_OnOperation_mD6A7AFC54CE776E6536899A432764068208B3385 ();
// 0x000000D2 System.Void Photon.Pun.PhotonNetwork::OnClientStateChanged(Photon.Realtime.ClientState,Photon.Realtime.ClientState)
extern void PhotonNetwork_OnClientStateChanged_mD60F655DED12140A802F32E0CA038906566907D6 ();
// 0x000000D3 System.Void Photon.Pun.PhotonNetwork::OnRegionsPinged(Photon.Realtime.RegionHandler)
extern void PhotonNetwork_OnRegionsPinged_m6CE0637C4C1E26FC99849E7AFCFA7DA68BF35C42 ();
// 0x000000D4 System.Void Photon.Pun.PhotonStreamQueue::.ctor(System.Int32)
extern void PhotonStreamQueue__ctor_m701EEA27997AEC65B1C9C4684B1F1C8717FDB4A2 ();
// 0x000000D5 System.Void Photon.Pun.PhotonStreamQueue::BeginWritePackage()
extern void PhotonStreamQueue_BeginWritePackage_m1422FC9FA4E756A2F8A611B14B971A60B0C90D13 ();
// 0x000000D6 System.Void Photon.Pun.PhotonStreamQueue::Reset()
extern void PhotonStreamQueue_Reset_mB399A65DD771F8779251FB5C671916E3E7D4A282 ();
// 0x000000D7 System.Void Photon.Pun.PhotonStreamQueue::SendNext(System.Object)
extern void PhotonStreamQueue_SendNext_mE2B9D3157A8AFCE44572AA33B31A9BA6B8344F17 ();
// 0x000000D8 System.Boolean Photon.Pun.PhotonStreamQueue::HasQueuedObjects()
extern void PhotonStreamQueue_HasQueuedObjects_m8DE3DFDF2C74D19C951236E85353D4E193C9C0C7 ();
// 0x000000D9 System.Object Photon.Pun.PhotonStreamQueue::ReceiveNext()
extern void PhotonStreamQueue_ReceiveNext_m40ACF14FF55E9C9D3EDCDC9EFAABE7994E2D9919 ();
// 0x000000DA System.Void Photon.Pun.PhotonStreamQueue::Serialize(Photon.Pun.PhotonStream)
extern void PhotonStreamQueue_Serialize_m404C367BBE48A61A242517D2353389562EAAC3B3 ();
// 0x000000DB System.Void Photon.Pun.PhotonStreamQueue::Deserialize(Photon.Pun.PhotonStream)
extern void PhotonStreamQueue_Deserialize_m3F3F09D6964955C32E72554D893FACEDD3315196 ();
// 0x000000DC System.Void Photon.Pun.IOnPhotonViewPreNetDestroy::OnPreNetDestroy(Photon.Pun.PhotonView)
// 0x000000DD System.Void Photon.Pun.IOnPhotonViewControllerChange::OnControllerChange(Photon.Realtime.Player,Photon.Realtime.Player,System.Boolean,System.Boolean)
// 0x000000DE System.Int32 Photon.Pun.PhotonView::get_Prefix()
extern void PhotonView_get_Prefix_m4EBD59509A85CF1D43C09F70EA41AA2CE20F3602 ();
// 0x000000DF System.Void Photon.Pun.PhotonView::set_Prefix(System.Int32)
extern void PhotonView_set_Prefix_mA57D725B1E5D55956DF449DDFD7536BA7632B96C ();
// 0x000000E0 System.Object[] Photon.Pun.PhotonView::get_InstantiationData()
extern void PhotonView_get_InstantiationData_mB0731A9C32456F8169DC4C5FEA21A7587FAD8B31 ();
// 0x000000E1 System.Void Photon.Pun.PhotonView::set_InstantiationData(System.Object[])
extern void PhotonView_set_InstantiationData_m1237915AD941BEFEB91462744150318B569BB932 ();
// 0x000000E2 System.Void Photon.Pun.PhotonView::AddCallbackTarget(System.Object)
extern void PhotonView_AddCallbackTarget_m8AC7FBED6F740124D102615E8C2B2C6A28D3887E ();
// 0x000000E3 System.Void Photon.Pun.PhotonView::RemoveCallbackTarget(System.Object)
extern void PhotonView_RemoveCallbackTarget_m394AC888C9C9438138A0CD06A15FBF7088F50F05 ();
// 0x000000E4 System.Void Photon.Pun.PhotonView::AddCallbackTarget(System.Object)
// 0x000000E5 System.Void Photon.Pun.PhotonView::RemovecallbackTarget(System.Object)
// 0x000000E6 System.Void Photon.Pun.PhotonView::UpdateCallbackLists()
extern void PhotonView_UpdateCallbackLists_mD975457FDDAC681B65C910689E7A41577B6DE89C ();
// 0x000000E7 System.Void Photon.Pun.PhotonView::RegisterCallback(T,System.Collections.Generic.List`1<T>&,System.Boolean)
// 0x000000E8 System.Int32 Photon.Pun.PhotonView::get_ViewID()
extern void PhotonView_get_ViewID_mC15D092CC4BFE8638C31F9622B7DF6894E30D3D9 ();
// 0x000000E9 System.Void Photon.Pun.PhotonView::set_ViewID(System.Int32)
extern void PhotonView_set_ViewID_m489879E6DAD4700D0A0DCA77849EAA92FAFE7CDB ();
// 0x000000EA System.Boolean Photon.Pun.PhotonView::get_IsSceneView()
extern void PhotonView_get_IsSceneView_m6E6B2B67B70DEE273B1BABBF739BBAA775CB5ACA ();
// 0x000000EB System.Void Photon.Pun.PhotonView::ResetPhotonView(System.Boolean)
extern void PhotonView_ResetPhotonView_m1372237E04942E47014045BB746EA6364620A8A7 ();
// 0x000000EC System.Void Photon.Pun.PhotonView::ResetOwnership()
extern void PhotonView_ResetOwnership_mD29AC1D2194545AD111A4CF427CACF3166189645 ();
// 0x000000ED System.Void Photon.Pun.PhotonView::SetOwnerInternal(Photon.Realtime.Player,System.Int32)
extern void PhotonView_SetOwnerInternal_m6E5B9892883A928DFB78423446E5414D39523DB6 ();
// 0x000000EE System.Void Photon.Pun.PhotonView::RebuildControllerCache(System.Boolean)
extern void PhotonView_RebuildControllerCache_mF49556F2301BE7E6F6F9985D472705A9B97A1864 ();
// 0x000000EF Photon.Realtime.Player Photon.Pun.PhotonView::get_Owner()
extern void PhotonView_get_Owner_mD339E981ADADF5A7F88F6D4F530F1EB8F1C34DEE ();
// 0x000000F0 System.Int32 Photon.Pun.PhotonView::get_OwnerActorNr()
extern void PhotonView_get_OwnerActorNr_m297F5F405EF3ACE0A262F942FF01357EE4BDE886 ();
// 0x000000F1 Photon.Realtime.Player Photon.Pun.PhotonView::get_Controller()
extern void PhotonView_get_Controller_mABA45440F92EDB48CB1F32D6D2B3553C61E11DC6 ();
// 0x000000F2 System.Int32 Photon.Pun.PhotonView::get_ControllerActorNr()
extern void PhotonView_get_ControllerActorNr_m8D9D0453C6E350464D670B38210911BCEAE61C97 ();
// 0x000000F3 System.Boolean Photon.Pun.PhotonView::get_IsOwnerActive()
extern void PhotonView_get_IsOwnerActive_mA17BFB41B289C7CD1A75B2AA27DAB90A69FEC87F ();
// 0x000000F4 System.Int32 Photon.Pun.PhotonView::get_CreatorActorNr()
extern void PhotonView_get_CreatorActorNr_m182100823912B7A313C17D0844D599BFAAA03629 ();
// 0x000000F5 System.Boolean Photon.Pun.PhotonView::get_IsMine()
extern void PhotonView_get_IsMine_mFE1D0AB5684F18073518777C1D8FF764CB335793 ();
// 0x000000F6 System.Void Photon.Pun.PhotonView::Awake()
extern void PhotonView_Awake_mA6E574DBACD2811EDD303783CB7C256F6ACAEA4F ();
// 0x000000F7 System.Void Photon.Pun.PhotonView::FindObservables(System.Boolean)
extern void PhotonView_FindObservables_mE8804F86397753F9CEDCD167E58287C85B9A639C ();
// 0x000000F8 System.Void Photon.Pun.PhotonView::OnPreNetDestroy(Photon.Pun.PhotonView)
extern void PhotonView_OnPreNetDestroy_m952E0BAFB490247421021822AA029093C49B7F1C ();
// 0x000000F9 System.Void Photon.Pun.PhotonView::OnDestroy()
extern void PhotonView_OnDestroy_mFE646382844BCDEF6001AAE47167BD704975D8DE ();
// 0x000000FA System.Void Photon.Pun.PhotonView::RequestOwnership()
extern void PhotonView_RequestOwnership_mFD54041B0C70B516EC2DB1C12E606825551AB9F0 ();
// 0x000000FB System.Void Photon.Pun.PhotonView::TransferOwnership(Photon.Realtime.Player)
extern void PhotonView_TransferOwnership_m9FD7BE2FEC4A04A972F9386717BDF904F265F071 ();
// 0x000000FC System.Void Photon.Pun.PhotonView::TransferOwnership(System.Int32)
extern void PhotonView_TransferOwnership_mE63F4A1B73D7E89DEC4261C163880A3BEB5F5B76 ();
// 0x000000FD System.Void Photon.Pun.PhotonView::SerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonView_SerializeView_m4FA3E888E8C7C3A959ABEAD9194CFEBFFA709156 ();
// 0x000000FE System.Void Photon.Pun.PhotonView::DeserializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonView_DeserializeView_m2E67D40D896990811E722E1FB99BC5BFEC46EFB2 ();
// 0x000000FF System.Void Photon.Pun.PhotonView::DeserializeComponent(UnityEngine.Component,Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonView_DeserializeComponent_m556FF3D2A81CA3B9A6371944CDC9F728820F7788 ();
// 0x00000100 System.Void Photon.Pun.PhotonView::SerializeComponent(UnityEngine.Component,Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonView_SerializeComponent_m745D96F1F125E057101C1C52E4063E1FD74424FF ();
// 0x00000101 System.Void Photon.Pun.PhotonView::RefreshRpcMonoBehaviourCache()
extern void PhotonView_RefreshRpcMonoBehaviourCache_m218A196211F926F6B1FD74910E3E87F2D5F05DD1 ();
// 0x00000102 System.Void Photon.Pun.PhotonView::RPC(System.String,Photon.Pun.RpcTarget,System.Object[])
extern void PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301 ();
// 0x00000103 System.Void Photon.Pun.PhotonView::RpcSecure(System.String,Photon.Pun.RpcTarget,System.Boolean,System.Object[])
extern void PhotonView_RpcSecure_m256A5ABAB0FF68642767ECE1D1CD1C9E391C4B16 ();
// 0x00000104 System.Void Photon.Pun.PhotonView::RPC(System.String,Photon.Realtime.Player,System.Object[])
extern void PhotonView_RPC_m3F59D00D60E09EEFCC5B5000BB7195F25689029C ();
// 0x00000105 System.Void Photon.Pun.PhotonView::RpcSecure(System.String,Photon.Realtime.Player,System.Boolean,System.Object[])
extern void PhotonView_RpcSecure_m769EF34360B1DE9B0F7FD51F77E39AF231E36B1F ();
// 0x00000106 Photon.Pun.PhotonView Photon.Pun.PhotonView::Get(UnityEngine.Component)
extern void PhotonView_Get_mFABADCC5E785D810809CC040BE8A1AA299B8D857 ();
// 0x00000107 Photon.Pun.PhotonView Photon.Pun.PhotonView::Get(UnityEngine.GameObject)
extern void PhotonView_Get_mF77DAA2CC8B2E80DBBD4588D6B5264AF853CE343 ();
// 0x00000108 Photon.Pun.PhotonView Photon.Pun.PhotonView::Find(System.Int32)
extern void PhotonView_Find_m74440585ADB7D8B89E260397726D052BAA9F9B3E ();
// 0x00000109 System.String Photon.Pun.PhotonView::ToString()
extern void PhotonView_ToString_m9C6ED6975CD25D9820A71581FCC5C1BBBF1F58B4 ();
// 0x0000010A System.Void Photon.Pun.PhotonView::.ctor()
extern void PhotonView__ctor_mC9178F9A310A82BC5C8DEF9811E254D01823ECA8 ();
// 0x0000010B System.Void Photon.Pun.PunRPC::.ctor()
extern void PunRPC__ctor_mC20AE4678DE711A2A0DCAAA8B4B2C19D101CC110 ();
// 0x0000010C System.Void Photon.Pun.IPunObservable::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
// 0x0000010D System.Void Photon.Pun.IPunOwnershipCallbacks::OnOwnershipRequest(Photon.Pun.PhotonView,Photon.Realtime.Player)
// 0x0000010E System.Void Photon.Pun.IPunOwnershipCallbacks::OnOwnershipTransfered(Photon.Pun.PhotonView,Photon.Realtime.Player)
// 0x0000010F System.Void Photon.Pun.IPunInstantiateMagicCallback::OnPhotonInstantiate(Photon.Pun.PhotonMessageInfo)
// 0x00000110 UnityEngine.GameObject Photon.Pun.IPunPrefabPool::Instantiate(System.String,UnityEngine.Vector3,UnityEngine.Quaternion)
// 0x00000111 System.Void Photon.Pun.IPunPrefabPool::Destroy(UnityEngine.GameObject)
// 0x00000112 Photon.Pun.PhotonView Photon.Pun.MonoBehaviourPun::get_photonView()
extern void MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B ();
// 0x00000113 System.Void Photon.Pun.MonoBehaviourPun::.ctor()
extern void MonoBehaviourPun__ctor_mF3271A45184F2C3A9D517D98BEF0576C71505BF1 ();
// 0x00000114 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnEnable()
extern void MonoBehaviourPunCallbacks_OnEnable_m7B1C02DB7451A9713D49A97128C1C6DEFF404427 ();
// 0x00000115 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnDisable()
extern void MonoBehaviourPunCallbacks_OnDisable_mDABF92D3CB04DA41BDC4D39CA0343355BD447B1A ();
// 0x00000116 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnConnected()
extern void MonoBehaviourPunCallbacks_OnConnected_m2997C67E98AAE01C6D7B9CBBDA38E59F75A8A6DC ();
// 0x00000117 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnLeftRoom()
extern void MonoBehaviourPunCallbacks_OnLeftRoom_m7B9388099C18E4F81ED19A222C66F577800100B4 ();
// 0x00000118 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnMasterClientSwitched(Photon.Realtime.Player)
extern void MonoBehaviourPunCallbacks_OnMasterClientSwitched_mEFB0204F7171C14969C3940B5B86937E9796BBF6 ();
// 0x00000119 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnCreateRoomFailed(System.Int16,System.String)
extern void MonoBehaviourPunCallbacks_OnCreateRoomFailed_m52FD79D3C29EA662241BBAE15B2F3C9000415EBA ();
// 0x0000011A System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnJoinRoomFailed(System.Int16,System.String)
extern void MonoBehaviourPunCallbacks_OnJoinRoomFailed_mCAF9C2AB25E7CB441E703A9837984AD56C50E4E3 ();
// 0x0000011B System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnCreatedRoom()
extern void MonoBehaviourPunCallbacks_OnCreatedRoom_m02DF7D6BDF105ECE8CC5B66BF30AFFF11E2A5635 ();
// 0x0000011C System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnJoinedLobby()
extern void MonoBehaviourPunCallbacks_OnJoinedLobby_mF5F75CD5A6846ACDA16C01B0640776FF014F63FA ();
// 0x0000011D System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnLeftLobby()
extern void MonoBehaviourPunCallbacks_OnLeftLobby_m00BCFB4A5A729E61A102C58A23F467225E4DCAA2 ();
// 0x0000011E System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnDisconnected(Photon.Realtime.DisconnectCause)
extern void MonoBehaviourPunCallbacks_OnDisconnected_m8ADC29905BFF4465B6591ACFB6A505799397BF0A ();
// 0x0000011F System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnRegionListReceived(Photon.Realtime.RegionHandler)
extern void MonoBehaviourPunCallbacks_OnRegionListReceived_m739042488FEE2D96F78474B555E3539F67C2F5FF ();
// 0x00000120 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnRoomListUpdate(System.Collections.Generic.List`1<Photon.Realtime.RoomInfo>)
extern void MonoBehaviourPunCallbacks_OnRoomListUpdate_m0EAE285429CBBD819210EB0C7071DB6FAB7A671E ();
// 0x00000121 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnJoinedRoom()
extern void MonoBehaviourPunCallbacks_OnJoinedRoom_m67C17455BA038874C7F631AFDBA6BE2AABE99561 ();
// 0x00000122 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnPlayerEnteredRoom(Photon.Realtime.Player)
extern void MonoBehaviourPunCallbacks_OnPlayerEnteredRoom_m48853F70A5FBA0CBBBFD3752191AB8E4AED763AD ();
// 0x00000123 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnPlayerLeftRoom(Photon.Realtime.Player)
extern void MonoBehaviourPunCallbacks_OnPlayerLeftRoom_mC63165A95C3A1502A8660A2FE9CFC518ABDDB7B1 ();
// 0x00000124 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnJoinRandomFailed(System.Int16,System.String)
extern void MonoBehaviourPunCallbacks_OnJoinRandomFailed_m18360B70477E5F049FBAEB0E27C91E455858E176 ();
// 0x00000125 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnConnectedToMaster()
extern void MonoBehaviourPunCallbacks_OnConnectedToMaster_m021136A4DC453BD96E933B182150CDA49B235E77 ();
// 0x00000126 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnRoomPropertiesUpdate(ExitGames.Client.Photon.Hashtable)
extern void MonoBehaviourPunCallbacks_OnRoomPropertiesUpdate_mEC5784BB754A0C1924EB49BE09D0C97421455535 ();
// 0x00000127 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnPlayerPropertiesUpdate(Photon.Realtime.Player,ExitGames.Client.Photon.Hashtable)
extern void MonoBehaviourPunCallbacks_OnPlayerPropertiesUpdate_mAFCC1B6CE1A6558754EDD4F0AA8C3FFFBFD3E3E8 ();
// 0x00000128 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnFriendListUpdate(System.Collections.Generic.List`1<Photon.Realtime.FriendInfo>)
extern void MonoBehaviourPunCallbacks_OnFriendListUpdate_m7E9831E405B8538BC26D371BA2E474765A37683E ();
// 0x00000129 System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnCustomAuthenticationResponse(System.Collections.Generic.Dictionary`2<System.String,System.Object>)
extern void MonoBehaviourPunCallbacks_OnCustomAuthenticationResponse_mF5589EDAE7298AA68E8E09822EABFDA7E7EB55B0 ();
// 0x0000012A System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnCustomAuthenticationFailed(System.String)
extern void MonoBehaviourPunCallbacks_OnCustomAuthenticationFailed_mB243B04FD26CD349129FD4102DD1D41536B71D06 ();
// 0x0000012B System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnWebRpcResponse(ExitGames.Client.Photon.OperationResponse)
extern void MonoBehaviourPunCallbacks_OnWebRpcResponse_m42AD068F34CF882C447E8986D74A682F6E8BED95 ();
// 0x0000012C System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnLobbyStatisticsUpdate(System.Collections.Generic.List`1<Photon.Realtime.TypedLobbyInfo>)
extern void MonoBehaviourPunCallbacks_OnLobbyStatisticsUpdate_mFD77B50DD02CAA6A9F8784CFA7EE18B95BFAA13C ();
// 0x0000012D System.Void Photon.Pun.MonoBehaviourPunCallbacks::OnErrorInfo(Photon.Realtime.ErrorInfo)
extern void MonoBehaviourPunCallbacks_OnErrorInfo_m0B49A580A9AF6A7FE7ECBEFDFF3F0500513CB32B ();
// 0x0000012E System.Void Photon.Pun.MonoBehaviourPunCallbacks::.ctor()
extern void MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA ();
// 0x0000012F System.Void Photon.Pun.PhotonMessageInfo::.ctor(Photon.Realtime.Player,System.Int32,Photon.Pun.PhotonView)
extern void PhotonMessageInfo__ctor_mB7DF8F3C4338999E7047FFA61F1B8F032A47296F_AdjustorThunk ();
// 0x00000130 System.Double Photon.Pun.PhotonMessageInfo::get_timestamp()
extern void PhotonMessageInfo_get_timestamp_mA3ECFF87D3E30323212D6FEAEA970BE3A9483705_AdjustorThunk ();
// 0x00000131 System.Double Photon.Pun.PhotonMessageInfo::get_SentServerTime()
extern void PhotonMessageInfo_get_SentServerTime_mF1D7A58C63929E6E466987F5922AA6FBC298B45D_AdjustorThunk ();
// 0x00000132 System.Int32 Photon.Pun.PhotonMessageInfo::get_SentServerTimestamp()
extern void PhotonMessageInfo_get_SentServerTimestamp_m92B3BADA28CEEDF718637A4495561E73A3776C2D_AdjustorThunk ();
// 0x00000133 System.String Photon.Pun.PhotonMessageInfo::ToString()
extern void PhotonMessageInfo_ToString_m6600B4FA0C597DAAD3BE0D3A578B6474260C4DDA_AdjustorThunk ();
// 0x00000134 System.Void Photon.Pun.PunEvent::.ctor()
extern void PunEvent__ctor_m723CC3E4424B2BD0A3C68C437CD8AB135FF6BC4C ();
// 0x00000135 System.Boolean Photon.Pun.PhotonStream::get_IsWriting()
extern void PhotonStream_get_IsWriting_mB16D73A32F0C3C1CE9272057F667CE15C1DBC458 ();
// 0x00000136 System.Void Photon.Pun.PhotonStream::set_IsWriting(System.Boolean)
extern void PhotonStream_set_IsWriting_m9959508BC05CEB8B94A1EC2D247B0E03CC09345B ();
// 0x00000137 System.Boolean Photon.Pun.PhotonStream::get_IsReading()
extern void PhotonStream_get_IsReading_mB1BE45F09FE0C49E9DCEF6D70E8A0C436949B0D5 ();
// 0x00000138 System.Int32 Photon.Pun.PhotonStream::get_Count()
extern void PhotonStream_get_Count_m5C310C8F2DC06882FA92EBF81D63262115B293AB ();
// 0x00000139 System.Void Photon.Pun.PhotonStream::.ctor(System.Boolean,System.Object[])
extern void PhotonStream__ctor_mC33C568A726EF2E11AF9DE48E1D98AA4F4D38756 ();
// 0x0000013A System.Void Photon.Pun.PhotonStream::SetReadStream(System.Object[],System.Int32)
extern void PhotonStream_SetReadStream_m0A8DC9019ED7FFDC13D955859FE15E7013631F73 ();
// 0x0000013B System.Void Photon.Pun.PhotonStream::SetWriteStream(System.Collections.Generic.List`1<System.Object>,System.Int32)
extern void PhotonStream_SetWriteStream_mD09F6B7C6597AA3BDF988F5EBB5BF32A2749F042 ();
// 0x0000013C System.Collections.Generic.List`1<System.Object> Photon.Pun.PhotonStream::GetWriteStream()
extern void PhotonStream_GetWriteStream_mB79B5A514D93340D436A1D5E0ADE2B57CBA9B1B5 ();
// 0x0000013D System.Void Photon.Pun.PhotonStream::ResetWriteStream()
extern void PhotonStream_ResetWriteStream_m65F7BA53038A084E6D5597FC743F5266B26E40AC ();
// 0x0000013E System.Object Photon.Pun.PhotonStream::ReceiveNext()
extern void PhotonStream_ReceiveNext_m8D9908B4B3BFEA0C30F32C2F8CBB89FCA63357A9 ();
// 0x0000013F System.Object Photon.Pun.PhotonStream::PeekNext()
extern void PhotonStream_PeekNext_m30066D6C2D0553C0E542988C32E6772D6675346A ();
// 0x00000140 System.Void Photon.Pun.PhotonStream::SendNext(System.Object)
extern void PhotonStream_SendNext_mCDF0BEFCFF338F4A19ECFB8D25C67DAD2AA07712 ();
// 0x00000141 System.Boolean Photon.Pun.PhotonStream::CopyToListAndClear(System.Collections.Generic.List`1<System.Object>)
extern void PhotonStream_CopyToListAndClear_mFDC8BB6758028E00574A245CD62635B644750C60 ();
// 0x00000142 System.Object[] Photon.Pun.PhotonStream::ToArray()
extern void PhotonStream_ToArray_mE08B03391C47D9389CB0CF4B15845D4BCE9DA6FD ();
// 0x00000143 System.Void Photon.Pun.PhotonStream::Serialize(System.Boolean&)
extern void PhotonStream_Serialize_m12F52ED0F6FD9599169D6D3EA37AA9CF319B4A17 ();
// 0x00000144 System.Void Photon.Pun.PhotonStream::Serialize(System.Int32&)
extern void PhotonStream_Serialize_m572942604FEF72E9C8AF7A4FC0A202E6E24BCA73 ();
// 0x00000145 System.Void Photon.Pun.PhotonStream::Serialize(System.String&)
extern void PhotonStream_Serialize_m9087667DB6FD8D8963506F779E1C3BE13E47137F ();
// 0x00000146 System.Void Photon.Pun.PhotonStream::Serialize(System.Char&)
extern void PhotonStream_Serialize_mF36556F48526F4B6B96F42D6392F90C908542512 ();
// 0x00000147 System.Void Photon.Pun.PhotonStream::Serialize(System.Int16&)
extern void PhotonStream_Serialize_mB2F6AB05B960DBC6C0491CBE97D38C889E5E0FCA ();
// 0x00000148 System.Void Photon.Pun.PhotonStream::Serialize(System.Single&)
extern void PhotonStream_Serialize_m8DB16ABCA6778E7122A7A3A0B521C48F3FAD3993 ();
// 0x00000149 System.Void Photon.Pun.PhotonStream::Serialize(Photon.Realtime.Player&)
extern void PhotonStream_Serialize_mD8444806FA7C4FFB67DF1620BA87D21F2214A0A9 ();
// 0x0000014A System.Void Photon.Pun.PhotonStream::Serialize(UnityEngine.Vector3&)
extern void PhotonStream_Serialize_m8B1CBA3315CCC6D5D17E13E5E4CE1DA99258D8E0 ();
// 0x0000014B System.Void Photon.Pun.PhotonStream::Serialize(UnityEngine.Vector2&)
extern void PhotonStream_Serialize_m1AC7DDF7540543B15E88BA4AAE1DA0643D8B8C5B ();
// 0x0000014C System.Void Photon.Pun.PhotonStream::Serialize(UnityEngine.Quaternion&)
extern void PhotonStream_Serialize_mB24560BD9E2F20BB917F9C34A493EBF18D0922E5 ();
// 0x0000014D System.String Photon.Pun.SceneManagerHelper::get_ActiveSceneName()
extern void SceneManagerHelper_get_ActiveSceneName_mBDF8127A210FDA44A6942B8FABE3574318A2FAC1 ();
// 0x0000014E System.Int32 Photon.Pun.SceneManagerHelper::get_ActiveSceneBuildIndex()
extern void SceneManagerHelper_get_ActiveSceneBuildIndex_m37B9CF41489DC53231E224CEBB3C4C81955CD0E6 ();
// 0x0000014F System.Void Photon.Pun.SceneManagerHelper::.ctor()
extern void SceneManagerHelper__ctor_m7577BA80EEC41712CA53E2259410D1C3FCF96A79 ();
// 0x00000150 UnityEngine.GameObject Photon.Pun.DefaultPool::Instantiate(System.String,UnityEngine.Vector3,UnityEngine.Quaternion)
extern void DefaultPool_Instantiate_mC7973FD1EF99B39021A690D733DF4A5A6DD98E7F ();
// 0x00000151 System.Void Photon.Pun.DefaultPool::Destroy(UnityEngine.GameObject)
extern void DefaultPool_Destroy_m3082510F916257644194CCA205BBA2399C6AFA61 ();
// 0x00000152 System.Void Photon.Pun.DefaultPool::.ctor()
extern void DefaultPool__ctor_m4D1379FD4F392A07C5B273515D17425862CCE404 ();
// 0x00000153 System.Reflection.ParameterInfo[] Photon.Pun.PunExtensions::GetCachedParemeters(System.Reflection.MethodInfo)
extern void PunExtensions_GetCachedParemeters_mBD43BDB3CBD4167A1E49E72949C633762DC8105D ();
// 0x00000154 Photon.Pun.PhotonView[] Photon.Pun.PunExtensions::GetPhotonViewsInChildren(UnityEngine.GameObject)
extern void PunExtensions_GetPhotonViewsInChildren_m6AE772AD8960DAC9540669A39A2ED5A7984D45DB ();
// 0x00000155 Photon.Pun.PhotonView Photon.Pun.PunExtensions::GetPhotonView(UnityEngine.GameObject)
extern void PunExtensions_GetPhotonView_mDA3596A23EAA5C6C2B0DBAC323D16A7C8D628412 ();
// 0x00000156 System.Boolean Photon.Pun.PunExtensions::AlmostEquals(UnityEngine.Vector3,UnityEngine.Vector3,System.Single)
extern void PunExtensions_AlmostEquals_m576E61725EF1B1E75659AB3616246EBE180BDFB1 ();
// 0x00000157 System.Boolean Photon.Pun.PunExtensions::AlmostEquals(UnityEngine.Vector2,UnityEngine.Vector2,System.Single)
extern void PunExtensions_AlmostEquals_m1A0F117F7E0EAB9BADEA0CF8C1B2F702530694B8 ();
// 0x00000158 System.Boolean Photon.Pun.PunExtensions::AlmostEquals(UnityEngine.Quaternion,UnityEngine.Quaternion,System.Single)
extern void PunExtensions_AlmostEquals_m945D736C9D101B6DACE0B2001733CB97C24E22F3 ();
// 0x00000159 System.Boolean Photon.Pun.PunExtensions::AlmostEquals(System.Single,System.Single,System.Single)
extern void PunExtensions_AlmostEquals_mE1D4C852AC99DC32AEA769349F6DD6BC8D437057 ();
// 0x0000015A System.Boolean Photon.Pun.PunExtensions::CheckIsAssignableFrom(System.Type,System.Type)
extern void PunExtensions_CheckIsAssignableFrom_m5CD887B58E204F127F7DAD2F408A63D3528372BA ();
// 0x0000015B System.Void Photon.Pun.PunExtensions::.cctor()
extern void PunExtensions__cctor_m7F398F5699A60C0DD89C3EFB7D8CF796CE5F12B9 ();
// 0x0000015C System.Void Photon.Pun.ServerSettings::UseCloud(System.String,System.String)
extern void ServerSettings_UseCloud_m944D5F42BD2330D1EC6CBC75F0FB36B9B7AF9704 ();
// 0x0000015D System.Boolean Photon.Pun.ServerSettings::IsAppId(System.String)
extern void ServerSettings_IsAppId_m728E76CE95E25CDA610ECDCC949A547E7A55E6CF ();
// 0x0000015E System.String Photon.Pun.ServerSettings::get_BestRegionSummaryInPreferences()
extern void ServerSettings_get_BestRegionSummaryInPreferences_mFCEF00C287482CD83E379A87574B085F0D150AF8 ();
// 0x0000015F System.Void Photon.Pun.ServerSettings::ResetBestRegionCodeInPreferences()
extern void ServerSettings_ResetBestRegionCodeInPreferences_m59742F06C329B5EA26D7B070795CAB5775D951AA ();
// 0x00000160 System.String Photon.Pun.ServerSettings::ToString()
extern void ServerSettings_ToString_mFCA84BBA9102D219FA2C384B5A9F46392D34A736 ();
// 0x00000161 System.Void Photon.Pun.ServerSettings::.ctor()
extern void ServerSettings__ctor_mC3ABDBA3917DC9D5F3065BCA69ED7B457BB68004 ();
// 0x00000162 T Photon.Pun.NestedComponentUtilities::GetParentComponent(UnityEngine.Transform)
// 0x00000163 System.Void Photon.Pun.NestedComponentUtilities::GetNestedComponentsInParents(UnityEngine.Transform,System.Collections.Generic.List`1<T>)
// 0x00000164 T Photon.Pun.NestedComponentUtilities::GetNestedComponentInChildren(UnityEngine.Transform,System.Boolean)
// 0x00000165 T Photon.Pun.NestedComponentUtilities::GetNestedComponentInParent(UnityEngine.Transform)
// 0x00000166 T Photon.Pun.NestedComponentUtilities::GetNestedComponentInParents(UnityEngine.Transform)
// 0x00000167 System.Void Photon.Pun.NestedComponentUtilities::GetNestedComponentsInParents(UnityEngine.Transform,System.Collections.Generic.List`1<T>)
// 0x00000168 System.Collections.Generic.List`1<T> Photon.Pun.NestedComponentUtilities::GetNestedComponentsInChildren(UnityEngine.Transform,System.Collections.Generic.List`1<T>,System.Boolean)
// 0x00000169 System.Void Photon.Pun.NestedComponentUtilities::GetNestedComponentsInChildren(UnityEngine.Transform,System.Boolean,System.Collections.Generic.List`1<T>)
// 0x0000016A System.Void Photon.Pun.NestedComponentUtilities::.cctor()
extern void NestedComponentUtilities__cctor_mFE9498FEF5551CADC92FCF9205299EB5A1D69F2D ();
// 0x0000016B System.Void Photon.Pun.PhotonAnimatorView::Awake()
extern void PhotonAnimatorView_Awake_m39B1C81C62ED2B6AF8E4C92D4B6B5C60F6F5CDCB ();
// 0x0000016C System.Void Photon.Pun.PhotonAnimatorView::Update()
extern void PhotonAnimatorView_Update_mE9FC71AD7734218A4146D96F2862B617E98F1484 ();
// 0x0000016D System.Void Photon.Pun.PhotonAnimatorView::CacheDiscreteTriggers()
extern void PhotonAnimatorView_CacheDiscreteTriggers_mF7CBED38C068C33549A3C42E694068E314BCB58F ();
// 0x0000016E System.Boolean Photon.Pun.PhotonAnimatorView::DoesLayerSynchronizeTypeExist(System.Int32)
extern void PhotonAnimatorView_DoesLayerSynchronizeTypeExist_mF41AFE60EA00A487B1CCFA21BD05B3894D952F8C ();
// 0x0000016F System.Boolean Photon.Pun.PhotonAnimatorView::DoesParameterSynchronizeTypeExist(System.String)
extern void PhotonAnimatorView_DoesParameterSynchronizeTypeExist_mC6964482F9875CA40D449F2717440C599B4AA046 ();
// 0x00000170 System.Collections.Generic.List`1<Photon.Pun.PhotonAnimatorView_SynchronizedLayer> Photon.Pun.PhotonAnimatorView::GetSynchronizedLayers()
extern void PhotonAnimatorView_GetSynchronizedLayers_mE9A256C81918F2C7DFA1F821A5B3DC686C943CA8 ();
// 0x00000171 System.Collections.Generic.List`1<Photon.Pun.PhotonAnimatorView_SynchronizedParameter> Photon.Pun.PhotonAnimatorView::GetSynchronizedParameters()
extern void PhotonAnimatorView_GetSynchronizedParameters_mD8AC8A11B479F1B5B395BBD90E0ED352615F772A ();
// 0x00000172 Photon.Pun.PhotonAnimatorView_SynchronizeType Photon.Pun.PhotonAnimatorView::GetLayerSynchronizeType(System.Int32)
extern void PhotonAnimatorView_GetLayerSynchronizeType_mA7CF302D5CCE9E51A53A35A42D027F9FA1FEBD50 ();
// 0x00000173 Photon.Pun.PhotonAnimatorView_SynchronizeType Photon.Pun.PhotonAnimatorView::GetParameterSynchronizeType(System.String)
extern void PhotonAnimatorView_GetParameterSynchronizeType_m76174FD23B5E8B5A90CB4F2C44A296620BB9C78C ();
// 0x00000174 System.Void Photon.Pun.PhotonAnimatorView::SetLayerSynchronized(System.Int32,Photon.Pun.PhotonAnimatorView_SynchronizeType)
extern void PhotonAnimatorView_SetLayerSynchronized_mA299A12306A5402875408E5AE93ADCA9AA9FE793 ();
// 0x00000175 System.Void Photon.Pun.PhotonAnimatorView::SetParameterSynchronized(System.String,Photon.Pun.PhotonAnimatorView_ParameterType,Photon.Pun.PhotonAnimatorView_SynchronizeType)
extern void PhotonAnimatorView_SetParameterSynchronized_m07AB6BC349B2D7746F3A6DDBF99D65F7C1703D63 ();
// 0x00000176 System.Void Photon.Pun.PhotonAnimatorView::SerializeDataContinuously()
extern void PhotonAnimatorView_SerializeDataContinuously_mF424E1D4F8A20FB9F678BAE224407D034CFE4373 ();
// 0x00000177 System.Void Photon.Pun.PhotonAnimatorView::DeserializeDataContinuously()
extern void PhotonAnimatorView_DeserializeDataContinuously_m8007CE7D0D31A6E08CB076EA301FED765167E47C ();
// 0x00000178 System.Void Photon.Pun.PhotonAnimatorView::SerializeDataDiscretly(Photon.Pun.PhotonStream)
extern void PhotonAnimatorView_SerializeDataDiscretly_mADF7CC101DC280F5713C4FF229920F5652B99B5C ();
// 0x00000179 System.Void Photon.Pun.PhotonAnimatorView::DeserializeDataDiscretly(Photon.Pun.PhotonStream)
extern void PhotonAnimatorView_DeserializeDataDiscretly_m64439D187156F61CEB824A9F7E77A145319A7A90 ();
// 0x0000017A System.Void Photon.Pun.PhotonAnimatorView::SerializeSynchronizationTypeState(Photon.Pun.PhotonStream)
extern void PhotonAnimatorView_SerializeSynchronizationTypeState_mF0FFBD22485FAC91FE6E6573716C0F74891D9366 ();
// 0x0000017B System.Void Photon.Pun.PhotonAnimatorView::DeserializeSynchronizationTypeState(Photon.Pun.PhotonStream)
extern void PhotonAnimatorView_DeserializeSynchronizationTypeState_m019EA4CB1A003CB87705EC7D7322082918CFAFFE ();
// 0x0000017C System.Void Photon.Pun.PhotonAnimatorView::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonAnimatorView_OnPhotonSerializeView_m627D878FAA9EAFC1F41AA79BF4E17A7F3B7A6F81 ();
// 0x0000017D System.Void Photon.Pun.PhotonAnimatorView::.ctor()
extern void PhotonAnimatorView__ctor_m6D94AD7867F7CB7A0A17C955E92E9215D8263D88 ();
// 0x0000017E System.Void Photon.Pun.PhotonRigidbody2DView::Awake()
extern void PhotonRigidbody2DView_Awake_m9B08FB25FAB4867F8BA80BACD59ABBAC694CEFEF ();
// 0x0000017F System.Void Photon.Pun.PhotonRigidbody2DView::FixedUpdate()
extern void PhotonRigidbody2DView_FixedUpdate_mC8038AF793E20D4373D2290AAFD202A42AC48024 ();
// 0x00000180 System.Void Photon.Pun.PhotonRigidbody2DView::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonRigidbody2DView_OnPhotonSerializeView_mD02387E2D262B11662600839796234F8B9ABEC11 ();
// 0x00000181 System.Void Photon.Pun.PhotonRigidbody2DView::.ctor()
extern void PhotonRigidbody2DView__ctor_m0F3519AF59943AE5F147DA0F4FDF6D9F58610B76 ();
// 0x00000182 System.Void Photon.Pun.PhotonRigidbodyView::Awake()
extern void PhotonRigidbodyView_Awake_mC1AD075076A1E7F28F6D20448B8DF30C255D7BA7 ();
// 0x00000183 System.Void Photon.Pun.PhotonRigidbodyView::FixedUpdate()
extern void PhotonRigidbodyView_FixedUpdate_mC17E5ED62174B8F4E5791F266BD01D459280CFC3 ();
// 0x00000184 System.Void Photon.Pun.PhotonRigidbodyView::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonRigidbodyView_OnPhotonSerializeView_mCC38E5012D3BDA940A743C85C00156385CFCC53F ();
// 0x00000185 System.Void Photon.Pun.PhotonRigidbodyView::.ctor()
extern void PhotonRigidbodyView__ctor_mFE1B236DB80FFE23270FC5BC9FF13B2265D68323 ();
// 0x00000186 System.Void Photon.Pun.PhotonTransformView::Awake()
extern void PhotonTransformView_Awake_m8B92F4E07ECCD196DBB64FCA42D08D717AADAF25 ();
// 0x00000187 System.Void Photon.Pun.PhotonTransformView::OnEnable()
extern void PhotonTransformView_OnEnable_m47C62F61DD9BA39133FEAC3A1D26D49A33B457CD ();
// 0x00000188 System.Void Photon.Pun.PhotonTransformView::Update()
extern void PhotonTransformView_Update_mF602711F83B7F676311525103EC74CE42C46E791 ();
// 0x00000189 System.Void Photon.Pun.PhotonTransformView::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformView_OnPhotonSerializeView_mB933AB086DEDE024EFEBF6E9445DB2C601FB1CEB ();
// 0x0000018A System.Void Photon.Pun.PhotonTransformView::.ctor()
extern void PhotonTransformView__ctor_m33662D8E7FC7E7324E41E35903738673120C8B13 ();
// 0x0000018B System.Void Photon.Pun.PhotonTransformViewClassic::Awake()
extern void PhotonTransformViewClassic_Awake_mD37DE3E2DA509586BB93C634941775BB66326295 ();
// 0x0000018C System.Void Photon.Pun.PhotonTransformViewClassic::OnEnable()
extern void PhotonTransformViewClassic_OnEnable_m557F8205C4A9DE3059A41E8A2E5B7D6DFB987F53 ();
// 0x0000018D System.Void Photon.Pun.PhotonTransformViewClassic::Update()
extern void PhotonTransformViewClassic_Update_m13B896CDDFAEFD5E41EABBA12C30E5281E7AAA91 ();
// 0x0000018E System.Void Photon.Pun.PhotonTransformViewClassic::UpdatePosition()
extern void PhotonTransformViewClassic_UpdatePosition_mC5C28116F79ED3B7BA31C6E85CF4E976DD172BB8 ();
// 0x0000018F System.Void Photon.Pun.PhotonTransformViewClassic::UpdateRotation()
extern void PhotonTransformViewClassic_UpdateRotation_m25AE2AD6E2E2492F7B7A2E50EA1B078FA2E55261 ();
// 0x00000190 System.Void Photon.Pun.PhotonTransformViewClassic::UpdateScale()
extern void PhotonTransformViewClassic_UpdateScale_m7C8DAE1D9A77FED238DAAAB56FA149ADEE02F501 ();
// 0x00000191 System.Void Photon.Pun.PhotonTransformViewClassic::SetSynchronizedValues(UnityEngine.Vector3,System.Single)
extern void PhotonTransformViewClassic_SetSynchronizedValues_mDF6E4BA0AC5676E8B666A9182042107B99E55F18 ();
// 0x00000192 System.Void Photon.Pun.PhotonTransformViewClassic::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformViewClassic_OnPhotonSerializeView_mEBEC699B9BF1AA64B79D6DA9A29802EA28B9334F ();
// 0x00000193 System.Void Photon.Pun.PhotonTransformViewClassic::.ctor()
extern void PhotonTransformViewClassic__ctor_mB0D548ABFFE4FECC5B4E541C50CD00398CBF24CF ();
// 0x00000194 System.Void Photon.Pun.PhotonTransformViewPositionModel::.ctor()
extern void PhotonTransformViewPositionModel__ctor_m91498B472599A9EDB5163567647A4D8C9F78A301 ();
// 0x00000195 System.Void Photon.Pun.PhotonTransformViewPositionControl::.ctor(Photon.Pun.PhotonTransformViewPositionModel)
extern void PhotonTransformViewPositionControl__ctor_mCEAF26452CE4B62915C473A91E0ACB05230312D7 ();
// 0x00000196 UnityEngine.Vector3 Photon.Pun.PhotonTransformViewPositionControl::GetOldestStoredNetworkPosition()
extern void PhotonTransformViewPositionControl_GetOldestStoredNetworkPosition_m4982592135EA10FACC90E0A78B3423BCB1C84405 ();
// 0x00000197 System.Void Photon.Pun.PhotonTransformViewPositionControl::SetSynchronizedValues(UnityEngine.Vector3,System.Single)
extern void PhotonTransformViewPositionControl_SetSynchronizedValues_m00E204C877A5290D6B9FF704B25ABB1188ECD69C ();
// 0x00000198 UnityEngine.Vector3 Photon.Pun.PhotonTransformViewPositionControl::UpdatePosition(UnityEngine.Vector3)
extern void PhotonTransformViewPositionControl_UpdatePosition_m9D1775F2DE7FFE494E96F280CF4DFAAB65FE8429 ();
// 0x00000199 UnityEngine.Vector3 Photon.Pun.PhotonTransformViewPositionControl::GetNetworkPosition()
extern void PhotonTransformViewPositionControl_GetNetworkPosition_m047475370A825DB4FCAB3BAB86E6029CC98C89A1 ();
// 0x0000019A UnityEngine.Vector3 Photon.Pun.PhotonTransformViewPositionControl::GetExtrapolatedPositionOffset()
extern void PhotonTransformViewPositionControl_GetExtrapolatedPositionOffset_mFE9B782C8EDB94A36173C1559B72EF14790690C9 ();
// 0x0000019B System.Void Photon.Pun.PhotonTransformViewPositionControl::OnPhotonSerializeView(UnityEngine.Vector3,Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformViewPositionControl_OnPhotonSerializeView_mEADE2EB3B08D87FE97F122AAEC97FF83F63A5B51 ();
// 0x0000019C System.Void Photon.Pun.PhotonTransformViewPositionControl::SerializeData(UnityEngine.Vector3,Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformViewPositionControl_SerializeData_m46A84222F254F10D91A0762D0A70DAC9F4BF0CC8 ();
// 0x0000019D System.Void Photon.Pun.PhotonTransformViewPositionControl::DeserializeData(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformViewPositionControl_DeserializeData_m9D749828D57C78D6AD4443D66E8DCFBC6D0423A3 ();
// 0x0000019E System.Void Photon.Pun.PhotonTransformViewRotationModel::.ctor()
extern void PhotonTransformViewRotationModel__ctor_mF3032CE5619AA6AE9A758EB850BDD50AB8E8FC4C ();
// 0x0000019F System.Void Photon.Pun.PhotonTransformViewRotationControl::.ctor(Photon.Pun.PhotonTransformViewRotationModel)
extern void PhotonTransformViewRotationControl__ctor_m5350996A5B1D11CE80C1FF8275ACE0845D0E8AEF ();
// 0x000001A0 UnityEngine.Quaternion Photon.Pun.PhotonTransformViewRotationControl::GetNetworkRotation()
extern void PhotonTransformViewRotationControl_GetNetworkRotation_m9C232BEB12E8EBF1A79A4331A24363F5B30CCE14 ();
// 0x000001A1 UnityEngine.Quaternion Photon.Pun.PhotonTransformViewRotationControl::GetRotation(UnityEngine.Quaternion)
extern void PhotonTransformViewRotationControl_GetRotation_m8573B3D9871305C20D1023A135BA04AEA0D3EFF0 ();
// 0x000001A2 System.Void Photon.Pun.PhotonTransformViewRotationControl::OnPhotonSerializeView(UnityEngine.Quaternion,Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformViewRotationControl_OnPhotonSerializeView_m817CD4BE62ABA98E2C071C8AFF0121BB93AFDEED ();
// 0x000001A3 System.Void Photon.Pun.PhotonTransformViewScaleModel::.ctor()
extern void PhotonTransformViewScaleModel__ctor_m66436933C2943911D2430F3F8DEADDFF696BEB6E ();
// 0x000001A4 System.Void Photon.Pun.PhotonTransformViewScaleControl::.ctor(Photon.Pun.PhotonTransformViewScaleModel)
extern void PhotonTransformViewScaleControl__ctor_mEFFA198BF98C3BFE37573865DD22C312FAEC20A1 ();
// 0x000001A5 UnityEngine.Vector3 Photon.Pun.PhotonTransformViewScaleControl::GetNetworkScale()
extern void PhotonTransformViewScaleControl_GetNetworkScale_mA0936FD6D72F6BF7EDE3966230D0AC367B81EB36 ();
// 0x000001A6 UnityEngine.Vector3 Photon.Pun.PhotonTransformViewScaleControl::GetScale(UnityEngine.Vector3)
extern void PhotonTransformViewScaleControl_GetScale_m0826273DFB50810E7B8E8CE8D05DFA2E67D8D251 ();
// 0x000001A7 System.Void Photon.Pun.PhotonTransformViewScaleControl::OnPhotonSerializeView(UnityEngine.Vector3,Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
extern void PhotonTransformViewScaleControl_OnPhotonSerializeView_mB03F0D37841831CA9A6664102D8A16F4F8517F7C ();
// 0x000001A8 System.Void Photon.Pun.PhotonHandler_<>c::.cctor()
extern void U3CU3Ec__cctor_m08EE346FC5B93E06AE7CAB3621D64E4AA953615C ();
// 0x000001A9 System.Void Photon.Pun.PhotonHandler_<>c::.ctor()
extern void U3CU3Ec__ctor_mF7AF7541E2834C698E39D0CD0436A40DEA1518A9 ();
// 0x000001AA System.Void Photon.Pun.PhotonHandler_<>c::<Start>b__13_0(UnityEngine.SceneManagement.Scene,UnityEngine.SceneManagement.LoadSceneMode)
extern void U3CU3Ec_U3CStartU3Eb__13_0_m1942A57773C6C2E743AB11BD84F10871254E6E76 ();
// 0x000001AB System.Int32 Photon.Pun.PhotonNetwork_RaiseEventBatch::GetHashCode()
extern void RaiseEventBatch_GetHashCode_m0572D663AB76E55612B1C3901FB6929C90CCDE53_AdjustorThunk ();
// 0x000001AC System.Boolean Photon.Pun.PhotonNetwork_RaiseEventBatch::Equals(Photon.Pun.PhotonNetwork_RaiseEventBatch)
extern void RaiseEventBatch_Equals_m71B5414BE7ADB98F007934321B82B9BE32DDC7B0_AdjustorThunk ();
// 0x000001AD System.Void Photon.Pun.PhotonNetwork_SerializeViewBatch::.ctor(Photon.Pun.PhotonNetwork_RaiseEventBatch,System.Int32)
extern void SerializeViewBatch__ctor_m01C7F1087A583EF1FDC28EF25EF545E94AFDB2EB ();
// 0x000001AE System.Int32 Photon.Pun.PhotonNetwork_SerializeViewBatch::GetHashCode()
extern void SerializeViewBatch_GetHashCode_m742D6517893E7A63943AF115FC275699FF52207F ();
// 0x000001AF System.Boolean Photon.Pun.PhotonNetwork_SerializeViewBatch::Equals(Photon.Pun.PhotonNetwork_SerializeViewBatch)
extern void SerializeViewBatch_Equals_m019D13DFDC42F21599367F92084A44E17A841B5C ();
// 0x000001B0 System.Boolean Photon.Pun.PhotonNetwork_SerializeViewBatch::Equals(Photon.Pun.PhotonNetwork_RaiseEventBatch)
extern void SerializeViewBatch_Equals_mEBC662465B326AC4FC4A56D62B457AC57A5D592B ();
// 0x000001B1 System.Boolean Photon.Pun.PhotonNetwork_SerializeViewBatch::Equals(System.Object)
extern void SerializeViewBatch_Equals_mB986F93FE4269FE76906376B823CB478CF2FF896 ();
// 0x000001B2 System.Void Photon.Pun.PhotonNetwork_SerializeViewBatch::Clear()
extern void SerializeViewBatch_Clear_mECCF60C28517628563A933BB724E1676EBB0C6BC ();
// 0x000001B3 System.Void Photon.Pun.PhotonNetwork_SerializeViewBatch::Add(System.Collections.Generic.List`1<System.Object>)
extern void SerializeViewBatch_Add_m05F7AB5E616366C8B6E6CDF7008063A5C76BD7E7 ();
// 0x000001B4 System.Void Photon.Pun.PhotonNetwork_<>c::.cctor()
extern void U3CU3Ec__cctor_m011B46DC4CF7CCD07014FEEF970D0166A4FDFA7C ();
// 0x000001B5 System.Void Photon.Pun.PhotonNetwork_<>c::.ctor()
extern void U3CU3Ec__ctor_mD406448AD6602EEB819A79BF394CAD18506D7278 ();
// 0x000001B6 System.Int32 Photon.Pun.PhotonNetwork_<>c::<get_PlayerList>b__47_0(Photon.Realtime.Player)
extern void U3CU3Ec_U3Cget_PlayerListU3Eb__47_0_m62E4FE67903CC9EE2832083E4611437BEC0EAEF8 ();
// 0x000001B7 System.Int32 Photon.Pun.PhotonNetwork_<>c::<get_PlayerListOthers>b__49_0(Photon.Realtime.Player)
extern void U3CU3Ec_U3Cget_PlayerListOthersU3Eb__49_0_m794CB25AA1A58E99B486AC8677EE1E74E7C6AD3C ();
// 0x000001B8 System.Boolean Photon.Pun.PhotonNetwork_<>c::<get_PlayerListOthers>b__49_1(Photon.Realtime.Player)
extern void U3CU3Ec_U3Cget_PlayerListOthersU3Eb__49_1_mCFC70D092E43B0D9281AE7B44217B513DEEF09DF ();
// 0x000001B9 System.Int32 Photon.Pun.PhotonNetwork_<>c::<StaticReset>b__125_0()
extern void U3CU3Ec_U3CStaticResetU3Eb__125_0_mDC4BC2C3EE08CAA58917E79B0DCF50AF86CB28D0 ();
// 0x000001BA System.String Photon.Pun.PhotonNetwork_<>c::<CallbacksToString>b__205_0(Photon.Realtime.IConnectionCallbacks)
extern void U3CU3Ec_U3CCallbacksToStringU3Eb__205_0_mB02D6C1EC6DF8608AD19E97D1574B8D26306435E ();
// 0x000001BB System.Boolean Photon.Pun.PhotonNetwork_<>c::<OnRegionsPinged>b__303_0(Photon.Realtime.Region)
extern void U3CU3Ec_U3COnRegionsPingedU3Eb__303_0_mD3FF4ED0CF1A14E59373FB85DE49B41C022E0BF3 ();
// 0x000001BC System.Void Photon.Pun.PhotonView_CallbackQueueItem::.ctor(System.Object,System.Type,System.Boolean)
extern void CallbackQueueItem__ctor_m19BDD8BE1EE64CFA85CB9541A99B694412EB3C93_AdjustorThunk ();
// 0x000001BD System.Void Photon.Pun.PhotonAnimatorView_SynchronizedParameter::.ctor()
extern void SynchronizedParameter__ctor_mA6320BBC3B35230509398D9A3A45B303BD4F244D ();
// 0x000001BE System.Void Photon.Pun.PhotonAnimatorView_SynchronizedLayer::.ctor()
extern void SynchronizedLayer__ctor_m8FC61B553F82359AA3C835249F51C8FC4179BD36 ();
// 0x000001BF System.Void Photon.Pun.PhotonAnimatorView_<>c__DisplayClass18_0::.ctor()
extern void U3CU3Ec__DisplayClass18_0__ctor_mAC34F74CD39DC72451FEB2A0C16FF6F8CD257468 ();
// 0x000001C0 System.Boolean Photon.Pun.PhotonAnimatorView_<>c__DisplayClass18_0::<DoesLayerSynchronizeTypeExist>b__0(Photon.Pun.PhotonAnimatorView_SynchronizedLayer)
extern void U3CU3Ec__DisplayClass18_0_U3CDoesLayerSynchronizeTypeExistU3Eb__0_m61ADAD658AFA1460F8E72923E688207E6EF6517B ();
// 0x000001C1 System.Void Photon.Pun.PhotonAnimatorView_<>c__DisplayClass19_0::.ctor()
extern void U3CU3Ec__DisplayClass19_0__ctor_m7D84980E6575929FDDBAF4428AE1AEF11E8441F7 ();
// 0x000001C2 System.Boolean Photon.Pun.PhotonAnimatorView_<>c__DisplayClass19_0::<DoesParameterSynchronizeTypeExist>b__0(Photon.Pun.PhotonAnimatorView_SynchronizedParameter)
extern void U3CU3Ec__DisplayClass19_0_U3CDoesParameterSynchronizeTypeExistU3Eb__0_mF8CED2EE11B4EEE105F1F3327EBE4DAC7B7F25EB ();
// 0x000001C3 System.Void Photon.Pun.PhotonAnimatorView_<>c__DisplayClass22_0::.ctor()
extern void U3CU3Ec__DisplayClass22_0__ctor_m51D26E0C2AEE1CD905C80E71465A6E45617C3984 ();
// 0x000001C4 System.Boolean Photon.Pun.PhotonAnimatorView_<>c__DisplayClass22_0::<GetLayerSynchronizeType>b__0(Photon.Pun.PhotonAnimatorView_SynchronizedLayer)
extern void U3CU3Ec__DisplayClass22_0_U3CGetLayerSynchronizeTypeU3Eb__0_m85B452FAECBE022F80BEF5450CBD109C1F6FF2E0 ();
// 0x000001C5 System.Void Photon.Pun.PhotonAnimatorView_<>c__DisplayClass23_0::.ctor()
extern void U3CU3Ec__DisplayClass23_0__ctor_m10EB43DAC2782156D2C964299FF218D0A698D0B8 ();
// 0x000001C6 System.Boolean Photon.Pun.PhotonAnimatorView_<>c__DisplayClass23_0::<GetParameterSynchronizeType>b__0(Photon.Pun.PhotonAnimatorView_SynchronizedParameter)
extern void U3CU3Ec__DisplayClass23_0_U3CGetParameterSynchronizeTypeU3Eb__0_m230E19FD6D0C47415B27A5FF62F7F17CDC86E269 ();
// 0x000001C7 System.Void Photon.Pun.PhotonAnimatorView_<>c__DisplayClass24_0::.ctor()
extern void U3CU3Ec__DisplayClass24_0__ctor_m142B78A882463F28673D65B83FC2151848B09655 ();
// 0x000001C8 System.Boolean Photon.Pun.PhotonAnimatorView_<>c__DisplayClass24_0::<SetLayerSynchronized>b__0(Photon.Pun.PhotonAnimatorView_SynchronizedLayer)
extern void U3CU3Ec__DisplayClass24_0_U3CSetLayerSynchronizedU3Eb__0_m1180705E0C99A4FB968BC19F4F9FADFD6A93A2F0 ();
// 0x000001C9 System.Void Photon.Pun.PhotonAnimatorView_<>c__DisplayClass25_0::.ctor()
extern void U3CU3Ec__DisplayClass25_0__ctor_mAAB0D78C8E63C773B860D4FEA10709E6CF7A7B53 ();
// 0x000001CA System.Boolean Photon.Pun.PhotonAnimatorView_<>c__DisplayClass25_0::<SetParameterSynchronized>b__0(Photon.Pun.PhotonAnimatorView_SynchronizedParameter)
extern void U3CU3Ec__DisplayClass25_0_U3CSetParameterSynchronizedU3Eb__0_m009C75E4DAF196A0E8E46FF612E20FDF9EC14F0F ();
static Il2CppMethodPointer s_methodPointers[458] =
{
CustomTypes_Register_mE838FCEDF93C0347A744A9DCCCACB836F6D35EBE,
CustomTypes_SerializeVector3_m50B18267D0B3E634B25A7F01851F5300834EA296,
CustomTypes_DeserializeVector3_m590F9D3263EDFAA2FED6B2F4D0F0425BAECFAF66,
CustomTypes_SerializeVector2_mCB73DDB3C160ADCB75F9EE9FBB22B37B75DD48CB,
CustomTypes_DeserializeVector2_m01DFBC36F1BAA17FBCE5D7C3F40A73C2FAB7227D,
CustomTypes_SerializeQuaternion_mE593BA6C4497AB5D6568B7EFE35F58F4AC093D5A,
CustomTypes_DeserializeQuaternion_m18C1800FF361AB81E186711C16157B4D98F8D758,
CustomTypes_SerializePhotonPlayer_mF6B9F7FD7FF2766050F9532252973A1A748384AE,
CustomTypes_DeserializePhotonPlayer_m9AD2D7F6D67D64A59FCD4F5BD36DD3D6AEA08BC8,
CustomTypes__cctor_mC7E91754D15B50BD38C76ACE7D3924BA33F3FF98,
PhotonHandler_get_Instance_mAB17EF1C35F258AC0D253E193DAEE2B222316BF6,
PhotonHandler_Awake_m51CD79689BD6A1AFFCBD5DF3B7DDAB8C2090E43E,
PhotonHandler_OnEnable_mB2D33220CD24BC2690D1CE96866EF5E5C0AB9CC7,
PhotonHandler_Start_mC4932CC3B74F42C8659D24E9D40E86AA97F91083,
PhotonHandler_OnDisable_m0195D14B740E67DB8C5E3E5F4B082CBD9316FFEF,
PhotonHandler_FixedUpdate_mD19AF6C0A4A43F2EA6BDF6605BDFE0522A987DC6,
PhotonHandler_LateUpdate_m2F112E7078627C3205F83D1D6A3D902F32123436,
PhotonHandler_Dispatch_m227B4D0F66594085A9D03F2A97671F48C2E390BD,
PhotonHandler_OnCreatedRoom_m2852AE1F829452CFC36B491ED2D6E456F0E98EA8,
PhotonHandler_OnRoomPropertiesUpdate_m2F5B8063E919DE5AA996B1B330726D5033978710,
PhotonHandler_OnPlayerPropertiesUpdate_m16307BED1170400F310387F92AF9AB1A36C780EA,
PhotonHandler_OnMasterClientSwitched_mB13C2E687694D564F624CA408995A32BED382DE9,
PhotonHandler_OnFriendListUpdate_m4259D639FC7D558C660831E9BCA64912AED3C13D,
PhotonHandler_OnCreateRoomFailed_m3C25C57401588871F00C1C8439E79B01B9CFD8E4,
PhotonHandler_OnJoinRoomFailed_m741916027AA5686EC08BE6D6D45F6B61E93FE024,
PhotonHandler_OnJoinRandomFailed_mDB77390CF2D70D608AB97D3377BADE6C38BAB803,
PhotonHandler_OnJoinedRoom_mEE5BE2F0A68F029943369484DD116DE636C55D8D,
PhotonHandler_OnLeftRoom_m7ABDE0409572111FF488F5CB4BD3AF8B606F2D0B,
PhotonHandler_OnPlayerEnteredRoom_mF2D693C4117DE18329C035144A0AA9E11F97BDA4,
PhotonHandler_OnPlayerLeftRoom_m3AB14AD6EFD5799454C36431BF15C92AD7774193,
PhotonHandler__ctor_m1F8580D818F0C414B9FE146B502A9DAC47C1A112,
PhotonHandler__cctor_mFD62746E820C76E21AB28260A7FFF629EA0B99DB,
InstantiateParameters__ctor_mBCC98333EC365FE08A5B1B046EC654442F10767C_AdjustorThunk,
PhotonNetwork_get_GameVersion_mCDC06B3EC50413FAE0F5610B1747BD6D42AF4148,
PhotonNetwork_set_GameVersion_mE3F9A63714D393062731D0E017D87F7C6115FA24,
PhotonNetwork_get_AppVersion_m674387BDF6698480F16BEAD5B18222E7236D646E,
PhotonNetwork_get_PhotonServerSettings_m4199A755089F2278DFCF324152D3B265726BC227,
PhotonNetwork_set_PhotonServerSettings_m53CBA95E482FC0ADF9D674BF07124B012352BF5B,
PhotonNetwork_get_ServerAddress_m53779D4C257E22AFB168C01E79565F619903D85D,
PhotonNetwork_get_CloudRegion_m4197DD908736A0B3E69164E9E64AE60BE611BF22,
PhotonNetwork_get_CurrentCluster_m7C87C2B7B1A2AF2F1F4B0DEEAA1B623AE036B471,
PhotonNetwork_get_BestRegionSummaryInPreferences_m3A4C27D397D7C07BF59B7675A3CBC1A3B232AF7D,
PhotonNetwork_set_BestRegionSummaryInPreferences_mFEA6A32B0FADC858803016461E656BA4BD884961,
PhotonNetwork_get_IsConnected_m3D90FF7631B589CB771CE01CA421A40426AC6187,
PhotonNetwork_get_IsConnectedAndReady_mAB2CC497386B5EDADDDA63962C8973AAD392EDE6,
PhotonNetwork_get_NetworkClientState_m5B876DF86C16E84ADC8909400918DDF49975B009,
PhotonNetwork_get_Server_m53BB0245BD13769574DA6B6DC0D2FE6379BD938C,
PhotonNetwork_get_AuthValues_mE1AB5329BC4395D9155C5BADACC6DC1FCC0AAA51,
PhotonNetwork_set_AuthValues_m735DB15E5393EB691FF6D237FB3B9E030DB6BE15,
PhotonNetwork_get_CurrentLobby_mA9D9A133B9CB5DCBB6F4CBC13BF40855578E9C86,
PhotonNetwork_get_CurrentRoom_m493DA29D80F75DC0BEFF3125207AE9101C0100A1,
PhotonNetwork_get_LocalPlayer_m06E2D9682B713C828A00C0BD4F03A0CBC1E2D1B6,
PhotonNetwork_get_NickName_mB6B4A740D685871B2A3DDABE1BB44048F9921DEB,
PhotonNetwork_set_NickName_m6AECDDC42FD01FEF165A3E325FCFE7F2967FFEAD,
PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141,
PhotonNetwork_get_PlayerListOthers_m7D2DFF5567A2975B90A9E96FF713698EF09B0D1C,
PhotonNetwork_get_OfflineMode_m504F8D865C08967255DEDC709769DBAE8ED15C4B,
PhotonNetwork_set_OfflineMode_mAB80BD8500AF75C1B390D09B4EA6D0174394C1DE,
PhotonNetwork_get_AutomaticallySyncScene_m3DC2ADB2ABF80B6FDDFE006C9880EBAB258AD146,
PhotonNetwork_set_AutomaticallySyncScene_m2281D30EB1B6545FDFE7BA16B0E8662A0378DAE0,
PhotonNetwork_get_EnableLobbyStatistics_mA2437F6897F125E7F0055DD5D7D0A6D697D06987,
PhotonNetwork_get_InLobby_m98BE6CCBAC915D353D343302BF4747231D20B715,
PhotonNetwork_get_SendRate_m9BF212EF9AC5B4A2DB91516A11A8BE81D1F8650B,
PhotonNetwork_set_SendRate_m5C6E1386637484D8FDA64D7059E994730FBA714E,
PhotonNetwork_get_SerializationRate_m1121F935DAB7130246C63A55847F75EB6465B294,
PhotonNetwork_set_SerializationRate_mE05399BF9C0A38A8CE2F70F4AEDCC2AA614093FD,
PhotonNetwork_get_IsMessageQueueRunning_mA769CD017937833037A0B2F4D4BF415D0494434B,
PhotonNetwork_set_IsMessageQueueRunning_mABEB1F780CC55CF765FC6EBA7599789CB58801FF,
PhotonNetwork_get_Time_mDFD12A6E273C6B14118DD8E6DA3EE24C489487F7,
PhotonNetwork_get_ServerTimestamp_mD63EC86765B4C6F57A6445F1CE8A8084D3A2594B,
PhotonNetwork_set_KeepAliveInBackground_mD624E6CE86110238D7970BB69CC8963480ACCCD9,
PhotonNetwork_get_KeepAliveInBackground_m6484EECDB128B1976AD38CAF5403F0F5ADA63576,
PhotonNetwork_get_IsMasterClient_m7EE228BA31428CCA42C74D8805DD9B3A951E7E57,
PhotonNetwork_get_MasterClient_mE95EB702C5632D7DDADF199B4B9ECD4B45556B65,
PhotonNetwork_get_InRoom_mB13290C6303826E3B9A56D0BA792FFB535E7B3D0,
PhotonNetwork_get_CountOfPlayersOnMaster_mB7973FFC7CD63A3A249CBF34969080DB31E17E30,
PhotonNetwork_get_CountOfPlayersInRooms_m34762E1517E322B125F32899E59C5567C0165030,
PhotonNetwork_get_CountOfPlayers_m42C91025CAF946918286B835E0CAD7663B599F35,
PhotonNetwork_get_CountOfRooms_mCBC7FB574206EBCB054FDDF7A10938DA0BC3D8FD,
PhotonNetwork_get_NetworkStatisticsEnabled_m2B057A641F3753351F9320E434E704113B1F76CE,
PhotonNetwork_set_NetworkStatisticsEnabled_m6BFC09A115CDCB9C9965742945593395C65BFABD,
PhotonNetwork_get_ResentReliableCommands_m2CB9A0417C55040D832FBED9A1F6561D659957EE,
PhotonNetwork_get_CrcCheckEnabled_mB75B51E5F9850D44334A0DC932011CA15E828FDA,
PhotonNetwork_set_CrcCheckEnabled_m77070278B87FABC0AF1FCA9E9BD4D205C2BE31C3,
PhotonNetwork_get_PacketLossByCrcCheck_m25B7EF45F0E7A5F254B8738A10BC642D887E4C13,
PhotonNetwork_get_MaxResendsBeforeDisconnect_m98A3A74F751A1D51639BB000040A749B71928865,
PhotonNetwork_set_MaxResendsBeforeDisconnect_mB0844BFFE3FE1DA7222015BF3BCE6DF8B5DE2F33,
PhotonNetwork_get_QuickResends_m79B4A23A7E9315FC2CBE91C608981A4B8F709A8C,
PhotonNetwork_set_QuickResends_m571ECFFDC476BA0D29887687CCE002106CD7B73B,
PhotonNetwork_get_UseAlternativeUdpPorts_m3BCD9138D354D5C2E994A284EF8909FAB8EAA1F0,
PhotonNetwork_set_UseAlternativeUdpPorts_m313624DA5352DE3D6BA387E3587F3E00BE12037A,
PhotonNetwork__cctor_mF243EB3E8B6DA084C771ADDD00DF42F235CED03D,
PhotonNetwork_StaticReset_m332D0704B5AE561E10BC9F71E1F50347655A3956,
PhotonNetwork_ConnectUsingSettings_m8021DCB20F8D5D3A9FBFEE38935D95CCC5579355,
PhotonNetwork_ConnectUsingSettings_m862C23C350E9E424D1FE32E42618FC111E757971,
PhotonNetwork_ConnectToMaster_m65B7CF881C878BA26C5AE89DDDCBAE8224E00EF1,
PhotonNetwork_ConnectToBestCloudServer_mF8879029A7F3BEF0AB4B4F1BEF17DE4AE8E54961,
PhotonNetwork_ConnectToRegion_m19F8940D3BEFAC5F345ABDD2F7A366DB61008A2E,
PhotonNetwork_Disconnect_m00145C9A4F819E3162CC1E8EC7C325E6D6A8ED05,
PhotonNetwork_Reconnect_m181A2201EA605231FB3032651E521ABDC287B926,
PhotonNetwork_NetworkStatisticsReset_m51B4F1337F0B4D0B6A68D13160E7A049B3C21F10,
PhotonNetwork_NetworkStatisticsToString_m95BB7256AE2DFFE6BAB7887DBF7117F37133DA1F,
PhotonNetwork_VerifyCanUseNetwork_m605A2E9BDA36F0AD066D4C7293B05EFAA16F1FCC,
PhotonNetwork_GetPing_m19C66FE34028DB920307BB89AFF5E954C57FA165,
PhotonNetwork_FetchServerTimestamp_mF05E00DC84D7BEB913275F2DCEF47F294FB77F52,
PhotonNetwork_SendAllOutgoingCommands_m6A18D264DC3333CBEBD220BC5CA15027BED7EE90,
PhotonNetwork_CloseConnection_mD82F058A684C2F7C91775E7D9989FBEF7B51B8D0,
PhotonNetwork_SetMasterClient_mF1D284F2AA87AD1A7C8D5C4BF0521C067ECC1797,
PhotonNetwork_JoinRandomRoom_mE7178455302B4CD1C57E02F370A4DCFF6386EFF0,
PhotonNetwork_JoinRandomRoom_m0CAEC917A4E1F1791A0114C3369BB693AA3D6BF7,
PhotonNetwork_JoinRandomRoom_mB0FA04BCEFA317D8A3564B17515115628D164E3E,
PhotonNetwork_CreateRoom_m8F4C5E1CB330B138058D6A7C96971DB1E43AF915,
PhotonNetwork_JoinOrCreateRoom_m1E3B1ED93FD5BEDACDD6ECBB7F47F5FEC9EB5D0C,
PhotonNetwork_JoinRoom_m636ADAA907982A002F39B01CD1CEEBEEE0B8A524,
PhotonNetwork_RejoinRoom_m2D5C7545B52EFBFBE1C0BA992CCBCCEA47010A34,
PhotonNetwork_ReconnectAndRejoin_mDB2FCA23266F23213EA5A017B162428F3A9555F1,
PhotonNetwork_LeaveRoom_mF8484F679A0477C0D4647CA2EF50036D38E16C44,
PhotonNetwork_EnterOfflineRoom_m74AA2AA4E4DA140BC39B9578E32303CA2B2D330E,
PhotonNetwork_JoinLobby_m25C0476153B72E0D0EA24EBAD22E0A94FFD18542,
PhotonNetwork_JoinLobby_mD2F0934DAF65B508C3B85F7E027248DF8D904C3B,
PhotonNetwork_LeaveLobby_mD83D15753B3253E6F7F5AF611DF1AF85F5FCE41A,
PhotonNetwork_FindFriends_mF0BB04A56FA2E8D6C95758CA70C727D39C2A5A32,
PhotonNetwork_GetCustomRoomList_m42437C6EF0F825C1236D8D9EA197069D7BBA7F5A,
PhotonNetwork_SetPlayerCustomProperties_mCC08AE905A33DE57FB8DE77E1E6DA05AE8CD2625,
PhotonNetwork_RemovePlayerCustomProperties_m88BA381052C0866EA5F599847CDE1815A3A2DFA0,
PhotonNetwork_RaiseEvent_m24343ED9DBD78AC22E843ABCA134254D4855D88E,
PhotonNetwork_RaiseEventInternal_mCC2791A2E1A654ECF7D64AB62ACA312F3AAEA5FA,
PhotonNetwork_AllocateViewID_mBCAB5C9BFC87A3AC7469C91443770D3C7289698D,
PhotonNetwork_AllocateSceneViewID_m629CC0F440C70E4D511769704DCBC4C475E5E50E,
PhotonNetwork_AllocateViewID_m06746AED05CE366B39C9F335E676F89366E3F47D,
PhotonNetwork_AllocateViewID_m4E19570B7A0E1799E593D15F657709306A568D93,
PhotonNetwork_Instantiate_m9D218816B3E0E9BE9143CB7952E35B49EBCD8145,
PhotonNetwork_InstantiateSceneObject_m91F19C63F04D2E9F158EACC9672547117163A8EB,
PhotonNetwork_InstantiateRoomObject_m2BD806F61A9A39A77DF8E6A63ABD3E6471692025,
PhotonNetwork_NetworkInstantiate_m5F1C6DE0093498864C27EC187A5317BD16643F4C,
PhotonNetwork_NetworkInstantiate_m39041A44BBE9F7AFB01AE2AA41F5A0546B778DA4,
PhotonNetwork_SendInstantiate_m54108A9BDDFEDB7E2447D37EEEA2D009DF0A236A,
PhotonNetwork_Destroy_mDC59FBFE4DF9B2B20F09AD17433617299C47A561,
PhotonNetwork_Destroy_mC2CEB136AA285ABD82F15C742435A0DA4310DCD1,
PhotonNetwork_DestroyPlayerObjects_mA7B830A1C45FB957A926D4FBC279C973A88245F5,
PhotonNetwork_DestroyPlayerObjects_m9DBB863FF92C431498361B8F5BF5C6FC81EB31DE,
PhotonNetwork_DestroyAll_m449D1835324CB9FA522C09C8F1EE8BE8C55FE7B3,
PhotonNetwork_RemoveRPCs_mCBD0152472ABC18CA7625E88B4BC22A83803E759,
PhotonNetwork_RemoveRPCs_mD93C81C322F237907BD6E0E0FC8073A0F27D266F,
PhotonNetwork_RPC_m2A2AEB859A31D6676325C7DEFC0765454A74899B,
PhotonNetwork_RPC_m3A324E2F867852F769217DD61E03E902E4A642B7,
PhotonNetwork_FindGameObjectsWithComponent_m150927F0D7809968CD9DB26F0DD865B9334199CD,
PhotonNetwork_SetInterestGroups_m49B7C1AAE8E7B14871F077A563F00DAF093C2577,
PhotonNetwork_LoadLevel_mADEE2A15C6B9D00DDB9AF5F776E823A8547EFC69,
PhotonNetwork_LoadLevel_m018189075246B97065C057D7128BE87C6514D7E6,
PhotonNetwork_WebRpc_m2663368E6BB930480F68E880D1D602D3C8860AF3,
PhotonNetwork_SetupLogging_m1099B50F49C5349495246117FE0DA1EE78C860C6,
PhotonNetwork_get_PhotonViews_m0B1A26F163070E5E2EDAE89A654508373C8170E2,
PhotonNetwork_get_PhotonViewCollection_m3975660675AB2504CD05411B7D14AB9DB40E5AC2,
PhotonNetwork_get_ViewCount_mE32DF8D076C61D344115F05AF03822BD37333220,
PhotonNetwork_add_OnOwnershipRequestEv_mD6ACFF2E7FA050B6CF4B962389027C97A2A14928,
PhotonNetwork_remove_OnOwnershipRequestEv_m5E99BF5B96906B38D10F7AE691D454B8589B4463,
PhotonNetwork_add_OnOwnershipTransferedEv_m848F6B7CEE9217BD6DD035CFD9B49A4ABA3513A3,
PhotonNetwork_remove_OnOwnershipTransferedEv_m8834F5E7338F3D9AAFB6EF911C867BA28EBECC49,
PhotonNetwork_AddCallbackTarget_mFE2597E0B7830015D59AF8832DCF5A187EA81AD5,
PhotonNetwork_RemoveCallbackTarget_mB3AE428879AE247E58DE338B029E98A35FD98C6E,
PhotonNetwork_CallbacksToString_mC9F80A43AD92B787E488CC7B33D314239CD73BEA,
PhotonNetwork_get_PrefabPool_m48DD97C32D592E00F5DF381AA8AFC3560C6F4D51,
PhotonNetwork_set_PrefabPool_mD27A046D76F37696404576883C803FB6AA7D8C42,
PhotonNetwork_get_LevelLoadingProgress_m7B107807AD23FB009EBB20AC9BBF5C4E300FA1FD,
PhotonNetwork_LeftRoomCleanup_m7DD2D79ABDCFB19C911CB9C384093BAA9A69C607,
PhotonNetwork_LocalCleanupAnythingInstantiated_m81B62F3D8681EA552FEE035B135EA46F6C7FA67B,
PhotonNetwork_ResetPhotonViewsOnSerialize_m7D8B23766F4EA9DCAC30B1F47AEE7F290AA547B8,
PhotonNetwork_ExecuteRpc_mD31E376DABACEF9CF05FB45B3BAF7662B1B0D2AF,
PhotonNetwork_CheckTypeMatch_mBCE7C69DAA098EA9CB7709241E2A82C16E04785D,
PhotonNetwork_DestroyPlayerObjects_m1B119B44B7C3FC1509715353F8E6DE8EDD1D9CD3,
PhotonNetwork_DestroyAll_m5100A9893A1B6EBE3D0120C91179BDB8DC739241,
PhotonNetwork_RemoveInstantiatedGO_m94A57CE94596A8636D8B3E020820D2003F76E8E8,
PhotonNetwork_ServerCleanInstantiateAndDestroy_m2ECFBB9A86022510D1E9EC11CE6FC00FD0060EB7,
PhotonNetwork_SendDestroyOfPlayer_m6DE23C448686BB5EF7E1001660FBA1B8E951AA28,
PhotonNetwork_SendDestroyOfAll_m4741AD22C95659201B758F93B4B61C801F65B86C,
PhotonNetwork_OpRemoveFromServerInstantiationsOfPlayer_m1DC50EB0D5B680E88546100B8E46C5557EDC46B0,
PhotonNetwork_RequestOwnership_m878535F79D0B82193E6FDAE66B6C29467A8AC4C5,
PhotonNetwork_TransferOwnership_m4A9E407E53070DEF7479C557BCDCD18E1E085486,
PhotonNetwork_OnwershipUpdate_m38176600BB3F6DD9F3528A51463F1C1420C8546D,
PhotonNetwork_LocalCleanPhotonView_m843AF475A4D66F8224E414855427B78D2F14D9B2,
PhotonNetwork_GetPhotonView_mC8007120235F150ECB55FD563D1CE42E8D5AF153,
PhotonNetwork_RegisterPhotonView_m4E523EEA4FE46B919ACBC4EEB2FF76AC2ED5A25F,
PhotonNetwork_OpCleanActorRpcBuffer_m93EA6C38ADB02629D28681B048DD2BA1010F4D6A,
PhotonNetwork_OpRemoveCompleteCacheOfPlayer_mC614A8440D05EAC688FD8A3C43D6B51A8C35C5F4,
PhotonNetwork_OpRemoveCompleteCache_m7D4E8C9B04B79C7FFACB2E624EB14F77DCF7F308,
PhotonNetwork_RemoveCacheOfLeftPlayers_m1D2CC446E13E67381E2FA2958CB0880A5D8F2EE8,
PhotonNetwork_CleanRpcBufferIfMine_mB697279C9E1DD804944AF252116807865300A8AF,
PhotonNetwork_OpCleanRpcBuffer_mFB2A5F95C71A3CB8D5D6C0CA6A68B56418924206,
PhotonNetwork_RemoveRPCsInGroup_m8F4383B134EEE3ABF7A9B3AEBDF17A106DE7CAF2,
PhotonNetwork_SetLevelPrefix_m6F71EDE4DCC9C3C2F633187816F37FE92F70C3FC,
PhotonNetwork_RPC_m875921ED23428B48440502D4E58D697A8654DC29,
PhotonNetwork_SetInterestGroups_m4DECB089C3E9CF4E0A019AC06A006498541FD742,
PhotonNetwork_SetSendingEnabled_m30A756CE4308E6C6E501F50AE262216342548B66,
PhotonNetwork_SetSendingEnabled_m62A7D73464710FD8F299A4485B61FA1F626AE1DF,
PhotonNetwork_NewSceneLoaded_mE565F3FFBE627108DB4B93D02D6D3E081BC390D4,
PhotonNetwork_RunViewUpdate_mFCAF112C08930B2DC3F1499261A3CEA3FCCE0BA8,
PhotonNetwork_SendSerializeViewBatch_mEAC3E4B6D68BFF3CBB318F6FAE5E40E78787FE65,
PhotonNetwork_OnSerializeWrite_mB9CD36BBBEB5BFD70C5D195F2C967B915304212E,
PhotonNetwork_OnSerializeRead_m7463895B4662BB62D88BE2C5E1C73D67CC65400C,
PhotonNetwork_DeltaCompressionWrite_mE1CF6E393AFEB8F7D7688FFF1B786F50AD005688,
PhotonNetwork_DeltaCompressionRead_mA701B58F04EBE123EE9BA5C340FA121D9E349DC9,
PhotonNetwork_AlmostEquals_mBA2825EE524C764CAF2191B4F925F21260495947,
PhotonNetwork_AlmostEquals_m2E957FD413F1BF260098F87E19BB5C68B4032108,
PhotonNetwork_GetMethod_m7DEA18FE8C962D6CD704CBC5980DFDED691E7506,
PhotonNetwork_LoadLevelIfSynced_m14726F48038ACC4BF84BD321138FF15DB68E7BD9,
PhotonNetwork_SetLevelInPropsIfSynced_m13E0A2EE3B6692976C480FE812765CF3C073D863,
PhotonNetwork_OnEvent_mF423B2B735FF6A0DDB169DDA8B2976455210CF3D,
PhotonNetwork_OnOperation_mD6A7AFC54CE776E6536899A432764068208B3385,
PhotonNetwork_OnClientStateChanged_mD60F655DED12140A802F32E0CA038906566907D6,
PhotonNetwork_OnRegionsPinged_m6CE0637C4C1E26FC99849E7AFCFA7DA68BF35C42,
PhotonStreamQueue__ctor_m701EEA27997AEC65B1C9C4684B1F1C8717FDB4A2,
PhotonStreamQueue_BeginWritePackage_m1422FC9FA4E756A2F8A611B14B971A60B0C90D13,
PhotonStreamQueue_Reset_mB399A65DD771F8779251FB5C671916E3E7D4A282,
PhotonStreamQueue_SendNext_mE2B9D3157A8AFCE44572AA33B31A9BA6B8344F17,
PhotonStreamQueue_HasQueuedObjects_m8DE3DFDF2C74D19C951236E85353D4E193C9C0C7,
PhotonStreamQueue_ReceiveNext_m40ACF14FF55E9C9D3EDCDC9EFAABE7994E2D9919,
PhotonStreamQueue_Serialize_m404C367BBE48A61A242517D2353389562EAAC3B3,
PhotonStreamQueue_Deserialize_m3F3F09D6964955C32E72554D893FACEDD3315196,
NULL,
NULL,
PhotonView_get_Prefix_m4EBD59509A85CF1D43C09F70EA41AA2CE20F3602,
PhotonView_set_Prefix_mA57D725B1E5D55956DF449DDFD7536BA7632B96C,
PhotonView_get_InstantiationData_mB0731A9C32456F8169DC4C5FEA21A7587FAD8B31,
PhotonView_set_InstantiationData_m1237915AD941BEFEB91462744150318B569BB932,
PhotonView_AddCallbackTarget_m8AC7FBED6F740124D102615E8C2B2C6A28D3887E,
PhotonView_RemoveCallbackTarget_m394AC888C9C9438138A0CD06A15FBF7088F50F05,
NULL,
NULL,
PhotonView_UpdateCallbackLists_mD975457FDDAC681B65C910689E7A41577B6DE89C,
NULL,
PhotonView_get_ViewID_mC15D092CC4BFE8638C31F9622B7DF6894E30D3D9,
PhotonView_set_ViewID_m489879E6DAD4700D0A0DCA77849EAA92FAFE7CDB,
PhotonView_get_IsSceneView_m6E6B2B67B70DEE273B1BABBF739BBAA775CB5ACA,
PhotonView_ResetPhotonView_m1372237E04942E47014045BB746EA6364620A8A7,
PhotonView_ResetOwnership_mD29AC1D2194545AD111A4CF427CACF3166189645,
PhotonView_SetOwnerInternal_m6E5B9892883A928DFB78423446E5414D39523DB6,
PhotonView_RebuildControllerCache_mF49556F2301BE7E6F6F9985D472705A9B97A1864,
PhotonView_get_Owner_mD339E981ADADF5A7F88F6D4F530F1EB8F1C34DEE,
PhotonView_get_OwnerActorNr_m297F5F405EF3ACE0A262F942FF01357EE4BDE886,
PhotonView_get_Controller_mABA45440F92EDB48CB1F32D6D2B3553C61E11DC6,
PhotonView_get_ControllerActorNr_m8D9D0453C6E350464D670B38210911BCEAE61C97,
PhotonView_get_IsOwnerActive_mA17BFB41B289C7CD1A75B2AA27DAB90A69FEC87F,
PhotonView_get_CreatorActorNr_m182100823912B7A313C17D0844D599BFAAA03629,
PhotonView_get_IsMine_mFE1D0AB5684F18073518777C1D8FF764CB335793,
PhotonView_Awake_mA6E574DBACD2811EDD303783CB7C256F6ACAEA4F,
PhotonView_FindObservables_mE8804F86397753F9CEDCD167E58287C85B9A639C,
PhotonView_OnPreNetDestroy_m952E0BAFB490247421021822AA029093C49B7F1C,
PhotonView_OnDestroy_mFE646382844BCDEF6001AAE47167BD704975D8DE,
PhotonView_RequestOwnership_mFD54041B0C70B516EC2DB1C12E606825551AB9F0,
PhotonView_TransferOwnership_m9FD7BE2FEC4A04A972F9386717BDF904F265F071,
PhotonView_TransferOwnership_mE63F4A1B73D7E89DEC4261C163880A3BEB5F5B76,
PhotonView_SerializeView_m4FA3E888E8C7C3A959ABEAD9194CFEBFFA709156,
PhotonView_DeserializeView_m2E67D40D896990811E722E1FB99BC5BFEC46EFB2,
PhotonView_DeserializeComponent_m556FF3D2A81CA3B9A6371944CDC9F728820F7788,
PhotonView_SerializeComponent_m745D96F1F125E057101C1C52E4063E1FD74424FF,
PhotonView_RefreshRpcMonoBehaviourCache_m218A196211F926F6B1FD74910E3E87F2D5F05DD1,
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301,
PhotonView_RpcSecure_m256A5ABAB0FF68642767ECE1D1CD1C9E391C4B16,
PhotonView_RPC_m3F59D00D60E09EEFCC5B5000BB7195F25689029C,
PhotonView_RpcSecure_m769EF34360B1DE9B0F7FD51F77E39AF231E36B1F,
PhotonView_Get_mFABADCC5E785D810809CC040BE8A1AA299B8D857,
PhotonView_Get_mF77DAA2CC8B2E80DBBD4588D6B5264AF853CE343,
PhotonView_Find_m74440585ADB7D8B89E260397726D052BAA9F9B3E,
PhotonView_ToString_m9C6ED6975CD25D9820A71581FCC5C1BBBF1F58B4,
PhotonView__ctor_mC9178F9A310A82BC5C8DEF9811E254D01823ECA8,
PunRPC__ctor_mC20AE4678DE711A2A0DCAAA8B4B2C19D101CC110,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B,
MonoBehaviourPun__ctor_mF3271A45184F2C3A9D517D98BEF0576C71505BF1,
MonoBehaviourPunCallbacks_OnEnable_m7B1C02DB7451A9713D49A97128C1C6DEFF404427,
MonoBehaviourPunCallbacks_OnDisable_mDABF92D3CB04DA41BDC4D39CA0343355BD447B1A,
MonoBehaviourPunCallbacks_OnConnected_m2997C67E98AAE01C6D7B9CBBDA38E59F75A8A6DC,
MonoBehaviourPunCallbacks_OnLeftRoom_m7B9388099C18E4F81ED19A222C66F577800100B4,
MonoBehaviourPunCallbacks_OnMasterClientSwitched_mEFB0204F7171C14969C3940B5B86937E9796BBF6,
MonoBehaviourPunCallbacks_OnCreateRoomFailed_m52FD79D3C29EA662241BBAE15B2F3C9000415EBA,
MonoBehaviourPunCallbacks_OnJoinRoomFailed_mCAF9C2AB25E7CB441E703A9837984AD56C50E4E3,
MonoBehaviourPunCallbacks_OnCreatedRoom_m02DF7D6BDF105ECE8CC5B66BF30AFFF11E2A5635,
MonoBehaviourPunCallbacks_OnJoinedLobby_mF5F75CD5A6846ACDA16C01B0640776FF014F63FA,
MonoBehaviourPunCallbacks_OnLeftLobby_m00BCFB4A5A729E61A102C58A23F467225E4DCAA2,
MonoBehaviourPunCallbacks_OnDisconnected_m8ADC29905BFF4465B6591ACFB6A505799397BF0A,
MonoBehaviourPunCallbacks_OnRegionListReceived_m739042488FEE2D96F78474B555E3539F67C2F5FF,
MonoBehaviourPunCallbacks_OnRoomListUpdate_m0EAE285429CBBD819210EB0C7071DB6FAB7A671E,
MonoBehaviourPunCallbacks_OnJoinedRoom_m67C17455BA038874C7F631AFDBA6BE2AABE99561,
MonoBehaviourPunCallbacks_OnPlayerEnteredRoom_m48853F70A5FBA0CBBBFD3752191AB8E4AED763AD,
MonoBehaviourPunCallbacks_OnPlayerLeftRoom_mC63165A95C3A1502A8660A2FE9CFC518ABDDB7B1,
MonoBehaviourPunCallbacks_OnJoinRandomFailed_m18360B70477E5F049FBAEB0E27C91E455858E176,
MonoBehaviourPunCallbacks_OnConnectedToMaster_m021136A4DC453BD96E933B182150CDA49B235E77,
MonoBehaviourPunCallbacks_OnRoomPropertiesUpdate_mEC5784BB754A0C1924EB49BE09D0C97421455535,
MonoBehaviourPunCallbacks_OnPlayerPropertiesUpdate_mAFCC1B6CE1A6558754EDD4F0AA8C3FFFBFD3E3E8,
MonoBehaviourPunCallbacks_OnFriendListUpdate_m7E9831E405B8538BC26D371BA2E474765A37683E,
MonoBehaviourPunCallbacks_OnCustomAuthenticationResponse_mF5589EDAE7298AA68E8E09822EABFDA7E7EB55B0,
MonoBehaviourPunCallbacks_OnCustomAuthenticationFailed_mB243B04FD26CD349129FD4102DD1D41536B71D06,
MonoBehaviourPunCallbacks_OnWebRpcResponse_m42AD068F34CF882C447E8986D74A682F6E8BED95,
MonoBehaviourPunCallbacks_OnLobbyStatisticsUpdate_mFD77B50DD02CAA6A9F8784CFA7EE18B95BFAA13C,
MonoBehaviourPunCallbacks_OnErrorInfo_m0B49A580A9AF6A7FE7ECBEFDFF3F0500513CB32B,
MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA,
PhotonMessageInfo__ctor_mB7DF8F3C4338999E7047FFA61F1B8F032A47296F_AdjustorThunk,
PhotonMessageInfo_get_timestamp_mA3ECFF87D3E30323212D6FEAEA970BE3A9483705_AdjustorThunk,
PhotonMessageInfo_get_SentServerTime_mF1D7A58C63929E6E466987F5922AA6FBC298B45D_AdjustorThunk,
PhotonMessageInfo_get_SentServerTimestamp_m92B3BADA28CEEDF718637A4495561E73A3776C2D_AdjustorThunk,
PhotonMessageInfo_ToString_m6600B4FA0C597DAAD3BE0D3A578B6474260C4DDA_AdjustorThunk,
PunEvent__ctor_m723CC3E4424B2BD0A3C68C437CD8AB135FF6BC4C,
PhotonStream_get_IsWriting_mB16D73A32F0C3C1CE9272057F667CE15C1DBC458,
PhotonStream_set_IsWriting_m9959508BC05CEB8B94A1EC2D247B0E03CC09345B,
PhotonStream_get_IsReading_mB1BE45F09FE0C49E9DCEF6D70E8A0C436949B0D5,
PhotonStream_get_Count_m5C310C8F2DC06882FA92EBF81D63262115B293AB,
PhotonStream__ctor_mC33C568A726EF2E11AF9DE48E1D98AA4F4D38756,
PhotonStream_SetReadStream_m0A8DC9019ED7FFDC13D955859FE15E7013631F73,
PhotonStream_SetWriteStream_mD09F6B7C6597AA3BDF988F5EBB5BF32A2749F042,
PhotonStream_GetWriteStream_mB79B5A514D93340D436A1D5E0ADE2B57CBA9B1B5,
PhotonStream_ResetWriteStream_m65F7BA53038A084E6D5597FC743F5266B26E40AC,
PhotonStream_ReceiveNext_m8D9908B4B3BFEA0C30F32C2F8CBB89FCA63357A9,
PhotonStream_PeekNext_m30066D6C2D0553C0E542988C32E6772D6675346A,
PhotonStream_SendNext_mCDF0BEFCFF338F4A19ECFB8D25C67DAD2AA07712,
PhotonStream_CopyToListAndClear_mFDC8BB6758028E00574A245CD62635B644750C60,
PhotonStream_ToArray_mE08B03391C47D9389CB0CF4B15845D4BCE9DA6FD,
PhotonStream_Serialize_m12F52ED0F6FD9599169D6D3EA37AA9CF319B4A17,
PhotonStream_Serialize_m572942604FEF72E9C8AF7A4FC0A202E6E24BCA73,
PhotonStream_Serialize_m9087667DB6FD8D8963506F779E1C3BE13E47137F,
PhotonStream_Serialize_mF36556F48526F4B6B96F42D6392F90C908542512,
PhotonStream_Serialize_mB2F6AB05B960DBC6C0491CBE97D38C889E5E0FCA,
PhotonStream_Serialize_m8DB16ABCA6778E7122A7A3A0B521C48F3FAD3993,
PhotonStream_Serialize_mD8444806FA7C4FFB67DF1620BA87D21F2214A0A9,
PhotonStream_Serialize_m8B1CBA3315CCC6D5D17E13E5E4CE1DA99258D8E0,
PhotonStream_Serialize_m1AC7DDF7540543B15E88BA4AAE1DA0643D8B8C5B,
PhotonStream_Serialize_mB24560BD9E2F20BB917F9C34A493EBF18D0922E5,
SceneManagerHelper_get_ActiveSceneName_mBDF8127A210FDA44A6942B8FABE3574318A2FAC1,
SceneManagerHelper_get_ActiveSceneBuildIndex_m37B9CF41489DC53231E224CEBB3C4C81955CD0E6,
SceneManagerHelper__ctor_m7577BA80EEC41712CA53E2259410D1C3FCF96A79,
DefaultPool_Instantiate_mC7973FD1EF99B39021A690D733DF4A5A6DD98E7F,
DefaultPool_Destroy_m3082510F916257644194CCA205BBA2399C6AFA61,
DefaultPool__ctor_m4D1379FD4F392A07C5B273515D17425862CCE404,
PunExtensions_GetCachedParemeters_mBD43BDB3CBD4167A1E49E72949C633762DC8105D,
PunExtensions_GetPhotonViewsInChildren_m6AE772AD8960DAC9540669A39A2ED5A7984D45DB,
PunExtensions_GetPhotonView_mDA3596A23EAA5C6C2B0DBAC323D16A7C8D628412,
PunExtensions_AlmostEquals_m576E61725EF1B1E75659AB3616246EBE180BDFB1,
PunExtensions_AlmostEquals_m1A0F117F7E0EAB9BADEA0CF8C1B2F702530694B8,
PunExtensions_AlmostEquals_m945D736C9D101B6DACE0B2001733CB97C24E22F3,
PunExtensions_AlmostEquals_mE1D4C852AC99DC32AEA769349F6DD6BC8D437057,
PunExtensions_CheckIsAssignableFrom_m5CD887B58E204F127F7DAD2F408A63D3528372BA,
PunExtensions__cctor_m7F398F5699A60C0DD89C3EFB7D8CF796CE5F12B9,
ServerSettings_UseCloud_m944D5F42BD2330D1EC6CBC75F0FB36B9B7AF9704,
ServerSettings_IsAppId_m728E76CE95E25CDA610ECDCC949A547E7A55E6CF,
ServerSettings_get_BestRegionSummaryInPreferences_mFCEF00C287482CD83E379A87574B085F0D150AF8,
ServerSettings_ResetBestRegionCodeInPreferences_m59742F06C329B5EA26D7B070795CAB5775D951AA,
ServerSettings_ToString_mFCA84BBA9102D219FA2C384B5A9F46392D34A736,
ServerSettings__ctor_mC3ABDBA3917DC9D5F3065BCA69ED7B457BB68004,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NestedComponentUtilities__cctor_mFE9498FEF5551CADC92FCF9205299EB5A1D69F2D,
PhotonAnimatorView_Awake_m39B1C81C62ED2B6AF8E4C92D4B6B5C60F6F5CDCB,
PhotonAnimatorView_Update_mE9FC71AD7734218A4146D96F2862B617E98F1484,
PhotonAnimatorView_CacheDiscreteTriggers_mF7CBED38C068C33549A3C42E694068E314BCB58F,
PhotonAnimatorView_DoesLayerSynchronizeTypeExist_mF41AFE60EA00A487B1CCFA21BD05B3894D952F8C,
PhotonAnimatorView_DoesParameterSynchronizeTypeExist_mC6964482F9875CA40D449F2717440C599B4AA046,
PhotonAnimatorView_GetSynchronizedLayers_mE9A256C81918F2C7DFA1F821A5B3DC686C943CA8,
PhotonAnimatorView_GetSynchronizedParameters_mD8AC8A11B479F1B5B395BBD90E0ED352615F772A,
PhotonAnimatorView_GetLayerSynchronizeType_mA7CF302D5CCE9E51A53A35A42D027F9FA1FEBD50,
PhotonAnimatorView_GetParameterSynchronizeType_m76174FD23B5E8B5A90CB4F2C44A296620BB9C78C,
PhotonAnimatorView_SetLayerSynchronized_mA299A12306A5402875408E5AE93ADCA9AA9FE793,
PhotonAnimatorView_SetParameterSynchronized_m07AB6BC349B2D7746F3A6DDBF99D65F7C1703D63,
PhotonAnimatorView_SerializeDataContinuously_mF424E1D4F8A20FB9F678BAE224407D034CFE4373,
PhotonAnimatorView_DeserializeDataContinuously_m8007CE7D0D31A6E08CB076EA301FED765167E47C,
PhotonAnimatorView_SerializeDataDiscretly_mADF7CC101DC280F5713C4FF229920F5652B99B5C,
PhotonAnimatorView_DeserializeDataDiscretly_m64439D187156F61CEB824A9F7E77A145319A7A90,
PhotonAnimatorView_SerializeSynchronizationTypeState_mF0FFBD22485FAC91FE6E6573716C0F74891D9366,
PhotonAnimatorView_DeserializeSynchronizationTypeState_m019EA4CB1A003CB87705EC7D7322082918CFAFFE,
PhotonAnimatorView_OnPhotonSerializeView_m627D878FAA9EAFC1F41AA79BF4E17A7F3B7A6F81,
PhotonAnimatorView__ctor_m6D94AD7867F7CB7A0A17C955E92E9215D8263D88,
PhotonRigidbody2DView_Awake_m9B08FB25FAB4867F8BA80BACD59ABBAC694CEFEF,
PhotonRigidbody2DView_FixedUpdate_mC8038AF793E20D4373D2290AAFD202A42AC48024,
PhotonRigidbody2DView_OnPhotonSerializeView_mD02387E2D262B11662600839796234F8B9ABEC11,
PhotonRigidbody2DView__ctor_m0F3519AF59943AE5F147DA0F4FDF6D9F58610B76,
PhotonRigidbodyView_Awake_mC1AD075076A1E7F28F6D20448B8DF30C255D7BA7,
PhotonRigidbodyView_FixedUpdate_mC17E5ED62174B8F4E5791F266BD01D459280CFC3,
PhotonRigidbodyView_OnPhotonSerializeView_mCC38E5012D3BDA940A743C85C00156385CFCC53F,
PhotonRigidbodyView__ctor_mFE1B236DB80FFE23270FC5BC9FF13B2265D68323,
PhotonTransformView_Awake_m8B92F4E07ECCD196DBB64FCA42D08D717AADAF25,
PhotonTransformView_OnEnable_m47C62F61DD9BA39133FEAC3A1D26D49A33B457CD,
PhotonTransformView_Update_mF602711F83B7F676311525103EC74CE42C46E791,
PhotonTransformView_OnPhotonSerializeView_mB933AB086DEDE024EFEBF6E9445DB2C601FB1CEB,
PhotonTransformView__ctor_m33662D8E7FC7E7324E41E35903738673120C8B13,
PhotonTransformViewClassic_Awake_mD37DE3E2DA509586BB93C634941775BB66326295,
PhotonTransformViewClassic_OnEnable_m557F8205C4A9DE3059A41E8A2E5B7D6DFB987F53,
PhotonTransformViewClassic_Update_m13B896CDDFAEFD5E41EABBA12C30E5281E7AAA91,
PhotonTransformViewClassic_UpdatePosition_mC5C28116F79ED3B7BA31C6E85CF4E976DD172BB8,
PhotonTransformViewClassic_UpdateRotation_m25AE2AD6E2E2492F7B7A2E50EA1B078FA2E55261,
PhotonTransformViewClassic_UpdateScale_m7C8DAE1D9A77FED238DAAAB56FA149ADEE02F501,
PhotonTransformViewClassic_SetSynchronizedValues_mDF6E4BA0AC5676E8B666A9182042107B99E55F18,
PhotonTransformViewClassic_OnPhotonSerializeView_mEBEC699B9BF1AA64B79D6DA9A29802EA28B9334F,
PhotonTransformViewClassic__ctor_mB0D548ABFFE4FECC5B4E541C50CD00398CBF24CF,
PhotonTransformViewPositionModel__ctor_m91498B472599A9EDB5163567647A4D8C9F78A301,
PhotonTransformViewPositionControl__ctor_mCEAF26452CE4B62915C473A91E0ACB05230312D7,
PhotonTransformViewPositionControl_GetOldestStoredNetworkPosition_m4982592135EA10FACC90E0A78B3423BCB1C84405,
PhotonTransformViewPositionControl_SetSynchronizedValues_m00E204C877A5290D6B9FF704B25ABB1188ECD69C,
PhotonTransformViewPositionControl_UpdatePosition_m9D1775F2DE7FFE494E96F280CF4DFAAB65FE8429,
PhotonTransformViewPositionControl_GetNetworkPosition_m047475370A825DB4FCAB3BAB86E6029CC98C89A1,
PhotonTransformViewPositionControl_GetExtrapolatedPositionOffset_mFE9B782C8EDB94A36173C1559B72EF14790690C9,
PhotonTransformViewPositionControl_OnPhotonSerializeView_mEADE2EB3B08D87FE97F122AAEC97FF83F63A5B51,
PhotonTransformViewPositionControl_SerializeData_m46A84222F254F10D91A0762D0A70DAC9F4BF0CC8,
PhotonTransformViewPositionControl_DeserializeData_m9D749828D57C78D6AD4443D66E8DCFBC6D0423A3,
PhotonTransformViewRotationModel__ctor_mF3032CE5619AA6AE9A758EB850BDD50AB8E8FC4C,
PhotonTransformViewRotationControl__ctor_m5350996A5B1D11CE80C1FF8275ACE0845D0E8AEF,
PhotonTransformViewRotationControl_GetNetworkRotation_m9C232BEB12E8EBF1A79A4331A24363F5B30CCE14,
PhotonTransformViewRotationControl_GetRotation_m8573B3D9871305C20D1023A135BA04AEA0D3EFF0,
PhotonTransformViewRotationControl_OnPhotonSerializeView_m817CD4BE62ABA98E2C071C8AFF0121BB93AFDEED,
PhotonTransformViewScaleModel__ctor_m66436933C2943911D2430F3F8DEADDFF696BEB6E,
PhotonTransformViewScaleControl__ctor_mEFFA198BF98C3BFE37573865DD22C312FAEC20A1,
PhotonTransformViewScaleControl_GetNetworkScale_mA0936FD6D72F6BF7EDE3966230D0AC367B81EB36,
PhotonTransformViewScaleControl_GetScale_m0826273DFB50810E7B8E8CE8D05DFA2E67D8D251,
PhotonTransformViewScaleControl_OnPhotonSerializeView_mB03F0D37841831CA9A6664102D8A16F4F8517F7C,
U3CU3Ec__cctor_m08EE346FC5B93E06AE7CAB3621D64E4AA953615C,
U3CU3Ec__ctor_mF7AF7541E2834C698E39D0CD0436A40DEA1518A9,
U3CU3Ec_U3CStartU3Eb__13_0_m1942A57773C6C2E743AB11BD84F10871254E6E76,
RaiseEventBatch_GetHashCode_m0572D663AB76E55612B1C3901FB6929C90CCDE53_AdjustorThunk,
RaiseEventBatch_Equals_m71B5414BE7ADB98F007934321B82B9BE32DDC7B0_AdjustorThunk,
SerializeViewBatch__ctor_m01C7F1087A583EF1FDC28EF25EF545E94AFDB2EB,
SerializeViewBatch_GetHashCode_m742D6517893E7A63943AF115FC275699FF52207F,
SerializeViewBatch_Equals_m019D13DFDC42F21599367F92084A44E17A841B5C,
SerializeViewBatch_Equals_mEBC662465B326AC4FC4A56D62B457AC57A5D592B,
SerializeViewBatch_Equals_mB986F93FE4269FE76906376B823CB478CF2FF896,
SerializeViewBatch_Clear_mECCF60C28517628563A933BB724E1676EBB0C6BC,
SerializeViewBatch_Add_m05F7AB5E616366C8B6E6CDF7008063A5C76BD7E7,
U3CU3Ec__cctor_m011B46DC4CF7CCD07014FEEF970D0166A4FDFA7C,
U3CU3Ec__ctor_mD406448AD6602EEB819A79BF394CAD18506D7278,
U3CU3Ec_U3Cget_PlayerListU3Eb__47_0_m62E4FE67903CC9EE2832083E4611437BEC0EAEF8,
U3CU3Ec_U3Cget_PlayerListOthersU3Eb__49_0_m794CB25AA1A58E99B486AC8677EE1E74E7C6AD3C,
U3CU3Ec_U3Cget_PlayerListOthersU3Eb__49_1_mCFC70D092E43B0D9281AE7B44217B513DEEF09DF,
U3CU3Ec_U3CStaticResetU3Eb__125_0_mDC4BC2C3EE08CAA58917E79B0DCF50AF86CB28D0,
U3CU3Ec_U3CCallbacksToStringU3Eb__205_0_mB02D6C1EC6DF8608AD19E97D1574B8D26306435E,
U3CU3Ec_U3COnRegionsPingedU3Eb__303_0_mD3FF4ED0CF1A14E59373FB85DE49B41C022E0BF3,
CallbackQueueItem__ctor_m19BDD8BE1EE64CFA85CB9541A99B694412EB3C93_AdjustorThunk,
SynchronizedParameter__ctor_mA6320BBC3B35230509398D9A3A45B303BD4F244D,
SynchronizedLayer__ctor_m8FC61B553F82359AA3C835249F51C8FC4179BD36,
U3CU3Ec__DisplayClass18_0__ctor_mAC34F74CD39DC72451FEB2A0C16FF6F8CD257468,
U3CU3Ec__DisplayClass18_0_U3CDoesLayerSynchronizeTypeExistU3Eb__0_m61ADAD658AFA1460F8E72923E688207E6EF6517B,
U3CU3Ec__DisplayClass19_0__ctor_m7D84980E6575929FDDBAF4428AE1AEF11E8441F7,
U3CU3Ec__DisplayClass19_0_U3CDoesParameterSynchronizeTypeExistU3Eb__0_mF8CED2EE11B4EEE105F1F3327EBE4DAC7B7F25EB,
U3CU3Ec__DisplayClass22_0__ctor_m51D26E0C2AEE1CD905C80E71465A6E45617C3984,
U3CU3Ec__DisplayClass22_0_U3CGetLayerSynchronizeTypeU3Eb__0_m85B452FAECBE022F80BEF5450CBD109C1F6FF2E0,
U3CU3Ec__DisplayClass23_0__ctor_m10EB43DAC2782156D2C964299FF218D0A698D0B8,
U3CU3Ec__DisplayClass23_0_U3CGetParameterSynchronizeTypeU3Eb__0_m230E19FD6D0C47415B27A5FF62F7F17CDC86E269,
U3CU3Ec__DisplayClass24_0__ctor_m142B78A882463F28673D65B83FC2151848B09655,
U3CU3Ec__DisplayClass24_0_U3CSetLayerSynchronizedU3Eb__0_m1180705E0C99A4FB968BC19F4F9FADFD6A93A2F0,
U3CU3Ec__DisplayClass25_0__ctor_mAAB0D78C8E63C773B860D4FEA10709E6CF7A7B53,
U3CU3Ec__DisplayClass25_0_U3CSetParameterSynchronizedU3Eb__0_m009C75E4DAF196A0E8E46FF612E20FDF9EC14F0F,
};
static const int32_t s_InvokerIndices[458] =
{
3,
259,
373,
259,
373,
259,
373,
259,
373,
3,
4,
23,
23,
23,
23,
23,
23,
23,
23,
26,
27,
26,
26,
1117,
1117,
1117,
23,
23,
26,
26,
23,
3,
1943,
4,
168,
4,
4,
168,
4,
4,
4,
4,
168,
49,
49,
106,
106,
4,
168,
4,
4,
4,
4,
168,
4,
4,
49,
864,
49,
864,
49,
49,
106,
178,
106,
178,
49,
864,
1944,
106,
1945,
1465,
49,
4,
49,
106,
106,
106,
106,
49,
864,
106,
49,
864,
106,
106,
178,
106,
178,
49,
864,
3,
3,
49,
627,
241,
49,
116,
3,
49,
3,
4,
49,
106,
3,
3,
116,
116,
49,
627,
1946,
124,
124,
121,
116,
49,
5,
109,
49,
116,
49,
116,
121,
116,
168,
1947,
1947,
116,
116,
265,
21,
1948,
1948,
1948,
1,
1949,
1950,
168,
168,
168,
178,
3,
168,
168,
1951,
1952,
0,
1953,
178,
168,
220,
3,
4,
1954,
106,
168,
168,
168,
168,
168,
168,
4,
4,
168,
1465,
3,
864,
3,
142,
121,
1955,
864,
620,
168,
178,
3,
178,
179,
179,
377,
116,
43,
168,
178,
178,
3,
3,
168,
168,
178,
864,
1956,
142,
1953,
142,
3,
3,
168,
0,
1957,
1,
1,
121,
121,
394,
3,
168,
168,
168,
179,
168,
32,
23,
23,
26,
89,
14,
26,
26,
26,
1820,
10,
32,
14,
26,
26,
26,
-1,
-1,
23,
-1,
10,
32,
89,
31,
23,
137,
31,
14,
10,
14,
10,
89,
10,
89,
23,
31,
26,
23,
23,
26,
32,
1960,
1960,
1961,
1961,
23,
107,
1853,
211,
1962,
0,
0,
43,
14,
23,
23,
1960,
27,
27,
1963,
1964,
26,
14,
23,
23,
23,
23,
23,
26,
1117,
1117,
23,
23,
23,
32,
26,
26,
23,
26,
26,
1117,
23,
26,
27,
26,
26,
26,
26,
26,
26,
23,
107,
466,
466,
10,
14,
23,
89,
31,
89,
10,
88,
137,
137,
14,
23,
14,
14,
26,
9,
14,
6,
6,
6,
6,
6,
6,
6,
6,
6,
6,
4,
106,
23,
1964,
26,
23,
0,
0,
0,
1729,
1965,
1966,
1967,
121,
3,
27,
116,
4,
3,
14,
23,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
3,
23,
23,
23,
30,
9,
14,
14,
37,
112,
136,
35,
23,
23,
26,
26,
26,
26,
1960,
23,
23,
23,
1960,
23,
23,
23,
1960,
23,
23,
23,
23,
1960,
23,
23,
23,
23,
23,
23,
23,
1968,
1960,
23,
23,
26,
1445,
1968,
1402,
1445,
1445,
1969,
1969,
1960,
23,
26,
1597,
1970,
1971,
23,
26,
1445,
1402,
1969,
3,
23,
1942,
10,
1958,
1959,
10,
9,
1958,
9,
23,
26,
3,
23,
112,
112,
9,
10,
28,
9,
161,
23,
23,
23,
9,
23,
9,
23,
9,
23,
9,
23,
9,
23,
9,
};
static const Il2CppTokenRangePair s_rgctxIndices[11] =
{
{ 0x060000E4, { 0, 1 } },
{ 0x060000E5, { 1, 1 } },
{ 0x060000E7, { 2, 5 } },
{ 0x06000162, { 7, 2 } },
{ 0x06000163, { 9, 4 } },
{ 0x06000164, { 13, 4 } },
{ 0x06000165, { 17, 4 } },
{ 0x06000166, { 21, 4 } },
{ 0x06000167, { 25, 7 } },
{ 0x06000168, { 32, 7 } },
{ 0x06000169, { 39, 15 } },
};
static const Il2CppRGCTXDefinition s_rgctxValues[54] =
{
{ (Il2CppRGCTXDataType)1, 22309 },
{ (Il2CppRGCTXDataType)1, 22310 },
{ (Il2CppRGCTXDataType)2, 21094 },
{ (Il2CppRGCTXDataType)3, 15428 },
{ (Il2CppRGCTXDataType)3, 15429 },
{ (Il2CppRGCTXDataType)3, 15430 },
{ (Il2CppRGCTXDataType)3, 15431 },
{ (Il2CppRGCTXDataType)3, 15432 },
{ (Il2CppRGCTXDataType)2, 21144 },
{ (Il2CppRGCTXDataType)3, 15433 },
{ (Il2CppRGCTXDataType)3, 15434 },
{ (Il2CppRGCTXDataType)2, 21146 },
{ (Il2CppRGCTXDataType)3, 15435 },
{ (Il2CppRGCTXDataType)3, 15436 },
{ (Il2CppRGCTXDataType)2, 21147 },
{ (Il2CppRGCTXDataType)3, 15437 },
{ (Il2CppRGCTXDataType)2, 22311 },
{ (Il2CppRGCTXDataType)3, 15438 },
{ (Il2CppRGCTXDataType)2, 21148 },
{ (Il2CppRGCTXDataType)3, 15439 },
{ (Il2CppRGCTXDataType)2, 22312 },
{ (Il2CppRGCTXDataType)3, 15440 },
{ (Il2CppRGCTXDataType)2, 21149 },
{ (Il2CppRGCTXDataType)3, 15441 },
{ (Il2CppRGCTXDataType)2, 22313 },
{ (Il2CppRGCTXDataType)3, 15442 },
{ (Il2CppRGCTXDataType)3, 15443 },
{ (Il2CppRGCTXDataType)2, 22314 },
{ (Il2CppRGCTXDataType)1, 21151 },
{ (Il2CppRGCTXDataType)2, 21150 },
{ (Il2CppRGCTXDataType)3, 15444 },
{ (Il2CppRGCTXDataType)3, 15445 },
{ (Il2CppRGCTXDataType)1, 21153 },
{ (Il2CppRGCTXDataType)2, 21152 },
{ (Il2CppRGCTXDataType)3, 15446 },
{ (Il2CppRGCTXDataType)3, 15447 },
{ (Il2CppRGCTXDataType)3, 15448 },
{ (Il2CppRGCTXDataType)2, 22315 },
{ (Il2CppRGCTXDataType)3, 15449 },
{ (Il2CppRGCTXDataType)3, 15450 },
{ (Il2CppRGCTXDataType)1, 22316 },
{ (Il2CppRGCTXDataType)2, 22317 },
{ (Il2CppRGCTXDataType)3, 15451 },
{ (Il2CppRGCTXDataType)3, 15452 },
{ (Il2CppRGCTXDataType)3, 15453 },
{ (Il2CppRGCTXDataType)3, 15454 },
{ (Il2CppRGCTXDataType)3, 15455 },
{ (Il2CppRGCTXDataType)2, 22316 },
{ (Il2CppRGCTXDataType)2, 21155 },
{ (Il2CppRGCTXDataType)3, 15456 },
{ (Il2CppRGCTXDataType)3, 15457 },
{ (Il2CppRGCTXDataType)2, 22318 },
{ (Il2CppRGCTXDataType)3, 15458 },
{ (Il2CppRGCTXDataType)2, 22319 },
};
extern const Il2CppCodeGenModule g_PhotonUnityNetworkingCodeGenModule;
const Il2CppCodeGenModule g_PhotonUnityNetworkingCodeGenModule =
{
"PhotonUnityNetworking.dll",
458,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
11,
s_rgctxIndices,
54,
s_rgctxValues,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/lumpedcpp/Lump_libil2cpp_debugger.cpp
#include "il2cpp-config.h"
#include "C:\Program Files\Unity\Hub\Editor\2019.2.16f1\Editor\Data\il2cpp\libil2cpp\debugger\il2cpp-stubs.cpp"
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/Photon3Unity3D_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.Void ExitGames.Client.Photon.ByteArraySlice::.ctor(ExitGames.Client.Photon.ByteArraySlicePool,System.Int32)
extern void ByteArraySlice__ctor_m3127E423363FB05562655FAA5EF2E005C0FF66AD ();
// 0x00000002 System.Void ExitGames.Client.Photon.ByteArraySlice::.ctor(System.Byte[],System.Int32,System.Int32)
extern void ByteArraySlice__ctor_m756167C21F2C66576D431776EDA4693EC69E6958 ();
// 0x00000003 System.Void ExitGames.Client.Photon.ByteArraySlice::.ctor()
extern void ByteArraySlice__ctor_mC9666787E22076BEF464D59D56AC342D17CB26CB ();
// 0x00000004 System.Boolean ExitGames.Client.Photon.ByteArraySlice::Release()
extern void ByteArraySlice_Release_m90475D5ACF72BDA22EBE60105F37A428FB8DAA18 ();
// 0x00000005 System.Void ExitGames.Client.Photon.ByteArraySlice::Reset()
extern void ByteArraySlice_Reset_m15E18BA8EA7FBD5E4E738AAD876B27F0DDBB05F0 ();
// 0x00000006 System.Int32 ExitGames.Client.Photon.ByteArraySlicePool::get_MinStackIndex()
extern void ByteArraySlicePool_get_MinStackIndex_m92D4F677EB4ED653B01E8D71913DC2CD4AABFA9B ();
// 0x00000007 System.Void ExitGames.Client.Photon.ByteArraySlicePool::set_MinStackIndex(System.Int32)
extern void ByteArraySlicePool_set_MinStackIndex_m2538B982D1704426C623DB636EFB12919A0690B8 ();
// 0x00000008 System.Int32 ExitGames.Client.Photon.ByteArraySlicePool::get_AllocationCounter()
extern void ByteArraySlicePool_get_AllocationCounter_mA1C16EA0BA62511BDFCA48314E1314735D029B70 ();
// 0x00000009 System.Void ExitGames.Client.Photon.ByteArraySlicePool::.ctor()
extern void ByteArraySlicePool__ctor_mA71104C3012AE0AA64CAB39EACF2BF781DEE163D ();
// 0x0000000A ExitGames.Client.Photon.ByteArraySlice ExitGames.Client.Photon.ByteArraySlicePool::Acquire(System.Byte[],System.Int32,System.Int32)
extern void ByteArraySlicePool_Acquire_m09FD6C89772EECF41DC2966A94D74C528965E486 ();
// 0x0000000B ExitGames.Client.Photon.ByteArraySlice ExitGames.Client.Photon.ByteArraySlicePool::Acquire(System.Int32)
extern void ByteArraySlicePool_Acquire_m30F056465C78B5A9D1F5180BF21ADF00D001E76B ();
// 0x0000000C ExitGames.Client.Photon.ByteArraySlice ExitGames.Client.Photon.ByteArraySlicePool::Acquire(System.Collections.Generic.Stack`1<ExitGames.Client.Photon.ByteArraySlice>,System.Int32)
extern void ByteArraySlicePool_Acquire_mE07AE6DD3D9E59C14BC0B4721CF620960CD2F955 ();
// 0x0000000D System.Boolean ExitGames.Client.Photon.ByteArraySlicePool::Release(ExitGames.Client.Photon.ByteArraySlice)
extern void ByteArraySlicePool_Release_m9CCDB29AA71B9D4CAFA0AE4DD1B6DFF68515922D ();
// 0x0000000E System.Void ExitGames.Client.Photon.ByteArraySlicePool::ClearPools(System.Int32,System.Int32)
extern void ByteArraySlicePool_ClearPools_m12BC4E17FA97FF77C5F54B123591E1ADA536BD09 ();
// 0x0000000F ExitGames.Client.Photon.NonAllocDictionary`2_KeyIterator<K,V> ExitGames.Client.Photon.NonAllocDictionary`2::get_Keys()
// 0x00000010 ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator<K,V> ExitGames.Client.Photon.NonAllocDictionary`2::get_Values()
// 0x00000011 System.Int32 ExitGames.Client.Photon.NonAllocDictionary`2::get_Count()
// 0x00000012 System.UInt32 ExitGames.Client.Photon.NonAllocDictionary`2::get_Capacity()
// 0x00000013 System.Void ExitGames.Client.Photon.NonAllocDictionary`2::.ctor(System.UInt32)
// 0x00000014 System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2::ContainsKey(K)
// 0x00000015 System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2::TryGetValue(K,V&)
// 0x00000016 V ExitGames.Client.Photon.NonAllocDictionary`2::get_Item(K)
// 0x00000017 System.Void ExitGames.Client.Photon.NonAllocDictionary`2::set_Item(K,V)
// 0x00000018 System.Void ExitGames.Client.Photon.NonAllocDictionary`2::Set(K,V)
// 0x00000019 System.Void ExitGames.Client.Photon.NonAllocDictionary`2::Add(K,V)
// 0x0000001A System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2::Remove(K)
// 0x0000001B ExitGames.Client.Photon.NonAllocDictionary`2_PairIterator<K,V> ExitGames.Client.Photon.NonAllocDictionary`2::GetEnumerator()
// 0x0000001C System.Int32 ExitGames.Client.Photon.NonAllocDictionary`2::FindNode(K)
// 0x0000001D System.Void ExitGames.Client.Photon.NonAllocDictionary`2::Insert(K,V)
// 0x0000001E System.Void ExitGames.Client.Photon.NonAllocDictionary`2::Expand()
// 0x0000001F System.Void ExitGames.Client.Photon.NonAllocDictionary`2::Clear()
// 0x00000020 System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2::IsPrimeFromList(System.UInt32)
// 0x00000021 System.UInt32 ExitGames.Client.Photon.NonAllocDictionary`2::GetNextPrime(System.UInt32)
// 0x00000022 System.Void ExitGames.Client.Photon.NonAllocDictionary`2::Assert(System.Boolean)
// 0x00000023 System.Void ExitGames.Client.Photon.NonAllocDictionary`2::.cctor()
// 0x00000024 System.Void ExitGames.Client.Photon.NonAllocDictionary`2_KeyIterator::.ctor(ExitGames.Client.Photon.NonAllocDictionary`2<K,V>)
// 0x00000025 ExitGames.Client.Photon.NonAllocDictionary`2_KeyIterator<K,V> ExitGames.Client.Photon.NonAllocDictionary`2_KeyIterator::GetEnumerator()
// 0x00000026 K ExitGames.Client.Photon.NonAllocDictionary`2_KeyIterator::get_Current()
// 0x00000027 System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2_KeyIterator::MoveNext()
// 0x00000028 System.Void ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator::.ctor(ExitGames.Client.Photon.NonAllocDictionary`2<K,V>)
// 0x00000029 ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator<K,V> ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator::GetEnumerator()
// 0x0000002A V ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator::get_Current()
// 0x0000002B System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2_ValueIterator::MoveNext()
// 0x0000002C System.Void ExitGames.Client.Photon.NonAllocDictionary`2_PairIterator::.ctor(ExitGames.Client.Photon.NonAllocDictionary`2<K,V>)
// 0x0000002D System.Collections.Generic.KeyValuePair`2<K,V> ExitGames.Client.Photon.NonAllocDictionary`2_PairIterator::get_Current()
// 0x0000002E System.Boolean ExitGames.Client.Photon.NonAllocDictionary`2_PairIterator::MoveNext()
// 0x0000002F System.Void ExitGames.Client.Photon.Hashtable::.ctor()
extern void Hashtable__ctor_mBDBFC7E59F307BD37985867DA6205EEA4E14B764 ();
// 0x00000030 System.Void ExitGames.Client.Photon.Hashtable::.ctor(System.Int32)
extern void Hashtable__ctor_m77196990CCD013AD969AF83C9EA2E403986BDD19 ();
// 0x00000031 System.Object ExitGames.Client.Photon.Hashtable::get_Item(System.Object)
extern void Hashtable_get_Item_mEEE758B56A641B2D71139065020E42552E83DCDA ();
// 0x00000032 System.Void ExitGames.Client.Photon.Hashtable::set_Item(System.Object,System.Object)
extern void Hashtable_set_Item_mFA8ED61DCEC16B013F62104958462B592A5B741B ();
// 0x00000033 System.Collections.Generic.IEnumerator`1<System.Collections.DictionaryEntry> ExitGames.Client.Photon.Hashtable::GetEnumerator()
extern void Hashtable_GetEnumerator_m4E5883D491873F6FC36288F9CCD39EE668C2C4F2 ();
// 0x00000034 System.String ExitGames.Client.Photon.Hashtable::ToString()
extern void Hashtable_ToString_m76C9556EDBB63B379D1310BCB55BDE2305DB1BA8 ();
// 0x00000035 System.Object ExitGames.Client.Photon.Hashtable::Clone()
extern void Hashtable_Clone_m5C735D0523470BDBAABBF1FB690617F8F8943722 ();
// 0x00000036 System.Void ExitGames.Client.Photon.DictionaryEntryEnumerator::.ctor(System.Collections.IDictionaryEnumerator)
extern void DictionaryEntryEnumerator__ctor_m7035791699A7218DB37688032A639082E7CD5CFC ();
// 0x00000037 System.Boolean ExitGames.Client.Photon.DictionaryEntryEnumerator::MoveNext()
extern void DictionaryEntryEnumerator_MoveNext_mD87612656CBD1492D4BFC4D768FF237EB26C8C24 ();
// 0x00000038 System.Void ExitGames.Client.Photon.DictionaryEntryEnumerator::Reset()
extern void DictionaryEntryEnumerator_Reset_m6D1B56D26A66B32428BFFC103F15EC113241B35A ();
// 0x00000039 System.Object ExitGames.Client.Photon.DictionaryEntryEnumerator::System.Collections.IEnumerator.get_Current()
extern void DictionaryEntryEnumerator_System_Collections_IEnumerator_get_Current_mB0E3FD60FB1C16AFDE1ECD1ECEE95FC1AC9CE88C ();
// 0x0000003A System.Collections.DictionaryEntry ExitGames.Client.Photon.DictionaryEntryEnumerator::get_Current()
extern void DictionaryEntryEnumerator_get_Current_m83F62DCD5A78CBF2DE0776E882F6917BE2280CF4 ();
// 0x0000003B System.Object ExitGames.Client.Photon.DictionaryEntryEnumerator::get_Key()
extern void DictionaryEntryEnumerator_get_Key_<KEY> ();
// 0x0000003C System.Object ExitGames.Client.Photon.DictionaryEntryEnumerator::get_Value()
extern void DictionaryEntryEnumerator_get_Value_m9F2BB81E9C088FA0ECC62D6FFF7CE2FD3ED5D2C2 ();
// 0x0000003D System.Collections.DictionaryEntry ExitGames.Client.Photon.DictionaryEntryEnumerator::get_Entry()
extern void DictionaryEntryEnumerator_get_Entry_mCE177A456FA850F132BA7F40A4E3345F0C7611BF ();
// 0x0000003E System.Void ExitGames.Client.Photon.DictionaryEntryEnumerator::Dispose()
extern void DictionaryEntryEnumerator_Dispose_mF991D09C0C6B828FF41C2C6D570690CD288B0951 ();
// 0x0000003F System.Void ExitGames.Client.Photon.EnetChannel::.ctor(System.Byte,System.Int32)
extern void EnetChannel__ctor_mE0F797E8BE18C2DC52AA712EF662A9C8D7BA78E9 ();
// 0x00000040 System.Boolean ExitGames.Client.Photon.EnetChannel::ContainsUnreliableSequenceNumber(System.Int32)
extern void EnetChannel_ContainsUnreliableSequenceNumber_m4E4947FD470C87365DEE715C0E0C3D3C2C086B8F ();
// 0x00000041 ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.EnetChannel::FetchUnreliableSequenceNumber(System.Int32)
extern void EnetChannel_FetchUnreliableSequenceNumber_m6C66738E994EA5480C6704EB054A4403BF598126 ();
// 0x00000042 System.Boolean ExitGames.Client.Photon.EnetChannel::ContainsReliableSequenceNumber(System.Int32)
extern void EnetChannel_ContainsReliableSequenceNumber_m6738815512BEA5914AB8E08AA1A8B54B24B2E559 ();
// 0x00000043 ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.EnetChannel::FetchReliableSequenceNumber(System.Int32)
extern void EnetChannel_FetchReliableSequenceNumber_m4DFF21EA14D8B06F2144BFA06A706E7C0AB6DEC6 ();
// 0x00000044 System.Boolean ExitGames.Client.Photon.EnetChannel::TryGetFragment(System.Int32,System.Boolean,ExitGames.Client.Photon.NCommand&)
extern void EnetChannel_TryGetFragment_m28E28B16A5D28195B61CC7A5F2995CEB7ADD97FF ();
// 0x00000045 System.Void ExitGames.Client.Photon.EnetChannel::RemoveFragment(System.Int32,System.Boolean)
extern void EnetChannel_RemoveFragment_mA2216AC3AF6AAC3230C170F34E8E0EB11EB78359 ();
// 0x00000046 System.Void ExitGames.Client.Photon.EnetChannel::clearAll()
extern void EnetChannel_clearAll_mB0FC550CCDAD7E15328F7F38A51BFD6AA93A0D7F ();
// 0x00000047 System.Boolean ExitGames.Client.Photon.EnetChannel::QueueIncomingReliableUnsequenced(ExitGames.Client.Photon.NCommand)
extern void EnetChannel_QueueIncomingReliableUnsequenced_m76A4294A9C0C949A3C349A986447510CCEBE72B4 ();
// 0x00000048 System.Int32 ExitGames.Client.Photon.EnetPeer::get_QueuedIncomingCommandsCount()
extern void EnetPeer_get_QueuedIncomingCommandsCount_m840E347BE96EF8640690D32134006561A8507284 ();
// 0x00000049 System.Int32 ExitGames.Client.Photon.EnetPeer::get_QueuedOutgoingCommandsCount()
extern void EnetPeer_get_QueuedOutgoingCommandsCount_m751410D861A94B345938B780E6FEF6B6347ECE3A ();
// 0x0000004A System.Int32 ExitGames.Client.Photon.EnetPeer::get_SentReliableCommandsCount()
extern void EnetPeer_get_SentReliableCommandsCount_m1B367F1A7138964AE5F0AA5F51443BA9807B7943 ();
// 0x0000004B System.Void ExitGames.Client.Photon.EnetPeer::.ctor()
extern void EnetPeer__ctor_m693A48AEB026345ABFA49C3FF497E187B7CF4146 ();
// 0x0000004C System.Void ExitGames.Client.Photon.EnetPeer::InitPeerBase()
extern void EnetPeer_InitPeerBase_m22CCD130934931A262AA2AFFF8842DF3369C840C ();
// 0x0000004D System.Void ExitGames.Client.Photon.EnetPeer::ApplyRandomizedSequenceNumbers()
extern void EnetPeer_ApplyRandomizedSequenceNumbers_m95B404FF0F3BBD58217D4F2D3D069B9840AD0198 ();
// 0x0000004E System.Boolean ExitGames.Client.Photon.EnetPeer::Connect(System.String,System.String,System.Object)
extern void EnetPeer_Connect_mC6B4F46468223ACD91F6ABCD10E60D8E1E167FD6 ();
// 0x0000004F System.Boolean ExitGames.Client.Photon.EnetPeer::Connect(System.String,System.String,System.String,System.Object)
extern void EnetPeer_Connect_mEBBFFACE4C19AFFB05F746C1A799405BFA071782 ();
// 0x00000050 System.Void ExitGames.Client.Photon.EnetPeer::OnConnect()
extern void EnetPeer_OnConnect_m213CBD9F91B98584DEC8C1A42CD4D661FC3F6D24 ();
// 0x00000051 System.Void ExitGames.Client.Photon.EnetPeer::Disconnect()
extern void EnetPeer_Disconnect_m47F6F24F2171B6BEBCC32D2E0F0896EBB3FDAB86 ();
// 0x00000052 System.Void ExitGames.Client.Photon.EnetPeer::StopConnection()
extern void EnetPeer_StopConnection_m9E7670C8317F286B00A968A1270403084773B5D7 ();
// 0x00000053 System.Void ExitGames.Client.Photon.EnetPeer::FetchServerTimestamp()
extern void EnetPeer_FetchServerTimestamp_m08C673EB4B55C5C3D9612FCDFB1C50FBE932616F ();
// 0x00000054 System.Boolean ExitGames.Client.Photon.EnetPeer::DispatchIncomingCommands()
extern void EnetPeer_DispatchIncomingCommands_m00115944027A21F53C0BEB60AD5E7BDA664CE2DD ();
// 0x00000055 System.Int32 ExitGames.Client.Photon.EnetPeer::GetFragmentLength()
extern void EnetPeer_GetFragmentLength_mD270A984C57E121750FAE0E00A341461863004B1 ();
// 0x00000056 System.Int32 ExitGames.Client.Photon.EnetPeer::CalculatePacketSize(System.Int32)
extern void EnetPeer_CalculatePacketSize_m41978A2C944B86B71DD14D173C2A70DBC0A3D6FC ();
// 0x00000057 System.Int32 ExitGames.Client.Photon.EnetPeer::CalculateInitialOffset()
extern void EnetPeer_CalculateInitialOffset_m0720B21C198D49B19CF003402E7C226B7C60375B ();
// 0x00000058 System.Boolean ExitGames.Client.Photon.EnetPeer::SendAcksOnly()
extern void EnetPeer_SendAcksOnly_m5397EF46172C6CAB7D55CC75B507AB0C77294DF8 ();
// 0x00000059 System.Boolean ExitGames.Client.Photon.EnetPeer::SendOutgoingCommands()
extern void EnetPeer_SendOutgoingCommands_m90CB60092A81A752A92C5A6ACD0128469C352337 ();
// 0x0000005A System.Boolean ExitGames.Client.Photon.EnetPeer::AreReliableCommandsInTransit()
extern void EnetPeer_AreReliableCommandsInTransit_m7AB6199AF2E1EAE1AAEAF19733951E7D5346CAC1 ();
// 0x0000005B System.Boolean ExitGames.Client.Photon.EnetPeer::EnqueueOperation(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Byte,ExitGames.Client.Photon.SendOptions,ExitGames.Client.Photon.EgMessageType)
extern void EnetPeer_EnqueueOperation_m97D39EC13F27C4FC10D2D1B9061A021C69B976D8 ();
// 0x0000005C System.Boolean ExitGames.Client.Photon.EnetPeer::EnqueueMessage(System.Object,ExitGames.Client.Photon.SendOptions)
extern void EnetPeer_EnqueueMessage_m52AA3FAC6BCBC70541AE5F457E48DD8755CD2DDE ();
// 0x0000005D ExitGames.Client.Photon.EnetChannel ExitGames.Client.Photon.EnetPeer::GetChannel(System.Byte)
extern void EnetPeer_GetChannel_mF211F44FF1BF5921B14207E5A830F06167F94B00 ();
// 0x0000005E System.Boolean ExitGames.Client.Photon.EnetPeer::CreateAndEnqueueCommand(System.Byte,ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void EnetPeer_CreateAndEnqueueCommand_mE3AC2714B57D24AA7D7DBD9F35A592562F61FAC3 ();
// 0x0000005F ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.EnetPeer::SerializeOperationToMessage(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.EgMessageType,System.Boolean)
extern void EnetPeer_SerializeOperationToMessage_m2D9899927A28341E922060E716F46E539BEEC800 ();
// 0x00000060 System.Int32 ExitGames.Client.Photon.EnetPeer::SerializeAckToBuffer()
extern void EnetPeer_SerializeAckToBuffer_m038BC0754AAB2554C38AFADCB8EFF437536803C4 ();
// 0x00000061 System.Int32 ExitGames.Client.Photon.EnetPeer::SerializeToBuffer(System.Collections.Generic.Queue`1<ExitGames.Client.Photon.NCommand>)
extern void EnetPeer_SerializeToBuffer_mB053B856A98D81C9BBEF37229FC91842668DE4FE ();
// 0x00000062 System.Void ExitGames.Client.Photon.EnetPeer::SendData(System.Byte[],System.Int32)
extern void EnetPeer_SendData_m71C806D7DD46F7048C645CF4DC5DE20F90F501A9 ();
// 0x00000063 System.Void ExitGames.Client.Photon.EnetPeer::SendToSocket(System.Byte[],System.Int32)
extern void EnetPeer_SendToSocket_m35672D8617BA2BBEC4C6597ACB5727590922C4BC ();
// 0x00000064 System.Void ExitGames.Client.Photon.EnetPeer::SendDataEncrypted(System.Byte[],System.Int32)
extern void EnetPeer_SendDataEncrypted_m1D6BD8098BF15EFC9FCC85F73F5C549142F17A95 ();
// 0x00000065 System.Void ExitGames.Client.Photon.EnetPeer::QueueSentCommand(ExitGames.Client.Photon.NCommand)
extern void EnetPeer_QueueSentCommand_mD8CA8181E63C53BD3902A8597EB3D8EAABE29B92 ();
// 0x00000066 System.Void ExitGames.Client.Photon.EnetPeer::QueueOutgoingReliableCommand(ExitGames.Client.Photon.NCommand)
extern void EnetPeer_QueueOutgoingReliableCommand_m4FC24D90877605833CB6D5644E955ED629004055 ();
// 0x00000067 System.Void ExitGames.Client.Photon.EnetPeer::QueueOutgoingUnreliableCommand(ExitGames.Client.Photon.NCommand)
extern void EnetPeer_QueueOutgoingUnreliableCommand_m33CBA9795E3030C9C3D7409E286B29FFDE2BAFC9 ();
// 0x00000068 System.Void ExitGames.Client.Photon.EnetPeer::QueueOutgoingAcknowledgement(ExitGames.Client.Photon.NCommand,System.Int32)
extern void EnetPeer_QueueOutgoingAcknowledgement_mD371A1FE4BCFDDF4F8ADB2DF8312000848C52061 ();
// 0x00000069 System.Void ExitGames.Client.Photon.EnetPeer::ReceiveIncomingCommands(System.Byte[],System.Int32)
extern void EnetPeer_ReceiveIncomingCommands_m8BB814343BC4E3E74C33556D8E1B5FE3FC77736B ();
// 0x0000006A System.Void ExitGames.Client.Photon.EnetPeer::ExecuteCommand(ExitGames.Client.Photon.NCommand)
extern void EnetPeer_ExecuteCommand_mA4267429E4FBE573126FC3EE1ABCD7529E04354E ();
// 0x0000006B System.Boolean ExitGames.Client.Photon.EnetPeer::QueueIncomingCommand(ExitGames.Client.Photon.NCommand)
extern void EnetPeer_QueueIncomingCommand_m03C62C2F10C1FE67AC4EA23EB18064B7CD730836 ();
// 0x0000006C ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.EnetPeer::RemoveSentReliableCommand(System.Int32,System.Int32,System.Boolean)
extern void EnetPeer_RemoveSentReliableCommand_m6F3C7718D2355416EACDCE43F8359777E969559E ();
// 0x0000006D System.String ExitGames.Client.Photon.EnetPeer::CommandListToString(ExitGames.Client.Photon.NCommand[])
extern void EnetPeer_CommandListToString_mDADE088E60711E890EAC4354CB2018BBDCB82DCC ();
// 0x0000006E System.Void ExitGames.Client.Photon.EnetPeer::.cctor()
extern void EnetPeer__cctor_m7F71757E4C609B4C3E3EB44DB6D139461890BCCC ();
// 0x0000006F System.Void ExitGames.Client.Photon.EnetPeer::<ExecuteCommand>b__71_0()
extern void EnetPeer_U3CExecuteCommandU3Eb__71_0_m8E6E93BD41332A3678C8AAA70E96AA5AE083E1C7 ();
// 0x00000070 System.Void ExitGames.Client.Photon.IPhotonPeerListener::DebugReturn(ExitGames.Client.Photon.DebugLevel,System.String)
// 0x00000071 System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnOperationResponse(ExitGames.Client.Photon.OperationResponse)
// 0x00000072 System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnStatusChanged(ExitGames.Client.Photon.StatusCode)
// 0x00000073 System.Void ExitGames.Client.Photon.IPhotonPeerListener::OnEvent(ExitGames.Client.Photon.EventData)
// 0x00000074 ExitGames.Client.Photon.IPhotonPeerListener ExitGames.Client.Photon.IPhotonSocket::get_Listener()
extern void IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6 ();
// 0x00000075 System.Int32 ExitGames.Client.Photon.IPhotonSocket::get_MTU()
extern void IPhotonSocket_get_MTU_m4A7082931CA31AECD8B84C79E3E3FF513531FA41 ();
// 0x00000076 ExitGames.Client.Photon.PhotonSocketState ExitGames.Client.Photon.IPhotonSocket::get_State()
extern void IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E ();
// 0x00000077 System.Void ExitGames.Client.Photon.IPhotonSocket::set_State(ExitGames.Client.Photon.PhotonSocketState)
extern void IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11 ();
// 0x00000078 System.Boolean ExitGames.Client.Photon.IPhotonSocket::get_Connected()
extern void IPhotonSocket_get_Connected_m2100BD967AB992A5A1F6615ADA113840002D75A8 ();
// 0x00000079 System.String ExitGames.Client.Photon.IPhotonSocket::get_ServerAddress()
extern void IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747 ();
// 0x0000007A System.Void ExitGames.Client.Photon.IPhotonSocket::set_ServerAddress(System.String)
extern void IPhotonSocket_set_ServerAddress_m910219EE93B8B1D338F86AB111DC5B0DF22D1B96 ();
// 0x0000007B System.String ExitGames.Client.Photon.IPhotonSocket::get_ProxyServerAddress()
extern void IPhotonSocket_get_ProxyServerAddress_m4B9ABAF0B9BFF841F98D429D87887AC6DFCC7614 ();
// 0x0000007C System.Void ExitGames.Client.Photon.IPhotonSocket::set_ProxyServerAddress(System.String)
extern void IPhotonSocket_set_ProxyServerAddress_m4146894C487A638D1A8A632C3DAAD7F8FFCEE935 ();
// 0x0000007D System.String ExitGames.Client.Photon.IPhotonSocket::get_ServerIpAddress()
extern void IPhotonSocket_get_ServerIpAddress_m79A2F746CBD23C2B63DC39E96B0B364BC7975CCF ();
// 0x0000007E System.Void ExitGames.Client.Photon.IPhotonSocket::set_ServerIpAddress(System.String)
extern void IPhotonSocket_set_ServerIpAddress_mD56FCB7FA6FAC7730B4D57BB562A385CE0889DDA ();
// 0x0000007F System.Int32 ExitGames.Client.Photon.IPhotonSocket::get_ServerPort()
extern void IPhotonSocket_get_ServerPort_m85638BB2174A42FB9AB49E39E1F6D611E5F22028 ();
// 0x00000080 System.Void ExitGames.Client.Photon.IPhotonSocket::set_ServerPort(System.Int32)
extern void IPhotonSocket_set_ServerPort_m8D34A56176CBB75033CAE29FAF1E10C718060921 ();
// 0x00000081 System.Boolean ExitGames.Client.Photon.IPhotonSocket::get_AddressResolvedAsIpv6()
extern void IPhotonSocket_get_AddressResolvedAsIpv6_m9E51BB55907B17006C45C9C8F83E76A5471BA9F7 ();
// 0x00000082 System.Void ExitGames.Client.Photon.IPhotonSocket::set_AddressResolvedAsIpv6(System.Boolean)
extern void IPhotonSocket_set_AddressResolvedAsIpv6_m5559EAD414CCABA7CCE20F5DD1D20E858FDE81CC ();
// 0x00000083 System.String ExitGames.Client.Photon.IPhotonSocket::get_UrlProtocol()
extern void IPhotonSocket_get_UrlProtocol_mE2F1ADBB280203C2CB52B4158900CE0D43BF9999 ();
// 0x00000084 System.Void ExitGames.Client.Photon.IPhotonSocket::set_UrlProtocol(System.String)
extern void IPhotonSocket_set_UrlProtocol_m1303EEFDA395F2D4A16FDF3E624CB6771B794579 ();
// 0x00000085 System.String ExitGames.Client.Photon.IPhotonSocket::get_UrlPath()
extern void IPhotonSocket_get_UrlPath_mD27F536007991DF312947AF693B6F72FCACC4D42 ();
// 0x00000086 System.Void ExitGames.Client.Photon.IPhotonSocket::set_UrlPath(System.String)
extern void IPhotonSocket_set_UrlPath_m8AC858A3D2540BFA810F8850A6FD57744D42A6BB ();
// 0x00000087 System.String ExitGames.Client.Photon.IPhotonSocket::get_SerializationProtocol()
extern void IPhotonSocket_get_SerializationProtocol_m3A7A47D1F23FC2F33D6DB9CFA51C9A97CD6DCBD8 ();
// 0x00000088 System.Void ExitGames.Client.Photon.IPhotonSocket::.ctor(ExitGames.Client.Photon.PeerBase)
extern void IPhotonSocket__ctor_mA0C8A34D0778116D5C56115CA48E8B358DE8D2FA ();
// 0x00000089 System.Boolean ExitGames.Client.Photon.IPhotonSocket::Connect()
extern void IPhotonSocket_Connect_m87EF7FD57AECBD32EE16AB4D98F5D09224779ED1 ();
// 0x0000008A System.Boolean ExitGames.Client.Photon.IPhotonSocket::Disconnect()
// 0x0000008B ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.IPhotonSocket::Send(System.Byte[],System.Int32)
// 0x0000008C ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.IPhotonSocket::Receive(System.Byte[]&)
// 0x0000008D System.Void ExitGames.Client.Photon.IPhotonSocket::HandleReceivedDatagram(System.Byte[],System.Int32,System.Boolean)
extern void IPhotonSocket_HandleReceivedDatagram_m54B1ADEC42A1B461E5DC1F9BF30EE03186E842B3 ();
// 0x0000008E System.Boolean ExitGames.Client.Photon.IPhotonSocket::ReportDebugOfLevel(ExitGames.Client.Photon.DebugLevel)
extern void IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6 ();
// 0x0000008F System.Void ExitGames.Client.Photon.IPhotonSocket::EnqueueDebugReturn(ExitGames.Client.Photon.DebugLevel,System.String)
extern void IPhotonSocket_EnqueueDebugReturn_m10CCC336C219196818A745EAD556E48343B03D6D ();
// 0x00000090 System.Void ExitGames.Client.Photon.IPhotonSocket::HandleException(ExitGames.Client.Photon.StatusCode)
extern void IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9 ();
// 0x00000091 System.Boolean ExitGames.Client.Photon.IPhotonSocket::TryParseAddress(System.String,System.String&,System.UInt16&,System.String&,System.String&)
extern void IPhotonSocket_TryParseAddress_m6FB93C254D1ACC2B0B95154922737520E52157B9 ();
// 0x00000092 System.Boolean ExitGames.Client.Photon.IPhotonSocket::IsIpv6SimpleCheck(System.Net.IPAddress)
extern void IPhotonSocket_IsIpv6SimpleCheck_m6C914095D0CB565453BBEAD82DE86A267BFA13EA ();
// 0x00000093 System.Net.IPAddress[] ExitGames.Client.Photon.IPhotonSocket::GetIpAddresses(System.String)
extern void IPhotonSocket_GetIpAddresses_m61AABD40D40A4356832DFC1081B93137C1E79A91 ();
// 0x00000094 System.Int32 ExitGames.Client.Photon.IPhotonSocket::AddressSortComparer(System.Net.IPAddress,System.Net.IPAddress)
extern void IPhotonSocket_AddressSortComparer_m7482CAC35B0B24118575F9C891F59D153C0353BD ();
// 0x00000095 System.Net.IPAddress ExitGames.Client.Photon.IPhotonSocket::GetIpAddress(System.String)
extern void IPhotonSocket_GetIpAddress_mE1B0A2232289A97B44E4A69A57AF9E27A238D693 ();
// 0x00000096 System.Void ExitGames.Client.Photon.IPhotonSocket::<HandleException>b__52_0()
extern void IPhotonSocket_U3CHandleExceptionU3Eb__52_0_mC17D74E115230DB1A70683B84DEDD46E3C18EC08 ();
// 0x00000097 System.Void ExitGames.Client.Photon.IPhotonSocket_<>c::.cctor()
extern void U3CU3Ec__cctor_mE82B95F0B5A1E441E576F4F9079D500B23644787 ();
// 0x00000098 System.Void ExitGames.Client.Photon.IPhotonSocket_<>c::.ctor()
extern void U3CU3Ec__ctor_mC25E02861ADF7DAF4315CE385BC013509C78CFC5 ();
// 0x00000099 System.String ExitGames.Client.Photon.IPhotonSocket_<>c::<GetIpAddresses>b__55_0(System.Net.IPAddress)
extern void U3CU3Ec_U3CGetIpAddressesU3Eb__55_0_m675CE9AAA55E9C4C3274D6C4BE587DB6ABC627BF ();
// 0x0000009A ExitGames.Client.Photon.IProtocol ExitGames.Client.Photon.SerializationProtocolFactory::Create(ExitGames.Client.Photon.SerializationProtocol)
extern void SerializationProtocolFactory_Create_m81A2278DAB7B4C3425885D61FA945B49CB14047E ();
// 0x0000009B System.String ExitGames.Client.Photon.IProtocol::get_ProtocolType()
// 0x0000009C System.Byte[] ExitGames.Client.Photon.IProtocol::get_VersionBytes()
// 0x0000009D System.Void ExitGames.Client.Photon.IProtocol::Serialize(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
// 0x0000009E System.Void ExitGames.Client.Photon.IProtocol::SerializeShort(ExitGames.Client.Photon.StreamBuffer,System.Int16,System.Boolean)
// 0x0000009F System.Void ExitGames.Client.Photon.IProtocol::SerializeString(ExitGames.Client.Photon.StreamBuffer,System.String,System.Boolean)
// 0x000000A0 System.Void ExitGames.Client.Photon.IProtocol::SerializeEventData(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.EventData,System.Boolean)
// 0x000000A1 System.Void ExitGames.Client.Photon.IProtocol::SerializeOperationRequest(ExitGames.Client.Photon.StreamBuffer,System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Boolean)
// 0x000000A2 System.Void ExitGames.Client.Photon.IProtocol::SerializeOperationResponse(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.OperationResponse,System.Boolean)
// 0x000000A3 System.Object ExitGames.Client.Photon.IProtocol::Deserialize(ExitGames.Client.Photon.StreamBuffer,System.Byte)
// 0x000000A4 System.Int16 ExitGames.Client.Photon.IProtocol::DeserializeShort(ExitGames.Client.Photon.StreamBuffer)
// 0x000000A5 System.Byte ExitGames.Client.Photon.IProtocol::DeserializeByte(ExitGames.Client.Photon.StreamBuffer)
// 0x000000A6 ExitGames.Client.Photon.EventData ExitGames.Client.Photon.IProtocol::DeserializeEventData(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.EventData,ExitGames.Client.Photon.IProtocol_DeserializationFlags)
// 0x000000A7 ExitGames.Client.Photon.OperationRequest ExitGames.Client.Photon.IProtocol::DeserializeOperationRequest(ExitGames.Client.Photon.StreamBuffer)
// 0x000000A8 ExitGames.Client.Photon.OperationResponse ExitGames.Client.Photon.IProtocol::DeserializeOperationResponse(ExitGames.Client.Photon.StreamBuffer)
// 0x000000A9 System.Byte[] ExitGames.Client.Photon.IProtocol::Serialize(System.Object)
extern void IProtocol_Serialize_m88A3DBA9A1AFB5FC698AA219360674FBC93D8DE8 ();
// 0x000000AA System.Object ExitGames.Client.Photon.IProtocol::Deserialize(ExitGames.Client.Photon.StreamBuffer)
extern void IProtocol_Deserialize_mDE256CB90E15142A3806F3A506D3EA945209FA9C ();
// 0x000000AB System.Object ExitGames.Client.Photon.IProtocol::Deserialize(System.Byte[])
extern void IProtocol_Deserialize_m75C4B14D3CCD63AAA14DA330127678BFE0BABD94 ();
// 0x000000AC System.Object ExitGames.Client.Photon.IProtocol::DeserializeMessage(ExitGames.Client.Photon.StreamBuffer)
extern void IProtocol_DeserializeMessage_mF8A3E752E36571F1278B21F3611B3A36937C1C5F ();
// 0x000000AD System.Void ExitGames.Client.Photon.IProtocol::SerializeMessage(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void IProtocol_SerializeMessage_mC6FC08978EEC99E80126B0BBF8C2D0EF4A299F1D ();
// 0x000000AE System.Void ExitGames.Client.Photon.IProtocol::.ctor()
extern void IProtocol__ctor_mB60EDFD639F566BC8608E89E48E0EEBF80FBD5C3 ();
// 0x000000AF System.Boolean ExitGames.Client.Photon.ITrafficRecorder::get_Enabled()
// 0x000000B0 System.Void ExitGames.Client.Photon.ITrafficRecorder::set_Enabled(System.Boolean)
// 0x000000B1 System.Void ExitGames.Client.Photon.ITrafficRecorder::Record(System.Byte[],System.Int32,System.Boolean,System.Int16,ExitGames.Client.Photon.IPhotonSocket)
// 0x000000B2 ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.NCommandPool::Acquire(ExitGames.Client.Photon.EnetPeer,System.Byte[],System.Int32&)
extern void NCommandPool_Acquire_mA22F115BF03D2EDCB6F54267ACC0998904908E2A ();
// 0x000000B3 ExitGames.Client.Photon.NCommand ExitGames.Client.Photon.NCommandPool::Acquire(ExitGames.Client.Photon.EnetPeer,System.Byte,ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void NCommandPool_Acquire_m056926F3E179AD75306314AFB862471FA4615E4F ();
// 0x000000B4 System.Void ExitGames.Client.Photon.NCommandPool::Release(ExitGames.Client.Photon.NCommand)
extern void NCommandPool_Release_m7019F077C8B88253AA50CFFBFACD8C0C4608ECB3 ();
// 0x000000B5 System.Void ExitGames.Client.Photon.NCommandPool::.ctor()
extern void NCommandPool__ctor_mF71B31E3E8DF147037F08F9A3333653C15AF2CA5 ();
// 0x000000B6 System.Int32 ExitGames.Client.Photon.NCommand::get_SizeOfPayload()
extern void NCommand_get_SizeOfPayload_m3579C4DB08C12F77910132687FEEFEE63A5F4B53 ();
// 0x000000B7 System.Boolean ExitGames.Client.Photon.NCommand::get_IsFlaggedUnsequenced()
extern void NCommand_get_IsFlaggedUnsequenced_m2C13DB5D0064728D5D5611C426E192107E4F0E1E ();
// 0x000000B8 System.Boolean ExitGames.Client.Photon.NCommand::get_IsFlaggedReliable()
extern void NCommand_get_IsFlaggedReliable_m1CA90C8937BCF88EB7E6827F7913B070457DB60A ();
// 0x000000B9 System.Void ExitGames.Client.Photon.NCommand::CreateAck(System.Byte[],System.Int32,ExitGames.Client.Photon.NCommand,System.Int32)
extern void NCommand_CreateAck_mD72A9F36B0182AC15AA28F13E101CC1CB9C850D4 ();
// 0x000000BA System.Void ExitGames.Client.Photon.NCommand::.ctor(ExitGames.Client.Photon.EnetPeer,System.Byte,ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void NCommand__ctor_m5C2C47E385931D12763F4608399F4DCB5C329F28 ();
// 0x000000BB System.Void ExitGames.Client.Photon.NCommand::Initialize(ExitGames.Client.Photon.EnetPeer,System.Byte,ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void NCommand_Initialize_mD49A5EF94AB03D140C269DA625F1ED7892ED2BDB ();
// 0x000000BC System.Void ExitGames.Client.Photon.NCommand::.ctor(ExitGames.Client.Photon.EnetPeer,System.Byte[],System.Int32&)
extern void NCommand__ctor_m7F3A49C81C365042594644C5DD3D608A092C4948 ();
// 0x000000BD System.Void ExitGames.Client.Photon.NCommand::Initialize(ExitGames.Client.Photon.EnetPeer,System.Byte[],System.Int32&)
extern void NCommand_Initialize_m9AF4245A7232201CD54A406ED0BA938B36A92D16 ();
// 0x000000BE System.Void ExitGames.Client.Photon.NCommand::Reset()
extern void NCommand_Reset_mE828C4807B8BD9FDC8006B98EA1D7EA323B02483 ();
// 0x000000BF System.Void ExitGames.Client.Photon.NCommand::SerializeHeader(System.Byte[],System.Int32&)
extern void NCommand_SerializeHeader_m2D7BCF1134E0F7162325A8815F47CA0BFF9606B5 ();
// 0x000000C0 System.Byte[] ExitGames.Client.Photon.NCommand::Serialize()
extern void NCommand_Serialize_mE7DD5290256807852564D37BB5DC3FE76E38F0FC ();
// 0x000000C1 System.Void ExitGames.Client.Photon.NCommand::FreePayload()
extern void NCommand_FreePayload_m115D59A29F73886F38A8102F0A7D95E8DAC5B6AC ();
// 0x000000C2 System.Void ExitGames.Client.Photon.NCommand::Release()
extern void NCommand_Release_m2F887C8D46366554ED6F6FFBF909E03B1291C10A ();
// 0x000000C3 System.Int32 ExitGames.Client.Photon.NCommand::CompareTo(ExitGames.Client.Photon.NCommand)
extern void NCommand_CompareTo_mDDDDBF9C2CA21486DA72BCF5B74E266B6674EACA ();
// 0x000000C4 System.String ExitGames.Client.Photon.NCommand::ToString()
extern void NCommand_ToString_m3A5ACEB6D05DF43C2B049F276FAFA245BC346271 ();
// 0x000000C5 System.Void ExitGames.Client.Photon.SimulationItem::.ctor()
extern void SimulationItem__ctor_m5D3FD6FEEF16B74EAD6322AD1E1CDE0BB2085BAD ();
// 0x000000C6 System.Int32 ExitGames.Client.Photon.SimulationItem::get_Delay()
extern void SimulationItem_get_Delay_m5376867812C013A5CA033B8E574B6A9487D2E685 ();
// 0x000000C7 System.Void ExitGames.Client.Photon.SimulationItem::set_Delay(System.Int32)
extern void SimulationItem_set_Delay_mC10793D871C6B86C8A822741E1C173338291990F ();
// 0x000000C8 System.Boolean ExitGames.Client.Photon.NetworkSimulationSet::get_IsSimulationEnabled()
extern void NetworkSimulationSet_get_IsSimulationEnabled_mDD9673C5601FB3064E12D0A6ED8E7F55CC5CC2D1 ();
// 0x000000C9 System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_IsSimulationEnabled(System.Boolean)
extern void NetworkSimulationSet_set_IsSimulationEnabled_m76735FA574DF0C45E946654BEEBD3F41096959E9 ();
// 0x000000CA System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_OutgoingLag()
extern void NetworkSimulationSet_get_OutgoingLag_m83BD7EA55FE917BB1D4C71AA8C8E05C0C93312C1 ();
// 0x000000CB System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_OutgoingLag(System.Int32)
extern void NetworkSimulationSet_set_OutgoingLag_m84F6F909B2D44A59CD63AC59F860F2468810643F ();
// 0x000000CC System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_OutgoingJitter()
extern void NetworkSimulationSet_get_OutgoingJitter_m217568A77F0F9A23635E24187035432B1EDB6AE7 ();
// 0x000000CD System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_OutgoingJitter(System.Int32)
extern void NetworkSimulationSet_set_OutgoingJitter_m6E1416F2FC6D47797832DC77D27E2E339406C445 ();
// 0x000000CE System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_OutgoingLossPercentage()
extern void NetworkSimulationSet_get_OutgoingLossPercentage_mA6475ADF8C8A6FEC7584726E8B3AC8C455A04A3B ();
// 0x000000CF System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_OutgoingLossPercentage(System.Int32)
extern void NetworkSimulationSet_set_OutgoingLossPercentage_m919E702F8C715B64C08B18CCB1367D371FE56389 ();
// 0x000000D0 System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_IncomingLag()
extern void NetworkSimulationSet_get_IncomingLag_m3DB208BC5BB74E70269CBFAAF5579DC82E62C0E3 ();
// 0x000000D1 System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_IncomingLag(System.Int32)
extern void NetworkSimulationSet_set_IncomingLag_m38BA12EB24CCEFF3F58B2DEE11A13C1783FE897B ();
// 0x000000D2 System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_IncomingJitter()
extern void NetworkSimulationSet_get_IncomingJitter_mDFD09557782CE61FD39A0253B7D96587F8E3CC0A ();
// 0x000000D3 System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_IncomingJitter(System.Int32)
extern void NetworkSimulationSet_set_IncomingJitter_m05B6A9547AB9ADBEA9D9B802AE110A14A74D2900 ();
// 0x000000D4 System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_IncomingLossPercentage()
extern void NetworkSimulationSet_get_IncomingLossPercentage_m1BCD7487EB2BDC6C9D7BE19A3F43E10673FF31D0 ();
// 0x000000D5 System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_IncomingLossPercentage(System.Int32)
extern void NetworkSimulationSet_set_IncomingLossPercentage_m1FF2FCF262C111F1F16164283622A13F880BBF8C ();
// 0x000000D6 System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_LostPackagesOut()
extern void NetworkSimulationSet_get_LostPackagesOut_m7C7C3DC00BAC826D1BB69534365D9E7202694134 ();
// 0x000000D7 System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_LostPackagesOut(System.Int32)
extern void NetworkSimulationSet_set_LostPackagesOut_mD443A4EF8BC35A96EB9CB582042DDEB3F8E1FC18 ();
// 0x000000D8 System.Int32 ExitGames.Client.Photon.NetworkSimulationSet::get_LostPackagesIn()
extern void NetworkSimulationSet_get_LostPackagesIn_mC670F974762FD7E86029CD633DEF11523E072A9E ();
// 0x000000D9 System.Void ExitGames.Client.Photon.NetworkSimulationSet::set_LostPackagesIn(System.Int32)
extern void NetworkSimulationSet_set_LostPackagesIn_m8446110A8BA489F40250D4C706D780380D63ECBF ();
// 0x000000DA System.String ExitGames.Client.Photon.NetworkSimulationSet::ToString()
extern void NetworkSimulationSet_ToString_m75A504A861930F52B3FF8881CE795CCBB4C3CF24 ();
// 0x000000DB System.Void ExitGames.Client.Photon.NetworkSimulationSet::.ctor()
extern void NetworkSimulationSet__ctor_m5090052A6A1E2A48FDA620D080B034948C0FBB91 ();
// 0x000000DC System.Void ExitGames.Client.Photon.PhotonCodes::.cctor()
extern void PhotonCodes__cctor_mF7D908884DE70390B584ECA99CADA5D89C7ACF64 ();
// 0x000000DD System.Type ExitGames.Client.Photon.PeerBase::get_SocketImplementation()
extern void PeerBase_get_SocketImplementation_m6344139D00050B3B1A65798CC3699F732F566384 ();
// 0x000000DE System.String ExitGames.Client.Photon.PeerBase::get_ServerAddress()
extern void PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0 ();
// 0x000000DF System.Void ExitGames.Client.Photon.PeerBase::set_ServerAddress(System.String)
extern void PeerBase_set_ServerAddress_mD01CBD300E8005A193FA30A6EEBD78010B99036B ();
// 0x000000E0 System.String ExitGames.Client.Photon.PeerBase::get_ProxyServerAddress()
extern void PeerBase_get_ProxyServerAddress_m76AD45B35868F032332F04279DA0A01001C827E2 ();
// 0x000000E1 System.Void ExitGames.Client.Photon.PeerBase::set_ProxyServerAddress(System.String)
extern void PeerBase_set_ProxyServerAddress_mB5F65528B1184E8DB02D6F8F51BB588348C0C5A7 ();
// 0x000000E2 ExitGames.Client.Photon.IPhotonPeerListener ExitGames.Client.Photon.PeerBase::get_Listener()
extern void PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990 ();
// 0x000000E3 ExitGames.Client.Photon.DebugLevel ExitGames.Client.Photon.PeerBase::get_debugOut()
extern void PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9 ();
// 0x000000E4 System.Int32 ExitGames.Client.Photon.PeerBase::get_DisconnectTimeout()
extern void PeerBase_get_DisconnectTimeout_m52D7CF5CC40D7DE41E8A7511509E158404789142 ();
// 0x000000E5 System.Int32 ExitGames.Client.Photon.PeerBase::get_timePingInterval()
extern void PeerBase_get_timePingInterval_m992C0AD6F00F3E6BC0B9EE5619A19AEE0E21EFC8 ();
// 0x000000E6 System.Byte ExitGames.Client.Photon.PeerBase::get_ChannelCount()
extern void PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63 ();
// 0x000000E7 System.Int64 ExitGames.Client.Photon.PeerBase::get_BytesOut()
extern void PeerBase_get_BytesOut_mA7CE264D40A2CAC581E490A05228D756222D9393 ();
// 0x000000E8 System.Int64 ExitGames.Client.Photon.PeerBase::get_BytesIn()
extern void PeerBase_get_BytesIn_mE0E0CCFBECEA5F8B0FFB24E05B802816414130C4 ();
// 0x000000E9 System.Int32 ExitGames.Client.Photon.PeerBase::get_QueuedIncomingCommandsCount()
// 0x000000EA System.Int32 ExitGames.Client.Photon.PeerBase::get_QueuedOutgoingCommandsCount()
// 0x000000EB System.Int32 ExitGames.Client.Photon.PeerBase::get_SentReliableCommandsCount()
extern void PeerBase_get_SentReliableCommandsCount_mFB85FDAF05F26732E63BB3E52C7CB666520FF4EF ();
// 0x000000EC System.String ExitGames.Client.Photon.PeerBase::get_PeerID()
extern void PeerBase_get_PeerID_mD30021C57242AD0368BF72C97BD5CC25924B8FBF ();
// 0x000000ED System.Int32 ExitGames.Client.Photon.PeerBase::get_timeInt()
extern void PeerBase_get_timeInt_m13898C3E7147372B2237260DE7E57F9675927883 ();
// 0x000000EE System.Int32 ExitGames.Client.Photon.PeerBase::get_outgoingStreamBufferSize()
extern void PeerBase_get_outgoingStreamBufferSize_m99EC05A90403472328672BAB0AFBB3D09C5DD354 ();
// 0x000000EF System.Boolean ExitGames.Client.Photon.PeerBase::get_IsSendingOnlyAcks()
extern void PeerBase_get_IsSendingOnlyAcks_m042A711C7D1276FEB1685BBDB2A2C6AD9D78F05D ();
// 0x000000F0 System.Int32 ExitGames.Client.Photon.PeerBase::get_mtu()
extern void PeerBase_get_mtu_mDFB98B8FCCD0918A88905377275FBF7CD1F6B6DB ();
// 0x000000F1 System.Boolean ExitGames.Client.Photon.PeerBase::get_IsIpv6()
extern void PeerBase_get_IsIpv6_m43B22F85421E99DE73EE5F33FF6497685E3D74F6 ();
// 0x000000F2 System.Void ExitGames.Client.Photon.PeerBase::.ctor()
extern void PeerBase__ctor_m9CC65137693C6926711A1C9917A18368B76E33D9 ();
// 0x000000F3 ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::MessageBufferPoolGet()
extern void PeerBase_MessageBufferPoolGet_m06DF85A20CD278D7BF90AF33590DCEA7FCAC3F1D ();
// 0x000000F4 System.Void ExitGames.Client.Photon.PeerBase::MessageBufferPoolPut(ExitGames.Client.Photon.StreamBuffer)
extern void PeerBase_MessageBufferPoolPut_mE4A6CE10E420E2EFA635BF9CE5A9950BD5DA6618 ();
// 0x000000F5 System.Void ExitGames.Client.Photon.PeerBase::InitPeerBase()
extern void PeerBase_InitPeerBase_m9D9F192FA22FC5B7A759F4BA433CBBD09F1C91C4 ();
// 0x000000F6 System.Boolean ExitGames.Client.Photon.PeerBase::Connect(System.String,System.String,System.Object)
// 0x000000F7 System.Boolean ExitGames.Client.Photon.PeerBase::Connect(System.String,System.String,System.String,System.Object)
// 0x000000F8 System.String ExitGames.Client.Photon.PeerBase::GetHttpKeyValueString(System.Collections.Generic.Dictionary`2<System.String,System.String>)
extern void PeerBase_GetHttpKeyValueString_m9A5A73CE4D3C39B993D0C0E23CCF698135542745 ();
// 0x000000F9 System.Byte[] ExitGames.Client.Photon.PeerBase::PrepareConnectData(System.String,System.String,System.Object)
extern void PeerBase_PrepareConnectData_m1EC98A6E30BCD49987849E838D064AA378613564 ();
// 0x000000FA System.String ExitGames.Client.Photon.PeerBase::PepareWebSocketUrl(System.String,System.String,System.Object)
extern void PeerBase_PepareWebSocketUrl_m0F28107ABDED0654941BF1CC60FE68E54C9AA885 ();
// 0x000000FB System.Void ExitGames.Client.Photon.PeerBase::OnConnect()
// 0x000000FC System.Void ExitGames.Client.Photon.PeerBase::InitCallback()
extern void PeerBase_InitCallback_mE5B4349195DCAB48D832F0816F5327C420B24D1E ();
// 0x000000FD System.Void ExitGames.Client.Photon.PeerBase::Disconnect()
// 0x000000FE System.Void ExitGames.Client.Photon.PeerBase::StopConnection()
// 0x000000FF System.Void ExitGames.Client.Photon.PeerBase::FetchServerTimestamp()
// 0x00000100 System.Boolean ExitGames.Client.Photon.PeerBase::EnqueueOperation(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Byte,ExitGames.Client.Photon.SendOptions,ExitGames.Client.Photon.EgMessageType)
// 0x00000101 ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::SerializeOperationToMessage(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.EgMessageType,System.Boolean)
// 0x00000102 System.Boolean ExitGames.Client.Photon.PeerBase::EnqueueMessage(System.Object,ExitGames.Client.Photon.SendOptions)
// 0x00000103 ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.PeerBase::SerializeMessageToMessage(System.Object,System.Boolean,System.Byte[],System.Boolean)
extern void PeerBase_SerializeMessageToMessage_m95614478AF9C86205FB5CA05677802E36B9F1A39 ();
// 0x00000104 System.Boolean ExitGames.Client.Photon.PeerBase::SendOutgoingCommands()
// 0x00000105 System.Boolean ExitGames.Client.Photon.PeerBase::SendAcksOnly()
extern void PeerBase_SendAcksOnly_m889177BB3EE63AA60021F0EA5732B2BE150EF0EE ();
// 0x00000106 System.Void ExitGames.Client.Photon.PeerBase::ReceiveIncomingCommands(System.Byte[],System.Int32)
// 0x00000107 System.Boolean ExitGames.Client.Photon.PeerBase::DispatchIncomingCommands()
// 0x00000108 System.Boolean ExitGames.Client.Photon.PeerBase::DeserializeMessageAndCallback(ExitGames.Client.Photon.StreamBuffer)
extern void PeerBase_DeserializeMessageAndCallback_mAC40FBFAD90716B173F36BB281B3A71E7A19009E ();
// 0x00000109 System.Void ExitGames.Client.Photon.PeerBase::UpdateRoundTripTimeAndVariance(System.Int32)
extern void PeerBase_UpdateRoundTripTimeAndVariance_mDBDA944DE4B3798D2B570B5780A60520F1BBF5F7 ();
// 0x0000010A System.Boolean ExitGames.Client.Photon.PeerBase::ExchangeKeysForEncryption(System.Object)
extern void PeerBase_ExchangeKeysForEncryption_mF1CCA843E3E876C8C8BB82BEB7770134C45EC606 ();
// 0x0000010B System.Void ExitGames.Client.Photon.PeerBase::DeriveSharedKey(ExitGames.Client.Photon.OperationResponse)
extern void PeerBase_DeriveSharedKey_m<KEY> ();
// 0x0000010C System.Void ExitGames.Client.Photon.PeerBase::InitEncryption(System.Byte[])
extern void PeerBase_InitEncryption_mC3D616A81D530496AA1EDE69B6C0FDD0DED8A113 ();
// 0x0000010D System.Void ExitGames.Client.Photon.PeerBase::EnqueueActionForDispatch(ExitGames.Client.Photon.PeerBase_MyAction)
extern void PeerBase_EnqueueActionForDispatch_m63FEA39A8E22952E05481D38672C9780E1853132 ();
// 0x0000010E System.Void ExitGames.Client.Photon.PeerBase::EnqueueDebugReturn(ExitGames.Client.Photon.DebugLevel,System.String)
extern void PeerBase_EnqueueDebugReturn_mC20714873CBA559EEE723AB0989EF4AE9660D117 ();
// 0x0000010F System.Void ExitGames.Client.Photon.PeerBase::EnqueueStatusCallback(ExitGames.Client.Photon.StatusCode)
extern void PeerBase_EnqueueStatusCallback_m65E16421DDFD3F092A19EFA87BBDD899203718BA ();
// 0x00000110 ExitGames.Client.Photon.NetworkSimulationSet ExitGames.Client.Photon.PeerBase::get_NetworkSimulationSettings()
extern void PeerBase_get_NetworkSimulationSettings_mBF3D4BC27DE78A657A6D93E08ACCA656BEB34B39 ();
// 0x00000111 System.Void ExitGames.Client.Photon.PeerBase::SendNetworkSimulated(System.Byte[])
extern void PeerBase_SendNetworkSimulated_m32C7A78D580D063BE86713AB7D7F61C23E122123 ();
// 0x00000112 System.Void ExitGames.Client.Photon.PeerBase::ReceiveNetworkSimulated(System.Byte[])
extern void PeerBase_ReceiveNetworkSimulated_m84BA271CB88995FB4CD66A60A4683EF673B2CF11 ();
// 0x00000113 System.Void ExitGames.Client.Photon.PeerBase::NetworkSimRun()
extern void PeerBase_NetworkSimRun_m1B88FDF35F60368A4A932DB3C970210336E6AFEC ();
// 0x00000114 System.Boolean ExitGames.Client.Photon.PeerBase::get_TrafficStatsEnabled()
extern void PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B ();
// 0x00000115 ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PeerBase::get_TrafficStatsIncoming()
extern void PeerBase_get_TrafficStatsIncoming_m8373A3797B073192282A57B1588732DF84F8249D ();
// 0x00000116 ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PeerBase::get_TrafficStatsOutgoing()
extern void PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5 ();
// 0x00000117 ExitGames.Client.Photon.TrafficStatsGameLevel ExitGames.Client.Photon.PeerBase::get_TrafficStatsGameLevel()
extern void PeerBase_get_TrafficStatsGameLevel_mA5990EFE2FEF80C8BC5EA77B02FD91FF6AA9B6BD ();
// 0x00000118 System.Void ExitGames.Client.Photon.PeerBase::.cctor()
extern void PeerBase__cctor_m91BEE062CE1715BF17813B8DF0164D93454617E4 ();
// 0x00000119 System.Void ExitGames.Client.Photon.PeerBase_MyAction::.ctor(System.Object,System.IntPtr)
extern void MyAction__ctor_m2881F84D663A6400E5606F80D96255E2CF16E735 ();
// 0x0000011A System.Void ExitGames.Client.Photon.PeerBase_MyAction::Invoke()
extern void MyAction_Invoke_m24D676BF96D5136153897A729905C57A84D5D139 ();
// 0x0000011B System.IAsyncResult ExitGames.Client.Photon.PeerBase_MyAction::BeginInvoke(System.AsyncCallback,System.Object)
extern void MyAction_BeginInvoke_m1348807BFBF007E48DECB841540BB377FE9B20F3 ();
// 0x0000011C System.Void ExitGames.Client.Photon.PeerBase_MyAction::EndInvoke(System.IAsyncResult)
extern void MyAction_EndInvoke_mF76192B8DBA26AC06399572CA3E4A41BED920867 ();
// 0x0000011D System.Void ExitGames.Client.Photon.PeerBase_<>c__DisplayClass109_0::.ctor()
extern void U3CU3Ec__DisplayClass109_0__ctor_m4CCDB86F979C37BD7E4B18354F0281C15175D001 ();
// 0x0000011E System.Void ExitGames.Client.Photon.PeerBase_<>c__DisplayClass109_0::<EnqueueDebugReturn>b__0()
extern void U3CU3Ec__DisplayClass109_0_U3CEnqueueDebugReturnU3Eb__0_m968FEF0A71DD42377DD0F844749F5540B6124A6A ();
// 0x0000011F System.Void ExitGames.Client.Photon.PeerBase_<>c__DisplayClass110_0::.ctor()
extern void U3CU3Ec__DisplayClass110_0__ctor_m51F72F1FD2267BFB9EEB22260E1E7FB3E88C13E3 ();
// 0x00000120 System.Void ExitGames.Client.Photon.PeerBase_<>c__DisplayClass110_0::<EnqueueStatusCallback>b__0()
extern void U3CU3Ec__DisplayClass110_0_U3CEnqueueStatusCallbackU3Eb__0_m36FFFD3B362F10B5739DFA833E1A803959966B5B ();
// 0x00000121 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_CommandBufferSize()
extern void PhotonPeer_get_CommandBufferSize_m457378387A2D6869A7F76C7C58F9EBF26532E4A9 ();
// 0x00000122 System.Void ExitGames.Client.Photon.PhotonPeer::set_CommandBufferSize(System.Int32)
extern void PhotonPeer_set_CommandBufferSize_mC0D5FDA0ACCECBFBCC587885A512BC7C5732D242 ();
// 0x00000123 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_LimitOfUnreliableCommands()
extern void PhotonPeer_get_LimitOfUnreliableCommands_m1D7AF528C96653ED659D29E5ADEADA87C4214851 ();
// 0x00000124 System.Void ExitGames.Client.Photon.PhotonPeer::set_LimitOfUnreliableCommands(System.Int32)
extern void PhotonPeer_set_LimitOfUnreliableCommands_m25150333C2DF59EAD4F958ECE4F1C287A3DA188C ();
// 0x00000125 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_LocalTimeInMilliSeconds()
extern void PhotonPeer_get_LocalTimeInMilliSeconds_m64630C30507CFA734C3C5EC56F201820C75927B8 ();
// 0x00000126 System.Byte ExitGames.Client.Photon.PhotonPeer::get_ClientSdkIdShifted()
extern void PhotonPeer_get_ClientSdkIdShifted_m09BEE272264D9B98888687B174B31C36E73E177F ();
// 0x00000127 System.String ExitGames.Client.Photon.PhotonPeer::get_ClientVersion()
extern void PhotonPeer_get_ClientVersion_mD6A08DFE8AC2A1C8952A127897E9000D5C291BB0 ();
// 0x00000128 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_NativeSocketLibAvailable()
extern void PhotonPeer_get_NativeSocketLibAvailable_m396FCDE557FA64E5A02BE6F665995BED29E1BD24 ();
// 0x00000129 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_NativePayloadEncryptionLibAvailable()
extern void PhotonPeer_get_NativePayloadEncryptionLibAvailable_mCC43A858BEE6C068FA437C7EB7F3C1B146FDD3AD ();
// 0x0000012A System.Boolean ExitGames.Client.Photon.PhotonPeer::get_NativeDatagramEncryptionLibAvailable()
extern void PhotonPeer_get_NativeDatagramEncryptionLibAvailable_m356F5F23CFD46BF4FC737139A41DDF835C608B05 ();
// 0x0000012B System.Void ExitGames.Client.Photon.PhotonPeer::CheckNativeLibsAvailability()
extern void PhotonPeer_CheckNativeLibsAvailability_m057855E1A3CBCA669D1D0AD0CF2AEB05C1991B9A ();
// 0x0000012C ExitGames.Client.Photon.SerializationProtocol ExitGames.Client.Photon.PhotonPeer::get_SerializationProtocolType()
extern void PhotonPeer_get_SerializationProtocolType_m2CA7B583D8D00F08769D798690B09C8B659C9DC2 ();
// 0x0000012D System.Void ExitGames.Client.Photon.PhotonPeer::set_SerializationProtocolType(ExitGames.Client.Photon.SerializationProtocol)
extern void PhotonPeer_set_SerializationProtocolType_m7A98D79EA4761AB64079379722D7B777166F83EB ();
// 0x0000012E System.Type ExitGames.Client.Photon.PhotonPeer::get_SocketImplementation()
extern void PhotonPeer_get_SocketImplementation_mB3E4638FB4885B0ED15F1F36318F27976F526FD0 ();
// 0x0000012F System.Void ExitGames.Client.Photon.PhotonPeer::set_SocketImplementation(System.Type)
extern void PhotonPeer_set_SocketImplementation_mA99B22BCD308CE8C531CE72F4E05DD3E51CAA1D2 ();
// 0x00000130 ExitGames.Client.Photon.IPhotonPeerListener ExitGames.Client.Photon.PhotonPeer::get_Listener()
extern void PhotonPeer_get_Listener_mF46CC6C50E2FEC1BBB914820258458CE6A21C65A ();
// 0x00000131 System.Void ExitGames.Client.Photon.PhotonPeer::set_Listener(ExitGames.Client.Photon.IPhotonPeerListener)
extern void PhotonPeer_set_Listener_m23909AB351D7D365A173FDDDF5EE56E867D732CB ();
// 0x00000132 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_ReuseEventInstance()
extern void PhotonPeer_get_ReuseEventInstance_m5EF7E976AE04245028C6380FE889B0DCB8181E3B ();
// 0x00000133 System.Void ExitGames.Client.Photon.PhotonPeer::set_ReuseEventInstance(System.Boolean)
extern void PhotonPeer_set_ReuseEventInstance_mA8AFFCA51F3FA9BEC4072465374AB903DF1F9EB8 ();
// 0x00000134 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_UseByteArraySlicePoolForEvents()
extern void PhotonPeer_get_UseByteArraySlicePoolForEvents_mB8124D9C27F54D94A765D9DBB3921539652CA76B ();
// 0x00000135 System.Void ExitGames.Client.Photon.PhotonPeer::set_UseByteArraySlicePoolForEvents(System.Boolean)
extern void PhotonPeer_set_UseByteArraySlicePoolForEvents_m5C61457E471E533B0C0FB3289DA758912701A523 ();
// 0x00000136 ExitGames.Client.Photon.ByteArraySlicePool ExitGames.Client.Photon.PhotonPeer::get_ByteArraySlicePool()
extern void PhotonPeer_get_ByteArraySlicePool_m12D540BC6B723DAE5459069D5C63740D79D91CD8 ();
// 0x00000137 System.Int64 ExitGames.Client.Photon.PhotonPeer::get_BytesIn()
extern void PhotonPeer_get_BytesIn_m5DFEC51A5C122E8A87011CF3826DE9AD7BB2358F ();
// 0x00000138 System.Int64 ExitGames.Client.Photon.PhotonPeer::get_BytesOut()
extern void PhotonPeer_get_BytesOut_mEA9C487886318C497D706ED8AB58A883B0AF0825 ();
// 0x00000139 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_ByteCountCurrentDispatch()
extern void PhotonPeer_get_ByteCountCurrentDispatch_m0101250F6BEC27C085904B2719061569094F71DF ();
// 0x0000013A System.String ExitGames.Client.Photon.PhotonPeer::get_CommandInfoCurrentDispatch()
extern void PhotonPeer_get_CommandInfoCurrentDispatch_m5503C0842DC95617882DE5F2A0EAC9117117A3DD ();
// 0x0000013B System.Int32 ExitGames.Client.Photon.PhotonPeer::get_ByteCountLastOperation()
extern void PhotonPeer_get_ByteCountLastOperation_m7883E18C3C136A10542217DCB6D259307557CC8C ();
// 0x0000013C System.String ExitGames.Client.Photon.PhotonPeer::CommandLogToString()
extern void PhotonPeer_CommandLogToString_mF6A02ED214861BDE6DEF76098E3C187D31D317E3 ();
// 0x0000013D System.Boolean ExitGames.Client.Photon.PhotonPeer::get_EnableServerTracing()
extern void PhotonPeer_get_EnableServerTracing_m8D9B3EEEA65E833BE076AE61C2CAF9CABD3B8B21 ();
// 0x0000013E System.Void ExitGames.Client.Photon.PhotonPeer::set_EnableServerTracing(System.Boolean)
extern void PhotonPeer_set_EnableServerTracing_mE19B7161E73CFA51893014DC01EB190C6E1DF888 ();
// 0x0000013F System.Byte ExitGames.Client.Photon.PhotonPeer::get_QuickResendAttempts()
extern void PhotonPeer_get_QuickResendAttempts_mDEB87310776F3DFAD985D8A84B1B818414607990 ();
// 0x00000140 System.Void ExitGames.Client.Photon.PhotonPeer::set_QuickResendAttempts(System.Byte)
extern void PhotonPeer_set_QuickResendAttempts_m87A508435300F52DAC2CBAB3AF0B0D7BFADD6168 ();
// 0x00000141 ExitGames.Client.Photon.PeerStateValue ExitGames.Client.Photon.PhotonPeer::get_PeerState()
extern void PhotonPeer_get_PeerState_m3C1867814E0752100E29787C4EB54C4081A5BEB7 ();
// 0x00000142 System.String ExitGames.Client.Photon.PhotonPeer::get_PeerID()
extern void PhotonPeer_get_PeerID_m468B4876ED5EB80211B6AEB5B97F4FB23D6A2F26 ();
// 0x00000143 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_QueuedIncomingCommands()
extern void PhotonPeer_get_QueuedIncomingCommands_mE26F2F9343BA361DD3CABBFF04B9BDFF4D703AE1 ();
// 0x00000144 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_QueuedOutgoingCommands()
extern void PhotonPeer_get_QueuedOutgoingCommands_m0E831F38BB1E1D3C41B6F8D131FCD4E95231D9A3 ();
// 0x00000145 System.Void ExitGames.Client.Photon.PhotonPeer::MessageBufferPoolTrim(System.Int32)
extern void PhotonPeer_MessageBufferPoolTrim_m44DA0AB5D643C2A67A02F6340BFBE04999AF3AB7 ();
// 0x00000146 System.Int32 ExitGames.Client.Photon.PhotonPeer::MessageBufferPoolSize()
extern void PhotonPeer_MessageBufferPoolSize_m2E6F10C6CCC5B4D524A90D29C4FA224A6605B0E9 ();
// 0x00000147 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_CrcEnabled()
extern void PhotonPeer_get_CrcEnabled_m2747E1BE5C5607629CE74CBC8743171D4B4E3520 ();
// 0x00000148 System.Void ExitGames.Client.Photon.PhotonPeer::set_CrcEnabled(System.Boolean)
extern void PhotonPeer_set_CrcEnabled_m8E2F10388845A6A12C351355D036215777685876 ();
// 0x00000149 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_PacketLossByCrc()
extern void PhotonPeer_get_PacketLossByCrc_mD11A38A579BD2B606AC6BDED135CBF6FD6BEBC59 ();
// 0x0000014A System.Int32 ExitGames.Client.Photon.PhotonPeer::get_PacketLossByChallenge()
extern void PhotonPeer_get_PacketLossByChallenge_mAEEF8FB33349A870AF99201A88B61285870CEEEF ();
// 0x0000014B System.Int32 ExitGames.Client.Photon.PhotonPeer::get_SentReliableCommandsCount()
extern void PhotonPeer_get_SentReliableCommandsCount_m52148CBEF2BA8B3E835F7426BCAC2B6B911A16AF ();
// 0x0000014C System.Int32 ExitGames.Client.Photon.PhotonPeer::get_ResentReliableCommands()
extern void PhotonPeer_get_ResentReliableCommands_m29C037321383B5E2BBB22888C0B3BD76367F7F4E ();
// 0x0000014D System.Int32 ExitGames.Client.Photon.PhotonPeer::get_ServerTimeInMilliSeconds()
extern void PhotonPeer_get_ServerTimeInMilliSeconds_m128B74FB928D6B2BB052C1E146BEE27819898DF8 ();
// 0x0000014E System.Void ExitGames.Client.Photon.PhotonPeer::set_LocalMsTimestampDelegate(ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate)
extern void PhotonPeer_set_LocalMsTimestampDelegate_mE61A6934BC479DC55FBF777E930C748A82F50EB1 ();
// 0x0000014F System.Int32 ExitGames.Client.Photon.PhotonPeer::get_ConnectionTime()
extern void PhotonPeer_get_ConnectionTime_mE4D45F3F5767D906C82D7E443E56AC489E58C7BD ();
// 0x00000150 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_LastSendAckTime()
extern void PhotonPeer_get_LastSendAckTime_mC44F7762D4F41DF019BC8CFD6B03999399C35D4F ();
// 0x00000151 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_LastSendOutgoingTime()
extern void PhotonPeer_get_LastSendOutgoingTime_m234FDE2B00383202FDF0C623309B091A12B38B30 ();
// 0x00000152 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_LongestSentCall()
extern void PhotonPeer_get_LongestSentCall_m9E4A73C9E04434CD437208852EC852DDC26D5FF6 ();
// 0x00000153 System.Void ExitGames.Client.Photon.PhotonPeer::set_LongestSentCall(System.Int32)
extern void PhotonPeer_set_LongestSentCall_m5834BBA1A4FBE5F4D1EE0F985093DA19529FC0E9 ();
// 0x00000154 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_RoundTripTime()
extern void PhotonPeer_get_RoundTripTime_m780F3965623E2C08E4A0A1002AF8A76BEBEBB20D ();
// 0x00000155 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_RoundTripTimeVariance()
extern void PhotonPeer_get_RoundTripTimeVariance_mB4A6F616405DCF5878CA42F00223E00AC760D50B ();
// 0x00000156 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_LastRoundTripTime()
extern void PhotonPeer_get_LastRoundTripTime_m912E6FB0C98EACC79EC4BB2C4F1242A212BCADF8 ();
// 0x00000157 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_TimestampOfLastSocketReceive()
extern void PhotonPeer_get_TimestampOfLastSocketReceive_mFBFAD1D30EFDE9D4C18630F37DF1E84463A88AE7 ();
// 0x00000158 System.String ExitGames.Client.Photon.PhotonPeer::get_ServerAddress()
extern void PhotonPeer_get_ServerAddress_m9E3882C0EA4A298D23EB0A717350A4C608F650A0 ();
// 0x00000159 System.Void ExitGames.Client.Photon.PhotonPeer::set_ServerAddress(System.String)
extern void PhotonPeer_set_ServerAddress_m629E3975DCA508FC850F4DDEFBDC5B490F932475 ();
// 0x0000015A System.String ExitGames.Client.Photon.PhotonPeer::get_ServerIpAddress()
extern void PhotonPeer_get_ServerIpAddress_mC0F289FADA513D39AE83CC365B2B6675D38FCFF3 ();
// 0x0000015B ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.PhotonPeer::get_UsedProtocol()
extern void PhotonPeer_get_UsedProtocol_m378D8C2F651EC7695826F06002099D291A1A5FA8 ();
// 0x0000015C ExitGames.Client.Photon.ConnectionProtocol ExitGames.Client.Photon.PhotonPeer::get_TransportProtocol()
extern void PhotonPeer_get_TransportProtocol_mB83CE58A197C6881ABAB1705EFC5067F24E2A369 ();
// 0x0000015D System.Void ExitGames.Client.Photon.PhotonPeer::set_TransportProtocol(ExitGames.Client.Photon.ConnectionProtocol)
extern void PhotonPeer_set_TransportProtocol_m31F4D8301B6987EAF1C0CC7635CBE0BE6E3E3ECF ();
// 0x0000015E System.Boolean ExitGames.Client.Photon.PhotonPeer::get_IsSimulationEnabled()
extern void PhotonPeer_get_IsSimulationEnabled_m3DEE1E445223576D500CCDB01897B7247402937B ();
// 0x0000015F System.Void ExitGames.Client.Photon.PhotonPeer::set_IsSimulationEnabled(System.Boolean)
extern void PhotonPeer_set_IsSimulationEnabled_m917D39A7BA3387F1B622291FE53260BCFBE901CF ();
// 0x00000160 ExitGames.Client.Photon.NetworkSimulationSet ExitGames.Client.Photon.PhotonPeer::get_NetworkSimulationSettings()
extern void PhotonPeer_get_NetworkSimulationSettings_mA55B7BCED58D9DFFF7E48E098FA4D8EFCB511B16 ();
// 0x00000161 System.Int32 ExitGames.Client.Photon.PhotonPeer::get_MaximumTransferUnit()
extern void PhotonPeer_get_MaximumTransferUnit_m4003C178A8B1173A4159F64106A83C617DF9E1C0 ();
// 0x00000162 System.Void ExitGames.Client.Photon.PhotonPeer::set_MaximumTransferUnit(System.Int32)
extern void PhotonPeer_set_MaximumTransferUnit_mAB25A1D350610DC45C881C362E1526D26AB2EFA1 ();
// 0x00000163 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_IsEncryptionAvailable()
extern void PhotonPeer_get_IsEncryptionAvailable_m40AF4ED057C781EDA9678898CE69944B6449BFC0 ();
// 0x00000164 System.Boolean ExitGames.Client.Photon.PhotonPeer::get_IsSendingOnlyAcks()
extern void PhotonPeer_get_IsSendingOnlyAcks_m9ED3FCB7CC0F4CF9E335CA5161C4B276B0517F71 ();
// 0x00000165 System.Void ExitGames.Client.Photon.PhotonPeer::set_IsSendingOnlyAcks(System.Boolean)
extern void PhotonPeer_set_IsSendingOnlyAcks_m0ED247B75BBF46C271860C0F55BC63645842D447 ();
// 0x00000166 ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PhotonPeer::get_TrafficStatsIncoming()
extern void PhotonPeer_get_TrafficStatsIncoming_mAF81323FDFE398CC6E3332A2ACE8068A4F5E51DA ();
// 0x00000167 System.Void ExitGames.Client.Photon.PhotonPeer::set_TrafficStatsIncoming(ExitGames.Client.Photon.TrafficStats)
extern void PhotonPeer_set_TrafficStatsIncoming_mD88455D41AECC88E4E7D66B209C1E9CB34EAB9E2 ();
// 0x00000168 ExitGames.Client.Photon.TrafficStats ExitGames.Client.Photon.PhotonPeer::get_TrafficStatsOutgoing()
extern void PhotonPeer_get_TrafficStatsOutgoing_m50650EE42BD66D4969309CC0ACD211166A780780 ();
// 0x00000169 System.Void ExitGames.Client.Photon.PhotonPeer::set_TrafficStatsOutgoing(ExitGames.Client.Photon.TrafficStats)
extern void PhotonPeer_set_TrafficStatsOutgoing_mAA47CADD29A1B027FC18AAC47170208FF7EE6C7E ();
// 0x0000016A ExitGames.Client.Photon.TrafficStatsGameLevel ExitGames.Client.Photon.PhotonPeer::get_TrafficStatsGameLevel()
extern void PhotonPeer_get_TrafficStatsGameLevel_m04679EAAB644FE5DF176EBECBAAB56009E615AB7 ();
// 0x0000016B System.Void ExitGames.Client.Photon.PhotonPeer::set_TrafficStatsGameLevel(ExitGames.Client.Photon.TrafficStatsGameLevel)
extern void PhotonPeer_set_TrafficStatsGameLevel_m83359098BCC1A9AB7575AD59605AEFEFD71F0D21 ();
// 0x0000016C System.Int64 ExitGames.Client.Photon.PhotonPeer::get_TrafficStatsElapsedMs()
extern void PhotonPeer_get_TrafficStatsElapsedMs_mF08D8F6BA7749D8C861BD5FC0B1885082F07CDF2 ();
// 0x0000016D System.Boolean ExitGames.Client.Photon.PhotonPeer::get_TrafficStatsEnabled()
extern void PhotonPeer_get_TrafficStatsEnabled_m8DA7521C079CED87345922398AD30F76A3BB00F7 ();
// 0x0000016E System.Void ExitGames.Client.Photon.PhotonPeer::set_TrafficStatsEnabled(System.Boolean)
extern void PhotonPeer_set_TrafficStatsEnabled_m534A59D048B55C46EF5670786460735B878B320A ();
// 0x0000016F System.Void ExitGames.Client.Photon.PhotonPeer::TrafficStatsReset()
extern void PhotonPeer_TrafficStatsReset_m5A44EA56F4747E1DC60E2BD25E9173E4F744D5A7 ();
// 0x00000170 System.Void ExitGames.Client.Photon.PhotonPeer::InitializeTrafficStats()
extern void PhotonPeer_InitializeTrafficStats_m84B6AEB0DB2FB17F2E03714D53E7F11F2BAED697 ();
// 0x00000171 System.String ExitGames.Client.Photon.PhotonPeer::VitalStatsToString(System.Boolean)
extern void PhotonPeer_VitalStatsToString_m9364EB9C50C33E84C4026BBEE99016C1844235B2 ();
// 0x00000172 System.Type ExitGames.Client.Photon.PhotonPeer::get_EncryptorType()
extern void PhotonPeer_get_EncryptorType_m59FB92621495B195E1AD2614DEA7D4C175DB2368 ();
// 0x00000173 System.Void ExitGames.Client.Photon.PhotonPeer::set_EncryptorType(System.Type)
extern void PhotonPeer_set_EncryptorType_m74206D76F79E9CBBE0EB149B2BE21DB7C5FEC875 ();
// 0x00000174 System.Void ExitGames.Client.Photon.PhotonPeer::.ctor(ExitGames.Client.Photon.ConnectionProtocol)
extern void PhotonPeer__ctor_m468159FF65B92B78A7E03D398439457CE9AD25A2 ();
// 0x00000175 System.Void ExitGames.Client.Photon.PhotonPeer::.ctor(ExitGames.Client.Photon.IPhotonPeerListener,ExitGames.Client.Photon.ConnectionProtocol)
extern void PhotonPeer__ctor_mD2ED5F7F2CC74616C0DB5C5A92393DC745F86005 ();
// 0x00000176 System.Boolean ExitGames.Client.Photon.PhotonPeer::Connect(System.String,System.String)
extern void PhotonPeer_Connect_mCB574FBEC3F41B36AAA2723C530B0A0B2718CF47 ();
// 0x00000177 System.Boolean ExitGames.Client.Photon.PhotonPeer::Connect(System.String,System.String,System.Object)
extern void PhotonPeer_Connect_mE1EAAC460BB8E3BB20ABEF6A02262EA9022D1259 ();
// 0x00000178 System.Boolean ExitGames.Client.Photon.PhotonPeer::Connect(System.String,System.String,System.String,System.Object)
extern void PhotonPeer_Connect_m38175FE99B2D9909B6A8382AADF30A5365C4F4F2 ();
// 0x00000179 System.Void ExitGames.Client.Photon.PhotonPeer::CreatePeerBase()
extern void PhotonPeer_CreatePeerBase_mC44ACC252A1EAAFED62A12FC28582EC939171EE6 ();
// 0x0000017A System.Void ExitGames.Client.Photon.PhotonPeer::Disconnect()
extern void PhotonPeer_Disconnect_m402530FA250CB7D50F6A3D3957AF107DA6D69757 ();
// 0x0000017B System.Void ExitGames.Client.Photon.PhotonPeer::StopThread()
extern void PhotonPeer_StopThread_m6276C95FAE0916E95334551C82410E85096000AB ();
// 0x0000017C System.Void ExitGames.Client.Photon.PhotonPeer::FetchServerTimestamp()
extern void PhotonPeer_FetchServerTimestamp_mBC3C26F1DD4444DFC5184525A3FA4AD0ADE3AABD ();
// 0x0000017D System.Boolean ExitGames.Client.Photon.PhotonPeer::EstablishEncryption()
extern void PhotonPeer_EstablishEncryption_mA7A8194A0CEED8481E5EF986BA3D3E5C8C05CF43 ();
// 0x0000017E System.Boolean ExitGames.Client.Photon.PhotonPeer::InitDatagramEncryption(System.Byte[],System.Byte[],System.Boolean,System.Boolean)
extern void PhotonPeer_InitDatagramEncryption_m60F9A8F1A779C75B11D15E2EA125B082F24A4E8B ();
// 0x0000017F System.Void ExitGames.Client.Photon.PhotonPeer::InitPayloadEncryption(System.Byte[])
extern void PhotonPeer_InitPayloadEncryption_mA10D8B69A9824A7AE5E6AA26A87D39D22F90BF7F ();
// 0x00000180 System.Void ExitGames.Client.Photon.PhotonPeer::Service()
extern void PhotonPeer_Service_mEB24A320D82403DA18207D5180839CBE386E19D2 ();
// 0x00000181 System.Boolean ExitGames.Client.Photon.PhotonPeer::SendOutgoingCommands()
extern void PhotonPeer_SendOutgoingCommands_mDBA2719DA1086676B5A8750AD353F1FB61F33863 ();
// 0x00000182 System.Boolean ExitGames.Client.Photon.PhotonPeer::SendAcksOnly()
extern void PhotonPeer_SendAcksOnly_m4E871511893202E5652638DE4338DB66B1C5ECB1 ();
// 0x00000183 System.Boolean ExitGames.Client.Photon.PhotonPeer::DispatchIncomingCommands()
extern void PhotonPeer_DispatchIncomingCommands_m003D45687058D86F69A5D83685AFEF127E315B9C ();
// 0x00000184 System.Boolean ExitGames.Client.Photon.PhotonPeer::SendOperation(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.SendOptions)
extern void PhotonPeer_SendOperation_mFC1EBA7D26440E6CE8EA5C56F7263F22507A878F ();
// 0x00000185 System.Boolean ExitGames.Client.Photon.PhotonPeer::OpCustom(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Boolean,System.Byte,System.Boolean)
extern void PhotonPeer_OpCustom_m64934F752B8366E2B5C865C2116A241896F83C0F ();
// 0x00000186 System.Boolean ExitGames.Client.Photon.PhotonPeer::OpCustom(ExitGames.Client.Photon.OperationRequest,System.Boolean,System.Byte,System.Boolean)
extern void PhotonPeer_OpCustom_m165C728D8A3DA27DF24DDF2F5510D676E9D96912 ();
// 0x00000187 System.Boolean ExitGames.Client.Photon.PhotonPeer::RegisterType(System.Type,System.Byte,ExitGames.Client.Photon.SerializeMethod,ExitGames.Client.Photon.DeserializeMethod)
extern void PhotonPeer_RegisterType_m015D2CBAB3FED10AC807D6D37C7E0BAD1FCD6593 ();
// 0x00000188 System.Boolean ExitGames.Client.Photon.PhotonPeer::RegisterType(System.Type,System.Byte,ExitGames.Client.Photon.SerializeStreamMethod,ExitGames.Client.Photon.DeserializeStreamMethod)
extern void PhotonPeer_RegisterType_m6153737B617397EE613710D2C357C012125027A7 ();
// 0x00000189 System.Void ExitGames.Client.Photon.PhotonPeer::.cctor()
extern void PhotonPeer__cctor_m80BCF57B94B92FDFD42B6B1D2B57F1A67B9F67BB ();
// 0x0000018A System.Boolean ExitGames.Client.Photon.PhotonPeer::<EstablishEncryption>b__201_0()
extern void PhotonPeer_U3CEstablishEncryptionU3Eb__201_0_mEA7732779B2A7EC06DEEE7E3E86A2814D34C1B5E ();
// 0x0000018B System.Void ExitGames.Client.Photon.OperationRequest::.ctor()
extern void OperationRequest__ctor_m8CAF855761E50F413FA02F043F059E272F787771 ();
// 0x0000018C System.Object ExitGames.Client.Photon.OperationResponse::get_Item(System.Byte)
extern void OperationResponse_get_Item_m589790C780696B060EAF8A758B6D9E82A10C2611 ();
// 0x0000018D System.Void ExitGames.Client.Photon.OperationResponse::set_Item(System.Byte,System.Object)
extern void OperationResponse_set_Item_m6E7F417F5653574FA7A67B8BA4B810D2A7156761 ();
// 0x0000018E System.String ExitGames.Client.Photon.OperationResponse::ToString()
extern void OperationResponse_ToString_mAEEF5B6E81ED1F6A2FC7FF748D87212103CE8309 ();
// 0x0000018F System.String ExitGames.Client.Photon.OperationResponse::ToStringFull()
extern void OperationResponse_ToStringFull_m9152C7646911FBE10B286F60EF77647D6DC864C4 ();
// 0x00000190 System.Void ExitGames.Client.Photon.OperationResponse::.ctor()
extern void OperationResponse__ctor_m22333885F8D3574D3BF48F904CE3774FAE99B6D5 ();
// 0x00000191 System.Object ExitGames.Client.Photon.EventData::get_Item(System.Byte)
extern void EventData_get_Item_m65F26662E537109F58915F7D9BA8561F3F179617 ();
// 0x00000192 System.Void ExitGames.Client.Photon.EventData::set_Item(System.Byte,System.Object)
extern void EventData_set_Item_m72C0B1EA8484B7D85A597077E1B91FFC7314D6FA ();
// 0x00000193 System.Int32 ExitGames.Client.Photon.EventData::get_Sender()
extern void EventData_get_Sender_m98C0313A9FBC0BC4ED54FFF420459D025063F72E ();
// 0x00000194 System.Void ExitGames.Client.Photon.EventData::set_Sender(System.Int32)
extern void EventData_set_Sender_m69FEAA0F7284358C91B09DDC45BF96E0ED3D10C2 ();
// 0x00000195 System.Object ExitGames.Client.Photon.EventData::get_CustomData()
extern void EventData_get_CustomData_m38D763CDEF0CF9DCF059AE13DB1D550ACF3D0B66 ();
// 0x00000196 System.Void ExitGames.Client.Photon.EventData::set_CustomData(System.Object)
extern void EventData_set_CustomData_m252D4113746E62610BA745DBC25DEDBE6685B668 ();
// 0x00000197 System.Void ExitGames.Client.Photon.EventData::Reset()
extern void EventData_Reset_m10FF5B251D01470FE9966E36344BE2428D5B78E0 ();
// 0x00000198 System.String ExitGames.Client.Photon.EventData::ToString()
extern void EventData_ToString_m597652D3C8893F87B1A3EB9F8EB4014A8657C619 ();
// 0x00000199 System.String ExitGames.Client.Photon.EventData::ToStringFull()
extern void EventData_ToStringFull_mD3F57E3149861E65926A0335C23B8F7A31E1FD16 ();
// 0x0000019A System.Void ExitGames.Client.Photon.EventData::.ctor()
extern void EventData__ctor_m25C99D03B18FC8A598D9A303DBBCCAB58C161F20 ();
// 0x0000019B System.Void ExitGames.Client.Photon.SerializeMethod::.ctor(System.Object,System.IntPtr)
extern void SerializeMethod__ctor_m67195EB90BB613E57B4B3423C8278C6A4F4CA49E ();
// 0x0000019C System.Byte[] ExitGames.Client.Photon.SerializeMethod::Invoke(System.Object)
extern void SerializeMethod_Invoke_mA1C1002E13E86B518B27BF88813F9D4E01C14087 ();
// 0x0000019D System.IAsyncResult ExitGames.Client.Photon.SerializeMethod::BeginInvoke(System.Object,System.AsyncCallback,System.Object)
extern void SerializeMethod_BeginInvoke_m5CB3CCA8FA8182991DED8D788B46C9212EF80F35 ();
// 0x0000019E System.Byte[] ExitGames.Client.Photon.SerializeMethod::EndInvoke(System.IAsyncResult)
extern void SerializeMethod_EndInvoke_m8A6B5086BCA4E769F41C19A5293434AB54F61F86 ();
// 0x0000019F System.Void ExitGames.Client.Photon.SerializeStreamMethod::.ctor(System.Object,System.IntPtr)
extern void SerializeStreamMethod__ctor_m57F65D942FAE61968F41892A2ABA1E5F3681D52A ();
// 0x000001A0 System.Int16 ExitGames.Client.Photon.SerializeStreamMethod::Invoke(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void SerializeStreamMethod_Invoke_mB1390809DBB09676CE741E125464AAFE7AEEA47F ();
// 0x000001A1 System.IAsyncResult ExitGames.Client.Photon.SerializeStreamMethod::BeginInvoke(ExitGames.Client.Photon.StreamBuffer,System.Object,System.AsyncCallback,System.Object)
extern void SerializeStreamMethod_BeginInvoke_mF5CCCB378C85CBFC0BA80BC984CDBCC633658AAF ();
// 0x000001A2 System.Int16 ExitGames.Client.Photon.SerializeStreamMethod::EndInvoke(System.IAsyncResult)
extern void SerializeStreamMethod_EndInvoke_mBECCCACDB4924916C64B769302251F2E7FBD3458 ();
// 0x000001A3 System.Void ExitGames.Client.Photon.DeserializeMethod::.ctor(System.Object,System.IntPtr)
extern void DeserializeMethod__ctor_mF511F7051EA73C2353F71AA992F0AA7DF82CF94B ();
// 0x000001A4 System.Object ExitGames.Client.Photon.DeserializeMethod::Invoke(System.Byte[])
extern void DeserializeMethod_Invoke_m3AB9367C9C20256187D772D9D54FACE88BB13E08 ();
// 0x000001A5 System.IAsyncResult ExitGames.Client.Photon.DeserializeMethod::BeginInvoke(System.Byte[],System.AsyncCallback,System.Object)
extern void DeserializeMethod_BeginInvoke_m0BB49BB652471CCA7C17FC6690DFDC7C8C95BB56 ();
// 0x000001A6 System.Object ExitGames.Client.Photon.DeserializeMethod::EndInvoke(System.IAsyncResult)
extern void DeserializeMethod_EndInvoke_mA546235F57C259B3B6BB77B369174026410597AE ();
// 0x000001A7 System.Void ExitGames.Client.Photon.DeserializeStreamMethod::.ctor(System.Object,System.IntPtr)
extern void DeserializeStreamMethod__ctor_m72B60FB4DB9412438B9BA503F43067A8A0861C45 ();
// 0x000001A8 System.Object ExitGames.Client.Photon.DeserializeStreamMethod::Invoke(ExitGames.Client.Photon.StreamBuffer,System.Int16)
extern void DeserializeStreamMethod_Invoke_mB222A15B8C609721DA86A9FB03CFC2F8401CAD63 ();
// 0x000001A9 System.IAsyncResult ExitGames.Client.Photon.DeserializeStreamMethod::BeginInvoke(ExitGames.Client.Photon.StreamBuffer,System.Int16,System.AsyncCallback,System.Object)
extern void DeserializeStreamMethod_BeginInvoke_m831D9FCADA75E059845AC1E04869A7C088A3A081 ();
// 0x000001AA System.Object ExitGames.Client.Photon.DeserializeStreamMethod::EndInvoke(System.IAsyncResult)
extern void DeserializeStreamMethod_EndInvoke_m5F4317AF89F6E163B2FCEDEC7F6304BC4AC24299 ();
// 0x000001AB System.Void ExitGames.Client.Photon.CustomType::.ctor(System.Type,System.Byte,ExitGames.Client.Photon.SerializeMethod,ExitGames.Client.Photon.DeserializeMethod)
extern void CustomType__ctor_m61F7678BDB26268EC0CB716D11474DF06ED1D330 ();
// 0x000001AC System.Void ExitGames.Client.Photon.CustomType::.ctor(System.Type,System.Byte,ExitGames.Client.Photon.SerializeStreamMethod,ExitGames.Client.Photon.DeserializeStreamMethod)
extern void CustomType__ctor_mD1DF6D216FCE31D181625A9DF92C05773D6FE1FC ();
// 0x000001AD System.Boolean ExitGames.Client.Photon.Protocol::TryRegisterType(System.Type,System.Byte,ExitGames.Client.Photon.SerializeMethod,ExitGames.Client.Photon.DeserializeMethod)
extern void Protocol_TryRegisterType_m11B2247B7D62B44A4B34A7368DB4E649AC1DBBA8 ();
// 0x000001AE System.Boolean ExitGames.Client.Photon.Protocol::TryRegisterType(System.Type,System.Byte,ExitGames.Client.Photon.SerializeStreamMethod,ExitGames.Client.Photon.DeserializeStreamMethod)
extern void Protocol_TryRegisterType_mEF84173DAD49BD07E0B2625A7D1507E7333C3187 ();
// 0x000001AF System.Byte[] ExitGames.Client.Photon.Protocol::Serialize(System.Object)
extern void Protocol_Serialize_mBFA91384E2A87EE02B5246797A9AE562A33B9F3E ();
// 0x000001B0 System.Object ExitGames.Client.Photon.Protocol::Deserialize(System.Byte[])
extern void Protocol_Deserialize_m31BD7DD915A7B42F3DFCEFEA1F8D1E7F670853A2 ();
// 0x000001B1 System.Void ExitGames.Client.Photon.Protocol::Serialize(System.Int16,System.Byte[],System.Int32&)
extern void Protocol_Serialize_mF7A4E0FD6E4E17DBBE5B8F3757CB19B1F5676FAC ();
// 0x000001B2 System.Void ExitGames.Client.Photon.Protocol::Serialize(System.Int32,System.Byte[],System.Int32&)
extern void Protocol_Serialize_m7C3C2A61BAEEC7F272F78C7F789A48E7E4E036E6 ();
// 0x000001B3 System.Void ExitGames.Client.Photon.Protocol::Serialize(System.Single,System.Byte[],System.Int32&)
extern void Protocol_Serialize_m441AF7D1658399DEA66520B5E5352F19CA0E48B8 ();
// 0x000001B4 System.Void ExitGames.Client.Photon.Protocol::Deserialize(System.Int32&,System.Byte[],System.Int32&)
extern void Protocol_Deserialize_m4BF6131A8C009C7785B333FAC6B9BCA4F5EBF284 ();
// 0x000001B5 System.Void ExitGames.Client.Photon.Protocol::Deserialize(System.Int16&,System.Byte[],System.Int32&)
extern void Protocol_Deserialize_m6DC688C3536FFF519251CA9FCC06E81F95D852F8 ();
// 0x000001B6 System.Void ExitGames.Client.Photon.Protocol::Deserialize(System.Single&,System.Byte[],System.Int32&)
extern void Protocol_Deserialize_mC8F169D83116E3D1B7A178D67E43235B1242D981 ();
// 0x000001B7 System.Void ExitGames.Client.Photon.Protocol::.ctor()
extern void Protocol__ctor_m1D71FBDEA8F387C0E466C61F739327F4F947F419 ();
// 0x000001B8 System.Void ExitGames.Client.Photon.Protocol::.cctor()
extern void Protocol__cctor_m48BAC42DBDBC15C8E3708A6481E6D2963282C1FC ();
// 0x000001B9 System.String ExitGames.Client.Photon.Protocol16::get_ProtocolType()
extern void Protocol16_get_ProtocolType_m98CC5794F13889B38F2564EB88A3511B1245A57A ();
// 0x000001BA System.Byte[] ExitGames.Client.Photon.Protocol16::get_VersionBytes()
extern void Protocol16_get_VersionBytes_m6C973742B2B3D8620A0824259FA16359DB7023BF ();
// 0x000001BB System.Boolean ExitGames.Client.Photon.Protocol16::SerializeCustom(ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void Protocol16_SerializeCustom_m5721402FEF9C12236D3B3375E18BDCE3395D1F0A ();
// 0x000001BC System.Object ExitGames.Client.Photon.Protocol16::DeserializeCustom(ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void Protocol16_DeserializeCustom_m4C126BB8D583194E009E7FBEE1180B0DBF1F74DE ();
// 0x000001BD System.Type ExitGames.Client.Photon.Protocol16::GetTypeOfCode(System.Byte)
extern void Protocol16_GetTypeOfCode_m4D7A7592749A2DEEBDE5B4B2FC62D77E09D11C3B ();
// 0x000001BE ExitGames.Client.Photon.Protocol16_GpType ExitGames.Client.Photon.Protocol16::GetCodeOfType(System.Type)
extern void Protocol16_GetCodeOfType_m8FE71BE396C1564EA141512C0E5CF3321216E23D ();
// 0x000001BF System.Array ExitGames.Client.Photon.Protocol16::CreateArrayByType(System.Byte,System.Int16)
extern void Protocol16_CreateArrayByType_m5DA6F464E35C552DE989BDB09387B446A0E6CF56 ();
// 0x000001C0 System.Void ExitGames.Client.Photon.Protocol16::SerializeOperationRequest(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.OperationRequest,System.Boolean)
extern void Protocol16_SerializeOperationRequest_m4BAABB39B0BF67FA6B06AB0288AF31406329CB22 ();
// 0x000001C1 System.Void ExitGames.Client.Photon.Protocol16::SerializeOperationRequest(ExitGames.Client.Photon.StreamBuffer,System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Boolean)
extern void Protocol16_SerializeOperationRequest_mFF34FFE76BF7C94FC40D01EBCA7CD00A2598A816 ();
// 0x000001C2 ExitGames.Client.Photon.OperationRequest ExitGames.Client.Photon.Protocol16::DeserializeOperationRequest(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeOperationRequest_m73F3A7ACE68C47868426FAB21A10A71A32480025 ();
// 0x000001C3 System.Void ExitGames.Client.Photon.Protocol16::SerializeOperationResponse(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.OperationResponse,System.Boolean)
extern void Protocol16_SerializeOperationResponse_m11C00B00E68E6769348A838F62F27CDE364A4254 ();
// 0x000001C4 ExitGames.Client.Photon.OperationResponse ExitGames.Client.Photon.Protocol16::DeserializeOperationResponse(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeOperationResponse_m631F54FB3B077DCBEC6BBF5205E4D20A5DEE1B32 ();
// 0x000001C5 System.Void ExitGames.Client.Photon.Protocol16::SerializeEventData(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.EventData,System.Boolean)
extern void Protocol16_SerializeEventData_mF0F8FAA20FDD1343E5D204DF76D26F21BEC3463E ();
// 0x000001C6 ExitGames.Client.Photon.EventData ExitGames.Client.Photon.Protocol16::DeserializeEventData(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.EventData,ExitGames.Client.Photon.IProtocol_DeserializationFlags)
extern void Protocol16_DeserializeEventData_m44DBE279F929061996E2CA20F231BF1239D85978 ();
// 0x000001C7 System.Void ExitGames.Client.Photon.Protocol16::SerializeParameterTable(ExitGames.Client.Photon.StreamBuffer,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>)
extern void Protocol16_SerializeParameterTable_m5F825695C000AB87DB9C3E8B3B5A2DD28A8D8633 ();
// 0x000001C8 System.Collections.Generic.Dictionary`2<System.Byte,System.Object> ExitGames.Client.Photon.Protocol16::DeserializeParameterTable(ExitGames.Client.Photon.StreamBuffer,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>)
extern void Protocol16_DeserializeParameterTable_m7BD23B029DD5753C43B226B61BC7BC499385528E ();
// 0x000001C9 System.Void ExitGames.Client.Photon.Protocol16::Serialize(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol16_Serialize_mE53CEF2B89E2E07D833AF68C002A186E89C000E6 ();
// 0x000001CA System.Void ExitGames.Client.Photon.Protocol16::SerializeByte(ExitGames.Client.Photon.StreamBuffer,System.Byte,System.Boolean)
extern void Protocol16_SerializeByte_mFCC4CB1B4573AFBF36B70E3F0CBE1BD43CBF8432 ();
// 0x000001CB System.Void ExitGames.Client.Photon.Protocol16::SerializeBoolean(ExitGames.Client.Photon.StreamBuffer,System.Boolean,System.Boolean)
extern void Protocol16_SerializeBoolean_m72619A947BFCC8AA0780A6FDAE9BEADA2CBA1522 ();
// 0x000001CC System.Void ExitGames.Client.Photon.Protocol16::SerializeShort(ExitGames.Client.Photon.StreamBuffer,System.Int16,System.Boolean)
extern void Protocol16_SerializeShort_m4C9DCB5768CDE1FB59E1ECE422CFBBC696DA662B ();
// 0x000001CD System.Void ExitGames.Client.Photon.Protocol16::SerializeInteger(ExitGames.Client.Photon.StreamBuffer,System.Int32,System.Boolean)
extern void Protocol16_SerializeInteger_m7D1069FA9FB3E45A5B49458ECC1B0D1E07F25E6D ();
// 0x000001CE System.Void ExitGames.Client.Photon.Protocol16::SerializeLong(ExitGames.Client.Photon.StreamBuffer,System.Int64,System.Boolean)
extern void Protocol16_SerializeLong_m499AC38851B783710AD53FA589406290330D2037 ();
// 0x000001CF System.Void ExitGames.Client.Photon.Protocol16::SerializeFloat(ExitGames.Client.Photon.StreamBuffer,System.Single,System.Boolean)
extern void Protocol16_SerializeFloat_m5516ECF0AF9D6D0738105C2F1FE501AC2AE17BD2 ();
// 0x000001D0 System.Void ExitGames.Client.Photon.Protocol16::SerializeDouble(ExitGames.Client.Photon.StreamBuffer,System.Double,System.Boolean)
extern void Protocol16_SerializeDouble_m7039C99A07285A7DC190F62F1CC421FCBF7E2606 ();
// 0x000001D1 System.Void ExitGames.Client.Photon.Protocol16::SerializeString(ExitGames.Client.Photon.StreamBuffer,System.String,System.Boolean)
extern void Protocol16_SerializeString_m93CCC20CBEE6C0F476D678963C984D8D8935CCC2 ();
// 0x000001D2 System.Void ExitGames.Client.Photon.Protocol16::SerializeArray(ExitGames.Client.Photon.StreamBuffer,System.Array,System.Boolean)
extern void Protocol16_SerializeArray_mBF48551EB8890C06F72104F853B5A41B28C9F0A8 ();
// 0x000001D3 System.Void ExitGames.Client.Photon.Protocol16::SerializeByteArray(ExitGames.Client.Photon.StreamBuffer,System.Byte[],System.Boolean)
extern void Protocol16_SerializeByteArray_mF81A4B56FBDC17D85942255A9F9941CE6AB22680 ();
// 0x000001D4 System.Void ExitGames.Client.Photon.Protocol16::SerializeByteArraySegment(ExitGames.Client.Photon.StreamBuffer,System.Byte[],System.Int32,System.Int32,System.Boolean)
extern void Protocol16_SerializeByteArraySegment_mD1FC770E5EB412AC2795990FE65E79353C5DC3E8 ();
// 0x000001D5 System.Void ExitGames.Client.Photon.Protocol16::SerializeIntArrayOptimized(ExitGames.Client.Photon.StreamBuffer,System.Int32[],System.Boolean)
extern void Protocol16_SerializeIntArrayOptimized_m1EA5CE3974ADC775CDFF7C8225106C40A5C537B2 ();
// 0x000001D6 System.Void ExitGames.Client.Photon.Protocol16::SerializeStringArray(ExitGames.Client.Photon.StreamBuffer,System.String[],System.Boolean)
extern void Protocol16_SerializeStringArray_mD1E91CCA1BE848F943BB67BE2275E29E21E4D15E ();
// 0x000001D7 System.Void ExitGames.Client.Photon.Protocol16::SerializeObjectArray(ExitGames.Client.Photon.StreamBuffer,System.Collections.IList,System.Boolean)
extern void Protocol16_SerializeObjectArray_m08C507C25344236F8446F8BB4EF083D047A81677 ();
// 0x000001D8 System.Void ExitGames.Client.Photon.Protocol16::SerializeHashTable(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.Hashtable,System.Boolean)
extern void Protocol16_SerializeHashTable_m3BD3F0D46857154276B0402D1BC760BCA13BFA5E ();
// 0x000001D9 System.Void ExitGames.Client.Photon.Protocol16::SerializeDictionary(ExitGames.Client.Photon.StreamBuffer,System.Collections.IDictionary,System.Boolean)
extern void Protocol16_SerializeDictionary_m5AE3C9816E14686A67BEECFA03CA609448178ADF ();
// 0x000001DA System.Void ExitGames.Client.Photon.Protocol16::SerializeDictionaryHeader(ExitGames.Client.Photon.StreamBuffer,System.Type)
extern void Protocol16_SerializeDictionaryHeader_mF50C572B544CC74A8B8586D1D08476120641753F ();
// 0x000001DB System.Void ExitGames.Client.Photon.Protocol16::SerializeDictionaryHeader(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean&,System.Boolean&)
extern void Protocol16_SerializeDictionaryHeader_mE55156BAE4C6EF88821ECD792B7D8DDD8BB04C8F ();
// 0x000001DC System.Void ExitGames.Client.Photon.Protocol16::SerializeDictionaryElements(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean,System.Boolean)
extern void Protocol16_SerializeDictionaryElements_mF607EF0DC334EC6CFC1AA6065F0459D163622167 ();
// 0x000001DD System.Object ExitGames.Client.Photon.Protocol16::Deserialize(ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void Protocol16_Deserialize_mBF03D33B6A99D1E38E7883B41B2A48CBE92DD411 ();
// 0x000001DE System.Byte ExitGames.Client.Photon.Protocol16::DeserializeByte(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeByte_m97127F5532F7963DF81C7E5E493F4D884C90430E ();
// 0x000001DF System.Boolean ExitGames.Client.Photon.Protocol16::DeserializeBoolean(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeBoolean_mAE6ED43188BFBB2BCB4A299FE66BAA0DE5F8F5A5 ();
// 0x000001E0 System.Int16 ExitGames.Client.Photon.Protocol16::DeserializeShort(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeShort_m31AB698A7E98B72D30F68256FC9143D011171DB9 ();
// 0x000001E1 System.Int32 ExitGames.Client.Photon.Protocol16::DeserializeInteger(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeInteger_m4BBA679081B24314E1EE80EF128BF94F054C206A ();
// 0x000001E2 System.Int64 ExitGames.Client.Photon.Protocol16::DeserializeLong(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeLong_mF3973C89DDD00FE6CB4867FF4472A157E7529F51 ();
// 0x000001E3 System.Single ExitGames.Client.Photon.Protocol16::DeserializeFloat(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeFloat_m98299618A9BAF0B28A4BD26479725B0ACCA9A27F ();
// 0x000001E4 System.Double ExitGames.Client.Photon.Protocol16::DeserializeDouble(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeDouble_m7208E4EA6CCB36B293A38F05FCA54E623189D356 ();
// 0x000001E5 System.String ExitGames.Client.Photon.Protocol16::DeserializeString(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeString_m6EBE423D7CDEED05A5036283BFF3254B31785CBB ();
// 0x000001E6 System.Array ExitGames.Client.Photon.Protocol16::DeserializeArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeArray_mA27D36F1B0823B1A9CD2491C70381A32BEBEE959 ();
// 0x000001E7 System.Byte[] ExitGames.Client.Photon.Protocol16::DeserializeByteArray(ExitGames.Client.Photon.StreamBuffer,System.Int32)
extern void Protocol16_DeserializeByteArray_mB4B089A980AEE006F291118AB07B62B89B5AB93A ();
// 0x000001E8 System.Int32[] ExitGames.Client.Photon.Protocol16::DeserializeIntArray(ExitGames.Client.Photon.StreamBuffer,System.Int32)
extern void Protocol16_DeserializeIntArray_m3DB45B27577E1CA867F8917E82CE568D84DE1EDC ();
// 0x000001E9 System.String[] ExitGames.Client.Photon.Protocol16::DeserializeStringArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeStringArray_m9577B3B116E96E3BD808D6F0BE743DA702033A97 ();
// 0x000001EA System.Object[] ExitGames.Client.Photon.Protocol16::DeserializeObjectArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeObjectArray_mFCD0CD83B1BF625DAD6164D1224DB5B9B02C48B0 ();
// 0x000001EB ExitGames.Client.Photon.Hashtable ExitGames.Client.Photon.Protocol16::DeserializeHashTable(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeHashTable_m3BF35F2ED99E0A0C7EA3B79B1A1FE8473790C3F0 ();
// 0x000001EC System.Collections.IDictionary ExitGames.Client.Photon.Protocol16::DeserializeDictionary(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol16_DeserializeDictionary_m77563E7E4158CFDF2D628B495F9F5D257D793D62 ();
// 0x000001ED System.Boolean ExitGames.Client.Photon.Protocol16::DeserializeDictionaryArray(ExitGames.Client.Photon.StreamBuffer,System.Int16,System.Array&)
extern void Protocol16_DeserializeDictionaryArray_m0E7CE0C72831F3DB48B988BE45AAE650E737BC68 ();
// 0x000001EE System.Type ExitGames.Client.Photon.Protocol16::DeserializeDictionaryType(ExitGames.Client.Photon.StreamBuffer,System.Byte&,System.Byte&)
extern void Protocol16_DeserializeDictionaryType_m2F0AF365472DB501D91AE3580BC17DB15343296F ();
// 0x000001EF System.Void ExitGames.Client.Photon.Protocol16::.ctor()
extern void Protocol16__ctor_mA9D481BC920480CF42009BB00AF35320FF37A5BB ();
// 0x000001F0 System.Void ExitGames.Client.Photon.Protocol16::.cctor()
extern void Protocol16__cctor_mF79EEB7B3B930A8DB2BFBDE500F7A277545DA527 ();
// 0x000001F1 System.Void ExitGames.Client.Photon.InvalidDataException::.ctor(System.String)
extern void InvalidDataException__ctor_m40E97FAED11A5BAE43FD4D404C84FA4B735DCC43 ();
// 0x000001F2 System.String ExitGames.Client.Photon.Protocol18::get_ProtocolType()
extern void Protocol18_get_ProtocolType_m0E8AB36773D09C9571203289230BA0966A52D9E7 ();
// 0x000001F3 System.Byte[] ExitGames.Client.Photon.Protocol18::get_VersionBytes()
extern void Protocol18_get_VersionBytes_mB6689CAE93824CF79F4F38C9BB94421C39C895A3 ();
// 0x000001F4 System.Void ExitGames.Client.Photon.Protocol18::Serialize(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_Serialize_m3B650A925D088FDFC98CF077BA97015B156AFD36 ();
// 0x000001F5 System.Void ExitGames.Client.Photon.Protocol18::SerializeShort(ExitGames.Client.Photon.StreamBuffer,System.Int16,System.Boolean)
extern void Protocol18_SerializeShort_mD8E2F5CFE5033652B6D4D155E8C692261556DD3F ();
// 0x000001F6 System.Void ExitGames.Client.Photon.Protocol18::SerializeString(ExitGames.Client.Photon.StreamBuffer,System.String,System.Boolean)
extern void Protocol18_SerializeString_m1F9E555FA4BA816796056450D9F363398B163B75 ();
// 0x000001F7 System.Object ExitGames.Client.Photon.Protocol18::Deserialize(ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void Protocol18_Deserialize_m957791F5943EDDE6112162ADF2E152984CC04AD3 ();
// 0x000001F8 System.Int16 ExitGames.Client.Photon.Protocol18::DeserializeShort(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_DeserializeShort_m721CB79769B949F9AC3D8E43B41C863D61F1A213 ();
// 0x000001F9 System.Byte ExitGames.Client.Photon.Protocol18::DeserializeByte(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_DeserializeByte_m2E39920A37EB0E1BD3B67B00205945D31476BD9D ();
// 0x000001FA System.Type ExitGames.Client.Photon.Protocol18::GetAllowedDictionaryKeyTypes(ExitGames.Client.Photon.Protocol18_GpType)
extern void Protocol18_GetAllowedDictionaryKeyTypes_m0871EB6E9332BDCDDE16C4E5EAA3CC300AB66BCE ();
// 0x000001FB System.Type ExitGames.Client.Photon.Protocol18::GetClrArrayType(ExitGames.Client.Photon.Protocol18_GpType)
extern void Protocol18_GetClrArrayType_m60425F2291A58F6829834D3D9F3D5A10C3550F62 ();
// 0x000001FC ExitGames.Client.Photon.Protocol18_GpType ExitGames.Client.Photon.Protocol18::GetCodeOfType(System.Type)
extern void Protocol18_GetCodeOfType_m47AD9F57F6D43D76B611EDD9900104FC04BEFBEF ();
// 0x000001FD ExitGames.Client.Photon.Protocol18_GpType ExitGames.Client.Photon.Protocol18::GetCodeOfTypeCode(System.TypeCode)
extern void Protocol18_GetCodeOfTypeCode_m0EA57337A363114A76679CCE31B38A48F1167A1B ();
// 0x000001FE System.Object ExitGames.Client.Photon.Protocol18::Read(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_Read_m9D27CC9923E669069DC334215F2DB499125D8B6B ();
// 0x000001FF System.Object ExitGames.Client.Photon.Protocol18::Read(ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void Protocol18_Read_m61E5E105D2A31B8A1F91615A43B7E53A357A9FEC ();
// 0x00000200 System.Boolean ExitGames.Client.Photon.Protocol18::ReadBoolean(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadBoolean_m09EF8B2ECC70DCCD7F775C6614988497E569CF9F ();
// 0x00000201 System.Byte ExitGames.Client.Photon.Protocol18::ReadByte(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadByte_m69C0149AD8DF8F76715FA2363C770E3F4C3711FD ();
// 0x00000202 System.Int16 ExitGames.Client.Photon.Protocol18::ReadInt16(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadInt16_m325617BEF42E33AB8B2E0D0CC0D9B2C11175B5C2 ();
// 0x00000203 System.UInt16 ExitGames.Client.Photon.Protocol18::ReadUShort(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadUShort_m4791151EFA9187B0D080A410442FE7386366322E ();
// 0x00000204 System.Int32 ExitGames.Client.Photon.Protocol18::ReadInt32(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadInt32_m525DE12262451D1E2BC66D441373425B8C25B18A ();
// 0x00000205 System.Int64 ExitGames.Client.Photon.Protocol18::ReadInt64(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadInt64_m519B0B235816AC5DE0E4F4BD92CAF7F8AF4405A1 ();
// 0x00000206 System.Single ExitGames.Client.Photon.Protocol18::ReadSingle(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadSingle_m44CD78186246FF428385FF7D2F2D56309794BAF1 ();
// 0x00000207 System.Double ExitGames.Client.Photon.Protocol18::ReadDouble(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadDouble_mB0631CDAFEA08B473A6B59BCD6C62BD1461C9A52 ();
// 0x00000208 ExitGames.Client.Photon.ByteArraySlice ExitGames.Client.Photon.Protocol18::ReadNonAllocByteArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadNonAllocByteArray_m69856B8E03354CDFD0FA6313282C0741029EA95B ();
// 0x00000209 System.Byte[] ExitGames.Client.Photon.Protocol18::ReadByteArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadByteArray_m14D91DB51B2AD7872B99F68AB6409CBFA06817EA ();
// 0x0000020A System.Object ExitGames.Client.Photon.Protocol18::ReadCustomType(ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void Protocol18_ReadCustomType_mFBEE921AE891B014D67B5E4DD3C2D9C2E73CBC35 ();
// 0x0000020B ExitGames.Client.Photon.EventData ExitGames.Client.Photon.Protocol18::DeserializeEventData(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.EventData,ExitGames.Client.Photon.IProtocol_DeserializationFlags)
extern void Protocol18_DeserializeEventData_mBFD67CF621BA2028089E2CA649E81B66A3D35001 ();
// 0x0000020C System.Collections.Generic.Dictionary`2<System.Byte,System.Object> ExitGames.Client.Photon.Protocol18::ReadParameterTable(ExitGames.Client.Photon.StreamBuffer,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.IProtocol_DeserializationFlags)
extern void Protocol18_ReadParameterTable_m20B52E355731B3974B4EF62621C7A9BD25D4A22C ();
// 0x0000020D ExitGames.Client.Photon.Hashtable ExitGames.Client.Photon.Protocol18::ReadHashtable(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadHashtable_mD710141CC3A0FF91BC58530F351B9A6DB14BC93B ();
// 0x0000020E System.Int32[] ExitGames.Client.Photon.Protocol18::ReadIntArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadIntArray_m169A7B81519670721D2A90E0F484E5D3DA1E04A0 ();
// 0x0000020F ExitGames.Client.Photon.OperationRequest ExitGames.Client.Photon.Protocol18::DeserializeOperationRequest(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_DeserializeOperationRequest_mA854F73766FE113DE6E4028CF249733C8EC04C66 ();
// 0x00000210 ExitGames.Client.Photon.OperationResponse ExitGames.Client.Photon.Protocol18::DeserializeOperationResponse(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_DeserializeOperationResponse_mA82C4B9244B9326B2D16AE201E1B2291C5C66B69 ();
// 0x00000211 System.String ExitGames.Client.Photon.Protocol18::ReadString(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadString_mAC75B2EF0628FCAE9AEA8FCD7840D8A6B924068A ();
// 0x00000212 System.Object ExitGames.Client.Photon.Protocol18::ReadCustomTypeArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCustomTypeArray_m204569CA987CF2BB549C6F45030A39EA840A189A ();
// 0x00000213 System.Type ExitGames.Client.Photon.Protocol18::ReadDictionaryType(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.Protocol18_GpType&,ExitGames.Client.Photon.Protocol18_GpType&)
extern void Protocol18_ReadDictionaryType_mC8334D1135D17093D915C676BB5A42D74AED8707 ();
// 0x00000214 System.Type ExitGames.Client.Photon.Protocol18::ReadDictionaryType(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadDictionaryType_mDA161BB3FDE80804AB9E5F66B604A18EDC2F7650 ();
// 0x00000215 System.Type ExitGames.Client.Photon.Protocol18::GetDictArrayType(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_GetDictArrayType_mBDC7C0C48083F7050597AB5296C2CC0637C0A199 ();
// 0x00000216 System.Collections.IDictionary ExitGames.Client.Photon.Protocol18::ReadDictionary(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadDictionary_m3553058D3EFCBEA739255505FDEE3B02E35553C3 ();
// 0x00000217 System.Boolean ExitGames.Client.Photon.Protocol18::ReadDictionaryElements(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.Protocol18_GpType,ExitGames.Client.Photon.Protocol18_GpType,System.Collections.IDictionary)
extern void Protocol18_ReadDictionaryElements_m8C54B89C1EBE4C5CAE0D6F99B5F219528C5D40AD ();
// 0x00000218 System.Object[] ExitGames.Client.Photon.Protocol18::ReadObjectArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadObjectArray_m0D0F18CBC7B7827EF117C145863F948262F967C2 ();
// 0x00000219 System.Boolean[] ExitGames.Client.Photon.Protocol18::ReadBooleanArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadBooleanArray_m58833E011F33AE636300B6DEB0CE984751E8A730 ();
// 0x0000021A System.Int16[] ExitGames.Client.Photon.Protocol18::ReadInt16Array(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadInt16Array_m2A953148C9FBD96EF97EC69A15DB1FA992C5E3C2 ();
// 0x0000021B System.Single[] ExitGames.Client.Photon.Protocol18::ReadSingleArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadSingleArray_m017B54DC79F670EAB80CC6ED22B86CDA6AF4B9A7 ();
// 0x0000021C System.Double[] ExitGames.Client.Photon.Protocol18::ReadDoubleArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadDoubleArray_mF94A0F44C011134DEE11BA948A338D2225CC479B ();
// 0x0000021D System.String[] ExitGames.Client.Photon.Protocol18::ReadStringArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadStringArray_m96E54FA9BA2E36D25DF420ED8469D7612D4CC2D4 ();
// 0x0000021E ExitGames.Client.Photon.Hashtable[] ExitGames.Client.Photon.Protocol18::ReadHashtableArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadHashtableArray_m193CB1B94226E2033FE3349FD426DC5E8C51BB02 ();
// 0x0000021F System.Collections.IDictionary[] ExitGames.Client.Photon.Protocol18::ReadDictionaryArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadDictionaryArray_m00C8C31D86E808E027C67A28BFBA28C9EB98114D ();
// 0x00000220 System.Array ExitGames.Client.Photon.Protocol18::ReadArrayInArray(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadArrayInArray_m32EB6877B54DDF9702FA50F6C448A1D3384A8155 ();
// 0x00000221 System.Int32 ExitGames.Client.Photon.Protocol18::ReadInt1(ExitGames.Client.Photon.StreamBuffer,System.Boolean)
extern void Protocol18_ReadInt1_m48111FB184E7C418646202A023A8E22B9D39C7E5 ();
// 0x00000222 System.Int32 ExitGames.Client.Photon.Protocol18::ReadInt2(ExitGames.Client.Photon.StreamBuffer,System.Boolean)
extern void Protocol18_ReadInt2_mE30853EE8EB6D9D0BA750A45F830A647E684ABC1 ();
// 0x00000223 System.Int32 ExitGames.Client.Photon.Protocol18::ReadCompressedInt32(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCompressedInt32_m371840CF775F57F7AE78AB82E51D8C7C70FB25F0 ();
// 0x00000224 System.UInt32 ExitGames.Client.Photon.Protocol18::ReadCompressedUInt32(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCompressedUInt32_m66542ABA7395D249A0747393CC8920B5F802064F ();
// 0x00000225 System.Int64 ExitGames.Client.Photon.Protocol18::ReadCompressedInt64(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCompressedInt64_mC4ECE2FBD367E0A7EEE1EEDC273E8513D837A4B7 ();
// 0x00000226 System.UInt64 ExitGames.Client.Photon.Protocol18::ReadCompressedUInt64(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCompressedUInt64_mAFF221F033BFBDF6A056616D10D7702F45EBB3EB ();
// 0x00000227 System.Int32[] ExitGames.Client.Photon.Protocol18::ReadCompressedInt32Array(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCompressedInt32Array_m8EB29DFB2859B2737AC2A80A2B79C1335CBF2038 ();
// 0x00000228 System.Int64[] ExitGames.Client.Photon.Protocol18::ReadCompressedInt64Array(ExitGames.Client.Photon.StreamBuffer)
extern void Protocol18_ReadCompressedInt64Array_m2E9FA6E16E755A2C0063E2540F228F276CA85A72 ();
// 0x00000229 System.Int32 ExitGames.Client.Photon.Protocol18::DecodeZigZag32(System.UInt32)
extern void Protocol18_DecodeZigZag32_mE789A903097FF0C058E84403C1E5D66B6A1D7592 ();
// 0x0000022A System.Int64 ExitGames.Client.Photon.Protocol18::DecodeZigZag64(System.UInt64)
extern void Protocol18_DecodeZigZag64_mA4B01566DDFEAD1301D7F3ABE8DA80A357C530D0 ();
// 0x0000022B System.Void ExitGames.Client.Photon.Protocol18::Write(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_Write_m73A714CDE6DA3FB9803A9E0BC4CE95ADE8B5AE04 ();
// 0x0000022C System.Void ExitGames.Client.Photon.Protocol18::Write(ExitGames.Client.Photon.StreamBuffer,System.Object,ExitGames.Client.Photon.Protocol18_GpType,System.Boolean)
extern void Protocol18_Write_m5C2CB6D4284147F1B85A4F45857FCD71F72A76AF ();
// 0x0000022D System.Void ExitGames.Client.Photon.Protocol18::SerializeEventData(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.EventData,System.Boolean)
extern void Protocol18_SerializeEventData_m71469355539B7876C306CD40454D987F1E5CAB1B ();
// 0x0000022E System.Void ExitGames.Client.Photon.Protocol18::WriteParameterTable(ExitGames.Client.Photon.StreamBuffer,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>)
extern void Protocol18_WriteParameterTable_m795F93199DB86F193D669A282BDF8ADE6992FF0B ();
// 0x0000022F System.Void ExitGames.Client.Photon.Protocol18::SerializeOperationRequest(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.OperationRequest,System.Boolean)
extern void Protocol18_SerializeOperationRequest_m61C28683E1643251CF12B62B44BFE8B36E9D0172 ();
// 0x00000230 System.Void ExitGames.Client.Photon.Protocol18::SerializeOperationRequest(ExitGames.Client.Photon.StreamBuffer,System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Boolean)
extern void Protocol18_SerializeOperationRequest_mC91E109306755AA09A95A80CDA2B8AC9F429607A ();
// 0x00000231 System.Void ExitGames.Client.Photon.Protocol18::SerializeOperationResponse(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.OperationResponse,System.Boolean)
extern void Protocol18_SerializeOperationResponse_mD0611DA8446B85EB0D7D5AB42B5C7C2EE1AC0BD0 ();
// 0x00000232 System.Void ExitGames.Client.Photon.Protocol18::WriteByte(ExitGames.Client.Photon.StreamBuffer,System.Byte,System.Boolean)
extern void Protocol18_WriteByte_m33416CCBB78A8B2CAD1510F0D3E6A0B107476D78 ();
// 0x00000233 System.Void ExitGames.Client.Photon.Protocol18::WriteBoolean(ExitGames.Client.Photon.StreamBuffer,System.Boolean,System.Boolean)
extern void Protocol18_WriteBoolean_m3C0D1766E89BD5741C33A4AC81E6592E8BFF56DD ();
// 0x00000234 System.Void ExitGames.Client.Photon.Protocol18::WriteUShort(ExitGames.Client.Photon.StreamBuffer,System.UInt16)
extern void Protocol18_WriteUShort_m0EDE6298173532F9D3EBA056DD81CD7EE3781B55 ();
// 0x00000235 System.Void ExitGames.Client.Photon.Protocol18::WriteInt16(ExitGames.Client.Photon.StreamBuffer,System.Int16,System.Boolean)
extern void Protocol18_WriteInt16_m41C330F6736B3F6FBFB3EA07CCF47FE02E7B9F2A ();
// 0x00000236 System.Void ExitGames.Client.Photon.Protocol18::WriteDouble(ExitGames.Client.Photon.StreamBuffer,System.Double,System.Boolean)
extern void Protocol18_WriteDouble_mE10393813C2D047703C0C149A37FC1E312AD87D9 ();
// 0x00000237 System.Void ExitGames.Client.Photon.Protocol18::WriteSingle(ExitGames.Client.Photon.StreamBuffer,System.Single,System.Boolean)
extern void Protocol18_WriteSingle_mAA9BC6842D0A5AF65451CBF715B81DD19F584A89 ();
// 0x00000238 System.Void ExitGames.Client.Photon.Protocol18::WriteString(ExitGames.Client.Photon.StreamBuffer,System.String,System.Boolean)
extern void Protocol18_WriteString_m30B7FC29D84F70222FD830326F1291B038EFEA18 ();
// 0x00000239 System.Void ExitGames.Client.Photon.Protocol18::WriteHashtable(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteHashtable_m77A682EAEFBAD2C13059511F17B67B23639CC85E ();
// 0x0000023A System.Void ExitGames.Client.Photon.Protocol18::WriteByteArray(ExitGames.Client.Photon.StreamBuffer,System.Byte[],System.Boolean)
extern void Protocol18_WriteByteArray_mBFF9FA68E419B6F41A113D15276F622125BBC4B3 ();
// 0x0000023B System.Void ExitGames.Client.Photon.Protocol18::WriteArraySegmentByte(ExitGames.Client.Photon.StreamBuffer,System.ArraySegment`1<System.Byte>,System.Boolean)
extern void Protocol18_WriteArraySegmentByte_mCC865D1DB92D094A44DBBF5D8BAD69C18E5810CB ();
// 0x0000023C System.Void ExitGames.Client.Photon.Protocol18::WriteByteArraySlice(ExitGames.Client.Photon.StreamBuffer,ExitGames.Client.Photon.ByteArraySlice,System.Boolean)
extern void Protocol18_WriteByteArraySlice_m331D5F0D79A18A7883A841096B4FAFDCA3455A8E ();
// 0x0000023D System.Void ExitGames.Client.Photon.Protocol18::WriteInt32ArrayCompressed(ExitGames.Client.Photon.StreamBuffer,System.Int32[],System.Boolean)
extern void Protocol18_WriteInt32ArrayCompressed_m89F5A19632AAF511BE5B231EF15B6EEED09AC381 ();
// 0x0000023E System.Void ExitGames.Client.Photon.Protocol18::WriteInt64ArrayCompressed(ExitGames.Client.Photon.StreamBuffer,System.Int64[],System.Boolean)
extern void Protocol18_WriteInt64ArrayCompressed_m57AE0558643E04A32412D231652666127A777230 ();
// 0x0000023F System.Void ExitGames.Client.Photon.Protocol18::WriteBoolArray(ExitGames.Client.Photon.StreamBuffer,System.Boolean[],System.Boolean)
extern void Protocol18_WriteBoolArray_m5C59500591A945A9DD7F6195D17FD204DF9762D9 ();
// 0x00000240 System.Void ExitGames.Client.Photon.Protocol18::WriteInt16Array(ExitGames.Client.Photon.StreamBuffer,System.Int16[],System.Boolean)
extern void Protocol18_WriteInt16Array_mC3483498582DF683B593AF496A09E0117F573FE0 ();
// 0x00000241 System.Void ExitGames.Client.Photon.Protocol18::WriteSingleArray(ExitGames.Client.Photon.StreamBuffer,System.Single[],System.Boolean)
extern void Protocol18_WriteSingleArray_mE66D3E9E456A71C9964CCD0F7489CA08A58DF24C ();
// 0x00000242 System.Void ExitGames.Client.Photon.Protocol18::WriteDoubleArray(ExitGames.Client.Photon.StreamBuffer,System.Double[],System.Boolean)
extern void Protocol18_WriteDoubleArray_m3EAE5076D653D8AC79F288B8CEA06AD7607EE036 ();
// 0x00000243 System.Void ExitGames.Client.Photon.Protocol18::WriteStringArray(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteStringArray_mE8D7031FAD1C3328AC41443EB9780910D53BFE80 ();
// 0x00000244 System.Void ExitGames.Client.Photon.Protocol18::WriteObjectArray(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteObjectArray_mBBD60F6EA1C05FCAC2BE7C0AF8CF06211F20D8D3 ();
// 0x00000245 System.Void ExitGames.Client.Photon.Protocol18::WriteObjectArray(ExitGames.Client.Photon.StreamBuffer,System.Collections.IList,System.Boolean)
extern void Protocol18_WriteObjectArray_mB5ABEB17E89B8ABEB20348967D5DDD13258067FD ();
// 0x00000246 System.Void ExitGames.Client.Photon.Protocol18::WriteArrayInArray(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteArrayInArray_m7F67476CFF6D1AB26097DB3C9FC62BE43EFF7A27 ();
// 0x00000247 System.Void ExitGames.Client.Photon.Protocol18::WriteCustomTypeBody(ExitGames.Client.Photon.CustomType,ExitGames.Client.Photon.StreamBuffer,System.Object)
extern void Protocol18_WriteCustomTypeBody_m94619A7404008056170EBC06EED7C01F060325BA ();
// 0x00000248 System.Void ExitGames.Client.Photon.Protocol18::WriteCustomType(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteCustomType_m7368F098813F04EF4F0B9A207842E749F40A472C ();
// 0x00000249 System.Void ExitGames.Client.Photon.Protocol18::WriteCustomTypeArray(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteCustomTypeArray_m1B16E869BB2BA95A7E212D47F347DE9494E9FA81 ();
// 0x0000024A System.Boolean ExitGames.Client.Photon.Protocol18::WriteArrayHeader(ExitGames.Client.Photon.StreamBuffer,System.Type)
extern void Protocol18_WriteArrayHeader_mFEE34B579607FAF70CFB6154FE28CC39B9D7DADB ();
// 0x0000024B System.Void ExitGames.Client.Photon.Protocol18::WriteDictionaryElements(ExitGames.Client.Photon.StreamBuffer,System.Collections.IDictionary,ExitGames.Client.Photon.Protocol18_GpType,ExitGames.Client.Photon.Protocol18_GpType)
extern void Protocol18_WriteDictionaryElements_m5D2F30A1F7F1F2AEC9D6C72414C401014A22BC4B ();
// 0x0000024C System.Void ExitGames.Client.Photon.Protocol18::WriteDictionary(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteDictionary_m036D722A55DE43860C9D4D029F541BF70A00C490 ();
// 0x0000024D System.Void ExitGames.Client.Photon.Protocol18::WriteDictionaryHeader(ExitGames.Client.Photon.StreamBuffer,System.Type,ExitGames.Client.Photon.Protocol18_GpType&,ExitGames.Client.Photon.Protocol18_GpType&)
extern void Protocol18_WriteDictionaryHeader_m2440FDCE137BBE981959C742975D2484F39BFD88 ();
// 0x0000024E System.Boolean ExitGames.Client.Photon.Protocol18::WriteArrayType(ExitGames.Client.Photon.StreamBuffer,System.Type,ExitGames.Client.Photon.Protocol18_GpType&)
extern void Protocol18_WriteArrayType_mA45ACD43AFD931006C2352F744F53E5327167D4B ();
// 0x0000024F System.Void ExitGames.Client.Photon.Protocol18::WriteHashtableArray(ExitGames.Client.Photon.StreamBuffer,System.Object,System.Boolean)
extern void Protocol18_WriteHashtableArray_m84577CFA722BEDD36CF6AB72CC3FC5879C50DAC2 ();
// 0x00000250 System.Void ExitGames.Client.Photon.Protocol18::WriteDictionaryArray(ExitGames.Client.Photon.StreamBuffer,System.Collections.IDictionary[],System.Boolean)
extern void Protocol18_WriteDictionaryArray_m4F491DBE85000B55D53F5D7A7FA4103E32CC82DB ();
// 0x00000251 System.Void ExitGames.Client.Photon.Protocol18::WriteIntLength(ExitGames.Client.Photon.StreamBuffer,System.Int32)
extern void Protocol18_WriteIntLength_mD68719432808ACE0F203847CDB8EC8CF3E28B11D ();
// 0x00000252 System.Void ExitGames.Client.Photon.Protocol18::WriteVarInt32(ExitGames.Client.Photon.StreamBuffer,System.Int32,System.Boolean)
extern void Protocol18_WriteVarInt32_mC96B19773B33C784D495A88C75AD158AEE93AC43 ();
// 0x00000253 System.Void ExitGames.Client.Photon.Protocol18::WriteCompressedInt32(ExitGames.Client.Photon.StreamBuffer,System.Int32,System.Boolean)
extern void Protocol18_WriteCompressedInt32_m1535B2718A6E734633EE9BE738FB4D50DBF07319 ();
// 0x00000254 System.Void ExitGames.Client.Photon.Protocol18::WriteCompressedInt64(ExitGames.Client.Photon.StreamBuffer,System.Int64,System.Boolean)
extern void Protocol18_WriteCompressedInt64_m2A05B5DBF5F28A34E7FAE4E05CC043FD687A4947 ();
// 0x00000255 System.Void ExitGames.Client.Photon.Protocol18::WriteCompressedUInt32(ExitGames.Client.Photon.StreamBuffer,System.UInt32)
extern void Protocol18_WriteCompressedUInt32_m024571C95341B408296D7406349DECB57E2090F0 ();
// 0x00000256 System.Int32 ExitGames.Client.Photon.Protocol18::WriteCompressedUInt32(System.Byte[],System.UInt32)
extern void Protocol18_WriteCompressedUInt32_mD603BE51F59E311558A263A3156A1CBC0D01C6E8 ();
// 0x00000257 System.Void ExitGames.Client.Photon.Protocol18::WriteCompressedUInt64(ExitGames.Client.Photon.StreamBuffer,System.UInt64)
extern void Protocol18_WriteCompressedUInt64_mD56830FAB34BBA2B3AB2EE75C06C01FBE6988C80 ();
// 0x00000258 System.UInt32 ExitGames.Client.Photon.Protocol18::EncodeZigZag32(System.Int32)
extern void Protocol18_EncodeZigZag32_mF224F1BCB5923CCC9CBB3135F59F3FCE11B2DB27 ();
// 0x00000259 System.UInt64 ExitGames.Client.Photon.Protocol18::EncodeZigZag64(System.Int64)
extern void Protocol18_EncodeZigZag64_mD76DBCE870ACC0F0ACA73B2A64055E8ABACBD7A0 ();
// 0x0000025A System.Void ExitGames.Client.Photon.Protocol18::.ctor()
extern void Protocol18__ctor_m904937EE6741DACE09887DECDA60335EB09E42C1 ();
// 0x0000025B System.Void ExitGames.Client.Photon.Protocol18::.cctor()
extern void Protocol18__cctor_m8BCFF9953364B1B95B92D43E43A3D37EEA1DCB38 ();
// 0x0000025C System.Boolean ExitGames.Client.Photon.SendOptions::get_Reliability()
extern void SendOptions_get_Reliability_mB9E2E4D1E480B8C6B3C7A6F1DD545FF4B78D39E5_AdjustorThunk ();
// 0x0000025D System.Void ExitGames.Client.Photon.SendOptions::set_Reliability(System.Boolean)
extern void SendOptions_set_Reliability_mADA7DAE82827E9DF7E14AD0CEFE9DB5DC2C51B73_AdjustorThunk ();
// 0x0000025E System.Void ExitGames.Client.Photon.SendOptions::.cctor()
extern void SendOptions__cctor_m83B66BD3E7FCE1761C9F1E8F6F159C232CCE0E36 ();
// 0x0000025F System.IntPtr ExitGames.Client.Photon.SocketNative::egconnect(System.String)
extern void SocketNative_egconnect_mCD9797D96D6B467639BC2CD61808AF1D869BBA3B ();
// 0x00000260 System.IntPtr ExitGames.Client.Photon.SocketNative::egconnectWithProtocol(System.String,System.Byte)
extern void SocketNative_egconnectWithProtocol_m2FADC800D8628186790CF16CDE7F2B3E2C07786A ();
// 0x00000261 System.IntPtr ExitGames.Client.Photon.SocketNative::egconnectWithProtocols(System.String,System.Byte,System.String,System.String,System.Byte,System.Byte)
extern void SocketNative_egconnectWithProtocols_mE6386861F5AEDBC11CEDA50A88F6FB4EB8986B50 ();
// 0x00000262 System.Byte ExitGames.Client.Photon.SocketNative::eggetState(System.IntPtr)
extern void SocketNative_eggetState_m5309E241F34AEF1DFBD4415CDA322AA3504B5F54 ();
// 0x00000263 System.Void ExitGames.Client.Photon.SocketNative::egdisconnect(System.IntPtr)
extern void SocketNative_egdisconnect_m055A1CA9CB7EB1CA7A873C3789BF6AFE7FD38919 ();
// 0x00000264 System.UInt32 ExitGames.Client.Photon.SocketNative::egservice(System.IntPtr)
extern void SocketNative_egservice_mCAE6C28C2AACAEDFCCCF78F3F64F6D777763029A ();
// 0x00000265 System.Boolean ExitGames.Client.Photon.SocketNative::egsend(System.IntPtr,System.Byte[],System.UInt32)
extern void SocketNative_egsend_mAA5970A5CBC4758115710312F322CF66760D81B1 ();
// 0x00000266 System.UInt32 ExitGames.Client.Photon.SocketNative::egread(System.IntPtr,System.Byte[],System.UInt32&)
extern void SocketNative_egread_m6669BF49A5347A59FCD6B838B86CD74D3C58E3D6 ();
// 0x00000267 System.Void ExitGames.Client.Photon.SocketNative::egsetSocketLoggingCallback(System.IntPtr,System.IntPtr,ExitGames.Client.Photon.SocketNative_LogCallbackDelegate)
extern void SocketNative_egsetSocketLoggingCallback_mC1B44035A9976284C6DDB2CE1D56A3A3F2AECF1E ();
// 0x00000268 System.Boolean ExitGames.Client.Photon.SocketNative::egsetSocketLoggingLevel(System.IntPtr,System.Int32)
extern void SocketNative_egsetSocketLoggingLevel_mF429EA928F014F6665A1672B88833C5AA19B97FB ();
// 0x00000269 System.Boolean ExitGames.Client.Photon.SocketNative::eggetUsingIPv6(System.IntPtr)
extern void SocketNative_eggetUsingIPv6_m3C8A8369E378F88C0DA7859408A9CB43F21ACABE ();
// 0x0000026A System.Void ExitGames.Client.Photon.SocketNative::.ctor(ExitGames.Client.Photon.PeerBase)
extern void SocketNative__ctor_mAC7E452D81D3E980480B261B5A6CA89F2EB44FA1 ();
// 0x0000026B System.Void ExitGames.Client.Photon.SocketNative::Finalize()
extern void SocketNative_Finalize_mDAA5BD06A6EB56788CB3DC2CD6F73685C427996F ();
// 0x0000026C System.Void ExitGames.Client.Photon.SocketNative::Dispose()
extern void SocketNative_Dispose_mEC8082F6B417D9C0A9DECAF801F15DA633F95532 ();
// 0x0000026D System.Boolean ExitGames.Client.Photon.SocketNative::Connect()
extern void SocketNative_Connect_m195A8252C351519A151F8E46049CEEFE866689B9 ();
// 0x0000026E System.Void ExitGames.Client.Photon.SocketNative::DebugReturn(System.IntPtr,System.Int32,System.String)
extern void SocketNative_DebugReturn_m57A3B3D9668570D5B53FA296404BA037BE79FF6A ();
// 0x0000026F System.Void ExitGames.Client.Photon.SocketNative::DnsAndConnect()
extern void SocketNative_DnsAndConnect_m8140639DD0784E471DAC7FEB3AF372D7242682BB ();
// 0x00000270 System.Boolean ExitGames.Client.Photon.SocketNative::Disconnect()
extern void SocketNative_Disconnect_m2DAE0DC4EB992ABC8AAD3E56D63F29DBCB7500D3 ();
// 0x00000271 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketNative::Send(System.Byte[],System.Int32)
extern void SocketNative_Send_mFB9FA5FCDAA51846CB8BF7332F5F77617E0E63EC ();
// 0x00000272 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketNative::Receive(System.Byte[]&)
extern void SocketNative_Receive_m0D231453489757D9D94D130C634C3BD1C39ABF90 ();
// 0x00000273 System.Void ExitGames.Client.Photon.SocketNative::ReceiveLoop()
extern void SocketNative_ReceiveLoop_m9226DBEFBAF0D8FEBAAFEEC0D463B2AB816844C2 ();
// 0x00000274 System.Void ExitGames.Client.Photon.SocketNative::.cctor()
extern void SocketNative__cctor_m31A61874E29413093D4F0C7609857D7F29A4E2A9 ();
// 0x00000275 System.Void ExitGames.Client.Photon.SocketNative_LogCallbackDelegate::.ctor(System.Object,System.IntPtr)
extern void LogCallbackDelegate__ctor_m738475A65A314165A8EE8A36F32F4D0BD3904AD9 ();
// 0x00000276 System.Void ExitGames.Client.Photon.SocketNative_LogCallbackDelegate::Invoke(System.IntPtr,System.Int32,System.String)
extern void LogCallbackDelegate_Invoke_m9E512E8B25FD35891CB558D41A705534CA153487 ();
// 0x00000277 System.IAsyncResult ExitGames.Client.Photon.SocketNative_LogCallbackDelegate::BeginInvoke(System.IntPtr,System.Int32,System.String,System.AsyncCallback,System.Object)
extern void LogCallbackDelegate_BeginInvoke_m9A55504423C71C153158C3B8EB75C69337897933 ();
// 0x00000278 System.Void ExitGames.Client.Photon.SocketNative_LogCallbackDelegate::EndInvoke(System.IAsyncResult)
extern void LogCallbackDelegate_EndInvoke_m5FC716060AE1BA2761BAF4DF37513CEB8827B280 ();
// 0x00000279 System.Void ExitGames.Client.Photon.SocketTcp::.ctor(ExitGames.Client.Photon.PeerBase)
extern void SocketTcp__ctor_m1FC77993862E696BAC65926A18164F48527DB579 ();
// 0x0000027A System.Void ExitGames.Client.Photon.SocketTcp::Finalize()
extern void SocketTcp_Finalize_m0B126D83B72D1F0D1F0D4CE3134078888DE22CA7 ();
// 0x0000027B System.Void ExitGames.Client.Photon.SocketTcp::Dispose()
extern void SocketTcp_Dispose_m41D5471FD860A3E0CE6F64EEE962835F93F70F53 ();
// 0x0000027C System.Boolean ExitGames.Client.Photon.SocketTcp::Connect()
extern void SocketTcp_Connect_mF96DCF220E6AA7CEA450E406149FEB24D2AA1B96 ();
// 0x0000027D System.Boolean ExitGames.Client.Photon.SocketTcp::Disconnect()
extern void SocketTcp_Disconnect_m50D6523373042EC57F09BF088F96B3FCB497D41D ();
// 0x0000027E ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketTcp::Send(System.Byte[],System.Int32)
extern void SocketTcp_Send_mE5189FF4939934E70403A0A9CEC5959BFD24C5B0 ();
// 0x0000027F ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketTcp::Receive(System.Byte[]&)
extern void SocketTcp_Receive_m15762EAC1D9D2E75856EC2949A1678648858F9DF ();
// 0x00000280 System.Void ExitGames.Client.Photon.SocketTcp::DnsAndConnect()
extern void SocketTcp_DnsAndConnect_m29CEF5F86490E850F2454A1E663710ACAA0DCE3C ();
// 0x00000281 System.Void ExitGames.Client.Photon.SocketTcp::ReceiveLoop()
extern void SocketTcp_ReceiveLoop_m0A11421FEFC7824B85F7730551043D2C8B29E363 ();
// 0x00000282 System.Void ExitGames.Client.Photon.SocketTcpAsync::.ctor(ExitGames.Client.Photon.PeerBase)
extern void SocketTcpAsync__ctor_mAFEB040D9ACA65C39EAD01A5304A734686E22CEA ();
// 0x00000283 System.Void ExitGames.Client.Photon.SocketTcpAsync::Finalize()
extern void SocketTcpAsync_Finalize_m31940AD287B22E079CF35A40F69B2ECB2A8930AE ();
// 0x00000284 System.Void ExitGames.Client.Photon.SocketTcpAsync::Dispose()
extern void SocketTcpAsync_Dispose_m9D403DD7071002144E9A9D590D6F39AA40418623 ();
// 0x00000285 System.Boolean ExitGames.Client.Photon.SocketTcpAsync::Connect()
extern void SocketTcpAsync_Connect_mD43A6792ED371F50879A5882602CFE2FA9F7D2B3 ();
// 0x00000286 System.Boolean ExitGames.Client.Photon.SocketTcpAsync::Disconnect()
extern void SocketTcpAsync_Disconnect_mB7BBCE1CEAB7AB7CE6AE86AF914742F0D59D5F43 ();
// 0x00000287 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketTcpAsync::Send(System.Byte[],System.Int32)
extern void SocketTcpAsync_Send_mB281053D5C27E3E460D732FC8EF9A6B052008DB0 ();
// 0x00000288 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketTcpAsync::Receive(System.Byte[]&)
extern void SocketTcpAsync_Receive_m1A71D8CB4C3B8021E9EB6BC968642EEF87BC55BE ();
// 0x00000289 System.Void ExitGames.Client.Photon.SocketTcpAsync::DnsAndConnect()
extern void SocketTcpAsync_DnsAndConnect_m25337F211EC6F1A4161D466AA039FB9995563390 ();
// 0x0000028A System.Void ExitGames.Client.Photon.SocketTcpAsync::ReceiveAsync(ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext)
extern void SocketTcpAsync_ReceiveAsync_m7B3AADE1D967E46585411C45FE1076B547071DC2 ();
// 0x0000028B System.Void ExitGames.Client.Photon.SocketTcpAsync::ReceiveAsync(System.IAsyncResult)
extern void SocketTcpAsync_ReceiveAsync_m0BE92180CFD38C36058B7A2DDFB7657453181D46 ();
// 0x0000028C System.Void ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::.ctor(System.Net.Sockets.Socket,System.Byte[],System.Byte[])
extern void ReceiveContext__ctor_mD0FFDD27CD5F60A2EA6631D9FD08DD20AEE5FF60 ();
// 0x0000028D System.Boolean ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::get_ReadingHeader()
extern void ReceiveContext_get_ReadingHeader_m147C3DB4AA621EC85E5D3818E0763644AF19AB86 ();
// 0x0000028E System.Boolean ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::get_ReadingMessage()
extern void ReceiveContext_get_ReadingMessage_m0B9F3AFBC8ED072BC2DB1A6155FF3DA72BFFE58B ();
// 0x0000028F System.Byte[] ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::get_CurrentBuffer()
extern void ReceiveContext_get_CurrentBuffer_m3578ECD8D80BB8163CE718378F6CBF657C359918 ();
// 0x00000290 System.Int32 ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::get_CurrentOffset()
extern void ReceiveContext_get_CurrentOffset_m81A6885AA8A07309E28668FE4A04EC76D7151CD7 ();
// 0x00000291 System.Int32 ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::get_CurrentExpected()
extern void ReceiveContext_get_CurrentExpected_m19C0734395CA07EED8999471FA327428735DCA45 ();
// 0x00000292 System.Void ExitGames.Client.Photon.SocketTcpAsync_ReceiveContext::Reset()
extern void ReceiveContext_Reset_m819ED7F6F8A218E59843793F6B2250F2C9382C5B ();
// 0x00000293 System.Void ExitGames.Client.Photon.SocketUdp::.ctor(ExitGames.Client.Photon.PeerBase)
extern void SocketUdp__ctor_mD43E04011545C47312C8506E224E97996C126879 ();
// 0x00000294 System.Void ExitGames.Client.Photon.SocketUdp::Finalize()
extern void SocketUdp_Finalize_m518B1CA7F30506B96122041858301EF62AC3FF00 ();
// 0x00000295 System.Void ExitGames.Client.Photon.SocketUdp::Dispose()
extern void SocketUdp_Dispose_mD017BC921C27BE84946CE2A396F207FCB5F5610F ();
// 0x00000296 System.Boolean ExitGames.Client.Photon.SocketUdp::Connect()
extern void SocketUdp_Connect_m2E9113D01EF9522A766231CB9A9F762BE9119842 ();
// 0x00000297 System.Boolean ExitGames.Client.Photon.SocketUdp::Disconnect()
extern void SocketUdp_Disconnect_mA6A8EC8FB4AC18F8A4874CCC97C70F83202958A8 ();
// 0x00000298 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketUdp::Send(System.Byte[],System.Int32)
extern void SocketUdp_Send_m61C1BBF1FEF87C3062111959CB892A0DB41B1375 ();
// 0x00000299 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketUdp::Receive(System.Byte[]&)
extern void SocketUdp_Receive_m821EFA9D1771B431B6A7576AE95DFF0FED9F1604 ();
// 0x0000029A System.Void ExitGames.Client.Photon.SocketUdp::DnsAndConnect()
extern void SocketUdp_DnsAndConnect_mF7904D653B4BCF5FBA3D266434D2D82C347CBE92 ();
// 0x0000029B System.Void ExitGames.Client.Photon.SocketUdp::ReceiveLoop()
extern void SocketUdp_ReceiveLoop_m076AD69BC9F671185CA880752FBFCA9248252989 ();
// 0x0000029C System.Void ExitGames.Client.Photon.SocketUdpAsync::.ctor(ExitGames.Client.Photon.PeerBase)
extern void SocketUdpAsync__ctor_m9AC715DCF9F757FF715DA98952186D985C54F01D ();
// 0x0000029D System.Void ExitGames.Client.Photon.SocketUdpAsync::Finalize()
extern void SocketUdpAsync_Finalize_m115209069FB117E2F975062A3524B2F69F4FCE45 ();
// 0x0000029E System.Void ExitGames.Client.Photon.SocketUdpAsync::Dispose()
extern void SocketUdpAsync_Dispose_m712E721AAD8984F852358E7874A74A2602D2A828 ();
// 0x0000029F System.Boolean ExitGames.Client.Photon.SocketUdpAsync::Connect()
extern void SocketUdpAsync_Connect_m050F4133F151399D66905B92DBD87A72A3C1C601 ();
// 0x000002A0 System.Boolean ExitGames.Client.Photon.SocketUdpAsync::Disconnect()
extern void SocketUdpAsync_Disconnect_mE5BF5C6DD78FD405A241382A4C6B158F0E1E1B10 ();
// 0x000002A1 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketUdpAsync::Send(System.Byte[],System.Int32)
extern void SocketUdpAsync_Send_mBEC5CFD3F3B5E73BFF2FFCE241E775A221B78C0E ();
// 0x000002A2 ExitGames.Client.Photon.PhotonSocketError ExitGames.Client.Photon.SocketUdpAsync::Receive(System.Byte[]&)
extern void SocketUdpAsync_Receive_m279194C97701743E1846E7DAF6CC3BCA4F5EE8AC ();
// 0x000002A3 System.Void ExitGames.Client.Photon.SocketUdpAsync::DnsAndConnect()
extern void SocketUdpAsync_DnsAndConnect_m2A5250EAC0B3AAEEEDA5474FA0103B7AF4D70E97 ();
// 0x000002A4 System.Void ExitGames.Client.Photon.SocketUdpAsync::StartReceive()
extern void SocketUdpAsync_StartReceive_mAB6E95D87E20F6CF82D2670F8F2D8884A16BA79E ();
// 0x000002A5 System.Void ExitGames.Client.Photon.SocketUdpAsync::OnReceive(System.IAsyncResult)
extern void SocketUdpAsync_OnReceive_mA8080FF94F06A2EE2ED80062008E0C2E020EC10F ();
// 0x000002A6 System.Void ExitGames.Client.Photon.StreamBuffer::.ctor(System.Int32)
extern void StreamBuffer__ctor_m70E35CA204B802318F9870E2FE7AB43B53727C25 ();
// 0x000002A7 System.Void ExitGames.Client.Photon.StreamBuffer::.ctor(System.Byte[])
extern void StreamBuffer__ctor_m3BDBD16C2E872DE0910B9DA926381E5609AE70EB ();
// 0x000002A8 System.Byte[] ExitGames.Client.Photon.StreamBuffer::ToArray()
extern void StreamBuffer_ToArray_m6F5CEF8E299866BF9EC508000E97DA4AC4963068 ();
// 0x000002A9 System.Byte[] ExitGames.Client.Photon.StreamBuffer::ToArrayFromPos()
extern void StreamBuffer_ToArrayFromPos_m7361408407581A5019AB0C5E9F6D5BA30AAFB0D1 ();
// 0x000002AA System.Void ExitGames.Client.Photon.StreamBuffer::Compact()
extern void StreamBuffer_Compact_m01AFF59604B6F5E2DD29C212F435F2F7701BFDC3 ();
// 0x000002AB System.Byte[] ExitGames.Client.Photon.StreamBuffer::GetBuffer()
extern void StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F ();
// 0x000002AC System.Byte[] ExitGames.Client.Photon.StreamBuffer::GetBufferAndAdvance(System.Int32,System.Int32&)
extern void StreamBuffer_GetBufferAndAdvance_mF3B6E52CAB033802EE9B82C597FA5ACFA4C121E0 ();
// 0x000002AD System.Boolean ExitGames.Client.Photon.StreamBuffer::get_CanRead()
extern void StreamBuffer_get_CanRead_mE277D8FE3EE852500D234F9F822ADE209133D4BA ();
// 0x000002AE System.Boolean ExitGames.Client.Photon.StreamBuffer::get_CanSeek()
extern void StreamBuffer_get_CanSeek_mFBA6E85E77AC72D154F5233C757E6087B1A5002A ();
// 0x000002AF System.Boolean ExitGames.Client.Photon.StreamBuffer::get_CanWrite()
extern void StreamBuffer_get_CanWrite_m56E05511B7AFAD817D95A54ECD5A56F6A1963BE3 ();
// 0x000002B0 System.Int32 ExitGames.Client.Photon.StreamBuffer::get_Length()
extern void StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2 ();
// 0x000002B1 System.Int32 ExitGames.Client.Photon.StreamBuffer::get_Position()
extern void StreamBuffer_get_Position_mC4746E9262254E8130F8C7DB11A9489B0A98760E ();
// 0x000002B2 System.Void ExitGames.Client.Photon.StreamBuffer::set_Position(System.Int32)
extern void StreamBuffer_set_Position_m49211B25575DD81EC94CA6E69E39841C93619E4A ();
// 0x000002B3 System.Void ExitGames.Client.Photon.StreamBuffer::Flush()
extern void StreamBuffer_Flush_mBA58584E3F44D8328994487B0030852B55FA2098 ();
// 0x000002B4 System.Int64 ExitGames.Client.Photon.StreamBuffer::Seek(System.Int64,System.IO.SeekOrigin)
extern void StreamBuffer_Seek_m6827D7C87CF3A248BE3F123B3A54D0AC3FD37B4E ();
// 0x000002B5 System.Void ExitGames.Client.Photon.StreamBuffer::SetLength(System.Int64)
extern void StreamBuffer_SetLength_m12A6391CD4BD83881DFF0EE18D08964A015539B5 ();
// 0x000002B6 System.Void ExitGames.Client.Photon.StreamBuffer::SetCapacityMinimum(System.Int32)
extern void StreamBuffer_SetCapacityMinimum_mEEA2EA22EE3C5AD983AF980715774DA189EAFAB3 ();
// 0x000002B7 System.Int32 ExitGames.Client.Photon.StreamBuffer::Read(System.Byte[],System.Int32,System.Int32)
extern void StreamBuffer_Read_m4EB945D2C6774F75BD84A5E6367BFE84C7AAFCA5 ();
// 0x000002B8 System.Void ExitGames.Client.Photon.StreamBuffer::Write(System.Byte[],System.Int32,System.Int32)
extern void StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C ();
// 0x000002B9 System.Byte ExitGames.Client.Photon.StreamBuffer::ReadByte()
extern void StreamBuffer_ReadByte_mBC2B7659E1F053CF39D5B66F5F12363F42255AC9 ();
// 0x000002BA System.Void ExitGames.Client.Photon.StreamBuffer::WriteByte(System.Byte)
extern void StreamBuffer_WriteByte_m391D768883E5A53E68E7802E216ABAD03BB16DC6 ();
// 0x000002BB System.Void ExitGames.Client.Photon.StreamBuffer::WriteBytes(System.Byte,System.Byte)
extern void StreamBuffer_WriteBytes_m0ECF17B11CBAD593BED9CCD8AC5150859950703A ();
// 0x000002BC System.Void ExitGames.Client.Photon.StreamBuffer::WriteBytes(System.Byte,System.Byte,System.Byte)
extern void StreamBuffer_WriteBytes_mA6F65844E70B294D4216D370612804982CD2096D ();
// 0x000002BD System.Void ExitGames.Client.Photon.StreamBuffer::WriteBytes(System.Byte,System.Byte,System.Byte,System.Byte)
extern void StreamBuffer_WriteBytes_m7840037AE6F70E4F52FCA5915B4CB062E9791C1F ();
// 0x000002BE System.Void ExitGames.Client.Photon.StreamBuffer::WriteBytes(System.Byte,System.Byte,System.Byte,System.Byte,System.Byte,System.Byte,System.Byte,System.Byte)
extern void StreamBuffer_WriteBytes_m317E369FC834716F00DEA95A9FAA07EAB1BC1570 ();
// 0x000002BF System.Boolean ExitGames.Client.Photon.StreamBuffer::CheckSize(System.Int32)
extern void StreamBuffer_CheckSize_m418A320C08538200925D1E11868966042F3A508A ();
// 0x000002C0 System.Collections.Generic.List`1<System.Reflection.MethodInfo> ExitGames.Client.Photon.SupportClass::GetMethods(System.Type,System.Type)
extern void SupportClass_GetMethods_mC692EFCEACCC2C355BE7DAD291047B4984D29C1B ();
// 0x000002C1 System.Int32 ExitGames.Client.Photon.SupportClass::GetTickCount()
extern void SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15 ();
// 0x000002C2 System.Byte ExitGames.Client.Photon.SupportClass::StartBackgroundCalls(System.Func`1<System.Boolean>,System.Int32,System.String)
extern void SupportClass_StartBackgroundCalls_m4A8E179704C1F39B8BC274A0C6185168BAFEE0D8 ();
// 0x000002C3 System.Boolean ExitGames.Client.Photon.SupportClass::StopBackgroundCalls(System.Byte)
extern void SupportClass_StopBackgroundCalls_mAEEFE83BF78C6006DDC019FD7965F223E6AD1404 ();
// 0x000002C4 System.Boolean ExitGames.Client.Photon.SupportClass::StopAllBackgroundCalls()
extern void SupportClass_StopAllBackgroundCalls_mDFC15194694FE3AC25024132C8E0DBF69B1AF901 ();
// 0x000002C5 System.Void ExitGames.Client.Photon.SupportClass::WriteStackTrace(System.Exception,System.IO.TextWriter)
extern void SupportClass_WriteStackTrace_m10DB7B98F45AF1B2A0FFFCDCFB175C155B99363D ();
// 0x000002C6 System.Void ExitGames.Client.Photon.SupportClass::WriteStackTrace(System.Exception)
extern void SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385 ();
// 0x000002C7 System.String ExitGames.Client.Photon.SupportClass::DictionaryToString(System.Collections.IDictionary)
extern void SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771 ();
// 0x000002C8 System.String ExitGames.Client.Photon.SupportClass::DictionaryToString(System.Collections.IDictionary,System.Boolean)
extern void SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405 ();
// 0x000002C9 System.String ExitGames.Client.Photon.SupportClass::HashtableToString(ExitGames.Client.Photon.Hashtable)
extern void SupportClass_HashtableToString_m87348FF98FB2C6DDFACA0FB6FA97B43AC4E01B4B ();
// 0x000002CA System.String ExitGames.Client.Photon.SupportClass::ByteArrayToString(System.Byte[])
extern void SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1 ();
// 0x000002CB System.UInt32[] ExitGames.Client.Photon.SupportClass::InitializeTable(System.UInt32)
extern void SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1 ();
// 0x000002CC System.UInt32 ExitGames.Client.Photon.SupportClass::CalculateCrc(System.Byte[],System.Int32)
extern void SupportClass_CalculateCrc_m15CFA22FBD259CC231E7366EC299D4F6077DB3D3 ();
// 0x000002CD System.Void ExitGames.Client.Photon.SupportClass::.ctor()
extern void SupportClass__ctor_m53AD9535E4A79AD7674D7B72D0329CE8E132BB78 ();
// 0x000002CE System.Void ExitGames.Client.Photon.SupportClass::.cctor()
extern void SupportClass__cctor_m4A38DC2C2A324BCBE343E42C9266F8289CA69F6D ();
// 0x000002CF System.Void ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::.ctor(System.Object,System.IntPtr)
extern void IntegerMillisecondsDelegate__ctor_m8D2F4B02FBF44CED73C0CB458806E986FEF36989 ();
// 0x000002D0 System.Int32 ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::Invoke()
extern void IntegerMillisecondsDelegate_Invoke_m1D6A82EA4C00DD01FE6DB867E1D5111DB6030916 ();
// 0x000002D1 System.IAsyncResult ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::BeginInvoke(System.AsyncCallback,System.Object)
extern void IntegerMillisecondsDelegate_BeginInvoke_mC17635B0E9C8AB14A13C490A4E38F34A683074A8 ();
// 0x000002D2 System.Int32 ExitGames.Client.Photon.SupportClass_IntegerMillisecondsDelegate::EndInvoke(System.IAsyncResult)
extern void IntegerMillisecondsDelegate_EndInvoke_m9975254F86D41320F36942B66260AD2BF809E719 ();
// 0x000002D3 System.Int32 ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::Next()
extern void ThreadSafeRandom_Next_mDB4C15751362E0579C6354B6CCE56DAE6DD9EE47 ();
// 0x000002D4 System.Void ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::.ctor()
extern void ThreadSafeRandom__ctor_m7546D8A0EFD5AE34896563B7A245A72D02675C67 ();
// 0x000002D5 System.Void ExitGames.Client.Photon.SupportClass_ThreadSafeRandom::.cctor()
extern void ThreadSafeRandom__cctor_m9DBC66948E48D5FEEC2A252F76D9A1FF2F54F9A8 ();
// 0x000002D6 System.Void ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0::.ctor()
extern void U3CU3Ec__DisplayClass6_0__ctor_m9239E5DEB52C89E747C3C22914C9E233DD5CA480 ();
// 0x000002D7 System.Void ExitGames.Client.Photon.SupportClass_<>c__DisplayClass6_0::<StartBackgroundCalls>b__0()
extern void U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A ();
// 0x000002D8 System.Void ExitGames.Client.Photon.SupportClass_<>c::.cctor()
extern void U3CU3Ec__cctor_m205A8B45E71762ECAD6FB159EABBB57129D374F1 ();
// 0x000002D9 System.Void ExitGames.Client.Photon.SupportClass_<>c::.ctor()
extern void U3CU3Ec__ctor_mB3AFC86D8A660853BAF4DE2FCE7A0906752903EE ();
// 0x000002DA System.Int32 ExitGames.Client.Photon.SupportClass_<>c::<.cctor>b__20_0()
extern void U3CU3Ec_U3C_cctorU3Eb__20_0_mCEEC27615777A8FFF2C68CADE7171D62AB87837C ();
// 0x000002DB System.Void ExitGames.Client.Photon.Pool`1::.ctor(System.Func`1<T>,System.Action`1<T>,System.Int32)
// 0x000002DC System.Void ExitGames.Client.Photon.Pool`1::.ctor(System.Func`1<T>,System.Int32)
// 0x000002DD System.Int32 ExitGames.Client.Photon.Pool`1::get_Count()
// 0x000002DE System.Void ExitGames.Client.Photon.Pool`1::CreatePoolItems(System.Int32)
// 0x000002DF System.Void ExitGames.Client.Photon.Pool`1::Push(T)
// 0x000002E0 System.Void ExitGames.Client.Photon.Pool`1::Release(T)
// 0x000002E1 T ExitGames.Client.Photon.Pool`1::Pop()
// 0x000002E2 T ExitGames.Client.Photon.Pool`1::Acquire()
// 0x000002E3 System.Void ExitGames.Client.Photon.PreserveAttribute::.ctor()
extern void PreserveAttribute__ctor_m182E60B3CACD75062C73D9806313B31A927E0555 ();
// 0x000002E4 System.Int32 ExitGames.Client.Photon.TPeer::get_QueuedIncomingCommandsCount()
extern void TPeer_get_QueuedIncomingCommandsCount_mC902717D6CC234CB56F2403A985C96D3BEB2396E ();
// 0x000002E5 System.Int32 ExitGames.Client.Photon.TPeer::get_QueuedOutgoingCommandsCount()
extern void TPeer_get_QueuedOutgoingCommandsCount_mF4AF3675528D3AAD4E801FE4BFBF09772252E493 ();
// 0x000002E6 System.Void ExitGames.Client.Photon.TPeer::.ctor()
extern void TPeer__ctor_m2736C1E17818D50302E73053A9D33E1F4EDBAF25 ();
// 0x000002E7 System.Void ExitGames.Client.Photon.TPeer::InitPeerBase()
extern void TPeer_InitPeerBase_mF6C377C456842016F043C49E1A7361D19441BD22 ();
// 0x000002E8 System.Boolean ExitGames.Client.Photon.TPeer::Connect(System.String,System.String,System.Object)
extern void TPeer_Connect_m196EA8283A0431705737200EDB8A44CB2C0B3BE4 ();
// 0x000002E9 System.Boolean ExitGames.Client.Photon.TPeer::Connect(System.String,System.String,System.String,System.Object)
extern void TPeer_Connect_mE7BCB997C5EB4DD6FD2F9A982BAC0D1F027433D4 ();
// 0x000002EA System.Void ExitGames.Client.Photon.TPeer::OnConnect()
extern void TPeer_OnConnect_m983C831E7E28781DC7D5EB04C23CC9EAF22076CA ();
// 0x000002EB System.Void ExitGames.Client.Photon.TPeer::Disconnect()
extern void TPeer_Disconnect_mDBD4C9E85F53AC1785F38CE043E98224F28E57CF ();
// 0x000002EC System.Void ExitGames.Client.Photon.TPeer::StopConnection()
extern void TPeer_StopConnection_mF41950B6DABD589AEBF7EC6D8909553326D5325A ();
// 0x000002ED System.Void ExitGames.Client.Photon.TPeer::FetchServerTimestamp()
extern void TPeer_FetchServerTimestamp_mA8D4EA81D4E271E5C0831125B1CEF53760D0F1B9 ();
// 0x000002EE System.Void ExitGames.Client.Photon.TPeer::EnqueueInit(System.Byte[])
extern void TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D ();
// 0x000002EF System.Boolean ExitGames.Client.Photon.TPeer::DispatchIncomingCommands()
extern void TPeer_DispatchIncomingCommands_mDACF10B846F4400FD47D4313D388025F843656E9 ();
// 0x000002F0 System.Boolean ExitGames.Client.Photon.TPeer::SendOutgoingCommands()
extern void TPeer_SendOutgoingCommands_mE28FFDBF29B0EC784F4EA9B8890D0571724F19DF ();
// 0x000002F1 System.Boolean ExitGames.Client.Photon.TPeer::SendAcksOnly()
extern void TPeer_SendAcksOnly_mD47D66B0267F3A9428834B0166853E06C1C014CA ();
// 0x000002F2 System.Boolean ExitGames.Client.Photon.TPeer::EnqueueOperation(System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,System.Byte,ExitGames.Client.Photon.SendOptions,ExitGames.Client.Photon.EgMessageType)
extern void TPeer_EnqueueOperation_m853FCDC19EC82B4D3FFA7D9276379EB4BD8428A2 ();
// 0x000002F3 System.Boolean ExitGames.Client.Photon.TPeer::EnqueueMessage(System.Object,ExitGames.Client.Photon.SendOptions)
extern void TPeer_EnqueueMessage_m24AEFC73F037B4A4C69875ED2F263A0DF595C228 ();
// 0x000002F4 ExitGames.Client.Photon.StreamBuffer ExitGames.Client.Photon.TPeer::SerializeOperationToMessage(System.Byte,System.Collections.Generic.Dictionary`2<System.Byte,System.Object>,ExitGames.Client.Photon.EgMessageType,System.Boolean)
extern void TPeer_SerializeOperationToMessage_mA5E6E098B9682A9FB3AC6621B962775C9796CC90 ();
// 0x000002F5 System.Boolean ExitGames.Client.Photon.TPeer::EnqueueMessageAsPayload(ExitGames.Client.Photon.DeliveryMode,ExitGames.Client.Photon.StreamBuffer,System.Byte)
extern void TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE ();
// 0x000002F6 System.Void ExitGames.Client.Photon.TPeer::SendPing()
extern void TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205 ();
// 0x000002F7 System.Void ExitGames.Client.Photon.TPeer::SendData(System.Byte[],System.Int32)
extern void TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731 ();
// 0x000002F8 System.Void ExitGames.Client.Photon.TPeer::ReceiveIncomingCommands(System.Byte[],System.Int32)
extern void TPeer_ReceiveIncomingCommands_mA0C4B969010D1C9614D1188BA8619169DA5A8425 ();
// 0x000002F9 System.Void ExitGames.Client.Photon.TPeer::ReadPingResult(System.Byte[])
extern void TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84 ();
// 0x000002FA System.Void ExitGames.Client.Photon.TPeer::ReadPingResult(ExitGames.Client.Photon.OperationResponse)
extern void TPeer_ReadPingResult_m2459F445356386582CE47CEB1F7521D9F1E3CC3F ();
// 0x000002FB System.Void ExitGames.Client.Photon.TPeer::.cctor()
extern void TPeer__cctor_m34F83152414A1B570BB45BDA49EBA013C5F32332 ();
// 0x000002FC System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_OperationByteCount()
extern void TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E ();
// 0x000002FD System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_OperationByteCount(System.Int32)
extern void TrafficStatsGameLevel_set_OperationByteCount_m61EC810AF51F6AEBE591A30B4E96908781966CD2 ();
// 0x000002FE System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_OperationCount()
extern void TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3 ();
// 0x000002FF System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_OperationCount(System.Int32)
extern void TrafficStatsGameLevel_set_OperationCount_mF031F074BA1BB8C0E34AC46955DFDDF65FAC418A ();
// 0x00000300 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_ResultByteCount()
extern void TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4 ();
// 0x00000301 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_ResultByteCount(System.Int32)
extern void TrafficStatsGameLevel_set_ResultByteCount_mEE65C5FA649E839121DC46E21C2A314A5859DFDB ();
// 0x00000302 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_ResultCount()
extern void TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7 ();
// 0x00000303 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_ResultCount(System.Int32)
extern void TrafficStatsGameLevel_set_ResultCount_m8640EBCCA2E7F3B03120AD4F970E8D15E9480F6A ();
// 0x00000304 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_EventByteCount()
extern void TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023 ();
// 0x00000305 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_EventByteCount(System.Int32)
extern void TrafficStatsGameLevel_set_EventByteCount_mE8D047D92F707F6A8D28B07AD0092D95ABEF2017 ();
// 0x00000306 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_EventCount()
extern void TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2 ();
// 0x00000307 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_EventCount(System.Int32)
extern void TrafficStatsGameLevel_set_EventCount_m9AA09E5AA7DDF2F81837257B034E82C7FED5A474 ();
// 0x00000308 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestOpResponseCallback()
extern void TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588 ();
// 0x00000309 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestOpResponseCallback(System.Int32)
extern void TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2 ();
// 0x0000030A System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestOpResponseCallbackOpCode()
extern void TrafficStatsGameLevel_get_LongestOpResponseCallbackOpCode_m1D27D4106B5F50A1D30B218D87E7A618E6A8301F ();
// 0x0000030B System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestOpResponseCallbackOpCode(System.Byte)
extern void TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B ();
// 0x0000030C System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestEventCallback()
extern void TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E ();
// 0x0000030D System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestEventCallback(System.Int32)
extern void TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F ();
// 0x0000030E System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestMessageCallback()
extern void TrafficStatsGameLevel_get_LongestMessageCallback_m7CB4710B66709978395F803F53185B17531F33D9 ();
// 0x0000030F System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestMessageCallback(System.Int32)
extern void TrafficStatsGameLevel_set_LongestMessageCallback_m2983F2737EF4E6407F326CE8554E2E4C1BA68D7B ();
// 0x00000310 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestRawMessageCallback()
extern void TrafficStatsGameLevel_get_LongestRawMessageCallback_mEC136AA45D27B645EAE49D2D6AF8DFD02855A0A3 ();
// 0x00000311 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestRawMessageCallback(System.Int32)
extern void TrafficStatsGameLevel_set_LongestRawMessageCallback_m953E6A841776CE4581FD2051F3E8DD520FF3ADC5 ();
// 0x00000312 System.Byte ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestEventCallbackCode()
extern void TrafficStatsGameLevel_get_LongestEventCallbackCode_m2EDA97E93839E9983B7C36210430FC4BA8E3D368 ();
// 0x00000313 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestEventCallbackCode(System.Byte)
extern void TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54 ();
// 0x00000314 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestDeltaBetweenDispatching()
extern void TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861 ();
// 0x00000315 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestDeltaBetweenDispatching(System.Int32)
extern void TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C ();
// 0x00000316 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_LongestDeltaBetweenSending()
extern void TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671 ();
// 0x00000317 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_LongestDeltaBetweenSending(System.Int32)
extern void TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E ();
// 0x00000318 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_DispatchCalls()
extern void TrafficStatsGameLevel_get_DispatchCalls_mD9CF1A66628BE7C50DCE960AA7095C342A6E0831 ();
// 0x00000319 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_DispatchIncomingCommandsCalls()
extern void TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591 ();
// 0x0000031A System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_DispatchIncomingCommandsCalls(System.Int32)
extern void TrafficStatsGameLevel_set_DispatchIncomingCommandsCalls_mC14CDD723C55083B9E19CB7611C267D391A478B3 ();
// 0x0000031B System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_SendOutgoingCommandsCalls()
extern void TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE ();
// 0x0000031C System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::set_SendOutgoingCommandsCalls(System.Int32)
extern void TrafficStatsGameLevel_set_SendOutgoingCommandsCalls_m3A4A39B8D4DBCCC3DEB830286BF931F22A599F3B ();
// 0x0000031D System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalByteCount()
extern void TrafficStatsGameLevel_get_TotalByteCount_mED91B21463A60B1073893B3DE63E1CB765BAC8E7 ();
// 0x0000031E System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalMessageCount()
extern void TrafficStatsGameLevel_get_TotalMessageCount_mAA54DEB9B4408B47B7EA5F082709936D1B3C636E ();
// 0x0000031F System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalIncomingByteCount()
extern void TrafficStatsGameLevel_get_TotalIncomingByteCount_mD5B15DE2D5F5255FCA336B2A1F842B0E462ED7C4 ();
// 0x00000320 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalIncomingMessageCount()
extern void TrafficStatsGameLevel_get_TotalIncomingMessageCount_m684A4D0A90DB32E72ADFA9025435A0FFD42BDCAE ();
// 0x00000321 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalOutgoingByteCount()
extern void TrafficStatsGameLevel_get_TotalOutgoingByteCount_mCC89FB2621A29EBA83137ED8D391EC5A3B6C3FD1 ();
// 0x00000322 System.Int32 ExitGames.Client.Photon.TrafficStatsGameLevel::get_TotalOutgoingMessageCount()
extern void TrafficStatsGameLevel_get_TotalOutgoingMessageCount_m0CC1D8B52C136766544F10B650C59F26F6D57B89 ();
// 0x00000323 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountOperation(System.Int32)
extern void TrafficStatsGameLevel_CountOperation_m3A0547B6073AD68C02D89F04BDF52F284E77D46F ();
// 0x00000324 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountResult(System.Int32)
extern void TrafficStatsGameLevel_CountResult_m8EB7CB70E871FBEB9E6C4C85F2F78B4E25FB5C7A ();
// 0x00000325 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::CountEvent(System.Int32)
extern void TrafficStatsGameLevel_CountEvent_m405185B173483581FDF85937C850051B1FE4E547 ();
// 0x00000326 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForResponseCallback(System.Byte,System.Int32)
extern void TrafficStatsGameLevel_TimeForResponseCallback_m17974202E46F17878CA8D7AD60C21C53EC9C5EC8 ();
// 0x00000327 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForEventCallback(System.Byte,System.Int32)
extern void TrafficStatsGameLevel_TimeForEventCallback_m67AFEF4CA5C29840B46E629A5334D551CE8546EB ();
// 0x00000328 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForMessageCallback(System.Int32)
extern void TrafficStatsGameLevel_TimeForMessageCallback_m4172FE3F45E9647F66DFED62E18139C275460004 ();
// 0x00000329 System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::TimeForRawMessageCallback(System.Int32)
extern void TrafficStatsGameLevel_TimeForRawMessageCallback_mF535B74DE8A7D95C4926EF7A04535D16DB6DCA17 ();
// 0x0000032A System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::DispatchIncomingCommandsCalled()
extern void TrafficStatsGameLevel_DispatchIncomingCommandsCalled_m2047B76836D234F1374C3AE2BA11DB59EC8A039C ();
// 0x0000032B System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::SendOutgoingCommandsCalled()
extern void TrafficStatsGameLevel_SendOutgoingCommandsCalled_m4FF3EFF1E68D5059903E8ED75EDE24D9E21B09A8 ();
// 0x0000032C System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::ResetMaximumCounters()
extern void TrafficStatsGameLevel_ResetMaximumCounters_m343E41FB2963FCA691E2496EA1F3E0FF0BB06ACF ();
// 0x0000032D System.String ExitGames.Client.Photon.TrafficStatsGameLevel::ToString()
extern void TrafficStatsGameLevel_ToString_m0DCD7F7439AAAC07151768C96703FDD0B52B6F44 ();
// 0x0000032E System.String ExitGames.Client.Photon.TrafficStatsGameLevel::ToStringVitalStats()
extern void TrafficStatsGameLevel_ToStringVitalStats_m66E31FABDDFE64E0C3AD8772FFB88440E7277B23 ();
// 0x0000032F System.Void ExitGames.Client.Photon.TrafficStatsGameLevel::.ctor()
extern void TrafficStatsGameLevel__ctor_m1FC4294115E3939D687F4C6D7EE860B52593F114 ();
// 0x00000330 System.Int32 ExitGames.Client.Photon.TrafficStats::get_PackageHeaderSize()
extern void TrafficStats_get_PackageHeaderSize_m6DDAC0D97C22D96113F3CC03C17EB31E5FEF4786 ();
// 0x00000331 System.Void ExitGames.Client.Photon.TrafficStats::set_PackageHeaderSize(System.Int32)
extern void TrafficStats_set_PackageHeaderSize_mAE818A528A1C5A59EF26EA6389AED7B54B1096ED ();
// 0x00000332 System.Int32 ExitGames.Client.Photon.TrafficStats::get_ReliableCommandCount()
extern void TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7 ();
// 0x00000333 System.Void ExitGames.Client.Photon.TrafficStats::set_ReliableCommandCount(System.Int32)
extern void TrafficStats_set_ReliableCommandCount_m8D36D1B6FC616B6CB3BE2ECD1B8EC7468E15E46E ();
// 0x00000334 System.Int32 ExitGames.Client.Photon.TrafficStats::get_UnreliableCommandCount()
extern void TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728 ();
// 0x00000335 System.Void ExitGames.Client.Photon.TrafficStats::set_UnreliableCommandCount(System.Int32)
extern void TrafficStats_set_UnreliableCommandCount_m24194C72567D19FE10C5205CDF2745884F95BE89 ();
// 0x00000336 System.Int32 ExitGames.Client.Photon.TrafficStats::get_FragmentCommandCount()
extern void TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C ();
// 0x00000337 System.Void ExitGames.Client.Photon.TrafficStats::set_FragmentCommandCount(System.Int32)
extern void TrafficStats_set_FragmentCommandCount_m7575514F5532ABA49440639F466D65678AFA9BBD ();
// 0x00000338 System.Int32 ExitGames.Client.Photon.TrafficStats::get_ControlCommandCount()
extern void TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881 ();
// 0x00000339 System.Void ExitGames.Client.Photon.TrafficStats::set_ControlCommandCount(System.Int32)
extern void TrafficStats_set_ControlCommandCount_m731BED58A92CB20A30F6911269CB55F556D7FFC3 ();
// 0x0000033A System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalPacketCount()
extern void TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714 ();
// 0x0000033B System.Void ExitGames.Client.Photon.TrafficStats::set_TotalPacketCount(System.Int32)
extern void TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0 ();
// 0x0000033C System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandsInPackets()
extern void TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD ();
// 0x0000033D System.Void ExitGames.Client.Photon.TrafficStats::set_TotalCommandsInPackets(System.Int32)
extern void TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9 ();
// 0x0000033E System.Int32 ExitGames.Client.Photon.TrafficStats::get_ReliableCommandBytes()
extern void TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7 ();
// 0x0000033F System.Void ExitGames.Client.Photon.TrafficStats::set_ReliableCommandBytes(System.Int32)
extern void TrafficStats_set_ReliableCommandBytes_m1ACF9B259E8544025094BDBA03F24BEE2AB07BEE ();
// 0x00000340 System.Int32 ExitGames.Client.Photon.TrafficStats::get_UnreliableCommandBytes()
extern void TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8 ();
// 0x00000341 System.Void ExitGames.Client.Photon.TrafficStats::set_UnreliableCommandBytes(System.Int32)
extern void TrafficStats_set_UnreliableCommandBytes_m6172F51043B3A763FFB98BBBD57EB5BA271396B3 ();
// 0x00000342 System.Int32 ExitGames.Client.Photon.TrafficStats::get_FragmentCommandBytes()
extern void TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A ();
// 0x00000343 System.Void ExitGames.Client.Photon.TrafficStats::set_FragmentCommandBytes(System.Int32)
extern void TrafficStats_set_FragmentCommandBytes_m0F0D591C4A0E5EAA13143999BDDCB690E761F0F2 ();
// 0x00000344 System.Int32 ExitGames.Client.Photon.TrafficStats::get_ControlCommandBytes()
extern void TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF ();
// 0x00000345 System.Void ExitGames.Client.Photon.TrafficStats::set_ControlCommandBytes(System.Int32)
extern void TrafficStats_set_ControlCommandBytes_mD9728C15CC1EF0CAFB1825D66A8C82133AA26FC7 ();
// 0x00000346 System.Void ExitGames.Client.Photon.TrafficStats::.ctor(System.Int32)
extern void TrafficStats__ctor_mE38A22CB44818349588B97E2252555561E0B8BC2 ();
// 0x00000347 System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandCount()
extern void TrafficStats_get_TotalCommandCount_mB2C45AE3C3656B55A49D518155AD933F3DCF1195 ();
// 0x00000348 System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalCommandBytes()
extern void TrafficStats_get_TotalCommandBytes_mB383A7A252C329333B1586EDC1BCAEC5EFF8DFF7 ();
// 0x00000349 System.Int32 ExitGames.Client.Photon.TrafficStats::get_TotalPacketBytes()
extern void TrafficStats_get_TotalPacketBytes_m1C9C5903F2EEDD995CAD025E84047485BB22A9B3 ();
// 0x0000034A System.Int32 ExitGames.Client.Photon.TrafficStats::get_TimestampOfLastAck()
extern void TrafficStats_get_TimestampOfLastAck_m5032D4D94415DB8FAEA09BE42C71DAB5EBEF2745 ();
// 0x0000034B System.Void ExitGames.Client.Photon.TrafficStats::set_TimestampOfLastAck(System.Int32)
extern void TrafficStats_set_TimestampOfLastAck_mD560814C2B65A82A5E59A7A30404925AF2DE36C1 ();
// 0x0000034C System.Int32 ExitGames.Client.Photon.TrafficStats::get_TimestampOfLastReliableCommand()
extern void TrafficStats_get_TimestampOfLastReliableCommand_mA6C7673A7A6C653D7DB9F10D85C58DD2A96ADEFE ();
// 0x0000034D System.Void ExitGames.Client.Photon.TrafficStats::set_TimestampOfLastReliableCommand(System.Int32)
extern void TrafficStats_set_TimestampOfLastReliableCommand_m23C5646968E13B18D2C6F89E41963679FC5CAF2B ();
// 0x0000034E System.Void ExitGames.Client.Photon.TrafficStats::CountControlCommand(System.Int32)
extern void TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD ();
// 0x0000034F System.Void ExitGames.Client.Photon.TrafficStats::CountReliableOpCommand(System.Int32)
extern void TrafficStats_CountReliableOpCommand_m71BF86C54D4ED1E2F9C877F32B589CE96A90DB59 ();
// 0x00000350 System.Void ExitGames.Client.Photon.TrafficStats::CountUnreliableOpCommand(System.Int32)
extern void TrafficStats_CountUnreliableOpCommand_m367D8B4DE36D0F23894286A7F06F97A637E08C5E ();
// 0x00000351 System.Void ExitGames.Client.Photon.TrafficStats::CountFragmentOpCommand(System.Int32)
extern void TrafficStats_CountFragmentOpCommand_m793233BFDD2295CB6F1291CCB0C00F9E0DEA9B4B ();
// 0x00000352 System.String ExitGames.Client.Photon.TrafficStats::ToString()
extern void TrafficStats_ToString_m75C5ED9FA43C4C8BEE44D42DD4758AD39D393AAA ();
// 0x00000353 System.Void ExitGames.Client.Photon.Version::.cctor()
extern void Version__cctor_m71E280F57F915B7C71267C2AEB1887F397517C14 ();
// 0x00000354 System.Void ExitGames.Client.Photon.Encryption.IPhotonEncryptor::Init(System.Byte[],System.Byte[],System.Byte[],System.Boolean)
// 0x00000355 System.Void ExitGames.Client.Photon.Encryption.IPhotonEncryptor::Encrypt(System.Byte[],System.Int32,System.Byte[],System.Int32&,System.Boolean)
// 0x00000356 System.Byte[] ExitGames.Client.Photon.Encryption.IPhotonEncryptor::Decrypt(System.Byte[],System.Int32,System.Int32,System.Int32&,System.Boolean)
// 0x00000357 System.Byte[] ExitGames.Client.Photon.Encryption.IPhotonEncryptor::CreateHMAC(System.Byte[],System.Int32,System.Int32)
// 0x00000358 System.Boolean ExitGames.Client.Photon.Encryption.IPhotonEncryptor::CheckHMAC(System.Byte[],System.Int32)
// 0x00000359 System.Void ExitGames.Client.Photon.Encryption.EncryptorNet::Init(System.Byte[],System.Byte[],System.Byte[],System.Boolean)
extern void EncryptorNet_Init_mB77ECE39E9A3DEE25316531D51EF3696480F6C48 ();
// 0x0000035A System.Void ExitGames.Client.Photon.Encryption.EncryptorNet::Encrypt(System.Byte[],System.Int32,System.Byte[],System.Int32&,System.Boolean)
extern void EncryptorNet_Encrypt_m539656934E92A3A50C676087B558E1C491764FD7 ();
// 0x0000035B System.Byte[] ExitGames.Client.Photon.Encryption.EncryptorNet::Decrypt(System.Byte[],System.Int32,System.Int32,System.Int32&,System.Boolean)
extern void EncryptorNet_Decrypt_m2913371AC552DF7230F6BA22D84FF0FE5E9FC041 ();
// 0x0000035C System.Byte[] ExitGames.Client.Photon.Encryption.EncryptorNet::CreateHMAC(System.Byte[],System.Int32,System.Int32)
extern void EncryptorNet_CreateHMAC_m534D14C56AFF5FEDACF21FB229FFC6A9125A9A14 ();
// 0x0000035D System.Boolean ExitGames.Client.Photon.Encryption.EncryptorNet::CheckHMAC(System.Byte[],System.Int32)
extern void EncryptorNet_CheckHMAC_m8803A7CDA7CA89456C8654AAE075F83183D21317 ();
// 0x0000035E System.Void ExitGames.Client.Photon.Encryption.EncryptorNet::.ctor()
extern void EncryptorNet__ctor_m6AF5F158695C8F14C2D0550AA955CCC89927B5AB ();
// 0x0000035F System.IntPtr ExitGames.Client.Photon.Encryption.EncryptorNative::egconstructEncryptor(System.Byte[],System.Byte[])
extern void EncryptorNative_egconstructEncryptor_m86882FEE07E78AD429434C01DEDC5DAB22CCE76D ();
// 0x00000360 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::egdestructEncryptor(System.IntPtr)
extern void EncryptorNative_egdestructEncryptor_mA912D1510B807BD48FA72420C3CAE2E23B07CB59 ();
// 0x00000361 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::egencrypt(System.IntPtr,System.Byte[],System.Int32,System.Byte[],System.Int32&,System.Int32&)
extern void EncryptorNative_egencrypt_m28352E332DADAC9A480148CFBA13974E26FD8A0C ();
// 0x00000362 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::egdecrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32&)
extern void EncryptorNative_egdecrypt_m9533A8D0F0811092256391AF95A40F06072D69DB ();
// 0x00000363 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::egHMAC(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.Int32&)
extern void EncryptorNative_egHMAC_m231DE0213F05F221CA8B31DA40BF8D83E3AA3D2C ();
// 0x00000364 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::egsetEncryptorLoggingCallback(System.IntPtr,ExitGames.Client.Photon.Encryption.EncryptorNative_LogCallbackDelegate)
extern void EncryptorNative_egsetEncryptorLoggingCallback_m141C5015A11DDDDA7D8B0D0B86EB10851B6BF8C1 ();
// 0x00000365 System.Boolean ExitGames.Client.Photon.Encryption.EncryptorNative::egsetEncryptorLoggingLevel(System.Int32)
extern void EncryptorNative_egsetEncryptorLoggingLevel_m903B085F4A89ADAAD1866B911097E1E8C95E252E ();
// 0x00000366 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::Finalize()
extern void EncryptorNative_Finalize_m152AC4C421555F3A5CA0206338A5C9714942488B ();
// 0x00000367 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::OnNativeLog(System.IntPtr,System.Int32,System.String)
extern void EncryptorNative_OnNativeLog_m7FBA0434742C801C12934079350C8D7CF53E9C9B ();
// 0x00000368 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::Init(System.Byte[],System.Byte[],System.Byte[],System.Boolean)
extern void EncryptorNative_Init_mAFD35A00793A8913FDF1E60623763DDFDF99732B ();
// 0x00000369 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::Dispose(System.Boolean)
extern void EncryptorNative_Dispose_mC28F4C200EB270462B1AD62E88E868FF852EEF7E ();
// 0x0000036A System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::Encrypt(System.Byte[],System.Int32,System.Byte[],System.Int32&,System.Boolean)
extern void EncryptorNative_Encrypt_m7FBBC8B270575872AE468435DF035F284604FA14 ();
// 0x0000036B System.Byte[] ExitGames.Client.Photon.Encryption.EncryptorNative::CreateHMAC(System.Byte[],System.Int32,System.Int32)
extern void EncryptorNative_CreateHMAC_m6985451B3139135EA7C08BE95505D3C31B339A42 ();
// 0x0000036C System.Byte[] ExitGames.Client.Photon.Encryption.EncryptorNative::Decrypt(System.Byte[],System.Int32,System.Int32,System.Int32&,System.Boolean)
extern void EncryptorNative_Decrypt_m5B179D047291824F7ADE32121A535EE60290082A ();
// 0x0000036D System.Boolean ExitGames.Client.Photon.Encryption.EncryptorNative::CheckHMAC(System.Byte[],System.Int32)
extern void EncryptorNative_CheckHMAC_mC65559149790891BD325B80E65B6447111A44640 ();
// 0x0000036E System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::.ctor()
extern void EncryptorNative__ctor_mD42C72E68F3BAEFDCA522964512055DB20C4515E ();
// 0x0000036F System.Void ExitGames.Client.Photon.Encryption.EncryptorNative::.cctor()
extern void EncryptorNative__cctor_mC3C19BE541058F27B73CA6A8319227FD8793E304 ();
// 0x00000370 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative_LogCallbackDelegate::.ctor(System.Object,System.IntPtr)
extern void LogCallbackDelegate__ctor_m6CBF7FBC54DA18FE70D885D85A8A2066903E41AA ();
// 0x00000371 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative_LogCallbackDelegate::Invoke(System.IntPtr,System.Int32,System.String)
extern void LogCallbackDelegate_Invoke_mA819999CF286FBEE022EBD5E630D94AB0B276602 ();
// 0x00000372 System.IAsyncResult ExitGames.Client.Photon.Encryption.EncryptorNative_LogCallbackDelegate::BeginInvoke(System.IntPtr,System.Int32,System.String,System.AsyncCallback,System.Object)
extern void LogCallbackDelegate_BeginInvoke_m2B2C8EC01BE13CF52CAAB80D3D0622A05ACEF12D ();
// 0x00000373 System.Void ExitGames.Client.Photon.Encryption.EncryptorNative_LogCallbackDelegate::EndInvoke(System.IAsyncResult)
extern void LogCallbackDelegate_EndInvoke_mD8E7784B168C4F2BA8D75838780BCAB29A5125C4 ();
// 0x00000374 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::.ctor()
extern void DiffieHellmanCryptoProvider__ctor_m756F19FDCD4B8BEC264F3C278188A94C4AD54795 ();
// 0x00000375 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::.ctor(System.Byte[])
extern void DiffieHellmanCryptoProvider__ctor_mC60A298836C745155151805BC8666B0FE9E1FA4F ();
// 0x00000376 System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::get_PublicKey()
extern void DiffieHellmanCryptoProvider_get_PublicKey_m105DC0F3DE282906953F98B372B31BEF004AEFA9 ();
// 0x00000377 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::DeriveSharedKey(System.Byte[])
extern void DiffieHellmanCryptoProvider_DeriveSharedKey_m4307E1AD821B520CD377CB83E901BF918B2F25D9 ();
// 0x00000378 System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Encrypt(System.Byte[],System.Int32,System.Int32)
extern void DiffieHellmanCryptoProvider_Encrypt_m74DD72284D17E3156A9C7F3182457CA3586F276C ();
// 0x00000379 System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Decrypt(System.Byte[],System.Int32,System.Int32)
extern void DiffieHellmanCryptoProvider_Decrypt_m9AD8860DEC217DC76717883C4DFD3C6E59BD062B ();
// 0x0000037A System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Dispose()
extern void DiffieHellmanCryptoProvider_Dispose_m695ED7D77F64232768FBE1767766A05A9E88E146 ();
// 0x0000037B System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::Dispose(System.Boolean)
extern void DiffieHellmanCryptoProvider_Dispose_m5019411EFF7D26EA519E8721DC3A69CC41E23DB3 ();
// 0x0000037C Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::CalculatePublicKey()
extern void DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284 ();
// 0x0000037D Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::CalculateSharedKey(Photon.SocketServer.Numeric.BigInteger)
extern void DiffieHellmanCryptoProvider_CalculateSharedKey_mD31E24DA719371ABDCA5F4A0CBD4629C0E5E12A7 ();
// 0x0000037E Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Security.DiffieHellmanCryptoProvider::GenerateRandomSecret(System.Int32)
extern void DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E2194D10FB221184E91866E ();
// 0x0000037F System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProvider::.cctor()
extern void DiffieHellmanCryptoProvider__cctor_mC6430EB5D1201D7268063124E413DB10D2475558 ();
// 0x00000380 System.IntPtr Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorCreate()
extern void DiffieHellmanCryptoProviderNative_egCryptorCreate_m282278D194293372D8BF3DD9D0C756844F93094A ();
// 0x00000381 System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorPublicKey(System.IntPtr,System.IntPtr&,System.Int32&)
extern void DiffieHellmanCryptoProviderNative_egCryptorPublicKey_m936DA64D7FABD6E890E0C0919D9482C90C537AF6 ();
// 0x00000382 System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDeriveSharedKey(System.IntPtr,System.Byte[],System.Int32)
extern void DiffieHellmanCryptoProviderNative_egCryptorDeriveSharedKey_mE62543C5EA2D91B93999E1CC15D6A14D98EFF650 ();
// 0x00000383 System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorEncrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.IntPtr&,System.Int32&)
extern void DiffieHellmanCryptoProviderNative_egCryptorEncrypt_mA8DA63FA96EB12756651890BF40A9ECF9E5120A8 ();
// 0x00000384 System.Int32 Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDecrypt(System.IntPtr,System.Byte[],System.Int32,System.Int32,System.Byte[],System.IntPtr&,System.Int32&)
extern void DiffieHellmanCryptoProviderNative_egCryptorDecrypt_m1ECA9577B04E13C12E6A6B469476AAB6AED3E0E8 ();
// 0x00000385 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::egCryptorDispose(System.IntPtr)
extern void DiffieHellmanCryptoProviderNative_egCryptorDispose_mE9DE80C11D2F5B587B406B4907DCAF10BC991C93 ();
// 0x00000386 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::.ctor()
extern void DiffieHellmanCryptoProviderNative__ctor_m1D753DA810935AC7373C4A4A32440E596BB46B64 ();
// 0x00000387 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::.ctor(System.Byte[])
extern void DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A ();
// 0x00000388 System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::get_PublicKey()
extern void DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457 ();
// 0x00000389 System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::DeriveSharedKey(System.Byte[])
extern void DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB ();
// 0x0000038A System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Encrypt(System.Byte[],System.Int32,System.Int32)
extern void DiffieHellmanCryptoProviderNative_Encrypt_m3468D009848944980F7965EB971258C650122A8D ();
// 0x0000038B System.Byte[] Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Decrypt(System.Byte[],System.Int32,System.Int32)
extern void DiffieHellmanCryptoProviderNative_Decrypt_mD76B7353A6E47CA9BFEBA496AE2597AE72EAAD40 ();
// 0x0000038C System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Dispose()
extern void DiffieHellmanCryptoProviderNative_Dispose_m8A4318E08F4A4AB32554C4C18CF59C7389AFCC10 ();
// 0x0000038D System.Void Photon.SocketServer.Security.DiffieHellmanCryptoProviderNative::Dispose(System.Boolean)
extern void DiffieHellmanCryptoProviderNative_Dispose_m6AEC734973EAA3E24BB1BB7C46967A167EB13D8F ();
// 0x0000038E System.Byte[] Photon.SocketServer.Security.ICryptoProvider::get_PublicKey()
// 0x0000038F System.Void Photon.SocketServer.Security.ICryptoProvider::DeriveSharedKey(System.Byte[])
// 0x00000390 System.Byte[] Photon.SocketServer.Security.ICryptoProvider::Encrypt(System.Byte[],System.Int32,System.Int32)
// 0x00000391 System.Byte[] Photon.SocketServer.Security.ICryptoProvider::Decrypt(System.Byte[],System.Int32,System.Int32)
// 0x00000392 System.Void Photon.SocketServer.Security.OakleyGroups::.cctor()
extern void OakleyGroups__cctor_mBCB3AA137F7D7C2F975BBBCE380FEE3CF3AB41C2 ();
// 0x00000393 System.Void Photon.SocketServer.Numeric.BigInteger::.ctor()
extern void BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14 ();
// 0x00000394 System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.Int64)
extern void BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C ();
// 0x00000395 System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA ();
// 0x00000396 System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.Byte[])
extern void BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160 ();
// 0x00000397 System.Void Photon.SocketServer.Numeric.BigInteger::.ctor(System.UInt32[])
extern void BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F ();
// 0x00000398 Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Implicit(System.Int64)
extern void BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E ();
// 0x00000399 Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Implicit(System.Int32)
extern void BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60 ();
// 0x0000039A Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Addition(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C ();
// 0x0000039B Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Subtraction(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3 ();
// 0x0000039C Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Multiply(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D ();
// 0x0000039D Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_LeftShift(Photon.SocketServer.Numeric.BigInteger,System.Int32)
extern void BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6 ();
// 0x0000039E System.Int32 Photon.SocketServer.Numeric.BigInteger::shiftLeft(System.UInt32[],System.Int32)
extern void BigInteger_shiftLeft_mA43634983AAF71B5E3ACACF7595C67AD50EB8677 ();
// 0x0000039F System.Int32 Photon.SocketServer.Numeric.BigInteger::shiftRight(System.UInt32[],System.Int32)
extern void BigInteger_shiftRight_m00A521D4E5F2DCA3462D793A6F5B3620551DA70A ();
// 0x000003A0 Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_UnaryNegation(Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784 ();
// 0x000003A1 System.Boolean Photon.SocketServer.Numeric.BigInteger::op_Equality(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967 ();
// 0x000003A2 System.Boolean Photon.SocketServer.Numeric.BigInteger::Equals(System.Object)
extern void BigInteger_Equals_m7205176C09F92065753845610C56CDE747821B19 ();
// 0x000003A3 System.Int32 Photon.SocketServer.Numeric.BigInteger::GetHashCode()
extern void BigInteger_GetHashCode_mD71A55A43FFA23081DA676C8B574BA164BAED9B7 ();
// 0x000003A4 System.Boolean Photon.SocketServer.Numeric.BigInteger::op_GreaterThan(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_GreaterThan_mB3F96B34F601F8C58BC630362E7F2AE1B1116006 ();
// 0x000003A5 System.Boolean Photon.SocketServer.Numeric.BigInteger::op_LessThan(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_LessThan_mB222680D4D19B23782419ADB68687ED8F057BBB4 ();
// 0x000003A6 System.Boolean Photon.SocketServer.Numeric.BigInteger::op_GreaterThanOrEqual(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC ();
// 0x000003A7 System.Void Photon.SocketServer.Numeric.BigInteger::multiByteDivide(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416 ();
// 0x000003A8 System.Void Photon.SocketServer.Numeric.BigInteger::singleByteDivide(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A ();
// 0x000003A9 Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Division(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87 ();
// 0x000003AA Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::op_Modulus(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3 ();
// 0x000003AB System.String Photon.SocketServer.Numeric.BigInteger::ToString()
extern void BigInteger_ToString_mB4BF88746F9BA518365B1E00145221F93061E3FA ();
// 0x000003AC System.String Photon.SocketServer.Numeric.BigInteger::ToString(System.Int32)
extern void BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5 ();
// 0x000003AD Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::ModPow(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3 ();
// 0x000003AE Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::BarrettReduction(Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger,Photon.SocketServer.Numeric.BigInteger)
extern void BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D ();
// 0x000003AF Photon.SocketServer.Numeric.BigInteger Photon.SocketServer.Numeric.BigInteger::GenerateRandom(System.Int32)
extern void BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0 ();
// 0x000003B0 System.Void Photon.SocketServer.Numeric.BigInteger::genRandomBits(System.Int32,System.Random)
extern void BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F ();
// 0x000003B1 System.Int32 Photon.SocketServer.Numeric.BigInteger::bitCount()
extern void BigInteger_bitCount_m496893A7F384B4DFFD4492EA46C62A45E8F4FC69 ();
// 0x000003B2 System.Byte[] Photon.SocketServer.Numeric.BigInteger::GetBytes()
extern void BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0 ();
// 0x000003B3 System.Void Photon.SocketServer.Numeric.BigInteger::.cctor()
extern void BigInteger__cctor_mF71C8E3FF6C0B3F85E197A6E0EE799B3C0C040BB ();
static Il2CppMethodPointer s_methodPointers[947] =
{
ByteArraySlice__ctor_m3127E423363FB05562655FAA5EF2E005C0FF66AD,
ByteArraySlice__ctor_m756167C21F2C66576D431776EDA4693EC69E6958,
ByteArraySlice__ctor_mC9666787E22076BEF464D59D56AC342D17CB26CB,
ByteArraySlice_Release_m90475D5ACF72BDA22EBE60105F37A428FB8DAA18,
ByteArraySlice_Reset_m15E18BA8EA7FBD5E4E738AAD876B27F0DDBB05F0,
ByteArraySlicePool_get_MinStackIndex_m92D4F677EB4ED653B01E8D71913DC2CD4AABFA9B,
ByteArraySlicePool_set_MinStackIndex_m2538B982D1704426C623DB636EFB12919A0690B8,
ByteArraySlicePool_get_AllocationCounter_mA1C16EA0BA62511BDFCA48314E1314735D029B70,
ByteArraySlicePool__ctor_mA71104C3012AE0AA64CAB39EACF2BF781DEE163D,
ByteArraySlicePool_Acquire_m09FD6C89772EECF41DC2966A94D74C528965E486,
ByteArraySlicePool_Acquire_m30F056465C78B5A9D1F5180BF21ADF00D001E76B,
ByteArraySlicePool_Acquire_mE07AE6DD3D9E59C14BC0B4721CF620960CD2F955,
ByteArraySlicePool_Release_m9CCDB29AA71B9D4CAFA0AE4DD1B6DFF68515922D,
ByteArraySlicePool_ClearPools_m12BC4E17FA97FF77C5F54B123591E1ADA536BD09,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
Hashtable__ctor_mBDBFC7E59F307BD37985867DA6205EEA4E14B764,
Hashtable__ctor_m77196990CCD013AD969AF83C9EA2E403986BDD19,
Hashtable_get_Item_mEEE758B56A641B2D71139065020E42552E83DCDA,
Hashtable_set_Item_mFA8ED61DCEC16B013F62104958462B592A5B741B,
Hashtable_GetEnumerator_m4E5883D491873F6FC36288F9CCD39EE668C2C4F2,
Hashtable_ToString_m76C9556EDBB63B379D1310BCB55BDE2305DB1BA8,
Hashtable_Clone_m5C735D0523470BDBAABBF1FB690617F8F8943722,
DictionaryEntryEnumerator__ctor_m7035791699A7218DB37688032A639082E7CD5CFC,
DictionaryEntryEnumerator_MoveNext_mD87612656CBD1492D4BFC4D768FF237EB26C8C24,
DictionaryEntryEnumerator_Reset_m6D1B56D26A66B32428BFFC103F15EC113241B35A,
DictionaryEntryEnumerator_System_Collections_IEnumerator_get_Current_mB0E3FD60FB1C16AFDE1ECD1ECEE95FC1AC9CE88C,
DictionaryEntryEnumerator_get_Current_m83F62DCD5A78CBF2DE0776E882F6917BE2280CF4,
DictionaryEntryEnumerator_get_Key_<KEY>,
DictionaryEntryEnumerator_get_Value_m9F2BB81E9C088FA0ECC62D6FFF7CE2FD3ED5D2C2,
DictionaryEntryEnumerator_get_Entry_mCE177A456FA850F132BA7F40A4E3345F0C7611BF,
DictionaryEntryEnumerator_Dispose_mF991D09C0C6B828FF41C2C6D570690CD288B0951,
EnetChannel__ctor_mE0F797E8BE18C2DC52AA712EF662A9C8D7BA78E9,
EnetChannel_ContainsUnreliableSequenceNumber_m4E4947FD470C87365DEE715C0E0C3D3C2C086B8F,
EnetChannel_FetchUnreliableSequenceNumber_m6C66738E994EA5480C6704EB054A4403BF598126,
EnetChannel_ContainsReliableSequenceNumber_m6738815512BEA5914AB8E08AA1A8B54B24B2E559,
EnetChannel_FetchReliableSequenceNumber_m4DFF21EA14D8B06F2144BFA06A706E7C0AB6DEC6,
EnetChannel_TryGetFragment_m28E28B16A5D28195B61CC7A5F2995CEB7ADD97FF,
EnetChannel_RemoveFragment_mA2216AC3AF6AAC3230C170F34E8E0EB11EB78359,
EnetChannel_clearAll_mB0FC550CCDAD7E15328F7F38A51BFD6AA93A0D7F,
EnetChannel_QueueIncomingReliableUnsequenced_m76A4294A9C0C949A3C349A986447510CCEBE72B4,
EnetPeer_get_QueuedIncomingCommandsCount_m840E347BE96EF8640690D32134006561A8507284,
EnetPeer_get_QueuedOutgoingCommandsCount_m751410D861A94B345938B780E6FEF6B6347ECE3A,
EnetPeer_get_SentReliableCommandsCount_m1B367F1A7138964AE5F0AA5F51443BA9807B7943,
EnetPeer__ctor_m693A48AEB026345ABFA49C3FF497E187B7CF4146,
EnetPeer_InitPeerBase_m22CCD130934931A262AA2AFFF8842DF3369C840C,
EnetPeer_ApplyRandomizedSequenceNumbers_m95B404FF0F3BBD58217D4F2D3D069B9840AD0198,
EnetPeer_Connect_mC6B4F46468223ACD91F6ABCD10E60D8E1E167FD6,
EnetPeer_Connect_mEBBFFACE4C19AFFB05F746C1A799405BFA071782,
EnetPeer_OnConnect_m213CBD9F91B98584DEC8C1A42CD4D661FC3F6D24,
EnetPeer_Disconnect_m47F6F24F2171B6BEBCC32D2E0F0896EBB3FDAB86,
EnetPeer_StopConnection_m9E7670C8317F286B00A968A1270403084773B5D7,
EnetPeer_FetchServerTimestamp_m08C673EB4B55C5C3D9612FCDFB1C50FBE932616F,
EnetPeer_DispatchIncomingCommands_m00115944027A21F53C0BEB60AD5E7BDA664CE2DD,
EnetPeer_GetFragmentLength_mD270A984C57E121750FAE0E00A341461863004B1,
EnetPeer_CalculatePacketSize_m41978A2C944B86B71DD14D173C2A70DBC0A3D6FC,
EnetPeer_CalculateInitialOffset_m0720B21C198D49B19CF003402E7C226B7C60375B,
EnetPeer_SendAcksOnly_m5397EF46172C6CAB7D55CC75B507AB0C77294DF8,
EnetPeer_SendOutgoingCommands_m90CB60092A81A752A92C5A6ACD0128469C352337,
EnetPeer_AreReliableCommandsInTransit_m7AB6199AF2E1EAE1AAEAF19733951E7D5346CAC1,
EnetPeer_EnqueueOperation_m97D39EC13F27C4FC10D2D1B9061A021C69B976D8,
EnetPeer_EnqueueMessage_m52AA3FAC6BCBC70541AE5F457E48DD8755CD2DDE,
EnetPeer_GetChannel_mF211F44FF1BF5921B14207E5A830F06167F94B00,
EnetPeer_CreateAndEnqueueCommand_mE3AC2714B57D24AA7D7DBD9F35A592562F61FAC3,
EnetPeer_SerializeOperationToMessage_m2D9899927A28341E922060E716F46E539BEEC800,
EnetPeer_SerializeAckToBuffer_m038BC0754AAB2554C38AFADCB8EFF437536803C4,
EnetPeer_SerializeToBuffer_mB053B856A98D81C9BBEF37229FC91842668DE4FE,
EnetPeer_SendData_m71C806D7DD46F7048C645CF4DC5DE20F90F501A9,
EnetPeer_SendToSocket_m35672D8617BA2BBEC4C6597ACB5727590922C4BC,
EnetPeer_SendDataEncrypted_m1D6BD8098BF15EFC9FCC85F73F5C549142F17A95,
EnetPeer_QueueSentCommand_mD8CA8181E63C53BD3902A8597EB3D8EAABE29B92,
EnetPeer_QueueOutgoingReliableCommand_m4FC24D90877605833CB6D5644E955ED629004055,
EnetPeer_QueueOutgoingUnreliableCommand_m33CBA9795E3030C9C3D7409E286B29FFDE2BAFC9,
EnetPeer_QueueOutgoingAcknowledgement_mD371A1FE4BCFDDF4F8ADB2DF8312000848C52061,
EnetPeer_ReceiveIncomingCommands_m8BB814343BC4E3E74C33556D8E1B5FE3FC77736B,
EnetPeer_ExecuteCommand_mA4267429E4FBE573126FC3EE1ABCD7529E04354E,
EnetPeer_QueueIncomingCommand_m03C62C2F10C1FE67AC4EA23EB18064B7CD730836,
EnetPeer_RemoveSentReliableCommand_m6F3C7718D2355416EACDCE43F8359777E969559E,
EnetPeer_CommandListToString_mDADE088E60711E890EAC4354CB2018BBDCB82DCC,
EnetPeer__cctor_m7F71757E4C609B4C3E3EB44DB6D139461890BCCC,
EnetPeer_U3CExecuteCommandU3Eb__71_0_m8E6E93BD41332A3678C8AAA70E96AA5AE083E1C7,
NULL,
NULL,
NULL,
NULL,
IPhotonSocket_get_Listener_mD1EA4CB7E8EE267CAE4B155459F005EF7FC5F1A6,
IPhotonSocket_get_MTU_m4A7082931CA31AECD8B84C79E3E3FF513531FA41,
IPhotonSocket_get_State_m2BB88F3C42E8D60573B3A0B8BBDA60112E8C589E,
IPhotonSocket_set_State_m0E96C71A7FF033BFCDEF7AF86690C9E2ECEEAE11,
IPhotonSocket_get_Connected_m2100BD967AB992A5A1F6615ADA113840002D75A8,
IPhotonSocket_get_ServerAddress_m75985516BDFAD41E605C263DADC941C7C2C8C747,
IPhotonSocket_set_ServerAddress_m910219EE93B8B1D338F86AB111DC5B0DF22D1B96,
IPhotonSocket_get_ProxyServerAddress_m4B9ABAF0B9BFF841F98D429D87887AC6DFCC7614,
IPhotonSocket_set_ProxyServerAddress_m4146894C487A638D1A8A632C3DAAD7F8FFCEE935,
IPhotonSocket_get_ServerIpAddress_m79A2F746CBD23C2B63DC39E96B0B364BC7975CCF,
IPhotonSocket_set_ServerIpAddress_mD56FCB7FA6FAC7730B4D57BB562A385CE0889DDA,
IPhotonSocket_get_ServerPort_m85638BB2174A42FB9AB49E39E1F6D611E5F22028,
IPhotonSocket_set_ServerPort_m8D34A56176CBB75033CAE29FAF1E10C718060921,
IPhotonSocket_get_AddressResolvedAsIpv6_m9E51BB55907B17006C45C9C8F83E76A5471BA9F7,
IPhotonSocket_set_AddressResolvedAsIpv6_m5559EAD414CCABA7CCE20F5DD1D20E858FDE81CC,
IPhotonSocket_get_UrlProtocol_mE2F1ADBB280203C2CB52B4158900CE0D43BF9999,
IPhotonSocket_set_UrlProtocol_m1303EEFDA395F2D4A16FDF3E624CB6771B794579,
IPhotonSocket_get_UrlPath_mD27F536007991DF312947AF693B6F72FCACC4D42,
IPhotonSocket_set_UrlPath_m8AC858A3D2540BFA810F8850A6FD57744D42A6BB,
IPhotonSocket_get_SerializationProtocol_m3A7A47D1F23FC2F33D6DB9CFA51C9A97CD6DCBD8,
IPhotonSocket__ctor_mA0C8A34D0778116D5C56115CA48E8B358DE8D2FA,
IPhotonSocket_Connect_m87EF7FD57AECBD32EE16AB4D98F5D09224779ED1,
NULL,
NULL,
NULL,
IPhotonSocket_HandleReceivedDatagram_m54B1ADEC42A1B461E5DC1F9BF30EE03186E842B3,
IPhotonSocket_ReportDebugOfLevel_m9DBA900028D0A9AD070023AD6AC88CBF5B6CC7A6,
IPhotonSocket_EnqueueDebugReturn_m10CCC336C219196818A745EAD556E48343B03D6D,
IPhotonSocket_HandleException_m5232021581951F91F5167F6012090EEE88E610F9,
IPhotonSocket_TryParseAddress_m6FB93C254D1ACC2B0B95154922737520E52157B9,
IPhotonSocket_IsIpv6SimpleCheck_m6C914095D0CB565453BBEAD82DE86A267BFA13EA,
IPhotonSocket_GetIpAddresses_m61AABD40D40A4356832DFC1081B93137C1E79A91,
IPhotonSocket_AddressSortComparer_m7482CAC35B0B24118575F9C891F59D153C0353BD,
IPhotonSocket_GetIpAddress_mE1B0A2232289A97B44E4A69A57AF9E27A238D693,
IPhotonSocket_U3CHandleExceptionU3Eb__52_0_mC17D74E115230DB1A70683B84DEDD46E3C18EC08,
U3CU3Ec__cctor_mE82B95F0B5A1E441E576F4F9079D500B23644787,
U3CU3Ec__ctor_mC25E02861ADF7DAF4315CE385BC013509C78CFC5,
U3CU3Ec_U3CGetIpAddressesU3Eb__55_0_m675CE9AAA55E9C4C3274D6C4BE587DB6ABC627BF,
SerializationProtocolFactory_Create_m81A2278DAB7B4C3425885D61FA945B49CB14047E,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
IProtocol_Serialize_m88A3DBA9A1AFB5FC698AA219360674FBC93D8DE8,
IProtocol_Deserialize_mDE256CB90E15142A3806F3A506D3EA945209FA9C,
IProtocol_Deserialize_m75C4B14D3CCD63AAA14DA330127678BFE0BABD94,
IProtocol_DeserializeMessage_mF8A3E752E36571F1278B21F3611B3A36937C1C5F,
IProtocol_SerializeMessage_mC6FC08978EEC99E80126B0BBF8C2D0EF4A299F1D,
IProtocol__ctor_mB60EDFD639F566BC8608E89E48E0EEBF80FBD5C3,
NULL,
NULL,
NULL,
NCommandPool_Acquire_mA22F115BF03D2EDCB6F54267ACC0998904908E2A,
NCommandPool_Acquire_m056926F3E179AD75306314AFB862471FA4615E4F,
NCommandPool_Release_m7019F077C8B88253AA50CFFBFACD8C0C4608ECB3,
NCommandPool__ctor_mF71B31E3E8DF147037F08F9A3333653C15AF2CA5,
NCommand_get_SizeOfPayload_m3579C4DB08C12F77910132687FEEFEE63A5F4B53,
NCommand_get_IsFlaggedUnsequenced_m2C13DB5D0064728D5D5611C426E192107E4F0E1E,
NCommand_get_IsFlaggedReliable_m1CA90C8937BCF88EB7E6827F7913B070457DB60A,
NCommand_CreateAck_mD72A9F36B0182AC15AA28F13E101CC1CB9C850D4,
NCommand__ctor_m5C2C47E385931D12763F4608399F4DCB5C329F28,
NCommand_Initialize_mD49A5EF94AB03D140C269DA625F1ED7892ED2BDB,
NCommand__ctor_m7F3A49C81C365042594644C5DD3D608A092C4948,
NCommand_Initialize_m9AF4245A7232201CD54A406ED0BA938B36A92D16,
NCommand_Reset_mE828C4807B8BD9FDC8006B98EA1D7EA323B02483,
NCommand_SerializeHeader_m2D7BCF1134E0F7162325A8815F47CA0BFF9606B5,
NCommand_Serialize_mE7DD5290256807852564D37BB5DC3FE76E38F0FC,
NCommand_FreePayload_m115D59A29F73886F38A8102F0A7D95E8DAC5B6AC,
NCommand_Release_m2F887C8D46366554ED6F6FFBF909E03B1291C10A,
NCommand_CompareTo_mDDDDBF9C2CA21486DA72BCF5B74E266B6674EACA,
NCommand_ToString_m3A5ACEB6D05DF43C2B049F276FAFA245BC346271,
SimulationItem__ctor_m5D3FD6FEEF16B74EAD6322AD1E1CDE0BB2085BAD,
SimulationItem_get_Delay_m5376867812C013A5CA033B8E574B6A9487D2E685,
SimulationItem_set_Delay_mC10793D871C6B86C8A822741E1C173338291990F,
NetworkSimulationSet_get_IsSimulationEnabled_mDD9673C5601FB3064E12D0A6ED8E7F55CC5CC2D1,
NetworkSimulationSet_set_IsSimulationEnabled_m76735FA574DF0C45E946654BEEBD3F41096959E9,
NetworkSimulationSet_get_OutgoingLag_m83BD7EA55FE917BB1D4C71AA8C8E05C0C93312C1,
NetworkSimulationSet_set_OutgoingLag_m84F6F909B2D44A59CD63AC59F860F2468810643F,
NetworkSimulationSet_get_OutgoingJitter_m217568A77F0F9A23635E24187035432B1EDB6AE7,
NetworkSimulationSet_set_OutgoingJitter_m6E1416F2FC6D47797832DC77D27E2E339406C445,
NetworkSimulationSet_get_OutgoingLossPercentage_mA6475ADF8C8A6FEC7584726E8B3AC8C455A04A3B,
NetworkSimulationSet_set_OutgoingLossPercentage_m919E702F8C715B64C08B18CCB1367D371FE56389,
NetworkSimulationSet_get_IncomingLag_m3DB208BC5BB74E70269CBFAAF5579DC82E62C0E3,
NetworkSimulationSet_set_IncomingLag_m38BA12EB24CCEFF3F58B2DEE11A13C1783FE897B,
NetworkSimulationSet_get_IncomingJitter_mDFD09557782CE61FD39A0253B7D96587F8E3CC0A,
NetworkSimulationSet_set_IncomingJitter_m05B6A9547AB9ADBEA9D9B802AE110A14A74D2900,
NetworkSimulationSet_get_IncomingLossPercentage_m1BCD7487EB2BDC6C9D7BE19A3F43E10673FF31D0,
NetworkSimulationSet_set_IncomingLossPercentage_m1FF2FCF262C111F1F16164283622A13F880BBF8C,
NetworkSimulationSet_get_LostPackagesOut_m7C7C3DC00BAC826D1BB69534365D9E7202694134,
NetworkSimulationSet_set_LostPackagesOut_mD443A4EF8BC35A96EB9CB582042DDEB3F8E1FC18,
NetworkSimulationSet_get_LostPackagesIn_mC670F974762FD7E86029CD633DEF11523E072A9E,
NetworkSimulationSet_set_LostPackagesIn_m8446110A8BA489F40250D4C706D780380D63ECBF,
NetworkSimulationSet_ToString_m75A504A861930F52B3FF8881CE795CCBB4C3CF24,
NetworkSimulationSet__ctor_m5090052A6A1E2A48FDA620D080B034948C0FBB91,
PhotonCodes__cctor_mF7D908884DE70390B584ECA99CADA5D89C7ACF64,
PeerBase_get_SocketImplementation_m6344139D00050B3B1A65798CC3699F732F566384,
PeerBase_get_ServerAddress_m624A582F149AC965BC9FC10C174060A0D2D61FB0,
PeerBase_set_ServerAddress_mD01CBD300E8005A193FA30A6EEBD78010B99036B,
PeerBase_get_ProxyServerAddress_m76AD45B35868F032332F04279DA0A01001C827E2,
PeerBase_set_ProxyServerAddress_mB5F65528B1184E8DB02D6F8F51BB588348C0C5A7,
PeerBase_get_Listener_m1AC27E195EDCB3AE9E5446DEB292F789B0095990,
PeerBase_get_debugOut_mCA08D30A6FACCEC5B93926BF3611EA989C1FE6D9,
PeerBase_get_DisconnectTimeout_m52D7CF5CC40D7DE41E8A7511509E158404789142,
PeerBase_get_timePingInterval_m992C0AD6F00F3E6BC0B9EE5619A19AEE0E21EFC8,
PeerBase_get_ChannelCount_mCEC65AB9274E9991222577FF903350FCA7C10C63,
PeerBase_get_BytesOut_mA7CE264D40A2CAC581E490A05228D756222D9393,
PeerBase_get_BytesIn_mE0E0CCFBECEA5F8B0FFB24E05B802816414130C4,
NULL,
NULL,
PeerBase_get_SentReliableCommandsCount_mFB85FDAF05F26732E63BB3E52C7CB666520FF4EF,
PeerBase_get_PeerID_mD30021C57242AD0368BF72C97BD5CC25924B8FBF,
PeerBase_get_timeInt_m13898C3E7147372B2237260DE7E57F9675927883,
PeerBase_get_outgoingStreamBufferSize_m99EC05A90403472328672BAB0AFBB3D09C5DD354,
PeerBase_get_IsSendingOnlyAcks_m042A711C7D1276FEB1685BBDB2A2C6AD9D78F05D,
PeerBase_get_mtu_mDFB98B8FCCD0918A88905377275FBF7CD1F6B6DB,
PeerBase_get_IsIpv6_m43B22F85421E99DE73EE5F33FF6497685E3D74F6,
PeerBase__ctor_m9CC65137693C6926711A1C9917A18368B76E33D9,
PeerBase_MessageBufferPoolGet_m06DF85A20CD278D7BF90AF33590DCEA7FCAC3F1D,
PeerBase_MessageBufferPoolPut_mE4A6CE10E420E2EFA635BF9CE5A9950BD5DA6618,
PeerBase_InitPeerBase_m9D9F192FA22FC5B7A759F4BA433CBBD09F1C91C4,
NULL,
NULL,
PeerBase_GetHttpKeyValueString_m9A5A73CE4D3C39B993D0C0E23CCF698135542745,
PeerBase_PrepareConnectData_m1EC98A6E30BCD49987849E838D064AA378613564,
PeerBase_PepareWebSocketUrl_m0F28107ABDED0654941BF1CC60FE68E54C9AA885,
NULL,
PeerBase_InitCallback_mE5B4349195DCAB48D832F0816F5327C420B24D1E,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
PeerBase_SerializeMessageToMessage_m95614478AF9C86205FB5CA05677802E36B9F1A39,
NULL,
PeerBase_SendAcksOnly_m889177BB3EE63AA60021F0EA5732B2BE150EF0EE,
NULL,
NULL,
PeerBase_DeserializeMessageAndCallback_mAC40FBFAD90716B173F36BB281B3A71E7A19009E,
PeerBase_UpdateRoundTripTimeAndVariance_mDBDA944DE4B3798D2B570B5780A60520F1BBF5F7,
PeerBase_ExchangeKeysForEncryption_<KEY>,
PeerBase_DeriveSharedKey_m<KEY>,
PeerBase_InitEncryption_mC3D616A81D530496AA1EDE69B6C0FDD0DED8A113,
PeerBase_EnqueueActionForDispatch_m63FEA39A8E22952E05481D38672C9780E1853132,
PeerBase_EnqueueDebugReturn_mC20714873CBA559EEE723AB0989EF4AE9660D117,
PeerBase_EnqueueStatusCallback_m65E16421DDFD3F092A19EFA87BBDD899203718BA,
PeerBase_get_NetworkSimulationSettings_mBF3D4BC27DE78A657A6D93E08ACCA656BEB34B39,
PeerBase_SendNetworkSimulated_m32C7A78D580D063BE86713AB7D7F61C23E122123,
PeerBase_ReceiveNetworkSimulated_m84BA271CB88995FB4CD66A60A4683EF673B2CF11,
PeerBase_NetworkSimRun_m1B88FDF35F60368A4A932DB3C970210336E6AFEC,
PeerBase_get_TrafficStatsEnabled_m2881A34F4364C33FF88169D3CED46827EC36634B,
PeerBase_get_TrafficStatsIncoming_m8373A3797B073192282A57B1588732DF84F8249D,
PeerBase_get_TrafficStatsOutgoing_mDF1857EBFBC8B12EAAD0933DFE95887A993B47A5,
PeerBase_get_TrafficStatsGameLevel_mA5990EFE2FEF80C8BC5EA77B02FD91FF6AA9B6BD,
PeerBase__cctor_m91BEE062CE1715BF17813B8DF0164D93454617E4,
MyAction__ctor_m2881F84D663A6400E5606F80D96255E2CF16E735,
MyAction_Invoke_m24D676BF96D5136153897A729905C57A84D5D139,
MyAction_BeginInvoke_m1348807BFBF007E48DECB841540BB377FE9B20F3,
MyAction_EndInvoke_mF76192B8DBA26AC06399572CA3E4A41BED920867,
U3CU3Ec__DisplayClass109_0__ctor_m4CCDB86F979C37BD7E4B18354F0281C15175D001,
U3CU3Ec__DisplayClass109_0_U3CEnqueueDebugReturnU3Eb__0_m968FEF0A71DD42377DD0F844749F5540B6124A6A,
U3CU3Ec__DisplayClass110_0__ctor_m51F72F1FD2267BFB9EEB22260E1E7FB3E88C13E3,
U3CU3Ec__DisplayClass110_0_U3CEnqueueStatusCallbackU3Eb__0_m36FFFD3B362F10B5739DFA833E1A803959966B5B,
PhotonPeer_get_CommandBufferSize_m457378387A2D6869A7F76C7C58F9EBF26532E4A9,
PhotonPeer_set_CommandBufferSize_mC0D5FDA0ACCECBFBCC587885A512BC7C5732D242,
PhotonPeer_get_LimitOfUnreliableCommands_m1D7AF528C96653ED659D29E5ADEADA87C4214851,
PhotonPeer_set_LimitOfUnreliableCommands_m25150333C2DF59EAD4F958ECE4F1C287A3DA188C,
PhotonPeer_get_LocalTimeInMilliSeconds_m64630C30507CFA734C3C5EC56F201820C75927B8,
PhotonPeer_get_ClientSdkIdShifted_m09BEE272264D9B98888687B174B31C36E73E177F,
PhotonPeer_get_ClientVersion_mD6A08DFE8AC2A1C8952A127897E9000D5C291BB0,
PhotonPeer_get_NativeSocketLibAvailable_m396FCDE557FA64E5A02BE6F665995BED29E1BD24,
PhotonPeer_get_NativePayloadEncryptionLibAvailable_mCC43A858BEE6C068FA437C7EB7F3C1B146FDD3AD,
PhotonPeer_get_NativeDatagramEncryptionLibAvailable_m356F5F23CFD46BF4FC737139A41DDF835C608B05,
PhotonPeer_CheckNativeLibsAvailability_m057855E1A3CBCA669D1D0AD0CF2AEB05C1991B9A,
PhotonPeer_get_SerializationProtocolType_m2CA7B583D8D00F08769D798690B09C8B659C9DC2,
PhotonPeer_set_SerializationProtocolType_m7A98D79EA4761AB64079379722D7B777166F83EB,
PhotonPeer_get_SocketImplementation_mB3E4638FB4885B0ED15F1F36318F27976F526FD0,
PhotonPeer_set_SocketImplementation_mA99B22BCD308CE8C531CE72F4E05DD3E51CAA1D2,
PhotonPeer_get_Listener_mF46CC6C50E2FEC1BBB914820258458CE6A21C65A,
PhotonPeer_set_Listener_m23909AB351D7D365A173FDDDF5EE56E867D732CB,
PhotonPeer_get_ReuseEventInstance_m5EF7E976AE04245028C6380FE889B0DCB8181E3B,
PhotonPeer_set_ReuseEventInstance_mA8AFFCA51F3FA9BEC4072465374AB903DF1F9EB8,
PhotonPeer_get_UseByteArraySlicePoolForEvents_mB8124D9C27F54D94A765D9DBB3921539652CA76B,
PhotonPeer_set_UseByteArraySlicePoolForEvents_m5C61457E471E533B0C0FB3289DA758912701A523,
PhotonPeer_get_ByteArraySlicePool_m12D540BC6B723DAE5459069D5C63740D79D91CD8,
PhotonPeer_get_BytesIn_m5DFEC51A5C122E8A87011CF3826DE9AD7BB2358F,
PhotonPeer_get_BytesOut_mEA9C487886318C497D706ED8AB58A883B0AF0825,
PhotonPeer_get_ByteCountCurrentDispatch_m0101250F6BEC27C085904B2719061569094F71DF,
PhotonPeer_get_CommandInfoCurrentDispatch_m5503C0842DC95617882DE5F2A0EAC9117117A3DD,
PhotonPeer_get_ByteCountLastOperation_m7883E18C3C136A10542217DCB6D259307557CC8C,
PhotonPeer_CommandLogToString_mF6A02ED214861BDE6DEF76098E3C187D31D317E3,
PhotonPeer_get_EnableServerTracing_m8D9B3EEEA65E833BE076AE61C2CAF9CABD3B8B21,
PhotonPeer_set_EnableServerTracing_mE19B7161E73CFA51893014DC01EB190C6E1DF888,
PhotonPeer_get_QuickResendAttempts_mDEB87310776F3DFAD985D8A84B1B818414607990,
PhotonPeer_set_QuickResendAttempts_m87A508435300F52DAC2CBAB3AF0B0D7BFADD6168,
PhotonPeer_get_PeerState_m3C1867814E0752100E29787C4EB54C4081A5BEB7,
PhotonPeer_get_PeerID_m468B4876ED5EB80211B6AEB5B97F4FB23D6A2F26,
PhotonPeer_get_QueuedIncomingCommands_mE26F2F9343BA361DD3CABBFF04B9BDFF4D703AE1,
PhotonPeer_get_QueuedOutgoingCommands_m0E831F38BB1E1D3C41B6F8D131FCD4E95231D9A3,
PhotonPeer_MessageBufferPoolTrim_m44DA0AB5D643C2A67A02F6340BFBE04999AF3AB7,
PhotonPeer_MessageBufferPoolSize_m2E6F10C6CCC5B4D524A90D29C4FA224A6605B0E9,
PhotonPeer_get_CrcEnabled_m2747E1BE5C5607629CE74CBC8743171D4B4E3520,
PhotonPeer_set_CrcEnabled_m8E2F10388845A6A12C351355D036215777685876,
PhotonPeer_get_PacketLossByCrc_mD11A38A579BD2B606AC6BDED135CBF6FD6BEBC59,
PhotonPeer_get_PacketLossByChallenge_mAEEF8FB33349A870AF99201A88B61285870CEEEF,
PhotonPeer_get_SentReliableCommandsCount_m52148CBEF2BA8B3E835F7426BCAC2B6B911A16AF,
PhotonPeer_get_ResentReliableCommands_m29C037321383B5E2BBB22888C0B3BD76367F7F4E,
PhotonPeer_get_ServerTimeInMilliSeconds_m128B74FB928D6B2BB052C1E146BEE27819898DF8,
PhotonPeer_set_LocalMsTimestampDelegate_mE61A6934BC479DC55FBF777E930C748A82F50EB1,
PhotonPeer_get_ConnectionTime_mE4D45F3F5767D906C82D7E443E56AC489E58C7BD,
PhotonPeer_get_LastSendAckTime_mC44F7762D4F41DF019BC8CFD6B03999399C35D4F,
PhotonPeer_get_LastSendOutgoingTime_m234FDE2B00383202FDF0C623309B091A12B38B30,
PhotonPeer_get_LongestSentCall_m9E4A73C9E04434CD437208852EC852DDC26D5FF6,
PhotonPeer_set_LongestSentCall_m5834BBA1A4FBE5F4D1EE0F985093DA19529FC0E9,
PhotonPeer_get_RoundTripTime_m780F3965623E2C08E4A0A1002AF8A76BEBEBB20D,
PhotonPeer_get_RoundTripTimeVariance_mB4A6F616405DCF5878CA42F00223E00AC760D50B,
PhotonPeer_get_LastRoundTripTime_m912E6FB0C98EACC79EC4BB2C4F1242A212BCADF8,
PhotonPeer_get_TimestampOfLastSocketReceive_mFBFAD1D30EFDE9D4C18630F37DF1E84463A88AE7,
PhotonPeer_get_ServerAddress_m9E3882C0EA4A298D23EB0A717350A4C608F650A0,
PhotonPeer_set_ServerAddress_m629E3975DCA508FC850F4DDEFBDC5B490F932475,
PhotonPeer_get_ServerIpAddress_mC0F289FADA513D39AE83CC365B2B6675D38FCFF3,
PhotonPeer_get_UsedProtocol_m378D8C2F651EC7695826F06002099D291A1A5FA8,
PhotonPeer_get_TransportProtocol_mB83CE58A197C6881ABAB1705EFC5067F24E2A369,
PhotonPeer_set_TransportProtocol_m31F4D8301B6987EAF1C0CC7635CBE0BE6E3E3ECF,
PhotonPeer_get_IsSimulationEnabled_m3DEE1E445223576D500CCDB01897B7247402937B,
PhotonPeer_set_IsSimulationEnabled_m917D39A7BA3387F1B622291FE53260BCFBE901CF,
PhotonPeer_get_NetworkSimulationSettings_mA55B7BCED58D9DFFF7E48E098FA4D8EFCB511B16,
PhotonPeer_get_MaximumTransferUnit_m4003C178A8B1173A4159F64106A83C617DF9E1C0,
PhotonPeer_set_MaximumTransferUnit_mAB25A1D350610DC45C881C362E1526D26AB2EFA1,
PhotonPeer_get_IsEncryptionAvailable_m40AF4ED057C781EDA9678898CE69944B6449BFC0,
PhotonPeer_get_IsSendingOnlyAcks_m9ED3FCB7CC0F4CF9E335CA5161C4B276B0517F71,
PhotonPeer_set_IsSendingOnlyAcks_m0ED247B75BBF46C271860C0F55BC63645842D447,
PhotonPeer_get_TrafficStatsIncoming_mAF81323FDFE398CC6E3332A2ACE8068A4F5E51DA,
PhotonPeer_set_TrafficStatsIncoming_mD88455D41AECC88E4E7D66B209C1E9CB34EAB9E2,
PhotonPeer_get_TrafficStatsOutgoing_m50650EE42BD66D4969309CC0ACD211166A780780,
PhotonPeer_set_TrafficStatsOutgoing_mAA47CADD29A1B027FC18AAC47170208FF7EE6C7E,
PhotonPeer_get_TrafficStatsGameLevel_m04679EAAB644FE5DF176EBECBAAB56009E615AB7,
PhotonPeer_set_TrafficStatsGameLevel_m83359098BCC1A9AB7575AD59605AEFEFD71F0D21,
PhotonPeer_get_TrafficStatsElapsedMs_mF08D8F6BA7749D8C861BD5FC0B1885082F07CDF2,
PhotonPeer_get_TrafficStatsEnabled_m8DA7521C079CED87345922398AD30F76A3BB00F7,
PhotonPeer_set_TrafficStatsEnabled_m534A59D048B55C46EF5670786460735B878B320A,
PhotonPeer_TrafficStatsReset_m5A44EA56F4747E1DC60E2BD25E9173E4F744D5A7,
PhotonPeer_InitializeTrafficStats_m84B6AEB0DB2FB17F2E03714D53E7F11F2BAED697,
PhotonPeer_VitalStatsToString_m9364EB9C50C33E84C4026BBEE99016C1844235B2,
PhotonPeer_get_EncryptorType_m59FB92621495B195E1AD2614DEA7D4C175DB2368,
PhotonPeer_set_EncryptorType_m74206D76F79E9CBBE0EB149B2BE21DB7C5FEC875,
PhotonPeer__ctor_m468159FF65B92B78A7E03D398439457CE9AD25A2,
PhotonPeer__ctor_mD2ED5F7F2CC74616C0DB5C5A92393DC745F86005,
PhotonPeer_Connect_mCB574FBEC3F41B36AAA2723C530B0A0B2718CF47,
PhotonPeer_Connect_mE1EAAC460BB8E3BB20ABEF6A02262EA9022D1259,
PhotonPeer_Connect_m38175FE99B2D9909B6A8382AADF30A5365C4F4F2,
PhotonPeer_CreatePeerBase_mC44ACC252A1EAAFED62A12FC28582EC939171EE6,
PhotonPeer_Disconnect_m402530FA250CB7D50F6A3D3957AF107DA6D69757,
PhotonPeer_StopThread_m6276C95FAE0916E95334551C82410E85096000AB,
PhotonPeer_FetchServerTimestamp_mBC3C26F1DD4444DFC5184525A3FA4AD0ADE3AABD,
PhotonPeer_EstablishEncryption_mA7A8194A0CEED8481E5EF986BA3D3E5C8C05CF43,
PhotonPeer_InitDatagramEncryption_m60F9A8F1A779C75B11D15E2EA125B082F24A4E8B,
PhotonPeer_InitPayloadEncryption_mA10D8B69A9824A7AE5E6AA26A87D39D22F90BF7F,
PhotonPeer_Service_mEB24A320D82403DA18207D5180839CBE386E19D2,
PhotonPeer_SendOutgoingCommands_mDBA2719DA1086676B5A8750AD353F1FB61F33863,
PhotonPeer_SendAcksOnly_m4E871511893202E5652638DE4338DB66B1C5ECB1,
PhotonPeer_DispatchIncomingCommands_m003D45687058D86F69A5D83685AFEF127E315B9C,
PhotonPeer_SendOperation_mFC1EBA7D26440E6CE8EA5C56F7263F22507A878F,
PhotonPeer_OpCustom_m64934F752B8366E2B5C865C2116A241896F83C0F,
PhotonPeer_OpCustom_m165C728D8A3DA27DF24DDF2F5510D676E9D96912,
PhotonPeer_RegisterType_m015D2CBAB3FED10AC807D6D37C7E0BAD1FCD6593,
PhotonPeer_RegisterType_m6153737B617397EE613710D2C357C012125027A7,
PhotonPeer__cctor_m80BCF57B94B92FDFD42B6B1D2B57F1A67B9F67BB,
PhotonPeer_U3CEstablishEncryptionU3Eb__201_0_mEA7732779B2A7EC06DEEE7E3E86A2814D34C1B5E,
OperationRequest__ctor_m8CAF855761E50F413FA02F043F059E272F787771,
OperationResponse_get_Item_m589790C780696B060EAF8A758B6D9E82A10C2611,
OperationResponse_set_Item_m6E7F417F5653574FA7A67B8BA4B810D2A7156761,
OperationResponse_ToString_mAEEF5B6E81ED1F6A2FC7FF748D87212103CE8309,
OperationResponse_ToStringFull_m9152C7646911FBE10B286F60EF77647D6DC864C4,
OperationResponse__ctor_m22333885F8D3574D3BF48F904CE3774FAE99B6D5,
EventData_get_Item_m65F26662E537109F58915F7D9BA8561F3F179617,
EventData_set_Item_m72C0B1EA8484B7D85A597077E1B91FFC7314D6FA,
EventData_get_Sender_m98C0313A9FBC0BC4ED54FFF420459D025063F72E,
EventData_set_Sender_m69FEAA0F7284358C91B09DDC45BF96E0ED3D10C2,
EventData_get_CustomData_m38D763CDEF0CF9DCF059AE13DB1D550ACF3D0B66,
EventData_set_CustomData_m252D4113746E62610BA745DBC25DEDBE6685B668,
EventData_Reset_m10FF5B251D01470FE9966E36344BE2428D5B78E0,
EventData_ToString_m597652D3C8893F87B1A3EB9F8EB4014A8657C619,
EventData_ToStringFull_mD3F57E3149861E65926A0335C23B8F7A31E1FD16,
EventData__ctor_m25C99D03B18FC8A598D9A303DBBCCAB58C161F20,
SerializeMethod__ctor_m67195EB90BB613E57B4B3423C8278C6A4F4CA49E,
SerializeMethod_Invoke_mA1C1002E13E86B518B27BF88813F9D4E01C14087,
SerializeMethod_BeginInvoke_m5CB3CCA8FA8182991DED8D788B46C9212EF80F35,
SerializeMethod_EndInvoke_m8A6B5086BCA4E769F41C19A5293434AB54F61F86,
SerializeStreamMethod__ctor_m57F65D942FAE61968F41892A2ABA1E5F3681D52A,
SerializeStreamMethod_Invoke_mB1390809DBB09676CE741E125464AAFE7AEEA47F,
SerializeStreamMethod_BeginInvoke_mF5CCCB378C85CBFC0BA80BC984CDBCC633658AAF,
SerializeStreamMethod_EndInvoke_mBECCCACDB4924916C64B769302251F2E7FBD3458,
DeserializeMethod__ctor_mF511F7051EA73C2353F71AA992F0AA7DF82CF94B,
DeserializeMethod_Invoke_m3AB9367C9C20256187D772D9D54FACE88BB13E08,
DeserializeMethod_BeginInvoke_m0BB49BB652471CCA7C17FC6690DFDC7C8C95BB56,
DeserializeMethod_EndInvoke_mA546235F57C259B3B6BB77B369174026410597AE,
DeserializeStreamMethod__ctor_m72B60FB4DB9412438B9BA503F43067A8A0861C45,
DeserializeStreamMethod_Invoke_mB222A15B8C609721DA86A9FB03CFC2F8401CAD63,
DeserializeStreamMethod_BeginInvoke_m831D9FCADA75E059845AC1E04869A7C088A3A081,
DeserializeStreamMethod_EndInvoke_m5F4317AF89F6E163B2FCEDEC7F6304BC4AC24299,
CustomType__ctor_m61F7678BDB26268EC0CB716D11474DF06ED1D330,
CustomType__ctor_mD1DF6D216FCE31D181625A9DF92C05773D6FE1FC,
Protocol_TryRegisterType_m11B2247B7D62B44A4B34A7368DB4E649AC1DBBA8,
Protocol_TryRegisterType_mEF84173DAD49BD07E0B2625A7D1507E7333C3187,
Protocol_Serialize_mBFA91384E2A87EE02B5246797A9AE562A33B9F3E,
Protocol_Deserialize_m31BD7DD915A7B42F3DFCEFEA1F8D1E7F670853A2,
Protocol_Serialize_mF7A4E0FD6E4E17DBBE5B8F3757CB19B1F5676FAC,
Protocol_Serialize_m7C3C2A61BAEEC7F272F78C7F789A48E7E4E036E6,
Protocol_Serialize_m441AF7D1658399DEA66520B5E5352F19CA0E48B8,
Protocol_Deserialize_m4BF6131A8C009C7785B333FAC6B9BCA4F5EBF284,
Protocol_Deserialize_m6DC688C3536FFF519251CA9FCC06E81F95D852F8,
Protocol_Deserialize_mC8F169D83116E3D1B7A178D67E43235B1242D981,
Protocol__ctor_m1D71FBDEA8F387C0E466C61F739327F4F947F419,
Protocol__cctor_m48BAC42DBDBC15C8E3708A6481E6D2963282C1FC,
Protocol16_get_ProtocolType_m98CC5794F13889B38F2564EB88A3511B1245A57A,
Protocol16_get_VersionBytes_m6C973742B2B3D8620A0824259FA16359DB7023BF,
Protocol16_SerializeCustom_m5721402FEF9C12236D3B3375E18BDCE3395D1F0A,
Protocol16_DeserializeCustom_m4C126BB8D583194E009E7FBEE1180B0DBF1F74DE,
Protocol16_GetTypeOfCode_m4D7A7592749A2DEEBDE5B4B2FC62D77E09D11C3B,
Protocol16_GetCodeOfType_m8FE71BE396C1564EA141512C0E5CF3321216E23D,
Protocol16_CreateArrayByType_m5DA6F464E35C552DE989BDB09387B446A0E6CF56,
Protocol16_SerializeOperationRequest_m4BAABB39B0BF67FA6B06AB0288AF31406329CB22,
Protocol16_SerializeOperationRequest_mFF34FFE76BF7C94FC40D01EBCA7CD00A2598A816,
Protocol16_DeserializeOperationRequest_m73F3A7ACE68C47868426FAB21A10A71A32480025,
Protocol16_SerializeOperationResponse_m11C00B00E68E6769348A838F62F27CDE364A4254,
Protocol16_DeserializeOperationResponse_m631F54FB3B077DCBEC6BBF5205E4D20A5DEE1B32,
Protocol16_SerializeEventData_mF0F8FAA20FDD1343E5D204DF76D26F21BEC3463E,
Protocol16_DeserializeEventData_m44DBE279F929061996E2CA20F231BF1239D85978,
Protocol16_SerializeParameterTable_m5F825695C000AB87DB9C3E8B3B5A2DD28A8D8633,
Protocol16_DeserializeParameterTable_m7BD23B029DD5753C43B226B61BC7BC499385528E,
Protocol16_Serialize_mE53CEF2B89E2E07D833AF68C002A186E89C000E6,
Protocol16_SerializeByte_mFCC4CB1B4573AFBF36B70E3F0CBE1BD43CBF8432,
Protocol16_SerializeBoolean_m72619A947BFCC8AA0780A6FDAE9BEADA2CBA1522,
Protocol16_SerializeShort_m4C9DCB5768CDE1FB59E1ECE422CFBBC696DA662B,
Protocol16_SerializeInteger_m7D1069FA9FB3E45A5B49458ECC1B0D1E07F25E6D,
Protocol16_SerializeLong_m499AC38851B783710AD53FA589406290330D2037,
Protocol16_SerializeFloat_m5516ECF0AF9D6D0738105C2F1FE501AC2AE17BD2,
Protocol16_SerializeDouble_m7039C99A07285A7DC190F62F1CC421FCBF7E2606,
Protocol16_SerializeString_m93CCC20CBEE6C0F476D678963C984D8D8935CCC2,
Protocol16_SerializeArray_mBF48551EB8890C06F72104F853B5A41B28C9F0A8,
Protocol16_SerializeByteArray_mF81A4B56FBDC17D85942255A9F9941CE6AB22680,
Protocol16_SerializeByteArraySegment_mD1FC770E5EB412AC2795990FE65E79353C5DC3E8,
Protocol16_SerializeIntArrayOptimized_m1EA5CE3974ADC775CDFF7C8225106C40A5C537B2,
Protocol16_SerializeStringArray_mD1E91CCA1BE848F943BB67BE2275E29E21E4D15E,
Protocol16_SerializeObjectArray_m08C507C25344236F8446F8BB4EF083D047A81677,
Protocol16_SerializeHashTable_m3BD3F0D46857154276B0402D1BC760BCA13BFA5E,
Protocol16_SerializeDictionary_m5AE3C9816E14686A67BEECFA03CA609448178ADF,
Protocol16_SerializeDictionaryHeader_mF50C572B544CC74A8B8586D1D08476120641753F,
Protocol16_SerializeDictionaryHeader_mE55156BAE4C6EF88821ECD792B7D8DDD8BB04C8F,
Protocol16_SerializeDictionaryElements_mF607EF0DC334EC6CFC1AA6065F0459D163622167,
Protocol16_Deserialize_mBF03D33B6A99D1E38E7883B41B2A48CBE92DD411,
Protocol16_DeserializeByte_m97127F5532F7963DF81C7E5E493F4D884C90430E,
Protocol16_DeserializeBoolean_mAE6ED43188BFBB2BCB4A299FE66BAA0DE5F8F5A5,
Protocol16_DeserializeShort_m31AB698A7E98B72D30F68256FC9143D011171DB9,
Protocol16_DeserializeInteger_m4BBA679081B24314E1EE80EF128BF94F054C206A,
Protocol16_DeserializeLong_mF3973C89DDD00FE6CB4867FF4472A157E7529F51,
Protocol16_DeserializeFloat_m98299618A9BAF0B28A4BD26479725B0ACCA9A27F,
Protocol16_DeserializeDouble_m7208E4EA6CCB36B293A38F05FCA54E623189D356,
Protocol16_DeserializeString_m6EBE423D7CDEED05A5036283BFF3254B31785CBB,
Protocol16_DeserializeArray_mA27D36F1B0823B1A9CD2491C70381A32BEBEE959,
Protocol16_DeserializeByteArray_mB4B089A980AEE006F291118AB07B62B89B5AB93A,
Protocol16_DeserializeIntArray_m3DB45B27577E1CA867F8917E82CE568D84DE1EDC,
Protocol16_DeserializeStringArray_m9577B3B116E96E3BD808D6F0BE743DA702033A97,
Protocol16_DeserializeObjectArray_mFCD0CD83B1BF625DAD6164D1224DB5B9B02C48B0,
Protocol16_DeserializeHashTable_m3BF35F2ED99E0A0C7EA3B79B1A1FE8473790C3F0,
Protocol16_DeserializeDictionary_m77563E7E4158CFDF2D628B495F9F5D257D793D62,
Protocol16_DeserializeDictionaryArray_m0E7CE0C72831F3DB48B988BE45AAE650E737BC68,
Protocol16_DeserializeDictionaryType_m2F0AF365472DB501D91AE3580BC17DB15343296F,
Protocol16__ctor_mA9D481BC920480CF42009BB00AF35320FF37A5BB,
Protocol16__cctor_mF79EEB7B3B930A8DB2BFBDE500F7A277545DA527,
InvalidDataException__ctor_m40E97FAED11A5BAE43FD4D404C84FA4B735DCC43,
Protocol18_get_ProtocolType_m0E8AB36773D09C9571203289230BA0966A52D9E7,
Protocol18_get_VersionBytes_mB6689CAE93824CF79F4F38C9BB94421C39C895A3,
Protocol18_Serialize_m3B650A925D088FDFC98CF077BA97015B156AFD36,
Protocol18_SerializeShort_mD8E2F5CFE5033652B6D4D155E8C692261556DD3F,
Protocol18_SerializeString_m1F9E555FA4BA816796056450D9F363398B163B75,
Protocol18_Deserialize_m957791F5943EDDE6112162ADF2E152984CC04AD3,
Protocol18_DeserializeShort_m721CB79769B949F9AC3D8E43B41C863D61F1A213,
Protocol18_DeserializeByte_m2E39920A37EB0E1BD3B67B00205945D31476BD9D,
Protocol18_GetAllowedDictionaryKeyTypes_m0871EB6E9332BDCDDE16C4E5EAA3CC300AB66BCE,
Protocol18_GetClrArrayType_m60425F2291A58F6829834D3D9F3D5A10C3550F62,
Protocol18_GetCodeOfType_m47AD9F57F6D43D76B611EDD9900104FC04BEFBEF,
Protocol18_GetCodeOfTypeCode_m0EA57337A363114A76679CCE31B38A48F1167A1B,
Protocol18_Read_m9D27CC9923E669069DC334215F2DB499125D8B6B,
Protocol18_Read_m61E5E105D2A31B8A1F91615A43B7E53A357A9FEC,
Protocol18_ReadBoolean_m09EF8B2ECC70DCCD7F775C6614988497E569CF9F,
Protocol18_ReadByte_m69C0149AD8DF8F76715FA2363C770E3F4C3711FD,
Protocol18_ReadInt16_m325617BEF42E33AB8B2E0D0CC0D9B2C11175B5C2,
Protocol18_ReadUShort_m4791151EFA9187B0D080A410442FE7386366322E,
Protocol18_ReadInt32_m525DE12262451D1E2BC66D441373425B8C25B18A,
Protocol18_ReadInt64_m519B0B235816AC5DE0E4F4BD92CAF7F8AF4405A1,
Protocol18_ReadSingle_m44CD78186246FF428385FF7D2F2D56309794BAF1,
Protocol18_ReadDouble_mB0631CDAFEA08B473A6B59BCD6C62BD1461C9A52,
Protocol18_ReadNonAllocByteArray_m69856B8E03354CDFD0FA6313282C0741029EA95B,
Protocol18_ReadByteArray_m14D91DB51B2AD7872B99F68AB6409CBFA06817EA,
Protocol18_ReadCustomType_mFBEE921AE891B014D67B5E4DD3C2D9C2E73CBC35,
Protocol18_DeserializeEventData_mBFD67CF621BA2028089E2CA649E81B66A3D35001,
Protocol18_ReadParameterTable_m20B52E355731B3974B4EF62621C7A9BD25D4A22C,
Protocol18_ReadHashtable_mD710141CC3A0FF91BC58530F351B9A6DB14BC93B,
Protocol18_ReadIntArray_m169A7B81519670721D2A90E0F484E5D3DA1E04A0,
Protocol18_DeserializeOperationRequest_mA854F73766FE113DE6E4028CF249733C8EC04C66,
Protocol18_DeserializeOperationResponse_mA82C4B9244B9326B2D16AE201E1B2291C5C66B69,
Protocol18_ReadString_mAC75B2EF0628FCAE9AEA8FCD7840D8A6B924068A,
Protocol18_ReadCustomTypeArray_m204569CA987CF2BB549C6F45030A39EA840A189A,
Protocol18_ReadDictionaryType_mC8334D1135D17093D915C676BB5A42D74AED8707,
Protocol18_ReadDictionaryType_mDA161BB3FDE80804AB9E5F66B604A18EDC2F7650,
Protocol18_GetDictArrayType_mBDC7C0C48083F7050597AB5296C2CC0637C0A199,
Protocol18_ReadDictionary_m3553058D3EFCBEA739255505FDEE3B02E35553C3,
Protocol18_ReadDictionaryElements_m8C54B89C1EBE4C5CAE0D6F99B5F219528C5D40AD,
Protocol18_ReadObjectArray_m0D0F18CBC7B7827EF117C145863F948262F967C2,
Protocol18_ReadBooleanArray_m58833E011F33AE636300B6DEB0CE984751E8A730,
Protocol18_ReadInt16Array_m2A953148C9FBD96EF97EC69A15DB1FA992C5E3C2,
Protocol18_ReadSingleArray_m017B54DC79F670EAB80CC6ED22B86CDA6AF4B9A7,
Protocol18_ReadDoubleArray_mF94A0F44C011134DEE11BA948A338D2225CC479B,
Protocol18_ReadStringArray_m96E54FA9BA2E36D25DF420ED8469D7612D4CC2D4,
Protocol18_ReadHashtableArray_m193CB1B94226E2033FE3349FD426DC5E8C51BB02,
Protocol18_ReadDictionaryArray_m00C8C31D86E808E027C67A28BFBA28C9EB98114D,
Protocol18_ReadArrayInArray_m32EB6877B54DDF9702FA50F6C448A1D3384A8155,
Protocol18_ReadInt1_m48111FB184E7C418646202A023A8E22B9D39C7E5,
Protocol18_ReadInt2_mE30853EE8EB6D9D0BA750A45F830A647E684ABC1,
Protocol18_ReadCompressedInt32_m371840CF775F57F7AE78AB82E51D8C7C70FB25F0,
Protocol18_ReadCompressedUInt32_m66542ABA7395D249A0747393CC8920B5F802064F,
Protocol18_ReadCompressedInt64_mC4ECE2FBD367E0A7EEE1EEDC273E8513D837A4B7,
Protocol18_ReadCompressedUInt64_mAFF221F033BFBDF6A056616D10D7702F45EBB3EB,
Protocol18_ReadCompressedInt32Array_m8EB29DFB2859B2737AC2A80A2B79C1335CBF2038,
Protocol18_ReadCompressedInt64Array_m2E9FA6E16E755A2C0063E2540F228F276CA85A72,
Protocol18_DecodeZigZag32_mE789A903097FF0C058E84403C1E5D66B6A1D7592,
Protocol18_DecodeZigZag64_mA4B01566DDFEAD1301D7F3ABE8DA80A357C530D0,
Protocol18_Write_m73A714CDE6DA3FB9803A9E0BC4CE95ADE8B5AE04,
Protocol18_Write_m5C2CB6D4284147F1B85A4F45857FCD71F72A76AF,
Protocol18_SerializeEventData_m71469355539B7876C306CD40454D987F1E5CAB1B,
Protocol18_WriteParameterTable_m795F93199DB86F193D669A282BDF8ADE6992FF0B,
Protocol18_SerializeOperationRequest_m61C28683E1643251CF12B62B44BFE8B36E9D0172,
Protocol18_SerializeOperationRequest_mC91E109306755AA09A95A80CDA2B8AC9F429607A,
Protocol18_SerializeOperationResponse_mD0611DA8446B85EB0D7D5AB42B5C7C2EE1AC0BD0,
Protocol18_WriteByte_m33416CCBB78A8B2CAD1510F0D3E6A0B107476D78,
Protocol18_WriteBoolean_m3C0D1766E89BD5741C33A4AC81E6592E8BFF56DD,
Protocol18_WriteUShort_m0EDE6298173532F9D3EBA056DD81CD7EE3781B55,
Protocol18_WriteInt16_m41C330F6736B3F6FBFB3EA07CCF47FE02E7B9F2A,
Protocol18_WriteDouble_mE10393813C2D047703C0C149A37FC1E312AD87D9,
Protocol18_WriteSingle_mAA9BC6842D0A5AF65451CBF715B81DD19F584A89,
Protocol18_WriteString_m30B7FC29D84F70222FD830326F1291B038EFEA18,
Protocol18_WriteHashtable_m77A682EAEFBAD2C13059511F17B67B23639CC85E,
Protocol18_WriteByteArray_mBFF9FA68E419B6F41A113D15276F622125BBC4B3,
Protocol18_WriteArraySegmentByte_mCC865D1DB92D094A44DBBF5D8BAD69C18E5810CB,
Protocol18_WriteByteArraySlice_m331D5F0D79A18A7883A841096B4FAFDCA3455A8E,
Protocol18_WriteInt32ArrayCompressed_m89F5A19632AAF511BE5B231EF15B6EEED09AC381,
Protocol18_WriteInt64ArrayCompressed_m57AE0558643E04A32412D231652666127A777230,
Protocol18_WriteBoolArray_m5C59500591A945A9DD7F6195D17FD204DF9762D9,
Protocol18_WriteInt16Array_mC3483498582DF683B593AF496A09E0117F573FE0,
Protocol18_WriteSingleArray_mE66D3E9E456A71C9964CCD0F7489CA08A58DF24C,
Protocol18_WriteDoubleArray_m3EAE5076D653D8AC79F288B8CEA06AD7607EE036,
Protocol18_WriteStringArray_mE8D7031FAD1C3328AC41443EB9780910D53BFE80,
Protocol18_WriteObjectArray_mBBD60F6EA1C05FCAC2BE7C0AF8CF06211F20D8D3,
Protocol18_WriteObjectArray_mB5ABEB17E89B8ABEB20348967D5DDD13258067FD,
Protocol18_WriteArrayInArray_m7F67476CFF6D1AB26097DB3C9FC62BE43EFF7A27,
Protocol18_WriteCustomTypeBody_m94619A7404008056170EBC06EED7C01F060325BA,
Protocol18_WriteCustomType_m7368F098813F04EF4F0B9A207842E749F40A472C,
Protocol18_WriteCustomTypeArray_m1B16E869BB2BA95A7E212D47F347DE9494E9FA81,
Protocol18_WriteArrayHeader_mFEE34B579607FAF70CFB6154FE28CC39B9D7DADB,
Protocol18_WriteDictionaryElements_m5D2F30A1F7F1F2AEC9D6C72414C401014A22BC4B,
Protocol18_WriteDictionary_m036D722A55DE43860C9D4D029F541BF70A00C490,
Protocol18_WriteDictionaryHeader_m2440FDCE137BBE981959C742975D2484F39BFD88,
Protocol18_WriteArrayType_mA45ACD43AFD931006C2352F744F53E5327167D4B,
Protocol18_WriteHashtableArray_m84577CFA722BEDD36CF6AB72CC3FC5879C50DAC2,
Protocol18_WriteDictionaryArray_m4F491DBE85000B55D53F5D7A7FA4103E32CC82DB,
Protocol18_WriteIntLength_mD68719432808ACE0F203847CDB8EC8CF3E28B11D,
Protocol18_WriteVarInt32_mC96B19773B33C784D495A88C75AD158AEE93AC43,
Protocol18_WriteCompressedInt32_m1535B2718A6E734633EE9BE738FB4D50DBF07319,
Protocol18_WriteCompressedInt64_m2A05B5DBF5F28A34E7FAE4E05CC043FD687A4947,
Protocol18_WriteCompressedUInt32_m024571C95341B408296D7406349DECB57E2090F0,
Protocol18_WriteCompressedUInt32_mD603BE51F59E311558A263A3156A1CBC0D01C6E8,
Protocol18_WriteCompressedUInt64_mD56830FAB34BBA2B3AB2EE75C06C01FBE6988C80,
Protocol18_EncodeZigZag32_mF224F1BCB5923CCC9CBB3135F59F3FCE11B2DB27,
Protocol18_EncodeZigZag64_mD76DBCE870ACC0F0ACA73B2A64055E8ABACBD7A0,
Protocol18__ctor_m904937EE6741DACE09887DECDA60335EB09E42C1,
Protocol18__cctor_m8BCFF9953364B1B95B92D43E43A3D37EEA1DCB38,
SendOptions_get_Reliability_mB9E2E4D1E480B8C6B3C7A6F1DD545FF4B78D39E5_AdjustorThunk,
SendOptions_set_Reliability_mADA7DAE82827E9DF7E14AD0CEFE9DB5DC2C51B73_AdjustorThunk,
SendOptions__cctor_m83B66BD3E7FCE1761C9F1E8F6F159C232CCE0E36,
SocketNative_egconnect_mCD9797D96D6B467639BC2CD61808AF1D869BBA3B,
SocketNative_egconnectWithProtocol_m2FADC800D8628186790CF16CDE7F2B3E2C07786A,
SocketNative_egconnectWithProtocols_mE6386861F5AEDBC11CEDA50A88F6FB4EB8986B50,
SocketNative_eggetState_m5309E241F34AEF1DFBD4415CDA322AA3504B5F54,
SocketNative_egdisconnect_m055A1CA9CB7EB1CA7A873C3789BF6AFE7FD38919,
SocketNative_egservice_mCAE6C28C2AACAEDFCCCF78F3F64F6D777763029A,
SocketNative_egsend_mAA5970A5CBC4758115710312F322CF66760D81B1,
SocketNative_egread_m6669BF49A5347A59FCD6B838B86CD74D3C58E3D6,
SocketNative_egsetSocketLoggingCallback_mC1B44035A9976284C6DDB2CE1D56A3A3F2AECF1E,
SocketNative_egsetSocketLoggingLevel_mF429EA928F014F6665A1672B88833C5AA19B97FB,
SocketNative_eggetUsingIPv6_m3C8A8369E378F88C0DA7859408A9CB43F21ACABE,
SocketNative__ctor_mAC7E452D81D3E980480B261B5A6CA89F2EB44FA1,
SocketNative_Finalize_mDAA5BD06A6EB56788CB3DC2CD6F73685C427996F,
SocketNative_Dispose_mEC8082F6B417D9C0A9DECAF801F15DA633F95532,
SocketNative_Connect_m195A8252C351519A151F8E46049CEEFE866689B9,
SocketNative_DebugReturn_m57A3B3D9668570D5B53FA296404BA037BE79FF6A,
SocketNative_DnsAndConnect_m8140639DD0784E471DAC7FEB3AF372D7242682BB,
SocketNative_Disconnect_m2DAE0DC4EB992ABC8AAD3E56D63F29DBCB7500D3,
SocketNative_Send_mFB9FA5FCDAA51846CB8BF7332F5F77617E0E63EC,
SocketNative_Receive_m0D231453489757D9D94D130C634C3BD1C39ABF90,
SocketNative_ReceiveLoop_m9226DBEFBAF0D8FEBAAFEEC0D463B2AB816844C2,
SocketNative__cctor_m31A61874E29413093D4F0C7609857D7F29A4E2A9,
LogCallbackDelegate__ctor_m738475A65A314165A8EE8A36F32F4D0BD3904AD9,
LogCallbackDelegate_Invoke_m9E512E8B25FD35891CB558D41A705534CA153487,
LogCallbackDelegate_BeginInvoke_m9A55504423C71C153158C3B8EB75C69337897933,
LogCallbackDelegate_EndInvoke_m5FC716060AE1BA2761BAF4DF37513CEB8827B280,
SocketTcp__ctor_m1FC77993862E696BAC65926A18164F48527DB579,
SocketTcp_Finalize_m0B126D83B72D1F0D1F0D4CE3134078888DE22CA7,
SocketTcp_Dispose_m41D5471FD860A3E0CE6F64EEE962835F93F70F53,
SocketTcp_Connect_mF96DCF220E6AA7CEA450E406149FEB24D2AA1B96,
SocketTcp_Disconnect_m50D6523373042EC57F09BF088F96B3FCB497D41D,
SocketTcp_Send_mE5189FF4939934E70403A0A9CEC5959BFD24C5B0,
SocketTcp_Receive_m15762EAC1D9D2E75856EC2949A1678648858F9DF,
SocketTcp_DnsAndConnect_m29CEF5F86490E850F2454A1E663710ACAA0DCE3C,
SocketTcp_ReceiveLoop_m0A11421FEFC7824B85F7730551043D2C8B29E363,
SocketTcpAsync__ctor_mAFEB040D9ACA65C39EAD01A5304A734686E22CEA,
SocketTcpAsync_Finalize_m31940AD287B22E079CF35A40F69B2ECB2A8930AE,
SocketTcpAsync_Dispose_m9D403DD7071002144E9A9D590D6F39AA40418623,
SocketTcpAsync_Connect_mD43A6792ED371F50879A5882602CFE2FA9F7D2B3,
SocketTcpAsync_Disconnect_mB7BBCE1CEAB7AB7CE6AE86AF914742F0D59D5F43,
SocketTcpAsync_Send_mB281053D5C27E3E460D732FC8EF9A6B052008DB0,
SocketTcpAsync_Receive_m1A71D8CB4C3B8021E9EB6BC968642EEF87BC55BE,
SocketTcpAsync_DnsAndConnect_m25337F211EC6F1A4161D466AA039FB9995563390,
SocketTcpAsync_ReceiveAsync_m7B3AADE1D967E46585411C45FE1076B547071DC2,
SocketTcpAsync_ReceiveAsync_m0BE92180CFD38C36058B7A2DDFB7657453181D46,
ReceiveContext__ctor_mD0FFDD27CD5F60A2EA6631D9FD08DD20AEE5FF60,
ReceiveContext_get_ReadingHeader_m147C3DB4AA621EC85E5D3818E0763644AF19AB86,
ReceiveContext_get_ReadingMessage_m0B9F3AFBC8ED072BC2DB1A6155FF3DA72BFFE58B,
ReceiveContext_get_CurrentBuffer_m3578ECD8D80BB8163CE718378F6CBF657C359918,
ReceiveContext_get_CurrentOffset_m81A6885AA8A07309E28668FE4A04EC76D7151CD7,
ReceiveContext_get_CurrentExpected_m19C0734395CA07EED8999471FA327428735DCA45,
ReceiveContext_Reset_m819ED7F6F8A218E59843793F6B2250F2C9382C5B,
SocketUdp__ctor_mD43E04011545C47312C8506E224E97996C126879,
SocketUdp_Finalize_m518B1CA7F30506B96122041858301EF62AC3FF00,
SocketUdp_Dispose_mD017BC921C27BE84946CE2A396F207FCB5F5610F,
SocketUdp_Connect_m2E9113D01EF9522A766231CB9A9F762BE9119842,
SocketUdp_Disconnect_mA6A8EC8FB4AC18F8A4874CCC97C70F83202958A8,
SocketUdp_Send_m61C1BBF1FEF87C3062111959CB892A0DB41B1375,
SocketUdp_Receive_m821EFA9D1771B431B6A7576AE95DFF0FED9F1604,
SocketUdp_DnsAndConnect_mF7904D653B4BCF5FBA3D266434D2D82C347CBE92,
SocketUdp_ReceiveLoop_m076AD69BC9F671185CA880752FBFCA9248252989,
SocketUdpAsync__ctor_m9AC715DCF9F757FF715DA98952186D985C54F01D,
SocketUdpAsync_Finalize_m115209069FB117E2F975062A3524B2F69F4FCE45,
SocketUdpAsync_Dispose_m712E721AAD8984F852358E7874A74A2602D2A828,
SocketUdpAsync_Connect_m050F4133F151399D66905B92DBD87A72A3C1C601,
SocketUdpAsync_Disconnect_mE5BF5C6DD78FD405A241382A4C6B158F0E1E1B10,
SocketUdpAsync_Send_mBEC5CFD3F3B5E73BFF2FFCE241E775A221B78C0E,
SocketUdpAsync_Receive_m279194C97701743E1846E7DAF6CC3BCA4F5EE8AC,
SocketUdpAsync_DnsAndConnect_m2A5250EAC0B3AAEEEDA5474FA0103B7AF4D70E97,
SocketUdpAsync_StartReceive_mAB6E95D87E20F6CF82D2670F8F2D8884A16BA79E,
SocketUdpAsync_OnReceive_mA8080FF94F06A2EE2ED80062008E0C2E020EC10F,
StreamBuffer__ctor_m70E35CA204B802318F9870E2FE7AB43B53727C25,
StreamBuffer__ctor_m3BDBD16C2E872DE0910B9DA926381E5609AE70EB,
StreamBuffer_ToArray_m6F5CEF8E299866BF9EC508000E97DA4AC4963068,
StreamBuffer_ToArrayFromPos_m7361408407581A5019AB0C5E9F6D5BA30AAFB0D1,
StreamBuffer_Compact_m01AFF59604B6F5E2DD29C212F435F2F7701BFDC3,
StreamBuffer_GetBuffer_m141BE6D13A0E2ADE97224908E5B90633E244075F,
StreamBuffer_GetBufferAndAdvance_mF3B6E52CAB033802EE9B82C597FA5ACFA4C121E0,
StreamBuffer_get_CanRead_mE277D8FE3EE852500D234F9F822ADE209133D4BA,
StreamBuffer_get_CanSeek_mFBA6E85E77AC72D154F5233C757E6087B1A5002A,
StreamBuffer_get_CanWrite_m56E05511B7AFAD817D95A54ECD5A56F6A1963BE3,
StreamBuffer_get_Length_mA64ED8D426C8916D319665826E759D6C88797EB2,
StreamBuffer_get_Position_mC4746E9262254E8130F8C7DB11A9489B0A98760E,
StreamBuffer_set_Position_m49211B25575DD81EC94CA6E69E39841C93619E4A,
StreamBuffer_Flush_mBA58584E3F44D8328994487B0030852B55FA2098,
StreamBuffer_Seek_m6827D7C87CF3A248BE3F123B3A54D0AC3FD37B4E,
StreamBuffer_SetLength_m12A6391CD4BD83881DFF0EE18D08964A015539B5,
StreamBuffer_SetCapacityMinimum_mEEA2EA22EE3C5AD983AF980715774DA189EAFAB3,
StreamBuffer_Read_m4EB945D2C6774F75BD84A5E6367BFE84C7AAFCA5,
StreamBuffer_Write_mFC7DFFE6CB43BE0E1E6A584E179A62EA11B99F6C,
StreamBuffer_ReadByte_mBC2B7659E1F053CF39D5B66F5F12363F42255AC9,
StreamBuffer_WriteByte_m391D768883E5A53E68E7802E216ABAD03BB16DC6,
StreamBuffer_WriteBytes_m0ECF17B11CBAD593BED9CCD8AC5150859950703A,
StreamBuffer_WriteBytes_mA6F65844E70B294D4216D370612804982CD2096D,
StreamBuffer_WriteBytes_m7840037AE6F70E4F52FCA5915B4CB062E9791C1F,
StreamBuffer_WriteBytes_m317E369FC834716F00DEA95A9FAA07EAB1BC1570,
StreamBuffer_CheckSize_m418A320C08538200925D1E11868966042F3A508A,
SupportClass_GetMethods_mC692EFCEACCC2C355BE7DAD291047B4984D29C1B,
SupportClass_GetTickCount_mCBD41130358A8E158AFFADE5EABC801ED30B9D15,
SupportClass_StartBackgroundCalls_m4A8E179704C1F39B8BC274A0C6185168BAFEE0D8,
SupportClass_StopBackgroundCalls_mAEEFE83BF78C6006DDC019FD7965F223E6AD1404,
SupportClass_StopAllBackgroundCalls_mDFC15194694FE3AC25024132C8E0DBF69B1AF901,
SupportClass_WriteStackTrace_m10DB7B98F45AF1B2A0FFFCDCFB175C155B99363D,
SupportClass_WriteStackTrace_m394A81C16E913099A16D2968386AFDF684A6B385,
SupportClass_DictionaryToString_m945808ABCB023DC8FFA77489E71619167B40D771,
SupportClass_DictionaryToString_mC2CE42E04FAF6485EC1AAE048B1F2F39D6068405,
SupportClass_HashtableToString_m87348FF98FB2C6DDFACA0FB6FA97B43AC4E01B4B,
SupportClass_ByteArrayToString_m0AEC0C182463201F5E1C78D9C9908E16B33782E1,
SupportClass_InitializeTable_m9257249DB516A1CC36FE9946E2648C95321A11E1,
SupportClass_CalculateCrc_m15CFA22FBD259CC231E7366EC299D4F6077DB3D3,
SupportClass__ctor_m53AD9535E4A79AD7674D7B72D0329CE8E132BB78,
SupportClass__cctor_m4A38DC2C2A324BCBE343E42C9266F8289CA69F6D,
IntegerMillisecondsDelegate__ctor_m8D2F4B02FBF44CED73C0CB458806E986FEF36989,
IntegerMillisecondsDelegate_Invoke_m1D6A82EA4C00DD01FE6DB867E1D5111DB6030916,
IntegerMillisecondsDelegate_BeginInvoke_mC17635B0E9C8AB14A13C490A4E38F34A683074A8,
IntegerMillisecondsDelegate_EndInvoke_m9975254F86D41320F36942B66260AD2BF809E719,
ThreadSafeRandom_Next_mDB4C15751362E0579C6354B6CCE56DAE6DD9EE47,
ThreadSafeRandom__ctor_m7546D8A0EFD5AE34896563B7A245A72D02675C67,
ThreadSafeRandom__cctor_m9DBC66948E48D5FEEC2A252F76D9A1FF2F54F9A8,
U3CU3Ec__DisplayClass6_0__ctor_m9239E5DEB52C89E747C3C22914C9E233DD5CA480,
U3CU3Ec__DisplayClass6_0_U3CStartBackgroundCallsU3Eb__0_m3EDAC79B90B797A140F03CE67D20498A609F0F6A,
U3CU3Ec__cctor_m205A8B45E71762ECAD6FB159EABBB57129D374F1,
U3CU3Ec__ctor_mB3AFC86D8A660853BAF4DE2FCE7A0906752903EE,
U3CU3Ec_U3C_cctorU3Eb__20_0_mCEEC27615777A8FFF2C68CADE7171D62AB87837C,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
PreserveAttribute__ctor_m182E60B3CACD75062C73D9806313B31A927E0555,
TPeer_get_QueuedIncomingCommandsCount_mC902717D6CC234CB56F2403A985C96D3BEB2396E,
TPeer_get_QueuedOutgoingCommandsCount_mF4AF3675528D3AAD4E801FE4BFBF09772252E493,
TPeer__ctor_m2736C1E17818D50302E73053A9D33E1F4EDBAF25,
TPeer_InitPeerBase_mF6C377C456842016F043C49E1A7361D19441BD22,
TPeer_Connect_m196EA8283A0431705737200EDB8A44CB2C0B3BE4,
TPeer_Connect_mE7BCB997C5EB4DD6FD2F9A982BAC0D1F027433D4,
TPeer_OnConnect_m983C831E7E28781DC7D5EB04C23CC9EAF22076CA,
TPeer_Disconnect_mDBD4C9E85F53AC1785F38CE043E98224F28E57CF,
TPeer_StopConnection_mF41950B6DABD589AEBF7EC6D8909553326D5325A,
TPeer_FetchServerTimestamp_mA8D4EA81D4E271E5C0831125B1CEF53760D0F1B9,
TPeer_EnqueueInit_m746EF0B368ED46A7BE0EDA41189354DBB7EDC94D,
TPeer_DispatchIncomingCommands_mDACF10B846F4400FD47D4313D388025F843656E9,
TPeer_SendOutgoingCommands_mE28FFDBF29B0EC784F4EA9B8890D0571724F19DF,
TPeer_SendAcksOnly_mD47D66B0267F3A9428834B0166853E06C1C014CA,
TPeer_EnqueueOperation_m853FCDC19EC82B4D3FFA7D9276379EB4BD8428A2,
TPeer_EnqueueMessage_m24AEFC73F037B4A4C69875ED2F263A0DF595C228,
TPeer_SerializeOperationToMessage_mA5E6E098B9682A9FB3AC6621B962775C9796CC90,
TPeer_EnqueueMessageAsPayload_m15129A491EA861B04747C9797311C8229DB500FE,
TPeer_SendPing_mC0D82B1F72B19ED03D639AF48764CC73D4012205,
TPeer_SendData_m6AD0076CCF350E1D78BACC2958B46899E61E6731,
TPeer_ReceiveIncomingCommands_mA0C4B969010D1C9614D1188BA8619169DA5A8425,
TPeer_ReadPingResult_mFF89EAE35D8A4D6AC8C05B6AC01F312F7C5B9E84,
TPeer_ReadPingResult_m2459F445356386582CE47CEB1F7521D9F1E3CC3F,
TPeer__cctor_m34F83152414A1B570BB45BDA49EBA013C5F32332,
TrafficStatsGameLevel_get_OperationByteCount_mE7B1976140DD0502AE6902C18F9277DE3A53714E,
TrafficStatsGameLevel_set_OperationByteCount_m61EC810AF51F6AEBE591A30B4E96908781966CD2,
TrafficStatsGameLevel_get_OperationCount_mE5E3ECEF7625D445EEFA2BF565701935D5EE4BC3,
TrafficStatsGameLevel_set_OperationCount_mF031F074BA1BB8C0E34AC46955DFDDF65FAC418A,
TrafficStatsGameLevel_get_ResultByteCount_m36491FFD1482927CFAF734642E97D4AC36332DB4,
TrafficStatsGameLevel_set_ResultByteCount_mEE65C5FA649E839121DC46E21C2A314A5859DFDB,
TrafficStatsGameLevel_get_ResultCount_mC77731C2289648C9868588B2EA7989EBCE4A4DA7,
TrafficStatsGameLevel_set_ResultCount_m8640EBCCA2E7F3B03120AD4F970E8D15E9480F6A,
TrafficStatsGameLevel_get_EventByteCount_mB00DDADC7E0D102D1EE88BF1050F0BE9DA2F3023,
TrafficStatsGameLevel_set_EventByteCount_mE8D047D92F707F6A8D28B07AD0092D95ABEF2017,
TrafficStatsGameLevel_get_EventCount_m3667944A9E1FC792EC94B7B8787B4C6BA93C71F2,
TrafficStatsGameLevel_set_EventCount_m9AA09E5AA7DDF2F81837257B034E82C7FED5A474,
TrafficStatsGameLevel_get_LongestOpResponseCallback_mF6E5203615540027D34789E71DC1DE0DEE8EF588,
TrafficStatsGameLevel_set_LongestOpResponseCallback_mE18DF968B13A916B1179129920D7CB56488BCCF2,
TrafficStatsGameLevel_get_LongestOpResponseCallbackOpCode_m1D27D4106B5F50A1D30B218D87E7A618E6A8301F,
TrafficStatsGameLevel_set_LongestOpResponseCallbackOpCode_m8E280C6C6723E2E0C5B1D8962E6D67CC6D8F2C4B,
TrafficStatsGameLevel_get_LongestEventCallback_m7B7D2282D16D01E02C6E5D710C69B1B7F5AEB33E,
TrafficStatsGameLevel_set_LongestEventCallback_mFD391B800CFBA83679C518609CCFD65CAD43245F,
TrafficStatsGameLevel_get_LongestMessageCallback_m7CB4710B66709978395F803F53185B17531F33D9,
TrafficStatsGameLevel_set_LongestMessageCallback_m2983F2737EF4E6407F326CE8554E2E4C1BA68D7B,
TrafficStatsGameLevel_get_LongestRawMessageCallback_mEC136AA45D27B645EAE49D2D6AF8DFD02855A0A3,
TrafficStatsGameLevel_set_LongestRawMessageCallback_m953E6A841776CE4581FD2051F3E8DD520FF3ADC5,
TrafficStatsGameLevel_get_LongestEventCallbackCode_m2EDA97E93839E9983B7C36210430FC4BA8E3D368,
TrafficStatsGameLevel_set_LongestEventCallbackCode_mB4C543EE6F100D2D648C310DBD74A519F0AD9D54,
TrafficStatsGameLevel_get_LongestDeltaBetweenDispatching_mDB8360450CA418D11126EF7581CCC52359F39861,
TrafficStatsGameLevel_set_LongestDeltaBetweenDispatching_m375C23F6886CCFF92490EF4E1A69879BFA6A2D2C,
TrafficStatsGameLevel_get_LongestDeltaBetweenSending_mA930B30EC8C613896A042602554672C07662A671,
TrafficStatsGameLevel_set_LongestDeltaBetweenSending_m5602C081B179682F683CCA91446AF7B6F2BCAA3E,
TrafficStatsGameLevel_get_DispatchCalls_mD9CF1A66628BE7C50DCE960AA7095C342A6E0831,
TrafficStatsGameLevel_get_DispatchIncomingCommandsCalls_m45FD36FED381061D072AFFCCB69A15048728D591,
TrafficStatsGameLevel_set_DispatchIncomingCommandsCalls_mC14CDD723C55083B9E19CB7611C267D391A478B3,
TrafficStatsGameLevel_get_SendOutgoingCommandsCalls_mC13138DCEF7B9A45D54E66DE8E5348E0DD063AEE,
TrafficStatsGameLevel_set_SendOutgoingCommandsCalls_m3A4A39B8D4DBCCC3DEB830286BF931F22A599F3B,
TrafficStatsGameLevel_get_TotalByteCount_mED91B21463A60B1073893B3DE63E1CB765BAC8E7,
TrafficStatsGameLevel_get_TotalMessageCount_mAA54DEB9B4408B47B7EA5F082709936D1B3C636E,
TrafficStatsGameLevel_get_TotalIncomingByteCount_mD5B15DE2D5F5255FCA336B2A1F842B0E462ED7C4,
TrafficStatsGameLevel_get_TotalIncomingMessageCount_m684A4D0A90DB32E72ADFA9025435A0FFD42BDCAE,
TrafficStatsGameLevel_get_TotalOutgoingByteCount_mCC89FB2621A29EBA83137ED8D391EC5A3B6C3FD1,
TrafficStatsGameLevel_get_TotalOutgoingMessageCount_m0CC1D8B52C136766544F10B650C59F26F6D57B89,
TrafficStatsGameLevel_CountOperation_m3A0547B6073AD68C02D89F04BDF52F284E77D46F,
TrafficStatsGameLevel_CountResult_m8EB7CB70E871FBEB9E6C4C85F2F78B4E25FB5C7A,
TrafficStatsGameLevel_CountEvent_m405185B173483581FDF85937C850051B1FE4E547,
TrafficStatsGameLevel_TimeForResponseCallback_m17974202E46F17878CA8D7AD60C21C53EC9C5EC8,
TrafficStatsGameLevel_TimeForEventCallback_m67AFEF4CA5C29840B46E629A5334D551CE8546EB,
TrafficStatsGameLevel_TimeForMessageCallback_m4172FE3F45E9647F66DFED62E18139C275460004,
TrafficStatsGameLevel_TimeForRawMessageCallback_mF535B74DE8A7D95C4926EF7A04535D16DB6DCA17,
TrafficStatsGameLevel_DispatchIncomingCommandsCalled_m2047B76836D234F1374C3AE2BA11DB59EC8A039C,
TrafficStatsGameLevel_SendOutgoingCommandsCalled_m4FF3EFF1E68D5059903E8ED75EDE24D9E21B09A8,
TrafficStatsGameLevel_ResetMaximumCounters_m343E41FB2963FCA691E2496EA1F3E0FF0BB06ACF,
TrafficStatsGameLevel_ToString_m0DCD7F7439AAAC07151768C96703FDD0B52B6F44,
TrafficStatsGameLevel_ToStringVitalStats_m66E31FABDDFE64E0C3AD8772FFB88440E7277B23,
TrafficStatsGameLevel__ctor_m1FC4294115E3939D687F4C6D7EE860B52593F114,
TrafficStats_get_PackageHeaderSize_m6DDAC0D97C22D96113F3CC03C17EB31E5FEF4786,
TrafficStats_set_PackageHeaderSize_mAE818A528A1C5A59EF26EA6389AED7B54B1096ED,
TrafficStats_get_ReliableCommandCount_m344F6FC6F66AF1D3CF44B2F247B5EFCBADF90BB7,
TrafficStats_set_ReliableCommandCount_m8D36D1B6FC616B6CB3BE2ECD1B8EC7468E15E46E,
TrafficStats_get_UnreliableCommandCount_m82711D2A226E8B7D82A2B49DD6BDEDF1FC341728,
TrafficStats_set_UnreliableCommandCount_m24194C72567D19FE10C5205CDF2745884F95BE89,
TrafficStats_get_FragmentCommandCount_mE638ADF48B41FB7226A08B953B4E05048F69BD4C,
TrafficStats_set_FragmentCommandCount_m7575514F5532ABA49440639F466D65678AFA9BBD,
TrafficStats_get_ControlCommandCount_mBD8BD123B8F1FFED9CD5F4CAB31289FCDF127881,
TrafficStats_set_ControlCommandCount_m731BED58A92CB20A30F6911269CB55F556D7FFC3,
TrafficStats_get_TotalPacketCount_m64E189D0BA605BA099FB8A7B7AD8BADB8D2FF714,
TrafficStats_set_TotalPacketCount_m9088C522823E8622CA816A9C0C5F4489E7E5DCA0,
TrafficStats_get_TotalCommandsInPackets_m3E1FBBD1C2911FA8EAB466F904DDDDC517EF7BAD,
TrafficStats_set_TotalCommandsInPackets_m1D15F32772AA7EB81EB34433155F760743FA67A9,
TrafficStats_get_ReliableCommandBytes_m917A815709A94C96457B8AEC7153A2CA7CF8B9C7,
TrafficStats_set_ReliableCommandBytes_m1ACF9B259E8544025094BDBA03F24BEE2AB07BEE,
TrafficStats_get_UnreliableCommandBytes_m31100161679FDFC8C0028FA70176E4992625ADC8,
TrafficStats_set_UnreliableCommandBytes_m6172F51043B3A763FFB98BBBD57EB5BA271396B3,
TrafficStats_get_FragmentCommandBytes_mF3E45A26ECA338DADAD42C22AF41663C8C74641A,
TrafficStats_set_FragmentCommandBytes_m0F0D591C4A0E5EAA13143999BDDCB690E761F0F2,
TrafficStats_get_ControlCommandBytes_m51955A49A4DB39D73FE51E1CB3EA3197D093C8BF,
TrafficStats_set_ControlCommandBytes_mD9728C15CC1EF0CAFB1825D66A8C82133AA26FC7,
TrafficStats__ctor_mE38A22CB44818349588B97E2252555561E0B8BC2,
TrafficStats_get_TotalCommandCount_mB2C45AE3C3656B55A49D518155AD933F3DCF1195,
TrafficStats_get_TotalCommandBytes_mB383A7A252C329333B1586EDC1BCAEC5EFF8DFF7,
TrafficStats_get_TotalPacketBytes_m1C9C5903F2EEDD995CAD025E84047485BB22A9B3,
TrafficStats_get_TimestampOfLastAck_m5032D4D94415DB8FAEA09BE42C71DAB5EBEF2745,
TrafficStats_set_TimestampOfLastAck_mD560814C2B65A82A5E59A7A30404925AF2DE36C1,
TrafficStats_get_TimestampOfLastReliableCommand_mA6C7673A7A6C653D7DB9F10D85C58DD2A96ADEFE,
TrafficStats_set_TimestampOfLastReliableCommand_m23C5646968E13B18D2C6F89E41963679FC5CAF2B,
TrafficStats_CountControlCommand_mCA4A90FA3A90922E2763E1329D3683F54867BEFD,
TrafficStats_CountReliableOpCommand_m71BF86C54D4ED1E2F9C877F32B589CE96A90DB59,
TrafficStats_CountUnreliableOpCommand_m367D8B4DE36D0F23894286A7F06F97A637E08C5E,
TrafficStats_CountFragmentOpCommand_m793233BFDD2295CB6F1291CCB0C00F9E0DEA9B4B,
TrafficStats_ToString_m75C5ED9FA43C4C8BEE44D42DD4758AD39D393AAA,
Version__cctor_m71E280F57F915B7C71267C2AEB1887F397517C14,
NULL,
NULL,
NULL,
NULL,
NULL,
EncryptorNet_Init_mB77ECE39E9A3DEE25316531D51EF3696480F6C48,
EncryptorNet_Encrypt_m539656934E92A3A50C676087B558E1C491764FD7,
EncryptorNet_Decrypt_m2913371AC552DF7230F6BA22D84FF0FE5E9FC041,
EncryptorNet_CreateHMAC_m534D14C56AFF5FEDACF21FB229FFC6A9125A9A14,
EncryptorNet_CheckHMAC_m8803A7CDA7CA89456C8654AAE075F83183D21317,
EncryptorNet__ctor_m6AF5F158695C8F14C2D0550AA955CCC89927B5AB,
EncryptorNative_egconstructEncryptor_m86882FEE07E78AD429434C01DEDC5DAB22CCE76D,
EncryptorNative_egdestructEncryptor_mA912D1510B807BD48FA72420C3CAE2E23B07CB59,
EncryptorNative_egencrypt_m28352E332DADAC9A480148CFBA13974E26FD8A0C,
EncryptorNative_egdecrypt_m9533A8D0F0811092256391AF95A40F06072D69DB,
EncryptorNative_egHMAC_m231DE0213F05F221CA8B31DA40BF8D83E3AA3D2C,
EncryptorNative_egsetEncryptorLoggingCallback_m141C5015A11DDDDA7D8B0D0B86EB10851B6BF8C1,
EncryptorNative_egsetEncryptorLoggingLevel_m903B085F4A89ADAAD1866B911097E1E8C95E252E,
EncryptorNative_Finalize_m152AC4C421555F3A5CA0206338A5C9714942488B,
EncryptorNative_OnNativeLog_m7FBA0434742C801C12934079350C8D7CF53E9C9B,
EncryptorNative_Init_mAFD35A00793A8913FDF1E60623763DDFDF99732B,
EncryptorNative_Dispose_mC28F4C200EB270462B1AD62E88E868FF852EEF7E,
EncryptorNative_Encrypt_m7FBBC8B270575872AE468435DF035F284604FA14,
EncryptorNative_CreateHMAC_m6985451B3139135EA7C08BE95505D3C31B339A42,
EncryptorNative_Decrypt_m5B179D047291824F7ADE32121A535EE60290082A,
EncryptorNative_CheckHMAC_mC65559149790891BD325B80E65B6447111A44640,
EncryptorNative__ctor_mD42C72E68F3BAEFDCA522964512055DB20C4515E,
EncryptorNative__cctor_mC3C19BE541058F27B73CA6A8319227FD8793E304,
LogCallbackDelegate__ctor_m6CBF7FBC54DA18FE70D885D85A8A2066903E41AA,
LogCallbackDelegate_Invoke_mA819999CF286FBEE022EBD5E630D94AB0B276602,
LogCallbackDelegate_BeginInvoke_m2B2C8EC01BE13CF52CAAB80D3D0622A05ACEF12D,
LogCallbackDelegate_EndInvoke_mD8E7784B168C4F2BA8D75838780BCAB29A5125C4,
DiffieHellmanCryptoProvider__ctor_m756F19FDCD4B8BEC264F3C278188A94C4AD54795,
DiffieHellmanCryptoProvider__ctor_mC60A298836C745155151805BC8666B0FE9E1FA4F,
DiffieHellmanCryptoProvider_get_PublicKey_m105DC0F3DE282906953F98B372B31BEF004AEFA9,
DiffieHellmanCryptoProvider_DeriveSharedKey_m<KEY>,
DiffieHellmanCryptoProvider_Encrypt_m74DD72284D17E3156A9C7F3182457CA3586F276C,
DiffieHellmanCryptoProvider_Decrypt_m9AD8860DEC217DC76717883C4DFD3C6E59BD062B,
DiffieHellmanCryptoProvider_Dispose_m695ED7D77F64232768FBE1767766A05A9E88E146,
DiffieHellmanCryptoProvider_Dispose_m5019411EFF7D26EA519E8721DC3A69CC41E23DB3,
DiffieHellmanCryptoProvider_CalculatePublicKey_m542A09AD2EA10988260C67EADF9FFA6492C89284,
DiffieHellmanCryptoProvider_CalculateSharedKey_mD31E24DA719371ABDCA5F4A0CBD4629C0E5E12A7,
DiffieHellmanCryptoProvider_GenerateRandomSecret_mC00EBB74690725DE2E219<KEY>84E91866E,
DiffieHellmanCryptoProvider__cctor_mC6430EB5D1201D7268063124E413DB10D2475558,
DiffieHellmanCryptoProviderNative_egCryptorCreate_m282278D194293372D8BF3DD9D0C756844F93094A,
DiffieHellmanCryptoProviderNative_egCryptorPublicKey_m936DA64D7FABD6E890E0C0919D9482C90C537AF6,
DiffieHellmanCryptoProviderNative_egCryptorDeriveSharedKey_mE62543C5EA2D91B93999E1CC15D6A14D98EFF650,
DiffieHellmanCryptoProviderNative_egCryptorEncrypt_mA8DA63FA96EB12756651890BF40A9ECF9E5120A8,
DiffieHellmanCryptoProviderNative_egCryptorDecrypt_m1ECA9577B04E13C12E6A6B469476AAB6AED3E0E8,
DiffieHellmanCryptoProviderNative_egCryptorDispose_mE9DE80C11D2F5B587B406B4907DCAF10BC991C93,
DiffieHellmanCryptoProviderNative__ctor_m1D753DA810935AC7373C4A4A32440E596BB46B64,
DiffieHellmanCryptoProviderNative__ctor_m8FF8E25C7646E51D935ABF3185AF0B09E00E9D5A,
DiffieHellmanCryptoProviderNative_get_PublicKey_m2AAC7BAA407B50F443716BA4E2CE3A77DF2F8457,
DiffieHellmanCryptoProviderNative_DeriveSharedKey_m29EC0766FAD79465106167736FEB55F8354B6EAB,
DiffieHellmanCryptoProviderNative_Encrypt_m3468D009848944980F7965EB971258C650122A8D,
DiffieHellmanCryptoProviderNative_Decrypt_mD76B7353A6E47CA9BFEBA496AE2597AE72EAAD40,
DiffieHellmanCryptoProviderNative_Dispose_m8A4318E08F4A4AB32554C4C18CF59C7389AFCC10,
DiffieHellmanCryptoProviderNative_Dispose_m6AEC734973EAA3E24BB1BB7C46967A167EB13D8F,
NULL,
NULL,
NULL,
NULL,
OakleyGroups__cctor_mBCB3AA137F7D7C2F975BBBCE380FEE3CF3AB41C2,
BigInteger__ctor_m4016A96CFEDD1170A97283085A87A147CC935C14,
BigInteger__ctor_m81170D9A09D3CD01A25F643ED97348CBB1673B0C,
BigInteger__ctor_m782403E9B1A25AAD1208B95DCFA5AB1C3D97FEBA,
BigInteger__ctor_m0D6D2701B42A83E5A0E074BB41832EA80808B160,
BigInteger__ctor_mF7D4C1DD1B4C5A55E12521AF46771AD8A464987F,
BigInteger_op_Implicit_mDAE774B33B5E673D478E996EB2F8E2124E21CF1E,
BigInteger_op_Implicit_m77909B69687C77A5E3B8F0C8C3FC71C36ED06D60,
BigInteger_op_Addition_m2931EA90D7230F222479ECF3D3B834FEC6A40C7C,
BigInteger_op_Subtraction_m87772CCF4BC8508B87B64CFC272EF45B00B11FB3,
BigInteger_op_Multiply_m9478721A1DFF5D678B24801D34FF930D28C7831D,
BigInteger_op_LeftShift_mA916E92886FE486E13E5949FA41861512233F7B6,
BigInteger_shiftLeft_mA43634983AAF71B5E3ACACF7595C67AD50EB8677,
BigInteger_shiftRight_m00A521D4E5F2DCA3462D793A6F5B3620551DA70A,
BigInteger_op_UnaryNegation_m0A289D543B0C2171BDCDC23236F45DD8E0133784,
BigInteger_op_Equality_mF28D172221460DBCE66A188F54F195628E8E3967,
BigInteger_Equals_m7205176C09F92065753845610C56CDE747821B19,
BigInteger_GetHashCode_mD71A55A43FFA23081DA676C8B574BA164BAED9B7,
BigInteger_op_GreaterThan_mB3F96B34F601F8C58BC630362E7F2AE1B1116006,
BigInteger_op_LessThan_mB222680D4D19B23782419ADB68687ED8F057BBB4,
BigInteger_op_GreaterThanOrEqual_mFD712DD6BACCBBF8522C6C91F7F9D74E1EB351DC,
BigInteger_multiByteDivide_mC8014E87E2336FC9AA84456BC8B984F5F62A3416,
BigInteger_singleByteDivide_mFA97C648CF56A7D21B51F7C8C7989046BD52264A,
BigInteger_op_Division_m62B9CA2C5A84079C6B34AD0CC067394856184D87,
BigInteger_op_Modulus_m90720BBFCF0485DD9176F76E1DA5D1DC387E2BD3,
BigInteger_ToString_mB4BF88746F9BA518365B1E00145221F93061E3FA,
BigInteger_ToString_mF4A742AC3203ED7967B1B905B171EC520D01F4E5,
BigInteger_ModPow_mB1C5C90220C0D27D250191C03961A28955B89FE3,
BigInteger_BarrettReduction_mF06563ABD7E7485B8987FD18994AEFA5F06C1D6D,
BigInteger_GenerateRandom_mA119A58325209C562BC58AAAC950251E40C6B7C0,
BigInteger_genRandomBits_m942153A30B8DE2FA7F270AD3220A36E97375B44F,
BigInteger_bitCount_m496893A7F384B4DFFD4492EA46C62A45E8F4FC69,
BigInteger_GetBytes_m3074082860A2626AA7E75AD54145CECEA2BD08A0,
BigInteger__cctor_mF71C8E3FF6C0B3F85E197A6E0EE799B3C0C040BB,
};
static const int32_t s_InvokerIndices[947] =
{
137,
35,
23,
89,
23,
10,
32,
10,
23,
54,
34,
58,
9,
136,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
23,
32,
28,
27,
14,
14,
14,
26,
89,
23,
14,
695,
14,
14,
695,
23,
833,
30,
34,
30,
34,
1794,
139,
23,
9,
10,
10,
10,
23,
23,
23,
940,
1006,
23,
23,
23,
23,
89,
10,
37,
10,
89,
89,
89,
1795,
1796,
130,
1797,
1798,
10,
112,
137,
137,
137,
26,
26,
26,
137,
137,
26,
9,
785,
28,
3,
23,
88,
26,
32,
26,
14,
10,
10,
32,
89,
14,
26,
14,
26,
4,
168,
10,
32,
89,
31,
14,
26,
14,
26,
14,
26,
89,
89,
512,
1799,
365,
227,
88,
32,
1800,
9,
28,
41,
0,
23,
3,
23,
28,
43,
14,
14,
161,
1299,
161,
161,
1801,
161,
162,
230,
9,
102,
28,
28,
28,
28,
28,
28,
27,
23,
89,
31,
1802,
690,
1803,
26,
23,
10,
89,
89,
1804,
1801,
1801,
624,
624,
23,
639,
14,
23,
23,
112,
14,
23,
10,
32,
89,
31,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
14,
23,
3,
14,
14,
26,
14,
26,
14,
89,
10,
10,
89,
186,
186,
10,
10,
10,
14,
10,
106,
89,
10,
89,
23,
4,
168,
23,
940,
1006,
28,
218,
218,
23,
23,
23,
23,
23,
1795,
1798,
1796,
1803,
89,
89,
137,
89,
9,
32,
9,
26,
26,
26,
88,
32,
14,
26,
26,
23,
89,
14,
14,
14,
3,
131,
23,
105,
26,
23,
23,
23,
23,
10,
32,
10,
32,
10,
89,
14,
49,
49,
49,
3,
10,
32,
14,
26,
14,
26,
89,
31,
89,
31,
14,
186,
186,
10,
14,
10,
14,
89,
31,
89,
31,
89,
14,
10,
10,
178,
106,
89,
31,
10,
10,
10,
10,
10,
26,
10,
10,
10,
10,
32,
10,
10,
10,
10,
14,
26,
14,
89,
89,
31,
89,
31,
14,
10,
32,
89,
89,
31,
14,
26,
14,
26,
14,
26,
186,
89,
31,
23,
23,
130,
14,
26,
31,
462,
90,
940,
1006,
23,
23,
23,
23,
89,
1805,
26,
23,
89,
89,
89,
1806,
1807,
1808,
1809,
1809,
3,
89,
23,
130,
88,
14,
14,
23,
130,
88,
10,
32,
14,
26,
23,
14,
14,
23,
131,
28,
218,
28,
131,
1810,
132,
230,
131,
28,
218,
28,
131,
1811,
1812,
28,
949,
949,
1809,
1809,
0,
0,
1243,
1813,
1814,
1118,
1118,
1118,
23,
3,
14,
14,
90,
162,
130,
9,
1815,
161,
1801,
28,
161,
28,
161,
102,
27,
105,
161,
817,
817,
1299,
365,
1816,
1817,
1818,
161,
161,
161,
1819,
161,
161,
161,
161,
161,
27,
589,
1820,
162,
9,
9,
230,
112,
231,
232,
233,
28,
28,
58,
58,
28,
28,
28,
28,
1821,
1349,
23,
3,
26,
14,
14,
161,
1299,
161,
162,
230,
9,
828,
828,
9,
30,
28,
162,
9,
9,
230,
230,
112,
231,
232,
233,
28,
28,
162,
102,
102,
28,
28,
28,
28,
28,
28,
1349,
28,
28,
28,
1822,
28,
28,
28,
28,
28,
28,
28,
28,
28,
1337,
1337,
112,
112,
231,
231,
28,
28,
37,
998,
161,
1820,
161,
27,
161,
1801,
161,
817,
817,
964,
1299,
1818,
1817,
161,
161,
161,
1823,
161,
161,
161,
161,
161,
161,
161,
161,
161,
161,
161,
211,
161,
161,
90,
1820,
161,
589,
1292,
161,
161,
137,
365,
365,
1816,
137,
512,
185,
37,
998,
23,
3,
89,
31,
3,
24,
1824,
1825,
600,
25,
169,
1826,
1827,
1828,
1829,
600,
26,
23,
23,
89,
1830,
23,
89,
512,
1799,
23,
3,
131,
1831,
1832,
26,
26,
23,
23,
89,
89,
512,
1799,
23,
23,
26,
23,
23,
89,
89,
512,
1799,
23,
26,
26,
211,
89,
89,
14,
10,
10,
23,
26,
23,
23,
89,
89,
512,
1799,
23,
23,
26,
23,
23,
89,
89,
512,
1799,
23,
23,
26,
32,
26,
14,
14,
23,
14,
694,
89,
89,
89,
10,
10,
32,
23,
739,
213,
32,
513,
35,
89,
31,
42,
678,
85,
84,
30,
1,
106,
241,
5,
49,
142,
168,
0,
167,
0,
0,
43,
114,
23,
3,
131,
10,
105,
112,
106,
23,
3,
23,
23,
3,
23,
10,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
23,
10,
10,
23,
23,
940,
1006,
23,
23,
23,
23,
26,
89,
89,
89,
1795,
1796,
1798,
1833,
23,
137,
137,
26,
26,
3,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
89,
31,
10,
32,
10,
32,
10,
32,
89,
31,
10,
32,
10,
32,
10,
10,
32,
10,
32,
10,
10,
10,
10,
10,
10,
32,
32,
32,
833,
833,
32,
32,
23,
23,
23,
14,
14,
23,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
10,
32,
32,
10,
10,
10,
10,
32,
10,
32,
32,
32,
32,
32,
14,
3,
981,
1834,
1835,
54,
146,
981,
1834,
1835,
54,
146,
23,
1836,
25,
1837,
1838,
1838,
1259,
46,
23,
1830,
981,
31,
1834,
54,
1835,
146,
23,
3,
131,
1831,
1832,
26,
23,
26,
14,
26,
54,
54,
23,
31,
14,
28,
34,
3,
773,
1839,
1840,
1841,
1841,
25,
23,
26,
14,
26,
54,
54,
23,
31,
14,
26,
54,
54,
3,
23,
213,
26,
26,
26,
948,
43,
1,
1,
1,
115,
114,
114,
0,
121,
9,
10,
121,
121,
121,
1842,
1842,
1,
1,
14,
34,
105,
218,
43,
62,
10,
14,
3,
};
static const Il2CppTokenIndexPair s_reversePInvokeIndices[2] =
{
{ 0x0600026E, 9 },
{ 0x06000367, 8 },
};
static const Il2CppTokenRangePair s_rgctxIndices[3] =
{
{ 0x02000004, { 0, 17 } },
{ 0x02000007, { 17, 2 } },
{ 0x02000046, { 19, 10 } },
};
static const Il2CppRGCTXDefinition s_rgctxValues[29] =
{
{ (Il2CppRGCTXDataType)2, 19822 },
{ (Il2CppRGCTXDataType)3, 15356 },
{ (Il2CppRGCTXDataType)2, 19825 },
{ (Il2CppRGCTXDataType)3, 15357 },
{ (Il2CppRGCTXDataType)3, 15358 },
{ (Il2CppRGCTXDataType)2, 22292 },
{ (Il2CppRGCTXDataType)3, 15359 },
{ (Il2CppRGCTXDataType)2, 22293 },
{ (Il2CppRGCTXDataType)3, 15360 },
{ (Il2CppRGCTXDataType)2, 19823 },
{ (Il2CppRGCTXDataType)3, 15361 },
{ (Il2CppRGCTXDataType)2, 19860 },
{ (Il2CppRGCTXDataType)3, 15362 },
{ (Il2CppRGCTXDataType)3, 15363 },
{ (Il2CppRGCTXDataType)2, 19827 },
{ (Il2CppRGCTXDataType)3, 15364 },
{ (Il2CppRGCTXDataType)3, 15365 },
{ (Il2CppRGCTXDataType)2, 19851 },
{ (Il2CppRGCTXDataType)3, 15366 },
{ (Il2CppRGCTXDataType)2, 22294 },
{ (Il2CppRGCTXDataType)3, 15367 },
{ (Il2CppRGCTXDataType)3, 15368 },
{ (Il2CppRGCTXDataType)3, 15369 },
{ (Il2CppRGCTXDataType)3, 15370 },
{ (Il2CppRGCTXDataType)3, 15371 },
{ (Il2CppRGCTXDataType)3, 15372 },
{ (Il2CppRGCTXDataType)2, 20076 },
{ (Il2CppRGCTXDataType)3, 15373 },
{ (Il2CppRGCTXDataType)3, 15374 },
};
extern const Il2CppCodeGenModule g_Photon3Unity3DCodeGenModule;
const Il2CppCodeGenModule g_Photon3Unity3DCodeGenModule =
{
"Photon3Unity3D.dll",
947,
s_methodPointers,
s_InvokerIndices,
2,
s_reversePInvokeIndices,
3,
s_rgctxIndices,
29,
s_rgctxValues,
NULL,
};
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/Assembly-CSharp.cpp
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template <typename T1>
struct VirtActionInvoker1
{
typedef void (*Action)(void*, T1, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
// ExitGames.Client.Photon.Hashtable
struct Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133;
// GameManager
struct GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89;
// GameManager/<>c__DisplayClass18_0
struct U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F;
// GameManager/<>c__DisplayClass19_0
struct U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE;
// GameUI
struct GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0;
// Hat
struct Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F;
// Menu
struct Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129;
// NetworkManager
struct NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C;
// Photon.Pun.MonoBehaviourPun
struct MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A;
// Photon.Pun.MonoBehaviourPunCallbacks
struct MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D;
// Photon.Pun.PhotonStream
struct PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E;
// Photon.Pun.PhotonView
struct PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B;
// Photon.Realtime.LoadBalancingClient
struct LoadBalancingClient_t83BDB381BB0B2B367F4B8AA0280EB8204428611A;
// Photon.Realtime.Player
struct Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202;
// Photon.Realtime.Player[]
struct PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83;
// Photon.Realtime.Room
struct Room_t5DFC39DD6736A2641374564EC6C31352BE33000D;
// Photon.Realtime.RoomOptions
struct RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906;
// Photon.Realtime.TypedLobby
struct TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5;
// PlayerController
struct PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85;
// PlayerController[]
struct PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76;
// PlayerUIContainer
struct PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9;
// PlayerUIContainer[]
struct PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83;
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.Generic.Dictionary`2<System.Int32,Photon.Realtime.Player>
struct Dictionary_2_tA8C1FE9FA1FB583BFC17676FCF9DFF7D606CB346;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>
struct Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8;
// System.Collections.Generic.IEnumerable`1<PlayerController>
struct IEnumerable_1_tCABE48193A9903C8B1DE3F1D9859ADF8DF095660;
// System.Collections.Generic.IEnumerable`1<System.Object>
struct IEnumerable_1_t2F75FCBEC68AFE08982DA43985F9D04056E2BE73;
// System.Collections.Generic.List`1<Photon.Pun.IOnPhotonViewControllerChange>
struct List_1_tDC45962FBB81102D096ABE6131BE4919BBD7CD06;
// System.Collections.Generic.List`1<Photon.Pun.IOnPhotonViewPreNetDestroy>
struct List_1_tC545D36521EA90C9FFE32387CD37154B2A2CB829;
// System.Collections.Generic.List`1<System.Object>
struct List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D;
// System.Collections.Generic.List`1<UnityEngine.CanvasGroup>
struct List_1_t053DAB6E2110E276A0339D73497193F464BC1F82;
// System.Collections.Generic.List`1<UnityEngine.Component>
struct List_1_tAAE8BF32F260E5939A1EAF05F4C38C7841B64300;
// System.Collections.Generic.Queue`1<Photon.Pun.PhotonView/CallbackQueueItem>
struct Queue_1_tD3157DC8F1F707ABF509E79D913ED932AC2A554C;
// System.DelegateData
struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE;
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
// System.Func`2<PlayerController,System.Boolean>
struct Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A;
// System.Func`2<System.Object,System.Boolean>
struct Func_2_t7EE965B791A606D187CCB69569A433D4CBB36879;
// System.IAsyncResult
struct IAsyncResult_t8E194308510B375B42432981AE5E7488C458D598;
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.Single[]
struct SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5;
// System.String
struct String_t;
// System.String[]
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
// TMPro.FontWeight[]
struct FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446;
// TMPro.MaterialReference[]
struct MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B;
// TMPro.RichTextTagAttribute[]
struct RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652;
// TMPro.TMP_Character
struct TMP_Character_t1875AACA978396521498D6A699052C187903553D;
// TMPro.TMP_CharacterInfo[]
struct TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604;
// TMPro.TMP_ColorGradient
struct TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7;
// TMPro.TMP_ColorGradient[]
struct TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C;
// TMPro.TMP_FontAsset
struct TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C;
// TMPro.TMP_InputField
struct TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB;
// TMPro.TMP_InputField/OnChangeEvent
struct OnChangeEvent_t1610FEF044826EE0837528C1E90FCDFC45B3D7AD;
// TMPro.TMP_InputField/OnValidateInput
struct OnValidateInput_t47FA5831345A245F5C6FD9C0E4F5CE43430C1863;
// TMPro.TMP_InputField/SelectionEvent
struct SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A;
// TMPro.TMP_InputField/SubmitEvent
struct SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC;
// TMPro.TMP_InputField/TextSelectionEvent
struct TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854;
// TMPro.TMP_InputField/TouchScreenKeyboardEvent
struct TouchScreenKeyboardEvent_tF41EB6E5E2B26213D1C0CE6573498CA6ACB3CA1F;
// TMPro.TMP_InputValidator
struct TMP_InputValidator_t4C673E12211AFB82AAF94D9DEA556FDC306E69CD;
// TMPro.TMP_ScrollbarEventHandler
struct TMP_ScrollbarEventHandler_t081C59DD8EC81899836C864E45E60977A40FBA83;
// TMPro.TMP_SpriteAnimator
struct TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17;
// TMPro.TMP_SpriteAsset
struct TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487;
// TMPro.TMP_SubMeshUI[]
struct TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E;
// TMPro.TMP_Text
struct TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7;
// TMPro.TMP_Text/UnicodeChar[]
struct UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505;
// TMPro.TMP_TextElement
struct TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344;
// TMPro.TMP_TextInfo
struct TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181;
// TMPro.TextAlignmentOptions[]
struct TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B;
// TMPro.TextMeshProUGUI
struct TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438;
// UnityEngine.Canvas
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591;
// UnityEngine.CanvasRenderer
struct CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72;
// UnityEngine.Collider
struct Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF;
// UnityEngine.Collision
struct Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C;
// UnityEngine.Color32[]
struct Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983;
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621;
// UnityEngine.ContactPoint[]
struct ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA;
// UnityEngine.Coroutine
struct Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC;
// UnityEngine.Event
struct Event_t187FF6A6B357447B83EC2064823EE0AEC5263210;
// UnityEngine.Events.UnityAction
struct UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4;
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F;
// UnityEngine.Material
struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598;
// UnityEngine.Material[]
struct MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398;
// UnityEngine.Mesh
struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C;
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429;
// UnityEngine.MonoBehaviour[]
struct MonoBehaviourU5BU5D_tEC81C7491112CB97F70976A67ABB8C33168F5F0A;
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0;
// UnityEngine.RectTransform
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20;
// UnityEngine.Rigidbody
struct Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5;
// UnityEngine.Sprite
struct Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198;
// UnityEngine.Texture2D
struct Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C;
// UnityEngine.TouchScreenKeyboard
struct TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90;
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA;
// UnityEngine.Transform[]
struct TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804;
// UnityEngine.UI.AnimationTriggers
struct AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5;
// UnityEngine.UI.Button
struct Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B;
// UnityEngine.UI.Button/ButtonClickedEvent
struct ButtonClickedEvent_t975D9C903BC4880557ADD7D3ACFB01CB2B3D6DDB;
// UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>
struct TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172;
// UnityEngine.UI.Graphic
struct Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8;
// UnityEngine.UI.Image
struct Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E;
// UnityEngine.UI.LayoutElement
struct LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B;
// UnityEngine.UI.MaskableGraphic/CullStateChangedEvent
struct CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4;
// UnityEngine.UI.RectMask2D
struct RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B;
// UnityEngine.UI.Scrollbar
struct Scrollbar_t8F8679D0EAFACBCBD603E6B0E741E6A783DB3389;
// UnityEngine.UI.Selectable
struct Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A;
// UnityEngine.UI.Selectable[]
struct SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02;
// UnityEngine.UI.Slider
struct Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09;
// UnityEngine.UI.Slider/SliderEvent
struct SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C;
// UnityEngine.UI.VertexHelper
struct VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F;
// UnityEngine.UIVertex[]
struct UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A;
// UnityEngine.Vector2[]
struct Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6;
// UnityEngine.Vector3[]
struct Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28;
// UnityEngine.WaitForSecondsRealtime
struct WaitForSecondsRealtime_t0CF361107C4A9E25E0D4CF2F37732CE785235739;
IL2CPP_EXTERN_C RuntimeClass* Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C String_t* _stringLiteral0B5AD7F02623388B06D184DD6F9A0930428958DA;
IL2CPP_EXTERN_C String_t* _stringLiteral138A102B2A9159B07C7B48C6155866A9489FD9B8;
IL2CPP_EXTERN_C String_t* _stringLiteral1E7B38E1F24892CE7AF50195963DF52B2D443711;
IL2CPP_EXTERN_C String_t* _stringLiteral2A54D65D10BC26F28F04F1CDABF30284A028F864;
IL2CPP_EXTERN_C String_t* _stringLiteral2D6A3C08C2B0958295BF508BEDDE9F19ACC17096;
IL2CPP_EXTERN_C String_t* _stringLiteral3B509055CE9C62D31B222A469FB040B8790889B0;
IL2CPP_EXTERN_C String_t* _stringLiteral4B937CC841D82F8936CEF1EFB88708AB5B0F1EE5;
IL2CPP_EXTERN_C String_t* _stringLiteral4BEECDBD283DCF61CC280C9EE432BF1D3A1E5D3F;
IL2CPP_EXTERN_C String_t* _stringLiteral4F57A1CE99E68A7B05C42D0A7EA0070EAFABD31C;
IL2CPP_EXTERN_C String_t* _stringLiteral57F5F5EFBC5990F5230AA95359042338B856707B;
IL2CPP_EXTERN_C String_t* _stringLiteral601C5805AE2E4EE65BCEC1EF4E0817038BD2D9F5;
IL2CPP_EXTERN_C String_t* _stringLiteral7D76133CFA34B7E2D45C4E214E7B373095564C78;
IL2CPP_EXTERN_C String_t* _stringLiteral88CDC31E25170F0FC2859CF847CF96F4B0C06CF5;
IL2CPP_EXTERN_C String_t* _stringLiteral9547656E0CEC785C72F3D1502FF25BAE91372893;
IL2CPP_EXTERN_C String_t* _stringLiteralA459DFF3012DA591453989E5860A6FD825F63CE3;
IL2CPP_EXTERN_C String_t* _stringLiteralADC83B19E793491B1C6EA0FD8B46CD9F32E592FC;
IL2CPP_EXTERN_C String_t* _stringLiteralD39485494FC7DE1A208AEFFE070A64E04F9FA733;
IL2CPP_EXTERN_C String_t* _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709;
IL2CPP_EXTERN_C String_t* _stringLiteralE3E82846C32567811615378F30240185871E08E5;
IL2CPP_EXTERN_C String_t* _stringLiteralE53407CFE1A5156B9F0D1EED3BAB5EF3AE75CFD8;
IL2CPP_EXTERN_C String_t* _stringLiteralE6F4198B4A3805D1C1D3E34619AE6275ADEDF612;
IL2CPP_EXTERN_C String_t* _stringLiteralEBAFE216CBFA5FDBA79D91CAF252A2246218F52E;
IL2CPP_EXTERN_C const RuntimeMethod* Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerable_First_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_m9E0FBF43AA9893161290E89AD4870906B4EF22DC_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Func_2__ctor_m3DEA515FA324E2F3A58827D62C251589750B4E1F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_mE97771A17F0DD6C17DECDDE26CC1D2D6B0C02C7E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass18_0_U3CGetPlayerU3Eb__0_m816F8DFE4655CD84B0E28BEBA058BEA507B8949E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290_RuntimeMethod_var;
IL2CPP_EXTERN_C const uint32_t GameManager_Awake_mE60F41F3186E80B2BAB293918745366D18508C0F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_GiveHat_mC847D218678428E7DAF3AF49AFD88F731DBA7ECF_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_GoBackToMenu_m74630BE0DA972DDB8C068F4BA2BA5D2B492C6552_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_ImInGame_mFC048F4A7EE745E51CC1AC67097AD2032052AE56_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_SpawnHat_m645C9210553008A11CEED045A9664FA2185E314F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_Start_mD77CCDBF1DA8EC5C3AE7ED955DE4E7F54B79C88E_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameManager_WinGame_m8F3D0B80EAE07903B38B9F34440527A99AA7D2C3_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameUI_Awake_m7E8168F25985A4BB698D33687AFF766EE1581904_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Hat_HideHat_m2DDC659FF007E6BB25A066F854028D7ADD21C7F4_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Hat_OnCollisionEnter_m440C5DA62E0120D95EBFDD7F3148499BAEF1B103_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_OnCreateRoomButton_mB1C99D83F0E3CF439C2CF001666027C9F9E46FFF_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_OnJoinRoomButton_m703E09B7A62EE0B407E440BFD86B980688AC5D8F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_OnJoinedRoom_mBA464E8DE750747726F55F4DF1CF9D1D35BD2C90_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_OnLeaveLobbyButton_m1023FF94D36F696F8C7D02E21944B65D446D3976_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_OnPlayerNameUpdate_m467F4E8FAA04E2E6D020763F4C1450512DEBDBAA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_OnStartGameButton_mC2F92820F2C0FBC0477D5B1A153B2009E4F9B47D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_Awake_m47DA4AE4B59D974EE100E14061AFD133B03D9929_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_OnConnectedToMaster_mEBA2DFFF805FA48BE8292B4632CDC2DD60DDD80B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_OnCreatedRoom_mB2578DD702FFC14EE0ADD392A7B4A9C994B9EDD9_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t NetworkManager_Start_m3B9512EAC044A11F640BFF825019700586081828_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t PlayerController_Initialize_mC6ABB84D5125516D8AAA4524874A0AC27C9F0638_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t PlayerController_OnCollisionEnter_mC64545E3CBFFED17020D4B52BB65359240FA581D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t PlayerController_OnPhotonSerializeView_m110D5A8B36D7CD494A1DABAFE43B98BC0A12BC34_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t PlayerController_Update_m38903EF1C8F12B9388303741F8040EE26C33DC33_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290_MetadataUsageId;
struct ContactPoint_tE0D3A30ED34A1FC8CA3F7391348429F3232CA515 ;
struct Delegate_t_marshaled_com;
struct Delegate_t_marshaled_pinvoke;
struct PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83;
struct PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76;
struct PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83;
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
struct TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <Module>
struct U3CModuleU3E_t6CDDDF959E7E18A6744E43B613F41CDAC780256A
{
public:
public:
};
// System.Object
// GameManager_<>c__DisplayClass18_0
struct U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F : public RuntimeObject
{
public:
// System.Int32 GameManager_<>c__DisplayClass18_0::playerId
int32_t ___playerId_0;
public:
inline static int32_t get_offset_of_playerId_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F, ___playerId_0)); }
inline int32_t get_playerId_0() const { return ___playerId_0; }
inline int32_t* get_address_of_playerId_0() { return &___playerId_0; }
inline void set_playerId_0(int32_t value)
{
___playerId_0 = value;
}
};
// GameManager_<>c__DisplayClass19_0
struct U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE : public RuntimeObject
{
public:
// UnityEngine.GameObject GameManager_<>c__DisplayClass19_0::playerObject
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___playerObject_0;
public:
inline static int32_t get_offset_of_playerObject_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE, ___playerObject_0)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_playerObject_0() const { return ___playerObject_0; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_playerObject_0() { return &___playerObject_0; }
inline void set_playerObject_0(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___playerObject_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerObject_0), (void*)value);
}
};
// Photon.Pun.PhotonStream
struct PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E : public RuntimeObject
{
public:
// System.Collections.Generic.List`1<System.Object> Photon.Pun.PhotonStream::writeData
List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * ___writeData_0;
// System.Object[] Photon.Pun.PhotonStream::readData
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___readData_1;
// System.Int32 Photon.Pun.PhotonStream::currentItem
int32_t ___currentItem_2;
// System.Boolean Photon.Pun.PhotonStream::<IsWriting>k__BackingField
bool ___U3CIsWritingU3Ek__BackingField_3;
public:
inline static int32_t get_offset_of_writeData_0() { return static_cast<int32_t>(offsetof(PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E, ___writeData_0)); }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * get_writeData_0() const { return ___writeData_0; }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D ** get_address_of_writeData_0() { return &___writeData_0; }
inline void set_writeData_0(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * value)
{
___writeData_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___writeData_0), (void*)value);
}
inline static int32_t get_offset_of_readData_1() { return static_cast<int32_t>(offsetof(PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E, ___readData_1)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_readData_1() const { return ___readData_1; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_readData_1() { return &___readData_1; }
inline void set_readData_1(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
___readData_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___readData_1), (void*)value);
}
inline static int32_t get_offset_of_currentItem_2() { return static_cast<int32_t>(offsetof(PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E, ___currentItem_2)); }
inline int32_t get_currentItem_2() const { return ___currentItem_2; }
inline int32_t* get_address_of_currentItem_2() { return &___currentItem_2; }
inline void set_currentItem_2(int32_t value)
{
___currentItem_2 = value;
}
inline static int32_t get_offset_of_U3CIsWritingU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E, ___U3CIsWritingU3Ek__BackingField_3)); }
inline bool get_U3CIsWritingU3Ek__BackingField_3() const { return ___U3CIsWritingU3Ek__BackingField_3; }
inline bool* get_address_of_U3CIsWritingU3Ek__BackingField_3() { return &___U3CIsWritingU3Ek__BackingField_3; }
inline void set_U3CIsWritingU3Ek__BackingField_3(bool value)
{
___U3CIsWritingU3Ek__BackingField_3 = value;
}
};
// Photon.Realtime.Player
struct Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 : public RuntimeObject
{
public:
// Photon.Realtime.Room Photon.Realtime.Player::<RoomReference>k__BackingField
Room_t5DFC39DD6736A2641374564EC6C31352BE33000D * ___U3CRoomReferenceU3Ek__BackingField_0;
// System.Int32 Photon.Realtime.Player::actorNumber
int32_t ___actorNumber_1;
// System.Boolean Photon.Realtime.Player::IsLocal
bool ___IsLocal_2;
// System.Boolean Photon.Realtime.Player::<HasRejoined>k__BackingField
bool ___U3CHasRejoinedU3Ek__BackingField_3;
// System.String Photon.Realtime.Player::nickName
String_t* ___nickName_4;
// System.String Photon.Realtime.Player::<UserId>k__BackingField
String_t* ___U3CUserIdU3Ek__BackingField_5;
// System.Boolean Photon.Realtime.Player::<IsInactive>k__BackingField
bool ___U3CIsInactiveU3Ek__BackingField_6;
// ExitGames.Client.Photon.Hashtable Photon.Realtime.Player::<CustomProperties>k__BackingField
Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * ___U3CCustomPropertiesU3Ek__BackingField_7;
// System.Object Photon.Realtime.Player::TagObject
RuntimeObject * ___TagObject_8;
public:
inline static int32_t get_offset_of_U3CRoomReferenceU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___U3CRoomReferenceU3Ek__BackingField_0)); }
inline Room_t5DFC39DD6736A2641374564EC6C31352BE33000D * get_U3CRoomReferenceU3Ek__BackingField_0() const { return ___U3CRoomReferenceU3Ek__BackingField_0; }
inline Room_t5DFC39DD6736A2641374564EC6C31352BE33000D ** get_address_of_U3CRoomReferenceU3Ek__BackingField_0() { return &___U3CRoomReferenceU3Ek__BackingField_0; }
inline void set_U3CRoomReferenceU3Ek__BackingField_0(Room_t5DFC39DD6736A2641374564EC6C31352BE33000D * value)
{
___U3CRoomReferenceU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CRoomReferenceU3Ek__BackingField_0), (void*)value);
}
inline static int32_t get_offset_of_actorNumber_1() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___actorNumber_1)); }
inline int32_t get_actorNumber_1() const { return ___actorNumber_1; }
inline int32_t* get_address_of_actorNumber_1() { return &___actorNumber_1; }
inline void set_actorNumber_1(int32_t value)
{
___actorNumber_1 = value;
}
inline static int32_t get_offset_of_IsLocal_2() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___IsLocal_2)); }
inline bool get_IsLocal_2() const { return ___IsLocal_2; }
inline bool* get_address_of_IsLocal_2() { return &___IsLocal_2; }
inline void set_IsLocal_2(bool value)
{
___IsLocal_2 = value;
}
inline static int32_t get_offset_of_U3CHasRejoinedU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___U3CHasRejoinedU3Ek__BackingField_3)); }
inline bool get_U3CHasRejoinedU3Ek__BackingField_3() const { return ___U3CHasRejoinedU3Ek__BackingField_3; }
inline bool* get_address_of_U3CHasRejoinedU3Ek__BackingField_3() { return &___U3CHasRejoinedU3Ek__BackingField_3; }
inline void set_U3CHasRejoinedU3Ek__BackingField_3(bool value)
{
___U3CHasRejoinedU3Ek__BackingField_3 = value;
}
inline static int32_t get_offset_of_nickName_4() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___nickName_4)); }
inline String_t* get_nickName_4() const { return ___nickName_4; }
inline String_t** get_address_of_nickName_4() { return &___nickName_4; }
inline void set_nickName_4(String_t* value)
{
___nickName_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___nickName_4), (void*)value);
}
inline static int32_t get_offset_of_U3CUserIdU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___U3CUserIdU3Ek__BackingField_5)); }
inline String_t* get_U3CUserIdU3Ek__BackingField_5() const { return ___U3CUserIdU3Ek__BackingField_5; }
inline String_t** get_address_of_U3CUserIdU3Ek__BackingField_5() { return &___U3CUserIdU3Ek__BackingField_5; }
inline void set_U3CUserIdU3Ek__BackingField_5(String_t* value)
{
___U3CUserIdU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CUserIdU3Ek__BackingField_5), (void*)value);
}
inline static int32_t get_offset_of_U3CIsInactiveU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___U3CIsInactiveU3Ek__BackingField_6)); }
inline bool get_U3CIsInactiveU3Ek__BackingField_6() const { return ___U3CIsInactiveU3Ek__BackingField_6; }
inline bool* get_address_of_U3CIsInactiveU3Ek__BackingField_6() { return &___U3CIsInactiveU3Ek__BackingField_6; }
inline void set_U3CIsInactiveU3Ek__BackingField_6(bool value)
{
___U3CIsInactiveU3Ek__BackingField_6 = value;
}
inline static int32_t get_offset_of_U3CCustomPropertiesU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___U3CCustomPropertiesU3Ek__BackingField_7)); }
inline Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * get_U3CCustomPropertiesU3Ek__BackingField_7() const { return ___U3CCustomPropertiesU3Ek__BackingField_7; }
inline Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 ** get_address_of_U3CCustomPropertiesU3Ek__BackingField_7() { return &___U3CCustomPropertiesU3Ek__BackingField_7; }
inline void set_U3CCustomPropertiesU3Ek__BackingField_7(Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * value)
{
___U3CCustomPropertiesU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CCustomPropertiesU3Ek__BackingField_7), (void*)value);
}
inline static int32_t get_offset_of_TagObject_8() { return static_cast<int32_t>(offsetof(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202, ___TagObject_8)); }
inline RuntimeObject * get_TagObject_8() const { return ___TagObject_8; }
inline RuntimeObject ** get_address_of_TagObject_8() { return &___TagObject_8; }
inline void set_TagObject_8(RuntimeObject * value)
{
___TagObject_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TagObject_8), (void*)value);
}
};
// Photon.Realtime.RoomInfo
struct RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2 : public RuntimeObject
{
public:
// System.Boolean Photon.Realtime.RoomInfo::RemovedFromList
bool ___RemovedFromList_0;
// ExitGames.Client.Photon.Hashtable Photon.Realtime.RoomInfo::customProperties
Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * ___customProperties_1;
// System.Byte Photon.Realtime.RoomInfo::maxPlayers
uint8_t ___maxPlayers_2;
// System.Int32 Photon.Realtime.RoomInfo::emptyRoomTtl
int32_t ___emptyRoomTtl_3;
// System.Int32 Photon.Realtime.RoomInfo::playerTtl
int32_t ___playerTtl_4;
// System.String[] Photon.Realtime.RoomInfo::expectedUsers
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___expectedUsers_5;
// System.Boolean Photon.Realtime.RoomInfo::isOpen
bool ___isOpen_6;
// System.Boolean Photon.Realtime.RoomInfo::isVisible
bool ___isVisible_7;
// System.Boolean Photon.Realtime.RoomInfo::autoCleanUp
bool ___autoCleanUp_8;
// System.String Photon.Realtime.RoomInfo::name
String_t* ___name_9;
// System.Int32 Photon.Realtime.RoomInfo::masterClientId
int32_t ___masterClientId_10;
// System.String[] Photon.Realtime.RoomInfo::propertiesListedInLobby
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___propertiesListedInLobby_11;
// System.Int32 Photon.Realtime.RoomInfo::<PlayerCount>k__BackingField
int32_t ___U3CPlayerCountU3Ek__BackingField_12;
public:
inline static int32_t get_offset_of_RemovedFromList_0() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___RemovedFromList_0)); }
inline bool get_RemovedFromList_0() const { return ___RemovedFromList_0; }
inline bool* get_address_of_RemovedFromList_0() { return &___RemovedFromList_0; }
inline void set_RemovedFromList_0(bool value)
{
___RemovedFromList_0 = value;
}
inline static int32_t get_offset_of_customProperties_1() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___customProperties_1)); }
inline Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * get_customProperties_1() const { return ___customProperties_1; }
inline Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 ** get_address_of_customProperties_1() { return &___customProperties_1; }
inline void set_customProperties_1(Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * value)
{
___customProperties_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___customProperties_1), (void*)value);
}
inline static int32_t get_offset_of_maxPlayers_2() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___maxPlayers_2)); }
inline uint8_t get_maxPlayers_2() const { return ___maxPlayers_2; }
inline uint8_t* get_address_of_maxPlayers_2() { return &___maxPlayers_2; }
inline void set_maxPlayers_2(uint8_t value)
{
___maxPlayers_2 = value;
}
inline static int32_t get_offset_of_emptyRoomTtl_3() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___emptyRoomTtl_3)); }
inline int32_t get_emptyRoomTtl_3() const { return ___emptyRoomTtl_3; }
inline int32_t* get_address_of_emptyRoomTtl_3() { return &___emptyRoomTtl_3; }
inline void set_emptyRoomTtl_3(int32_t value)
{
___emptyRoomTtl_3 = value;
}
inline static int32_t get_offset_of_playerTtl_4() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___playerTtl_4)); }
inline int32_t get_playerTtl_4() const { return ___playerTtl_4; }
inline int32_t* get_address_of_playerTtl_4() { return &___playerTtl_4; }
inline void set_playerTtl_4(int32_t value)
{
___playerTtl_4 = value;
}
inline static int32_t get_offset_of_expectedUsers_5() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___expectedUsers_5)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_expectedUsers_5() const { return ___expectedUsers_5; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_expectedUsers_5() { return &___expectedUsers_5; }
inline void set_expectedUsers_5(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___expectedUsers_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___expectedUsers_5), (void*)value);
}
inline static int32_t get_offset_of_isOpen_6() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___isOpen_6)); }
inline bool get_isOpen_6() const { return ___isOpen_6; }
inline bool* get_address_of_isOpen_6() { return &___isOpen_6; }
inline void set_isOpen_6(bool value)
{
___isOpen_6 = value;
}
inline static int32_t get_offset_of_isVisible_7() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___isVisible_7)); }
inline bool get_isVisible_7() const { return ___isVisible_7; }
inline bool* get_address_of_isVisible_7() { return &___isVisible_7; }
inline void set_isVisible_7(bool value)
{
___isVisible_7 = value;
}
inline static int32_t get_offset_of_autoCleanUp_8() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___autoCleanUp_8)); }
inline bool get_autoCleanUp_8() const { return ___autoCleanUp_8; }
inline bool* get_address_of_autoCleanUp_8() { return &___autoCleanUp_8; }
inline void set_autoCleanUp_8(bool value)
{
___autoCleanUp_8 = value;
}
inline static int32_t get_offset_of_name_9() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___name_9)); }
inline String_t* get_name_9() const { return ___name_9; }
inline String_t** get_address_of_name_9() { return &___name_9; }
inline void set_name_9(String_t* value)
{
___name_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___name_9), (void*)value);
}
inline static int32_t get_offset_of_masterClientId_10() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___masterClientId_10)); }
inline int32_t get_masterClientId_10() const { return ___masterClientId_10; }
inline int32_t* get_address_of_masterClientId_10() { return &___masterClientId_10; }
inline void set_masterClientId_10(int32_t value)
{
___masterClientId_10 = value;
}
inline static int32_t get_offset_of_propertiesListedInLobby_11() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___propertiesListedInLobby_11)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_propertiesListedInLobby_11() const { return ___propertiesListedInLobby_11; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_propertiesListedInLobby_11() { return &___propertiesListedInLobby_11; }
inline void set_propertiesListedInLobby_11(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___propertiesListedInLobby_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___propertiesListedInLobby_11), (void*)value);
}
inline static int32_t get_offset_of_U3CPlayerCountU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2, ___U3CPlayerCountU3Ek__BackingField_12)); }
inline int32_t get_U3CPlayerCountU3Ek__BackingField_12() const { return ___U3CPlayerCountU3Ek__BackingField_12; }
inline int32_t* get_address_of_U3CPlayerCountU3Ek__BackingField_12() { return &___U3CPlayerCountU3Ek__BackingField_12; }
inline void set_U3CPlayerCountU3Ek__BackingField_12(int32_t value)
{
___U3CPlayerCountU3Ek__BackingField_12 = value;
}
};
// Photon.Realtime.RoomOptions
struct RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906 : public RuntimeObject
{
public:
// System.Boolean Photon.Realtime.RoomOptions::isVisible
bool ___isVisible_0;
// System.Boolean Photon.Realtime.RoomOptions::isOpen
bool ___isOpen_1;
// System.Byte Photon.Realtime.RoomOptions::MaxPlayers
uint8_t ___MaxPlayers_2;
// System.Int32 Photon.Realtime.RoomOptions::PlayerTtl
int32_t ___PlayerTtl_3;
// System.Int32 Photon.Realtime.RoomOptions::EmptyRoomTtl
int32_t ___EmptyRoomTtl_4;
// System.Boolean Photon.Realtime.RoomOptions::cleanupCacheOnLeave
bool ___cleanupCacheOnLeave_5;
// ExitGames.Client.Photon.Hashtable Photon.Realtime.RoomOptions::CustomRoomProperties
Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * ___CustomRoomProperties_6;
// System.String[] Photon.Realtime.RoomOptions::CustomRoomPropertiesForLobby
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___CustomRoomPropertiesForLobby_7;
// System.String[] Photon.Realtime.RoomOptions::Plugins
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___Plugins_8;
// System.Boolean Photon.Realtime.RoomOptions::<SuppressRoomEvents>k__BackingField
bool ___U3CSuppressRoomEventsU3Ek__BackingField_9;
// System.Boolean Photon.Realtime.RoomOptions::<PublishUserId>k__BackingField
bool ___U3CPublishUserIdU3Ek__BackingField_10;
// System.Boolean Photon.Realtime.RoomOptions::<DeleteNullProperties>k__BackingField
bool ___U3CDeleteNullPropertiesU3Ek__BackingField_11;
// System.Boolean Photon.Realtime.RoomOptions::broadcastPropsChangeToAll
bool ___broadcastPropsChangeToAll_12;
public:
inline static int32_t get_offset_of_isVisible_0() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___isVisible_0)); }
inline bool get_isVisible_0() const { return ___isVisible_0; }
inline bool* get_address_of_isVisible_0() { return &___isVisible_0; }
inline void set_isVisible_0(bool value)
{
___isVisible_0 = value;
}
inline static int32_t get_offset_of_isOpen_1() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___isOpen_1)); }
inline bool get_isOpen_1() const { return ___isOpen_1; }
inline bool* get_address_of_isOpen_1() { return &___isOpen_1; }
inline void set_isOpen_1(bool value)
{
___isOpen_1 = value;
}
inline static int32_t get_offset_of_MaxPlayers_2() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___MaxPlayers_2)); }
inline uint8_t get_MaxPlayers_2() const { return ___MaxPlayers_2; }
inline uint8_t* get_address_of_MaxPlayers_2() { return &___MaxPlayers_2; }
inline void set_MaxPlayers_2(uint8_t value)
{
___MaxPlayers_2 = value;
}
inline static int32_t get_offset_of_PlayerTtl_3() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___PlayerTtl_3)); }
inline int32_t get_PlayerTtl_3() const { return ___PlayerTtl_3; }
inline int32_t* get_address_of_PlayerTtl_3() { return &___PlayerTtl_3; }
inline void set_PlayerTtl_3(int32_t value)
{
___PlayerTtl_3 = value;
}
inline static int32_t get_offset_of_EmptyRoomTtl_4() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___EmptyRoomTtl_4)); }
inline int32_t get_EmptyRoomTtl_4() const { return ___EmptyRoomTtl_4; }
inline int32_t* get_address_of_EmptyRoomTtl_4() { return &___EmptyRoomTtl_4; }
inline void set_EmptyRoomTtl_4(int32_t value)
{
___EmptyRoomTtl_4 = value;
}
inline static int32_t get_offset_of_cleanupCacheOnLeave_5() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___cleanupCacheOnLeave_5)); }
inline bool get_cleanupCacheOnLeave_5() const { return ___cleanupCacheOnLeave_5; }
inline bool* get_address_of_cleanupCacheOnLeave_5() { return &___cleanupCacheOnLeave_5; }
inline void set_cleanupCacheOnLeave_5(bool value)
{
___cleanupCacheOnLeave_5 = value;
}
inline static int32_t get_offset_of_CustomRoomProperties_6() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___CustomRoomProperties_6)); }
inline Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * get_CustomRoomProperties_6() const { return ___CustomRoomProperties_6; }
inline Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 ** get_address_of_CustomRoomProperties_6() { return &___CustomRoomProperties_6; }
inline void set_CustomRoomProperties_6(Hashtable_tBBE44065494CC9CCD04BED70ECE9BC3A18520133 * value)
{
___CustomRoomProperties_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CustomRoomProperties_6), (void*)value);
}
inline static int32_t get_offset_of_CustomRoomPropertiesForLobby_7() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___CustomRoomPropertiesForLobby_7)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_CustomRoomPropertiesForLobby_7() const { return ___CustomRoomPropertiesForLobby_7; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_CustomRoomPropertiesForLobby_7() { return &___CustomRoomPropertiesForLobby_7; }
inline void set_CustomRoomPropertiesForLobby_7(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___CustomRoomPropertiesForLobby_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CustomRoomPropertiesForLobby_7), (void*)value);
}
inline static int32_t get_offset_of_Plugins_8() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___Plugins_8)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_Plugins_8() const { return ___Plugins_8; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_Plugins_8() { return &___Plugins_8; }
inline void set_Plugins_8(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___Plugins_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Plugins_8), (void*)value);
}
inline static int32_t get_offset_of_U3CSuppressRoomEventsU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___U3CSuppressRoomEventsU3Ek__BackingField_9)); }
inline bool get_U3CSuppressRoomEventsU3Ek__BackingField_9() const { return ___U3CSuppressRoomEventsU3Ek__BackingField_9; }
inline bool* get_address_of_U3CSuppressRoomEventsU3Ek__BackingField_9() { return &___U3CSuppressRoomEventsU3Ek__BackingField_9; }
inline void set_U3CSuppressRoomEventsU3Ek__BackingField_9(bool value)
{
___U3CSuppressRoomEventsU3Ek__BackingField_9 = value;
}
inline static int32_t get_offset_of_U3CPublishUserIdU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___U3CPublishUserIdU3Ek__BackingField_10)); }
inline bool get_U3CPublishUserIdU3Ek__BackingField_10() const { return ___U3CPublishUserIdU3Ek__BackingField_10; }
inline bool* get_address_of_U3CPublishUserIdU3Ek__BackingField_10() { return &___U3CPublishUserIdU3Ek__BackingField_10; }
inline void set_U3CPublishUserIdU3Ek__BackingField_10(bool value)
{
___U3CPublishUserIdU3Ek__BackingField_10 = value;
}
inline static int32_t get_offset_of_U3CDeleteNullPropertiesU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___U3CDeleteNullPropertiesU3Ek__BackingField_11)); }
inline bool get_U3CDeleteNullPropertiesU3Ek__BackingField_11() const { return ___U3CDeleteNullPropertiesU3Ek__BackingField_11; }
inline bool* get_address_of_U3CDeleteNullPropertiesU3Ek__BackingField_11() { return &___U3CDeleteNullPropertiesU3Ek__BackingField_11; }
inline void set_U3CDeleteNullPropertiesU3Ek__BackingField_11(bool value)
{
___U3CDeleteNullPropertiesU3Ek__BackingField_11 = value;
}
inline static int32_t get_offset_of_broadcastPropsChangeToAll_12() { return static_cast<int32_t>(offsetof(RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906, ___broadcastPropsChangeToAll_12)); }
inline bool get_broadcastPropsChangeToAll_12() const { return ___broadcastPropsChangeToAll_12; }
inline bool* get_address_of_broadcastPropsChangeToAll_12() { return &___broadcastPropsChangeToAll_12; }
inline void set_broadcastPropsChangeToAll_12(bool value)
{
___broadcastPropsChangeToAll_12 = value;
}
};
// PlayerUIContainer
struct PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 : public RuntimeObject
{
public:
// UnityEngine.GameObject PlayerUIContainer::obj
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___obj_0;
// TMPro.TextMeshProUGUI PlayerUIContainer::nameText
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___nameText_1;
// UnityEngine.UI.Slider PlayerUIContainer::hatTimeSlider
Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * ___hatTimeSlider_2;
public:
inline static int32_t get_offset_of_obj_0() { return static_cast<int32_t>(offsetof(PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9, ___obj_0)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_obj_0() const { return ___obj_0; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_obj_0() { return &___obj_0; }
inline void set_obj_0(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___obj_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___obj_0), (void*)value);
}
inline static int32_t get_offset_of_nameText_1() { return static_cast<int32_t>(offsetof(PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9, ___nameText_1)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_nameText_1() const { return ___nameText_1; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_nameText_1() { return &___nameText_1; }
inline void set_nameText_1(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___nameText_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___nameText_1), (void*)value);
}
inline static int32_t get_offset_of_hatTimeSlider_2() { return static_cast<int32_t>(offsetof(PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9, ___hatTimeSlider_2)); }
inline Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * get_hatTimeSlider_2() const { return ___hatTimeSlider_2; }
inline Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 ** get_address_of_hatTimeSlider_2() { return &___hatTimeSlider_2; }
inline void set_hatTimeSlider_2(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * value)
{
___hatTimeSlider_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatTimeSlider_2), (void*)value);
}
};
struct Il2CppArrayBounds;
// System.Array
// System.EmptyArray`1<System.Object>
struct EmptyArray_1_tCF137C88A5824F413EFB5A2F31664D8207E61D26 : public RuntimeObject
{
public:
public:
};
struct EmptyArray_1_tCF137C88A5824F413EFB5A2F31664D8207E61D26_StaticFields
{
public:
// T[] System.EmptyArray`1::Value
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___Value_0;
public:
inline static int32_t get_offset_of_Value_0() { return static_cast<int32_t>(offsetof(EmptyArray_1_tCF137C88A5824F413EFB5A2F31664D8207E61D26_StaticFields, ___Value_0)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_Value_0() const { return ___Value_0; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_Value_0() { return &___Value_0; }
inline void set_Value_0(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
___Value_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Value_0), (void*)value);
}
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
// Photon.Pun.PhotonMessageInfo
struct PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0
{
public:
// System.Int32 Photon.Pun.PhotonMessageInfo::timeInt
int32_t ___timeInt_0;
// Photon.Realtime.Player Photon.Pun.PhotonMessageInfo::Sender
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___Sender_1;
// Photon.Pun.PhotonView Photon.Pun.PhotonMessageInfo::photonView
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * ___photonView_2;
public:
inline static int32_t get_offset_of_timeInt_0() { return static_cast<int32_t>(offsetof(PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0, ___timeInt_0)); }
inline int32_t get_timeInt_0() const { return ___timeInt_0; }
inline int32_t* get_address_of_timeInt_0() { return &___timeInt_0; }
inline void set_timeInt_0(int32_t value)
{
___timeInt_0 = value;
}
inline static int32_t get_offset_of_Sender_1() { return static_cast<int32_t>(offsetof(PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0, ___Sender_1)); }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * get_Sender_1() const { return ___Sender_1; }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** get_address_of_Sender_1() { return &___Sender_1; }
inline void set_Sender_1(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
___Sender_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Sender_1), (void*)value);
}
inline static int32_t get_offset_of_photonView_2() { return static_cast<int32_t>(offsetof(PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0, ___photonView_2)); }
inline PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * get_photonView_2() const { return ___photonView_2; }
inline PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B ** get_address_of_photonView_2() { return &___photonView_2; }
inline void set_photonView_2(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * value)
{
___photonView_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___photonView_2), (void*)value);
}
};
// Native definition for P/Invoke marshalling of Photon.Pun.PhotonMessageInfo
struct PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0_marshaled_pinvoke
{
int32_t ___timeInt_0;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___Sender_1;
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * ___photonView_2;
};
// Native definition for COM marshalling of Photon.Pun.PhotonMessageInfo
struct PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0_marshaled_com
{
int32_t ___timeInt_0;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___Sender_1;
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * ___photonView_2;
};
// Photon.Realtime.Room
struct Room_t5DFC39DD6736A2641374564EC6C31352BE33000D : public RoomInfo_t2FA7C04D0FB706F0313E7C91AEA598D7B1BDEBE2
{
public:
// Photon.Realtime.LoadBalancingClient Photon.Realtime.Room::<LoadBalancingClient>k__BackingField
LoadBalancingClient_t83BDB381BB0B2B367F4B8AA0280EB8204428611A * ___U3CLoadBalancingClientU3Ek__BackingField_13;
// System.Boolean Photon.Realtime.Room::isOffline
bool ___isOffline_14;
// System.Collections.Generic.Dictionary`2<System.Int32,Photon.Realtime.Player> Photon.Realtime.Room::players
Dictionary_2_tA8C1FE9FA1FB583BFC17676FCF9DFF7D606CB346 * ___players_15;
// System.Boolean Photon.Realtime.Room::<BroadcastPropertiesChangeToAll>k__BackingField
bool ___U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16;
public:
inline static int32_t get_offset_of_U3CLoadBalancingClientU3Ek__BackingField_13() { return static_cast<int32_t>(offsetof(Room_t5DFC39DD6736A2641374564EC6C31352BE33000D, ___U3CLoadBalancingClientU3Ek__BackingField_13)); }
inline LoadBalancingClient_t83BDB381BB0B2B367F4B8AA0280EB8204428611A * get_U3CLoadBalancingClientU3Ek__BackingField_13() const { return ___U3CLoadBalancingClientU3Ek__BackingField_13; }
inline LoadBalancingClient_t83BDB381BB0B2B367F4B8AA0280EB8204428611A ** get_address_of_U3CLoadBalancingClientU3Ek__BackingField_13() { return &___U3CLoadBalancingClientU3Ek__BackingField_13; }
inline void set_U3CLoadBalancingClientU3Ek__BackingField_13(LoadBalancingClient_t83BDB381BB0B2B367F4B8AA0280EB8204428611A * value)
{
___U3CLoadBalancingClientU3Ek__BackingField_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CLoadBalancingClientU3Ek__BackingField_13), (void*)value);
}
inline static int32_t get_offset_of_isOffline_14() { return static_cast<int32_t>(offsetof(Room_t5DFC39DD6736A2641374564EC6C31352BE33000D, ___isOffline_14)); }
inline bool get_isOffline_14() const { return ___isOffline_14; }
inline bool* get_address_of_isOffline_14() { return &___isOffline_14; }
inline void set_isOffline_14(bool value)
{
___isOffline_14 = value;
}
inline static int32_t get_offset_of_players_15() { return static_cast<int32_t>(offsetof(Room_t5DFC39DD6736A2641374564EC6C31352BE33000D, ___players_15)); }
inline Dictionary_2_tA8C1FE9FA1FB583BFC17676FCF9DFF7D606CB346 * get_players_15() const { return ___players_15; }
inline Dictionary_2_tA8C1FE9FA1FB583BFC17676FCF9DFF7D606CB346 ** get_address_of_players_15() { return &___players_15; }
inline void set_players_15(Dictionary_2_tA8C1FE9FA1FB583BFC17676FCF9DFF7D606CB346 * value)
{
___players_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___players_15), (void*)value);
}
inline static int32_t get_offset_of_U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(Room_t5DFC39DD6736A2641374564EC6C31352BE33000D, ___U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16)); }
inline bool get_U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16() const { return ___U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16; }
inline bool* get_address_of_U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16() { return &___U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16; }
inline void set_U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16(bool value)
{
___U3CBroadcastPropertiesChangeToAllU3Ek__BackingField_16 = value;
}
};
// System.Boolean
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Byte
struct Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07
{
public:
// System.Byte System.Byte::m_value
uint8_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Byte_tF87C579059BD4633E6840EBBBEEF899C6E33EF07, ___m_value_0)); }
inline uint8_t get_m_value_0() const { return ___m_value_0; }
inline uint8_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(uint8_t value)
{
___m_value_0 = value;
}
};
// System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
{
public:
public:
};
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
{
};
// System.Int32
struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Single
struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1
{
public:
// System.Single System.Single::m_value
float ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); }
inline float get_m_value_0() const { return ___m_value_0; }
inline float* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(float value)
{
___m_value_0 = value;
}
};
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
{
public:
union
{
struct
{
};
uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
};
public:
};
// TMPro.MaterialReference
struct MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F
{
public:
// System.Int32 TMPro.MaterialReference::index
int32_t ___index_0;
// TMPro.TMP_FontAsset TMPro.MaterialReference::fontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___fontAsset_1;
// TMPro.TMP_SpriteAsset TMPro.MaterialReference::spriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___spriteAsset_2;
// UnityEngine.Material TMPro.MaterialReference::material
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material_3;
// System.Boolean TMPro.MaterialReference::isDefaultMaterial
bool ___isDefaultMaterial_4;
// System.Boolean TMPro.MaterialReference::isFallbackMaterial
bool ___isFallbackMaterial_5;
// UnityEngine.Material TMPro.MaterialReference::fallbackMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___fallbackMaterial_6;
// System.Single TMPro.MaterialReference::padding
float ___padding_7;
// System.Int32 TMPro.MaterialReference::referenceCount
int32_t ___referenceCount_8;
public:
inline static int32_t get_offset_of_index_0() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___index_0)); }
inline int32_t get_index_0() const { return ___index_0; }
inline int32_t* get_address_of_index_0() { return &___index_0; }
inline void set_index_0(int32_t value)
{
___index_0 = value;
}
inline static int32_t get_offset_of_fontAsset_1() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___fontAsset_1)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_fontAsset_1() const { return ___fontAsset_1; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_fontAsset_1() { return &___fontAsset_1; }
inline void set_fontAsset_1(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___fontAsset_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___fontAsset_1), (void*)value);
}
inline static int32_t get_offset_of_spriteAsset_2() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___spriteAsset_2)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_spriteAsset_2() const { return ___spriteAsset_2; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_spriteAsset_2() { return &___spriteAsset_2; }
inline void set_spriteAsset_2(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___spriteAsset_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___spriteAsset_2), (void*)value);
}
inline static int32_t get_offset_of_material_3() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___material_3)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_material_3() const { return ___material_3; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_material_3() { return &___material_3; }
inline void set_material_3(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___material_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___material_3), (void*)value);
}
inline static int32_t get_offset_of_isDefaultMaterial_4() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___isDefaultMaterial_4)); }
inline bool get_isDefaultMaterial_4() const { return ___isDefaultMaterial_4; }
inline bool* get_address_of_isDefaultMaterial_4() { return &___isDefaultMaterial_4; }
inline void set_isDefaultMaterial_4(bool value)
{
___isDefaultMaterial_4 = value;
}
inline static int32_t get_offset_of_isFallbackMaterial_5() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___isFallbackMaterial_5)); }
inline bool get_isFallbackMaterial_5() const { return ___isFallbackMaterial_5; }
inline bool* get_address_of_isFallbackMaterial_5() { return &___isFallbackMaterial_5; }
inline void set_isFallbackMaterial_5(bool value)
{
___isFallbackMaterial_5 = value;
}
inline static int32_t get_offset_of_fallbackMaterial_6() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___fallbackMaterial_6)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_fallbackMaterial_6() const { return ___fallbackMaterial_6; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_fallbackMaterial_6() { return &___fallbackMaterial_6; }
inline void set_fallbackMaterial_6(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___fallbackMaterial_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___fallbackMaterial_6), (void*)value);
}
inline static int32_t get_offset_of_padding_7() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___padding_7)); }
inline float get_padding_7() const { return ___padding_7; }
inline float* get_address_of_padding_7() { return &___padding_7; }
inline void set_padding_7(float value)
{
___padding_7 = value;
}
inline static int32_t get_offset_of_referenceCount_8() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___referenceCount_8)); }
inline int32_t get_referenceCount_8() const { return ___referenceCount_8; }
inline int32_t* get_address_of_referenceCount_8() { return &___referenceCount_8; }
inline void set_referenceCount_8(int32_t value)
{
___referenceCount_8 = value;
}
};
// Native definition for P/Invoke marshalling of TMPro.MaterialReference
struct MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F_marshaled_pinvoke
{
int32_t ___index_0;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___fontAsset_1;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___spriteAsset_2;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material_3;
int32_t ___isDefaultMaterial_4;
int32_t ___isFallbackMaterial_5;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___fallbackMaterial_6;
float ___padding_7;
int32_t ___referenceCount_8;
};
// Native definition for COM marshalling of TMPro.MaterialReference
struct MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F_marshaled_com
{
int32_t ___index_0;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___fontAsset_1;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___spriteAsset_2;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material_3;
int32_t ___isDefaultMaterial_4;
int32_t ___isFallbackMaterial_5;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___fallbackMaterial_6;
float ___padding_7;
int32_t ___referenceCount_8;
};
// TMPro.TMP_FontStyleStack
struct TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84
{
public:
// System.Byte TMPro.TMP_FontStyleStack::bold
uint8_t ___bold_0;
// System.Byte TMPro.TMP_FontStyleStack::italic
uint8_t ___italic_1;
// System.Byte TMPro.TMP_FontStyleStack::underline
uint8_t ___underline_2;
// System.Byte TMPro.TMP_FontStyleStack::strikethrough
uint8_t ___strikethrough_3;
// System.Byte TMPro.TMP_FontStyleStack::highlight
uint8_t ___highlight_4;
// System.Byte TMPro.TMP_FontStyleStack::superscript
uint8_t ___superscript_5;
// System.Byte TMPro.TMP_FontStyleStack::subscript
uint8_t ___subscript_6;
// System.Byte TMPro.TMP_FontStyleStack::uppercase
uint8_t ___uppercase_7;
// System.Byte TMPro.TMP_FontStyleStack::lowercase
uint8_t ___lowercase_8;
// System.Byte TMPro.TMP_FontStyleStack::smallcaps
uint8_t ___smallcaps_9;
public:
inline static int32_t get_offset_of_bold_0() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___bold_0)); }
inline uint8_t get_bold_0() const { return ___bold_0; }
inline uint8_t* get_address_of_bold_0() { return &___bold_0; }
inline void set_bold_0(uint8_t value)
{
___bold_0 = value;
}
inline static int32_t get_offset_of_italic_1() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___italic_1)); }
inline uint8_t get_italic_1() const { return ___italic_1; }
inline uint8_t* get_address_of_italic_1() { return &___italic_1; }
inline void set_italic_1(uint8_t value)
{
___italic_1 = value;
}
inline static int32_t get_offset_of_underline_2() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___underline_2)); }
inline uint8_t get_underline_2() const { return ___underline_2; }
inline uint8_t* get_address_of_underline_2() { return &___underline_2; }
inline void set_underline_2(uint8_t value)
{
___underline_2 = value;
}
inline static int32_t get_offset_of_strikethrough_3() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___strikethrough_3)); }
inline uint8_t get_strikethrough_3() const { return ___strikethrough_3; }
inline uint8_t* get_address_of_strikethrough_3() { return &___strikethrough_3; }
inline void set_strikethrough_3(uint8_t value)
{
___strikethrough_3 = value;
}
inline static int32_t get_offset_of_highlight_4() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___highlight_4)); }
inline uint8_t get_highlight_4() const { return ___highlight_4; }
inline uint8_t* get_address_of_highlight_4() { return &___highlight_4; }
inline void set_highlight_4(uint8_t value)
{
___highlight_4 = value;
}
inline static int32_t get_offset_of_superscript_5() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___superscript_5)); }
inline uint8_t get_superscript_5() const { return ___superscript_5; }
inline uint8_t* get_address_of_superscript_5() { return &___superscript_5; }
inline void set_superscript_5(uint8_t value)
{
___superscript_5 = value;
}
inline static int32_t get_offset_of_subscript_6() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___subscript_6)); }
inline uint8_t get_subscript_6() const { return ___subscript_6; }
inline uint8_t* get_address_of_subscript_6() { return &___subscript_6; }
inline void set_subscript_6(uint8_t value)
{
___subscript_6 = value;
}
inline static int32_t get_offset_of_uppercase_7() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___uppercase_7)); }
inline uint8_t get_uppercase_7() const { return ___uppercase_7; }
inline uint8_t* get_address_of_uppercase_7() { return &___uppercase_7; }
inline void set_uppercase_7(uint8_t value)
{
___uppercase_7 = value;
}
inline static int32_t get_offset_of_lowercase_8() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___lowercase_8)); }
inline uint8_t get_lowercase_8() const { return ___lowercase_8; }
inline uint8_t* get_address_of_lowercase_8() { return &___lowercase_8; }
inline void set_lowercase_8(uint8_t value)
{
___lowercase_8 = value;
}
inline static int32_t get_offset_of_smallcaps_9() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___smallcaps_9)); }
inline uint8_t get_smallcaps_9() const { return ___smallcaps_9; }
inline uint8_t* get_address_of_smallcaps_9() { return &___smallcaps_9; }
inline void set_smallcaps_9(uint8_t value)
{
___smallcaps_9 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<System.Int32>
struct TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
int32_t ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_ItemStack_0)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_DefaultItem_3)); }
inline int32_t get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline int32_t* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(int32_t value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<System.Single>
struct TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
float ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_ItemStack_0)); }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_DefaultItem_3)); }
inline float get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline float* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(float value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.TMP_ColorGradient>
struct TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_ItemStack_0)); }
inline TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_DefaultItem_3)); }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 ** get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * value)
{
___m_DefaultItem_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DefaultItem_3), (void*)value);
}
};
// UnityEngine.Color
struct Color_t119BCA590009762C7223FDD3AF9706653AC84ED2
{
public:
// System.Single UnityEngine.Color::r
float ___r_0;
// System.Single UnityEngine.Color::g
float ___g_1;
// System.Single UnityEngine.Color::b
float ___b_2;
// System.Single UnityEngine.Color::a
float ___a_3;
public:
inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___r_0)); }
inline float get_r_0() const { return ___r_0; }
inline float* get_address_of_r_0() { return &___r_0; }
inline void set_r_0(float value)
{
___r_0 = value;
}
inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___g_1)); }
inline float get_g_1() const { return ___g_1; }
inline float* get_address_of_g_1() { return &___g_1; }
inline void set_g_1(float value)
{
___g_1 = value;
}
inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___b_2)); }
inline float get_b_2() const { return ___b_2; }
inline float* get_address_of_b_2() { return &___b_2; }
inline void set_b_2(float value)
{
___b_2 = value;
}
inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___a_3)); }
inline float get_a_3() const { return ___a_3; }
inline float* get_address_of_a_3() { return &___a_3; }
inline void set_a_3(float value)
{
___a_3 = value;
}
};
// UnityEngine.Color32
struct Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23
{
public:
union
{
#pragma pack(push, tp, 1)
struct
{
// System.Int32 UnityEngine.Color32::rgba
int32_t ___rgba_0;
};
#pragma pack(pop, tp)
struct
{
int32_t ___rgba_0_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
// System.Byte UnityEngine.Color32::r
uint8_t ___r_1;
};
#pragma pack(pop, tp)
struct
{
uint8_t ___r_1_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___g_2_OffsetPadding[1];
// System.Byte UnityEngine.Color32::g
uint8_t ___g_2;
};
#pragma pack(pop, tp)
struct
{
char ___g_2_OffsetPadding_forAlignmentOnly[1];
uint8_t ___g_2_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___b_3_OffsetPadding[2];
// System.Byte UnityEngine.Color32::b
uint8_t ___b_3;
};
#pragma pack(pop, tp)
struct
{
char ___b_3_OffsetPadding_forAlignmentOnly[2];
uint8_t ___b_3_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___a_4_OffsetPadding[3];
// System.Byte UnityEngine.Color32::a
uint8_t ___a_4;
};
#pragma pack(pop, tp)
struct
{
char ___a_4_OffsetPadding_forAlignmentOnly[3];
uint8_t ___a_4_forAlignmentOnly;
};
};
public:
inline static int32_t get_offset_of_rgba_0() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___rgba_0)); }
inline int32_t get_rgba_0() const { return ___rgba_0; }
inline int32_t* get_address_of_rgba_0() { return &___rgba_0; }
inline void set_rgba_0(int32_t value)
{
___rgba_0 = value;
}
inline static int32_t get_offset_of_r_1() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___r_1)); }
inline uint8_t get_r_1() const { return ___r_1; }
inline uint8_t* get_address_of_r_1() { return &___r_1; }
inline void set_r_1(uint8_t value)
{
___r_1 = value;
}
inline static int32_t get_offset_of_g_2() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___g_2)); }
inline uint8_t get_g_2() const { return ___g_2; }
inline uint8_t* get_address_of_g_2() { return &___g_2; }
inline void set_g_2(uint8_t value)
{
___g_2 = value;
}
inline static int32_t get_offset_of_b_3() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___b_3)); }
inline uint8_t get_b_3() const { return ___b_3; }
inline uint8_t* get_address_of_b_3() { return &___b_3; }
inline void set_b_3(uint8_t value)
{
___b_3 = value;
}
inline static int32_t get_offset_of_a_4() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___a_4)); }
inline uint8_t get_a_4() const { return ___a_4; }
inline uint8_t* get_address_of_a_4() { return &___a_4; }
inline void set_a_4(uint8_t value)
{
___a_4 = value;
}
};
// UnityEngine.DrivenRectTransformTracker
struct DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03
{
public:
union
{
struct
{
};
uint8_t DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03__padding[1];
};
public:
};
// UnityEngine.Matrix4x4
struct Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA
{
public:
// System.Single UnityEngine.Matrix4x4::m00
float ___m00_0;
// System.Single UnityEngine.Matrix4x4::m10
float ___m10_1;
// System.Single UnityEngine.Matrix4x4::m20
float ___m20_2;
// System.Single UnityEngine.Matrix4x4::m30
float ___m30_3;
// System.Single UnityEngine.Matrix4x4::m01
float ___m01_4;
// System.Single UnityEngine.Matrix4x4::m11
float ___m11_5;
// System.Single UnityEngine.Matrix4x4::m21
float ___m21_6;
// System.Single UnityEngine.Matrix4x4::m31
float ___m31_7;
// System.Single UnityEngine.Matrix4x4::m02
float ___m02_8;
// System.Single UnityEngine.Matrix4x4::m12
float ___m12_9;
// System.Single UnityEngine.Matrix4x4::m22
float ___m22_10;
// System.Single UnityEngine.Matrix4x4::m32
float ___m32_11;
// System.Single UnityEngine.Matrix4x4::m03
float ___m03_12;
// System.Single UnityEngine.Matrix4x4::m13
float ___m13_13;
// System.Single UnityEngine.Matrix4x4::m23
float ___m23_14;
// System.Single UnityEngine.Matrix4x4::m33
float ___m33_15;
public:
inline static int32_t get_offset_of_m00_0() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m00_0)); }
inline float get_m00_0() const { return ___m00_0; }
inline float* get_address_of_m00_0() { return &___m00_0; }
inline void set_m00_0(float value)
{
___m00_0 = value;
}
inline static int32_t get_offset_of_m10_1() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m10_1)); }
inline float get_m10_1() const { return ___m10_1; }
inline float* get_address_of_m10_1() { return &___m10_1; }
inline void set_m10_1(float value)
{
___m10_1 = value;
}
inline static int32_t get_offset_of_m20_2() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m20_2)); }
inline float get_m20_2() const { return ___m20_2; }
inline float* get_address_of_m20_2() { return &___m20_2; }
inline void set_m20_2(float value)
{
___m20_2 = value;
}
inline static int32_t get_offset_of_m30_3() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m30_3)); }
inline float get_m30_3() const { return ___m30_3; }
inline float* get_address_of_m30_3() { return &___m30_3; }
inline void set_m30_3(float value)
{
___m30_3 = value;
}
inline static int32_t get_offset_of_m01_4() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m01_4)); }
inline float get_m01_4() const { return ___m01_4; }
inline float* get_address_of_m01_4() { return &___m01_4; }
inline void set_m01_4(float value)
{
___m01_4 = value;
}
inline static int32_t get_offset_of_m11_5() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m11_5)); }
inline float get_m11_5() const { return ___m11_5; }
inline float* get_address_of_m11_5() { return &___m11_5; }
inline void set_m11_5(float value)
{
___m11_5 = value;
}
inline static int32_t get_offset_of_m21_6() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m21_6)); }
inline float get_m21_6() const { return ___m21_6; }
inline float* get_address_of_m21_6() { return &___m21_6; }
inline void set_m21_6(float value)
{
___m21_6 = value;
}
inline static int32_t get_offset_of_m31_7() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m31_7)); }
inline float get_m31_7() const { return ___m31_7; }
inline float* get_address_of_m31_7() { return &___m31_7; }
inline void set_m31_7(float value)
{
___m31_7 = value;
}
inline static int32_t get_offset_of_m02_8() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m02_8)); }
inline float get_m02_8() const { return ___m02_8; }
inline float* get_address_of_m02_8() { return &___m02_8; }
inline void set_m02_8(float value)
{
___m02_8 = value;
}
inline static int32_t get_offset_of_m12_9() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m12_9)); }
inline float get_m12_9() const { return ___m12_9; }
inline float* get_address_of_m12_9() { return &___m12_9; }
inline void set_m12_9(float value)
{
___m12_9 = value;
}
inline static int32_t get_offset_of_m22_10() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m22_10)); }
inline float get_m22_10() const { return ___m22_10; }
inline float* get_address_of_m22_10() { return &___m22_10; }
inline void set_m22_10(float value)
{
___m22_10 = value;
}
inline static int32_t get_offset_of_m32_11() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m32_11)); }
inline float get_m32_11() const { return ___m32_11; }
inline float* get_address_of_m32_11() { return &___m32_11; }
inline void set_m32_11(float value)
{
___m32_11 = value;
}
inline static int32_t get_offset_of_m03_12() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m03_12)); }
inline float get_m03_12() const { return ___m03_12; }
inline float* get_address_of_m03_12() { return &___m03_12; }
inline void set_m03_12(float value)
{
___m03_12 = value;
}
inline static int32_t get_offset_of_m13_13() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m13_13)); }
inline float get_m13_13() const { return ___m13_13; }
inline float* get_address_of_m13_13() { return &___m13_13; }
inline void set_m13_13(float value)
{
___m13_13 = value;
}
inline static int32_t get_offset_of_m23_14() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m23_14)); }
inline float get_m23_14() const { return ___m23_14; }
inline float* get_address_of_m23_14() { return &___m23_14; }
inline void set_m23_14(float value)
{
___m23_14 = value;
}
inline static int32_t get_offset_of_m33_15() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m33_15)); }
inline float get_m33_15() const { return ___m33_15; }
inline float* get_address_of_m33_15() { return &___m33_15; }
inline void set_m33_15(float value)
{
___m33_15 = value;
}
};
struct Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA_StaticFields
{
public:
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::zeroMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___zeroMatrix_16;
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::identityMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___identityMatrix_17;
public:
inline static int32_t get_offset_of_zeroMatrix_16() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA_StaticFields, ___zeroMatrix_16)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_zeroMatrix_16() const { return ___zeroMatrix_16; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_zeroMatrix_16() { return &___zeroMatrix_16; }
inline void set_zeroMatrix_16(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___zeroMatrix_16 = value;
}
inline static int32_t get_offset_of_identityMatrix_17() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA_StaticFields, ___identityMatrix_17)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_identityMatrix_17() const { return ___identityMatrix_17; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_identityMatrix_17() { return &___identityMatrix_17; }
inline void set_identityMatrix_17(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___identityMatrix_17 = value;
}
};
// UnityEngine.Quaternion
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357
{
public:
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___z_2)); }
inline float get_z_2() const { return ___z_2; }
inline float* get_address_of_z_2() { return &___z_2; }
inline void set_z_2(float value)
{
___z_2 = value;
}
inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___w_3)); }
inline float get_w_3() const { return ___w_3; }
inline float* get_address_of_w_3() { return &___w_3; }
inline void set_w_3(float value)
{
___w_3 = value;
}
};
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___identityQuaternion_4 = value;
}
};
// UnityEngine.UI.SpriteState
struct SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A
{
public:
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_HighlightedSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_HighlightedSprite_0;
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_PressedSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_PressedSprite_1;
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_SelectedSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_SelectedSprite_2;
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_DisabledSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_DisabledSprite_3;
public:
inline static int32_t get_offset_of_m_HighlightedSprite_0() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_HighlightedSprite_0)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_HighlightedSprite_0() const { return ___m_HighlightedSprite_0; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_HighlightedSprite_0() { return &___m_HighlightedSprite_0; }
inline void set_m_HighlightedSprite_0(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_HighlightedSprite_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HighlightedSprite_0), (void*)value);
}
inline static int32_t get_offset_of_m_PressedSprite_1() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_PressedSprite_1)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_PressedSprite_1() const { return ___m_PressedSprite_1; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_PressedSprite_1() { return &___m_PressedSprite_1; }
inline void set_m_PressedSprite_1(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_PressedSprite_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_PressedSprite_1), (void*)value);
}
inline static int32_t get_offset_of_m_SelectedSprite_2() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_SelectedSprite_2)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_SelectedSprite_2() const { return ___m_SelectedSprite_2; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_SelectedSprite_2() { return &___m_SelectedSprite_2; }
inline void set_m_SelectedSprite_2(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_SelectedSprite_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectedSprite_2), (void*)value);
}
inline static int32_t get_offset_of_m_DisabledSprite_3() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_DisabledSprite_3)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_DisabledSprite_3() const { return ___m_DisabledSprite_3; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_DisabledSprite_3() { return &___m_DisabledSprite_3; }
inline void set_m_DisabledSprite_3(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_DisabledSprite_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DisabledSprite_3), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.UI.SpriteState
struct SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A_marshaled_pinvoke
{
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_HighlightedSprite_0;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_PressedSprite_1;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_SelectedSprite_2;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_DisabledSprite_3;
};
// Native definition for COM marshalling of UnityEngine.UI.SpriteState
struct SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A_marshaled_com
{
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_HighlightedSprite_0;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_PressedSprite_1;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_SelectedSprite_2;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_DisabledSprite_3;
};
// UnityEngine.Vector2
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D
{
public:
// System.Single UnityEngine.Vector2::x
float ___x_0;
// System.Single UnityEngine.Vector2::y
float ___y_1;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
};
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields
{
public:
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___negativeInfinityVector_9;
public:
inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___zeroVector_2)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_zeroVector_2() const { return ___zeroVector_2; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_zeroVector_2() { return &___zeroVector_2; }
inline void set_zeroVector_2(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___zeroVector_2 = value;
}
inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___oneVector_3)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_oneVector_3() const { return ___oneVector_3; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_oneVector_3() { return &___oneVector_3; }
inline void set_oneVector_3(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___oneVector_3 = value;
}
inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___upVector_4)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_upVector_4() const { return ___upVector_4; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_upVector_4() { return &___upVector_4; }
inline void set_upVector_4(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___upVector_4 = value;
}
inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___downVector_5)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_downVector_5() const { return ___downVector_5; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_downVector_5() { return &___downVector_5; }
inline void set_downVector_5(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___downVector_5 = value;
}
inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___leftVector_6)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_leftVector_6() const { return ___leftVector_6; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_leftVector_6() { return &___leftVector_6; }
inline void set_leftVector_6(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___leftVector_6 = value;
}
inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___rightVector_7)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_rightVector_7() const { return ___rightVector_7; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_rightVector_7() { return &___rightVector_7; }
inline void set_rightVector_7(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___rightVector_7 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___positiveInfinityVector_8)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; }
inline void set_positiveInfinityVector_8(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___positiveInfinityVector_8 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___negativeInfinityVector_9)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; }
inline void set_negativeInfinityVector_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___negativeInfinityVector_9 = value;
}
};
// UnityEngine.Vector3
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_2;
// System.Single UnityEngine.Vector3::y
float ___y_3;
// System.Single UnityEngine.Vector3::z
float ___z_4;
public:
inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___x_2)); }
inline float get_x_2() const { return ___x_2; }
inline float* get_address_of_x_2() { return &___x_2; }
inline void set_x_2(float value)
{
___x_2 = value;
}
inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___y_3)); }
inline float get_y_3() const { return ___y_3; }
inline float* get_address_of_y_3() { return &___y_3; }
inline void set_y_3(float value)
{
___y_3 = value;
}
inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___z_4)); }
inline float get_z_4() const { return ___z_4; }
inline float* get_address_of_z_4() { return &___z_4; }
inline void set_z_4(float value)
{
___z_4 = value;
}
};
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___negativeInfinityVector_14;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___zeroVector_5)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___oneVector_6)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_oneVector_6() const { return ___oneVector_6; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___upVector_7)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_upVector_7() const { return ___upVector_7; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_upVector_7() { return &___upVector_7; }
inline void set_upVector_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___upVector_7 = value;
}
inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___downVector_8)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_downVector_8() const { return ___downVector_8; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_downVector_8() { return &___downVector_8; }
inline void set_downVector_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___downVector_8 = value;
}
inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___leftVector_9)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_leftVector_9() const { return ___leftVector_9; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_leftVector_9() { return &___leftVector_9; }
inline void set_leftVector_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___leftVector_9 = value;
}
inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___rightVector_10)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_rightVector_10() const { return ___rightVector_10; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_rightVector_10() { return &___rightVector_10; }
inline void set_rightVector_10(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___rightVector_10 = value;
}
inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___forwardVector_11)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_forwardVector_11() const { return ___forwardVector_11; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_forwardVector_11() { return &___forwardVector_11; }
inline void set_forwardVector_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___forwardVector_11 = value;
}
inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___backVector_12)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_backVector_12() const { return ___backVector_12; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_backVector_12() { return &___backVector_12; }
inline void set_backVector_12(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___backVector_12 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___positiveInfinityVector_13)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; }
inline void set_positiveInfinityVector_13(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___positiveInfinityVector_13 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___negativeInfinityVector_14)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; }
inline void set_negativeInfinityVector_14(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___negativeInfinityVector_14 = value;
}
};
// UnityEngine.Vector4
struct Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E
{
public:
// System.Single UnityEngine.Vector4::x
float ___x_1;
// System.Single UnityEngine.Vector4::y
float ___y_2;
// System.Single UnityEngine.Vector4::z
float ___z_3;
// System.Single UnityEngine.Vector4::w
float ___w_4;
public:
inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___x_1)); }
inline float get_x_1() const { return ___x_1; }
inline float* get_address_of_x_1() { return &___x_1; }
inline void set_x_1(float value)
{
___x_1 = value;
}
inline static int32_t get_offset_of_y_2() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___y_2)); }
inline float get_y_2() const { return ___y_2; }
inline float* get_address_of_y_2() { return &___y_2; }
inline void set_y_2(float value)
{
___y_2 = value;
}
inline static int32_t get_offset_of_z_3() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___z_3)); }
inline float get_z_3() const { return ___z_3; }
inline float* get_address_of_z_3() { return &___z_3; }
inline void set_z_3(float value)
{
___z_3 = value;
}
inline static int32_t get_offset_of_w_4() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___w_4)); }
inline float get_w_4() const { return ___w_4; }
inline float* get_address_of_w_4() { return &___w_4; }
inline void set_w_4(float value)
{
___w_4 = value;
}
};
struct Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields
{
public:
// UnityEngine.Vector4 UnityEngine.Vector4::zeroVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___zeroVector_5;
// UnityEngine.Vector4 UnityEngine.Vector4::oneVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___oneVector_6;
// UnityEngine.Vector4 UnityEngine.Vector4::positiveInfinityVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___positiveInfinityVector_7;
// UnityEngine.Vector4 UnityEngine.Vector4::negativeInfinityVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___negativeInfinityVector_8;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___zeroVector_5)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___oneVector_6)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_oneVector_6() const { return ___oneVector_6; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_7() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___positiveInfinityVector_7)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_positiveInfinityVector_7() const { return ___positiveInfinityVector_7; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_positiveInfinityVector_7() { return &___positiveInfinityVector_7; }
inline void set_positiveInfinityVector_7(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___positiveInfinityVector_7 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___negativeInfinityVector_8)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_negativeInfinityVector_8() const { return ___negativeInfinityVector_8; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_negativeInfinityVector_8() { return &___negativeInfinityVector_8; }
inline void set_negativeInfinityVector_8(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___negativeInfinityVector_8 = value;
}
};
// Photon.Pun.OwnershipOption
struct OwnershipOption_t45BCF7BD7E980B42D2C78A671E82AB78E3D73097
{
public:
// System.Int32 Photon.Pun.OwnershipOption::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(OwnershipOption_t45BCF7BD7E980B42D2C78A671E82AB78E3D73097, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.Pun.PhotonView_ObservableSearch
struct ObservableSearch_t3C078B4330D2804D12B301581CB963C9ADB45771
{
public:
// System.Int32 Photon.Pun.PhotonView_ObservableSearch::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ObservableSearch_t3C078B4330D2804D12B301581CB963C9ADB45771, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.Pun.PhotonView_OwnershipCacheState
struct OwnershipCacheState_tE9483E17951422215A8D0DBF7F5C4AEFDD312B6D
{
public:
// System.Int32 Photon.Pun.PhotonView_OwnershipCacheState::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(OwnershipCacheState_tE9483E17951422215A8D0DBF7F5C4AEFDD312B6D, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.Pun.RpcTarget
struct RpcTarget_tE30C1D8C1A41907B5F74531A47D12542724FD023
{
public:
// System.Int32 Photon.Pun.RpcTarget::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RpcTarget_tE30C1D8C1A41907B5F74531A47D12542724FD023, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.Pun.ViewSynchronization
struct ViewSynchronization_tD026A6A289A4BF5263BF25B0EF79AB614E93D08B
{
public:
// System.Int32 Photon.Pun.ViewSynchronization::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ViewSynchronization_tD026A6A289A4BF5263BF25B0EF79AB614E93D08B, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.Realtime.LobbyType
struct LobbyType_tC10229382E36CFEC2718583263A711F1C1F35305
{
public:
// System.Byte Photon.Realtime.LobbyType::value__
uint8_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LobbyType_tC10229382E36CFEC2718583263A711F1C1F35305, ___value___2)); }
inline uint8_t get_value___2() const { return ___value___2; }
inline uint8_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(uint8_t value)
{
___value___2 = value;
}
};
// System.Delegate
struct Delegate_t : 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::extra_arg
intptr_t ___extra_arg_5;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_6;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_7;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_8;
// System.DelegateData System.Delegate::data
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
// System.Boolean System.Delegate::method_is_virtual
bool ___method_is_virtual_10;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___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_t, ___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_t, ___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((void**)(&___m_target_2), (void*)value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___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_t, ___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_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); }
inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; }
inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; }
inline void set_extra_arg_5(intptr_t value)
{
___extra_arg_5 = value;
}
inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); }
inline intptr_t get_method_code_6() const { return ___method_code_6; }
inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; }
inline void set_method_code_6(intptr_t value)
{
___method_code_6 = value;
}
inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); }
inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; }
inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; }
inline void set_method_info_7(MethodInfo_t * value)
{
___method_info_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value);
}
inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); }
inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; }
inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; }
inline void set_original_method_info_8(MethodInfo_t * value)
{
___original_method_info_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value);
}
inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * get_data_9() const { return ___data_9; }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE ** get_address_of_data_9() { return &___data_9; }
inline void set_data_9(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * value)
{
___data_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value);
}
inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); }
inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; }
inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; }
inline void set_method_is_virtual_10(bool value)
{
___method_is_virtual_10 = value;
}
};
// Native definition for P/Invoke marshalling of System.Delegate
struct Delegate_t_marshaled_pinvoke
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// Native definition for COM marshalling of System.Delegate
struct Delegate_t_marshaled_com
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// TMPro.ColorMode
struct ColorMode_tA3D65CECD3289ADB3A3C5A936DC23B41C364C4C3
{
public:
// System.Int32 TMPro.ColorMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ColorMode_tA3D65CECD3289ADB3A3C5A936DC23B41C364C4C3, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.Extents
struct Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3
{
public:
// UnityEngine.Vector2 TMPro.Extents::min
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___min_0;
// UnityEngine.Vector2 TMPro.Extents::max
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___max_1;
public:
inline static int32_t get_offset_of_min_0() { return static_cast<int32_t>(offsetof(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3, ___min_0)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_min_0() const { return ___min_0; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_min_0() { return &___min_0; }
inline void set_min_0(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___min_0 = value;
}
inline static int32_t get_offset_of_max_1() { return static_cast<int32_t>(offsetof(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3, ___max_1)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_max_1() const { return ___max_1; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_max_1() { return &___max_1; }
inline void set_max_1(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___max_1 = value;
}
};
// TMPro.FontStyles
struct FontStyles_t31B880C817B2DF0BF3B60AC4D187A3E7BE5D8893
{
public:
// System.Int32 TMPro.FontStyles::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FontStyles_t31B880C817B2DF0BF3B60AC4D187A3E7BE5D8893, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.FontWeight
struct FontWeight_tE551C56E6C7CCAFCC6519C65D03AAA340E9FF35C
{
public:
// System.Int32 TMPro.FontWeight::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FontWeight_tE551C56E6C7CCAFCC6519C65D03AAA340E9FF35C, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TMP_InputField_CharacterValidation
struct CharacterValidation_t9F45E4CA4A1A77DE3E0F1D43A8A26DD6EEC2D12A
{
public:
// System.Int32 TMPro.TMP_InputField_CharacterValidation::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CharacterValidation_t9F45E4CA4A1A77DE3E0F1D43A8A26DD6EEC2D12A, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TMP_InputField_ContentType
struct ContentType_t93262611CC15FC7196E42F1B77517D724602FE38
{
public:
// System.Int32 TMPro.TMP_InputField_ContentType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ContentType_t93262611CC15FC7196E42F1B77517D724602FE38, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TMP_InputField_InputType
struct InputType_t002CCE2E41F03B7E05CA0F31EA1D57EA36631FD2
{
public:
// System.Int32 TMPro.TMP_InputField_InputType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InputType_t002CCE2E41F03B7E05CA0F31EA1D57EA36631FD2, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TMP_InputField_LineType
struct LineType_t0ED2AC5DA81D1481A2072395E6A256EBE23140D7
{
public:
// System.Int32 TMPro.TMP_InputField_LineType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LineType_t0ED2AC5DA81D1481A2072395E6A256EBE23140D7, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.MaterialReference>
struct TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_ItemStack_0)); }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_DefaultItem_3)); }
inline MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F * get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F value)
{
___m_DefaultItem_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
}
};
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32>
struct TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_ItemStack_0)); }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_DefaultItem_3)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_Text_TextInputSources
struct TextInputSources_t08C2D3664AE99CBF6ED41C9DB8F4E9E8FC8E54B4
{
public:
// System.Int32 TMPro.TMP_Text_TextInputSources::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextInputSources_t08C2D3664AE99CBF6ED41C9DB8F4E9E8FC8E54B4, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TMP_TextElementType
struct TMP_TextElementType_tBF2553FA730CC21CF99473E591C33DC52360D509
{
public:
// System.Int32 TMPro.TMP_TextElementType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TMP_TextElementType_tBF2553FA730CC21CF99473E591C33DC52360D509, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TextAlignmentOptions
struct TextAlignmentOptions_t4BEB3BA6EE897B5127FFBABD7E36B1A024EE5337
{
public:
// System.Int32 TMPro.TextAlignmentOptions::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextAlignmentOptions_t4BEB3BA6EE897B5127FFBABD7E36B1A024EE5337, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TextOverflowModes
struct TextOverflowModes_tC4F820014333ECAF4D52B02F75171FD9E52B9D76
{
public:
// System.Int32 TMPro.TextOverflowModes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextOverflowModes_tC4F820014333ECAF4D52B02F75171FD9E52B9D76, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TextRenderFlags
struct TextRenderFlags_t29165355D5674BAEF40359B740631503FA9C0B56
{
public:
// System.Int32 TMPro.TextRenderFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextRenderFlags_t29165355D5674BAEF40359B740631503FA9C0B56, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.TextureMappingOptions
struct TextureMappingOptions_tAC77A218D6DF5F386DA38AEAF3D9C943F084BD10
{
public:
// System.Int32 TMPro.TextureMappingOptions::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextureMappingOptions_tAC77A218D6DF5F386DA38AEAF3D9C943F084BD10, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// TMPro.VertexGradient
struct VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A
{
public:
// UnityEngine.Color TMPro.VertexGradient::topLeft
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___topLeft_0;
// UnityEngine.Color TMPro.VertexGradient::topRight
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___topRight_1;
// UnityEngine.Color TMPro.VertexGradient::bottomLeft
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___bottomLeft_2;
// UnityEngine.Color TMPro.VertexGradient::bottomRight
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___bottomRight_3;
public:
inline static int32_t get_offset_of_topLeft_0() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___topLeft_0)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_topLeft_0() const { return ___topLeft_0; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_topLeft_0() { return &___topLeft_0; }
inline void set_topLeft_0(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___topLeft_0 = value;
}
inline static int32_t get_offset_of_topRight_1() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___topRight_1)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_topRight_1() const { return ___topRight_1; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_topRight_1() { return &___topRight_1; }
inline void set_topRight_1(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___topRight_1 = value;
}
inline static int32_t get_offset_of_bottomLeft_2() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___bottomLeft_2)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_bottomLeft_2() const { return ___bottomLeft_2; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_bottomLeft_2() { return &___bottomLeft_2; }
inline void set_bottomLeft_2(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___bottomLeft_2 = value;
}
inline static int32_t get_offset_of_bottomRight_3() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___bottomRight_3)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_bottomRight_3() const { return ___bottomRight_3; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_bottomRight_3() { return &___bottomRight_3; }
inline void set_bottomRight_3(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___bottomRight_3 = value;
}
};
// TMPro.VertexSortingOrder
struct VertexSortingOrder_t2571FF911BB69CC1CC229DF12DE68568E3F850E5
{
public:
// System.Int32 TMPro.VertexSortingOrder::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(VertexSortingOrder_t2571FF911BB69CC1CC229DF12DE68568E3F850E5, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Collision
struct Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C : public RuntimeObject
{
public:
// UnityEngine.Vector3 UnityEngine.Collision::m_Impulse
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Impulse_0;
// UnityEngine.Vector3 UnityEngine.Collision::m_RelativeVelocity
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_RelativeVelocity_1;
// UnityEngine.Rigidbody UnityEngine.Collision::m_Rigidbody
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * ___m_Rigidbody_2;
// UnityEngine.Collider UnityEngine.Collision::m_Collider
Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * ___m_Collider_3;
// System.Int32 UnityEngine.Collision::m_ContactCount
int32_t ___m_ContactCount_4;
// UnityEngine.ContactPoint[] UnityEngine.Collision::m_ReusedContacts
ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA* ___m_ReusedContacts_5;
// UnityEngine.ContactPoint[] UnityEngine.Collision::m_LegacyContacts
ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA* ___m_LegacyContacts_6;
public:
inline static int32_t get_offset_of_m_Impulse_0() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_Impulse_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Impulse_0() const { return ___m_Impulse_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Impulse_0() { return &___m_Impulse_0; }
inline void set_m_Impulse_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Impulse_0 = value;
}
inline static int32_t get_offset_of_m_RelativeVelocity_1() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_RelativeVelocity_1)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_RelativeVelocity_1() const { return ___m_RelativeVelocity_1; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_RelativeVelocity_1() { return &___m_RelativeVelocity_1; }
inline void set_m_RelativeVelocity_1(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_RelativeVelocity_1 = value;
}
inline static int32_t get_offset_of_m_Rigidbody_2() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_Rigidbody_2)); }
inline Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * get_m_Rigidbody_2() const { return ___m_Rigidbody_2; }
inline Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 ** get_address_of_m_Rigidbody_2() { return &___m_Rigidbody_2; }
inline void set_m_Rigidbody_2(Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * value)
{
___m_Rigidbody_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Rigidbody_2), (void*)value);
}
inline static int32_t get_offset_of_m_Collider_3() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_Collider_3)); }
inline Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * get_m_Collider_3() const { return ___m_Collider_3; }
inline Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF ** get_address_of_m_Collider_3() { return &___m_Collider_3; }
inline void set_m_Collider_3(Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * value)
{
___m_Collider_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Collider_3), (void*)value);
}
inline static int32_t get_offset_of_m_ContactCount_4() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_ContactCount_4)); }
inline int32_t get_m_ContactCount_4() const { return ___m_ContactCount_4; }
inline int32_t* get_address_of_m_ContactCount_4() { return &___m_ContactCount_4; }
inline void set_m_ContactCount_4(int32_t value)
{
___m_ContactCount_4 = value;
}
inline static int32_t get_offset_of_m_ReusedContacts_5() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_ReusedContacts_5)); }
inline ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA* get_m_ReusedContacts_5() const { return ___m_ReusedContacts_5; }
inline ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA** get_address_of_m_ReusedContacts_5() { return &___m_ReusedContacts_5; }
inline void set_m_ReusedContacts_5(ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA* value)
{
___m_ReusedContacts_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ReusedContacts_5), (void*)value);
}
inline static int32_t get_offset_of_m_LegacyContacts_6() { return static_cast<int32_t>(offsetof(Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C, ___m_LegacyContacts_6)); }
inline ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA* get_m_LegacyContacts_6() const { return ___m_LegacyContacts_6; }
inline ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA** get_address_of_m_LegacyContacts_6() { return &___m_LegacyContacts_6; }
inline void set_m_LegacyContacts_6(ContactPointU5BU5D_t10BB5D5BFFFA3C919FD97DFDEDB49D954AFB8EAA* value)
{
___m_LegacyContacts_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_LegacyContacts_6), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Collision
struct Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C_marshaled_pinvoke
{
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Impulse_0;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_RelativeVelocity_1;
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * ___m_Rigidbody_2;
Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * ___m_Collider_3;
int32_t ___m_ContactCount_4;
ContactPoint_tE0D3A30ED34A1FC8CA3F7391348429F3232CA515 * ___m_ReusedContacts_5;
ContactPoint_tE0D3A30ED34A1FC8CA3F7391348429F3232CA515 * ___m_LegacyContacts_6;
};
// Native definition for COM marshalling of UnityEngine.Collision
struct Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C_marshaled_com
{
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Impulse_0;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_RelativeVelocity_1;
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * ___m_Rigidbody_2;
Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * ___m_Collider_3;
int32_t ___m_ContactCount_4;
ContactPoint_tE0D3A30ED34A1FC8CA3F7391348429F3232CA515 * ___m_ReusedContacts_5;
ContactPoint_tE0D3A30ED34A1FC8CA3F7391348429F3232CA515 * ___m_LegacyContacts_6;
};
// UnityEngine.ForceMode
struct ForceMode_t76188FF14D0038E184106555207A81218E97D0A5
{
public:
// System.Int32 UnityEngine.ForceMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ForceMode_t76188FF14D0038E184106555207A81218E97D0A5, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.KeyCode
struct KeyCode_tC93EA87C5A6901160B583ADFCD3EF6726570DC3C
{
public:
// System.Int32 UnityEngine.KeyCode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(KeyCode_tC93EA87C5A6901160B583ADFCD3EF6726570DC3C, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// UnityEngine.Ray
struct Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2
{
public:
// UnityEngine.Vector3 UnityEngine.Ray::m_Origin
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Origin_0;
// UnityEngine.Vector3 UnityEngine.Ray::m_Direction
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Direction_1;
public:
inline static int32_t get_offset_of_m_Origin_0() { return static_cast<int32_t>(offsetof(Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2, ___m_Origin_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Origin_0() const { return ___m_Origin_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Origin_0() { return &___m_Origin_0; }
inline void set_m_Origin_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Origin_0 = value;
}
inline static int32_t get_offset_of_m_Direction_1() { return static_cast<int32_t>(offsetof(Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2, ___m_Direction_1)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Direction_1() const { return ___m_Direction_1; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Direction_1() { return &___m_Direction_1; }
inline void set_m_Direction_1(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Direction_1 = value;
}
};
// UnityEngine.TouchScreenKeyboardType
struct TouchScreenKeyboardType_tDD21D45735F3021BF4C6C7C1A660ABF03EBCE602
{
public:
// System.Int32 UnityEngine.TouchScreenKeyboardType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TouchScreenKeyboardType_tDD21D45735F3021BF4C6C7C1A660ABF03EBCE602, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.UI.ColorBlock
struct ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA
{
public:
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_NormalColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_NormalColor_0;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_HighlightedColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_HighlightedColor_1;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_PressedColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_PressedColor_2;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_SelectedColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_SelectedColor_3;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_DisabledColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_DisabledColor_4;
// System.Single UnityEngine.UI.ColorBlock::m_ColorMultiplier
float ___m_ColorMultiplier_5;
// System.Single UnityEngine.UI.ColorBlock::m_FadeDuration
float ___m_FadeDuration_6;
public:
inline static int32_t get_offset_of_m_NormalColor_0() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_NormalColor_0)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_NormalColor_0() const { return ___m_NormalColor_0; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_NormalColor_0() { return &___m_NormalColor_0; }
inline void set_m_NormalColor_0(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_NormalColor_0 = value;
}
inline static int32_t get_offset_of_m_HighlightedColor_1() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_HighlightedColor_1)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_HighlightedColor_1() const { return ___m_HighlightedColor_1; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_HighlightedColor_1() { return &___m_HighlightedColor_1; }
inline void set_m_HighlightedColor_1(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_HighlightedColor_1 = value;
}
inline static int32_t get_offset_of_m_PressedColor_2() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_PressedColor_2)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_PressedColor_2() const { return ___m_PressedColor_2; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_PressedColor_2() { return &___m_PressedColor_2; }
inline void set_m_PressedColor_2(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_PressedColor_2 = value;
}
inline static int32_t get_offset_of_m_SelectedColor_3() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_SelectedColor_3)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_SelectedColor_3() const { return ___m_SelectedColor_3; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_SelectedColor_3() { return &___m_SelectedColor_3; }
inline void set_m_SelectedColor_3(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_SelectedColor_3 = value;
}
inline static int32_t get_offset_of_m_DisabledColor_4() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_DisabledColor_4)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_DisabledColor_4() const { return ___m_DisabledColor_4; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_DisabledColor_4() { return &___m_DisabledColor_4; }
inline void set_m_DisabledColor_4(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_DisabledColor_4 = value;
}
inline static int32_t get_offset_of_m_ColorMultiplier_5() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_ColorMultiplier_5)); }
inline float get_m_ColorMultiplier_5() const { return ___m_ColorMultiplier_5; }
inline float* get_address_of_m_ColorMultiplier_5() { return &___m_ColorMultiplier_5; }
inline void set_m_ColorMultiplier_5(float value)
{
___m_ColorMultiplier_5 = value;
}
inline static int32_t get_offset_of_m_FadeDuration_6() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_FadeDuration_6)); }
inline float get_m_FadeDuration_6() const { return ___m_FadeDuration_6; }
inline float* get_address_of_m_FadeDuration_6() { return &___m_FadeDuration_6; }
inline void set_m_FadeDuration_6(float value)
{
___m_FadeDuration_6 = value;
}
};
// UnityEngine.UI.Navigation_Mode
struct Mode_t93F92BD50B147AE38D82BA33FA77FD247A59FE26
{
public:
// System.Int32 UnityEngine.UI.Navigation_Mode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Mode_t93F92BD50B147AE38D82BA33FA77FD247A59FE26, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.UI.Selectable_Transition
struct Transition_tA9261C608B54C52324084A0B080E7A3E0548A181
{
public:
// System.Int32 UnityEngine.UI.Selectable_Transition::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Transition_tA9261C608B54C52324084A0B080E7A3E0548A181, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.UI.Slider_Direction
struct Direction_tAAEBCB52D43F1B8F5DBB1A6F1025F9D02852B67E
{
public:
// System.Int32 UnityEngine.UI.Slider_Direction::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Direction_tAAEBCB52D43F1B8F5DBB1A6F1025F9D02852B67E, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// Photon.Realtime.TypedLobby
struct TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 : public RuntimeObject
{
public:
// System.String Photon.Realtime.TypedLobby::Name
String_t* ___Name_0;
// Photon.Realtime.LobbyType Photon.Realtime.TypedLobby::Type
uint8_t ___Type_1;
public:
inline static int32_t get_offset_of_Name_0() { return static_cast<int32_t>(offsetof(TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5, ___Name_0)); }
inline String_t* get_Name_0() const { return ___Name_0; }
inline String_t** get_address_of_Name_0() { return &___Name_0; }
inline void set_Name_0(String_t* value)
{
___Name_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Name_0), (void*)value);
}
inline static int32_t get_offset_of_Type_1() { return static_cast<int32_t>(offsetof(TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5, ___Type_1)); }
inline uint8_t get_Type_1() const { return ___Type_1; }
inline uint8_t* get_address_of_Type_1() { return &___Type_1; }
inline void set_Type_1(uint8_t value)
{
___Type_1 = value;
}
};
struct TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5_StaticFields
{
public:
// Photon.Realtime.TypedLobby Photon.Realtime.TypedLobby::Default
TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 * ___Default_2;
public:
inline static int32_t get_offset_of_Default_2() { return static_cast<int32_t>(offsetof(TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5_StaticFields, ___Default_2)); }
inline TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 * get_Default_2() const { return ___Default_2; }
inline TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 ** get_address_of_Default_2() { return &___Default_2; }
inline void set_Default_2(TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 * value)
{
___Default_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Default_2), (void*)value);
}
};
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t
{
public:
// System.Delegate[] System.MulticastDelegate::delegates
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* ___delegates_11;
public:
inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* get_delegates_11() const { return ___delegates_11; }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86** get_address_of_delegates_11() { return &___delegates_11; }
inline void set_delegates_11(DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* value)
{
___delegates_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
{
Delegate_t_marshaled_pinvoke** ___delegates_11;
};
// Native definition for COM marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
{
Delegate_t_marshaled_com** ___delegates_11;
};
// TMPro.TMP_LineInfo
struct TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442
{
public:
// System.Int32 TMPro.TMP_LineInfo::controlCharacterCount
int32_t ___controlCharacterCount_0;
// System.Int32 TMPro.TMP_LineInfo::characterCount
int32_t ___characterCount_1;
// System.Int32 TMPro.TMP_LineInfo::visibleCharacterCount
int32_t ___visibleCharacterCount_2;
// System.Int32 TMPro.TMP_LineInfo::spaceCount
int32_t ___spaceCount_3;
// System.Int32 TMPro.TMP_LineInfo::wordCount
int32_t ___wordCount_4;
// System.Int32 TMPro.TMP_LineInfo::firstCharacterIndex
int32_t ___firstCharacterIndex_5;
// System.Int32 TMPro.TMP_LineInfo::firstVisibleCharacterIndex
int32_t ___firstVisibleCharacterIndex_6;
// System.Int32 TMPro.TMP_LineInfo::lastCharacterIndex
int32_t ___lastCharacterIndex_7;
// System.Int32 TMPro.TMP_LineInfo::lastVisibleCharacterIndex
int32_t ___lastVisibleCharacterIndex_8;
// System.Single TMPro.TMP_LineInfo::length
float ___length_9;
// System.Single TMPro.TMP_LineInfo::lineHeight
float ___lineHeight_10;
// System.Single TMPro.TMP_LineInfo::ascender
float ___ascender_11;
// System.Single TMPro.TMP_LineInfo::baseline
float ___baseline_12;
// System.Single TMPro.TMP_LineInfo::descender
float ___descender_13;
// System.Single TMPro.TMP_LineInfo::maxAdvance
float ___maxAdvance_14;
// System.Single TMPro.TMP_LineInfo::width
float ___width_15;
// System.Single TMPro.TMP_LineInfo::marginLeft
float ___marginLeft_16;
// System.Single TMPro.TMP_LineInfo::marginRight
float ___marginRight_17;
// TMPro.TextAlignmentOptions TMPro.TMP_LineInfo::alignment
int32_t ___alignment_18;
// TMPro.Extents TMPro.TMP_LineInfo::lineExtents
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___lineExtents_19;
public:
inline static int32_t get_offset_of_controlCharacterCount_0() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___controlCharacterCount_0)); }
inline int32_t get_controlCharacterCount_0() const { return ___controlCharacterCount_0; }
inline int32_t* get_address_of_controlCharacterCount_0() { return &___controlCharacterCount_0; }
inline void set_controlCharacterCount_0(int32_t value)
{
___controlCharacterCount_0 = value;
}
inline static int32_t get_offset_of_characterCount_1() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___characterCount_1)); }
inline int32_t get_characterCount_1() const { return ___characterCount_1; }
inline int32_t* get_address_of_characterCount_1() { return &___characterCount_1; }
inline void set_characterCount_1(int32_t value)
{
___characterCount_1 = value;
}
inline static int32_t get_offset_of_visibleCharacterCount_2() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___visibleCharacterCount_2)); }
inline int32_t get_visibleCharacterCount_2() const { return ___visibleCharacterCount_2; }
inline int32_t* get_address_of_visibleCharacterCount_2() { return &___visibleCharacterCount_2; }
inline void set_visibleCharacterCount_2(int32_t value)
{
___visibleCharacterCount_2 = value;
}
inline static int32_t get_offset_of_spaceCount_3() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___spaceCount_3)); }
inline int32_t get_spaceCount_3() const { return ___spaceCount_3; }
inline int32_t* get_address_of_spaceCount_3() { return &___spaceCount_3; }
inline void set_spaceCount_3(int32_t value)
{
___spaceCount_3 = value;
}
inline static int32_t get_offset_of_wordCount_4() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___wordCount_4)); }
inline int32_t get_wordCount_4() const { return ___wordCount_4; }
inline int32_t* get_address_of_wordCount_4() { return &___wordCount_4; }
inline void set_wordCount_4(int32_t value)
{
___wordCount_4 = value;
}
inline static int32_t get_offset_of_firstCharacterIndex_5() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___firstCharacterIndex_5)); }
inline int32_t get_firstCharacterIndex_5() const { return ___firstCharacterIndex_5; }
inline int32_t* get_address_of_firstCharacterIndex_5() { return &___firstCharacterIndex_5; }
inline void set_firstCharacterIndex_5(int32_t value)
{
___firstCharacterIndex_5 = value;
}
inline static int32_t get_offset_of_firstVisibleCharacterIndex_6() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___firstVisibleCharacterIndex_6)); }
inline int32_t get_firstVisibleCharacterIndex_6() const { return ___firstVisibleCharacterIndex_6; }
inline int32_t* get_address_of_firstVisibleCharacterIndex_6() { return &___firstVisibleCharacterIndex_6; }
inline void set_firstVisibleCharacterIndex_6(int32_t value)
{
___firstVisibleCharacterIndex_6 = value;
}
inline static int32_t get_offset_of_lastCharacterIndex_7() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lastCharacterIndex_7)); }
inline int32_t get_lastCharacterIndex_7() const { return ___lastCharacterIndex_7; }
inline int32_t* get_address_of_lastCharacterIndex_7() { return &___lastCharacterIndex_7; }
inline void set_lastCharacterIndex_7(int32_t value)
{
___lastCharacterIndex_7 = value;
}
inline static int32_t get_offset_of_lastVisibleCharacterIndex_8() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lastVisibleCharacterIndex_8)); }
inline int32_t get_lastVisibleCharacterIndex_8() const { return ___lastVisibleCharacterIndex_8; }
inline int32_t* get_address_of_lastVisibleCharacterIndex_8() { return &___lastVisibleCharacterIndex_8; }
inline void set_lastVisibleCharacterIndex_8(int32_t value)
{
___lastVisibleCharacterIndex_8 = value;
}
inline static int32_t get_offset_of_length_9() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___length_9)); }
inline float get_length_9() const { return ___length_9; }
inline float* get_address_of_length_9() { return &___length_9; }
inline void set_length_9(float value)
{
___length_9 = value;
}
inline static int32_t get_offset_of_lineHeight_10() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lineHeight_10)); }
inline float get_lineHeight_10() const { return ___lineHeight_10; }
inline float* get_address_of_lineHeight_10() { return &___lineHeight_10; }
inline void set_lineHeight_10(float value)
{
___lineHeight_10 = value;
}
inline static int32_t get_offset_of_ascender_11() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___ascender_11)); }
inline float get_ascender_11() const { return ___ascender_11; }
inline float* get_address_of_ascender_11() { return &___ascender_11; }
inline void set_ascender_11(float value)
{
___ascender_11 = value;
}
inline static int32_t get_offset_of_baseline_12() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___baseline_12)); }
inline float get_baseline_12() const { return ___baseline_12; }
inline float* get_address_of_baseline_12() { return &___baseline_12; }
inline void set_baseline_12(float value)
{
___baseline_12 = value;
}
inline static int32_t get_offset_of_descender_13() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___descender_13)); }
inline float get_descender_13() const { return ___descender_13; }
inline float* get_address_of_descender_13() { return &___descender_13; }
inline void set_descender_13(float value)
{
___descender_13 = value;
}
inline static int32_t get_offset_of_maxAdvance_14() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___maxAdvance_14)); }
inline float get_maxAdvance_14() const { return ___maxAdvance_14; }
inline float* get_address_of_maxAdvance_14() { return &___maxAdvance_14; }
inline void set_maxAdvance_14(float value)
{
___maxAdvance_14 = value;
}
inline static int32_t get_offset_of_width_15() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___width_15)); }
inline float get_width_15() const { return ___width_15; }
inline float* get_address_of_width_15() { return &___width_15; }
inline void set_width_15(float value)
{
___width_15 = value;
}
inline static int32_t get_offset_of_marginLeft_16() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___marginLeft_16)); }
inline float get_marginLeft_16() const { return ___marginLeft_16; }
inline float* get_address_of_marginLeft_16() { return &___marginLeft_16; }
inline void set_marginLeft_16(float value)
{
___marginLeft_16 = value;
}
inline static int32_t get_offset_of_marginRight_17() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___marginRight_17)); }
inline float get_marginRight_17() const { return ___marginRight_17; }
inline float* get_address_of_marginRight_17() { return &___marginRight_17; }
inline void set_marginRight_17(float value)
{
___marginRight_17 = value;
}
inline static int32_t get_offset_of_alignment_18() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___alignment_18)); }
inline int32_t get_alignment_18() const { return ___alignment_18; }
inline int32_t* get_address_of_alignment_18() { return &___alignment_18; }
inline void set_alignment_18(int32_t value)
{
___alignment_18 = value;
}
inline static int32_t get_offset_of_lineExtents_19() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lineExtents_19)); }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 get_lineExtents_19() const { return ___lineExtents_19; }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 * get_address_of_lineExtents_19() { return &___lineExtents_19; }
inline void set_lineExtents_19(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 value)
{
___lineExtents_19 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.FontWeight>
struct TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
int32_t ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_ItemStack_0)); }
inline FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_DefaultItem_3)); }
inline int32_t get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline int32_t* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(int32_t value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.TextAlignmentOptions>
struct TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
int32_t ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_ItemStack_0)); }
inline TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_DefaultItem_3)); }
inline int32_t get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline int32_t* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(int32_t value)
{
___m_DefaultItem_3 = value;
}
};
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.UI.Navigation
struct Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07
{
public:
// UnityEngine.UI.Navigation_Mode UnityEngine.UI.Navigation::m_Mode
int32_t ___m_Mode_0;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnUp
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnUp_1;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnDown
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnDown_2;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnLeft
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnLeft_3;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnRight
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnRight_4;
public:
inline static int32_t get_offset_of_m_Mode_0() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_Mode_0)); }
inline int32_t get_m_Mode_0() const { return ___m_Mode_0; }
inline int32_t* get_address_of_m_Mode_0() { return &___m_Mode_0; }
inline void set_m_Mode_0(int32_t value)
{
___m_Mode_0 = value;
}
inline static int32_t get_offset_of_m_SelectOnUp_1() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnUp_1)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnUp_1() const { return ___m_SelectOnUp_1; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnUp_1() { return &___m_SelectOnUp_1; }
inline void set_m_SelectOnUp_1(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnUp_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnUp_1), (void*)value);
}
inline static int32_t get_offset_of_m_SelectOnDown_2() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnDown_2)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnDown_2() const { return ___m_SelectOnDown_2; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnDown_2() { return &___m_SelectOnDown_2; }
inline void set_m_SelectOnDown_2(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnDown_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnDown_2), (void*)value);
}
inline static int32_t get_offset_of_m_SelectOnLeft_3() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnLeft_3)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnLeft_3() const { return ___m_SelectOnLeft_3; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnLeft_3() { return &___m_SelectOnLeft_3; }
inline void set_m_SelectOnLeft_3(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnLeft_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnLeft_3), (void*)value);
}
inline static int32_t get_offset_of_m_SelectOnRight_4() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnRight_4)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnRight_4() const { return ___m_SelectOnRight_4; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnRight_4() { return &___m_SelectOnRight_4; }
inline void set_m_SelectOnRight_4(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnRight_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnRight_4), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.UI.Navigation
struct Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07_marshaled_pinvoke
{
int32_t ___m_Mode_0;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnUp_1;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnDown_2;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnLeft_3;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnRight_4;
};
// Native definition for COM marshalling of UnityEngine.UI.Navigation
struct Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07_marshaled_com
{
int32_t ___m_Mode_0;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnUp_1;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnDown_2;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnLeft_3;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnRight_4;
};
// System.Func`2<PlayerController,System.Boolean>
struct Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A : public MulticastDelegate_t
{
public:
public:
};
// TMPro.WordWrapState
struct WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557
{
public:
// System.Int32 TMPro.WordWrapState::previous_WordBreak
int32_t ___previous_WordBreak_0;
// System.Int32 TMPro.WordWrapState::total_CharacterCount
int32_t ___total_CharacterCount_1;
// System.Int32 TMPro.WordWrapState::visible_CharacterCount
int32_t ___visible_CharacterCount_2;
// System.Int32 TMPro.WordWrapState::visible_SpriteCount
int32_t ___visible_SpriteCount_3;
// System.Int32 TMPro.WordWrapState::visible_LinkCount
int32_t ___visible_LinkCount_4;
// System.Int32 TMPro.WordWrapState::firstCharacterIndex
int32_t ___firstCharacterIndex_5;
// System.Int32 TMPro.WordWrapState::firstVisibleCharacterIndex
int32_t ___firstVisibleCharacterIndex_6;
// System.Int32 TMPro.WordWrapState::lastCharacterIndex
int32_t ___lastCharacterIndex_7;
// System.Int32 TMPro.WordWrapState::lastVisibleCharIndex
int32_t ___lastVisibleCharIndex_8;
// System.Int32 TMPro.WordWrapState::lineNumber
int32_t ___lineNumber_9;
// System.Single TMPro.WordWrapState::maxCapHeight
float ___maxCapHeight_10;
// System.Single TMPro.WordWrapState::maxAscender
float ___maxAscender_11;
// System.Single TMPro.WordWrapState::maxDescender
float ___maxDescender_12;
// System.Single TMPro.WordWrapState::maxLineAscender
float ___maxLineAscender_13;
// System.Single TMPro.WordWrapState::maxLineDescender
float ___maxLineDescender_14;
// System.Single TMPro.WordWrapState::previousLineAscender
float ___previousLineAscender_15;
// System.Single TMPro.WordWrapState::xAdvance
float ___xAdvance_16;
// System.Single TMPro.WordWrapState::preferredWidth
float ___preferredWidth_17;
// System.Single TMPro.WordWrapState::preferredHeight
float ___preferredHeight_18;
// System.Single TMPro.WordWrapState::previousLineScale
float ___previousLineScale_19;
// System.Int32 TMPro.WordWrapState::wordCount
int32_t ___wordCount_20;
// TMPro.FontStyles TMPro.WordWrapState::fontStyle
int32_t ___fontStyle_21;
// System.Single TMPro.WordWrapState::fontScale
float ___fontScale_22;
// System.Single TMPro.WordWrapState::fontScaleMultiplier
float ___fontScaleMultiplier_23;
// System.Single TMPro.WordWrapState::currentFontSize
float ___currentFontSize_24;
// System.Single TMPro.WordWrapState::baselineOffset
float ___baselineOffset_25;
// System.Single TMPro.WordWrapState::lineOffset
float ___lineOffset_26;
// TMPro.TMP_TextInfo TMPro.WordWrapState::textInfo
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___textInfo_27;
// TMPro.TMP_LineInfo TMPro.WordWrapState::lineInfo
TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 ___lineInfo_28;
// UnityEngine.Color32 TMPro.WordWrapState::vertexColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___vertexColor_29;
// UnityEngine.Color32 TMPro.WordWrapState::underlineColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___underlineColor_30;
// UnityEngine.Color32 TMPro.WordWrapState::strikethroughColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___strikethroughColor_31;
// UnityEngine.Color32 TMPro.WordWrapState::highlightColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___highlightColor_32;
// TMPro.TMP_FontStyleStack TMPro.WordWrapState::basicStyleStack
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___basicStyleStack_33;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::colorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___colorStack_34;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::underlineColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___underlineColorStack_35;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::strikethroughColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___strikethroughColorStack_36;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::highlightColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___highlightColorStack_37;
// TMPro.TMP_RichTextTagStack`1<TMPro.TMP_ColorGradient> TMPro.WordWrapState::colorGradientStack
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___colorGradientStack_38;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.WordWrapState::sizeStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___sizeStack_39;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.WordWrapState::indentStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___indentStack_40;
// TMPro.TMP_RichTextTagStack`1<TMPro.FontWeight> TMPro.WordWrapState::fontWeightStack
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___fontWeightStack_41;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.WordWrapState::styleStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___styleStack_42;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.WordWrapState::baselineStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___baselineStack_43;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.WordWrapState::actionStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___actionStack_44;
// TMPro.TMP_RichTextTagStack`1<TMPro.MaterialReference> TMPro.WordWrapState::materialReferenceStack
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___materialReferenceStack_45;
// TMPro.TMP_RichTextTagStack`1<TMPro.TextAlignmentOptions> TMPro.WordWrapState::lineJustificationStack
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___lineJustificationStack_46;
// System.Int32 TMPro.WordWrapState::spriteAnimationID
int32_t ___spriteAnimationID_47;
// TMPro.TMP_FontAsset TMPro.WordWrapState::currentFontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___currentFontAsset_48;
// TMPro.TMP_SpriteAsset TMPro.WordWrapState::currentSpriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___currentSpriteAsset_49;
// UnityEngine.Material TMPro.WordWrapState::currentMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___currentMaterial_50;
// System.Int32 TMPro.WordWrapState::currentMaterialIndex
int32_t ___currentMaterialIndex_51;
// TMPro.Extents TMPro.WordWrapState::meshExtents
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___meshExtents_52;
// System.Boolean TMPro.WordWrapState::tagNoParsing
bool ___tagNoParsing_53;
// System.Boolean TMPro.WordWrapState::isNonBreakingSpace
bool ___isNonBreakingSpace_54;
public:
inline static int32_t get_offset_of_previous_WordBreak_0() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___previous_WordBreak_0)); }
inline int32_t get_previous_WordBreak_0() const { return ___previous_WordBreak_0; }
inline int32_t* get_address_of_previous_WordBreak_0() { return &___previous_WordBreak_0; }
inline void set_previous_WordBreak_0(int32_t value)
{
___previous_WordBreak_0 = value;
}
inline static int32_t get_offset_of_total_CharacterCount_1() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___total_CharacterCount_1)); }
inline int32_t get_total_CharacterCount_1() const { return ___total_CharacterCount_1; }
inline int32_t* get_address_of_total_CharacterCount_1() { return &___total_CharacterCount_1; }
inline void set_total_CharacterCount_1(int32_t value)
{
___total_CharacterCount_1 = value;
}
inline static int32_t get_offset_of_visible_CharacterCount_2() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___visible_CharacterCount_2)); }
inline int32_t get_visible_CharacterCount_2() const { return ___visible_CharacterCount_2; }
inline int32_t* get_address_of_visible_CharacterCount_2() { return &___visible_CharacterCount_2; }
inline void set_visible_CharacterCount_2(int32_t value)
{
___visible_CharacterCount_2 = value;
}
inline static int32_t get_offset_of_visible_SpriteCount_3() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___visible_SpriteCount_3)); }
inline int32_t get_visible_SpriteCount_3() const { return ___visible_SpriteCount_3; }
inline int32_t* get_address_of_visible_SpriteCount_3() { return &___visible_SpriteCount_3; }
inline void set_visible_SpriteCount_3(int32_t value)
{
___visible_SpriteCount_3 = value;
}
inline static int32_t get_offset_of_visible_LinkCount_4() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___visible_LinkCount_4)); }
inline int32_t get_visible_LinkCount_4() const { return ___visible_LinkCount_4; }
inline int32_t* get_address_of_visible_LinkCount_4() { return &___visible_LinkCount_4; }
inline void set_visible_LinkCount_4(int32_t value)
{
___visible_LinkCount_4 = value;
}
inline static int32_t get_offset_of_firstCharacterIndex_5() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___firstCharacterIndex_5)); }
inline int32_t get_firstCharacterIndex_5() const { return ___firstCharacterIndex_5; }
inline int32_t* get_address_of_firstCharacterIndex_5() { return &___firstCharacterIndex_5; }
inline void set_firstCharacterIndex_5(int32_t value)
{
___firstCharacterIndex_5 = value;
}
inline static int32_t get_offset_of_firstVisibleCharacterIndex_6() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___firstVisibleCharacterIndex_6)); }
inline int32_t get_firstVisibleCharacterIndex_6() const { return ___firstVisibleCharacterIndex_6; }
inline int32_t* get_address_of_firstVisibleCharacterIndex_6() { return &___firstVisibleCharacterIndex_6; }
inline void set_firstVisibleCharacterIndex_6(int32_t value)
{
___firstVisibleCharacterIndex_6 = value;
}
inline static int32_t get_offset_of_lastCharacterIndex_7() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lastCharacterIndex_7)); }
inline int32_t get_lastCharacterIndex_7() const { return ___lastCharacterIndex_7; }
inline int32_t* get_address_of_lastCharacterIndex_7() { return &___lastCharacterIndex_7; }
inline void set_lastCharacterIndex_7(int32_t value)
{
___lastCharacterIndex_7 = value;
}
inline static int32_t get_offset_of_lastVisibleCharIndex_8() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lastVisibleCharIndex_8)); }
inline int32_t get_lastVisibleCharIndex_8() const { return ___lastVisibleCharIndex_8; }
inline int32_t* get_address_of_lastVisibleCharIndex_8() { return &___lastVisibleCharIndex_8; }
inline void set_lastVisibleCharIndex_8(int32_t value)
{
___lastVisibleCharIndex_8 = value;
}
inline static int32_t get_offset_of_lineNumber_9() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineNumber_9)); }
inline int32_t get_lineNumber_9() const { return ___lineNumber_9; }
inline int32_t* get_address_of_lineNumber_9() { return &___lineNumber_9; }
inline void set_lineNumber_9(int32_t value)
{
___lineNumber_9 = value;
}
inline static int32_t get_offset_of_maxCapHeight_10() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxCapHeight_10)); }
inline float get_maxCapHeight_10() const { return ___maxCapHeight_10; }
inline float* get_address_of_maxCapHeight_10() { return &___maxCapHeight_10; }
inline void set_maxCapHeight_10(float value)
{
___maxCapHeight_10 = value;
}
inline static int32_t get_offset_of_maxAscender_11() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxAscender_11)); }
inline float get_maxAscender_11() const { return ___maxAscender_11; }
inline float* get_address_of_maxAscender_11() { return &___maxAscender_11; }
inline void set_maxAscender_11(float value)
{
___maxAscender_11 = value;
}
inline static int32_t get_offset_of_maxDescender_12() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxDescender_12)); }
inline float get_maxDescender_12() const { return ___maxDescender_12; }
inline float* get_address_of_maxDescender_12() { return &___maxDescender_12; }
inline void set_maxDescender_12(float value)
{
___maxDescender_12 = value;
}
inline static int32_t get_offset_of_maxLineAscender_13() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxLineAscender_13)); }
inline float get_maxLineAscender_13() const { return ___maxLineAscender_13; }
inline float* get_address_of_maxLineAscender_13() { return &___maxLineAscender_13; }
inline void set_maxLineAscender_13(float value)
{
___maxLineAscender_13 = value;
}
inline static int32_t get_offset_of_maxLineDescender_14() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxLineDescender_14)); }
inline float get_maxLineDescender_14() const { return ___maxLineDescender_14; }
inline float* get_address_of_maxLineDescender_14() { return &___maxLineDescender_14; }
inline void set_maxLineDescender_14(float value)
{
___maxLineDescender_14 = value;
}
inline static int32_t get_offset_of_previousLineAscender_15() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___previousLineAscender_15)); }
inline float get_previousLineAscender_15() const { return ___previousLineAscender_15; }
inline float* get_address_of_previousLineAscender_15() { return &___previousLineAscender_15; }
inline void set_previousLineAscender_15(float value)
{
___previousLineAscender_15 = value;
}
inline static int32_t get_offset_of_xAdvance_16() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___xAdvance_16)); }
inline float get_xAdvance_16() const { return ___xAdvance_16; }
inline float* get_address_of_xAdvance_16() { return &___xAdvance_16; }
inline void set_xAdvance_16(float value)
{
___xAdvance_16 = value;
}
inline static int32_t get_offset_of_preferredWidth_17() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___preferredWidth_17)); }
inline float get_preferredWidth_17() const { return ___preferredWidth_17; }
inline float* get_address_of_preferredWidth_17() { return &___preferredWidth_17; }
inline void set_preferredWidth_17(float value)
{
___preferredWidth_17 = value;
}
inline static int32_t get_offset_of_preferredHeight_18() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___preferredHeight_18)); }
inline float get_preferredHeight_18() const { return ___preferredHeight_18; }
inline float* get_address_of_preferredHeight_18() { return &___preferredHeight_18; }
inline void set_preferredHeight_18(float value)
{
___preferredHeight_18 = value;
}
inline static int32_t get_offset_of_previousLineScale_19() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___previousLineScale_19)); }
inline float get_previousLineScale_19() const { return ___previousLineScale_19; }
inline float* get_address_of_previousLineScale_19() { return &___previousLineScale_19; }
inline void set_previousLineScale_19(float value)
{
___previousLineScale_19 = value;
}
inline static int32_t get_offset_of_wordCount_20() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___wordCount_20)); }
inline int32_t get_wordCount_20() const { return ___wordCount_20; }
inline int32_t* get_address_of_wordCount_20() { return &___wordCount_20; }
inline void set_wordCount_20(int32_t value)
{
___wordCount_20 = value;
}
inline static int32_t get_offset_of_fontStyle_21() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontStyle_21)); }
inline int32_t get_fontStyle_21() const { return ___fontStyle_21; }
inline int32_t* get_address_of_fontStyle_21() { return &___fontStyle_21; }
inline void set_fontStyle_21(int32_t value)
{
___fontStyle_21 = value;
}
inline static int32_t get_offset_of_fontScale_22() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontScale_22)); }
inline float get_fontScale_22() const { return ___fontScale_22; }
inline float* get_address_of_fontScale_22() { return &___fontScale_22; }
inline void set_fontScale_22(float value)
{
___fontScale_22 = value;
}
inline static int32_t get_offset_of_fontScaleMultiplier_23() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontScaleMultiplier_23)); }
inline float get_fontScaleMultiplier_23() const { return ___fontScaleMultiplier_23; }
inline float* get_address_of_fontScaleMultiplier_23() { return &___fontScaleMultiplier_23; }
inline void set_fontScaleMultiplier_23(float value)
{
___fontScaleMultiplier_23 = value;
}
inline static int32_t get_offset_of_currentFontSize_24() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentFontSize_24)); }
inline float get_currentFontSize_24() const { return ___currentFontSize_24; }
inline float* get_address_of_currentFontSize_24() { return &___currentFontSize_24; }
inline void set_currentFontSize_24(float value)
{
___currentFontSize_24 = value;
}
inline static int32_t get_offset_of_baselineOffset_25() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___baselineOffset_25)); }
inline float get_baselineOffset_25() const { return ___baselineOffset_25; }
inline float* get_address_of_baselineOffset_25() { return &___baselineOffset_25; }
inline void set_baselineOffset_25(float value)
{
___baselineOffset_25 = value;
}
inline static int32_t get_offset_of_lineOffset_26() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineOffset_26)); }
inline float get_lineOffset_26() const { return ___lineOffset_26; }
inline float* get_address_of_lineOffset_26() { return &___lineOffset_26; }
inline void set_lineOffset_26(float value)
{
___lineOffset_26 = value;
}
inline static int32_t get_offset_of_textInfo_27() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___textInfo_27)); }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * get_textInfo_27() const { return ___textInfo_27; }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 ** get_address_of_textInfo_27() { return &___textInfo_27; }
inline void set_textInfo_27(TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * value)
{
___textInfo_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___textInfo_27), (void*)value);
}
inline static int32_t get_offset_of_lineInfo_28() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineInfo_28)); }
inline TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 get_lineInfo_28() const { return ___lineInfo_28; }
inline TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 * get_address_of_lineInfo_28() { return &___lineInfo_28; }
inline void set_lineInfo_28(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 value)
{
___lineInfo_28 = value;
}
inline static int32_t get_offset_of_vertexColor_29() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___vertexColor_29)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_vertexColor_29() const { return ___vertexColor_29; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_vertexColor_29() { return &___vertexColor_29; }
inline void set_vertexColor_29(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___vertexColor_29 = value;
}
inline static int32_t get_offset_of_underlineColor_30() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___underlineColor_30)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_underlineColor_30() const { return ___underlineColor_30; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_underlineColor_30() { return &___underlineColor_30; }
inline void set_underlineColor_30(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___underlineColor_30 = value;
}
inline static int32_t get_offset_of_strikethroughColor_31() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___strikethroughColor_31)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_strikethroughColor_31() const { return ___strikethroughColor_31; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_strikethroughColor_31() { return &___strikethroughColor_31; }
inline void set_strikethroughColor_31(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___strikethroughColor_31 = value;
}
inline static int32_t get_offset_of_highlightColor_32() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___highlightColor_32)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_highlightColor_32() const { return ___highlightColor_32; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_highlightColor_32() { return &___highlightColor_32; }
inline void set_highlightColor_32(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___highlightColor_32 = value;
}
inline static int32_t get_offset_of_basicStyleStack_33() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___basicStyleStack_33)); }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 get_basicStyleStack_33() const { return ___basicStyleStack_33; }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 * get_address_of_basicStyleStack_33() { return &___basicStyleStack_33; }
inline void set_basicStyleStack_33(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 value)
{
___basicStyleStack_33 = value;
}
inline static int32_t get_offset_of_colorStack_34() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___colorStack_34)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_colorStack_34() const { return ___colorStack_34; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_colorStack_34() { return &___colorStack_34; }
inline void set_colorStack_34(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___colorStack_34 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___colorStack_34))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_underlineColorStack_35() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___underlineColorStack_35)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_underlineColorStack_35() const { return ___underlineColorStack_35; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_underlineColorStack_35() { return &___underlineColorStack_35; }
inline void set_underlineColorStack_35(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___underlineColorStack_35 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___underlineColorStack_35))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_strikethroughColorStack_36() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___strikethroughColorStack_36)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_strikethroughColorStack_36() const { return ___strikethroughColorStack_36; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_strikethroughColorStack_36() { return &___strikethroughColorStack_36; }
inline void set_strikethroughColorStack_36(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___strikethroughColorStack_36 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___strikethroughColorStack_36))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_highlightColorStack_37() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___highlightColorStack_37)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_highlightColorStack_37() const { return ___highlightColorStack_37; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_highlightColorStack_37() { return &___highlightColorStack_37; }
inline void set_highlightColorStack_37(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___highlightColorStack_37 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___highlightColorStack_37))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_colorGradientStack_38() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___colorGradientStack_38)); }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D get_colorGradientStack_38() const { return ___colorGradientStack_38; }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D * get_address_of_colorGradientStack_38() { return &___colorGradientStack_38; }
inline void set_colorGradientStack_38(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D value)
{
___colorGradientStack_38 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___colorGradientStack_38))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___colorGradientStack_38))->___m_DefaultItem_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_sizeStack_39() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___sizeStack_39)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_sizeStack_39() const { return ___sizeStack_39; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_sizeStack_39() { return &___sizeStack_39; }
inline void set_sizeStack_39(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___sizeStack_39 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___sizeStack_39))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_indentStack_40() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___indentStack_40)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_indentStack_40() const { return ___indentStack_40; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_indentStack_40() { return &___indentStack_40; }
inline void set_indentStack_40(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___indentStack_40 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___indentStack_40))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_fontWeightStack_41() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontWeightStack_41)); }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B get_fontWeightStack_41() const { return ___fontWeightStack_41; }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B * get_address_of_fontWeightStack_41() { return &___fontWeightStack_41; }
inline void set_fontWeightStack_41(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B value)
{
___fontWeightStack_41 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___fontWeightStack_41))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_styleStack_42() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___styleStack_42)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_styleStack_42() const { return ___styleStack_42; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_styleStack_42() { return &___styleStack_42; }
inline void set_styleStack_42(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___styleStack_42 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___styleStack_42))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_baselineStack_43() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___baselineStack_43)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_baselineStack_43() const { return ___baselineStack_43; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_baselineStack_43() { return &___baselineStack_43; }
inline void set_baselineStack_43(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___baselineStack_43 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___baselineStack_43))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_actionStack_44() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___actionStack_44)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_actionStack_44() const { return ___actionStack_44; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_actionStack_44() { return &___actionStack_44; }
inline void set_actionStack_44(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___actionStack_44 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___actionStack_44))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_materialReferenceStack_45() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___materialReferenceStack_45)); }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 get_materialReferenceStack_45() const { return ___materialReferenceStack_45; }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 * get_address_of_materialReferenceStack_45() { return &___materialReferenceStack_45; }
inline void set_materialReferenceStack_45(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 value)
{
___materialReferenceStack_45 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___materialReferenceStack_45))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_lineJustificationStack_46() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineJustificationStack_46)); }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 get_lineJustificationStack_46() const { return ___lineJustificationStack_46; }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 * get_address_of_lineJustificationStack_46() { return &___lineJustificationStack_46; }
inline void set_lineJustificationStack_46(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 value)
{
___lineJustificationStack_46 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___lineJustificationStack_46))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_spriteAnimationID_47() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___spriteAnimationID_47)); }
inline int32_t get_spriteAnimationID_47() const { return ___spriteAnimationID_47; }
inline int32_t* get_address_of_spriteAnimationID_47() { return &___spriteAnimationID_47; }
inline void set_spriteAnimationID_47(int32_t value)
{
___spriteAnimationID_47 = value;
}
inline static int32_t get_offset_of_currentFontAsset_48() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentFontAsset_48)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_currentFontAsset_48() const { return ___currentFontAsset_48; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_currentFontAsset_48() { return &___currentFontAsset_48; }
inline void set_currentFontAsset_48(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___currentFontAsset_48 = value;
Il2CppCodeGenWriteBarrier((void**)(&___currentFontAsset_48), (void*)value);
}
inline static int32_t get_offset_of_currentSpriteAsset_49() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentSpriteAsset_49)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_currentSpriteAsset_49() const { return ___currentSpriteAsset_49; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_currentSpriteAsset_49() { return &___currentSpriteAsset_49; }
inline void set_currentSpriteAsset_49(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___currentSpriteAsset_49 = value;
Il2CppCodeGenWriteBarrier((void**)(&___currentSpriteAsset_49), (void*)value);
}
inline static int32_t get_offset_of_currentMaterial_50() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentMaterial_50)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_currentMaterial_50() const { return ___currentMaterial_50; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_currentMaterial_50() { return &___currentMaterial_50; }
inline void set_currentMaterial_50(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___currentMaterial_50 = value;
Il2CppCodeGenWriteBarrier((void**)(&___currentMaterial_50), (void*)value);
}
inline static int32_t get_offset_of_currentMaterialIndex_51() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentMaterialIndex_51)); }
inline int32_t get_currentMaterialIndex_51() const { return ___currentMaterialIndex_51; }
inline int32_t* get_address_of_currentMaterialIndex_51() { return &___currentMaterialIndex_51; }
inline void set_currentMaterialIndex_51(int32_t value)
{
___currentMaterialIndex_51 = value;
}
inline static int32_t get_offset_of_meshExtents_52() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___meshExtents_52)); }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 get_meshExtents_52() const { return ___meshExtents_52; }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 * get_address_of_meshExtents_52() { return &___meshExtents_52; }
inline void set_meshExtents_52(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 value)
{
___meshExtents_52 = value;
}
inline static int32_t get_offset_of_tagNoParsing_53() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___tagNoParsing_53)); }
inline bool get_tagNoParsing_53() const { return ___tagNoParsing_53; }
inline bool* get_address_of_tagNoParsing_53() { return &___tagNoParsing_53; }
inline void set_tagNoParsing_53(bool value)
{
___tagNoParsing_53 = value;
}
inline static int32_t get_offset_of_isNonBreakingSpace_54() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___isNonBreakingSpace_54)); }
inline bool get_isNonBreakingSpace_54() const { return ___isNonBreakingSpace_54; }
inline bool* get_address_of_isNonBreakingSpace_54() { return &___isNonBreakingSpace_54; }
inline void set_isNonBreakingSpace_54(bool value)
{
___isNonBreakingSpace_54 = value;
}
};
// Native definition for P/Invoke marshalling of TMPro.WordWrapState
struct WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557_marshaled_pinvoke
{
int32_t ___previous_WordBreak_0;
int32_t ___total_CharacterCount_1;
int32_t ___visible_CharacterCount_2;
int32_t ___visible_SpriteCount_3;
int32_t ___visible_LinkCount_4;
int32_t ___firstCharacterIndex_5;
int32_t ___firstVisibleCharacterIndex_6;
int32_t ___lastCharacterIndex_7;
int32_t ___lastVisibleCharIndex_8;
int32_t ___lineNumber_9;
float ___maxCapHeight_10;
float ___maxAscender_11;
float ___maxDescender_12;
float ___maxLineAscender_13;
float ___maxLineDescender_14;
float ___previousLineAscender_15;
float ___xAdvance_16;
float ___preferredWidth_17;
float ___preferredHeight_18;
float ___previousLineScale_19;
int32_t ___wordCount_20;
int32_t ___fontStyle_21;
float ___fontScale_22;
float ___fontScaleMultiplier_23;
float ___currentFontSize_24;
float ___baselineOffset_25;
float ___lineOffset_26;
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___textInfo_27;
TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 ___lineInfo_28;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___vertexColor_29;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___underlineColor_30;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___strikethroughColor_31;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___highlightColor_32;
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___basicStyleStack_33;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___colorStack_34;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___underlineColorStack_35;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___strikethroughColorStack_36;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___highlightColorStack_37;
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___colorGradientStack_38;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___sizeStack_39;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___indentStack_40;
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___fontWeightStack_41;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___styleStack_42;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___baselineStack_43;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___actionStack_44;
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___materialReferenceStack_45;
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___lineJustificationStack_46;
int32_t ___spriteAnimationID_47;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___currentFontAsset_48;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___currentSpriteAsset_49;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___currentMaterial_50;
int32_t ___currentMaterialIndex_51;
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___meshExtents_52;
int32_t ___tagNoParsing_53;
int32_t ___isNonBreakingSpace_54;
};
// Native definition for COM marshalling of TMPro.WordWrapState
struct WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557_marshaled_com
{
int32_t ___previous_WordBreak_0;
int32_t ___total_CharacterCount_1;
int32_t ___visible_CharacterCount_2;
int32_t ___visible_SpriteCount_3;
int32_t ___visible_LinkCount_4;
int32_t ___firstCharacterIndex_5;
int32_t ___firstVisibleCharacterIndex_6;
int32_t ___lastCharacterIndex_7;
int32_t ___lastVisibleCharIndex_8;
int32_t ___lineNumber_9;
float ___maxCapHeight_10;
float ___maxAscender_11;
float ___maxDescender_12;
float ___maxLineAscender_13;
float ___maxLineDescender_14;
float ___previousLineAscender_15;
float ___xAdvance_16;
float ___preferredWidth_17;
float ___preferredHeight_18;
float ___previousLineScale_19;
int32_t ___wordCount_20;
int32_t ___fontStyle_21;
float ___fontScale_22;
float ___fontScaleMultiplier_23;
float ___currentFontSize_24;
float ___baselineOffset_25;
float ___lineOffset_26;
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___textInfo_27;
TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 ___lineInfo_28;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___vertexColor_29;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___underlineColor_30;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___strikethroughColor_31;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___highlightColor_32;
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___basicStyleStack_33;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___colorStack_34;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___underlineColorStack_35;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___strikethroughColorStack_36;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___highlightColorStack_37;
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___colorGradientStack_38;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___sizeStack_39;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___indentStack_40;
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___fontWeightStack_41;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___styleStack_42;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___baselineStack_43;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___actionStack_44;
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___materialReferenceStack_45;
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___lineJustificationStack_46;
int32_t ___spriteAnimationID_47;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___currentFontAsset_48;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___currentSpriteAsset_49;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___currentMaterial_50;
int32_t ___currentMaterialIndex_51;
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___meshExtents_52;
int32_t ___tagNoParsing_53;
int32_t ___isNonBreakingSpace_54;
};
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Rigidbody
struct Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// GameUI
struct GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// PlayerUIContainer[] GameUI::playerContainers
PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* ___playerContainers_4;
// TMPro.TextMeshProUGUI GameUI::winText
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___winText_5;
public:
inline static int32_t get_offset_of_playerContainers_4() { return static_cast<int32_t>(offsetof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0, ___playerContainers_4)); }
inline PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* get_playerContainers_4() const { return ___playerContainers_4; }
inline PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83** get_address_of_playerContainers_4() { return &___playerContainers_4; }
inline void set_playerContainers_4(PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* value)
{
___playerContainers_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerContainers_4), (void*)value);
}
inline static int32_t get_offset_of_winText_5() { return static_cast<int32_t>(offsetof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0, ___winText_5)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_winText_5() const { return ___winText_5; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_winText_5() { return &___winText_5; }
inline void set_winText_5(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___winText_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___winText_5), (void*)value);
}
};
struct GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields
{
public:
// GameUI GameUI::instance
GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * ___instance_6;
public:
inline static int32_t get_offset_of_instance_6() { return static_cast<int32_t>(offsetof(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields, ___instance_6)); }
inline GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * get_instance_6() const { return ___instance_6; }
inline GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 ** get_address_of_instance_6() { return &___instance_6; }
inline void set_instance_6(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * value)
{
___instance_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instance_6), (void*)value);
}
};
// Photon.Pun.MonoBehaviourPun
struct MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// Photon.Pun.PhotonView Photon.Pun.MonoBehaviourPun::pvCache
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * ___pvCache_4;
public:
inline static int32_t get_offset_of_pvCache_4() { return static_cast<int32_t>(offsetof(MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A, ___pvCache_4)); }
inline PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * get_pvCache_4() const { return ___pvCache_4; }
inline PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B ** get_address_of_pvCache_4() { return &___pvCache_4; }
inline void set_pvCache_4(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * value)
{
___pvCache_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___pvCache_4), (void*)value);
}
};
// Photon.Pun.PhotonView
struct PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// System.Int32 Photon.Pun.PhotonView::ownerActorNr
int32_t ___ownerActorNr_4;
// System.Byte Photon.Pun.PhotonView::Group
uint8_t ___Group_5;
// System.Boolean Photon.Pun.PhotonView::mixedModeIsReliable
bool ___mixedModeIsReliable_6;
// System.Int32 Photon.Pun.PhotonView::prefixField
int32_t ___prefixField_7;
// Photon.Pun.PhotonView_ObservableSearch Photon.Pun.PhotonView::observableSearch
int32_t ___observableSearch_8;
// System.Object[] Photon.Pun.PhotonView::instantiationDataField
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___instantiationDataField_9;
// System.Collections.Generic.List`1<System.Object> Photon.Pun.PhotonView::lastOnSerializeDataSent
List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * ___lastOnSerializeDataSent_10;
// System.Collections.Generic.List`1<System.Object> Photon.Pun.PhotonView::syncValues
List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * ___syncValues_11;
// System.Object[] Photon.Pun.PhotonView::lastOnSerializeDataReceived
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___lastOnSerializeDataReceived_12;
// Photon.Pun.ViewSynchronization Photon.Pun.PhotonView::Synchronization
int32_t ___Synchronization_13;
// Photon.Pun.OwnershipOption Photon.Pun.PhotonView::OwnershipTransfer
int32_t ___OwnershipTransfer_14;
// System.Collections.Generic.List`1<UnityEngine.Component> Photon.Pun.PhotonView::ObservedComponents
List_1_tAAE8BF32F260E5939A1EAF05F4C38C7841B64300 * ___ObservedComponents_15;
// System.Collections.Generic.Queue`1<Photon.Pun.PhotonView_CallbackQueueItem> Photon.Pun.PhotonView::CallbackChangeQueue
Queue_1_tD3157DC8F1F707ABF509E79D913ED932AC2A554C * ___CallbackChangeQueue_16;
// System.Collections.Generic.List`1<Photon.Pun.IOnPhotonViewPreNetDestroy> Photon.Pun.PhotonView::OnPreNetDestroyCallbacks
List_1_tC545D36521EA90C9FFE32387CD37154B2A2CB829 * ___OnPreNetDestroyCallbacks_17;
// System.Collections.Generic.List`1<Photon.Pun.IOnPhotonViewControllerChange> Photon.Pun.PhotonView::OnControllerChangeCallbacks
List_1_tDC45962FBB81102D096ABE6131BE4919BBD7CD06 * ___OnControllerChangeCallbacks_18;
// System.Int32 Photon.Pun.PhotonView::viewIdField
int32_t ___viewIdField_19;
// System.Int32 Photon.Pun.PhotonView::InstantiationId
int32_t ___InstantiationId_20;
// Photon.Realtime.Player Photon.Pun.PhotonView::owner
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___owner_21;
// Photon.Realtime.Player Photon.Pun.PhotonView::controller
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___controller_22;
// System.Int32 Photon.Pun.PhotonView::controllerActorNr
int32_t ___controllerActorNr_23;
// Photon.Pun.PhotonView_OwnershipCacheState Photon.Pun.PhotonView::ownershipCacheIsValid
int32_t ___ownershipCacheIsValid_24;
// System.Boolean Photon.Pun.PhotonView::amController
bool ___amController_25;
// System.Boolean Photon.Pun.PhotonView::didAwake
bool ___didAwake_26;
// System.Boolean Photon.Pun.PhotonView::isRuntimeInstantiated
bool ___isRuntimeInstantiated_27;
// System.Boolean Photon.Pun.PhotonView::removedFromLocalViewList
bool ___removedFromLocalViewList_28;
// UnityEngine.MonoBehaviour[] Photon.Pun.PhotonView::RpcMonoBehaviours
MonoBehaviourU5BU5D_tEC81C7491112CB97F70976A67ABB8C33168F5F0A* ___RpcMonoBehaviours_29;
public:
inline static int32_t get_offset_of_ownerActorNr_4() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___ownerActorNr_4)); }
inline int32_t get_ownerActorNr_4() const { return ___ownerActorNr_4; }
inline int32_t* get_address_of_ownerActorNr_4() { return &___ownerActorNr_4; }
inline void set_ownerActorNr_4(int32_t value)
{
___ownerActorNr_4 = value;
}
inline static int32_t get_offset_of_Group_5() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___Group_5)); }
inline uint8_t get_Group_5() const { return ___Group_5; }
inline uint8_t* get_address_of_Group_5() { return &___Group_5; }
inline void set_Group_5(uint8_t value)
{
___Group_5 = value;
}
inline static int32_t get_offset_of_mixedModeIsReliable_6() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___mixedModeIsReliable_6)); }
inline bool get_mixedModeIsReliable_6() const { return ___mixedModeIsReliable_6; }
inline bool* get_address_of_mixedModeIsReliable_6() { return &___mixedModeIsReliable_6; }
inline void set_mixedModeIsReliable_6(bool value)
{
___mixedModeIsReliable_6 = value;
}
inline static int32_t get_offset_of_prefixField_7() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___prefixField_7)); }
inline int32_t get_prefixField_7() const { return ___prefixField_7; }
inline int32_t* get_address_of_prefixField_7() { return &___prefixField_7; }
inline void set_prefixField_7(int32_t value)
{
___prefixField_7 = value;
}
inline static int32_t get_offset_of_observableSearch_8() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___observableSearch_8)); }
inline int32_t get_observableSearch_8() const { return ___observableSearch_8; }
inline int32_t* get_address_of_observableSearch_8() { return &___observableSearch_8; }
inline void set_observableSearch_8(int32_t value)
{
___observableSearch_8 = value;
}
inline static int32_t get_offset_of_instantiationDataField_9() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___instantiationDataField_9)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_instantiationDataField_9() const { return ___instantiationDataField_9; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_instantiationDataField_9() { return &___instantiationDataField_9; }
inline void set_instantiationDataField_9(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
___instantiationDataField_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instantiationDataField_9), (void*)value);
}
inline static int32_t get_offset_of_lastOnSerializeDataSent_10() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___lastOnSerializeDataSent_10)); }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * get_lastOnSerializeDataSent_10() const { return ___lastOnSerializeDataSent_10; }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D ** get_address_of_lastOnSerializeDataSent_10() { return &___lastOnSerializeDataSent_10; }
inline void set_lastOnSerializeDataSent_10(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * value)
{
___lastOnSerializeDataSent_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___lastOnSerializeDataSent_10), (void*)value);
}
inline static int32_t get_offset_of_syncValues_11() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___syncValues_11)); }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * get_syncValues_11() const { return ___syncValues_11; }
inline List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D ** get_address_of_syncValues_11() { return &___syncValues_11; }
inline void set_syncValues_11(List_1_t05CC3C859AB5E6024394EF9A42E3E696628CA02D * value)
{
___syncValues_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___syncValues_11), (void*)value);
}
inline static int32_t get_offset_of_lastOnSerializeDataReceived_12() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___lastOnSerializeDataReceived_12)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_lastOnSerializeDataReceived_12() const { return ___lastOnSerializeDataReceived_12; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_lastOnSerializeDataReceived_12() { return &___lastOnSerializeDataReceived_12; }
inline void set_lastOnSerializeDataReceived_12(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
___lastOnSerializeDataReceived_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___lastOnSerializeDataReceived_12), (void*)value);
}
inline static int32_t get_offset_of_Synchronization_13() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___Synchronization_13)); }
inline int32_t get_Synchronization_13() const { return ___Synchronization_13; }
inline int32_t* get_address_of_Synchronization_13() { return &___Synchronization_13; }
inline void set_Synchronization_13(int32_t value)
{
___Synchronization_13 = value;
}
inline static int32_t get_offset_of_OwnershipTransfer_14() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___OwnershipTransfer_14)); }
inline int32_t get_OwnershipTransfer_14() const { return ___OwnershipTransfer_14; }
inline int32_t* get_address_of_OwnershipTransfer_14() { return &___OwnershipTransfer_14; }
inline void set_OwnershipTransfer_14(int32_t value)
{
___OwnershipTransfer_14 = value;
}
inline static int32_t get_offset_of_ObservedComponents_15() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___ObservedComponents_15)); }
inline List_1_tAAE8BF32F260E5939A1EAF05F4C38C7841B64300 * get_ObservedComponents_15() const { return ___ObservedComponents_15; }
inline List_1_tAAE8BF32F260E5939A1EAF05F4C38C7841B64300 ** get_address_of_ObservedComponents_15() { return &___ObservedComponents_15; }
inline void set_ObservedComponents_15(List_1_tAAE8BF32F260E5939A1EAF05F4C38C7841B64300 * value)
{
___ObservedComponents_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ObservedComponents_15), (void*)value);
}
inline static int32_t get_offset_of_CallbackChangeQueue_16() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___CallbackChangeQueue_16)); }
inline Queue_1_tD3157DC8F1F707ABF509E79D913ED932AC2A554C * get_CallbackChangeQueue_16() const { return ___CallbackChangeQueue_16; }
inline Queue_1_tD3157DC8F1F707ABF509E79D913ED932AC2A554C ** get_address_of_CallbackChangeQueue_16() { return &___CallbackChangeQueue_16; }
inline void set_CallbackChangeQueue_16(Queue_1_tD3157DC8F1F707ABF509E79D913ED932AC2A554C * value)
{
___CallbackChangeQueue_16 = value;
Il2CppCodeGenWriteBarrier((void**)(&___CallbackChangeQueue_16), (void*)value);
}
inline static int32_t get_offset_of_OnPreNetDestroyCallbacks_17() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___OnPreNetDestroyCallbacks_17)); }
inline List_1_tC545D36521EA90C9FFE32387CD37154B2A2CB829 * get_OnPreNetDestroyCallbacks_17() const { return ___OnPreNetDestroyCallbacks_17; }
inline List_1_tC545D36521EA90C9FFE32387CD37154B2A2CB829 ** get_address_of_OnPreNetDestroyCallbacks_17() { return &___OnPreNetDestroyCallbacks_17; }
inline void set_OnPreNetDestroyCallbacks_17(List_1_tC545D36521EA90C9FFE32387CD37154B2A2CB829 * value)
{
___OnPreNetDestroyCallbacks_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___OnPreNetDestroyCallbacks_17), (void*)value);
}
inline static int32_t get_offset_of_OnControllerChangeCallbacks_18() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___OnControllerChangeCallbacks_18)); }
inline List_1_tDC45962FBB81102D096ABE6131BE4919BBD7CD06 * get_OnControllerChangeCallbacks_18() const { return ___OnControllerChangeCallbacks_18; }
inline List_1_tDC45962FBB81102D096ABE6131BE4919BBD7CD06 ** get_address_of_OnControllerChangeCallbacks_18() { return &___OnControllerChangeCallbacks_18; }
inline void set_OnControllerChangeCallbacks_18(List_1_tDC45962FBB81102D096ABE6131BE4919BBD7CD06 * value)
{
___OnControllerChangeCallbacks_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___OnControllerChangeCallbacks_18), (void*)value);
}
inline static int32_t get_offset_of_viewIdField_19() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___viewIdField_19)); }
inline int32_t get_viewIdField_19() const { return ___viewIdField_19; }
inline int32_t* get_address_of_viewIdField_19() { return &___viewIdField_19; }
inline void set_viewIdField_19(int32_t value)
{
___viewIdField_19 = value;
}
inline static int32_t get_offset_of_InstantiationId_20() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___InstantiationId_20)); }
inline int32_t get_InstantiationId_20() const { return ___InstantiationId_20; }
inline int32_t* get_address_of_InstantiationId_20() { return &___InstantiationId_20; }
inline void set_InstantiationId_20(int32_t value)
{
___InstantiationId_20 = value;
}
inline static int32_t get_offset_of_owner_21() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___owner_21)); }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * get_owner_21() const { return ___owner_21; }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** get_address_of_owner_21() { return &___owner_21; }
inline void set_owner_21(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
___owner_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___owner_21), (void*)value);
}
inline static int32_t get_offset_of_controller_22() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___controller_22)); }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * get_controller_22() const { return ___controller_22; }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** get_address_of_controller_22() { return &___controller_22; }
inline void set_controller_22(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
___controller_22 = value;
Il2CppCodeGenWriteBarrier((void**)(&___controller_22), (void*)value);
}
inline static int32_t get_offset_of_controllerActorNr_23() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___controllerActorNr_23)); }
inline int32_t get_controllerActorNr_23() const { return ___controllerActorNr_23; }
inline int32_t* get_address_of_controllerActorNr_23() { return &___controllerActorNr_23; }
inline void set_controllerActorNr_23(int32_t value)
{
___controllerActorNr_23 = value;
}
inline static int32_t get_offset_of_ownershipCacheIsValid_24() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___ownershipCacheIsValid_24)); }
inline int32_t get_ownershipCacheIsValid_24() const { return ___ownershipCacheIsValid_24; }
inline int32_t* get_address_of_ownershipCacheIsValid_24() { return &___ownershipCacheIsValid_24; }
inline void set_ownershipCacheIsValid_24(int32_t value)
{
___ownershipCacheIsValid_24 = value;
}
inline static int32_t get_offset_of_amController_25() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___amController_25)); }
inline bool get_amController_25() const { return ___amController_25; }
inline bool* get_address_of_amController_25() { return &___amController_25; }
inline void set_amController_25(bool value)
{
___amController_25 = value;
}
inline static int32_t get_offset_of_didAwake_26() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___didAwake_26)); }
inline bool get_didAwake_26() const { return ___didAwake_26; }
inline bool* get_address_of_didAwake_26() { return &___didAwake_26; }
inline void set_didAwake_26(bool value)
{
___didAwake_26 = value;
}
inline static int32_t get_offset_of_isRuntimeInstantiated_27() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___isRuntimeInstantiated_27)); }
inline bool get_isRuntimeInstantiated_27() const { return ___isRuntimeInstantiated_27; }
inline bool* get_address_of_isRuntimeInstantiated_27() { return &___isRuntimeInstantiated_27; }
inline void set_isRuntimeInstantiated_27(bool value)
{
___isRuntimeInstantiated_27 = value;
}
inline static int32_t get_offset_of_removedFromLocalViewList_28() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___removedFromLocalViewList_28)); }
inline bool get_removedFromLocalViewList_28() const { return ___removedFromLocalViewList_28; }
inline bool* get_address_of_removedFromLocalViewList_28() { return &___removedFromLocalViewList_28; }
inline void set_removedFromLocalViewList_28(bool value)
{
___removedFromLocalViewList_28 = value;
}
inline static int32_t get_offset_of_RpcMonoBehaviours_29() { return static_cast<int32_t>(offsetof(PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B, ___RpcMonoBehaviours_29)); }
inline MonoBehaviourU5BU5D_tEC81C7491112CB97F70976A67ABB8C33168F5F0A* get_RpcMonoBehaviours_29() const { return ___RpcMonoBehaviours_29; }
inline MonoBehaviourU5BU5D_tEC81C7491112CB97F70976A67ABB8C33168F5F0A** get_address_of_RpcMonoBehaviours_29() { return &___RpcMonoBehaviours_29; }
inline void set_RpcMonoBehaviours_29(MonoBehaviourU5BU5D_tEC81C7491112CB97F70976A67ABB8C33168F5F0A* value)
{
___RpcMonoBehaviours_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RpcMonoBehaviours_29), (void*)value);
}
};
// UnityEngine.EventSystems.UIBehaviour
struct UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
public:
};
// Photon.Pun.MonoBehaviourPunCallbacks
struct MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D : public MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A
{
public:
public:
};
// UnityEngine.UI.Graphic
struct Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
// UnityEngine.Material UnityEngine.UI.Graphic::m_Material
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_Material_6;
// UnityEngine.Color UnityEngine.UI.Graphic::m_Color
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_Color_7;
// System.Boolean UnityEngine.UI.Graphic::m_SkipLayoutUpdate
bool ___m_SkipLayoutUpdate_8;
// System.Boolean UnityEngine.UI.Graphic::m_SkipMaterialUpdate
bool ___m_SkipMaterialUpdate_9;
// System.Boolean UnityEngine.UI.Graphic::m_RaycastTarget
bool ___m_RaycastTarget_10;
// UnityEngine.RectTransform UnityEngine.UI.Graphic::m_RectTransform
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_RectTransform_11;
// UnityEngine.CanvasRenderer UnityEngine.UI.Graphic::m_CanvasRenderer
CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * ___m_CanvasRenderer_12;
// UnityEngine.Canvas UnityEngine.UI.Graphic::m_Canvas
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___m_Canvas_13;
// System.Boolean UnityEngine.UI.Graphic::m_VertsDirty
bool ___m_VertsDirty_14;
// System.Boolean UnityEngine.UI.Graphic::m_MaterialDirty
bool ___m_MaterialDirty_15;
// UnityEngine.Events.UnityAction UnityEngine.UI.Graphic::m_OnDirtyLayoutCallback
UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * ___m_OnDirtyLayoutCallback_16;
// UnityEngine.Events.UnityAction UnityEngine.UI.Graphic::m_OnDirtyVertsCallback
UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * ___m_OnDirtyVertsCallback_17;
// UnityEngine.Events.UnityAction UnityEngine.UI.Graphic::m_OnDirtyMaterialCallback
UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * ___m_OnDirtyMaterialCallback_18;
// UnityEngine.Mesh UnityEngine.UI.Graphic::m_CachedMesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___m_CachedMesh_21;
// UnityEngine.Vector2[] UnityEngine.UI.Graphic::m_CachedUvs
Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* ___m_CachedUvs_22;
// UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween> UnityEngine.UI.Graphic::m_ColorTweenRunner
TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 * ___m_ColorTweenRunner_23;
// System.Boolean UnityEngine.UI.Graphic::<useLegacyMeshGeneration>k__BackingField
bool ___U3CuseLegacyMeshGenerationU3Ek__BackingField_24;
public:
inline static int32_t get_offset_of_m_Material_6() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_Material_6)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_Material_6() const { return ___m_Material_6; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_Material_6() { return &___m_Material_6; }
inline void set_m_Material_6(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_Material_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Material_6), (void*)value);
}
inline static int32_t get_offset_of_m_Color_7() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_Color_7)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_Color_7() const { return ___m_Color_7; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_Color_7() { return &___m_Color_7; }
inline void set_m_Color_7(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_Color_7 = value;
}
inline static int32_t get_offset_of_m_SkipLayoutUpdate_8() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_SkipLayoutUpdate_8)); }
inline bool get_m_SkipLayoutUpdate_8() const { return ___m_SkipLayoutUpdate_8; }
inline bool* get_address_of_m_SkipLayoutUpdate_8() { return &___m_SkipLayoutUpdate_8; }
inline void set_m_SkipLayoutUpdate_8(bool value)
{
___m_SkipLayoutUpdate_8 = value;
}
inline static int32_t get_offset_of_m_SkipMaterialUpdate_9() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_SkipMaterialUpdate_9)); }
inline bool get_m_SkipMaterialUpdate_9() const { return ___m_SkipMaterialUpdate_9; }
inline bool* get_address_of_m_SkipMaterialUpdate_9() { return &___m_SkipMaterialUpdate_9; }
inline void set_m_SkipMaterialUpdate_9(bool value)
{
___m_SkipMaterialUpdate_9 = value;
}
inline static int32_t get_offset_of_m_RaycastTarget_10() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_RaycastTarget_10)); }
inline bool get_m_RaycastTarget_10() const { return ___m_RaycastTarget_10; }
inline bool* get_address_of_m_RaycastTarget_10() { return &___m_RaycastTarget_10; }
inline void set_m_RaycastTarget_10(bool value)
{
___m_RaycastTarget_10 = value;
}
inline static int32_t get_offset_of_m_RectTransform_11() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_RectTransform_11)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_RectTransform_11() const { return ___m_RectTransform_11; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_RectTransform_11() { return &___m_RectTransform_11; }
inline void set_m_RectTransform_11(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_RectTransform_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RectTransform_11), (void*)value);
}
inline static int32_t get_offset_of_m_CanvasRenderer_12() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_CanvasRenderer_12)); }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * get_m_CanvasRenderer_12() const { return ___m_CanvasRenderer_12; }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 ** get_address_of_m_CanvasRenderer_12() { return &___m_CanvasRenderer_12; }
inline void set_m_CanvasRenderer_12(CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * value)
{
___m_CanvasRenderer_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CanvasRenderer_12), (void*)value);
}
inline static int32_t get_offset_of_m_Canvas_13() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_Canvas_13)); }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * get_m_Canvas_13() const { return ___m_Canvas_13; }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 ** get_address_of_m_Canvas_13() { return &___m_Canvas_13; }
inline void set_m_Canvas_13(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * value)
{
___m_Canvas_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Canvas_13), (void*)value);
}
inline static int32_t get_offset_of_m_VertsDirty_14() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_VertsDirty_14)); }
inline bool get_m_VertsDirty_14() const { return ___m_VertsDirty_14; }
inline bool* get_address_of_m_VertsDirty_14() { return &___m_VertsDirty_14; }
inline void set_m_VertsDirty_14(bool value)
{
___m_VertsDirty_14 = value;
}
inline static int32_t get_offset_of_m_MaterialDirty_15() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_MaterialDirty_15)); }
inline bool get_m_MaterialDirty_15() const { return ___m_MaterialDirty_15; }
inline bool* get_address_of_m_MaterialDirty_15() { return &___m_MaterialDirty_15; }
inline void set_m_MaterialDirty_15(bool value)
{
___m_MaterialDirty_15 = value;
}
inline static int32_t get_offset_of_m_OnDirtyLayoutCallback_16() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_OnDirtyLayoutCallback_16)); }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * get_m_OnDirtyLayoutCallback_16() const { return ___m_OnDirtyLayoutCallback_16; }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 ** get_address_of_m_OnDirtyLayoutCallback_16() { return &___m_OnDirtyLayoutCallback_16; }
inline void set_m_OnDirtyLayoutCallback_16(UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * value)
{
___m_OnDirtyLayoutCallback_16 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDirtyLayoutCallback_16), (void*)value);
}
inline static int32_t get_offset_of_m_OnDirtyVertsCallback_17() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_OnDirtyVertsCallback_17)); }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * get_m_OnDirtyVertsCallback_17() const { return ___m_OnDirtyVertsCallback_17; }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 ** get_address_of_m_OnDirtyVertsCallback_17() { return &___m_OnDirtyVertsCallback_17; }
inline void set_m_OnDirtyVertsCallback_17(UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * value)
{
___m_OnDirtyVertsCallback_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDirtyVertsCallback_17), (void*)value);
}
inline static int32_t get_offset_of_m_OnDirtyMaterialCallback_18() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_OnDirtyMaterialCallback_18)); }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * get_m_OnDirtyMaterialCallback_18() const { return ___m_OnDirtyMaterialCallback_18; }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 ** get_address_of_m_OnDirtyMaterialCallback_18() { return &___m_OnDirtyMaterialCallback_18; }
inline void set_m_OnDirtyMaterialCallback_18(UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * value)
{
___m_OnDirtyMaterialCallback_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDirtyMaterialCallback_18), (void*)value);
}
inline static int32_t get_offset_of_m_CachedMesh_21() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_CachedMesh_21)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_m_CachedMesh_21() const { return ___m_CachedMesh_21; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_m_CachedMesh_21() { return &___m_CachedMesh_21; }
inline void set_m_CachedMesh_21(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___m_CachedMesh_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CachedMesh_21), (void*)value);
}
inline static int32_t get_offset_of_m_CachedUvs_22() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_CachedUvs_22)); }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* get_m_CachedUvs_22() const { return ___m_CachedUvs_22; }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6** get_address_of_m_CachedUvs_22() { return &___m_CachedUvs_22; }
inline void set_m_CachedUvs_22(Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* value)
{
___m_CachedUvs_22 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CachedUvs_22), (void*)value);
}
inline static int32_t get_offset_of_m_ColorTweenRunner_23() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_ColorTweenRunner_23)); }
inline TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 * get_m_ColorTweenRunner_23() const { return ___m_ColorTweenRunner_23; }
inline TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 ** get_address_of_m_ColorTweenRunner_23() { return &___m_ColorTweenRunner_23; }
inline void set_m_ColorTweenRunner_23(TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 * value)
{
___m_ColorTweenRunner_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ColorTweenRunner_23), (void*)value);
}
inline static int32_t get_offset_of_U3CuseLegacyMeshGenerationU3Ek__BackingField_24() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___U3CuseLegacyMeshGenerationU3Ek__BackingField_24)); }
inline bool get_U3CuseLegacyMeshGenerationU3Ek__BackingField_24() const { return ___U3CuseLegacyMeshGenerationU3Ek__BackingField_24; }
inline bool* get_address_of_U3CuseLegacyMeshGenerationU3Ek__BackingField_24() { return &___U3CuseLegacyMeshGenerationU3Ek__BackingField_24; }
inline void set_U3CuseLegacyMeshGenerationU3Ek__BackingField_24(bool value)
{
___U3CuseLegacyMeshGenerationU3Ek__BackingField_24 = value;
}
};
struct Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields
{
public:
// UnityEngine.Material UnityEngine.UI.Graphic::s_DefaultUI
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___s_DefaultUI_4;
// UnityEngine.Texture2D UnityEngine.UI.Graphic::s_WhiteTexture
Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C * ___s_WhiteTexture_5;
// UnityEngine.Mesh UnityEngine.UI.Graphic::s_Mesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___s_Mesh_19;
// UnityEngine.UI.VertexHelper UnityEngine.UI.Graphic::s_VertexHelper
VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F * ___s_VertexHelper_20;
public:
inline static int32_t get_offset_of_s_DefaultUI_4() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_DefaultUI_4)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_s_DefaultUI_4() const { return ___s_DefaultUI_4; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_s_DefaultUI_4() { return &___s_DefaultUI_4; }
inline void set_s_DefaultUI_4(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___s_DefaultUI_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_DefaultUI_4), (void*)value);
}
inline static int32_t get_offset_of_s_WhiteTexture_5() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_WhiteTexture_5)); }
inline Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C * get_s_WhiteTexture_5() const { return ___s_WhiteTexture_5; }
inline Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C ** get_address_of_s_WhiteTexture_5() { return &___s_WhiteTexture_5; }
inline void set_s_WhiteTexture_5(Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C * value)
{
___s_WhiteTexture_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_WhiteTexture_5), (void*)value);
}
inline static int32_t get_offset_of_s_Mesh_19() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_Mesh_19)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_s_Mesh_19() const { return ___s_Mesh_19; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_s_Mesh_19() { return &___s_Mesh_19; }
inline void set_s_Mesh_19(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___s_Mesh_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_Mesh_19), (void*)value);
}
inline static int32_t get_offset_of_s_VertexHelper_20() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_VertexHelper_20)); }
inline VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F * get_s_VertexHelper_20() const { return ___s_VertexHelper_20; }
inline VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F ** get_address_of_s_VertexHelper_20() { return &___s_VertexHelper_20; }
inline void set_s_VertexHelper_20(VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F * value)
{
___s_VertexHelper_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_VertexHelper_20), (void*)value);
}
};
// UnityEngine.UI.Selectable
struct Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
// UnityEngine.UI.Navigation UnityEngine.UI.Selectable::m_Navigation
Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 ___m_Navigation_7;
// UnityEngine.UI.Selectable_Transition UnityEngine.UI.Selectable::m_Transition
int32_t ___m_Transition_8;
// UnityEngine.UI.ColorBlock UnityEngine.UI.Selectable::m_Colors
ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA ___m_Colors_9;
// UnityEngine.UI.SpriteState UnityEngine.UI.Selectable::m_SpriteState
SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A ___m_SpriteState_10;
// UnityEngine.UI.AnimationTriggers UnityEngine.UI.Selectable::m_AnimationTriggers
AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 * ___m_AnimationTriggers_11;
// System.Boolean UnityEngine.UI.Selectable::m_Interactable
bool ___m_Interactable_12;
// UnityEngine.UI.Graphic UnityEngine.UI.Selectable::m_TargetGraphic
Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * ___m_TargetGraphic_13;
// System.Boolean UnityEngine.UI.Selectable::m_GroupsAllowInteraction
bool ___m_GroupsAllowInteraction_14;
// System.Boolean UnityEngine.UI.Selectable::m_WillRemove
bool ___m_WillRemove_15;
// System.Boolean UnityEngine.UI.Selectable::<isPointerInside>k__BackingField
bool ___U3CisPointerInsideU3Ek__BackingField_16;
// System.Boolean UnityEngine.UI.Selectable::<isPointerDown>k__BackingField
bool ___U3CisPointerDownU3Ek__BackingField_17;
// System.Boolean UnityEngine.UI.Selectable::<hasSelection>k__BackingField
bool ___U3ChasSelectionU3Ek__BackingField_18;
// System.Collections.Generic.List`1<UnityEngine.CanvasGroup> UnityEngine.UI.Selectable::m_CanvasGroupCache
List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 * ___m_CanvasGroupCache_19;
public:
inline static int32_t get_offset_of_m_Navigation_7() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Navigation_7)); }
inline Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 get_m_Navigation_7() const { return ___m_Navigation_7; }
inline Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 * get_address_of_m_Navigation_7() { return &___m_Navigation_7; }
inline void set_m_Navigation_7(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 value)
{
___m_Navigation_7 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnUp_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnDown_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnLeft_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnRight_4), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_Transition_8() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Transition_8)); }
inline int32_t get_m_Transition_8() const { return ___m_Transition_8; }
inline int32_t* get_address_of_m_Transition_8() { return &___m_Transition_8; }
inline void set_m_Transition_8(int32_t value)
{
___m_Transition_8 = value;
}
inline static int32_t get_offset_of_m_Colors_9() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Colors_9)); }
inline ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA get_m_Colors_9() const { return ___m_Colors_9; }
inline ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA * get_address_of_m_Colors_9() { return &___m_Colors_9; }
inline void set_m_Colors_9(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA value)
{
___m_Colors_9 = value;
}
inline static int32_t get_offset_of_m_SpriteState_10() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_SpriteState_10)); }
inline SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A get_m_SpriteState_10() const { return ___m_SpriteState_10; }
inline SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A * get_address_of_m_SpriteState_10() { return &___m_SpriteState_10; }
inline void set_m_SpriteState_10(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A value)
{
___m_SpriteState_10 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_HighlightedSprite_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_PressedSprite_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_SelectedSprite_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_DisabledSprite_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_AnimationTriggers_11() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_AnimationTriggers_11)); }
inline AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 * get_m_AnimationTriggers_11() const { return ___m_AnimationTriggers_11; }
inline AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 ** get_address_of_m_AnimationTriggers_11() { return &___m_AnimationTriggers_11; }
inline void set_m_AnimationTriggers_11(AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 * value)
{
___m_AnimationTriggers_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_AnimationTriggers_11), (void*)value);
}
inline static int32_t get_offset_of_m_Interactable_12() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Interactable_12)); }
inline bool get_m_Interactable_12() const { return ___m_Interactable_12; }
inline bool* get_address_of_m_Interactable_12() { return &___m_Interactable_12; }
inline void set_m_Interactable_12(bool value)
{
___m_Interactable_12 = value;
}
inline static int32_t get_offset_of_m_TargetGraphic_13() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_TargetGraphic_13)); }
inline Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * get_m_TargetGraphic_13() const { return ___m_TargetGraphic_13; }
inline Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 ** get_address_of_m_TargetGraphic_13() { return &___m_TargetGraphic_13; }
inline void set_m_TargetGraphic_13(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * value)
{
___m_TargetGraphic_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TargetGraphic_13), (void*)value);
}
inline static int32_t get_offset_of_m_GroupsAllowInteraction_14() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_GroupsAllowInteraction_14)); }
inline bool get_m_GroupsAllowInteraction_14() const { return ___m_GroupsAllowInteraction_14; }
inline bool* get_address_of_m_GroupsAllowInteraction_14() { return &___m_GroupsAllowInteraction_14; }
inline void set_m_GroupsAllowInteraction_14(bool value)
{
___m_GroupsAllowInteraction_14 = value;
}
inline static int32_t get_offset_of_m_WillRemove_15() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_WillRemove_15)); }
inline bool get_m_WillRemove_15() const { return ___m_WillRemove_15; }
inline bool* get_address_of_m_WillRemove_15() { return &___m_WillRemove_15; }
inline void set_m_WillRemove_15(bool value)
{
___m_WillRemove_15 = value;
}
inline static int32_t get_offset_of_U3CisPointerInsideU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___U3CisPointerInsideU3Ek__BackingField_16)); }
inline bool get_U3CisPointerInsideU3Ek__BackingField_16() const { return ___U3CisPointerInsideU3Ek__BackingField_16; }
inline bool* get_address_of_U3CisPointerInsideU3Ek__BackingField_16() { return &___U3CisPointerInsideU3Ek__BackingField_16; }
inline void set_U3CisPointerInsideU3Ek__BackingField_16(bool value)
{
___U3CisPointerInsideU3Ek__BackingField_16 = value;
}
inline static int32_t get_offset_of_U3CisPointerDownU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___U3CisPointerDownU3Ek__BackingField_17)); }
inline bool get_U3CisPointerDownU3Ek__BackingField_17() const { return ___U3CisPointerDownU3Ek__BackingField_17; }
inline bool* get_address_of_U3CisPointerDownU3Ek__BackingField_17() { return &___U3CisPointerDownU3Ek__BackingField_17; }
inline void set_U3CisPointerDownU3Ek__BackingField_17(bool value)
{
___U3CisPointerDownU3Ek__BackingField_17 = value;
}
inline static int32_t get_offset_of_U3ChasSelectionU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___U3ChasSelectionU3Ek__BackingField_18)); }
inline bool get_U3ChasSelectionU3Ek__BackingField_18() const { return ___U3ChasSelectionU3Ek__BackingField_18; }
inline bool* get_address_of_U3ChasSelectionU3Ek__BackingField_18() { return &___U3ChasSelectionU3Ek__BackingField_18; }
inline void set_U3ChasSelectionU3Ek__BackingField_18(bool value)
{
___U3ChasSelectionU3Ek__BackingField_18 = value;
}
inline static int32_t get_offset_of_m_CanvasGroupCache_19() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_CanvasGroupCache_19)); }
inline List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 * get_m_CanvasGroupCache_19() const { return ___m_CanvasGroupCache_19; }
inline List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 ** get_address_of_m_CanvasGroupCache_19() { return &___m_CanvasGroupCache_19; }
inline void set_m_CanvasGroupCache_19(List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 * value)
{
___m_CanvasGroupCache_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CanvasGroupCache_19), (void*)value);
}
};
struct Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields
{
public:
// UnityEngine.UI.Selectable[] UnityEngine.UI.Selectable::s_Selectables
SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02* ___s_Selectables_4;
// System.Int32 UnityEngine.UI.Selectable::s_SelectableCount
int32_t ___s_SelectableCount_5;
// System.Boolean UnityEngine.UI.Selectable::s_IsDirty
bool ___s_IsDirty_6;
public:
inline static int32_t get_offset_of_s_Selectables_4() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields, ___s_Selectables_4)); }
inline SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02* get_s_Selectables_4() const { return ___s_Selectables_4; }
inline SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02** get_address_of_s_Selectables_4() { return &___s_Selectables_4; }
inline void set_s_Selectables_4(SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02* value)
{
___s_Selectables_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_Selectables_4), (void*)value);
}
inline static int32_t get_offset_of_s_SelectableCount_5() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields, ___s_SelectableCount_5)); }
inline int32_t get_s_SelectableCount_5() const { return ___s_SelectableCount_5; }
inline int32_t* get_address_of_s_SelectableCount_5() { return &___s_SelectableCount_5; }
inline void set_s_SelectableCount_5(int32_t value)
{
___s_SelectableCount_5 = value;
}
inline static int32_t get_offset_of_s_IsDirty_6() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields, ___s_IsDirty_6)); }
inline bool get_s_IsDirty_6() const { return ___s_IsDirty_6; }
inline bool* get_address_of_s_IsDirty_6() { return &___s_IsDirty_6; }
inline void set_s_IsDirty_6(bool value)
{
___s_IsDirty_6 = value;
}
};
// GameManager
struct GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// System.Boolean GameManager::gameEnded
bool ___gameEnded_5;
// System.Single GameManager::timeToWin
float ___timeToWin_6;
// System.Single GameManager::invincibleDuration
float ___invincibleDuration_7;
// System.Single GameManager::hatPickUpTime
float ___hatPickUpTime_8;
// System.String GameManager::playerPrefabLocation
String_t* ___playerPrefabLocation_9;
// UnityEngine.Transform[] GameManager::spawnPoints
TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804* ___spawnPoints_10;
// PlayerController[] GameManager::players
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* ___players_11;
// System.Int32 GameManager::playerWithHat
int32_t ___playerWithHat_12;
// System.Int32 GameManager::playersInGame
int32_t ___playersInGame_13;
// System.String GameManager::hatLocation
String_t* ___hatLocation_14;
public:
inline static int32_t get_offset_of_gameEnded_5() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___gameEnded_5)); }
inline bool get_gameEnded_5() const { return ___gameEnded_5; }
inline bool* get_address_of_gameEnded_5() { return &___gameEnded_5; }
inline void set_gameEnded_5(bool value)
{
___gameEnded_5 = value;
}
inline static int32_t get_offset_of_timeToWin_6() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___timeToWin_6)); }
inline float get_timeToWin_6() const { return ___timeToWin_6; }
inline float* get_address_of_timeToWin_6() { return &___timeToWin_6; }
inline void set_timeToWin_6(float value)
{
___timeToWin_6 = value;
}
inline static int32_t get_offset_of_invincibleDuration_7() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___invincibleDuration_7)); }
inline float get_invincibleDuration_7() const { return ___invincibleDuration_7; }
inline float* get_address_of_invincibleDuration_7() { return &___invincibleDuration_7; }
inline void set_invincibleDuration_7(float value)
{
___invincibleDuration_7 = value;
}
inline static int32_t get_offset_of_hatPickUpTime_8() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___hatPickUpTime_8)); }
inline float get_hatPickUpTime_8() const { return ___hatPickUpTime_8; }
inline float* get_address_of_hatPickUpTime_8() { return &___hatPickUpTime_8; }
inline void set_hatPickUpTime_8(float value)
{
___hatPickUpTime_8 = value;
}
inline static int32_t get_offset_of_playerPrefabLocation_9() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___playerPrefabLocation_9)); }
inline String_t* get_playerPrefabLocation_9() const { return ___playerPrefabLocation_9; }
inline String_t** get_address_of_playerPrefabLocation_9() { return &___playerPrefabLocation_9; }
inline void set_playerPrefabLocation_9(String_t* value)
{
___playerPrefabLocation_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerPrefabLocation_9), (void*)value);
}
inline static int32_t get_offset_of_spawnPoints_10() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___spawnPoints_10)); }
inline TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804* get_spawnPoints_10() const { return ___spawnPoints_10; }
inline TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804** get_address_of_spawnPoints_10() { return &___spawnPoints_10; }
inline void set_spawnPoints_10(TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804* value)
{
___spawnPoints_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___spawnPoints_10), (void*)value);
}
inline static int32_t get_offset_of_players_11() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___players_11)); }
inline PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* get_players_11() const { return ___players_11; }
inline PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76** get_address_of_players_11() { return &___players_11; }
inline void set_players_11(PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* value)
{
___players_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___players_11), (void*)value);
}
inline static int32_t get_offset_of_playerWithHat_12() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___playerWithHat_12)); }
inline int32_t get_playerWithHat_12() const { return ___playerWithHat_12; }
inline int32_t* get_address_of_playerWithHat_12() { return &___playerWithHat_12; }
inline void set_playerWithHat_12(int32_t value)
{
___playerWithHat_12 = value;
}
inline static int32_t get_offset_of_playersInGame_13() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___playersInGame_13)); }
inline int32_t get_playersInGame_13() const { return ___playersInGame_13; }
inline int32_t* get_address_of_playersInGame_13() { return &___playersInGame_13; }
inline void set_playersInGame_13(int32_t value)
{
___playersInGame_13 = value;
}
inline static int32_t get_offset_of_hatLocation_14() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89, ___hatLocation_14)); }
inline String_t* get_hatLocation_14() const { return ___hatLocation_14; }
inline String_t** get_address_of_hatLocation_14() { return &___hatLocation_14; }
inline void set_hatLocation_14(String_t* value)
{
___hatLocation_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatLocation_14), (void*)value);
}
};
struct GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields
{
public:
// GameManager GameManager::instance
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * ___instance_15;
public:
inline static int32_t get_offset_of_instance_15() { return static_cast<int32_t>(offsetof(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields, ___instance_15)); }
inline GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * get_instance_15() const { return ___instance_15; }
inline GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 ** get_address_of_instance_15() { return &___instance_15; }
inline void set_instance_15(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * value)
{
___instance_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instance_15), (void*)value);
}
};
// Hat
struct Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// UnityEngine.GameObject Hat::hatRef
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___hatRef_5;
public:
inline static int32_t get_offset_of_hatRef_5() { return static_cast<int32_t>(offsetof(Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F, ___hatRef_5)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_hatRef_5() const { return ___hatRef_5; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_hatRef_5() { return &___hatRef_5; }
inline void set_hatRef_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___hatRef_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatRef_5), (void*)value);
}
};
// Menu
struct Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// UnityEngine.GameObject Menu::mainScreen
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___mainScreen_5;
// UnityEngine.GameObject Menu::lobbyScreen
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___lobbyScreen_6;
// UnityEngine.UI.Button Menu::createRoomButton
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * ___createRoomButton_7;
// UnityEngine.UI.Button Menu::joinRoomButton
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * ___joinRoomButton_8;
// TMPro.TextMeshProUGUI Menu::playerListText
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___playerListText_9;
// UnityEngine.UI.Button Menu::startGameButton
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * ___startGameButton_10;
public:
inline static int32_t get_offset_of_mainScreen_5() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___mainScreen_5)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_mainScreen_5() const { return ___mainScreen_5; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_mainScreen_5() { return &___mainScreen_5; }
inline void set_mainScreen_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___mainScreen_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___mainScreen_5), (void*)value);
}
inline static int32_t get_offset_of_lobbyScreen_6() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___lobbyScreen_6)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_lobbyScreen_6() const { return ___lobbyScreen_6; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_lobbyScreen_6() { return &___lobbyScreen_6; }
inline void set_lobbyScreen_6(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___lobbyScreen_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___lobbyScreen_6), (void*)value);
}
inline static int32_t get_offset_of_createRoomButton_7() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___createRoomButton_7)); }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * get_createRoomButton_7() const { return ___createRoomButton_7; }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B ** get_address_of_createRoomButton_7() { return &___createRoomButton_7; }
inline void set_createRoomButton_7(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * value)
{
___createRoomButton_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___createRoomButton_7), (void*)value);
}
inline static int32_t get_offset_of_joinRoomButton_8() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___joinRoomButton_8)); }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * get_joinRoomButton_8() const { return ___joinRoomButton_8; }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B ** get_address_of_joinRoomButton_8() { return &___joinRoomButton_8; }
inline void set_joinRoomButton_8(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * value)
{
___joinRoomButton_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___joinRoomButton_8), (void*)value);
}
inline static int32_t get_offset_of_playerListText_9() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___playerListText_9)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_playerListText_9() const { return ___playerListText_9; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_playerListText_9() { return &___playerListText_9; }
inline void set_playerListText_9(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___playerListText_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___playerListText_9), (void*)value);
}
inline static int32_t get_offset_of_startGameButton_10() { return static_cast<int32_t>(offsetof(Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129, ___startGameButton_10)); }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * get_startGameButton_10() const { return ___startGameButton_10; }
inline Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B ** get_address_of_startGameButton_10() { return &___startGameButton_10; }
inline void set_startGameButton_10(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * value)
{
___startGameButton_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___startGameButton_10), (void*)value);
}
};
// NetworkManager
struct NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
public:
};
struct NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields
{
public:
// NetworkManager NetworkManager::instance
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * ___instance_5;
public:
inline static int32_t get_offset_of_instance_5() { return static_cast<int32_t>(offsetof(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields, ___instance_5)); }
inline NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * get_instance_5() const { return ___instance_5; }
inline NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C ** get_address_of_instance_5() { return &___instance_5; }
inline void set_instance_5(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * value)
{
___instance_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instance_5), (void*)value);
}
};
// PlayerController
struct PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 : public MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D
{
public:
// System.Int32 PlayerController::id
int32_t ___id_5;
// System.Single PlayerController::moveSpeed
float ___moveSpeed_6;
// System.Single PlayerController::jumpForce
float ___jumpForce_7;
// UnityEngine.GameObject PlayerController::hatObj
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___hatObj_8;
// System.Single PlayerController::currentHatTime
float ___currentHatTime_9;
// UnityEngine.Rigidbody PlayerController::rb
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * ___rb_10;
// Photon.Realtime.Player PlayerController::photonPlayer
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___photonPlayer_11;
public:
inline static int32_t get_offset_of_id_5() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___id_5)); }
inline int32_t get_id_5() const { return ___id_5; }
inline int32_t* get_address_of_id_5() { return &___id_5; }
inline void set_id_5(int32_t value)
{
___id_5 = value;
}
inline static int32_t get_offset_of_moveSpeed_6() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___moveSpeed_6)); }
inline float get_moveSpeed_6() const { return ___moveSpeed_6; }
inline float* get_address_of_moveSpeed_6() { return &___moveSpeed_6; }
inline void set_moveSpeed_6(float value)
{
___moveSpeed_6 = value;
}
inline static int32_t get_offset_of_jumpForce_7() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___jumpForce_7)); }
inline float get_jumpForce_7() const { return ___jumpForce_7; }
inline float* get_address_of_jumpForce_7() { return &___jumpForce_7; }
inline void set_jumpForce_7(float value)
{
___jumpForce_7 = value;
}
inline static int32_t get_offset_of_hatObj_8() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___hatObj_8)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_hatObj_8() const { return ___hatObj_8; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_hatObj_8() { return &___hatObj_8; }
inline void set_hatObj_8(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___hatObj_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hatObj_8), (void*)value);
}
inline static int32_t get_offset_of_currentHatTime_9() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___currentHatTime_9)); }
inline float get_currentHatTime_9() const { return ___currentHatTime_9; }
inline float* get_address_of_currentHatTime_9() { return &___currentHatTime_9; }
inline void set_currentHatTime_9(float value)
{
___currentHatTime_9 = value;
}
inline static int32_t get_offset_of_rb_10() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___rb_10)); }
inline Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * get_rb_10() const { return ___rb_10; }
inline Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 ** get_address_of_rb_10() { return &___rb_10; }
inline void set_rb_10(Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * value)
{
___rb_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___rb_10), (void*)value);
}
inline static int32_t get_offset_of_photonPlayer_11() { return static_cast<int32_t>(offsetof(PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85, ___photonPlayer_11)); }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * get_photonPlayer_11() const { return ___photonPlayer_11; }
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** get_address_of_photonPlayer_11() { return &___photonPlayer_11; }
inline void set_photonPlayer_11(Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
___photonPlayer_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___photonPlayer_11), (void*)value);
}
};
// TMPro.TMP_InputField
struct TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB : public Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A
{
public:
// UnityEngine.TouchScreenKeyboard TMPro.TMP_InputField::m_SoftKeyboard
TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * ___m_SoftKeyboard_20;
// UnityEngine.RectTransform TMPro.TMP_InputField::m_TextViewport
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_TextViewport_22;
// TMPro.TMP_Text TMPro.TMP_InputField::m_TextComponent
TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * ___m_TextComponent_23;
// UnityEngine.RectTransform TMPro.TMP_InputField::m_TextComponentRectTransform
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_TextComponentRectTransform_24;
// UnityEngine.UI.Graphic TMPro.TMP_InputField::m_Placeholder
Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * ___m_Placeholder_25;
// UnityEngine.UI.Scrollbar TMPro.TMP_InputField::m_VerticalScrollbar
Scrollbar_t8F8679D0EAFACBCBD603E6B0E741E6A783DB3389 * ___m_VerticalScrollbar_26;
// TMPro.TMP_ScrollbarEventHandler TMPro.TMP_InputField::m_VerticalScrollbarEventHandler
TMP_ScrollbarEventHandler_t081C59DD8EC81899836C864E45E60977A40FBA83 * ___m_VerticalScrollbarEventHandler_27;
// System.Boolean TMPro.TMP_InputField::m_IsDrivenByLayoutComponents
bool ___m_IsDrivenByLayoutComponents_28;
// System.Single TMPro.TMP_InputField::m_ScrollPosition
float ___m_ScrollPosition_29;
// System.Single TMPro.TMP_InputField::m_ScrollSensitivity
float ___m_ScrollSensitivity_30;
// TMPro.TMP_InputField_ContentType TMPro.TMP_InputField::m_ContentType
int32_t ___m_ContentType_31;
// TMPro.TMP_InputField_InputType TMPro.TMP_InputField::m_InputType
int32_t ___m_InputType_32;
// System.Char TMPro.TMP_InputField::m_AsteriskChar
Il2CppChar ___m_AsteriskChar_33;
// UnityEngine.TouchScreenKeyboardType TMPro.TMP_InputField::m_KeyboardType
int32_t ___m_KeyboardType_34;
// TMPro.TMP_InputField_LineType TMPro.TMP_InputField::m_LineType
int32_t ___m_LineType_35;
// System.Boolean TMPro.TMP_InputField::m_HideMobileInput
bool ___m_HideMobileInput_36;
// System.Boolean TMPro.TMP_InputField::m_HideSoftKeyboard
bool ___m_HideSoftKeyboard_37;
// TMPro.TMP_InputField_CharacterValidation TMPro.TMP_InputField::m_CharacterValidation
int32_t ___m_CharacterValidation_38;
// System.String TMPro.TMP_InputField::m_RegexValue
String_t* ___m_RegexValue_39;
// System.Single TMPro.TMP_InputField::m_GlobalPointSize
float ___m_GlobalPointSize_40;
// System.Int32 TMPro.TMP_InputField::m_CharacterLimit
int32_t ___m_CharacterLimit_41;
// TMPro.TMP_InputField_SubmitEvent TMPro.TMP_InputField::m_OnEndEdit
SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC * ___m_OnEndEdit_42;
// TMPro.TMP_InputField_SubmitEvent TMPro.TMP_InputField::m_OnSubmit
SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC * ___m_OnSubmit_43;
// TMPro.TMP_InputField_SelectionEvent TMPro.TMP_InputField::m_OnSelect
SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A * ___m_OnSelect_44;
// TMPro.TMP_InputField_SelectionEvent TMPro.TMP_InputField::m_OnDeselect
SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A * ___m_OnDeselect_45;
// TMPro.TMP_InputField_TextSelectionEvent TMPro.TMP_InputField::m_OnTextSelection
TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 * ___m_OnTextSelection_46;
// TMPro.TMP_InputField_TextSelectionEvent TMPro.TMP_InputField::m_OnEndTextSelection
TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 * ___m_OnEndTextSelection_47;
// TMPro.TMP_InputField_OnChangeEvent TMPro.TMP_InputField::m_OnValueChanged
OnChangeEvent_t1610FEF044826EE0837528C1E90FCDFC45B3D7AD * ___m_OnValueChanged_48;
// TMPro.TMP_InputField_TouchScreenKeyboardEvent TMPro.TMP_InputField::m_OnTouchScreenKeyboardStatusChanged
TouchScreenKeyboardEvent_tF41EB6E5E2B26213D1C0CE6573498CA6ACB3CA1F * ___m_OnTouchScreenKeyboardStatusChanged_49;
// TMPro.TMP_InputField_OnValidateInput TMPro.TMP_InputField::m_OnValidateInput
OnValidateInput_t47FA5831345A245F5C6FD9C0E4F5CE43430C1863 * ___m_OnValidateInput_50;
// UnityEngine.Color TMPro.TMP_InputField::m_CaretColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_CaretColor_51;
// System.Boolean TMPro.TMP_InputField::m_CustomCaretColor
bool ___m_CustomCaretColor_52;
// UnityEngine.Color TMPro.TMP_InputField::m_SelectionColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_SelectionColor_53;
// System.String TMPro.TMP_InputField::m_Text
String_t* ___m_Text_54;
// System.Single TMPro.TMP_InputField::m_CaretBlinkRate
float ___m_CaretBlinkRate_55;
// System.Int32 TMPro.TMP_InputField::m_CaretWidth
int32_t ___m_CaretWidth_56;
// System.Boolean TMPro.TMP_InputField::m_ReadOnly
bool ___m_ReadOnly_57;
// System.Boolean TMPro.TMP_InputField::m_RichText
bool ___m_RichText_58;
// System.Int32 TMPro.TMP_InputField::m_StringPosition
int32_t ___m_StringPosition_59;
// System.Int32 TMPro.TMP_InputField::m_StringSelectPosition
int32_t ___m_StringSelectPosition_60;
// System.Int32 TMPro.TMP_InputField::m_CaretPosition
int32_t ___m_CaretPosition_61;
// System.Int32 TMPro.TMP_InputField::m_CaretSelectPosition
int32_t ___m_CaretSelectPosition_62;
// UnityEngine.RectTransform TMPro.TMP_InputField::caretRectTrans
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___caretRectTrans_63;
// UnityEngine.UIVertex[] TMPro.TMP_InputField::m_CursorVerts
UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* ___m_CursorVerts_64;
// UnityEngine.CanvasRenderer TMPro.TMP_InputField::m_CachedInputRenderer
CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * ___m_CachedInputRenderer_65;
// UnityEngine.Vector2 TMPro.TMP_InputField::m_LastPosition
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_LastPosition_66;
// UnityEngine.Mesh TMPro.TMP_InputField::m_Mesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___m_Mesh_67;
// System.Boolean TMPro.TMP_InputField::m_AllowInput
bool ___m_AllowInput_68;
// System.Boolean TMPro.TMP_InputField::m_ShouldActivateNextUpdate
bool ___m_ShouldActivateNextUpdate_69;
// System.Boolean TMPro.TMP_InputField::m_UpdateDrag
bool ___m_UpdateDrag_70;
// System.Boolean TMPro.TMP_InputField::m_DragPositionOutOfBounds
bool ___m_DragPositionOutOfBounds_71;
// System.Boolean TMPro.TMP_InputField::m_CaretVisible
bool ___m_CaretVisible_74;
// UnityEngine.Coroutine TMPro.TMP_InputField::m_BlinkCoroutine
Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * ___m_BlinkCoroutine_75;
// System.Single TMPro.TMP_InputField::m_BlinkStartTime
float ___m_BlinkStartTime_76;
// UnityEngine.Coroutine TMPro.TMP_InputField::m_DragCoroutine
Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * ___m_DragCoroutine_77;
// System.String TMPro.TMP_InputField::m_OriginalText
String_t* ___m_OriginalText_78;
// System.Boolean TMPro.TMP_InputField::m_WasCanceled
bool ___m_WasCanceled_79;
// System.Boolean TMPro.TMP_InputField::m_HasDoneFocusTransition
bool ___m_HasDoneFocusTransition_80;
// UnityEngine.WaitForSecondsRealtime TMPro.TMP_InputField::m_WaitForSecondsRealtime
WaitForSecondsRealtime_t0CF361107C4A9E25E0D4CF2F37732CE785235739 * ___m_WaitForSecondsRealtime_81;
// System.Boolean TMPro.TMP_InputField::m_PreventCallback
bool ___m_PreventCallback_82;
// System.Boolean TMPro.TMP_InputField::m_TouchKeyboardAllowsInPlaceEditing
bool ___m_TouchKeyboardAllowsInPlaceEditing_83;
// System.Boolean TMPro.TMP_InputField::m_IsTextComponentUpdateRequired
bool ___m_IsTextComponentUpdateRequired_84;
// System.Boolean TMPro.TMP_InputField::m_IsScrollbarUpdateRequired
bool ___m_IsScrollbarUpdateRequired_85;
// System.Boolean TMPro.TMP_InputField::m_IsUpdatingScrollbarValues
bool ___m_IsUpdatingScrollbarValues_86;
// System.Boolean TMPro.TMP_InputField::m_isLastKeyBackspace
bool ___m_isLastKeyBackspace_87;
// System.Single TMPro.TMP_InputField::m_PointerDownClickStartTime
float ___m_PointerDownClickStartTime_88;
// System.Single TMPro.TMP_InputField::m_KeyDownStartTime
float ___m_KeyDownStartTime_89;
// System.Single TMPro.TMP_InputField::m_DoubleClickDelay
float ___m_DoubleClickDelay_90;
// TMPro.TMP_FontAsset TMPro.TMP_InputField::m_GlobalFontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___m_GlobalFontAsset_92;
// System.Boolean TMPro.TMP_InputField::m_OnFocusSelectAll
bool ___m_OnFocusSelectAll_93;
// System.Boolean TMPro.TMP_InputField::m_isSelectAll
bool ___m_isSelectAll_94;
// System.Boolean TMPro.TMP_InputField::m_ResetOnDeActivation
bool ___m_ResetOnDeActivation_95;
// System.Boolean TMPro.TMP_InputField::m_SelectionStillActive
bool ___m_SelectionStillActive_96;
// System.Boolean TMPro.TMP_InputField::m_ReleaseSelection
bool ___m_ReleaseSelection_97;
// UnityEngine.GameObject TMPro.TMP_InputField::m_SelectedObject
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_SelectedObject_98;
// System.Boolean TMPro.TMP_InputField::m_RestoreOriginalTextOnEscape
bool ___m_RestoreOriginalTextOnEscape_99;
// System.Boolean TMPro.TMP_InputField::m_isRichTextEditingAllowed
bool ___m_isRichTextEditingAllowed_100;
// System.Int32 TMPro.TMP_InputField::m_LineLimit
int32_t ___m_LineLimit_101;
// TMPro.TMP_InputValidator TMPro.TMP_InputField::m_InputValidator
TMP_InputValidator_t4C673E12211AFB82AAF94D9DEA556FDC306E69CD * ___m_InputValidator_102;
// System.Boolean TMPro.TMP_InputField::m_isSelected
bool ___m_isSelected_103;
// System.Boolean TMPro.TMP_InputField::m_IsStringPositionDirty
bool ___m_IsStringPositionDirty_104;
// System.Boolean TMPro.TMP_InputField::m_IsCaretPositionDirty
bool ___m_IsCaretPositionDirty_105;
// System.Boolean TMPro.TMP_InputField::m_forceRectTransformAdjustment
bool ___m_forceRectTransformAdjustment_106;
// UnityEngine.Event TMPro.TMP_InputField::m_ProcessingEvent
Event_t187FF6A6B357447B83EC2064823EE0AEC5263210 * ___m_ProcessingEvent_107;
public:
inline static int32_t get_offset_of_m_SoftKeyboard_20() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_SoftKeyboard_20)); }
inline TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * get_m_SoftKeyboard_20() const { return ___m_SoftKeyboard_20; }
inline TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 ** get_address_of_m_SoftKeyboard_20() { return &___m_SoftKeyboard_20; }
inline void set_m_SoftKeyboard_20(TouchScreenKeyboard_t2A69F85698E9780470181532D3F2BC903623FD90 * value)
{
___m_SoftKeyboard_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SoftKeyboard_20), (void*)value);
}
inline static int32_t get_offset_of_m_TextViewport_22() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_TextViewport_22)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_TextViewport_22() const { return ___m_TextViewport_22; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_TextViewport_22() { return &___m_TextViewport_22; }
inline void set_m_TextViewport_22(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_TextViewport_22 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TextViewport_22), (void*)value);
}
inline static int32_t get_offset_of_m_TextComponent_23() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_TextComponent_23)); }
inline TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * get_m_TextComponent_23() const { return ___m_TextComponent_23; }
inline TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 ** get_address_of_m_TextComponent_23() { return &___m_TextComponent_23; }
inline void set_m_TextComponent_23(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * value)
{
___m_TextComponent_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TextComponent_23), (void*)value);
}
inline static int32_t get_offset_of_m_TextComponentRectTransform_24() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_TextComponentRectTransform_24)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_TextComponentRectTransform_24() const { return ___m_TextComponentRectTransform_24; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_TextComponentRectTransform_24() { return &___m_TextComponentRectTransform_24; }
inline void set_m_TextComponentRectTransform_24(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_TextComponentRectTransform_24 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TextComponentRectTransform_24), (void*)value);
}
inline static int32_t get_offset_of_m_Placeholder_25() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_Placeholder_25)); }
inline Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * get_m_Placeholder_25() const { return ___m_Placeholder_25; }
inline Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 ** get_address_of_m_Placeholder_25() { return &___m_Placeholder_25; }
inline void set_m_Placeholder_25(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * value)
{
___m_Placeholder_25 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Placeholder_25), (void*)value);
}
inline static int32_t get_offset_of_m_VerticalScrollbar_26() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_VerticalScrollbar_26)); }
inline Scrollbar_t8F8679D0EAFACBCBD603E6B0E741E6A783DB3389 * get_m_VerticalScrollbar_26() const { return ___m_VerticalScrollbar_26; }
inline Scrollbar_t8F8679D0EAFACBCBD603E6B0E741E6A783DB3389 ** get_address_of_m_VerticalScrollbar_26() { return &___m_VerticalScrollbar_26; }
inline void set_m_VerticalScrollbar_26(Scrollbar_t8F8679D0EAFACBCBD603E6B0E741E6A783DB3389 * value)
{
___m_VerticalScrollbar_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_VerticalScrollbar_26), (void*)value);
}
inline static int32_t get_offset_of_m_VerticalScrollbarEventHandler_27() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_VerticalScrollbarEventHandler_27)); }
inline TMP_ScrollbarEventHandler_t081C59DD8EC81899836C864E45E60977A40FBA83 * get_m_VerticalScrollbarEventHandler_27() const { return ___m_VerticalScrollbarEventHandler_27; }
inline TMP_ScrollbarEventHandler_t081C59DD8EC81899836C864E45E60977A40FBA83 ** get_address_of_m_VerticalScrollbarEventHandler_27() { return &___m_VerticalScrollbarEventHandler_27; }
inline void set_m_VerticalScrollbarEventHandler_27(TMP_ScrollbarEventHandler_t081C59DD8EC81899836C864E45E60977A40FBA83 * value)
{
___m_VerticalScrollbarEventHandler_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_VerticalScrollbarEventHandler_27), (void*)value);
}
inline static int32_t get_offset_of_m_IsDrivenByLayoutComponents_28() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_IsDrivenByLayoutComponents_28)); }
inline bool get_m_IsDrivenByLayoutComponents_28() const { return ___m_IsDrivenByLayoutComponents_28; }
inline bool* get_address_of_m_IsDrivenByLayoutComponents_28() { return &___m_IsDrivenByLayoutComponents_28; }
inline void set_m_IsDrivenByLayoutComponents_28(bool value)
{
___m_IsDrivenByLayoutComponents_28 = value;
}
inline static int32_t get_offset_of_m_ScrollPosition_29() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ScrollPosition_29)); }
inline float get_m_ScrollPosition_29() const { return ___m_ScrollPosition_29; }
inline float* get_address_of_m_ScrollPosition_29() { return &___m_ScrollPosition_29; }
inline void set_m_ScrollPosition_29(float value)
{
___m_ScrollPosition_29 = value;
}
inline static int32_t get_offset_of_m_ScrollSensitivity_30() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ScrollSensitivity_30)); }
inline float get_m_ScrollSensitivity_30() const { return ___m_ScrollSensitivity_30; }
inline float* get_address_of_m_ScrollSensitivity_30() { return &___m_ScrollSensitivity_30; }
inline void set_m_ScrollSensitivity_30(float value)
{
___m_ScrollSensitivity_30 = value;
}
inline static int32_t get_offset_of_m_ContentType_31() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ContentType_31)); }
inline int32_t get_m_ContentType_31() const { return ___m_ContentType_31; }
inline int32_t* get_address_of_m_ContentType_31() { return &___m_ContentType_31; }
inline void set_m_ContentType_31(int32_t value)
{
___m_ContentType_31 = value;
}
inline static int32_t get_offset_of_m_InputType_32() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_InputType_32)); }
inline int32_t get_m_InputType_32() const { return ___m_InputType_32; }
inline int32_t* get_address_of_m_InputType_32() { return &___m_InputType_32; }
inline void set_m_InputType_32(int32_t value)
{
___m_InputType_32 = value;
}
inline static int32_t get_offset_of_m_AsteriskChar_33() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_AsteriskChar_33)); }
inline Il2CppChar get_m_AsteriskChar_33() const { return ___m_AsteriskChar_33; }
inline Il2CppChar* get_address_of_m_AsteriskChar_33() { return &___m_AsteriskChar_33; }
inline void set_m_AsteriskChar_33(Il2CppChar value)
{
___m_AsteriskChar_33 = value;
}
inline static int32_t get_offset_of_m_KeyboardType_34() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_KeyboardType_34)); }
inline int32_t get_m_KeyboardType_34() const { return ___m_KeyboardType_34; }
inline int32_t* get_address_of_m_KeyboardType_34() { return &___m_KeyboardType_34; }
inline void set_m_KeyboardType_34(int32_t value)
{
___m_KeyboardType_34 = value;
}
inline static int32_t get_offset_of_m_LineType_35() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_LineType_35)); }
inline int32_t get_m_LineType_35() const { return ___m_LineType_35; }
inline int32_t* get_address_of_m_LineType_35() { return &___m_LineType_35; }
inline void set_m_LineType_35(int32_t value)
{
___m_LineType_35 = value;
}
inline static int32_t get_offset_of_m_HideMobileInput_36() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_HideMobileInput_36)); }
inline bool get_m_HideMobileInput_36() const { return ___m_HideMobileInput_36; }
inline bool* get_address_of_m_HideMobileInput_36() { return &___m_HideMobileInput_36; }
inline void set_m_HideMobileInput_36(bool value)
{
___m_HideMobileInput_36 = value;
}
inline static int32_t get_offset_of_m_HideSoftKeyboard_37() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_HideSoftKeyboard_37)); }
inline bool get_m_HideSoftKeyboard_37() const { return ___m_HideSoftKeyboard_37; }
inline bool* get_address_of_m_HideSoftKeyboard_37() { return &___m_HideSoftKeyboard_37; }
inline void set_m_HideSoftKeyboard_37(bool value)
{
___m_HideSoftKeyboard_37 = value;
}
inline static int32_t get_offset_of_m_CharacterValidation_38() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CharacterValidation_38)); }
inline int32_t get_m_CharacterValidation_38() const { return ___m_CharacterValidation_38; }
inline int32_t* get_address_of_m_CharacterValidation_38() { return &___m_CharacterValidation_38; }
inline void set_m_CharacterValidation_38(int32_t value)
{
___m_CharacterValidation_38 = value;
}
inline static int32_t get_offset_of_m_RegexValue_39() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_RegexValue_39)); }
inline String_t* get_m_RegexValue_39() const { return ___m_RegexValue_39; }
inline String_t** get_address_of_m_RegexValue_39() { return &___m_RegexValue_39; }
inline void set_m_RegexValue_39(String_t* value)
{
___m_RegexValue_39 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RegexValue_39), (void*)value);
}
inline static int32_t get_offset_of_m_GlobalPointSize_40() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_GlobalPointSize_40)); }
inline float get_m_GlobalPointSize_40() const { return ___m_GlobalPointSize_40; }
inline float* get_address_of_m_GlobalPointSize_40() { return &___m_GlobalPointSize_40; }
inline void set_m_GlobalPointSize_40(float value)
{
___m_GlobalPointSize_40 = value;
}
inline static int32_t get_offset_of_m_CharacterLimit_41() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CharacterLimit_41)); }
inline int32_t get_m_CharacterLimit_41() const { return ___m_CharacterLimit_41; }
inline int32_t* get_address_of_m_CharacterLimit_41() { return &___m_CharacterLimit_41; }
inline void set_m_CharacterLimit_41(int32_t value)
{
___m_CharacterLimit_41 = value;
}
inline static int32_t get_offset_of_m_OnEndEdit_42() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnEndEdit_42)); }
inline SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC * get_m_OnEndEdit_42() const { return ___m_OnEndEdit_42; }
inline SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC ** get_address_of_m_OnEndEdit_42() { return &___m_OnEndEdit_42; }
inline void set_m_OnEndEdit_42(SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC * value)
{
___m_OnEndEdit_42 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnEndEdit_42), (void*)value);
}
inline static int32_t get_offset_of_m_OnSubmit_43() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnSubmit_43)); }
inline SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC * get_m_OnSubmit_43() const { return ___m_OnSubmit_43; }
inline SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC ** get_address_of_m_OnSubmit_43() { return &___m_OnSubmit_43; }
inline void set_m_OnSubmit_43(SubmitEvent_tD1BC174A4FE2411600541703750F0F03E991A9BC * value)
{
___m_OnSubmit_43 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnSubmit_43), (void*)value);
}
inline static int32_t get_offset_of_m_OnSelect_44() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnSelect_44)); }
inline SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A * get_m_OnSelect_44() const { return ___m_OnSelect_44; }
inline SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A ** get_address_of_m_OnSelect_44() { return &___m_OnSelect_44; }
inline void set_m_OnSelect_44(SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A * value)
{
___m_OnSelect_44 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnSelect_44), (void*)value);
}
inline static int32_t get_offset_of_m_OnDeselect_45() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnDeselect_45)); }
inline SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A * get_m_OnDeselect_45() const { return ___m_OnDeselect_45; }
inline SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A ** get_address_of_m_OnDeselect_45() { return &___m_OnDeselect_45; }
inline void set_m_OnDeselect_45(SelectionEvent_t346DD0E470654B452107A056EDE13F796AEAFD3A * value)
{
___m_OnDeselect_45 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDeselect_45), (void*)value);
}
inline static int32_t get_offset_of_m_OnTextSelection_46() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnTextSelection_46)); }
inline TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 * get_m_OnTextSelection_46() const { return ___m_OnTextSelection_46; }
inline TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 ** get_address_of_m_OnTextSelection_46() { return &___m_OnTextSelection_46; }
inline void set_m_OnTextSelection_46(TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 * value)
{
___m_OnTextSelection_46 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnTextSelection_46), (void*)value);
}
inline static int32_t get_offset_of_m_OnEndTextSelection_47() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnEndTextSelection_47)); }
inline TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 * get_m_OnEndTextSelection_47() const { return ___m_OnEndTextSelection_47; }
inline TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 ** get_address_of_m_OnEndTextSelection_47() { return &___m_OnEndTextSelection_47; }
inline void set_m_OnEndTextSelection_47(TextSelectionEvent_tD42FAD7CC0AA2E613884FC6E86A11EE59CDA3854 * value)
{
___m_OnEndTextSelection_47 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnEndTextSelection_47), (void*)value);
}
inline static int32_t get_offset_of_m_OnValueChanged_48() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnValueChanged_48)); }
inline OnChangeEvent_t1610FEF044826EE0837528C1E90FCDFC45B3D7AD * get_m_OnValueChanged_48() const { return ___m_OnValueChanged_48; }
inline OnChangeEvent_t1610FEF044826EE0837528C1E90FCDFC45B3D7AD ** get_address_of_m_OnValueChanged_48() { return &___m_OnValueChanged_48; }
inline void set_m_OnValueChanged_48(OnChangeEvent_t1610FEF044826EE0837528C1E90FCDFC45B3D7AD * value)
{
___m_OnValueChanged_48 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnValueChanged_48), (void*)value);
}
inline static int32_t get_offset_of_m_OnTouchScreenKeyboardStatusChanged_49() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnTouchScreenKeyboardStatusChanged_49)); }
inline TouchScreenKeyboardEvent_tF41EB6E5E2B26213D1C0CE6573498CA6ACB3CA1F * get_m_OnTouchScreenKeyboardStatusChanged_49() const { return ___m_OnTouchScreenKeyboardStatusChanged_49; }
inline TouchScreenKeyboardEvent_tF41EB6E5E2B26213D1C0CE6573498CA6ACB3CA1F ** get_address_of_m_OnTouchScreenKeyboardStatusChanged_49() { return &___m_OnTouchScreenKeyboardStatusChanged_49; }
inline void set_m_OnTouchScreenKeyboardStatusChanged_49(TouchScreenKeyboardEvent_tF41EB6E5E2B26213D1C0CE6573498CA6ACB3CA1F * value)
{
___m_OnTouchScreenKeyboardStatusChanged_49 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnTouchScreenKeyboardStatusChanged_49), (void*)value);
}
inline static int32_t get_offset_of_m_OnValidateInput_50() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnValidateInput_50)); }
inline OnValidateInput_t47FA5831345A245F5C6FD9C0E4F5CE43430C1863 * get_m_OnValidateInput_50() const { return ___m_OnValidateInput_50; }
inline OnValidateInput_t47FA5831345A245F5C6FD9C0E4F5CE43430C1863 ** get_address_of_m_OnValidateInput_50() { return &___m_OnValidateInput_50; }
inline void set_m_OnValidateInput_50(OnValidateInput_t47FA5831345A245F5C6FD9C0E4F5CE43430C1863 * value)
{
___m_OnValidateInput_50 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnValidateInput_50), (void*)value);
}
inline static int32_t get_offset_of_m_CaretColor_51() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CaretColor_51)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_CaretColor_51() const { return ___m_CaretColor_51; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_CaretColor_51() { return &___m_CaretColor_51; }
inline void set_m_CaretColor_51(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_CaretColor_51 = value;
}
inline static int32_t get_offset_of_m_CustomCaretColor_52() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CustomCaretColor_52)); }
inline bool get_m_CustomCaretColor_52() const { return ___m_CustomCaretColor_52; }
inline bool* get_address_of_m_CustomCaretColor_52() { return &___m_CustomCaretColor_52; }
inline void set_m_CustomCaretColor_52(bool value)
{
___m_CustomCaretColor_52 = value;
}
inline static int32_t get_offset_of_m_SelectionColor_53() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_SelectionColor_53)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_SelectionColor_53() const { return ___m_SelectionColor_53; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_SelectionColor_53() { return &___m_SelectionColor_53; }
inline void set_m_SelectionColor_53(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_SelectionColor_53 = value;
}
inline static int32_t get_offset_of_m_Text_54() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_Text_54)); }
inline String_t* get_m_Text_54() const { return ___m_Text_54; }
inline String_t** get_address_of_m_Text_54() { return &___m_Text_54; }
inline void set_m_Text_54(String_t* value)
{
___m_Text_54 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Text_54), (void*)value);
}
inline static int32_t get_offset_of_m_CaretBlinkRate_55() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CaretBlinkRate_55)); }
inline float get_m_CaretBlinkRate_55() const { return ___m_CaretBlinkRate_55; }
inline float* get_address_of_m_CaretBlinkRate_55() { return &___m_CaretBlinkRate_55; }
inline void set_m_CaretBlinkRate_55(float value)
{
___m_CaretBlinkRate_55 = value;
}
inline static int32_t get_offset_of_m_CaretWidth_56() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CaretWidth_56)); }
inline int32_t get_m_CaretWidth_56() const { return ___m_CaretWidth_56; }
inline int32_t* get_address_of_m_CaretWidth_56() { return &___m_CaretWidth_56; }
inline void set_m_CaretWidth_56(int32_t value)
{
___m_CaretWidth_56 = value;
}
inline static int32_t get_offset_of_m_ReadOnly_57() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ReadOnly_57)); }
inline bool get_m_ReadOnly_57() const { return ___m_ReadOnly_57; }
inline bool* get_address_of_m_ReadOnly_57() { return &___m_ReadOnly_57; }
inline void set_m_ReadOnly_57(bool value)
{
___m_ReadOnly_57 = value;
}
inline static int32_t get_offset_of_m_RichText_58() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_RichText_58)); }
inline bool get_m_RichText_58() const { return ___m_RichText_58; }
inline bool* get_address_of_m_RichText_58() { return &___m_RichText_58; }
inline void set_m_RichText_58(bool value)
{
___m_RichText_58 = value;
}
inline static int32_t get_offset_of_m_StringPosition_59() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_StringPosition_59)); }
inline int32_t get_m_StringPosition_59() const { return ___m_StringPosition_59; }
inline int32_t* get_address_of_m_StringPosition_59() { return &___m_StringPosition_59; }
inline void set_m_StringPosition_59(int32_t value)
{
___m_StringPosition_59 = value;
}
inline static int32_t get_offset_of_m_StringSelectPosition_60() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_StringSelectPosition_60)); }
inline int32_t get_m_StringSelectPosition_60() const { return ___m_StringSelectPosition_60; }
inline int32_t* get_address_of_m_StringSelectPosition_60() { return &___m_StringSelectPosition_60; }
inline void set_m_StringSelectPosition_60(int32_t value)
{
___m_StringSelectPosition_60 = value;
}
inline static int32_t get_offset_of_m_CaretPosition_61() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CaretPosition_61)); }
inline int32_t get_m_CaretPosition_61() const { return ___m_CaretPosition_61; }
inline int32_t* get_address_of_m_CaretPosition_61() { return &___m_CaretPosition_61; }
inline void set_m_CaretPosition_61(int32_t value)
{
___m_CaretPosition_61 = value;
}
inline static int32_t get_offset_of_m_CaretSelectPosition_62() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CaretSelectPosition_62)); }
inline int32_t get_m_CaretSelectPosition_62() const { return ___m_CaretSelectPosition_62; }
inline int32_t* get_address_of_m_CaretSelectPosition_62() { return &___m_CaretSelectPosition_62; }
inline void set_m_CaretSelectPosition_62(int32_t value)
{
___m_CaretSelectPosition_62 = value;
}
inline static int32_t get_offset_of_caretRectTrans_63() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___caretRectTrans_63)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_caretRectTrans_63() const { return ___caretRectTrans_63; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_caretRectTrans_63() { return &___caretRectTrans_63; }
inline void set_caretRectTrans_63(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___caretRectTrans_63 = value;
Il2CppCodeGenWriteBarrier((void**)(&___caretRectTrans_63), (void*)value);
}
inline static int32_t get_offset_of_m_CursorVerts_64() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CursorVerts_64)); }
inline UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* get_m_CursorVerts_64() const { return ___m_CursorVerts_64; }
inline UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A** get_address_of_m_CursorVerts_64() { return &___m_CursorVerts_64; }
inline void set_m_CursorVerts_64(UIVertexU5BU5D_tB560F9F9269864891FCE1677971F603A08AA857A* value)
{
___m_CursorVerts_64 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CursorVerts_64), (void*)value);
}
inline static int32_t get_offset_of_m_CachedInputRenderer_65() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CachedInputRenderer_65)); }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * get_m_CachedInputRenderer_65() const { return ___m_CachedInputRenderer_65; }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 ** get_address_of_m_CachedInputRenderer_65() { return &___m_CachedInputRenderer_65; }
inline void set_m_CachedInputRenderer_65(CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * value)
{
___m_CachedInputRenderer_65 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CachedInputRenderer_65), (void*)value);
}
inline static int32_t get_offset_of_m_LastPosition_66() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_LastPosition_66)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_LastPosition_66() const { return ___m_LastPosition_66; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_LastPosition_66() { return &___m_LastPosition_66; }
inline void set_m_LastPosition_66(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___m_LastPosition_66 = value;
}
inline static int32_t get_offset_of_m_Mesh_67() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_Mesh_67)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_m_Mesh_67() const { return ___m_Mesh_67; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_m_Mesh_67() { return &___m_Mesh_67; }
inline void set_m_Mesh_67(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___m_Mesh_67 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Mesh_67), (void*)value);
}
inline static int32_t get_offset_of_m_AllowInput_68() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_AllowInput_68)); }
inline bool get_m_AllowInput_68() const { return ___m_AllowInput_68; }
inline bool* get_address_of_m_AllowInput_68() { return &___m_AllowInput_68; }
inline void set_m_AllowInput_68(bool value)
{
___m_AllowInput_68 = value;
}
inline static int32_t get_offset_of_m_ShouldActivateNextUpdate_69() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ShouldActivateNextUpdate_69)); }
inline bool get_m_ShouldActivateNextUpdate_69() const { return ___m_ShouldActivateNextUpdate_69; }
inline bool* get_address_of_m_ShouldActivateNextUpdate_69() { return &___m_ShouldActivateNextUpdate_69; }
inline void set_m_ShouldActivateNextUpdate_69(bool value)
{
___m_ShouldActivateNextUpdate_69 = value;
}
inline static int32_t get_offset_of_m_UpdateDrag_70() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_UpdateDrag_70)); }
inline bool get_m_UpdateDrag_70() const { return ___m_UpdateDrag_70; }
inline bool* get_address_of_m_UpdateDrag_70() { return &___m_UpdateDrag_70; }
inline void set_m_UpdateDrag_70(bool value)
{
___m_UpdateDrag_70 = value;
}
inline static int32_t get_offset_of_m_DragPositionOutOfBounds_71() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_DragPositionOutOfBounds_71)); }
inline bool get_m_DragPositionOutOfBounds_71() const { return ___m_DragPositionOutOfBounds_71; }
inline bool* get_address_of_m_DragPositionOutOfBounds_71() { return &___m_DragPositionOutOfBounds_71; }
inline void set_m_DragPositionOutOfBounds_71(bool value)
{
___m_DragPositionOutOfBounds_71 = value;
}
inline static int32_t get_offset_of_m_CaretVisible_74() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_CaretVisible_74)); }
inline bool get_m_CaretVisible_74() const { return ___m_CaretVisible_74; }
inline bool* get_address_of_m_CaretVisible_74() { return &___m_CaretVisible_74; }
inline void set_m_CaretVisible_74(bool value)
{
___m_CaretVisible_74 = value;
}
inline static int32_t get_offset_of_m_BlinkCoroutine_75() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_BlinkCoroutine_75)); }
inline Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * get_m_BlinkCoroutine_75() const { return ___m_BlinkCoroutine_75; }
inline Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC ** get_address_of_m_BlinkCoroutine_75() { return &___m_BlinkCoroutine_75; }
inline void set_m_BlinkCoroutine_75(Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * value)
{
___m_BlinkCoroutine_75 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_BlinkCoroutine_75), (void*)value);
}
inline static int32_t get_offset_of_m_BlinkStartTime_76() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_BlinkStartTime_76)); }
inline float get_m_BlinkStartTime_76() const { return ___m_BlinkStartTime_76; }
inline float* get_address_of_m_BlinkStartTime_76() { return &___m_BlinkStartTime_76; }
inline void set_m_BlinkStartTime_76(float value)
{
___m_BlinkStartTime_76 = value;
}
inline static int32_t get_offset_of_m_DragCoroutine_77() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_DragCoroutine_77)); }
inline Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * get_m_DragCoroutine_77() const { return ___m_DragCoroutine_77; }
inline Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC ** get_address_of_m_DragCoroutine_77() { return &___m_DragCoroutine_77; }
inline void set_m_DragCoroutine_77(Coroutine_tAE7DB2FC70A0AE6477F896F852057CB0754F06EC * value)
{
___m_DragCoroutine_77 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DragCoroutine_77), (void*)value);
}
inline static int32_t get_offset_of_m_OriginalText_78() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OriginalText_78)); }
inline String_t* get_m_OriginalText_78() const { return ___m_OriginalText_78; }
inline String_t** get_address_of_m_OriginalText_78() { return &___m_OriginalText_78; }
inline void set_m_OriginalText_78(String_t* value)
{
___m_OriginalText_78 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OriginalText_78), (void*)value);
}
inline static int32_t get_offset_of_m_WasCanceled_79() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_WasCanceled_79)); }
inline bool get_m_WasCanceled_79() const { return ___m_WasCanceled_79; }
inline bool* get_address_of_m_WasCanceled_79() { return &___m_WasCanceled_79; }
inline void set_m_WasCanceled_79(bool value)
{
___m_WasCanceled_79 = value;
}
inline static int32_t get_offset_of_m_HasDoneFocusTransition_80() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_HasDoneFocusTransition_80)); }
inline bool get_m_HasDoneFocusTransition_80() const { return ___m_HasDoneFocusTransition_80; }
inline bool* get_address_of_m_HasDoneFocusTransition_80() { return &___m_HasDoneFocusTransition_80; }
inline void set_m_HasDoneFocusTransition_80(bool value)
{
___m_HasDoneFocusTransition_80 = value;
}
inline static int32_t get_offset_of_m_WaitForSecondsRealtime_81() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_WaitForSecondsRealtime_81)); }
inline WaitForSecondsRealtime_t0CF361107C4A9E25E0D4CF2F37732CE785235739 * get_m_WaitForSecondsRealtime_81() const { return ___m_WaitForSecondsRealtime_81; }
inline WaitForSecondsRealtime_t0CF361107C4A9E25E0D4CF2F37732CE785235739 ** get_address_of_m_WaitForSecondsRealtime_81() { return &___m_WaitForSecondsRealtime_81; }
inline void set_m_WaitForSecondsRealtime_81(WaitForSecondsRealtime_t0CF361107C4A9E25E0D4CF2F37732CE785235739 * value)
{
___m_WaitForSecondsRealtime_81 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_WaitForSecondsRealtime_81), (void*)value);
}
inline static int32_t get_offset_of_m_PreventCallback_82() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_PreventCallback_82)); }
inline bool get_m_PreventCallback_82() const { return ___m_PreventCallback_82; }
inline bool* get_address_of_m_PreventCallback_82() { return &___m_PreventCallback_82; }
inline void set_m_PreventCallback_82(bool value)
{
___m_PreventCallback_82 = value;
}
inline static int32_t get_offset_of_m_TouchKeyboardAllowsInPlaceEditing_83() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_TouchKeyboardAllowsInPlaceEditing_83)); }
inline bool get_m_TouchKeyboardAllowsInPlaceEditing_83() const { return ___m_TouchKeyboardAllowsInPlaceEditing_83; }
inline bool* get_address_of_m_TouchKeyboardAllowsInPlaceEditing_83() { return &___m_TouchKeyboardAllowsInPlaceEditing_83; }
inline void set_m_TouchKeyboardAllowsInPlaceEditing_83(bool value)
{
___m_TouchKeyboardAllowsInPlaceEditing_83 = value;
}
inline static int32_t get_offset_of_m_IsTextComponentUpdateRequired_84() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_IsTextComponentUpdateRequired_84)); }
inline bool get_m_IsTextComponentUpdateRequired_84() const { return ___m_IsTextComponentUpdateRequired_84; }
inline bool* get_address_of_m_IsTextComponentUpdateRequired_84() { return &___m_IsTextComponentUpdateRequired_84; }
inline void set_m_IsTextComponentUpdateRequired_84(bool value)
{
___m_IsTextComponentUpdateRequired_84 = value;
}
inline static int32_t get_offset_of_m_IsScrollbarUpdateRequired_85() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_IsScrollbarUpdateRequired_85)); }
inline bool get_m_IsScrollbarUpdateRequired_85() const { return ___m_IsScrollbarUpdateRequired_85; }
inline bool* get_address_of_m_IsScrollbarUpdateRequired_85() { return &___m_IsScrollbarUpdateRequired_85; }
inline void set_m_IsScrollbarUpdateRequired_85(bool value)
{
___m_IsScrollbarUpdateRequired_85 = value;
}
inline static int32_t get_offset_of_m_IsUpdatingScrollbarValues_86() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_IsUpdatingScrollbarValues_86)); }
inline bool get_m_IsUpdatingScrollbarValues_86() const { return ___m_IsUpdatingScrollbarValues_86; }
inline bool* get_address_of_m_IsUpdatingScrollbarValues_86() { return &___m_IsUpdatingScrollbarValues_86; }
inline void set_m_IsUpdatingScrollbarValues_86(bool value)
{
___m_IsUpdatingScrollbarValues_86 = value;
}
inline static int32_t get_offset_of_m_isLastKeyBackspace_87() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_isLastKeyBackspace_87)); }
inline bool get_m_isLastKeyBackspace_87() const { return ___m_isLastKeyBackspace_87; }
inline bool* get_address_of_m_isLastKeyBackspace_87() { return &___m_isLastKeyBackspace_87; }
inline void set_m_isLastKeyBackspace_87(bool value)
{
___m_isLastKeyBackspace_87 = value;
}
inline static int32_t get_offset_of_m_PointerDownClickStartTime_88() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_PointerDownClickStartTime_88)); }
inline float get_m_PointerDownClickStartTime_88() const { return ___m_PointerDownClickStartTime_88; }
inline float* get_address_of_m_PointerDownClickStartTime_88() { return &___m_PointerDownClickStartTime_88; }
inline void set_m_PointerDownClickStartTime_88(float value)
{
___m_PointerDownClickStartTime_88 = value;
}
inline static int32_t get_offset_of_m_KeyDownStartTime_89() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_KeyDownStartTime_89)); }
inline float get_m_KeyDownStartTime_89() const { return ___m_KeyDownStartTime_89; }
inline float* get_address_of_m_KeyDownStartTime_89() { return &___m_KeyDownStartTime_89; }
inline void set_m_KeyDownStartTime_89(float value)
{
___m_KeyDownStartTime_89 = value;
}
inline static int32_t get_offset_of_m_DoubleClickDelay_90() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_DoubleClickDelay_90)); }
inline float get_m_DoubleClickDelay_90() const { return ___m_DoubleClickDelay_90; }
inline float* get_address_of_m_DoubleClickDelay_90() { return &___m_DoubleClickDelay_90; }
inline void set_m_DoubleClickDelay_90(float value)
{
___m_DoubleClickDelay_90 = value;
}
inline static int32_t get_offset_of_m_GlobalFontAsset_92() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_GlobalFontAsset_92)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_m_GlobalFontAsset_92() const { return ___m_GlobalFontAsset_92; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_m_GlobalFontAsset_92() { return &___m_GlobalFontAsset_92; }
inline void set_m_GlobalFontAsset_92(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___m_GlobalFontAsset_92 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_GlobalFontAsset_92), (void*)value);
}
inline static int32_t get_offset_of_m_OnFocusSelectAll_93() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_OnFocusSelectAll_93)); }
inline bool get_m_OnFocusSelectAll_93() const { return ___m_OnFocusSelectAll_93; }
inline bool* get_address_of_m_OnFocusSelectAll_93() { return &___m_OnFocusSelectAll_93; }
inline void set_m_OnFocusSelectAll_93(bool value)
{
___m_OnFocusSelectAll_93 = value;
}
inline static int32_t get_offset_of_m_isSelectAll_94() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_isSelectAll_94)); }
inline bool get_m_isSelectAll_94() const { return ___m_isSelectAll_94; }
inline bool* get_address_of_m_isSelectAll_94() { return &___m_isSelectAll_94; }
inline void set_m_isSelectAll_94(bool value)
{
___m_isSelectAll_94 = value;
}
inline static int32_t get_offset_of_m_ResetOnDeActivation_95() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ResetOnDeActivation_95)); }
inline bool get_m_ResetOnDeActivation_95() const { return ___m_ResetOnDeActivation_95; }
inline bool* get_address_of_m_ResetOnDeActivation_95() { return &___m_ResetOnDeActivation_95; }
inline void set_m_ResetOnDeActivation_95(bool value)
{
___m_ResetOnDeActivation_95 = value;
}
inline static int32_t get_offset_of_m_SelectionStillActive_96() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_SelectionStillActive_96)); }
inline bool get_m_SelectionStillActive_96() const { return ___m_SelectionStillActive_96; }
inline bool* get_address_of_m_SelectionStillActive_96() { return &___m_SelectionStillActive_96; }
inline void set_m_SelectionStillActive_96(bool value)
{
___m_SelectionStillActive_96 = value;
}
inline static int32_t get_offset_of_m_ReleaseSelection_97() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ReleaseSelection_97)); }
inline bool get_m_ReleaseSelection_97() const { return ___m_ReleaseSelection_97; }
inline bool* get_address_of_m_ReleaseSelection_97() { return &___m_ReleaseSelection_97; }
inline void set_m_ReleaseSelection_97(bool value)
{
___m_ReleaseSelection_97 = value;
}
inline static int32_t get_offset_of_m_SelectedObject_98() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_SelectedObject_98)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_SelectedObject_98() const { return ___m_SelectedObject_98; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_SelectedObject_98() { return &___m_SelectedObject_98; }
inline void set_m_SelectedObject_98(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_SelectedObject_98 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectedObject_98), (void*)value);
}
inline static int32_t get_offset_of_m_RestoreOriginalTextOnEscape_99() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_RestoreOriginalTextOnEscape_99)); }
inline bool get_m_RestoreOriginalTextOnEscape_99() const { return ___m_RestoreOriginalTextOnEscape_99; }
inline bool* get_address_of_m_RestoreOriginalTextOnEscape_99() { return &___m_RestoreOriginalTextOnEscape_99; }
inline void set_m_RestoreOriginalTextOnEscape_99(bool value)
{
___m_RestoreOriginalTextOnEscape_99 = value;
}
inline static int32_t get_offset_of_m_isRichTextEditingAllowed_100() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_isRichTextEditingAllowed_100)); }
inline bool get_m_isRichTextEditingAllowed_100() const { return ___m_isRichTextEditingAllowed_100; }
inline bool* get_address_of_m_isRichTextEditingAllowed_100() { return &___m_isRichTextEditingAllowed_100; }
inline void set_m_isRichTextEditingAllowed_100(bool value)
{
___m_isRichTextEditingAllowed_100 = value;
}
inline static int32_t get_offset_of_m_LineLimit_101() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_LineLimit_101)); }
inline int32_t get_m_LineLimit_101() const { return ___m_LineLimit_101; }
inline int32_t* get_address_of_m_LineLimit_101() { return &___m_LineLimit_101; }
inline void set_m_LineLimit_101(int32_t value)
{
___m_LineLimit_101 = value;
}
inline static int32_t get_offset_of_m_InputValidator_102() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_InputValidator_102)); }
inline TMP_InputValidator_t4C673E12211AFB82AAF94D9DEA556FDC306E69CD * get_m_InputValidator_102() const { return ___m_InputValidator_102; }
inline TMP_InputValidator_t4C673E12211AFB82AAF94D9DEA556FDC306E69CD ** get_address_of_m_InputValidator_102() { return &___m_InputValidator_102; }
inline void set_m_InputValidator_102(TMP_InputValidator_t4C673E12211AFB82AAF94D9DEA556FDC306E69CD * value)
{
___m_InputValidator_102 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_InputValidator_102), (void*)value);
}
inline static int32_t get_offset_of_m_isSelected_103() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_isSelected_103)); }
inline bool get_m_isSelected_103() const { return ___m_isSelected_103; }
inline bool* get_address_of_m_isSelected_103() { return &___m_isSelected_103; }
inline void set_m_isSelected_103(bool value)
{
___m_isSelected_103 = value;
}
inline static int32_t get_offset_of_m_IsStringPositionDirty_104() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_IsStringPositionDirty_104)); }
inline bool get_m_IsStringPositionDirty_104() const { return ___m_IsStringPositionDirty_104; }
inline bool* get_address_of_m_IsStringPositionDirty_104() { return &___m_IsStringPositionDirty_104; }
inline void set_m_IsStringPositionDirty_104(bool value)
{
___m_IsStringPositionDirty_104 = value;
}
inline static int32_t get_offset_of_m_IsCaretPositionDirty_105() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_IsCaretPositionDirty_105)); }
inline bool get_m_IsCaretPositionDirty_105() const { return ___m_IsCaretPositionDirty_105; }
inline bool* get_address_of_m_IsCaretPositionDirty_105() { return &___m_IsCaretPositionDirty_105; }
inline void set_m_IsCaretPositionDirty_105(bool value)
{
___m_IsCaretPositionDirty_105 = value;
}
inline static int32_t get_offset_of_m_forceRectTransformAdjustment_106() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_forceRectTransformAdjustment_106)); }
inline bool get_m_forceRectTransformAdjustment_106() const { return ___m_forceRectTransformAdjustment_106; }
inline bool* get_address_of_m_forceRectTransformAdjustment_106() { return &___m_forceRectTransformAdjustment_106; }
inline void set_m_forceRectTransformAdjustment_106(bool value)
{
___m_forceRectTransformAdjustment_106 = value;
}
inline static int32_t get_offset_of_m_ProcessingEvent_107() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB, ___m_ProcessingEvent_107)); }
inline Event_t187FF6A6B357447B83EC2064823EE0AEC5263210 * get_m_ProcessingEvent_107() const { return ___m_ProcessingEvent_107; }
inline Event_t187FF6A6B357447B83EC2064823EE0AEC5263210 ** get_address_of_m_ProcessingEvent_107() { return &___m_ProcessingEvent_107; }
inline void set_m_ProcessingEvent_107(Event_t187FF6A6B357447B83EC2064823EE0AEC5263210 * value)
{
___m_ProcessingEvent_107 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ProcessingEvent_107), (void*)value);
}
};
struct TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB_StaticFields
{
public:
// System.Char[] TMPro.TMP_InputField::kSeparators
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___kSeparators_21;
public:
inline static int32_t get_offset_of_kSeparators_21() { return static_cast<int32_t>(offsetof(TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB_StaticFields, ___kSeparators_21)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_kSeparators_21() const { return ___kSeparators_21; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_kSeparators_21() { return &___kSeparators_21; }
inline void set_kSeparators_21(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___kSeparators_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___kSeparators_21), (void*)value);
}
};
// UnityEngine.UI.Button
struct Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B : public Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A
{
public:
// UnityEngine.UI.Button_ButtonClickedEvent UnityEngine.UI.Button::m_OnClick
ButtonClickedEvent_t975D9C903BC4880557ADD7D3ACFB01CB2B3D6DDB * ___m_OnClick_20;
public:
inline static int32_t get_offset_of_m_OnClick_20() { return static_cast<int32_t>(offsetof(Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B, ___m_OnClick_20)); }
inline ButtonClickedEvent_t975D9C903BC4880557ADD7D3ACFB01CB2B3D6DDB * get_m_OnClick_20() const { return ___m_OnClick_20; }
inline ButtonClickedEvent_t975D9C903BC4880557ADD7D3ACFB01CB2B3D6DDB ** get_address_of_m_OnClick_20() { return &___m_OnClick_20; }
inline void set_m_OnClick_20(ButtonClickedEvent_t975D9C903BC4880557ADD7D3ACFB01CB2B3D6DDB * value)
{
___m_OnClick_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnClick_20), (void*)value);
}
};
// UnityEngine.UI.MaskableGraphic
struct MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F : public Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8
{
public:
// System.Boolean UnityEngine.UI.MaskableGraphic::m_ShouldRecalculateStencil
bool ___m_ShouldRecalculateStencil_25;
// UnityEngine.Material UnityEngine.UI.MaskableGraphic::m_MaskMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_MaskMaterial_26;
// UnityEngine.UI.RectMask2D UnityEngine.UI.MaskableGraphic::m_ParentMask
RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B * ___m_ParentMask_27;
// System.Boolean UnityEngine.UI.MaskableGraphic::m_Maskable
bool ___m_Maskable_28;
// System.Boolean UnityEngine.UI.MaskableGraphic::m_IncludeForMasking
bool ___m_IncludeForMasking_29;
// UnityEngine.UI.MaskableGraphic_CullStateChangedEvent UnityEngine.UI.MaskableGraphic::m_OnCullStateChanged
CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 * ___m_OnCullStateChanged_30;
// System.Boolean UnityEngine.UI.MaskableGraphic::m_ShouldRecalculate
bool ___m_ShouldRecalculate_31;
// System.Int32 UnityEngine.UI.MaskableGraphic::m_StencilValue
int32_t ___m_StencilValue_32;
// UnityEngine.Vector3[] UnityEngine.UI.MaskableGraphic::m_Corners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___m_Corners_33;
public:
inline static int32_t get_offset_of_m_ShouldRecalculateStencil_25() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_ShouldRecalculateStencil_25)); }
inline bool get_m_ShouldRecalculateStencil_25() const { return ___m_ShouldRecalculateStencil_25; }
inline bool* get_address_of_m_ShouldRecalculateStencil_25() { return &___m_ShouldRecalculateStencil_25; }
inline void set_m_ShouldRecalculateStencil_25(bool value)
{
___m_ShouldRecalculateStencil_25 = value;
}
inline static int32_t get_offset_of_m_MaskMaterial_26() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_MaskMaterial_26)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_MaskMaterial_26() const { return ___m_MaskMaterial_26; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_MaskMaterial_26() { return &___m_MaskMaterial_26; }
inline void set_m_MaskMaterial_26(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_MaskMaterial_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_MaskMaterial_26), (void*)value);
}
inline static int32_t get_offset_of_m_ParentMask_27() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_ParentMask_27)); }
inline RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B * get_m_ParentMask_27() const { return ___m_ParentMask_27; }
inline RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B ** get_address_of_m_ParentMask_27() { return &___m_ParentMask_27; }
inline void set_m_ParentMask_27(RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B * value)
{
___m_ParentMask_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ParentMask_27), (void*)value);
}
inline static int32_t get_offset_of_m_Maskable_28() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_Maskable_28)); }
inline bool get_m_Maskable_28() const { return ___m_Maskable_28; }
inline bool* get_address_of_m_Maskable_28() { return &___m_Maskable_28; }
inline void set_m_Maskable_28(bool value)
{
___m_Maskable_28 = value;
}
inline static int32_t get_offset_of_m_IncludeForMasking_29() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_IncludeForMasking_29)); }
inline bool get_m_IncludeForMasking_29() const { return ___m_IncludeForMasking_29; }
inline bool* get_address_of_m_IncludeForMasking_29() { return &___m_IncludeForMasking_29; }
inline void set_m_IncludeForMasking_29(bool value)
{
___m_IncludeForMasking_29 = value;
}
inline static int32_t get_offset_of_m_OnCullStateChanged_30() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_OnCullStateChanged_30)); }
inline CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 * get_m_OnCullStateChanged_30() const { return ___m_OnCullStateChanged_30; }
inline CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 ** get_address_of_m_OnCullStateChanged_30() { return &___m_OnCullStateChanged_30; }
inline void set_m_OnCullStateChanged_30(CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 * value)
{
___m_OnCullStateChanged_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnCullStateChanged_30), (void*)value);
}
inline static int32_t get_offset_of_m_ShouldRecalculate_31() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_ShouldRecalculate_31)); }
inline bool get_m_ShouldRecalculate_31() const { return ___m_ShouldRecalculate_31; }
inline bool* get_address_of_m_ShouldRecalculate_31() { return &___m_ShouldRecalculate_31; }
inline void set_m_ShouldRecalculate_31(bool value)
{
___m_ShouldRecalculate_31 = value;
}
inline static int32_t get_offset_of_m_StencilValue_32() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_StencilValue_32)); }
inline int32_t get_m_StencilValue_32() const { return ___m_StencilValue_32; }
inline int32_t* get_address_of_m_StencilValue_32() { return &___m_StencilValue_32; }
inline void set_m_StencilValue_32(int32_t value)
{
___m_StencilValue_32 = value;
}
inline static int32_t get_offset_of_m_Corners_33() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_Corners_33)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_m_Corners_33() const { return ___m_Corners_33; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_m_Corners_33() { return &___m_Corners_33; }
inline void set_m_Corners_33(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___m_Corners_33 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Corners_33), (void*)value);
}
};
// UnityEngine.UI.Slider
struct Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 : public Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A
{
public:
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_FillRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_FillRect_20;
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_HandleRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_HandleRect_21;
// UnityEngine.UI.Slider_Direction UnityEngine.UI.Slider::m_Direction
int32_t ___m_Direction_22;
// System.Single UnityEngine.UI.Slider::m_MinValue
float ___m_MinValue_23;
// System.Single UnityEngine.UI.Slider::m_MaxValue
float ___m_MaxValue_24;
// System.Boolean UnityEngine.UI.Slider::m_WholeNumbers
bool ___m_WholeNumbers_25;
// System.Single UnityEngine.UI.Slider::m_Value
float ___m_Value_26;
// UnityEngine.UI.Slider_SliderEvent UnityEngine.UI.Slider::m_OnValueChanged
SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C * ___m_OnValueChanged_27;
// UnityEngine.UI.Image UnityEngine.UI.Slider::m_FillImage
Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E * ___m_FillImage_28;
// UnityEngine.Transform UnityEngine.UI.Slider::m_FillTransform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_FillTransform_29;
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_FillContainerRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_FillContainerRect_30;
// UnityEngine.Transform UnityEngine.UI.Slider::m_HandleTransform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_HandleTransform_31;
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_HandleContainerRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_HandleContainerRect_32;
// UnityEngine.Vector2 UnityEngine.UI.Slider::m_Offset
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_Offset_33;
// UnityEngine.DrivenRectTransformTracker UnityEngine.UI.Slider::m_Tracker
DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 ___m_Tracker_34;
// System.Boolean UnityEngine.UI.Slider::m_DelayedUpdateVisuals
bool ___m_DelayedUpdateVisuals_35;
public:
inline static int32_t get_offset_of_m_FillRect_20() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillRect_20)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_FillRect_20() const { return ___m_FillRect_20; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_FillRect_20() { return &___m_FillRect_20; }
inline void set_m_FillRect_20(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_FillRect_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillRect_20), (void*)value);
}
inline static int32_t get_offset_of_m_HandleRect_21() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_HandleRect_21)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_HandleRect_21() const { return ___m_HandleRect_21; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_HandleRect_21() { return &___m_HandleRect_21; }
inline void set_m_HandleRect_21(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_HandleRect_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HandleRect_21), (void*)value);
}
inline static int32_t get_offset_of_m_Direction_22() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Direction_22)); }
inline int32_t get_m_Direction_22() const { return ___m_Direction_22; }
inline int32_t* get_address_of_m_Direction_22() { return &___m_Direction_22; }
inline void set_m_Direction_22(int32_t value)
{
___m_Direction_22 = value;
}
inline static int32_t get_offset_of_m_MinValue_23() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_MinValue_23)); }
inline float get_m_MinValue_23() const { return ___m_MinValue_23; }
inline float* get_address_of_m_MinValue_23() { return &___m_MinValue_23; }
inline void set_m_MinValue_23(float value)
{
___m_MinValue_23 = value;
}
inline static int32_t get_offset_of_m_MaxValue_24() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_MaxValue_24)); }
inline float get_m_MaxValue_24() const { return ___m_MaxValue_24; }
inline float* get_address_of_m_MaxValue_24() { return &___m_MaxValue_24; }
inline void set_m_MaxValue_24(float value)
{
___m_MaxValue_24 = value;
}
inline static int32_t get_offset_of_m_WholeNumbers_25() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_WholeNumbers_25)); }
inline bool get_m_WholeNumbers_25() const { return ___m_WholeNumbers_25; }
inline bool* get_address_of_m_WholeNumbers_25() { return &___m_WholeNumbers_25; }
inline void set_m_WholeNumbers_25(bool value)
{
___m_WholeNumbers_25 = value;
}
inline static int32_t get_offset_of_m_Value_26() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Value_26)); }
inline float get_m_Value_26() const { return ___m_Value_26; }
inline float* get_address_of_m_Value_26() { return &___m_Value_26; }
inline void set_m_Value_26(float value)
{
___m_Value_26 = value;
}
inline static int32_t get_offset_of_m_OnValueChanged_27() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_OnValueChanged_27)); }
inline SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C * get_m_OnValueChanged_27() const { return ___m_OnValueChanged_27; }
inline SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C ** get_address_of_m_OnValueChanged_27() { return &___m_OnValueChanged_27; }
inline void set_m_OnValueChanged_27(SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C * value)
{
___m_OnValueChanged_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnValueChanged_27), (void*)value);
}
inline static int32_t get_offset_of_m_FillImage_28() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillImage_28)); }
inline Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E * get_m_FillImage_28() const { return ___m_FillImage_28; }
inline Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E ** get_address_of_m_FillImage_28() { return &___m_FillImage_28; }
inline void set_m_FillImage_28(Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E * value)
{
___m_FillImage_28 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillImage_28), (void*)value);
}
inline static int32_t get_offset_of_m_FillTransform_29() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillTransform_29)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_FillTransform_29() const { return ___m_FillTransform_29; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_FillTransform_29() { return &___m_FillTransform_29; }
inline void set_m_FillTransform_29(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_FillTransform_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillTransform_29), (void*)value);
}
inline static int32_t get_offset_of_m_FillContainerRect_30() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillContainerRect_30)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_FillContainerRect_30() const { return ___m_FillContainerRect_30; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_FillContainerRect_30() { return &___m_FillContainerRect_30; }
inline void set_m_FillContainerRect_30(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_FillContainerRect_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillContainerRect_30), (void*)value);
}
inline static int32_t get_offset_of_m_HandleTransform_31() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_HandleTransform_31)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_HandleTransform_31() const { return ___m_HandleTransform_31; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_HandleTransform_31() { return &___m_HandleTransform_31; }
inline void set_m_HandleTransform_31(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_HandleTransform_31 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HandleTransform_31), (void*)value);
}
inline static int32_t get_offset_of_m_HandleContainerRect_32() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_HandleContainerRect_32)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_HandleContainerRect_32() const { return ___m_HandleContainerRect_32; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_HandleContainerRect_32() { return &___m_HandleContainerRect_32; }
inline void set_m_HandleContainerRect_32(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_HandleContainerRect_32 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HandleContainerRect_32), (void*)value);
}
inline static int32_t get_offset_of_m_Offset_33() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Offset_33)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_Offset_33() const { return ___m_Offset_33; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_Offset_33() { return &___m_Offset_33; }
inline void set_m_Offset_33(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___m_Offset_33 = value;
}
inline static int32_t get_offset_of_m_Tracker_34() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Tracker_34)); }
inline DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 get_m_Tracker_34() const { return ___m_Tracker_34; }
inline DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 * get_address_of_m_Tracker_34() { return &___m_Tracker_34; }
inline void set_m_Tracker_34(DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 value)
{
___m_Tracker_34 = value;
}
inline static int32_t get_offset_of_m_DelayedUpdateVisuals_35() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_DelayedUpdateVisuals_35)); }
inline bool get_m_DelayedUpdateVisuals_35() const { return ___m_DelayedUpdateVisuals_35; }
inline bool* get_address_of_m_DelayedUpdateVisuals_35() { return &___m_DelayedUpdateVisuals_35; }
inline void set_m_DelayedUpdateVisuals_35(bool value)
{
___m_DelayedUpdateVisuals_35 = value;
}
};
// TMPro.TMP_Text
struct TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 : public MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F
{
public:
// System.String TMPro.TMP_Text::m_text
String_t* ___m_text_34;
// System.Boolean TMPro.TMP_Text::m_isRightToLeft
bool ___m_isRightToLeft_35;
// TMPro.TMP_FontAsset TMPro.TMP_Text::m_fontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___m_fontAsset_36;
// TMPro.TMP_FontAsset TMPro.TMP_Text::m_currentFontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___m_currentFontAsset_37;
// System.Boolean TMPro.TMP_Text::m_isSDFShader
bool ___m_isSDFShader_38;
// UnityEngine.Material TMPro.TMP_Text::m_sharedMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_sharedMaterial_39;
// UnityEngine.Material TMPro.TMP_Text::m_currentMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_currentMaterial_40;
// TMPro.MaterialReference[] TMPro.TMP_Text::m_materialReferences
MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* ___m_materialReferences_41;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32> TMPro.TMP_Text::m_materialReferenceIndexLookup
Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 * ___m_materialReferenceIndexLookup_42;
// TMPro.TMP_RichTextTagStack`1<TMPro.MaterialReference> TMPro.TMP_Text::m_materialReferenceStack
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___m_materialReferenceStack_43;
// System.Int32 TMPro.TMP_Text::m_currentMaterialIndex
int32_t ___m_currentMaterialIndex_44;
// UnityEngine.Material[] TMPro.TMP_Text::m_fontSharedMaterials
MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* ___m_fontSharedMaterials_45;
// UnityEngine.Material TMPro.TMP_Text::m_fontMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_fontMaterial_46;
// UnityEngine.Material[] TMPro.TMP_Text::m_fontMaterials
MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* ___m_fontMaterials_47;
// System.Boolean TMPro.TMP_Text::m_isMaterialDirty
bool ___m_isMaterialDirty_48;
// UnityEngine.Color32 TMPro.TMP_Text::m_fontColor32
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_fontColor32_49;
// UnityEngine.Color TMPro.TMP_Text::m_fontColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_fontColor_50;
// UnityEngine.Color32 TMPro.TMP_Text::m_underlineColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_underlineColor_52;
// UnityEngine.Color32 TMPro.TMP_Text::m_strikethroughColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_strikethroughColor_53;
// UnityEngine.Color32 TMPro.TMP_Text::m_highlightColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_highlightColor_54;
// UnityEngine.Vector4 TMPro.TMP_Text::m_highlightPadding
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___m_highlightPadding_55;
// System.Boolean TMPro.TMP_Text::m_enableVertexGradient
bool ___m_enableVertexGradient_56;
// TMPro.ColorMode TMPro.TMP_Text::m_colorMode
int32_t ___m_colorMode_57;
// TMPro.VertexGradient TMPro.TMP_Text::m_fontColorGradient
VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A ___m_fontColorGradient_58;
// TMPro.TMP_ColorGradient TMPro.TMP_Text::m_fontColorGradientPreset
TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * ___m_fontColorGradientPreset_59;
// TMPro.TMP_SpriteAsset TMPro.TMP_Text::m_spriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___m_spriteAsset_60;
// System.Boolean TMPro.TMP_Text::m_tintAllSprites
bool ___m_tintAllSprites_61;
// System.Boolean TMPro.TMP_Text::m_tintSprite
bool ___m_tintSprite_62;
// UnityEngine.Color32 TMPro.TMP_Text::m_spriteColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_spriteColor_63;
// System.Boolean TMPro.TMP_Text::m_overrideHtmlColors
bool ___m_overrideHtmlColors_64;
// UnityEngine.Color32 TMPro.TMP_Text::m_faceColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_faceColor_65;
// UnityEngine.Color32 TMPro.TMP_Text::m_outlineColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_outlineColor_66;
// System.Single TMPro.TMP_Text::m_outlineWidth
float ___m_outlineWidth_67;
// System.Single TMPro.TMP_Text::m_fontSize
float ___m_fontSize_68;
// System.Single TMPro.TMP_Text::m_currentFontSize
float ___m_currentFontSize_69;
// System.Single TMPro.TMP_Text::m_fontSizeBase
float ___m_fontSizeBase_70;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.TMP_Text::m_sizeStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___m_sizeStack_71;
// TMPro.FontWeight TMPro.TMP_Text::m_fontWeight
int32_t ___m_fontWeight_72;
// TMPro.FontWeight TMPro.TMP_Text::m_FontWeightInternal
int32_t ___m_FontWeightInternal_73;
// TMPro.TMP_RichTextTagStack`1<TMPro.FontWeight> TMPro.TMP_Text::m_FontWeightStack
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___m_FontWeightStack_74;
// System.Boolean TMPro.TMP_Text::m_enableAutoSizing
bool ___m_enableAutoSizing_75;
// System.Single TMPro.TMP_Text::m_maxFontSize
float ___m_maxFontSize_76;
// System.Single TMPro.TMP_Text::m_minFontSize
float ___m_minFontSize_77;
// System.Single TMPro.TMP_Text::m_fontSizeMin
float ___m_fontSizeMin_78;
// System.Single TMPro.TMP_Text::m_fontSizeMax
float ___m_fontSizeMax_79;
// TMPro.FontStyles TMPro.TMP_Text::m_fontStyle
int32_t ___m_fontStyle_80;
// TMPro.FontStyles TMPro.TMP_Text::m_FontStyleInternal
int32_t ___m_FontStyleInternal_81;
// TMPro.TMP_FontStyleStack TMPro.TMP_Text::m_fontStyleStack
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___m_fontStyleStack_82;
// System.Boolean TMPro.TMP_Text::m_isUsingBold
bool ___m_isUsingBold_83;
// TMPro.TextAlignmentOptions TMPro.TMP_Text::m_textAlignment
int32_t ___m_textAlignment_84;
// TMPro.TextAlignmentOptions TMPro.TMP_Text::m_lineJustification
int32_t ___m_lineJustification_85;
// TMPro.TMP_RichTextTagStack`1<TMPro.TextAlignmentOptions> TMPro.TMP_Text::m_lineJustificationStack
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___m_lineJustificationStack_86;
// UnityEngine.Vector3[] TMPro.TMP_Text::m_textContainerLocalCorners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___m_textContainerLocalCorners_87;
// System.Single TMPro.TMP_Text::m_characterSpacing
float ___m_characterSpacing_88;
// System.Single TMPro.TMP_Text::m_cSpacing
float ___m_cSpacing_89;
// System.Single TMPro.TMP_Text::m_monoSpacing
float ___m_monoSpacing_90;
// System.Single TMPro.TMP_Text::m_wordSpacing
float ___m_wordSpacing_91;
// System.Single TMPro.TMP_Text::m_lineSpacing
float ___m_lineSpacing_92;
// System.Single TMPro.TMP_Text::m_lineSpacingDelta
float ___m_lineSpacingDelta_93;
// System.Single TMPro.TMP_Text::m_lineHeight
float ___m_lineHeight_94;
// System.Single TMPro.TMP_Text::m_lineSpacingMax
float ___m_lineSpacingMax_95;
// System.Single TMPro.TMP_Text::m_paragraphSpacing
float ___m_paragraphSpacing_96;
// System.Single TMPro.TMP_Text::m_charWidthMaxAdj
float ___m_charWidthMaxAdj_97;
// System.Single TMPro.TMP_Text::m_charWidthAdjDelta
float ___m_charWidthAdjDelta_98;
// System.Boolean TMPro.TMP_Text::m_enableWordWrapping
bool ___m_enableWordWrapping_99;
// System.Boolean TMPro.TMP_Text::m_isCharacterWrappingEnabled
bool ___m_isCharacterWrappingEnabled_100;
// System.Boolean TMPro.TMP_Text::m_isNonBreakingSpace
bool ___m_isNonBreakingSpace_101;
// System.Boolean TMPro.TMP_Text::m_isIgnoringAlignment
bool ___m_isIgnoringAlignment_102;
// System.Single TMPro.TMP_Text::m_wordWrappingRatios
float ___m_wordWrappingRatios_103;
// TMPro.TextOverflowModes TMPro.TMP_Text::m_overflowMode
int32_t ___m_overflowMode_104;
// System.Int32 TMPro.TMP_Text::m_firstOverflowCharacterIndex
int32_t ___m_firstOverflowCharacterIndex_105;
// TMPro.TMP_Text TMPro.TMP_Text::m_linkedTextComponent
TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * ___m_linkedTextComponent_106;
// System.Boolean TMPro.TMP_Text::m_isLinkedTextComponent
bool ___m_isLinkedTextComponent_107;
// System.Boolean TMPro.TMP_Text::m_isTextTruncated
bool ___m_isTextTruncated_108;
// System.Boolean TMPro.TMP_Text::m_enableKerning
bool ___m_enableKerning_109;
// System.Boolean TMPro.TMP_Text::m_enableExtraPadding
bool ___m_enableExtraPadding_110;
// System.Boolean TMPro.TMP_Text::checkPaddingRequired
bool ___checkPaddingRequired_111;
// System.Boolean TMPro.TMP_Text::m_isRichText
bool ___m_isRichText_112;
// System.Boolean TMPro.TMP_Text::m_parseCtrlCharacters
bool ___m_parseCtrlCharacters_113;
// System.Boolean TMPro.TMP_Text::m_isOverlay
bool ___m_isOverlay_114;
// System.Boolean TMPro.TMP_Text::m_isOrthographic
bool ___m_isOrthographic_115;
// System.Boolean TMPro.TMP_Text::m_isCullingEnabled
bool ___m_isCullingEnabled_116;
// System.Boolean TMPro.TMP_Text::m_ignoreRectMaskCulling
bool ___m_ignoreRectMaskCulling_117;
// System.Boolean TMPro.TMP_Text::m_ignoreCulling
bool ___m_ignoreCulling_118;
// TMPro.TextureMappingOptions TMPro.TMP_Text::m_horizontalMapping
int32_t ___m_horizontalMapping_119;
// TMPro.TextureMappingOptions TMPro.TMP_Text::m_verticalMapping
int32_t ___m_verticalMapping_120;
// System.Single TMPro.TMP_Text::m_uvLineOffset
float ___m_uvLineOffset_121;
// TMPro.TextRenderFlags TMPro.TMP_Text::m_renderMode
int32_t ___m_renderMode_122;
// TMPro.VertexSortingOrder TMPro.TMP_Text::m_geometrySortingOrder
int32_t ___m_geometrySortingOrder_123;
// System.Boolean TMPro.TMP_Text::m_VertexBufferAutoSizeReduction
bool ___m_VertexBufferAutoSizeReduction_124;
// System.Int32 TMPro.TMP_Text::m_firstVisibleCharacter
int32_t ___m_firstVisibleCharacter_125;
// System.Int32 TMPro.TMP_Text::m_maxVisibleCharacters
int32_t ___m_maxVisibleCharacters_126;
// System.Int32 TMPro.TMP_Text::m_maxVisibleWords
int32_t ___m_maxVisibleWords_127;
// System.Int32 TMPro.TMP_Text::m_maxVisibleLines
int32_t ___m_maxVisibleLines_128;
// System.Boolean TMPro.TMP_Text::m_useMaxVisibleDescender
bool ___m_useMaxVisibleDescender_129;
// System.Int32 TMPro.TMP_Text::m_pageToDisplay
int32_t ___m_pageToDisplay_130;
// System.Boolean TMPro.TMP_Text::m_isNewPage
bool ___m_isNewPage_131;
// UnityEngine.Vector4 TMPro.TMP_Text::m_margin
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___m_margin_132;
// System.Single TMPro.TMP_Text::m_marginLeft
float ___m_marginLeft_133;
// System.Single TMPro.TMP_Text::m_marginRight
float ___m_marginRight_134;
// System.Single TMPro.TMP_Text::m_marginWidth
float ___m_marginWidth_135;
// System.Single TMPro.TMP_Text::m_marginHeight
float ___m_marginHeight_136;
// System.Single TMPro.TMP_Text::m_width
float ___m_width_137;
// TMPro.TMP_TextInfo TMPro.TMP_Text::m_textInfo
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___m_textInfo_138;
// System.Boolean TMPro.TMP_Text::m_havePropertiesChanged
bool ___m_havePropertiesChanged_139;
// System.Boolean TMPro.TMP_Text::m_isUsingLegacyAnimationComponent
bool ___m_isUsingLegacyAnimationComponent_140;
// UnityEngine.Transform TMPro.TMP_Text::m_transform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_transform_141;
// UnityEngine.RectTransform TMPro.TMP_Text::m_rectTransform
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_rectTransform_142;
// System.Boolean TMPro.TMP_Text::<autoSizeTextContainer>k__BackingField
bool ___U3CautoSizeTextContainerU3Ek__BackingField_143;
// System.Boolean TMPro.TMP_Text::m_autoSizeTextContainer
bool ___m_autoSizeTextContainer_144;
// UnityEngine.Mesh TMPro.TMP_Text::m_mesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___m_mesh_145;
// System.Boolean TMPro.TMP_Text::m_isVolumetricText
bool ___m_isVolumetricText_146;
// TMPro.TMP_SpriteAnimator TMPro.TMP_Text::m_spriteAnimator
TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 * ___m_spriteAnimator_147;
// System.Single TMPro.TMP_Text::m_flexibleHeight
float ___m_flexibleHeight_148;
// System.Single TMPro.TMP_Text::m_flexibleWidth
float ___m_flexibleWidth_149;
// System.Single TMPro.TMP_Text::m_minWidth
float ___m_minWidth_150;
// System.Single TMPro.TMP_Text::m_minHeight
float ___m_minHeight_151;
// System.Single TMPro.TMP_Text::m_maxWidth
float ___m_maxWidth_152;
// System.Single TMPro.TMP_Text::m_maxHeight
float ___m_maxHeight_153;
// UnityEngine.UI.LayoutElement TMPro.TMP_Text::m_LayoutElement
LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B * ___m_LayoutElement_154;
// System.Single TMPro.TMP_Text::m_preferredWidth
float ___m_preferredWidth_155;
// System.Single TMPro.TMP_Text::m_renderedWidth
float ___m_renderedWidth_156;
// System.Boolean TMPro.TMP_Text::m_isPreferredWidthDirty
bool ___m_isPreferredWidthDirty_157;
// System.Single TMPro.TMP_Text::m_preferredHeight
float ___m_preferredHeight_158;
// System.Single TMPro.TMP_Text::m_renderedHeight
float ___m_renderedHeight_159;
// System.Boolean TMPro.TMP_Text::m_isPreferredHeightDirty
bool ___m_isPreferredHeightDirty_160;
// System.Boolean TMPro.TMP_Text::m_isCalculatingPreferredValues
bool ___m_isCalculatingPreferredValues_161;
// System.Int32 TMPro.TMP_Text::m_recursiveCount
int32_t ___m_recursiveCount_162;
// System.Int32 TMPro.TMP_Text::m_layoutPriority
int32_t ___m_layoutPriority_163;
// System.Boolean TMPro.TMP_Text::m_isCalculateSizeRequired
bool ___m_isCalculateSizeRequired_164;
// System.Boolean TMPro.TMP_Text::m_isLayoutDirty
bool ___m_isLayoutDirty_165;
// System.Boolean TMPro.TMP_Text::m_verticesAlreadyDirty
bool ___m_verticesAlreadyDirty_166;
// System.Boolean TMPro.TMP_Text::m_layoutAlreadyDirty
bool ___m_layoutAlreadyDirty_167;
// System.Boolean TMPro.TMP_Text::m_isAwake
bool ___m_isAwake_168;
// System.Boolean TMPro.TMP_Text::m_isWaitingOnResourceLoad
bool ___m_isWaitingOnResourceLoad_169;
// System.Boolean TMPro.TMP_Text::m_isInputParsingRequired
bool ___m_isInputParsingRequired_170;
// TMPro.TMP_Text_TextInputSources TMPro.TMP_Text::m_inputSource
int32_t ___m_inputSource_171;
// System.String TMPro.TMP_Text::old_text
String_t* ___old_text_172;
// System.Single TMPro.TMP_Text::m_fontScale
float ___m_fontScale_173;
// System.Single TMPro.TMP_Text::m_fontScaleMultiplier
float ___m_fontScaleMultiplier_174;
// System.Char[] TMPro.TMP_Text::m_htmlTag
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___m_htmlTag_175;
// TMPro.RichTextTagAttribute[] TMPro.TMP_Text::m_xmlAttribute
RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652* ___m_xmlAttribute_176;
// System.Single[] TMPro.TMP_Text::m_attributeParameterValues
SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* ___m_attributeParameterValues_177;
// System.Single TMPro.TMP_Text::tag_LineIndent
float ___tag_LineIndent_178;
// System.Single TMPro.TMP_Text::tag_Indent
float ___tag_Indent_179;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.TMP_Text::m_indentStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___m_indentStack_180;
// System.Boolean TMPro.TMP_Text::tag_NoParsing
bool ___tag_NoParsing_181;
// System.Boolean TMPro.TMP_Text::m_isParsingText
bool ___m_isParsingText_182;
// UnityEngine.Matrix4x4 TMPro.TMP_Text::m_FXMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___m_FXMatrix_183;
// System.Boolean TMPro.TMP_Text::m_isFXMatrixSet
bool ___m_isFXMatrixSet_184;
// TMPro.TMP_Text_UnicodeChar[] TMPro.TMP_Text::m_TextParsingBuffer
UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505* ___m_TextParsingBuffer_185;
// TMPro.TMP_CharacterInfo[] TMPro.TMP_Text::m_internalCharacterInfo
TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604* ___m_internalCharacterInfo_186;
// System.Char[] TMPro.TMP_Text::m_input_CharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___m_input_CharArray_187;
// System.Int32 TMPro.TMP_Text::m_charArray_Length
int32_t ___m_charArray_Length_188;
// System.Int32 TMPro.TMP_Text::m_totalCharacterCount
int32_t ___m_totalCharacterCount_189;
// TMPro.WordWrapState TMPro.TMP_Text::m_SavedWordWrapState
WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 ___m_SavedWordWrapState_190;
// TMPro.WordWrapState TMPro.TMP_Text::m_SavedLineState
WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 ___m_SavedLineState_191;
// System.Int32 TMPro.TMP_Text::m_characterCount
int32_t ___m_characterCount_192;
// System.Int32 TMPro.TMP_Text::m_firstCharacterOfLine
int32_t ___m_firstCharacterOfLine_193;
// System.Int32 TMPro.TMP_Text::m_firstVisibleCharacterOfLine
int32_t ___m_firstVisibleCharacterOfLine_194;
// System.Int32 TMPro.TMP_Text::m_lastCharacterOfLine
int32_t ___m_lastCharacterOfLine_195;
// System.Int32 TMPro.TMP_Text::m_lastVisibleCharacterOfLine
int32_t ___m_lastVisibleCharacterOfLine_196;
// System.Int32 TMPro.TMP_Text::m_lineNumber
int32_t ___m_lineNumber_197;
// System.Int32 TMPro.TMP_Text::m_lineVisibleCharacterCount
int32_t ___m_lineVisibleCharacterCount_198;
// System.Int32 TMPro.TMP_Text::m_pageNumber
int32_t ___m_pageNumber_199;
// System.Single TMPro.TMP_Text::m_maxAscender
float ___m_maxAscender_200;
// System.Single TMPro.TMP_Text::m_maxCapHeight
float ___m_maxCapHeight_201;
// System.Single TMPro.TMP_Text::m_maxDescender
float ___m_maxDescender_202;
// System.Single TMPro.TMP_Text::m_maxLineAscender
float ___m_maxLineAscender_203;
// System.Single TMPro.TMP_Text::m_maxLineDescender
float ___m_maxLineDescender_204;
// System.Single TMPro.TMP_Text::m_startOfLineAscender
float ___m_startOfLineAscender_205;
// System.Single TMPro.TMP_Text::m_lineOffset
float ___m_lineOffset_206;
// TMPro.Extents TMPro.TMP_Text::m_meshExtents
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___m_meshExtents_207;
// UnityEngine.Color32 TMPro.TMP_Text::m_htmlColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_htmlColor_208;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_colorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_colorStack_209;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_underlineColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_underlineColorStack_210;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_strikethroughColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_strikethroughColorStack_211;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_highlightColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_highlightColorStack_212;
// TMPro.TMP_ColorGradient TMPro.TMP_Text::m_colorGradientPreset
TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * ___m_colorGradientPreset_213;
// TMPro.TMP_RichTextTagStack`1<TMPro.TMP_ColorGradient> TMPro.TMP_Text::m_colorGradientStack
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___m_colorGradientStack_214;
// System.Single TMPro.TMP_Text::m_tabSpacing
float ___m_tabSpacing_215;
// System.Single TMPro.TMP_Text::m_spacing
float ___m_spacing_216;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.TMP_Text::m_styleStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___m_styleStack_217;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.TMP_Text::m_actionStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___m_actionStack_218;
// System.Single TMPro.TMP_Text::m_padding
float ___m_padding_219;
// System.Single TMPro.TMP_Text::m_baselineOffset
float ___m_baselineOffset_220;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.TMP_Text::m_baselineOffsetStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___m_baselineOffsetStack_221;
// System.Single TMPro.TMP_Text::m_xAdvance
float ___m_xAdvance_222;
// TMPro.TMP_TextElementType TMPro.TMP_Text::m_textElementType
int32_t ___m_textElementType_223;
// TMPro.TMP_TextElement TMPro.TMP_Text::m_cached_TextElement
TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 * ___m_cached_TextElement_224;
// TMPro.TMP_Character TMPro.TMP_Text::m_cached_Underline_Character
TMP_Character_t1875AACA978396521498D6A699052C187903553D * ___m_cached_Underline_Character_225;
// TMPro.TMP_Character TMPro.TMP_Text::m_cached_Ellipsis_Character
TMP_Character_t1875AACA978396521498D6A699052C187903553D * ___m_cached_Ellipsis_Character_226;
// TMPro.TMP_SpriteAsset TMPro.TMP_Text::m_defaultSpriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___m_defaultSpriteAsset_227;
// TMPro.TMP_SpriteAsset TMPro.TMP_Text::m_currentSpriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___m_currentSpriteAsset_228;
// System.Int32 TMPro.TMP_Text::m_spriteCount
int32_t ___m_spriteCount_229;
// System.Int32 TMPro.TMP_Text::m_spriteIndex
int32_t ___m_spriteIndex_230;
// System.Int32 TMPro.TMP_Text::m_spriteAnimationID
int32_t ___m_spriteAnimationID_231;
// System.Boolean TMPro.TMP_Text::m_ignoreActiveState
bool ___m_ignoreActiveState_232;
// System.Single[] TMPro.TMP_Text::k_Power
SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* ___k_Power_233;
public:
inline static int32_t get_offset_of_m_text_34() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_text_34)); }
inline String_t* get_m_text_34() const { return ___m_text_34; }
inline String_t** get_address_of_m_text_34() { return &___m_text_34; }
inline void set_m_text_34(String_t* value)
{
___m_text_34 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_text_34), (void*)value);
}
inline static int32_t get_offset_of_m_isRightToLeft_35() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isRightToLeft_35)); }
inline bool get_m_isRightToLeft_35() const { return ___m_isRightToLeft_35; }
inline bool* get_address_of_m_isRightToLeft_35() { return &___m_isRightToLeft_35; }
inline void set_m_isRightToLeft_35(bool value)
{
___m_isRightToLeft_35 = value;
}
inline static int32_t get_offset_of_m_fontAsset_36() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontAsset_36)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_m_fontAsset_36() const { return ___m_fontAsset_36; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_m_fontAsset_36() { return &___m_fontAsset_36; }
inline void set_m_fontAsset_36(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___m_fontAsset_36 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontAsset_36), (void*)value);
}
inline static int32_t get_offset_of_m_currentFontAsset_37() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentFontAsset_37)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_m_currentFontAsset_37() const { return ___m_currentFontAsset_37; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_m_currentFontAsset_37() { return &___m_currentFontAsset_37; }
inline void set_m_currentFontAsset_37(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___m_currentFontAsset_37 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_currentFontAsset_37), (void*)value);
}
inline static int32_t get_offset_of_m_isSDFShader_38() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isSDFShader_38)); }
inline bool get_m_isSDFShader_38() const { return ___m_isSDFShader_38; }
inline bool* get_address_of_m_isSDFShader_38() { return &___m_isSDFShader_38; }
inline void set_m_isSDFShader_38(bool value)
{
___m_isSDFShader_38 = value;
}
inline static int32_t get_offset_of_m_sharedMaterial_39() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_sharedMaterial_39)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_sharedMaterial_39() const { return ___m_sharedMaterial_39; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_sharedMaterial_39() { return &___m_sharedMaterial_39; }
inline void set_m_sharedMaterial_39(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_sharedMaterial_39 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_sharedMaterial_39), (void*)value);
}
inline static int32_t get_offset_of_m_currentMaterial_40() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentMaterial_40)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_currentMaterial_40() const { return ___m_currentMaterial_40; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_currentMaterial_40() { return &___m_currentMaterial_40; }
inline void set_m_currentMaterial_40(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_currentMaterial_40 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_currentMaterial_40), (void*)value);
}
inline static int32_t get_offset_of_m_materialReferences_41() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_materialReferences_41)); }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* get_m_materialReferences_41() const { return ___m_materialReferences_41; }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B** get_address_of_m_materialReferences_41() { return &___m_materialReferences_41; }
inline void set_m_materialReferences_41(MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* value)
{
___m_materialReferences_41 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_materialReferences_41), (void*)value);
}
inline static int32_t get_offset_of_m_materialReferenceIndexLookup_42() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_materialReferenceIndexLookup_42)); }
inline Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 * get_m_materialReferenceIndexLookup_42() const { return ___m_materialReferenceIndexLookup_42; }
inline Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 ** get_address_of_m_materialReferenceIndexLookup_42() { return &___m_materialReferenceIndexLookup_42; }
inline void set_m_materialReferenceIndexLookup_42(Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 * value)
{
___m_materialReferenceIndexLookup_42 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_materialReferenceIndexLookup_42), (void*)value);
}
inline static int32_t get_offset_of_m_materialReferenceStack_43() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_materialReferenceStack_43)); }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 get_m_materialReferenceStack_43() const { return ___m_materialReferenceStack_43; }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 * get_address_of_m_materialReferenceStack_43() { return &___m_materialReferenceStack_43; }
inline void set_m_materialReferenceStack_43(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 value)
{
___m_materialReferenceStack_43 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_materialReferenceStack_43))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_currentMaterialIndex_44() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentMaterialIndex_44)); }
inline int32_t get_m_currentMaterialIndex_44() const { return ___m_currentMaterialIndex_44; }
inline int32_t* get_address_of_m_currentMaterialIndex_44() { return &___m_currentMaterialIndex_44; }
inline void set_m_currentMaterialIndex_44(int32_t value)
{
___m_currentMaterialIndex_44 = value;
}
inline static int32_t get_offset_of_m_fontSharedMaterials_45() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSharedMaterials_45)); }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* get_m_fontSharedMaterials_45() const { return ___m_fontSharedMaterials_45; }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398** get_address_of_m_fontSharedMaterials_45() { return &___m_fontSharedMaterials_45; }
inline void set_m_fontSharedMaterials_45(MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* value)
{
___m_fontSharedMaterials_45 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontSharedMaterials_45), (void*)value);
}
inline static int32_t get_offset_of_m_fontMaterial_46() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontMaterial_46)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_fontMaterial_46() const { return ___m_fontMaterial_46; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_fontMaterial_46() { return &___m_fontMaterial_46; }
inline void set_m_fontMaterial_46(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_fontMaterial_46 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontMaterial_46), (void*)value);
}
inline static int32_t get_offset_of_m_fontMaterials_47() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontMaterials_47)); }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* get_m_fontMaterials_47() const { return ___m_fontMaterials_47; }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398** get_address_of_m_fontMaterials_47() { return &___m_fontMaterials_47; }
inline void set_m_fontMaterials_47(MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* value)
{
___m_fontMaterials_47 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontMaterials_47), (void*)value);
}
inline static int32_t get_offset_of_m_isMaterialDirty_48() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isMaterialDirty_48)); }
inline bool get_m_isMaterialDirty_48() const { return ___m_isMaterialDirty_48; }
inline bool* get_address_of_m_isMaterialDirty_48() { return &___m_isMaterialDirty_48; }
inline void set_m_isMaterialDirty_48(bool value)
{
___m_isMaterialDirty_48 = value;
}
inline static int32_t get_offset_of_m_fontColor32_49() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColor32_49)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_fontColor32_49() const { return ___m_fontColor32_49; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_fontColor32_49() { return &___m_fontColor32_49; }
inline void set_m_fontColor32_49(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_fontColor32_49 = value;
}
inline static int32_t get_offset_of_m_fontColor_50() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColor_50)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_fontColor_50() const { return ___m_fontColor_50; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_fontColor_50() { return &___m_fontColor_50; }
inline void set_m_fontColor_50(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_fontColor_50 = value;
}
inline static int32_t get_offset_of_m_underlineColor_52() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_underlineColor_52)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_underlineColor_52() const { return ___m_underlineColor_52; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_underlineColor_52() { return &___m_underlineColor_52; }
inline void set_m_underlineColor_52(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_underlineColor_52 = value;
}
inline static int32_t get_offset_of_m_strikethroughColor_53() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_strikethroughColor_53)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_strikethroughColor_53() const { return ___m_strikethroughColor_53; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_strikethroughColor_53() { return &___m_strikethroughColor_53; }
inline void set_m_strikethroughColor_53(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_strikethroughColor_53 = value;
}
inline static int32_t get_offset_of_m_highlightColor_54() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_highlightColor_54)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_highlightColor_54() const { return ___m_highlightColor_54; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_highlightColor_54() { return &___m_highlightColor_54; }
inline void set_m_highlightColor_54(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_highlightColor_54 = value;
}
inline static int32_t get_offset_of_m_highlightPadding_55() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_highlightPadding_55)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_m_highlightPadding_55() const { return ___m_highlightPadding_55; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_m_highlightPadding_55() { return &___m_highlightPadding_55; }
inline void set_m_highlightPadding_55(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___m_highlightPadding_55 = value;
}
inline static int32_t get_offset_of_m_enableVertexGradient_56() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableVertexGradient_56)); }
inline bool get_m_enableVertexGradient_56() const { return ___m_enableVertexGradient_56; }
inline bool* get_address_of_m_enableVertexGradient_56() { return &___m_enableVertexGradient_56; }
inline void set_m_enableVertexGradient_56(bool value)
{
___m_enableVertexGradient_56 = value;
}
inline static int32_t get_offset_of_m_colorMode_57() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorMode_57)); }
inline int32_t get_m_colorMode_57() const { return ___m_colorMode_57; }
inline int32_t* get_address_of_m_colorMode_57() { return &___m_colorMode_57; }
inline void set_m_colorMode_57(int32_t value)
{
___m_colorMode_57 = value;
}
inline static int32_t get_offset_of_m_fontColorGradient_58() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColorGradient_58)); }
inline VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A get_m_fontColorGradient_58() const { return ___m_fontColorGradient_58; }
inline VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A * get_address_of_m_fontColorGradient_58() { return &___m_fontColorGradient_58; }
inline void set_m_fontColorGradient_58(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A value)
{
___m_fontColorGradient_58 = value;
}
inline static int32_t get_offset_of_m_fontColorGradientPreset_59() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColorGradientPreset_59)); }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * get_m_fontColorGradientPreset_59() const { return ___m_fontColorGradientPreset_59; }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 ** get_address_of_m_fontColorGradientPreset_59() { return &___m_fontColorGradientPreset_59; }
inline void set_m_fontColorGradientPreset_59(TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * value)
{
___m_fontColorGradientPreset_59 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontColorGradientPreset_59), (void*)value);
}
inline static int32_t get_offset_of_m_spriteAsset_60() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteAsset_60)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_m_spriteAsset_60() const { return ___m_spriteAsset_60; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_m_spriteAsset_60() { return &___m_spriteAsset_60; }
inline void set_m_spriteAsset_60(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___m_spriteAsset_60 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_spriteAsset_60), (void*)value);
}
inline static int32_t get_offset_of_m_tintAllSprites_61() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_tintAllSprites_61)); }
inline bool get_m_tintAllSprites_61() const { return ___m_tintAllSprites_61; }
inline bool* get_address_of_m_tintAllSprites_61() { return &___m_tintAllSprites_61; }
inline void set_m_tintAllSprites_61(bool value)
{
___m_tintAllSprites_61 = value;
}
inline static int32_t get_offset_of_m_tintSprite_62() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_tintSprite_62)); }
inline bool get_m_tintSprite_62() const { return ___m_tintSprite_62; }
inline bool* get_address_of_m_tintSprite_62() { return &___m_tintSprite_62; }
inline void set_m_tintSprite_62(bool value)
{
___m_tintSprite_62 = value;
}
inline static int32_t get_offset_of_m_spriteColor_63() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteColor_63)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_spriteColor_63() const { return ___m_spriteColor_63; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_spriteColor_63() { return &___m_spriteColor_63; }
inline void set_m_spriteColor_63(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_spriteColor_63 = value;
}
inline static int32_t get_offset_of_m_overrideHtmlColors_64() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_overrideHtmlColors_64)); }
inline bool get_m_overrideHtmlColors_64() const { return ___m_overrideHtmlColors_64; }
inline bool* get_address_of_m_overrideHtmlColors_64() { return &___m_overrideHtmlColors_64; }
inline void set_m_overrideHtmlColors_64(bool value)
{
___m_overrideHtmlColors_64 = value;
}
inline static int32_t get_offset_of_m_faceColor_65() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_faceColor_65)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_faceColor_65() const { return ___m_faceColor_65; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_faceColor_65() { return &___m_faceColor_65; }
inline void set_m_faceColor_65(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_faceColor_65 = value;
}
inline static int32_t get_offset_of_m_outlineColor_66() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_outlineColor_66)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_outlineColor_66() const { return ___m_outlineColor_66; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_outlineColor_66() { return &___m_outlineColor_66; }
inline void set_m_outlineColor_66(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_outlineColor_66 = value;
}
inline static int32_t get_offset_of_m_outlineWidth_67() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_outlineWidth_67)); }
inline float get_m_outlineWidth_67() const { return ___m_outlineWidth_67; }
inline float* get_address_of_m_outlineWidth_67() { return &___m_outlineWidth_67; }
inline void set_m_outlineWidth_67(float value)
{
___m_outlineWidth_67 = value;
}
inline static int32_t get_offset_of_m_fontSize_68() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSize_68)); }
inline float get_m_fontSize_68() const { return ___m_fontSize_68; }
inline float* get_address_of_m_fontSize_68() { return &___m_fontSize_68; }
inline void set_m_fontSize_68(float value)
{
___m_fontSize_68 = value;
}
inline static int32_t get_offset_of_m_currentFontSize_69() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentFontSize_69)); }
inline float get_m_currentFontSize_69() const { return ___m_currentFontSize_69; }
inline float* get_address_of_m_currentFontSize_69() { return &___m_currentFontSize_69; }
inline void set_m_currentFontSize_69(float value)
{
___m_currentFontSize_69 = value;
}
inline static int32_t get_offset_of_m_fontSizeBase_70() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSizeBase_70)); }
inline float get_m_fontSizeBase_70() const { return ___m_fontSizeBase_70; }
inline float* get_address_of_m_fontSizeBase_70() { return &___m_fontSizeBase_70; }
inline void set_m_fontSizeBase_70(float value)
{
___m_fontSizeBase_70 = value;
}
inline static int32_t get_offset_of_m_sizeStack_71() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_sizeStack_71)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_m_sizeStack_71() const { return ___m_sizeStack_71; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_m_sizeStack_71() { return &___m_sizeStack_71; }
inline void set_m_sizeStack_71(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___m_sizeStack_71 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_sizeStack_71))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_fontWeight_72() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontWeight_72)); }
inline int32_t get_m_fontWeight_72() const { return ___m_fontWeight_72; }
inline int32_t* get_address_of_m_fontWeight_72() { return &___m_fontWeight_72; }
inline void set_m_fontWeight_72(int32_t value)
{
___m_fontWeight_72 = value;
}
inline static int32_t get_offset_of_m_FontWeightInternal_73() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FontWeightInternal_73)); }
inline int32_t get_m_FontWeightInternal_73() const { return ___m_FontWeightInternal_73; }
inline int32_t* get_address_of_m_FontWeightInternal_73() { return &___m_FontWeightInternal_73; }
inline void set_m_FontWeightInternal_73(int32_t value)
{
___m_FontWeightInternal_73 = value;
}
inline static int32_t get_offset_of_m_FontWeightStack_74() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FontWeightStack_74)); }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B get_m_FontWeightStack_74() const { return ___m_FontWeightStack_74; }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B * get_address_of_m_FontWeightStack_74() { return &___m_FontWeightStack_74; }
inline void set_m_FontWeightStack_74(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B value)
{
___m_FontWeightStack_74 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_FontWeightStack_74))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_enableAutoSizing_75() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableAutoSizing_75)); }
inline bool get_m_enableAutoSizing_75() const { return ___m_enableAutoSizing_75; }
inline bool* get_address_of_m_enableAutoSizing_75() { return &___m_enableAutoSizing_75; }
inline void set_m_enableAutoSizing_75(bool value)
{
___m_enableAutoSizing_75 = value;
}
inline static int32_t get_offset_of_m_maxFontSize_76() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxFontSize_76)); }
inline float get_m_maxFontSize_76() const { return ___m_maxFontSize_76; }
inline float* get_address_of_m_maxFontSize_76() { return &___m_maxFontSize_76; }
inline void set_m_maxFontSize_76(float value)
{
___m_maxFontSize_76 = value;
}
inline static int32_t get_offset_of_m_minFontSize_77() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_minFontSize_77)); }
inline float get_m_minFontSize_77() const { return ___m_minFontSize_77; }
inline float* get_address_of_m_minFontSize_77() { return &___m_minFontSize_77; }
inline void set_m_minFontSize_77(float value)
{
___m_minFontSize_77 = value;
}
inline static int32_t get_offset_of_m_fontSizeMin_78() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSizeMin_78)); }
inline float get_m_fontSizeMin_78() const { return ___m_fontSizeMin_78; }
inline float* get_address_of_m_fontSizeMin_78() { return &___m_fontSizeMin_78; }
inline void set_m_fontSizeMin_78(float value)
{
___m_fontSizeMin_78 = value;
}
inline static int32_t get_offset_of_m_fontSizeMax_79() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSizeMax_79)); }
inline float get_m_fontSizeMax_79() const { return ___m_fontSizeMax_79; }
inline float* get_address_of_m_fontSizeMax_79() { return &___m_fontSizeMax_79; }
inline void set_m_fontSizeMax_79(float value)
{
___m_fontSizeMax_79 = value;
}
inline static int32_t get_offset_of_m_fontStyle_80() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontStyle_80)); }
inline int32_t get_m_fontStyle_80() const { return ___m_fontStyle_80; }
inline int32_t* get_address_of_m_fontStyle_80() { return &___m_fontStyle_80; }
inline void set_m_fontStyle_80(int32_t value)
{
___m_fontStyle_80 = value;
}
inline static int32_t get_offset_of_m_FontStyleInternal_81() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FontStyleInternal_81)); }
inline int32_t get_m_FontStyleInternal_81() const { return ___m_FontStyleInternal_81; }
inline int32_t* get_address_of_m_FontStyleInternal_81() { return &___m_FontStyleInternal_81; }
inline void set_m_FontStyleInternal_81(int32_t value)
{
___m_FontStyleInternal_81 = value;
}
inline static int32_t get_offset_of_m_fontStyleStack_82() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontStyleStack_82)); }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 get_m_fontStyleStack_82() const { return ___m_fontStyleStack_82; }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 * get_address_of_m_fontStyleStack_82() { return &___m_fontStyleStack_82; }
inline void set_m_fontStyleStack_82(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 value)
{
___m_fontStyleStack_82 = value;
}
inline static int32_t get_offset_of_m_isUsingBold_83() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isUsingBold_83)); }
inline bool get_m_isUsingBold_83() const { return ___m_isUsingBold_83; }
inline bool* get_address_of_m_isUsingBold_83() { return &___m_isUsingBold_83; }
inline void set_m_isUsingBold_83(bool value)
{
___m_isUsingBold_83 = value;
}
inline static int32_t get_offset_of_m_textAlignment_84() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textAlignment_84)); }
inline int32_t get_m_textAlignment_84() const { return ___m_textAlignment_84; }
inline int32_t* get_address_of_m_textAlignment_84() { return &___m_textAlignment_84; }
inline void set_m_textAlignment_84(int32_t value)
{
___m_textAlignment_84 = value;
}
inline static int32_t get_offset_of_m_lineJustification_85() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineJustification_85)); }
inline int32_t get_m_lineJustification_85() const { return ___m_lineJustification_85; }
inline int32_t* get_address_of_m_lineJustification_85() { return &___m_lineJustification_85; }
inline void set_m_lineJustification_85(int32_t value)
{
___m_lineJustification_85 = value;
}
inline static int32_t get_offset_of_m_lineJustificationStack_86() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineJustificationStack_86)); }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 get_m_lineJustificationStack_86() const { return ___m_lineJustificationStack_86; }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 * get_address_of_m_lineJustificationStack_86() { return &___m_lineJustificationStack_86; }
inline void set_m_lineJustificationStack_86(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 value)
{
___m_lineJustificationStack_86 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_lineJustificationStack_86))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_textContainerLocalCorners_87() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textContainerLocalCorners_87)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_m_textContainerLocalCorners_87() const { return ___m_textContainerLocalCorners_87; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_m_textContainerLocalCorners_87() { return &___m_textContainerLocalCorners_87; }
inline void set_m_textContainerLocalCorners_87(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___m_textContainerLocalCorners_87 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_textContainerLocalCorners_87), (void*)value);
}
inline static int32_t get_offset_of_m_characterSpacing_88() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_characterSpacing_88)); }
inline float get_m_characterSpacing_88() const { return ___m_characterSpacing_88; }
inline float* get_address_of_m_characterSpacing_88() { return &___m_characterSpacing_88; }
inline void set_m_characterSpacing_88(float value)
{
___m_characterSpacing_88 = value;
}
inline static int32_t get_offset_of_m_cSpacing_89() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cSpacing_89)); }
inline float get_m_cSpacing_89() const { return ___m_cSpacing_89; }
inline float* get_address_of_m_cSpacing_89() { return &___m_cSpacing_89; }
inline void set_m_cSpacing_89(float value)
{
___m_cSpacing_89 = value;
}
inline static int32_t get_offset_of_m_monoSpacing_90() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_monoSpacing_90)); }
inline float get_m_monoSpacing_90() const { return ___m_monoSpacing_90; }
inline float* get_address_of_m_monoSpacing_90() { return &___m_monoSpacing_90; }
inline void set_m_monoSpacing_90(float value)
{
___m_monoSpacing_90 = value;
}
inline static int32_t get_offset_of_m_wordSpacing_91() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_wordSpacing_91)); }
inline float get_m_wordSpacing_91() const { return ___m_wordSpacing_91; }
inline float* get_address_of_m_wordSpacing_91() { return &___m_wordSpacing_91; }
inline void set_m_wordSpacing_91(float value)
{
___m_wordSpacing_91 = value;
}
inline static int32_t get_offset_of_m_lineSpacing_92() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineSpacing_92)); }
inline float get_m_lineSpacing_92() const { return ___m_lineSpacing_92; }
inline float* get_address_of_m_lineSpacing_92() { return &___m_lineSpacing_92; }
inline void set_m_lineSpacing_92(float value)
{
___m_lineSpacing_92 = value;
}
inline static int32_t get_offset_of_m_lineSpacingDelta_93() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineSpacingDelta_93)); }
inline float get_m_lineSpacingDelta_93() const { return ___m_lineSpacingDelta_93; }
inline float* get_address_of_m_lineSpacingDelta_93() { return &___m_lineSpacingDelta_93; }
inline void set_m_lineSpacingDelta_93(float value)
{
___m_lineSpacingDelta_93 = value;
}
inline static int32_t get_offset_of_m_lineHeight_94() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineHeight_94)); }
inline float get_m_lineHeight_94() const { return ___m_lineHeight_94; }
inline float* get_address_of_m_lineHeight_94() { return &___m_lineHeight_94; }
inline void set_m_lineHeight_94(float value)
{
___m_lineHeight_94 = value;
}
inline static int32_t get_offset_of_m_lineSpacingMax_95() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineSpacingMax_95)); }
inline float get_m_lineSpacingMax_95() const { return ___m_lineSpacingMax_95; }
inline float* get_address_of_m_lineSpacingMax_95() { return &___m_lineSpacingMax_95; }
inline void set_m_lineSpacingMax_95(float value)
{
___m_lineSpacingMax_95 = value;
}
inline static int32_t get_offset_of_m_paragraphSpacing_96() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_paragraphSpacing_96)); }
inline float get_m_paragraphSpacing_96() const { return ___m_paragraphSpacing_96; }
inline float* get_address_of_m_paragraphSpacing_96() { return &___m_paragraphSpacing_96; }
inline void set_m_paragraphSpacing_96(float value)
{
___m_paragraphSpacing_96 = value;
}
inline static int32_t get_offset_of_m_charWidthMaxAdj_97() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_charWidthMaxAdj_97)); }
inline float get_m_charWidthMaxAdj_97() const { return ___m_charWidthMaxAdj_97; }
inline float* get_address_of_m_charWidthMaxAdj_97() { return &___m_charWidthMaxAdj_97; }
inline void set_m_charWidthMaxAdj_97(float value)
{
___m_charWidthMaxAdj_97 = value;
}
inline static int32_t get_offset_of_m_charWidthAdjDelta_98() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_charWidthAdjDelta_98)); }
inline float get_m_charWidthAdjDelta_98() const { return ___m_charWidthAdjDelta_98; }
inline float* get_address_of_m_charWidthAdjDelta_98() { return &___m_charWidthAdjDelta_98; }
inline void set_m_charWidthAdjDelta_98(float value)
{
___m_charWidthAdjDelta_98 = value;
}
inline static int32_t get_offset_of_m_enableWordWrapping_99() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableWordWrapping_99)); }
inline bool get_m_enableWordWrapping_99() const { return ___m_enableWordWrapping_99; }
inline bool* get_address_of_m_enableWordWrapping_99() { return &___m_enableWordWrapping_99; }
inline void set_m_enableWordWrapping_99(bool value)
{
___m_enableWordWrapping_99 = value;
}
inline static int32_t get_offset_of_m_isCharacterWrappingEnabled_100() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCharacterWrappingEnabled_100)); }
inline bool get_m_isCharacterWrappingEnabled_100() const { return ___m_isCharacterWrappingEnabled_100; }
inline bool* get_address_of_m_isCharacterWrappingEnabled_100() { return &___m_isCharacterWrappingEnabled_100; }
inline void set_m_isCharacterWrappingEnabled_100(bool value)
{
___m_isCharacterWrappingEnabled_100 = value;
}
inline static int32_t get_offset_of_m_isNonBreakingSpace_101() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isNonBreakingSpace_101)); }
inline bool get_m_isNonBreakingSpace_101() const { return ___m_isNonBreakingSpace_101; }
inline bool* get_address_of_m_isNonBreakingSpace_101() { return &___m_isNonBreakingSpace_101; }
inline void set_m_isNonBreakingSpace_101(bool value)
{
___m_isNonBreakingSpace_101 = value;
}
inline static int32_t get_offset_of_m_isIgnoringAlignment_102() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isIgnoringAlignment_102)); }
inline bool get_m_isIgnoringAlignment_102() const { return ___m_isIgnoringAlignment_102; }
inline bool* get_address_of_m_isIgnoringAlignment_102() { return &___m_isIgnoringAlignment_102; }
inline void set_m_isIgnoringAlignment_102(bool value)
{
___m_isIgnoringAlignment_102 = value;
}
inline static int32_t get_offset_of_m_wordWrappingRatios_103() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_wordWrappingRatios_103)); }
inline float get_m_wordWrappingRatios_103() const { return ___m_wordWrappingRatios_103; }
inline float* get_address_of_m_wordWrappingRatios_103() { return &___m_wordWrappingRatios_103; }
inline void set_m_wordWrappingRatios_103(float value)
{
___m_wordWrappingRatios_103 = value;
}
inline static int32_t get_offset_of_m_overflowMode_104() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_overflowMode_104)); }
inline int32_t get_m_overflowMode_104() const { return ___m_overflowMode_104; }
inline int32_t* get_address_of_m_overflowMode_104() { return &___m_overflowMode_104; }
inline void set_m_overflowMode_104(int32_t value)
{
___m_overflowMode_104 = value;
}
inline static int32_t get_offset_of_m_firstOverflowCharacterIndex_105() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstOverflowCharacterIndex_105)); }
inline int32_t get_m_firstOverflowCharacterIndex_105() const { return ___m_firstOverflowCharacterIndex_105; }
inline int32_t* get_address_of_m_firstOverflowCharacterIndex_105() { return &___m_firstOverflowCharacterIndex_105; }
inline void set_m_firstOverflowCharacterIndex_105(int32_t value)
{
___m_firstOverflowCharacterIndex_105 = value;
}
inline static int32_t get_offset_of_m_linkedTextComponent_106() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_linkedTextComponent_106)); }
inline TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * get_m_linkedTextComponent_106() const { return ___m_linkedTextComponent_106; }
inline TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 ** get_address_of_m_linkedTextComponent_106() { return &___m_linkedTextComponent_106; }
inline void set_m_linkedTextComponent_106(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * value)
{
___m_linkedTextComponent_106 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_linkedTextComponent_106), (void*)value);
}
inline static int32_t get_offset_of_m_isLinkedTextComponent_107() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isLinkedTextComponent_107)); }
inline bool get_m_isLinkedTextComponent_107() const { return ___m_isLinkedTextComponent_107; }
inline bool* get_address_of_m_isLinkedTextComponent_107() { return &___m_isLinkedTextComponent_107; }
inline void set_m_isLinkedTextComponent_107(bool value)
{
___m_isLinkedTextComponent_107 = value;
}
inline static int32_t get_offset_of_m_isTextTruncated_108() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isTextTruncated_108)); }
inline bool get_m_isTextTruncated_108() const { return ___m_isTextTruncated_108; }
inline bool* get_address_of_m_isTextTruncated_108() { return &___m_isTextTruncated_108; }
inline void set_m_isTextTruncated_108(bool value)
{
___m_isTextTruncated_108 = value;
}
inline static int32_t get_offset_of_m_enableKerning_109() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableKerning_109)); }
inline bool get_m_enableKerning_109() const { return ___m_enableKerning_109; }
inline bool* get_address_of_m_enableKerning_109() { return &___m_enableKerning_109; }
inline void set_m_enableKerning_109(bool value)
{
___m_enableKerning_109 = value;
}
inline static int32_t get_offset_of_m_enableExtraPadding_110() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableExtraPadding_110)); }
inline bool get_m_enableExtraPadding_110() const { return ___m_enableExtraPadding_110; }
inline bool* get_address_of_m_enableExtraPadding_110() { return &___m_enableExtraPadding_110; }
inline void set_m_enableExtraPadding_110(bool value)
{
___m_enableExtraPadding_110 = value;
}
inline static int32_t get_offset_of_checkPaddingRequired_111() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___checkPaddingRequired_111)); }
inline bool get_checkPaddingRequired_111() const { return ___checkPaddingRequired_111; }
inline bool* get_address_of_checkPaddingRequired_111() { return &___checkPaddingRequired_111; }
inline void set_checkPaddingRequired_111(bool value)
{
___checkPaddingRequired_111 = value;
}
inline static int32_t get_offset_of_m_isRichText_112() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isRichText_112)); }
inline bool get_m_isRichText_112() const { return ___m_isRichText_112; }
inline bool* get_address_of_m_isRichText_112() { return &___m_isRichText_112; }
inline void set_m_isRichText_112(bool value)
{
___m_isRichText_112 = value;
}
inline static int32_t get_offset_of_m_parseCtrlCharacters_113() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_parseCtrlCharacters_113)); }
inline bool get_m_parseCtrlCharacters_113() const { return ___m_parseCtrlCharacters_113; }
inline bool* get_address_of_m_parseCtrlCharacters_113() { return &___m_parseCtrlCharacters_113; }
inline void set_m_parseCtrlCharacters_113(bool value)
{
___m_parseCtrlCharacters_113 = value;
}
inline static int32_t get_offset_of_m_isOverlay_114() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isOverlay_114)); }
inline bool get_m_isOverlay_114() const { return ___m_isOverlay_114; }
inline bool* get_address_of_m_isOverlay_114() { return &___m_isOverlay_114; }
inline void set_m_isOverlay_114(bool value)
{
___m_isOverlay_114 = value;
}
inline static int32_t get_offset_of_m_isOrthographic_115() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isOrthographic_115)); }
inline bool get_m_isOrthographic_115() const { return ___m_isOrthographic_115; }
inline bool* get_address_of_m_isOrthographic_115() { return &___m_isOrthographic_115; }
inline void set_m_isOrthographic_115(bool value)
{
___m_isOrthographic_115 = value;
}
inline static int32_t get_offset_of_m_isCullingEnabled_116() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCullingEnabled_116)); }
inline bool get_m_isCullingEnabled_116() const { return ___m_isCullingEnabled_116; }
inline bool* get_address_of_m_isCullingEnabled_116() { return &___m_isCullingEnabled_116; }
inline void set_m_isCullingEnabled_116(bool value)
{
___m_isCullingEnabled_116 = value;
}
inline static int32_t get_offset_of_m_ignoreRectMaskCulling_117() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_ignoreRectMaskCulling_117)); }
inline bool get_m_ignoreRectMaskCulling_117() const { return ___m_ignoreRectMaskCulling_117; }
inline bool* get_address_of_m_ignoreRectMaskCulling_117() { return &___m_ignoreRectMaskCulling_117; }
inline void set_m_ignoreRectMaskCulling_117(bool value)
{
___m_ignoreRectMaskCulling_117 = value;
}
inline static int32_t get_offset_of_m_ignoreCulling_118() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_ignoreCulling_118)); }
inline bool get_m_ignoreCulling_118() const { return ___m_ignoreCulling_118; }
inline bool* get_address_of_m_ignoreCulling_118() { return &___m_ignoreCulling_118; }
inline void set_m_ignoreCulling_118(bool value)
{
___m_ignoreCulling_118 = value;
}
inline static int32_t get_offset_of_m_horizontalMapping_119() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_horizontalMapping_119)); }
inline int32_t get_m_horizontalMapping_119() const { return ___m_horizontalMapping_119; }
inline int32_t* get_address_of_m_horizontalMapping_119() { return &___m_horizontalMapping_119; }
inline void set_m_horizontalMapping_119(int32_t value)
{
___m_horizontalMapping_119 = value;
}
inline static int32_t get_offset_of_m_verticalMapping_120() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_verticalMapping_120)); }
inline int32_t get_m_verticalMapping_120() const { return ___m_verticalMapping_120; }
inline int32_t* get_address_of_m_verticalMapping_120() { return &___m_verticalMapping_120; }
inline void set_m_verticalMapping_120(int32_t value)
{
___m_verticalMapping_120 = value;
}
inline static int32_t get_offset_of_m_uvLineOffset_121() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_uvLineOffset_121)); }
inline float get_m_uvLineOffset_121() const { return ___m_uvLineOffset_121; }
inline float* get_address_of_m_uvLineOffset_121() { return &___m_uvLineOffset_121; }
inline void set_m_uvLineOffset_121(float value)
{
___m_uvLineOffset_121 = value;
}
inline static int32_t get_offset_of_m_renderMode_122() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_renderMode_122)); }
inline int32_t get_m_renderMode_122() const { return ___m_renderMode_122; }
inline int32_t* get_address_of_m_renderMode_122() { return &___m_renderMode_122; }
inline void set_m_renderMode_122(int32_t value)
{
___m_renderMode_122 = value;
}
inline static int32_t get_offset_of_m_geometrySortingOrder_123() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_geometrySortingOrder_123)); }
inline int32_t get_m_geometrySortingOrder_123() const { return ___m_geometrySortingOrder_123; }
inline int32_t* get_address_of_m_geometrySortingOrder_123() { return &___m_geometrySortingOrder_123; }
inline void set_m_geometrySortingOrder_123(int32_t value)
{
___m_geometrySortingOrder_123 = value;
}
inline static int32_t get_offset_of_m_VertexBufferAutoSizeReduction_124() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_VertexBufferAutoSizeReduction_124)); }
inline bool get_m_VertexBufferAutoSizeReduction_124() const { return ___m_VertexBufferAutoSizeReduction_124; }
inline bool* get_address_of_m_VertexBufferAutoSizeReduction_124() { return &___m_VertexBufferAutoSizeReduction_124; }
inline void set_m_VertexBufferAutoSizeReduction_124(bool value)
{
___m_VertexBufferAutoSizeReduction_124 = value;
}
inline static int32_t get_offset_of_m_firstVisibleCharacter_125() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstVisibleCharacter_125)); }
inline int32_t get_m_firstVisibleCharacter_125() const { return ___m_firstVisibleCharacter_125; }
inline int32_t* get_address_of_m_firstVisibleCharacter_125() { return &___m_firstVisibleCharacter_125; }
inline void set_m_firstVisibleCharacter_125(int32_t value)
{
___m_firstVisibleCharacter_125 = value;
}
inline static int32_t get_offset_of_m_maxVisibleCharacters_126() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxVisibleCharacters_126)); }
inline int32_t get_m_maxVisibleCharacters_126() const { return ___m_maxVisibleCharacters_126; }
inline int32_t* get_address_of_m_maxVisibleCharacters_126() { return &___m_maxVisibleCharacters_126; }
inline void set_m_maxVisibleCharacters_126(int32_t value)
{
___m_maxVisibleCharacters_126 = value;
}
inline static int32_t get_offset_of_m_maxVisibleWords_127() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxVisibleWords_127)); }
inline int32_t get_m_maxVisibleWords_127() const { return ___m_maxVisibleWords_127; }
inline int32_t* get_address_of_m_maxVisibleWords_127() { return &___m_maxVisibleWords_127; }
inline void set_m_maxVisibleWords_127(int32_t value)
{
___m_maxVisibleWords_127 = value;
}
inline static int32_t get_offset_of_m_maxVisibleLines_128() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxVisibleLines_128)); }
inline int32_t get_m_maxVisibleLines_128() const { return ___m_maxVisibleLines_128; }
inline int32_t* get_address_of_m_maxVisibleLines_128() { return &___m_maxVisibleLines_128; }
inline void set_m_maxVisibleLines_128(int32_t value)
{
___m_maxVisibleLines_128 = value;
}
inline static int32_t get_offset_of_m_useMaxVisibleDescender_129() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_useMaxVisibleDescender_129)); }
inline bool get_m_useMaxVisibleDescender_129() const { return ___m_useMaxVisibleDescender_129; }
inline bool* get_address_of_m_useMaxVisibleDescender_129() { return &___m_useMaxVisibleDescender_129; }
inline void set_m_useMaxVisibleDescender_129(bool value)
{
___m_useMaxVisibleDescender_129 = value;
}
inline static int32_t get_offset_of_m_pageToDisplay_130() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_pageToDisplay_130)); }
inline int32_t get_m_pageToDisplay_130() const { return ___m_pageToDisplay_130; }
inline int32_t* get_address_of_m_pageToDisplay_130() { return &___m_pageToDisplay_130; }
inline void set_m_pageToDisplay_130(int32_t value)
{
___m_pageToDisplay_130 = value;
}
inline static int32_t get_offset_of_m_isNewPage_131() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isNewPage_131)); }
inline bool get_m_isNewPage_131() const { return ___m_isNewPage_131; }
inline bool* get_address_of_m_isNewPage_131() { return &___m_isNewPage_131; }
inline void set_m_isNewPage_131(bool value)
{
___m_isNewPage_131 = value;
}
inline static int32_t get_offset_of_m_margin_132() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_margin_132)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_m_margin_132() const { return ___m_margin_132; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_m_margin_132() { return &___m_margin_132; }
inline void set_m_margin_132(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___m_margin_132 = value;
}
inline static int32_t get_offset_of_m_marginLeft_133() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginLeft_133)); }
inline float get_m_marginLeft_133() const { return ___m_marginLeft_133; }
inline float* get_address_of_m_marginLeft_133() { return &___m_marginLeft_133; }
inline void set_m_marginLeft_133(float value)
{
___m_marginLeft_133 = value;
}
inline static int32_t get_offset_of_m_marginRight_134() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginRight_134)); }
inline float get_m_marginRight_134() const { return ___m_marginRight_134; }
inline float* get_address_of_m_marginRight_134() { return &___m_marginRight_134; }
inline void set_m_marginRight_134(float value)
{
___m_marginRight_134 = value;
}
inline static int32_t get_offset_of_m_marginWidth_135() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginWidth_135)); }
inline float get_m_marginWidth_135() const { return ___m_marginWidth_135; }
inline float* get_address_of_m_marginWidth_135() { return &___m_marginWidth_135; }
inline void set_m_marginWidth_135(float value)
{
___m_marginWidth_135 = value;
}
inline static int32_t get_offset_of_m_marginHeight_136() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginHeight_136)); }
inline float get_m_marginHeight_136() const { return ___m_marginHeight_136; }
inline float* get_address_of_m_marginHeight_136() { return &___m_marginHeight_136; }
inline void set_m_marginHeight_136(float value)
{
___m_marginHeight_136 = value;
}
inline static int32_t get_offset_of_m_width_137() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_width_137)); }
inline float get_m_width_137() const { return ___m_width_137; }
inline float* get_address_of_m_width_137() { return &___m_width_137; }
inline void set_m_width_137(float value)
{
___m_width_137 = value;
}
inline static int32_t get_offset_of_m_textInfo_138() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textInfo_138)); }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * get_m_textInfo_138() const { return ___m_textInfo_138; }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 ** get_address_of_m_textInfo_138() { return &___m_textInfo_138; }
inline void set_m_textInfo_138(TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * value)
{
___m_textInfo_138 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_textInfo_138), (void*)value);
}
inline static int32_t get_offset_of_m_havePropertiesChanged_139() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_havePropertiesChanged_139)); }
inline bool get_m_havePropertiesChanged_139() const { return ___m_havePropertiesChanged_139; }
inline bool* get_address_of_m_havePropertiesChanged_139() { return &___m_havePropertiesChanged_139; }
inline void set_m_havePropertiesChanged_139(bool value)
{
___m_havePropertiesChanged_139 = value;
}
inline static int32_t get_offset_of_m_isUsingLegacyAnimationComponent_140() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isUsingLegacyAnimationComponent_140)); }
inline bool get_m_isUsingLegacyAnimationComponent_140() const { return ___m_isUsingLegacyAnimationComponent_140; }
inline bool* get_address_of_m_isUsingLegacyAnimationComponent_140() { return &___m_isUsingLegacyAnimationComponent_140; }
inline void set_m_isUsingLegacyAnimationComponent_140(bool value)
{
___m_isUsingLegacyAnimationComponent_140 = value;
}
inline static int32_t get_offset_of_m_transform_141() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_transform_141)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_transform_141() const { return ___m_transform_141; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_transform_141() { return &___m_transform_141; }
inline void set_m_transform_141(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_transform_141 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_transform_141), (void*)value);
}
inline static int32_t get_offset_of_m_rectTransform_142() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_rectTransform_142)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_rectTransform_142() const { return ___m_rectTransform_142; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_rectTransform_142() { return &___m_rectTransform_142; }
inline void set_m_rectTransform_142(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_rectTransform_142 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_rectTransform_142), (void*)value);
}
inline static int32_t get_offset_of_U3CautoSizeTextContainerU3Ek__BackingField_143() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___U3CautoSizeTextContainerU3Ek__BackingField_143)); }
inline bool get_U3CautoSizeTextContainerU3Ek__BackingField_143() const { return ___U3CautoSizeTextContainerU3Ek__BackingField_143; }
inline bool* get_address_of_U3CautoSizeTextContainerU3Ek__BackingField_143() { return &___U3CautoSizeTextContainerU3Ek__BackingField_143; }
inline void set_U3CautoSizeTextContainerU3Ek__BackingField_143(bool value)
{
___U3CautoSizeTextContainerU3Ek__BackingField_143 = value;
}
inline static int32_t get_offset_of_m_autoSizeTextContainer_144() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_autoSizeTextContainer_144)); }
inline bool get_m_autoSizeTextContainer_144() const { return ___m_autoSizeTextContainer_144; }
inline bool* get_address_of_m_autoSizeTextContainer_144() { return &___m_autoSizeTextContainer_144; }
inline void set_m_autoSizeTextContainer_144(bool value)
{
___m_autoSizeTextContainer_144 = value;
}
inline static int32_t get_offset_of_m_mesh_145() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_mesh_145)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_m_mesh_145() const { return ___m_mesh_145; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_m_mesh_145() { return &___m_mesh_145; }
inline void set_m_mesh_145(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___m_mesh_145 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_mesh_145), (void*)value);
}
inline static int32_t get_offset_of_m_isVolumetricText_146() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isVolumetricText_146)); }
inline bool get_m_isVolumetricText_146() const { return ___m_isVolumetricText_146; }
inline bool* get_address_of_m_isVolumetricText_146() { return &___m_isVolumetricText_146; }
inline void set_m_isVolumetricText_146(bool value)
{
___m_isVolumetricText_146 = value;
}
inline static int32_t get_offset_of_m_spriteAnimator_147() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteAnimator_147)); }
inline TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 * get_m_spriteAnimator_147() const { return ___m_spriteAnimator_147; }
inline TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 ** get_address_of_m_spriteAnimator_147() { return &___m_spriteAnimator_147; }
inline void set_m_spriteAnimator_147(TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 * value)
{
___m_spriteAnimator_147 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_spriteAnimator_147), (void*)value);
}
inline static int32_t get_offset_of_m_flexibleHeight_148() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_flexibleHeight_148)); }
inline float get_m_flexibleHeight_148() const { return ___m_flexibleHeight_148; }
inline float* get_address_of_m_flexibleHeight_148() { return &___m_flexibleHeight_148; }
inline void set_m_flexibleHeight_148(float value)
{
___m_flexibleHeight_148 = value;
}
inline static int32_t get_offset_of_m_flexibleWidth_149() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_flexibleWidth_149)); }
inline float get_m_flexibleWidth_149() const { return ___m_flexibleWidth_149; }
inline float* get_address_of_m_flexibleWidth_149() { return &___m_flexibleWidth_149; }
inline void set_m_flexibleWidth_149(float value)
{
___m_flexibleWidth_149 = value;
}
inline static int32_t get_offset_of_m_minWidth_150() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_minWidth_150)); }
inline float get_m_minWidth_150() const { return ___m_minWidth_150; }
inline float* get_address_of_m_minWidth_150() { return &___m_minWidth_150; }
inline void set_m_minWidth_150(float value)
{
___m_minWidth_150 = value;
}
inline static int32_t get_offset_of_m_minHeight_151() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_minHeight_151)); }
inline float get_m_minHeight_151() const { return ___m_minHeight_151; }
inline float* get_address_of_m_minHeight_151() { return &___m_minHeight_151; }
inline void set_m_minHeight_151(float value)
{
___m_minHeight_151 = value;
}
inline static int32_t get_offset_of_m_maxWidth_152() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxWidth_152)); }
inline float get_m_maxWidth_152() const { return ___m_maxWidth_152; }
inline float* get_address_of_m_maxWidth_152() { return &___m_maxWidth_152; }
inline void set_m_maxWidth_152(float value)
{
___m_maxWidth_152 = value;
}
inline static int32_t get_offset_of_m_maxHeight_153() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxHeight_153)); }
inline float get_m_maxHeight_153() const { return ___m_maxHeight_153; }
inline float* get_address_of_m_maxHeight_153() { return &___m_maxHeight_153; }
inline void set_m_maxHeight_153(float value)
{
___m_maxHeight_153 = value;
}
inline static int32_t get_offset_of_m_LayoutElement_154() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_LayoutElement_154)); }
inline LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B * get_m_LayoutElement_154() const { return ___m_LayoutElement_154; }
inline LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B ** get_address_of_m_LayoutElement_154() { return &___m_LayoutElement_154; }
inline void set_m_LayoutElement_154(LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B * value)
{
___m_LayoutElement_154 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_LayoutElement_154), (void*)value);
}
inline static int32_t get_offset_of_m_preferredWidth_155() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_preferredWidth_155)); }
inline float get_m_preferredWidth_155() const { return ___m_preferredWidth_155; }
inline float* get_address_of_m_preferredWidth_155() { return &___m_preferredWidth_155; }
inline void set_m_preferredWidth_155(float value)
{
___m_preferredWidth_155 = value;
}
inline static int32_t get_offset_of_m_renderedWidth_156() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_renderedWidth_156)); }
inline float get_m_renderedWidth_156() const { return ___m_renderedWidth_156; }
inline float* get_address_of_m_renderedWidth_156() { return &___m_renderedWidth_156; }
inline void set_m_renderedWidth_156(float value)
{
___m_renderedWidth_156 = value;
}
inline static int32_t get_offset_of_m_isPreferredWidthDirty_157() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isPreferredWidthDirty_157)); }
inline bool get_m_isPreferredWidthDirty_157() const { return ___m_isPreferredWidthDirty_157; }
inline bool* get_address_of_m_isPreferredWidthDirty_157() { return &___m_isPreferredWidthDirty_157; }
inline void set_m_isPreferredWidthDirty_157(bool value)
{
___m_isPreferredWidthDirty_157 = value;
}
inline static int32_t get_offset_of_m_preferredHeight_158() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_preferredHeight_158)); }
inline float get_m_preferredHeight_158() const { return ___m_preferredHeight_158; }
inline float* get_address_of_m_preferredHeight_158() { return &___m_preferredHeight_158; }
inline void set_m_preferredHeight_158(float value)
{
___m_preferredHeight_158 = value;
}
inline static int32_t get_offset_of_m_renderedHeight_159() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_renderedHeight_159)); }
inline float get_m_renderedHeight_159() const { return ___m_renderedHeight_159; }
inline float* get_address_of_m_renderedHeight_159() { return &___m_renderedHeight_159; }
inline void set_m_renderedHeight_159(float value)
{
___m_renderedHeight_159 = value;
}
inline static int32_t get_offset_of_m_isPreferredHeightDirty_160() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isPreferredHeightDirty_160)); }
inline bool get_m_isPreferredHeightDirty_160() const { return ___m_isPreferredHeightDirty_160; }
inline bool* get_address_of_m_isPreferredHeightDirty_160() { return &___m_isPreferredHeightDirty_160; }
inline void set_m_isPreferredHeightDirty_160(bool value)
{
___m_isPreferredHeightDirty_160 = value;
}
inline static int32_t get_offset_of_m_isCalculatingPreferredValues_161() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCalculatingPreferredValues_161)); }
inline bool get_m_isCalculatingPreferredValues_161() const { return ___m_isCalculatingPreferredValues_161; }
inline bool* get_address_of_m_isCalculatingPreferredValues_161() { return &___m_isCalculatingPreferredValues_161; }
inline void set_m_isCalculatingPreferredValues_161(bool value)
{
___m_isCalculatingPreferredValues_161 = value;
}
inline static int32_t get_offset_of_m_recursiveCount_162() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_recursiveCount_162)); }
inline int32_t get_m_recursiveCount_162() const { return ___m_recursiveCount_162; }
inline int32_t* get_address_of_m_recursiveCount_162() { return &___m_recursiveCount_162; }
inline void set_m_recursiveCount_162(int32_t value)
{
___m_recursiveCount_162 = value;
}
inline static int32_t get_offset_of_m_layoutPriority_163() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_layoutPriority_163)); }
inline int32_t get_m_layoutPriority_163() const { return ___m_layoutPriority_163; }
inline int32_t* get_address_of_m_layoutPriority_163() { return &___m_layoutPriority_163; }
inline void set_m_layoutPriority_163(int32_t value)
{
___m_layoutPriority_163 = value;
}
inline static int32_t get_offset_of_m_isCalculateSizeRequired_164() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCalculateSizeRequired_164)); }
inline bool get_m_isCalculateSizeRequired_164() const { return ___m_isCalculateSizeRequired_164; }
inline bool* get_address_of_m_isCalculateSizeRequired_164() { return &___m_isCalculateSizeRequired_164; }
inline void set_m_isCalculateSizeRequired_164(bool value)
{
___m_isCalculateSizeRequired_164 = value;
}
inline static int32_t get_offset_of_m_isLayoutDirty_165() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isLayoutDirty_165)); }
inline bool get_m_isLayoutDirty_165() const { return ___m_isLayoutDirty_165; }
inline bool* get_address_of_m_isLayoutDirty_165() { return &___m_isLayoutDirty_165; }
inline void set_m_isLayoutDirty_165(bool value)
{
___m_isLayoutDirty_165 = value;
}
inline static int32_t get_offset_of_m_verticesAlreadyDirty_166() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_verticesAlreadyDirty_166)); }
inline bool get_m_verticesAlreadyDirty_166() const { return ___m_verticesAlreadyDirty_166; }
inline bool* get_address_of_m_verticesAlreadyDirty_166() { return &___m_verticesAlreadyDirty_166; }
inline void set_m_verticesAlreadyDirty_166(bool value)
{
___m_verticesAlreadyDirty_166 = value;
}
inline static int32_t get_offset_of_m_layoutAlreadyDirty_167() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_layoutAlreadyDirty_167)); }
inline bool get_m_layoutAlreadyDirty_167() const { return ___m_layoutAlreadyDirty_167; }
inline bool* get_address_of_m_layoutAlreadyDirty_167() { return &___m_layoutAlreadyDirty_167; }
inline void set_m_layoutAlreadyDirty_167(bool value)
{
___m_layoutAlreadyDirty_167 = value;
}
inline static int32_t get_offset_of_m_isAwake_168() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isAwake_168)); }
inline bool get_m_isAwake_168() const { return ___m_isAwake_168; }
inline bool* get_address_of_m_isAwake_168() { return &___m_isAwake_168; }
inline void set_m_isAwake_168(bool value)
{
___m_isAwake_168 = value;
}
inline static int32_t get_offset_of_m_isWaitingOnResourceLoad_169() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isWaitingOnResourceLoad_169)); }
inline bool get_m_isWaitingOnResourceLoad_169() const { return ___m_isWaitingOnResourceLoad_169; }
inline bool* get_address_of_m_isWaitingOnResourceLoad_169() { return &___m_isWaitingOnResourceLoad_169; }
inline void set_m_isWaitingOnResourceLoad_169(bool value)
{
___m_isWaitingOnResourceLoad_169 = value;
}
inline static int32_t get_offset_of_m_isInputParsingRequired_170() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isInputParsingRequired_170)); }
inline bool get_m_isInputParsingRequired_170() const { return ___m_isInputParsingRequired_170; }
inline bool* get_address_of_m_isInputParsingRequired_170() { return &___m_isInputParsingRequired_170; }
inline void set_m_isInputParsingRequired_170(bool value)
{
___m_isInputParsingRequired_170 = value;
}
inline static int32_t get_offset_of_m_inputSource_171() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_inputSource_171)); }
inline int32_t get_m_inputSource_171() const { return ___m_inputSource_171; }
inline int32_t* get_address_of_m_inputSource_171() { return &___m_inputSource_171; }
inline void set_m_inputSource_171(int32_t value)
{
___m_inputSource_171 = value;
}
inline static int32_t get_offset_of_old_text_172() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___old_text_172)); }
inline String_t* get_old_text_172() const { return ___old_text_172; }
inline String_t** get_address_of_old_text_172() { return &___old_text_172; }
inline void set_old_text_172(String_t* value)
{
___old_text_172 = value;
Il2CppCodeGenWriteBarrier((void**)(&___old_text_172), (void*)value);
}
inline static int32_t get_offset_of_m_fontScale_173() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontScale_173)); }
inline float get_m_fontScale_173() const { return ___m_fontScale_173; }
inline float* get_address_of_m_fontScale_173() { return &___m_fontScale_173; }
inline void set_m_fontScale_173(float value)
{
___m_fontScale_173 = value;
}
inline static int32_t get_offset_of_m_fontScaleMultiplier_174() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontScaleMultiplier_174)); }
inline float get_m_fontScaleMultiplier_174() const { return ___m_fontScaleMultiplier_174; }
inline float* get_address_of_m_fontScaleMultiplier_174() { return &___m_fontScaleMultiplier_174; }
inline void set_m_fontScaleMultiplier_174(float value)
{
___m_fontScaleMultiplier_174 = value;
}
inline static int32_t get_offset_of_m_htmlTag_175() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_htmlTag_175)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_m_htmlTag_175() const { return ___m_htmlTag_175; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_m_htmlTag_175() { return &___m_htmlTag_175; }
inline void set_m_htmlTag_175(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___m_htmlTag_175 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_htmlTag_175), (void*)value);
}
inline static int32_t get_offset_of_m_xmlAttribute_176() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_xmlAttribute_176)); }
inline RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652* get_m_xmlAttribute_176() const { return ___m_xmlAttribute_176; }
inline RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652** get_address_of_m_xmlAttribute_176() { return &___m_xmlAttribute_176; }
inline void set_m_xmlAttribute_176(RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652* value)
{
___m_xmlAttribute_176 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_xmlAttribute_176), (void*)value);
}
inline static int32_t get_offset_of_m_attributeParameterValues_177() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_attributeParameterValues_177)); }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* get_m_attributeParameterValues_177() const { return ___m_attributeParameterValues_177; }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5** get_address_of_m_attributeParameterValues_177() { return &___m_attributeParameterValues_177; }
inline void set_m_attributeParameterValues_177(SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* value)
{
___m_attributeParameterValues_177 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_attributeParameterValues_177), (void*)value);
}
inline static int32_t get_offset_of_tag_LineIndent_178() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___tag_LineIndent_178)); }
inline float get_tag_LineIndent_178() const { return ___tag_LineIndent_178; }
inline float* get_address_of_tag_LineIndent_178() { return &___tag_LineIndent_178; }
inline void set_tag_LineIndent_178(float value)
{
___tag_LineIndent_178 = value;
}
inline static int32_t get_offset_of_tag_Indent_179() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___tag_Indent_179)); }
inline float get_tag_Indent_179() const { return ___tag_Indent_179; }
inline float* get_address_of_tag_Indent_179() { return &___tag_Indent_179; }
inline void set_tag_Indent_179(float value)
{
___tag_Indent_179 = value;
}
inline static int32_t get_offset_of_m_indentStack_180() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_indentStack_180)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_m_indentStack_180() const { return ___m_indentStack_180; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_m_indentStack_180() { return &___m_indentStack_180; }
inline void set_m_indentStack_180(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___m_indentStack_180 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_indentStack_180))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_tag_NoParsing_181() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___tag_NoParsing_181)); }
inline bool get_tag_NoParsing_181() const { return ___tag_NoParsing_181; }
inline bool* get_address_of_tag_NoParsing_181() { return &___tag_NoParsing_181; }
inline void set_tag_NoParsing_181(bool value)
{
___tag_NoParsing_181 = value;
}
inline static int32_t get_offset_of_m_isParsingText_182() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isParsingText_182)); }
inline bool get_m_isParsingText_182() const { return ___m_isParsingText_182; }
inline bool* get_address_of_m_isParsingText_182() { return &___m_isParsingText_182; }
inline void set_m_isParsingText_182(bool value)
{
___m_isParsingText_182 = value;
}
inline static int32_t get_offset_of_m_FXMatrix_183() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FXMatrix_183)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_m_FXMatrix_183() const { return ___m_FXMatrix_183; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_m_FXMatrix_183() { return &___m_FXMatrix_183; }
inline void set_m_FXMatrix_183(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___m_FXMatrix_183 = value;
}
inline static int32_t get_offset_of_m_isFXMatrixSet_184() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isFXMatrixSet_184)); }
inline bool get_m_isFXMatrixSet_184() const { return ___m_isFXMatrixSet_184; }
inline bool* get_address_of_m_isFXMatrixSet_184() { return &___m_isFXMatrixSet_184; }
inline void set_m_isFXMatrixSet_184(bool value)
{
___m_isFXMatrixSet_184 = value;
}
inline static int32_t get_offset_of_m_TextParsingBuffer_185() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_TextParsingBuffer_185)); }
inline UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505* get_m_TextParsingBuffer_185() const { return ___m_TextParsingBuffer_185; }
inline UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505** get_address_of_m_TextParsingBuffer_185() { return &___m_TextParsingBuffer_185; }
inline void set_m_TextParsingBuffer_185(UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505* value)
{
___m_TextParsingBuffer_185 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TextParsingBuffer_185), (void*)value);
}
inline static int32_t get_offset_of_m_internalCharacterInfo_186() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_internalCharacterInfo_186)); }
inline TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604* get_m_internalCharacterInfo_186() const { return ___m_internalCharacterInfo_186; }
inline TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604** get_address_of_m_internalCharacterInfo_186() { return &___m_internalCharacterInfo_186; }
inline void set_m_internalCharacterInfo_186(TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604* value)
{
___m_internalCharacterInfo_186 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_internalCharacterInfo_186), (void*)value);
}
inline static int32_t get_offset_of_m_input_CharArray_187() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_input_CharArray_187)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_m_input_CharArray_187() const { return ___m_input_CharArray_187; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_m_input_CharArray_187() { return &___m_input_CharArray_187; }
inline void set_m_input_CharArray_187(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___m_input_CharArray_187 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_input_CharArray_187), (void*)value);
}
inline static int32_t get_offset_of_m_charArray_Length_188() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_charArray_Length_188)); }
inline int32_t get_m_charArray_Length_188() const { return ___m_charArray_Length_188; }
inline int32_t* get_address_of_m_charArray_Length_188() { return &___m_charArray_Length_188; }
inline void set_m_charArray_Length_188(int32_t value)
{
___m_charArray_Length_188 = value;
}
inline static int32_t get_offset_of_m_totalCharacterCount_189() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_totalCharacterCount_189)); }
inline int32_t get_m_totalCharacterCount_189() const { return ___m_totalCharacterCount_189; }
inline int32_t* get_address_of_m_totalCharacterCount_189() { return &___m_totalCharacterCount_189; }
inline void set_m_totalCharacterCount_189(int32_t value)
{
___m_totalCharacterCount_189 = value;
}
inline static int32_t get_offset_of_m_SavedWordWrapState_190() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_SavedWordWrapState_190)); }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 get_m_SavedWordWrapState_190() const { return ___m_SavedWordWrapState_190; }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 * get_address_of_m_SavedWordWrapState_190() { return &___m_SavedWordWrapState_190; }
inline void set_m_SavedWordWrapState_190(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 value)
{
___m_SavedWordWrapState_190 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___textInfo_27), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___colorStack_34))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___underlineColorStack_35))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___strikethroughColorStack_36))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___highlightColorStack_37))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___colorGradientStack_38))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___colorGradientStack_38))->___m_DefaultItem_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___sizeStack_39))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___indentStack_40))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___fontWeightStack_41))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___styleStack_42))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___baselineStack_43))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___actionStack_44))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___lineJustificationStack_46))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___currentFontAsset_48), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___currentSpriteAsset_49), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___currentMaterial_50), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_SavedLineState_191() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_SavedLineState_191)); }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 get_m_SavedLineState_191() const { return ___m_SavedLineState_191; }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 * get_address_of_m_SavedLineState_191() { return &___m_SavedLineState_191; }
inline void set_m_SavedLineState_191(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 value)
{
___m_SavedLineState_191 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___textInfo_27), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___colorStack_34))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___underlineColorStack_35))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___strikethroughColorStack_36))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___highlightColorStack_37))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___colorGradientStack_38))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___colorGradientStack_38))->___m_DefaultItem_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___sizeStack_39))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___indentStack_40))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___fontWeightStack_41))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___styleStack_42))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___baselineStack_43))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___actionStack_44))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___lineJustificationStack_46))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___currentFontAsset_48), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___currentSpriteAsset_49), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___currentMaterial_50), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_characterCount_192() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_characterCount_192)); }
inline int32_t get_m_characterCount_192() const { return ___m_characterCount_192; }
inline int32_t* get_address_of_m_characterCount_192() { return &___m_characterCount_192; }
inline void set_m_characterCount_192(int32_t value)
{
___m_characterCount_192 = value;
}
inline static int32_t get_offset_of_m_firstCharacterOfLine_193() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstCharacterOfLine_193)); }
inline int32_t get_m_firstCharacterOfLine_193() const { return ___m_firstCharacterOfLine_193; }
inline int32_t* get_address_of_m_firstCharacterOfLine_193() { return &___m_firstCharacterOfLine_193; }
inline void set_m_firstCharacterOfLine_193(int32_t value)
{
___m_firstCharacterOfLine_193 = value;
}
inline static int32_t get_offset_of_m_firstVisibleCharacterOfLine_194() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstVisibleCharacterOfLine_194)); }
inline int32_t get_m_firstVisibleCharacterOfLine_194() const { return ___m_firstVisibleCharacterOfLine_194; }
inline int32_t* get_address_of_m_firstVisibleCharacterOfLine_194() { return &___m_firstVisibleCharacterOfLine_194; }
inline void set_m_firstVisibleCharacterOfLine_194(int32_t value)
{
___m_firstVisibleCharacterOfLine_194 = value;
}
inline static int32_t get_offset_of_m_lastCharacterOfLine_195() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lastCharacterOfLine_195)); }
inline int32_t get_m_lastCharacterOfLine_195() const { return ___m_lastCharacterOfLine_195; }
inline int32_t* get_address_of_m_lastCharacterOfLine_195() { return &___m_lastCharacterOfLine_195; }
inline void set_m_lastCharacterOfLine_195(int32_t value)
{
___m_lastCharacterOfLine_195 = value;
}
inline static int32_t get_offset_of_m_lastVisibleCharacterOfLine_196() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lastVisibleCharacterOfLine_196)); }
inline int32_t get_m_lastVisibleCharacterOfLine_196() const { return ___m_lastVisibleCharacterOfLine_196; }
inline int32_t* get_address_of_m_lastVisibleCharacterOfLine_196() { return &___m_lastVisibleCharacterOfLine_196; }
inline void set_m_lastVisibleCharacterOfLine_196(int32_t value)
{
___m_lastVisibleCharacterOfLine_196 = value;
}
inline static int32_t get_offset_of_m_lineNumber_197() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineNumber_197)); }
inline int32_t get_m_lineNumber_197() const { return ___m_lineNumber_197; }
inline int32_t* get_address_of_m_lineNumber_197() { return &___m_lineNumber_197; }
inline void set_m_lineNumber_197(int32_t value)
{
___m_lineNumber_197 = value;
}
inline static int32_t get_offset_of_m_lineVisibleCharacterCount_198() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineVisibleCharacterCount_198)); }
inline int32_t get_m_lineVisibleCharacterCount_198() const { return ___m_lineVisibleCharacterCount_198; }
inline int32_t* get_address_of_m_lineVisibleCharacterCount_198() { return &___m_lineVisibleCharacterCount_198; }
inline void set_m_lineVisibleCharacterCount_198(int32_t value)
{
___m_lineVisibleCharacterCount_198 = value;
}
inline static int32_t get_offset_of_m_pageNumber_199() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_pageNumber_199)); }
inline int32_t get_m_pageNumber_199() const { return ___m_pageNumber_199; }
inline int32_t* get_address_of_m_pageNumber_199() { return &___m_pageNumber_199; }
inline void set_m_pageNumber_199(int32_t value)
{
___m_pageNumber_199 = value;
}
inline static int32_t get_offset_of_m_maxAscender_200() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxAscender_200)); }
inline float get_m_maxAscender_200() const { return ___m_maxAscender_200; }
inline float* get_address_of_m_maxAscender_200() { return &___m_maxAscender_200; }
inline void set_m_maxAscender_200(float value)
{
___m_maxAscender_200 = value;
}
inline static int32_t get_offset_of_m_maxCapHeight_201() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxCapHeight_201)); }
inline float get_m_maxCapHeight_201() const { return ___m_maxCapHeight_201; }
inline float* get_address_of_m_maxCapHeight_201() { return &___m_maxCapHeight_201; }
inline void set_m_maxCapHeight_201(float value)
{
___m_maxCapHeight_201 = value;
}
inline static int32_t get_offset_of_m_maxDescender_202() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxDescender_202)); }
inline float get_m_maxDescender_202() const { return ___m_maxDescender_202; }
inline float* get_address_of_m_maxDescender_202() { return &___m_maxDescender_202; }
inline void set_m_maxDescender_202(float value)
{
___m_maxDescender_202 = value;
}
inline static int32_t get_offset_of_m_maxLineAscender_203() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxLineAscender_203)); }
inline float get_m_maxLineAscender_203() const { return ___m_maxLineAscender_203; }
inline float* get_address_of_m_maxLineAscender_203() { return &___m_maxLineAscender_203; }
inline void set_m_maxLineAscender_203(float value)
{
___m_maxLineAscender_203 = value;
}
inline static int32_t get_offset_of_m_maxLineDescender_204() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxLineDescender_204)); }
inline float get_m_maxLineDescender_204() const { return ___m_maxLineDescender_204; }
inline float* get_address_of_m_maxLineDescender_204() { return &___m_maxLineDescender_204; }
inline void set_m_maxLineDescender_204(float value)
{
___m_maxLineDescender_204 = value;
}
inline static int32_t get_offset_of_m_startOfLineAscender_205() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_startOfLineAscender_205)); }
inline float get_m_startOfLineAscender_205() const { return ___m_startOfLineAscender_205; }
inline float* get_address_of_m_startOfLineAscender_205() { return &___m_startOfLineAscender_205; }
inline void set_m_startOfLineAscender_205(float value)
{
___m_startOfLineAscender_205 = value;
}
inline static int32_t get_offset_of_m_lineOffset_206() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineOffset_206)); }
inline float get_m_lineOffset_206() const { return ___m_lineOffset_206; }
inline float* get_address_of_m_lineOffset_206() { return &___m_lineOffset_206; }
inline void set_m_lineOffset_206(float value)
{
___m_lineOffset_206 = value;
}
inline static int32_t get_offset_of_m_meshExtents_207() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_meshExtents_207)); }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 get_m_meshExtents_207() const { return ___m_meshExtents_207; }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 * get_address_of_m_meshExtents_207() { return &___m_meshExtents_207; }
inline void set_m_meshExtents_207(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 value)
{
___m_meshExtents_207 = value;
}
inline static int32_t get_offset_of_m_htmlColor_208() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_htmlColor_208)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_htmlColor_208() const { return ___m_htmlColor_208; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_htmlColor_208() { return &___m_htmlColor_208; }
inline void set_m_htmlColor_208(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_htmlColor_208 = value;
}
inline static int32_t get_offset_of_m_colorStack_209() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorStack_209)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_colorStack_209() const { return ___m_colorStack_209; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_colorStack_209() { return &___m_colorStack_209; }
inline void set_m_colorStack_209(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_colorStack_209 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_colorStack_209))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_underlineColorStack_210() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_underlineColorStack_210)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_underlineColorStack_210() const { return ___m_underlineColorStack_210; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_underlineColorStack_210() { return &___m_underlineColorStack_210; }
inline void set_m_underlineColorStack_210(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_underlineColorStack_210 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_underlineColorStack_210))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_strikethroughColorStack_211() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_strikethroughColorStack_211)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_strikethroughColorStack_211() const { return ___m_strikethroughColorStack_211; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_strikethroughColorStack_211() { return &___m_strikethroughColorStack_211; }
inline void set_m_strikethroughColorStack_211(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_strikethroughColorStack_211 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_strikethroughColorStack_211))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_highlightColorStack_212() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_highlightColorStack_212)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_highlightColorStack_212() const { return ___m_highlightColorStack_212; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_highlightColorStack_212() { return &___m_highlightColorStack_212; }
inline void set_m_highlightColorStack_212(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_highlightColorStack_212 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_highlightColorStack_212))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_colorGradientPreset_213() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorGradientPreset_213)); }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * get_m_colorGradientPreset_213() const { return ___m_colorGradientPreset_213; }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 ** get_address_of_m_colorGradientPreset_213() { return &___m_colorGradientPreset_213; }
inline void set_m_colorGradientPreset_213(TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * value)
{
___m_colorGradientPreset_213 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_colorGradientPreset_213), (void*)value);
}
inline static int32_t get_offset_of_m_colorGradientStack_214() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorGradientStack_214)); }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D get_m_colorGradientStack_214() const { return ___m_colorGradientStack_214; }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D * get_address_of_m_colorGradientStack_214() { return &___m_colorGradientStack_214; }
inline void set_m_colorGradientStack_214(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D value)
{
___m_colorGradientStack_214 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_colorGradientStack_214))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_colorGradientStack_214))->___m_DefaultItem_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_tabSpacing_215() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_tabSpacing_215)); }
inline float get_m_tabSpacing_215() const { return ___m_tabSpacing_215; }
inline float* get_address_of_m_tabSpacing_215() { return &___m_tabSpacing_215; }
inline void set_m_tabSpacing_215(float value)
{
___m_tabSpacing_215 = value;
}
inline static int32_t get_offset_of_m_spacing_216() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spacing_216)); }
inline float get_m_spacing_216() const { return ___m_spacing_216; }
inline float* get_address_of_m_spacing_216() { return &___m_spacing_216; }
inline void set_m_spacing_216(float value)
{
___m_spacing_216 = value;
}
inline static int32_t get_offset_of_m_styleStack_217() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_styleStack_217)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_m_styleStack_217() const { return ___m_styleStack_217; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_m_styleStack_217() { return &___m_styleStack_217; }
inline void set_m_styleStack_217(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___m_styleStack_217 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_styleStack_217))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_actionStack_218() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_actionStack_218)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_m_actionStack_218() const { return ___m_actionStack_218; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_m_actionStack_218() { return &___m_actionStack_218; }
inline void set_m_actionStack_218(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___m_actionStack_218 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_actionStack_218))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_padding_219() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_padding_219)); }
inline float get_m_padding_219() const { return ___m_padding_219; }
inline float* get_address_of_m_padding_219() { return &___m_padding_219; }
inline void set_m_padding_219(float value)
{
___m_padding_219 = value;
}
inline static int32_t get_offset_of_m_baselineOffset_220() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_baselineOffset_220)); }
inline float get_m_baselineOffset_220() const { return ___m_baselineOffset_220; }
inline float* get_address_of_m_baselineOffset_220() { return &___m_baselineOffset_220; }
inline void set_m_baselineOffset_220(float value)
{
___m_baselineOffset_220 = value;
}
inline static int32_t get_offset_of_m_baselineOffsetStack_221() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_baselineOffsetStack_221)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_m_baselineOffsetStack_221() const { return ___m_baselineOffsetStack_221; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_m_baselineOffsetStack_221() { return &___m_baselineOffsetStack_221; }
inline void set_m_baselineOffsetStack_221(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___m_baselineOffsetStack_221 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_baselineOffsetStack_221))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_xAdvance_222() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_xAdvance_222)); }
inline float get_m_xAdvance_222() const { return ___m_xAdvance_222; }
inline float* get_address_of_m_xAdvance_222() { return &___m_xAdvance_222; }
inline void set_m_xAdvance_222(float value)
{
___m_xAdvance_222 = value;
}
inline static int32_t get_offset_of_m_textElementType_223() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textElementType_223)); }
inline int32_t get_m_textElementType_223() const { return ___m_textElementType_223; }
inline int32_t* get_address_of_m_textElementType_223() { return &___m_textElementType_223; }
inline void set_m_textElementType_223(int32_t value)
{
___m_textElementType_223 = value;
}
inline static int32_t get_offset_of_m_cached_TextElement_224() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cached_TextElement_224)); }
inline TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 * get_m_cached_TextElement_224() const { return ___m_cached_TextElement_224; }
inline TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 ** get_address_of_m_cached_TextElement_224() { return &___m_cached_TextElement_224; }
inline void set_m_cached_TextElement_224(TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 * value)
{
___m_cached_TextElement_224 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_cached_TextElement_224), (void*)value);
}
inline static int32_t get_offset_of_m_cached_Underline_Character_225() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cached_Underline_Character_225)); }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D * get_m_cached_Underline_Character_225() const { return ___m_cached_Underline_Character_225; }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D ** get_address_of_m_cached_Underline_Character_225() { return &___m_cached_Underline_Character_225; }
inline void set_m_cached_Underline_Character_225(TMP_Character_t1875AACA978396521498D6A699052C187903553D * value)
{
___m_cached_Underline_Character_225 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_cached_Underline_Character_225), (void*)value);
}
inline static int32_t get_offset_of_m_cached_Ellipsis_Character_226() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cached_Ellipsis_Character_226)); }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D * get_m_cached_Ellipsis_Character_226() const { return ___m_cached_Ellipsis_Character_226; }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D ** get_address_of_m_cached_Ellipsis_Character_226() { return &___m_cached_Ellipsis_Character_226; }
inline void set_m_cached_Ellipsis_Character_226(TMP_Character_t1875AACA978396521498D6A699052C187903553D * value)
{
___m_cached_Ellipsis_Character_226 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_cached_Ellipsis_Character_226), (void*)value);
}
inline static int32_t get_offset_of_m_defaultSpriteAsset_227() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_defaultSpriteAsset_227)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_m_defaultSpriteAsset_227() const { return ___m_defaultSpriteAsset_227; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_m_defaultSpriteAsset_227() { return &___m_defaultSpriteAsset_227; }
inline void set_m_defaultSpriteAsset_227(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___m_defaultSpriteAsset_227 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_defaultSpriteAsset_227), (void*)value);
}
inline static int32_t get_offset_of_m_currentSpriteAsset_228() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentSpriteAsset_228)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_m_currentSpriteAsset_228() const { return ___m_currentSpriteAsset_228; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_m_currentSpriteAsset_228() { return &___m_currentSpriteAsset_228; }
inline void set_m_currentSpriteAsset_228(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___m_currentSpriteAsset_228 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_currentSpriteAsset_228), (void*)value);
}
inline static int32_t get_offset_of_m_spriteCount_229() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteCount_229)); }
inline int32_t get_m_spriteCount_229() const { return ___m_spriteCount_229; }
inline int32_t* get_address_of_m_spriteCount_229() { return &___m_spriteCount_229; }
inline void set_m_spriteCount_229(int32_t value)
{
___m_spriteCount_229 = value;
}
inline static int32_t get_offset_of_m_spriteIndex_230() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteIndex_230)); }
inline int32_t get_m_spriteIndex_230() const { return ___m_spriteIndex_230; }
inline int32_t* get_address_of_m_spriteIndex_230() { return &___m_spriteIndex_230; }
inline void set_m_spriteIndex_230(int32_t value)
{
___m_spriteIndex_230 = value;
}
inline static int32_t get_offset_of_m_spriteAnimationID_231() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteAnimationID_231)); }
inline int32_t get_m_spriteAnimationID_231() const { return ___m_spriteAnimationID_231; }
inline int32_t* get_address_of_m_spriteAnimationID_231() { return &___m_spriteAnimationID_231; }
inline void set_m_spriteAnimationID_231(int32_t value)
{
___m_spriteAnimationID_231 = value;
}
inline static int32_t get_offset_of_m_ignoreActiveState_232() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_ignoreActiveState_232)); }
inline bool get_m_ignoreActiveState_232() const { return ___m_ignoreActiveState_232; }
inline bool* get_address_of_m_ignoreActiveState_232() { return &___m_ignoreActiveState_232; }
inline void set_m_ignoreActiveState_232(bool value)
{
___m_ignoreActiveState_232 = value;
}
inline static int32_t get_offset_of_k_Power_233() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___k_Power_233)); }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* get_k_Power_233() const { return ___k_Power_233; }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5** get_address_of_k_Power_233() { return &___k_Power_233; }
inline void set_k_Power_233(SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* value)
{
___k_Power_233 = value;
Il2CppCodeGenWriteBarrier((void**)(&___k_Power_233), (void*)value);
}
};
struct TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields
{
public:
// UnityEngine.Color32 TMPro.TMP_Text::s_colorWhite
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___s_colorWhite_51;
// UnityEngine.Vector2 TMPro.TMP_Text::k_LargePositiveVector2
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___k_LargePositiveVector2_234;
// UnityEngine.Vector2 TMPro.TMP_Text::k_LargeNegativeVector2
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___k_LargeNegativeVector2_235;
// System.Single TMPro.TMP_Text::k_LargePositiveFloat
float ___k_LargePositiveFloat_236;
// System.Single TMPro.TMP_Text::k_LargeNegativeFloat
float ___k_LargeNegativeFloat_237;
// System.Int32 TMPro.TMP_Text::k_LargePositiveInt
int32_t ___k_LargePositiveInt_238;
// System.Int32 TMPro.TMP_Text::k_LargeNegativeInt
int32_t ___k_LargeNegativeInt_239;
public:
inline static int32_t get_offset_of_s_colorWhite_51() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___s_colorWhite_51)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_s_colorWhite_51() const { return ___s_colorWhite_51; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_s_colorWhite_51() { return &___s_colorWhite_51; }
inline void set_s_colorWhite_51(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___s_colorWhite_51 = value;
}
inline static int32_t get_offset_of_k_LargePositiveVector2_234() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargePositiveVector2_234)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_k_LargePositiveVector2_234() const { return ___k_LargePositiveVector2_234; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_k_LargePositiveVector2_234() { return &___k_LargePositiveVector2_234; }
inline void set_k_LargePositiveVector2_234(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___k_LargePositiveVector2_234 = value;
}
inline static int32_t get_offset_of_k_LargeNegativeVector2_235() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargeNegativeVector2_235)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_k_LargeNegativeVector2_235() const { return ___k_LargeNegativeVector2_235; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_k_LargeNegativeVector2_235() { return &___k_LargeNegativeVector2_235; }
inline void set_k_LargeNegativeVector2_235(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___k_LargeNegativeVector2_235 = value;
}
inline static int32_t get_offset_of_k_LargePositiveFloat_236() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargePositiveFloat_236)); }
inline float get_k_LargePositiveFloat_236() const { return ___k_LargePositiveFloat_236; }
inline float* get_address_of_k_LargePositiveFloat_236() { return &___k_LargePositiveFloat_236; }
inline void set_k_LargePositiveFloat_236(float value)
{
___k_LargePositiveFloat_236 = value;
}
inline static int32_t get_offset_of_k_LargeNegativeFloat_237() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargeNegativeFloat_237)); }
inline float get_k_LargeNegativeFloat_237() const { return ___k_LargeNegativeFloat_237; }
inline float* get_address_of_k_LargeNegativeFloat_237() { return &___k_LargeNegativeFloat_237; }
inline void set_k_LargeNegativeFloat_237(float value)
{
___k_LargeNegativeFloat_237 = value;
}
inline static int32_t get_offset_of_k_LargePositiveInt_238() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargePositiveInt_238)); }
inline int32_t get_k_LargePositiveInt_238() const { return ___k_LargePositiveInt_238; }
inline int32_t* get_address_of_k_LargePositiveInt_238() { return &___k_LargePositiveInt_238; }
inline void set_k_LargePositiveInt_238(int32_t value)
{
___k_LargePositiveInt_238 = value;
}
inline static int32_t get_offset_of_k_LargeNegativeInt_239() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargeNegativeInt_239)); }
inline int32_t get_k_LargeNegativeInt_239() const { return ___k_LargeNegativeInt_239; }
inline int32_t* get_address_of_k_LargeNegativeInt_239() { return &___k_LargeNegativeInt_239; }
inline void set_k_LargeNegativeInt_239(int32_t value)
{
___k_LargeNegativeInt_239 = value;
}
};
// TMPro.TextMeshProUGUI
struct TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 : public TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7
{
public:
// System.Boolean TMPro.TextMeshProUGUI::m_isRebuildingLayout
bool ___m_isRebuildingLayout_240;
// System.Boolean TMPro.TextMeshProUGUI::m_hasFontAssetChanged
bool ___m_hasFontAssetChanged_241;
// TMPro.TMP_SubMeshUI[] TMPro.TextMeshProUGUI::m_subTextObjects
TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E* ___m_subTextObjects_242;
// System.Single TMPro.TextMeshProUGUI::m_previousLossyScaleY
float ___m_previousLossyScaleY_243;
// UnityEngine.Vector3[] TMPro.TextMeshProUGUI::m_RectTransformCorners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___m_RectTransformCorners_244;
// UnityEngine.CanvasRenderer TMPro.TextMeshProUGUI::m_canvasRenderer
CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * ___m_canvasRenderer_245;
// UnityEngine.Canvas TMPro.TextMeshProUGUI::m_canvas
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___m_canvas_246;
// System.Boolean TMPro.TextMeshProUGUI::m_isFirstAllocation
bool ___m_isFirstAllocation_247;
// System.Int32 TMPro.TextMeshProUGUI::m_max_characters
int32_t ___m_max_characters_248;
// System.Boolean TMPro.TextMeshProUGUI::m_isMaskingEnabled
bool ___m_isMaskingEnabled_249;
// UnityEngine.Material TMPro.TextMeshProUGUI::m_baseMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_baseMaterial_250;
// System.Boolean TMPro.TextMeshProUGUI::m_isScrollRegionSet
bool ___m_isScrollRegionSet_251;
// System.Int32 TMPro.TextMeshProUGUI::m_stencilID
int32_t ___m_stencilID_252;
// UnityEngine.Vector4 TMPro.TextMeshProUGUI::m_maskOffset
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___m_maskOffset_253;
// UnityEngine.Matrix4x4 TMPro.TextMeshProUGUI::m_EnvMapMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___m_EnvMapMatrix_254;
// System.Boolean TMPro.TextMeshProUGUI::m_isRegisteredForEvents
bool ___m_isRegisteredForEvents_255;
// System.Int32 TMPro.TextMeshProUGUI::m_recursiveCountA
int32_t ___m_recursiveCountA_256;
// System.Int32 TMPro.TextMeshProUGUI::loopCountA
int32_t ___loopCountA_257;
public:
inline static int32_t get_offset_of_m_isRebuildingLayout_240() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isRebuildingLayout_240)); }
inline bool get_m_isRebuildingLayout_240() const { return ___m_isRebuildingLayout_240; }
inline bool* get_address_of_m_isRebuildingLayout_240() { return &___m_isRebuildingLayout_240; }
inline void set_m_isRebuildingLayout_240(bool value)
{
___m_isRebuildingLayout_240 = value;
}
inline static int32_t get_offset_of_m_hasFontAssetChanged_241() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_hasFontAssetChanged_241)); }
inline bool get_m_hasFontAssetChanged_241() const { return ___m_hasFontAssetChanged_241; }
inline bool* get_address_of_m_hasFontAssetChanged_241() { return &___m_hasFontAssetChanged_241; }
inline void set_m_hasFontAssetChanged_241(bool value)
{
___m_hasFontAssetChanged_241 = value;
}
inline static int32_t get_offset_of_m_subTextObjects_242() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_subTextObjects_242)); }
inline TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E* get_m_subTextObjects_242() const { return ___m_subTextObjects_242; }
inline TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E** get_address_of_m_subTextObjects_242() { return &___m_subTextObjects_242; }
inline void set_m_subTextObjects_242(TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E* value)
{
___m_subTextObjects_242 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_subTextObjects_242), (void*)value);
}
inline static int32_t get_offset_of_m_previousLossyScaleY_243() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_previousLossyScaleY_243)); }
inline float get_m_previousLossyScaleY_243() const { return ___m_previousLossyScaleY_243; }
inline float* get_address_of_m_previousLossyScaleY_243() { return &___m_previousLossyScaleY_243; }
inline void set_m_previousLossyScaleY_243(float value)
{
___m_previousLossyScaleY_243 = value;
}
inline static int32_t get_offset_of_m_RectTransformCorners_244() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_RectTransformCorners_244)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_m_RectTransformCorners_244() const { return ___m_RectTransformCorners_244; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_m_RectTransformCorners_244() { return &___m_RectTransformCorners_244; }
inline void set_m_RectTransformCorners_244(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___m_RectTransformCorners_244 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RectTransformCorners_244), (void*)value);
}
inline static int32_t get_offset_of_m_canvasRenderer_245() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_canvasRenderer_245)); }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * get_m_canvasRenderer_245() const { return ___m_canvasRenderer_245; }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 ** get_address_of_m_canvasRenderer_245() { return &___m_canvasRenderer_245; }
inline void set_m_canvasRenderer_245(CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * value)
{
___m_canvasRenderer_245 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_canvasRenderer_245), (void*)value);
}
inline static int32_t get_offset_of_m_canvas_246() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_canvas_246)); }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * get_m_canvas_246() const { return ___m_canvas_246; }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 ** get_address_of_m_canvas_246() { return &___m_canvas_246; }
inline void set_m_canvas_246(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * value)
{
___m_canvas_246 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_canvas_246), (void*)value);
}
inline static int32_t get_offset_of_m_isFirstAllocation_247() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isFirstAllocation_247)); }
inline bool get_m_isFirstAllocation_247() const { return ___m_isFirstAllocation_247; }
inline bool* get_address_of_m_isFirstAllocation_247() { return &___m_isFirstAllocation_247; }
inline void set_m_isFirstAllocation_247(bool value)
{
___m_isFirstAllocation_247 = value;
}
inline static int32_t get_offset_of_m_max_characters_248() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_max_characters_248)); }
inline int32_t get_m_max_characters_248() const { return ___m_max_characters_248; }
inline int32_t* get_address_of_m_max_characters_248() { return &___m_max_characters_248; }
inline void set_m_max_characters_248(int32_t value)
{
___m_max_characters_248 = value;
}
inline static int32_t get_offset_of_m_isMaskingEnabled_249() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isMaskingEnabled_249)); }
inline bool get_m_isMaskingEnabled_249() const { return ___m_isMaskingEnabled_249; }
inline bool* get_address_of_m_isMaskingEnabled_249() { return &___m_isMaskingEnabled_249; }
inline void set_m_isMaskingEnabled_249(bool value)
{
___m_isMaskingEnabled_249 = value;
}
inline static int32_t get_offset_of_m_baseMaterial_250() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_baseMaterial_250)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_baseMaterial_250() const { return ___m_baseMaterial_250; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_baseMaterial_250() { return &___m_baseMaterial_250; }
inline void set_m_baseMaterial_250(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_baseMaterial_250 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_baseMaterial_250), (void*)value);
}
inline static int32_t get_offset_of_m_isScrollRegionSet_251() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isScrollRegionSet_251)); }
inline bool get_m_isScrollRegionSet_251() const { return ___m_isScrollRegionSet_251; }
inline bool* get_address_of_m_isScrollRegionSet_251() { return &___m_isScrollRegionSet_251; }
inline void set_m_isScrollRegionSet_251(bool value)
{
___m_isScrollRegionSet_251 = value;
}
inline static int32_t get_offset_of_m_stencilID_252() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_stencilID_252)); }
inline int32_t get_m_stencilID_252() const { return ___m_stencilID_252; }
inline int32_t* get_address_of_m_stencilID_252() { return &___m_stencilID_252; }
inline void set_m_stencilID_252(int32_t value)
{
___m_stencilID_252 = value;
}
inline static int32_t get_offset_of_m_maskOffset_253() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_maskOffset_253)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_m_maskOffset_253() const { return ___m_maskOffset_253; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_m_maskOffset_253() { return &___m_maskOffset_253; }
inline void set_m_maskOffset_253(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___m_maskOffset_253 = value;
}
inline static int32_t get_offset_of_m_EnvMapMatrix_254() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_EnvMapMatrix_254)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_m_EnvMapMatrix_254() const { return ___m_EnvMapMatrix_254; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_m_EnvMapMatrix_254() { return &___m_EnvMapMatrix_254; }
inline void set_m_EnvMapMatrix_254(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___m_EnvMapMatrix_254 = value;
}
inline static int32_t get_offset_of_m_isRegisteredForEvents_255() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isRegisteredForEvents_255)); }
inline bool get_m_isRegisteredForEvents_255() const { return ___m_isRegisteredForEvents_255; }
inline bool* get_address_of_m_isRegisteredForEvents_255() { return &___m_isRegisteredForEvents_255; }
inline void set_m_isRegisteredForEvents_255(bool value)
{
___m_isRegisteredForEvents_255 = value;
}
inline static int32_t get_offset_of_m_recursiveCountA_256() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_recursiveCountA_256)); }
inline int32_t get_m_recursiveCountA_256() const { return ___m_recursiveCountA_256; }
inline int32_t* get_address_of_m_recursiveCountA_256() { return &___m_recursiveCountA_256; }
inline void set_m_recursiveCountA_256(int32_t value)
{
___m_recursiveCountA_256 = value;
}
inline static int32_t get_offset_of_loopCountA_257() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___loopCountA_257)); }
inline int32_t get_loopCountA_257() const { return ___loopCountA_257; }
inline int32_t* get_address_of_loopCountA_257() { return &___loopCountA_257; }
inline void set_loopCountA_257(int32_t value)
{
___loopCountA_257 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Photon.Realtime.Player[]
struct PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * m_Items[1];
public:
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** 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, Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// PlayerController[]
struct PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76 : public RuntimeArray
{
public:
ALIGN_FIELD (8) PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * m_Items[1];
public:
inline PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 ** 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, PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A : 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((void**)m_Items + index, (void*)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((void**)m_Items + index, (void*)value);
}
};
// UnityEngine.Transform[]
struct TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * m_Items[1];
public:
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** 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, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// PlayerUIContainer[]
struct PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83 : public RuntimeArray
{
public:
ALIGN_FIELD (8) PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * m_Items[1];
public:
inline PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 ** 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, PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// System.String[]
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E : 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((void**)m_Items + index, (void*)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((void**)m_Items + index, (void*)value);
}
};
// !!0[] System.Array::Empty<System.Object>()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_gshared_inline (const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_GetComponent_TisRuntimeObject_mD4382B2843BA9A61A01A8F9D7B9813D060F9C9CA_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Void System.Func`2<System.Object,System.Boolean>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Func_2__ctor_m5153AE6EE06BA488EF3D92A0DCF7E4EF530961B5_gshared (Func_2_t7EE965B791A606D187CCB69569A433D4CBB36879 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// !!0 System.Linq.Enumerable::First<System.Object>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Enumerable_First_TisRuntimeObject_m7733589CB8708A5E2EAE73EED4138F58A10199E9_gshared (RuntimeObject* ___source0, Func_2_t7EE965B791A606D187CCB69569A433D4CBB36879 * ___predicate1, const RuntimeMethod* method);
// Photon.Realtime.Player[] Photon.Pun.PhotonNetwork::get_PlayerList()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141 (const RuntimeMethod* method);
// Photon.Pun.PhotonView Photon.Pun.MonoBehaviourPun::get_photonView()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B (MonoBehaviourPun_t41335C3B2B6804088B520155103E3A0EEA4F814A * __this, const RuntimeMethod* method);
// !!0[] System.Array::Empty<System.Object>()
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_inline (const RuntimeMethod* method)
{
return (( ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* (*) (const RuntimeMethod*))Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_gshared_inline)(method);
}
// System.Void Photon.Pun.PhotonView::RPC(System.String,Photon.Pun.RpcTarget,System.Object[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301 (PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * __this, String_t* ___methodName0, int32_t ___target1, ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___parameters2, const RuntimeMethod* method);
// System.Void GameManager::SpawnPlayer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Vector3::.ctor(System.Single,System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method);
// UnityEngine.Quaternion UnityEngine.Quaternion::get_identity()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 Quaternion_get_identity_m548B37D80F2DEE60E41D1F09BF6889B557BE1A64 (const RuntimeMethod* method);
// UnityEngine.GameObject Photon.Pun.PhotonNetwork::Instantiate(System.String,UnityEngine.Vector3,UnityEngine.Quaternion,System.Byte,System.Object[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * PhotonNetwork_Instantiate_m9D218816B3E0E9BE9143CB7952E35B49EBCD8145 (String_t* ___prefabName0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position1, Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation2, uint8_t ___group3, ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___data4, const RuntimeMethod* method);
// System.Void UnityEngine.Debug::Log(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708 (RuntimeObject * ___message0, const RuntimeMethod* method);
// System.Int32 UnityEngine.Random::Range(System.Int32,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Random_Range_mD0C8F37FF3CAB1D87AAA6C45130BD59626BD6780 (int32_t ___min0, int32_t ___max1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Transform::get_position()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<PlayerController>()
inline PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GameObject_GetComponent_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_mE97771A17F0DD6C17DECDDE26CC1D2D6B0C02C7E (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mD4382B2843BA9A61A01A8F9D7B9813D060F9C9CA_gshared)(__this, method);
}
// Photon.Realtime.Player Photon.Pun.PhotonNetwork::get_LocalPlayer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * PhotonNetwork_get_LocalPlayer_m06E2D9682B713C828A00C0BD4F03A0CBC1E2D1B6 (const RuntimeMethod* method);
// System.Void GameManager/<>c__DisplayClass18_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass18_0__ctor_mD90FF0B1F4FE2CA773E592D4F8EBF09B7E979DCC (U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * __this, const RuntimeMethod* method);
// System.Void System.Func`2<PlayerController,System.Boolean>::.ctor(System.Object,System.IntPtr)
inline void Func_2__ctor_m3DEA515FA324E2F3A58827D62C251589750B4E1F (Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A *, RuntimeObject *, intptr_t, const RuntimeMethod*))Func_2__ctor_m5153AE6EE06BA488EF3D92A0DCF7E4EF530961B5_gshared)(__this, ___object0, ___method1, method);
}
// !!0 System.Linq.Enumerable::First<PlayerController>(System.Collections.Generic.IEnumerable`1<!!0>,System.Func`2<!!0,System.Boolean>)
inline PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * Enumerable_First_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_m9E0FBF43AA9893161290E89AD4870906B4EF22DC (RuntimeObject* ___source0, Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A * ___predicate1, const RuntimeMethod* method)
{
return (( PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * (*) (RuntimeObject*, Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A *, const RuntimeMethod*))Enumerable_First_TisRuntimeObject_m7733589CB8708A5E2EAE73EED4138F58A10199E9_gshared)(___source0, ___predicate1, method);
}
// System.Void GameManager/<>c__DisplayClass19_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass19_0__ctor_m13F523D31350C5E78ACFD2D67DC14F4232357ACF (U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * __this, const RuntimeMethod* method);
// PlayerController GameManager::GetPlayer(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, int32_t ___playerId0, const RuntimeMethod* method);
// System.Void PlayerController::SetHat(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_SetHat_m3F6774AA7A564DE73672AF19DB43B4D6ECB113B2 (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, bool ___hasHat0, const RuntimeMethod* method);
// System.Single UnityEngine.Time::get_time()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8 (const RuntimeMethod* method);
// System.String Photon.Realtime.Player::get_NickName()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Player_get_NickName_mB7D3A3FD8493B2FFF9B0537194CE9C697473C2EE (Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * __this, const RuntimeMethod* method);
// System.Void GameUI::SetWinText(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7 (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, String_t* ___winnerName0, const RuntimeMethod* method);
// System.Void UnityEngine.MonoBehaviour::Invoke(System.String,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour_Invoke_m979EDEF812D4630882E2E8346776B6CA5A9176BF (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, String_t* ___methodName0, float ___time1, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonNetwork::LeaveRoom(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonNetwork_LeaveRoom_mF8484F679A0477C0D4647CA2EF50036D38E16C44 (bool ___becomeInactive0, const RuntimeMethod* method);
// System.Void NetworkManager::ChangeScene(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, String_t* ___sceneName0, const RuntimeMethod* method);
// System.Void Photon.Pun.MonoBehaviourPunCallbacks::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA (MonoBehaviourPunCallbacks_t1C6D230D24896A20359CB7016C7AD6E4654B885D * __this, const RuntimeMethod* method);
// System.Void System.Object::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0 (RuntimeObject * __this, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.Component::get_gameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
// System.Void GameUI::InitializePlayerUI()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.GameObject::SetActive(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, bool ___value0, const RuntimeMethod* method);
// System.Void TMPro.TMP_Text::set_text(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960 (TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.UI.Slider::set_maxValue(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Slider_set_maxValue_m45561A3731F4EB48C10715E062856824B5AEF20B (Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * __this, float ___value0, const RuntimeMethod* method);
// System.Void GameUI::UpdatePlayerUI()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
// System.String System.String::Concat(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE (String_t* ___str00, String_t* ___str11, const RuntimeMethod* method);
// System.Void UnityEngine.MonoBehaviour::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97 (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.GameObject::get_gameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * GameObject_get_gameObject_mB8D6D847ABF95430B098554F3F2D63EC1D30C815 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Object::Destroy(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___obj0, const RuntimeMethod* method);
// System.Void UnityEngine.UI.Selectable::set_interactable(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B (Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * __this, bool ___value0, const RuntimeMethod* method);
// System.String TMPro.TMP_InputField::get_text()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* TMP_InputField_get_text_m0B83533C9290F4C6956BDE7FC9024CBF5DDCB785 (TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * __this, const RuntimeMethod* method);
// System.Void NetworkManager::CreateRoom(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, String_t* ___roomName0, const RuntimeMethod* method);
// System.Void NetworkManager::JoinRoom(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, String_t* ___roomName0, const RuntimeMethod* method);
// System.Void Photon.Pun.PhotonNetwork::set_NickName(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PhotonNetwork_set_NickName_m6AECDDC42FD01FEF165A3E325FCFE7F2967FFEAD (String_t* ___value0, const RuntimeMethod* method);
// System.String TMPro.TMP_Text::get_text()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* TMP_Text_get_text_m585E635D68DD2AD9C884A88658222AB7F84720FB (TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * __this, const RuntimeMethod* method);
// System.String System.String::Concat(System.String,System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Concat_mF4626905368D6558695A823466A1AF65EADB9923 (String_t* ___str00, String_t* ___str11, String_t* ___str22, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonNetwork::get_IsMasterClient()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonNetwork_get_IsMasterClient_m7EE228BA31428CCA42C74D8805DD9B3A951E7E57 (const RuntimeMethod* method);
// System.Void Menu::SetScreen(UnityEngine.GameObject)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_SetScreen_m1B0845A11F3AE3A5DBE2D445A140FA13B6686A45 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___screen0, const RuntimeMethod* method);
// System.Void Menu::UpdateLobbyUI()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Object::DontDestroyOnLoad(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_DontDestroyOnLoad_m4DC90770AD6084E4B1B8489C6B41205DC020C207 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___target0, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonNetwork::ConnectUsingSettings()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonNetwork_ConnectUsingSettings_m8021DCB20F8D5D3A9FBFEE38935D95CCC5579355 (const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonNetwork::CreateRoom(System.String,Photon.Realtime.RoomOptions,Photon.Realtime.TypedLobby,System.String[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonNetwork_CreateRoom_m8F4C5E1CB330B138058D6A7C96971DB1E43AF915 (String_t* ___roomName0, RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906 * ___roomOptions1, TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 * ___typedLobby2, StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___expectedUsers3, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonNetwork::JoinRoom(System.String,System.String[])
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonNetwork_JoinRoom_m636ADAA907982A002F39B01CD1CEEBEEE0B8A524 (String_t* ___roomName0, StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___expectedUsers1, const RuntimeMethod* method);
// Photon.Realtime.Room Photon.Pun.PhotonNetwork::get_CurrentRoom()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Room_t5DFC39DD6736A2641374564EC6C31352BE33000D * PhotonNetwork_get_CurrentRoom_m493DA29D80F75DC0BEFF3125207AE9101C0100A1 (const RuntimeMethod* method);
// System.String Photon.Realtime.Room::get_Name()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Room_get_Name_mCDF41719862596519BBE7091948656DF28B30607 (Room_t5DFC39DD6736A2641374564EC6C31352BE33000D * __this, const RuntimeMethod* method);
// System.Void Photon.Pun.PhotonNetwork::LoadLevel(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PhotonNetwork_LoadLevel_m018189075246B97065C057D7128BE87C6514D7E6 (String_t* ___levelName0, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonView::get_IsMine()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonView_get_IsMine_mFE1D0AB5684F18073518777C1D8FF764CB335793 (PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * __this, const RuntimeMethod* method);
// System.Void PlayerController::Move()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.Input::GetKeyDown(UnityEngine.KeyCode)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Input_GetKeyDown_mEA57896808B6F484B12CD0AEEB83390A3CFCDBDC (int32_t ___key0, const RuntimeMethod* method);
// System.Void PlayerController::TryJump()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.GameObject::get_activeInHierarchy()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GameObject_get_activeInHierarchy_mDEE60F1B28281974BA9880EC448682F3DAABB1EF (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Single UnityEngine.Time::get_deltaTime()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Time_get_deltaTime_m16F98FC9BA931581236008C288E3B25CBCB7C81E (const RuntimeMethod* method);
// System.Single UnityEngine.Input::GetAxis(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Input_GetAxis_m6454498C755B9A2C964875927FB557CA9E75D387 (String_t* ___axisName0, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Rigidbody::get_velocity()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Rigidbody_get_velocity_m584A6D79C3657C21AE9CAA56BEE05582B8D5A2B8 (Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Rigidbody::set_velocity(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Rigidbody_set_velocity_m8D129E88E62AD02AB81CFC8BE694C4A5A2B2B380 (Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.Component::get_transform()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::get_down()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_down_m3F76A48E5B7C82B35EE047375538AFD91A305F55 (const RuntimeMethod* method);
// System.Void UnityEngine.Ray::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Ray__ctor_m695D219349B8AA4C82F96C55A27D384C07736F6B (Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___origin0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___direction1, const RuntimeMethod* method);
// System.Boolean UnityEngine.Physics::Raycast(UnityEngine.Ray,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Physics_Raycast_m198FD20B3D1BC1634AE30E80E0FD1491D55417E5 (Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 ___ray0, float ___maxDistance1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::get_up()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_up_m6309EBC4E42D6D0B3D28056BD23D0331275306F7 (const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_op_Multiply_m1C5F07723615156ACF035D88A1280A9E8F35A04E (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___a0, float ___d1, const RuntimeMethod* method);
// System.Void UnityEngine.Rigidbody::AddForce(UnityEngine.Vector3,UnityEngine.ForceMode)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Rigidbody_AddForce_mD64ACF772614FE36CFD8A477A07A407B35DF1A54 (Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___force0, int32_t ___mode1, const RuntimeMethod* method);
// System.Int32 Photon.Realtime.Player::get_ActorNumber()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Player_get_ActorNumber_m02157560C558C6007C8146F1FCDA7E759AD0CF1D (Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Rigidbody::set_isKinematic(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Rigidbody_set_isKinematic_m856AB59E5A6207892C439AFC8DDF5620B941E71B (Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * __this, bool ___value0, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.Collision::get_gameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Collision_get_gameObject_m9A7069ABE50D4BB957A8ED76E5F4A59ACEC57C49 (Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.GameObject::CompareTag(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GameObject_CompareTag_mF66519C9DAE4CC8873C36A04C3CAF7DDEC3C7EFE (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, String_t* ___tag0, const RuntimeMethod* method);
// PlayerController GameManager::GetPlayer(UnityEngine.GameObject)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___playerObject0, const RuntimeMethod* method);
// System.Boolean GameManager::CanGetHat()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GameManager_CanGetHat_m49FBC3E56EB6EEAA7B20866B3FEB5A5E2363C191 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method);
// System.Void GameManager::ResetHat()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Transform::set_position(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Transform_set_position_mDA89E4893F14ECA5CBEEE7FB80A5BF7C1B8EA6DC (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonStream::get_IsWriting()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool PhotonStream_get_IsWriting_mB16D73A32F0C3C1CE9272057F667CE15C1DBC458_inline (PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * __this, const RuntimeMethod* method);
// System.Void Photon.Pun.PhotonStream::SendNext(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PhotonStream_SendNext_mCDF0BEFCFF338F4A19ECFB8D25C67DAD2AA07712 (PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * __this, RuntimeObject * ___obj0, const RuntimeMethod* method);
// System.Boolean Photon.Pun.PhotonStream::get_IsReading()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool PhotonStream_get_IsReading_mB1BE45F09FE0C49E9DCEF6D70E8A0C436949B0D5 (PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * __this, const RuntimeMethod* method);
// System.Object Photon.Pun.PhotonStream::ReceiveNext()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * PhotonStream_ReceiveNext_m8D9908B4B3BFEA0C30F32C2F8CBB89FCA63357A9 (PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * __this, const RuntimeMethod* method);
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void GameManager::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_Awake_mE60F41F3186E80B2BAB293918745366D18508C0F (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_Awake_mE60F41F3186E80B2BAB293918745366D18508C0F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// instance = this;
((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->set_instance_15(__this);
// }
return;
}
}
// System.Void GameManager::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_Start_mD77CCDBF1DA8EC5C3AE7ED955DE4E7F54B79C88E (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_Start_mD77CCDBF1DA8EC5C3AE7ED955DE4E7F54B79C88E_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// players = new PlayerController[PhotonNetwork.PlayerList.Length];
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_0 = PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141(/*hidden argument*/NULL);
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_1 = (PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76*)(PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76*)SZArrayNew(PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76_il2cpp_TypeInfo_var, (uint32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_0)->max_length)))));
__this->set_players_11(L_1);
// photonView.RPC("ImInGame", RpcTarget.AllBuffered);
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_2 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_3 = Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_inline(/*hidden argument*/Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_RuntimeMethod_var);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_2, _stringLiteral4BEECDBD283DCF61CC280C9EE432BF1D3A1E5D3F, 3, L_3, /*hidden argument*/NULL);
// photonView.RPC("SpawnHat", RpcTarget.AllBuffered);
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_4 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_5 = Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_inline(/*hidden argument*/Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_RuntimeMethod_var);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_4, _stringLiteral2A54D65D10BC26F28F04F1CDABF30284A028F864, 3, L_5, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameManager::ImInGame()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_ImInGame_mFC048F4A7EE745E51CC1AC67097AD2032052AE56 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_ImInGame_mFC048F4A7EE745E51CC1AC67097AD2032052AE56_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
// playersInGame++;
int32_t L_0 = __this->get_playersInGame_13();
__this->set_playersInGame_13(((int32_t)il2cpp_codegen_add((int32_t)L_0, (int32_t)1)));
// if (playersInGame == PhotonNetwork.PlayerList.Length)
int32_t L_1 = __this->get_playersInGame_13();
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_2 = PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141(/*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_1) == ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_2)->max_length))))))? 1 : 0);
bool L_3 = V_0;
if (!L_3)
{
goto IL_0029;
}
}
{
// SpawnPlayer();
GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29(__this, /*hidden argument*/NULL);
}
IL_0029:
{
// }
return;
}
}
// System.Void GameManager::Update()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_Update_m07DC32583BF09EB71183725B7B95FA7B4716988A (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
{
// }
return;
}
}
// System.Void GameManager::SpawnHat()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_SpawnHat_m645C9210553008A11CEED045A9664FA2185E314F (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_SpawnHat_m645C9210553008A11CEED045A9664FA2185E314F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// playerWithHat = 99;
__this->set_playerWithHat_12(((int32_t)99));
// PhotonNetwork.Instantiate(hatLocation, new Vector3(0, 0.15f, 0), Quaternion.identity);
String_t* L_0 = __this->get_hatLocation_14();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1;
memset((&L_1), 0, sizeof(L_1));
Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1((&L_1), (0.0f), (0.15f), (0.0f), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var);
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 L_2 = Quaternion_get_identity_m548B37D80F2DEE60E41D1F09BF6889B557BE1A64(/*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_Instantiate_m9D218816B3E0E9BE9143CB7952E35B49EBCD8145(L_0, L_1, L_2, (uint8_t)0, (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)NULL, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameManager::ResetHat()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// photonView.RPC("SpawnHat", RpcTarget.AllBuffered);
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_0 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_1 = Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_inline(/*hidden argument*/Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_RuntimeMethod_var);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_0, _stringLiteral2A54D65D10BC26F28F04F1CDABF30284A028F864, 3, L_1, /*hidden argument*/NULL);
// Debug.Log(playerWithHat);
int32_t L_2 = __this->get_playerWithHat_12();
int32_t L_3 = L_2;
RuntimeObject * L_4 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_3);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708(L_4, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameManager::SpawnPlayer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_SpawnPlayer_m26F2B18455987BCFBB52B9F90F88322D9C7F1B29_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * V_1 = NULL;
{
// GameObject playerObj = PhotonNetwork.Instantiate(playerPrefabLocation, spawnPoints[Random.Range(0,3)].position, Quaternion.identity);
String_t* L_0 = __this->get_playerPrefabLocation_9();
TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804* L_1 = __this->get_spawnPoints_10();
int32_t L_2 = Random_Range_mD0C8F37FF3CAB1D87AAA6C45130BD59626BD6780(0, 3, /*hidden argument*/NULL);
int32_t L_3 = L_2;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_4 = (L_1)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_5 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_4, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var);
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 L_6 = Quaternion_get_identity_m548B37D80F2DEE60E41D1F09BF6889B557BE1A64(/*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = PhotonNetwork_Instantiate_m9D218816B3E0E9BE9143CB7952E35B49EBCD8145(L_0, L_5, L_6, (uint8_t)0, (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)NULL, /*hidden argument*/NULL);
V_0 = L_7;
// PlayerController playerScript = playerObj.GetComponent<PlayerController>();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = V_0;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_9 = GameObject_GetComponent_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_mE97771A17F0DD6C17DECDDE26CC1D2D6B0C02C7E(L_8, /*hidden argument*/GameObject_GetComponent_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_mE97771A17F0DD6C17DECDDE26CC1D2D6B0C02C7E_RuntimeMethod_var);
V_1 = L_9;
// playerScript.photonView.RPC("Initialize", RpcTarget.All, PhotonNetwork.LocalPlayer);
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_10 = V_1;
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_11 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(L_10, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_12 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)1);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_13 = L_12;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_14 = PhotonNetwork_get_LocalPlayer_m06E2D9682B713C828A00C0BD4F03A0CBC1E2D1B6(/*hidden argument*/NULL);
ArrayElementTypeCheck (L_13, L_14);
(L_13)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_14);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_11, _stringLiteralA459DFF3012DA591453989E5860A6FD825F63CE3, 0, L_13, /*hidden argument*/NULL);
// }
return;
}
}
// PlayerController GameManager::GetPlayer(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, int32_t ___playerId0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * V_0 = NULL;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * V_1 = NULL;
{
U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * L_0 = (U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass18_0__ctor_mD90FF0B1F4FE2CA773E592D4F8EBF09B7E979DCC(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * L_1 = V_0;
int32_t L_2 = ___playerId0;
L_1->set_playerId_0(L_2);
// return players.First(x => x.id == playerId);
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_3 = __this->get_players_11();
U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * L_4 = V_0;
Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A * L_5 = (Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A *)il2cpp_codegen_object_new(Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A_il2cpp_TypeInfo_var);
Func_2__ctor_m3DEA515FA324E2F3A58827D62C251589750B4E1F(L_5, L_4, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass18_0_U3CGetPlayerU3Eb__0_m816F8DFE4655CD84B0E28BEBA058BEA507B8949E_RuntimeMethod_var), /*hidden argument*/Func_2__ctor_m3DEA515FA324E2F3A58827D62C251589750B4E1F_RuntimeMethod_var);
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_6 = Enumerable_First_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_m9E0FBF43AA9893161290E89AD4870906B4EF22DC((RuntimeObject*)(RuntimeObject*)L_3, L_5, /*hidden argument*/Enumerable_First_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_m9E0FBF43AA9893161290E89AD4870906B4EF22DC_RuntimeMethod_var);
V_1 = L_6;
goto IL_0028;
}
IL_0028:
{
// }
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_7 = V_1;
return L_7;
}
}
// PlayerController GameManager::GetPlayer(UnityEngine.GameObject)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___playerObject0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * V_0 = NULL;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * V_1 = NULL;
{
U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * L_0 = (U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass19_0__ctor_m13F523D31350C5E78ACFD2D67DC14F4232357ACF(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * L_1 = V_0;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = ___playerObject0;
L_1->set_playerObject_0(L_2);
// return players.First(x => x.gameObject == playerObject);
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_3 = __this->get_players_11();
U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * L_4 = V_0;
Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A * L_5 = (Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A *)il2cpp_codegen_object_new(Func_2_t235A902D9E66712E3CED414C2786DA451C633F4A_il2cpp_TypeInfo_var);
Func_2__ctor_m3DEA515FA324E2F3A58827D62C251589750B4E1F(L_5, L_4, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290_RuntimeMethod_var), /*hidden argument*/Func_2__ctor_m3DEA515FA324E2F3A58827D62C251589750B4E1F_RuntimeMethod_var);
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_6 = Enumerable_First_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_m9E0FBF43AA9893161290E89AD4870906B4EF22DC((RuntimeObject*)(RuntimeObject*)L_3, L_5, /*hidden argument*/Enumerable_First_TisPlayerController_t4CE339054014370D89B89922EDC0EA2766589C85_m9E0FBF43AA9893161290E89AD4870906B4EF22DC_RuntimeMethod_var);
V_1 = L_6;
goto IL_0028;
}
IL_0028:
{
// }
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_7 = V_1;
return L_7;
}
}
// System.Void GameManager::GiveHat(System.Int32,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_GiveHat_mC847D218678428E7DAF3AF49AFD88F731DBA7ECF (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, int32_t ___playerId0, bool ___initialGive1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_GiveHat_mC847D218678428E7DAF3AF49AFD88F731DBA7ECF_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// playerWithHat = playerId;
int32_t L_0 = ___playerId0;
__this->set_playerWithHat_12(L_0);
// GetPlayer(playerId).SetHat(true);
int32_t L_1 = ___playerId0;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_2 = GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868(__this, L_1, /*hidden argument*/NULL);
PlayerController_SetHat_m3F6774AA7A564DE73672AF19DB43B4D6ECB113B2(L_2, (bool)1, /*hidden argument*/NULL);
// hatPickUpTime = Time.time;
float L_3 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL);
__this->set_hatPickUpTime_8(L_3);
// Debug.Log(playerWithHat);
int32_t L_4 = __this->get_playerWithHat_12();
int32_t L_5 = L_4;
RuntimeObject * L_6 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_5);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708(L_6, /*hidden argument*/NULL);
// }
return;
}
}
// System.Boolean GameManager::CanGetHat()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GameManager_CanGetHat_m49FBC3E56EB6EEAA7B20866B3FEB5A5E2363C191 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
bool V_0 = false;
bool V_1 = false;
{
// if (Time.time > hatPickUpTime + invincibleDuration)
float L_0 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL);
float L_1 = __this->get_hatPickUpTime_8();
float L_2 = __this->get_invincibleDuration_7();
V_0 = (bool)((((float)L_0) > ((float)((float)il2cpp_codegen_add((float)L_1, (float)L_2))))? 1 : 0);
bool L_3 = V_0;
if (!L_3)
{
goto IL_001d;
}
}
{
// return true;
V_1 = (bool)1;
goto IL_0021;
}
IL_001d:
{
// return false;
V_1 = (bool)0;
goto IL_0021;
}
IL_0021:
{
// }
bool L_4 = V_1;
return L_4;
}
}
// System.Void GameManager::WinGame(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_WinGame_m8F3D0B80EAE07903B38B9F34440527A99AA7D2C3 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, int32_t ___playerId0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_WinGame_m8F3D0B80EAE07903B38B9F34440527A99AA7D2C3_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * V_0 = NULL;
{
// gameEnded = true;
__this->set_gameEnded_5((bool)1);
// PlayerController player = GetPlayer(playerId);
int32_t L_0 = ___playerId0;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_1 = GameManager_GetPlayer_m75E59BBF611DEFEFA041C60630B00D1CC8DA4868(__this, L_0, /*hidden argument*/NULL);
V_0 = L_1;
// GameUI.instance.SetWinText(player.photonPlayer.NickName);
GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * L_2 = ((GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields*)il2cpp_codegen_static_fields_for(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_il2cpp_TypeInfo_var))->get_instance_6();
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_3 = V_0;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_4 = L_3->get_photonPlayer_11();
String_t* L_5 = Player_get_NickName_mB7D3A3FD8493B2FFF9B0537194CE9C697473C2EE(L_4, /*hidden argument*/NULL);
GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7(L_2, L_5, /*hidden argument*/NULL);
// Invoke("GoBackToMenu", 3.0f);
MonoBehaviour_Invoke_m979EDEF812D4630882E2E8346776B6CA5A9176BF(__this, _stringLiteral88CDC31E25170F0FC2859CF847CF96F4B0C06CF5, (3.0f), /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameManager::GoBackToMenu()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager_GoBackToMenu_m74630BE0DA972DDB8C068F4BA2BA5D2B492C6552 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameManager_GoBackToMenu_m74630BE0DA972DDB8C068F4BA2BA5D2B492C6552_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.LeaveRoom();
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_LeaveRoom_mF8484F679A0477C0D4647CA2EF50036D38E16C44((bool)1, /*hidden argument*/NULL);
// NetworkManager.instance.ChangeScene("Menu");
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * L_0 = ((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->get_instance_5();
NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D(L_0, _stringLiteral57F5F5EFBC5990F5230AA95359042338B856707B, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameManager::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameManager__ctor_mF7F1107D38DE91EB8A57C1C3BB1A932C50CD9693 (GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * __this, const RuntimeMethod* method)
{
{
// public bool gameEnded = false;
__this->set_gameEnded_5((bool)0);
MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void GameManager_<>c__DisplayClass18_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass18_0__ctor_mD90FF0B1F4FE2CA773E592D4F8EBF09B7E979DCC (U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean GameManager_<>c__DisplayClass18_0::<GetPlayer>b__0(PlayerController)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CU3Ec__DisplayClass18_0_U3CGetPlayerU3Eb__0_m816F8DFE4655CD84B0E28BEBA058BEA507B8949E (U3CU3Ec__DisplayClass18_0_t43E9975021FEC2660E37BCB42DC083E15387E60F * __this, PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * ___x0, const RuntimeMethod* method)
{
{
// return players.First(x => x.id == playerId);
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_0 = ___x0;
int32_t L_1 = L_0->get_id_5();
int32_t L_2 = __this->get_playerId_0();
return (bool)((((int32_t)L_1) == ((int32_t)L_2))? 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 GameManager_<>c__DisplayClass19_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass19_0__ctor_m13F523D31350C5E78ACFD2D67DC14F4232357ACF (U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean GameManager_<>c__DisplayClass19_0::<GetPlayer>b__0(PlayerController)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290 (U3CU3Ec__DisplayClass19_0_tA2EA056706881E59940A02D79F22E0F992FAAFEE * __this, PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * ___x0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass19_0_U3CGetPlayerU3Eb__0_m4D3181B6641299AD1D6AEF573483146C69053290_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// return players.First(x => x.gameObject == playerObject);
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_0 = ___x0;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_0, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = __this->get_playerObject_0();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(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 GameUI::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_Awake_m7E8168F25985A4BB698D33687AFF766EE1581904 (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameUI_Awake_m7E8168F25985A4BB698D33687AFF766EE1581904_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// instance = this;
((GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_StaticFields*)il2cpp_codegen_static_fields_for(GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0_il2cpp_TypeInfo_var))->set_instance_6(__this);
// }
return;
}
}
// System.Void GameUI::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_Start_mFE3922E08427BF27BEDD28BC2D596A8CA9399D0E (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method)
{
{
// InitializePlayerUI();
GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameUI::InitializePlayerUI()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameUI_InitializePlayerUI_mED286ED1580116BC29225584F5D87B25AEBCA23F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * V_1 = NULL;
bool V_2 = false;
bool V_3 = false;
{
// for (int i = 0; i < playerContainers.Length; i++)
V_0 = 0;
goto IL_006e;
}
IL_0005:
{
// PlayerUIContainer container = playerContainers[i];
PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* L_0 = __this->get_playerContainers_4();
int32_t L_1 = V_0;
int32_t L_2 = L_1;
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * L_3 = (L_0)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_2));
V_1 = L_3;
// if (i < PhotonNetwork.PlayerList.Length)
int32_t L_4 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_5 = PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141(/*hidden argument*/NULL);
V_2 = (bool)((((int32_t)L_4) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_5)->max_length))))))? 1 : 0);
bool L_6 = V_2;
if (!L_6)
{
goto IL_005c;
}
}
{
// container.obj.SetActive(true);
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * L_7 = V_1;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = L_7->get_obj_0();
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_8, (bool)1, /*hidden argument*/NULL);
// container.nameText.text = PhotonNetwork.PlayerList[i].NickName;
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * L_9 = V_1;
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_10 = L_9->get_nameText_1();
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_11 = PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141(/*hidden argument*/NULL);
int32_t L_12 = V_0;
int32_t L_13 = L_12;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_14 = (L_11)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_13));
String_t* L_15 = Player_get_NickName_mB7D3A3FD8493B2FFF9B0537194CE9C697473C2EE(L_14, /*hidden argument*/NULL);
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_10, L_15, /*hidden argument*/NULL);
// container.hatTimeSlider.maxValue = GameManager.instance.timeToWin;
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * L_16 = V_1;
Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * L_17 = L_16->get_hatTimeSlider_2();
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_18 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
float L_19 = L_18->get_timeToWin_6();
Slider_set_maxValue_m45561A3731F4EB48C10715E062856824B5AEF20B(L_17, L_19, /*hidden argument*/NULL);
goto IL_0069;
}
IL_005c:
{
// container.obj.SetActive(false);
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * L_20 = V_1;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_21 = L_20->get_obj_0();
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_21, (bool)0, /*hidden argument*/NULL);
}
IL_0069:
{
// for (int i = 0; i < playerContainers.Length; i++)
int32_t L_22 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_22, (int32_t)1));
}
IL_006e:
{
// for (int i = 0; i < playerContainers.Length; i++)
int32_t L_23 = V_0;
PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* L_24 = __this->get_playerContainers_4();
V_3 = (bool)((((int32_t)L_23) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_24)->max_length))))))? 1 : 0);
bool L_25 = V_3;
if (L_25)
{
goto IL_0005;
}
}
{
// }
return;
}
}
// System.Void GameUI::Update()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_Update_mAC534E039A52707418076CBC44C43B55C59F80DA (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method)
{
{
// UpdatePlayerUI();
GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameUI::UpdatePlayerUI()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameUI_UpdatePlayerUI_m53B46F2697557711982474F46F9F50AF2B3AFF9D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
bool V_1 = false;
bool V_2 = false;
{
// for (int i = 0; i < GameManager.instance.players.Length; ++i)
V_0 = 0;
goto IL_0045;
}
IL_0005:
{
// if (GameManager.instance.players[i] != null)
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_0 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_1 = L_0->get_players_11();
int32_t L_2 = V_0;
int32_t L_3 = L_2;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_4 = (L_1)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_3));
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_5 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
V_1 = L_5;
bool L_6 = V_1;
if (!L_6)
{
goto IL_0040;
}
}
{
// playerContainers[i].hatTimeSlider.value = GameManager.instance.players[i].currentHatTime;
PlayerUIContainerU5BU5D_tF549C1C91527B25E18F601D75B13E9C893A60D83* L_7 = __this->get_playerContainers_4();
int32_t L_8 = V_0;
int32_t L_9 = L_8;
PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * L_10 = (L_7)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_9));
Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * L_11 = L_10->get_hatTimeSlider_2();
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_12 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_13 = L_12->get_players_11();
int32_t L_14 = V_0;
int32_t L_15 = L_14;
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_16 = (L_13)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_15));
float L_17 = L_16->get_currentHatTime_9();
VirtActionInvoker1< float >::Invoke(47 /* System.Void UnityEngine.UI.Slider::set_value(System.Single) */, L_11, L_17);
}
IL_0040:
{
// for (int i = 0; i < GameManager.instance.players.Length; ++i)
int32_t L_18 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
}
IL_0045:
{
// for (int i = 0; i < GameManager.instance.players.Length; ++i)
int32_t L_19 = V_0;
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_20 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_21 = L_20->get_players_11();
V_2 = (bool)((((int32_t)L_19) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_21)->max_length))))))? 1 : 0);
bool L_22 = V_2;
if (L_22)
{
goto IL_0005;
}
}
{
// }
return;
}
}
// System.Void GameUI::SetWinText(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7 (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, String_t* ___winnerName0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GameUI_SetWinText_mF9495236D7AFAF3E3A7394794ED322DF4FC42AD7_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// winText.gameObject.SetActive(true);
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_0 = __this->get_winText_5();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_0, /*hidden argument*/NULL);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_1, (bool)1, /*hidden argument*/NULL);
// winText.text = winnerName + " wins";
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_2 = __this->get_winText_5();
String_t* L_3 = ___winnerName0;
String_t* L_4 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(L_3, _stringLiteral2D6A3C08C2B0958295BF508BEDDE9F19ACC17096, /*hidden argument*/NULL);
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_2, L_4, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void GameUI::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameUI__ctor_mDBE3982B74C2EBF01D76742E8692B4827BF07964 (GameUI_t2AE58A49AA3DB38B703507989122E9C6361388F0 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Hat::OnCollisionEnter(UnityEngine.Collision)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Hat_OnCollisionEnter_m440C5DA62E0120D95EBFDD7F3148499BAEF1B103 (Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F * __this, Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * ___collision0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Hat_OnCollisionEnter_m440C5DA62E0120D95EBFDD7F3148499BAEF1B103_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// photonView.RPC("HideHat", RpcTarget.All);
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_0 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_1 = Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_inline(/*hidden argument*/Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_RuntimeMethod_var);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_0, _stringLiteral138A102B2A9159B07C7B48C6155866A9489FD9B8, 0, L_1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Hat::HideHat()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Hat_HideHat_m2DDC659FF007E6BB25A066F854028D7ADD21C7F4 (Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Hat_HideHat_m2DDC659FF007E6BB25A066F854028D7ADD21C7F4_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// Destroy(hatRef.gameObject);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_hatRef_5();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = GameObject_get_gameObject_mB8D6D847ABF95430B098554F3F2D63EC1D30C815(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Hat::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Hat__ctor_mAA5BB3CCC56358DE1AB3255B02EFC2DE530A427D (Hat_t0CE11059C8305648B29A91D6495DFE8041EEE09F * __this, const RuntimeMethod* method)
{
{
MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void Menu::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_Start_m26D2BE4EA9DEE5AF2FE548CF8EDDAFA0FE7379E9 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
{
// createRoomButton.interactable = false;
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * L_0 = __this->get_createRoomButton_7();
Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B(L_0, (bool)0, /*hidden argument*/NULL);
// joinRoomButton.interactable = false;
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * L_1 = __this->get_joinRoomButton_8();
Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B(L_1, (bool)0, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnConnectedToMaster()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnConnectedToMaster_m8BCBD43CD74822A8610221CA28A7F7D7CA6ED867 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
{
// createRoomButton.interactable = true;
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * L_0 = __this->get_createRoomButton_7();
Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B(L_0, (bool)1, /*hidden argument*/NULL);
// joinRoomButton.interactable = true;
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * L_1 = __this->get_joinRoomButton_8();
Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B(L_1, (bool)1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::SetScreen(UnityEngine.GameObject)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_SetScreen_m1B0845A11F3AE3A5DBE2D445A140FA13B6686A45 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___screen0, const RuntimeMethod* method)
{
{
// mainScreen.SetActive(false);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_mainScreen_5();
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_0, (bool)0, /*hidden argument*/NULL);
// lobbyScreen.SetActive(false);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = __this->get_lobbyScreen_6();
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_1, (bool)0, /*hidden argument*/NULL);
// screen.SetActive(true);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = ___screen0;
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_2, (bool)1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnCreateRoomButton(TMPro.TMP_InputField)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnCreateRoomButton_mB1C99D83F0E3CF439C2CF001666027C9F9E46FFF (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * ___roomNameInput0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_OnCreateRoomButton_mB1C99D83F0E3CF439C2CF001666027C9F9E46FFF_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// NetworkManager.instance.CreateRoom(roomNameInput.text);
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * L_0 = ((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->get_instance_5();
TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * L_1 = ___roomNameInput0;
String_t* L_2 = TMP_InputField_get_text_m0B83533C9290F4C6956BDE7FC9024CBF5DDCB785(L_1, /*hidden argument*/NULL);
NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7(L_0, L_2, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnJoinRoomButton(TMPro.TMP_InputField)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnJoinRoomButton_m703E09B7A62EE0B407E440BFD86B980688AC5D8F (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * ___roomNameInput0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_OnJoinRoomButton_m703E09B7A62EE0B407E440BFD86B980688AC5D8F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// NetworkManager.instance.JoinRoom(roomNameInput.text);
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * L_0 = ((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->get_instance_5();
TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * L_1 = ___roomNameInput0;
String_t* L_2 = TMP_InputField_get_text_m0B83533C9290F4C6956BDE7FC9024CBF5DDCB785(L_1, /*hidden argument*/NULL);
NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84(L_0, L_2, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnPlayerNameUpdate(TMPro.TMP_InputField)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnPlayerNameUpdate_m467F4E8FAA04E2E6D020763F4C1450512DEBDBAA (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * ___playerNameInput0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_OnPlayerNameUpdate_m467F4E8FAA04E2E6D020763F4C1450512DEBDBAA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.NickName = playerNameInput.text;
TMP_InputField_tC3C57E697A57232E8A855D39600CF06CFDA8F6CB * L_0 = ___playerNameInput0;
String_t* L_1 = TMP_InputField_get_text_m0B83533C9290F4C6956BDE7FC9024CBF5DDCB785(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_set_NickName_m6AECDDC42FD01FEF165A3E325FCFE7F2967FFEAD(L_1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::UpdateLobbyUI()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* V_0 = NULL;
int32_t V_1 = 0;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * V_2 = NULL;
bool V_3 = false;
{
// playerListText.text = "";
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_0 = __this->get_playerListText_9();
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_0, _stringLiteralDA39A3EE5E6B4B0D3255BFEF95601890AFD80709, /*hidden argument*/NULL);
// foreach (Player player in PhotonNetwork.PlayerList)
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_1 = PhotonNetwork_get_PlayerList_m4CE72F2631C77E9FB8D4ADC55AC868793C00B141(/*hidden argument*/NULL);
V_0 = L_1;
V_1 = 0;
goto IL_0049;
}
IL_001d:
{
// foreach (Player player in PhotonNetwork.PlayerList)
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_2 = V_0;
int32_t L_3 = V_1;
int32_t L_4 = L_3;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_5 = (L_2)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_4));
V_2 = L_5;
// playerListText.text += player.NickName + "\n";
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_6 = __this->get_playerListText_9();
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_7 = L_6;
String_t* L_8 = TMP_Text_get_text_m585E635D68DD2AD9C884A88658222AB7F84720FB(L_7, /*hidden argument*/NULL);
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_9 = V_2;
String_t* L_10 = Player_get_NickName_mB7D3A3FD8493B2FFF9B0537194CE9C697473C2EE(L_9, /*hidden argument*/NULL);
String_t* L_11 = String_Concat_mF4626905368D6558695A823466A1AF65EADB9923(L_8, L_10, _stringLiteralADC83B19E793491B1C6EA0FD8B46CD9F32E592FC, /*hidden argument*/NULL);
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_7, L_11, /*hidden argument*/NULL);
int32_t L_12 = V_1;
V_1 = ((int32_t)il2cpp_codegen_add((int32_t)L_12, (int32_t)1));
}
IL_0049:
{
// foreach (Player player in PhotonNetwork.PlayerList)
int32_t L_13 = V_1;
PlayerU5BU5D_tF4C1F867A25BCC6BF1FDD3E88D8E63321371FB83* L_14 = V_0;
if ((((int32_t)L_13) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_14)->max_length)))))))
{
goto IL_001d;
}
}
{
// if (PhotonNetwork.IsMasterClient)
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
bool L_15 = PhotonNetwork_get_IsMasterClient_m7EE228BA31428CCA42C74D8805DD9B3A951E7E57(/*hidden argument*/NULL);
V_3 = L_15;
bool L_16 = V_3;
if (!L_16)
{
goto IL_0067;
}
}
{
// startGameButton.interactable = true;
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * L_17 = __this->get_startGameButton_10();
Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B(L_17, (bool)1, /*hidden argument*/NULL);
goto IL_0074;
}
IL_0067:
{
// else startGameButton.interactable = false;
Button_t1203820000D5513FDCCE3D4BFF9C1C9CC755CC2B * L_18 = __this->get_startGameButton_10();
Selectable_set_interactable_mF0897CD627B603DE1F3714FFD8B121AB694E0B6B(L_18, (bool)0, /*hidden argument*/NULL);
}
IL_0074:
{
// }
return;
}
}
// System.Void Menu::OnJoinedRoom()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnJoinedRoom_mBA464E8DE750747726F55F4DF1CF9D1D35BD2C90 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_OnJoinedRoom_mBA464E8DE750747726F55F4DF1CF9D1D35BD2C90_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// SetScreen(lobbyScreen);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_lobbyScreen_6();
Menu_SetScreen_m1B0845A11F3AE3A5DBE2D445A140FA13B6686A45(__this, L_0, /*hidden argument*/NULL);
// photonView.RPC("UpdateLobbyUI", RpcTarget.All);
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_1 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_2 = Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_inline(/*hidden argument*/Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_RuntimeMethod_var);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_1, _stringLiteralD39485494FC7DE1A208AEFFE070A64E04F9FA733, 0, L_2, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnPlayerLeftRoom(Photon.Realtime.Player)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnPlayerLeftRoom_m3D3DEF1693BC102758D43422D2A33B589F8BDFCD (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___otherPlayer0, const RuntimeMethod* method)
{
{
// UpdateLobbyUI();
Menu_UpdateLobbyUI_mBA76EB2494421A0CC5EBEF4D8B45C9897EFE5F95(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnLeaveLobbyButton()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnLeaveLobbyButton_m1023FF94D36F696F8C7D02E21944B65D446D3976 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_OnLeaveLobbyButton_m1023FF94D36F696F8C7D02E21944B65D446D3976_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.LeaveRoom();
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_LeaveRoom_mF8484F679A0477C0D4647CA2EF50036D38E16C44((bool)1, /*hidden argument*/NULL);
// SetScreen(mainScreen);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_mainScreen_5();
Menu_SetScreen_m1B0845A11F3AE3A5DBE2D445A140FA13B6686A45(__this, L_0, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::OnStartGameButton()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu_OnStartGameButton_mC2F92820F2C0FBC0477D5B1A153B2009E4F9B47D (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (Menu_OnStartGameButton_mC2F92820F2C0FBC0477D5B1A153B2009E4F9B47D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// NetworkManager.instance.photonView.RPC("ChangeScene", RpcTarget.All, "Game");
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * L_0 = ((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->get_instance_5();
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_1 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(L_0, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_2 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)1);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_3 = L_2;
ArrayElementTypeCheck (L_3, _stringLiteralE3E82846C32567811615378F30240185871E08E5);
(L_3)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)_stringLiteralE3E82846C32567811615378F30240185871E08E5);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_1, _stringLiteral1E7B38E1F24892CE7AF50195963DF52B2D443711, 0, L_3, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void Menu::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Menu__ctor_mD372D109F6554E1F9A25291964C852C9F6BFC463 (Menu_t7D066A010AF240D53C2DDA2B05DF31FD0B5F3129 * __this, const RuntimeMethod* method)
{
{
MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void NetworkManager::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_Awake_m47DA4AE4B59D974EE100E14061AFD133B03D9929 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_Awake_m47DA4AE4B59D974EE100E14061AFD133B03D9929_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
int32_t G_B3_0 = 0;
{
// if (instance != null && instance != this)
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * L_0 = ((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->get_instance_5();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_001b;
}
}
{
NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * L_2 = ((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->get_instance_5();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_2, __this, /*hidden argument*/NULL);
G_B3_0 = ((int32_t)(L_3));
goto IL_001c;
}
IL_001b:
{
G_B3_0 = 0;
}
IL_001c:
{
V_0 = (bool)G_B3_0;
bool L_4 = V_0;
if (!L_4)
{
goto IL_002f;
}
}
{
// gameObject.SetActive(false);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_5 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(__this, /*hidden argument*/NULL);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_5, (bool)0, /*hidden argument*/NULL);
goto IL_0043;
}
IL_002f:
{
// instance = this;
((NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_StaticFields*)il2cpp_codegen_static_fields_for(NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C_il2cpp_TypeInfo_var))->set_instance_5(__this);
// DontDestroyOnLoad(gameObject);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_DontDestroyOnLoad_m4DC90770AD6084E4B1B8489C6B41205DC020C207(L_6, /*hidden argument*/NULL);
}
IL_0043:
{
// }
return;
}
}
// System.Void NetworkManager::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_Start_m3B9512EAC044A11F640BFF825019700586081828 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_Start_m3B9512EAC044A11F640BFF825019700586081828_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.ConnectUsingSettings();
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_ConnectUsingSettings_m8021DCB20F8D5D3A9FBFEE38935D95CCC5579355(/*hidden argument*/NULL);
// }
return;
}
}
// System.Void NetworkManager::OnConnectedToMaster()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_OnConnectedToMaster_mEBA2DFFF805FA48BE8292B4632CDC2DD60DDD80B (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_OnConnectedToMaster_mEBA2DFFF805FA48BE8292B4632CDC2DD60DDD80B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// Debug.Log("Connection To Master Server Established");
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708(_stringLiteral9547656E0CEC785C72F3D1502FF25BAE91372893, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void NetworkManager::CreateRoom(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, String_t* ___roomName0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_CreateRoom_m0CB0270EF2E3F5CB0C862FAA4033DBA76F5C47B7_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.CreateRoom(roomName);
String_t* L_0 = ___roomName0;
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_CreateRoom_m8F4C5E1CB330B138058D6A7C96971DB1E43AF915(L_0, (RoomOptions_tB70C9ADC92617E81078838E1D6241D03BB5BA906 *)NULL, (TypedLobby_tD5DAFEDF05C473EE3FB9618C0641D1CBB4CA4BD5 *)NULL, (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)NULL, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void NetworkManager::JoinRoom(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, String_t* ___roomName0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_JoinRoom_m4C2B59F14A4133E802AE305BE78CC87A98937F84_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.JoinRoom(roomName);
String_t* L_0 = ___roomName0;
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_JoinRoom_m636ADAA907982A002F39B01CD1CEEBEEE0B8A524(L_0, (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E*)NULL, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void NetworkManager::OnCreatedRoom()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_OnCreatedRoom_mB2578DD702FFC14EE0ADD392A7B4A9C994B9EDD9 (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_OnCreatedRoom_mB2578DD702FFC14EE0ADD392A7B4A9C994B9EDD9_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// Debug.Log("Created room: " + PhotonNetwork.CurrentRoom.Name);
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
Room_t5DFC39DD6736A2641374564EC6C31352BE33000D * L_0 = PhotonNetwork_get_CurrentRoom_m493DA29D80F75DC0BEFF3125207AE9101C0100A1(/*hidden argument*/NULL);
String_t* L_1 = Room_get_Name_mCDF41719862596519BBE7091948656DF28B30607(L_0, /*hidden argument*/NULL);
String_t* L_2 = String_Concat_mB78D0094592718DA6D5DB6C712A9C225631666BE(_stringLiteralEBAFE216CBFA5FDBA79D91CAF252A2246218F52E, L_1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708(L_2, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void NetworkManager::ChangeScene(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, String_t* ___sceneName0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (NetworkManager_ChangeScene_mF48298DE3DA662B5494C25E6F50E962237E35D3D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// PhotonNetwork.LoadLevel(sceneName);
String_t* L_0 = ___sceneName0;
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
PhotonNetwork_LoadLevel_m018189075246B97065C057D7128BE87C6514D7E6(L_0, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void NetworkManager::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void NetworkManager__ctor_m2F799B6AD245DD0AEC3E92B5414FCAAE2994BAAE (NetworkManager_t8C47AF687E3AE680C2E3CB815EA99DE9C944DE8C * __this, const RuntimeMethod* method)
{
{
MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void PlayerController::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_Start_mC0C9B9461D0BDAC48EC43715818A4BA63C4F45EF (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method)
{
{
// }
return;
}
}
// System.Void PlayerController::Update()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_Update_m38903EF1C8F12B9388303741F8040EE26C33DC33 (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PlayerController_Update_m38903EF1C8F12B9388303741F8040EE26C33DC33_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
int32_t G_B4_0 = 0;
{
// if (PhotonNetwork.IsMasterClient)
IL2CPP_RUNTIME_CLASS_INIT(PhotonNetwork_tDB10770C2795BD94850C3BE2AA04AE3ED559EB5A_il2cpp_TypeInfo_var);
bool L_0 = PhotonNetwork_get_IsMasterClient_m7EE228BA31428CCA42C74D8805DD9B3A951E7E57(/*hidden argument*/NULL);
V_0 = L_0;
bool L_1 = V_0;
if (!L_1)
{
goto IL_0069;
}
}
{
// if (currentHatTime >= GameManager.instance.timeToWin && !GameManager.instance.gameEnded)
float L_2 = __this->get_currentHatTime_9();
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_3 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
float L_4 = L_3->get_timeToWin_6();
if ((!(((float)L_2) >= ((float)L_4))))
{
goto IL_002c;
}
}
{
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_5 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
bool L_6 = L_5->get_gameEnded_5();
G_B4_0 = ((((int32_t)L_6) == ((int32_t)0))? 1 : 0);
goto IL_002d;
}
IL_002c:
{
G_B4_0 = 0;
}
IL_002d:
{
V_1 = (bool)G_B4_0;
bool L_7 = V_1;
if (!L_7)
{
goto IL_0068;
}
}
{
// GameManager.instance.gameEnded = true;
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_8 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
L_8->set_gameEnded_5((bool)1);
// GameManager.instance.photonView.RPC("WinGame", RpcTarget.All, id);
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_9 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_10 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(L_9, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_11 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)1);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_12 = L_11;
int32_t L_13 = __this->get_id_5();
int32_t L_14 = L_13;
RuntimeObject * L_15 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_14);
ArrayElementTypeCheck (L_12, L_15);
(L_12)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_15);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_10, _stringLiteralE6F4198B4A3805D1C1D3E34619AE6275ADEDF612, 0, L_12, /*hidden argument*/NULL);
}
IL_0068:
{
}
IL_0069:
{
// if (photonView.IsMine)
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_16 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
bool L_17 = PhotonView_get_IsMine_mFE1D0AB5684F18073518777C1D8FF764CB335793(L_16, /*hidden argument*/NULL);
V_2 = L_17;
bool L_18 = V_2;
if (!L_18)
{
goto IL_00b6;
}
}
{
// Move();
PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F(__this, /*hidden argument*/NULL);
// if (Input.GetKeyDown(KeyCode.Space))
bool L_19 = Input_GetKeyDown_mEA57896808B6F484B12CD0AEEB83390A3CFCDBDC(((int32_t)32), /*hidden argument*/NULL);
V_3 = L_19;
bool L_20 = V_3;
if (!L_20)
{
goto IL_0092;
}
}
{
// TryJump();
PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C(__this, /*hidden argument*/NULL);
}
IL_0092:
{
// if (hatObj.activeInHierarchy)
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_21 = __this->get_hatObj_8();
bool L_22 = GameObject_get_activeInHierarchy_mDEE60F1B28281974BA9880EC448682F3DAABB1EF(L_21, /*hidden argument*/NULL);
V_4 = L_22;
bool L_23 = V_4;
if (!L_23)
{
goto IL_00b5;
}
}
{
// currentHatTime+= Time.deltaTime;
float L_24 = __this->get_currentHatTime_9();
float L_25 = Time_get_deltaTime_m16F98FC9BA931581236008C288E3B25CBCB7C81E(/*hidden argument*/NULL);
__this->set_currentHatTime_9(((float)il2cpp_codegen_add((float)L_24, (float)L_25)));
}
IL_00b5:
{
}
IL_00b6:
{
// }
return;
}
}
// System.Void PlayerController::Move()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PlayerController_Move_m0CD456A5EA1116F1B4EA5A731C7EAC46D26B598F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
float V_0 = 0.0f;
float V_1 = 0.0f;
{
// float x = Input.GetAxis("Horizontal") * moveSpeed;
float L_0 = Input_GetAxis_m6454498C755B9A2C964875927FB557CA9E75D387(_stringLiteral4F57A1CE99E68A7B05C42D0A7EA0070EAFABD31C, /*hidden argument*/NULL);
float L_1 = __this->get_moveSpeed_6();
V_0 = ((float)il2cpp_codegen_multiply((float)L_0, (float)L_1));
// float z = Input.GetAxis("Vertical") * moveSpeed;
float L_2 = Input_GetAxis_m6454498C755B9A2C964875927FB557CA9E75D387(_stringLiteral4B937CC841D82F8936CEF1EFB88708AB5B0F1EE5, /*hidden argument*/NULL);
float L_3 = __this->get_moveSpeed_6();
V_1 = ((float)il2cpp_codegen_multiply((float)L_2, (float)L_3));
// rb.velocity = new Vector3(x, rb.velocity.y, z);
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * L_4 = __this->get_rb_10();
float L_5 = V_0;
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * L_6 = __this->get_rb_10();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_7 = Rigidbody_get_velocity_m584A6D79C3657C21AE9CAA56BEE05582B8D5A2B8(L_6, /*hidden argument*/NULL);
float L_8 = L_7.get_y_3();
float L_9 = V_1;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_10;
memset((&L_10), 0, sizeof(L_10));
Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1((&L_10), L_5, L_8, L_9, /*hidden argument*/NULL);
Rigidbody_set_velocity_m8D129E88E62AD02AB81CFC8BE694C4A5A2B2B380(L_4, L_10, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void PlayerController::TryJump()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PlayerController_TryJump_m2AFAD5E6FCF8952360CE0CCD2FB17D6CC78CE68C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 V_0;
memset((&V_0), 0, sizeof(V_0));
bool V_1 = false;
{
// Ray ray = new Ray(transform.position, Vector3.down);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_0 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Vector3_get_down_m3F76A48E5B7C82B35EE047375538AFD91A305F55(/*hidden argument*/NULL);
Ray__ctor_m695D219349B8AA4C82F96C55A27D384C07736F6B((Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 *)(&V_0), L_1, L_2, /*hidden argument*/NULL);
// if (Physics.Raycast(ray, 0.7f))
Ray_tE2163D4CB3E6B267E29F8ABE41684490E4A614B2 L_3 = V_0;
bool L_4 = Physics_Raycast_m198FD20B3D1BC1634AE30E80E0FD1491D55417E5(L_3, (0.7f), /*hidden argument*/NULL);
V_1 = L_4;
bool L_5 = V_1;
if (!L_5)
{
goto IL_0044;
}
}
{
// rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * L_6 = __this->get_rb_10();
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_7 = Vector3_get_up_m6309EBC4E42D6D0B3D28056BD23D0331275306F7(/*hidden argument*/NULL);
float L_8 = __this->get_jumpForce_7();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_9 = Vector3_op_Multiply_m1C5F07723615156ACF035D88A1280A9E8F35A04E(L_7, L_8, /*hidden argument*/NULL);
Rigidbody_AddForce_mD64ACF772614FE36CFD8A477A07A407B35DF1A54(L_6, L_9, 1, /*hidden argument*/NULL);
}
IL_0044:
{
// }
return;
}
}
// System.Void PlayerController::Initialize(Photon.Realtime.Player)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_Initialize_mC6ABB84D5125516D8AAA4524874A0AC27C9F0638 (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * ___player0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PlayerController_Initialize_mC6ABB84D5125516D8AAA4524874A0AC27C9F0638_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
{
// photonPlayer = player;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_0 = ___player0;
__this->set_photonPlayer_11(L_0);
// id = player.ActorNumber;
Player_tFB06F12211DD89BEE90AD848E6C7BD9D889F1202 * L_1 = ___player0;
int32_t L_2 = Player_get_ActorNumber_m02157560C558C6007C8146F1FCDA7E759AD0CF1D(L_1, /*hidden argument*/NULL);
__this->set_id_5(L_2);
// GameManager.instance.players[id - 1] = this;
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_3 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PlayerControllerU5BU5D_t0CA6BDC5E4824DE0E68A2D9405FC8387CC4D7A76* L_4 = L_3->get_players_11();
int32_t L_5 = __this->get_id_5();
ArrayElementTypeCheck (L_4, __this);
(L_4)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(((int32_t)il2cpp_codegen_subtract((int32_t)L_5, (int32_t)1))), (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 *)__this);
// if(!photonView.IsMine)
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_6 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
bool L_7 = PhotonView_get_IsMine_mFE1D0AB5684F18073518777C1D8FF764CB335793(L_6, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_7) == ((int32_t)0))? 1 : 0);
bool L_8 = V_0;
if (!L_8)
{
goto IL_0049;
}
}
{
// rb.isKinematic = true;
Rigidbody_tE0A58EE5A1F7DC908EFFB4F0D795AC9552A750A5 * L_9 = __this->get_rb_10();
Rigidbody_set_isKinematic_m856AB59E5A6207892C439AFC8DDF5620B941E71B(L_9, (bool)1, /*hidden argument*/NULL);
}
IL_0049:
{
// }
return;
}
}
// System.Void PlayerController::SetHat(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_SetHat_m3F6774AA7A564DE73672AF19DB43B4D6ECB113B2 (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, bool ___hasHat0, const RuntimeMethod* method)
{
{
// hatObj.SetActive(hasHat);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_hatObj_8();
bool L_1 = ___hasHat0;
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_0, L_1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void PlayerController::OnCollisionEnter(UnityEngine.Collision)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_OnCollisionEnter_mC64545E3CBFFED17020D4B52BB65359240FA581D (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * ___collision0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PlayerController_OnCollisionEnter_mC64545E3CBFFED17020D4B52BB65359240FA581D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
bool V_2 = false;
bool V_3 = false;
bool V_4 = false;
bool V_5 = false;
bool V_6 = false;
{
// if (!photonView.IsMine)
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_0 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
bool L_1 = PhotonView_get_IsMine_mFE1D0AB5684F18073518777C1D8FF764CB335793(L_0, /*hidden argument*/NULL);
V_0 = (bool)((((int32_t)L_1) == ((int32_t)0))? 1 : 0);
bool L_2 = V_0;
if (!L_2)
{
goto IL_0018;
}
}
{
// return;
goto IL_0163;
}
IL_0018:
{
// if (collision.gameObject.CompareTag("Player"))
Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * L_3 = ___collision0;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = Collision_get_gameObject_m9A7069ABE50D4BB957A8ED76E5F4A59ACEC57C49(L_3, /*hidden argument*/NULL);
bool L_5 = GameObject_CompareTag_mF66519C9DAE4CC8873C36A04C3CAF7DDEC3C7EFE(L_4, _stringLiteralE53407CFE1A5156B9F0D1EED3BAB5EF3AE75CFD8, /*hidden argument*/NULL);
V_1 = L_5;
bool L_6 = V_1;
if (!L_6)
{
goto IL_0098;
}
}
{
// if (GameManager.instance.GetPlayer(collision.gameObject).id == GameManager.instance.playerWithHat)
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_7 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * L_8 = ___collision0;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_9 = Collision_get_gameObject_m9A7069ABE50D4BB957A8ED76E5F4A59ACEC57C49(L_8, /*hidden argument*/NULL);
PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * L_10 = GameManager_GetPlayer_m40EE6E49BC5AF6C6F8E2EF721657B82F38F6ED51(L_7, L_9, /*hidden argument*/NULL);
int32_t L_11 = L_10->get_id_5();
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_12 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
int32_t L_13 = L_12->get_playerWithHat_12();
V_2 = (bool)((((int32_t)L_11) == ((int32_t)L_13))? 1 : 0);
bool L_14 = V_2;
if (!L_14)
{
goto IL_0097;
}
}
{
// if (GameManager.instance.CanGetHat())
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_15 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
bool L_16 = GameManager_CanGetHat_m49FBC3E56EB6EEAA7B20866B3FEB5A5E2363C191(L_15, /*hidden argument*/NULL);
V_3 = L_16;
bool L_17 = V_3;
if (!L_17)
{
goto IL_0096;
}
}
{
// GameManager.instance.photonView.RPC("GiveHat", RpcTarget.All, id, false);
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_18 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_19 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(L_18, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_20 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)2);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_21 = L_20;
int32_t L_22 = __this->get_id_5();
int32_t L_23 = L_22;
RuntimeObject * L_24 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_23);
ArrayElementTypeCheck (L_21, L_24);
(L_21)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_24);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_25 = L_21;
bool L_26 = ((bool)0);
RuntimeObject * L_27 = Box(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var, &L_26);
ArrayElementTypeCheck (L_25, L_27);
(L_25)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_27);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_19, _stringLiteral601C5805AE2E4EE65BCEC1EF4E0817038BD2D9F5, 0, L_25, /*hidden argument*/NULL);
}
IL_0096:
{
}
IL_0097:
{
}
IL_0098:
{
// if (collision.gameObject.CompareTag("Hat"))
Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * L_28 = ___collision0;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_29 = Collision_get_gameObject_m9A7069ABE50D4BB957A8ED76E5F4A59ACEC57C49(L_28, /*hidden argument*/NULL);
bool L_30 = GameObject_CompareTag_mF66519C9DAE4CC8873C36A04C3CAF7DDEC3C7EFE(L_29, _stringLiteral0B5AD7F02623388B06D184DD6F9A0930428958DA, /*hidden argument*/NULL);
V_4 = L_30;
bool L_31 = V_4;
if (!L_31)
{
goto IL_00e3;
}
}
{
// GameManager.instance.photonView.RPC("GiveHat", RpcTarget.All, id, true);
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_32 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_33 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(L_32, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_34 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)2);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_35 = L_34;
int32_t L_36 = __this->get_id_5();
int32_t L_37 = L_36;
RuntimeObject * L_38 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_37);
ArrayElementTypeCheck (L_35, L_38);
(L_35)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_38);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_39 = L_35;
bool L_40 = ((bool)1);
RuntimeObject * L_41 = Box(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var, &L_40);
ArrayElementTypeCheck (L_39, L_41);
(L_39)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_41);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_33, _stringLiteral601C5805AE2E4EE65BCEC1EF4E0817038BD2D9F5, 0, L_39, /*hidden argument*/NULL);
}
IL_00e3:
{
// if (collision.gameObject.CompareTag("KillPlane"))
Collision_t7FF0F4B0E24A2AEB1131DD980F63AB8CBF11FC3C * L_42 = ___collision0;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_43 = Collision_get_gameObject_m9A7069ABE50D4BB957A8ED76E5F4A59ACEC57C49(L_42, /*hidden argument*/NULL);
bool L_44 = GameObject_CompareTag_mF66519C9DAE4CC8873C36A04C3CAF7DDEC3C7EFE(L_43, _stringLiteral7D76133CFA34B7E2D45C4E214E7B373095564C78, /*hidden argument*/NULL);
V_5 = L_44;
bool L_45 = V_5;
if (!L_45)
{
goto IL_0163;
}
}
{
// if (id == GameManager.instance.playerWithHat)
int32_t L_46 = __this->get_id_5();
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_47 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
int32_t L_48 = L_47->get_playerWithHat_12();
V_6 = (bool)((((int32_t)L_46) == ((int32_t)L_48))? 1 : 0);
bool L_49 = V_6;
if (!L_49)
{
goto IL_0140;
}
}
{
// GameManager.instance.ResetHat();
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_50 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
GameManager_ResetHat_m7D5510FCDFCB1832E3E85EDCC2E35DBB7438E4EA(L_50, /*hidden argument*/NULL);
// photonView.RPC("SetHat", RpcTarget.All, false);
PhotonView_t9781C6CA59BA006553D186D4FC011AECA4C9BE0B * L_51 = MonoBehaviourPun_get_photonView_m767985557AEB4E6462A095CA8CC170E302C4670B(__this, /*hidden argument*/NULL);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_52 = (ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A*)SZArrayNew(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A_il2cpp_TypeInfo_var, (uint32_t)1);
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_53 = L_52;
bool L_54 = ((bool)0);
RuntimeObject * L_55 = Box(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var, &L_54);
ArrayElementTypeCheck (L_53, L_55);
(L_53)->SetAtUnchecked(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_55);
PhotonView_RPC_mF2E2691617AC053125729CA8D9D1AEF14A78A301(L_51, _stringLiteral3B509055CE9C62D31B222A469FB040B8790889B0, 0, L_53, /*hidden argument*/NULL);
}
IL_0140:
{
// this.transform.position = GameManager.instance.spawnPoints[id].position;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_56 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89 * L_57 = ((GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_StaticFields*)il2cpp_codegen_static_fields_for(GameManager_tAC830B937D5E37F47803FE8AB44CAB0762B77B89_il2cpp_TypeInfo_var))->get_instance_15();
TransformU5BU5D_t4F5A1132877D8BA66ABC0A9A7FADA4E0237A7804* L_58 = L_57->get_spawnPoints_10();
int32_t L_59 = __this->get_id_5();
int32_t L_60 = L_59;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_61 = (L_58)->GetAtUnchecked(static_cast<il2cpp_array_size_t>(L_60));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_62 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_61, /*hidden argument*/NULL);
Transform_set_position_mDA89E4893F14ECA5CBEEE7FB80A5BF7C1B8EA6DC(L_56, L_62, /*hidden argument*/NULL);
}
IL_0163:
{
// }
return;
}
}
// System.Void PlayerController::OnPhotonSerializeView(Photon.Pun.PhotonStream,Photon.Pun.PhotonMessageInfo)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController_OnPhotonSerializeView_m110D5A8B36D7CD494A1DABAFE43B98BC0A12BC34 (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * ___stream0, PhotonMessageInfo_t0C7A1F60E266F5D63765B22A1116E0DA0BB6CAE0 ___info1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (PlayerController_OnPhotonSerializeView_m110D5A8B36D7CD494A1DABAFE43B98BC0A12BC34_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
bool V_0 = false;
bool V_1 = false;
{
// if (stream.IsWriting)
PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * L_0 = ___stream0;
bool L_1 = PhotonStream_get_IsWriting_mB16D73A32F0C3C1CE9272057F667CE15C1DBC458_inline(L_0, /*hidden argument*/NULL);
V_0 = L_1;
bool L_2 = V_0;
if (!L_2)
{
goto IL_001f;
}
}
{
// stream.SendNext(currentHatTime);
PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * L_3 = ___stream0;
float L_4 = __this->get_currentHatTime_9();
float L_5 = L_4;
RuntimeObject * L_6 = Box(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var, &L_5);
PhotonStream_SendNext_mCDF0BEFCFF338F4A19ECFB8D25C67DAD2AA07712(L_3, L_6, /*hidden argument*/NULL);
goto IL_003a;
}
IL_001f:
{
// else if (stream.IsReading)
PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * L_7 = ___stream0;
bool L_8 = PhotonStream_get_IsReading_mB1BE45F09FE0C49E9DCEF6D70E8A0C436949B0D5(L_7, /*hidden argument*/NULL);
V_1 = L_8;
bool L_9 = V_1;
if (!L_9)
{
goto IL_003a;
}
}
{
// currentHatTime = (float)stream.ReceiveNext();
PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * L_10 = ___stream0;
RuntimeObject * L_11 = PhotonStream_ReceiveNext_m8D9908B4B3BFEA0C30F32C2F8CBB89FCA63357A9(L_10, /*hidden argument*/NULL);
__this->set_currentHatTime_9(((*(float*)((float*)UnBox(L_11, Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var)))));
}
IL_003a:
{
// }
return;
}
}
// System.Void PlayerController::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerController__ctor_m648E40092E37395F4307411E855445886113CD60 (PlayerController_t4CE339054014370D89B89922EDC0EA2766589C85 * __this, const RuntimeMethod* method)
{
{
MonoBehaviourPunCallbacks__ctor_m1AEFA832CC833057375BF474B21B2BAD2D618BFA(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void PlayerUIContainer::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PlayerUIContainer__ctor_mB6CCAEC9164DAB14BF16F7047D08BF429B2F0D32 (PlayerUIContainer_tC3483707625EE62F4EB3E8CEB955CF77B72151B9 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool PhotonStream_get_IsWriting_mB16D73A32F0C3C1CE9272057F667CE15C1DBC458_inline (PhotonStream_t3E8F04756FBB266F05C8D10E0801F8CA9099B98E * __this, const RuntimeMethod* method)
{
{
// public bool IsWriting { get; private set; }
bool L_0 = __this->get_U3CIsWritingU3Ek__BackingField_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* Array_Empty_TisRuntimeObject_m9CF99326FAC8A01A4A25C90AA97F0799BA35ECAB_gshared_inline (const RuntimeMethod* method)
{
{
IL2CPP_RUNTIME_CLASS_INIT(IL2CPP_RGCTX_DATA(method->rgctx_data, 0));
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* L_0 = ((EmptyArray_1_tCF137C88A5824F413EFB5A2F31664D8207E61D26_StaticFields*)il2cpp_codegen_static_fields_for(IL2CPP_RGCTX_DATA(method->rgctx_data, 0)))->get_Value_0();
return L_0;
}
}
<file_sep>/Le Chapeau/Assets/Scripts/NetworkManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
// change inherited class to MonoBehaviorPunCallbacks to allow for functions that demonstrate commununication with master server
public class NetworkManager : MonoBehaviourPunCallbacks
{
public static NetworkManager instance;
// use a simple singleton to allow for global access
void Awake()
{
if (instance != null && instance != this)
gameObject.SetActive(false);
else
{
instance = this;
DontDestroyOnLoad(gameObject);
}
}
// Connect to photon servers on start
void Start()
{
PhotonNetwork.ConnectUsingSettings();
}
// Overrriding call when connecting to master server
public override void OnConnectedToMaster()
{
Debug.Log("Connection To Master Server Established");
}
//create a room from a given name
public void CreateRoom (string roomName)
{
PhotonNetwork.CreateRoom(roomName);
}
// search for a room based on given name
public void JoinRoom (string roomName)
{
PhotonNetwork.JoinRoom(roomName);
}
// Override message when a room is created
public override void OnCreatedRoom()
{
Debug.Log("Created room: " + PhotonNetwork.CurrentRoom.Name);
}
//use photon to change the scene - added features useful for multiplayer
[PunRPC] //Allow this function to be called as an RPC
public void ChangeScene (string sceneName)
{
PhotonNetwork.LoadLevel(sceneName);
}
}
<file_sep>/Le Chapeau/Temp/StagingArea/Data/il2cppOutput/System.Core_CodeGen.c
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
// 0x00000001 System.String SR::GetString(System.String)
extern void SR_GetString_m0D34A4798D653D11FFC8F27A24C741A83A3DA90B ();
// 0x00000002 System.Void System.Security.Cryptography.AesManaged::.ctor()
extern void AesManaged__ctor_mB2BB25E2F795428300A966DF7C4706BDDB65FB64 ();
// 0x00000003 System.Int32 System.Security.Cryptography.AesManaged::get_FeedbackSize()
extern void AesManaged_get_FeedbackSize_mA079406B80A8CDFB6811251C8BCE9EFE3C83A712 ();
// 0x00000004 System.Void System.Security.Cryptography.AesManaged::set_FeedbackSize(System.Int32)
extern void AesManaged_set_FeedbackSize_m881146DEC23D6F9FA3480D2ABDA7CBAFBD71C7C9 ();
// 0x00000005 System.Byte[] System.Security.Cryptography.AesManaged::get_IV()
extern void AesManaged_get_IV_mAAC08AB6D76CE29D3AEFCEF7B46F17B788B00B6E ();
// 0x00000006 System.Void System.Security.Cryptography.AesManaged::set_IV(System.Byte[])
extern void AesManaged_set_IV_m6AF8905A7F0DBD20D7E059360423DB57C7DFA722 ();
// 0x00000007 System.Byte[] System.Security.Cryptography.AesManaged::get_Key()
extern void AesManaged_get_Key_mC3790099349E411DFBC3EB6916E31CCC1F2AC088 ();
// 0x00000008 System.Void System.Security.Cryptography.AesManaged::set_Key(System.Byte[])
extern void AesManaged_set_Key_m<KEY> ();
// 0x00000009 System.Int32 System.Security.Cryptography.AesManaged::get_KeySize()
extern void AesManaged_get_KeySize_m<KEY> ();
// 0x0000000A System.Void System.Security.Cryptography.AesManaged::set_KeySize(System.Int32)
extern void AesManaged_set_KeySize_m0AF9E2BB96295D70FBADB46F8E32FB54A695C349 ();
// 0x0000000B System.Security.Cryptography.CipherMode System.Security.Cryptography.AesManaged::get_Mode()
extern void AesManaged_get_Mode_m85C722AAA2A9CF3BC012EC908CF5B3B57BAF4BDA ();
// 0x0000000C System.Void System.Security.Cryptography.AesManaged::set_Mode(System.Security.Cryptography.CipherMode)
extern void AesManaged_set_Mode_mE06717F04195261B88A558FBD08AEB847D9320D8 ();
// 0x0000000D System.Security.Cryptography.PaddingMode System.Security.Cryptography.AesManaged::get_Padding()
extern void AesManaged_get_Padding_mBD0B0AA07CF0FBFDFC14458D14F058DE6DA656F0 ();
// 0x0000000E System.Void System.Security.Cryptography.AesManaged::set_Padding(System.Security.Cryptography.PaddingMode)
extern void AesManaged_set_Padding_m1BAC3EECEF3E2F49E4641E29169F149EDA8C5B23 ();
// 0x0000000F System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesManaged::CreateDecryptor()
extern void AesManaged_CreateDecryptor_m9E9E7861138397C7A6AAF8C43C81BD4CFCB8E0BD ();
// 0x00000010 System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesManaged::CreateDecryptor(System.Byte[],System.Byte[])
extern void AesManaged_CreateDecryptor_mEBE041A905F0848F846901916BA23485F85C65F1 ();
// 0x00000011 System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesManaged::CreateEncryptor()
extern void AesManaged_CreateEncryptor_m82CC97D7C3C330EB8F5F61B3192D65859CAA94F4 ();
// 0x00000012 System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesManaged::CreateEncryptor(System.Byte[],System.Byte[])
extern void AesManaged_CreateEncryptor_mA914CA875EF777EDB202343570182CC0D9D89A91 ();
// 0x00000013 System.Void System.Security.Cryptography.AesManaged::Dispose(System.Boolean)
extern void AesManaged_Dispose_m57258CB76A9CCEF03FF4D4C5DE02E9A31056F8ED ();
// 0x00000014 System.Void System.Security.Cryptography.AesManaged::GenerateIV()
extern void AesManaged_GenerateIV_m92735378E3FB47DE1D0241A923CB4E426C702ABC ();
// 0x00000015 System.Void System.Security.Cryptography.AesManaged::GenerateKey()
extern void AesManaged_GenerateKey_<KEY> ();
// 0x00000016 System.Void System.Security.Cryptography.AesCryptoServiceProvider::.ctor()
extern void AesCryptoServiceProvider__ctor_m8AA4C1503DBE1849070CFE727ED227BE5043373E ();
// 0x00000017 System.Void System.Security.Cryptography.AesCryptoServiceProvider::GenerateIV()
extern void AesCryptoServiceProvider_GenerateIV_mAE25C1774AEB75702E4737808E56FD2EC8BF54CC ();
// 0x00000018 System.Void System.Security.Cryptography.AesCryptoServiceProvider::GenerateKey()
extern void AesCryptoServiceProvider_GenerateKey_mC65CD8C14E8FD07E9469E74C641A746E52977586 ();
// 0x00000019 System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesCryptoServiceProvider::CreateDecryptor(System.Byte[],System.Byte[])
extern void AesCryptoServiceProvider_CreateDecryptor_m3842B2AC283063BE4D9902818C8F68CFB4100139 ();
// 0x0000001A System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesCryptoServiceProvider::CreateEncryptor(System.Byte[],System.Byte[])
extern void AesCryptoServiceProvider_CreateEncryptor_mACCCC00AED5CBBF5E9437BCA907DD67C6D123672 ();
// 0x0000001B System.Byte[] System.Security.Cryptography.AesCryptoServiceProvider::get_IV()
extern void AesCryptoServiceProvider_get_IV_m30FBD13B702C384941FB85AD975BB3C0668F426F ();
// 0x0000001C System.Void System.Security.Cryptography.AesCryptoServiceProvider::set_IV(System.Byte[])
extern void AesCryptoServiceProvider_set_IV_m195F582AD29E4B449AFC54036AAECE0E05385C9C ();
// 0x0000001D System.Byte[] System.Security.Cryptography.AesCryptoServiceProvider::get_Key()
extern void AesCryptoServiceProvider_get_Key_<KEY> ();
// 0x0000001E System.Void System.Security.Cryptography.AesCryptoServiceProvider::set_Key(System.Byte[])
extern void AesCryptoServiceProvider_set_Key_<KEY> ();
// 0x0000001F System.Int32 System.Security.Cryptography.AesCryptoServiceProvider::get_KeySize()
extern void AesCryptoServiceProvider_get_KeySize_<KEY> ();
// 0x00000020 System.Void System.Security.Cryptography.AesCryptoServiceProvider::set_KeySize(System.Int32)
extern void AesCryptoServiceProvider_set_KeySize_mA26268F7CEDA7D0A2447FC2022327E0C49C89B9B ();
// 0x00000021 System.Int32 System.Security.Cryptography.AesCryptoServiceProvider::get_FeedbackSize()
extern void AesCryptoServiceProvider_get_FeedbackSize_mB93FFC9FCB2C09EABFB13913E245A2D75491659F ();
// 0x00000022 System.Void System.Security.Cryptography.AesCryptoServiceProvider::set_FeedbackSize(System.Int32)
extern void AesCryptoServiceProvider_set_FeedbackSize_m409990EF50B03E207F0BAAE9BE19C23A77EA9C27 ();
// 0x00000023 System.Security.Cryptography.CipherMode System.Security.Cryptography.AesCryptoServiceProvider::get_Mode()
extern void AesCryptoServiceProvider_get_Mode_m5C09588E49787D597CF8C0CD0C74DB63BE0ACE5F ();
// 0x00000024 System.Void System.Security.Cryptography.AesCryptoServiceProvider::set_Mode(System.Security.Cryptography.CipherMode)
extern void AesCryptoServiceProvider_set_Mode_mC7EE07E709C918D0745E5A207A66D89F08EA57EA ();
// 0x00000025 System.Security.Cryptography.PaddingMode System.Security.Cryptography.AesCryptoServiceProvider::get_Padding()
extern void AesCryptoServiceProvider_get_Padding_mA56E045AE5CCF569C4A21C949DD4A4332E63F438 ();
// 0x00000026 System.Void System.Security.Cryptography.AesCryptoServiceProvider::set_Padding(System.Security.Cryptography.PaddingMode)
extern void AesCryptoServiceProvider_set_Padding_m94A4D3BE55325036611C5015E02CB622CFCDAF22 ();
// 0x00000027 System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesCryptoServiceProvider::CreateDecryptor()
extern void AesCryptoServiceProvider_CreateDecryptor_mD858924207EA664C6E32D42408FB5C8040DD4D44 ();
// 0x00000028 System.Security.Cryptography.ICryptoTransform System.Security.Cryptography.AesCryptoServiceProvider::CreateEncryptor()
extern void AesCryptoServiceProvider_CreateEncryptor_m964DD0E94A26806AB34A7A79D4E4D1539425A2EA ();
// 0x00000029 System.Void System.Security.Cryptography.AesCryptoServiceProvider::Dispose(System.Boolean)
extern void AesCryptoServiceProvider_Dispose_mCFA420F8643911F86A112F50905FCB34C4A3045F ();
// 0x0000002A System.Void System.Security.Cryptography.AesTransform::.ctor(System.Security.Cryptography.Aes,System.Boolean,System.Byte[],System.Byte[])
extern void AesTransform__ctor_m1BC6B0F208747D4E35A58075D74DEBD5F72DB7DD ();
// 0x0000002B System.Void System.Security.Cryptography.AesTransform::ECB(System.Byte[],System.Byte[])
extern void AesTransform_ECB_mAFE52E4D1958026C3343F85CC950A8E24FDFBBDA ();
// 0x0000002C System.UInt32 System.Security.Cryptography.AesTransform::SubByte(System.UInt32)
extern void AesTransform_SubByte_mEDB43A2A4E83017475094E5616E7DBC56F945A24 ();
// 0x0000002D System.Void System.Security.Cryptography.AesTransform::Encrypt128(System.Byte[],System.Byte[],System.UInt32[])
extern void AesTransform_Encrypt128_m09C945A0345FD32E8DB3F4AF4B4E184CADD754DA ();
// 0x0000002E System.Void System.Security.Cryptography.AesTransform::Decrypt128(System.Byte[],System.Byte[],System.UInt32[])
extern void AesTransform_Decrypt128_m1AE10B230A47A294B5B10EFD9C8243B02DBEA463 ();
// 0x0000002F System.Void System.Security.Cryptography.AesTransform::.cctor()
extern void AesTransform__cctor_mDEA197C50BA055FF76B7ECFEB5C1FD7900CE4325 ();
// 0x00000030 System.Exception System.Linq.Error::ArgumentNull(System.String)
extern void Error_ArgumentNull_mCA126ED8F4F3B343A70E201C44B3A509690F1EA7 ();
// 0x00000031 System.Exception System.Linq.Error::MoreThanOneMatch()
extern void Error_MoreThanOneMatch_m85C3617F782E9F2333FC1FDF42821BE069F24623 ();
// 0x00000032 System.Exception System.Linq.Error::NoElements()
extern void Error_NoElements_m17188AC2CF25EB359A4E1DDE9518A98598791136 ();
// 0x00000033 System.Exception System.Linq.Error::NoMatch()
extern void Error_NoMatch_m96B9371C94C28A7C23CC8B8D25CC7B50734E1B14 ();
// 0x00000034 System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable::Where(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>)
// 0x00000035 System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable::Select(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,TResult>)
// 0x00000036 System.Func`2<TSource,System.Boolean> System.Linq.Enumerable::CombinePredicates(System.Func`2<TSource,System.Boolean>,System.Func`2<TSource,System.Boolean>)
// 0x00000037 System.Func`2<TSource,TResult> System.Linq.Enumerable::CombineSelectors(System.Func`2<TSource,TMiddle>,System.Func`2<TMiddle,TResult>)
// 0x00000038 System.Linq.IOrderedEnumerable`1<TSource> System.Linq.Enumerable::OrderBy(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,TKey>)
// 0x00000039 System.Linq.IOrderedEnumerable`1<TSource> System.Linq.Enumerable::ThenBy(System.Linq.IOrderedEnumerable`1<TSource>,System.Func`2<TSource,TKey>)
// 0x0000003A TSource[] System.Linq.Enumerable::ToArray(System.Collections.Generic.IEnumerable`1<TSource>)
// 0x0000003B System.Collections.Generic.List`1<TSource> System.Linq.Enumerable::ToList(System.Collections.Generic.IEnumerable`1<TSource>)
// 0x0000003C TSource System.Linq.Enumerable::First(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>)
// 0x0000003D TSource System.Linq.Enumerable::FirstOrDefault(System.Collections.Generic.IEnumerable`1<TSource>)
// 0x0000003E TSource System.Linq.Enumerable::Last(System.Collections.Generic.IEnumerable`1<TSource>)
// 0x0000003F TSource System.Linq.Enumerable::SingleOrDefault(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>)
// 0x00000040 System.Boolean System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<TSource>)
// 0x00000041 System.Boolean System.Linq.Enumerable::Any(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>)
// 0x00000042 System.Boolean System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<TSource>,TSource)
// 0x00000043 System.Boolean System.Linq.Enumerable::Contains(System.Collections.Generic.IEnumerable`1<TSource>,TSource,System.Collections.Generic.IEqualityComparer`1<TSource>)
// 0x00000044 System.Void System.Linq.Enumerable_Iterator`1::.ctor()
// 0x00000045 TSource System.Linq.Enumerable_Iterator`1::get_Current()
// 0x00000046 System.Linq.Enumerable_Iterator`1<TSource> System.Linq.Enumerable_Iterator`1::Clone()
// 0x00000047 System.Void System.Linq.Enumerable_Iterator`1::Dispose()
// 0x00000048 System.Collections.Generic.IEnumerator`1<TSource> System.Linq.Enumerable_Iterator`1::GetEnumerator()
// 0x00000049 System.Boolean System.Linq.Enumerable_Iterator`1::MoveNext()
// 0x0000004A System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_Iterator`1::Select(System.Func`2<TSource,TResult>)
// 0x0000004B System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable_Iterator`1::Where(System.Func`2<TSource,System.Boolean>)
// 0x0000004C System.Object System.Linq.Enumerable_Iterator`1::System.Collections.IEnumerator.get_Current()
// 0x0000004D System.Collections.IEnumerator System.Linq.Enumerable_Iterator`1::System.Collections.IEnumerable.GetEnumerator()
// 0x0000004E System.Void System.Linq.Enumerable_Iterator`1::System.Collections.IEnumerator.Reset()
// 0x0000004F System.Void System.Linq.Enumerable_WhereEnumerableIterator`1::.ctor(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>)
// 0x00000050 System.Linq.Enumerable_Iterator`1<TSource> System.Linq.Enumerable_WhereEnumerableIterator`1::Clone()
// 0x00000051 System.Void System.Linq.Enumerable_WhereEnumerableIterator`1::Dispose()
// 0x00000052 System.Boolean System.Linq.Enumerable_WhereEnumerableIterator`1::MoveNext()
// 0x00000053 System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_WhereEnumerableIterator`1::Select(System.Func`2<TSource,TResult>)
// 0x00000054 System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable_WhereEnumerableIterator`1::Where(System.Func`2<TSource,System.Boolean>)
// 0x00000055 System.Void System.Linq.Enumerable_WhereArrayIterator`1::.ctor(TSource[],System.Func`2<TSource,System.Boolean>)
// 0x00000056 System.Linq.Enumerable_Iterator`1<TSource> System.Linq.Enumerable_WhereArrayIterator`1::Clone()
// 0x00000057 System.Boolean System.Linq.Enumerable_WhereArrayIterator`1::MoveNext()
// 0x00000058 System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_WhereArrayIterator`1::Select(System.Func`2<TSource,TResult>)
// 0x00000059 System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable_WhereArrayIterator`1::Where(System.Func`2<TSource,System.Boolean>)
// 0x0000005A System.Void System.Linq.Enumerable_WhereListIterator`1::.ctor(System.Collections.Generic.List`1<TSource>,System.Func`2<TSource,System.Boolean>)
// 0x0000005B System.Linq.Enumerable_Iterator`1<TSource> System.Linq.Enumerable_WhereListIterator`1::Clone()
// 0x0000005C System.Boolean System.Linq.Enumerable_WhereListIterator`1::MoveNext()
// 0x0000005D System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_WhereListIterator`1::Select(System.Func`2<TSource,TResult>)
// 0x0000005E System.Collections.Generic.IEnumerable`1<TSource> System.Linq.Enumerable_WhereListIterator`1::Where(System.Func`2<TSource,System.Boolean>)
// 0x0000005F System.Void System.Linq.Enumerable_WhereSelectEnumerableIterator`2::.ctor(System.Collections.Generic.IEnumerable`1<TSource>,System.Func`2<TSource,System.Boolean>,System.Func`2<TSource,TResult>)
// 0x00000060 System.Linq.Enumerable_Iterator`1<TResult> System.Linq.Enumerable_WhereSelectEnumerableIterator`2::Clone()
// 0x00000061 System.Void System.Linq.Enumerable_WhereSelectEnumerableIterator`2::Dispose()
// 0x00000062 System.Boolean System.Linq.Enumerable_WhereSelectEnumerableIterator`2::MoveNext()
// 0x00000063 System.Collections.Generic.IEnumerable`1<TResult2> System.Linq.Enumerable_WhereSelectEnumerableIterator`2::Select(System.Func`2<TResult,TResult2>)
// 0x00000064 System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_WhereSelectEnumerableIterator`2::Where(System.Func`2<TResult,System.Boolean>)
// 0x00000065 System.Void System.Linq.Enumerable_WhereSelectArrayIterator`2::.ctor(TSource[],System.Func`2<TSource,System.Boolean>,System.Func`2<TSource,TResult>)
// 0x00000066 System.Linq.Enumerable_Iterator`1<TResult> System.Linq.Enumerable_WhereSelectArrayIterator`2::Clone()
// 0x00000067 System.Boolean System.Linq.Enumerable_WhereSelectArrayIterator`2::MoveNext()
// 0x00000068 System.Collections.Generic.IEnumerable`1<TResult2> System.Linq.Enumerable_WhereSelectArrayIterator`2::Select(System.Func`2<TResult,TResult2>)
// 0x00000069 System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_WhereSelectArrayIterator`2::Where(System.Func`2<TResult,System.Boolean>)
// 0x0000006A System.Void System.Linq.Enumerable_WhereSelectListIterator`2::.ctor(System.Collections.Generic.List`1<TSource>,System.Func`2<TSource,System.Boolean>,System.Func`2<TSource,TResult>)
// 0x0000006B System.Linq.Enumerable_Iterator`1<TResult> System.Linq.Enumerable_WhereSelectListIterator`2::Clone()
// 0x0000006C System.Boolean System.Linq.Enumerable_WhereSelectListIterator`2::MoveNext()
// 0x0000006D System.Collections.Generic.IEnumerable`1<TResult2> System.Linq.Enumerable_WhereSelectListIterator`2::Select(System.Func`2<TResult,TResult2>)
// 0x0000006E System.Collections.Generic.IEnumerable`1<TResult> System.Linq.Enumerable_WhereSelectListIterator`2::Where(System.Func`2<TResult,System.Boolean>)
// 0x0000006F System.Void System.Linq.Enumerable_<>c__DisplayClass6_0`1::.ctor()
// 0x00000070 System.Boolean System.Linq.Enumerable_<>c__DisplayClass6_0`1::<CombinePredicates>b__0(TSource)
// 0x00000071 System.Void System.Linq.Enumerable_<>c__DisplayClass7_0`3::.ctor()
// 0x00000072 TResult System.Linq.Enumerable_<>c__DisplayClass7_0`3::<CombineSelectors>b__0(TSource)
// 0x00000073 System.Linq.IOrderedEnumerable`1<TElement> System.Linq.IOrderedEnumerable`1::CreateOrderedEnumerable(System.Func`2<TElement,TKey>,System.Collections.Generic.IComparer`1<TKey>,System.Boolean)
// 0x00000074 System.Collections.Generic.IEnumerator`1<TElement> System.Linq.OrderedEnumerable`1::GetEnumerator()
// 0x00000075 System.Linq.EnumerableSorter`1<TElement> System.Linq.OrderedEnumerable`1::GetEnumerableSorter(System.Linq.EnumerableSorter`1<TElement>)
// 0x00000076 System.Collections.IEnumerator System.Linq.OrderedEnumerable`1::System.Collections.IEnumerable.GetEnumerator()
// 0x00000077 System.Linq.IOrderedEnumerable`1<TElement> System.Linq.OrderedEnumerable`1::System.Linq.IOrderedEnumerable<TElement>.CreateOrderedEnumerable(System.Func`2<TElement,TKey>,System.Collections.Generic.IComparer`1<TKey>,System.Boolean)
// 0x00000078 System.Void System.Linq.OrderedEnumerable`1::.ctor()
// 0x00000079 System.Void System.Linq.OrderedEnumerable`1_<GetEnumerator>d__1::.ctor(System.Int32)
// 0x0000007A System.Void System.Linq.OrderedEnumerable`1_<GetEnumerator>d__1::System.IDisposable.Dispose()
// 0x0000007B System.Boolean System.Linq.OrderedEnumerable`1_<GetEnumerator>d__1::MoveNext()
// 0x0000007C TElement System.Linq.OrderedEnumerable`1_<GetEnumerator>d__1::System.Collections.Generic.IEnumerator<TElement>.get_Current()
// 0x0000007D System.Void System.Linq.OrderedEnumerable`1_<GetEnumerator>d__1::System.Collections.IEnumerator.Reset()
// 0x0000007E System.Object System.Linq.OrderedEnumerable`1_<GetEnumerator>d__1::System.Collections.IEnumerator.get_Current()
// 0x0000007F System.Void System.Linq.OrderedEnumerable`2::.ctor(System.Collections.Generic.IEnumerable`1<TElement>,System.Func`2<TElement,TKey>,System.Collections.Generic.IComparer`1<TKey>,System.Boolean)
// 0x00000080 System.Linq.EnumerableSorter`1<TElement> System.Linq.OrderedEnumerable`2::GetEnumerableSorter(System.Linq.EnumerableSorter`1<TElement>)
// 0x00000081 System.Void System.Linq.EnumerableSorter`1::ComputeKeys(TElement[],System.Int32)
// 0x00000082 System.Int32 System.Linq.EnumerableSorter`1::CompareKeys(System.Int32,System.Int32)
// 0x00000083 System.Int32[] System.Linq.EnumerableSorter`1::Sort(TElement[],System.Int32)
// 0x00000084 System.Void System.Linq.EnumerableSorter`1::QuickSort(System.Int32[],System.Int32,System.Int32)
// 0x00000085 System.Void System.Linq.EnumerableSorter`1::.ctor()
// 0x00000086 System.Void System.Linq.EnumerableSorter`2::.ctor(System.Func`2<TElement,TKey>,System.Collections.Generic.IComparer`1<TKey>,System.Boolean,System.Linq.EnumerableSorter`1<TElement>)
// 0x00000087 System.Void System.Linq.EnumerableSorter`2::ComputeKeys(TElement[],System.Int32)
// 0x00000088 System.Int32 System.Linq.EnumerableSorter`2::CompareKeys(System.Int32,System.Int32)
// 0x00000089 System.Void System.Linq.Buffer`1::.ctor(System.Collections.Generic.IEnumerable`1<TElement>)
// 0x0000008A TElement[] System.Linq.Buffer`1::ToArray()
// 0x0000008B System.Void System.Collections.Generic.HashSet`1::.ctor()
// 0x0000008C System.Void System.Collections.Generic.HashSet`1::.ctor(System.Collections.Generic.IEqualityComparer`1<T>)
// 0x0000008D System.Void System.Collections.Generic.HashSet`1::.ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
// 0x0000008E System.Void System.Collections.Generic.HashSet`1::System.Collections.Generic.ICollection<T>.Add(T)
// 0x0000008F System.Void System.Collections.Generic.HashSet`1::Clear()
// 0x00000090 System.Boolean System.Collections.Generic.HashSet`1::Contains(T)
// 0x00000091 System.Void System.Collections.Generic.HashSet`1::CopyTo(T[],System.Int32)
// 0x00000092 System.Boolean System.Collections.Generic.HashSet`1::Remove(T)
// 0x00000093 System.Int32 System.Collections.Generic.HashSet`1::get_Count()
// 0x00000094 System.Boolean System.Collections.Generic.HashSet`1::System.Collections.Generic.ICollection<T>.get_IsReadOnly()
// 0x00000095 System.Collections.Generic.HashSet`1_Enumerator<T> System.Collections.Generic.HashSet`1::GetEnumerator()
// 0x00000096 System.Collections.Generic.IEnumerator`1<T> System.Collections.Generic.HashSet`1::System.Collections.Generic.IEnumerable<T>.GetEnumerator()
// 0x00000097 System.Collections.IEnumerator System.Collections.Generic.HashSet`1::System.Collections.IEnumerable.GetEnumerator()
// 0x00000098 System.Void System.Collections.Generic.HashSet`1::GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)
// 0x00000099 System.Void System.Collections.Generic.HashSet`1::OnDeserialization(System.Object)
// 0x0000009A System.Boolean System.Collections.Generic.HashSet`1::Add(T)
// 0x0000009B System.Void System.Collections.Generic.HashSet`1::CopyTo(T[])
// 0x0000009C System.Void System.Collections.Generic.HashSet`1::CopyTo(T[],System.Int32,System.Int32)
// 0x0000009D System.Void System.Collections.Generic.HashSet`1::Initialize(System.Int32)
// 0x0000009E System.Void System.Collections.Generic.HashSet`1::IncreaseCapacity()
// 0x0000009F System.Void System.Collections.Generic.HashSet`1::SetCapacity(System.Int32)
// 0x000000A0 System.Boolean System.Collections.Generic.HashSet`1::AddIfNotPresent(T)
// 0x000000A1 System.Int32 System.Collections.Generic.HashSet`1::InternalGetHashCode(T)
// 0x000000A2 System.Void System.Collections.Generic.HashSet`1_Enumerator::.ctor(System.Collections.Generic.HashSet`1<T>)
// 0x000000A3 System.Void System.Collections.Generic.HashSet`1_Enumerator::Dispose()
// 0x000000A4 System.Boolean System.Collections.Generic.HashSet`1_Enumerator::MoveNext()
// 0x000000A5 T System.Collections.Generic.HashSet`1_Enumerator::get_Current()
// 0x000000A6 System.Object System.Collections.Generic.HashSet`1_Enumerator::System.Collections.IEnumerator.get_Current()
// 0x000000A7 System.Void System.Collections.Generic.HashSet`1_Enumerator::System.Collections.IEnumerator.Reset()
// 0x000000A8 System.Void System.Collections.Generic.ICollectionDebugView`1::.ctor(System.Collections.Generic.ICollection`1<T>)
// 0x000000A9 T[] System.Collections.Generic.ICollectionDebugView`1::get_Items()
static Il2CppMethodPointer s_methodPointers[169] =
{
SR_GetString_m0D34A4798D653D11FFC8F27A24C741A83A3DA90B,
AesManaged__ctor_mB2BB25E2F795428300A966DF7C4706BDDB65FB64,
AesManaged_get_FeedbackSize_mA079406B80A8CDFB6811251C8BCE9EFE3C83A712,
AesManaged_set_FeedbackSize_m881146DEC23D6F9FA3480D2ABDA7CBAFBD71C7C9,
AesManaged_get_IV_mAAC08AB6D76CE29D3AEFCEF7B46F17B788B00B6E,
AesManaged_set_IV_m6AF8905A7F0DBD20D7E059360423DB57C7DFA722,
AesManaged_get_Key_mC3790099349E411DFBC3EB6916E31CCC1F2AC088,
AesManaged_set_Key_m<KEY>,
AesManaged_get_KeySize_<KEY>,
AesManaged_set_KeySize_m0AF9E2BB96295D70FBADB46F8E32FB54A695C349,
AesManaged_get_Mode_m85C722AAA2A9CF3BC012EC908CF5B3B57BAF4BDA,
AesManaged_set_Mode_mE06717F04195261B88A558FBD08AEB847D9320D8,
AesManaged_get_Padding_mBD0B0AA07CF0FBFDFC14458D14F058DE6DA656F0,
AesManaged_set_Padding_m1BAC3EECEF3E2F49E4641E29169F149EDA8C5B23,
AesManaged_CreateDecryptor_m9E9E7861138397C7A6AAF8C43C81BD4CFCB8E0BD,
AesManaged_CreateDecryptor_mEBE041A905F0848F846901916BA23485F85C65F1,
AesManaged_CreateEncryptor_m82CC97D7C3C330EB8F5F61B3192D65859CAA94F4,
AesManaged_CreateEncryptor_mA914CA875EF777EDB202343570182CC0D9D89A91,
AesManaged_Dispose_m57258CB76A9CCEF03FF4D4C5DE02E9A31056F8ED,
AesManaged_GenerateIV_m92735378E3FB47DE1D0241A923CB4E426C702ABC,
AesManaged_GenerateKey_m<KEY>,
AesCryptoServiceProvider__ctor_m8AA4C1503DBE1849070CFE727ED227BE5043373E,
AesCryptoServiceProvider_GenerateIV_mAE25C1774AEB75702E4737808E56FD2EC8BF54CC,
AesCryptoServiceProvider_GenerateKey_mC65CD8C14E8FD07E9469E74C641A746E52977586,
AesCryptoServiceProvider_CreateDecryptor_m3842B2AC283063BE4D9902818C8F68CFB4100139,
AesCryptoServiceProvider_CreateEncryptor_mACCCC00AED5CBBF5E9437BCA907DD67C6D123672,
AesCryptoServiceProvider_get_IV_m30FBD13B702C384941FB85AD975BB3C0668F426F,
AesCryptoServiceProvider_set_IV_m195F582AD29E4B449AFC54036AAECE0E05385C9C,
AesCryptoServiceProvider_get_Key_<KEY>,
AesCryptoServiceProvider_set_Key_<KEY>,
AesCryptoServiceProvider_get_KeySize_<KEY>,
AesCryptoServiceProvider_set_KeySize_mA26268F7CEDA7D0A2447FC2022327E0C49C89B9B,
AesCryptoServiceProvider_get_FeedbackSize_mB93FFC9FCB2C09EABFB13913E245A2D75491659F,
AesCryptoServiceProvider_set_FeedbackSize_m409990EF50B03E207F0BAAE9BE19C23A77EA9C27,
AesCryptoServiceProvider_get_Mode_m5C09588E49787D597CF8C0CD0C74DB63BE0ACE5F,
AesCryptoServiceProvider_set_Mode_mC7EE07E709C918D0745E5A207A66D89F08EA57EA,
AesCryptoServiceProvider_get_Padding_mA56E045AE5CCF569C4A21C949DD4A4332E63F438,
AesCryptoServiceProvider_set_Padding_m94A4D3BE55325036611C5015E02CB622CFCDAF22,
AesCryptoServiceProvider_CreateDecryptor_mD858924207EA664C6E32D42408FB5C8040DD4D44,
AesCryptoServiceProvider_CreateEncryptor_m964DD0E94A26806AB34A7A79D4E4D1539425A2EA,
AesCryptoServiceProvider_Dispose_mCFA420F8643911F86A112F50905FCB34C4A3045F,
AesTransform__ctor_m1BC6B0F208747D4E35A58075D74DEBD5F72DB7DD,
AesTransform_ECB_mAFE52E4D1958026C3343F85CC950A8E24FDFBBDA,
AesTransform_SubByte_mEDB43A2A4E83017475094E5616E7DBC56F945A24,
AesTransform_Encrypt128_m09C945A0345FD32E8DB3F4AF4B4E184CADD754DA,
AesTransform_Decrypt128_m1AE10B230A47A294B5B10EFD9C8243B02DBEA463,
AesTransform__cctor_mDEA197C50BA055FF76B7ECFEB5C1FD7900CE4325,
Error_ArgumentNull_mCA126ED8F4F3B343A70E201C44B3A509690F1EA7,
Error_MoreThanOneMatch_m85C3617F782E9F2333FC1FDF42821BE069F24623,
Error_NoElements_m17188AC2CF25EB359A4E1DDE9518A98598791136,
Error_NoMatch_m96B9371C94C28A7C23CC8B8D25CC7B50734E1B14,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
};
static const int32_t s_InvokerIndices[169] =
{
0,
23,
10,
32,
14,
26,
14,
26,
10,
32,
10,
32,
10,
32,
14,
105,
14,
105,
31,
23,
23,
23,
23,
23,
105,
105,
14,
26,
14,
26,
10,
32,
10,
32,
10,
32,
10,
32,
14,
14,
31,
949,
27,
37,
211,
211,
3,
0,
4,
4,
4,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
};
static const Il2CppTokenRangePair s_rgctxIndices[41] =
{
{ 0x02000008, { 63, 4 } },
{ 0x02000009, { 67, 9 } },
{ 0x0200000A, { 78, 7 } },
{ 0x0200000B, { 87, 10 } },
{ 0x0200000C, { 99, 11 } },
{ 0x0200000D, { 113, 9 } },
{ 0x0200000E, { 125, 12 } },
{ 0x0200000F, { 140, 1 } },
{ 0x02000010, { 141, 2 } },
{ 0x02000012, { 143, 3 } },
{ 0x02000013, { 148, 5 } },
{ 0x02000014, { 153, 7 } },
{ 0x02000015, { 160, 3 } },
{ 0x02000016, { 163, 7 } },
{ 0x02000017, { 170, 4 } },
{ 0x02000018, { 174, 21 } },
{ 0x0200001A, { 195, 2 } },
{ 0x0200001B, { 197, 2 } },
{ 0x06000034, { 0, 10 } },
{ 0x06000035, { 10, 10 } },
{ 0x06000036, { 20, 5 } },
{ 0x06000037, { 25, 5 } },
{ 0x06000038, { 30, 2 } },
{ 0x06000039, { 32, 1 } },
{ 0x0600003A, { 33, 3 } },
{ 0x0600003B, { 36, 2 } },
{ 0x0600003C, { 38, 3 } },
{ 0x0600003D, { 41, 4 } },
{ 0x0600003E, { 45, 4 } },
{ 0x0600003F, { 49, 3 } },
{ 0x06000040, { 52, 1 } },
{ 0x06000041, { 53, 3 } },
{ 0x06000042, { 56, 2 } },
{ 0x06000043, { 58, 5 } },
{ 0x06000053, { 76, 2 } },
{ 0x06000058, { 85, 2 } },
{ 0x0600005D, { 97, 2 } },
{ 0x06000063, { 110, 3 } },
{ 0x06000068, { 122, 3 } },
{ 0x0600006D, { 137, 3 } },
{ 0x06000077, { 146, 2 } },
};
static const Il2CppRGCTXDefinition s_rgctxValues[199] =
{
{ (Il2CppRGCTXDataType)2, 22219 },
{ (Il2CppRGCTXDataType)3, 15198 },
{ (Il2CppRGCTXDataType)2, 22220 },
{ (Il2CppRGCTXDataType)2, 22221 },
{ (Il2CppRGCTXDataType)3, 15199 },
{ (Il2CppRGCTXDataType)2, 22222 },
{ (Il2CppRGCTXDataType)2, 22223 },
{ (Il2CppRGCTXDataType)3, 15200 },
{ (Il2CppRGCTXDataType)2, 22224 },
{ (Il2CppRGCTXDataType)3, 15201 },
{ (Il2CppRGCTXDataType)2, 22225 },
{ (Il2CppRGCTXDataType)3, 15202 },
{ (Il2CppRGCTXDataType)2, 22226 },
{ (Il2CppRGCTXDataType)2, 22227 },
{ (Il2CppRGCTXDataType)3, 15203 },
{ (Il2CppRGCTXDataType)2, 22228 },
{ (Il2CppRGCTXDataType)2, 22229 },
{ (Il2CppRGCTXDataType)3, 15204 },
{ (Il2CppRGCTXDataType)2, 22230 },
{ (Il2CppRGCTXDataType)3, 15205 },
{ (Il2CppRGCTXDataType)2, 22231 },
{ (Il2CppRGCTXDataType)3, 15206 },
{ (Il2CppRGCTXDataType)3, 15207 },
{ (Il2CppRGCTXDataType)2, 17877 },
{ (Il2CppRGCTXDataType)3, 15208 },
{ (Il2CppRGCTXDataType)2, 22232 },
{ (Il2CppRGCTXDataType)3, 15209 },
{ (Il2CppRGCTXDataType)3, 15210 },
{ (Il2CppRGCTXDataType)2, 17884 },
{ (Il2CppRGCTXDataType)3, 15211 },
{ (Il2CppRGCTXDataType)2, 22233 },
{ (Il2CppRGCTXDataType)3, 15212 },
{ (Il2CppRGCTXDataType)3, 15213 },
{ (Il2CppRGCTXDataType)2, 22234 },
{ (Il2CppRGCTXDataType)3, 15214 },
{ (Il2CppRGCTXDataType)3, 15215 },
{ (Il2CppRGCTXDataType)2, 17899 },
{ (Il2CppRGCTXDataType)3, 15216 },
{ (Il2CppRGCTXDataType)2, 17900 },
{ (Il2CppRGCTXDataType)2, 22235 },
{ (Il2CppRGCTXDataType)3, 15217 },
{ (Il2CppRGCTXDataType)2, 22236 },
{ (Il2CppRGCTXDataType)2, 22237 },
{ (Il2CppRGCTXDataType)2, 17903 },
{ (Il2CppRGCTXDataType)2, 22238 },
{ (Il2CppRGCTXDataType)2, 22239 },
{ (Il2CppRGCTXDataType)2, 22240 },
{ (Il2CppRGCTXDataType)2, 17905 },
{ (Il2CppRGCTXDataType)2, 22241 },
{ (Il2CppRGCTXDataType)2, 17907 },
{ (Il2CppRGCTXDataType)2, 22242 },
{ (Il2CppRGCTXDataType)3, 15218 },
{ (Il2CppRGCTXDataType)2, 17910 },
{ (Il2CppRGCTXDataType)2, 17912 },
{ (Il2CppRGCTXDataType)2, 22243 },
{ (Il2CppRGCTXDataType)3, 15219 },
{ (Il2CppRGCTXDataType)2, 22244 },
{ (Il2CppRGCTXDataType)3, 15220 },
{ (Il2CppRGCTXDataType)3, 15221 },
{ (Il2CppRGCTXDataType)2, 22245 },
{ (Il2CppRGCTXDataType)2, 17917 },
{ (Il2CppRGCTXDataType)2, 22246 },
{ (Il2CppRGCTXDataType)2, 17919 },
{ (Il2CppRGCTXDataType)3, 15222 },
{ (Il2CppRGCTXDataType)3, 15223 },
{ (Il2CppRGCTXDataType)2, 17922 },
{ (Il2CppRGCTXDataType)3, 15224 },
{ (Il2CppRGCTXDataType)3, 15225 },
{ (Il2CppRGCTXDataType)2, 17934 },
{ (Il2CppRGCTXDataType)2, 22247 },
{ (Il2CppRGCTXDataType)3, 15226 },
{ (Il2CppRGCTXDataType)3, 15227 },
{ (Il2CppRGCTXDataType)2, 17936 },
{ (Il2CppRGCTXDataType)2, 22094 },
{ (Il2CppRGCTXDataType)3, 15228 },
{ (Il2CppRGCTXDataType)3, 15229 },
{ (Il2CppRGCTXDataType)2, 22248 },
{ (Il2CppRGCTXDataType)3, 15230 },
{ (Il2CppRGCTXDataType)3, 15231 },
{ (Il2CppRGCTXDataType)2, 17946 },
{ (Il2CppRGCTXDataType)2, 22249 },
{ (Il2CppRGCTXDataType)3, 15232 },
{ (Il2CppRGCTXDataType)3, 15233 },
{ (Il2CppRGCTXDataType)3, 14475 },
{ (Il2CppRGCTXDataType)3, 15234 },
{ (Il2CppRGCTXDataType)2, 22250 },
{ (Il2CppRGCTXDataType)3, 15235 },
{ (Il2CppRGCTXDataType)3, 15236 },
{ (Il2CppRGCTXDataType)2, 17958 },
{ (Il2CppRGCTXDataType)2, 22251 },
{ (Il2CppRGCTXDataType)3, 15237 },
{ (Il2CppRGCTXDataType)3, 15238 },
{ (Il2CppRGCTXDataType)3, 15239 },
{ (Il2CppRGCTXDataType)3, 15240 },
{ (Il2CppRGCTXDataType)3, 15241 },
{ (Il2CppRGCTXDataType)3, 14481 },
{ (Il2CppRGCTXDataType)3, 15242 },
{ (Il2CppRGCTXDataType)2, 22252 },
{ (Il2CppRGCTXDataType)3, 15243 },
{ (Il2CppRGCTXDataType)3, 15244 },
{ (Il2CppRGCTXDataType)2, 17971 },
{ (Il2CppRGCTXDataType)2, 22253 },
{ (Il2CppRGCTXDataType)3, 15245 },
{ (Il2CppRGCTXDataType)3, 15246 },
{ (Il2CppRGCTXDataType)2, 17973 },
{ (Il2CppRGCTXDataType)2, 22254 },
{ (Il2CppRGCTXDataType)3, 15247 },
{ (Il2CppRGCTXDataType)3, 15248 },
{ (Il2CppRGCTXDataType)2, 22255 },
{ (Il2CppRGCTXDataType)3, 15249 },
{ (Il2CppRGCTXDataType)3, 15250 },
{ (Il2CppRGCTXDataType)2, 22256 },
{ (Il2CppRGCTXDataType)3, 15251 },
{ (Il2CppRGCTXDataType)3, 15252 },
{ (Il2CppRGCTXDataType)2, 17988 },
{ (Il2CppRGCTXDataType)2, 22257 },
{ (Il2CppRGCTXDataType)3, 15253 },
{ (Il2CppRGCTXDataType)3, 15254 },
{ (Il2CppRGCTXDataType)3, 15255 },
{ (Il2CppRGCTXDataType)3, 14492 },
{ (Il2CppRGCTXDataType)2, 22258 },
{ (Il2CppRGCTXDataType)3, 15256 },
{ (Il2CppRGCTXDataType)3, 15257 },
{ (Il2CppRGCTXDataType)2, 22259 },
{ (Il2CppRGCTXDataType)3, 15258 },
{ (Il2CppRGCTXDataType)3, 15259 },
{ (Il2CppRGCTXDataType)2, 18004 },
{ (Il2CppRGCTXDataType)2, 22260 },
{ (Il2CppRGCTXDataType)3, 15260 },
{ (Il2CppRGCTXDataType)3, 15261 },
{ (Il2CppRGCTXDataType)3, 15262 },
{ (Il2CppRGCTXDataType)3, 15263 },
{ (Il2CppRGCTXDataType)3, 15264 },
{ (Il2CppRGCTXDataType)3, 15265 },
{ (Il2CppRGCTXDataType)3, 14498 },
{ (Il2CppRGCTXDataType)2, 22261 },
{ (Il2CppRGCTXDataType)3, 15266 },
{ (Il2CppRGCTXDataType)3, 15267 },
{ (Il2CppRGCTXDataType)2, 22262 },
{ (Il2CppRGCTXDataType)3, 15268 },
{ (Il2CppRGCTXDataType)3, 15269 },
{ (Il2CppRGCTXDataType)3, 15270 },
{ (Il2CppRGCTXDataType)3, 15271 },
{ (Il2CppRGCTXDataType)2, 22263 },
{ (Il2CppRGCTXDataType)3, 15272 },
{ (Il2CppRGCTXDataType)3, 15273 },
{ (Il2CppRGCTXDataType)2, 22264 },
{ (Il2CppRGCTXDataType)3, 15274 },
{ (Il2CppRGCTXDataType)2, 22265 },
{ (Il2CppRGCTXDataType)3, 15275 },
{ (Il2CppRGCTXDataType)3, 15276 },
{ (Il2CppRGCTXDataType)3, 15277 },
{ (Il2CppRGCTXDataType)2, 18050 },
{ (Il2CppRGCTXDataType)3, 15278 },
{ (Il2CppRGCTXDataType)2, 18058 },
{ (Il2CppRGCTXDataType)3, 15279 },
{ (Il2CppRGCTXDataType)2, 22266 },
{ (Il2CppRGCTXDataType)2, 22267 },
{ (Il2CppRGCTXDataType)3, 15280 },
{ (Il2CppRGCTXDataType)3, 15281 },
{ (Il2CppRGCTXDataType)3, 15282 },
{ (Il2CppRGCTXDataType)3, 15283 },
{ (Il2CppRGCTXDataType)3, 15284 },
{ (Il2CppRGCTXDataType)3, 15285 },
{ (Il2CppRGCTXDataType)2, 18074 },
{ (Il2CppRGCTXDataType)2, 22268 },
{ (Il2CppRGCTXDataType)3, 15286 },
{ (Il2CppRGCTXDataType)3, 15287 },
{ (Il2CppRGCTXDataType)2, 18078 },
{ (Il2CppRGCTXDataType)3, 15288 },
{ (Il2CppRGCTXDataType)2, 22269 },
{ (Il2CppRGCTXDataType)2, 18088 },
{ (Il2CppRGCTXDataType)2, 18086 },
{ (Il2CppRGCTXDataType)2, 22270 },
{ (Il2CppRGCTXDataType)3, 15289 },
{ (Il2CppRGCTXDataType)2, 22271 },
{ (Il2CppRGCTXDataType)3, 15290 },
{ (Il2CppRGCTXDataType)3, 15291 },
{ (Il2CppRGCTXDataType)3, 15292 },
{ (Il2CppRGCTXDataType)2, 18092 },
{ (Il2CppRGCTXDataType)3, 15293 },
{ (Il2CppRGCTXDataType)3, 15294 },
{ (Il2CppRGCTXDataType)2, 18095 },
{ (Il2CppRGCTXDataType)3, 15295 },
{ (Il2CppRGCTXDataType)1, 22272 },
{ (Il2CppRGCTXDataType)2, 18094 },
{ (Il2CppRGCTXDataType)3, 15296 },
{ (Il2CppRGCTXDataType)1, 18094 },
{ (Il2CppRGCTXDataType)1, 18092 },
{ (Il2CppRGCTXDataType)2, 22273 },
{ (Il2CppRGCTXDataType)2, 18094 },
{ (Il2CppRGCTXDataType)3, 15297 },
{ (Il2CppRGCTXDataType)3, 15298 },
{ (Il2CppRGCTXDataType)3, 15299 },
{ (Il2CppRGCTXDataType)2, 18093 },
{ (Il2CppRGCTXDataType)3, 15300 },
{ (Il2CppRGCTXDataType)2, 18106 },
{ (Il2CppRGCTXDataType)2, 18117 },
{ (Il2CppRGCTXDataType)2, 18119 },
};
extern const Il2CppCodeGenModule g_System_CoreCodeGenModule;
const Il2CppCodeGenModule g_System_CoreCodeGenModule =
{
"System.Core.dll",
169,
s_methodPointers,
s_InvokerIndices,
0,
NULL,
41,
s_rgctxIndices,
199,
s_rgctxValues,
NULL,
};
| e9821a75d2efcd4a32d53bae98ffd88f34d9c1c7 | [
"C#",
"C",
"C++"
] | 18 | C# | JIARC777/CS450_Le_Chapeau_Production | b2679ac99c9c5549ed3b89ec196d95658459b133 | 1ed0567f20c0b13654c5a4c059bcb660dcb5dc59 |
refs/heads/master | <file_sep># analysis.py
# -----------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by <NAME>
# (<EMAIL>) and <NAME> (<EMAIL>).
# Student side autograding was added by <NAME>, <NAME>, and
# <NAME> (<EMAIL>).
######################
# ANALYSIS QUESTIONS #
######################
# Set the given parameters to obtain the specified policies through
# value iteration.
def question2():
answerDiscount = 0.9
answerNoise = 0.0
return answerDiscount, answerNoise
#by removing the noise, there is not random non-optimal movements. This leads us straight to the answer/exit.
def question3a():
answerDiscount = 0.2
answerNoise = 0
answerLivingReward = 0
return answerDiscount, answerNoise, answerLivingReward
# If not possible, return 'NOT POSSIBLE'
#with no living reward and noise, having a small discount allows pacman to take the shortest path,
#while incentivizing a closer exit.
def question3b():
answerDiscount = 0.1
answerNoise = 0.1
answerLivingReward = 0.1
return answerDiscount, answerNoise, answerLivingReward
# If not possible, return 'NOT POSSIBLE'
#by adding a small living reward and noise to match the small discount, pacman will try to stay alive as well
#as explore other options that result in safer and more varied paths torwards a close exit
def question3c():
answerDiscount = 0.9
answerNoise = 0
answerLivingReward = 0
return answerDiscount, answerNoise, answerLivingReward
# If not possible, return 'NOT POSSIBLE'
#by adding a higher living reward with no noise or living reward the pacman is able to explore further and get to
#the further exit
def question3d():
answerDiscount = 0.9
answerNoise = 0.1
answerLivingReward = 0.1
return answerDiscount, answerNoise, answerLivingReward
# If not possible, return 'NOT POSSIBLE'
#by adding a small living reward and noise to the large discount, pacman will try to stay alive as well
#as explore other options that result in safer and more varied paths torwards a farther exit
def question3e():
answerDiscount = 0
answerNoise = 0
answerLivingReward = 1
return answerDiscount, answerNoise, answerLivingReward
# If not possible, return 'NOT POSSIBLE'
#pacman has no incentive to move to the exit or travel randomly, not exiting and staying alive is the best reward.
def question8():
answerEpsilon = None
answerLearningRate = None
return 'NOT POSSIBLE'
# If not possible, return 'NOT POSSIBLE'
if __name__ == '__main__':
print('Answers to analysis questions:')
import analysis
for q in [q for q in dir(analysis) if q.startswith('question')]:
response = getattr(analysis, q)()
print(' Question %s:\t%s' % (q, str(response)))
<file_sep># valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by <NAME>
# (<EMAIL>) and <NAME> (<EMAIL>).
# Student side autograding was added by <NAME>, <NAME>, and
# <NAME> (<EMAIL>).
# valueIterationAgents.py
# -----------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by <NAME>
# (<EMAIL>) and <NAME> (<EMAIL>).
# Student side autograding was added by <NAME>, <NAME>, and
# <NAME> (<EMAIL>).
import mdp, util
from learningAgents import ValueEstimationAgent
import collections
class ValueIterationAgent(ValueEstimationAgent):
"""
* Please read learningAgents.py before reading this.*
A ValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs value iteration
for a given number of iterations using the supplied
discount factor.
"""
def __init__(self, mdp, discount=0.9, iterations=100):
"""
Your value iteration agent should take an mdp on
construction, run the indicated number of iterations
and then act according to the resulting policy.
Some useful mdp methods you will use:
mdp.getStates()
mdp.getPossibleActions(state)
mdp.getTransitionStatesAndProbs(state, action)
mdp.getReward(state, action, nextState)
mdp.isTerminal(state)
"""
self.mdp = mdp
self.discount = discount
self.iterations = iterations
self.values = util.Counter() # A Counter is a dict with default 0
self.runValueIteration()
def runValueIteration(self):
# Write value iteration code here
"*** YOUR CODE HERE ***"
# loop through each iteration then update values at the end of each loop (iteration)
for iteration in range(self.iterations):
# assign an empty dictionary
values = util.Counter()
# loop through each state from list of states
for state in self.mdp.getStates():
# returns the policy at the state; calls computeActionFromValues for current state
action = self.getAction(state)
# fill dictionary with q values if action is not None
if action is not None:
values[state] = self.computeQValueFromValues(state, action)
# update q values
self.values = values
def getValue(self, state):
"""
Return the value of the state (computed in __init__).
"""
return self.values[state]
def computeQValueFromValues(self, state, action):
"""
Compute the Q-value of action in state from the
value function stored in self.values.
"""
"*** YOUR CODE HERE ***"
"""Formula: Q*(s) = sum [ probability * (reward + (discount value * q value)] """
# used for calculating the sum of Q values
total = 0
# loop through list of transitions and calculate the sum of Q values
for nextState, probability in self.mdp.getTransitionStatesAndProbs(state, action):
# reward value
reward = self.mdp.getReward(state, action, nextState)
# future state
value = self.getValue(nextState)
# calculating the sum of Q values by using the formula:
total = total + (probability * (reward + (self.discount * value)))
# return the sum of Q values
return total
util.raiseNotDefined()
def computeActionFromValues(self, state):
"""
The policy is the best action in the given state
according to the values currently stored in self.values.
You may break ties any way you see fit. Note that if
there are no legal actions, which is the case at the
terminal state, you should return None.
"""
"*** YOUR CODE HERE ***"
# return none if the state is a terminal state
if self.mdp.isTerminal(state):
return None
# if not, then get a list of Q values that the agent can take
else:
# store Q values
value = util.Counter()
# loop through possible actions and fill in list with Q values
for action in self.mdp.getPossibleActions(state):
value[action] = self.getQValue(state, action)
# return the largest Q value
return value.argMax()
util.raiseNotDefined()
def getPolicy(self, state):
return self.computeActionFromValues(state)
def getAction(self, state):
"Returns the policy at the state (no exploration)."
return self.computeActionFromValues(state)
def getQValue(self, state, action):
return self.computeQValueFromValues(state, action)
class AsynchronousValueIterationAgent(ValueIterationAgent):
"""
* Please read learningAgents.py before reading this.*
An AsynchronousValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs cyclic value iteration
for a given number of iterations using the supplied
discount factor.
"""
def __init__(self, mdp, discount=0.9, iterations=1000):
"""
Your cyclic value iteration agent should take an mdp on
construction, run the indicated number of iterations,
and then act according to the resulting policy. Each iteration
updates the value of only one state, which cycles through
the states list. If the chosen state is terminal, nothing
happens in that iteration.
Some useful mdp methods you will use:
mdp.getStates()
mdp.getPossibleActions(state)
mdp.getTransitionStatesAndProbs(state, action)
mdp.getReward(state)
mdp.isTerminal(state)
"""
ValueIterationAgent.__init__(self, mdp, discount, iterations)
def runValueIteration(self):
"*** YOUR CODE HERE ***"
# loop through each iteration
for iteration in range(self.iterations):
# update a single state using the number of iteration % total number of states
state = self.mdp.getStates()[iteration % len(self.mdp.getStates())]
# check to see if state is not terminal
if not self.mdp.isTerminal(state):
# get the maximum q value from possible actions
maximum = max(self.getQValue(state, action) for action in self.mdp.getPossibleActions(state))
# update self.values[state] with the maximum value
self.values[state] = maximum
class PrioritizedSweepingValueIterationAgent(AsynchronousValueIterationAgent):
"""
* Please read learningAgents.py before reading this.*
A PrioritizedSweepingValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs prioritized sweeping value iteration
for a given number of iterations using the supplied parameters.
"""
def __init__(self, mdp, discount=0.9, iterations=100, theta=1e-5):
"""
Your prioritized sweeping value iteration agent should take an mdp on
construction, run the indicated number of iterations,
and then act according to the resulting policy.
"""
self.theta = theta
ValueIterationAgent.__init__(self, mdp, discount, iterations)
def runValueIteration(self):
"*** YOUR CODE HERE ***"
# predecessor implemented with a set to avoid duplications
predecessors = {}
# compute predecessor of all states
for state in self.mdp.getStates():
# check to see if see current state is a terminal state
if not self.mdp.isTerminal(state):
# loop through possible actions from that state
for action in self.mdp.getPossibleActions(state):
# loop through transition states and their probabilities
for nextState, probability in self.mdp.getTransitionStatesAndProbs(state, action):
# add states to the list of predecessors[nextState]
if nextState in predecessors:
predecessors[nextState].add(state)
else:
predecessors[nextState] = {state}
# initialize a priority queue
priorityQueue = util.PriorityQueue()
# loop through states
for state in self.mdp.getStates():
# check to see if current state is not a terminal state
if not self.mdp.isTerminal(state):
# find the maximum q values
maximum = max(
self.computeQValueFromValues(state, action) for action in self.mdp.getPossibleActions(state))
# find the absolute value of the difference between the current value of state in self.values
# and the highest Q-value across all possible actions from state
diff = abs(self.values[state] - maximum)
# push state into the priorityQueue with a priority on diff
priorityQueue.push(state, -diff)
# loop through iterations
for iteration in range(self.iterations):
# check to see if the priorityQueue is empty, if so, then terminate loop
if priorityQueue.isEmpty():
break
# otherwise, pop off a state from the priority queue and update state value given it's not a terminal state
else:
# pop state off from priority queue
state = priorityQueue.pop()
# check to see if state is not a terminal state and proceed with the self.value update
if not self.mdp.isTerminal(state):
# calculate the maximum Q value from all states
maximum = max(self.computeQValueFromValues(state, action)
for action in self.mdp.getPossibleActions(state))
# update Q values for state
self.values[state] = maximum
# loop through each predecessor
for predecessor in predecessors[state]:
# calculate the maximum q value from all predecessors
maxValue = max(self.computeQValueFromValues(predecessor, action)
for action in self.mdp.getPossibleActions(predecessor))
# find the absolute value of the difference between the current value of predecessors in self.values
# and the highest Q-value across all possible actions from predecessors
diff = abs(self.values[predecessor] - maxValue)
# update priority queue with a priority on diff
if diff > self.theta:
priorityQueue.update(predecessor, -diff)
| 40744d3c7d236ccbc020694872e3d3828279618e | [
"Python"
] | 2 | Python | MadMehx/CSS-382-Project-3 | 90594ae9c57d22f9906df0f7e7e365b921b850a8 | e9333c8a06986e1900a5d4a5ff2c9fbd4afa1a67 |
refs/heads/master | <file_sep>#!/usr/bin/env python2
import os
import subprocess
# Always 'uninstall' before 'install'
# Before delete, check if there's some alteration in files
# Create needed directory (image, wallpapers)
class Backenv(object):
def __init__(self):
home = os.path.expanduser('~')
self.files = [
{'files/i3/config': os.path.join(home, '.config/i3/config')},
{'files/irssi/config': os.path.join(home, '.irssi/config')},
{'files/irssi/default.theme': os.path.join(home, '.irssi/default.theme')},
{'files/systemd-user/feh-wallpaper.service': os.path.join(home, '.config/systemd/user/feh-wallpaper.service')},
{'files/systemd-user/feh-wallpaper.timer': os.path.join(home, '.config/systemd/user/feh-wallpaper.timer')},
{'files/spf13-vim/vimrc.before.local': os.path.join(home, '.spf13-vim-3/.vimrc.before.local')},
{'files/spf13-vim/vimrc.bundles.local': os.path.join(home, '.vimrc.bundles.local')},
{'files/x/xinitrc': os.path.join(home, '.xinitrc')},
{'files/tmux/tmux.conf': os.path.join(home, '.tmux.conf')},
{'files/ohmyzsh/zshrc': os.path.join(home, '.zshrc')},
{'files/ssh/config': os.path.join(home, '.ssh/config')}
]
self.cwd = os.getcwd()
all_link = self._is_link()
def _is_link(self):
link = True
for item in self.files:
for l in item.values():
if not (os.path.islink(l) or os.path.exists(l)):
link = False
print 'File or link is missing: %s' % l
return link
def install(self):
pass
def uninstall(self):
pass
def catchfiles(self):
pass
if __name__ == '__main__':
back = Backenv()
| c9bcca5d1e76af17bd0e6ad008a18fb03afb531d | [
"Python"
] | 1 | Python | dropped/apetrechos | a70989de103f9ef6932472176bb23595a7450dbc | 51053cdf6b5a9d9fcf80c8449d718fb738fab5da |
refs/heads/master | <file_sep>const execute = require("./src/getPixels");
const buildHtml = els => {
return require("fs").writeFileSync(
"./build/index.html",
`<!doctype html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="<KEY>
crossorigin="anonymous"></script>
<link href="index.css" rel="stylesheet">
<title>paulsevere.com</title>
</head>
<body>
<div class="letters">
${els}
</div>
<script>
$("body").on("click", ".title", () => {
window.location = "https://github.com/paulsevere";
});
</script>
</body>
</html>`
);
};
execute("./public/paulsevere.png", buildHtml);
| 4cf53cef658ded7e625de8df92972689d3f83d09 | [
"JavaScript"
] | 1 | JavaScript | paulsevere/paulsevere.com | 56e36da5f464c89d8edd2fb7295770a46c8fda51 | d7501ed85cb32ea0cd4c333030613d81bfbfe71a |
refs/heads/master | <file_sep>$(function() {
$('.need-confirm-btn').click(function() {
if (confirm('정말 삭제하시겠습니까?')) {
return true;
}
return false;
});
});<file_sep>var mongoose = require('mongoose'),
mongoosePaginate = require('mongoose-paginate'),
Schema = mongoose.Schema;
var schema = new Schema({
content: {type: String, required: true},
product: { type: Schema.Types.ObjectId, ref: 'Product'},
order: { type: Schema.Types.ObjectId, ref: 'order' },
trId: {type: Number},
isBlock: {type: Boolean, default:false},
}, {
toJSON: { virtuals: true},
toObject: {virtuals: true}
});
schema.plugin(mongoosePaginate);
var Review = mongoose.model('Review', schema);
module.exports = Review;<file_sep>var express = require('express');
var router = express.Router();
const catchErrors = require('../lib/async-error');
const User = require('../models/user');
const Seller = require('../models/seller');
const Order = require('../models/order');
const Status = require('../models/status');
const Product = require('../models/product');
const Category = require('../models/category');
const multer = require('multer');
const fs = require('fs-extra');
const path = require('path');
// local 사진 저장
const mimetypes = {
"image/jpeg": "jpg",
"image/gif": "gif",
"image/png": "png"
};
const upload = multer({
dest: 'tmp',
fileFilter: (req, file, cb) => {
var ext = mimetypes[file.mimetype];
if (!ext) {
return cb(new Error('Only image files are allowed!'), false);
}
cb(null, true);
}
});
function needAuth(req, res, next) {
if (req.isAuthenticated()) {
next();
} else {
req.flash('danger', 'Please signin first.');
res.redirect('/signin');
}
}
function isSeller(req, res, next){
if (req.user.seller){
next();
}else{
req.flash('danger','판매자로 가입해주세요!');
res.redirect('/seller/join');
}
}
router.get('/join', needAuth, catchErrors(async(req, res, next) => {
var seller = {};
res.render('seller/seller_join', {seller: seller});
}));
router.get('/product/add', needAuth, isSeller, catchErrors(async(req, res, next) => {
var categorys = await Category.find({}).sort({sequence: 1});
product ={};
res.render('seller/product_management_add', {categorys: categorys, product: product});
}));
router.get('/products/:id', needAuth, isSeller, catchErrors(async(req, res, next) => {
const page = parseInt(req.query.page) || 1;
const limit = parseInt(req.query.limit) || 12;
var query = {seller: req.params.id};
const products = await Product.paginate(query, {
sort: {createdAt: -1},
populate: 'seller',
page: page, limit: limit
});
res.render('seller/seller_product_list', {products: products});
}));
router.get('/order/:id', needAuth, isSeller, catchErrors(async(req, res, next) => {
const page = parseInt(req.query.page) || 1;
const limit = parseInt(req.query.limit) || 5;
var query = {seller: req.params.id};
const orders = await Order.paginate(query, {
sort: {createdAt: -1},
populate: ['product', 'buyer'],
page: page, limit: limit
});
res.render('seller/seller_current_situation', {orders: orders});
}));
router.get('/status/:id', needAuth, isSeller, catchErrors(async(req, res, next) => {
var order = await Order.findById(req.params.id);
res.render('seller/seller_status', {order: order});
}));
router.get('/:id', needAuth, isSeller, catchErrors(async(req, res, next) => {
var user = await User.findById(req.params.id);
var seller = await Seller.findOne({seller_id: req.params.id});
res.render('seller/seller_introduce', {user: user, seller: seller});
}));
router.get('/:id/edit', needAuth, isSeller, catchErrors(async(req, res, next) => {
var seller = await Seller.findOne({seller_id: req.params.id});
res.render('seller/seller_edit', {seller: seller});
}));
router.put('/:id', needAuth, isSeller, upload.single('img'), catchErrors(async(req, res, next) => {
var seller = await Seller.findById(req.params.id);
seller.name = req.body.name;
seller.university = req.body.university;
seller.major = req.body.major;
seller.introduce = req.body.introduce;
if (req.file) {
const dest = path.join(__dirname, '../public/images/uploads/'); // 옮길 디렉토리
console.log("File ->", req.file); // multer의 output이 어떤 형태인지 보자.
const filename = seller.id + "/" + req.file.originalname;
await fs.move(req.file.path, dest + filename);
seller.img = "/images/uploads/" + filename;
}
await seller.save();
req.flash('success', '정보를 수정했습니다.');
res.redirect('/');
}));
router.post('/', needAuth, upload.single('img'), catchErrors(async(req, res, next) => {
var seller = new Seller({
seller_id: req.user._id,
name: req.body.name,
university: req.body.university,
major: req.body.major,
introduce: req.body.introduce,
});
if (req.file) {
const dest = path.join(__dirname, '../public/images/uploads/'); // 옮길 디렉토리
console.log("File ->", req.file); // multer의 output이 어떤 형태인지 보자.
const filename = seller.id + "/" + req.file.originalname;
await fs.move(req.file.path, dest + filename);
seller.img = "/images/uploads/" + filename;
}
await seller.save();
const user = req.user;
user.seller = true;
await user.save();
req.flash('success', '판매자로 등록되었습니다.')
res.redirect('/');
}));
router.post('/add', needAuth, upload.single('img'), catchErrors(async(req, res, next) => {
var category = await Category.findOne({'name': req.body.category});
try{
var product = new Product({
seller: req.user._id,
title: req.body.title,
category: category._id,
price: req.body.price,
requireTime: req.body.requireTime,
content: req.body.content,
sellerAddress: req.body.sellerAddress
});
if (req.file) {
const dest = path.join(__dirname, '../public/images/uploads/'); // 옮길 디렉토리
console.log("File ->", req.file); // multer의 output이 어떤 형태인지 보자.
const filename = product.id + "/" + req.file.originalname;
await fs.move(req.file.path, dest + filename);
product.img = "/images/uploads/" + filename;
}
await product.save();
req.flash('success', '상품을 등록했습니다.');
res.redirect('/');
} catch (err) {
req.flash('danger', '상품 등록에 실패했습니다.');
res.redirect('/');
}
}));
// router.post('/web3/:id', needAuth, catchErrors(async(req, res, next) => {
// var status = await Status.findById(req.params.id);
// status.isBlock = true;
// req.flash('success', '블록에 등록했습니다');
// res.redirect('/');
// }));
router.post('/status/:id', needAuth, upload.single('img'), catchErrors(async(req, res, next) => {
var status = new Status({
order_id: req.params.id,
content: req.body.content,
});
if (req.file) {
const dest = path.join(__dirname, '../public/images/uploads/'); // 옮길 디렉토리
console.log("File ->", req.file); // multer의 output이 어떤 형태인지 보자.
const filename = status.id + "/" + req.file.originalname;
await fs.move(req.file.path, dest + filename);
status.img = "/images/uploads/" + filename;
}
await status.save();
res.redirect('/');
}));
// router.post('/setTalent/:id', needAuth, catchErrors(async(req, res, next) => {
// const product = await Product.findById(req.params.id);
// product.isBlock = true;
// product.talentId = req.body.talentId;
// product.save();
// req.flash('success', '블록체인에 등록 성공했습니다');
// res.redirect('/');
// }));
module.exports = router;
<file_sep>const spinner = document.getElementById('spinner');
const info = document.getElementById('info');
const setTradeBtn = document.getElementById('js-setTrade');
const tradeIdIp = document.getElementById('tradeId');
const talent = document.getElementById('talentId');
const jsdivded = document.getElementById('js-divded');
const jsprice = document.getElementById('price');
const jsSellerAddress = document.getElementById('sellerAddress');
let deploy = false;
function loading() {
spinner.classList.remove('hiding');
info.classList.remove('hiding');
info.innerText = "등록중 입니다. 잠시만 기다려 주세요";
}
function setTrade(divded, talentId, price, sellerAddress) {
myContract.methods.setTrade(sellerAddress, price, talentId, userAccounts[0], divded).send({ from: userAccounts[0], value: web3js.utils.toWei(`${price/100}`)})
.on('receipt', function(receipt) {
console.log(receipt);
const value = receipt.events.NewTrade.returnValues;
info.innerText = "등록완료";
spinner.classList.add("hiding");
tradeIdIp.value = parseInt(value.trId);
deploy = true;
})
.on('error', function(error) {
console.log('등록실패');
})
}
function init() {
setTradeBtn.addEventListener('click', function() {
loading();
let divded = parseInt(jsdivded.innerText);
let talentId = talent.innerText;
let price = parseFloat(jsprice.innerText);
let sellerAddress = jsSellerAddress.innerText;
setTrade(divded, talentId, price * 100, sellerAddress);
});
}
init();<file_sep>var mongoose = require('mongoose'),
mongoosePaginate = require('mongoose-paginate'),
Schema = mongoose.Schema;
var schema = new Schema({
buyer: { type: Schema.Types.ObjectId, ref: 'User'},
seller: {type: Schema.Types.ObjectId, ref: 'User'},
product: { type: Schema.Types.ObjectId, ref: 'Product'},
createdAt: {type: Date, default: Date.now},
price: {type: Number, required: true},
closingDate: {type: Date},
finish: {type: Boolean, default:false},
isBlock: {type: Boolean, default:false},
trId: {type: Number},
divded: {type: Number}
}, {
toJSON: { virtuals: true},
toObject: {virtuals: true}
});
schema.plugin(mongoosePaginate);
var Order = mongoose.model('Order', schema);
module.exports = Order;
<file_sep>var express = require('express');
var router = express.Router();
const Notice = require('../models/notice');
const moment = require('moment');
const catchErrors = require('../lib/async-error');
/* GET users listing. */
function needAuth(req, res, next) {
if (req.session.user) {
next();
} else {
req.flash('danger', 'Please signin first.');
res.redirect('/signin');
}
}
router.get('/', catchErrors(async(req, res, next) => {
Notice.find({}, function(err, notices) {
if (err) {
return next(err);
}
console.log("err", err);
console.log(notices);
res.render('./includes/notice_main',{notices : notices});
});
}));
router.get('/notice_write', catchErrors(async(req, res, next) => {
res.render('./includes/notice_write');
}));
//공지사항 게시글 작성
router.post('/notice_write', catchErrors(async(req, res, next) => {
var notice = new Notice({
title : req.body.title,
content: req.body.content,
// date: new Date()
});
await notice.save();
req.flash('Success','공지사항을 성공적으로 저장했습니다.');
res.redirect('/notice');
}));
//notice check
router.get('/:id', (req, res)=>{
Notice.findOne({_id : req.params.id}, function(err,notice){
if(err){
return next(err);
}
console.log("err", err);
console.log(notice);
res.render('./includes/notice_check',{notice:notice})
})
});
module.exports = router;<file_sep>const sellerAddress = document.getElementById('sellerAddress');
const title = document.getElementById('title');
function init() {
title.addEventListener('click', function() {
sellerAddress.value = userAccounts[0];
})
}
init();<file_sep>const spinner = document.getElementById('spinner');
const info = document.getElementById('info');
const setRespondBtn = document.getElementById('js-setrespond');
const jsTradeId = document.getElementById('tradeId');
let deploy = false;
function loading() {
spinner.classList.remove('hiding');
info.classList.remove('hiding');
info.innerText = "등록중 입니다. 잠시만 기다려 주세요";
}
function setRespond() {
loading();
tradeId = parseInt(jsTradeId.innerText);
myContract.methods.respondAgree(tradeId).send({ from: userAccounts[0]})
.on('receipt', function(receipt){
console.log(receipt);
var value = receipt.events.RespondAgree.returnValues
if(value.isFinished){
info.innerText = "최종합의가 완료되었습니다. 돈을 판매자에게 최종 입금합니다.";
}
else {
info.innerText = "등록완료";
}
spinner.classList.add('hiding');
deploy = true;
})
.on('error', function(error) {
console.log('등록실패');
})
}
function init() {
setRespondBtn.addEventListener('click', setRespond);
}
init();<file_sep>var express = require('express');
var router = express.Router();
const catchErrors = require('../lib/async-error');
const User = require('../models/user');
const Seller = require('../models/seller');
const Order = require('../models/order');
const Status = require('../models/status');
const Product = require('../models/product');
const Category = require('../models/category');
const multer = require('multer');
const fs = require('fs-extra');
const path = require('path');
const moment = require('moment');
function needAuth(req, res, next) {
if (req.isAuthenticated()) {
next();
} else {
req.flash('danger', 'Please signin first.');
res.redirect('/signin');
}
}
/* GET users listing. */
router.get('/:id', catchErrors(async(req, res, next) => {
var product = await Product.findById(req.params.id);
var seller = await Seller.findOne({seller_id: product.seller}).populate('seller_id');
res.render('products/product_explain', {product: product, seller: seller});
}));
router.get('/purchase/:id', needAuth, catchErrors(async(req, res, next) => {
var product = await Product.findById(req.params.id);
var seller = await Seller.findOne({seller_id: product.seller}).populate('seller_id');
res.render('products/purchase_page', {product: product, seller: seller});
}));
router.post('/setTrade/:id', needAuth, catchErrors(async(req, res, next) => {
var order = await Order.findById(req.params.id);
order.isBlock = true;
order.trId = req.body.tradeId;
order.divded = req.body.divded
await order.save();
req.flash('success', "거래를 블록에 등록했습니다");
res.redirect('/');
}));
router.post('/purchase/:id', needAuth, catchErrors(async(req, res, next) => {
var product = await Product.findById(req.params.id);
var seller = await Seller.findOne({seller_id: product.seller}).populate('seller_id');
var closingDate = moment().add(product.requireTime,'d');
var order = new Order({
buyer: req.user._id,
seller: seller.seller_id,
product: product._id,
price: product.price,
closingDate: closingDate
});
await order.save();
res.render('products/web3', {product:product, order: order});
}));
module.exports = router;
<file_sep># blockchain_web
블록체인 기반 재능거래 플랫폼은 이더리움 플랫폼 기반 dapp으로 개발하여 거래 수수료를 줄인 재능거래 플랫폼이다.<br/>
<br/>
양성훈(<NAME>),유도진(dojin you),유원준(Wonjun You),최솔(Sol Choi),진회용(Hoe-Yong Jin),and 김상균(Sang-<NAME>). "블록체인 기반 재능 거래 플랫폼." 한국방송공학회 학술발표대회 논문집 2020.7 (2020)><br/>
사이트 주소: https://guarded-castle-05363.herokuapp.com/
## Screen shot
<img src="./img/blockchain_project.jpg" width="500px" height="450px" title="스크린 샷" alt="Screenshot"></img><br/>
<img src="./img/후기 등록 메타마스크 창.jpg" width="300px" height="500px" title="후기 등록 메타마스크 창" alt="Screenshot"></img>
-------------
<file_sep>var express = require('express');
var router = express.Router();
const catchErrors = require('../lib/async-error');
const User = require('../models/user');
const Seller = require('../models/seller');
const Order = require('../models/order');
const Status = require('../models/status');
const Review = require('../models/review');
const Product = require('../models/product');
/* GET users listing. */
// 로그인 세션 확인
function needAuth(req, res, next) {
if (req.isAuthenticated()) {
next();
} else {
req.flash('danger', 'Please signin first.');
res.redirect('/signin');
}
}
function validateForm(form, options) {
var email = form.email || "";
email = email.trim();
if (!email) {
return 'Email is required.';
}
if (email.indexOf("@") == -1) {
return 'Email is not correct';
}
if (!form.password && options.needPassword) {
return 'Password is required.';
}
if (form.password !== form.password_confirmation) {
return 'Passsword do not match.';
}
if (form.password.length < 6) {
return 'Password must be at least 6 characters.';
}
return null;
}
router.get('/signup', catchErrors(async(req, res, next) => {
res.render('users/signup')
}));
router.post('/', catchErrors(async(req, res, next) => {
var err = validateForm(req.body, {needPassword: true});
if (err) {
req.flash('danger', err);
return res.redirect('back');
}
var user = await User.findOne({email: req.body.email});
console.log('USER???', user);
if(user) {
req.flash('danger', '이메일이 이미 존재합니다.');
return res.redirect('back');
}
user = new User({
email: req.body.email,
});
user.password = await user.generateHash(req.body.password);
await user.save();
req.flash('success', '회원가입 되었습니다. 로그인 해주세요');
res.redirect('/');
}));
router.get('/:id', needAuth, catchErrors(async(req, res, next) => {
const user = await User.findById(req.params.id);
const orders = await Order.find({buyer: req.params.id}).populate('product');
res.render('users/customer_information', {user: user, orders: orders});
}));
router.delete('/:id', needAuth, catchErrors(async (req, res, next) => {
const user = await User.findOneAndRemove({_id: req.params.id});
const seller = await Seller.findOneAndRemove({seller_id: req.params.id});
req.flash('success', '삭제되었습니다.');
res.redirect('/');
}));
router.get('/review/:id', needAuth, catchErrors(async(req, res, next) => {
const orders = await Order.find({buyer: req.params.id}).populate('product');
res.render('users/review_main', {orders: orders});
}));
router.get('/products/:id', needAuth, catchErrors(async(req, res, next) => {
const page = parseInt(req.query.page) || 1;
const limit = parseInt(req.query.limit) || 12;
var query = {buyer: req.params.id};
const orders = await Order.paginate(query, {
sort: {createdAt: -1},
page: page, limit: limit,
populate: 'product'
});
res.render('users/customer_check',{orders: orders});
}));
router.get('/status/:id', needAuth, catchErrors(async(req, res, next) => {
const status = await Status.find({order_id: req.params.id, approval: "대기"}).populate('order_id');
res.render('users/customer_check_status', {status: status});
}));
router.get('/reject/:id', needAuth, catchErrors(async(req, res, next) => {
const status = await Status.find({order_id: req.params.id, approval: "대기"});
status.approval = "거절";
await status.save();
req.flash('success',"합의를 거절하였습니다.")
res.redirect('/');
}));
router.get('/web3/:id', needAuth, catchErrors(async(req, res, next) => {
var status = await Status.findById(req.params.id).populate('order_id');
res.render('users/web3Agree', {status: status});
}));
router.post('/web3/:id', needAuth, catchErrors(async(req, res, next) => {
var status = await Status.findById(req.params.id);
status.approval = "승낙";
await status.save();
req.flash("success", "합의를 승낙하였습니다");
res.redirect('/');
}));
router.post('/web3Review/:id', needAuth, catchErrors(async(req, res, next) => {
var review = await Review.findById(req.params.id);
var product = await Product.findById(review.product);
product.numComments++
review.isBlock = true;
await review.save();
await product.save();
req.flash('success', "거래를 등록했습니다.");
res.redirect('/');
}));
router.post('/review_main/:id', needAuth, catchErrors(async(req, res, next) => {
const order = await Order.findById(req.params.id);
var review = new Review({
content: req.body.content,
product: order.product,
order: order.id,
trId: order.trId,
});
await review.save();
res.render('users/web3Review', {review: review});
}));
module.exports = router;
<file_sep>var express = require('express');
var router = express.Router();
const catchErrors = require('../lib/async-error');
const Product = require('../models/product');
const Category = require('../models/category');
const User = require('../models/user');
/* GET users listing. */
router.get('/manage_user', catchErrors(async(req,res, next) =>{
User.find({}, function(err, users) {
if(err) {
return next(err);
}
console.log("err",err);
console.log(users)
res.render('manager/manage_user',{users:users});
});
}));
router.get('/category', catchErrors(async(req, res, next) => {
res.render('manager/manage_category');
}));
router.post('/category', catchErrors(async(req, res, next) => {
var category = new Category({
name: req.body.name,
sequence: req.body.sequence
});
await category.save();
req.flash('success', '키테고리 추가 성공');
res.redirect('back');
}));
module.exports = router;
<file_sep>const LocalStrategy = require('passport-local').Strategy;
const User = require('../models/user');
module.exports = function(passport) {
passport.serializeUser((user, done) => {
done(null, user.id);
});
passport.deserializeUser((id, done) => {
User.findById(id, done);
});
passport.use('local-signin', new LocalStrategy({
usernameField : 'email',
passwordField : '<PASSWORD>',
passReqToCallback : true
}, async (req, email, password, done) => {
try {
const user = await User.findOne({email: email});
if (user && await user.validatePassword(password)) {
return done(null, user, req.flash('success', 'Welcome!'));
}
return done(null, false, req.flash('danger', 'Invalid email or password'));
} catch(err) {
done(err);
}
}));
};
<file_sep>var mongoose = require('mongoose'),
mongoosePaginate = require('mongoose-paginate'),
Schema = mongoose.Schema;
var schema = new Schema({
seller_id: { type: Schema.Types.ObjectId, ref: 'User'},
name: {type: String},
img: {type: String},
introduce: {type: String},
university: {type: String},
major: {type: String}
}, {
toJSON: { virtuals: true},
toObject: {virtuals: true}
});
schema.plugin(mongoosePaginate);
var Seller = mongoose.model('Seller', schema);
module.exports = Seller; | 20551035aa73bd3c1970030d9a258fa7ce4bda4d | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | seonghunYang/uxm_BlockChain_platform | 7dc7b232301514e4ced8ac4542e07baf4b9c1253 | fdbc8e464e0df715db93c046c632eb7bcefa98e8 |
refs/heads/master | <repo_name>gymadarasz/emu<file_sep>/src/libs/Session.php
<?php
namespace emu\libs;
class Session {
private static $started = false;
public function __construct() {
$this->start();
}
private function start() {
if(!self::$started && !isset($_SESSION)) {
session_start();
}
self::$started = true;
}
public function retrieve($key) {
if(!isset($_SESSION[$key]) || !$_SESSION[$key]) {
return null;
}
return $_SESSION[$key];
}
public function store($key, $value) {
if($value) {
$_SESSION[$key] = $value;
} else {
unset($_SESSION[$key]);
}
}
}
<file_sep>/src/libs/WebSocketUserAuthor.php
<?php
namespace emu\libs;
use emu\pub\Client;
use emu\libs\Exception;
class WebSocketUserAuthor {
public function auth(\WebSocketUser $user, string $utoken) {
// TODO: use separated AuthToken class in a common lib instead in Client
$tokenfile = Client::token_json($utoken);
$msg = "Authentication error";
if(!$ujson = file_get_contents($tokenfile)) {
throw new Exception(self::DEV_MODE ? "Token read error, authentication failed" : $msg);
}
if(!unlink($tokenfile)) {
throw new Exception(self::DEV_MODE ? "Unlink token error, authentication failed" : $msg);
}
$udata = JSON::decode($ujson);
if(!socket_getpeername($user->socket, $address)) {
throw new Exception(self::DEV_MODE ? "Authentication failed: ".socket_last_error() : $msg);
}
if($udata->uip !== $address) {
throw new Exception(self::DEV_MODE ? "Authentication failed: {$udata->uip}!={$address}" : $msg);
}
$user->uid = (int)$udata->uid;
$user->uname = (string)$udata->uname;
$user->uemail = (string)$udata->uemail;
Client::cleanup();
return [
'status' => 'success',
'message' => 'Authentication success',
];
}
}
<file_sep>/src/libs/Exception.php
<?php
namespace emu\libs;
class Exception extends \Exception {
const UNKNOWN = 100;
};<file_sep>/todo.txt
add PHP-Websockets to packagist.org<file_sep>/server.php
<?php
include_once __DIR__ . "/vendor/autoload.php";
include_once __DIR__ . "/PHP-Websockets/websockets.php";
//include_once __DIR__ . "/PHP-Websockets/users.php";
use emu\pub\Server;
$server = new Server('127.0.0.1', 8080);
$server->run();
<file_sep>/index.php
<?php
include_once __DIR__ . "/vendor/autoload.php";
use emu\pub\Client;
$client = new Client();
$client->show();
<file_sep>/src/pub/Client.php
<?php
namespace emu\pub;
use gymadarasz\wee\Wee;
use emu\libs\Session;
use emu\libs\JSON;
class Client {
const DEV_MODE = true;
const DEV_UID = 1;
const DEV_UNAME = 'Gyula';
const DEV_UEMAIL = '<EMAIL>';
const WSURL = 'ws://localhost:8080';
const PATH_BASE = '.';
const PATH_TPLS = '/tpls';
const PATH_JS = '/tpls/js';
const PATH_TOKENS = '/tokens';
const PREFIX_TOKEN = "token";
const EXT_JSON = ".json";
const FILE_INDEX_HTML = "index.html";
const FILE_EXCEPTION_HTML = "exception.html";
const FILE_WSAUTH_JS = "wsauth.js";
const DS = "/";
const BASE = "http://localhost/emu/";
private $uid;
private $utoken;
private $uname;
private $uemail;
private static $basepath = null;
public static function basepath() {
if(null === self::$basepath) {
self::$basepath = realpath(self::PATH_BASE);
if(!self::$basepath) {
throw new Exception("Incorrect base path, set PATH_BASE const to a valid folder");
}
}
return self::$basepath;
}
private static function index_html() {
return self::basepath() . self::PATH_TPLS . self::DS . self::FILE_INDEX_HTML;
}
private static function exception_html() {
return self::basepath() . self::PATH_TPLS . self::DS . self::FILE_EXCEPTION_HTML;
}
private static function wsauth_js() {
return self::basepath() . self::PATH_JS . self::DS . self::FILE_WSAUTH_JS;
}
public static function token_json(string $utoken) {
return self::basepath() . self::PATH_TOKENS . self::DS . $utoken . self::EXT_JSON;
}
public function show() {
try {
$this->retrieve();
$this->token(self::basepath());
$this->store();
//$wsauth = new Wee(self::wsauth_js(), [
//]);
$wee = new Wee(self::index_html(), [
'base' => self::BASE,
'uname' => $this->uname,
'utoken' => $this->utoken,
'wsurl' => self::WSURL,
//'wsauth' => $wsauth,
]);
} catch (Exception $e) {
if(self::DEV_MODE) {
$wee = new Wee(self::exception_html(), [
'base' => self::BASE,
'message' => $e->getMessage(),
'code' => $e->getCode(),
'trace' => $e->getTraceAsString(),
]);
} else {
throw new Exception("Unhandled exception", Exception::UNHANDLED, $e);
}
}
echo $wee;
}
private function token() {
$this->cleanup();
$remoteIP = $_SERVER['REMOTE_ADDR'];
if($remoteIP == '::1') {
$remoteIP = '127.0.0.1';
}
$ujson = JSON::encode([
'uid' => (int)$this->uid,
'uname' => (string)$this->uname,
'uemail' => (string)$this->uemail,
'uip' => (string)$remoteIP,
]);
if(!file_exists(self::basepath() . self::PATH_TOKENS) || !is_dir(self::basepath() . self::PATH_TOKENS)) {
if(!mkdir(self::basepath() . self::PATH_TOKENS, 0600, true)) {
throw new Exception("Token folder not created");
}
}
if(!file_put_contents(self::token_json($this->utoken), $ujson)) {
throw new Exception("Token write error");
}
}
public static function cleanup($expiry = 3) {
$files = glob(self::basepath() . self::PATH_TOKENS . self::DS . self::PREFIX_TOKEN . "*".self::EXT_JSON);
foreach($files as $file) {
if(time() - filemtime($file) > $expiry) {
if(!unlink($file)) {
throw new Exception("Token cleanup error");
}
}
}
}
private function retrieve() {
$session = new Session();
$this->uid = (int)$session->retrieve('uid');
$this->uname = (string)$session->retrieve('uname');
$this->uemail = (string)$session->retrieve('uemail');
if(self::DEV_MODE) {
$this->uid = self::DEV_UID;
$this->uname = self::DEV_UNAME;
$this->uemail = self::DEV_UEMAIL;
}
$this->utoken = self::PREFIX_TOKEN . md5(rand());
}
private function store() {
$session = new Session();
$session->store('uid', (int)$this->uid);
$session->store('uname', (string)$this->uname);
$session->store('uemail', (string)$this->uemail);
}
}<file_sep>/src/libs/ObjectCollector.php
<?php
namespace emu\libs;
class ObjectCollector {
const MAKEABLES = [
'TestUserObj',
];
/**
* @var array
*/
protected $objs;
protected $next;
public function __construct() {
$next = 0;
}
public function make(int $uid, string $clazz, $args): int {
if(!$uid) {
throw new Exception("No UID");
}
if(!$clazz || !preg_match('/^[a-zA-Z0-9_]+$/', $clazz)) {
throw new Exception("Wrong or empty class name" . ($clazz ? ": ".$clazz : ", clazz is empty"));
}
if(!in_array($clazz, self::MAKEABLES)) {
throw new Exception("Not makeable class: $clazz");
}
$obj = new $clazz($args);
$next++;
$this->objs[$uid][$next] = $obj;
return $next;
}
public function call(int $uid, int $oid, string $method, $args) {
if(!$uid) {
throw new Exception("No UID");
}
if(!isset($this->objs[$uid])) {
throw new Exception("Wrong UID");
}
if(!isset($this->objs[$uid][$oid])) {
throw new Exception("Wrong OID");
}
if(!$method || !preg_match('/^[a-zA-Z0-9_]+$/', $method)) {
throw new Exception("Wrong or empty method".($method ? ", method: $method" : ""));
}
if(!method_exists($this->objs[$uid][$oid], $method)) {
throw new Exception("Wrong method, method: $method");
}
$obj = $this->objs[$uid][$oid];
$results = $obj->$method($args);
return $results;
}
public function destroy(int $uid, int $oid = null) {
if(!$uid) {
throw new Exception("No UID");
}
if(isset($this->objs[$uid])) {
if(null !== $oid) {
if(isset($this->objs[$uid][$oid])) {
unset($this->objs[$uid][$oid]);
}
} else {
unset($this->objs[$uid]);
}
}
}
}
<file_sep>/src/libs/JSON.php
<?php
namespace emu\libs;
class JSON {
public static function encode($data) {
$json = json_encode($data);
if($json === false) {
$errno = json_last_error();
$error = json_last_error_msg();
throw new Exception("JSON error: ($errno) $error");
}
return $json;
}
public static function decode($json) {
$data = json_decode($json);
if(null === $data) {
$errno = json_last_error();
$error = json_last_error_msg();
throw new Exception("JSON is empty or error: ($errno) $error");
}
return $data;
}
}<file_sep>/js/wsauth.js
/*
// ---------------------- WSAUTH JS ------------------------
// include this js in <head> of index.html
// variables needed:
// {wsurl} - webscket server url:port
// {utoken} - user authentication token from http request
// example to use:
wsauth(function(e, resp){
console.log("auth", e, resp);
// do not use it! send json packed requests!
this.ws.send("hello");
this.request('echo', 'hi', function(resp){
console.log("resp", resp);
});
}, function(e) {
console.log("message", e);
}, function(e) {
console.log("close", e);
}, function(e) {
console.log("error", e);
});
*/
// todo: safe devmode, generate javascript content on server
//var devmode = {devmode};
var exception = function(clazz, message, code, prev, handler) {
this.clazz = clazz;
this.message = message;
this.code = code;
this.prev = prev ? new exception(prev.clazz, prev.message, prev.code, prev.prev) : null;
if(!handler) {
handler = function() {
console.debug(
"Exception:\n" +
"Class: " + this.clazz + "\n" +
"Message: " + this.message + "\n" +
"Code: " + this.code + "\n" //+
//"Trace:\n" + e.trace
);
if(this.prev) {
console.log("Previous:");
this.prev.handler();
}
}
}
this.handler = handler;
};
var wsauth = function(wsurl, utoken) {
var ws = new WebSocket(wsurl);
var requestCounter = 0;
var requestCallbacks = [];
this.request = function(method, args, callback) {
var rid = (++requestCounter);
requestCallbacks[rid] = callback;
var msg = JSON.stringify({
rid: rid,
method: method,
args: args
});
ws.send(msg);
};
var _this = this;
ws.onopen = function(e) {
_this.request('auth', {
utoken: utoken
}, function(resp) {
_this.onauth();
});
};
ws.onmessage = function(e) {
var resp = JSON.parse(e.data);
if(resp.rid) {
var err = false;
var ex = false;
if(typeof resp === 'undefined') {
err = "No response";
} else if(typeof resp.results === 'undefined') {
err = "No results";
} else if(typeof resp.rid === 'undefined' || !resp.rid) {
err = "No request id in response";
} else if(typeof requestCallbacks[resp.rid] === 'undefined') {
err = "Incorrect request id";
} else if(typeof resp.results.status === 'undefined') {
err = "No status";
} else if(resp.results.status !== 'success') {
err = "Status: "+resp.results.status;
if(typeof resp.results.exception !== 'undefined' || resp.results.status === 'exception') {
ex = resp.results.exception;
ex.message += (ex.trace ? "\nTrace:\n" + ex.trace : "");
}
}
if(err) {
throw new exception("Communication error", err, 0, ex);
}
var callback = requestCallbacks[resp.rid];
if(callback) {
callback(resp);
}
} else {
_this.onmessage(e);
}
};
ws.onclose = function(e) {
_this.onclose(e);
};
ws.onerror = function(e) {
_this.onerror(e, null, "Websocket error", null);
};
};
<file_sep>/src/pub/Server.php
<?php
namespace emu\pub;
use emu\libs\JSON;
use emu\libs\Exception;
use emu\libs\ObjectCollector;
use emu\libs\WebSocketUserAuthor;
class Server extends \WebSocketServer {
const DEV_MODE = true;
protected $author = null;
protected $collector = null;
protected $tv_sec = 1;
protected function author() {
if(null === $this->author) {
$this->author = new WebSocketUserAuthor();
}
return $this->author;
}
protected function collector() {
if(null === $this->collector) {
$this->collector = new ObjectCollector();
}
return $this->collector;
}
public function tick() {
echo '.';
}
public function process($user, $message) {
// todo: handle user timeouts
$user->lasttime = time();
$json = JSON::decode($message);
$method = (string)$json->method;
try {
switch($method) {
case 'auth':
$resp = $this->author()->auth($user, (string)$json->args->utoken);
break;
case 'make':
//var_dump($json);
$resp = $this->collector()->make($user->uid, $json->args->clazz, $json->args->params);
break;
case 'call':
$resp = $this->collector()->call($user->uid, $json->args->oid, $method, $json->args->params);
break;
case 'destroy':
$resp = $this->collector()->destroy($user->uid, $json->args->oid);
break;
default:
throw new Exception("Unsupported client method requested: $method");
}
} catch (\Exception $e) {
$resp = [
'status' => 'exception',
'exception' => $this->exception($e),
];
}
$this->send($user, JSON::encode([
'rid' => (int)$json->rid,
'results' => $resp,
]));
}
protected function exception(\Exception $e) {
// exception details into return
// but trace only in DEV_MODE
$prev = $e->getPrevious();
return [
'clazz' => get_class($e),
'message' => $e->getMessage(),
'code' => $e->getCode(),
'trace' => self::DEV_MODE ? $e->getTraceAsString() : null,
//'traceobj' => $e->getTrace(),
'prev' => $prev ? $this->exception($e->getPrevious()) : null,
];
}
public function connected($user) {
$user->lasttime = time();
}
public function closed($user) {
$this->collector()->destroy($user->uid);
}
// ------------ CLIENT REQUESTED METHODS ----------------
} | 39bba8b43210693e551d46cc4cf2d2c6364a5e8b | [
"JavaScript",
"Text",
"PHP"
] | 11 | PHP | gymadarasz/emu | 1fb8939e1bcd468e90f4623e7ac24cd202a4379d | cc092cf12ad38fec3e3417848f8eb3cd24fb9dc3 |
refs/heads/master | <repo_name>meixikaka/test<file_sep>/src/com/aokunsang/web/controller/LoginController.java
/**
*
*/
package com.aokunsang.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.aokunsang.po.User;
import com.aokunsang.service.LoginService;
import com.aokunsang.web.BaseController;
/**
*/
@Controller
public class LoginController extends BaseController {
@Autowired
private LoginService loginService;
@RequestMapping(value = "/user/login", method = RequestMethod.GET)
public String login() {
return "login";
}
@RequestMapping(value = "/user/login", method = RequestMethod.POST)
public String logon(String userName, String passWord) {
User user = null;
try {
user = loginService.getUser(userName, passWord);
} catch (RuntimeException e) {
}
if (user != null) {
return "MyHome";
} else {
return "login";
}
}
@RequestMapping(value = "/user/register", method = RequestMethod.POST)
public String register(User user) {
loginService.addUser(user);
return "login";
}
}
| 221c9bce80a4e33bfc77d8be222f897b767c6fe7 | [
"Java"
] | 1 | Java | meixikaka/test | 59c2691eec517a48e7d81c1fb3ede67c6ae512c1 | 50737a43d899d529444fde0efb9fa7f9eddb3470 |
refs/heads/master | <repo_name>Th4nat0s/Siyl<file_sep>/Siyl.py
#!/usr/bin/python
# SqlI In You Logs
# Basic sqli DeCruncher
import sys,urllib,re,getopt
VER = '0.0c'
# Help
def help():
print 'Siyl - v'+VER+' - Decode Sqli in your logs - (c) Thanat0s 2012'
print ''
print 'Usage :'
print 'Piped : zcat mylogs.gz | Siyl -p'
print 'Direct : Siyl -i [FILE]'
print ''
print 'Switches:'
print ' -h for Help'
print ' -p for PipeMode or -i [FILE] for Filemode'
print ' -j : Disable \'||\' joining'
print ' -c : Disable chr(xx) decoding'
print ' -u : Disable URL decoding'
print ' -n : Disable URL encoding of cr lf'
# Programme initialisation
def init(argv):
global _pipemode
_pipemode = False
global _ojoin
_ojoin = True
global _ochar
_ochar = True
global _ourld
_ourld = True
global _okeepcr
_okeepcr = True
try:
opts, args = getopt.getopt(argv,"hjcunp")
except getopt.GetoptError:
help()
sys.exit(2)
# Parse line option
for opt, arg in opts:
# Help requested
if opt == '-h':
help()
sys.exit()
if opt in '-j':
_ojoin = False
if opt in '-c':
_ochar = False
if opt in '-u':
_ourld = False
if opt in '-n':
_okeepcr = False
# Pipemode requested
if opt in '-p':
_pipemode = True
# return all other parameter (filelist)
return (args)
def clean(line):
# Cleanup end crlf
line = line.rstrip('\n')
line = line.rstrip('\r')
# Url Decode
if _ourld:
line = urllib.unquote(line).decode('utf-8')
# Keep 0A and 0D Encoded
if _okeepcr:
line = line.replace(b"\n", "%0D")
line = line.replace(b"\r", "%0A")
# Convert Charcode to ASCII
if _ochar:
line2 = ""
pattern = re.compile(r"(CHR\([0-9]{1,3}\))")
patterchr = re.compile(r"CHR\(([0-9]{1,3})\)")
for fields in pattern.split(line):
if 'CHR(' in fields: # String a convertir
for fchar in patterchr.split(fields):
if fchar <> '':
line2 = line2+chr(int(fchar))
else:
line2 = line2+fields
line = line2
# Remove Join for lisibility
if _ojoin:
line = line.replace('||','')
return(line)
# Main program loop
def main(argv):
filelist = init(argv)
print _ojoin
print _pipemode
if _pipemode == True:
print 'proute'
while True:
print 'proute'
line = sys.stdin.readline()
if not line:
break
print clean(line)
else:
for file in filelist:
# Default mode is file
# test if file exists
f = open(file, 'r' )
# Main loop
while True:
line = f.readline()
#Si fin d'input arret
if not line:
break
# Sinon....
print clean(line)
if __name__ == "__main__":
main(sys.argv[1:])
<file_sep>/README.md
Siyl
====
Sqli In Your Log. Simple SQLi deobfuscation in your logs
Siyl could, url decode, char decode and pipe clean any log file.
Usage :
Piped : zcat mylogs.gz | Siyl -p
Direct : Siyl -i [FILE]
Switches:
-h for Help
-p for PipeMode or -i [FILE] for Filemode
-j : Disable '||' joining
-c : Disable chr(xx) decoding
-u : Disable URL decoding
-n : Disable URL Encoding of CRLF
History :
0.0b Keep CR and LF encoded
0.0a Initial release
| ea6a1ee1ee5806d8ad8258554c2c5d364b47d4bf | [
"Markdown",
"Python"
] | 2 | Python | Th4nat0s/Siyl | 6d2b95762dad3329eb178c582896f9acd6b572a0 | 30f338ecb1533a8c8bceb1f552591a6ff0d42963 |
refs/heads/master | <repo_name>yassinezer/Cinema<file_sep>/TestN_01/src/main/webapp/resources/timer.js
function timer () {
var d= new Date().getHours();
var dm= new Date().getMinutes();
if(d<22 && d>9) {
if(d==21) {
$("#label1").html('available time for Booking: '+ (60-dm) + ' Minutes <br><br>');
if(dm==30) clearBooking();
}
else {
$("#label1").html('available time for Booking: ' + (21-d) + ' Hours and ' + (60-dm) + ' Minutes <br><br>');
}
}
else {
$("#label1").html('no available booking now, please wait for 10:00');
clear();
}
}<file_sep>/TestN_01/src/main/webapp/resources/clear.js
function clear () {
$("#div1").hide();
var jsonrpcrequest = {
"jsonrpc": "2.0",
"method": "clear",
};
$.ajax({
type:"DELETE",
url: "http://localhost:8080/test/iqbuzz/cinema/clear",
dataType:"json",
data: JSON.stringify(jsonrpcrequest),
contentType: "application/json; charset=utf-8"
});
}
function clearBooking () {
var jsonrpcrequest = {
"jsonrpc": "2.0",
"method": "clearbooking",
};
$.ajax({
type:"DELETE",
url: "http://localhost:8080/test/iqbuzz/cinema/clearbooking",
dataType:"json",
data: JSON.stringify(jsonrpcrequest),
contentType: "application/json; charset=utf-8"
});
}<file_sep>/README.md
###About The Project
download and unzip the project
open command prompt for windows:
1-try cd $Project_Home/Cinema-master/TestN_01
2-try mvn clean package tomcat7:run
###Test The Project
-http://localhost:8080/test/iqbuzz/cinema
<file_sep>/TestN_01/src/main/java/com/iqbuzz/test/Model/Person.java
package com.iqbuzz.test.Model;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
@Entity
public class Person implements Serializable
{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int persID;
@Column(name="name" , length = 50 )
private String name;
@Column(name="familly" , length = 50 )
private String familly;
@Column(name="second_familly" , length = 50 )
private String second_familly;
@OneToOne(cascade=CascadeType.ALL, mappedBy="person", fetch = FetchType.EAGER)
private Info_Buy info_buy;
public Person() {
super();
}
public Person(String name, String familly, String second_familly) {
this.name = name;
this.familly= familly;
this.second_familly= second_familly;
}
public int getPersID() {
return persID;
}
public void setPersID(int persID) {
this.persID = persID;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getFamilly() {
return familly;
}
public void setFamilly(String familly) {
this.familly = familly;
}
public String getSecond_familly() {
return second_familly;
}
public void setSecond_familly(String second_familly) {
this.second_familly = second_familly;
}
public Info_Buy getInfo_buy() {
return info_buy;
}
public void setInfo_buy(Info_Buy info_buy) {
this.info_buy = info_buy;
}
}
| d57e0f0fbe9ff4aab2dd73e0cbd1cda673c4a512 | [
"JavaScript",
"Java",
"Markdown"
] | 4 | JavaScript | yassinezer/Cinema | c2fb33cabb248a1688ebc3f88e976c72ee6d0144 | 8b84998b1480cd43f9ee0df6a67a048f94377d27 |
refs/heads/master | <repo_name>0wlCoder/SizExpress<file_sep>/profiles/utils.py
import uuid
def generate_ref_code():
code = str(uuid.uuid4()).replace("_", "")[:6]
return code | 708ce81259d9c084a52c1586553f308170e0e877 | [
"Python"
] | 1 | Python | 0wlCoder/SizExpress | efc604040972ad060a2a852bfa44636b6e31d5e2 | bf48e83280b89071b7a2478fbed7f9db91c3a4be |
refs/heads/master | <file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function AddToLightboxIcon(props: {
size?: number,
className: string,
id: string
}) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 18 18"
>
<path d="M12 8v2.003c0 .55-.444.997-1 .997-.552 0-1-.453-1-.997V8H7.997C7.447 8 7 7.556 7 7c0-.552.453-1 .997-1H10V3.997c0-.55.444-.997 1-.997.552 0 1 .453 1 .997V6h2.003c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H12zm-5.994 6h9.988c1.11 0 2.006-.898 2.006-2.006V2.006C18 .896 17.102 0 15.994 0H6.006C4.896 0 4 .898 4 2.006v9.988C4 13.104 4.898 14 6.006 14z" />
<path d="M2 5.996C2 5.446 1.556 5 1 5c-.552 0-1 .447-1 1v9.997C0 17.103.894 18 2.003 18H12c.553 0 1-.444 1-1 0-.552-.445-1-.996-1H2.996c-.55 0-.996-.445-.996-.996V5.996z" />
</svg>
);
}
AddToLightboxIcon.defaultProps = {
size: 18
};
export default AddToLightboxIcon;
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function IsInLightboxIcon(props: {
size?: number,
className: string,
id: string
}) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 18 18"
>
<path d="M6.006 14h9.988c1.11 0 2.006-.898 2.006-2.006V2.006C18 .896 17.102 0 15.994 0H6.006C4.896 0 4 .898 4 2.006v9.988C4 13.104 4.898 14 6.006 14zM15 7c0 .552-.453 1-.997 1H7.997C7.447 8 7 7.556 7 7c0-.552.453-1 .997-1h6.006c.55 0 .997.444.997 1z" />
<path d="M2 5.996C2 5.446 1.556 5 1 5c-.552 0-1 .447-1 1v9.997C0 17.103.894 18 2.003 18H12c.553 0 1-.444 1-1 0-.552-.445-1-.996-1H2.996c-.55 0-.996-.445-.996-.996V5.996z" />
</svg>
);
}
IsInLightboxIcon.defaultProps = {
size: 18
};
export default IsInLightboxIcon;
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function EmbedIcon(props: { size?: number, className: string, id: string }) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 16 16"
>
<g stroke="none" strokeWidth="1" fillRule="evenodd">
<g transform="translate(-1453.000000, -369.000000)">
<g transform="translate(733.000000, 369.000000)">
<path d="M721,8.001 L725.438,3.509 L726.95,5.04 L724.025,8 L726.95,10.96 L725.438,12.491 L721,8.001 M729.03,10.961 L731.956,8.001 L729.03,5.041 L730.544,3.509 L734.982,8.001 L730.544,12.491 L729.03,10.961" />
</g>
<g transform="translate(733.000000, 369.000000)" />
</g>
</g>
</svg>
);
}
EmbedIcon.defaultProps = {
size: 16
};
export default EmbedIcon;
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function CheckmarkIcon(props: {
size?: number,
className: string,
id: string
}) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 20 20"
>
<path d="M7.9 13.37l-4.28-4a1 1 0 0 0-1.37 1.46L8 16.2l9.8-10.74a1 1 0 0 0-1.47-1.35z" />
</svg>
);
}
CheckmarkIcon.defaultProps = {
size: 18
};
export default CheckmarkIcon;
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function LeftArrow2Icon(props: {
size?: number,
className: string,
id: string
}) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 19 18"
>
<path d="M3.414 8l5.793-5.793c.39-.39.39-1.024 0-1.414-.39-.39-1.024-.39-1.414 0l-7.4 7.4c-.39.39-.39 1.023 0 1.414l7.4 7.4c.39.39 1.024.39 1.414 0 .39-.39.39-1.025 0-1.415L3.615 10H16c.552 0 1-.448 1-1s-.448-1-1-1H3.414z" />
</svg>
);
}
LeftArrow2Icon.defaultProps = {
size: 18
};
export default LeftArrow2Icon;
<file_sep># frontend-components
Shareable React Components for Frontend projects at EyeEm
- Overview of all elements at https://github.com/eyeem/frontend-styleguide
- this assumes you're using https://necolas.github.io/normalize.css/ or something similar in your projects
## Development
This project itself doesn't feature a showcase app, it should be developed together with `frontend-styleguide`
- in `frontend-components`:
- `$ (sudo) npm link` (creates link to eyeem-components)
- `$ npm run watch`
- in `frontend-styleguide`
- `npm link eyeem-components` (adds eyeem-components as symlink into node_modules folder)
- `npm run start`
## Publish new version
- `$ npm run release`
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function ShareIcon(props: { size: number, className: string, id: string }) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 16 16"
>
<g fillRule="evenodd">
<path d="M9.8.2L9.3 0H9c-.2 0-.4.4-.4.6v2.8C4.2 3.4 0 7 0 12c1.4-1.3 4.3-3.4 8.6-3.4v2.8c0 .2.2.5.4.6h.3c.2 0 .3 0 .5-.2l5.4-5.3c.3-.3.3-.7 0-1L9.8.3z" />
</g>
</svg>
);
}
ShareIcon.defaultProps = {
size: 16
};
export default ShareIcon;
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function CommentIcon(props: { size?: number, className: string }) {
return (
<svg
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 16 16"
>
<path d="M8 0C4.136 0 1 3.136 1 7c0 1.914.773 3.647 2.022 4.914L3 16l3.35-2.217c.53.132
1.08.215 1.65.215 3.864 0 7-3.132 7-7C15 3.137 11.864 0 8 0z" />
</svg>
);
}
CommentIcon.defaultProps = {
size: 16
};
export default CommentIcon;
<file_sep>/* @flow */
/* eslint-disable max-len */
import * as React from 'react';
function DeleteIcon(props: { size?: number, className: string, id: string }) {
return (
<svg
id={props.id}
className={props.className}
height={props.size}
width={props.size}
viewBox="0 0 16 16"
>
<g stroke="none" strokeWidth="1" fillRule="evenodd">
<g transform="translate(-1493.000000, -369.000000)">
<g transform="translate(733.000000, 369.000000)">
<path d="M762.982,5 L762.982,14.0046024 C762.982,14.5543453 763.437664,15 763.977398,15 L771.986602,15 C772.536345,15 772.982,14.5443356 772.982,14.0046024 L772.982,5 L762.982,5 Z M770.969976,2 C770.969976,2 770.969957,1.32958984 770.969976,1.0043335 C770.970009,0.461486816 770.542181,0 770.037603,0 L766.038213,0 C765.473028,0 765.003484,0.435668945 765.003484,1.0043335 L765.003484,2 L762.988111,2 C762.432451,2 761.982,2.44386482 761.982,3 L761.982,4 L773.982,4 L773.982,3 C773.982,2.44771525 773.537565,2 772.97904,2 L770.969976,2 Z" />
</g>
<g transform="translate(733.000000, 369.000000)" />
</g>
</g>
</svg>
);
}
DeleteIcon.defaultProps = {
size: 16
};
export default DeleteIcon;
| 5e14dfb3db311ab0c2025a6815d3891218c1b4a2 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | tobitos/frontend-components | 32871df39f7d92bd5835535a7df47bdac3a7cb8c | 3c87c419558fc3fa384819a082b3fac0501a4f20 |
refs/heads/master | <repo_name>uabhanu/ChimpingGit<file_sep>/Assets/Scripts/Random_Direction_Test.cs
using UnityEngine;
using System.Collections;
//This script was designed to be tested with everything collider object. (not only Rebekka)
//Default: rando ((-4.5f,1f),(-3f,3f)), randomDirection (-30f,30f) and gravity = 1
public class Random_Direction_Test: MonoBehaviour
{
public GameObject objToBeDestroyed; //Usually the player
//private bool go = false;
private Vector3 randomDirection;
private Vector2 rando;
//private bool aux = false;
public void Start()
{
Init();
}
void Init()
{
objToBeDestroyed = this.gameObject.transform.parent.GetComponent<Activator>().objToBeDestroyedBy; //collided object
gameObject.layer = 4;
Physics2D.IgnoreLayerCollision(4, 4);
randomDirection = new Vector3(0, 0, Random.Range(-30f,30f));
if(objToBeDestroyed)
{
if(on_right(objToBeDestroyed)==true)
{
rando = new Vector3(Random.Range(-4.5f,1f), Random.Range(-3f,3f));
}
else
{
rando = new Vector3(Random.Range(4.5f,1f), Random.Range(-3f,3f));
}
}
else
{
rando = new Vector3(Random.Range(-4.5f,1f), Random.Range(-3f,3f));
}
//Invoke ("Mov",0);
//Invoke("OnDestroy" , 3);
Explosion();
}
bool on_right(GameObject go)
{
bool aux=true;
if(this.gameObject.transform.position.x < go.transform.position.x)
{
aux=true;
}
else
{
aux=false;
}
return aux;
}
// void Mov ()
// {
// go=true;
// }
void Explosion()
{
transform.Rotate(randomDirection);
Add_Complement(this.gameObject);
GetComponent<Rigidbody2D>().velocity = rando;
}
// void OnDestroy()
// {
// //Destroy (this.gameObject.transform.parent.transform.parent.gameObject);//Destroy parent/parent
// }
void Add_Complement(GameObject n)
{
Rigidbody2D _rb = (Rigidbody2D)n.AddComponent(typeof(Rigidbody2D));
n.GetComponent<Rigidbody2D>().gravityScale = 1;
BoxCollider2D _bc = (BoxCollider2D)n.AddComponent(typeof(BoxCollider2D));
_bc.offset = Vector3.zero;
_bc.size = new Vector2 (0.05f,0.05f);
}
}
<file_sep>/Assets/Scripts/ChimpController.cs
using SVGImporter;
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class ChimpController : MonoBehaviour
{
//private BoxCollider2D superchimpCollider2D;
//private GameObject superChimp;
[SerializeField] GameObject bananaCountObj , bananaImageObj , dollarButtonObj , pauseButtonObj , selfieButton , superChimpCountObj , superChimpImageObj , trophyCountObj , trophyImageObj;
Rigidbody2D chimpBody2D;
//private SVGRenderer ground01Renderer;
//private SVGRenderer ground02Renderer;
//private SVGRenderer ground03Renderer;
//private SVGRenderer superchimpRenderer;
public Animator chimpAnim;
public AudioSource deathSound;
public AudioSource jumpSound;
public BananaSkin bananaSkinScript;
public bool canJump;
public bool chimpSlip;
public bool grounded;
public bool slide;
public bool superMode;
public float chimpSpeed;
//public float groundCheckRadius;
public float jumpHeight;
public float slideTime;
public float slipTime;
public float superTime;
public GameObject[] chimpBlockers;
public GameManager gameManagementScript;
//public Image bananaImage;
//public Image dollarButtonImage;
//public Image trophyImage;
public Ground groundScript;
public LayerMask whatIsGround;
public ScoreManager scoreManagementScript;
public SpriteRenderer superChimpRenderer;
public Transform groundCheck;
void Start()
{
chimpAnim.SetBool("DefaultSpeed" , true);
chimpAnim.SetBool("MediumSpeed" , false);
//chimpAnim.SetBool("HighSpeed" , false);
chimpBody2D = GetComponent<Rigidbody2D>();
}
void FixedUpdate()
{
if(Time.timeScale == 0f)
{
return;
}
if(!superMode)
{
chimpAnim.SetBool("Super" , false);
//grounded = Physics2D.OverlapCircle(groundCheck.position, groundCheckRadius, whatIsGround);
}
else if(superMode)
{
chimpAnim.SetBool("Super" , true);
}
slide = chimpAnim.GetBool("Slide");
Run();
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
#if UNITY_EDITOR_64
if(Input.GetMouseButton(0))
{
Jump();
}
else if(Input.GetMouseButton(1))
{
Slide();
}
#endif
}
IEnumerator ChimpSlip()
{
yield return new WaitForSeconds(slipTime);
chimpSlip = false;
chimpAnim.SetBool("DefaultSpeed" , true);
chimpAnim.SetBool("MediumSpeed" , false);
groundScript.speed = 4f;
}
IEnumerator SlideTimer()
{
yield return new WaitForSeconds(slideTime);
if(chimpAnim.GetBool("Slide"))
{
//Debug.Log("Slide Time"); Working
chimpAnim.SetBool("Slide" , false);
}
}
IEnumerator SuperChimpTimer()
{
yield return new WaitForSeconds(superTime);
chimpBlockers[0].SetActive(false);
chimpBody2D.gravityScale = 5f;
superMode = false;
}
void Death()
{
//Debug.Log("Player Died"); Working
deathSound.Play();
gameManagementScript.RestartGame();
bananaCountObj.SetActive(false);
bananaImageObj.SetActive(false);
dollarButtonObj.SetActive(false);
superChimpCountObj.SetActive(false);
superChimpImageObj.SetActive(false);
pauseButtonObj.SetActive(false);
trophyCountObj.SetActive(false);
trophyImageObj.SetActive(false);
}
void Dying()
{
}
public void Jump()
{
if(grounded && canJump)
{
jumpSound.Play(); //Turned off for testing purposes but turn back on for final version
chimpBody2D.velocity = new Vector2(chimpBody2D.velocity.x , jumpHeight);
chimpBlockers[1].SetActive(false);
selfieButton.SetActive(true);
}
if(superMode)
{
chimpBody2D.velocity = new Vector2(chimpBody2D.velocity.x , jumpHeight*1.1f);
}
}
void OnCollisionExit2D(Collision2D col2D)
{
if(col2D.gameObject.tag.Equals("Ground"))
{
grounded = false;
}
}
void OnCollisionStay2D(Collision2D col2D)
{
if(col2D.gameObject.tag.Equals("Ground"))
{
grounded = true;
}
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Death"))
{
if(!superMode)
{
Debug.Log("Chimp Died");
Death();
}
}
if(col2D.gameObject.tag.Equals("Enemy") && !superMode)
{
Debug.Log("Chimp Died");
Death();
}
if(col2D.gameObject.tag.Equals("SC"))
{
SuperChimp();
}
if(col2D.gameObject.tag.Equals("Slip"))
{
//Debug.Log("Chimp Slip"); //Working
chimpAnim.SetBool("DefaultSpeed" , false);
chimpAnim.SetBool("MediumSpeed" , true);
chimpSlip = true;
groundScript.speed += 4f;
StartCoroutine("ChimpSlip");
}
}
void Run()
{
chimpAnim.SetBool("Grounded" , grounded);
//chimpBody2D.velocity = new Vector2(chimpSpeed , chimpBody2D.velocity.y);
}
public void Slide()
{
if(!superMode && grounded)
{
//Debug.Log("Slide"); //Working
chimpAnim.SetBool("Slide" , true);
StartCoroutine("SlideTimer");
}
}
void SuperChimp()
{
chimpBlockers[0].SetActive(true);
chimpBlockers[1].SetActive(true);
chimpBody2D.gravityScale = 2.5f;
if(groundScript.speed == 8f)
{
groundScript.speed = 4f;
}
superMode = true;
StartCoroutine("SuperChimpTimer");
}
}
<file_sep>/Assets/Scripts/GameManager.cs
using CompleteProject;
using GooglePlayGames;
using System.Collections;
using System.IO;
using UnityEngine;
using UnityEngine.Advertisements;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class GameManager : MonoBehaviour
{
BhanusPurchaser bhanusPurchaseScript;
bool chimpGrounded;
bool chimpSuperMode;
[SerializeField] GameObject selfieButton;
public bool adWatched;
public ChimpController chimpControlScript;
public GameObject chimpCam;
public GameObject adsMenu;
public GameObject dollarButton;
public GameObject iapMenu;
public GameObject pauseButton;
public GameObject pauseImage;
public GameObject pauseMenu;
public GameObject quitButton;
public GameObject quitMenu;
public GameObject restartButton;
public ScoreManager scoreManagementScript;
public string mainMenuLevel;
void Start()
{
bhanusPurchaseScript = GetComponent<BhanusPurchaser>();
if(Advertisement.isSupported)
{
Advertisement.Initialize("rewardedVideo");
}
Time.timeScale = 1f;
}
public void AchievementsUI()
{
Social.ShowAchievementsUI();
}
public void AdsNo()
{
adsMenu.SetActive(false);
adWatched = false;
PlayerPrefs.DeleteKey("BananaScore");
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
public void AdsYes()
{
Debug.Log("Ads Yes Button"); //Working
adWatched = true;
ShowRewardedAd();
}
public void Back()
{
dollarButton.SetActive(true);
iapMenu.SetActive(false);
pauseButton.SetActive(true);
Time.timeScale = 1f;
}
void HandleShowResult(ShowResult result)
{
switch(result)
{
case ShowResult.Finished:
Debug.Log ("The ad was successfully shown.");
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
break;
case ShowResult.Skipped:
Debug.Log("The ad was skipped before reaching the end.");
break;
case ShowResult.Failed:
Debug.LogError("The ad failed to be shown.");
break;
}
}
public void IAP()
{
dollarButton.SetActive(false);
iapMenu.SetActive(true);
pauseButton.SetActive(false);
Time.timeScale = 0f;
//This method should launch IAP Panel you design later which will have a buyable item based on which BuyConsumable should be called
}
// public void LoadGame()
// {
// int slot = 0;
// ((PlayGamesPlatform)Social.Active).LoadState(slot , this);
// }
public void MonkeynutNo()
{
//This deactivates confirm panel and activates iapMenu
}
public void MonkeynutYes()
{
bhanusPurchaseScript.BuyOneMonkeynut();
dollarButton.SetActive(true);
iapMenu.SetActive(false);
Time.timeScale = 1f;
}
public void OneMonkeynut()
{
//This activates confirm panel once that's ready & deactivates iapMenu
bhanusPurchaseScript.BuyOneMonkeynut();
dollarButton.SetActive(true);
iapMenu.SetActive(false);
pauseButton.SetActive(true);
Time.timeScale = 1f;
}
public void OnGameLoaded(bool success , int slot , byte[] data)
{
if(success)
{
}
else
{
}
}
public void OnGameSaved(bool success , int slot)
{
if(success)
{
}
else
{
}
}
public void Pause()
{
Time.timeScale = 0f;
dollarButton.SetActive(false);
pauseButton.SetActive(false);
pauseMenu.SetActive(true);
}
public void PlayVideo()
{
Debug.Log("Play Video");
//Handheld.PlayFullScreenMovie(videoFile.ToString() , Color.black , FullScreenMovieControlMode.Full , FullScreenMovieScalingMode.AspectFill);
}
public void Quit()
{
pauseMenu.SetActive(false);
quitMenu.SetActive(true);
}
public void QuitNo()
{
quitMenu.SetActive(false);
pauseMenu.SetActive(true);
}
public void QuitYes()
{
PlayerPrefs.DeleteKey("BananaScore");
SceneManager.LoadScene(mainMenuLevel);
}
public void Restart()
{
PlayerPrefs.DeleteKey("BananaScore");
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}
public void RestartGame()
{
//Debug.Log("Restart Game"); Working
adsMenu.SetActive(true);
Time.timeScale = 0;
}
public void Resume()
{
Time.timeScale = 1f;
dollarButton.SetActive(true);
pauseButton.SetActive(true);
pauseMenu.SetActive(false);
}
public void Selfie()
{
Debug.Log("Selfie");
selfieButton.SetActive(false);
}
// public void SaveGame()
// {
// byte[] gamedata;
// int slot = 0;
//
// ((PlayGamesPlatform) Social.Active).UpdateState(slot , gamedata , this);
// }
public void ShowRewardedAd()
{
if(Advertisement.IsReady("rewardedVideo"))
{
Debug.Log("Ads Yes Button showing Rewarded Ad");
var options = new ShowOptions { resultCallback = HandleShowResult };
Advertisement.Show("rewardedVideo" , options);
}
}
public void TwoMonkeynuts()
{
//This activates confirm panel once that's ready & deactivates iapMenu
bhanusPurchaseScript.BuyTwoMonkeynuts();
dollarButton.SetActive(true);
iapMenu.SetActive(false);
pauseButton.SetActive(true);
Time.timeScale = 1f;
}
public void LeaderboardUI()
{
Social.ShowLeaderboardUI();
}
}
<file_sep>/Assets/Scripts/BananaSkin.cs
using System.Collections;
using UnityEngine;
public class BananaSkin : MonoBehaviour
{
private BoxCollider2D skinCollider2D;
private ChimpController chimpControlScript;
private Ground groundScript;
private SpriteRenderer skinRenderer;
void Start()
{
chimpControlScript = FindObjectOfType<ChimpController>();
groundScript = FindObjectOfType<Ground>();
skinCollider2D = GetComponent<BoxCollider2D>();
skinRenderer = GetComponent<SpriteRenderer>();
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
if(chimpControlScript.chimpSlip)
{
skinCollider2D.enabled = false;
skinRenderer.enabled = false;
}
if(!chimpControlScript.chimpSlip)
{
skinCollider2D.enabled = true;
skinRenderer.enabled = true;
}
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Player"))
{
skinCollider2D.enabled = false;
skinRenderer.enabled = false;
}
}
}
<file_sep>/Assets/Scripts/Pillar.cs
//using GooglePlayGames;
using System.Collections;
using UnityEngine;
public class Pillar : MonoBehaviour
{
private Ground groundScript;
public Rigidbody2D enemyBody2D;
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
groundScript = FindObjectOfType<Ground>();
enemyBody2D.velocity = new Vector2(-groundScript.speed , enemyBody2D.velocity.y);
if(transform.position.x < -17f)
{
Destroy(gameObject);
}
}
}
<file_sep>/Assets/Scripts/Activator.cs
using System.Collections;
using UnityEngine;
//This script is used to activate 'Disintegration_Test_Algorithm' and identify the collided object.
public class Activator : MonoBehaviour
{
private ChimpController chimpControlScript;
private ParticleSystem enemyParticleSystem;
private ScoreManager scoreManagementScript;
private Vector2 rando;
private Vector3 randomDirection;
public GameObject objToBeDestroyedBy;
void Start()
{
chimpControlScript = GameObject.FindGameObjectWithTag("Player").GetComponent<ChimpController>();
enemyParticleSystem = GetComponent<ParticleSystem>();
scoreManagementScript = FindObjectOfType<ScoreManager>();
}
void AddComplement(GameObject n)
{
//Rigidbody2D _rb = (Rigidbody2D)n.AddComponent(typeof(Rigidbody2D));
n.GetComponent<Rigidbody2D>().gravityScale = 1;
BoxCollider2D _bc = (BoxCollider2D)n.AddComponent(typeof(BoxCollider2D));
_bc.offset = Vector3.zero;
_bc.size = new Vector2 (0.05f,0.05f);
}
void DestroyDelay()
{
Destroy (this.gameObject.transform.gameObject);
//gameObject.transform.gameObject.SetActive(false);
}
void Explosion()
{
transform.Rotate(randomDirection);
AddComplement(this.gameObject);
GetComponent<Rigidbody2D>().velocity = rando;
}
void Init()
{
objToBeDestroyedBy = this.gameObject.transform.parent.GetComponent<Activator>().objToBeDestroyedBy; //collided object
gameObject.layer = 4;
Physics2D.IgnoreLayerCollision(4 , 4);
randomDirection = new Vector3(0 , 0 , Random.Range(-30f , 30f));
if (objToBeDestroyedBy)
{
if(OnRight(objToBeDestroyedBy)==true)
{
rando = new Vector3(Random.Range(-4.5f,1f), Random.Range(-3f,3f));
}else
{
rando = new Vector3(Random.Range(4.5f,1f), Random.Range(-3f,3f));
}
}
else
{
rando = new Vector3(Random.Range(-4.5f,1f), Random.Range(-3f,3f));
}
//Invoke("Mov" , 0);
Invoke("OnDestroy" , 3f);
Explosion();
}
void OnDestroy()
{
GetComponent<Rigidbody2D>().isKinematic=true;
GetComponent<SpriteRenderer>().enabled=false;//Disable actual spriterenderer
GetComponent<Collider2D>().enabled=false;
GetComponent<Disintegration_Test_Algorithm>().enabled = true;
Invoke("DestroyDelay" , 1f);
//DestroyDelay();
}
bool OnRight(GameObject go)
{
bool aux=true;
if(this.gameObject.transform.position.x < go.transform.position.x)
{
aux = true;
}
else
{
aux = false;
}
return aux;
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.name=="Bhanu")
{
}
else if(chimpControlScript.superMode)
{
enemyParticleSystem.Play();
objToBeDestroyedBy = col2D.gameObject;
Invoke("TrophyScore" , 0.5f);
OnDestroy();
}
}
void TrophyScore()
{
scoreManagementScript.trophiesScoreValue++;
if(Social.localUser.authenticated)
{
Social.ReportScore(scoreManagementScript.trophiesScoreValue , scoreManagementScript.trophiesLeaderboard , (bool success) =>
{
Debug.Log("Send Score to Leaderboard");
});
}
}
}
<file_sep>/Assets/Scripts/BananaSpawner.cs
using System.Collections;
using UnityEngine;
public class BananaSpawner : MonoBehaviour
{
private int i;
private GameSpawner gameSpawnScript;
public ChimpController chimpControlScript;
public float spawnTime;
public GameObject bananaObj;
public GameObject[] PF_BananaAndOthers;
public GameObject[] PF_BananaCombos;
void Start()
{
gameSpawnScript = GameObject.Find("GameSpawner").GetComponent<GameSpawner>();
if(gameSpawnScript.level == 1)
{
StartCoroutine("Level1Spawner");
}
if(gameSpawnScript.level == 2)
{
StartCoroutine("Level2Spawner");
}
}
IEnumerator Level1Spawner()
{
yield return new WaitForSeconds(1.5f);
if(!chimpControlScript.superMode)
{
i = Random.Range(0 , PF_BananaCombos.Length);
bananaObj = GameObject.FindGameObjectWithTag("BananaCombo");
if(bananaObj == null && i != 0)
{
bananaObj = Instantiate(PF_BananaCombos[i] , new Vector3(15f , 0f , 0f) , transform.rotation) as GameObject;
}
}
if(chimpControlScript.superMode)
{
bananaObj = GameObject.FindGameObjectWithTag("SMBs");
if(bananaObj == null)
{
bananaObj = Instantiate(PF_BananaCombos[0] , new Vector3(5f , 0f , 0f) , transform.rotation) as GameObject;
}
}
StartCoroutine("Level1Spawner");
}
IEnumerator Level2Spawner()
{
yield return new WaitForSeconds(spawnTime);
i = Random.Range(0 , PF_BananaAndOthers.Length);
bananaObj = Instantiate(PF_BananaAndOthers[i] , new Vector3(Random.Range(-4f , 2f) , 3f , 0f) , transform.rotation) as GameObject;
StartCoroutine("Level2Spawner");
}
}
<file_sep>/Assets/Scripts/GameSpawner.cs
using System.Collections;
using UnityEngine;
public class GameSpawner : MonoBehaviour
{
//private int playerLevel = 1;
public int level; //Only for testing
public GameObject gameObj;
public GameObject[] PF_GameAreas;
void Start()
{
gameObj = GameObject.FindGameObjectWithTag("GameArea");
if(gameObj == null)
{
gameObj = Instantiate(PF_GameAreas[level - 1] , transform.position , transform.rotation) as GameObject;
}
}
}
<file_sep>/Assets/Scripts/Swipe.cs
using System.Collections;
using UnityEngine;
public class Swipe : MonoBehaviour
{
//private bool hasSwiped = false;
private float distance = 0f;
private Touch initialTouch = new Touch();
public ChimpController chimpControlScript;
public Rigidbody2D chimpBody2D;
public float swipeValue;
void Update()
{
if(Time.deltaTime == 0f)
{
return;
}
foreach(Touch t in Input.touches)
{
if(t.phase == TouchPhase.Began)
{
initialTouch = t;
}
else if(t.phase == TouchPhase.Moved/* && !hasSwiped*/)
{
float deltaX = initialTouch.position.x - t.position.x;
float deltaY = initialTouch.position.y - t.position.y;
distance = Mathf.Sqrt((deltaX * deltaX) + (deltaY * deltaY));
bool swipeHorizontal = Mathf.Abs(deltaX) > Mathf.Abs(deltaY);
if(distance > swipeValue)
{
if(swipeHorizontal && deltaX > 0) //Swiped Left
{
}
else if(swipeHorizontal && deltaX <= 0) //Swiped Right
{
}
else if(!swipeHorizontal && deltaY > 0) //Swiped Down
{
Debug.Log("Swipe Down");
chimpControlScript.Slide();
}
else if(!swipeHorizontal && deltaY <= 0) //Swiped Up
{
Debug.Log("Swipe Up");
chimpControlScript.Jump();
}
//hasSwiped = true;
}
}
else if(t.phase == TouchPhase.Ended)
{
initialTouch = new Touch();
}
}
}
}
<file_sep>/Assets/Scripts/Rocks.cs
using System.Collections;
using UnityEngine;
public class Rocks : MonoBehaviour
{
private Ground groundScript;
private Rigidbody2D rocksBody2D;
void Start()
{
groundScript = FindObjectOfType<Ground>();
rocksBody2D = GetComponent<Rigidbody2D>();
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
rocksBody2D.velocity = new Vector2(-groundScript.speed , rocksBody2D.velocity.y);
if(transform.position.x <= -28.8f)
{
transform.position = new Vector3(0f , transform.position.y , transform.position.z);
}
}
}
<file_sep>/Assets/Scripts/BananaMover.cs
using System.Collections;
using UnityEngine;
public class BananaMover : MonoBehaviour
{
private float startPos;
private int defaultChildCount;
private GameSpawner gameSpawnScript;
private Ground groundScript;
private Rigidbody2D bananaBody2D;
void Start()
{
bananaBody2D = GetComponent<Rigidbody2D>();
defaultChildCount = transform.childCount;
gameSpawnScript = GameObject.Find("GameSpawner").GetComponent<GameSpawner>();
groundScript = FindObjectOfType<Ground>();
startPos = transform.position.x;
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
if(gameSpawnScript.level == 1)
{
bananaBody2D.velocity = new Vector2(-groundScript.speed , bananaBody2D.velocity.y);
}
if(gameSpawnScript.level == 2)
{
bananaBody2D.velocity = new Vector2(bananaBody2D.velocity.x , -1f);
}
if(transform.position.x < -24.5f)
{
if(transform.childCount < defaultChildCount)
{
Destroy(gameObject);
}
else
{
transform.position = new Vector3(startPos , 0f , 0f);
}
}
}
}
<file_sep>/Assets/Scripts/Hole.cs
using GooglePlayGames;
using System.Collections;
using UnityEngine;
public class Hole : MonoBehaviour
{
private BoxCollider2D ground01Collider2D;
private BoxCollider2D ground02Collider2D;
private BoxCollider2D ground03Collider2D;
private ChimpController chimpControlScript;
//private int holeAchievementScore;
//public string achievementID;
void Start()
{
chimpControlScript = GameObject.Find("Chimp").GetComponent<ChimpController>();
ground01Collider2D = GameObject.Find("Ground01").GetComponent<BoxCollider2D>();
ground02Collider2D = GameObject.Find("Ground02").GetComponent<BoxCollider2D>();
ground03Collider2D = GameObject.Find("Ground03").GetComponent<BoxCollider2D>();
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Player"))
{
Debug.Log("Player in the Hole"); //Working
// holeAchievementScore++; //All working fit and fine and beware that the achievement progress won't be updated now as the code is commented
// if(Social.localUser.authenticated)
// {
// PlayGamesPlatform.Instance.IncrementAchievement(achievementID , 1 , (bool success) => //Working and enable this code for final version
// {
// Debug.Log("Incremental Achievement");
// });
//
// if(holeAchievementScore == 50)
// {
// PlayGamesPlatform.Instance.IncrementAchievement(achievementID , holeAchievementScore , (bool success) => //Working and enable this code for final version
// {
// Debug.Log("Incremental Achievement");
// holeAchievementScore = 0;
// });
// }
// }
chimpControlScript.canJump = false;
ground01Collider2D.isTrigger = true;
ground02Collider2D.isTrigger = true;
ground03Collider2D.isTrigger = true;
}
}
}
<file_sep>/Assets/Scripts/Block.cs
using System.Collections;
using UnityEngine;
public class Block : MonoBehaviour
{
private bool clickSafeZone;
private Rigidbody2D blockBody2D;
private ScoreManager scoreManagementScript;
void Start()
{
blockBody2D = GetComponent<Rigidbody2D>();
scoreManagementScript = GameObject.Find("ScoreManager").GetComponent<ScoreManager>();
}
void Update()
{
blockBody2D.velocity = new Vector2(blockBody2D.velocity.x , -1f);
}
void OnMouseDown()
{
if(clickSafeZone)
{
if(scoreManagementScript.bananaScoreValue > 0)
{
scoreManagementScript.bananaScoreValue--;
}
Destroy(gameObject);
}
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Cleaner"))
{
Destroy(gameObject);
}
if(col2D.gameObject.tag.Equals("CSZ"))
{
clickSafeZone = true;
}
}
void OnTriggerExit2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("CSZ"))
{
clickSafeZone = false;
}
}
}
<file_sep>/Assets/Scripts/MainMenu.cs
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MainMenu : MonoBehaviour
{
public GameObject exit;
public GameObject loginButtonsObj;
public GameObject playButton;
public GameObject quitButton;
public GameObject quitImage;
public string gameLevel;
public void No()
{
exit.SetActive(false);
quitImage.SetActive(false);
loginButtonsObj.SetActive(true);
playButton.SetActive(true);
quitButton.SetActive(true);
}
public void Play()
{
SceneManager.LoadScene(gameLevel);
}
public void Quit()
{
exit.SetActive(true);
quitImage.SetActive(true);
loginButtonsObj.SetActive(false);
playButton.SetActive(false);
quitButton.SetActive(false);
}
public void Yes()
{
Application.Quit();
}
}
<file_sep>/Assets/Scripts/SuperChimp.cs
using System.Collections;
//using SVGImporter;
using UnityEngine;
public class SuperChimp : MonoBehaviour
{
BoxCollider2D superchimpCollider2D;
ChimpController chimpControlScript;
float maxY;
float minY;
float startPos;
int direction = 1;
Rigidbody2D nutBody2D;
ScoreManager scoreManagementScript;
SpriteRenderer superchimpRenderer;
public Ground groundScript;
void Start()
{
nutBody2D = GetComponent<Rigidbody2D>();
chimpControlScript = GameObject.Find("Chimp").GetComponent<ChimpController>();
maxY = this.transform.position.y + 0.5f;
minY = maxY - 1.0f;
scoreManagementScript = FindObjectOfType<ScoreManager>();
StartCoroutine("SoundObjectTimer");
startPos = transform.position.x;
superchimpCollider2D = GetComponent<BoxCollider2D>();
superchimpRenderer = GetComponent<SpriteRenderer>();
}
void FixedUpdate()
{
if(Time.timeScale == 0f)
{
return;
}
nutBody2D.velocity = new Vector2(-groundScript.speed , nutBody2D.velocity.y);
if(transform.position.x < -8.5f)
{
transform.position = new Vector3(startPos , 2f , 0f);
}
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
this.transform.position = new Vector2(this.transform.position.x , this.transform.position.y + (direction * 0.05f));
if(this.transform.position.y > maxY)
{
direction = -1;
}
if(this.transform.position.y < minY)
{
direction = 1;
}
if(chimpControlScript.superMode)
{
superchimpCollider2D.enabled = false;
superchimpRenderer.enabled = false;
}
if(!chimpControlScript.superMode)
{
superchimpCollider2D.enabled = true; //IAP will make monkeynutTaken false again
superchimpRenderer.enabled = true;
}
}
IEnumerator SoundObjectTimer()
{
yield return new WaitForSeconds(0.4f);
StartCoroutine("SoundObjectTimer");
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Player"))
{
superchimpCollider2D.enabled = false;
superchimpRenderer.enabled = false;
scoreManagementScript.superChimpScoreValue++;
}
}
}
<file_sep>/Assets/Scripts/Destroyer.cs
using System.Collections;
using UnityEngine;
public class Destroyer : MonoBehaviour
{
public Transform destructionPoint;
void Start()
{
destructionPoint = GameObject.Find("DestructionPoint").transform;
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
if(transform.position.x < destructionPoint.position.x)
{
gameObject.SetActive(false);
}
}
}
<file_sep>/Assets/Scripts/EnemySpawner.cs
using System.Collections;
using UnityEngine;
public class EnemySpawner : MonoBehaviour
{
private int i;
public GameObject enemyObj;
public GameObject[] PF_EnemyCombos;
void Start()
{
StartCoroutine("SpawnTimer");
}
IEnumerator SpawnTimer()
{
yield return new WaitForSeconds(2.5f);
i = Random.Range(0 , PF_EnemyCombos.Length);
enemyObj = GameObject.FindGameObjectWithTag("EnemyCombo");
if(enemyObj == null)
{
enemyObj = Instantiate(PF_EnemyCombos[i], transform.position, transform.rotation) as GameObject;
}
StartCoroutine("SpawnTimer");
}
}
<file_sep>/Assets/Scripts/Clouds.cs
using System.Collections;
using UnityEngine;
public class Clouds : MonoBehaviour
{
private Ground groundScript;
private Rigidbody2D cloudsBody2D;
void Start()
{
cloudsBody2D = GetComponent<Rigidbody2D>();
groundScript = FindObjectOfType<Ground>();
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
cloudsBody2D.velocity = new Vector2(-groundScript.speed/8f , cloudsBody2D.velocity.y);
if(transform.position.x <= -28.8f)
{
transform.position = new Vector3(0f , transform.position.y , transform.position.z);
}
}
}
<file_sep>/Assets/Scripts/BhanusGP.cs
using GooglePlayGames;
using SVGImporter;
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class BhanusGP : MonoBehaviour
{
public SVGImage signInButtonImage , signOutButtonImage , signOutImage;
void Awake()
{
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
}
void Start()
{
Social.localUser.Authenticate((bool success) =>
{
if(success)
{
Debug.Log ("Login Success");
signInButtonImage.enabled = false;
signOutButtonImage.enabled = true;
signOutImage.enabled = true;
}
if(!success)
{
Debug.Log ("Login Failed");
signInButtonImage.enabled = true;
signOutButtonImage.enabled = false;
signOutImage.enabled = false;
}
});
}
public void SignIn()
{
Social.localUser.Authenticate((bool success) =>
{
if(success)
{
Debug.Log ("Login Success");
signInButtonImage.enabled = false;
signOutButtonImage.enabled = true;
signOutImage.enabled = true;
}
if(!success)
{
Debug.Log ("Login Failed");
signInButtonImage.enabled = true;
signOutButtonImage.enabled = false;
signOutImage.enabled = false;
}
});
}
public void SignOut()
{
PlayGamesPlatform.Instance.SignOut(); //Or ((PlayGamesPlatform) Social.Active).SignOut();
if(!Social.localUser.authenticated)
{
signInButtonImage.enabled = true;
signOutButtonImage.enabled = false;
signOutImage.enabled = false;
}
}
}
<file_sep>/Assets/Scripts/Disintegration_Test_Algorithm.cs
using UnityEngine;
//using UnityEditor;
using System.Collections;
using System.Collections.Generic;
//Only tested with sprites with size 100 x 100 and 200 x 200.
public class Disintegration_Test_Algorithm : MonoBehaviour {
//--Public
public int pic_width = 100; //Picture width, this example 100x100 or 200 x 200.
public int subdivisions = 20; //Better between (5 <-> 20), by default 20x20, Different values can cause errors.(For android I recommend (5<->10)).
//--Private
private Texture2D source; //Sprite source used for subidivision process.
private int aux = 0;
private float unit_size = 0; //Aux var
private int pixel_size; //Relative pixel size
private float auto_place = 0;
private float aux_euler = 0;
// Use this for initialization
void Start()
{
source = GetComponent<SpriteRenderer>().sprite.texture;
Init();
}
void Init()
{
aux_euler = this.gameObject.transform.eulerAngles.z;
this.gameObject.transform.rotation = Quaternion.Euler(0, 0, 0);//Reset rotation before subdivision
pixel_size = pic_width / subdivisions;
unit_size = GetComponent<Renderer>().bounds.size.x/subdivisions;
auto_place = (GetComponent<Renderer>().bounds.size.x/2) - unit_size/2;
Sub_Division();
GetComponent<Renderer>().enabled=false;
this.gameObject.transform.rotation = Quaternion.Euler(0, 0, aux_euler);
}
void Sub_Division()
{
for(int i = 0; i < pic_width; i++)
{
for(int j = 0; j < pic_width ; j++)
{
if((i%pixel_size == 0)&&(j%pixel_size==0))
{
Create_Sprite(i,j);
aux++;
}
}
}
}
void Create_Sprite(int i, int j)
{
Sprite newSprite = Sprite.Create(source, new Rect(i, j, pic_width/subdivisions, (pic_width/pic_width)*pixel_size), new Vector2(0.5f, 0.5f));
GameObject n = new GameObject();//Subdivision gameobject
n.transform.localScale*=this.gameObject.transform.localScale.x;
SpriteRenderer sr = n.AddComponent<SpriteRenderer>();
sr.sortingLayerName = "Enemy";
/*if(use_diffuse == true){
sr.material = diffuse_;
}*/
Random_Direction_Test rd = n.AddComponent<Random_Direction_Test>();
n.name = ""+aux;
sr.sprite = newSprite;
if(n.name=="0")
{
n.transform.position = new Vector3(0 + this.gameObject.transform.position.x - auto_place, (j*unit_size/pixel_size) + this.gameObject.transform.position.y - auto_place, 0);
}
else
{
n.transform.position = new Vector3((unit_size*i/pixel_size) + this.gameObject.transform.position.x - auto_place, (j*unit_size/pixel_size) + this.gameObject.transform.position.y - auto_place , 0);
}
n.transform.parent = this.gameObject.transform;
}
}
<file_sep>/Assets/Scripts/Mountains.cs
using System.Collections;
using UnityEngine;
public class Mountains : MonoBehaviour
{
private Ground groundScript;
private Rigidbody2D mountainsBody2D;
void Start()
{
groundScript = FindObjectOfType<Ground>();
mountainsBody2D = GetComponent<Rigidbody2D>();
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
mountainsBody2D.velocity = new Vector2(-groundScript.speed/4f , mountainsBody2D.velocity.y);
if(transform.position.x <= -28.8f)
{
transform.position = new Vector3(0f , transform.position.y , transform.position.z);
}
}
}
<file_sep>/Assets/Scripts/SoundManager.cs
using System.Collections;
using UnityEngine;
public class SoundManager : MonoBehaviour
{
public GameObject backgroundSound;
public GameObject bananaSound;
public GameObject deathSound;
public GameObject jumpSound;
public GameObject muteButton;
public GameObject unmuteButton;
public void Mute()
{
backgroundSound.SetActive(false);
bananaSound.SetActive(false);
deathSound.SetActive(false);
jumpSound.SetActive(false);
muteButton.SetActive(false);
unmuteButton.SetActive(true);
}
public void Unmute()
{
backgroundSound.SetActive(true);
bananaSound.SetActive(true);
deathSound.SetActive(true);
jumpSound.SetActive(true);
muteButton.SetActive(true);
unmuteButton.SetActive(false);
}
}
<file_sep>/Assets/Scripts/Banana.cs
using GooglePlayGames;
using System.Collections;
using UnityEngine;
using UnityEngine.SocialPlatforms;
public class Banana : MonoBehaviour
{
private AudioSource bananaSound;
private bool clickSafeZone;
private BoxCollider2D bananaCollider2D;
private ChimpController chimpControlScript;
private GameObject bananaSoundObj;
private ScoreManager scoreManagementScript;
private SpriteRenderer bananaRenderer;
//public int bananaAchievementScore;
public string bananaType;
//public string achievementID;
void Start()
{
bananaCollider2D = GetComponent<BoxCollider2D>();
bananaRenderer = GetComponent<SpriteRenderer>();
chimpControlScript = FindObjectOfType<ChimpController>();
scoreManagementScript = GameObject.Find("ScoreManager").GetComponent<ScoreManager>();
StartCoroutine("SoundObjectTimer");
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
//bananaAchievementScore = scoreManagementScript.bananaScoreValue;
if(chimpControlScript != null)
{
if(chimpControlScript.superMode && bananaType == "normal")
{
bananaCollider2D.enabled = false;
bananaRenderer.enabled = false;
}
if(chimpControlScript.superMode && bananaType == "super")
{
bananaCollider2D.enabled = true;
bananaRenderer.enabled = true;
}
if(!chimpControlScript.superMode && bananaType == "normal")
{
bananaCollider2D.enabled = true;
bananaRenderer.enabled = true;
}
if(!chimpControlScript.superMode && bananaType == "super")
{
bananaCollider2D.enabled = false;
bananaRenderer.enabled = false;
}
}
}
IEnumerator SoundObjectTimer()
{
yield return new WaitForSeconds(0.4f);
bananaSoundObj = GameObject.Find("BananaSound");
if(bananaSoundObj != null)
{
bananaSound = bananaSoundObj.GetComponent<AudioSource>();
}
StartCoroutine("SoundObjectTimer");
}
void OnMouseDown()
{
if(clickSafeZone)
{
if(bananaSound != null)
{
if(!bananaSound.isPlaying)
{
bananaSound.Stop ();
bananaSound.Play ();
}
else
{
bananaSound.Play();
}
}
scoreManagementScript.bananaScoreValue++;
Destroy(gameObject);
}
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Player"))
{
//Debug.Log("Banana & Player Collision");// Working
if(bananaType == "normal")
{
//bananaAchievementScore++;
scoreManagementScript.bananaScoreValue++;
// if(Social.localUser.authenticated)
// {
// PlayGamesPlatform.Instance.IncrementAchievement(achievementID , 1 , (bool success) => //Working and enable this code for final version
// {
// Debug.Log("Incremental Achievement");
// });
// }
}
if(bananaType == "super")
{
//bananaAchievementScore += 5;
scoreManagementScript.bananaScoreValue += 5;
// if(Social.localUser.authenticated)
// {
// PlayGamesPlatform.Instance.IncrementAchievement(achievementID , 5 , (bool success) => //Working and enable this code for final version
// {
// Debug.Log("Incremental Achievement");
// });
// }
}
// if(Social.localUser.authenticated)
// {
// if(bananaAchievementScore == 100)
// {
// PlayGamesPlatform.Instance.IncrementAchievement(achievementID , bananaAchievementScore , (bool success) => //Working and enable this code for final version
// {
// Debug.Log("Incremental Achievement");
// bananaAchievementScore = 0;
// });
// }
// }
if(bananaSound != null)
{
if(!bananaSound.isPlaying)
{
bananaSound.Stop ();
bananaSound.Play ();
}
else
{
bananaSound.Play();
}
}
Destroy(gameObject);
}
if(col2D.gameObject.tag.Equals("Cleaner"))
{
if(scoreManagementScript.bananaScoreValue > 0)
{
scoreManagementScript.bananaScoreValue--;
}
Destroy(gameObject);
}
if(col2D.gameObject.tag.Equals("CSZ"))
{
clickSafeZone = true;
}
}
void OnTriggerExit2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("CSZ"))
{
clickSafeZone = false;
}
}
}
<file_sep>/Assets/Scripts/Ground.cs
using System.Collections;
using UnityEngine;
public class Ground : MonoBehaviour
{
private Rigidbody2D groundBody2D;
public float speed;
void Start()
{
groundBody2D = GetComponent<Rigidbody2D>();
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
groundBody2D.velocity = new Vector2(-speed , groundBody2D.velocity.y);
if(transform.position.x <= -28.8f)
{
transform.position = new Vector3(0f , transform.position.y , transform.position.z);
}
}
}
<file_sep>/Assets/Scripts/CameraController.cs
using System.Collections;
using UnityEngine;
public class CameraController : MonoBehaviour
{
private Rigidbody2D cameraBody2D;
public ChimpController chimpControlScript;
public float acceptableError;
public float moveOffset;
void Start()
{
cameraBody2D = GetComponent<Rigidbody2D>();
}
void FixedUpdate()
{
if(Time.timeScale == 0f)
{
return;
}
cameraBody2D.velocity = new Vector2(chimpControlScript.chimpSpeed , cameraBody2D.velocity.y);
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
if((transform.position.x - chimpControlScript.transform.position.x) > (moveOffset + acceptableError) || (transform.position.x - chimpControlScript.transform.position.x) < (moveOffset - acceptableError))
{
//Debug.Log("If Correction");
transform.position = new Vector3(transform.position.x + acceptableError , transform.position.y , transform.position.z);
}
else if((transform.position.x - chimpControlScript.transform.position.x) < (moveOffset - acceptableError) || (transform.position.x - chimpControlScript.transform.position.x) > (moveOffset + acceptableError))
{
//Debug.Log("Else If Correction");
transform.position = new Vector3(transform.position.x - acceptableError , transform.position.y , transform.position.z);
}
}
}
<file_sep>/Assets/Scripts/SuperModeBanana.cs
using System.Collections;
using UnityEngine;
public class SuperModeBanana : MonoBehaviour
{
private AudioSource superModeBananaSound;
private BoxCollider2D bananaCollider2D;
private ChimpController chimpControlScript;
private GameObject superModeBananaSoundObj;
private ScoreManager scoreManagementScript;
private SpriteRenderer bananaRenderer;
void Start()
{
bananaCollider2D = GetComponent<BoxCollider2D>();
bananaRenderer = GetComponent<SpriteRenderer>();
chimpControlScript = GameObject.Find("Chimp").GetComponent<ChimpController>();
scoreManagementScript = GameObject.Find("ScoreManager").GetComponent<ScoreManager>();
StartCoroutine("SoundObjectTimer");
}
IEnumerator SoundObjectTimer()
{
yield return new WaitForSeconds(0.4f);
if(chimpControlScript.superMode)
{
bananaCollider2D.enabled = true;
bananaRenderer.enabled = true;
superModeBananaSoundObj = GameObject.Find("SuperModeBananaSound");
if(superModeBananaSoundObj != null)
{
superModeBananaSound = superModeBananaSoundObj.GetComponent<AudioSource>();
}
}
StartCoroutine("SoundObjectTimer");
}
void OnTriggerEnter2D(Collider2D col2D)
{
if(col2D.gameObject.tag.Equals("Player"))
{
bananaCollider2D.enabled = false;
bananaRenderer.enabled = false;
scoreManagementScript.bananaScoreValue++;
PlayerPrefs.SetInt("BananaScore" , scoreManagementScript.bananaScoreValue);
if(superModeBananaSound != null)
{
if(!superModeBananaSound.isPlaying)
{
superModeBananaSound.Stop ();
superModeBananaSound.Play ();
}
else
{
superModeBananaSound.Play();
}
}
}
if(col2D.gameObject.tag.Equals("Cleaner"))
{
bananaCollider2D.enabled = false;
bananaRenderer.enabled = false;
}
}
}
<file_sep>/Assets/Scripts/ScoreManager.cs
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour
{
public int bananaScoreValue;
public int superChimpScoreValue;
public int trophiesScoreValue;
public GameManager gameManagementScript;
public string trophiesLeaderboard;
public Text bananaScoreLabel;
public Text superChimpScoreLabel;
public Text trophiesScoreLabel;
void Start()
{
if(PlayerPrefs.HasKey("BananaScore"))
{
bananaScoreValue = PlayerPrefs.GetInt("BananaScore");
}
if(PlayerPrefs.HasKey("MonkeynutScore"))
{
superChimpScoreValue = PlayerPrefs.GetInt("MonkeynutScore");
}
if(PlayerPrefs.HasKey("TrophiesScore"))
{
//Debug.Log("Retrieve Score from PlayerPrefs"); //Working
trophiesScoreValue = PlayerPrefs.GetInt("TrophiesScore"); //Do not forget to use this for final version of game
}
//StartCoroutine("ScoreFromLeaderboard"); //After you got this working but for now, not needed
}
IEnumerator ScoreFromLeaderboard()
{
yield return new WaitForSeconds(0.1f);
if(Social.localUser.authenticated)
{
Debug.Log("Login Success");
PlayGamesPlatform.Instance.LoadScores(trophiesLeaderboard , LeaderboardStart.PlayerCentered , 1 , LeaderboardCollection.Public , LeaderboardTimeSpan.AllTime , (LeaderboardScoreData lsd) =>
{
Debug.Log("Retrieve Score from Leaderboard");
});
}
else
{
if(PlayerPrefs.HasKey("TrophiesScore"))
{
Debug.Log("Retrieve Score from PlayerPrefs");
trophiesScoreValue = PlayerPrefs.GetInt("TrophiesScore"); //Do not forget to use this for final version of game
}
}
StartCoroutine("ScoreFromLeaderboard");
}
void Update()
{
if(Time.timeScale == 0f)
{
return;
}
bananaScoreLabel.text = "" + bananaScoreValue;
if(superChimpScoreLabel != null)
{
superChimpScoreLabel.text = "" + superChimpScoreValue;
PlayerPrefs.SetInt("MonkeynutScore" , superChimpScoreValue);
}
if(trophiesScoreLabel != null)
{
trophiesScoreLabel.text = " " + trophiesScoreValue;
PlayerPrefs.SetInt("TrophiesScore" , trophiesScoreValue);
}
PlayerPrefs.SetInt("BananaScore" , bananaScoreValue);
}
}
| ca0bb476d2c6f4002b2762442a766af596720019 | [
"C#"
] | 27 | C# | uabhanu/ChimpingGit | 1254c5eba39570c06c758d0f2961f7487b13af30 | 711e50614609055cf97761900ed24cde8f640536 |
refs/heads/master | <file_sep>module WebSteps
step "I should see :text" do |text|
page.should have_content(text)
end
step "I should not see :text" do |text|
page.should_not have_content(text)
end
step ":text should not be visible" do |text|
page.should have_css('div', text: text, visible: false)
end
step "I click :button" do |button|
click_button button
end
end
<file_sep># Be sure to restart your server when you modify this file.
Inventorage::Application.config.session_store :cookie_store, key: '_inventorage_session'
| 657a3398e480f1d6ba841a3d4e1a236810adb3bd | [
"Ruby"
] | 2 | Ruby | drewdev/inventorage | a7b7e2a442d9eccc557ee3fdc2f59b9d2a8a8f57 | 5e48a8977d254f6285fb1d8f2a4343ec4f668522 |
refs/heads/master | <file_sep>import {Jumbotron, Button} from "react-bootstrap"
import { useEffect, useState } from 'react';
function Home() {
const [time, setTime] = useState(0)
useEffect(() => {
fetch('/api/time').then(res => res.json()).then(data => setTime(data.time))
},[])
return(
<Jumbotron>
<h1>Welcome to FishTips</h1>
<p>A one-stop shop to all things fishing:</p>
<ul>
<li>Tides and Weather</li>
<li>Map Reconnaissance</li>
<li>Species Information</li>
<li>Current time is: {new Date(time * 1000).toLocaleString("en-US", {timeZoneName: "short"})}</li>
</ul>
<Button variant="primary">Sign In</Button>
</Jumbotron>
)
}
export default Home<file_sep>import React, {useState, useLayoutEffect, useEffect} from 'react';
import endpoints from '../endpoints/apiendpoints';
function FishId() {
const [species, setSpecies] = useState('')
const [endpoint, setEndpoint] = useState(endpoints.test)
const [tides, setTides] = useState([{"t":"12:00", "v":"2.034", "type":"h"}]);
const [loading, setLoading] = useState(true)
useEffect(() => {
fetch(endpoints.test).then(res => res.json()).then(data => {
setTides(data.predictions);
setLoading(false);
});
},[])
console.log(tides)
return(
<>
<p>This is the response</p>
{loading && <p>Loading...</p>}
{tides.map((item, key) => { console.log(item.t);
<ul>
<li>{item.t.value}</li>
</ul>
})}
</>
)
}
export default FishId;
/* */<file_sep>
function Tides() {
return <h1>Tides</h1>
}
export default Tides<file_sep>
function MapTracker() {
return <h1>Map</h1>
}
export default MapTracker | 8651c5b870541dffd85244a1ce48b2ba8d7383e6 | [
"JavaScript"
] | 4 | JavaScript | parkerws/FishTips | 50ef8e8ccabe02df6aa935398688a63202d0fe75 | a35aab409cce4759203d5899c576a6d020ad3bc6 |
refs/heads/master | <file_sep>---
title: Padrino 0.14.0.1 release
description: I've written about Padrino 0.14.0.1 release contains small bug fixes
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
the release of [Padrino 0.14.0.1](http://padrinorb.com/blog/padrino-0-14-0-1/ "Padrino 0.14.0.1") and contains the
following bug fixes:
- FIX [#2118](https://github.com/padrino/padrino-framework/pull/2118) allow Logger without Extensions
- FIX [#2128](https://github.com/padrino/padrino-framework/pull/2128) do not render default layout in partials
Best regards,
Matthias
<file_sep>---
title: Solves issues
description: I had over 55 open issues about Padrinobook and I solved them
published: false
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
I had over [55 open issues](https://github.com/padrinobook/padrinobook/issues "55 open issues") for Padrinobook. Here is
the list of the of the most important changes:
- [Explain why not using the device gem for authentication](https://github.com/padrinobook/padrinobook/commit/73f9723df2d3c3457b573b730b3c74fbf32b4081) ([fixes issue 66](https://github.com/padrinobook/padrinobook/issues/66 "fixes issue 66"))
- [Explain what the t.timestamp does in the default migration](https://github.com/padrinobook/padrinobook/commit/93e7e1b492e8680673a8d5a3fc0048a094eb932d) ([fixes issues 72](https://github.com/padrinobook/padrinobook/issues/72 "fixes issues 72"))
- [List example pages using Padrino](https://github.com/padrinobook/padrinobook/commit/f0cdf9998817600d4e1d0f194bbe6e966e925693) ([fixes issue 73](https://github.com/padrinobook/padrinobook/issues/73 "fixes issue 73"))
- [Explain why instance variables in controllers](https://github.com/padrinobook/padrinobook/commit/62266819751023de66be291749a94ed7e204c297) ([fixes issue 74](https://github.com/padrinobook/padrinobook/issues/74 "fixes issue 74"))
- [Use flash.now instead of flash](https://github.com/padrinobook/padrinobook/commit/9952ca6d45cab02f8f5d114769720042373d731c) ([fixes issue 75](https://github.com/padrinobook/padrinobook/issues/75 "fixes issue 75"))
- [Explain sprocket files](https://github.com/padrinobook/padrinobook/commit/28be2493e9e5ba7bbf7aedc1f1e3fa94d03d6672) ([fixes issue 76](https://github.com/padrinobook/padrinobook/issues/76 "fixes issue 76"))
- [Explain the seven actions of a controller](https://github.com/padrinobook/padrinobook/commit/46f3e8a64c75239ddc54ecaf8bd85aceeb9c0e3a "Explain the seven actions of a controller")([fixes issue 78](https://github.com/padrinobook/padrinobook/issues/78 "fixes issue 78")
- [Explain the DRY principle](https://github.com/padrinobook/padrinobook/commit/2ab2c6b96e4788242bd782120619d2100426b12b) ([fixes issue 81](https://github.com/padrinobook/padrinobook/issues/81 "fixes issue 81"))
- [When creating a controller pass the no--helper argument](https://github.com/padrinobook/padrinobook/commit/04456dab4e6e97b32fc9864a582cfff2198f85b8) ([fixes issue 82](https://github.com/padrinobook/padrinobook/issues/82 "fixes issue 82"))
- [Explain padrino rake spec command](https://github.com/padrinobook/padrinobook/commit/b6a506c943332dc8f6107ef1cea08e2693c8fbaf) ([fixes issue 88](https://github.com/padrinobook/padrinobook/issues/88 "fixes issue 88"))
- [Add new app creation commands](https://github.com/padrinobook/padrinobook/commit/e25788e712db6175ba7d125032e3d38ac7690017) ([fixes issue 90](https://github.com/padrinobook/padrinobook/issues/90 "fixes issue 90"))
- [Fix route name for user new in the users controller](https://github.com/padrinobook/padrinobook/commit/ae7be2b15a186154ec79d752f200b9eb96cf732c) ([fixes issue 91](https://github.com/padrinobook/padrinobook/issues/91 "fixes issue 91"))
- [Explain the domain option in an extra paragraph](https://github.com/padrinobook/padrinobook/commit/366afc7a805c73c34d63daa6afa70e9c59d4c035 "Explain the domain option in an extra paragraph")([fixes issue 92](https://github.com/padrinobook/padrinobook/issues/92 "fixes issue 92"))
- [Explain CSRF](https://github.com/padrinobook/padrinobook/commit/c115db0d174750d6e4f55d18b010e12d78fba9e3) ([fixes issue 93](https://github.com/padrinobook/padrinobook/issues/93 "fixes issue 93"))
- [Logout action should be delete instead of get](https://github.com/padrinobook/padrinobook/commit/ac84f76f7c3e1f30b5cc2ca47c72186291df10ed) ([fixes issue 94](https://github.com/padrinobook/padrinobook/issues/94 "fixes issue 94")) - thanks to [@1gor](https://github.com/1gor "@1gor") for the help
- [Explain RSpec doubles](https://github.com/padrinobook/padrinobook/commit/b93d5870a7f42ad43d27df020507f5a3e44517c1) ([fixes issue 95](https://github.com/padrinobook/padrinobook/issues/95 "fixes issue 95"))
- [Explain the usage of the lib folder and make a link to Thibault article](https://github.com/padrinobook/padrinobook/commit/6a3d6fb0bc7a160d43d2fdef2634b8fccf0841be) ([fixes issue 100](https://github.com/padrinobook/padrinobook/issues/100 "fixes issue 100"))
- [Add link to blog article how to activate observers in Padrino](https://github.com/padrinobook/padrinobook/commit/f00d93519b3c3df238750d028731fd249f6b6e2c) ([fixes issue 101](https://github.com/padrinobook/padrinobook/issues/101 "fixes issue 101"))
- [Clarify why I chose Padrino](https://github.com/padrinobook/padrinobook/commit/06e81d9e37973d377e2a9514136603a02307805d) ([fixes issue 102](https://github.com/padrinobook/padrinobook/issues/102 "fixes issue 102"))
- [Use Controller Sign up Actions is now an extra chapter](https://github.com/padrinobook/padrinobook/commit/fd263c97a477abead45530d6aa2b76a52c4a073b) ([fixes issue 111](https://github.com/padrinobook/padrinobook/issues/111 "fixes issue 111"))
- [Replace "confirmation\_code" with "confirmation\_token"](https://github.com/padrinobook/padrinobook/commit/fa95d132be6dd546c21deda5fc2ec35359d7a2f8) ([fixes issue 115](https://github.com/padrinobook/padrinobook/issues/115 "fixes issue 115"))
- [Add reference to DRY and explain](https://github.com/padrinobook/padrinobook/commit/ff66d9742802a24e053812b905e9b59bc04b6acd "Add reference to DRY and explain") ([fixes issue 118](https://github.com/padrinobook/padrinobook/issues/118 "fixes issue 118"))
- [Explain the app variable used in the specs better](https://github.com/padrinobook/padrinobook/commit/b76280823b0ad427496e8d4aa265cff688023eb8 "Explain the app variable used in the specs better") ([fixes issue 122](https://github.com/padrinobook/padrinobook/issues/122 "fixes issue 122"))
- [Add specs for password forget controller](https://github.com/padrinobook/padrinobook/commit/fd91e358cbe583fee4eadc6b65fb5798e7c4ad8a "Add specs for password forget controller") ([fixes issue 125](https://github.com/padrinobook/padrinobook/issues/125 "fixes issue 125"))
- [Extract token encryption logic from user-completion mail into new](https://github.com/padrinobook/padrinobook/commit/c1dbb27a86d7258abf393a0846e7362ec7ffe1ac "Extract token encryption logic from user-completion mail into new")([fixes issue 131](https://github.com/padrinobook/padrinobook/issues/131 "fixes issue 131"))
- [Get rid of migration AR deprecation messages](https://github.com/padrinobook/padrinobook/commit/2429188d262d1f63e8a357340b7e4ddf320d63de "Get rid of migration AR deprecation messages") ([fixes issue 132](https://github.com/padrinobook/padrinobook/issues/132 "fixes issue 132"))
- [Move box about private callbacks into a plain footnote](https://github.com/padrinobook/padrinobook/commit/3e6995ef8c775e836c133fad2c61905a0cc8ba4e "Move box about private callbacks into a plain footnote") ([fixes issue 133](https://github.com/padrinobook/padrinobook/issues/133 "fixes issue 133"))
- [Add box explaining SRP](https://github.com/padrinobook/padrinobook/commit/69e31f06093c36a5856e077d4e7c3b96ebcc3a7e "Add box explaining SRP") ([fixes issue 137](https://github.com/padrinobook/padrinobook/issues/137 "fixes issue 137"))
- [Replace "Factory Girl" with "Factory Bot" and make reference to fabrication gem](https://github.com/padrinobook/padrinobook/commit/afd2f1736b5fe1278f65ce3d1be5393164f9fd9b "Replace 'Factory Girl' with 'Factory Bot' and make reference to fabrication gem") ([relates to issue 119](https://github.com/padrinobook/padrinobook/issues/119 "relates to issue 119"))
- [Replace bootstrap with bulma](https://github.com/padrinobook/padrinobook/commit/4b8b47f0b9fefad2533adc43dc5df675b32ba213 "Replace bootstrap with bulma")
[fixes issue 139](https://github.com/padrinobook/padrinobook/issues/139 "fixes issue 139")
Best regards
Matthias
<file_sep>---
title: Switch to bulma
description: Time for something new
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
after a couple of time I switched the css framework of this page from [twitter bootstrap](https://getbootstrap.com/ "twitter bootstrap") to [bulma](https://bulma.io/ "bulma") which is an open source CSS framework based on [flexbox](https://www.w3schools.com/css/css3_flexbox.asp "flexbox").
Best regards
Matthias
<file_sep>---
title: Switched to Padrino 0.12.2 and fixing a lot of clutter words
description: Fixing a lot of grammar errors, removed clutter words and migrated to Padrino 0.12.2
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
during the last two weeks I was fixing a lot of grammar problems int the book and removed clutter words like easy, however, so, or just. I have even written a blog post about how to [Highlight Bad Words In Vim](https://wikimatze.de/highlight-bad-words-in-vim).
I got used to GitHub issues as my workflow when I detect problems during my writting which I don't want to fix right now but later. If you found an issue, feel free to post it [PadrinoBook issues](https://github.com/wikimatze/PadrinoBook/issues/new)
A code smell is part of your source code which may be the root of a design problem but is not actually a bug. It's good to have some tools to be "lord of the smells" for [Padrino](http://www.padrinorb.com/). I've written about possible tools under ["Code Coverage Tools For Padrino"](http://wikimatze.de/code-coverage-tools-for-padrino). Since I have a small side section about code coverage tools in the book so, would it okay for you to have a link to the article in the book instead of putting the content directly in the book? Please write me your opinion under <mailto:<EMAIL>>.
In the last weekend it was [eurucamp 2014 time](https://2014.eurucamp.org/).

I went there and visited a workshop from [<NAME>](http://lucaguidi.com/) about the [lotus framework](http://lotusrb.org/) which is similar to Padrino but has some differences. Would you like to have a chapter in the book explaining more the differences between Padrino and other frameworks like Lotus? Write me your opinion directly per mail <mailto:<EMAIL>> or via [twitter (@wikimatze)](http://twitter.com/padrinobook).
Best regards,
Matthias
<file_sep>source 'https://rubygems.org'
gem 'colorator', '1.1.0'
gem 'fileutils', '~> 1.0'
gem 'jekyll', '~> 3.5'
gem 'jekyll-sitemap', '~> 1.1'
gem 'rake', '~> 10.4'
gem 'redcarpet', '~> 3.4'
gem 'rouge', '1.10.1'
gem 'stringex', '2.5.2'
gem 'sweetie', path: '/home/wm/git/sweetie'
<file_sep>---
title: Logo, Twitter, and Deployment 2014
description: News branding for the book and updgrade to Padrino 0.12
active: news
---
Hio,
another two weeks have passed by and finally the spring is coming. As mentioned in the last newsletter, [<NAME>](https://twitter.com/tomparandyk) from [uxtemple.com](http://www.uxtemple.com/) made an awesome job and created a modern branding for the book [PadrinoBook logo](http://padrinobook.com/logo.png). I hope you enjoy it as much as I do. I also managed to refresh the layout of the [twitter account](https://twitter.com/padrinobook) with the new brand - I'm very happy about having 22 followers. Hopefully this number will increase very fast.
The application around the book [job-vacancy](https://github.com/wikimatze/job-vacancy) was upgraded to padrino 0.12 and it is still working as well as the tests.
Last but not least I wrote an article about ["Deploying Padrino Applications On Heroku"](http://wikimatze.de/deploying-padrino-applications-on-heroku.html). Feel free to read it and learn how you can bring your applications into the real world.
That's it for today, enjoy the rest of the week. You will hear from me in two weeks.
Kindly regards,
<NAME>
<file_sep>---
title: User Profile and HTML Version of the Book July 2014
description: Installed a new logo, changed github name, rename github URL, add newsletterarchive, switched to softcover
active: news
---
Hi,
I was thinking a lot about the brand and how to push the page forward. Marketing was (and still is) new for me and I learned so many thinks from it, that this will be the content for another post or mail.
Now see what I did during the last couple of months:
- Installed the new logo on every platform
- Changed my github name from matthias-guenther to [wikimatze](https://github.com/wikimatze) because that is name I use everywhere
- Renamed the github URL from padrino-book to [padrinobook](https://github.com/wikimatze/padrinobook)
- Merged the [user-profile branch](https://github.com/wikimatze/padrinobook/commit/8a55603281e70e9dc4e3970ab49efd2302d2ee8c?short_path=fb48dc1&unchanged=collapsed#diff-fb48dc120e2365fa90d03e42d02cc4d4) into master and learned that is not a good idea to work with branches for a long time because it makes the integration of other contributors more difficult
- Add [newsletter-archive](http://padrinobook.com/newsletterarchive) section so you can read older entries from the mailing list
- Create a [facebook fanpage](https://www.facebook.com/Padrinobook)
- Switched from [leanpub](https://leanpub.com/padrinobook) to [softcover](https://www.softcover.io/books/fd219c19/padrinobook)
- Get rid of numbering the sections of the book and reorder whole chapters
- Add the book logo into the [README](https://github.com/wikimatze/PadrinoBook/blob/master/README.md)
I thank all the readers of the mailing list for giving me feedback about the book. In order to make contributing easier I created a free available HTML Version of the book under [padrinobook.com/book](http://padrinobook.com/book/). Please let me know if you like this way of contributing.
Now enjoy watching the soccer worldcup finale game and have a good start in the week.
Best regards,
Matthias
<file_sep>---
title: Imprint
permalink: imprint/
active: imprint
---
<h1>Imprint</h1>
Information in accordance with Section 5 TMG
<br><br><NAME><br>Köpenicker Str. 149a<br>12355 Berlin<br>
<h2>Contact Information</h2>
Telephone: 0177 4858289<br>E-Mail: <a href="mailto:<EMAIL>"><EMAIL></a><br>Internet address: <a href="https://padrinobook.com" target="_blank">https://padrinobook.com</a><br><br>
<h2>Disclaimer</h2>
<br>Accountability for content<br>
The contents of our pages have been created with the utmost care. However, we cannot guarantee the contents'
accuracy, completeness or topicality. According to statutory provisions, we are furthermore responsible for
our own content on these web pages. In this matter, please note that we are not obliged to monitor
the transmitted or saved information of third parties, or investigate circumstances pointing to illegal activity.
Our obligations to remove or block the use of information under generally applicable laws remain unaffected by this as per
§§ 8 to 10 of the Telemedia Act (TMG).
<br>Accountability for links<br>
Responsibility for the content of
external links (to web pages of third parties) lies solely with the operators of the linked pages. No violations were
evident to us at the time of linking. Should any legal infringement become known to us, we will remove the respective
link immediately.
<br>Copyright<br> Our web pages and their contents are subject to German copyright law. Unless
expressly permitted by law, every form of utilizing, reproducing or processing
works subject to copyright protection on our web pages requires the prior consent of the respective owner of the rights.
Individual reproductions of a work are only allowed for private use.
<file_sep>require 'colorator'
require 'rake'
require 'sweetie'
desc 'write stats in the _config.yml'
task :create_stati do
sweetie = Sweetie::Conversion.new('./_site', './_config.yml')
sweetie.create_stati
stati_helper = Sweetie::BitbucketStatiHelper.new('./_config.yml', 'wikimatze')
bitbucket = Sweetie::Bitbucket.new(stati_helper)
bitbucket.update_stati
end
desc 'Staging'
task :staging do
puts 'Clean site ..'.bold.green
system 'bundle exec jekyll clean'
puts 'Building jekyll ..'.bold.green
system 'JEKYLL_ENV=development bundle exec jekyll build'
puts 'Deploying site with lovely rsync to /home/www/stagingpadrinobook ..'.bold.green
system 'rsync -vru -e \'ssh\' --del ?site/* <EMAIL>:/home/www/stagingpadrinobook'
puts 'Done!'.bold.green
puts '# Please refer to https://staging.padrinobook.com to visit the staging system'.green
end
desc 'Deploy'
task :deploy do
puts 'Clean site ..'.bold.green
system 'bundle exec jekyll clean'
puts 'Build jekyll ..'.bold.green
system 'export JEKYLL_ENV=production && bundle exec jekyll build'
puts 'Deploying site with lovely rsync to /home/www/padrinobook ..'.bold.green
system 'rsync -vru -e \'ssh\' --del ?site/* <EMAIL>:/home/www/padrinobook/'
puts 'Done!'.bold.green
end
desc 'Startup Jekyll'
task :s do
system 'export JEKYLL_ENV=development && bundle exec jekyll s --watch'
end
desc 'Get HTML sources of the book'
task :h do
system 'cd ~/git/PadrinoBook && gitbook build --gitbook=2.4.0 && rm -rf ~/git/padrinobook-website/book && mv -f _book ~/git/padrinobook-website/book'
end
task default: :s
<file_sep>---
title: Progress February 2014
description: Switched from bootstrap to Gumby, news style for the book
active: news
---
Hio,
after moving houses and finally getting used in the new environment I started again working on the
book again. Before going on, I decided to create a new style for the book website
[padrinobook.com](http://padrinobook.com/). I added the following features:
- switched from bootstrap to [Gumby](http://gumbyframework.com/) which make the site more responsive
- add more contribution links
- add twitter for social sharing
Huge parts of the page were programmed but exists only as commented HTML. In the future when the time has come I will make them more and more available.
Have a good start in the week and you will hear from me in two weeks.
Kindly regards,
<NAME>
<file_sep><?php
require_once './mail/vendor/autoload.php';
$helperLoader = new SplClassLoader('Helpers', './mail/vendor');
$mailLoader = new SplClassLoader('SimpleMail', './mail/vendor');
$helperLoader->register();
$mailLoader->register();
use Helpers\Config;
use SimpleMail\SimpleMail;
$config = new Config;
$config->load('./mail/config/config.php');
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$email = stripslashes(trim($_POST['form-email']));
$subject = stripslashes(trim($_POST['form-subject']));
$message = stripslashes(trim($_POST['form-message']));
$pattern = '/[\r\n]|Content-Type:|Bcc:|Cc:/i';
if (preg_match($pattern, $email) || preg_match($pattern, $subject)) {
die("Header injection detected");
}
$emailIsValid = filter_var($email, FILTER_VALIDATE_EMAIL);
if ($email && $emailIsValid && $subject && $message) {
$mail = new SimpleMail();
$mail->setTo($config->get('emails.to'));
$mail->setFrom($config->get('emails.from'));
$mail->setSenderEmail($email);
$mail->setSubject($config->get('subject.prefix') . ' ' . $subject);
$body = "
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html>
<head>
<meta charset=\"utf-8\">
</head>
<body>
<h1>{$subject}</h1>
<p><strong>{$config->get('fields.message')}:</strong> <br>{$message}</p>
</body>
</html>";
$mail->setHtml($body);
$mail->send();
$emailSent = true;
} else {
$hasError = true;
}
}
?><!DOCTYPE html>
<html lang="en" class="no-js" prefix="og: http://ogp.me/ns#" >
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PadrinoBook</title>
<meta name="description" content="PadrinoBook - The Guide To Master The Elegant Ruby Web Framework" />
<meta name="author" content="<NAME>">
<meta content="noodp" name="robots" >
<link rel="canonical" href="https://padrinobook.com/" />
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="Padrinobook" />
<meta property="og:title" content="PadrinoBook - The Guide To Master The Elegant Ruby Web Framework" />
<meta property="og:description" content="PadrinoBook - The Guide To Master The Elegant Ruby Web Framework" />
<meta property="og:url" content="https://padrinobook.com/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://padrinobook.com/logo.png" />
<meta content="summary_large_image" name="twitter:card" />
<meta content="@wikimatze" name="twitter:creator" />
<meta content="@padrinobook" name="twitter:site" />
<meta content="PadrinoBook - The Guide To Master The Elegant Ruby Web Framework written by @wikimatze " name="twitter:title" />
<meta content="PadrinoBook - The Guide To Master The Elegant Ruby Web Framework written by @wikimatze " name="twitter:description" />
<meta content="https://padrinobook.com/" name="twitter:url" />
<meta content="https://farm4.staticflickr.com/3725/33337025026_d36474c52b_b_d.jpg" name="twitter:image:src" />
<link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/favicons/manifest.json">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg">
<link rel="shortcut icon" href="/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/favicons/mstile-144x144.png">
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link href="http://www.feedio.co/@padrinobook/feed" rel="alternate" type="application/rss+xml" title="RSS feed for PadrinoBook">
<link rel="stylesheet" href="/css/bulma.css" />
<link rel="stylesheet" href="/css/syntax.css">
<!-- <link rel="stylesheet" href="/css/flexslider.css"> -->
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="<KEY>" crossorigin="anonymous">
</head>
<body>
<nav class="navbar">
<div class="container">
<div class="navbar-brand">
<span class="navbar-burger burger" data-target="navbarMenu">
<span></span>
<span></span>
<span></span>
</span>
</div>
<div id="navbarMenu" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="/" title="Back to home of padrinobook">Home</a>
<a class="navbar-item" href="/about" title="Behind the padrinobook is wikimatze">About</a>
<a class="navbar-item is-active" href="/mail.php" title="Contact me">Contact</a>
<a class="navbar-item" href="/news" title="Overview of latest articles">News</a>
<a class="navbar-item" href="/imprint" title="Legal stuff from me">Imprint</a>
<a class="navbar-item" href="/contribute" title="Learn how to help me with padrinobook">Contribute</a>
</div>
</div>
</div>
</nav>
<div class='social share'>
<ul>
<li>
<a class='fab fa-twitter-square' href='https://twitter.com/padrinobook' rel='noopener noreferrer' target='_blank' title='Follow me on Twitter'></a>
</li>
<li>
<a class='fab fa-facebook-square' href='https://www.facebook.com/padrinobook' rel='noopener noreferrer' target='_blank' title='Follow me on Facebook'></a>
</li>
<li>
<a class='fab fa-google-plus-square' href="https://plus.google.com/109249095952663676924" rel='noopener noreferrer' target='_blank' title='Follow me on Google+'></a>
</li>
<li>
<a class='fab fa-github-square' href='https://github.com/padrinobook/padrinobook' rel='noopener noreferrer' target='_blank' title='Follow me on GitHub'></a>
</li>
<li>
<a class='fab fa-medium' href='https://medium.com/@padrinobook' rel='noopener noreferrer' target='_blank' title='Follow me on Medium'></a>
</li>
</ul>
</div>
<br>
<div class="container content">
<a href="/index.html" title="Padrinobook - A book about the Elegant Ruby Web Framework">
<img id="logo" src="/logo.png" alt="Logo of Padrinobook"/>
</a>
<div id="logo-text">
<strong>PadrinoBook</strong>
</div>
<br>
<br>
<header>
<h1 class="lead">Contact</h1>
</header>
<?php if(!empty($emailSent)): ?>
<div class="notification is-success">
<?php echo $config->get('messages.success'); ?>
</div>
<?php else: ?>
<?php if(!empty($hasError)): ?>
<div class="notification is-danger">
<?php echo $config->get('messages.error'); ?>
</div>
<?php endif; ?>
<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="application/x-www-form-urlencoded" id="contact-form" class="form-horizontal" method="post">
<div class="field">
<label for="form-email" class="label"><?php echo $config->get('fields.email'); ?></label>
<div class="control has-icons-left">
<input type="email" class="input" id="form-email" name="form-email" placeholder="<?php echo $config->get('fields.email'); ?>" required>
<span class="icon is-small is-left">
<i class="fas fa-envelope"></i>
</span>
</div>
</div>
<div class="field">
<label for="form-email" class="label"><?php echo $config->get('fields.subject'); ?></label>
<div class="control has-icons-left">
<input type="text" class="input" id="form-subject" name="form-subject" placeholder="<?php echo $config->get('fields.subject'); ?>" required>
<span class="icon is-small is-left">
<i class="fas fa-rocket"></i>
</span>
</div>
</div>
<div class="field">
<label class="label"><?php echo $config->get('fields.message'); ?></label>
<div class="control">
<textarea class="textarea" id="form-message" name="form-message" placeholder="<?php echo $config->get('fields.message'); ?>" required></textarea>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<button type="submit" class="button is-large is-link"><?php echo $config->get('fields.btn-send'); ?></button>
</div>
</div>
</form>
<?php endif; ?>
</div>
<footer>
<div class="container has-text-centered ">
<hr>
<nav>
<i class="far fa-copyright"></i> <span class="copyright"><NAME></span>
<span class="footer-separater">•</span>
<a class="footer-desktop" href="/about">About</a>
<span class="footer-separater">•</span>
<a class="footer-desktop" href="/mail.php">Contact</a>
<span class="footer-separater">•</span>
<a class="footer-desktop" href="/news">News</a>
<span class="footer-separater">•</span>
<a class="footer-desktop" href="/imprint">Imprint</a>
<span class="footer-separater">•</span>
<a class="footer-desktop" href="/contribute">Contribute</a>
<a class="footer-mobile" href="https://twitter.com/padrinobook" title="Follow padrinobook on twitter"><i class="fab fa-twitter"></i></a>
<a class="footer-mobile" href="https://www.facebook.com/padrinobook" title="Follow padrinobook on facebook"><i class="fab fa-facebook-f"></i></a>
<a class="footer-mobile" href="https://plus.google.com/109249095952663676924" title="Follow padrinobook on google+"><i class="fab fa-google-plus-g"></i></a>
<a class="footer-mobile" href="https://medium.com/@padrinobook" title="Follow padrinobook on medium"><i class="fab fa-medium-m"></i></a>
<a class="footer-mobile" href="https://github.com/padrinobook" title="Follow padrinobook on GitHub"><i class="fab fa-github-alt"></i></a>
</nav>
</div>
</footer>
<script type="text/javascript" src="mail/public/js/contact-form.js"></script>
<script type="text/javascript">
new ContactForm('#contact-form');
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
// Get all "navbar-burger" elements
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach(function ($el) {
$el.addEventListener('click', function () {
// Get the target from the "data-target" attribute
var target = $el.dataset.target;
var $target = document.getElementById(target);
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
$el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
<script type="text/javascript" src="/js/main.js"></script>
<!-- <script type="text/javascript" src="/js/github-commits-widget.js"></script> -->
<!-- Hotjar Tracking Code for https://padrinobook.com -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:442173,hjsv:5};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<!-- Piwik tracking pixel -->
<noscript><p><img src="https://padrinobook.com/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
</body>
</html>
<file_sep>---
title: Progress March 2014
description: Own mail address and responsive website adjustments
active: news
---
Hio,
I finally got an own mail address <<EMAIL>> from which the updates are send now. I also add a ["Recent commit"](http://padrinobook.com/recent_commits) section as a reminder to see the last commits for the book.
Designing a logo is not so difficult, all you need is to have a name, a slogan, and some design in your head. You can see
results on [logos](http://padrinobook.com/logos.html), thanks for the feedback on twitter I got from [<NAME>](https://twitter.com/nesquena/statuses/438551498956349440).
I made some small improvement on the website and made it more responsive. According to your device, a different version of the logo is loaded.
When I finished designing the logo, [<NAME>](https://twitter.com/tomparandyk) from [uxtemple.com](http://www.uxtemple.com/) honored my effort in creating a logo but offered me his help to create a more modern branding. I'm very happy that he is going to help me and I will update the page as soon as the logo is ready.
For the next two weeks, I'm planning to finish the chapter about edit the user profile, write a blog post about deploying padrino applications for [heroku](https://www.heroku.com/) and [anynines](http://www.anynines.com/) - that is a thing which should be easy to do with Padrino. And I think of updating the book to padrino 0.12.
Have a good start in the week and you will hear from me in two weeks.
Kindly regards,
<NAME>
<file_sep># PadrinoBook website
<img src="https://padrinobook.herokuapp.com/badge.svg">
## Notes about the technology
- [bulma](https://bulma.io/ "bulma"): An open source CSS framework based on [flexbox](https://www.w3schools.com/css/css3_flexbox.asp "flexbox")
- [jekyll](https://jekyllrb.com/ "jekyll"): Static website generator written in [Ruby](https://www.ruby-lang.org/en/ "Ruby")
<file_sep>---
title: About
permalink: about/
active: about
---
<h1>About</h1>
<img src="https://c1.staticflickr.com/1/305/30960365443_dc82235ae2_q.jpg" class="right image circle" alt="<NAME> loves Vim and painting Warhammer figures">
<p>Matthias is an Open Sourcer by heart, loves giving presentations about
<a href="http://www.vim.org/" title="Vim">Vim</a>, and is writing this book about
<a href="http://www.padrinorb.com/" title="Padrino">Padrino</a>. Why? Because he wants learn something
something light weight, flexible, powerful, and fast.
These are the strenghts of Padrino.
Matthias is writting this book with much
<a href="https://github.com/wikimatze/padrino-book/issues?page=1&state=closed" title="help of the Padrino community">help of the community</a>
is <a href="https://github.com/padrino/padrino-framework/contributors" title="Contributing to Padrino">contributing</a> to Padrino, and helps
keeping up <a href="http://padrinorb.com/" title="Padrino website">padrinorb.com</a>.
</p>
<p> Contact Matthias directly via <a href="/mail.php"title="Contact via mail">mail</a>, or on
<a href="{{ site.twitter }}" title="Contact via twitter">twitter</a>, or join the <a href="https://wikimatze.us6.list-manage.com/subscribe/post?u=4010f8ce18503766e176536f1&id=198f8c0321" title="Padrinobook Mailing list">mailinglist</a>.
</p>
<file_sep>---
layout: default
title: Error
---
<div class="row">
<div class="twelve columns">
<h2>Not found :(</h2>
<div id="error">
<p>Sorry, but the page you were trying to view does not exist.</p>
<p>It looks like this was the result of either:</p>
<ul>
<li>a mistyped address</li>
<li>an out-of-date link</li>
<li>...</li>
</ul>
</div>
</div>
</div>
<file_sep>---
layout: default
---
<div class="row">
I'm playing around with different logos, fonts, colors and designs for a logo about the book.
</div>
<div class="row">
<div class="twelve columns">
<h2>Version 1: The basic way</h2>
<a href="/logos/version1.png" class="fancybox"><img src="/logos/version1.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 2: More elgant - like Padrino is</h2>
<a href="/logos/version2.png" class="fancybox"><img src="/logos/version2.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 3: Emphasize on p - looks weird but is more eyecatching</h2>
<a href="/logos/version3.png" class="fancybox"><img src="/logos/version3.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 4: Emphasize on p - looks weird but is more eyecatching</h2>
<a href="/logos/version4.png" class="fancybox"><img src="/logos/version4.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 5: Two fonts in headline</h2>
<a href="/logos/version5.png" class="fancybox"><img src="/logos/version5.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 6: big P and left enclosing</h2>
<a href="/logos/version6.png" class="fancybox"><img src="/logos/version6.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 7: Left and right enclosing</h2>
<a href="/logos/version7.png" class="fancybox"><img src="/logos/version7.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 8: Big P</h2>
<a href="/logos/version8.png" class="fancybox"><img src="/logos/version8.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 9: Big P and B</h2>
<a href="/logos/version9.png" class="fancybox"><img src="/logos/version9.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 10: CI colors of fresh new Padrino </h2>
<a href="/logos/version10.png" class="fancybox"><img src="/logos/version10.png" class="center"/></a>
</div>
</div>
<br />
<br />
<div class="row">
<div class="twelve columns">
<h2>Version 11: Official fonts</h2>
<a href="/logos/version11.png" class="fancybox"><img src="/logos/version11.png" class="center"/></a>
</div>
</div>
<file_sep>---
title: Padrino 0.14.1 release
description: I've written about Padrino 0.14.1.
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
the release of [Padrino 0.14.1](http://padrinorb.com/blog/padrino-0-14-1/ "Padrino 0.14.1") is out and contains the
following changes
- FIX syntax error in ActiveRecord tasks ([@sue445](https://github.com/sue445 "@sue445"))
- NEW use hamlit if available in Gemfile
Best regards
Matthias
<file_sep>---
title: Padrino 0.14.2 release
description: I've written about Padrino 0.14.2
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
the release of [Padrino 0.14.2](http://padrinorb.com/blog/padrino-0-14-2/ "Padrino 0.14.2") is out and contains the
following changes:
- FIX router in non-Padrino applications ([@adam12](https://github.com/adam12))
- FIX [#2154](https://github.com/padrino/padrino-framework/commit/04f64706613f08f4f5eaddd18afec8ce4d1855d9 "#2154") padrino-admin haml layout ([ujifgc](https://github.com/ujifgc "ujifgc"))
- FIX Datamapper tasks ([@adam12](https://github.com/adam12))
- FIX [#1979](https://github.com/padrino/padrino-framework/issues/1979 "#1979") Add a Default Rake Task If Test Framework is Included ([ujifgc](https://github.com/ujifgc "ujifgc"))
- FIX [#2150](https://github.com/padrino/padrino-framework/issues/2150 "#2150") Project generator silently ignores invalid -a option ([ujifgc](https://github.com/ujifgc "ujifgc"))
- FIX [#2152](https://github.com/padrino/padrino-framework/issues/2152 "#2152") using open without requiring `open-uri` ([ujifgc](https://github.com/ujifgc "ujifgc"))
- FIX [#2163](https://github.com/padrino/padrino-framework/issues/2163 "#2163") preserve spaces in args of padrino gen ([ujifgc](https://github.com/ujifgc "ujifgc"))
- NEW [#2161](https://github.com/padrino/padrino-framework/pull/2161 "#2161") allow array as tag attribute ([aeris](https://github.com/aeris "aeris"))
- Update Sequel usage
- Update [ActiveRecord::Migration usage](https://github.com/padrino/padrino-framework/commit/f45566335f0b676d9dc2a8e7de68babc2274ff44 "ActiveRecord::Migration usage") ([@adam12](https://github.com/adam12))
Best regards
Matthias
<file_sep>---
title: Contribute
permalink: contribute/
active: contribute
---
<h1>Contribute</h1>
I'm writing this book with much <a rel="noopener noreferrer" target="_blank" href="https://github.com/padrinobook/padrinobook/issues?page=1&state=closed">help of the community</a>. Instead of waiting until the book is finished you can <a rel="noopener noreferrer" target="_blank" href="https://github.com/padrinobook/padrinobook">see the source</a>, <a rel="noopener noreferrer" target="_blank" href="http://padrinobook.com/book/">watch the online version</a>, join the <a rel="noopener noreferrer" target="_blank" href="http://eepurl.com/Wskif">mailing list</a>, post a <a rel="noopener noreferrer" target="_blank" href="https://github.com/wikimatze/padrinobook/pulls">pull request</a>, visit the <a rel="noopener noreferrer" target="_blank" href="http://facebook.com/padrinobook">fanpage</a>, or follow <a rel="noopener noreferrer" target="_blank" href="https://twitter.com/padrinobook">@padrinobook</a>.
<file_sep>---
active: home
---
If you want to go into web development with ease and no boundaries to which
components you want to use, then dig into Padrino.
Padrino is super interesting, but there aren't a lot of docs available and this book will change it.
This book will teach you how to craft web applications in Padrino with joy and fun.
<div class="columns is-vcentered">
<div class="column is-6">
<span class="information badge author primary">
<a href="/news">News</a>
</span>
<ul>
{% for post in site.posts limit:1 %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
<p>
The person behind this book <a href="https://twitter.com/wikimatze">@wikimatze</a>:
</p>
<img src="https://c1.staticflickr.com/1/305/30960365443_dc82235ae2_q.jpg" class="left image circle person-behind-the-book" alt="<NAME> loves Vim and painting Warhammer figures">
</div>
<div class="column is-6 newsletter">
<div class="newsletter-box">
<h5>Stay informed with the newsletter:</h5>
<div id="mc_embed_signup">
<form action="https://wikimatze.us6.list-manage.com/subscribe/post?u=4010f8ce18503766e176536f1&id=198f8c0321" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div class="field">
<div class="control has-icons-left">
<input class="input" id="mce-EMAIL" class="email" name="EMAIL" placeholder="Email" value="" type="email" required>
<span class="icon is-small is-left">
<i class="fas fa-envelope"></i>
</span>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<button type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button is-large is-link">Send</button>
</div>
</div>
</form>
</div>
</div>
<div class="newsletter-box">
<h5>Get the book:</h5>
<a class="button is-danger is-large" style="text-decoration: none; margin-right: 10px" href="https://www.softcover.io/books/wikimatze/padrinobook#pricing">Buy</a>
<a class="button is-success" style="text-decoration: none;" href="https://www.softcover.io/download/wikimatze/padrinobook/ebooks/padrinobook-preview.pdf">Preview</a>
<p> or <a href="/book">read online</a>.</p>
</div>
</div>
<!--
<div class="row">
<div class="twelve columns">
<span class="information badge author primary">
Recent commits
</span>
<div id="github-commits"></div>
</div>
</div>
<br>
-->
<!--End mc_embed_signup-->
<!--
<div class="row">
<div class="flexslider">
<ul class="slides">
<li>
<img src="images/cover.png" />
</li>
<li>
<img src="images/online.png" />
</li>
<li>
<img src="images/sources.png" />
</li>
<li>
<img src="images/working.png" />
</li>
</ul>
</div>
</div>
-->
</div>
</div>
<file_sep>---
layout: default
---
<article>
<div class="container">
<h2>{{ page.title }}</h2>
<header>
<div class="article-author">
Written by <a href="https://twitter.com/wikimatze">{{ site.author }}</a>
{% if page.update %}, updated <time>{{ page.update }}</time> {% endif %}
</div>
</header>
{{ content }}
</div>
</article>
<file_sep>---
title: Padrino 0.14.0.2 release
description: I've written about Padrino 0.14.0.2. This release contains small bug fixes
twitter_src: https://gallery.mailchimp.com/4010f8ce18503766e176536f1/images/32684573-8372-4e96-bc1b-5864ce88a1a4.jpg
active: news
---
Hi,
the release of [Padrino 0.14.0.2](http://padrinorb.com/blog/padrino-0-14-0-2/ "Padrino 0.14.0.2") is out and contains the
following bug fixes:
- FIX [#2132](https://github.com/padrino/padrino-framework/issues/2132) use Sinatra2 IndifferentHash if available
Best regards,
Matthias
| a30b3fd4832603f3e0b6fd5de9acfc7ed3c2f204 | [
"Markdown",
"Ruby",
"HTML",
"PHP"
] | 22 | Markdown | padrinobook/padrinobook.com | af1fa42fd44f84966d6c96f635c2dd9b14f810aa | b15d53a1e24e5013c4a5fb720ffd63d2a8fd6a01 |
refs/heads/master | <repo_name>Rofaze21/Autonomous2016<file_sep>/Gyro7006.java
package org.firstinspires.ftc.teamcode;
import android.graphics.Color;
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cGyro;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.ColorSensor;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
import com.qualcomm.robotcore.util.Range;
import com.qualcomm.robotcore.hardware.OpticalDistanceSensor;
import org.firstinspires.ftc.robotcore.external.Telemetry;
@Autonomous(name="Gyro 7006", group="Pushbot")
public class Gyro7006 extends LinearOpMode {
HardwarePushbot1 robot = new HardwarePushbot1();
ModernRoboticsI2cGyro gyro = null;
private double PREFERRED_LIGHT_VALUE = .05d;
static final double COUNTS_PER_MOTOR_REV = 1120 ;
static final double DRIVE_GEAR_REDUCTION = .5 ;
static final double WHEEL_DIAMETER_INCHES = 4.0 ;
static final double COUNTS_PER_INCH = (COUNTS_PER_MOTOR_REV * DRIVE_GEAR_REDUCTION) /
(WHEEL_DIAMETER_INCHES * 3.1415);
static final double DRIVE_SPEED = 0.3;
static final double TURN_SPEED = 0.2;
static final double HEADING_THRESHOLD = 1 ;
static final double P_TURN_COEFF = 0.1;
static final double P_DRIVE_COEFF = 0.15;
ColorSensor colorSensor;
OpticalDistanceSensor odsSensor;
@Override
public void runOpMode() {
float hsvValues[] = {0F, 0F, 0F};
final float values[] = hsvValues;
boolean bLedOn = true;
colorSensor = hardwareMap.colorSensor.get("sensor_color");
odsSensor = hardwareMap.opticalDistanceSensor.get("ods");
robot.init(hardwareMap);
gyro = (ModernRoboticsI2cGyro) hardwareMap.gyroSensor.get("gyro");
robot.LeftWheel.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
robot.RightWheel.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
telemetry.addData(">", "Calibrating Gyro");
telemetry.update();
gyro.calibrate();
// make sure the gyro is calibrated before continuing
while (!isStopRequested() && gyro.isCalibrating()) {
sleep(50);
idle();
}
telemetry.addData(">", "Robot Ready.");
telemetry.update();
robot.LeftWheel.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.RightWheel.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
// Wait for the game to start (Display Gyro value), and reset gyro before we move..
while (!isStarted()) {
telemetry.addData(">", "Robot Heading = %d", gyro.getIntegratedZValue());
telemetry.update();
idle();
}
gyro.resetZAxisIntegrator();
Color.RGBToHSV(colorSensor.red() * 8, colorSensor.green() * 8, colorSensor.blue() * 8, hsvValues);
telemetry.addData(">", "Robot Heading = %d", gyro.getIntegratedZValue());
telemetry.addData("Path", "Complete");
telemetry.addData("Red ", colorSensor.red());
telemetry.addData("Blue ", colorSensor.blue());
telemetry.update();
int start = 1;
robot.Arm.setPosition(.5);
while (opModeIsActive()) {
switch (start) {
case 1:
Shoot(1200);
sleep(300);// Shoot initial ball into center vortex
telemetry.addData("I am a Baller!", "Complete");
telemetry.update();
/* LauncherDown();
sleep(500);//Put Launcher down into position
Shoot(500);
telemetry.addData("I am a Baller 2!", "Complete");
telemetry.addData("State", start);
telemetry.update();*/
gyroDrive(DRIVE_SPEED, -6.5, 0);
start++;
break;
case 2:
telemetry.addData("State", start);
telemetry.update();
gyroTurn(TURN_SPEED, -45);
gyroHold(TURN_SPEED, -45, 1.5);
telemetry.addData("Turning -45 degrees", "Complete");
telemetry.update();
sleep(50);
start++;
break;
case 3:
gyroDrive(1.0, -35, -45);
start++;
break;
case 4:
telemetry.addData("State", start);
telemetry.addData("Detecting light underneath", start);
telemetry.update();
if (odsSensor.getRawLightDetected() <= .055) {
robot.RightWheel.setPower(-.3);
robot.LeftWheel.setPower(-.3);
} else {
robot.RightWheel.setPower(0);
robot.LeftWheel.setPower(0);
start = 6;
break;
}
break;
case 5:// do not go to case 5
followTapeUsingODS(5.0);
start++;
break;
case 6:
telemetry.addData("State", start);
telemetry.update();
gyroTurn(TURN_SPEED, -90);
gyroHold(TURN_SPEED, -90, 1);
telemetry.addData("Turning -90 degrees", "Complete");
telemetry.update();
telemetry.addData("State", start);
telemetry.update();
gyroDrive(DRIVE_SPEED, -2, -90);
start++;
break;
case 7:
telemetry.addData("State", start);
telemetry.update();
if (colorSensor.blue() > colorSensor.red() && colorSensor.blue() > colorSensor.green()) {
telemetry.addData("Blue Detected!!", "Going straight!");
telemetry.update();
/*gyroDrive(DRIVE_SPEED, 4, -90);
gyroTurn(TURN_SPEED, 0);
gyroHold(TURN_SPEED, 0, 2);
gyroDrive(DRIVE_SPEED, -9, 0);
gyroTurn(TURN_SPEED, -90);
gyroHold(TURN_SPEED, -90, 1);*/
robot.Arm.setPosition(-1.5);
sleep(500);
robot.RightWheel.setPower(-.2);
robot.LeftWheel.setPower(-.2);
sleep(1500);
robot.RightWheel.setPower(.2);
robot.LeftWheel.setPower(.2);
sleep(500);
robot.RightWheel.setPower(-.2);
robot.LeftWheel.setPower(-.2);
sleep(1500);
robot.RightWheel.setPower(0);
robot.LeftWheel.setPower(0);
start = 8;
break;
} else {
telemetry.addData("Red Detected!", "Turning 90 Degrees");
telemetry.update();
robot.Arm.setPosition(1);
sleep(500);
robot.RightWheel.setPower(-.2);
robot.LeftWheel.setPower(-.2);
sleep(1500);
robot.RightWheel.setPower(.2);
robot.LeftWheel.setPower(.2);
sleep(500);
robot.RightWheel.setPower(-.2);
robot.LeftWheel.setPower(-.2);
sleep(1500);
robot.RightWheel.setPower(0);
robot.LeftWheel.setPower(0);
gyroDrive(DRIVE_SPEED, 5, -90);
gyroTurn(TURN_SPEED, 0);
gyroHold(TURN_SPEED, 0, 1);
start++;
break;
}
case 8:
robot.RightWheel.setPower(0);
robot.LeftWheel.setPower(0);
telemetry.addData("DONE", "Cool");
default:
telemetry.addData("Complete", "Good Job!");
telemetry.update();
}
}
}
/**
* Method to drive on a fixed compass bearing (angle), based on encoder counts.
* Move will stop if either of these conditions occur:
* 1) Move gets to the desired position
* 2) Driver stops the opmode running.
*
* @param speed Target speed for forward motion. Should allow for _/- variance for adjusting heading
* @param distance Distance (in inches) to move from current position. Negative distance means move backwards.
* @param angle Absolute Angle (in Degrees) relative to last gyro reset.
* 0 = fwd. +ve is CCW from fwd. -ve is CW from forward.
* If a relative angle is required, add/subtract from current heading.
*/
public void gyroDrive ( double speed,
double distance,
double angle) {
int newLeftTarget;
int newRightTarget;
int moveCounts;
double max;
double error;
double steer;
double leftSpeed;
double rightSpeed;
if (opModeIsActive()) {
telemetry.update();
// Determine new target position, and pass to motor controller
moveCounts = (int)(distance * COUNTS_PER_INCH);
newLeftTarget = robot.LeftWheel.getCurrentPosition() + moveCounts;
newRightTarget = robot.RightWheel.getCurrentPosition() + moveCounts;
// Set Target and Turn On RUN_TO_POSITION
robot.LeftWheel.setTargetPosition(newLeftTarget);
robot.RightWheel.setTargetPosition(newRightTarget);
robot.LeftWheel.setMode(DcMotor.RunMode.RUN_TO_POSITION);
robot.RightWheel.setMode(DcMotor.RunMode.RUN_TO_POSITION);
// start motion.
speed = Range.clip(Math.abs(speed), 0.0, 1.0);
robot.LeftWheel.setPower(speed);
robot.RightWheel.setPower(speed);
// keep looping while we are still active, and BOTH motors are running.
while (opModeIsActive() &&
(robot.LeftWheel.isBusy() && robot.RightWheel.isBusy())) {
// adjust relative speed based on heading error.
error = getError(angle);
steer = getSteer(error, P_DRIVE_COEFF);
// if driving in reverse, the motor correction also needs to be reversed
if (distance < 0)
steer *= -1.0;
leftSpeed = speed - steer;
rightSpeed = speed + steer;
// Normalize speeds if any one exceeds +/- 1.0;
max = Math.max(Math.abs(leftSpeed), Math.abs(rightSpeed));
if (max > 1.0)
{
leftSpeed /= max;
rightSpeed /= max;
}
robot.LeftWheel.setPower(leftSpeed);
robot.RightWheel.setPower(rightSpeed);
// Display drive status for the driver.
telemetry.addData("Err/St", "%5.1f/%5.1f", error, steer);
telemetry.addData("Target", "%7d:%7d", newLeftTarget, newRightTarget);
telemetry.addData("Actual", "%7d:%7d", robot.LeftWheel.getCurrentPosition(),
robot.RightWheel.getCurrentPosition());
telemetry.addData("Speed", "%5.2f:%5.2f", leftSpeed, rightSpeed);
telemetry.update();
}
// Stop all motion;
robot.LeftWheel.setPower(0);
robot.RightWheel.setPower(0);
// Turn off RUN_TO_POSITION
robot.LeftWheel.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
robot.RightWheel.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
}
}
/**
* Method to spin on central axis to point in a new direction.
* Move will stop if either of these conditions occur:
* 1) Move gets to the heading (angle)
* 2) Driver stops the opmode running.
*
* @param speed Desired speed of turn.
* @param angle Absolute Angle (in Degrees) relative to last gyro reset.
* 0 = fwd. +ve is CCW from fwd. -ve is CW from forward.
* If a relative angle is required, add/subtract from current heading.
*/
public void gyroTurn ( double speed, double angle) {
// keep looping while we are still active, and not on heading.
while (opModeIsActive() && !onHeading(speed, angle, P_TURN_COEFF)) {
// Update telemetry & Allow time for other processes to run.
telemetry.update();
}
}
/**
* Method to obtain & hold a heading for a finite amount of time
* Move will stop once the requested time has elapsed
*
* @param speed Desired speed of turn.
* @param angle Absolute Angle (in Degrees) relative to last gyro reset.
* 0 = fwd. +ve is CCW from fwd. -ve is CW from forward.
* If a relative angle is required, add/subtract from current heading.
* @param holdTime Length of time (in seconds) to hold the specified heading.
*/
public void gyroHold( double speed, double angle, double holdTime) {
ElapsedTime holdTimer = new ElapsedTime();
// keep looping while we have time remaining.
holdTimer.reset();
while (opModeIsActive() && (holdTimer.time() < holdTime)) {
// Update telemetry & Allow time for other processes to run.
onHeading(speed, angle, P_TURN_COEFF);
telemetry.update();
}
// Stop all motion;
robot.LeftWheel.setPower(0);
robot.RightWheel.setPower(0);
}
/**
* Perform one cycle of closed loop heading control.
*
* @param speed Desired speed of turn.
* @param angle Absolute Angle (in Degrees) relative to last gyro reset.
* 0 = fwd. +ve is CCW from fwd. -ve is CW from forward.
* If a relative angle is required, add/subtract from current heading.
* @param PCoeff Proportional Gain coefficient
* @return
*/
boolean onHeading(double speed, double angle, double PCoeff) {
double error ;
double steer ;
boolean onTarget = false ;
double leftSpeed;
double rightSpeed;
// determine turn power based on +/- error
error = getError(angle);
if (Math.abs(error) <= HEADING_THRESHOLD) {
steer = 0.0;
leftSpeed = 0.0;
rightSpeed = 0.0;
onTarget = true;
}
else {
steer = getSteer(error, PCoeff);
rightSpeed = speed * steer;
leftSpeed = -rightSpeed;
}
// Send desired speeds to motors.
robot.LeftWheel.setPower(leftSpeed);
robot.RightWheel.setPower(rightSpeed);
// Display it for the driver.
telemetry.addData("Target", "%5.2f", angle);
telemetry.addData("Err/St", "%5.2f/%5.2f", error, steer);
telemetry.addData("Speed.", "%5.2f:%5.2f", leftSpeed, rightSpeed);
return onTarget;
}
/**
* getError determines the error between the target angle and the robot's current heading
* @param targetAngle Desired angle (relative to global reference established at last Gyro Reset).
* @return error angle: Degrees in the range +/- 180. Centered on the robot's frame of reference
* +ve error means the robot should turn LEFT (CCW) to reduce error.
*/
public double getError(double targetAngle) {
double robotError;
// calculate error in -179 to +180 range (
robotError = targetAngle - gyro.getIntegratedZValue();
while (robotError > 180) robotError -= 360;
while (robotError <= -180) robotError += 360;
return robotError;
}
/**
* returns desired steering force. +/- 1 range. +ve = steer left
* @param error Error angle in robot relative degrees
* @param PCoeff Proportional Gain Coefficient
* @return
*/
public double getSteer(double error, double PCoeff) {
return Range.clip(error * PCoeff, -1, 1);
}
public void LauncherDown (){
robot.Launcher.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
robot.Launcher.setTargetPosition(270);
robot.Launcher.setMode(DcMotor.RunMode.RUN_TO_POSITION);
robot.Launcher.setPower(.4);
robot.Collector.setPower(-1);
sleep(2000);
robot.Launcher.setPower(0);
robot.Collector.setPower(0);
}
public void Shoot (int time){
robot.Launcher.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
robot.Launcher.setPower(1);
sleep(time);
robot.Launcher.setPower(0);
}
public void followTapeUsingODS(double holdTime) {
double currentODSReading;
double odsDelta;
double powerToLeftWheel = -.1d;
double powerToRightWheel = -.1d;
boolean lineFollowerActivated = false;
ElapsedTime holdTimer = new ElapsedTime();
// keep looping while we have time remaining.
holdTimer.reset();
while (opModeIsActive() && (holdTimer.time() < holdTime)) {
currentODSReading = odsSensor.getLightDetected();
odsDelta = PREFERRED_LIGHT_VALUE - currentODSReading;
if (odsDelta < 0)
lineFollowerActivated = true;
if (lineFollowerActivated) {
// odsDelta will be either positive or negative
odsDelta *= 0.20;
powerToLeftWheel = -.1d + odsDelta;
powerToRightWheel = -.1d - odsDelta;
}
telemetry.addData("currentODSReading", currentODSReading);
telemetry.addData("odsDelta", odsDelta);
telemetry.addData("powerToLeftWheel", powerToLeftWheel);
telemetry.addData("powerToRightWheel", powerToRightWheel);
telemetry.update();
robot.LeftWheel.setPower(powerToLeftWheel);
robot.RightWheel.setPower(powerToRightWheel);
}
}
}
| e3555457d308a7411bc4f1cb844785432e085803 | [
"Java"
] | 1 | Java | Rofaze21/Autonomous2016 | 8cc8828540458a351b472432b3037d39b642b4dd | cb458e84727d62a0d9db3b3db687fbb0325db3c0 |
refs/heads/master | <repo_name>renanpablocruz/Lab6_RenanCruz<file_sep>/Fragment_RecyclerViewAdapter.java
package com.renancruz.lab6_renancruz;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import java.util.Map;
/**
* Created by <NAME> on 2/13/2015.
*/
public class Fragment_RecyclerViewAdapter extends RecyclerView.Adapter<Fragment_RecyclerViewAdapter.ViewHolder>{
private List<Map<String, ?>> mDataset;
private Context mContext;
private Integer mItemLayout;
public interface onItemClickListener{
public void onItemClicked(View v, int position);
public void onItemLongClick(View v, int position);
public void onOverflowMenuClick(View v, final int position);
}
private onItemClickListener vListener;
public void setOnItemClickListener(onItemClickListener listener){
vListener = listener;
}
public Fragment_RecyclerViewAdapter(Context myContext, List<Map<String, ?>> myDataset, Integer myItemLayout) {
mContext = myContext;
mDataset = myDataset;
mItemLayout = myItemLayout;
}
@Override
public Fragment_RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v;
if(mItemLayout == 1){ // linear - 0, grid - 1
v = LayoutInflater.from(parent.getContext())
.inflate(R.layout.cardview_grid, parent, false);
} else{
v = LayoutInflater.from(parent.getContext())
.inflate(R.layout.cardview, parent, false);
}
ViewHolder vh = new ViewHolder(v);
return vh;
}
@Override
public void onBindViewHolder(ViewHolder holder, int i) {
Map<String, ?> movie = mDataset.get(i);
holder.bindMovieData(movie);
}
@Override
public int getItemCount() {
return mDataset.size();
}
public class ViewHolder extends RecyclerView.ViewHolder{
public ImageView vIcon;
public TextView vTitle;
public TextView vDescription;
public TextView vRating;
public ImageView vMenu;
public ViewHolder(View v) {
super(v);
v.setTag(this);
vIcon = (ImageView) v.findViewById(R.id.icon);
if(mItemLayout == 0){
vTitle = (TextView) v.findViewById(R.id.title);
vDescription = (TextView) v.findViewById(R.id.description);
vRating = (TextView) v.findViewById(R.id.rating);
vMenu = (ImageView) v.findViewById(R.id.overflow_button);
}
v.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(vListener != null) vListener.onItemClicked(v, getPosition());
}
});
v.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
if(vListener != null) vListener.onItemLongClick(v, getPosition());
return true; // TODO: is this right?
}
});
if(vMenu != null){
vMenu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(vListener != null){
vListener.onOverflowMenuClick(v, getPosition());
}
}
});
}
}
public void bindMovieData(Map<String, ?> movie){
vIcon.setImageResource((Integer) movie.get("image"));
if(mItemLayout == 0){
vTitle.setText((String) movie.get("name"));
vDescription.setText((String) movie.get("description"));
vRating.setText(String.valueOf(movie.get("rating")));
}
}
}
}
<file_sep>/Fragment_RecyclerView.java
package com.renancruz.lab6_renancruz;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.view.ActionMode;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import java.util.HashMap;
public class Fragment_RecyclerView extends Fragment {
private RecyclerView mRecyclerView;
private RecyclerView.LayoutManager mLayoutManager;
private Fragment_RecyclerViewAdapter mRecyclerViewAdapter;
private MovieData movieData;
private OnListItemSelectedListener mListener;
public Fragment_RecyclerView() {
// Required empty public constructor
}
public static Fragment_RecyclerView newInstance(int lm){
Fragment_RecyclerView fragment = new Fragment_RecyclerView();
Bundle args = new Bundle();
args.putInt("lm", lm);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
movieData = new MovieData();
setHasOptionsMenu(true);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
final View rootView = inflater.inflate(R.layout.fragment_recycler_view, container, false);
mRecyclerView = (RecyclerView) rootView.findViewById(R.id.card_list);
mRecyclerView.setHasFixedSize(true);
if(this.getArguments() != null && (int)this.getArguments().get("lm") == 1){
mLayoutManager = new GridLayoutManager(getActivity(), 3);
mRecyclerViewAdapter = new Fragment_RecyclerViewAdapter(getActivity(), movieData.getMoviesList(), 1);
} else{
mLayoutManager = new LinearLayoutManager(getActivity());
mRecyclerViewAdapter = new Fragment_RecyclerViewAdapter(getActivity(), movieData.getMoviesList(), 0);
}
mRecyclerView.setLayoutManager(mLayoutManager);
mRecyclerView.setAdapter(mRecyclerViewAdapter);
mRecyclerViewAdapter.setOnItemClickListener(new Fragment_RecyclerViewAdapter.onItemClickListener() {
@Override
public void onItemClicked(View v, int position) {
mListener.onListItemSelected(position, movieData.getItem(position));
}
@Override
public void onItemLongClick(View v, int position) {
getActivity().startActionMode(new ActionBarCallBack(position));
}
@Override
public void onOverflowMenuClick(View v, final int position) {
PopupMenu popup = new PopupMenu(getActivity(), v);
MenuInflater inflater = popup.getMenuInflater();
popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem menuItem) {
switch(menuItem.getItemId()){
case R.id.item_duplicate:
movieData.addItem(position+1, (HashMap) ((HashMap) movieData.getItem(position).clone()));
mRecyclerViewAdapter.notifyItemInserted(position+1);
return true;
case R.id.item_delete:
movieData.removeItem(position);
mRecyclerViewAdapter.notifyItemRemoved(position);
return true;
default:
return false;
}
}
});
inflater.inflate(R.menu.contextual_or_popup_menu, popup.getMenu());
popup.show();
}
});
return rootView;
}
@Override
public void onAttach(Activity activity) {
super.onAttach(activity);
try{
mListener = (OnListItemSelectedListener) activity;
} catch (ClassCastException e){
throw new ClassCastException(activity.toString()
+ "must implement a listener");
}
}
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
inflater.inflate(R.menu.menu_fragment__recycler_view, menu);
SearchView search = (SearchView) menu.findItem(R.id.action_search).getActionView();
if (search != null){
search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
int position = movieData.findFirst(query);
if(position >= 0)
mRecyclerView.scrollToPosition(position);
return true;
}
@Override
public boolean onQueryTextChange(String s) {
return false;
}
});
}
super.onCreateOptionsMenu(menu, inflater);
}
public interface OnListItemSelectedListener {
public void onListItemSelected(int position, HashMap<String, ?> movie);
}
class ActionBarCallBack implements ActionMode.Callback{
int position;
public ActionBarCallBack(int position){this.position = position;}
@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
switch(item.getItemId()){
case R.id.item_delete:
movieData.removeItem(position);
mRecyclerViewAdapter.notifyItemRemoved(position);
mode.finish();
break;
case R.id.item_duplicate:
movieData.addItem(position+1, (HashMap) ((HashMap) movieData.getItem(position)).clone());
mRecyclerViewAdapter.notifyItemInserted(position+1);
mode.finish();
break;
default:
break;
}
return false;
}
@Override
public void onDestroyActionMode(ActionMode mode) {
}
@Override
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
mode.getMenuInflater().inflate(R.menu.contextual_or_popup_menu, menu);
return true;
}
@Override
public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
HashMap hm = (HashMap) movieData.getItem(position);
mode.setTitle((String) hm.get("name"));
return false;
}
}
}
<file_sep>/Activity_RecyclerView.java
package com.renancruz.lab6_renancruz;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import java.util.HashMap;
public class Activity_RecyclerView extends ActionBarActivity
implements Fragment_RecyclerView.OnListItemSelectedListener{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_activity__recycler_view);
if(savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.replace(R.id.item_list, new Fragment_RecyclerView())
.commit();
}
}
@Override
public void onListItemSelected(int position, HashMap<String, ?> movie) {
getSupportFragmentManager().beginTransaction()
.replace(R.id.item_list, Fragment_DetailView.newInstance(movie))
.addToBackStack(null)
.commit();
}
}
| 77bc91659dd6be3ae4c35debfa2c8f205f7a14d6 | [
"Java"
] | 3 | Java | renanpablocruz/Lab6_RenanCruz | dfad4e524e95aafeaf02c15382af85767bba574d | c130dc2d36773a0f543e44670a1eb8ec5f5c87d4 |
refs/heads/master | <file_sep>package observer.proxy;
import observer.event.EventListener;
import observer.event.EventType;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class MouseCallBackProxy extends EventListener implements InvocationHandler {
private ActionInterface actionInterface;
public MouseCallBackProxy(ActionInterface actionInterface) {
this.actionInterface = actionInterface;
}
public ActionInterface getInstance(){
Class clazz = this.actionInterface.getClass();
ActionInterface object = (ActionInterface)Proxy.newProxyInstance(clazz.getClassLoader(),clazz.getInterfaces(),this);
return object;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
method.invoke(actionInterface,args);
String methodName = method.getName();
//继承使用方法调用,或者使用if判断去调用观察者的方法
trigger(EventType.valueOf(methodName));
return null;
}
}
<file_sep>package observer.observer;
import observer.event.EventListener;
public class Subject extends EventListener {
public void add(){
System.out.println("触发了添加事件");
this.trigger(SubjectType.ADD);
}
public void delete(){
System.out.println("触发了删除事件");
this.trigger(SubjectType.DELETE);
}
}
<file_sep>package strategy.way;
public enum NoticeEnum {
MESSAGE(new MessageWay()),EMAIL(new EmailWay()),SMS(new SmsWay());
private NoticeWay noticeWay;
NoticeEnum(NoticeWay noticeWay) {
this.noticeWay = noticeWay;
}
public NoticeWay getNoticeWay() {
return noticeWay;
}
}
<file_sep>package observer.event;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
/**
* 注册Event监听器
*/
public class EventListener {
protected Map<Enum,Event> eventMap = new HashMap<>();
public void addListener(Enum eventType){
eventMap.put(eventType,new Event());
}
public void addListener(Enum eventType,Object target,Method callback){
eventMap.put(eventType,new Event(target,callback));
}
protected void trigger(Enum eventType){
if(!eventMap.containsKey(eventType)){return;}
Event event = eventMap.get(eventType);
event.setTrigger(eventType.toString());
event.setSource(this);
event.setTime(System.currentTimeMillis());
try {
event.getCallback().invoke(event.getTarget(),event);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}
}
<file_sep>package factory.func;
import factory.Product;
/**
* @author jim
* @create 2018-03-11 15:07
**/
public interface ProductFactory {
public Product getProduct();
}
<file_sep>package delegate;
/**
* @author jim
* @create 2018-03-21 19:20
**/
public class Joy implements ProductManager {
public void finishTempTask(String taskContent) {
System.out.printf("Joy 完成任务"+taskContent);
}
}
<file_sep>package proxy.staticproxy;
public class Jim implements Person {
@Override
public void getJob() {
System.out.println("30k");
System.out.println("前景好");
}
}
<file_sep>package observer.mouse;
import observer.event.EventListener;
import observer.event.EventType;
public class Mouse extends EventListener {
public void click(){
System.out.println("鼠标被单击");
this.trigger(EventType.onClick);
}
public void doubleClick(){
System.out.println("鼠标被双击");
this.trigger(EventType.onDoubleClick);
}
}
<file_sep>package decoration;
public interface LoginServiceWraper extends LoginService {
public void loginForQQ();
}
<file_sep>package observer.observer;
import observer.event.Event;
import java.util.EventListener;
public class Observer implements EventListener {
public void add(Event e){
System.out.println("添加之后的响应");
}
public void delete(Event e){
System.out.println("删除之后的响应");
}
}
<file_sep>package factory.abstra;
import factory.Product;
import factory.func.NeccTeamFactory;
import factory.func.UNengliTeamFactory;
/**
* @author jim
* @create 2018-03-11 15:27
**/
public class ProductFactoryImpl extends ProductFactory{
Product getUnnegli() {
return new UNengliTeamFactory().getProduct();
}
Product getNecc() {
return new NeccTeamFactory().getProduct();
}
}
<file_sep>package template;
import template.dao.MemberDao;
public class MemberDaoTest {
public static void main(String[] args) {
MemberDao dao = new MemberDao();
dao.queryList(null);
}
}
<file_sep>package singleton.register;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class ChinaMap {
private ChinaMap(){}
private static Map<String,Object> map = new ConcurrentHashMap<String,Object>();
public static Object getInstance(String name){
if(!map.containsKey(name)){
Object obj = null;
try {
obj = Class.forName(name).newInstance();
map.putIfAbsent(name,obj);
} catch (Exception e) {
e.printStackTrace();
}
return obj;
}else{
return map.get(name);
}
}
}
<file_sep>package factory;
/**
* @author jim
* @create 2018-03-11 15:08
**/
public class Product {
String name;
Long startDevelopDate;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Long getStartDevelopDate() {
return startDevelopDate;
}
public void setStartDevelopDate(Long startDevelopDate) {
this.startDevelopDate = startDevelopDate;
}
@Override
public String toString() {
return name+":"+startDevelopDate;
}
}
<file_sep>package singleton.Lazy;
import java.lang.reflect.Constructor;
/**
* @author jim
* @create 2018-03-11 15:56
**/
public class Test {
public static void main(String[] args) {
// int count = 1000;
// final CountDownLatch latch = new CountDownLatch(count);
// long start = System.currentTimeMillis();
// for(int i=0;i<count;i++){
// new Thread(){
// @Override
// public void run() {
// try{
//
// try {
// // 阻塞
// // count = 0 就会释放所有的共享锁
// // 万箭齐发
// latch.await();
// }catch(Exception e){
// e.printStackTrace();
// }
// LazyChina china = LazyChina.getInstance();
// System.out.println(System.currentTimeMillis() + ":" + china);
//
// }catch (Exception e){
// e.printStackTrace();
// }
// }
// }.start(); //每循环一次,就启动一个线程,具有一定的随机性
// latch.countDown();
// }
// long end = System.currentTimeMillis();
//
// System.out.println("总耗时:" + (end - start));
//很无聊的情况下,进行破坏
Class<?> clazz = LazyChina.class;
//通过反射拿到私有的构造方法
Constructor c = null;
try {
c = clazz.getDeclaredConstructor(null);
//强制访问
c.setAccessible(true);
//暴力初始化
Object o1 = c.newInstance();
System.out.printf(o1.toString());
//调用了两次构造方法,相当于new了两次
//犯了原则性问题,
Object o2 = c.newInstance();
// System.out.printf(o2.toString());
System.out.println(o1 == o2);
} catch (Exception e) {
e.printStackTrace();
}
}
}
<file_sep>package strategy.way;
import strategy.Content;
public interface NoticeWay {
public NoticeResult notice(Content content);
}
<file_sep>package prototype.deep;
import java.io.Serializable;
public class Ent implements Serializable {
public String name;
public Double registerCoust;
}
<file_sep>package proxy.custom;
import proxy.staticproxy.Person;
public class StartBusinessTest {
public static void main(String[] args) {
Person person = (Person) new StartBusiness().getInstance(new Jim());
person.getJob();
}
}
<file_sep>package delegate;
/**
* @author jim
* @create 2018-03-21 19:19
**/
public interface ProductManager {
void finishTempTask(String taskContent);
}
<file_sep>package proxy.custom;
import proxy.staticproxy.Person;
import java.lang.reflect.Method;
public class StartBusiness implements MyInvocationHandler {
private Person person;
public Object getInstance(Person person){
this.person = person;
Class clazz = person.getClass();
Object object = MyProxy.newProxyInstance(new MyClassLoader(),clazz.getInterfaces(),this);
return object;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
System.out.println("匹配优秀公司");
Object obj = method.invoke(this.person,args);
System.out.println("面试");
return obj;
}
}
<file_sep>package singleton.Hungry;
/**
* @author jim
* @create 2018-03-11 15:52
**/
/**
* 1、线程安全-静态变量初始化对象
* 2、缺点:如果没有用户使用该单例对象,那么就存在资源的浪费
*/
public class China {
private China(){}
private static final China china = new China();
public static final China getInstance(){
return china;
}
}
<file_sep>package factory.func;
import factory.Necc;
import factory.Product;
/**
* @author jim
* @create 2018-03-11 15:19
**/
public class NeccTeamFactory implements ProductFactory {
public Product getProduct() {
return new Necc();
}
}
<file_sep>package observer.proxy;
import observer.event.Event;
import observer.event.EventType;
import observer.mouse.MouseCallBack;
import java.lang.reflect.Method;
public class ProxyTest {
public static void main(String[] args) throws NoSuchMethodException {
ActionInterface mouse = new Mouse();
MouseCallBack callBack = new MouseCallBack();
Method method = callBack.getClass().getMethod("onClick", Event.class);
MouseCallBackProxy mouseProxy = new MouseCallBackProxy(mouse);
mouseProxy.addListener(EventType.onClick,callBack,method);
ActionInterface proxyInterface = mouseProxy.getInstance();
proxyInterface.onClick();
}
}
<file_sep>package decoration;
public class LoginQQWrapter implements LoginServiceWraper {
private LoginService loginService;
public LoginQQWrapter(LoginService loginService) {
this.loginService = loginService;
}
@Override
public void login(String account, String pwd) {
loginService.login(account,pwd);
}
//扩展的方法
@Override
public void loginForQQ() {
}
}
<file_sep>package proxy.staticproxy;
public class PersonTest {
public static void main(String[] args) {
LieTou lieTou = new LieTou(new Jim());
lieTou.findJob();
}
}
<file_sep>package strategy.way;
import strategy.Content;
public class MessageWay implements NoticeWay {
@Override
public NoticeResult notice(Content content) {
System.out.println("站内信发送");
return new NoticeResult(200,content);
}
}
<file_sep>package observer.mouse;
import observer.event.Event;
import observer.event.EventType;
import java.lang.reflect.Method;
public class MouseTest {
public static void main(String[] args) throws NoSuchMethodException {
/**
* 1、Mouse对象是一个被观察对象,继承自监听器对象,当方法被调用时,触发监听器事件响应方法
* 2、监听器对象维护一个监听事件的容器,可以向监听器对象上添加监听事件
* 3、监听器对象拥有触发事件响应方法
*/
Mouse mouse = new Mouse();
/**
* 3、MouseCallBack对象是一个观察对象,观察对象的方法在被观察对象的事件被触发时调用
*/
MouseCallBack callBack = new MouseCallBack();
Method onClick = MouseCallBack.class.getMethod("onClick", Event.class);
/**
* 抽象思路
* 1、事件对象
* 事件的被观察者
* 事件的观察者
* 事件的观察者的回调方法
* 事件的执行时间
* 事件的类型
* 2、事件类型对象-枚举
* 3、被观察者对象
* 被观察的方法
* 4、被观察者和观察者联系对象-监听器对象
* 1)、当被观察者对象的方法被触发时,观察者对象的方法如何被调用到
* 2)、监听器对象维护事件对象容器,从事件容器中取出对应的事件对象,回调事件对象上的被观察者对象
* 3)、被观察对象继承监听器对象
* 5、观察者对象
*/
mouse.addListener(EventType.onClick,callBack,onClick);
mouse.click();
}
}
| f740879cfe41fb50b12d71500bb0fb30a320c6af | [
"Java"
] | 27 | Java | 1290414968/jim-pattern | 3d11f3851399da7fafdedc605a66adb87ab3c299 | 856192893c7f322e680095c08a7b61c2dbc4ba84 |
refs/heads/master | <repo_name>emuddled/155_Homework6<file_sep>/Part1/Program.cs
/// Homework No. 6 Exercise Part 1
/// File Name: Count
/// @author: <NAME>
/// Date: Oct 6, 2020
///
/// Problem Statement: Define a class called Counter whose objects count things. An object of this class records
/// a count that is a nonnegative integer. Include methods to set the counter to 0, to increase the count by 1, and
/// to decrease the count by 1. Include a getter method that returns the current count value and a method that outputs
/// the count to the screen. There should be no input method or other setter methods. Include a ToString methods
/// and a Equals method. Write a driver program that include a menu to interactively test each method in your program.
///
/// Overall Plan:
/// 1)Build Counter class with required methods
/// 2)Write a driver program that tests out the counter by looping through the menu
///
///
using System;
namespace Part1
{
class Program
{
static void Main(string[] args)
{
Counter count = new Counter();
int menuControl = 1;
while (menuControl != 0)
{
Console.WriteLine(count.ToString());
Console.WriteLine("Press 1 to increment, 2 to decrement, 3 to set to 0, 4 to Print the count");
menuControl = Convert.ToInt32(Console.ReadLine());
switch (menuControl)
{
case 0:
Console.WriteLine("Bye!");
break;
case 1:
count.Increment();
break;
case 2:
count.Decrement();
break;
case 3:
count.SetTo0();
break;
case 4:
count.PrintCount();
break;
default:
break;
}
}
}
public class Counter
{
// Variables
private int currentCount;
// Constructors
public Counter()
{
currentCount = 0;
}
public Counter(int startingCount)
{
currentCount = startingCount;
}
//Mutators
public void Increment()
{
currentCount++;
}
public void Decrement()
{
if (currentCount > 0)
{
currentCount--;
}
}
public void SetTo0()
{
currentCount = 0;
}
//Getter
public int GetCount()
{
return currentCount;
}
//Other methods
public void PrintCount()
{
Console.WriteLine(currentCount);
}
public Boolean Equals(Counter other)
{
return this.currentCount == other.currentCount;
}
public String ToString()
{
return "The current count is: " + currentCount;
}
}
}
}
| 5f517b5035c78c26739d4ff4de309752410dcd45 | [
"C#"
] | 1 | C# | emuddled/155_Homework6 | 2f497c4fc2cfb381c1bde292fb98557c597d983a | fa682409c778c69bd943525f6beeba56b1e103cf |
refs/heads/master | <file_sep>#include <iostream>
#include <iomanip>
#include <cmath>
//Golenkov lab 1
int main()
{
std::cout << "Hello" << std::endl;
//zada4a 1
double x;
std::cout << "vvedi x" << std::endl;
std::cin >> x;
double x_rez=3*x*x*x+2*x*x-1;
std::cout << std::fixed;
std::cout.precision(3);
std::cout << x_rez << std::endl;
//zada4a 2
unsigned int a;
std::cout << "vvedi a" << std::endl;
std::cin >> a;
int a_rez=4*abs(a)-sqrt(a+2);
std::cout << std::showpos<< a_rez << std::endl;
//zada4a 3
bool m ,n ,l, k;
std::cout << "vvedi k l m n" << std::endl;
std::cin >> k >> l >> m >> n;
bool rez_3 = m ^ n && (!l || k);
std::cout << std::boolalpha << rez_3 << std::endl;
//if (rez_3) std::cout << "true"<<std::endl ; else std::cout <<"false"<<std::endl; ce kostil
//zada4a 4
short int b;
std::cout << "vvedi b" << std::endl;
std::cin >> b;
int b_rez = pow(2, b);
std::cout << std::dec << std::noshowpos << b_rez << std::endl;
std::cout << std::oct << b_rez << std::endl;
//zada4a 5
unsigned short int c, d, e, f;
std::cout << "vvedi c d e f" << std::endl;
std::cin >> c >> d >> e >> f;
unsigned short int rez_5 = f | ~e & (~c ^ d);
std::cout <<std::hex << std::setw(2)<< std::showbase << rez_5 << std::endl;
return 0;
}
<file_sep>#include <iostream>
#include <iomanip>
#include <cmath>
//Golenkov lab 1
int main()
{
std::cout << "Hello" << std::endl;
//zada4a 1
double x;
std::cout << "vvedi x" << std::endl;
std::cin >> x;
double x_rez = 3 * pow(x, 3) + 2 * pow(x,2) - 1;
std::cout << std::fixed;
std::cout.precision(3);
std::cout << x_rez << std::endl;
//zada4a 2
int a;
std::cout << "vvedi a" << std::endl;
std::cin >> a;
int a_rez = 4 * abs(a) - sqrt(a + 2);
std::cout << std::showpos << a_rez << std::endl;
//zada4a 3
bool m, n, l, k;
std::cout << "vvedi k l m n" << std::endl;
std::cin >> k >> l >> m >> n;
bool rez_3 = m xor n && (!l || k);
std::cout << std::boolalpha << rez_3 << std::endl;
//zada4a 4
short int b;
std::cout << "vvedi b" << std::endl;
std::cin >> b;
int b_rez = pow(2, b);
std::cout << std::dec << std::noshowpos << b_rez << std::endl;
std::cout << std::oct << b_rez << std::endl;
//zada4a 5
unsigned short int c, d, e, f;
std::cout << "vvedi c d e f" << std::endl;
std::cin >> c >> d >> e >> f;
unsigned short int rez_5 = f | ~e & (~c ^ d);
//int r = 10;
std::cout << std::setw(6) << std::setfill('0') << std::internal << std::hex << std::showbase << rez_5 << std::endl;
//std::cout << std::setw(6) << std::setfill('0') << std::internal << std::hex << std::showbase << r << std::endl;
return 0;
}
| fc6aecd7593e037ffa38fe629829ce3d22c787dc | [
"C++"
] | 2 | C++ | Alex1505Gold/lab1 | 4a4011e94922a7dc675ae53ea2d787e35ee428ba | f0255a15fd546d83b44c88c4ce50a8006bb8670d |
refs/heads/master | <repo_name>AntonioMC12/Practicas_Uni<file_sep>/segundo²/SO/Entrega_P1yP2/entrega-so.c
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <time.h>
#define N 10
struct sum_array {
int * array;
int initial_position;
int final_position;
};
void * addArray(void* arguments){
struct sum_array *args = (struct sum_array *)arguments;
int* partialResult = calloc(1, sizeof(int));
if (partialResult == NULL){
perror("Fallo al reservar memoria para el resultado parcial");
exit(EXIT_FAILURE);
}
for (int vectorPosition = args -> initial_position; vectorPosition < args -> final_position; vectorPosition++){
*partialResult = *partialResult + *(args -> array+vectorPosition);
}
printf("Thread Array : [");
for( int i = args -> initial_position; i<args -> final_position; i++){
printf(" %d ",args -> array[i] );
}
printf("]\n");
printf("partialResult: %d \n", *partialResult);
pthread_exit(partialResult);
}
int main(int argc, char* argv[]){
if (argc != 2){
perror("El uso del programa es: ./a.out <numero de hilos>\nEX: ./a.out 2");
exit(EXIT_FAILURE);
}
// Generate array with argv elements to store partial results
int** partial_array = calloc(atoi(argv[1]), sizeof(int*));
if ( partial_array == NULL ){
perror("Fallo al reservar memoria para el vector de enteros");
exit(EXIT_FAILURE);
}
// Generate random array with N elements
int* original_vector = calloc(N, sizeof(int));
if ( original_vector == NULL ){
perror("Fallo al reservar memoria para el vector de enteros");
exit(EXIT_FAILURE);
}
// Fill original array with random values
srand(time(NULL)) ;
for(int i=0; i<N;i++){
original_vector[i] = rand()%9;
}
for(int i=0; i<N;i++){
printf("%d ",original_vector[i]);
}
printf("\n");
// Generate N threads, given by argv[1]
pthread_t* thread_array = calloc(atoi(argv[1]), sizeof(pthread_t));
if (thread_array == NULL){
perror("Fallo al reservar memoria para el vector de threads");
exit(EXIT_FAILURE);
}
int parts = N/atoi(argv[1]); // if use 5 parts, each array should own 2 array
printf("parts: %d\n",parts );
struct sum_array * args_array = calloc(atoi(argv[1]), sizeof(struct sum_array ));
if (args_array == NULL){
perror("Fallo al reservar memoria para el vector de argumentos");
exit(EXIT_FAILURE);
}
// Need to check if all the values is distributed, if not, the las thread will catch
int distributed_values = 0;
for (int i = 0; i<atoi(argv[1]); i++){
distributed_values = ((( i * parts ) + parts) - (i * parts)) + distributed_values;
struct sum_array thread_number_array = {NULL, 0, 0};
thread_number_array.array = original_vector ;
thread_number_array.initial_position = i * parts;
thread_number_array.final_position = ( i * parts ) + parts;
// if the last struct don't distribute all values, the final limit must be move to end of array
if ( (i == atoi(argv[1])-1 ) && (distributed_values != 10)){
thread_number_array.final_position = 10;
}
args_array[i] =thread_number_array;
}
for (int i = 0; i<atoi(argv[1]); i++){
pthread_create(&thread_array[i], NULL, (void*) addArray, (void**)&args_array[i]);
}
for( int i = 0; i<atoi(argv[1]); i++){
pthread_join(thread_array[i], (void*) &partial_array[i]);
}
int final_result = 0;
for (int i = 0; i<atoi(argv[1]); i++){
final_result = *partial_array[i] + final_result;
}
printf("Final result: %d\n", final_result);
free(args_array);
free(original_vector);
free(thread_array);
exit(EXIT_SUCCESS);
}
<file_sep>/primero/mp_c/practica/01_Punteros/cuentaCaracteres.c
#include <stdio.h>
#define TOPE 30
int main()
{
char cadena[TOPE] = "Hola";
int longitud;
char* ptr;
/*Primera version, con indices*/
for(longitud=0; cadena[longitud]!='\0'; longitud++);
//No hacemos nada, solo nos interesa
//incrementar el valor de longitud
printf("\nLongitud (primera version): %d", longitud);
/*Segunda version, con un puntero para recorrer el vector*/
for(ptr=cadena; *ptr!='\0'; ptr++);
printf("\nLongitud (segunda version): %d", ptr-cadena);
return (0);
}
<file_sep>/segundo/ED_practicas/Practica-1-usuario/operadoresExternosMonomios.cpp
/*!
\file operadoresExternosMonomios.cpp
\brief Ficheros con el código de los operadores externos de la clase Monomio
*/
// Ficheros de cabecera
#include <iostream>
#include "operadoresExternosMonomios.hpp"
// Se incluyen los operadores sobrecargados dentro del espacio de nombres ed
namespace ed
{
// Operadores de igualdad
// COMPLETAR
bool operator==(ed::Monomio const & m1, ed::Monomio const & m2)
{
if((abs(m1.getCoeficiente() - m2.getCoeficiente() )) && (m1.getGrado() == m2.getGrado())){
return true;
}
else { return false; }
}
bool operator==(ed::Monomio const & m1, double const valor){
if(abs(m1.getCoeficiente() - valor) && (m1.getGrado() == 0)){
return true;
}
else{ return false; }
}
bool operator==(double const valor, ed::Monomio const & m1){
if(abs(m1.getCoeficiente() - valor) && (m1.getGrado() == 0)){
return true;
}
else{ return false; }
}
// Operadores de desigualdad
// COMPLETAR
bool operator!=(ed::Monomio const & m1, ed::Monomio const & m2){
if (abs((m1.getCoeficiente() - m2.getCoeficiente()) <= COTA_ERROR) || m1.getGrado() != m2.getGrado()) {
return true;
}
else{ return false; }
}
bool operator!=(double const valor, ed::Monomio const & m1){
if((m1.getGrado() != 0) || (valor != m1.getCoeficiente())){
return true;
}
else{ return false; }
}
bool operator!=(ed::Monomio const & m1, double const valor){
if((m1.getGrado() != 0) || (valor != m1.getCoeficiente())){
return true;
}
else{ return false; }
}
// COMPLETAR LOS OTROS OPERADORES DE DESIGUALDAD
////////////////////////////////////////////////////////////
// Operadores unarios prefijos
// COMPLETAR
ed::Monomio & operator+(ed::Monomio const & m)
{
// COMPLETAR Y MODIFICAR
// Se crea un nuevo objeto
ed::Monomio *nuevo = new ed::Monomio();
// Se devuelve el resultado
return *nuevo;
}
ed::Monomio & operator- (ed::Monomio const &m){
// Se crea un nuevo objeto
ed::Monomio *nuevo = new ed::Monomio();
*nuevo = m;
nuevo->setCoeficiente(-(nuevo->getCoeficiente()));
// Se devuelve el resultado
return *nuevo;
}
// COMPLETAR EL OTRO OPERADOR UNARIO PREFIJO: resta
////////////////////////////////////////////////////////////
// Operadores aritméticos binarios
// Suma
ed::Monomio & operator+ (ed::Monomio const &m1, ed::Monomio const &m2){
// Se crea un nuevo objeto
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente(m1.getCoeficiente() + m2.getCoeficiente());
nuevo->setGrado(m1.getGrado());
// Se devuelve el resultado
return *nuevo;
}
////////////
// Resta
ed::Monomio & operator- (ed::Monomio const &m1, ed::Monomio const &m2){
// Se crea un nuevo objeto
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente(m1.getCoeficiente() - m2.getCoeficiente());
nuevo->setGrado(m1.getGrado());
// Se devuelve el resultado
return *nuevo;
}
//////////////////
// Multiplicación
ed::Monomio & operator* (ed::Monomio const &m1, ed::Monomio const &m2){
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente((m1.getCoeficiente())*(m2.getCoeficiente()));
nuevo->setGrado(m1.getGrado() + m2.getGrado());
return *nuevo;
}
ed::Monomio & operator* (ed::Monomio const &m, double const valor){
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente(m.getCoeficiente()*valor);
nuevo->setGrado(m.getGrado());
return *nuevo;
}
ed::Monomio & operator* (double const valor, ed::Monomio const &m){
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente(m.getCoeficiente()*valor);
nuevo->setGrado(m.getGrado());
return *nuevo;
}
////////////
// División
ed::Monomio & operator/ (ed::Monomio const &m1, ed::Monomio const &m2){
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente((m1.getCoeficiente()/m2.getCoeficiente()));
nuevo->setGrado(m1.getGrado() - m2.getGrado());
return *nuevo;
}
ed::Monomio & operator/ (ed::Monomio const &m, double const valor){
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente(m.getCoeficiente()/valor);
nuevo->setGrado(m.getGrado());
return *nuevo;
}
ed::Monomio & operator/ (double const valor, ed::Monomio const &m){
ed::Monomio *nuevo = new ed::Monomio();
nuevo->setCoeficiente(m.getCoeficiente()/valor);
nuevo->setGrado(m.getGrado());
return *nuevo;
}
/////////////////////////////////////////////////////////////////////////////
// Sobrecarga del operador de entrada
istream &operator>>(istream &stream, ed::Monomio &m){
int aux_Integer;
double aux_Double;
stream>>aux_Integer>>aux_Double;
stream.ignore();
m.setCoeficiente(aux_Integer);
m.setGrado(aux_Double);
// Se devuelve el flujo de entrada
return stream;
}
// Sobrecarga del operador de salida
ostream &operator<<(ostream &stream, ed::Monomio const &m) {
stream<<m.getCoeficiente()<<" "<<m.getGrado();
return stream;
}
} // namespace ed
<file_sep>/segundo/poo/p2/persona.cc
//persona.cc
//the code for the funtion of Persona
#include <string>
#include "persona.h"
Persona::Persona(const std::string DNI, const std::string nombre, const std::string apellidos, const int edad, const std::string direccion, const
std::string localidad , const std::string provincia, const std::string pais){
//the body of the class
DNI_ = DNI;
nombre_ = nombre;
apellidos_ = apellidos;
edad_ = edad;
direccion_ = direccion;
localidad_ = localidad;
provincia_ = provincia;
pais_ = pais;
}
void Persona::setDNI(std::string s){
DNI_ = s;
}
void Persona::setNombre(std::string s){
nombre_ = s;
}
void Persona::setApellidos(std::string s){
apellidos_ = s;
}
void Persona::setDireccion(std::string s){
direccion_ = s;
}
void Persona::setLocalidad(std::string s){
localidad_ = s;
}
void Persona::setProvincia(std::string s){
provincia_ = s;
}
void Persona::setPais(std::string s){
pais_ = s;
}
bool Persona::setEdad(int n){
if (n > -1) {
edad_ = n ;
return true;
}
return false;
}
std::string Persona::getDNI(){
return DNI_;
}
std::string Persona::getNombre(){
return nombre_;
}
std::string Persona::getApellidos(){
return apellidos_;
}
std::string Persona::getDireccion(){
return direccion_;
}
std::string Persona::getLocalidad(){
return localidad_;
}
std::string Persona::getProvincia(){
return provincia_;
}
std::string Persona::getPais(){
return pais_;
}
int Persona::getEdad(){
return edad_;
}
std::string Persona::getApellidosyNombre(){
std::string apellidosynombre;
apellidosynombre = apellidos_ + ", " + nombre_;
return apellidosynombre;
}
bool Persona::mayor(){
if (edad_ >= 18) {
return true;
}
return false;
}
<file_sep>/primero/mp_c/practica/practica_2/ej4/funciones.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int ** reservarMemoria(int nFil, int nCol){
//haccemos el codigo para reservar memoria dinamica para la matriz
int **matriz;
matriz = (int **)malloc (nFil*sizeof(int *));
for (int i=0;i<nFil;i++)
matriz[i] = (int *) malloc (nCol*sizeof(int));
}
void rellenaMatriz(int **matriz, int nFil, int nCol){
srand(time(NULL));
for(int i = 0 ; i < nCol ; i++){
for(int j = 0 ; j < nFil ; j++){
matriz[i][j] = rand()%50;
}
}
}
void imprimeMatriz(int **matriz, int nFil, int nCol){
for(int i = 0 ; i < nFil ; i++){
for(int j = 0 ; j < nCol ; j++){
printf("%d\n",matriz[i][j] );
printf("\n");
}
}
}
/*int *minCol(int *(matriz)[5], int nFil, int nCol){
int* vector = (int*)malloc(nCol*sizeof(int));
int min;
for (int i = 0; i < nCol ; i++){
min = matriz[0][i];
//min = *(matriz + i);
for (int j = 1 ; j < nFil ; j++){
if (matriz[i][j] < min);
//if (*((matriz)+j) < min) {
min = matriz[i][j];
//min = *((matriz) + j));
}
vector[i] = min;
} //*(vector + i) = min;
return vector;
}
*/
void liberarMemoria(int **matriz, int nFil){
for( int i = 0 ; i < nFil ; i++){
free (matriz[i]);
}
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_8_bis/linuxWin.mak
#SISTEMA = _WINDOWS_
#SISTEMA = _LINUX_
ejecutable.exe: linuxWin.c
ifndef SISTEMA
@echo Error: constante SISTEMA sin definir
@echo "utilice en windows: make -f linuxWin.mak SISTEMA=_WINDOWS_"
@echo "utilice en linux: make -f linuxWin.mak SISTEMA=_LINUX_"
else
gcc -D$(SISTEMA) linuxWin.c -o ejecutable.exe
endif
<file_sep>/primero/mp_c/practica/practica_2/ej2/funciones.c
#include <stdio.h>
#include "funciones.h"
#include <time.h>
#include <stdlib.h>
//esta funcion distribuye las cifras de los vectores en vector1 y vector2
void returnvectores(int *vector, int longi,int num){
//int* vmin;
//int* vmax;
for(int i = 0, j = 0 ; i < longi ; i++){
if (*(vector + i) < num) {
*(vmin + j) = *(vector + i);
j++;
}
}
for(int i = 0, j = 0 ; i < longi ; i++){
if (*(vector + i) > num) {
*(vmax + j) = *(vector + i);
j++;
}
}
}
//funcion para imprimir el vector
int draw_vector(int *vector,int longi){
for(int i = 0 ; i < longi ; i++ ){
printf("%d ",vector[i] );
}
printf("\n \n");
}
int randomnum(int *vector,int max){
//hacemos una funcion para llenar el vector con 20 numeros
srand (time(NULL));
for (int i=0; i < max ; i++) {
*(vector + i) = rand()%23;
}
}
<file_sep>/primero/mp_c/practica/practica_2/ej2/ej2.c
#include <stdio.h>
#include "funciones.h"
#include <time.h>
#include <stdlib.h>
int main(int argc, char const *argv[]) {
int num = 5;
int longi = 10;
int* vector;
vector = (int *) calloc(10,sizeof(int));
int **vmax;
vmax = (int **) calloc(10,sizeof(int*));
int **vmin;
vmin = (int **) calloc(10,sizeof(int*));
if (vector==NULL)
{
printf("Problemas reservando memoria");
exit (1);
}
printf("imprimimos el vector\n");
randomnum(vector, longi);
draw_vector(vector, 10);
returnvectores(vector, longi, num);
draw_vector(vmin,10);
draw_vector(vmax,10);
free(vector);
free(vmax);
free(vmin);
return 0;
}
<file_sep>/primero/mp_c/practica/practica_2/ej4/ej4.c
#include <stdio.h>
#include <stdlib.h>
#include "funciones.h"
#define Filas 3
#define Columnas 5
int main(void) {
int **matriz;
int nFil = 3;
int nCol = 3;
//reservarMemoria(nFil,nCol);
rellenaMatriz(matriz, nFil, nCol);
imprimeMatriz(matriz, nFil, nCol);
//minCol(**matriz, nFil, nCol);
//liberarMemoria(matriz, nFil);
return 0;
}
<file_sep>/segundo/S.O practicas/p2/hilos.c
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#define ITER 100
#define NHILOS 4
double counter = 0;
int Eligiendo[NHILOS];
int Numero[NHILOS];
int main()
{
pthread_t hilos[NHILOS];
int status, i, v[NHILOS];
extern double counter;
void *adder(void *);
double *r_value;
//Tenemos que inicializar los vectores para trabajar con ellos.
for (int i = 0 ; i < NHILOS ; i++){
Eligiendo[i] = 0;
Numero[i] = 0;
}
// Create NHILOS threads
for (i = 0; i < NHILOS; i++) {
v[i] = i;
if ((status = pthread_create(&hilos[i], NULL, adder, (void *) &v[i])))
exit(status);
}
// Wait threads
for (i = 0; i < NHILOS; i++) {
pthread_join(hilos[i], (void **) &r_value);
printf("Value returned by %lu thread: %lf\n", hilos[i], *r_value);
}
// Final result
fprintf(stdout, "Resultado Final = %f\n", counter);
return 0;
}
int mayor(int *number) {consumer
int nmayor = 0;
for(int i = 0; i < NHILOS; i++) {
if (Numero[i] > nmayor) {
nmayor = Numero[i];
}
}
return nmayor;
}
void *adder(void *p)
{
double contador_hilos, *to_return;
int *id = (int *) p;
extern double counter;
extern int Eligiendo[];
extern int Numero[];
//Empezamos el "algoritmo"
for (int i = 0 ; i < ITER ; i++){
Eligiendo[*id] = 1;
Numero[*id] = mayor(Numero) + 1;
Eligiendo[*id] = 0;
for(int j = 0; j < NHILOS; j++) {
while(Eligiendo[j]);
while((Numero[j] != 0) && ((Numero[j] < Numero[*id]) || ((Numero[j] == Numero[*id]) && ((j < *id)))));
}
contador_hilos = counter;
fprintf(stdout, "Thread %d: %f\n", *id, counter);
contador_hilos++;
counter = contador_hilos;
Numero[*id] = 0;
}
to_return = malloc(sizeof(double));
*to_return = counter;
pthread_exit((void *) to_return);
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_4/makefil4.mak
#Fichero: makefil4.mak
#Incorpora una regla sin lista de dependencias
saludo.exe: saludo.o
@echo Creando saludo.exe
@gcc -o saludo.exe saludo.o
#Esta regla especifica un destino que no es
#un ejecutable
saludo.o: saludo.c
@echo Creando saludo.o solamente
@gcc -c saludo.c
#Esta regla especifica un destino sin lista de
#dependencias
clean:
@echo Borrando ficheros.o ...
@rm -f *.o
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_2/orden.h
/* --------------------------------------
Fichero: orden.h
Contiene el prototipo de la función
de ordenación (burbuja)
-------------------------------------*/
#ifndef ORDEN
#define ORDEN
void ordena_vector(int * p, int tope);
void swap(int *a, int * b);
#endif
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_6/saludo2.c
#include <stdio.h>
int main(){
char name[256];
printf("Hi, what's your name: ");
scanf("%s",name);
printf("%s welcome to makefile lecture\n", name);
return 0;
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_8_bis/linuxWin.c
#include <stdio.h>
#include <stdlib.h>
#ifdef _WINDOWS_
#define Directorio "dir"
#define Fecha "time"
#define Limpia "cls"
#endif
#ifdef _LINUX_
#define Directorio "ls"
#define Fecha "date"
#define Limpia "clear"
#endif
int main(int argc, char ** argv){
system(Limpia);
system(Directorio);
system(Fecha);
return 0;
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_2/makefil2.mak
#Fichero: makefil2.mak
#Construye un ejecutable a partir de tres ficheros fuentes
main.x: main.o vector.o orden.o
gcc -o main.x main.o vector.o orden.o
main.o: main.c vector.h orden.h
gcc -c main.c
vector.o: vector.c vector.h
gcc -c vector.c
orden.o: orden.c orden.h
gcc -c orden.c
<file_sep>/primero/mp_c/practica/practica_2/ej4/funciones.h
#ifndef _MATRICES_H_
#define _METRICES_H_
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
//int *minCol(int *(matriz)[5], int nFil, int nCol);
int ** reservarMemoria(int nFil, int nCol);
void rellenaMatriz(int **matriz, int nFil, int nCol);
void imprimeMatriz(int **matriz, int nFil, int nCol);
void liberarMemoria(int **matriz, int nFil);
#endif
<file_sep>/apuntes_lucia/ej2.cc
#include <iostream>
int main(){
/*guardamos una variable de tipo int para seleccionar la tabla de multiplicar.
empezamos por la tabla del 1, por eso la igualamos
ahora hacemos un bucle que nos sirva para imprimir por pantalla la tabla del
numero introducido anteriormente.
Inicializamos el contador i a 1 para empezar por 3x1 y establecemos el limite
hasta 3x10 haciendo i < 11 para que no se ejecute el programa sobrepasado el valor
de 10.
Despues simplemente implementamos un cout para imprimir por pantalla la operacion
*/
std::cout << "El programa va a mostrar las tablas de multiplicar del 1 al 10" << '\n' << "Pulse 'intro' para continuar..." << '\n';
std::cin.ignore();
for ( int seleccionador = 1 ; seleccionador < 11 ; seleccionador++ ){
for ( int i = 1 ; i < 11 ; i++){
std::cout << seleccionador <<" x "<< i <<" = " << seleccionador*i << '\n';
}
std::cout << '\n' <<"Pulse 'intro' para continuar..." << '\n';
std::cin.ignore();
}
}
// la funcion cin.ignore() hace que el programa continue cuando pulsas intro
<file_sep>/README.md
#Uni
This repository was created to storage my practices from different subject at UCO<file_sep>/primero/mp_c/practica/practica_3/ej5/main.c
#include <stdio.h>
int sumadigit(char* vector[], int )
int int main(void) {
//primero planteamos el ejercicio, vamos a hacer un char para escribir el nº
//y con el char podemos sumar sin problemas
char vector[10];
printf("Introduzca su numero a sumar: \n");
scanf("%s\n", &vector );
resultado =
return 0;
}
<file_sep>/apuntes_lucia/ej4.cc
/* 4. Codifique un programa en C que calcule la suma de los n primeras potencias de 2
(2 0 + 2 1 + 2 2 + ..+ 2 n ), donde n es un número entero positivo que el usuario introducirá
por teclado. Después de mostrar el resultado, comprobar con un esquema
condicional que se cumple que la suma es 2 n+1 -1, y que el programa muestre si se
cumple o no se cumple.
*/
#include <iostream>
#include <cmath>
int main(){
int n;
int suma = 0;
std::cout << "Introduzca el valor de n" << '\n';
std::cin >> n;
for(int i = 0 ; i < n+1 ; i++){
suma = suma + pow(2,i);
}
std::cout << "La suma es... " << suma << '\n';
int condicional = 0;
condicional = pow(2, n+1) - 1;
if(condicional = suma){
std::cout << "Se cumple la condicion (2^n1)-1..." << '\n';
}
else{
std::cout << "No se cumple la condicion (2^n1)-1..." << '\n';
}
}
<file_sep>/primero/mp_c/practica/01_Punteros/dangling.c
#include <stdio.h>
char * f1()
{ //Reserva de memoria estatica para variable local
char buffer[128];
printf("\nEscriba su nombre: ");
scanf("%s", buffer);
//Retorna como puntero de variable local
return buffer;
}
int main()
{ char* ptr;
//El puntero ptr recibe la direccion de 'buffer'
ptr = f1();
printfr("\n<%s>", ptr);
}<file_sep>/segundo/poo/p2/crupier.h
// crupier.h
// here is define the class crupier
#ifndef _CRUPIER_H
#define _CRUPIER_H
//include the persona.h to heredate the class
#include "persona.h"
#include <string>
using std::string;
class Crupier : public Persona{
public:
Crupier(const string DNI, const string codigo, const string nombre = "", const string apellidos = "",
const int edad = 0, const string direccion = "", const string localidad = "", const string provincia = "",
const string pais = "");
//including getCodigo and setCodigo.
string getCodigo(){
return codigo_;
}
void setCodigo(string c){
codigo_ = c ;
}
private:
string codigo_;
};
#endif
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_5/makefil5b.mak
#Fichero: makefil5b.mak
#Construye dos ejecutable sin destino simbolico
saludo.exe: saludo.c
@echo Creando saludo.exe
gcc -o saludo.exe saludo.c
saludo2.exe: saludo2.c
@echo Creando saludo2.exe
gcc -o saludo2.exe saludo2.c
clean:
@echo Borrando ficheros.o ...
@rm -f *.o
<file_sep>/primero/mp_c/practica/01_Punteros/vectorPares.c
/*Lee desde teclado el numero de componentes
utiles y los valores de un vector y crea otro
vector con las componentes del primero que sean
pares
*/
#include <stdio.h>
#define MAX_ELE 6
void lecturaVector(int Vector[], int* utiles)
{
int i;
printf("Introduzca el numero de componentes: ");
scanf("%d", utiles);
for(i=0; i<*utiles; i++)
{
printf("Posicion [%d]: ", i);
scanf("%d", &Vector[i]);
}
}
void lecturaVectorPtr(int * Vector, int* utiles)
{
int* ptr, *ptrFinal;
int i;
printf("Introduzca el numero de componentes: ");
scanf("%d", utiles);
ptrFinal=Vector+(*utiles)-1;
for(ptr=Vector; ptr<=ptrFinal; ptr++)
{
printf("Posicion [%d]: ", ptr-Vector);
scanf("%d", ptr);
}
}
void pintaVector(int Vector[], int utiles)
{
int i;
for(i=0; i<utiles; i++)
{
printf("\nElemento[%d]: %d", i, Vector[i]);
}
}
void eliminaPares(int VectorOrigen[], int VectorDestino[], int utilesOrigen, int* utilesDestino)
{
int i;
*utilesDestino = 0;
for(i=0; i<utilesOrigen; i++)
{
if((VectorOrigen[i]%2)!=0)
{
VectorDestino[*utilesDestino]=VectorOrigen[i];
(*utilesDestino)++;
}
}
}
int eliminaPares2(int VectorOrigen[], int VectorDestino[], int utilesOrigen)
{
int i, utilesDestino=0;
for (i=0; i<utilesOrigen; i++)
{
if((VectorOrigen[i]%2)!=0)
{
VectorDestino[utilesDestino]=VectorOrigen[i];
utilesDestino++;
}
}
return(utilesDestino);
}
void main()
{
int Vector[MAX_ELE];
int VectorPares[MAX_ELE];
int utiles, utilesPares;
//lecturaVector(Vector, &utiles);
lecturaVectorPtr(Vector, &utiles);
printf("\nVector con pares: ");
pintaVector(Vector, utiles);
//eliminaPares(Vector, VectorPares, utiles, &utilesPares);
utilesPares= eliminaPares2(Vector, VectorPares, utiles);
printf("\nVector sin pares: ");
pintaVector(VectorPares, utilesPares);
}<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_6/makefil6.mak
#Fichero: makefil6.mak
#Se muestra el uso de .PHONY
saludos: saludo.exe saludo2.exe clean
saludo.exe: saludo.c
@echo Creando saludo.exe
gcc -o saludo.exe saludo.c
saludo2.exe: saludo2.c
@echo Creando saludo2.exe
gcc -o saludo2.exe saludo.c
.PHONY : clean
clean:
@echo Borrando ficheros.o ...
@rm -f *.o
<file_sep>/primero/mp_c/practica/practica_3/ej9/funciones.c
#include <stdio.h>
#include <string.h>
buscarlibro(FILE* fichero, char* titulo){
char aux[100];
while(feof(fichero) == NULL){
fgets(aux,100,fichero);
if(aux == titulo){
printf("Encontrado\n");
}
else{
printf("No encontrado\n");
}
}
}
addirlibro(FILE* fichero, libro *datos){
FILE *pFichero;
pFichero = fopen(fichero, "a");
fprintf(pFichero, "%s %s %d %d\n", datos.titulo, datos.autor,
datos.precio, datos.unidades);
fclose(pFichero);
}
FILE* abrirfichero(char* fichero){
FILE* file;
file = fopen(fichero,file);
if(file == NULL){
printf("Fallo al abrir al fichero\n");
exit(-1);
}
return file;
}
contlibros(char *fichero){
FILE *pFichero;
int nRegistros=0;
libros datos;
pFichero = fopen(fichero, "r"); /* abre fichero paa lectura */
/* Comienza a leer datos del fichero hasta que llega al final */
//Hacer con getline.
while ( fscanf(pFichero, "%s %s %d %d" , datos.titulo, datos.autor,&datos.precio, &datos.unidades) != EOF ){
nRegistros++;
}
nRegistros = nRegistros/3;
fclose(pFichero);
return(nRegistros);
}
void lee(char* nombreFichero)
{
FILE* fich;
char cadena[30];
fich=fopen(nombreFichero, "r");
while(fgets(cadena, 30, fich)!=NULL)
{
if(cadena[strlen(cadena)-1]=='\n')
cadena[strlen(cadena)-1]='\0';
printf("\ntitulo: <%s>\n", cadena);
fgets(cadena, 30, fich);
if(cadena[strlen(cadena)-1]=='\n')
cadena[strlen(cadena)-1]='\0';
printf("\nAutor: <%s>\n", cadena);
fgets(cadena, 30, fich);
if(cadena[strlen(cadena)-1]=='\n')
cadena[strlen(cadena)-1]='\0';
printf("\nPrecio y unidades: <%s>\n", cadena);
}
fclose(fich);
}
void escribirRegristros(libros aux){
printf(" Titulo: %s Autor: %s Precio: %d Unidades: %d \n",
aux.titulo, aux.autor, aux.precio, aux.unidades);
}
<file_sep>/primero/mp_c/practica/01_Punteros/arrayPunteros.c
#include <stdio.h>
void main()
{
int* ptr[10];
int vector[10];
int i;
//Inicializar contenido;
for (i=0; i<10; i++)
{
//Inicializar vector de enteros
vector[i]=i;
//Inicializar vector de punteros
ptr[i]=&vector[i];
*(ptr[i])=vector[i];
//Imprimir
printf("\n*(ptr[%d]): %d", i, *(ptr[i]));
}
}<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_6/saludo.c
#include <stdio.h>
int main(){
char nombre[256];
printf("Hola como te llamas: ");
scanf("%s",nombre);
printf("%s bienvenid@ a la historia de los makefiles\n", nombre);
return 0;
}
<file_sep>/apuntes_lucia/ej3.cc
/* 3. Codifique un programa en C que sume los n primeros múltiplos de un número entero
positivo introducido por el usuario. El programa ha de controlar que el número
introducido es positivo. Por ejemplo ejemplo, si el número es x, ha de calcular
x+2x+3x+ ...+nx.
*/
#include <iostream>
int main(){
int numero;
int multiplos;
int suma = 0;
std::cout << "Introduzca un numero" << '\n';
std::cin >> numero;
while (numero < 0) {
std::cout << "Introduzca un numero positivo, por favor..." << '\n';
std::cin >> numero;
}
std::cout << "Introduzca cuantos multiplos quiere calcular" << '\n';
std::cin >> multiplos;
for( int i = 1 ; i < multiplos+1 ; i++){
suma = suma + numero*i;
}
std::cout << "La suma es... " << suma <<'\n';
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_2/vector.c
/* ---------------------------------------------------------
Fichero: vec_ES.c
Definición de las funciones de E/S de vectores
usadas por "main()" y de las constantes locales
MAX_LINE y MY_MAX_RAND
Los prototipos estan declarados en el fichero vec_ES.h
--------------------------------------------------------*/
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include "vector.h"
#define MY_MAX_RAND 12
/* ------------------------------------------------
Funcion: Llena vector
Rellena un vector de enteros con numeros
aleatorios.
Recibe: p -> vector a rellenar
tope -> numero de elementos del vector
Devuelve: el vector con tope numeros aleatorios
-----------------------------------------------*/
void llena_vector(int * p, int tope){
int i;
for (i=0;i<tope;i++){
p[i]=rand()%MY_MAX_RAND;
}
}
/* ------------------------------------------------
Funcion: pinta_vector
Muestra (tabulado), un vector con MAX_LINE
números por línea
Recibe: p -> vector a mostrar
tope -> numero de elementos del vector
Devuelve: nada
-----------------------------------------------*/
void pinta_vector(int * p, int tope){
int i;
printf("\n\n");
for (i=0;i<tope;i++){
printf("%5d%c",p[i], (((i+1)%MAX_LINE) == 0 || i == tope -1) ? '\n':' ');
}
printf("\n\n\n");
}
<file_sep>/primero/mp_c/practica/practica_4/ej6/makefile
#Fichero: makefile
#Este es el makefile del ejercicio 6 de la practica 4.
#Este makefile contruye una biblioteca "libMemoria.a",con "reservarMemoria.c" y "liberaMemoria.c".
#Construye el ejecutable "crucigrama.x" a partir de la biblioteca y los ficheros objeto.
#Permite eliminar los ficheros objeto generados.
libMemoria.a: reservaMemoria.o liberaMemoria.o
ar -rsv libMemoria.a reservaMemoria.o liberaMemoria.o
crucigrama: libMemoria.a main.o ficheros.o crucigrama.o
gcc -o crucigrama main.o ficheros.o crucigrama.o libMemoria.a
liberaMemoria.o: liberaMemoria.c
gcc -c liberaMemoria.c
main.o: main.c
gcc -c main.c
resevaMemoria.o: reservaMemoria.c
gcc -c reservaMemoria.c
ficheros.o: ficheros.c
gcc -c ficheros.c
crucigrama.o: crucigrama.c
gcc -c crucigrama.c
clean:
@echo Borrando ficheros.o ...
@rm *.o
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_3/orden.c
/* -----------------------------------
Fichero: ordena.c
Contiene la definición de la función
de ordenación (burbuja) y de la
funcion swap
-----------------------------------*/
#include "orden.h"
/* --------------------------------------------------
Funcion: ordena_vector
Ordena un vector de forma ascendente (burbuja)
Recibe: p -> vector a ordenar
tope -> numero de elementos del vector
Devuelve: el vector p ordenado
-------------------------------------------------*/
void ordena_vector(int * p, int tope){
int i,j;
for (i=0;i<tope-1;i++){
for (j=0;j<tope-1;j++){
if (p[j] >p[j+1]){
swap(&p[j],&p[j+1]);
}
}
}
}
/* --------------------------------------------------
Función: swap
Intercambia los valores de dos variables enteras
Recibe: a,b -> valore a intercambiar (referencia)
Devuelve: valores intercambiados
--------------------------------------------------*/
void swap (int *a, int * b){
int tmp;
tmp=*a;
*a = *b;
*b = tmp;
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_8/makefil8.mak
#Fichero: makefil8.mak
#Makefile con macros definidas por el usuario
#Definicion de macros
OBJ = main.o vector.o orden.o
FLAGS = -g -c
destinos: main.x clean
main.x: $(OBJ)
gcc -o main.x $(OBJ)
main.o: main.c
gcc $(FLAGS) main.c
vector.o: vector.c
gcc $(FLAGS) vector.c
orden.o: orden.c
gcc $(FLAGS) orden.c
clean:
rm $(OBJ)
<file_sep>/primero/mp_c/practica/01_Punteros/errorCadena.c
#include <string.h>
int main ()
{
char cad[] = "abcde";
char* ptr = cad;
//error en tiempo de ejecucion, sobrepasamos el espacio reservado para cad
strcpy(ptr,"Hasta luego, encantada de conocerte");
}
<file_sep>/apuntes_lucia/ej1.cc
#include <iostream>
int main(){
//guardamos una variable de tipo int para seleccionar la tabla de multiplicar.
int seleccionador;
//introducimos el numero a mostrar su tabla
std::cout << "Introduzca un numero para mostrar su tabla" << '\n';
std::cin >> seleccionador;
/* ahora hacemos un bucle que nos sirva para imprimir por pantalla la tabla del
numero introducido anteriormente.
Inicializamos el contador i a 1 para empezar por 3x1 y establecemos el limite
hasta 3x10 haciendo i < 11 para que no se ejecute el programa sobrepasado el valor
de 10.
Despues simplemente implementamos un cout para imprimir por pantalla la operacion
*/
for (int i = 1 ; i < 11 ; i++){
std::cout << seleccionador <<" x "<< i <<" = " << seleccionador*i << '\n';
}
}
<file_sep>/segundo/S.O practicas/p1/p1.c
//p1.c
//It's a tutorial program to explain practice 1 of SO.
#include <sys/ipc.h>
#include <time.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <math.h>
#define CHILDREN 3
#define ITER 5
#define ok 10
int main(){
//creamos las variables que vayamos a usar.
int localizador,shmid,status, i;
int* v;
struct shmid_ds buf;
//primero creamos una clave para trabajar con ella
key_t key;
key = ftok("p1.c",1);
//reservamos memoria ( memoria compartida)
if ((shmid = shmget(key, sizeof(int)*100, IPC_CREAT | 0777)) == -1)
exit(1);
//Ahora usamos un puntero que nos direccione a la memoria compartida
v = (int *) shmat(shmid, NULL, 0);
//inicializamos la semilla del srand
srand(time(NULL));
//rellenamos aleatoriamente el vector.
for (int i = 0; i < 100; i++) {
v[i]=rand()%11;
}
//Hacemos hijos y hacemos sus funciones secuencialmente
if(!fork()){
/* Proceso hijo
Pedir un índice del vector y un valor entero por teclado y almacenar en la posición
correspondiente el valor leído. Esta operación se ha de repetir 10 veces.
*/
int indice,valor;
for(int i = 0 ; i < 10 ;i++){
printf("Child 1 iniciado\n");
printf("Introduzca un indice para colocarse en el vector\n");
scanf("%d\n",&indice);
printf("Indice introducido correctamente\n");
printf("Introduzca un valor para asignar\n");
scanf("%d\n",&valor );
printf("Valor introducido correctamente\n");
v[indice]=valor;
}
printf("PID Child 1 = %d\n",getpid());
exit(0);
}
if(!fork()){
/* proceso hijos
Cambiar aleatoriamente un elemento del vector y bloquearse durante 1 segundo. Esta
operación se ha de repetir 100 veces.
*/
printf("Child 2 iniciado\n");
printf("Cambiando aleatoriamente un elemento del vector...\n");
for(int i = 0 ; i < 100 ; i++){
v[rand()%100]=rand()%11;
sleep(1);
}
printf("PID child 2 = %d\n",getpid());
exit(0);
}
if(!fork()){
/* proceso hijos
Sumar todos los elementos del vector, mostrar la suma por pantalla y luego
bloquearse durante 30 segundos. Esta operación se ha de repetir 5 veces.
*/
printf("Child 3 iniciado\n");
int suma;
for(int i = 0; i < 5 ; i++){
suma = 0;
for(int i = 0; i < 100 ; i++){
suma = v[i] + suma;
}
sleep(30);
printf("La suma del vector es: %d\n",suma);
}
printf("PID child 3 = %d\n",getpid());
exit(0);
}
//Ahora hacemos que espere
for( i = 0 ; i < CHILDREN ; i++){
pid_t pid = wait(&status);
printf("\nChild %d finished with status %d\n", pid, WEXITSTATUS(status));
}
//Liberamos memoria
shmdt(v);
//Eliminamos
shmctl(shmid, IPC_RMID, &buf);
return 0;
}
<file_sep>/primero/mp_c/practica/01_Punteros/cocienteResto.c
#include <stdio.h>
int CocienteEntero (int divdo, int divsor) {
return divdo / divsor;
}
int RestoEntero (int divdo, int divsor) {
return divdo % divsor;
}
void Division (int dividendo, int divisor, int *c, int *r) {
*c = CocienteEntero (dividendo, divisor);
*r = RestoEntero (dividendo, divisor);
}
int main()
{
int a,b,z,w;
a = 6;
b = 3;
Division(a, b, &z, &w);
printf("%i entre %i = %i\n",a,b,z);
printf("y el resto es %i",w);
return 0;
}
<file_sep>/segundo/poo/p2/jugador.h
// jugador.h
// here is the define the class jugador
#ifndef _JUGADOR_H
#define _JUGADOR_H
//including persona.h to heredate the class
#include "persona.h"
#include <string>
#include <list>
using std::string;
class Apuesta{
public:
int tipo,cantidad;
string valor;
}
class Jugador : public Persona{
public:
Jugador(const string DNI, const string codigo, const string nombre = "", const string apellidos = "",
const int edad = 0, const string direccion = "", const string localidad = "", const string provincia = "",
const string pais = "");
inline int getDinero(){ return dinero_; }
inline string getCodigo(){ return codigo_; }
inline std::list<Apuesta> getApuesta(){ return apuesta_; }
inline void setDinero();
inline void setCodigo();
inline void setApuesta();
private:
int dinero_;
string codigo_
std::list<Apuesta> apuesta_;
};
#endif
<file_sep>/primero/mp_c/practica/01_Punteros/puntero1.c
#include <stdio.h>
#include <stdlib.h>
void main()
{
char y = '5';
char z ='3';
char* nptr;
char* mptr;
//nptr almacena la dirección de y
nptr=&y;
printf("1. nptr almacena la dirección de y:\n");
printf("\tdireccion de y:%lu\n", &y);
printf("\tvalor de nptr :%lu\n", nptr);
//z toma el valor del objeto apuntado por nptr
z=*nptr;
printf("2.z toma el valor del objeto apuntado por nptr\n");
printf("\tvalor de z:%1c\n", z);
printf("\t*nptr :%1c\n", *nptr);
//El valor del objeto apuntado por nptr cambia a 7
*nptr='7';
printf("3.El valor del objeto apuntado por nptr cambia a 7\n");
printf("\t*nptr:%c\n", *nptr);
//mptr apunta al mismo objeto al que apunta nptr
mptr = nptr;
printf("4.mptr apunta al mismo objeto al que apunta nptr\n");
printf("\tmptr: %p\n", mptr);
printf("\tnptr: %p\n", mptr);
//mptr apunta al objeto z
mptr=&z;
printf("5.mptr apunta al objeto z\n");
printf("\tdireccion de z:%p\n", &z);
printf("\tmptr :%p\n", mptr);
//el contenido del objeto apuntado por mptr se sustituye
//por el contenido del objeto apuntado por nptr
*mptr = *nptr;
printf("6.el contenido del objeto apuntado por mptr se sustituye por\n");
printf(" el contenido del objeto apuntado por nptr\n");
printf("\t*mptr: %1c\n", *mptr);
printf("\t*nptr: %1c\n", *nptr);
//y toma el valor del contenido del objeto apuntado por mptr +1
y=(*mptr)+1;
printf("7.y toma el valor del contenido del objeto apuntado por mptr +1\n");
printf("\tvalor de y: %1c\n", y);
printf("\t(*mptr)+1 : %1c\n", (*mptr)+1);
printf("valor final de y: %1c\n", y);
printf("valor final de z: %1c\n", z);
}<file_sep>/segundo/poo/p2/jugador.cc
// jugador.cc
// the body of jugador
#include "jugador.h"
#include <string>
using std::string;
Jugador::Jugador(const string DNI, const string codigo, const string nombre, const string apellidos,
const int edad, const string direccion, const string localidad, const string provincia,
const string pais) : Persona(DNI, nombre, apellidos, edad, direccion, localidad,
provincia, pais){
codigo_ = codigo;
dinero_ = 1000;
}
<file_sep>/repaso_examen/repaso_dados.h
/*
Creamos un fichero para repasar la creacion de clases
Dicho esto vamos a volver a crear la clase dados
------------------------------------------------------
REPASO EXAMEN POO
------------------------------------------------------
En el fichero .h se guarda la declaracion de la clase
*/
//dados.h
//representa el lanzamiento de dos dados
#ifndef DADOS_H
#define DADOS_H
class Dados{
private: //en la part privada declaramos las variables que vayamos a usar por la misma clase
int d1_; //cuando declaramos un elemento que queremos que sea privado se le añade _ en el ultimo caracter
int d2_;
public: //en la parte publica declaramos las funciones que permite usar dicha clase
Dados(); //El constructor de la clase en este caso no devolvería nada.
//En caso de que heredara alguna clase, si habría que inicializarlo
int getDado1(); //retorna el valor del dado1
int getDado2(); //retorna el valor del dado2
void lanzamiento(); //asigna valores a los dados
bool setDado1(int numero); //asigna valor al dado1
bool setDado2(int numero); //asigna valor al dado2
int getSuma(); //retorna la suma de los dados
};
#endif<file_sep>/primero/mp_c/practica/practica_3/argument/argumentosLineaOrdenes/args.c
/* -------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Argumentos en línea de órdenes
Ejercicio: Imprime por pantalla el número de argumentos
y el el nombre del programa y los argumentos
--------------------------------------------------------*/
#include <stdio.h>
int main(int argc, char ** argv) {
//int main(int argc, char * argv[])
int i;
printf("Número de argumentos (incluido el nombre del programa)= %d \n", argc);
printf("Argumentos,incluido el programa: \n");
for (i=0;i<argc;i++){
printf("Argumento[%d] = %s\n",i,argv[i]);
}
return(0);
}
<file_sep>/primero/mp_c/practica/practica_3/ej2/main.c
#include <stdio.h>
int aleu(int num1,int num2){
//int mcd = 0; (antes lo tenia con esta variable, pero queda mejor sin ella.)
//En el enunciado del ejercicio, nos daba estas condiciones.
if(num2 == 0){
return num1;
}
//En el enunciado del ejercicio, nos daba estas condiciones.
//He sustituido la operacion mod(), por %, que viene a ser lo mismo.
if ( num2 > 0 && num1 >= num1){
return aleu(num2 , num1 % num2);
}
//return mcd; (Al quitar la variable mcd, retorno la funcion directamente)
}
int main(){
int num1,num2,mcd;
printf("Introduzca el primer valor\n");
scanf("%d",&num1);
printf("Introduzca el segundo valor\n");
scanf("%d",&num2);
mcd = aleu(num1,num2);
printf("El mcd es: %d \n",mcd);
return 0;
}
<file_sep>/primero/mp_c/practica/practica_3/argument/argumentosLineaOrdenes/args_v2.c
/* -------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Argumentos en línea de órdenes
Ejercicio: Imprime por pantalla el número de argumentos
y el nombre de los argumentos (no cuenta el
nombre del programa).
--------------------------------------------------------*/
#include <stdio.h>
int main(int argc, char ** argv) {
//int main(int argc, char * argv[])
int i;
printf("Número de argumentos (sin incluir el nombre del programa)= %d \n", argc-1);
printf("Argumentos,sin incluir el programa: \n");
for (i=1;i<argc;i++){
printf("Argumento[%d] = %s\n",i,argv[i]);
}
return(0);
}
<file_sep>/segundo/ED_practicas/Practica-1-usuario/operadoresExternosMonomios.hpp
/*!
\file operadoresExternosMonomios.hpp
\brief Ficheros con los prototipos de los operadores externos de la clase Monomio
\author <NAME>
*/
#ifndef _OperadoresExternosMonomios_HPP_
#define _OperadoresExternosMonomios_HPP_
// Facilita la entrada y salida
#include <iostream>
#include "Monomio.hpp"
// Para la sobrecarga de los operadores de flujo: << y >>
using std::istream;
using std::ostream;
// Espacio de nombre de la asigantura: ed
namespace ed{
//////////////////////////////////////////////////////////////////////////////////////
// Operadores externos que no pertenecen a la clase Monomio
//! \name Operadores de igualdad
/**
* @brief Operador logico de igualdad, te permite saber si m1 == m2
*
* @param m1
* @param m2
* @return true
* @return false
*/
bool operator==(ed::Monomio const & m1, ed::Monomio const & m2);
/**
* @brief Operador logico de igualdad, te permite saber si m1 == valor
*
* @param m1
* @param valor
* @return true
* @return false
*/
bool operator==(ed::Monomio const & m1, double const valor);
/**
* @brief Operador logico de igualdad, te permite saber si valor == m1
*
* @param valor
* @param m1
* @return true
* @return false
*/
bool operator==(double const valor, ed::Monomio const & m1);
//! \name Operadores de desigualdad
/**
* @brief Operador logico de desigualdad, te permite saber si m1 != m2
*
* @param m1
* @param m2
* @return true
* @return false
*/
bool operator!=(ed::Monomio const & m1, ed::Monomio const & m2);
/**
* @brief Operador logico de desigualdad, te permite saber si valor =! m1
*
* @param valor
* @param m1
* @return true
* @return false
*/
bool operator!=(double const valor, ed::Monomio const & m1);
/**
* @brief Operador logico de desigualdad, te permite saber si m1 =! valor
*
* @param m1
* @param valor
* @return true
* @return false
*/
bool operator!=(ed::Monomio const & m1, double const valor);
///////////////////////////////////////////////////
//! \name Operadores unarios prefijos
/**
* @brief Devuelve la suma de un monomio
*
* @param m
* @return ed::Monomio&
*/
ed::Monomio & operator+(ed::Monomio const & m);
/**
* @brief Devuelve la resta de un monomio
*
* @param m
* @return ed::Monomio&
*/
ed::Monomio & operator-(ed::Monomio const & m);
//////////////////////////////////////////////////////////
//! \name Operador binario de la suma
/**
* @brief Nos permite sumar monomios
*
* @param m1
* @param m2
* @return ed::Monomio&
*/
ed::Monomio & operator+ (ed::Monomio const &m1, ed::Monomio const &m2);
//////////////////////////////////////////////////////////
//! \name Operador binario de la resta
/**
* @brief Operador binario que nos permite restar
*
* @param m1
* @param m2
* @return ed::Monomio&
*/
ed::Monomio & operator- (ed::Monomio const &m1, ed::Monomio const &m2);
///////////////////////////////////////////////////////////////////////////
//! \name Operadores binarios de la multiplicación
/**
* @brief Operador binario que nos permite multiplicar dos monomios
*
* @param m1
* @param m2
* @return ed::Monomio&
*/
ed::Monomio & operator* (ed::Monomio const &m1, ed::Monomio const &m2);
/**
* @brief Operador binario que nos permite multiplicar un valor por un monomio
*
* @param valor
* @param m
* @return ed::Monomio&
*/
ed::Monomio & operator* (double const valor, ed::Monomio const &m);
/**
* @brief Operador binario que nos permite multiplicar un monomio por un valor
*
* @param m
* @param valor
* @return ed::Monomio&
*/
ed::Monomio & operator* (ed::Monomio const &m, double const valor);
///////////////////////////////////////////////////////////////////////////
//! \name Operadores binarios de la división
/**
* @brief Operador binaro que nos permite la division de monomios
*
* @param m1
* @param m2
* @return ed::Monomio&
*/
ed::Monomio & operator/ (ed::Monomio const &m1, ed::Monomio const &m2);
/**
* @brief Operador binario que nos permite la division de un monomio por un valor
*
* @param m
* @param valor
* @return ed::Monomio&
*/
ed::Monomio & operator/ (ed::Monomio const &m, double const valor);
/**
* @brief Operador binario que nos permite la division de un valor entre un monomio
*
* @param valor
* @param m
* @return ed::Monomio&
*/
ed::Monomio & operator/ (double const valor, ed::Monomio const &m);
/////////////////////////////////////////////////////////////////////////////
//! \name Sobrecarga de los operadores de entrada y salida
// COMPLETAR LOS COMENTARIOS DE DOXYGEN
istream &operator>>(istream &stream, ed::Monomio &m);
// COMPLETAR LOS COMENTARIOS DE DOXYGEN
ostream &operator<<(ostream &stream, ed::Monomio const &m);
} // Fin de namespace ed.
#endif // _OperadoresExternosMonomios_HPP_
<file_sep>/apuntes_lucia/Ejercicio 4.cpp
#include <iostream>
#include <string>
using namespace std;
void leer_string (string& cadena)
{
cout << "Introduce una cadena de caracteres: " << endl;
cin >> cadena;
}
string extraer_consonantes(const string& cadena, string& nueva){
int i, j = 0;
for (i = 0 ; i <= cadena.size() ; i++){
if( cadena[i] != 'a' && cadena[i] != 'e' && cadena[i] != 'i' && cadena[i] != 'o' && cadena[i] != 'u'){
nueva[j] = cadena[i];
j++;
}
}
return nueva;
}
int main ()
{
string cadena, nueva;
leer_string(cadena);
std::cout << "La nueva cadena es: " << extraer_consonantes(cadena, nueva) <<'\n';
return 0;
}
<file_sep>/primero/mp_c/practica/practica_3/ej9/main.c
#include <stdio.h>
int main(void){
int opcion;
char titulo[50];
do
{
printf("********************************************************\n");
printf("** 1. Buscar libro por su nombre. *********************\n");
printf("** 2. Añadir libro. *********************\n");
printf("** 3. Ver numero de libros. *********************\n");
printf("** 4. Listar libros. *********************\n");
printf("** 5. Vender libro *********************\n");
printf("** 6. Borrar Libros sin stock *********************\n");
printf("** 7. Salir *********************\n");
printf("********************************************************\n");
printf(" \n Introduzca una opcion: ");
scanf("%d", &opcion);
}while((opcion<0)||(opcion>7));
return opcion;
}
if (opcion == 1) {
printf("Introduzca el nombre del libro a buscar\n");
scanf("%s", titulo );
buscarlibro(fichero,titulo);
}
if (opcion == 2) {
addlibro();
}
if (opcion == 3) {
contlibros();
}
<file_sep>/primero/mp_c/practica/practica_4/makefile
#Fichero: makefile
#Este es el makefile del ejercicio 6 de la practica 4.
#Este makefile contruye una biblioteca "libMemoria.a",con "reservarMemoria.c" y "liberaMemoria.c".
#Construye el ejecutable "crucigrama.x" a partir de la biblioteca y los ficheros objeto.
#Permite eliminar los ficheros objeto generados.
<file_sep>/segundo²/SO/Entrega_P1yP2/muñozcuberoantonio.c
#include <stdlib.h>
#include <pthread.h>
#include <stdio.h>
#include <time.h>
#define N 10
struct suma_array{
int * array;
int posicion_inicial;
int posicion_final;
};
void * sumaArray(void* argumentos){
struct suma_array *args = (struct suma_array *)argumentos;
int* resultadoP = calloc(1, sizeof(int));
if(resultadoP == NULL){
perror("Fallo al reservar memoria para el resultado parcial");
exit(EXIT_FAILURE);
}
for (int posicionVector = args -> posicion_inicial; posicionVector < args -> posicion_final; posicionVector ++){
*resultadoP = *resultadoP + *(args -> array + posicionVector);
}
printf("Vector Parcial : [");
for(int i = args -> posicion_inicial ; i < args ->posicion_final; i++){
printf("%d ,", args->array[i]);
}
printf("]\n");
printf("Resultado Parcial: %d \n", *resultadoP);
pthread_exit(resultadoP);
}
int main(int argc, char* argv[1]){
if (argc != 2){
perror("El programa se usa ejecutando < ./a.out [nº de hilos] >");
exit(EXIT_FAILURE);
}
/* Creamos un vector auxiliar para guardar resultados parciales y un vector de trabajo para llevar a
cabo la suma. */
int** aux_array = calloc(atoi(argv[1]), sizeof(int*));
//control de errores
if (aux_array == NULL){
printf("fallo al reservar memoria");
exit(EXIT_FAILURE);
}
int* ppal_array = calloc(N, sizeof(int));
//control de errores
if (ppal_array == NULL){
printf("fallo al reservar memoria");
exit(EXIT_FAILURE);
}
/* rellenamos el vector con valores pseudoaleatorios */
srand(time(NULL));
for(int i = 0; i < N; i++){
ppal_array[i] = rand()%9;
}
pthread_t* thread_array = calloc(atoi(argv[1]), sizeof(pthread_t));
if (thread_array == NULL){
printf("fallo al reservar memoria");
exit(EXIT_FAILURE);
}
int partes = N/atoi(argv[1]);
struct suma_array * vector_args = calloc(atoi(argv[1]), sizeof(struct suma_array));
if (vector_args == NULL){
printf("fallo al reservar memoria");
exit(EXIT_FAILURE);
}
int aux=0;
for(int i = 0; i<atoi(argv[1]); i++){
aux = (((i * partes)+partes) - (i*partes)) + aux;
struct suma_array hilo_numero_vector = {NULL, 0, 0};
hilo_numero_vector.array = ppal_array;
hilo_numero_vector.posicion_inicial = i * partes;
hilo_numero_vector.posicion_final = (i*partes)+partes;
if ((i==atoi(argv[1])-1) && (aux != 10)){
hilo_numero_vector.posicion_final=10;
}
vector_args[i] = hilo_numero_vector;
}
for(int i = 0; i < atoi(argv[1]); i++){
pthread_create(&thread_array[i], NULL, (void*) sumaArray, (void**)&vector_args[i]);
}
for(int i = 0; i < atoi(argv[1]) ; i++){
pthread_join(thread_array[i], (void*) &aux_array[i]);
}
int resultadoFinal=0;
for(int i = 0; i < atoi(argv[1]); i++){
resultadoFinal = *aux_array[i]+resultadoFinal;
}
printf("Resultado final: %d \n",resultadoFinal);
free(vector_args);
free(ppal_array);
free(aux_array);
exit(EXIT_SUCCESS);
}<file_sep>/primero/mp_c/practica/practica_3/argument/argumentosLineaOrdenes/leeFichero.c
/* -------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Argumentos en línea de órdenes
Ejercicio: Lectura de un fichero de enteros
--------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv){
FILE * f;
int n;
//Comprobar que el número de parámetro sea correcto
if (argc !=2){
printf("Sintaxis incorrecta: %s <fichero>\n", argv[0]);
exit(-1);
}
f = fopen(argv[1],"r");
if (f==NULL){
printf("Error al abrir el fichero %s\n",argv[1]);
exit(-1);
}
fscanf(f,"%d",&n);
while(!feof(f)) {
printf("%d\n",n);
fscanf(f,"%d",&n);
}
fclose (f);
return(0);
}
<file_sep>/primero/mp_c/practica/es_sufijo/funcion.h
#include <stdio.h>
int es_sufijo(char* cadena, char* sufijo){
char* aux = cadena;
int lenght = strlen(sufijo);
char* end = cadena+strlen(cadena);
//este puntero nos apunta al final de la cadena, para mas tarde trabaja con ello
char* ptr;
//como la misma cadena de sufijo puede repetirse dentro de lal cadena principal
//hacemos un while por si se repite y no es el ultimo elemento de la cadena
while(aux<=(end-lenght)){
ptr = strstr(aux, sufijo);
// con esto mandamos un puntero a donde localizamos la cadena sufijo dentro de la cadena principal
// si le restamos la longitud del sufijo y nos da el resultado de ptr, es un sufijo.
if( ptr == (end - lenght)){
return 1;
}
//para que si el puntero es nulo, lo descarte directamente...
if( ptr == NULL ){
return 0;
}
// por si detecta una cadena igual, hacemos que salte a la siguiente cadena
aux = ptr + lenght;
}
return 0;
}
<file_sep>/primero/mp_c/practica/01_Punteros/punto.c
#include <stdio.h>
struct punto
{
float x; //Coordenada x del punto
float y; //Coordenada y del punto
};
void funcion1(struct punto p);
void funcion2(struct punto* p);
void main()
{
//Definicion de variable de tipo punto
struct punto punto1, punto2, *ptrpunto;
//OPERADOR . Lectura de la estructura.
printf("\n1.OPERADOR .");
printf("\nCoordenada X: ");
scanf("%f", &punto1.x);
printf("\nCoordenada Y: ");
scanf("%f", &punto1.y);
printf("\npunto1.x: %f punto1.y: %f", punto1.x, punto1.y);
//OPERADOR ->
ptrpunto = &punto2;
printf("\n2.OPERADOR ->");
printf("\nCoordenada X: ");
scanf("%f", &ptrpunto->x); //ptrpunto->x equivale a (*ptrpunto).x
printf("\nCoordenada Y: ");
scanf("%f", &ptrpunto->y);
printf("\nptrpunto->x: %f ptrpunto->y: %f", ptrpunto->x, ptrpunto->y);
//ASIGNACION
punto2 = punto1;
printf("\n3.ASIGNACION");
printf("\npunto2.x: %f punto2.y: %f", punto2.x, punto2.y);
//PASO POR VALOR
funcion1(punto1);
printf("\n4.PASO POR VALOR");
printf("\npunto1.x: %f punto1.y: %f", punto1.x, punto1.y);
//PASO POR REFERENCIA
funcion2(&punto1);
printf("\n5.PASO POR REFERENCIA");
printf("\npunto1.x: %f punto1.y: %f", punto1.x, punto1.y);
}
/*La estructura se recibe en una variable local de tipo
"struct punto" llamada p
*/
void funcion1(struct punto p)
{
p.x = -3;
p.y=-3;
}
/*La estructura se recibe en una variable local de tipo
puntero a"struct punto" llamada p. Cualquier modificacion
de "*p" (mejor "p->") hace que se modifique en realidad
punto1: PASO POR REFERENCIA
*/
void funcion2(struct punto* p)
{
p->x=-2; //(*p).x=-2;
p->y=-2; //(*p).y=-2;
}
<file_sep>/primero/compilacionCondicional/ejemplo-con/consultas.c
/* -------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Inclusion condicional de código
Ejercicio: Ejemplo
programa principal
--------------------------------------------------------*/
#include "consultas.h"
#include <stdio.h>
/********************************************************************/
/*
Nombre: calculaMedia.
Tipo: float.
Objetivo: Calcula la nota media de un vector de alumnos.
Parametros de entrada:
- struct alumno Alumnos[]: Vector de alumnos.
- int tope: El numuero de alumnos del vector
Precondiciones: Ninguna.
Devuelve: La nota media del vector de alumnos
*/
/*******************************************************************/
float calculaMedia(stAlumno Alumnos[], int tope)
{
int i;
float suma=0.0;
for(i=0; i<tope; i++)
{
suma = suma + Alumnos[i].nota;
}
return(suma/tope);
}
/********************************************************************/
/*
Nombre: mostrarSuperanNota.
Tipo: void.
Objetivo: Muestra los alumnos que superan una determinada nota.
Parametros de entrada:
- struct alumno Alumnos[]: Vector de alumnos.
- int tope: El numuero de alumnos del vector
- float nota: la nota
Precondiciones: Ninguna.
Devuelve: void.
*/
/*******************************************************************/
void mostrarSuperanNota(stAlumno Alumnos[], int tope, float nota)
{
int i;
printf("\n\nMODULO DE LISTADO DE ALUMNOS QUE SUPERAN LA NOTA: %f", nota);
printf("\n---------------------------------");
for(i=0; i<tope; i++)
{
if(Alumnos[i].nota>=nota)
{
printf("\nAlumno: %d", i);
printf("\n\tDNI: %s", Alumnos[i].DNI);
printf("\n\tNombre del alumno: %s", Alumnos[i].nombre);
printf("\n\tNota del alumno: %f", Alumnos[i].nota);
}
}
}
<file_sep>/primero/mp_c/practica/es_sufijo/es_sufijo.c
#include <stdio.h>
#include <string.h>
int es_sufijo(char *cadena, char *sufijo){
if( strstr(*cadena, *sufijo) == NULL ){
return 0;
}
else{
int sizesuf = strlen(sufijo);
int sizecad = strlen(cadena);
for( ; sizesuf >= 0 ; sizecad-- , sizesuf--){
if(sufijo[sizesuf]== cadena[sizecad]){
}
else{
return 0;
}
}
return 1;
}
}
int main(){
char cadena[] = "chiquito";
char sufijo[] = "ito";
printf("Introduzca la cadena donde desea buscar:\n");
/*scanf("%c\n", &cadena );*/
printf("Introduzca su sufijo o prefijo a localizar:\n");
/*scanf("%c\n", &sufijo );*/
if(es_sufijo == 1){
printf("%c es sufijo de la cadena %c\n",sufijo,cadena );
}
else{
printf("%c no es sufijo de la cadena %c\n", sufijo,cadena);
}
return 0;
}
<file_sep>/segundo/ED_practicas/Practica-1-usuario/Monomio.hpp
/*!
\file Monomio.hpp
\brief Definición de la clase Monomio
\author <NAME>
*/
#ifndef _MONOMIO_HPP_
#define _MONOMIO_HPP_
// Para usar la funciones pow y std::abs
#include <cmath>
// Para controlar las pre y post condiciones mediante asertos
#include <cassert>
#define COTA_ERROR 1.0e-6 //!< Cota de error para la comparación números reales
// Se incluye la clase Monomio dentro del espacio de nombre de la asigantura: ed
namespace ed
{
//! Definición de la clase Monomio: \f$ coeficiente \hspace{1ex} X^{grado} \f$
class Monomio
{
//! \name Atributos privados de la clase Monomio
private:
double coeficiente_;
int grado_;
//! \name Funciones o métodos públicos de la clase Monomio
public:
//! \name Constructores de la clase Monomio
/**
* @brief Construct a new Monomio object
*
* @param coeficiente
* @param grado
*/
Monomio(const double &coeficiente = 0.0 , const int &grado = 0){
//comprobamos las precondiciones
#ifndef NDEBUG
assert(grado >= 0);
#endif
setCoeficiente(coeficiente);
setGrado(grado);
//comprobamos las postcondiciones
#ifndef NDEBUG
assert(std::abs(getCoeficiente() - coeficiente) < COTA_ERROR); //comprobamos que el coeficiente es introducido correctamente
assert(getGrado() == grado); //comprobamos que el grado es introducido correctamente
#endif
}
Monomio(Monomio &m){
setCoeficiente(m.getCoeficiente());
setGrado(m.getGrado());
#ifndef NDEBUG
assert(std::abs(this->getCoeficiente() - m.getCoeficiente()) < COTA_ERROR);
assert(this->getGrado() == m.getGrado());
#endif
}
//! \name Observadores: funciones de consulta de la clase Monomio
/**
* @brief Get the Coeficiente object
*
* @return double
*/
double getCoeficiente() const { return coeficiente_; }
/**
* @brief Get the Grado object
*
* @return int
*/
int getGrado() const { return grado_; }
//! \name Funciones de modificación de la clase Monomio
/**
* @brief Set the Coeficiente object
*
* @param coeficiente
*/
void setCoeficiente( double const &coeficiente ){
coeficiente_ = coeficiente;
#ifndef NDEBUG
assert(std::abs(this->getCoeficiente() - coeficiente) < COTA_ERROR);
#endif
}
/**
* @brief Set the Grado object
*
* @param grado
*/
void setGrado( int const &grado ){
grado_ = grado;
#ifndef NDEBUG
assert(getGrado() == grado);
#endif
}
/////////////////////////////////////////////////
//! \name Operadores de la clase Monomio
// Operadores de asignación
/**
* @brief Operador = de la clase monomio, iguala a un objeto Monomio
*
* @param m
* @return Monomio&
*/
Monomio & operator=(Monomio const &m);
/**
* @brief Operador = de la clase monomio, iguala a un valor real
*
* @param x
* @return Monomio&
*/
Monomio & operator=(double const &x);
// Operadores aritméticos y asignación
/**
* @brief Operador +=
*
* @param m
* @return Monomio&
*/
Monomio & operator+=(Monomio const &m);
/**
* @brief Operador -=
*
* @param m
* @return Monomio&
*/
Monomio & operator-=(Monomio const &m);
/**
* @brief Operador *=
*
* @param m
* @return Monomio&
*/
Monomio & operator*=(Monomio const &m);
/**
* @brief Operador *=
*
* @param real
* @return Monomio&
*/
Monomio & operator*=(double const &real);
/**
* @brief Operador /=
*
* @param m
* @return Monomio&
*/
Monomio & operator/=(Monomio const &m);
/**
* @brief Operador /=
*
* @param real
* @return Monomio&
*/
Monomio & operator/=(double const &real);
/////////////////////////////////////////////////////////////////////////////////////
//! \name Funciones lectura y escritura de la clase Monomio
/**
* @brief Funcion que nos permita leer un Monomio por pantalla
*
*/
void leerMonomio();
/**
* @brief Escribimos le monomio
*
*/
void escribirMonomio();
///////////////////////////////////////////////////////////////////////
//! \name Funciones auxiliares de la clase Monomio
/**
* @brief Una funcion auxiliar par calcular el valor
*
* @param valor
* @return double
*/
double calcularValor(double valor);
}; // Fin de la definición de la clase Monomio
} // Fin de namespace ed.
// _MONOMIO_HPP_
#endif
<file_sep>/segundo/poo/p2/persona.h
//persona.h
//this file is the declaration of the class Persona.
//we set the private and public data.
#ifndef PERSONA_H
#define PERSONA_H
#include <string>
class Persona{
private:
std::string DNI_;
std::string nombre_;
std::string apellidos_;
int edad_;
std::string direccion_;
std::string localidad_;
std::string provincia_;
std::string pais_;
public:
Persona(const std::string DNI, const std::string nombre = "", const std::string apellidos = "", const int edad = 0, const
std::string direccion = "", const std::string localidad = "", const std::string provincia = "", const std::string pais = "");
void setDNI(std::string s);
void setNombre(std::string s);
void setApellidos(std::string s);
void setDireccion(std::string s);
void setLocalidad(std::string s);
void setProvincia(std::string s);
void setPais(std::string s);
bool setEdad(int n);
std::string getDNI();
std::string getNombre();
std::string getApellidos();
std::string getDireccion();
std::string getLocalidad();
std::string getProvincia();
std::string getPais();
int getEdad();
std::string getApellidosyNombre();
bool mayor();
};
#endif
<file_sep>/repaso_examen/repaso_guess.cc
/*
2.-
Hacer un programa (guess.cc) que genere un n�mero aleatorio entre 1 y 10, y
solicite al usuario un n�mero por teclado para posteriormente adivinarlo indicando
al usuario si el n�mero generado es menor, mayor o es correcto. Usar para la entrada
por teclado el objeto de entrada estandar cin para lo que tendr�s que incluir la
misma cabecera que con cout del ejercicio anterior.
incluimos las librerias de entrada y salida, junto con la libreria para generar la
semilla del srand y stdlib para rand
*/
#include <iostream>
#include <ctime>
#include <cstdlib>
int main(){
//para generar el numero aleatorio debemos inicializar la semilla
int rand_num , guess;
srand(time(NULL)); //semilla inicializada
rand_num = (rand() % 10+1); //genera un numero entre 1 y 10
std::cout << "Adivine el numero generado" << '\n';
std::cin >> guess;
while (guess != rand_num){
if (guess < rand_num){
std::cout << "El numero introducido es menor, pruebe otra vez:" << '\n';
std::cin >> guess;
}
if (guess > rand_num){
std::cout << "El numero introducido es mayor, pruebe otra vez" << '\n';
std::cin >> guess;
}
}
std::cout << " ¡Enhorabuena!, has adivinado el numero. " << '\n';
}<file_sep>/primero/mp_c/practica/01_Punteros/compruebaTipos.c
#include <stdio.h>
void main()
{
float* pf;
char c;
pf=&c; //No es válido
}
<file_sep>/segundo/ED_practicas/Practica-1-usuario/Monomio.cpp
/*!
\file Monomio.cpp
\brief Fichero que contiene el código de las funciones de la clase Monomio
*/
// Ficheros de cabecera
#include <iostream>
#include "Monomio.hpp"
// Operadores de asignación
// COMPLETAR
ed::Monomio & ed::Monomio::operator=(ed::Monomio const &m)
{
//podemos usar los modificadores para asignar los diferentes atributos.
setCoeficiente(m.getCoeficiente());
setGrado(m.getGrado());
assert(getCoeficiente() == m.getCoeficiente());
assert(getGrado() == m.getGrado());
// Se devuelve el objeto actual
return *this;
}
ed::Monomio & ed::Monomio::operator=(double const &x)
{
//podemo usar los modificadores para asignar los diferentes atributos.
setCoeficiente(x);
setGrado(0);
assert(getCoeficiente() == x);
assert(getGrado() == 0);
// Se devuelve el objeto actual
return *this;
}
//////////////////////////////////////////////////////////////
// Operadores aritméticos y asignación
// COMPLETAR
ed::Monomio & ed::Monomio::operator+=(ed::Monomio const &m)
{
//precondicion
if (m.getGrado() == grado_) {
this->setCoeficiente(this->getCoeficiente() + m.getCoeficiente());
/*comprobamos que El coeficiente del monomio actual se ha incrementado con el coeficiente
del monomio “m”.*/
assert(this->getCoeficiente() == this->getCoeficiente() - m.getCoeficiente());
assert(m.getCoeficiente() == coeficiente_);
return *this;
}
// Se devuelve el objeto actual
return *this;
}
ed::Monomio & ed::Monomio::operator-=(ed::Monomio const &m){
//precondicion
if(m.getGrado() == this->getGrado()){
this->setCoeficiente(this->getCoeficiente() - m.getCoeficiente());
//assertos
return *this;
}
return *this;
}
ed::Monomio & ed::Monomio::operator*=(ed::Monomio const &m){
//multiplicamos los coeficientes
this->setCoeficiente(this->getCoeficiente() * m.getCoeficiente());
//se suman los grados
this->setGrado(this->getGrado() + m.getGrado());
//assertos
return *this;
}
ed::Monomio & ed::Monomio::operator*=(double const &real){
this->setCoeficiente(this->getCoeficiente() * real);
//assertos
return *this;
}
ed::Monomio & ed::Monomio::operator/=(ed::Monomio const &m){
if (m.getGrado() <= this->getGrado() && m.getCoeficiente() > COTA_ERROR) {
this->setCoeficiente(this->getCoeficiente() / m.getCoeficiente());
this->setGrado(this->getGrado() - m.getGrado());
return *this;
}
return *this;
}
ed::Monomio & ed::Monomio::operator/=(double const &real){
if(real > COTA_ERROR){
this->setCoeficiente(this->getCoeficiente() / real);
//assertos
return *this;
}
return *this;
}
///////////////////////////////////////////////////////////////////////
// Funciones lectura y escritura de la clase Monomio
void ed::Monomio::leerMonomio() {
double coeficiente_auxiliar;
int grado_auxiliar;
std::cout << "Introduce los valores del monomio:" << std::endl;
std::cout << "\tCoeficiente: ";
std::cin >> coeficiente_auxiliar;
std::cout << "\tGrado (mayor o igual a 0): ";
std::cin >> grado_auxiliar;
while(grado_auxiliar < 0){
std::cout << "Introduzca un grado mayor o igual a 0: ";
std::cin >> grado_auxiliar;
}
setCoeficiente(coeficiente_auxiliar);
setGrado(grado_auxiliar);
}
void ed::Monomio::escribirMonomio(){
int coeficiente = this->getCoeficiente();
double grado = this->getGrado();
if (coeficiente != 1){
std::cout<<coeficiente;
}
else if(coeficiente == -1){
std::cout<<"-";
}
if (grado > COTA_ERROR){
std::cout<<"X";
if(std::abs(grado - 1) > COTA_ERROR){
std::cout<<"^"<<grado;
}
}
std::cout<<std::endl;
}
///////////////////////////////////////////////////////////////////////
// Funciones auxiliares de la clase Monomio
double ed::Monomio::calcularValor(double valor){
//calculamos el resultado del monomio "coeficiente * valor ^ grado"
return pow((this->getCoeficiente()* valor), this->getGrado());
}
// COMPLETAR<file_sep>/segundo/poo/p2/crupier.cc
//crupier.cc
//the code for the class Crupier
#include <string>
#include "crupier.h"
using std::string;
Crupier::Crupier(const string DNI, const string codigo, const string nombre, const string apellidos,
const int edad, const string direccion, const string localidad, const string provincia,
const string pais) : Persona(DNI, nombre, apellidos, edad, direccion,
localidad, provincia, pais){
codigo_ = codigo;
}
<file_sep>/primero/mp_c/practica/01_Punteros/cambia.c
#include <stdio.h>
void cambiaMal(char a,char b)
{
char aux;
printf("\nDentro antes: a=%d b=%d", a,b);
aux = a;
a = b;
b = aux;
printf("\nDentro despues: a=%d b=%d", a,b);
}
void cambiaBien(char *a, char *b)
{
char aux;
aux = *a;
*a = *b;
*b = aux;
}
int main()
{
char x=0, y=1;
printf("\ncambiaMal : x=%d y=%d => ", x, y);
cambiaMal(x,y);
printf("\nx=%d y=%d", x, y);
printf("\ncambiaBien: x=%d y=%d => ", x, y);
cambiaBien(&x,&y);
printf("\nx=%d y=%d", x, y);
return 0;
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_5/makefil5.mak
#Fichero: makefil5.mak
#Makefile con destino simbolico llamado saludos
saludos: saludo.exe saludo2.exe clean
saludo.exe: saludo.c
@echo Creando saludo.exe
@gcc -o saludo.exe saludo.c
saludo2.exe: saludo2.c
@echo Creando saludo2.exe
@gcc -o saludo2.exe saludo2.c
clean:
@echo Borrando ficheros.o ...
@rm -f *.o
<file_sep>/segundo/S.O practicas/p2/ej3.c
//Ejercicio 3.1 de la practica 2 de Sistemas Operativos
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <semaphore.h>
#define TAMBUFFER 5
int buffer[TAMBUFFER];
int suma_productor = 0, suma_consumidor = 0;
sem_t empty;
sem_t full;
sem_t mutex;
void * Productor();
void * Consumidor();
int main(){
//inicializamos como nos dice el psudocodigo
extern sem_t empty, full, mutex;
//semilla del srand
srand(time(NULL));
//arrancamos los semaforos
if((sem_init(&mutex, 0, 1)) == -1) perror("Error: Fallo al iniciar sem mutex\n");
if((sem_init(&full, 0, 0)) == -1) perror("Error: Fallo al iniciar sem c_full\n");
if((sem_init(&empty, 0, TAMBUFFER)) == -1) perror("Error: Fallo al iniciar sem p_empty\n");
//Creamos los hilos
pthread_t consumidor;
pthread_t productor;
int thread_status;
int *consumidor_return = 0;
int *productor_return = 0;
//cramos tanto consumidor como productor
if((thread_status = pthread_create(&consumidor, NULL, Consumidor, NULL))) {
fprintf(stderr, "Fallo al crear consumidor\n");
exit(thread_status);
}
if((thread_status = pthread_create(&productor, NULL, Productor, NULL))) {
fprintf(stderr, "Fallo al crear productor\n");
exit(thread_status);
}
//creamos los waits
if(pthread_join(consumidor, (void *) &consumidor_return)) fprintf(stderr, "Error en pthread_join\n");
if(*consumidor_return == suma_consumidor) {
printf("La suma es (consumidor): %d\n", *consumidor_return);
}
pthread_join(productor, (void *) &productor_return);
printf("La suma ha sido (productor): %d\n", *productor_return);
}
void * Productor(){
extern int buffer[TAMBUFFER], suma_productor;
extern sem_t mutex, full, empty;
int aux;
int *to_return;
for(int i = 0; i < 100; i++) {
aux = ((rand() % 1000) + 1);
sem_wait(&empty);
sem_wait(&mutex);
buffer[i % TAMBUFFER] = aux;
suma_productor += buffer[i % TAMBUFFER];
sem_post(&mutex);
sem_post(&full);
}
to_return = malloc(sizeof(int));
*to_return = suma_productor;
pthread_exit((void *)to_return);
}
void * Consumidor(){
extern int buffer[TAMBUFFER], suma_consumidor;
extern sem_t mutex, full, empty;
int *to_return;
for(int i = 0; i < 100; i++) {
sem_wait(&full);
sem_wait(&mutex);
suma_consumidor += buffer[i % TAMBUFFER];
buffer[i % TAMBUFFER] = 0;
sem_post(&mutex);
sem_post(&empty);
}
to_return = malloc(sizeof(int));
*to_return = suma_consumidor;
pthread_exit((void *)to_return);
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_3/makefil3.mak
#Fichero: makefil3.mak
#Construye un ejecutable a partir de tres ficheros fuente, utilizando una libreria
main.x: main.o lib.a
gcc -o main.x main.o lib.a
main.o: main.c vector.h orden.h
gcc -c main.c
lib.a: vector.o orden.o
ar -rsv lib.a vector.o orden.o
vector.o: vector.c vector.h
gcc -c vector.c
orden.o: orden.c orden.h
gcc -c orden.c
<file_sep>/segundo/ED_practicas/Practica-1-usuario/html/search/all_c.js
var searchData=
[
['setcoeficiente',['setCoeficiente',['../classed_1_1Monomio.html#a7f5394d1436a7339d33d7b5edea29541',1,'ed::Monomio']]],
['setgrado',['setGrado',['../classed_1_1Monomio.html#a1aac62dc9b277a78ecafc94874fc5c60',1,'ed::Monomio']]]
];
<file_sep>/primero/mp_repaso/relacion_1/ej6.c
#include <stdio.h>
#include <stdlib.h>
//Tenemos que hacer una funcion que compare parametros.
int compare(int a, int b){
if( a < b){
return a;
}
else{
return b;
}
}
int compare_reference(int a, int b, int* res){
if(a < b){
*res = a;
}
else{
*res = b;
}
}
int main(){
int a ;
int b ;
int res;
printf("Introduce el valor del primer numero\n");
scanf("%d",&a);
printf("Introduce el valor del segundo numero\n");
scanf("%d",&b);
printf("--Pasado por valor--\n %d \n",compare(a,b) );
printf("---------------------\n");
printf("--Pasando por referencia\n",compare_reference(a,b,&res) );
printf("--El minimo es %d\n",res );
}
<file_sep>/primero/mp_c/practica/practica_3/ej9_2/funciones.c
#include <stdio.h>
#include <string.h>
FILE* openfichero(char* fichero){
FILE* f = fopen(fichero, 'r');
if( f == NULL){
printf("Error abriendo el fichero\n");
exit(-1);
}
else{
return f;
}
}
void scantxt(char* fichero, libros *datos){
FILE* f = openfichero(fichero);
libros aux;
}
}
<file_sep>/primero/mp_c/practica/practica_3/ej4/main.c
#include <stdio.h>
#include <string.h>
int findchar(int cont,int nveces,char *pcadena, char *letra){
//declaramos la condición incial...
//Al final de un char viene un "/n", por tanto...
if (pcadena[cont] == '\n')
return nveces;
//Ahora hacemos la funcion para encontrar el caracter.
else{
//Si encuentra el caracter, sumamos contador y numero de veces que aparece "letra".
if(pcadena[cont] == *letra){
cont++;
nveces++;
return findchar(cont,nveces,pcadena,letra);//Retornamos la funcion (recursividad).
}
//Si no encontramos el caracter, sumamos contador.
else{
cont++;
return findchar(cont,nveces,pcadena,letra);//Retornamos la funcion (recursividad).
}
}
}
int main(){
//iniciamos las cadenas.
char pcadena[50];
char letra[2];
//iniciamos los contadores a 0.
int cont = 0, nveces = 0;
printf("Introduzca la cadena\n");
fgets(pcadena, 50, stdin);
printf("Introduzca el caracter a buscar\n");
scanf("%s",letra);
nveces = findchar(cont,nveces,pcadena,letra);
printf("El numero de veces que se repite < %s > en la cadena es: %d\n",letra,nveces );
}
<file_sep>/primero/mp_c/practica/practica_2/ej2/funciones.h
#ifndef _FUNCIONES_
#define _FUNCIONES_
int returnvectores(int *vector, int longi, int num);
int draw_vector(int *vector, int longi);
int randomnum(int *vector,int max);
#endif
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_7/vector.h
/* --------------------------------------------
Fichero vector.h
Contiene los prototipos de las funciones
de E/S de vectores usadas por la función
"main()" y de las constantes locales
MAX_LINE y MY_MAX_RAND
------------------------------------------------*/
#ifndef VEC_ES
#define VEC_ES
#define MAX_LINE 10
void llena_vector(int * p, int tope);
void pinta_vector(int * p, int tope);
#endif
<file_sep>/repaso_examen/repaso_dados.cc
/*
Creamos un fichero para repasar la creacion de clases
Dicho esto vamos a volver a crear la clase dados
------------------------------------------------------
REPASO EXAMEN POO
------------------------------------------------------
En el fichero .cc se guarda el cuerpo de la clase
*/
#include <ctime>
#include <cstdlib>
#include <repaso_dados.h>
int main(){
Dados::Dados(){
//inicializamos el constructor
srand(time(NULL));
d1_ = 1;
d2_ = 1;
}
int Dados::getDado1(){
return d1_;
}
int Dados::getDado2(){
return d2_;
}
void Dados::lanzamiento(){
d1_ = (rand()6+1);
d2_ = (rand()6+1);
}
bool setDado1(int numero){
if (0 > numero && numero < 7) {
d1_ = numero;
return true;
}
else{
return false;
}
}
bool setDado2(int numero){
if (0 > numero && numero < 7) {
d2_ = numero;
return true;
}
else{
return false;
}
}
int getSuma(){
return (d1_+d2_);
}
}
<file_sep>/primero/mp_c/practica/practica_3/argument/argumentosLineaOrdenes/sumaArgs.c
/* -------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Argumentos en línea de órdenes
Ejercicio: Suma de los n números pasasdos como argumento
--------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv){
int i,nEle,aux;
int suma;
//Comprobar que el número de parámetro sea
//correcto
if (argc == 1){
printf("No hay números que sumar\n");
exit(-1);
}
nEle = argc;
suma = 0;
for (i=1; i<nEle; i++){
//Convertimos el argumento a número
aux = atoi(argv[i]);
suma=suma+aux;
}
printf("La suma de los %d elementos es %d\n",nEle, suma);
return 0;
}
<file_sep>/primero/mp_c/practica/practica_3/argument/argumentosLineaOrdenes/sumaMultiplica.c
/* -----------------------------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Argumentos en línea de órdenes
Ejercicio: Programa que recibe 3 argumentos (operación y dos numeros).
El programa realizará la operación indicada con los
dos numeros
--------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char ** argv){
float num1, num2, res;
int opcion;
//Comprobar que el número de parámetro sea
//correcto
if (argc !=4){
printf("Sintaxis incorrecta: \n");
printf("%s operacion num1, num2\n",argv[0]);
printf(" Suma -> operación = 0\n");
printf(" Producto -> operación = 1\n");
exit(-1);
}
opcion = atoi(argv[1]);
//Comprobamos que se haya introducido una opción correcta
if ((opcion !=0) && (opcion !=1)){
printf("Opcion incorrecta: 0(suma) \n 1 (producto)\n");
exit(-1);
}
//Convertimos los números
num1 = atof(argv[2]);
num2 = atof(argv[3]);
if (opcion ==0)
res = num1+num2;
else
res = num1*num2;
printf("El resultado de %s %f y %f es %f\n",
opcion==0?"sumar":"multiplicar", num1,
num2, res);
return(0);
}
<file_sep>/primero/mp_c/practica/practica_3/ej9/funciones.h
#ifndef _FUNCIONES_
#define _FUNCIONES_
abrirfichero(char* fichero);
buscarlibro(FILE* fichero, char* titulo);
addlibro(FILE* fichero, libro *libros);
typedef struct DatosLibro{
char titulo[15];
char autor[15];
int precio;
int unidades;
}libro;
#endif
<file_sep>/primero/mp_c/practica/01_Punteros/pasoReferencia.c
#include <stdio.h>
void incremento(int *n)
{
*n = *n +1;
}
void B(int *vb)
{
*vb = *vb * 5;
}
void A(int *va)
{
*va = *va + 1;
B(va);
}
int main()
{
int h;
int valor = 5;
incremento(&valor);
printf("\nincremento: %d", valor);
h = 5;
A(&h);
printf("\nA(h): %i", h);
return 0;
}
<file_sep>/primero/mp_c/practica/practica_3/ej3/main.c
#include <stdio.h>
#include <stdlib.h>
int avalor(int num){
if( num < 0 ){
return -num;
}
return num;
}
int division(int dividendo, int divisor){
if(divisor == 0){
printf("No se puede dividir entre 0\n");
exit(-1);
}
dividendo = avalor(dividendo);
divisor = avalor(divisor);
if(dividendo < divisor){
return 0;
}
return (1 + division(dividendo-divisor,divisor));
}
int main() {
int dividendo, divisor, aux;
printf("Introduzca el valor a dividir\n");
scanf("%d",÷ndo);
printf("Introduzca tu divisor\n");
scanf("%d",&divisor);
aux = division(dividendo,divisor);
printf("El resultado es %d \n",aux);
return 0;
}
<file_sep>/primero/mp_c/practica/01_Punteros/suma.c
/*-------------------------------------------------------------------*/
//DISTINTAS FORMAS DE SUMAR LOS ELEMENTOS DE UN VECTOR
/*-------------------------------------------------------------------*/
#include <stdio.h>
#define Dim 5
void main()
{
int i, suma;
int* ptr, *ptrfin;
int V[Dim]={1, 2, 3, 4, 5};
/*------------------------------*/
suma=0;
for(i=0; i<Dim; i++)
{
suma = suma+V[i];
}
printf("1. Resultado para suma=suma+V[i]:%d\n", suma);
/*------------------------------*/
suma=0;
for(i=0; i<Dim; i++)
{
suma = suma+(*(V+i));
}
printf("2. Resultado para suma = suma+(*(V+i)):%d\n", suma);
/*------------------------------*/
suma=0;
ptr=V;
for(i=0; i<Dim; i++)
{
suma = suma+ptr[i];
}
printf("3. Resultado para suma = suma+ptr[i]:%d\n", suma);
/*------------------------------*/
suma=0;
ptr=V;
for(i=0; i<Dim; i++)
{
suma = suma+*ptr++;
}
printf("4. Resultado para suma = suma+*ptr++:%d\n", suma);
/*------------------------------*/
suma=0;
ptrfin=V+Dim;
for(ptr=V; ptr<ptrfin; ptr++)
{
suma = suma+*ptr;
}
printf("5. Resultado para suma = suma+*ptr:%d\n", suma);
/*------------------------------*/
suma=0;
ptr=V;
for(i=0; i<Dim; i++)
{
suma = suma+*(ptr+i);
}
printf("6. Resultado para suma = suma+*(ptr+i):%d\n", suma);
}
<file_sep>/primero/mp_c/practica/es_sufijo/sufijo.c
#include <stdio.h>
#include "funcion.h"
int main(int argc, char const *argv[]){
char* a = "PatuPePe";
char* b = "Pe";
int resultado = es_sufijo(a, b);
printf("%d\n",resultado );
return 0;
}
<file_sep>/primero/mp_c/practica/practica_3/ej9_2/funciones.h
#include <stdio.h>
#include <string.h>
FILE* openfichero(char* fichero);
void scantxt(FILE* fichero, libros datos);
typedef struct DatosFichero{
char titulo[100];
char autor[100];
float precio;
int unidades;
}libros;
<file_sep>/segundo/ED_practicas/Practica-1-usuario/html/search/functions_0.js
var searchData=
[
['calcularvalor',['calcularValor',['../classed_1_1Monomio.html#a43bb7af8561d74cb25afdfdc76dd7b27',1,'ed::Monomio']]]
];
<file_sep>/apuntes_lucia/Pizzeria.cpp
#include <iostream>
#include <array>
#include <string>
using namespace std;
const int MAX_INGREDIENTES_PIZZA = 10;
const int MAX_PEDIDOS = 20;
typedef array <int, MAX_INGREDIENTES_PIZZA> Ingredientes_solicitados;
typedef array <string, MAX_INGREDIENTES_PIZZA> ING;
const ING INGREDIENTES = {{"tomate", "queso", "nata", "cebolla", "pollo", "huevo", "salami", "anchoa", "bacon", "gamba"}};
struct Pedido {
string nombre;
string telefono;
int codigo_pedido/*numero de cada pedido*/;
int numero_ingredientes/*numero total de ingredientes que solicitan*/;
Ingredientes_solicitados ingredientes;
};
typedef array <Pedido, MAX_PEDIDOS> Lista;
struct Pizzeria {
int codigo_pedidos /*aumenta con pedido insertado*/;
int numero_pedidos /*numero de pedidios almacenado en lista_pedidos*/;
Lista lista_pedidos;
};
void inicializar_datos (Pizzeria& p)
{
p.numero_pedidos = 0;
p.codigo_pedidos = 1;
}
void leer_ingrediente (int& ing)
{
string ingrediente;
cout <<"\nIntroduce el ingrediente que quieres agregar a la pizza: ";
cin >> ingrediente;
ing = 0;
while (ingrediente != INGREDIENTES [ing])
{ing++;
if(ing > int (INGREDIENTES.size()))
{cout << "Introduce un ingrediente valido por favor: ";
cin >> ingrediente;
ing=0;}
}
}
void escribir_ingrediente (int ing)
{
cout << INGREDIENTES[ing] << ' ';
}
void leer_pedido (Pedido& ped, bool& ok)
{
cout << "Su numero de pedido es: "<< ped.codigo_pedido<< endl;
ped.codigo_pedido++;
cout << "Introduce su nombre: ";
getline(cin, ped.nombre);
cout << "Introduce su numero de telefono: ";
cin >> ped.telefono;
while (ped.telefono.size()!=9)
{
cout << "El numero de telefono no es correcto, introduce un numero adecuado: ";
cin >> ped.telefono;
}
cout << "Introduce el numero de ingredientes: ";
cin >> ped.numero_ingredientes;
while(ped.numero_ingredientes >MAX_INGREDIENTES_PIZZA)
{
ok = false;
cout << "Introduce el numero de ingredientes valido: ";
cin >> ped.numero_ingredientes;
}
if (ped.numero_ingredientes <= MAX_INGREDIENTES_PIZZA)
{
ok = true;
for(int i=0; i<ped.numero_ingredientes;i++)
leer_ingrediente(ped.ingredientes[i]);
}
}
void insertar_pedido (Pizzeria& p, const Pedido& ped, bool& ok)
{
if (p.numero_pedidos < MAX_PEDIDOS)
{
p.lista_pedidos[p.numero_pedidos] = ped;
p.numero_pedidos++;
p.lista_pedidos[p.numero_pedidos].codigo_pedido = p.codigo_pedidos;
p.codigo_pedidos++;
ok = true;
} else
ok=false;
}
void escribir_pedido(const Pedido& ped)
{
cout << ped.nombre << ' ' << ped.telefono << ' ' << ped.codigo_pedido << ' ' << ped.numero_ingredientes << ' ';
escribir_ingrediente(ped.numero_ingredientes);
}
void escribir_pedidos(const Pizzeria& p)
{
cout << p.codigo_pedidos << endl;
cout << p.numero_pedidos << endl;
for (int i = 0; i < p.numero_pedidos; i++)
escribir_pedido(p.lista_pedidos[i]);
for (int j= 0; j <= (INGREDIENTES.size()-1); j++)
escribir_ingrediente(j);
}
void eliminar_pedido(Pizzeria& p, int cod_pedido, bool& ok)
{
int i = 0;
while ((i<p.numero_pedidos) && (cod_pedido!=p.lista_pedidos[i].codigo_pedido)){
i++;
}
if(i >= p.numero_pedidos)
{
ok = false;
} else{
for (int j = i; j < p.lista_pedidos.size()-1; j++)
{
p.lista_pedidos[j] = p.lista_pedidos[j+1];
}
ok = true;
p.numero_pedidos--;
}
}
int buscar_pedido (const Pizzeria& p, const string& nombre)
{
int i = -1;
int j = 0;
while ((j<p.numero_pedidos) && (nombre!=p.lista_pedidos[j].nombre)){
j++;
}
if (j>=p.numero_pedidos)
{
return i;
}else {
i = j;
return i;
}
}
int main ()
{
Pedido p;
bool ok;
leer_pedido(p, ok);
cout << p.nombre << ' ' << ok;
}
<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_7/main.c
/* ---------------------
Programa principal
---------------------*/
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include "vector.h"
#include "orden.h"
#define MAX 15
int main(){
int m[MAX];
srand(time(NULL));
//Rellenamos completamente el vector m
llena_vector(m,MAX);
//Muestra el vector
printf("\n\n Vector original (Antes de ordenar): ");
pinta_vector(m,MAX);
// Ordena el vector m
ordena_vector(m,MAX);
//Muestra el vector m después de ordenarlo */
printf("Vector final (Depués de ordenarlo): ");
pinta_vector(m,MAX);
return(0);
}
<file_sep>/primero/mp_c/practica/01_Punteros/literalesCadena.c
#include <string.h>
#include <stdio.h>
int main()
{
char ptr[]="Hola";
printf("\n<%s>", ptr);
strcpy(ptr, "Adios");
printf("\n<%s>", ptr);
}<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_7/makefil7.mak
#Fichero: makefil7.mak
#Makefile con macros predefinidas
destinos: main.x clean
main.x: main.o vector.o orden.o
gcc -o $@ $^
main.o: main.c
gcc -c main.c
vector.o: vector.c
gcc -c vector.c
orden.o: orden.c
gcc -c orden.c
clean:
rm *.o
<file_sep>/primero/mp_c/practica/01_Punteros/punterosConstantes.c
#include <stdio.h>
void main()
{
int y;
//Puntero constante
int x;
int* const p =&x;
//Puntero a constante
const int x1=25;
const int* p1=&x;
//Puntero constante a constante
const int x2=25;
const int* const p2=&x;
//p=&y; warning: p es constante, no podemos cambiar su valor
*p=30; //Si podemos cambiar *p
//*p1=30;warning: *p1 es constante, no podemos cambiar su valor
p1=&y; //Si podemos cambiar p1
//*p2=30; warning: *p2 es constante, no podemos cambiar su valor;
//p2=&y; warning: p2 es constante, no podemos cambiar su valor;
}<file_sep>/primero/compilacionCondicional/makefiles/ejemplo_1/makefile
#Fichero: makefile
#Construye saludo.exe a partir de saludo.c
saludo.exe: saludo.c
gcc -o saludo.exe saludo.c
<file_sep>/primero/compilacionCondicional/ejemplo-con/ppal.c
/* -------------------------------------------------------
Códigos de los ejemplos de las transparencias
y de los vistos en clase
Tema 8: Inclusion condicional de código
Ejercicio: Ejemplo básico
programa principal
--------------------------------------------------------*/
#include <stdio.h>
#define MAX_ALUMNOS 30
#include "consultas.h"
#include "ES.h"
int menu();
/********************************************************************/
/* FUNCION PRINCIPAL */
/********************************************************************/
int main()
{
stAlumno Alumnos[MAX_ALUMNOS];
int tope;
int salir=0;
struct alumno* aux;
tope=0; //Inicializacion muy importante
introducirDatos(Alumnos, &tope);
do
{
switch(menu())
{
case 0:salir=1;
break;
case 1:introducirDatos(Alumnos, &tope);
break;
case 2:mostrarAlumnos(Alumnos, tope);
break;
case 3:mostrarSuperanNota(Alumnos, tope, calculaMedia(Alumnos, tope));
break;
}
}while(!salir);
return 0;
}
/********************************************************************/
/*
Nombre: menu.
Tipo: int.
Objetivo: Muestra un menu y selecciona una opción.
Parametros de entrada: Ninguno.
Precondiciones: Ninguna.
Devuelve:
- int: la opción seleccionada
*/
/*******************************************************************/
int menu()
{
int opcion;
do
{
printf("\n-----------------");
printf("\n\nMENU PRINCIPAL");
printf("\n-----------------");
printf("\n\t1. Introducir nuevos alumnos");
printf("\n\t2. Listar todos los alumnos");
printf("\n\t3. Mostrar nota media y los alumnos que la superan");
printf("\n\t0. Salir\n");
scanf("%d", &opcion);
}while((opcion<0)||(opcion>3));
return(opcion);
}
| 1be90cfdf99a90a2bf4819abb0d3571a685cb39e | [
"Markdown",
"JavaScript",
"Makefile",
"C",
"C++"
] | 87 | C | AntonioMC12/Practicas_Uni | 218188cf8d68863e8e76a74f18a70f14c86a2996 | 0743c75b7db627ffead52351128793b3a93716a3 |
refs/heads/master | <repo_name>gewoonderrik/TrendPress-Child<file_sep>/search.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<div id="breadcrumbs"><?php if (function_exists('tp_breadcrumbs')) tp_breadcrumbs(); ?></div>
<?php if (have_posts()) : ?>
<h1><?php printf(__( 'Search Results for: %1$s','tp'),'<span class="search-highlight">'.get_search_query().'</span>'); ?></h1>
<p>
<?php
$allsearch = &new WP_Query('s=$s&showposts=-1');
$count = $allsearch->post_count;
wp_reset_query();
printf(__('Found %1$s articles containing the keyword: <span class="search-highlight">%2$s</span>','tp'),$count,get_search_query());
?>
</p>
<?php while (have_posts()) : the_post(); ?>
<section class="blog-item">
<h2 class="blog-item-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="meta"><?php _e('Posted on','tp')?> <?php echo get_the_date(); ?> <?php _e('in the category:','tp') ?> <?php the_category(', ') ?></p>
<?php the_excerpt(); ?>
<p class="readmore"><a href="<?php echo the_permalink(); ?>"><?php _e('Read more »','tp'); ?></a></p>
</section>
<?php endwhile; ?>
<nav id="pagination"><?php tp_pagination('«','»'); ?></nav>
<?php else : ?>
<h1><?php printf(__( 'Search Results for: %1$s','tp'),'<strong class="search-highlight">'.get_search_query().'</strong>'); ?></h1>
<p><?php _e('Sorry, no posts matched your criteria. Try refining your search','tp');?></p>
<p><?php get_search_form();?></p>
<?php endif; ?>
</article>
<aside class="sidebar vertical fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Blog'); ?>
</aside>
</div>
<?php get_footer(); ?><file_sep>/comments.php
<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p class="no-comments"><?php _e('This post is password protected. Try logging in.','tp'); ?></p>
<?php return; } ?>
<!-- You can start editing here. -->
<?php if(!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) : ?>
<?php die('You can not access this page directly!'); ?>
<?php endif; ?>
<?php if(!empty($post->post_password)) : ?>
<?php if($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('This post is password protected. Try logging in.','tp'); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php if($comments) : ?>
<h3><?php _e('Responses','tp'); ?></h3>
<ol id="comments">
<?php foreach($comments as $comment) : ?>
<li id="comment-<?php comment_ID(); ?>">
<?php if(function_exists('get_avatar')) { echo get_avatar($comment, '75'); } ?>
<?php if ($comment->comment_approved == '0') : ?>
<p><?php _e('Your comment needs te be approved by us','tp'); ?>…
<?php endif; ?>
<?php comment_text(); ?>
<p class="meta"><?php comment_type(); ?> <?php _e('written by','tp'); ?> <?php comment_author_link(); ?> <?php _e('on','tp'); ?> <?php comment_date(); ?> - <?php comment_time(); ?></p>
</li>
<?php endforeach; ?>
</ol>
<?php else : ?>
<p><?php _e('No comments yet','tp'); ?></p>
<?php endif; ?>
<?php if(comments_open()) : ?>
<h3><?php _e('Respond','tp'); ?></h3>
<?php if(get_option('comment_registration') && !$user_ID) : ?>
<p><?php _e('You must be','tp'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','tp'); ?></a> <?php _e('to post a comment.','tp'); ?></p><?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if($user_ID) : ?>
<p><?php _e('Logged in as','tp'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out','tp'); ?>"><?php _e('Log out »','tp'); ?></a></p>
<?php else : ?>
<p><label for="author"><small><?php _e('Name:','tp'); ?> <?php if($req) echo "*"; ?></small></label><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /></p>
<p><label for="email"><small><?php _e('Email:','tp'); ?> <?php if($req) echo "*"; ?></small></label><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /></p>
<p><label for="url"><small><?php _e('Website:','tp'); ?></small></label><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /></p>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="10" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Respond','tp'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
<?php else : ?>
<p>The comments are closed.</p>
<?php endif; ?>
<file_sep>/footer.php
</section>
<footer id="main-footer" class="container">
<div class="inner sidebar horizontal">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('footer'); ?>
</div>
</footer>
<footer id="credits" class="container">
<div class="inner">
<div id="copyright" class="sixcol">
<p>© Copyright <?php the_time('Y'); ?> - <?php bloginfo('name'); ?> <?php ?></p>
</div>
<div id="sitemap" class="sixcol last">
<ul id="footernavigatie" class="navigation">
<?php wp_nav_menu( array(
'menu' => 'Footernavigatie',
'depth' => '1',
'items_wrap' => '%3$s'
));?>
</ul>
</div>
</div>
</footer>
<div id="ajaxurl"><?php echo admin_url('admin-ajax.php'); ?></div>
<div id="templateurl"><?php echo get_template_directory_uri() ?></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php echo get_stylesheet_directory_uri(); ?>/assets/script/functions.js"><\/script>')</script>
<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/script/functions.js"></script>
<?php wp_footer(); ?>
<!--[if IE 6]>
<div class="ie6">
<p><?php _e('You are using a very old version of Internet Explorer. For the best experience please upgrade (for free) to a modern browser:' ,'tp'); ?>
<ul>
<li><a href="http://www.mozilla.com">Firefox</a>,</li>
<li><a href="http://www.apple.com/safari/">Safari</a>,</li>
<li><a href="http://www.opera.com/">Opera</a>,</li>
<li><a href="http://www.google.com/chrome/">Google Chrome</a>, or</li>
<li><a href="http://www.microsoft.com/windows/internet-explorer/">Internet Explorer</a>.</li>
</ul>
</div>
<![endif]-->
</body>
</html><file_sep>/front-page.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile; endif; ?>
</article>
<aside class="sidebar fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Home'); ?>
</aside>
</div>
<?php get_footer(); ?><file_sep>/searchform.php
<div class="search">
<form action="<?php echo get_option('siteurl'); ?>" method="get">
<fieldset>
<input type="text" name="s" value="<?php _e('Keyword','tp'); ?>…" />
<input type="submit" value="<?php _e('Go','tp');?>" />
</fieldset>
</form>
</div><file_sep>/single.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<div id="breadcrumbs"><?php if (function_exists('tp_breadcrumbs')) tp_breadcrumbs(); ?></div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1 id="page-title"><?php the_title(); ?></h1>
<p class="meta"><?php _e('Posted on','tp')?> <?php echo get_the_date(); ?> <?php _e('in the category:','') ?> <?php the_category(', ') ?></p>
<?php the_content(); ?>
<p class="postmeta"><?php the_tags('Tags: ',', '); ?></p>
<?php endwhile; endif; ?>
<?php comments_template(); ?>
<nav id="pagination">
<div class="previous-post"><?php previous_post_link('« %link'); ?></div>
<div class="next-post"><?php next_post_link('%link »'); ?></div>
</nav>
</article>
<aside class="sidebar vertical fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Blog'); ?>
</aside>
</div>
<?php get_footer(); ?><file_sep>/header.php
<!DOCTYPE html>
<!--[if IE 7 ]><html class="no-js ie ie7" lang="nl"><![endif]-->
<!--[if IE 8 ]><html class="no-js ie ie8" lang="nl"><![endif]-->
<!--[if IE 9 ]><html class="no-js ie ie9" lang="nl"><![endif]-->
<!--[if gt IE 9]><html class="no-js ie" lang="nl"><![endif]-->
<!--[if !IE]><!-->
<html class="no-js" <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="author" content="Trendwerk" />
<meta name ="viewport" content ="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" />
<title><?php wp_title(); ?></title>
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php bloginfo('name'); ?> RSS Feed" />
<link rel="apple-touch-icon" type="image/x-icon" href="<?php bloginfo('template_url')?>/assets/img/favicon/apple-touch-icon.png" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="shortcut icon" type="image/png" href="<?php bloginfo('template_url')?>/assets/img/favicon/favicon.ico" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" type="text/css" media="print" href="<?php echo get_template_directory_uri() ?>/assets/css/print.css" />
<script type="text/javascript" src="<?php bloginfo('template_url')?>/assets/script/modernizr/modernizr.dev.js"></script>
<?php wp_head();?>
</head>
<body <?php body_class('g960'); ?>>
<header id="main-header" class="container">
<div class="inner">
<div id="logo" class="ninecol">
<p id="logo-p"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></p>
<p id="tagline"><?php bloginfo('description'); ?> </p>
</div>
<div id="search" class="threecol last right">
<?php get_search_form(); ?>
</div>
</div>
</header>
<nav id="main-navigation" class="container">
<div class="inner">
<ul id="hoofdnavigatie" class="navigation twelvecol sf-menu">
<?php wp_nav_menu( array(
'menu' => 'Hoofdnavigatie',
'depth' => '0',
'container' => '',
'items_wrap' => '%3$s'
)); ?>
</ul>
<div class="menu-topnavigatie-container">
<ul id="topmenu" class="navigation">
<?php wp_nav_menu( array(
'menu' => 'Topnavigatie',
'depth' => '0',
'container' => '',
'items_wrap' => '%3$s' ));
?>
</ul>
</div>
</div>
</nav>
<section id="main" class="container"><file_sep>/404.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<div id="breadcrumbs"><?php if (function_exists('tp_breadcrumbs')) tp_breadcrumbs(); ?></div>
<h1><?php _e('The page you are looking for doesn\'t exist.',"tp"); ?></h1>
<p><strong><?php _e('Seems like the page you were looking for might have been moved or just didn\'t excist in the first place.','tp'); ?></strong></p>
<p><?php echo sprintf(__('You might want to check out our <a href="%1$s">sitemap</a> or use the searchform below to find the page you are looking for.','tp'),get_option('siteurl').'/sitemap/'); ?></p>
<?php get_search_form(); ?>
</article>
<aside class="sidebar vertical fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Page'); ?>
</aside>
</div>
<?php get_footer(); ?><file_sep>/page-sitemap.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<div id="breadcrumbs"><?php if (function_exists('tp_breadcrumbs')) tp_breadcrumbs(); ?></div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<div class="post-type-page">
<h2><?php _e('Pages','tp'); ?></h2>
<ul><?php wp_list_pages("title_li="); ?></ul>
</div>
<?php if($post_types = get_post_types(array('public' => true,'_builtin' => false),'objects')) : ?>
<div class="custom-post-types">
<?php foreach($post_types as $post_type) : ?>
<div class="post-type-<?php echo $post_type->query_var; ?>">
<h2><?php echo $post_type->labels->name; ?></h2>
<?php $entries = new WP_Query(array('post_type' => $post_type->query_var,'posts_per_page' => -1)); ?>
<?php if($entries->have_posts()) : ?>
<ul>
<?php while($entries->have_posts()) : $entries->the_post(); ?>
<li><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
<?php endif; wp_reset_postdata(); ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php $nieuws = new WP_Query(array('posts_per_page' => -1)); ?>
<?php if($nieuws->have_posts()) : ?>
<div class="post-type-post">
<h2><?php _e('Blog','tp'); ?></h2>
<ul>
<?php while($nieuws->have_posts()) : $nieuws->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<?php endwhile; endif; ?>
</article>
<aside class="sidebar vertical fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Page'); ?>
</aside>
</div>
<?php get_footer(); ?><file_sep>/assets/script/functions.js
/*
FUNCTIONS.JS (CHILD)
All the jQuery/JavaScript enchangements go here...
------------------------------------------------------------------
FILE INFO
Last update: 06/07/2012
Update by: <NAME>
------------------------------------------------------------------
INDEX
1. TEMPLATE URL
2. RESPONSIVE
3. FANCYBOX
4. CYCLE
5. MODERNIZR
------------------------------------------------------------------
*/
jQuery(document).ready(function($){
// 1. TEMPLATE URL
/* we need a relative path to the template files. */
var tp_template_url = $('div#templateurl').html();
$.getScript(tp_template_url+'/assets/script/functions.js');
// 2. RESPONSIVE
/* see if the body class is g960... if so, then turn our
main navigation in a select list if on small screen
widths. also remove some base width and height image
settings for fluid images. */
if($('body').hasClass('g1140')) {
// load tinynav.js, it turns the main nav into a <select> for mobile purposes
$(function () {
$.getScript(tp_template_url+'/assets/script/tinynav/tinynav.min.js', function() { $("ul#hoofdnavigatie").tinyNav({active: 'selected'});});
});
// remove element height and width for responsiveness
$(window).load(function() {
$('.wp-caption').removeAttr('style');
var pic = $('img');
pic.removeAttr('width');
pic.removeAttr('height');
});
}
// 3. FANCYBOX
// if there's a a.fancybox, then get the fancybox script
$('section#main div.alignright a').addClass('fancybox');
$('section#main div.alignnone a').addClass('fancybox');
$('section#main div.alignleft a').addClass('fancybox');
$('section#main div.aligncenter a').addClass('fancybox');
$('dt.gallery-icon a').addClass('fancybox');
if($('a.fancybox').length > 0) {
$.getScript(tp_template_url+'/assets/script/fancybox/jquery.fancybox.js', function() {
$('a.fancybox').fancybox();
jQuery.getCSS = function( url, media ) {
jQuery( document.createElement('link') ).attr({
href: tp_template_url+'/assets/script/fancybox/jquery.fancybox.css',
media: media || 'screen',
type: 'text/css',
rel: 'stylesheet'
}).appendTo('head');
};
$.getCSS('mycss.css');
});
}
// 4. CYCLE
/* see if there's an #cycle-slider. if true, then load
cycle.js and add a progressie enhancement navigation
and pagination */
if($('#cycle-slider').length > 0) {
$.getScript(tp_template_url+'/assets/script/cycle/cycle.all.js', function() {
$('#cycle-slider').cycle({
fx: 'scrollHorz',
speed: 'fast',
timeout: 7000,
pager: '#cycle-pager-inner',
prev: '#prev',
next: '#next'
});
});
$('div#cycle-slider').after('<div id="cyle-nav"><a id="prev" href="#">Vorige</a><a id="next" href="#">Volgende</a></div>');
$('div#cycle-slider').after('<div id="cycle-pager"><div id="cycle-pager-inner">');
}
// 5. MODERNIZR
/* load a default modernizr polyfill for respond.min.js
we need this for responsive sites on old internet
explorer browsers */
Modernizr.load({
test: Modernizr.mq('only all and (max-width: 400px)'),
yep : '',
nope: tp_template_url+'/assets/script/respond/respond.min.js'
});
});<file_sep>/page.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<div id="breadcrumbs"><?php tp_breadcrumbs(); ?></div>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1 id="page-title"><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; else: ?>
<?php endif; ?>
</article>
<aside class="sidebar vertical fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Page'); ?>
</aside>
</div>
<?php get_footer(); ?><file_sep>/functions.php
<?php
/**
* All the child theme's specific functionalities
*
* @chapter 1. Sidebars
* @chapter 2. Custom Menu's
* @chapter 3. Language
* @chapter 4. Post types
* @chapter 5. Widgets
*/
/**
* @sidebars Register the sidebars
*/
if(function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Footer',
'id' => 'footerid',
'description' => 'De sidebar die wordt weegegeven in de footer.',
'before_widget' => '<div class="%2$s widget fourcol">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Home',
'id' => 'homeid',
'description' => 'De sidebar die wordt weergegeven op de homepagina.',
'before_widget' => '<div class="widget %2$s"><div class="widget-inner">',
'after_widget' => '</div></div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Page',
'id' => 'pageid',
'description' => 'De sidebar die wordt weergegeven op de vaste pagina\'s.',
'before_widget' => '<div class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Blog',
'id' => 'blogid',
'description' => 'De sidebar die wordt weegegeven op de blog pagina\'s',
'before_widget' => '<div class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
}
/**
* @menus Register Custom Menu's
*/
if (function_exists('register_nav_menu')) {
register_nav_menu('hoofdnavigatie','Hoofdnavigatie');
register_nav_menu('topnavigatie','Topnavigatie');
register_nav_menu('footernavigatie','Footernavigatie');
}
/**
* @languages Add the language domain
*/
load_theme_textdomain('tp',STYLESHEETPATH.'/assets/languages');
/**
* @posttype Add support post thumbnails
*/
add_theme_support('post-thumbnails');
function no_postpage_thumbnails() {
remove_post_type_support('page','thumbnail');
remove_post_type_support('post','thumbnail');
}
add_action('init','no_postpage_thumbnails');
/**
* @posttype Add post types and post type support
*/
/**
* @widgets Define widgets
*/
/* Widget: Sociale media gegevens uit TrendPress thema opties */
add_action('widgets_init', create_function('', 'return register_widget("social_media");'));
class social_media extends WP_Widget {
function social_media() {
$widget_ops = array('classname' => 'social_media', 'description' => __('Social media widget that shows a list of social media network sites that the user specified.'));
$control_ops = array('width' => 250, 'height' => 350);
$this->WP_Widget('social_media', __('Social media links'), $widget_ops, $control_ops);
}
function form($instance) {
printf(__('Change the contents of this widget on the <a href="%1$s">theme options</a> page.', 'tp'), admin_url('themes.php?page=tp-theme-option'));
return 'noform';
}
function widget() {
?>
<div class="widget social-media-widget">
<h3 class="widgettitle"><?php _e('Keep in touch','tp'); ?></h3>
<ul>
<?php if($twitter = get_option('tp-twitter')) { ?><li class="twitter"><a href="<?php echo $twitter; ?>">Twitter</a></li><?php } ?>
<?php if($facebook = get_option('tp-facebook')) { ?><li class="facebook"><a href="<?php echo $facebook; ?>">Facebook</a></li><?php } ?>
<?php if($linkedin = get_option('tp-linkedin')) { ?><li class="linkedin"><a href="<?php echo $linkedin; ?>">Linkedin</a></li><?php } ?>
<?php if($googleplus = get_option('tp-googleplus')) { ?><li class="googleplus"><a href="<?php echo $googleplus; ?>">Google plus</a></li><?php } ?>
<?php if($youtube = get_option('tp-youtube')) { ?><li class="youtube"><a href="<?php echo $youtube; ?>">YouTube</a></li><?php } ?>
</ul>
</div>
<?
}
}
/* Widget: Contactgegevens uit TrendPress thema opties */
add_action('widgets_init', create_function('', 'return register_widget("contact");'));
class contact extends WP_Widget {
function contact() {
$widget_ops = array('classname' => 'contact', 'description' => __('Widget that shows the user specified contact data.'));
$control_ops = array('width' => 250, 'height' => 350);
$this->WP_Widget('contact', __('Contact data'), $widget_ops, $control_ops);
}
function form($instance) {
printf(__('Change the contents of this widget on the <a href="%1$s">theme options</a> page.', 'tp'), admin_url('themes.php?page=tp-theme-option'));
return 'noform';
}
function widget() {
?>
<div class="widget contact-widget">
<h3 class="widgettitle"><?php _e('Contact','tp'); ?></h3>
<ul class="name-adress">
<?php if($naam = get_option('tp-naam')) { ?><li><strong><?php echo $naam; ?></strong></li><?php } ?>
<?php if($adres = get_option('tp-adres')) { ?><li><?php echo $adres; ?></li><?php } ?>
<?php if($postcode = get_option('tp-postcode')) { ?><li><?php echo $postcode; ?> <?php if($plaats = get_option('tp-plaats')) { ?><?php echo $plaats; ?><?php } ?></li><?php } ?>
</ul>
<ul class="other">
<?php if($email = get_option('tp-email')) { ?><li><span><?php _e('E-mail','tp'); ?>:</span><a href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a></li><?php } ?>
<?php if($telefoon = get_option('tp-telefoon')) { ?><li><span><?php _e('Telephone','tp'); ?>:</span><?php echo $telefoon; ?></li><?php } ?>
<?php if($kvk = get_option('tp-kvk')) { ?><li><span><?php _e('CC No','tp'); ?>: </span><?php echo $kvk; ?></li><?php } ?>
<?php if($btw = get_option('tp-btw')) { ?><li><span><?php _e('VAT No','tp'); ?>: </span><?php echo $btw; ?></li><?php } ?>
<?php if($bank = get_option('tp-bank')) { ?><li><span><?php echo $bank; ?>:</span><?php if($banknr = get_option('tp-bank-nr')) { ?><?php echo $banknr; ?><?php } ?></li><?php } ?>
</ul>
</div>
<?
}
}
?><file_sep>/README.md
TrendPress-Child
================<file_sep>/index.php
<?php get_header(); ?>
<div class="inner">
<article class="eightcol">
<div id="breadcrumbs"><?php if (function_exists('tp_breadcrumbs')) tp_breadcrumbs(); ?></div>
<h1 id="page-title">
<?php if(is_day()) : ?>
<?php printf(__( 'Daily archives: %s','tp'),'<span>'.get_the_date().'</span>'); ?>
<?php elseif(is_month()) : ?>
<?php printf(__('Monthly archives: %s','tp'),'<span>'.get_the_date('F Y').'</span>'); ?>
<?php elseif(is_year()) : ?>
<?php printf(__( 'Yearly archives: %s','tp'),'<span>'.get_the_date('Y').'</span>'); ?>
<?php elseif(is_category()) : ?>
<?php printf(__('Category archives: %s','tp'),'<span>'.single_cat_title('',false).'</span>'); ?>
<?php elseif(is_tag()) : ?>
<?php printf( __('Tag Archives: %s','tp'),'<span>'.single_tag_title('',false).'</span>'); ?>
<?php elseif(is_tax()) : ?>
<?php printf( __('%s','tp'),'<span>'.single_tag_title('',false).'</span>'); ?>
<?php else : ?>
<?php _e('News','tp'); ?>
<?php endif; ?>
</h1>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<section class="blog-item">
<h2 class="blog-item-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<p class="meta"><?php _e('Posted on:','tp')?> <?php echo get_the_date(); ?> <?php _e('in the category:','tp') ?> <?php the_category(', ') ?></p>
<?php tp_the_excerpt(40); ?>
<p class="readmore"><a href="<?php echo the_permalink(); ?>"><?php _e('Read more »','tp'); ?></a></p>
</section>
<?php endwhile; ?>
<nav id="pagination"><?php tp_pagination(); ?></nav>
<?php else : ?>
<p><?php _e('No results found.','tp'); ?></p>
<?php endif; ?>
</article>
<aside class="sidebar vertical fourcol last">
<?php if(function_exists('dynamic_sidebar')) dynamic_sidebar('Blog'); ?>
</aside>
</div>
<?php get_footer(); ?> | 54e01a012b370389f34fb69b6673d902109ae9c9 | [
"JavaScript",
"Markdown",
"PHP"
] | 14 | PHP | gewoonderrik/TrendPress-Child | c88d3e10578728d90066a0bf6f30e3bd7d7619ba | 5699e3fac24ed5697556e37a609e352beed607d7 |
refs/heads/main | <file_sep>using Calc;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Calculator.Unittests
{
[TestClass]
public class SubTests
{
[TestMethod]
public void Calc_Sub_PP()
{
Calc.Calculator calc = new Calc.Calculator(2, 1);
Assert.AreEqual(calc.Subs(), 1);
}
[TestMethod]
public void Calc_Sub_NN()
{
Calc.Calculator calc = new Calc.Calculator(-2, -1);
Assert.AreEqual(calc.Subs(), -1);
}
[TestMethod]
public void Calc_Sub_PN()
{
Calc.Calculator calc = new Calc.Calculator(2, -1);
Assert.AreEqual(calc.Subs(), 3);
}
[TestMethod]
public void Calc_Sub_NP()
{
Calc.Calculator calc = new Calc.Calculator(-2, 1);
Assert.AreEqual(calc.Subs(), -3);
}
[TestMethod]
public void Calc_Sub_Edge_PN()
{
Calc.Calculator calc = new Calc.Calculator(2147483647, -2147483647);
Assert.AreEqual(calc.Subs(), 4294967294);
}
[TestMethod]
public void Calc_Sub_Edge_NP()
{
Calc.Calculator calc = new Calc.Calculator(-2147483647, 2147483647);
Assert.AreEqual(calc.Subs(), -4294967294);
}
}
[TestClass]
public class AddsTests
{
[TestMethod]
public void Calc_Adds_PP()
{
Calc.Calculator calc = new Calc.Calculator(2, 1);
Assert.AreEqual(calc.Adds(), 3);
}
[TestMethod]
public void Calc_Adds_NN()
{
Calc.Calculator calc = new Calc.Calculator(-2, -1);
Assert.AreEqual(calc.Adds(), -3);
}
[TestMethod]
public void Calc_Adds_PN()
{
Calc.Calculator calc = new Calc.Calculator(2, -1);
Assert.AreEqual(calc.Adds(), 1);
}
[TestMethod]
public void Calc_Adds_NP()
{
Calc.Calculator calc = new Calc.Calculator(-2, 1);
Assert.AreEqual(calc.Adds(), -1);
}
[TestMethod]
public void Calc_Adds_Edge_PP()
{
Calc.Calculator calc = new Calc.Calculator(2147483647, 2147483647);
Assert.AreEqual(calc.Adds(), 4294967294);
}
[TestMethod]
public void Calc_Adds_Edge_NN()
{
Calc.Calculator calc = new Calc.Calculator(-2147483647, -2147483647);
Assert.AreEqual(calc.Adds(), -4294967294);
}
}
[TestClass]
public class FirstIsPossitiveTests
{
[TestMethod]
public void Calc_FirstIsPossitive_P()
{
Calc.Calculator calc = new Calc.Calculator(2, 1);
Assert.AreEqual(calc.FirstIsPossitive(), true);
}
[TestMethod]
public void Calc_FirstIsPossitive_N()
{
Calc.Calculator calc = new Calc.Calculator(-2, 1);
Assert.AreEqual(calc.FirstIsPossitive(), false);
}
[TestMethod]
public void Calc_FirstIsPossitive_0()
{
Calc.Calculator calc = new Calc.Calculator(0, 1);
Assert.AreEqual(calc.FirstIsPossitive(), false);
}
}
public class SecondIsPossitiveTests
{
[TestMethod]
public void Calc_FirstIsPossitive_P()
{
Calc.Calculator calc = new Calc.Calculator(2, 1);
Assert.AreEqual(calc.SecondIsPossitive(), true);
}
[TestMethod]
public void Calc_FirstIsPossitive_N()
{
Calc.Calculator calc = new Calc.Calculator(-2, -3);
Assert.AreEqual(calc.SecondIsPossitive(), false);
}
[TestMethod]
public void Calc_FirstIsPossitive_0()
{
Calc.Calculator calc = new Calc.Calculator(0, 0);
Assert.AreEqual(calc.SecondIsPossitive(), false);
}
}
[TestClass]
public class MinTests
{
[TestMethod]
public void CalcMinEqual()
{
Calc.Calculator calc = new Calc.Calculator(1, 1);
Assert.AreEqual(calc.Min(), 1);
}
[TestMethod]
public void CalcMinEqualNegative()
{
Calc.Calculator calc = new Calc.Calculator(-5, -5);
Assert.AreEqual(calc.Min(), -5);
}
[TestMethod]
public void CalcMinFirst()
{
Calc.Calculator calc = new Calc.Calculator(7, 9);
Assert.AreEqual(calc.Min(), 7);
}
[TestMethod]
public void CalcMinSecond()
{
Calc.Calculator calc = new Calc.Calculator(2, 1);
Assert.AreEqual(calc.Min(), 1);
}
[TestMethod]
public void CalcMinFirstNegative()
{
Calc.Calculator calc = new Calc.Calculator(-5, -3);
Assert.AreEqual(calc.Min(), -5);
}
[TestMethod]
public void CalcMinSecondNegative()
{
Calc.Calculator calc = new Calc.Calculator(-2, -9);
Assert.AreEqual(calc.Min(), -9);
}
[TestMethod]
public void CalcMinFirstMixed()
{
Calc.Calculator calc = new Calc.Calculator(-5, 9);
Assert.AreEqual(calc.Min(), -5);
}
[TestMethod]
public void CalcMinSecondMixed()
{
Calc.Calculator calc = new Calc.Calculator(10, -9);
Assert.AreEqual(calc.Min(), -9);
}
}
[TestClass]
public class MaxTests
{
[TestMethod]
public void CalcMaxEqual()
{
Calc.Calculator calc = new Calc.Calculator(1, 1);
Assert.AreEqual(calc.Max(), 1);
}
[TestMethod]
public void CalcMaxEqualNegative()
{
Calc.Calculator calc = new Calc.Calculator(-5, -5);
Assert.AreEqual(calc.Max(), -5);
}
[TestMethod]
public void CalcMaxFirst()
{
Calc.Calculator calc = new Calc.Calculator(7, 2);
Assert.AreEqual(calc.Max(), 7);
}
[TestMethod]
public void CalcMaxSecond()
{
Calc.Calculator calc = new Calc.Calculator(0, 1);
Assert.AreEqual(calc.Max(), 1);
}
[TestMethod]
public void CalcMaxFirstNegative()
{
Calc.Calculator calc = new Calc.Calculator(-5, -2);
Assert.AreEqual(calc.Min(), -5);
}
[TestMethod]
public void CalcMaxSecondNegative()
{
Calc.Calculator calc = new Calc.Calculator(-11, -9);
Assert.AreEqual(calc.Max(), -9);
}
[TestMethod]
public void CalcMaxFirstMixed()
{
Calc.Calculator calc = new Calc.Calculator(10, -9);
Assert.AreEqual(calc.Max(), 10);
}
[TestMethod]
public void CalcMaxSecondMixed()
{
Calc.Calculator calc = new Calc.Calculator(-420, 10);
Assert.AreEqual(calc.Max(), 10);
}
}
}
<file_sep>using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Calc
{
public class Calculator
{
private long val1, val2;
public Calculator(long num1, long num2)
{
val1 = num1;
val2 = num2;
}
public long Subs()
{
return val1 - val2;
}
public long Adds()
{
return val1 + val2;
}
public bool FirstIsPossitive()
{
if (val1 > 0)
return true;
else
return false;
}
public bool SecondIsPossitive()
{
if (val2 > 0)
return true;
else
return false;
}
public long Min()
{
if (val1 > val2)
return val2;
else
return val1;
}
public long Max()
{
if (val1 > val2)
return val1;
else
return val2;
}
}
}
| ddb41b201b626b901097dbd9d31ed4deb8a7b15e | [
"C#"
] | 2 | C# | Kama020/calculator | f6a5fb628cdc9ab222523a0f2c81e86ca2b3d14b | 949fdb352865313f5e9f02cecbb08748d582dea1 |
refs/heads/main | <repo_name>sebmaster36/GoogleEHRPreternship<file_sep>/emr.py
#!/usr/bin/env python3
#imports
from tkinter import ttk
import tkinter as tk
from tkinter.scrolledtext import ScrolledText
from tkinter import *
from patient import Patient
import os
#constants
rec_dir = "./records/"
root = tk.Tk()
root.title("Preternship Mock EMR")
root.geometry("600x500")
nb = ttk.Notebook(root)
# Patient Visit Collection
page2 = ttk.Frame(nb)
height = ttk.Label(page2, text="Height (cm)").grid(column = 0, row = 0, padx = 30, pady = 15)
weight = ttk.Label(page2, text="Weight (kg)").grid(column = 0, row = 1, padx = 30, pady = 15)
temp = ttk.Label(page2, text="Body Temperature (Celsius)").grid(column = 0, row = 2, padx = 30, pady = 15)
sys = ttk.Label(page2, text="Systolic BP").grid(column = 0, row = 3, padx = 30, pady = 15)
dia = ttk.Label(page2, text="Diastolic BP").grid(column = 0, row = 4, padx = 30, pady = 15)
pulse = ttk.Label(page2, text="Pulse (BPM)").grid(column = 0, row = 5, padx = 30, pady = 15)
eheightvalue = IntVar()
eweightvalue = IntVar()
etempvalue = DoubleVar()
esysvalue = IntVar()
ediavalue = IntVar()
epulsevalue = IntVar()
fnVal = StringVar()
lnVal = StringVar()
gVal = StringVar()
aVal = IntVar()
idVal = IntVar()
heightvalue = IntVar()
weightvalue = IntVar()
tempvalue = DoubleVar()
sysvalue = IntVar()
diavalue = IntVar()
pulsevalue = IntVar()
heightentry = ttk.Entry(page2, textvariable=eheightvalue).grid(column = 1, row = 0, padx = 30, pady = 15)
weightentry = ttk.Entry(page2, textvariable=eweightvalue).grid(column = 1, row = 1, padx = 30, pady = 15)
tempentry = ttk.Entry(page2, textvariable=etempvalue).grid(column = 1, row = 2, padx = 30, pady = 15)
sysentry = ttk.Entry(page2, textvariable=esysvalue).grid(column = 1, row = 3, padx = 30, pady = 15)
diaentry = ttk.Entry(page2, textvariable=ediavalue).grid(column = 1, row = 4, padx = 30, pady = 15)
pulseentry = ttk.Entry(page2, textvariable=epulsevalue).grid(column = 1, row = 5, padx = 30, pady = 15)
# second page
page1 = ttk.Frame(nb)
fname = ttk.Label(page1, text="First Name:").grid(column = 0, row = 0, padx = 30)
fnVal = ttk.Label(page1, text="")
fnVal.grid(column = 1, row = 0, padx = 30, pady=5)
lname = ttk.Label(page1, text="Last Name:").grid(column = 0, row = 1, padx = 30, pady=5)
lnVal = ttk.Label(page1, text="")
lnVal.grid(column = 1, row = 1, padx = 30, pady=5)
id = ttk.Label(page1, text="Patient ID:").grid(column = 0, row = 2, padx = 30, pady=5)
idVal = ttk.Label(page1, text="")
idVal.grid(column = 1, row = 2, padx = 30, pady=5)
gender = ttk.Label(page1, text="Age:").grid(column = 0, row = 3, padx = 30, pady=5)
gVal = ttk.Label(page1, text="")
gVal.grid(column = 1, row = 3, padx = 30, pady=5)
age = ttk.Label(page1, text="Sex:").grid(column = 0, row = 4, padx = 30, pady=5)
aVal = ttk.Label(page1, text="")
aVal.grid(column = 1, row = 4, padx = 30)
height = ttk.Label(page1, text="Height (cm):").grid(column = 0, row = 5, padx = 30, pady=5)
heightvalue = ttk.Label(page1, text="")
heightvalue.grid(column = 1, row = 5, padx = 30)
weight = ttk.Label(page1, text="Weight (kg):").grid(column = 0, row = 6, padx = 30, pady=5)
weightvalue = ttk.Label(page1, text="")
weightvalue.grid(column = 1, row = 6, padx = 30)
temp = ttk.Label(page1, text="Body Temp:").grid(column = 0, row = 7, padx = 30, pady=5)
tempvalue = ttk.Label(page1, text="")
tempvalue.grid(column = 1, row = 7, padx = 30)
sys = ttk.Label(page1, text="Systolic BP:").grid(column = 0, row = 8, padx = 30, pady=5)
sysvalue = ttk.Label(page1, text="")
sysvalue.grid(column = 1, row = 8, padx = 30)
dia = ttk.Label(page1, text="Diastolic BP:").grid(column = 0, row = 9, padx = 30, pady=5)
diavalue = ttk.Label(page1, text="")
diavalue.grid(column = 1, row = 9, padx = 30)
pulse = ttk.Label(page1, text="Pulse (bpm):").grid(column = 0, row = 10, padx = 30, pady=5)
pulsevalue = ttk.Label(page1, text="")
pulsevalue.grid(column = 1, row = 10, padx = 30)
def getSum(Patient):
Patient.summary()
eBtn = ttk.Button(page1, text="Export Record")
eBtn.grid(row=10, column=3)
eBtn.bind("<<Buttom-1>>", getSum)
lbLab = ttk.Label(page1, text="Select Patient")
lbLab.grid(column=3, row=2, columnspan=3, padx=150)
lb = Listbox(page1)
lb.grid(column=3, row=3, columnspan=3)
flist = os.listdir(rec_dir)
for item in flist:
lb.insert(END, item)
def fileSelect(event):
x = lb.curselection()[0]
file = lb.get(x)
path = f'{rec_dir}{file}'
recOpen(path)
def recOpen(path):
with open(path) as f:
for line in f:
sObj = Patient.from_string(line) #find better way of ending at last line
loadNew(sObj)
lb.bind("<<ListboxSelect>>", fileSelect)
def loadNew(Patient):
fnVal.config(text=Patient.fname)
lnVal.config(text=Patient.lname)
gVal.config(text=Patient.gender)
aVal.config(text=Patient.age)
idVal.config(text=Patient.paID)
heightvalue.config(text=Patient.height)
weightvalue.config(text=Patient.weight)
tempvalue.config(text=Patient.btemp)
sysvalue.config(text=Patient.s_bp)
diavalue.config(text=Patient.d_bp)
pulsevalue.config(text=Patient.pulse)
nb.add(page1, text='View Patient Data')
nb.add(page2, text='Patient Visit Collection')
#nb.add(page2, text='View Insights')
nb.pack(expand=1, fill="both")
root.mainloop()
#if __name__ == "__main__":
#demo()
<file_sep>/inputGUI.py
#!usr/bin/env python3
from tkinter import ttk
import tkinter as tk
from tkinter.scrolledtext import ScrolledText
from tkinter import *
def getvals():
print("Submitting form")
with open(f"records/records_{IDvalue.get()}.csv", "a") as f:
f.write(f"{IDvalue.get()},{fnamevalue.get()},{lnamevalue.get()},{agevalue.get()},{gendervalue.get()},{heightvalue.get()},{weightvalue.get()},{tempvalue.get()},{sysvalue.get()},{diavalue.get()},{pulsevalue.get()}\n")
#def demo():
root = tk.Tk()
root.title("EMR")
root.geometry("600x700")
nb = ttk.Notebook(root)
# adding Frames as pages for the ttk.Notebook
# first page, which would get widgets gridded into it
page1 = ttk.Frame(nb)
fname = ttk.Label(page1, text="First Name").grid(column = 0, row = 0, padx = 30, pady = 15)
lname = ttk.Label(page1, text="Last Name").grid(column = 0, row = 1, padx = 30, pady = 15)
gender = ttk.Label(page1, text="Gender").grid(column = 0, row = 2, padx = 30, pady = 15)
age = ttk.Label(page1, text="Age").grid(column = 0, row = 3, padx = 30, pady = 15)
ID = ttk.Label(page1, text="Patient ID").grid(column = 0, row = 4, padx = 30, pady = 15)
height = ttk.Label(page1, text="Height").grid(column = 0, row = 5, padx = 30, pady = 15)
weight = ttk.Label(page1, text="Weight").grid(column = 0, row = 6, padx = 30, pady = 15)
temp = ttk.Label(page1, text="Body Temperature").grid(column = 0, row = 7, padx = 30, pady = 15)
sys = ttk.Label(page1, text="Systolic").grid(column = 0, row = 8, padx = 30, pady = 15)
dia = ttk.Label(page1, text="Diastolic").grid(column = 0, row = 9, padx = 30, pady = 15)
pulse = ttk.Label(page1, text="Pulse").grid(column = 0, row = 10, padx = 30, pady = 15)
# Tkinter variable for storing entries
fnamevalue = StringVar()
lnamevalue = StringVar()
gendervalue = StringVar()
agevalue = IntVar()
IDvalue = IntVar()
heightvalue = IntVar()
weightvalue = IntVar()
tempvalue = IntVar()
sysvalue = IntVar()
diavalue = IntVar()
pulsevalue = IntVar()
options = ['male', 'female', 'other']
gendervalue.set(options[0])
fnameentry = ttk.Entry(page1, textvariable=fnamevalue).grid(column = 1, row = 0, padx = 30, pady = 15)
lnameentry = ttk.Entry(page1, textvariable=lnamevalue).grid(column = 1, row = 1, padx = 30, pady = 15)
genderentry = ttk.OptionMenu(page1, gendervalue, options[0], *options).grid(column = 1, row = 2, padx = 30, pady = 15)
ageentry = ttk.Entry(page1, textvariable=agevalue).grid(column = 1, row = 3, padx = 30, pady = 15)
IDentry = ttk.Entry(page1, textvariable=IDvalue).grid(column = 1, row = 4, padx = 30, pady = 15)
heightentry = ttk.Entry(page1, textvariable=heightvalue).grid(column = 1, row = 5, padx = 30, pady = 15)
weightentry = ttk.Entry(page1, textvariable=weightvalue).grid(column = 1, row = 6, padx = 30, pady = 15)
tempentry = ttk.Entry(page1, textvariable=tempvalue).grid(column = 1, row = 7, padx = 30, pady = 15)
sysentry = ttk.Entry(page1, textvariable=sysvalue).grid(column = 1, row = 8, padx = 30, pady = 15)
diaentry = ttk.Entry(page1, textvariable=diavalue).grid(column = 1, row = 9, padx = 30, pady = 15)
pulseentry = ttk.Entry(page1, textvariable=pulsevalue).grid(column = 1, row = 10, padx = 30, pady = 15)
#Button to push input to file
btn = ttk.Button(text="Submit", command=getvals)
btn.pack(side = tk.BOTTOM)
# second page
page2 = ttk.Frame(nb)
text = ScrolledText(page2)
text.pack(expand=1, fill="both")
# third page
page3 = ttk.Frame(nb)
text = ScrolledText(page3)
text.pack(expand=1, fill="both")
nb.add(page1, text='Data Collection')
nb.pack(expand=1, fill="both")
root.mainloop()
#if __name__ == "__main__":
#demo()
<file_sep>/README.md
# GoogleEHRPreternship
Repository for our 2021 Data Structures Preternship Project for Google Health
## Installation
Clone the repository onto a machine with Python3 (Tkinter built-in)
Ensure repository contains inputGUI.py, emr.py, patient.py, and the records directory.
## Usage
View Patient records with the following:
```bash
python emr.py
```
Append/update patient records with the following
```bash
python inputGUI.py
```
## Credits/Contributors
- <NAME>
- <NAME>
- <NAME>
- <NAME>
<file_sep>/patient.py
#!/usr/bin/env python3
# create a person class and then a patient class that will inherit it
class Person:
def __init__(self, fname, lname, gender, age):
self.fname = fname
self.lname = lname
self.gender = gender
self.age = age
# class method as alternative constructor
@classmethod
def from_string(cls, pe_str):
fname, lname, gender, age = pe_str.split(',')
return cls(fname, lname, gender, age)
# class inheritance
class Patient(Person):
def __init__(self, paID=0, fname="John", lname="Doe", gender="other", age=0, weight=0, height=0, btemp=0.0, s_bp=0, d_bp=0, pulse=0):
super().__init__(fname, lname, gender, age) # single inheritance
Patient.paID = paID
Patient.height = height
Patient.weight = weight
Patient.btemp = btemp
Patient.s_bp = s_bp
Patient.d_bp = d_bp
Patient.pulse = pulse
# class method as alternative constructor
@classmethod
def from_string(cls, pe_str):
paID, fname, lname, gender, age, weight, height, btemp, s_bp, d_bp, pulse = pe_str.split(',')
return cls(paID, fname, lname, gender, age, weight, height, btemp, s_bp, d_bp, pulse)
@property
def BMI(self):
calc = self.weight / (self.height)**2
if calc < 18.5:
s = ' - Underweight'
elif calc < 24.9:
s = ' - Normal Weight'
elif calc < 29.9:
s = '- Pre-obesity'
elif calc < 34.9:
s = ' - Obesity class I'
elif calc < 39.9:
s = ' - Obesity class II'
else:
s = ' - Obesity class III'
return 'BMI: ' + str(round(calc,2)) + s
@property
def btemp_classification(self):
if self.btemp < 35:
s = ' - Hypothermia'
elif self.btemp < 37.6:
s = ' - Normal Body Temperature'
elif self.btemp < 38.3:
s = ' - Fever/Hypethermia'
else:
s = ' - Hyperpyrexia'
return 'Body Temp: ' + str(round(self.btemp,2)) + s
@property
def bp_classification(self):
if self.s_bp < 120 and self.d_bp < 80:
s = ' - Normal Blood Pressuure'
elif self.s_dp < 129 and self.d_bp < 80:
s = ' - Elevated Blood Pressure'
elif self._bp < 139 and self.d_bp < 89:
s = ' - High Blood Pressure (Hypertension) - Stage 1'
elif self.s_bp < 180 and self.d_bp < 120:
s = ' - High Blood Pressure (Hypertension) - Stage 2'
else:
s = ' - High Blood Pressure (Hypertension) - Stage 3'
return 'Systolic Blood Pressure: ' + str(round(self.s_bp,2)) + ', Dystolic Blood Pressure: ' + str(round(self.d_bp,2)) + s
@classmethod
def resSum(cls):
print("BMI classification: " + str(cls.BMI))
print("Body Temperature Range: " + str(cls.btemp_classification))
print("Blood Pressure Range: " + str(cls.bp_classification))
# overloading operators
def __repr__(self):
return "Patient('{}', '{}', {})".format(self.fname, self.lname, self.age)
def __str__(self):
return '{}, {} - Patient ID: {}'.format(self.lname, self.fname, self.paID)
p1 = Person('John', 'Doe', 'male', 45)
# print(p1.fullname())
p2 = Patient(p1.fname, p1.lname, p1.gender, p1.age, 907895390, 70, 1.85, 37, 119, 75, 70)
p2.resSum() | dc1d27b732e13f04e92d3b9c38d18c328ab7ab95 | [
"Markdown",
"Python"
] | 4 | Python | sebmaster36/GoogleEHRPreternship | c4a1610a7fce34f6b17b19f25a1f08f903d255ce | 59865272bde62f67d91df07cec5cc32234bfc774 |
refs/heads/main | <repo_name>ackermannQ/wizard<file_sep>/IElement.cs
namespace Wizard
{
interface IElement
{
public void CastSpell();
}
}
<file_sep>/Fire.cs
using System;
namespace Wizard
{
class Fire : IElement
{
public void CastSpell()
{
Console.WriteLine("Casting Fire tornado, makes great damage but cost a lot of mana");
}
}
}
<file_sep>/Ice.cs
using System;
namespace Wizard
{
class Ice: IElement
{
public void CastSpell()
{
Console.WriteLine("Casting Ice spikes, makes little damage but cost 1 mana");
}
}
}
<file_sep>/Program.cs
namespace Wizard
{
class Program
{
static void Main(string[] args)
{
Wizard Donyos = new Wizard("Donyos", 100);
Donyos.Castpell(new Fire());
Donyos.Castpell(new Ice());
}
}
}
<file_sep>/README.md
# Wizard
Implementation of the Strategy Pattern
From [my blog](https://kodereview.io)
<file_sep>/Wizard.cs
namespace Wizard
{
class Wizard
{
public string name;
public int healthPoint;
public int mana = 10;
public Wizard(string name, int healthPoint)
{
this.name = name;
this.healthPoint = healthPoint;
}
public void Castpell(IElement element)
{
element.CastSpell();
}
}
}
| dde8abf46e000262765a8d500734201436ba6273 | [
"Markdown",
"C#"
] | 6 | C# | ackermannQ/wizard | 692bb62dfc7f008963716b0c99aa13a40a5d260e | fae34fb2394126a4dd71581d2bb6f81673422a6f |
refs/heads/master | <repo_name>m8e/gcp-pcf-quickstart<file_sep>/src/omg-cli/omg/commands/deploy.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package commands
import (
"fmt"
"log"
"omg-cli/config"
"omg-cli/omg/setup"
"omg-cli/opsman"
"github.com/alecthomas/kingpin"
)
// DeployCommand deploys the quickstart.
type DeployCommand struct {
logger *log.Logger
envDir string
applyChanges bool
}
const deployName = "deploy"
func (cmd *DeployCommand) register(app *kingpin.Application) {
c := app.Command(deployName, "Deploy tiles to a freshly deployed Ops Manager").Action(cmd.run)
registerEnvConfigFlag(c, &cmd.envDir)
c.Flag("apply-changes", "Apply Changes").Default("true").BoolVar(&cmd.applyChanges)
}
func (cmd *DeployCommand) run(c *kingpin.ParseContext) error {
cfg, err := config.TerraformFromEnvDirectory(cmd.envDir)
if err != nil {
return err
}
envCfg, err := config.FromEnvDirectory(cmd.envDir)
if err != nil {
return err
}
omSdk, err := opsman.NewSdk(fmt.Sprintf("https://%s", cfg.OpsManagerHostname), cfg.OpsManager, cmd.logger)
if err != nil {
return err
}
tiles := selectedTiles(cmd.logger, envCfg)
opsMan := setup.NewOpsManager(cfg, envCfg, omSdk, nil, cmd.logger, tiles, nil)
steps := []step{
{function: opsMan.PoolTillOnline, name: "PoolTillOnline"},
{function: opsMan.Unlock, name: "Unlock"},
{function: opsMan.ConfigureTiles, name: "ConfigureTiles"},
}
if cmd.applyChanges {
steps = append(steps, step{function: opsMan.ApplyDirector, name: "ApplyDirector"})
steps = append(steps, step{function: opsMan.ApplyChangesPAS, name: "ApplyChangesPAS"})
steps = append(steps, step{function: opsMan.ApplyChangesSkipUnchanged, name: "ApplyChangesSkipUnchanged"})
}
return run(steps, cmd.logger)
}
<file_sep>/src/omg-cli/omg/tiles/configuration.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package tiles
import (
"omg-cli/config"
)
// AvailabilityZone is a shared config struct used for tile configuration.
type AvailabilityZone struct {
Name string `json:"name"`
}
// NetworkName is a shared config struct used for tile configuration.
type NetworkName struct {
Name string `json:"name"`
}
// Network is a shared config struct used for tile configuration.
type Network struct {
SingletonAvailabilityZone AvailabilityZone `json:"singleton_availability_zone"`
OtherAvailabilityZones []AvailabilityZone `json:"other_availability_zones"`
Network NetworkName `json:"network"`
ODBNetwork NetworkName `json:"service_network"`
}
// NetworkConfig creates a Network.
func NetworkConfig(subnetName string, cfg *config.Config) Network {
return Network{
SingletonAvailabilityZone: AvailabilityZone{cfg.Zone1},
OtherAvailabilityZones: []AvailabilityZone{{cfg.Zone1}, {cfg.Zone2}, {cfg.Zone3}},
Network: NetworkName{subnetName},
}
}
// NetworkODBConfig creates a Network for an ODB network.
func NetworkODBConfig(subnetName string, cfg *config.Config, odbNetworkName string) Network {
return Network{
SingletonAvailabilityZone: AvailabilityZone{cfg.Zone1},
OtherAvailabilityZones: []AvailabilityZone{{cfg.Zone1}, {cfg.Zone2}, {cfg.Zone3}},
Network: NetworkName{subnetName},
ODBNetwork: NetworkName{odbNetworkName},
}
}
// Value is a shared config struct used for tile configuration.
type Value struct {
Value string `json:"value"`
}
// IntegerValue is a shared config struct used for tile configuration.
type IntegerValue struct {
Value int `json:"value"`
}
// BooleanValue is a shared config struct used for tile configuration.
type BooleanValue struct {
Value bool `json:"value"`
}
// Secret is a shared config struct used for tile configuration.
type Secret struct {
Value string `json:"secret"`
}
// SecretValue is a shared config struct used for tile configuration.
type SecretValue struct {
Sec Secret `json:"value"`
}
// Certificate is a shared config struct used for tile configuration.
type Certificate struct {
PublicKey string `json:"cert_pem"`
PrivateKey string `json:"private_key_pem"`
}
// CertificateConstruct is a shared config struct used for tile configuration.
type CertificateConstruct struct {
Certificate Certificate `json:"certificate"`
Name string `json:"name"`
}
// CertificateValue is a shared config struct used for tile configuration.
type CertificateValue struct {
Value []CertificateConstruct `json:"value"`
}
// OldCertificateValue is a shared config struct used for tile configuration.
type OldCertificateValue struct {
Value Certificate `json:"value"`
}
// KeyStruct is a shared config struct used for tile configuration.
type KeyStruct struct {
Secret string `json:"secret"`
}
// EncryptionKey is a shared config struct used for tile configuration.
type EncryptionKey struct {
Name string `json:"name"`
Key KeyStruct `json:"key"`
Primary bool `json:"primary"`
}
// EncryptionKeyValue is a shared config struct used for tile configuration.
type EncryptionKeyValue struct {
Value []EncryptionKey `json:"value"`
}
// Resource is a shared config struct used for tile configuration.
type Resource struct {
RouterNames []string `json:"elb_names,omitempty"`
Instances *int `json:"instances,omitempty"`
InternetConnected bool `json:"internet_connected"`
VMTypeID string `json:"vm_type_id,omitempty"`
}
<file_sep>/src/omg-cli/omg/tiles/stackdrivernozzle/resource.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package stackdrivernozzle
import (
"log"
"omg-cli/config"
)
var tile = config.Tile{
Pivnet: config.PivnetMetadata{
Name: "gcp-stackdriver-nozzle",
ReleaseID: 53596,
FileID: 89124,
Sha256: "80e137622ca76868693b406114a2c7c1fdf6ce5db91c77a8d848d558d288fe5c",
},
Product: config.OpsManagerMetadata{
Name: "stackdriver-nozzle",
Version: "2.0.1",
DependsOnPAS: true,
},
Stemcell: &config.StemcellMetadata{
PivnetMetadata: config.PivnetMetadata{
Name: "stemcells",
ReleaseID: 214323,
FileID: 247292,
Sha256: "8c6caeae37711aaf12b4fefba06c348cde5631e872e8892553ddb26514a3953a",
},
StemcellName: "light-bosh-stemcell-3468.78-google-kvm-ubuntu-trusty-go_agent",
},
}
// Tile is the tile for the Stackdriver Nozzle.
type Tile struct {
Logger *log.Logger
}
// Definition satisfies TileInstaller interface.
func (*Tile) Definition(*config.EnvConfig) config.Tile {
return tile
}
// BuiltIn satisfies TileInstaller interface.
func (*Tile) BuiltIn() bool {
return false
}
<file_sep>/src/omg-cli/omg/tiles/servicebroker/resource.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package servicebroker
import (
"omg-cli/config"
)
var tile = config.Tile{
Pivnet: config.PivnetMetadata{
Name: "gcp-service-broker",
ReleaseID: 221375,
FileID: 255029,
Sha256: "beb501dd345b322123d0d608bc4c00dbd8343e066249b87a625e9c3cbc15059e",
},
Product: config.OpsManagerMetadata{
Name: "gcp-service-broker",
Version: "4.1.0",
DependsOnPAS: true,
},
Stemcell: &config.StemcellMetadata{
PivnetMetadata: config.PivnetMetadata{
Name: "stemcells",
ReleaseID: 232700,
FileID: 266558,
Sha256: "5d9a7325c05576b0dffa3dcbb7fd02c78a30c56a465cd0ebf39cbfb52f5ca566",
},
StemcellName: "light-bosh-stemcell-3586.56-google-kvm-ubuntu-trusty-go_agent",
},
}
// Tile is the tile for the GCP Service Broker.
type Tile struct{}
// Definition satisfies TileInstaller interface.
func (*Tile) Definition(*config.EnvConfig) config.Tile {
return tile
}
// BuiltIn satisfies TileInstaller interface.
func (*Tile) BuiltIn() bool {
return false
}
<file_sep>/src/omg-cli/omg/tiles/director/configuration.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package director
import (
"bytes"
"fmt"
"net"
"strings"
"text/template"
"omg-cli/config"
"omg-cli/opsman"
)
const directorTemplateYAML = `---
az-configuration:
- name: "{{.Zone1}}"
- name: "{{.Zone2}}"
- name: "{{.Zone3}}"
director-configuration:
ntp_servers_string: 169.254.169.254
retry_bosh_deploys: true
resurrector_enabled: true
max_threads: 5
blobstore_type: gcs
gcs_blobstore_options:
bucket_name: "{{.DirectorBucket}}"
service_account_key: '{{.OpsManagerServiceAccountKey}}'
storage_class: MULTI_REGIONAL
database_type: "{{.DatabaseType}}"
{{if eq .DatabaseType "external"}}
external_database_options:
host: "{{.ExternalSQLIP}}"
database: "{{.OpsManagerSQLDbName}}"
user: "{{.OpsManagerSQLUsername}}"
password: "{{.OpsManagerSQLPassword}}"
port: {{.ExternalSQLPort}}
{{end}}
iaas-configuration:
project: "{{.ProjectName}}"
auth_json: '{{.OpsManagerServiceAccountKey}}'
default_deployment_tag: "{{.DeploymentTargetTag}}"
network-assignment:
singleton_availability_zone:
name: "{{.Zone1}}"
network:
name: "{{.MgmtSubnetName}}"
networks-configuration:
icmp: false
networks:
- name: "{{.MgmtSubnetName}}"
subnets:
- iaas_identifier: "{{.NetworkName}}/{{.MgmtSubnetName}}/{{.Region}}"
cidr: "{{.MgmtSubnetCIDR}}"
gateway: "{{.MgmtSubnetGateway}}"
reserved_ip_ranges: "{{reservedIPs .MgmtSubnetCIDR}}"
dns: 169.254.169.254
availability_zone_names:
- "{{.Zone1}}"
- "{{.Zone2}}"
- "{{.Zone3}}"
- name: "{{.ServicesSubnetName}}"
subnets:
- iaas_identifier: "{{.NetworkName}}/{{.ServicesSubnetName}}/{{.Region}}"
cidr: "{{.ServicesSubnetCIDR}}"
reserved_ip_ranges: "{{reservedIPs .ServicesSubnetCIDR}}"
gateway: "{{.ServicesSubnetGateway}}"
dns: 169.254.169.254
availability_zone_names:
- "{{.Zone1}}"
- "{{.Zone2}}"
- "{{.Zone3}}"
- name: "{{.ErtSubnetName}}"
subnets:
- iaas_identifier: "{{.NetworkName}}/{{.ErtSubnetName}}/{{.Region}}"
cidr: "{{.ErtSubnetCIDR}}"
reserved_ip_ranges: "{{reservedIPs .ErtSubnetCIDR}}"
gateway: "{{.ErtSubnetGateway}}"
dns: 169.254.169.254
availability_zone_names:
- "{{.Zone1}}"
- "{{.Zone2}}"
- "{{.Zone3}}"
resource-configuration:
compilation:
instances: {{.CompilationInstances}}
instance_type:
id: "{{.CompilationInstanceType}}"
director:
instances: automatic
persistent_disk:
size_mb: automatic
instance_type:
id: automatic
internet_connected: false
`
var funcMap = template.FuncMap{
// The name "title" is what the function will be called in the template text.
"reservedIPs": reservedIPs,
}
var tmpl = template.Must(template.New("director").Funcs(funcMap).Parse(directorTemplateYAML))
func reservedIPs(cidr string) string {
// Reserve .1-.20
lowerIP, _, err := net.ParseCIDR(cidr)
lowerIP = lowerIP.To4()
if err != nil {
panic(err)
}
upperIP := make(net.IP, len(lowerIP))
copy(upperIP, lowerIP)
upperIP[3] = 20
return fmt.Sprintf("%s-%s", lowerIP, upperIP)
}
// Configure satisfies TileInstaller interface.
func (*Tile) Configure(envConfig *config.EnvConfig, cfg *config.Config, om *opsman.Sdk) error {
dc := struct {
config.Config
CompilationInstances int
CompilationInstanceType string
DatabaseType string
}{
Config: *cfg,
}
if envConfig.SmallFootprint {
dc.CompilationInstances = 1
dc.CompilationInstanceType = "medium.mem"
dc.DatabaseType = "internal"
} else {
dc.CompilationInstances = 4
dc.CompilationInstanceType = "large.cpu"
dc.DatabaseType = "external"
}
// Healthwatch includes a C++ package that requires a large
// ephemeral disk for compilation.
if envConfig.IncludeHealthwatch {
dc.CompilationInstanceType = "large.disk"
}
// strip newlines, as we're putting a JSON service account key inside YAML
dc.OpsManagerServiceAccountKey = strings.Replace(dc.OpsManagerServiceAccountKey, "\n", "", -1)
b := &bytes.Buffer{}
err := tmpl.Execute(b, dc)
if err != nil {
return fmt.Errorf("cannot generate director YAML: %v", err)
}
return om.SetupBosh(b.Bytes())
}
<file_sep>/src/omg-cli/go.mod
module omg-cli
require (
cloud.google.com/go/compute/metadata v0.0.0-20181109222614-193e596dec49 // indirect
github.com/PuerkitoBio/goquery v1.5.0 // indirect
github.com/StackExchange/wmi v0.0.0-20181212234831-e0a55b97c705 // indirect
github.com/alecthomas/gometalinter v2.0.12+incompatible // indirect
github.com/alecthomas/kingpin v2.2.6+incompatible
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc // indirect
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect
github.com/bmatcuk/doublestar v1.1.1 // indirect
github.com/charlievieth/fs v0.0.0-20170613215519-7dc373669fa1 // indirect
github.com/cloudfoundry/bosh-cli v5.4.0+incompatible // indirect
github.com/cloudfoundry/bosh-utils v0.0.0-20181206221702-477435b0eed6 // indirect
github.com/cosiner/argv v0.0.1 // indirect
github.com/cppforlife/go-patch v0.0.0-20171006213518-250da0e0e68c // indirect
github.com/davidrjenni/reftools v0.0.0-20180914123528-654d0ba4f96d // indirect
github.com/derekparker/delve v1.1.0 // indirect
github.com/fatih/gomodifytags v0.0.0-20180914191908-141225bf62b6 // indirect
github.com/fatih/motion v0.0.0-20180408211639-218875ebe238 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-ole/go-ole v1.2.2 // indirect
github.com/google/go-querystring v1.0.0 // indirect
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf // indirect
github.com/gosuri/uilive v0.0.0-20170323041506-ac356e6e42cd
github.com/hashicorp/go-version v1.1.0 // indirect
github.com/iancoleman/strcase v0.0.0-20181128000000-3605ed457bf7
github.com/imdario/mergo v0.3.6
github.com/josharian/impl v0.0.0-20180228163738-3d0f908298c4 // indirect
github.com/jstemmer/gotags v1.4.1 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kisielk/errcheck v1.1.0 // indirect
github.com/klauspost/asmfmt v1.2.0 // indirect
github.com/koron/iferr v0.0.0-20180615142939-bb332a3b1d91 // indirect
github.com/kr/pty v1.1.3 // indirect
github.com/mattn/go-runewidth v0.0.4 // indirect
github.com/mdempsky/gocode v0.0.0-20181212191131-9c77a290fde2 // indirect
github.com/nicksnyder/go-i18n v1.10.0 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/olekukonko/tablewriter v0.0.1 // indirect
github.com/onsi/ginkgo v1.7.0
github.com/onsi/gomega v1.4.3
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/peterh/liner v1.1.0 // indirect
github.com/pivotal-cf/go-pivnet v0.0.50
github.com/pivotal-cf/jhanda v0.0.0-20181025233525-e6aa09a032df // indirect
github.com/pivotal-cf/kiln v0.0.0-20181206154151-8c596535b097 // indirect
github.com/pivotal-cf/om v0.0.0-20190103232402-ada0d4a4790f
github.com/pivotal-cf/pivnet-cli v0.0.55 // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/rogpeppe/godef v1.1.1 // indirect
github.com/shirou/gopsutil v2.18.11+incompatible // indirect
github.com/sirupsen/logrus v1.2.0 // indirect
github.com/spf13/cobra v0.0.3 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/tmc/scp v0.0.0-20170824174625-f7b48647feef
github.com/zmb3/gogetdoc v0.0.0-20181208215853-c5ca8f4d4936 // indirect
golang.org/x/arch v0.0.0-20181203225421-5a4828bb7045 // indirect
golang.org/x/crypto v0.0.0-20190103213133-ff983b9c42bc
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect
golang.org/x/net v0.0.0-20181217023233-e147a9138326 // indirect
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f // indirect
golang.org/x/sys v0.0.0-20181217223516-dcdaa6325bcb // indirect
golang.org/x/tools v0.0.0-20181217230830-a072e661040e // indirect
google.golang.org/api v0.0.0-20181217000635-41dc4b66e69d
google.golang.org/appengine v1.3.0 // indirect
gopkg.in/alecthomas/kingpin.v3-unstable v3.0.0-20180810215634-df19058c872c // indirect
gopkg.in/cheggaaa/pb.v1 v1.0.27 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
honnef.co/go/tools v0.0.0-20180920025451-e3ad64cb4ed3 // indirect
)
<file_sep>/src/omg-cli/omg/tiles/ert/resource.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ert
import (
"omg-cli/config"
)
var fullRuntime = config.Tile{
Pivnet: config.PivnetMetadata{
Name: "elastic-runtime",
ReleaseID: 259105,
FileID: 279697,
Sha256: "30a827ec8106f359ee49448707c2304b87e73ad4a422baff15038b8acb1525c7",
},
Product: product,
Stemcell: &stemcell,
}
var smallRuntime = config.Tile{
Pivnet: config.PivnetMetadata{
Name: "elastic-runtime",
ReleaseID: 259105,
FileID: 279697,
Sha256: "9756289d1b4f7c9ad565755395cad98dce77917432221ea6c789719696521887",
},
Product: product,
Stemcell: &stemcell,
}
var product = config.OpsManagerMetadata{
Name: "cf",
Version: "2.4.1",
}
var stemcell = config.StemcellMetadata{
PivnetMetadata: config.PivnetMetadata{
Name: "stemcells-ubuntu-xenial",
ReleaseID: 276954,
FileID: 288597,
Sha256: "9f9d1fab2b5165c5cee52c6b0a84df96c6861355135fa8a99748f59832466b4e",
},
StemcellName: "light-bosh-stemcell-170.19-google-kvm-ubuntu-xenial-go_agent",
}
// Tile is the tile for the Pivotal Application Service.
type Tile struct{}
// Definition satisfies TileInstaller interface.
func (*Tile) Definition(envConfig *config.EnvConfig) config.Tile {
if envConfig.SmallFootprint {
return smallRuntime
}
return fullRuntime
}
// BuiltIn satisfies TileInstaller interface.
func (*Tile) BuiltIn() bool {
return false
}
<file_sep>/src/omg-cli/opsman/sdk.go
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package opsman
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
"time"
"omg-cli/config"
"github.com/gosuri/uilive"
"github.com/pivotal-cf/om/api"
"github.com/pivotal-cf/om/commands"
"github.com/pivotal-cf/om/extractor"
"github.com/pivotal-cf/om/formcontent"
"github.com/pivotal-cf/om/network"
"github.com/pivotal-cf/om/progress"
)
const (
connectTimeout = 5
requestTimeout = 1800
pollingIntervalSec = 10
)
// Sdk interacts with the Ops Manager's API.
type Sdk struct {
unauthenticatedClient network.UnauthenticatedClient
client network.OAuthClient
api api.Api
creds config.OpsManagerCredentials
logger *log.Logger
target string
}
// NewSdk creates an authenticated session and object to interact with Ops Manager
func NewSdk(target string, creds config.OpsManagerCredentials, logger *log.Logger) (*Sdk, error) {
client, err := network.NewOAuthClient(target, creds.Username, creds.Password, "", "",
creds.SkipSSLVerification, true, time.Duration(requestTimeout)*time.Second, time.Duration(connectTimeout)*time.Second)
if err != nil {
return nil, err
}
unauthenticatedClient := network.NewUnauthenticatedClient(target, creds.SkipSSLVerification,
time.Duration(requestTimeout)*time.Second,
time.Duration(connectTimeout)*time.Second)
logger.SetPrefix(fmt.Sprintf("%s[OM SDK] ", logger.Prefix()))
live := uilive.New()
live.Out = os.Stderr
sdk := &Sdk{
client: client,
unauthenticatedClient: unauthenticatedClient,
api: api.New(api.ApiInput{
Client: client,
UnauthedClient: unauthenticatedClient,
ProgressClient: network.NewProgressClient(client, progress.NewBar(), live),
UnauthedProgressClient: network.NewProgressClient(unauthenticatedClient, progress.NewBar(), live),
Logger: logger,
}),
creds: creds,
logger: logger,
target: target,
}
return sdk, nil
}
// SetupAuth configures the initial username, password, and decryptionPhrase
func (om *Sdk) SetupAuth() error {
availability, err := om.api.EnsureAvailability(api.EnsureAvailabilityInput{})
if err != nil {
return fmt.Errorf("could not determine initial auth configuration status: %v", err)
}
if availability.Status == api.EnsureAvailabilityStatusUnknown {
return errors.New("could not determine initial auth configuration status: unexpected status")
}
if availability.Status != api.EnsureAvailabilityStatusUnstarted {
om.logger.Printf("configuration previously completed, skipping configuration")
return nil
}
om.logger.Println("configuring internal userstore...")
_, err = om.api.Setup(api.SetupInput{
IdentityProvider: "internal",
AdminUserName: om.creds.Username,
AdminPassword: om.creds.<PASSWORD>,
AdminPasswordConfirmation: om.creds.Password,
DecryptionPassphrase: om.creds.DecryptionPhrase,
DecryptionPassphraseConfirmation: om.creds.DecryptionPhrase,
EULAAccepted: "true",
})
if err != nil {
return fmt.Errorf("could not configure auth: %v", err)
}
for availability.Status != api.EnsureAvailabilityStatusComplete {
availability, err = om.api.EnsureAvailability(api.EnsureAvailabilityInput{})
if err != nil {
return fmt.Errorf("could not determine final auth configuration status: %v", err)
}
}
om.logger.Println("auth configuration complete")
return nil
}
// Unlock decrypts Ops Manager. This is needed after a reboot before attempting to authenticate.
// This task runs asynchronously. Query the status by invoking ReadyForAuth.
func (om *Sdk) Unlock() error {
om.logger.Println("decrypting Ops Manager")
unlockReq := UnlockRequest{om.creds.DecryptionPhrase}
body, err := json.Marshal(&unlockReq)
if err != nil {
return err
}
_, err = om.api.Curl(api.RequestServiceCurlInput{
Path: "/api/v0/unlock",
Method: "PUT",
Data: bytes.NewReader(body),
})
return err
}
// ReadyForAuth checks if the Ops Manager authentication system is ready
func (om *Sdk) ReadyForAuth() bool {
resp, err := om.api.EnsureAvailability(api.EnsureAvailabilityInput{})
return err == nil && resp.Status == api.EnsureAvailabilityStatusComplete
}
// SetupBosh applies the provided configuration to the BOSH director tile
func (om *Sdk) SetupBosh(configYML []byte) error {
f, err := ioutil.TempFile("", "director-config")
if err != nil {
return fmt.Errorf("cannot create temp file for director configuration: %v", err)
}
defer os.Remove(f.Name())
_, err = f.Write(configYML)
if err != nil {
return fmt.Errorf("cannot write to director yaml file: %v", err)
}
f.Close()
cmd := commands.NewConfigureDirector(os.Environ, om.api, om.logger)
return cmd.Execute([]string{"--config", f.Name()})
}
// ApplyChanges deploys pending changes for a list of given tiles to the Ops Manager
func (om *Sdk) ApplyChanges(args []string) error {
logWriter := commands.NewLogWriter(os.Stdout)
cmd := commands.NewApplyChanges(om.api, om.api, logWriter, om.logger, 10)
return cmd.Execute(args)
}
// ApplyDirector deploys the BOSH Director to the Ops Manager
func (om *Sdk) ApplyDirector() error {
logWriter := commands.NewLogWriter(os.Stdout)
cmd := commands.NewApplyChanges(om.api, om.api, logWriter, om.logger, 10)
return cmd.Execute([]string{"--skip-deploy-products"})
}
// UploadProduct pushes a given file located locally at path to the target
func (om *Sdk) UploadProduct(path string) error {
form := formcontent.NewForm()
cmd := commands.NewUploadProduct(form, extractor.MetadataExtractor{}, om.api, om.logger)
return cmd.Execute([]string{"--product", path})
}
// UploadStemcell pushes a given stemcell located locally at path to the target
func (om *Sdk) UploadStemcell(path string) error {
form := formcontent.NewForm()
cmd := commands.NewUploadStemcell(form, om.api, om.logger)
return cmd.Execute([]string{"--stemcell", path})
}
// StageProduct moves a given name, version to the list of tiles that will be deployed
func (om *Sdk) StageProduct(tile config.OpsManagerMetadata) error {
cmd := commands.NewStageProduct(om.api, om.logger)
return cmd.Execute([]string{
"--product-name", tile.Name,
"--product-version", tile.Version,
})
}
// Online checks if Ops Manager is running on the target.
func (om *Sdk) Online() bool {
req, _ := http.NewRequest(http.MethodGet, "/", nil)
resp, err := om.unauthenticatedClient.Do(req)
if err != nil {
return false
}
resp.Body.Close()
return resp.StatusCode < 500
}
// AvailableProducts lists products that are uploaded to Ops Manager.
func (om *Sdk) AvailableProducts() ([]api.ProductInfo, error) {
products, err := om.api.ListAvailableProducts()
if err != nil {
return nil, err
}
return products.ProductsList, nil
}
// ConfigureProduct sets up the settings for a given tile by name
func (om *Sdk) ConfigureProduct(name, networks, properties string, resources string) error {
configFileContents := fmt.Sprintf(`{
"product-name": "%s",
"product-properties": %s,
"network-properties": %s,
"resource-config": %s
}`, name, properties, networks, resources)
configFile, err := ioutil.TempFile("", "")
if err != nil {
return err
}
configFile.WriteString(configFileContents)
cmd := commands.NewConfigureProduct(os.Environ, om.api, om.target, om.logger)
return cmd.Execute([]string{
"--config", configFile.Name(),
})
}
// GetProduct fetches settings for a given tile by name
func (om *Sdk) GetProduct(name string) (*ProductProperties, error) {
productGUID, err := om.productGUIDByType(name)
if err != nil {
return nil, err
}
props, err := om.api.GetStagedProductProperties(productGUID)
if err != nil {
return nil, err
}
return &ProductProperties{
Properties: props,
}, nil
}
// GetDirector fetches settings for the BOSH director
func (om *Sdk) GetDirector() (map[string]map[string]interface{}, error) {
props, err := om.api.GetStagedDirectorProperties()
if err != nil {
return nil, err
}
return props, nil
}
// GetResource fetches resource settings for a specific job of a tile
func (om *Sdk) GetResource(tileName, jobName string) (*api.JobProperties, error) {
productGUID, err := om.productGUIDByType(tileName)
if err != nil {
return nil, err
}
jobGUID, err := om.jobGUIDByName(productGUID, jobName)
if err != nil {
return nil, err
}
props, err := om.api.GetStagedProductJobResourceConfig(productGUID, jobGUID)
if err != nil {
return nil, err
}
return &props, nil
}
func (om *Sdk) getProducts() ([]api.DeployedProductOutput, error) {
return om.api.ListDeployedProducts()
}
func (om *Sdk) productGUIDByType(product string) (string, error) {
products, err := om.getProducts()
if err != nil {
return "", err
}
appGUID := ""
for _, p := range products {
if p.Type == product {
appGUID = p.GUID
break
}
}
if appGUID == "" {
return "", fmt.Errorf("could not find installed application by name: %s", product)
}
return appGUID, nil
}
func (om *Sdk) jobGUIDByName(productGUID, jobName string) (string, error) {
jobs, err := om.api.ListStagedProductJobs(productGUID)
if err != nil {
return "", err
}
jobGUID := jobs[jobName]
if jobGUID == "" {
return "", fmt.Errorf("Job %s not found for product %s", jobName, productGUID)
}
return jobGUID, nil
}
// GetCredentials returns a credential by name.
func (om *Sdk) GetCredentials(name, credential string) (*SimpleCredential, error) {
productGUID, err := om.productGUIDByType(name)
if err != nil {
return nil, err
}
out, err := om.api.GetDeployedProductCredential(api.GetDeployedProductCredentialInput{
DeployedGUID: productGUID,
CredentialReference: credential,
})
if err != nil {
return nil, err
}
return &SimpleCredential{
Identity: out.Credential.Value["identity"],
Password: out.Credential.Value["password"],
}, nil
}
// GetDirectorCredentials returns the BOSH Director's credentials.
func (om *Sdk) GetDirectorCredentials(credential string) (*SimpleCredential, error) {
return om.getCredential(fmt.Sprintf("api/v0/deployed/director/credentials/%s", credential))
}
func (om *Sdk) getCredential(path string) (*SimpleCredential, error) {
out, err := om.api.Curl(api.RequestServiceCurlInput{
Path: path,
Method: http.MethodGet,
})
if err != nil {
return nil, err
}
var resp CredentialResponse
body, err := ioutil.ReadAll(out.Body)
if err != nil {
return nil, err
}
if err := json.Unmarshal(body, &resp); err != nil {
return nil, fmt.Errorf("malformed credentials response: %s", string(body))
}
if resp.Credential.Value.Password == "" || resp.Credential.Value.Identity == "" {
return nil, fmt.Errorf("received an empty credential: %s", string(body))
}
return &resp.Credential.Value, nil
}
// GetDirectorIP returns the IP address of the BOSH Director.
func (om *Sdk) GetDirectorIP() (string, error) {
boshGUID, err := om.productGUIDByType("p-bosh")
if err != nil {
return "", err
}
out, err := om.api.Curl(api.RequestServiceCurlInput{
Path: fmt.Sprintf("api/v0/deployed/products/%s/static_ips", boshGUID),
Method: http.MethodGet,
})
if err != nil {
return "", err
}
body, err := ioutil.ReadAll(out.Body)
if err != nil {
return "", err
}
var boshIPs []StaticIP
if err := json.Unmarshal(body, &boshIPs); err != nil {
return "", fmt.Errorf("malformed static_ips response: %s", string(body))
}
for _, ip := range boshIPs {
if strings.HasPrefix(ip.Name, "director") {
return ip.IPs[0], nil
}
}
return "", errors.New("static_ips response had no director Job")
}
// DeleteInstallation runs the om cli DeleteInstallation command.
func (om *Sdk) DeleteInstallation() error {
logWriter := commands.NewLogWriter(os.Stdout)
cmd := commands.NewDeleteInstallation(om.api, logWriter, om.logger, pollingIntervalSec)
return cmd.Execute(nil)
}
<file_sep>/ci/tasks/push-tiles.sh
#!/usr/bin/env bash
set -e
my_dir="$( cd $(dirname $0) && pwd )"
pushd ${my_dir} > /dev/null
source utils.sh
set_resource_dirs
build_go
extract_env
popd > /dev/null
pushd ${release_dir}
omg-cli review-eulas --env-dir="${env_dir}" --accept-all
omg-cli remote --env-dir="${env_dir}" "push-tiles"
popd
| ae4ee4eba2cd11fc87a48f577e76149c4a447a35 | [
"Go Module",
"Go",
"Shell"
] | 9 | Go | m8e/gcp-pcf-quickstart | 7c665ab705ec4cb3a061a5dee573879de6b19b21 | f0b17a9ee70d2ecd642dffbb3715802710733f5c |
refs/heads/main | <repo_name>Shivendra323/InventoryControl<file_sep>/Inventory.py
from tkinter import*
from tkinter import ttk
import sqlite3
import tkinter.messagebox
import datetime
import math
import os
import random
root=Tk()
conn = sqlite3.connect('DataBase.db')
c = conn.cursor()
c.execute("CREATE TABLE IF NOT EXISTS Product (Id INTEGER PRIMARY KEY AUTOINCREMENT, Name_of_product TEXT NOT NULL, AQ REAL NOT NULL, MD REAL NOT NULL )")
conn.commit()
query = "SELECT * FROM Product "
result = c.execute(query)
date = datetime.datetime.now().date()
class Inventory_System:
def __init__(self, master, *args, **kwargs ):
self.master = master
#self.Sbar = Scrollbar(root)
menubar = Menu(root)
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label="Reset", command=self.Reset)
filemenu.add_separator()
filemenu.add_command(label="Exit", command=root.quit)
menubar.add_cascade(label="File", menu=filemenu)
helpmenu = Menu(menubar, tearoff=0)
helpmenu.add_command(label="Help Index", command=self.Help)
helpmenu.add_command(label="About...", command=self.About)
menubar.add_cascade(label="Help", menu=helpmenu)
root.config(menu=menubar)
#self.Sbar.pack(side = RIGHT, fill = "y")
self.left = Frame(master, width=700, height=700)
self.left.pack(side=LEFT)
self.right = Frame(master, width=666, height=700, bg='lightblue')
self.right.pack(side=RIGHT, expand=0, fill= BOTH)
self.tree = ttk.Treeview(self.right, height=768)
self.tree.pack(padx=10, pady=30)
self.tree["columns"]=("one","two","three")
self.tree.column('#0', width= 0)
self.heading = Label(self.right, text="Stock", font=('arial 15 bold'), fg='steelblue', bg='lightblue')
self.heading.place(x=260, y=0)
self.tree.heading("one", text="Product Name")
self.tree.heading("two", text="Available quantity*")
self.tree.heading("three", text="Monthly Demand*")
#self.list.insert(END, c.fetchall())
#self.tbox = Text(self.right, width=300, height=768, yscrollcommand = self.Sbar.set)
#self.tbox.place(x=0, y=0)
#self.Sbar.config(command=self.tbox.yview)
self.heading = Label(self.left, text="ADD/UPDATE/DELETE/ PRODUCTS", font=('arial 30 bold'), fg='steelblue')
self.heading.place(x=20, y=30)
self.heading = Label(self.left, text="*Product quantity based product type value of 1 unit is( 1KG or 1 PACK or 1 LITER)", font=('arial 10 bold'), fg='steelblue')
self.heading.place(x=20, y=500)
self.heading = Label(self.left, text="*** or ** Mandatory fields For Add and Update operation ", font=('arial 10 bold'), fg='steelblue')
self.heading.place(x=20, y=520)
self.heading = Label(self.left, text="*** Mandatory fields For Search and Delete operation ", font=('arial 10 bold'), fg='steelblue')
self.heading.place(x=20, y=540)
self.heading = Label(self.left, text="RL stands for Requirement List which saved in RequirementList folder ", font=('arial 10 bold'), fg='steelblue')
self.heading.place(x=20, y=560)
#self.id_1 = Label(self.left, text="Enter Product Id", font=('arial 18 bold'))
#self.id_1.place(x=10, y=70)
self.name_1 = Label(self.left, text="Enter Product Name***", font=('arial 18 bold'))
self.name_1.place(x=10, y=120)
self.AQ_1 = Label(self.left, text="Enter Available quantity**", font=('arial 18 bold'))
self.AQ_1.place(x=10, y=170)
#self.vendor_1 = Label(self.left, text="Enter Vendor Name", font=('arial 18 bold'))
#self.vendor_1.place(x=10, y=220)
self.MD_1 = Label(self.left, text="Enter Monthly Demand**", font=('arial 18 bold'))
self.MD_1.place(x=10, y=220)
# self.tproduct = Label(self.right, text="Product", font=('arial 18 bold'), bg='lightblue', fg='white')
# self.tproduct.place(x=0, y=60)
# self.tquantity = Label(self.right, text="Quantity", font=('arial 18 bold'), bg='lightblue', fg='white')
# self.tquantity.place(x=300, y=60)
# self.tAQ = Label(self.right, text="AQ", font=('arial 18 bold'), bg='lightblue', fg='white')
# self.tAQ.place(x=580, y=60)
# self.id_e = Entry(self.left, width=25, font=('arial 18 bold'))
# self.id_e.place(x=360, y=70)
self.name_e = Entry(self.left, width=25, font=('arial 18 bold'))
self.name_e.place(x=360, y=120)
self.AQ_e = Entry(self.left, width=25, font=('arial 18 bold'))
self.AQ_e.place(x=360, y=170)
# self.vendor_e = Entry(self.left, width=25, font=('arial 18 bold'))
# self.vendor_e.place(x=360, y=220)
self.MD_e = Entry(self.left, width=25, font=('arial 18 bold'))
self.MD_e.place(x=360, y=220)
self.btn_add = Button(self.left, text="Add Product", width=15, height=2, bg='steelblue', fg='white', command=self.get_Product)
self.btn_add.place(x=540, y=280)
self.btn_clear = Button(self.left, text="Clear all Fields", width=15, height=2, bg='steelblue', fg='white', command=self.clear_all)
self.btn_clear.place(x=360, y=280)
self.btn_search = Button(self.left, text="Search", width=15, height=2, bg='orange', fg='white', command=self.search)
self.btn_search.place(x=360, y=340)
self.btn_update = Button(self.left, text="Update", width=15, height=2, bg='steelblue', fg='white', command=self.update)
self.btn_update.place(x=540, y=340)
self.btn_Requirement = Button(self.left, text="Generate RL", width=15, height=2, bg='steelblue', fg='white', command=self.Requirement)
self.btn_Requirement.place(x=540, y=400)
self.btn_Delete = Button(self.left, text="Delete", width=15, height=2, bg='red', fg='white', command=self.Delete)
self.btn_Delete.place(x=360, y=400)
self.Refresh(self)
def Refresh(self, k, *args, **kwargs):
query2 = "SELECT count(*) FROM Product"
result2 = c.execute(query2)
for r in result2:
Product_count = r[0]
x = Product_count
if x != 0:
result=c.execute("SELECT * FROM Product")
rows = c.fetchall()
for row in rows:
self.get_name = row[1]
self.get_AQ = row[2]
self.get_MD = row[3]
self.tree.insert("", END, values=(str(self.get_name), str(self.get_AQ), str(self.get_MD)))
def get_Product(self, *args, **kwargs):
#self.id = self.id_e.get()
self.name = self.name_e.get()
self.AQ = self.AQ_e.get()
self.MD = self.MD_e.get()
query = "SELECT * FROM Product WHERE Name_of_product=?"
result = c.execute(query, (self.name,))
records = c.fetchall()
x = len(records)
result = c.execute(query, (self.name,))
for self.r in result:
self.get_name = self.r[1]
self.get_AQ = self.r[2]
self.get_MD = self.r[3]
if self.name == '' or self.AQ == '' or self.MD == '':
tkinter.messagebox.showinfo('Error', 'Please Fill all the entries.')
elif x != 0 :
tkinter.messagebox.showinfo('Error', 'Product already exists')
else :
sql = "INSERT INTO Product (Name_of_product, AQ, MD) VALUES(?, ?, ?)"
c.execute(sql, (self.name, self.AQ, self.MD))
conn.commit()
tkinter.messagebox.showinfo('Success', 'Successfully added')
for i in self.tree.get_children():
self.tree.delete(i)
self.Refresh(self)
self.clear_all(self)
def clear_all(self, *args, **kwargs):
#self.id_e.delete(0, END)
self.name_e.delete(0, END)
self.AQ_e.delete(0, END)
#self.vendor_e.delete(0, END)
self.MD_e.delete(0, END)
def update(self, *args, **kwargs):
self.name = self.name_e.get()
self.AQ = self.AQ_e.get()
self.MD = self.MD_e.get()
if self.name == '' or self.AQ == '' or self.MD == '':
tkinter.messagebox.showinfo('Error', 'Please Fill all the entries.')
else:
query = " UPDATE Product SET Name_of_product=?, AQ=?, MD=? WHERE Name_of_product=?"
c.execute(query, (self.name, self.AQ, self.MD, self.name_e.get()))
conn.commit()
tkinter.messagebox.showinfo("Success", "Update the database")
for i in self.tree.get_children():
self.tree.delete(i)
self.Refresh(self)
def search(self, *args, **kwargs):
x = self.name_e.get()
sql = "SELECT * FROM Product WHERE Name_of_product=?"
result = c.execute(sql, (x,) )
for r in result:
self.n1 = r[1]
self.n2 = r[2]
self.n3 = r[3]
conn.commit()
self.name_e.delete(0, END)
self.name_e.insert(0, str(self.n1))
self.AQ_e.delete(0, END)
self.AQ_e.insert(0, str(self.n2))
self.MD_e.delete(0, END)
self.MD_e.insert(0, str(self.n3))
def Delete(self, *args, **kwargs):
self.name = self.name_e.get()
ans = tkinter.messagebox.askquestion("Delete Product", "Do you really want to Delete")
if self.name == '':
tkinter.messagebox.showinfo('Error', 'Please Fill all the entries.')
elif ans == 'yes':
query = "SELECT * FROM Product WHERE Name_of_product=?"
conn = sqlite3.connect("DataBase.db")
c = conn.cursor()
result = c.execute(query, (self.name,))
records = c.fetchall()
x = len(records)
result = c.execute(query, (self.name,))
for self.r in result:
self.get_name = self.r[1]
self.get_AQ = self.r[2]
self.get_MD = self.r[3]
if x == 0 :
tkinter.messagebox.showinfo('Error', 'No Product exists')
else:
self.name = self.name_e.get()
conn = sqlite3.connect("DataBase.db")
c = conn.cursor()
c.execute("DELETE FROM Product WHERE Name_of_product=?",(self.name, ))
conn.commit()
conn.close()
info = tkinter.messagebox.showinfo("Success", " Deleted ")
for i in self.tree.get_children():
self.tree.delete(i)
self.Refresh(self)
self.clear_all(self)
def Reset(self, *args, **kwargs):
answer = tkinter.messagebox.askquestion("Reset", "Do you really want to reset")
print(answer)
if answer == 'yes':
conn = sqlite3.connect("DataBase.db")
c = conn.cursor()
c.execute("DELETE FROM Product")
conn.commit()
conn.close()
info = tkinter.messagebox.showinfo("Success", " Reset ")
for i in self.tree.get_children():
self.tree.delete(i)
self.Refresh(self)
def Help(self, *args, **kwargs):
tkinter.messagebox.showinfo("Help", "######################################################################??????????????????????????????????? ")
def About(self, *args, **kwargs):
tkinter.messagebox.showinfo("About", "Created By: <NAME>")
def Requirement(self, *args, **kwargs):
ans = tkinter.messagebox.askquestion("Generate Requirement List", "Do you really want to Generate Requirement List")
if ans == 'yes':
directory = "RequirementList/" + str(date) + "/"
if not os.path.exists(directory):
os.makedirs(directory)
RequirementList = "\t\t\t\t\t*Requirement List*\n\n"
dt = "\t" + str(date)
table_header = "\n\n\t---------------------------------------------------------\n\t\tSN.\t\t\t\tProducts\t\t\tQty\n\t---------------------------------------------------------\n"
final = RequirementList + dt + "\n" + table_header
file_name =str(directory) + str (random.randrange(5000, 10000)) + ".rtf"
f = open(file_name, 'w')
f.write(final)
result=c.execute("SELECT * FROM Product where MD > AQ")
rows = c.fetchall()
j = 1
for row in rows:
self.get_name = row[1]
self.get_AQ = row[2]
self.get_MD = row[3]
f.write("\n\t\t" + str(j) + "\t\t\t\t" + str(self.get_name) + "\t\t\t\t" + str(self.get_MD - self.get_AQ) + "\n")
j += 1
f.close()
obj=Inventory_System(root)
root.title('Household Inventory')
root.geometry('1350x700+0+0')
root.mainloop()
| f8d1b900ddba9932d7897139d577d2e5c668a060 | [
"Python"
] | 1 | Python | Shivendra323/InventoryControl | f934c3e24eec86ffbfebaa5704302b88c15727fd | 1a76eba1284032190b6049dc12a8ed265d5d3954 |
refs/heads/main | <file_sep>using Microsoft.AspNetCore.SignalR.Client;
using System;
namespace CoreSignalR_ConsoleClient
{
class Program
{
static void Main(string[] args)
{
var connection = new HubConnectionBuilder()
.WithUrl("http://localhost:5000/SignalR_Sample")
.Build();
connection.On<string, string>("ClientMethod1", (userName, message) =>
{
Console.WriteLine($"{userName}:{message}");
});
//SignalR連線開始
connection.StartAsync()
.ContinueWith(t =>
{
if (t.IsCompletedSuccessfully)
{
//呼叫Server的ServerMethod1();
connection.InvokeAsync("ServerMethod1", "ConesoleUser", "ConsoleMessage");
}
});
Console.Read();
}
}
}
| cebc5f090a01620eaabdca9ce248d8714157fa10 | [
"C#"
] | 1 | C# | SinHao/CoreSignalR_ConsoleClient | ce983e97b98bb2be024ae4a0f2e8a85716c2e375 | f12a632d1b67650194b168f78b9613bc605c0215 |
refs/heads/master | <repo_name>dwale/account-lookup-directive-in-angular<file_sep>/src/app/account-lookup.directive.ts
import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';
import { BankInfo } from './models/bankInfo';
import { UtilityService } from './utility.service';
@Directive({
selector: '[appAccountLookup]'
})
export class AccountLookupDirective {
@Input('appAccountLookup') bankDetails!:BankInfo;
defaultActionText: string = 'Verify Account';
loadingActionText: string = 'Verifying...';
actionButton!: HTMLElement
constructor(private renderer: Renderer2, private el: ElementRef, private utilityService: UtilityService){
this.modifyField();
}
private modifyField():void {
// Set style of parent
const parent = this.renderer.parentNode(this.el.nativeElement)
this.renderer.setStyle(parent, 'position', 'relative');
// Create action element inside the input field
const actionButton = this.renderer.createElement('span');
this.renderer.addClass(actionButton, 'inside__input--button');
this.renderer.setProperty(actionButton,'innerHTML',this.defaultActionText);
actionButton.addEventListener('click', (event:any) => {
// Subscription to method that will fetch the account name
this.verifyAccountDetails(actionButton, parent);
console.log('clicked');
});
this.renderer.appendChild(parent, actionButton);
};
private verifyAccountDetails(actionButton: HTMLElement, parent:HTMLElement){
this.renderer.setProperty(actionButton,'innerHTML',this.loadingActionText);
const accountNameDisplay = this.renderer.createElement('span');
this.renderer.addClass(accountNameDisplay, 'result__under--text');
this.renderer.appendChild(parent, accountNameDisplay);
this.utilityService.validateAccount(this.bankDetails)
.subscribe((resp)=> {
this.renderer.setProperty(accountNameDisplay,'innerHTML', resp.accountName);
actionButton.innerHTML = this.defaultActionText;
},
(error: any)=> {
actionButton.innerHTML = this.defaultActionText;
console.log(error);
})
}
}
<file_sep>/src/app/account-lookup.directive.spec.ts
import { AccountLookupDirective } from './account-lookup.directive';
describe('AccountLookupDirective', () => {
it('should create an instance', () => {
const directive = new AccountLookupDirective();
expect(directive).toBeTruthy();
});
});
<file_sep>/src/app/models/bankInfo.ts
export class BankInfo {
bankCode: string = '';
bankAccountNumber: string = '';
};<file_sep>/src/app/app.component.ts
import { Component } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
bankInformationForm!: FormGroup;
constructor (private formBuilder: FormBuilder) {}
ngOnInit(): void {
this.initializeForm();
}
private initializeForm():void {
this.bankInformationForm = this.formBuilder.group({
bankCode: ["", Validators.required],
bankAccountNumber: ["", Validators.required]
});
}
}<file_sep>/src/app/utility.service.ts
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { BankInfo } from './models/bankInfo';
@Injectable({
providedIn: 'root'
})
export class UtilityService {
constructor( private httpClient: HttpClient ) { }
public validateAccount(validateAccount: BankInfo): Observable<any> {
return this.httpClient.post('this.apis.verifyAccount', validateAccount)
}
}
| abbda545f3f0b7707f610c55f8853775b813c1ce | [
"TypeScript"
] | 5 | TypeScript | dwale/account-lookup-directive-in-angular | 2928f891aba4c6162cc6acc6d82e354f941fc4c4 | 08dee829115155cde2009cbf49b00babcf0113f5 |
refs/heads/master | <file_sep># coding: utf-8
import numpy as np
import pandas as pd
from gensim.corpora.dictionary import Dictionary
from sklearn.model_selection import train_test_split
class DataGenerator(object):
def __init__(self, positive_dataset: pd.DataFrame, negative_dataset: pd.DataFrame, test_size: float, random_state: int = 123,
max_sentence_length: int = None):
self.dataset = pd.concat([positive_dataset, negative_dataset], axis=0)
self.dataset['review'] = self.dataset['review'].apply(lambda x: x.strip().split())
self.dictionary = Dictionary(self.dataset['review'].values)
self.dataset['review'] = self.dataset['review'].apply(self.dictionary.doc2idx)
self.max_sentence_length = max_sentence_length
if self.max_sentence_length is not None:
self.dataset['review'] = self.dataset['review'].apply(lambda x: x[:self.max_sentence_length])
else:
self.max_sentence_length = max(self.dataset['review'].apply(len))
# padding
eos_id = len(self.dictionary.keys())
self.dataset['review'] = self.dataset['review'].apply(
lambda x: np.pad(x, (0, self.max_sentence_length - len(x)), 'constant', constant_values=(0, eos_id)))
# change type
self.dataset['review'] = self.dataset['review'].apply(lambda x: x.astype(np.int32))
self.dataset['label'] = self.dataset['label'].astype(np.int32)
# split
self.train, self.test = train_test_split(self.dataset, test_size=test_size, random_state=random_state)
def get_train_dataset(self):
return list(zip(self.train['review'].values, self.train['label'].values))
def get_test_dataset(self):
return list(zip(self.test['review'].values, self.test['label'].values))
def get_max_sentence_length(self):
return self.max_sentence_length
def get_n_word(self):
return len(self.dictionary.keys()) + 1
<file_sep>#!/usr/bin/env python
from distutils.core import setup
setup(name='cnn_sc',
version='0.0.1')
<file_sep># coding: utf-8
import unittest
import numpy as np
import pandas as pd
from preprocessing.data_generator import DataGenerator
class TestDataGenerator(unittest.TestCase):
def test(self):
pos = pd.DataFrame({'review': ['a b', 'a b c'], 'label': [0, 1]})
neg = pd.DataFrame([], columns=['review', 'label'])
data = DataGenerator(positive_dataset=pos, negative_dataset=neg, test_size=0.0)
train = data.get_train_dataset()
self.assertEqual(len(train), 2)
self.assertEqual(train[0][0].shape, (3, ))
self.assertEqual(train[1][0].shape, (3, ))
self.assertTrue(train[0][1] in {0, 1})
self.assertTrue(train[1][1] in {0, 1})
if __name__ == '__main__':
unittest.main()
<file_sep># cnn_sc
code for "Convolution Neural Networks for Sentence Classification"
<file_sep># coding: utf-8
import argparse
import os
import chainer
import pandas as pd
from chainer import training, iterators, optimizers, serializers
from chainer.training import extensions
from cnn_sc.model.cnn_rand import CNNRand
from cnn_sc.preprocessing.data_generator import DataGenerator
def _read_file(filepath: str):
with open(filepath, 'rb') as f:
return pd.DataFrame({'review': [str(l) for l in f.readlines()]})
def create_data(test_size: float = 0.1, max_sentence_length: int = 100) -> DataGenerator:
positive_dataset = _read_file(os.path.join('data', 'rt-polaritydata', 'rt-polarity.pos'))
positive_dataset['label'] = 1
negative_dataset = _read_file(os.path.join('data', 'rt-polaritydata', 'rt-polarity.neg'))
negative_dataset['label'] = 0
return DataGenerator(positive_dataset, negative_dataset, test_size=test_size, max_sentence_length=max_sentence_length)
def train_model(max_sentence_length, n_factor, batch_size, decay, gpu, n_epoch, n_out_channel):
dataset = create_data(test_size=0.1, max_sentence_length=max_sentence_length)
filter_windows = [3, 4, 5]
max_sentence_length = dataset.get_max_sentence_length()
n_word = dataset.get_n_word()
model = CNNRand(filter_windows=filter_windows, max_sentence_length=max_sentence_length, n_word=n_word, n_factor=n_factor, n_out_channel=n_out_channel)
if gpu >= 0:
chainer.cuda.get_device_from_id(gpu).use() # Make a specified GPU current
model.to_gpu() # Copy the model to the GPU
train_iter = iterators.SerialIterator(dataset.get_train_dataset(), batch_size, shuffle=True)
test_iter = iterators.SerialIterator(dataset.get_test_dataset(), batch_size, repeat=False, shuffle=False)
optimizer = optimizers.Adam()
optimizer.setup(model)
updater = training.StandardUpdater(train_iter, optimizer, device=gpu)
trainer = training.Trainer(updater, (n_epoch, 'epoch'), out='result')
trainer.extend(extensions.LogReport())
trainer.extend(extensions.Evaluator(test_iter, model, device=gpu), name='test')
trainer.extend(
extensions.PrintReport(entries=[
'epoch',
'main/loss', 'test/main/loss',
'main/accuracy', 'test/main/accuracy',
'elapsed_time']))
trainer.extend(extensions.ProgressBar())
optimizer.add_hook(chainer.optimizer.WeightDecay(decay))
trainer.run()
model.to_cpu()
serializers.save_npz('./result/model.npz', model)
if __name__ == '__main__':
os.chdir(os.path.abspath(os.path.dirname(__file__)))
parser = argparse.ArgumentParser()
parser.add_argument('--max_sentence_length', type=int, default=60)
parser.add_argument('--n_factor', type=int, default=300)
parser.add_argument('--batch_size', type=int, default=50)
parser.add_argument('--decay', type=float, default=0.0001)
parser.add_argument('--gpu', type=int, default=-1)
parser.add_argument('--n_epoch', type=int, default=100)
parser.add_argument('--n_out_channel', type=int, default=1)
args = parser.parse_args()
print(args)
train_model(**vars(args))
<file_sep># coding: utf-8
import unittest
import numpy as np
from cnn_sc.model.cnn_rand import CNNRand
class TestCNNRand(unittest.TestCase):
def test_run_without_error(self):
model = CNNRand()
x_batch = np.array([[1, 2, 3, 0, 0, 0], [4, 5, 6, 0, 0, 0]])
t_batch = np.array([0, 1])
loss = model(x_batch, t_batch)
if __name__ == '__main__':
unittest.main()
<file_sep># coding: utf-8
from enum import Enum
from typing import List
import chainer
import chainer.functions as functions
import chainer.links as links
class TaskType(Enum):
Classification = 'Classification'
Embedding = 'Embedding'
class ConvolutionList(chainer.ChainList):
def __init__(self, n_in_channel: int, n_out_channel: int, n_factor: int, filter_windows: List[int]):
link_list = [links.Convolution2D(n_in_channel, n_out_channel, (window, n_factor), nobias=False, pad=0) for window in filter_windows]
super(ConvolutionList, self).__init__(*link_list)
class CNNRand(chainer.Chain):
def __init__(self, filter_windows: List[int], max_sentence_length, n_word, n_factor, n_out_channel=100, n_class=2, dropout_ratio=0.5,
mode=TaskType.Classification):
super(CNNRand, self).__init__()
# hyperparameters
self.filter_windows = filter_windows
self.max_sentence_length = max_sentence_length
self.n_word = n_word
self.n_factor = n_factor
self.n_in_channel = 1
self.n_out_channel = n_out_channel
self.n_class = n_class
self.dropout_ratio = dropout_ratio
self.loss_function = {TaskType.Classification: functions.softmax_cross_entropy,
TaskType.Embedding: functions.mean_squared_error}[mode]
self.output_function = {TaskType.Classification: functions.softmax,
TaskType.Embedding: lambda x: x}[mode]
self.accuracy_function = {TaskType.Classification: functions.accuracy,
TaskType.Embedding: functions.mean_squared_error}[mode]
# model architecture
with self.init_scope():
self.embedId = links.EmbedID(self.n_word, self.n_factor)
self.convolution_links = ConvolutionList(n_in_channel=self.n_in_channel, n_out_channel=self.n_out_channel, n_factor=self.n_factor,
filter_windows=self.filter_windows)
self.fully_connected = links.Linear(self.n_out_channel * len(self.filter_windows), self.n_class)
def __call__(self, x, t=None, train=True):
# item embedding
embedding = functions.expand_dims(self.embedId(x), axis=1)
convolutions = [functions.relu(c(embedding)) for c in self.convolution_links]
poolings = functions.concat([functions.max_pooling_2d(c, ksize=(c.shape[2])) for c in convolutions], axis=2)
y = functions.dropout(self.fully_connected(poolings), ratio=self.dropout_ratio)
if train:
loss = self.loss_function(y, t)
chainer.reporter.report({'loss': loss, 'accuracy': self.accuracy_function(y, t)}, self)
return loss
else:
return self.output_function(y)
<file_sep>#!/usr/bin/env bash
mkdir data
wget https://www.cs.cornell.edu/people/pabo/movie-review-data/rt-polaritydata.tar.gz -O ./data/rt-polaritydata.tar.gz
tar -zxvf ./data/rt-polaritydata.tar.gz -C ./data/
<file_sep>pandas
gensim
chainer
sklearn
numpy | 0b0e04ae8faa904e74a1259eb256c95abe15f6ab | [
"Markdown",
"Python",
"Text",
"Shell"
] | 9 | Python | nishiba/cnn_sc | 0373dc6a27a71638f1b0a28e0dff316548fe4851 | 7708e2c775a8b7a5ea06fcef045d3bf9c8322bca |
refs/heads/master | <file_sep>class Admin extends User{
constructor(login, password, role){
super(login, password, role);
}
DeleteRoom(room_number){
console.log(typeof(room_number));
let room_to_delete = Hotel.Rooms.find(room=>{
return parseInt(room.number) === parseInt(room_number);
})
Hotel.Rooms.splice(Hotel.Rooms.indexOf(room_to_delete),1);
localStorage.setItem('rooms', JSON.stringify(Hotel.Rooms));
}
}<file_sep>class Hotel{
static constructor(){
this.rooms = JSON.parse(localStorage.getItem('rooms'));
}
static AddRoom(room){//object Room
if(this.rooms){
let buff = this.rooms.find(curr_room => {
if(curr_room.number === room.number) return curr_room;
});
if(buff) return {ok:false, msg: 'Комната уже существует'};
}
if(!room.number) return {ok:false, msg: 'Введите номер комнаты'};
if(Math.floor(room.number / 100) > 9 || room.number < 101) return {ok: false, msg: 'Номер комнаты должен быть трехзначным'};
if(room.Places > 4) return {ok:false, msg:'Комната может вместить максимум 4 человека'};
if(room.Places <= 0) return {ok:false, msg:'Должно быть как минимум 1 место'};
this.rooms.push(room);
this.rooms.sort((a,b)=>{
return a.number > b.number? 1 : -1;
});
localStorage.setItem('rooms', JSON.stringify(this.rooms));
return {ok: true};
}
static Populate(room_number, clients){
let room = this.rooms.find(room =>{
return parseInt(room.number) === parseInt(room_number);
});
room.clients = clients;
localStorage.setItem('rooms', JSON.stringify(this.rooms));
}
static DeleteRoom(room){
this.rooms.splice(this.rooms.indexOf(room), 1);
}
static get Rooms(){return this.rooms;}
}<file_sep>$(document).ready(()=>{
console.clear();
//получаем данные об номерах, юхерах из файла
if(!localStorage.getItem('users')){
let users = {
admins: [{login: 'admin', password: '<PASSWORD>', role: 'admin'}],
tourists: []
};
localStorage.setItem('users', JSON.stringify(users));
}
if(!localStorage.getItem('rooms')){
let rooms = [];
localStorage.setItem('rooms', JSON.stringify(rooms));
}
//все юзеры
let users = localStorage.getItem('users');
//авторизированный юзер
let authed_user;
Hotel.constructor();
//биндим вызов функций на клики
$('.btn-login').bind('click', TryLogin);
$('.btn-register').bind('click',Register);
$('.btn-logout').bind('click', Logout);
$('.btn-add-room').bind('click', AddRoom);
});
//переключение вкладок
$('button.auth').click(function(){
if($(this).hasClass('btn-default')){
$(this).toggleClass('btn-primary btn-default');
$('button.register').toggleClass('btn-primary btn-default');
$('.row.login').attr('hidden', false);
$('.row.register').attr('hidden', true);
}
});
//то же самое
$('button.register').click(function(){
if($(this).hasClass('btn-default')){
$(this).toggleClass('btn-primary btn-default');
$('button.auth').toggleClass('btn-primary btn-default');
$('.row.register').attr('hidden', false);
$('.row.login').attr('hidden', true);
}
});
//пытаемся залогиниться
function TryLogin(){
//получение роли под кем логиниться
let role = $('input[type="radio"]:checked').val();
//логин
let login = $('#auth-login').val();
//пароль
let password = $('#auth-password').val();
//вытягиваем из файла данные об юзерах
users = role === 'tourist'? JSON.parse(localStorage.getItem('users')).tourists : JSON.parse(localStorage.getItem('users')).admins;
//ищем в массиве юзеров соответствие
let buff = users.find(tourist => {
if(tourist.login === login && tourist.password === password)
return tourist;
});
//создаем объект юзера
if(buff) authed_user = role === "tourist"? new Tourist(login, password, role, buff.first_name, buff.second_name, buff.last_name, buff.phone, buff.passport): new Admin(login, password, role);
else {
alert('Неверный логин или пароль');
return;
}
//логинимся
authed_user.Login();
//вызываем рендер страницы
role === "tourist"? LoadTouristPage(authed_user) : LoadAdminPage(authed_user);
}
//регистрация
function Register(){
//считываем из полей данные
let new_user = {
first_name: $('#reg-first-name').val(),
second_name: $('#reg-second-name').val(),
last_name: $('#reg-last-name').val(),
passport: $('#reg-passport').val(),
phone: $('#reg-phone').val(),
login: $('#reg-login').val(),
password: $('#<PASSWORD>').val()
};
//проверяем что все поля чем-то заполнены
for(let item in new_user){
if(new_user[item].length === 0) {
alert('Поле не может быть пустым');
return;
}
}
//проверка логина
if(!CheckLogin(new_user.login)){
alert("Логин уже существует");
return;
}
//проверка пароля
if(!CheckPassword(new_user.password)){
alert('Некорректный пароль!');
return;
}
//отформатированные данные
let c_phone = CheckNumber(new_user.phone, 11);
let c_passport = CheckNumber(new_user.passport, 10);
let c_f_name = CheckName(new_user.first_name);
let c_s_name = CheckName(new_user.second_name);
let c_l_name = CheckName(new_user.last_name);
//если что-то не так, то выходим из функции
if(!c_phone.ok){
alert("Некорректный номер телефона");
return;
}else new_user.phone = c_phone.number;
if(!c_passport.ok){
alert('Некорректный номер паспорта');
return;
} else new_user.passport = c_passport.number;
if(!c_f_name.ok){
alert("Имя должно содержать только русские буквы!");
return
} else new_user.first_name = c_f_name.name;
if(!c_s_name.ok){
alert("Фамилия должна содержать только русские буквы!");
return
} else new_user.second_name = c_s_name.name;
if(!c_l_name.ok){
alert("Отчество должно содержать только русские буквы!");
return
} else new_user.last_name = c_l_name.name;
//получаем юзеров
let users = JSON.parse(localStorage.getItem('users'));
//добавляем в юзеров
users.tourists.push(new_user);
//сохраняем
localStorage.setItem('users',JSON.stringify(users));
//создаем авторизацию
authed_user = new Tourist(new_user.login, new_user.password, 'tourist', new_user.first_name, new_user.second_name, new_user.last_name, new_user.phone, new_user.passport);
//логинимся
authed_user.Login();
//очищаем поля
$('input[type="text"], input[type="password"], input[type="number"]').val('');
//рендер страницы
LoadTouristPage(authed_user);
}
//проверка логина
function CheckLogin(login){
//вытягиваем юзеров из файла
let all_users = JSON.parse(localStorage.getItem('users')).tourists;
//ищем соответствие в юзерах
if(all_users.find(user => {
if(user.login.toLowerCase() === login.toLowerCase()) return user;
})) return false;
return true;
}
//проверка пароля
function CheckPassword(password){
let loc_password = <PASSWORD>;
//проверка, что пароль на латиннице
if(loc_password.length !== password.match(/[\w\d]/gi).length) return false;
return true;
}
//проверка любого номера
function CheckNumber(number, amount){
//удаляем через регулярные выражения все символы, если есть
let loc_number = number.replace(/[\s\+]/);
//если неправильная длинна, то return false
if(loc_number.length !== amount) return {ok:false};
return {ok:true, number: loc_number};
}
//проверка имени
function CheckName(name){
//проверка, что нет чисел в имени
let loc_name = name.replace(/[\s\d]/gi, "");
//проверка, что нет латинских букв в имени
if(loc_name.match(/\w+/gi)) return {ok: false};
return {ok: true, name: loc_name.charAt(0).toUpperCase() + loc_name.slice(1)};
}
//выход из сессии
function Logout(){
authed_user.Logout();
$('.container').children('.row').attr('hidden', true);
$('.row.auth-btns, .row.login').attr('hidden', false);
}
//отрисовка страницы туриста
function LoadTouristPage(tourist){
//чистим контейнеры
$('.tourist-page .order-form, .tourist-page .ordered-room, .tourist-page .rooms').empty();
$('.tourist-page .order-btn').remove();
//получаем все номера из файла
let rooms = JSON.parse(localStorage.getItem('rooms'));
//ищем забронированную комнату
let room = rooms.find(room=>{
let this_tourist = room.clients.find(client=>{
return client.second_name === authed_user.second_name && client.first_name === authed_user.first_name && client.last_name === authed_user.last_name;
});
return this_tourist? true: false;
});
//работа с dom-элементами
$('.row.auth-btns, .row.login, .row.register').attr('hidden', true);
$('.row.tourist-page').attr('hidden', false);
$('.sfl').text(authed_user.FullName);
$('.tourist-phone').text(authed_user.Phone);
//если есть забронированная комната, то рисуем один интерфейс
if(room) {
$('.ordered-room').text(`Забронированный номер: ${room.number} на ${room.clients.length} человека`);
$('.btn-cancel-order').unbind().bind('click', ()=>{$('.ordered-room').empty();room.clients = []; localStorage.setItem('rooms', JSON.stringify(rooms)); LoadTouristPage(authed_user);}).show();
}
else{
$('.btn-cancel-order').hide();
//фильтруем номера, чтобы остались только те, в которые никто не заселился
rooms = rooms.filter(room=>{return room.clients.length === 0;});
//отрисовка карточки номера
for(let i=0;i<rooms.length;i++){
$('.tourist-page .rooms').append(RendeRoomCard('tourist', rooms[i]));
}
}
}
//рендер страницы админа
function LoadAdminPage(admin){
$('.row.auth-btns, .row.login, .row-register').attr('hidden', true);
$('.row.admin-page').attr('hidden', false);
//вытягиваем номера
let rooms = Hotel.Rooms;
$('.admin-page .col .rooms').empty();
//отрисовываем карточки номеров
for(let i=0;i< Hotel.Rooms.length; i++){
$('.admin-page .col .rooms').append(RendeRoomCard('admin', Hotel.Rooms[i]));
}
}
//рендер карточки номера
function RendeRoomCard(role, room){
//рендер для туриста
if(role === 'tourist'){
let wrapper = $(`<div class = "col-4 room" data-id=${room.number}/>`);
$(`<div>Номер комнаты: ${room.number}</div>`).appendTo(wrapper);
$(`<div>Мест: ${room.places}</div>`).appendTo(wrapper);
$(`<div>Цена: ${room.price}/чел.</div>`).appendTo(wrapper);
$(`<a href="#" role='button' class="py-1 btn btn-outline-primary btn-block">Забронировать</a>`).unbind().bind('click', ()=>{RenderOrderForm(room.number, room.places);}).appendTo(wrapper);
return wrapper;
}
//рендер для админа
else{
let wrapper = $(`<div class="col-4 room" data-id=${room.number}/>`);
$(`<div>Комната ${room.number}</div>`).appendTo(wrapper);
$(`<div>Кол-во свободных мест: ${room.places - room.clients.length}</div>`).appendTo(wrapper);
$(`<div>Цена: ${room.price}/чел.</div>`).appendTo(wrapper);
$(`<h6>Заселенные туристы:</h6>`).appendTo(wrapper);
if(!room.clients) $('<div>Нет</div>').appendTo(wrapper);
for(let i=0;i<room.clients.length;i++){
$(`<div>${i + 1}. ${room.clients[i].first_name + " " +room.clients[i].second_name}</div>`).appendTo(wrapper);
}
$(`<button class='py-1 btn btn-outline-danger btn-block'>Удалить комнату</button>`).unbind().bind('click', ()=>{authed_user.DeleteRoom(room.number);LoadAdminPage(authed_user);}).appendTo(wrapper);
return wrapper;
}
}
function OrderClicked(room_number){
}
//добавление номера
function AddRoom(){
//считываем данные
let room_number = $('#room-number').val();
let person_amount = $('#person-amount').val();
let price_per_person = $('#price-per-person').val();
//добавляем
let data = Hotel.AddRoom(new Room(room_number, person_amount, price_per_person));
if(!data.ok) alert(data.msg);
//перерисовываем страницу
LoadAdminPage(authed_user);
}
//отрисовка формы бронирования номера
function RenderOrderForm(room_number, room_places){
let room = JSON.parse(localStorage.getItem('rooms')).find(room=>{return room.number === room_number;});
room_places = parseInt(room_places);
let $form = $('.order-form');
$form.empty();
$('.order-btn').remove();
for(let i =0;i<room_places;i++){
let $wrapper = $(`<div class="form-group row order order${i}"></div>`);
$wrapper.append(`<div class="col-12"><h3>Турист ${i+1}</h3></div>`);
$wrapper.append($(`<label class="mt-1 col-3 col-form-label" for="s_name${i}">Фамилия</label>`));
$wrapper.append($(`<div class="order-wrap mt-1 col-9"><input value="${i===0? authed_user.SecondName:''}" class="form-control form-control-sm order-input" type="text" id="s_name${i}"></div>`));
$wrapper.append($(`<div class="incor col-12 s_name${i}"></div>`));
$wrapper.append($(`<label class="mt-1 col-3 col-form-label" for="f_name${i}">Имя</label>`));
$wrapper.append($(`<div class="order-wrap mt-1 col-9"><input value="${i===0? authed_user.FirstName:''}" class="form-control form-control-sm order-input" type="text" id="f_name${i}"></div>`));
$wrapper.append($(`<div class="incor col-12 f_name${i}"></div>`));
$wrapper.append($(`<label class="mt-1 col-3 col-form-label" for="l_name${i}">Отчество</label>`));
$wrapper.append($(`<div class="order-wrap mt-1 col-9"><input value="${i===0? authed_user.LastName:''}" class="form-control form-control-sm order-input" type="text" id="l_name${i}"></div>`));
$wrapper.append($(`<div class="incor col-12 l_name${i}"></div>`));
$wrapper.append($(`<label class="mt-1 col-3 col-form-label" for="phone${i}">Номер телефона</label>`));
$wrapper.append($(`<div class="order-wrap mt-1 col-9"><input value="${i===0? authed_user.Phone:''}" class="form-control form-control-sm order-input" type="number" id="phone${i}"></div>`));
$wrapper.append($(`<div class="incor col-12 phone${i}"></div>`));
$wrapper.append($(`<label class="mt-1 col-3 col-form-label" for="passport${i}">Паспорт</label>`));
$wrapper.append($(`<div class="order-wrap mt-1 col-9"><input value="${i===0? authed_user.Passport:''}" class="form-control form-control-sm order-input" type="number" id="passport${i}"></div>`));
$wrapper.append($(`<div class="incor col-12 passport${i}"></div>`));
$form.append($wrapper);
}
$('.order-input').keyup(()=>{CountMinorPrice(room);});
$(`<div class="total-price"></div>`).appendTo($form);
$(`<button type='button' class="order-btn btn btn-block btn-primary">Забронировать</button>`).unbind().bind('click', ()=>{GetOrderValues(room_number, room_places);}).insertAfter($form);
}
function CountMinorPrice(room){
let inputs = [];
$form = $('.order-form');
$form.children('.order').each(function(){
let data = {};
$(this).children('.order-wrap').each(function(){
data[$(this).children().attr('id')] = $(this).children().val();
});
inputs.push(data);
});
inputs = ClearEmptyObjs(inputs);
$('.total-price').text(`Итоговая цена: ${parseInt(room.price)*inputs.length}`);
}
//получаем даные из полей при бронировании
function GetOrderValues(room_number, room_places){
//вытягиваем данные из файла
let rooms = JSON.parse(localStorage.getItem('rooms'));
//ищем комнату с нужным номером
let room = rooms.find((room)=>{
return room.number == room_number;
});
let inputs = [];
//dom форма
$form = $('.order-form');
//читаем все поля и записываем в массив
$form.children('.order').each(function(){
let data = {};
$(this).children('.order-wrap').each(function(){
data[$(this).children().attr('id')] = $(this).children().val();
});
inputs.push(data);
});
//очищаем из массива пустые данные
inputs = ClearEmptyObjs(inputs);
//если с данными все в порядке, то в комнату заселяем туристов
if(CheckOrderData(inputs)){
let clients = [];
//перезаписываем в удобный формат объект жильцов
for(let i=0;i<inputs.length;i++){
let client = {};
client['first_name'] = inputs[i][`f_name${inputs[i]['field_no']}`];
client['second_name'] = inputs[i][`s_name${inputs[i]['field_no']}`];
client['last_name'] = inputs[i][`l_name${inputs[i]['field_no']}`];
client['phone'] = inputs[i][`phone${inputs[i]['field_no']}`];
client['passport'] = inputs[i][`passport${inputs[i]['field_no']}`];
clients.push(client);
}
//заселяем
Hotel.Populate(room_number, clients);
//перерисовываем страницу
LoadTouristPage(authed_user);
}
}
//чистит данные от пустых полей
function ClearEmptyObjs(values){
let indexes = [];
for(let i =0;i<values.length;i++){
let is_empty = true;
for(let item in values[i]){
//убираем все пробелы из полей
values[i][item] = values[i][item].replace(/\s/g, "");
if(values[i][item]) is_empty = false;
}
//хапоминаем номер поля в котором были данные
values[i].field_no = i;
if(is_empty) indexes.push(i);
}
//вычищаем пустые данные
for(let i = indexes.length-1;i>=0; i--) values.splice(indexes[i],1);
return values;
}
//проверяет введенные данные
function CheckOrderData(data){
let is_correct = true;
for(let i =0;i<data.length;i++){
//номер поля
let f_no = data[i]['field_no'];
let loc_f_name = CheckName(data[i][`f_name${f_no}`]);
let loc_s_name = CheckName(data[i][`s_name${f_no}`]);
let loc_l_name = CheckName(data[i][`l_name${f_no}`]);
let loc_phone = CheckNumber(data[i][`phone${f_no}`],11);
let loc_passport = CheckNumber(data[i][`passport${f_no}`],10);
if(!loc_f_name.ok){$(`.f_name${f_no}`).text('Некорректное имя'); is_correct=false;}else data[i][`f_name${f_no}`] = loc_f_name.name;
if(!loc_s_name.ok) {$(`.s_name${f_no}`).text('Некорректная фамилия');is_correct=false;}else data[i][`s_name${f_no}`] = loc_s_name.name;
if(!loc_l_name.ok) {$(`.l_name${f_no}`).text('Некорректное отчество');is_correct=false;}else data[i][`l_name${f_no}`] = loc_l_name.name;
if(!loc_phone.ok) {$(`.phone${f_no}`).text('Некорректный телефон');is_correct=false;}else data[i][`phone${f_no}`] = loc_phone.number;
if(!loc_passport.ok) {$(`.passport${f_no}`).text('Некорректный паспорт');is_correct=false;}else data[i][`passport${f_no}`] = loc_passport.number;
}
return is_correct;
}
<file_sep>class Room{
constructor(number, places, price){
this.number = number;//number
this.places = places;//number
this.price = price;
this.clients = [];
}
get Price(){return this.price;}
get Number(){return this.number;}
get Places(){return this.places;}
get Clients(){return this.clients;}
}<file_sep>class User{
constructor(login , password, role){
this.login = login;
this.password = <PASSWORD>;
this.role = role;
}
Login(){
let auth = {
login: this.login,
password: this.<PASSWORD>,
role: this.role
}
localStorage.setItem('auth', JSON.stringify(auth));
}
Logout(){
let auth = localStorage.getItem('auth');
auth = {};
localStorage.setItem('auth', JSON.stringify(auth));
}
get Role(){return this.role;}
} | d0850361cd0a67cd1d962a52597c7430c57f8bc7 | [
"JavaScript"
] | 5 | JavaScript | progershuegers/group_laba | 6c1c43483fd414c3657ff8548ccf1dd5c023a370 | 1f403fcdf9d23a64e90205da1adb4d3361b8e354 |
refs/heads/master | <file_sep>//
// PlaySoundsViewController.swift
// Pitch Perfect
//
// Created by <NAME> on 5/12/15.
// Copyright (c) 2015 akbalini. All rights reserved.
//
import UIKit
import AVFoundation
class PlaySoundsViewController: UIViewController {
var player:AVAudioPlayer!
var receivedAudio:RecordedAudio!
var audioEngine:AVAudioEngine!
var audioFile:AVAudioFile!
var session:AVAudioSession!
override func viewDidLoad() {
super.viewDidLoad()
configAudioSession()
var error: NSError?
player = AVAudioPlayer(contentsOfURL: receivedAudio.filePathUrl, error: &error)
player.enableRate = true
audioEngine = AVAudioEngine()
audioFile = AVAudioFile(forReading: receivedAudio.filePathUrl, error: nil)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func configAudioSession(){
//Congiguring session to use the output speaker system and instead of headset system.
session = AVAudioSession.sharedInstance()
var error:NSError?
if(!session.overrideOutputAudioPort(AVAudioSessionPortOverride.Speaker, error: &error)){
print("There was an error overriding with : \(error?.description)")
}
}
func playSound(rate: Float){
player.stop()
audioEngine.stop()
audioEngine.reset()
player.rate = rate
player.currentTime=0.0
player.play()
player.updateMeters()
}
@IBAction func playSoundSlow(sender: UIButton) {
playSound(0.5)
}
@IBAction func playSoundFast(sender: UIButton) {
playSound(2.0)
}
@IBAction func playDarthvaderAudio(sender: UIButton) {
playAudioWithVariablePitch(-1000)
}
@IBAction func playChipmunkAudio(sender: UIButton) {
playAudioWithVariablePitch(1000)
}
func playAudioWithVariablePitch(pitch: Float){
//stop audio both audioplayer and engine, reset audio engine.
player.stop()
audioEngine.stop()
audioEngine.reset()
var audioPlayerNode = AVAudioPlayerNode()
audioEngine.attachNode(audioPlayerNode)
//Using AVAUdioUnitTimePith to create an effect on the pitch
var changePitchEffect = AVAudioUnitTimePitch()
changePitchEffect.pitch = pitch
audioEngine.attachNode(changePitchEffect)
audioEngine.connect(audioPlayerNode, to: changePitchEffect, format: nil)
audioEngine.connect(changePitchEffect, to: audioEngine.outputNode, format: nil)
audioPlayerNode.scheduleFile(audioFile, atTime: nil, completionHandler: nil)
audioEngine.startAndReturnError(nil)
audioPlayerNode.play()
}
@IBAction func stopAudio(sender: UIButton) {
player.stop()
audioEngine.stop()
}
}
| 7de04ab1e6b5dc1aea7c6c56dc0e14aaa53ecd55 | [
"Swift"
] | 1 | Swift | akbalini/nanodegreeiOS | 649c60440f666f19fcada7de5b221d0199d4591b | 60ff5a1595e8ad29b1903f9ab7f05568faa83fc8 |
refs/heads/master | <file_sep>package editor.gui.generic;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Component;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Window;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.List;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
/**
* This class represents a dialog that presents a series of steps to the user with
* buttons in between each step that closes after the last one or if it is
* canceled. Wizards are modal, so other parts of the application will not respond
* while they are open.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class WizardDialog extends JDialog
{
/**
* Amount of space around control buttons.
*/
private static final int BUTTON_BORDER = 5;
/**
* Value returned when the wizard is canceled.
*/
public static final int CANCEL_OPTION = 1;
/**
* Value returned when the wizard is closed.
*/
public static final int CLOSE_OPTION = 2;
/**
* Value returned when the wizard completes successfully.
*/
public static final int FINISH_OPTION = 0;
/**
* Show a wizard dialog with a series of components.
*
* @param owner parent frame of the dialog
* @param title title of the dialog
* @param panels panels representing steps of the wizard
* @return a value indicating how the dialog was closed
*/
public static int showWizardDialog(Component owner, String title, Component... panels)
{
Window window = SwingUtilities.getWindowAncestor(owner);
WizardDialog dialog = new WizardDialog(window, title, panels);
dialog.setLocationRelativeTo(window);
return dialog.showWizard();
}
/**
* Show a wizard dialog with a series of components.
*
* @param owner parent frame of the dialog
* @param title title of the dialog
* @param panels panels representing steps of the wizard
* @return a value indicating how the dialog was closed
*/
public static int showWizardDialog(Component owner, String title, List<? extends Component> panels)
{
return showWizardDialog(owner, title, panels.toArray(new Component[panels.size()]));
}
/**
* Buttons used for canceling the wizard. Each panel gets one so they can be individually
* enabled or disabled.
*/
private JButton[] cancelButtons;
/**
* Value to return indicating how the dialog was closed.
*/
private int result;
/**
* Create a new WizardDialog.
*
* @param owner parent frame of the dialog
* @param title title of the dialog
* @param panels panels representing steps of the wizard
*/
public WizardDialog(Dialog owner, String title, Component... panels)
{
super(owner, title, true);
init(panels);
}
/**
* Create a new WizardDialog.
*
* @param owner parent frame of the dialog
* @param title title of the dialog
* @param panels panels representing steps of the wizard
*/
public WizardDialog(Frame owner, String title, Component... panels)
{
super(owner, title, true);
init(panels);
}
/**
* Create a new WizardDialog.
*
* @param owner parent frame of the dialog
* @param title title of the dialog
* @param panels panels representing steps of the wizard
*/
public WizardDialog(Window owner, String title, Component... panels)
{
super(owner, title, Dialog.ModalityType.APPLICATION_MODAL);
init(panels);
}
/**
* Initialize a new WizardDialog.
*
* @param panels components containing steps in the wizard
*/
private void init(Component[] panels)
{
CardLayout layout = new CardLayout();
setLayout(layout);
setResizable(false);
result = -1;
if (panels.length < 1)
throw new IllegalArgumentException("a wizard needs at least one step");
cancelButtons = new JButton[panels.length];
JButton[] nextButtons = new JButton[panels.length];
JButton[] previousButtons = new JButton[panels.length];
for (int i = 0; i < panels.length; i++)
{
JPanel step = new JPanel(new BorderLayout());
step.add(panels[i], BorderLayout.CENTER);
JPanel buttonPanel = new JPanel(new BorderLayout());
step.add(buttonPanel, BorderLayout.SOUTH);
JPanel buttons = new JPanel(new GridLayout(1, 0, BUTTON_BORDER, BUTTON_BORDER));
buttons.setBorder(BorderFactory.createEmptyBorder(BUTTON_BORDER, BUTTON_BORDER, BUTTON_BORDER, BUTTON_BORDER));
cancelButtons[i] = new JButton("Cancel");
cancelButtons[i].addActionListener((e) -> {
result = CANCEL_OPTION;
dispose();
});
buttons.add(cancelButtons[i]);
if (panels.length > 1)
{
previousButtons[i] = new JButton("< Previous");
previousButtons[i].addActionListener((e) -> layout.previous(getContentPane()));
buttons.add(previousButtons[i]);
}
if (i == panels.length - 1)
{
nextButtons[i] = new JButton("Finish");
nextButtons[i].addActionListener((e) -> {
result = FINISH_OPTION;
dispose();
});
}
else
{
nextButtons[i] = new JButton("Next >");
nextButtons[i].addActionListener((e) -> layout.next(getContentPane()));
}
buttons.add(nextButtons[i]);
buttonPanel.add(buttons, BorderLayout.EAST);
add(step, String.valueOf(i));
}
if (panels.length > 1)
previousButtons[0].setEnabled(false);
addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent e)
{
result = CLOSE_OPTION;
}
});
pack();
}
/**
* Enable or disable the cancel button at the given step.
*
* @param index step to control the cancel button at
* @param enable whether it should be enabled or not
*/
public void setCancelEnabled(int index, boolean enable)
{
cancelButtons[index].setEnabled(enable);
}
/**
* Enable or disable the next button at the given step.
*
* @param index step to control the next button at
* @param enable whether it should be enabled or not
*/
public void setNextEnabled(int index, boolean enable)
{
cancelButtons[index].setEnabled(enable);
}
/**
* Enable or disable the previous button at the given step.
*
* @param index step to control the previous button at
* @param enable whether it should be enabled or not
*/
public void setPreviousEnabled(int index, boolean enable)
{
if (index != 0)
cancelButtons[index].setEnabled(enable);
}
/**
* Show the wizard dialog.
*
* @return a value indicating how the dialog was closed
*/
public int showWizard()
{
setVisible(true);
if (result == -1)
throw new IllegalStateException("wizard not correctly closed");
return result;
}
}
<file_sep>package editor.database.attributes;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
* This class represents an expansion set of Magic: The Gathering cards.
*
* @author Alec
*/
public class Expansion implements Comparable<Expansion>
{
/**
* Array containing all block names.
*/
public static String[] blocks = {};
/**
* Date format used to decode expansion release dates.
*/
public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
/**
* Array containing all expansion names.
*/
public static Expansion[] expansions = {};
/**
* Name of the block this Expansion belongs to (empty if there is none).
*/
public final String block;
/**
* This Expansion's code.
*/
public final String code;
/**
* Number of cards in this Expansion.
*/
public final int count;
/**
* This Expansion's name.
*/
public final String name;
/**
* The date the expansion was released.
*/
public final LocalDate releaseDate;
/**
* Create a new Expansion.
*
* @param name name of the new expansion
* @param block name of the block the new Expansion belongs to
* @param code code of the new Expansion
* @param count number of cards in the new Expansion
*/
public Expansion(String name, String block, String code, int count, LocalDate date)
{
this.name = name;
this.block = block;
this.code = code;
this.count = count;
this.releaseDate = date;
}
@Override
public int compareTo(Expansion other)
{
return name.compareTo(other.name);
}
/**
* {@inheritDoc}
* Expansions are equal if they have the same name.
*/
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other.getClass() != getClass())
return false;
if (other == this)
return true;
Expansion o = (Expansion)other;
return name.equals(o.name);
}
@Override
public int hashCode()
{
return name.hashCode();
}
/**
* @return A String representation of this Expansion.
*/
@Override
public String toString()
{
return name;
}
}
<file_sep>package editor.gui.editor;
import java.awt.Color;
import java.awt.Dimension;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.swing.BoxLayout;
import editor.collection.deck.CategorySpec;
import editor.database.card.Card;
import editor.gui.generic.ScrollablePanel;
import editor.gui.generic.TristateCheckBox;
import editor.gui.generic.TristateCheckBox.State;
/**
* This class represents a panel that displays a list of categories with boxes next to them indicating
* card inclusion in each of them. A check mark means all cards it was given are included, a "mixed" icon
* indicates some of the cards are included, and an empty box indicates none are included. Boxes can be
* selected to toggle inclusion/exclusion of cards (mixed cannot be selected manually). Card inclusion is
* not changed by the panel, but it provides information that allows it to be externally.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class IncludeExcludePanel extends ScrollablePanel
{
/**
* Maximum amount of rows to display in a scroll pane.
*/
private static final int MAX_PREFERRED_ROWS = 10;
/**
* Categories and their corresponding check boxes.
*/
private Map<CategorySpec, TristateCheckBox> categoryBoxes;
/**
* List of cards to display inclusion for.
*/
private Collection<Card> cards;
/**
* Preferred viewport height of this panel.
*/
private int preferredViewportHeight;
/**
* Create a new IncludeExcludePanel showing inclusion of the given cards in the given
* categories.
*
* @param categories categories to display
* @param c cards to show inclusion for
*/
public IncludeExcludePanel(List<CategorySpec> categories, Collection<Card> c)
{
super(TRACK_WIDTH);
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
setBackground(Color.WHITE);
categoryBoxes = new HashMap<>();
cards = c;
preferredViewportHeight = 0;
for (CategorySpec category : categories)
{
TristateCheckBox categoryBox = new TristateCheckBox(category.getName());
long matches = cards.stream().filter(category::includes).count();
if (matches == 0)
categoryBox.setState(State.UNSELECTED);
else if (matches < cards.size())
categoryBox.setState(State.INDETERMINATE);
else
categoryBox.setState(State.SELECTED);
categoryBox.setBackground(Color.WHITE);
add(categoryBox);
categoryBoxes.put(category, categoryBox);
preferredViewportHeight = Math.min(preferredViewportHeight + categoryBox.getPreferredSize().height, categoryBox.getPreferredSize().height * MAX_PREFERRED_ROWS);
}
}
/**
* Create a new IncludeExcludePanel for a single card.
*
* @param categories categories to show inclusion for
* @param card card to show inclusion for
*/
public IncludeExcludePanel(List<CategorySpec> categories, Card card)
{
this(categories, Collections.singletonList(card));
}
/**
* Get the cards that were selected for inclusion. Ignore cards that were already included
* from the start.
*
* @return a Map containing the cards that were selected for inclusion and the new categories
* they were included in.
*/
public Map<Card, Set<CategorySpec>> getIncluded()
{
var included = new HashMap<Card, Set<CategorySpec>>();
for (Card card : cards)
for (CategorySpec category : categoryBoxes.keySet())
if (categoryBoxes.get(category).getState() == State.SELECTED && !category.includes(card))
included.compute(card, (k, v) -> {
if (v == null)
v = new HashSet<>();
v.add(category);
return v;
});
return included;
}
/**
* Get the cards that were deselected for exclusion. Ignore cards that were already excluded
* from the start.
*
* @return a Map containing the cards that were deselected for exclusion and the categories
* they should be excluded from.
*/
public Map<Card, Set<CategorySpec>> getExcluded()
{
var excluded = new HashMap<Card, Set<CategorySpec>>();
for (Card card : cards)
for (CategorySpec category : categoryBoxes.keySet())
if (categoryBoxes.get(category).getState() == State.UNSELECTED && category.includes(card))
excluded.compute(card, (k, v) -> {
if (v == null)
v = new HashSet<>();
v.add(category);
return v;
});
return excluded;
}
/**
* {@inheritDoc}
* The preferred viewport size of this IncludeExcludePanel is the size of its contents
* up to {@link IncludeExcludePanel#MAX_PREFERRED_ROWS}.
*/
@Override
public Dimension getPreferredScrollableViewportSize()
{
if (categoryBoxes.isEmpty())
return getPreferredSize();
else
{
Dimension size = getPreferredSize();
size.height = preferredViewportHeight;
return size;
}
}
}
<file_sep>package editor.gui.editor;
import java.awt.BorderLayout;
import java.awt.Dialog;
import java.awt.FlowLayout;
import java.awt.Window;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.lang.reflect.Type;
import java.text.SimpleDateFormat;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.concurrent.CancellationException;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.SwingWorker;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import editor.collection.deck.Deck;
import editor.collection.export.CardListFormat;
import editor.gui.MainFrame;
import editor.util.ExceptionConsumer;
import editor.util.ProgressInputStream;
/**
* This class controls the serialization and deserialization of a #Deck. It can
* serialize a deck, a sideboard, and a changelog, deserialize them, and import
* a deck from an external file type. Once a deck has been loaded, another one
* cannot be loaded by the same instance of this class.
*
* @author <NAME>
*/
public class DeckSerializer implements JsonDeserializer<DeckSerializer>, JsonSerializer<DeckSerializer>
{
/**
* Format to display dates for changes made to a deck.
*/
public static final SimpleDateFormat CHANGELOG_DATE = new SimpleDateFormat("MMMM d, yyyy HH:mm:ss");
/**
* Latest version of legacy save file.
*
* Change log:
* 1. Added save version number
* 2. Switched changelog from read/writeObject to read/writeUTF
* 3. Allow multiple sideboards
*/
private static final long SAVE_VERSION = 3;
/**
* This class is a worker for loading a deck. Comes with a dialog that can
* be used to show progress.
*
* @author <NAME>
*/
private class LoadWorker extends SwingWorker<Void, Integer>
{
/**
* Dialog containing the progress bar.
*/
private JDialog dialog;
/**
* File to load the deck from.
*/
private File file;
/**
* Progress bar to display progress to.
*/
private JProgressBar progressBar;
/**
* Function to perform for loading the data.
*/
private ExceptionConsumer<InputStream, Exception> background;
/**
* Create a new LoadWorker.
*
* @param f file to load the deck from
* @param parent parent window of the progress dialog
* @param bg function to perform for loading the data
*/
public LoadWorker(File f, Window parent, ExceptionConsumer<InputStream, Exception> bg)
{
file = f;
background = bg;
dialog = new JDialog(null, Dialog.ModalityType.APPLICATION_MODAL);
progressBar = new JProgressBar();
JPanel progressPanel = new JPanel(new BorderLayout(0, 5));
dialog.setContentPane(progressPanel);
progressPanel.add(new JLabel("Opening " + f.getName() + "..."), BorderLayout.NORTH);
progressPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
progressPanel.add(progressBar, BorderLayout.CENTER);
JPanel cancelPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener((e) -> cancel(false));
cancelPanel.add(cancelButton);
progressPanel.add(cancelPanel, BorderLayout.SOUTH);
dialog.pack();
dialog.setLocationRelativeTo(parent);
progressBar.setMaximum((int)file.length());
}
/**
* {@inheritDoc}
* Load the deck, updating the progress bar all the while.
*/
@Override
protected Void doInBackground() throws Exception
{
try (var pis = new ProgressInputStream(new FileInputStream(file), (a, b) -> publish(b.intValue())))
{
background.accept(pis);
}
return null;
}
@Override
protected void done()
{
dialog.dispose();
}
/**
* Execute this LoadWorker and display the progress dialog.
*/
public void executeAndDisplay()
{
super.execute();
dialog.setVisible(true);
}
@Override
protected void process(List<Integer> chunks)
{
progressBar.setValue(chunks.get(chunks.size() - 1));
}
}
/**
* Changelog of the loaded deck.
*/
private String changelog;
/**
* The loaded deck.
*/
private Deck deck;
/**
* File to load the deck from or that the deck has been loaded from.
*/
private File file;
/**
* Whether or not the deck was imported from an external file type.
*/
private boolean imported;
/**
* Sideboard for the loaded deck.
*/
private Map<String, Deck> sideboard;
/**
* Create a new, empty DeckSerializer. Use this to load a deck.
*/
public DeckSerializer()
{
reset();
}
/**
* Create a new DeckSerializer with the given deck, sideboard, and changelog
* already loaded. This cannot be used to load a deck, so use it to save one.
*/
public DeckSerializer(Deck d, Map<String, Deck> s, String c)
{
this();
changelog = c;
deck = d;
sideboard = new LinkedHashMap<>(s);
}
/**
* @return <code>true</code> if the file that was used to open the deck can
* be saved to, which is if it is defined and is of the native format for
* this editor, and <code>false</code> otherwise.
*/
public boolean canSaveFile()
{
return file != null && !imported;
}
/**
* @return the changelog for the loaded deck.
*/
public String changelog()
{
return changelog;
}
/**
* @return the loaded deck.
*/
public Deck deck()
{
return deck;
}
/**
* @return the File corresponding to the saved or loaded deck.
*/
public File file()
{
if (file == null)
throw new NoSuchElementException("file not saved or loaded");
return file;
}
/**
* Import a list of cards from a nonstandard file. If an error occurs during import,
* this serializer is reset to an empty state.
*
* @param format format of the file
* @param file file to import from
* @param parent parent window used to display errors
* @throws DeckLoadException if the deck could not be imported
* @see CardListFormat
*/
public void importList(CardListFormat format, File file, Window parent) throws DeckLoadException
{
if (!deck.isEmpty())
throw new DeckLoadException(file, "deck already loaded");
LoadWorker worker = new LoadWorker(file, parent, (s) -> {
DeckSerializer loaded = format.parse(s);
deck = loaded.deck;
sideboard = loaded.sideboard;
imported = true;
});
worker.executeAndDisplay();
try
{
worker.get();
}
catch (CancellationException e)
{
reset();
}
catch (Exception e)
{
reset();
throw new DeckLoadException(file, e);
}
}
/**
* Import a deck from a legacy file type. If an error occurs during importing
* the deck, this serializer is reset to an empty state.
*
* @param f File to load from
* @param parent parent window used to display errors
* @throws DeckLoadException if there is already a loaded deck
*/
public void importLegacy(File f, Window parent) throws DeckLoadException, CancellationException
{
if (!deck.isEmpty())
throw new DeckLoadException(file, "deck already loaded");
long version;
try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(f)))
{
version = ois.readLong();
}
catch (IOException e)
{
reset();
throw new DeckLoadException(f, e);
}
LoadWorker worker = new LoadWorker(f, parent, (s) -> {
// Assume that high bits in the first 64 bits are used by the serialization of a Deck
// object and that SAVE_VERSION will never be that high.
long v = version > SAVE_VERSION ? 0 : version;
try (ObjectInputStream ois = new ObjectInputStream(s))
{
if (v > 0)
ois.readLong(); // Throw out first 64 bits that have already been read
deck = editor.serialization.legacy.DeckDeserializer.readExternal(ois);
if (v <= 2)
sideboard.put("Sideboard", editor.serialization.legacy.DeckDeserializer.readExternal(ois));
else
{
int boards = ois.readInt();
for (int i = 0; i < boards; i++)
{
String name = ois.readUTF();
sideboard.put(name, editor.serialization.legacy.DeckDeserializer.readExternal(ois));
}
}
changelog = v < 2 ? (String)ois.readObject() : ois.readUTF();
}
});
worker.executeAndDisplay();
try
{
worker.get();
}
catch (CancellationException e)
{
reset();
}
catch (Exception e)
{
reset();
throw new DeckLoadException(f, e);
}
imported = true;
}
/**
* Load a deck from a JSON deck file. If an error occurs during loading the deck,
* this serializer is reset to an empty state.
*
* @param f File to load from
* @param parent parent window used to display errors
* @throws DeckLoadException if there is already a loaded deck
*/
public void load(File f, Window parent) throws DeckLoadException, CancellationException
{
if (!deck.isEmpty())
throw new DeckLoadException(file, "deck already loaded");
LoadWorker worker = new LoadWorker(f, parent, (s) -> {
try (var bf = new BufferedReader(new InputStreamReader(s)))
{
DeckSerializer loaded = MainFrame.SERIALIZER.fromJson(bf, DeckSerializer.class);
deck = loaded.deck;
sideboard = loaded.sideboard;
changelog = loaded.changelog;
}
});
worker.executeAndDisplay();
try
{
worker.get();
}
catch (CancellationException e)
{
reset();
}
catch (Exception e)
{
reset();
throw new DeckLoadException(f, e);
}
file = f;
}
/**
* Clear the contents of this DeckSerializer so it can be reused.
*/
private void reset()
{
changelog = "";
deck = new Deck();
file = null;
sideboard = new LinkedHashMap<>();
imported = false;
}
/**
* Save the deck to the given file.
*
* @param f file to save to
* @throws IOException if the file could not be saved
*/
public void save(File f) throws IOException
{
try (FileWriter writer = new FileWriter(f))
{
writer.write(MainFrame.SERIALIZER.toJson(this));
file = f;
}
}
/**
* @return the sideboards of the loaded deck.
*/
public Map<String, Deck> sideboards()
{
return sideboard;
}
@Override
public JsonElement serialize(DeckSerializer src, Type typeOfSrc, JsonSerializationContext context)
{
JsonObject json = new JsonObject();
json.add("main", context.serialize(src.deck));
JsonArray side = new JsonArray();
for (String n : src.sideboard.keySet())
{
JsonObject board = context.serialize(src.sideboard.get(n)).getAsJsonObject();
board.addProperty("name", n);
side.add(board);
}
json.add("sideboards", side);
json.addProperty("changelog", src.changelog);
return json;
}
@Override
public DeckSerializer deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{
JsonObject obj = json.getAsJsonObject();
Deck deck = context.deserialize(obj.get("main"), Deck.class);
var sideboard = new LinkedHashMap<String, Deck>();
for (JsonElement entry : obj.get("sideboards").getAsJsonArray())
sideboard.put(entry.getAsJsonObject().get("name").getAsString(), context.deserialize(entry, Deck.class));
String changelog = obj.get("changelog").getAsString();
return new DeckSerializer(deck, sideboard, changelog);
}
}<file_sep>package editor.filter.leaf.options.single;
import java.util.HashSet;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import editor.database.attributes.CardAttribute;
import editor.database.attributes.Rarity;
import editor.database.card.Card;
import editor.filter.Filter;
/**
* This class represents a filter that groups cards by rarity.
*
* @author <NAME>
*/
public class RarityFilter extends SingletonOptionsFilter<Rarity>
{
/**
* Create a new RarityFilter.
*/
public RarityFilter()
{
super(CardAttribute.RARITY, Card::rarity);
}
@Override
public Filter copy()
{
RarityFilter filter = (RarityFilter)CardAttribute.createFilter(CardAttribute.RARITY);
filter.contain = contain;
filter.selected = new HashSet<>(selected);
return filter;
}
@Override
protected Rarity convertFromString(String str)
{
return Rarity.parseRarity(str);
}
@Override
protected JsonElement convertToJson(Rarity item)
{
return new JsonPrimitive(item.toString());
}
@Override
protected Rarity convertFromJson(JsonElement item)
{
return Rarity.parseRarity(item.getAsString());
}
}<file_sep>package editor.gui.filter.editor;
import javax.swing.BoxLayout;
import javax.swing.JTextField;
import editor.database.attributes.CardAttribute;
import editor.filter.Filter;
import editor.filter.leaf.FilterLeaf;
import editor.filter.leaf.TypeLineFilter;
import editor.gui.generic.ComboBoxPanel;
import editor.util.Containment;
/**
* This class represents a panel that corresponds to a filter that
* groups cards by their entire type lines.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class TypeLineFilterPanel extends FilterEditorPanel<TypeLineFilter>
{
/**
* Combo box for editing set containment.
*/
private ComboBoxPanel<Containment> contain;
/**
* Text field for editing the type line to match.
*/
private JTextField line;
/**
* Create a new TypeLineFilterPanel.
*/
public TypeLineFilterPanel()
{
super();
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
contain = new ComboBoxPanel<>(Containment.values());
add(contain);
line = new JTextField();
add(line);
}
/**
* Create a new TypeLineFilterPanel, using the given TypeLineFilter
* to initialize its fields.
*
* @param f filter to use for initialization
*/
public TypeLineFilterPanel(TypeLineFilter f)
{
this();
setContents(f);
}
@Override
public Filter filter()
{
TypeLineFilter filter = (TypeLineFilter)CardAttribute.createFilter(CardAttribute.TYPE_LINE);
filter.contain = contain.getSelectedItem();
filter.line = line.getText();
return filter;
}
@Override
public void setContents(FilterLeaf<?> filter) throws IllegalArgumentException
{
if (filter instanceof TypeLineFilter)
setContents((TypeLineFilter)filter);
else
throw new IllegalArgumentException("Illegal type line filter " + filter.type());
}
@Override
public void setContents(TypeLineFilter filter)
{
contain.setSelectedItem(filter.contain);
line.setText(filter.line);
}
}
<file_sep>package editor.gui.ccp.data;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import editor.database.card.Card;
import editor.gui.editor.EditorFrame;
/**
* This class represents data being transferred via drag and drop or cut/copy/paste
* between a CardList and another object. CardLists only supports importing card or entry
* data flavors, but can export Strings as well.
*
* @author <NAME>
*/
public class EntryTransferData extends CardTransferData
{
/** Cards being transferred. */
public final Map<Card, Integer> entries;
/** Frame containing the deck being transferred from. */
public final EditorFrame source;
/** Frame containing the deck being transferred to. */
public EditorFrame target;
/** ID of the list in the deck being transferred from. */
public final int from;
/** ID of the list int he deck being transferred to. */
public int to;
/**
* Create a new EntryTransferData that transfers the given cards from the given
* list in the given frame.
*
* @param e frame containing the deck to transfer cards from
* @param id ID of the list to transfer cards from
* @param cards cards and counts to transfer
*/
public EntryTransferData(EditorFrame e, int id, Map<Card, Integer> cards)
{
super(cards.keySet().stream().sorted(Card::compareName).toArray(Card[]::new));
this.entries = Collections.unmodifiableMap(cards);
source = e;
target = null;
from = id;
to = -1;
}
@Override
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
{
if (flavor.equals(DataFlavors.entryFlavor))
return this;
else
return super.getTransferData(flavor);
}
@Override
public DataFlavor[] getTransferDataFlavors()
{
DataFlavor[] superFlavors = super.getTransferDataFlavors();
DataFlavor[] flavors = new DataFlavor[superFlavors.length + 1];
flavors[0] = DataFlavors.entryFlavor;
for (int i = 0; i < superFlavors.length; i++)
flavors[i + 1] = superFlavors[i];
return flavors;
}
@Override
public boolean isDataFlavorSupported(DataFlavor flavor)
{
return Arrays.asList(getTransferDataFlavors()).contains(flavor);
}
}<file_sep>package editor.gui.settings;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.StringJoiner;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JColorChooser;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JSpinner;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JTree;
import javax.swing.SpinnerNumberModel;
import javax.swing.SwingConstants;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;
import editor.collection.deck.CategorySpec;
import editor.database.FormatConstraints;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.database.version.DatabaseVersion;
import editor.database.version.UpdateFrequency;
import editor.gui.MainFrame;
import editor.gui.display.CardTable;
import editor.gui.display.CategoryList;
import editor.gui.editor.CalculateHandPanel;
import editor.gui.editor.CategoryEditorPanel;
import editor.gui.generic.ScrollablePanel;
import editor.gui.generic.VerticalButtonList;
import editor.util.UnicodeSymbols;
/**
* This class is a dialog that allows the user to change various properties about
* the program.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class SettingsDialog extends JDialog
{
/**
* Settings structure containing global settings.
*/
private static Settings settings;
/**
* List of the latest warnings from the last time the inventory was loaded.
*/
private static List<String> inventoryWarnings;
/**
* Location to store settings and default location to store other data.
*/
public static final Path EDITOR_HOME = Path.of(System.getProperty("user.home"), ".mtgworkstation");
/**
* Pattern to match when parsing an ARGB color from a string to a @link{java.awt.Color}
*/
public static final Pattern COLOR_PATTERN = Pattern.compile("^#([0-9a-fA-F]{2})?([0-9a-fA-F]{6})$");
/**
* Number of cards in a playset.
*/
public static final int PLAYSET_SIZE = 4;
/**
* File containing serialized settings.
*/
public static final Path PROPERTIES_FILE = EDITOR_HOME.resolve("settings.json");
/**
* List of possible sites to download card images from.
*/
public static final List<String> IMAGE_SOURCES = List.of("Scryfall", "Gatherer");
/**
* Create the preview panel for a color chooser that customizes the stripe color
* of a #CardTable.
*
* @param chooser #JColorChooser to create the new preview panel for
*/
private static void createStripeChooserPreview(JColorChooser chooser)
{
Box preview = new Box(BoxLayout.Y_AXIS);
TableModel model = new AbstractTableModel()
{
@Override
public int getColumnCount()
{
return 4;
}
@Override
public int getRowCount()
{
return 4;
}
@Override
public Object getValueAt(int rowIndex, int columnIndex)
{
return "Sample Text";
}
};
CardTable table = new CardTable(model);
table.setStripeColor(chooser.getColor());
preview.add(table);
chooser.getSelectionModel().addChangeListener((e) -> table.setStripeColor(chooser.getColor()));
chooser.setPreviewPanel(preview);
}
/**
* If the given file is contained the current directory, make it a relative file to
* the current working directory. If it is the current working directory, make it
* "." Otherwise, keep it what it is.
*
* @param f #File to relativize
* @return relativized version of the given file.
*/
private static File relativize(File f)
{
Path p = new File(".").getAbsoluteFile().getParentFile().toPath();
Path fp = f.getAbsoluteFile().toPath();
if (fp.startsWith(p))
{
fp = p.relativize(fp);
if (fp.toString().isEmpty())
f = new File(".");
else
f = fp.toFile();
}
return f;
}
/**
* Add a new preset category.
*
* @param category specification of the preset category to add
*/
public static void addPresetCategory(CategorySpec category)
{
settings = new SettingsBuilder(settings).addPresetCategory(category).build();
}
/**
* Load global settings from the settings file. This does not affect card tags.
*
* @throws IOException if an error occurred during loading
*/
public static void load() throws IOException
{
if (Files.exists(PROPERTIES_FILE))
settings = MainFrame.SERIALIZER.fromJson(String.join("\n", Files.readAllLines(PROPERTIES_FILE)), Settings.class);
else
resetDefaultSettings();
}
/**
* Set program settings back to their default values. This does not change card tags.
*/
public static void resetDefaultSettings()
{
settings = new SettingsBuilder().defaults().build();
}
/**
* Save preferences to file whose name is specified by the value of {@link #PROPERTIES_FILE}.
* Also save tags to the separate tags file.
*
* @throws IOException if an exception occurred during saving.
*/
public static void save() throws IOException
{
if (!Card.tags.isEmpty())
{
Files.createDirectories(Path.of(settings.inventory.tags).getParent());
Files.writeString(Path.of(settings.inventory.tags), MainFrame.SERIALIZER.toJson(Card.tags.entrySet().stream().collect(Collectors.toMap((e) -> e.getKey().multiverseid().get(0), Map.Entry::getValue))));
}
else
Files.deleteIfExists(Path.of(settings.inventory.tags));
Files.writeString(PROPERTIES_FILE, MainFrame.SERIALIZER.toJson(settings));
}
/**
* Update the recently-edited files.
*
* @param files list of recently-edited files
*/
public static void setRecents(List<String> files)
{
settings = new SettingsBuilder(settings).recentsFiles(files).build();
}
/**
* Update the directory to start the file chooser in.
*
* @param dir starting directory for file chooser
*/
public static void setStartingDir(String dir)
{
settings = new SettingsBuilder(settings).cwd(dir).build();
}
/**
* @return The global settings structure.
* @see Settings
*/
public static Settings settings()
{
return settings;
}
/**
* Set the version of the inventory to know when it is out of date.
*
* @param version new version of the inventory
*/
public static void setInventoryVersion(DatabaseVersion version)
{
settings = new SettingsBuilder(settings).inventoryVersion(version).build();
}
/**
* Set whether or not to show warnings after finishing loading the inventory.
*
* @param warn whether or not to show warnings
*/
public static void setShowInventoryWarnings(boolean warn)
{
settings = new SettingsBuilder(settings).inventoryWarn(warn).build();
}
public static void setInventoryWarnings(List<String> warnings)
{
inventoryWarnings = new ArrayList<>(warnings);
}
/**
* List of preset categories.
*/
private CategoryList categoriesList;
/**
* Check boxes indicating which columns to show in editor tables.
*/
private Map<CardAttribute, JCheckBox> editorColumnCheckBoxes;
/**
* Color chooser for the color of editor tables' alternate stripes.
*/
private JColorChooser editorStripeColor;
/**
* Spinner allowing setting the number of rows to display in whitelists/blacklists
* in the category editor.
*/
private JSpinner explicitsSpinner;
/**
* Color chooser for the background of card images in the hand tab.
*/
private JColorChooser handBGColor;
/**
* Check boxes indicating which columns to show in the inventory table.
*/
private Map<CardAttribute, JCheckBox> inventoryColumnCheckBoxes;
/**
* Text field controlling the directory to store the inventory in once it is downloaded.
*/
private JTextField inventoryDirField;
/**
* Text field controlling the name of the file to be downloaded.
*/
private JTextField inventoryFileField;
/**
* Text field controlling the web site that the inventory should be downloaded from.
*/
private JTextField inventorySiteField;
/**
* Color chooser for the color of alternate inventory table stripes.
*/
private JColorChooser inventoryStripeColor;
/**
* Button indicating the rounding mode for the expected counts tab in the editor.
*/
private List<JRadioButton> modeButtons;
/**
* MainFrame showing the dialog.
*/
private MainFrame parent;
/**
* Spinner for the number of recent files to save.
*/
private JSpinner recentSpinner;
/**
* Spinner allowing setting the maximum number of rows for category panels.
*/
private JSpinner rowsSpinner;
/**
* Color chooser for the background of the card scan tab.
*/
private JColorChooser scanBGChooser;
/**
* Text field containing the directory to look for card scans in.
*/
private JTextField scansDirField;
/**
* Number of cards to draw in the starting hand.
*/
private JSpinner startingSizeSpinner;
/**
* Check box indicating whether or not warnings after loading cards should be suppressed.
*/
private JCheckBox suppressCheckBox;
/**
* Combo box indicating how often to download updates.
*/
private JComboBox<UpdateFrequency> updateBox;
/**
* Check box indicating whether or not to check for a commander by default in legality
* check.
*/
private JCheckBox cmdrCheck;
/**
* Radio button indicting to check only the main deck by default for a commander.
*/
private JRadioButton cmdrMainDeck;
/**
* Radio button indicating to check all lists by default for a commander.
*/
private JRadioButton cmdrAllLists;
/**
* Radio button indicating to check a specific list, if it exists, for a commander
* by default.
*/
private JRadioButton cmdrList;
/**
* Default name of the list to look in if checking only a single one or commander.
*/
private JTextField cmdrListName;
/**
* Check box indicating whether or not to check sideboard size by default in
* legality check.
*/
private JCheckBox sideCheck;
/**
* Text field specifying the default name of the list to use as sideboard if
* present.
*/
private JTextField sideField;
/**
* Combo box showing possible sites to download cards from.
*/
private JComboBox<String> imgSourceBox;
/**
* Create a new SettingsDialog.
*
* @param owner parent of the dialog
*/
public SettingsDialog(MainFrame owner)
{
super(owner, "Preferences", Dialog.ModalityType.APPLICATION_MODAL);
setResizable(false);
parent = owner;
// Tree
DefaultMutableTreeNode root = new DefaultMutableTreeNode("Preferences");
DefaultMutableTreeNode inventoryNode = new DefaultMutableTreeNode("Inventory");
root.add(inventoryNode);
DefaultMutableTreeNode inventoryAppearanceNode = new DefaultMutableTreeNode("Appearance");
inventoryNode.add(inventoryAppearanceNode);
DefaultMutableTreeNode editorNode = new DefaultMutableTreeNode("Editor");
DefaultMutableTreeNode editorCategoriesNode = new DefaultMutableTreeNode("Preset Categories");
editorNode.add(editorCategoriesNode);
DefaultMutableTreeNode editorAppearanceNode = new DefaultMutableTreeNode("Appearance");
editorNode.add(editorAppearanceNode);
DefaultMutableTreeNode handAppearanceNode = new DefaultMutableTreeNode("Sample Hand");
editorNode.add(handAppearanceNode);
DefaultMutableTreeNode formatsNode = new DefaultMutableTreeNode("Formats");
editorNode.add(formatsNode);
root.add(editorNode);
// Settings panels
JPanel settingsPanel = new JPanel();
settingsPanel.setLayout(new CardLayout());
add(settingsPanel, BorderLayout.CENTER);
// Inventory paths
Box inventoryPanel = new Box(BoxLayout.Y_AXIS);
inventoryPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
settingsPanel.add(inventoryPanel, new TreePath(inventoryNode.getPath()).toString());
// Inventory site
Box inventorySitePanel = new Box(BoxLayout.X_AXIS);
inventorySitePanel.add(new JLabel("Inventory Site:"));
JLabel siteStarLabel = new JLabel("*");
siteStarLabel.setForeground(Color.RED);
inventorySitePanel.add(siteStarLabel);
inventorySitePanel.add(Box.createHorizontalStrut(5));
inventorySiteField = new JTextField(15);
inventorySitePanel.add(inventorySiteField);
inventorySitePanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, inventorySitePanel.getPreferredSize().height));
inventoryPanel.add(inventorySitePanel);
inventoryPanel.add(Box.createVerticalStrut(5));
// Inventory file name
Box inventoryFilePanel = new Box(BoxLayout.X_AXIS);
inventoryFilePanel.add(new JLabel("Inventory File:"));
JLabel fileStarLabel = new JLabel("*");
fileStarLabel.setForeground(Color.RED);
inventoryFilePanel.add(fileStarLabel);
inventoryFilePanel.add(Box.createHorizontalStrut(5));
inventoryFileField = new JTextField(10);
inventoryFilePanel.add(inventoryFileField);
inventoryFilePanel.add(Box.createHorizontalStrut(5));
JLabel currentVersionLabel = new JLabel();
currentVersionLabel.setFont(new Font(currentVersionLabel.getFont().getFontName(), Font.ITALIC, currentVersionLabel.getFont().getSize()));
inventoryFilePanel.add(currentVersionLabel);
inventoryFilePanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, inventoryFilePanel.getPreferredSize().height));
inventoryPanel.add(inventoryFilePanel);
inventoryPanel.add(Box.createVerticalStrut(5));
// Inventory file directory
Box inventoryDirPanel = new Box(BoxLayout.X_AXIS);
inventoryDirPanel.add(new JLabel("Inventory File Location:"));
inventoryDirPanel.add(Box.createHorizontalStrut(5));
inventoryDirField = new JTextField(25);
JFileChooser inventoryChooser = new JFileChooser();
inventoryChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
inventoryChooser.setAcceptAllFileFilterUsed(false);
inventoryDirPanel.add(inventoryDirField);
inventoryDirPanel.add(Box.createHorizontalStrut(5));
JButton inventoryDirButton = new JButton(String.valueOf(UnicodeSymbols.ELLIPSIS));
inventoryDirButton.addActionListener((e) -> {
if (inventoryChooser.showDialog(null, "Select Folder") == JFileChooser.APPROVE_OPTION)
{
File f = relativize(inventoryChooser.getSelectedFile());
inventoryDirField.setText(f.getPath());
inventoryChooser.setCurrentDirectory(f);
}
});
inventoryDirPanel.add(inventoryDirButton);
inventoryDirPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, inventoryDirPanel.getPreferredSize().height));
inventoryPanel.add(inventoryDirPanel);
inventoryPanel.add(Box.createVerticalStrut(5));
// Card scans directory
Box scansDirPanel = new Box(BoxLayout.X_AXIS);
scansDirPanel.add(new JLabel("Card Images Location:"));
scansDirPanel.add(Box.createHorizontalStrut(5));
scansDirField = new JTextField(25);
JFileChooser scansChooser = new JFileChooser();
scansChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
scansChooser.setAcceptAllFileFilterUsed(false);
scansDirPanel.add(scansDirField);
scansDirPanel.add(Box.createHorizontalStrut(5));
JButton scansDirButton = new JButton(String.valueOf(UnicodeSymbols.ELLIPSIS));
scansDirButton.addActionListener((e) -> {
if (scansChooser.showDialog(null, "Select Folder") == JFileChooser.APPROVE_OPTION)
{
File f = relativize(scansChooser.getSelectedFile());
scansDirField.setText(f.getPath());
scansChooser.setCurrentDirectory(f);
}
});
scansDirPanel.add(scansDirButton);
scansDirPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, scansDirPanel.getPreferredSize().height));
inventoryPanel.add(scansDirPanel);
inventoryPanel.add(Box.createVerticalStrut(5));
// Card images source
JPanel imgSourcePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
imgSourcePanel.add(new JLabel("Download card images from:"));
imgSourcePanel.add(Box.createHorizontalStrut(5));
imgSourcePanel.add(imgSourceBox = new JComboBox<>(IMAGE_SOURCES.toArray(String[]::new)));
imgSourcePanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, imgSourcePanel.getPreferredSize().height));
inventoryPanel.add(imgSourcePanel);
inventoryPanel.add(Box.createVerticalStrut(5));
// Check for update on startup
JPanel updatePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
updatePanel.add(new JLabel("Update inventory on:"));
updatePanel.add(Box.createHorizontalStrut(5));
updateBox = new JComboBox<>(UpdateFrequency.values());
updatePanel.add(updateBox);
updatePanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, updatePanel.getPreferredSize().height));
inventoryPanel.add(updatePanel);
inventoryPanel.add(Box.createVerticalStrut(5));
// Show warnings from loading inventory
JPanel suppressPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
suppressCheckBox = new JCheckBox("Show warnings after loading inventory");
suppressPanel.add(suppressCheckBox);
suppressPanel.add(Box.createHorizontalStrut(5));
JButton viewWarningsButton = new JButton("View Warnings");
viewWarningsButton.addActionListener((e) -> {
StringJoiner join = new StringJoiner("<li>", "<html>", "</ul></html>");
join.add("Warnings from last inventory load:<ul style=\"margin-top:0;margin-left:20pt\">");
for (String warning : inventoryWarnings)
join.add(warning);
JOptionPane.showMessageDialog(this, join.toString(), "Inventory Warnings", JOptionPane.WARNING_MESSAGE);
});
suppressPanel.add(viewWarningsButton);
suppressPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, suppressPanel.getPreferredSize().height));
inventoryPanel.add(suppressPanel);
inventoryPanel.add(Box.createVerticalGlue());
// Warning panel
JPanel pathWarningPanel = new JPanel(new BorderLayout());
JLabel pathWarningLabel = new JLabel("*Warning: Changing these settings may break functionality");
pathWarningLabel.setFont(new Font(pathWarningLabel.getFont().getFontName(), Font.ITALIC, pathWarningLabel.getFont().getSize()));
pathWarningLabel.setForeground(Color.RED);
pathWarningPanel.add(pathWarningLabel);
pathWarningPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, pathWarningLabel.getPreferredSize().height));
inventoryPanel.add(pathWarningPanel);
// Inventory appearance
ScrollablePanel inventoryAppearancePanel = new ScrollablePanel(ScrollablePanel.TRACK_WIDTH);
inventoryAppearancePanel.setLayout(new BoxLayout(inventoryAppearancePanel, BoxLayout.Y_AXIS));
JScrollPane inventoryAppearanceScroll = new JScrollPane(inventoryAppearancePanel);
inventoryAppearanceScroll.setBorder(BorderFactory.createEmptyBorder());
settingsPanel.add(inventoryAppearanceScroll, new TreePath(inventoryAppearanceNode.getPath()).toString());
// Columns
JPanel inventoryColumnsPanel = new JPanel(new GridLayout(0, 5));
inventoryColumnsPanel.setBorder(BorderFactory.createTitledBorder("Columns"));
inventoryColumnCheckBoxes = new HashMap<>();
var inventoryAttributes = Arrays.stream(CardAttribute.inventoryValues()).sorted((a, b) -> {
return a.toString().compareTo(b.toString());
}).collect(Collectors.toList());
for (CardAttribute characteristic : inventoryAttributes)
{
JCheckBox checkBox = new JCheckBox(characteristic.toString());
inventoryColumnCheckBoxes.put(characteristic, checkBox);
inventoryColumnsPanel.add(checkBox);
}
inventoryAppearancePanel.add(inventoryColumnsPanel);
// Stripe color
JPanel inventoryColorPanel = new JPanel(new BorderLayout());
inventoryColorPanel.setBorder(BorderFactory.createTitledBorder("Stripe Color"));
inventoryStripeColor = new JColorChooser();
createStripeChooserPreview(inventoryStripeColor);
inventoryColorPanel.add(inventoryStripeColor);
inventoryAppearancePanel.add(inventoryColorPanel);
// Card image background color
JPanel scanBGPanel = new JPanel(new BorderLayout());
scanBGPanel.setBorder(BorderFactory.createTitledBorder("Image Background Color"));
scanBGChooser = new JColorChooser();
scanBGChooser.getSelectionModel().addChangeListener((e) -> parent.setImageBackground(scanBGChooser.getColor()));
scanBGPanel.add(scanBGChooser);
inventoryAppearancePanel.add(scanBGPanel);
// Editor
Box editorPanel = new Box(BoxLayout.Y_AXIS);
editorPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
settingsPanel.add(editorPanel, new TreePath(editorNode.getPath()).toString());
// Recent count
Box recentPanel = new Box(BoxLayout.X_AXIS);
recentPanel.add(new JLabel("Recent file count:"));
recentPanel.add(Box.createHorizontalStrut(5));
recentSpinner = new JSpinner(new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1));
recentPanel.add(recentSpinner);
recentPanel.add(Box.createHorizontalStrut(5));
JLabel recentInfoLabel = new JLabel("(Changes will not be visible until program restart)");
recentInfoLabel.setFont(new Font(recentInfoLabel.getFont().getFontName(), Font.ITALIC, recentInfoLabel.getFont().getSize()));
recentPanel.add(recentInfoLabel);
recentPanel.setMaximumSize(new Dimension(recentPanel.getPreferredSize().width + 10, recentPanel.getPreferredSize().height));
recentPanel.setAlignmentX(LEFT_ALIGNMENT);
editorPanel.add(recentPanel);
editorPanel.add(Box.createVerticalStrut(5));
// Whitelist and blacklist rows to show
Box explicitsPanel = new Box(BoxLayout.X_AXIS);
explicitsPanel.add(new JLabel("Blacklist/Whitelist rows to display:"));
explicitsPanel.add(Box.createHorizontalStrut(5));
explicitsSpinner = new JSpinner(new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1));
explicitsPanel.add(explicitsSpinner);
explicitsPanel.setMaximumSize(new Dimension(explicitsPanel.getPreferredSize().width + 5, explicitsPanel.getPreferredSize().height));
explicitsPanel.setAlignmentX(LEFT_ALIGNMENT);
editorPanel.add(explicitsPanel);
editorPanel.add(Box.createVerticalStrut(5));
editorPanel.add(Box.createVerticalGlue());
// Editor categories
JPanel categoriesPanel = new JPanel();
categoriesPanel.setLayout(new BorderLayout(5, 0));
categoriesPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
settingsPanel.add(categoriesPanel, new TreePath(editorCategoriesNode.getPath()).toString());
categoriesList = new CategoryList("<html><i><Double-click to add or edit></i></html>");
categoriesPanel.add(new JScrollPane(categoriesList), BorderLayout.CENTER);
// Category modification buttons
VerticalButtonList categoryModPanel = new VerticalButtonList("+", String.valueOf(UnicodeSymbols.ELLIPSIS), String.valueOf(UnicodeSymbols.MINUS));
categoryModPanel.get("+").addActionListener((e) -> CategoryEditorPanel.showCategoryEditor(this).ifPresent(categoriesList::addCategory));
categoryModPanel.get(String.valueOf(UnicodeSymbols.ELLIPSIS)).addActionListener((e) -> {
if (categoriesList.getSelectedIndex() >= 0)
{
CategoryEditorPanel.showCategoryEditor(this, Optional.of(categoriesList.getCategoryAt(categoriesList.getSelectedIndex()))).ifPresent((s) -> {
categoriesList.setCategoryAt(categoriesList.getSelectedIndex(), s);
});
}
});
categoryModPanel.get(String.valueOf(UnicodeSymbols.MINUS)).addActionListener((e) -> {
if (categoriesList.getSelectedIndex() >= 0)
categoriesList.removeCategoryAt(categoriesList.getSelectedIndex());
});
categoriesPanel.add(categoryModPanel, BorderLayout.EAST);
// Editor appearance
Box editorAppearancePanel = new Box(BoxLayout.Y_AXIS);
settingsPanel.add(editorAppearancePanel, new TreePath(editorAppearanceNode.getPath()).toString());
// Editor category rows
Box rowsPanel = new Box(BoxLayout.X_AXIS);
rowsPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 0));
rowsPanel.add(new JLabel("Initial displayed rows in categories:"));
rowsPanel.add(Box.createHorizontalStrut(5));
rowsSpinner = new JSpinner(new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1));
rowsPanel.add(rowsSpinner);
rowsPanel.setMaximumSize(new Dimension(rowsPanel.getPreferredSize().width + 5, rowsPanel.getPreferredSize().height));
rowsPanel.setAlignmentX(LEFT_ALIGNMENT);
editorAppearancePanel.add(rowsPanel);
// Editor table columns
JPanel editorColumnsPanel = new JPanel(new GridLayout(0, 5));
editorColumnsPanel.setBorder(BorderFactory.createTitledBorder("Columns"));
editorColumnCheckBoxes = new HashMap<>();
var editorAttributes = Arrays.stream(CardAttribute.displayableValues()).sorted((a, b) -> {
return a.toString().compareTo(b.toString());
}).collect(Collectors.toList());
for (CardAttribute characteristic : editorAttributes)
{
JCheckBox checkBox = new JCheckBox(characteristic.toString());
editorColumnCheckBoxes.put(characteristic, checkBox);
editorColumnsPanel.add(checkBox);
}
editorColumnsPanel.setAlignmentX(LEFT_ALIGNMENT);
editorAppearancePanel.add(editorColumnsPanel);
// Editor table stripe color
JPanel editorColorPanel = new JPanel(new BorderLayout());
editorColorPanel.setBorder(BorderFactory.createTitledBorder("Stripe Color"));
editorStripeColor = new JColorChooser();
createStripeChooserPreview(editorStripeColor);
editorColorPanel.add(editorStripeColor);
editorColorPanel.setAlignmentX(LEFT_ALIGNMENT);
editorAppearancePanel.add(editorColorPanel);
editorAppearancePanel.add(Box.createVerticalGlue());
// Sample hand
ScrollablePanel sampleHandPanel = new ScrollablePanel(ScrollablePanel.TRACK_WIDTH);
sampleHandPanel.setLayout(new BoxLayout(sampleHandPanel, BoxLayout.Y_AXIS));
JScrollPane sampleHandScroll = new JScrollPane(sampleHandPanel);
sampleHandScroll.setBorder(BorderFactory.createEmptyBorder());
settingsPanel.add(sampleHandScroll, new TreePath(handAppearanceNode.getPath()).toString());
sampleHandPanel.add(Box.createVerticalStrut(5));
// Starting Size
Box startingSizePanel = new Box(BoxLayout.X_AXIS);
startingSizePanel.add(Box.createHorizontalStrut(5));
startingSizePanel.add(new JLabel("Starting Size:"));
startingSizePanel.add(Box.createHorizontalStrut(5));
startingSizeSpinner = new JSpinner(new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1));
startingSizePanel.add(startingSizeSpinner);
startingSizePanel.add(Box.createHorizontalGlue());
startingSizePanel.setMaximumSize(new Dimension(startingSizePanel.getPreferredSize().width + 5, startingSizePanel.getPreferredSize().height));
startingSizePanel.setAlignmentX(LEFT_ALIGNMENT);
sampleHandPanel.add(startingSizePanel);
sampleHandPanel.add(Box.createVerticalStrut(5));
// Expected counts round mode
Box expectedRoundPanel = new Box(BoxLayout.X_AXIS);
expectedRoundPanel.add(Box.createHorizontalStrut(5));
expectedRoundPanel.add(new JLabel("Expected Category Count Round Mode:"));
expectedRoundPanel.add(Box.createHorizontalStrut(5));
ButtonGroup roundGroup = new ButtonGroup();
modeButtons = new ArrayList<>();
for (String mode : CalculateHandPanel.ROUND_MODE.keySet().stream().sorted().collect(Collectors.toList()))
{
JRadioButton modeButton = new JRadioButton(mode);
roundGroup.add(modeButton);
expectedRoundPanel.add(modeButton);
expectedRoundPanel.add(Box.createHorizontalStrut(5));
modeButtons.add(modeButton);
}
expectedRoundPanel.setMaximumSize(expectedRoundPanel.getPreferredSize());
expectedRoundPanel.setAlignmentX(LEFT_ALIGNMENT);
sampleHandPanel.add(expectedRoundPanel);
sampleHandPanel.add(Box.createVerticalStrut(5));
// Sample hand background color
JPanel handBGColorPanel = new JPanel(new BorderLayout());
handBGColorPanel.setBorder(BorderFactory.createTitledBorder("Background Color"));
handBGColor = new JColorChooser();
handBGColor.getSelectionModel().addChangeListener((e) -> parent.setHandBackground(handBGColor.getColor()));
handBGColorPanel.add(handBGColor);
handBGColorPanel.setAlignmentX(LEFT_ALIGNMENT);
sampleHandPanel.add(handBGColorPanel);
// Format constraints
Box formatsPanel = Box.createVerticalBox();
settingsPanel.add(formatsPanel, new TreePath(formatsNode.getPath()).toString());
// Formats table
JTable formatsTable = new JTable(new DefaultTableModel(FormatConstraints.FORMAT_NAMES.stream()
.map((f) -> FormatConstraints.CONSTRAINTS.get(f).toArray(f))
.toArray(Object[][]::new), FormatConstraints.DATA_NAMES.toArray(String[]::new))
{
@Override
public Class<?> getColumnClass(int column) { return FormatConstraints.CLASSES.get(column); }
@Override
public boolean isCellEditable(int rowIndex, int columnIndex) { return false; }
});
formatsTable.setFillsViewportHeight(true);
JScrollPane formatsPane = new JScrollPane(formatsTable);
formatsPane.setAlignmentX(LEFT_ALIGNMENT);
formatsPanel.add(formatsPane);
// Default options for legality panel
Box legalityDefaultsBox = Box.createHorizontalBox();
legalityDefaultsBox.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
cmdrCheck = new JCheckBox("");
legalityDefaultsBox.add(cmdrCheck);
ButtonGroup cmdrGroup = new ButtonGroup();
cmdrMainDeck = new JRadioButton("Main Deck");
cmdrGroup.add(cmdrMainDeck);
legalityDefaultsBox.add(cmdrMainDeck);
cmdrAllLists = new JRadioButton("All Lists");
cmdrGroup.add(cmdrAllLists);
legalityDefaultsBox.add(cmdrAllLists);
cmdrList = new JRadioButton();
cmdrGroup.add(cmdrList);
legalityDefaultsBox.add(cmdrList);
cmdrListName = new JTextField();
legalityDefaultsBox.add(cmdrListName);
legalityDefaultsBox.setMaximumSize(new Dimension(Integer.MAX_VALUE, legalityDefaultsBox.getPreferredSize().height));
legalityDefaultsBox.setAlignmentX(LEFT_ALIGNMENT);
formatsPanel.add(legalityDefaultsBox);
Box sideboardBox = Box.createHorizontalBox();
sideboardBox.setBorder(BorderFactory.createEmptyBorder(0, 2, 2, 2));
sideCheck = new JCheckBox("");
sideboardBox.add(sideCheck);
sideField = new JTextField();
sideboardBox.add(sideField);
sideboardBox.setAlignmentX(LEFT_ALIGNMENT);
formatsPanel.add(sideboardBox);
formatsPanel.add(Box.createVerticalGlue());
cmdrCheck.addActionListener((e) -> {
cmdrCheck.setText(cmdrCheck.isSelected() ? "Search for commander in:" : "Search for commander");
cmdrMainDeck.setVisible(cmdrCheck.isSelected());
cmdrAllLists.setVisible(cmdrCheck.isSelected());
cmdrList.setVisible(cmdrCheck.isSelected());
cmdrListName.setVisible(cmdrCheck.isSelected());
});
ActionListener cmdrListener = (e) -> cmdrListName.setEnabled(cmdrList.isSelected());
cmdrMainDeck.addActionListener(cmdrListener);
cmdrAllLists.addActionListener(cmdrListener);
cmdrList.addActionListener(cmdrListener);
sideCheck.addActionListener((e) -> {
sideCheck.setText(sideCheck.isSelected() ? "Default sideboard name:" : "Include sideboard");
sideField.setVisible(sideCheck.isSelected());
});
// Tree panel
JPanel treePanel = new JPanel(new BorderLayout());
JTree tree = new JTree(root);
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
((DefaultTreeCellRenderer)tree.getCellRenderer()).setLeafIcon(null);
tree.addTreeSelectionListener((e) -> ((CardLayout)settingsPanel.getLayout()).show(settingsPanel, e.getPath().toString()));
treePanel.add(tree, BorderLayout.CENTER);
treePanel.add(new JSeparator(SwingConstants.VERTICAL), BorderLayout.EAST);
treePanel.setPreferredSize(new Dimension(130, 0));
add(treePanel, BorderLayout.WEST);
// Button panel
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
JButton applyButton = new JButton("Apply");
applyButton.addActionListener((e) -> confirmSettings());
buttonPanel.add(applyButton);
JButton okButton = new JButton("OK");
okButton.addActionListener((e) -> {
confirmSettings();
setVisible(false);
});
buttonPanel.add(okButton);
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener((e) -> {
rejectSettings();
setVisible(false);
});
buttonPanel.add(cancelButton);
JPanel bottomPanel = new JPanel(new BorderLayout());
bottomPanel.add(new JSeparator(SwingConstants.HORIZONTAL), BorderLayout.NORTH);
bottomPanel.add(buttonPanel, BorderLayout.CENTER);
add(bottomPanel, BorderLayout.SOUTH);
pack();
setLocationRelativeTo(owner);
addWindowListener(new WindowAdapter() {
@Override
public void windowOpened(WindowEvent e)
{
inventorySiteField.setText(settings.inventory.source);
inventoryFileField.setText(settings.inventory.file);
currentVersionLabel.setText("(Current version: " + settings.inventory.version + ")");
inventoryDirField.setText(settings.inventory.location);
inventoryChooser.setCurrentDirectory(new File(inventoryDirField.getText()).getAbsoluteFile());
scansDirField.setText(settings.inventory.scans);
scansChooser.setCurrentDirectory(new File(scansDirField.getText()).getAbsoluteFile());
imgSourceBox.setSelectedIndex(Math.max(IMAGE_SOURCES.indexOf(settings.inventory.imageSource), 0));
updateBox.setSelectedIndex(settings.inventory.update.ordinal());
suppressCheckBox.setSelected(settings.inventory.warn);
viewWarningsButton.setEnabled(!inventoryWarnings.isEmpty());
for (var n : inventoryColumnCheckBoxes.entrySet())
n.getValue().setSelected(settings.inventory.columns.contains(n.getKey()));
inventoryStripeColor.setColor(settings.inventory.stripe);
scanBGChooser.setColor(settings.inventory.background);
recentSpinner.getModel().setValue(settings.editor.recents.count);
explicitsSpinner.getModel().setValue(Integer.valueOf(settings.editor.categories.explicits));
for (CategorySpec preset : settings.editor.categories.presets)
categoriesList.addCategory(new CategorySpec(preset));
rowsSpinner.getModel().setValue(settings.editor.categories.rows);
for (var n : editorColumnCheckBoxes.entrySet())
n.getValue().setSelected(settings.editor.columns.contains(n.getKey()));
editorStripeColor.setColor(settings.editor.stripe);
startingSizeSpinner.getModel().setValue(settings.editor.hand.size);
for (JRadioButton mode : modeButtons)
mode.setSelected(mode.getText().equals(settings.editor.hand.rounding));
handBGColor.setColor(settings.editor.hand.background);
cmdrCheck.setSelected(settings.editor.legality.searchForCommander);
sideCheck.setSelected(!settings.editor.legality.sideboard.isEmpty());
sideCheck.setText(sideCheck.isSelected() ? "Default sideboard name:" : "Include sideboard");
sideField.setText(settings.editor.legality.sideboard);
sideField.setVisible(sideCheck.isSelected());
if (settings.editor.legality.searchForCommander)
{
cmdrCheck.setText("Search for commander in:");
if (settings.editor.legality.main || (!settings.editor.legality.all && settings.editor.legality.list.isEmpty()))
cmdrMainDeck.setSelected(true);
else if (settings.editor.legality.all)
cmdrAllLists.setSelected(true);
else
cmdrList.setSelected(true);
cmdrListName.setEnabled(cmdrList.isSelected());
cmdrListName.setText(settings.editor.legality.list);
}
else
{
cmdrCheck.setText("Search for commander");
cmdrMainDeck.setVisible(false);
cmdrAllLists.setVisible(false);
cmdrList.setVisible(false);
cmdrListName.setVisible(false);
}
}
});
}
/**
* Confirm the settings applied by the components of the dialog and send them to the parent
* MainFrame.
*/
public void confirmSettings()
{
try
{
recentSpinner.commitEdit();
explicitsSpinner.commitEdit();
rowsSpinner.commitEdit();
startingSizeSpinner.commitEdit();
var presets = new ArrayList<CategorySpec>(categoriesList.getCount());
for (int i = 0; i < categoriesList.getCount(); i++)
presets.add(categoriesList.getCategoryAt(i));
settings = new SettingsBuilder(settings)
.inventorySource(inventorySiteField.getText())
.inventoryFile(inventoryFileField.getText())
.inventoryLocation(inventoryDirField.getText())
.inventoryScans(scansDirField.getText())
.imageSource(imgSourceBox.getItemAt(imgSourceBox.getSelectedIndex()))
.inventoryUpdate(updateBox.getItemAt(updateBox.getSelectedIndex()))
.inventoryWarn(suppressCheckBox.isSelected())
.inventoryColumns(inventoryColumnCheckBoxes.entrySet().stream().filter((e) -> e.getValue().isSelected()).map(Map.Entry::getKey).sorted().collect(Collectors.toList()))
.inventoryStripe(inventoryStripeColor.getColor())
.recentsCount((Integer)recentSpinner.getValue())
.explicits((Integer)explicitsSpinner.getValue())
.categoryRows((Integer)rowsSpinner.getValue())
.editorColumns(editorColumnCheckBoxes.entrySet().stream().filter((e) -> e.getValue().isSelected()).map(Map.Entry::getKey).sorted().collect(Collectors.toList()))
.editorStripe(editorStripeColor.getColor())
.presetCategories(presets)
.handSize((Integer)startingSizeSpinner.getValue())
.handRounding(modeButtons.stream().filter(JRadioButton::isSelected).map(JRadioButton::getText).findAny().orElse("No rounding"))
.inventoryBackground(scanBGChooser.getColor())
.searchForCommander(cmdrCheck.isSelected())
.commanderInMain(cmdrMainDeck.isSelected() || (cmdrCheck.isSelected() && cmdrList.isSelected() && cmdrListName.getText().isEmpty()))
.commanderInAll(cmdrAllLists.isSelected())
.commanderInList(cmdrListName.getText())
.sideboardName(sideCheck.isSelected() ? sideField.getText() : "")
.build();
}
catch (ParseException e)
{
e.printStackTrace();
}
if (settings.inventory.columns.isEmpty())
settings = new SettingsBuilder(settings).inventoryColumns(new SettingsBuilder().defaults().build().inventory.columns).build();
if (settings.editor.columns.isEmpty())
settings = new SettingsBuilder(settings).editorColumns(new SettingsBuilder().defaults().build().editor.columns).build();
parent.applySettings();
}
/**
* Reject any changes that were made as a result of using the settings dialog.
*/
public void rejectSettings()
{
parent.setImageBackground(settings.inventory.background);
parent.setHandBackground(settings.editor.hand.background);
}
}
<file_sep>package editor.serialization;
import java.lang.reflect.Type;
import java.text.ParseException;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import editor.database.version.DatabaseVersion;
/**
* This class serializes a {@link DatabaseVersion} to and from JSON format.
*
* @author <NAME>
*/
public class VersionAdapter implements JsonSerializer<DatabaseVersion>, JsonDeserializer<DatabaseVersion>
{
@Override
public JsonElement serialize(DatabaseVersion src, Type typeOfSrc, JsonSerializationContext context)
{
return new JsonPrimitive(src.toString());
}
@Override
public DatabaseVersion deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{
try
{
return new DatabaseVersion(json.getAsString());
}
catch (ParseException e)
{
throw new JsonParseException(e);
}
}
}<file_sep>package editor.gui.ccp.handler;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.function.Predicate;
import javax.swing.TransferHandler;
import editor.collection.deck.CategorySpec;
import editor.gui.ccp.data.CategoryTransferData;
import editor.gui.ccp.data.DataFlavors;
/**
* Importer for category specifications.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class CategoryImportHandler extends TransferHandler implements ImportHandler
{
/** Function specifying how to tell if the deck contains the category already. */
private final Predicate<CategorySpec> contains;
/** Function specifying how to add the category. */
private final Predicate<CategorySpec> add;
/**
* Create a new category import handler.
*
* @param c function specifying whether or not the source component contains the
* category, if applicable (should just return false if it's not applicable)
* @param a function specifying how to add the category to the component
*/
public CategoryImportHandler(Predicate<CategorySpec> c, Predicate<CategorySpec> a)
{
contains = c;
add = a;
}
@Override
public DataFlavor supportedFlavor()
{
return DataFlavors.categoryFlavor;
}
@Override
public boolean canImport(TransferSupport supp)
{
if (supp.isDrop())
return false;
else if (supp.isDataFlavorSupported(DataFlavors.categoryFlavor))
{
try
{
CategoryTransferData data = (CategoryTransferData)supp.getTransferable().getTransferData(DataFlavors.categoryFlavor);
return !contains.test(data.spec);
}
catch (UnsupportedFlavorException | IOException e)
{
return false;
}
}
else
return false;
}
@Override
public boolean importData(TransferSupport supp)
{
try
{
if (!canImport(supp))
return false;
else
return add.test(((CategoryTransferData)supp.getTransferable().getTransferData(DataFlavors.categoryFlavor)).spec);
}
catch (UnsupportedFlavorException | IOException e)
{
return false;
}
}
}<file_sep>package editor.gui.filter.editor;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
import javax.swing.plaf.basic.BasicComboPopup;
import editor.database.attributes.CardAttribute;
import editor.filter.Filter;
import editor.filter.leaf.FilterLeaf;
import editor.filter.leaf.options.OptionsFilter;
import editor.gui.generic.ButtonScrollPane;
import editor.gui.generic.ComboBoxPanel;
import editor.gui.generic.ScrollablePanel;
import editor.util.Containment;
import editor.util.MouseListenerFactory;
import editor.util.PopupMenuListenerFactory;
import editor.util.UnicodeSymbols;
/**
* This class represents a panel that corresponds to a filter that groups
* cards according to a characteristic that takes on distinct values. Unlike
* other filter panels, which can be switched among different types of filters
* as long as they are the same class, OptionsFilterPanel cannot.
*
* @param <T> Type that the options presented have
* @author <NAME>
*/
@SuppressWarnings("serial")
public class OptionsFilterPanel<T> extends FilterEditorPanel<OptionsFilter<T>>
{
/**
* Maximum width for combo boxes. Sizes of the drop-down menus remain
* unaffected.
*/
private static final int MAX_COMBO_WIDTH = 100;
/**
* Set containment combo box.
*/
private ComboBoxPanel<Containment> contain;
/**
* List of options that are available to choose from.
*/
private T[] options;
/**
* List of boxes displaying the currently-selected options.
*/
private List<JComboBox<T>> optionsBoxes;
/**
* Panel displaying the combo boxes to be used to choose
* options.
*/
private ScrollablePanel optionsPanel;
/**
* Type of filter this OptionsFilterPanel edits.
*/
private CardAttribute type;
/**
* Create a new OptionsFilterPanel using the given filter to initialize its
* fields and the given array to specify the set of options to choose from.
*
* @param f filter to use for initialization
* @param t list of options to choose from
*/
public OptionsFilterPanel(OptionsFilter<T> f, T[] t)
{
this(f.type(), t);
setContents(f);
}
/**
* Create a new OptionsFilterPanel.
*
* @param t type of the new OptionsFilterPanel
* @param o list of options to choose from
*/
public OptionsFilterPanel(CardAttribute t, T[] o)
{
super();
setLayout(new BorderLayout());
type = t;
options = o;
optionsBoxes = new ArrayList<>();
contain = new ComboBoxPanel<>(Containment.values());
add(contain, BorderLayout.WEST);
optionsPanel = new ScrollablePanel(ScrollablePanel.TRACK_HEIGHT);
optionsPanel.setLayout(new BoxLayout(optionsPanel, BoxLayout.X_AXIS));
ButtonScrollPane optionsPane = new ButtonScrollPane(optionsPanel);
optionsPane.setBorder(BorderFactory.createEmptyBorder());
add(optionsPane, BorderLayout.CENTER);
}
/**
* Add a new combo box for an additional option.
*
* @param value initial value of the new combo box.
*/
private void addItem(T value)
{
JPanel boxPanel = new JPanel(new BorderLayout());
var box = new JComboBox<>(options);
box.addPopupMenuListener(PopupMenuListenerFactory.createVisibleListener((e) -> {
if (options.length > 0)
{
Object child = box.getAccessibleContext().getAccessibleChild(0);
if (child instanceof BasicComboPopup)
SwingUtilities.invokeLater(() -> {
BasicComboPopup popup = (BasicComboPopup)child;
JScrollPane scrollPane = (JScrollPane)SwingUtilities.getAncestorOfClass(JScrollPane.class, popup.getList());
int popupWidth = popup.getList().getPreferredSize().width +
(options.length > box.getMaximumRowCount() ? scrollPane.getVerticalScrollBar().getPreferredSize().width : 0);
scrollPane.setPreferredSize(new Dimension(Math.max(popupWidth, scrollPane.getPreferredSize().width), scrollPane.getPreferredSize().height));
scrollPane.setMaximumSize(scrollPane.getPreferredSize());
Point location = box.getLocationOnScreen();
popup.setLocation(location.x, location.y + box.getHeight() - 1);
popup.setLocation(location.x, location.y + box.getHeight());
});
}
}));
box.setPreferredSize(new Dimension(MAX_COMBO_WIDTH, box.getPreferredSize().height));
boxPanel.add(box, BorderLayout.CENTER);
optionsBoxes.add(box);
box.setSelectedItem(value);
JPanel buttonPanel = new JPanel(new GridLayout(2, 1, 0, 0));
JLabel addButton = new JLabel("+", JLabel.CENTER);
Font buttonFont = new Font(addButton.getFont().getFontName(), Font.PLAIN, addButton.getFont().getSize() - 2);
addButton.setAlignmentX(CENTER_ALIGNMENT);
addButton.setFont(buttonFont);
addButton.addMouseListener(MouseListenerFactory.createPressListener((e) -> {
addItem(options[0]);
optionsPanel.revalidate();
}));
JLabel removeButton = new JLabel(String.valueOf(UnicodeSymbols.MULTIPLY), JLabel.CENTER);
removeButton.setForeground(Color.RED);
removeButton.setAlignmentX(CENTER_ALIGNMENT);
removeButton.setFont(buttonFont);
removeButton.addMouseListener(MouseListenerFactory.createPressListener((e) -> {
if (optionsBoxes.size() > 1)
{
optionsPanel.remove(boxPanel);
optionsBoxes.remove(box);
optionsPanel.revalidate();
}
}));
buttonPanel.add(removeButton);
buttonPanel.add(addButton);
boxPanel.add(buttonPanel, BorderLayout.EAST);
optionsPanel.add(boxPanel);
}
@Override
public Filter filter()
{
@SuppressWarnings("unchecked")
var filter = (OptionsFilter<T>)CardAttribute.createFilter(type);
filter.contain = contain.getSelectedItem();
filter.selected = optionsBoxes.stream().map((b) -> b.getItemAt(b.getSelectedIndex())).collect(Collectors.toSet());
return filter;
}
/**
* {@inheritDoc}
*
* @throws IllegalArgumentException if the given filter is not the same
* type as this OptionsFilterPanel or isn't even an {@link OptionsFilter}
*/
@SuppressWarnings("unchecked")
@Override
public void setContents(FilterLeaf<?> filter) throws IllegalArgumentException
{
if (filter instanceof OptionsFilter && filter.type().equals(type))
setContents((OptionsFilter<T>)filter);
else if (filter instanceof OptionsFilter)
throw new IllegalArgumentException("Options filter type " + filter.type() + " does not match type " + type);
else
throw new IllegalArgumentException("Illegal options filter " + filter.type());
}
/**
* {@inheritDoc}
*
* @throws IllegalArgumentException if the given filter is of the wrong type
*/
@Override
public void setContents(OptionsFilter<T> filter) throws IllegalArgumentException
{
if (filter.type().equals(type))
{
contain.setSelectedItem(filter.contain);
if (options.length == 0)
contain.setVisible(false);
optionsBoxes.clear();
optionsPanel.removeAll();
if (filter.selected.isEmpty() && options.length > 0)
addItem(options[0]);
else
for (T selected : filter.selected)
addItem(selected);
}
else
throw new IllegalArgumentException("Options filter type " + filter.type() + " does not match type " + type);
}
}
<file_sep>package editor.database.version;
/**
* This enum specifies the frequency at which a database udpate is desired.
*
* @author <NAME>
*/
public enum UpdateFrequency
{
/** Only update on major version changes. */
MAJOR("Major version change"),
/** Update on major or minor version changes. */
MINOR("Minor version change"),
/** Update on major, minor, and revision changes. */
REVISION("Revision change"),
/** Update on all changes. */
DAILY("Price update (daily)"),
/** Don't update. */
NEVER("Never");
/** String label for this UpdateFrequency. */
private final String label;
/**
* Create a new UpdateFrequency with the specified label.
*
* @param n label of the update frequency
*/
UpdateFrequency(String n)
{
label = n;
}
@Override
public String toString()
{
return label;
}
}<file_sep>package editor.gui.generic;
import java.awt.event.InputEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JPopupMenu;
import javax.swing.JTable;
/**
* This class represents a listener for mouse events on a table and opens up
* a pop-up menu when the appropriate button is clicked.
*
* @author <NAME>
*/
public class TableMouseAdapter extends MouseAdapter
{
/**
* The menu that will open on right-click.
*/
private JPopupMenu menu;
/**
* The JTable this TableMouseAdapter operates on.
*/
private JTable table;
/**
* Create a new TableMouseAdapter.
*
* @param t table to operate on
* @param m menu to open
*/
public TableMouseAdapter(JTable t, JPopupMenu m)
{
super();
table = t;
menu = m;
}
@Override
public void mousePressed(MouseEvent e)
{
popupClick(e);
}
/**
* {@inheritDoc}
* In addition to the pop-up menu, clear the table if the mouse button is released off of it.
*/
@Override
public void mouseReleased(MouseEvent e)
{
popupClick(e);
if (table.rowAtPoint(e.getPoint()) < 0)
table.clearSelection();
}
/**
* If the event that generated the click was a pop-up event (usually
* right-click), open the menu. If the mouse is over an empty row,
* then select that row first. If the ctrl key is not held down,
* deselect all other rows.
*
* @param e #MouseEvent corresponding to the click
*/
public void popupClick(MouseEvent e)
{
if (e.isPopupTrigger())
{
int r = table.rowAtPoint(e.getPoint());
if (r >= 0 && !table.isRowSelected(r))
{
if ((e.getModifiersEx()&InputEvent.CTRL_DOWN_MASK) == 0)
table.setRowSelectionInterval(r, r);
else
table.addRowSelectionInterval(r, r);
}
menu.show(e.getComponent(), e.getX(), e.getY());
}
}
}
<file_sep>package editor.gui.ccp.data;
import java.awt.datatransfer.DataFlavor;
import editor.collection.deck.CategorySpec;
import editor.database.card.Card;
/**
* Collection of data flavors used for drag-and-drop in the editor.
*/
public interface DataFlavors
{
/**
* Data flavor representing cards being transferred.
*/
DataFlavor cardFlavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + ";class=\"" + Card[].class.getName() + "\"", "Card Array");
/**
* Data flavor representing a category. Transfer data will appear as a {@link CategorySpec}.
*/
DataFlavor categoryFlavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + ";class=\"" + CategorySpec.class.getName() + "\"", "Category Specification");
/**
* Data flavor representing entries in a deck. Transfer data will appear as a
* map of cards onto an integer representing the number of copies to transfer.
* It will also have auxiliary data including the source EditorFrame and ID.
*/
DataFlavor entryFlavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + ";class=\"" + EntryTransferData.class.getName() + "\"", "Deck Entries");
}<file_sep>package editor.filter.leaf.options;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import java.util.function.Function;
import java.util.stream.Collector;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.filter.leaf.FilterLeaf;
import editor.util.Containment;
/**
* This class represents a filter that groups cards based on characteristics
* that take on values from a list of options.
*
* @param <T> Type of the options for the characteristic to be filtered
* @author <NAME>
*/
public abstract class OptionsFilter<T> extends FilterLeaf<T>
{
/**
* Containment type of this OptionsFilter.
*/
public Containment contain;
/**
* Set of options that have been selected.
*/
public Set<T> selected;
/**
* Create a new OptionsFilter.
*
* @param t type of this OptionsFilter
* @param f function for this OptionsFilter
*/
public OptionsFilter(CardAttribute t, Function<Card, T> f)
{
super(t, f);
contain = Containment.CONTAINS_ANY_OF;
selected = new HashSet<>();
}
/**
* Convert a String to the type that this OptionsFilter's options have.
*
* @param str String to convert
* @return the option corresponding to the given String
*/
protected abstract T convertFromString(String str);
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other == this)
return true;
if (other.getClass() != getClass())
return false;
var o = (OptionsFilter<?>)other;
return o.type().equals(type()) && o.contain == contain && o.selected.equals(selected);
}
@Override
public int hashCode()
{
return Objects.hash(type(), function(), contain, selected);
}
/**
* Convert an option to JSON.
*
* @param item item to convert
* @return A serialized version of the item.
*/
protected abstract JsonElement convertToJson(T item);
@Override
protected void serializeFields(JsonObject fields)
{
fields.addProperty("contains", contain.toString());
fields.add("selected",
selected.stream().collect(Collector.of(
JsonArray::new, (a, i) -> a.add(convertToJson(i)),
(l, r) -> { l.addAll(r); return l; }
)));
}
protected abstract T convertFromJson(JsonElement item);
@Override
protected void deserializeFields(JsonObject fields)
{
contain = Containment.parseContainment(fields.get("contains").getAsString());
for (JsonElement element : fields.get("selected").getAsJsonArray())
selected.add(convertFromJson(element));
}
}
<file_sep><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<version>1.0.0</version>
<name>MTG Workstation</name>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>14</source>
<target>14</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
<mainClass>editor.gui.MainFrame</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>editor.gui.MainFrame</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<groupId>editor</groupId>
<artifactId>mtg-workstation</artifactId>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>
<dependency>
<groupId>com.joestelmach</groupId>
<artifactId>natty</artifactId>
<version>0.12</version>
</dependency>
</dependencies>
</project><file_sep>package editor.gui.display;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import editor.collection.CardList;
import editor.database.attributes.CardAttribute;
import editor.gui.editor.EditorFrame;
import editor.gui.editor.IncludeExcludePanel;
/**
* This class represents the model for displaying the contents of a decklist. A decklist
* category looks like a decklist, so this is used to display those as well.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class CardTableModel extends AbstractTableModel
{
/**
* List of card characteristics to display in the table.
*/
private List<CardAttribute> characteristics;
/**
* Editor containing this model's table.
*/
private EditorFrame editor;
/**
* List of cards the table displays.
*/
private CardList list;
/**
* Create a new CardTableModel.
*
* @param d list of cards for the new CardTableModel to show
* @param c list of characteristics of those cards to show
*/
public CardTableModel(CardList d, List<CardAttribute> c)
{
this(null, d, c);
}
/**
* Create a new CardTableModel.
*
* @param e frame containing the table this model applies to
* @param d list of cards for the new CardTableModel to show
* @param c list of characteristics of those cards to show
*/
public CardTableModel(EditorFrame e, CardList d, List<CardAttribute> c)
{
super();
editor = e;
list = d;
characteristics = c;
}
@Override
public Class<?> getColumnClass(int column)
{
return characteristics.get(column).dataType();
}
@Override
public int getColumnCount()
{
return characteristics.size();
}
/**
* Get the type of data displayed by the given column.
*
* @param column column to check
* @return the type of data being displayed in the given column.
*/
public CardAttribute getColumnData(int column)
{
return characteristics.get(column);
}
@Override
public String getColumnName(int column)
{
return characteristics.get(column).toString();
}
@Override
public int getRowCount()
{
return list.size();
}
@Override
public Object getValueAt(int rowIndex, int columnIndex)
{
return list.getEntry(rowIndex).get(characteristics.get(columnIndex));
}
@Override
public boolean isCellEditable(int row, int column)
{
return editor != null && (characteristics.get(column) == CardAttribute.COUNT || characteristics.get(column) == CardAttribute.CATEGORIES);
}
/**
* Set which columns are to be displayed by this CardTableModel.
*
* @param c list of CardCharacteristics corresponding to the columns to display
*/
public void setColumns(List<CardAttribute> c)
{
characteristics = c;
fireTableStructureChanged();
}
/**
* Change the list of cards to display in this model's table.
*
* @param d the new list to display
*/
public void setList(CardList d)
{
list = d;
}
@Override
public void setValueAt(Object value, int row, int column)
{
if (isCellEditable(row, column))
{
switch (characteristics.get(column))
{
case COUNT:
if (value instanceof Integer)
list.set(list.get(row), (Integer)value);
else
throw new IllegalArgumentException("Illegal count value " + value);
break;
case CATEGORIES:
if (value instanceof IncludeExcludePanel)
{
IncludeExcludePanel iePanel = (IncludeExcludePanel)value;
editor.editInclusion(iePanel.getIncluded(), iePanel.getExcluded());
}
else
throw new IllegalArgumentException("Illegal inclusion value " + value);
break;
default:
throw new IllegalArgumentException("Cannot edit data type " + characteristics.get(column));
}
fireTableDataChanged();
}
}
}
<file_sep>package editor.filter.leaf.options.multi;
import java.util.HashSet;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.filter.Filter;
/**
* This class represents a filter that groups cards by supertype.
*
* @author <NAME>
*/
public class SupertypeFilter extends MultiOptionsFilter<String>
{
/**
* List of all supertypes that appear on cards.
*/
public static String[] supertypeList = {};
/**
* Create a new SupertypeFilter.
*/
public SupertypeFilter()
{
super(CardAttribute.SUPERTYPE, Card::supertypes);
}
@Override
protected String convertFromString(String str)
{
return str;
}
@Override
public Filter copy()
{
SupertypeFilter filter = (SupertypeFilter)CardAttribute.createFilter(CardAttribute.SUPERTYPE);
filter.contain = contain;
filter.selected = new HashSet<>(selected);
return filter;
}
@Override
protected JsonElement convertToJson(String item)
{
return new JsonPrimitive(item);
}
@Override
protected String convertFromJson(JsonElement item)
{
return item.getAsString();
}
}
<file_sep>package editor.filter.leaf.options.multi;
import java.util.HashSet;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.filter.Filter;
/**
* This class represents a filter that groups cards by subtype.
*
* @author <NAME>
*/
public class SubtypeFilter extends MultiOptionsFilter<String>
{
/**
* List of all subtypes that appear on cards.
*/
public static String[] subtypeList = {};
/**
* Create a new SubtypeFilter.
*/
public SubtypeFilter()
{
super(CardAttribute.SUBTYPE, Card::subtypes);
}
@Override
protected String convertFromString(String str)
{
return str;
}
@Override
public Filter copy()
{
SubtypeFilter filter = (SubtypeFilter)CardAttribute.createFilter(CardAttribute.SUBTYPE);
filter.contain = contain;
filter.selected = new HashSet<>(selected);
return filter;
}
@Override
protected JsonElement convertToJson(String item)
{
return new JsonPrimitive(item);
}
@Override
protected String convertFromJson(JsonElement item)
{
return item.getAsString();
}
}
<file_sep>package editor.serialization;
import java.lang.reflect.Type;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import editor.collection.deck.CategorySpec;
import editor.collection.deck.Deck;
import editor.database.card.Card;
public class DeckAdapter implements JsonSerializer<Deck>, JsonDeserializer<Deck>
{
private final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
@Override
public JsonElement serialize(Deck src, Type typeOfSrc, JsonSerializationContext context)
{
JsonObject deck = new JsonObject();
JsonArray cards = new JsonArray();
for (Card card : src)
{
JsonObject entry = new JsonObject();
entry.add("card", context.serialize(card));
entry.addProperty("count", src.getEntry(card).count());
entry.addProperty("date", src.getEntry(card).dateAdded().format(FORMATTER));
cards.add(entry);
}
deck.add("cards", cards);
JsonArray categories = new JsonArray();
for (CategorySpec spec : src.categories())
{
JsonObject category = context.serialize(spec).getAsJsonObject();
category.addProperty("rank", src.getCategoryRank(spec.getName()));
categories.add(category);
}
deck.add("categories", categories);
return deck;
}
@Override
public Deck deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{
Deck d = new Deck();
JsonObject obj = json.getAsJsonObject();
for (JsonElement element : obj.get("cards").getAsJsonArray())
{
JsonObject entry = element.getAsJsonObject();
d.add(
context.deserialize(entry.get("card"), Card.class),
entry.get("count").getAsInt(),
LocalDate.parse(entry.get("date").getAsString(), FORMATTER)
);
}
for (JsonElement element : obj.get("categories").getAsJsonArray())
d.addCategory(context.deserialize(element, CategorySpec.class), element.getAsJsonObject().get("rank").getAsInt());
return d;
}
}<file_sep>package editor.serialization.legacy;
import java.awt.Color;
import java.io.IOException;
import java.io.ObjectInput;
import editor.collection.deck.CategorySpec;
import editor.gui.MainFrame;
public interface CategoryDeserializer
{
public static CategorySpec readExternal(ObjectInput in) throws ClassNotFoundException, IOException
{
CategorySpec spec = new CategorySpec();
spec.setName(in.readUTF());
spec.setColor((Color)in.readObject());
spec.setFilter(FilterDeserializer.readExternal(in));
for (int i = in.readInt(); i > 0; i--)
spec.exclude(MainFrame.inventory().find((int)in.readLong()));
for (int i = in.readInt(); i > 0; i--)
spec.include(MainFrame.inventory().find((int)in.readLong()));
return spec;
}
}<file_sep>package editor.gui.filter.editor;
import java.awt.FlowLayout;
import java.util.HashMap;
import java.util.Map;
import editor.collection.deck.CategorySpec;
import editor.filter.Filter;
import editor.filter.leaf.FilterLeaf;
import editor.gui.generic.ComboBoxPanel;
import editor.gui.settings.SettingsDialog;
/**
* This class represents a panel that presents the user with a
* single combo box showing the default categories in the
* settings dialog and returns the filter for the selected one.
* It is replaced with the contents of the selected filter in the
* filter tree.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class DefaultsFilterPanel extends FilterEditorPanel<FilterLeaf<?>>
{
/**
* Combo box showing the default categories.
*/
private ComboBoxPanel<String> defaults;
/**
* Map of category names onto their String representations.
*/
private Map<String, CategorySpec> categories;
/**
* Create a new DefaultsFilterPanel.
*/
public DefaultsFilterPanel()
{
super();
setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
categories = new HashMap<>();
var presets = SettingsDialog.settings().editor.categories.presets;
String[] names = presets.stream().map(CategorySpec::getName).toArray(String[]::new);
for (int i = 0; i < presets.size(); i++)
categories.put(names[i], presets.get(i));
defaults = new ComboBoxPanel<>(names);
add(defaults);
}
/**
* {@inheritDoc}
* This panel doesn't have its own filter; rather, it returns a group containing
* a filter corresponding to the given preset.
*/
@Override
public Filter filter()
{
return new CategorySpec(categories.get(defaults.getSelectedItem())).getFilter();
}
/**
* {@inheritDoc}
* Since this panel doesn't correspond to a filter, this doesn't do anything.
*/
@Override
public void setContents(FilterLeaf<?> filter)
{}
}
<file_sep>package editor.database.card;
import java.util.List;
import java.util.function.Function;
import editor.database.attributes.ManaCost;
import editor.util.Lazy;
/**
* This class represents a flip card, which has two faces: Top and bottom.
*
* @author <NAME>
*/
public class FlipCard extends MultiCard
{
/**
* List containing the converted mana cost of each side of this FlipCard (which should just be two
* copies of the same value).
*/
private Lazy<List<Double>> cmc;
/**
* Tuple containing the mana cost of each side of this FlipCard (which should just be two copies
* of the same value).
*/
private Lazy<List<ManaCost>> manaCost;
/**
* Card representing the top face of this FlipCard.
*/
private final Card top;
/**
* Create a new FlipCard with the given Cards as its faces. They should indicate that
* their layouts are flip card layouts.
*
* @param t top face of this FlipCard
* @param b bottom face of this FlipCard
*/
public FlipCard(Card t, Card b)
{
super(CardLayout.FLIP, t, b);
top = t;
if (top.layout() != CardLayout.FLIP || b.layout() != CardLayout.FLIP)
throw new IllegalArgumentException("can't join non-flip cards into flip cards");
manaCost = new Lazy<>(() -> collect(Card::manaCost));
cmc = new Lazy<>(() -> collect(Card::cmc));
}
/**
* {@inheritDoc}
* Both faces of a FlipCard have the same converted mana cost.
*/
@Override
public List<Double> cmc()
{
return cmc.get();
}
/**
* Duplicate the value of the given characteristic for the front face into a list.
*
* @param characteristic characteristic to collect
* @return a list containing the given characteristic repeated twice (once for the front
* face, and once for the back).
*/
private <T> List<T> collect(Function<Card, List<T>> characteristic)
{
return List.of(characteristic.apply(top).get(0), characteristic.apply(top).get(0));
}
/**
* {@inheritDoc}
* Both faces of a FlipCard have the same mana cost.
*/
@Override
public List<ManaCost> manaCost()
{
return manaCost.get();
}
}
<file_sep>package editor.database.symbol;
import java.util.Objects;
import editor.database.attributes.ManaType;
/**
* This class represents a color weighting for a Symbol. Only mana Symbols will have nonzero weights
* for any type of mana. For any given mana Symbol, the sum of all of its color weights should be
* 1.
* <p>
* This class is simply a data structure that holds a {@link ManaType} and its weight for a symbol to
* make it easier to populate the Symbol's weight map.
*
* @author <NAME>
*/
public class ColorWeight
{
/**
* Color for the weight.
*/
public final ManaType color;
/**
* The weight of the color.
*/
public final double weight;
/**
* Create a new ColorWeight.
*
* @param c color of the new ColorWeight
* @param w weight of the new ColorWeight
*/
public ColorWeight(ManaType c, double w)
{
color = c;
weight = w;
}
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other == this)
return false;
if (other.getClass() != getClass())
return false;
ColorWeight o = (ColorWeight)other;
return o.color.equals(color) && o.weight == weight;
}
@Override
public int hashCode()
{
return Objects.hash(color, weight);
}
}
<file_sep>package editor.database.card;
/**
* This class represents a Card with two faces: One on the front, and one on the
* back. During a game, one side can be cast.
*
* @author <NAME>
*/
public class ModalCard extends MultiCard
{
/**
* Card representing the front face.
*/
private final Card front;
/**
* Create a new ModalCard with the given Cards as faces. Their layouts should
* say that they are modal double-faced cards.
*
* @param f card representing the front face
* @param b card representing the back face
*/
public ModalCard(Card f, Card b)
{
super(CardLayout.MODAL_DFC, f, b);
front = f;
if (front.layout() != CardLayout.MODAL_DFC || b.layout() != CardLayout.MODAL_DFC)
throw new IllegalArgumentException("can't join non-modal-double-faced cards into modal double-faced cards");
}
}
<file_sep>package editor.util;
import java.util.function.Consumer;
import javax.swing.event.MenuEvent;
import javax.swing.event.MenuListener;
/**
* This interface is a factory for creating menu listeners that don't listen for all
* three of a menu becoming selected, deselected, or canceled.
*
* @author <NAME>
*/
public interface MenuListenerFactory
{
/**
* Create a new MenuListener that only listens for cancellation.
*
* @param canceled action to perform when a menu is canceled
* @return a MenuListener that performs the action when a menu is canceled.
*/
public static MenuListener createCanceledListener(Consumer<MenuEvent> canceled)
{
return new MenuListener()
{
@Override
public void menuCanceled(MenuEvent e)
{
canceled.accept(e);
}
@Override
public void menuDeselected(MenuEvent e) {}
@Override
public void menuSelected(MenuEvent e) {}
};
}
/**
* Create a new MenuListener that listens for a menu to be deselected.
*
* @param deselected action to perform when a menu is deselected
* @return a MenuListener that performs the action when a menu is deselected.
*/
public static MenuListener createDeselectedListener(Consumer<MenuEvent> deselected)
{
return new MenuListener()
{
@Override
public void menuCanceled(MenuEvent e) {}
@Override
public void menuDeselected(MenuEvent e)
{
deselected.accept(e);
}
@Override
public void menuSelected(MenuEvent e) {}
};
}
/**
* Create a new MenuListener that listens for a menu to be selected.
*
* @param selected action to perform when a menu is selected
* @return a MenuListener that performs the action when a menu is selected.
*/
public static MenuListener createSelectedListener(Consumer<MenuEvent> selected)
{
return new MenuListener()
{
@Override
public void menuCanceled(MenuEvent e) {}
@Override
public void menuDeselected(MenuEvent e) {}
@Override
public void menuSelected(MenuEvent e)
{
selected.accept(e);
}
};
}
}<file_sep>package editor.serialization.legacy;
import java.io.IOException;
import java.io.ObjectInput;
import java.time.LocalDate;
import editor.collection.deck.CategorySpec;
import editor.collection.deck.Deck;
import editor.database.card.Card;
import editor.gui.MainFrame;
public interface DeckDeserializer
{
/**
* Extension used for legacy saved files.
*/
public static final String EXTENSION = "dek";
public static Deck readExternal(ObjectInput in) throws ClassNotFoundException, IOException
{
Deck d = new Deck();
int n = in.readInt();
for (int i = 0; i < n; i++)
{
Card card = MainFrame.inventory().find((int)in.readLong());
int count = in.readInt();
LocalDate added = (LocalDate)in.readObject();
d.add(card, count, added);
}
n = in.readInt();
for (int i = 0; i < n; i++)
{
CategorySpec spec = CategoryDeserializer.readExternal(in);
d.addCategory(spec, in.readInt());
}
return d;
}
}<file_sep>package editor.collection.deck;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import editor.collection.CardList;
import editor.database.card.Card;
/**
* This class represents a hand of Cards. It is a subset of a Deck that is randomized
* and with multiple copies represented by separate entries. It also breaks the contract
* with CardList in that multiple copies of a Card are treated as unique entries.
*
* @author <NAME>
*/
public class Hand implements CardList
{
/**
* Deck containing the cards in the hand.
*/
private Deck deck;
/**
* Cards to not include in a drawn hand (for example, sideboards or Commanders).
*/
private Set<Card> exclusion;
/**
* Cards in the Deck, in a random order and with multiple copies represented by multiple
* entries.
*/
private List<Card> hand;
/**
* Number of cards in the drawn hand.
*/
private int inHand;
/**
* Create a new Hand from the specified Deck.
*
* @param deck deck to draw Cards from
*/
public Hand(Deck deck)
{
this(deck, new HashSet<>());
}
/**
* Create a new Hand from the specified Deck, excluding the specified Cards.
*
* @param deck deck to draw Cards from
* @param cards cards to never include in the sample hand
*/
public Hand(Deck deck, Set<Card> cards)
{
super();
hand = new ArrayList<>();
exclusion = new LinkedHashSet<>(cards);
inHand = 0;
this.deck = deck;
refresh();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean add(Card card) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean add(Card card, int amount) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean addAll(CardList cards) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean addAll(Map<? extends Card, ? extends Integer> amounts) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean addAll(Set<? extends Card> cards) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* Remove all Cards from this hand. New ones cannot be drawn until a refresh is performed.
*
* @see Hand#refresh()
*/
@Override
public void clear()
{
hand.clear();
inHand = 0;
}
/**
* Remove all Cards from the exclusion list.
*/
public void clearExclusion()
{
exclusion.clear();
}
/**
* Check if a card is in the drawn hand.
*
* @param card card to look for
* @return true if the given card is in the drawn cards of this Hand, and false otherwise.
*/
@Override
public boolean contains(Card card)
{
return hand.subList(0, inHand).contains(card);
}
/**
* Check if all of the given cards are in the drawn hand.
*
* @param cards collection of Cards to look for
* @return true if the given Objects are all in the drawn cards of this Hand, and false
* otherwise.
*/
@Override
public boolean containsAll(Collection<? extends Card> cards)
{
return hand.subList(0, inHand).containsAll(cards);
}
/**
* Draw a card.
*/
public void draw()
{
inHand++;
}
/**
* Exclude a Card from being drawn in the sample hand.
*
* @param card card to exclude
* @return true if the Card was added (which only happens if it wasn't in the exclusion list
* already), and false otherwise.
*/
public boolean exclude(Card card)
{
return exclusion.add(card);
}
/**
* Get the cards that will not be drawn by this Hand.
*
* @return The list of cards to never draw in a hand.
*/
public List<Card> excluded()
{
return new ArrayList<>(exclusion);
}
@Override
public Card get(int index)
{
if (index >= inHand)
throw new IndexOutOfBoundsException();
return hand.get(index);
}
/**
* {@inheritDoc}
* The deck's metadata is used.
*/
@Override
public Entry getEntry(Card card)
{
return deck.getEntry(card);
}
/**
* {@inheritDoc}
* The Deck's metadata is used.
*/
@Override
public Entry getEntry(int index) throws IndexOutOfBoundsException
{
return deck.getEntry(get(index));
}
/**
* Get the currently-drawn cards.
*
* @return a list of cards representing those in the sample hand.
*/
public List<Card> getHand()
{
return hand.subList(0, size());
}
@Override
public int indexOf(Card card)
{
return hand.indexOf(card);
}
/**
* {@inheritDoc}
* A Hand is also considered empty if no cards are drawn.
*/
@Override
public boolean isEmpty()
{
return hand.isEmpty() || inHand == 0;
}
@Override
public Iterator<Card> iterator()
{
return hand.subList(0, inHand).iterator();
}
/**
* Take a mulligan, or shuffle the deck and draw a new hand, but with one fewer
* card in it.
*/
public void mulligan()
{
if (inHand > 0)
{
Collections.shuffle(hand);
inHand--;
}
}
/**
* Shuffle the deck and draw a new starting hand.
*
* @param n size of the new hand
*/
public void newHand(int n)
{
refresh();
Collections.shuffle(hand);
inHand = Math.min(n, hand.size());
}
/**
* Update the state of this Hand to exclude cards in the exclusion list.
*/
public void refresh()
{
clear();
for (Card c : deck)
if (!exclusion.contains(c))
for (int i = 0; i < deck.getEntry(c).count(); i++)
hand.add(c);
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean remove(Card card) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public int remove(Card card, int amount) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public Map<Card, Integer> removeAll(CardList cards) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public Map<Card, Integer> removeAll(Map<? extends Card, ? extends Integer> amounts) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public Set<Card> removeAll(Set<? extends Card> coll) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean set(Card card, int amount) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Not supported.
*/
@Override
public boolean set(int index, int amount) throws UnsupportedOperationException
{
throw new UnsupportedOperationException();
}
/**
* {@inheritDoc}
* Only drawn cards count toward size.
*/
@Override
public int size()
{
return Math.min(inHand, hand.size());
}
/**
* {@inheritDoc}
* Only drawn cards will be put into the array.
*/
@Override
public Card[] toArray()
{
return hand.subList(0, inHand).toArray(new Card[inHand]);
}
/**
* {@inheritDoc}
* Only drawn cards count toward size. Since each card is represented as a unique
* entry, this is the same as {@link #size()}.
*/
@Override
public int total()
{
return size();
}
@Override
public void sort(Comparator<? super CardList.Entry> c)
{
hand.sort((a, b) -> c.compare(deck.getEntry(a), deck.getEntry(b)));
}
}
<file_sep>package editor.filter.leaf;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.function.Function;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import editor.database.attributes.CardAttribute;
import editor.database.attributes.ManaType;
import editor.database.card.Card;
import editor.filter.Filter;
import editor.util.Containment;
/**
* This class represents a filter to group cards by color characteristic.
*
* @author <NAME>
*/
public class ColorFilter extends FilterLeaf<List<ManaType>>
{
/**
* Set of colors that should match cards.
*/
public Set<ManaType> colors;
/**
* Containment of this ColorFilter.
*/
public Containment contain;
/**
* Whether or not cards should have multiple colors.
*/
public boolean multicolored;
/**
* Create a ColorFilter without a type or function. Should be used only for
* deserialization.
*/
public ColorFilter()
{
this(null, null);
}
/**
* Create a new ColorFilter.
*
* @param t type of the new ColorFilter
* @param f function for the new ColorFilter
*/
public ColorFilter(CardAttribute t, Function<Card, List<ManaType>> f)
{
super(t, f);
contain = Containment.CONTAINS_ANY_OF;
colors = new HashSet<>();
multicolored = false;
}
@Override
public Filter copy()
{
ColorFilter filter = (ColorFilter)CardAttribute.createFilter(type());
filter.colors = new HashSet<>(colors);
filter.contain = contain;
filter.multicolored = multicolored;
return filter;
}
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other == this)
return true;
if (other.getClass() != getClass())
return false;
ColorFilter o = (ColorFilter)other;
return o.type().equals(type()) && o.colors.equals(colors) && o.contain == contain && o.multicolored == multicolored;
}
@Override
public int hashCode()
{
return Objects.hash(type(), function(), colors, contain, multicolored);
}
/**
* {@inheritDoc}
* Filter cards according to the colors in a color characteristic.
*/
@Override
public boolean test(Card c)
{
return contain.test(function().apply(c), colors)
&& (!multicolored || function().apply(c).size() > 1);
}
@Override
protected void serializeFields(JsonObject fields)
{
JsonArray array = new JsonArray();
for (ManaType c : colors)
array.add(c.toString());
fields.addProperty("contains", contain.toString());
fields.add("colors", array);
fields.addProperty("multicolored", multicolored);
}
@Override
protected void deserializeFields(JsonObject fields)
{
contain = Containment.parseContainment(fields.get("contains").getAsString());
for (JsonElement element : fields.get("colors").getAsJsonArray())
colors.add(ManaType.parseManaType(element.getAsString()));
multicolored = fields.get("multicolored").getAsBoolean();
}
}<file_sep>package editor.util;
import java.util.Collection;
import java.util.function.BiPredicate;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* This enumeration represents a way that elements from one #Collection can be contained in another.
*
* @author <NAME>
*/
public enum Containment implements BiPredicate<Collection<?>, Collection<?>>
{
/**
* The first collection contains all of the elements in the second collection.
* Opposite of {@link #CONTAINS_NOT_ALL_OF}.
*/
CONTAINS_ALL_OF,
/**
* The first collection contains any element in the second collection. A collection always contains
* an empty collection.
* Opposite of {@link #CONTAINS_NONE_OF}.
*/
CONTAINS_ANY_OF,
/**
* The first collection contains exactly the same elements as the second collection.
* Opposite of {@link #CONTAINS_NOT_EXACTLY}.
*/
CONTAINS_EXACTLY,
/**
* The first collection contains no elements from the second collection.
* Opposite of {@link #CONTAINS_ANY_OF}.
*/
CONTAINS_NONE_OF,
/**
* The first collection contains some, but not all, of the elements in the second collection.
* Opposite if {@link #CONTAINS_ALL_OF}.
*/
CONTAINS_NOT_ALL_OF,
/**
* The first collection contains some or none of the elements as the second collection, but is not
* exactly the same. Opposite of {@link #CONTAINS_EXACTLY}.
*/
CONTAINS_NOT_EXACTLY;
/**
* @param contain String representation of the desired Containment
* @return The Containment corresponding to the given String.
*/
public static Containment parseContainment(String contain)
{
return Containment.valueOf(contain.toUpperCase().replace(' ', '_'));
}
@Override
public boolean test(Collection<?> a, Collection<?> b)
{
return switch (this) {
case CONTAINS_ANY_OF -> b.isEmpty() || b.stream().anyMatch(a::contains);
case CONTAINS_NONE_OF -> b.stream().noneMatch(a::contains);
case CONTAINS_ALL_OF -> a.containsAll(b);
case CONTAINS_NOT_ALL_OF -> CONTAINS_ANY_OF.test(a, b) && !a.containsAll(b);
case CONTAINS_EXACTLY -> a.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting())).equals(
b.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting())));
case CONTAINS_NOT_EXACTLY -> a.stream().anyMatch((o) -> !b.contains(o)) || b.stream().anyMatch((o) -> !a.contains(o));
};
}
/**
* {@inheritDoc}
* The String representation of a Containment is its name in lower case with
* _ replaced with a space.
*/
@Override
public String toString()
{
return super.toString().replace("_", " ").toLowerCase();
}
}
<file_sep>package editor.filter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.function.BiPredicate;
import java.util.function.Predicate;
import java.util.stream.Collector;
import java.util.stream.Stream;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
/**
* This class represents a group of filters that are ANDed or ORed together.
*
* @author <NAME>
*/
public class FilterGroup extends Filter implements Iterable<Filter>
{
/**
* This class represents a method of combining filters to test a card with all of
* them collectively.
*
* @author <NAME>
*/
public enum Mode implements BiPredicate<Collection<Filter>, Card>
{
/**
* All of the filters must pass a card.
*/
AND("all of", Stream::allMatch),
/**
* None of the filters can pass a card.
*/
NOR("none of", Stream::noneMatch),
/**
* Any of the filters must pass a card.
*/
OR("any of", Stream::anyMatch);
/**
* Function representing the mode to test a card with a collection of filters.
*/
private final BiPredicate<Stream<Filter>, Predicate<? super Filter>> function;
/**
* String representation of this Mode.
*/
private final String mode;
/**
* Create a new Mode.
*
* @param m String representation of the new Mode.
*/
Mode(String m, BiPredicate<Stream<Filter>, Predicate<? super Filter>> f)
{
mode = m;
function = f;
}
@Override
public boolean test(Collection<Filter> filters, Card c)
{
return function.test(filters.stream(), (f) -> f.test(c));
}
@Override
public String toString()
{
return mode;
}
}
/**
* Children of this FilterGroup.
*/
private List<Filter> children;
/**
* Combination mode of this FilterGroup.
*/
public Mode mode;
/**
* Create a new FilterGroup with no children and in AND mode.
*/
public FilterGroup()
{
super(CardAttribute.GROUP);
children = new ArrayList<>();
mode = Mode.AND;
}
/**
* Create a new FilterGroup using the given list of filters
* as its children.
*
* @param c filters that will be the new FilterGroup's children
*/
public FilterGroup(Filter... c)
{
this();
for (Filter f : c)
addChild(f);
}
/**
* Add a new child to this FilterGroup.
*
* @param filter filter to add
*/
public void addChild(Filter filter)
{
children.add(filter);
if (filter.parent != null)
filter.parent.children.remove(filter);
filter.parent = this;
}
/**
* {@inheritDoc}
* The copy will be a deep copy in that its new children will also be copies of
* the original's children.
*/
@Override
public Filter copy()
{
FilterGroup filter = new FilterGroup();
for (Filter child : children)
filter.addChild(child.copy());
filter.mode = mode;
return filter;
}
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other == this)
return true;
if (other.getClass() != getClass())
return false;
FilterGroup o = (FilterGroup)other;
if (o.mode != mode)
return false;
if (children.size() != o.children.size())
return false;
List<Filter> otherChildren = new ArrayList<>(o.children);
for (Filter child : children)
otherChildren.remove(child);
return otherChildren.isEmpty();
}
@Override
public int hashCode()
{
return Objects.hash(children, mode);
}
@Override
public Iterator<Filter> iterator()
{
return children.iterator();
}
@Override
public boolean test(Card c)
{
return mode.test(children, c);
}
@Override
protected void serializeFields(JsonObject fields)
{
fields.addProperty("mode", mode.toString());
fields.add("children", children.stream().collect(Collector.of(
JsonArray::new,
(a, i) -> a.add(i.toJsonObject()),
(l, r) -> { l.addAll(r); return l; }
)));
}
@Override
protected void deserializeFields(JsonObject fields)
{
mode = Arrays.stream(Mode.values()).filter((m) -> m.toString().equals(fields.get("mode").getAsString())).findAny().get();
for (JsonElement element : fields.get("children").getAsJsonArray())
{
CardAttribute type = CardAttribute.fromString(element.getAsJsonObject().get("type").getAsString());
Filter child = type == CardAttribute.GROUP ? new FilterGroup() : CardAttribute.createFilter(type);
child.fromJsonObject(element.getAsJsonObject());
children.add(child);
}
}
}
<file_sep>package editor.gui.filter.editor;
import java.awt.Color;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import javax.swing.BoxLayout;
import javax.swing.JCheckBox;
import javax.swing.JTextField;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import editor.database.attributes.CardAttribute;
import editor.filter.Filter;
import editor.filter.leaf.FilterLeaf;
import editor.filter.leaf.TextFilter;
import editor.gui.generic.ComboBoxPanel;
import editor.util.Containment;
/**
* This class represents a panel that corresponds to a filter that
* groups cards according to a text characteristic.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class TextFilterPanel extends FilterEditorPanel<TextFilter>
{
/**
* Combo box for choosing set containment.
*/
private ComboBoxPanel<Containment> contain;
/**
* Check box specifying whether the text is a regular expression
* or not.
*/
private JCheckBox regex;
/**
* Field for editing the text of the filter.
*/
private JTextField text;
/**
* Type of filter that this TextFilterPanel edits.
*/
private CardAttribute type;
/**
* Create a new TextFilterPanel.
*/
private TextFilterPanel()
{
super();
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
contain = new ComboBoxPanel<>(Containment.values());
add(contain);
text = new JTextField();
text.getDocument().addDocumentListener(new DocumentListener()
{
@Override
public void changedUpdate(DocumentEvent e)
{
update(e);
}
@Override
public void insertUpdate(DocumentEvent e)
{
update(e);
}
@Override
public void removeUpdate(DocumentEvent e)
{
update(e);
}
private void update(DocumentEvent e)
{
text.setBackground(Color.WHITE);
if (regex.isSelected())
{
try
{
Pattern.compile(text.getText(), Pattern.DOTALL|Pattern.CASE_INSENSITIVE);
}
catch (PatternSyntaxException x)
{
text.setBackground(Color.PINK);
}
}
}
});
add(text);
regex = new JCheckBox("regex");
regex.addActionListener((e) -> contain.setVisible(!regex.isSelected()));
add(regex);
}
/**
* Create a new TextFilterPanel and initialize its fields according
* to the contents of the given TextFilter.
*
* @param f filter to use for initialization
*/
public TextFilterPanel(TextFilter f)
{
this();
setContents(f);
}
@Override
public Filter filter()
{
TextFilter filter = (TextFilter)CardAttribute.createFilter(type);
filter.contain = contain.getSelectedItem();
filter.text = text.getText();
filter.regex = regex.isSelected();
return filter;
}
@Override
public void setContents(FilterLeaf<?> filter) throws IllegalArgumentException
{
if (filter instanceof TextFilter)
setContents((TextFilter)filter);
else
throw new IllegalArgumentException("Illegal text filter " + filter.type());
}
@Override
public void setContents(TextFilter filter)
{
type = filter.type();
contain.setSelectedItem(filter.contain);
text.setText(filter.text);
regex.setSelected(filter.regex);
contain.setVisible(!filter.regex);
}
}
<file_sep>package editor.gui.filter.editor;
import java.awt.Dimension;
import javax.swing.BoxLayout;
import javax.swing.JCheckBox;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import editor.database.attributes.CardAttribute;
import editor.filter.Filter;
import editor.filter.leaf.FilterLeaf;
import editor.filter.leaf.VariableNumberFilter;
import editor.gui.generic.ComboBoxPanel;
import editor.util.Comparison;
/**
* This class represents a panel that corresponds to a filter that groups cards
* by a numeric characteristic that can also be variable.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class VariableNumberFilterPanel extends FilterEditorPanel<VariableNumberFilter>
{
/**
* Combo box presenting comparison options.
*/
private ComboBoxPanel<Comparison> comparison;
/**
* Spinner allowing the user to choose a value to compare with.
*/
private JSpinner spinner;
/**
* Type of filter this VariableNumberFilterPanel edits.
*/
private CardAttribute type;
/**
* Check box specifying whether the characteristic should be variable
* or not.
*/
private JCheckBox variable;
/**
* Create a new VariableNumberFilterPanel.
*/
public VariableNumberFilterPanel(String v)
{
super();
setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
comparison = new ComboBoxPanel<>(Comparison.values());
add(comparison);
spinner = new JSpinner();
spinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 1.0));
spinner.setMaximumSize(new Dimension(100, Integer.MAX_VALUE));
add(spinner);
variable = new JCheckBox("Contains " + v);
variable.addActionListener((e) -> spinner.setEnabled(!variable.isSelected()));
add(variable);
}
/**
* Create a new VariableNumberFilterPanel, using the given
* VariableNumberFilter to initialize its fields.
*
* @param f filter to use for initialization
*/
public VariableNumberFilterPanel(VariableNumberFilter f)
{
this(f.type() == CardAttribute.LOYALTY ? "X or *" : "*");
setContents(f);
}
@Override
public Filter filter()
{
VariableNumberFilter filter = (VariableNumberFilter)CardAttribute.createFilter(type);
filter.operation = comparison.getSelectedItem();
filter.operand = (double)spinner.getValue();
filter.varies = variable.isSelected();
return filter;
}
@Override
public void setContents(FilterLeaf<?> filter) throws IllegalArgumentException
{
if (filter instanceof VariableNumberFilter)
setContents((VariableNumberFilter)filter);
else
throw new IllegalArgumentException("Illegal variable number filter " + filter.type());
}
@Override
public void setContents(VariableNumberFilter filter)
{
type = filter.type();
comparison.setSelectedItem(filter.operation);
spinner.setValue(filter.operand);
variable.setSelected(filter.varies);
spinner.setEnabled(!filter.varies);
comparison.setEnabled(!filter.varies);
}
}
<file_sep>package editor.util;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.function.Consumer;
/**
* This interface represents a factory for creating mouse listeners that don't listen for
* all three of mouse pressed, released, and clicked events.
*
* @author <NAME>
*/
public interface MouseListenerFactory
{
/**
* Compose several MouseListeners.
*
* @param listeners MouseListeners to compose
* @return a MouseListener that performs all of the actions of the given listeners
* in the order they are listed.
*/
static MouseListener composeListeners(MouseListener... listeners)
{
return new MouseListener()
{
@Override
public void mouseClicked(MouseEvent e)
{
for (MouseListener listener : listeners)
listener.mouseClicked(e);
}
@Override
public void mouseEntered(MouseEvent e)
{
for (MouseListener listener : listeners)
listener.mouseEntered(e);
}
@Override
public void mouseExited(MouseEvent e)
{
for (MouseListener listener : listeners)
listener.mouseExited(e);
}
@Override
public void mousePressed(MouseEvent e)
{
for (MouseListener listener : listeners)
listener.mousePressed(e);
}
@Override
public void mouseReleased(MouseEvent e)
{
for (MouseListener listener : listeners)
listener.mouseReleased(e);
}
};
}
/**
* Create a MouseListener that only listens for mouse click events (press followed
* by release).
*
* @param mouseClicked action to perform when the mouse is clicked
* @return a MouseListener that performs the given action when the mouse is clicked.
*/
static MouseListener createClickListener(Consumer<MouseEvent> mouseClicked)
{
return new MouseAdapter()
{
@Override
public void mouseClicked(MouseEvent e)
{
mouseClicked.accept(e);
}
};
}
/**
* Create a MouseListener that only listens for mouse double-click events.
*
* @param mouseClicked action to perform when the mouse is double-clicked
* @return a MouseListener that performs the given action when the mouse is
* double-clicked.
*/
static MouseListener createDoubleClickListener(Consumer<MouseEvent> mouseClicked)
{
return new MouseAdapter()
{
@Override
public void mouseClicked(MouseEvent e)
{
if (e.getClickCount() == 2)
mouseClicked.accept(e);
}
};
}
/**
* Create a MouseListener that listens for a mouse being held down (pressed + released).
* A mouse-hold event can be simulated by setting a state that continuously applies some
* function or changes a property when the mouse is pressed and stopping or undoing the
* change when the mouse is released.
*
* @param pressed action to perform when the mouse is pressed
* @param released action to perform when the mouse is released
* @return a MouseListener that listens for a mouse press and a mouse release.
*/
static MouseListener createHoldListener(Consumer<MouseEvent> pressed, Consumer<MouseEvent> released)
{
return new MouseAdapter()
{
@Override
public void mousePressed(MouseEvent e)
{
pressed.accept(e);
}
@Override
public void mouseReleased(MouseEvent e)
{
released.accept(e);
}
};
}
/**
* Create a MouseEvent that listens for a mouse to be inside a component (entered + exited).
* This can be simulated by setting a state that continuously applies a function or changes
* a property when the mouse enters and stopping or undoing the change when it exits.
*
* @param entered action to perform when the mouse enters
* @param exited action to perform when the mouse exits
* @return a MouseListener that listens for a mouse entering or exiting
*/
static MouseListener createMotionListener(Consumer<MouseEvent> entered, Consumer<MouseEvent> exited)
{
return new MouseAdapter()
{
@Override
public void mouseEntered(MouseEvent e)
{
entered.accept(e);
}
@Override
public void mouseExited(MouseEvent e)
{
exited.accept(e);
}
};
}
/**
* Create a MouseListener that only listens for mouse press events.
*
* @param mousePressed action to perform when the mouse is pressed
* @return a MouseListener that performs the given action when the mouse is pressed.
*/
static MouseListener createPressListener(Consumer<MouseEvent> mousePressed)
{
return new MouseAdapter()
{
@Override
public void mousePressed(MouseEvent e)
{
mousePressed.accept(e);
}
};
}
/**
* Create a MouseListener that only listens for mouse release events.
*
* @param mouseReleased action to perform when the mouse is released
* @return a MouseListener that performs the given action when the mouse is released.
*/
static MouseListener createReleaseListener(Consumer<MouseEvent> mouseReleased)
{
return new MouseAdapter()
{
@Override
public void mouseReleased(MouseEvent e)
{
mouseReleased.accept(e);
}
};
}
/**
* Create a MouseListener that does the same thing for all mouse events
* (click, press, release, enter, and exit).
*
* @param handler action to perform on the mouse event
* @return a MouseListener that performs the same action for all types of
* events.
*/
static MouseListener createUniversalListener(Consumer<MouseEvent> handler)
{
return new MouseListener(){
@Override
public void mouseReleased(MouseEvent e)
{
handler.accept(e);
}
@Override
public void mousePressed(MouseEvent e)
{
handler.accept(e);
}
@Override
public void mouseExited(MouseEvent e)
{
handler.accept(e);
}
@Override
public void mouseEntered(MouseEvent e)
{
handler.accept(e);
}
@Override
public void mouseClicked(MouseEvent e)
{
handler.accept(e);
}
};
}
}
<file_sep>package editor.gui.display;
import java.awt.Component;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import javax.swing.DefaultListModel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPopupMenu;
import javax.swing.ListSelectionModel;
import editor.collection.deck.CategorySpec;
import editor.database.card.Card;
import editor.gui.ccp.CCPItems;
import editor.gui.ccp.data.DataFlavors;
import editor.gui.ccp.handler.CategoryTransferHandler;
import editor.gui.editor.CategoryEditorPanel;
import editor.util.MouseListenerFactory;
import editor.util.PopupMenuListenerFactory;
/**
* This class represents an element that can display a list of {@link CategorySpec}s.
* Optionally, it can show an extra line that is not an element, which is useful
* for a hint of how to perform an action on the list.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class CategoryList extends JList<String>
{
/**
* This class represents a model for displaying a list of {@link CategorySpec}s.
*
* @author <NAME>
*/
private class CategoryListModel extends DefaultListModel<String>
{
/**
* Get the name of the {@link CategorySpec} at the specified position.
*
* @param index index into the list to look at
* @return the name of the {@link CategorySpec} at the index.
*/
@Override
public String getElementAt(int index)
{
if (index < categories.size())
return categories.get(index).getName();
else if (!hint.isEmpty() && index == categories.size())
return hint;
else
throw new IndexOutOfBoundsException("Illegal list index " + index);
}
/**
* {@inheritDoc}
* If there is a hint to show, the size is one more than the number of
* {@link CategorySpec}s. Otherwise it's just the number of
* {@link CategorySpec}s.
*
* @return the number of elements to show.
*/
@Override
public int getSize()
{
return categories.size() + (!hint.isEmpty() ? 1 : 0);
}
}
/**
* Categories to show.
*/
private List<CategorySpec> categories;
/**
* Hint to show for activating the CategoryList (for example, to edit
* or add categories). If it's the empty string, don't show it.
*/
private String hint;
/**
* Model for how to display categories.
*/
private CategoryListModel model;
/**
* Whether or not the popup menu was triggered by the mouse (some keyboards
* have keys to open the context menu).
*/
private boolean mouseTriggeredPopup;
/**
* Create a new empty CategoryList.
*
* @param h extra line to show in italics.
*/
public CategoryList(String h)
{
setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
hint = h;
categories = new ArrayList<>();
setModel(model = new CategoryListModel());
if (!hint.isEmpty())
{
addMouseListener(MouseListenerFactory.createDoubleClickListener((e) -> {
int index = locationToIndex(e.getPoint());
var rec = Optional.ofNullable(getCellBounds(index, index));
CategoryEditorPanel.showCategoryEditor(CategoryList.this, rec.filter((r) -> r.contains(e.getPoint())).map((r) -> getCategoryAt(index))).ifPresent((s) -> {
if (index < 0)
addCategory(s);
else
setCategoryAt(index, s);
});
}));
}
setTransferHandler(new CategoryTransferHandler(
() -> {
int row = getSelectedIndex();
if (row < 0 || row >= categories.size())
return null;
else
return categories.get(row);
},
(c) -> false, // Duplicate categories are allowed
(c) -> {
int row = getSelectedIndex();
if (row < 0 || row >= categories.size())
addCategory(c);
else
{
categories.add(row, c);
model.add(row, c.getName());
}
return true;
},
(c) -> removeCategoryAt(categories.indexOf(c))
));
// Popup menu for copying and pasting categories
mouseTriggeredPopup = false;
JPopupMenu menu = new JPopupMenu() {
@Override
public void show(Component invoker, int x, int y) {
if (mouseTriggeredPopup)
{
int row = locationToIndex(new Point(x, y));
if (row >= 0)
setSelectedIndex(row);
else
clearSelection();
}
super.show(invoker, x, y);
}
};
setComponentPopupMenu(menu);
CCPItems ccp = new CCPItems(this, true);
menu.add(ccp.cut);
menu.add(ccp.copy);
menu.add(ccp.paste);
menu.addPopupMenuListener(PopupMenuListenerFactory.createVisibleListener((e) -> {
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
ccp.paste.setEnabled(clipboard.isDataFlavorAvailable(DataFlavors.categoryFlavor));
}));
}
/**
* Create a new CategoryList with the specified {@link CategorySpec}s.
*
* @param h extra line to show in italics
* @param c {@link CategorySpec}s to show
*/
public CategoryList(String h, CategorySpec... c)
{
this(h, Arrays.asList(c));
}
/**
* Create a new CategoryList with the specified list
* of {@link CategorySpec}.
*
* @param h extra line to show in italics
* @param c list of {@link CategorySpec}s to show
*/
public CategoryList(String h, List<CategorySpec> c)
{
this(h);
categories.addAll(c);
}
/**
* If the category specification contains explicitly included or excluded cards,
* warn the user that they will be removed before being added to this list.
*
* @param spec specification to check
* @return <code>true</code> if the specification has no explicitly-included or
* -excluded cards or if it does and the user selects to add it anyway, and
* <code>false</code> otherwise.
*/
private boolean confirmListClean(CategorySpec spec)
{
if (!spec.getWhitelist().isEmpty() || !spec.getBlacklist().isEmpty())
{
return JOptionPane.showConfirmDialog(this,
"Category "
+ spec.getName()
+ " contains cards in its whitelist or blacklist which will not be included in the preset category."
+ " Continue?",
"Add to Presets",
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
}
else
return true;
}
/**
* Add a new {@link CategorySpec} to the list.
*
* @param c {@link CategorySpec} to display
*/
public void addCategory(CategorySpec c)
{
if (confirmListClean(c))
{
CategorySpec copy = new CategorySpec(c);
for (final Card card : copy.getBlacklist())
copy.include(card);
for (final Card card : copy.getWhitelist())
copy.exclude(card);
categories.add(copy);
model.addElement(copy.getName());
}
}
/**
* Get all of the {@link CategorySpec}s.
*
* @return the {@link CategorySpec} list this CategoryList displays.
*/
public List<CategorySpec> getCategories()
{
return Collections.unmodifiableList(categories);
}
/**
* Get the {@link CategorySpec} at a certain position.
*
* @param index index into the list to search
* @return the {@link CategorySpec} at the given index.
*/
public CategorySpec getCategoryAt(int index)
{
return categories.get(index);
}
/**
* Get the number of items in this CategoryList.
*
* @return the number of {@link CategorySpec}s in this CategoryList.
*/
public int getCount()
{
return categories.size();
}
@Override
public int locationToIndex(Point p)
{
int index = super.locationToIndex(p);
return index < categories.size() ? index : -1;
}
/**
* Remove the {@link CategorySpec} at a particular index.
*
* @param index index to remove the CategorySpec at
*/
public void removeCategoryAt(int index)
{
categories.remove(index);
model.remove(index);
}
/**
* Set the {@link CategorySpec} at a particular position in the list.
*
* @param index index to set
* @param c {@link CategorySpec} to display
*/
public void setCategoryAt(int index, CategorySpec c)
{
if (confirmListClean(c))
{
CategorySpec copy = new CategorySpec(c);
for (final Card card : copy.getBlacklist())
copy.include(card);
for (final Card card : copy.getWhitelist())
copy.exclude(card);;
categories.set(index, copy);
model.setElementAt(copy.getName(), index);
}
}
@Override
public Point getPopupLocation(MouseEvent event)
{
mouseTriggeredPopup = event != null;
return super.getPopupLocation(event);
}
}
<file_sep>package editor.gui.filter.editor;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import editor.database.attributes.CardAttribute;
import editor.filter.Filter;
import editor.filter.leaf.FilterLeaf;
/**
* This class represents a panel that corresponds to a filter that
* returns <code>true</code> or <code>false</code> for all cards.
* There are no fields to edit.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class BinaryFilterPanel extends FilterEditorPanel<FilterLeaf<?>>
{
/**
* String to display for letting all cards through the filter.
*/
private static final String ALL = "This clause will match every card.";
/**
* String to display for letting no cards through the filter.
*/
private static final String NONE = "This clause will not match any card.";
/**
* Whether or not to let cards through the filter.
*/
private boolean through;
/**
* Create a new BinaryFilterPanel.
*
* @param let whether or not cards should pass through the filter
*/
public BinaryFilterPanel(boolean let)
{
super();
setLayout(new GridLayout(1, 1));
setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0));
JLabel label = new JLabel((through = let) ? ALL : NONE);
add(label);
}
@Override
public Filter filter()
{
return CardAttribute.createFilter(through ? CardAttribute.ANY : CardAttribute.NONE);
}
/**
* {@inheritDoc}
* There are no contents to set, so this doesn't do anything.
*/
@Override
public void setContents(FilterLeaf<?> filter)
{
}
}
<file_sep>package editor.serialization;
import java.awt.Color;
import java.lang.reflect.Type;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import editor.collection.deck.CategorySpec;
import editor.database.card.Card;
import editor.filter.Filter;
/**
* A JSON serializer and deserializer for {@link CategorySpec}.
*
* @author <NAME>
*/
public class CategoryAdapter implements JsonSerializer<CategorySpec>, JsonDeserializer<CategorySpec>
{
@Override
public JsonElement serialize(CategorySpec src, Type typeOfSrc, JsonSerializationContext context)
{
JsonObject category = new JsonObject();
category.addProperty("name", src.getName());
category.add("filter", context.serialize(src.getFilter()));
category.add("whitelist", context.serialize(src.getWhitelist()));
category.add("blacklist", context.serialize(src.getBlacklist()));
category.add("color", context.serialize(src.getColor()));
return category;
}
@Override
public CategorySpec deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException
{
JsonObject obj = json.getAsJsonObject();
CategorySpec category = new CategorySpec();
category.setName(obj.get("name").getAsString());
category.setFilter(context.deserialize(obj.get("filter"), Filter.class));
for (JsonElement element : obj.get("whitelist").getAsJsonArray())
category.include(context.deserialize(element, Card.class));
for (JsonElement element : obj.get("blacklist").getAsJsonArray())
category.exclude(context.deserialize(element, Card.class));
category.setColor(context.deserialize(obj.get("color"), Color.class));
return category;
}
}<file_sep># MTG Workstation
This is a Magic: the Gathering deck editor that supports custom categories for cards in decks.
Magic: the Gathering is owned by Wizards of the Coast, to which I have no affiliation.
This program depends on the following:
- Java 14 JDK, which can be installed from https://www.oracle.com/java/technologies/javase-downloads.html
- Google JSON library, GSON, which can be found at https://code.google.com/p/google-gson/
- Natty, which can be found at http://natty.joestelmach.com/
This depends on MTGJSON (http://www.mtgjson.com/) for its card list.
To run this from the command line, run `mvn exec:java`. It may be necessary to run `mvn compile` first.
<file_sep>package editor.gui.editor;
import java.io.File;
/**
* This class represents an exception that might occur during loading a deck.
*/
@SuppressWarnings("serial")
public class DeckLoadException extends Exception
{
/**
* File that caused the exception.
*/
public final File file;
/**
* Create a new exception with the specified file and message.
*
* @param f File that was attempting to be loaded
* @param message message to display
*/
public DeckLoadException(File f, String message)
{
super(message);
file = f;
}
/**
* Create a new exception with the specified file caused by the specified
* #Throwable.
*
* @param f File that was attempting to be loaded
* @param cause cause of this exception
*/
public DeckLoadException(File f, Throwable cause)
{
super(cause.getMessage(), cause);
file = f;
}
/**
* Create a new exception with the specified file.
*
* @param f File that was attempting to be loaded.
*/
public DeckLoadException(File f)
{
this(f, "");
}
}<file_sep>package editor.database.attributes;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import editor.database.symbol.ManaSymbol;
import editor.database.symbol.Symbol;
import editor.gui.generic.ComponentUtils;
import editor.util.Containment;
/**
* This class represents a mana cost. It contains a list of Symbols, which may contain duplicate elements.
* It also calculates its converted mana cost based on the number and types of Symbols it contains, and
* can determine if it is a super- or subset of another mana cost.
*
* @author <NAME>
* @see editor.database.symbol.Symbol
*/
public class ManaCost extends AbstractList<ManaSymbol> implements Comparable<ManaCost>
{
/**
* Pattern for finding mana costs in Strings.
*/
public static final Pattern MANA_COST_PATTERN = Pattern.compile("(\\{[cwubrgCWUBRG\\/phPH\\dsSxXyYzZ]+\\})+");
/**
* Get the mana cost represented by the given String. The String should only be a list of symbols,
* and each one should be the symbol's text surrounded by {}.
*
* @param s String to parse
* @return ManaCost represented by the String
* @throws IllegalArgumentException if there are invalid characters
*/
public static ManaCost parseManaCost(String s) throws IllegalArgumentException
{
return tryParseManaCost(s).orElseThrow(() -> new IllegalArgumentException('"' + s + "\" is not a mana cost"));
}
/**
* Get the mana cost represented by the given String. The String should only be a list of symbols,
* and each one should be the symbol's text surrounded by {}.
*
* @param s String to parse
* @return ManaCost represented by the String, or null if there isn't one
*/
public static Optional<ManaCost> tryParseManaCost(String s)
{
var symbols = new ArrayList<ManaSymbol>();
for (final var m : Symbol.SYMBOL_PATTERN.matcher(s).results().collect(Collectors.toList()))
{
s = s.replaceFirst(Pattern.quote(m.group()), "");
var symbol = ManaSymbol.tryParseManaSymbol(m.group(1));
if (symbol.isEmpty())
return Optional.empty();
else
symbols.add(symbol.get());
}
return s.isEmpty() ? Optional.of(new ManaCost(symbols)) : Optional.empty();
}
/**
* List of Symbols in this ManaCost.
*/
private final List<ManaSymbol> cost;
/**
* Total color weight of the Symbols in this ManaCost.
*/
private Map<ManaType, Double> weights;
/**
* Create a new, empty mana cost.
*/
public ManaCost()
{
this(new ArrayList<>());
}
/**
* Create a new mana cost. The symbols in it will be sorted in order.
*
* @param symbols not-necessarily-sorted list of symbols in the cost
*/
public ManaCost(List<ManaSymbol> symbols)
{
ManaSymbol.sort(symbols);
cost = Collections.unmodifiableList(symbols);
weights = ManaSymbol.createWeights();
for (ManaSymbol sym : cost)
for (var e : sym.colorWeights().entrySet())
weights.compute(e.getKey(), (k, v) -> e.getValue() + v);
}
/**
* Set of colors represented by the Symbols in this ManaCost. It is a list, because order
* matters.
*
* @return List of ManaTypes representing all the colors in this ManaCost.
*/
public List<ManaType> colors()
{
return weights.entrySet().stream().filter((e) -> e.getKey() != ManaType.COLORLESS && e.getValue() > 0).map(Map.Entry::getKey).sorted().collect(Collectors.toList());
}
/**
* @return Converted mana cost of this ManaCost, which is the total value of its Symbols.
*/
public double cmc()
{
return cost.stream().mapToDouble(ManaSymbol::value).sum();
}
/**
* @return The number of Symbols in this ManaCost.
*/
@Override
public int size()
{
return cost.size();
}
/**
* Get the Symbol at the specified index.
*
* @param index Index to look in
* @return The Symbol at the specified index.
*/
@Override
public ManaSymbol get(int index)
{
return cost.get(index);
}
/**
* Get the index into this ManaCost of the first occurrence of the given
* Object.
*
* @param o Object to look for
* @return The index into this ManaCost of the given Object, or
* -1 if it doesn't exist.
*/
@Override
public int indexOf(Object o)
{
return cost.indexOf(o);
}
/**
* Get the index into this ManaCost of the last occurrence of the
* given Object.
*
* @param o Object to look for
* @return The index into this ManaCost of the given Object, or
* -1 if it doesn't exist.
*/
@Override
public int lastIndexOf(Object o)
{
return cost.lastIndexOf(o);
}
/**
* @return <code>true</code> if the mana cost is empty (usually so with lands, for
* example), and <code>false</code> otherwise.
*/
@Override
public boolean isEmpty()
{
return cost.isEmpty();
}
/**
* @return This ManaCost's color weight Map.
*/
public Map<ManaType, Double> colorWeight()
{
return weights;
}
/**
* Returns true if and only if the specified Object is a Symbol and that
* Symbol is contained within this ManaCost.
*
* @param o Object to look for
* @return <code>true</code> if this ManaCost contains the specified Object.
*/
@Override
public boolean contains(Object o)
{
return cost.contains(o);
}
/**
* Returns true if and only if all of the objects in the specified collection
* are Symbols and all of them are contained within this ManaCost.
*
* @param c Collection of objects to look for
* @return <code>true</code> if this ManaCost contains all of the specified Objects.
*/
@Override
public boolean containsAll(Collection<?> c)
{
return cost.containsAll(c);
}
/**
* @param o ManaCost to compare with
* @return <code>true</code> if the symbols in this ManaCost are all in
* the other ManaCost, and <code>false</code> otherwise.
*/
public boolean isSubset(ManaCost o)
{
var myCounts = cost.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
var oCounts = o.cost.stream().collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
for (Symbol sym : myCounts.keySet())
if (myCounts.get(sym) > oCounts.getOrDefault(sym, 0L))
return false;
return true;
}
/**
* @param o ManaCost to compare with
* @return <code>true</code> if the symbols in the other ManaCost are all in
* this ManaCost, and <code>false</code> otherwise.
*/
public boolean isSuperset(ManaCost o)
{
return o.isSubset(this);
}
/**
* @param o ManaCost to compare with
* @return A negative number if this ManaCost's converted mana cost is less than
* the other or if its color weight is less, 0 if they are the same, and a positive number
* if they are greater.
*/
@Override
public int compareTo(ManaCost o)
{
if (isEmpty() && !o.isEmpty())
return -1;
else if (!isEmpty() && o.isEmpty())
return 1;
else
{
// Start by sorting by CMC
int diff = (int)(2 * (cmc() - o.cmc()));
// If the two costs have the same CMC, sort them by symbol weight
if (diff == 0)
{
var weightList = weights.values().stream().sorted().collect(Collectors.toList());
var oWeightList = o.weights.values().stream().sorted().collect(Collectors.toList());
for (int i = 0; i < ManaType.values().length; i++)
diff += (weightList.get(i) - oWeightList.get(i))*Math.pow(10, i);
}
// If the two costs have the same weight, sort them by color
if (diff == 0)
for (int i = 0; diff == 0 && i < Math.min(size(), o.size()); i++)
diff = get(i).compareTo(o.get(i));
return diff;
}
}
/**
* @return A String containing this ManaCost's symbols represented by HTML
* tags for display in an HTML-enabled panel.
*/
public String
toHTMLString()
{
return cost.stream()
.map((sym) -> "<img src=\"" + Symbol.class.getResource("/images/icons/" + sym.getName()) + "\" width=\"" + ComponentUtils.TEXT_SIZE + "\" height=\"" + ComponentUtils.TEXT_SIZE + "\"/>")
.collect(Collectors.joining());
}
/**
* @return A String representation of this ManaCost.
*/
@Override
public String toString()
{
return cost.stream().map(Symbol::toString).collect(Collectors.joining());
}
/**
* @param other Object to compare with
* @return <code>true</code> if the other Object is a ManaCost with the same list
* of Symbols, and <code>false</code> otherwise.
*/
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other.getClass() != getClass())
return false;
if (other == this)
return false;
return Containment.CONTAINS_EXACTLY.test(cost, ((ManaCost)other).cost);
}
/**
* @return A unique integer for this ManaCost.
*/
@Override
public int hashCode()
{
return cost.hashCode();
}
/**
* @return An iterator over the Symbols in this ManaCost.
*/
@Override
public Iterator<ManaSymbol> iterator()
{
return cost.iterator();
}
/**
* @return A ListIterator over the Symbols in this ManaCost that
* allows traversal in either direction.
*/
@Override
public ListIterator<ManaSymbol> listIterator()
{
return cost.listIterator();
}
/**
* @param index Index to start at
* @return A ListIterator over the Symbols in this ManaCost
* that allows traversal in either direction starting at
* the given index.
*/
@Override
public ListIterator<ManaSymbol> listIterator(int index)
{
return cost.listIterator(index);
}
/**
* @param fromIndex index to start from (inclusive)
* @param toIndex index to end at (exclusive)
* @return A view into this ManaCost containing the symbols between the given
* indices (inclusive at the beginning and exclusive at the end).
*/
@Override
public List<ManaSymbol> subList(int fromIndex, int toIndex)
{
return cost.subList(fromIndex, toIndex);
}
/**
* @return An array containing all of the Symbols in this ManaCost.
*/
@Override
public Object[] toArray()
{
return cost.toArray();
}
/**
* Returns an array containing all of the Symbols in this ManaCost, using
* the given array to determine runtime type. If the given array is large
* enough to fit the Symbols, they are put in it and the rest of the values
* are set to null. Otherwise, a new array is created and returned.
*
* @param a Array determining runtime type of the return value
* @return An array containing all of the Symbols in this ManaCost, which is
* null-terminated if there is extra room.
*/
@Override
public <T> T[] toArray(T[] a)
{
return cost.toArray(a);
}
}
<file_sep>package editor.database.symbol;
import java.awt.Image;
import java.io.IOException;
import java.util.Optional;
import java.util.regex.Pattern;
import javax.imageio.ImageIO;
import javax.swing.Icon;
import javax.swing.ImageIcon;
/**
* This class represents a symbol that might appear on a card in Magic: The Gathering. It has a weight for each
* color, which is equal to 1 divided by the number of colors the symbol has, or zero if it does not have that
* color. Symbol cannot be instantiated; rather, instances of it are accessed using static variables that contain
* all possible values those symbols can attain. For colored symbols, those variables will be Maps mapping colors
* onto the correct symbols. For constant generic symbols, they will be an array containing the colorless symbol
* corresponding to the index into the array and others for special symbols (100 and 1,000,000). Nonmana symbols,
* variable symbols, and the half-mana symbol all have a single static variable that contains an instance of that
* class.
*
* @author <NAME>
*/
public abstract class Symbol
{
/**
* Pattern for finding an individual symbol in a string.
*/
public static final Pattern SYMBOL_PATTERN = Pattern.compile("\\{([^}]+)\\}");
/**
* Name for a Symbol whose icon file can't be found.
*/
public static final String UNKNOWN_ICON = "unknown.png";
/**
* Create a Symbol from a String.
*
* @param s String representation of the new symbol, not surrounded by {}
* @return a new symbol that the specified String represents
* @throws IllegalArgumentException if the String doesn't correspond to a symbol
*/
public static Symbol parseSymbol(String s) throws IllegalArgumentException
{
return tryParseSymbol(s).orElseThrow(() -> new IllegalArgumentException('"' + s + "\" is not a symbol"));
}
/**
* Create a Symbol from a String.
*
* @param s String representation of the new symbol, not surrounded by {}
* @return a new symbol that the specified String represents, or null if there is
* no such symbol.
*/
public static Optional<? extends Symbol> tryParseSymbol(String s)
{
var mana = ManaSymbol.tryParseManaSymbol(s);
if (mana.isPresent())
return mana;
var functional = FunctionalSymbol.tryParseFunctionalSymbol(s);
if (functional.isPresent())
return functional;
return Optional.empty();
}
/**
* Icon to show when displaying this Symbol.
*/
private final ImageIcon icon;
/**
* Name of the file containing the icon (not including parent directory).
*/
private final String name;
/**
* The textual representation of this Symbol.
*/
private final String text;
/**
* Create a new Symbol.
*
* @param iconName name of the icon file for the new Symbol
*/
protected Symbol(String iconName, String t)
{
ImageIcon img;
try
{
img = new ImageIcon(ImageIO.read(getClass().getResourceAsStream("/images/icons/" + iconName)));
}
catch (IOException e)
{
img = new ImageIcon();
e.printStackTrace();
}
icon = img;
name = iconName;
text = t;
}
@Override
public boolean equals(Object other)
{
return other != null && (other == this || other.getClass() == getClass() && toString().equals(other.toString()));
}
/**
* Get the icon that should be used to display this Symbol.
*
* @return this Symbol's icon with its default width.
*/
public Icon getIcon()
{
return icon;
}
/**
* Get this Symbol's icon with the specified width. The height will be scaled accordingly as well.
*
* @param newSize width of the icon
* @return the resized icon
*/
public Icon getIcon(int newSize)
{
return new ImageIcon(icon.getImage().getScaledInstance(-1, newSize, Image.SCALE_SMOOTH));
}
/**
* Get the name of this Symbol.
*
* @return the name of this Symbol
*/
public String getName()
{
return name;
}
@Override
public int hashCode()
{
return toString().hashCode();
}
/**
* {@inheritDoc}
* The String representation of this Symbol is its text surrounded by {}.
*/
@Override
public String toString()
{
return "{" + text + "}";
}
}
<file_sep>package editor.gui.editor;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Point;
import java.awt.SystemColor;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingUtilities;
import javax.swing.Timer;
import javax.swing.border.TitledBorder;
import javax.swing.event.MouseInputAdapter;
import editor.collection.deck.Deck;
import editor.database.card.Card;
import editor.gui.display.CardTable;
import editor.gui.display.CardTableModel;
import editor.gui.generic.ColorButton;
import editor.gui.generic.ComponentUtils;
import editor.gui.settings.SettingsDialog;
import editor.util.UnicodeSymbols;
/**
* This class represents a panel that shows information about a category in a deck.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class CategoryPanel extends JPanel
{
/**
* This class represents a timer controlling the flash of the panel when it is skipped to.
* The flash will last 400ms.
*
* @author <NAME>
*/
private class FlashTimer extends Timer
{
/**
* Progress of the flash.
*/
private int count;
/**
* Amount of ticks until the flash disappears.
*/
private final int END = 20;
/**
* Color of the flash.
*/
private final Color FLASH = SystemColor.textHighlight;
/**
* Create a new FlashTimer.
*/
public FlashTimer()
{
super(20, null);
count = 0;
addActionListener((e) -> {
if (++count > END)
stop();
else
{
double ratio = (double)count / (double)END;
int r = (int)(FLASH.getRed() + (background.getRed() - FLASH.getRed()) * ratio);
int g = (int)(FLASH.getGreen() + (background.getGreen() - FLASH.getGreen()) * ratio);
int b = (int)(FLASH.getBlue() + (background.getBlue() - FLASH.getBlue()) * ratio);
setBackground(new Color(r, g, b));
repaint();
}
});
}
/**
* Restart the timer, resetting the progress of the flash.
*/
@Override
public void restart()
{
count = 0;
super.restart();
}
/**
* Stop the timer and set the panel to its default background color.
*/
@Override
public void stop()
{
super.stop();
setBackground(background);
repaint();
}
}
/**
* This class represents a mouse wheel listener that returns mouse wheel control to an outer scroll
* pane when this one's scroll pane has reached a limit.
* <p>
* It is adapted from a StackOverflow answer to the same problem, which can be found at
*
* @author Nemi
* @link{http://stackoverflow.com/questions/1377887/jtextpane-prevents-scrolling-in-the-parent-jscrollpane}. TODO: Adapt this code better
* @since November 24, 2009
*/
private class PDMouseWheelListener implements MouseWheelListener
{
private JScrollBar bar;
private JScrollPane parent;
private JScrollPane parentScrollPane;
private int previousValue = 0;
public PDMouseWheelListener(JScrollPane p)
{
parent = p;
bar = parent.getVerticalScrollBar();
}
private MouseWheelEvent cloneEvent(MouseWheelEvent e)
{
return new MouseWheelEvent(getParentScrollPane(), e.getID(), e.getWhen(),
e.getModifiersEx(), 1, 1, e.getClickCount(),
false, e.getScrollType(), e.getScrollAmount(), e.getWheelRotation());
}
private int getMax()
{
return bar.getMaximum() - bar.getVisibleAmount();
}
private JScrollPane getParentScrollPane()
{
if (parentScrollPane == null)
{
Component parent = getParent();
while (!(parent instanceof JScrollPane) && parent != null)
parent = parent.getParent();
parentScrollPane = (JScrollPane)parent;
}
return parentScrollPane;
}
@Override
public void mouseWheelMoved(MouseWheelEvent e)
{
JScrollPane parent = getParentScrollPane();
if (parent != null)
{
/*
* Only dispatch if we have reached top/bottom on previous scroll
*/
if (e.getWheelRotation() < 0)
{
if (bar.getValue() == 0 && previousValue == 0)
parent.dispatchEvent(cloneEvent(e));
}
else
{
if (bar.getValue() == getMax() && previousValue == getMax())
parent.dispatchEvent(cloneEvent(e));
}
previousValue = bar.getValue();
}
/*
* If parent scrollpane doesn't exist, remove this as a listener.
* We have to defer this till now (vs doing it in constructor)
* because in the constructor this item has no parent yet.
*/
else
this.parent.removeMouseWheelListener(this);
}
}
/**
* Label showing the average CMC of cards in the category.
*/
private JLabel avgCMCLabel;
/**
* Default background color of this panel.
*/
private Color background;
/**
* Border showing the name of the category.
*/
protected TitledBorder border;
/**
* Button displaying and allowing editing of the category's color.
*/
protected ColorButton colorButton;
/**
* Label showing the number of cards in the category.
*/
private JLabel countLabel;
/**
* Category in the Deck data structure.
*/
private Deck deck;
/**
* Button for editing the category.
*/
protected JButton editButton;
/**
* Timer timing flashing of the border of this panel when it is skipped to.
*/
private Timer flashTimer;
/**
* Model to tell the table how to display the contents of the category.
*/
private CardTableModel model;
/**
* Name of this category for display purposes.
*/
private String name;
/**
* Combo box showing the user-defined rank of the category.
*/
protected JComboBox<Integer> rankBox;
/**
* Button to remove the category.
*/
protected JButton removeButton;
/**
* Table to display the contents of the category.
*/
protected CardTable table;
/**
* Number of rows to display in the table.
*/
private int tableRows;
/**
* Create a new CategoryPanel.
*
* @param d deck containing the category to display
* @param n name of the category to display
* @param editor {@link EditorFrame} containing the new CategoryPanel
*/
public CategoryPanel(Deck d, String n, EditorFrame editor)
{
super();
deck = d;
name = n;
background = getBackground();
flashTimer = new FlashTimer();
tableRows = SettingsDialog.settings().editor.categories.rows;
// Each category is surrounded by a border with a title
setBorder(border = BorderFactory.createTitledBorder(name));
setLayout(new BorderLayout());
JPanel topPanel = new JPanel();
topPanel.setLayout(new BorderLayout(0, 0));
// Labels showing category stats
Box statsPanel = new Box(BoxLayout.X_AXIS);
countLabel = new JLabel("Cards: " + deck.getCategoryList(name).total());
statsPanel.add(countLabel);
statsPanel.add(ComponentUtils.createHorizontalSeparator(10, ComponentUtils.TEXT_SIZE));
avgCMCLabel = new JLabel("Average CMC: 0");
statsPanel.add(avgCMCLabel);
statsPanel.add(Box.createHorizontalGlue());
topPanel.add(statsPanel, BorderLayout.WEST);
// Panel containing edit and remove buttons
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
rankBox = new JComboBox<>(IntStream.range(0, deck.categories().size()).boxed().toArray(Integer[]::new));
rankBox.setSelectedIndex(deck.getCategoryRank(name));
buttonPanel.add(rankBox);
colorButton = new ColorButton(deck.getCategorySpec(name).getColor());
buttonPanel.add(colorButton);
editButton = new JButton(String.valueOf(UnicodeSymbols.ELLIPSIS));
buttonPanel.add(editButton);
removeButton = new JButton(String.valueOf(UnicodeSymbols.MINUS));
buttonPanel.add(removeButton);
topPanel.add(buttonPanel, BorderLayout.EAST);
add(topPanel, BorderLayout.NORTH);
// Table showing the cards in the category
model = new CardTableModel(editor, deck.getCategoryList(name), SettingsDialog.settings().editor.columns);
table = new CardTable(model)
{
@Override
public Dimension getPreferredScrollableViewportSize()
{
return new Dimension(getPreferredSize().width, tableRows*getRowHeight());
}
};
table.setStripeColor(SettingsDialog.settings().editor.stripe);
for (int i = 0; i < table.getColumnCount(); i++)
if (model.isCellEditable(0, i))
table.getColumn(model.getColumnName(i)).setCellEditor(CardTable.createCellEditor(editor, model.getColumnData(i)));
JScrollPane tablePane = new JScrollPane(table);
tablePane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
tablePane.addMouseWheelListener(new PDMouseWheelListener(tablePane));
var resizeAdapter = new MouseInputAdapter()
{
private boolean resizing = false;
private int base = 0;
@Override
public void mousePressed(MouseEvent e)
{
Point p = SwingUtilities.convertPoint((Component)e.getSource(), e.getPoint(), tablePane);
resizing = p.y >= tablePane.getHeight() - 2;
if (resizing)
{
p = SwingUtilities.convertPoint((Component)e.getSource(), e.getPoint(), table);
base = p.y;
}
}
@Override
public void mouseReleased(MouseEvent e)
{
resizing = false;
Point p = SwingUtilities.convertPoint((Component)e.getSource(), e.getPoint(), tablePane);
if (p.y >= tablePane.getHeight() - 2)
setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
else
setCursor(Cursor.getDefaultCursor());
}
@Override
public void mouseMoved(MouseEvent e)
{
Point p = SwingUtilities.convertPoint((Component)e.getSource(), e.getPoint(), tablePane);
if (p.y >= tablePane.getHeight() - 2)
setCursor(Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
else
setCursor(Cursor.getDefaultCursor());
}
@Override
public void mouseDragged(MouseEvent e)
{
if (resizing)
{
Point p = SwingUtilities.convertPoint((Component)e.getSource(), e.getPoint(), table);
setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
final int minRows = 1;
final int maxRows = Math.max(deck.getCategoryList(name).total(), SettingsDialog.settings().editor.categories.rows);
if (p.y <= base - table.getRowHeight()/2 && tableRows > minRows)
{
int n = Math.min(((base - p.y) + table.getRowHeight() - 1)/table.getRowHeight(), tableRows - minRows);
tableRows -= n;
base -= n*table.getRowHeight();
table.revalidate();
table.repaint();
revalidate();
repaint();
}
else if (p.y >= base + table.getRowHeight()/2 && tableRows < maxRows)
{
int n = Math.min(((p.y - base) + table.getRowHeight() - 1)/table.getRowHeight(), maxRows - tableRows);
tableRows += n;
base += n*table.getRowHeight();
table.revalidate();
table.repaint();
revalidate();
repaint();
}
}
}
};
tablePane.addMouseMotionListener(resizeAdapter);
tablePane.addMouseListener(resizeAdapter);
tablePane.getViewport().addMouseMotionListener(resizeAdapter);
tablePane.getViewport().addMouseListener(resizeAdapter);
table.addMouseMotionListener(resizeAdapter);
table.addMouseListener(resizeAdapter);
tablePane.getHorizontalScrollBar().addMouseMotionListener(resizeAdapter);
tablePane.getHorizontalScrollBar().addMouseListener(resizeAdapter);
tablePane.getVerticalScrollBar().addMouseMotionListener(resizeAdapter);
tablePane.getVerticalScrollBar().addMouseListener(resizeAdapter);
addMouseMotionListener(resizeAdapter);
addMouseListener(resizeAdapter);
add(tablePane, BorderLayout.CENTER);
update();
}
/**
* Apply settings to this CategoryPanel.
*
* @param editor {@link EditorFrame} containing this CategoryPanel
*/
public void applySettings(EditorFrame editor)
{
var columns = SettingsDialog.settings().editor.columns;
Color stripe = SettingsDialog.settings().editor.stripe;
model.setColumns(columns);
table.setStripeColor(stripe);
for (int i = 0; i < table.getColumnCount(); i++)
if (model.isCellEditable(0, i))
table.getColumn(model.getColumnName(i)).setCellEditor(CardTable.createCellEditor(editor, model.getColumnData(i)));
}
/**
* Briefly flash to draw attention to this CategoryPanel.
*/
public void flash()
{
flashTimer.restart();
}
/**
* Get the name of the corresponding category in the deck.
*
* @return The name of the category this CategoryPanel is displaying.
*/
public String getCategoryName()
{
return name;
}
/**
* Get the cards selected from this CategoryPanel's table.
*
* @return The list of Cards corresponding to the selected rows in the category's table.
*/
public List<Card> getSelectedCards()
{
return Arrays.stream(table.getSelectedRows())
.mapToObj((r) -> deck.getCategoryList(name).get(table.convertRowIndexToModel(r)))
.collect(Collectors.toList());
}
/**
* Change the category this panel should display to a new one.
*
* @param n name of the new category to display
* @throws IllegalArgumentException if the deck does not have a category with that name
*/
public void setCategoryName(String n)
{
if (!deck.containsCategory(n))
throw new IllegalArgumentException("deck does not have a category named " + n);
name = n;
}
/**
* Update the GUI to reflect changes in a category.
*/
public void update()
{
countLabel.setText("Cards: " + deck.getCategoryList(name).total());
var avgCMC = deck.stream()
.filter(deck.getCategorySpec(name)::includes)
.flatMap((c) -> Collections.nCopies(deck.getEntry(c).count(), c.cmc().stream().min((a, b) -> Double.compare(a, b)).orElse(0.0)).stream())
.mapToDouble(Double::valueOf)
.average().orElse(0);
if (avgCMC == (int)avgCMC)
avgCMCLabel.setText("Average CMC: " + (int)avgCMC);
else
avgCMCLabel.setText("Average CMC: " + String.format("%.2f", avgCMC));
border.setTitle(name);
table.revalidate();
table.repaint();
colorButton.setColor(deck.getCategorySpec(name).getColor());
colorButton.repaint();
revalidate();
repaint();
}
}
<file_sep>package editor.gui.ccp;
import static java.awt.event.ActionEvent.ACTION_PERFORMED;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.function.Supplier;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import javax.swing.TransferHandler;
/**
* This is a convenience class for creating a set of cut, copy, and paste menu items
* with commonly-used keyboard accelerators (Ctrl+X, Ctrl+C, Ctrl+V, respectively)
* optionally already installed. The menu text and keyboard accelerators are not
* customizable.
*
* @author <NAME>
*/
public class CCPItems
{
/** Cut menu item. */
public final JMenuItem cut;
/** Copy menu item. */
public final JMenuItem copy;
/** Paste menu item. */
public final JMenuItem paste;
/**
* Create a new set of cut, copy, and paste menu items that allow the reference to the source
* component performing the action to change what it points to over time.
*
* @param source function for getting the component performing the actions
* @param accelerate add keyboard accelerators
*/
public CCPItems(Supplier<? extends Component> source, boolean accelerate)
{
cut = new JMenuItem("Cut");
copy = new JMenuItem("Copy");
paste = new JMenuItem("Paste");
cut.addActionListener((e) -> TransferHandler.getCutAction().actionPerformed(new ActionEvent(source.get(), ACTION_PERFORMED, null)));
copy.addActionListener((e) -> TransferHandler.getCopyAction().actionPerformed(new ActionEvent(source.get(), ACTION_PERFORMED, null)));
paste.addActionListener((e) -> TransferHandler.getPasteAction().actionPerformed(new ActionEvent(source.get(), ACTION_PERFORMED, null)));
if (accelerate)
{
cut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.CTRL_DOWN_MASK));
copy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.CTRL_DOWN_MASK));
paste.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.CTRL_DOWN_MASK));
}
}
/**
* Create a new set of cut, copy, and paste menu items with a static source reference
* (i.e. if the reference passed here changes later, these items won't see the change).
*
* @param source component performing the actions
* @param accelerate add keyboard accelerators
*/
public CCPItems(Component source, boolean accelerate)
{
this(() -> source, accelerate);
}
}<file_sep>package editor.database.card;
import java.text.Collator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
import editor.database.attributes.CombatStat;
import editor.database.attributes.Expansion;
import editor.database.attributes.Legality;
import editor.database.attributes.Loyalty;
import editor.database.attributes.ManaCost;
import editor.database.attributes.ManaType;
import editor.database.attributes.Rarity;
import editor.database.symbol.FunctionalSymbol;
import editor.database.symbol.Symbol;
import editor.gui.generic.ComponentUtils;
import editor.util.Lazy;
import editor.util.UnicodeSymbols;
/**
* This interface represents an abstract Card with various characteristics. Each card can be uniquely
* identified by the set it is in, its name, and its image name (which is its name followed by a
* number if there is more than one version of the same card in the same set). All of its values are constant.
*
* @author <NAME>
*/
public abstract class Card
{
/**
* Separator string between characteristics of a multi-face card.
*/
public static final String FACE_SEPARATOR = " // ";
/**
* Separator for card text when displaying multiple cards in a single text box.
*/
public static final String TEXT_SEPARATOR = "-----";
/**
* String representing this Card's name in its text box.
*/
public static final String THIS = "~";
/**
* User-defined card tags.
*/
public static final Map<Card, Set<String>> tags = new HashMap<>();
/**
* Set of all user-defined card tags among all cards.
* @see #tags
*/
public static Set<String> tags()
{
return tags.values().stream().flatMap(Set::stream).collect(Collectors.toSet());
}
/**
* Expansion this Card belongs to.
*/
private final Expansion expansion;
/**
* Number of faces this Card has.
*/
private final int faces;
/**
* Whether or not to ignore the card count restriction for this Card.
*/
private Lazy<Boolean> ignoreCountRestriction;
/**
* Layout of this Card.
* @see CardLayout
*/
private final CardLayout layout;
/**
* List of formats this Card is legal in.
*/
private Lazy<List<String>> legalIn;
/**
* If this Card is legendary, the name of the character or item depicted by it. Otherwise,
* its normalized name.
*/
private Lazy<List<String>> legendName;
/**
* List of flavor texts of the faces of this Card, converted to lower case and with special
* characters removed.
*/
private Lazy<List<String>> normalizedFlavor;
/**
* All lower-case, normalized name of this Card with special characters removed.
*/
private Lazy<List<String>> normalizedName;
/**
* List of oracle texts of the faces of this Card, converted to lower case and with special
* characters removed.
*/
private Lazy<List<String>> normalizedOracle;
/**
* List of printed texts of the faces of this Card, converted to lower case and with special
* characers removed.
*/
private Lazy<List<String>> normalizedPrinted;
/**
* Create a new Card. Most of the parameters are assigned lazily; that is, only
* the first time their values are requested.
*
* @param expansion expension the new Card belongs to
* @param layout layout of the new Card
* @param faces number of faces the new Card has
*/
public Card(Expansion expansion, CardLayout layout, int faces)
{
this.expansion = expansion;
this.layout = layout;
this.faces = faces;
normalizedName = new Lazy<>(() -> Collections.unmodifiableList(name().stream().map(UnicodeSymbols::normalize).collect(Collectors.toList())));
legendName = new Lazy<>(() -> {
var legendNames = new ArrayList<String>();
for (String fullName : normalizedName())
{
if (!supertypes().contains("Legendary"))
legendNames.add(fullName);
else
{
int comma = fullName.indexOf(',');
if (comma > 0)
legendNames.add(fullName.substring(0, comma).trim());
else
{
int the = fullName.indexOf("the ");
if (the == 0)
legendNames.add(fullName);
else if (the > 0)
legendNames.add(fullName.substring(0, the).trim());
else
{
int of = fullName.indexOf("of ");
if (of > 0)
legendNames.add(fullName.substring(0, of).trim());
else
legendNames.add(fullName);
}
}
}
}
return Collections.unmodifiableList(legendNames);
});
normalizedOracle = new Lazy<>(() -> {
var texts = new ArrayList<String>(faces);
for (int i = 0; i < faces; i++)
{
String normal = UnicodeSymbols.normalize(oracleText().get(i).toLowerCase());
normal = normal.replace(legendName().get(i), Card.THIS).replace(normalizedName().get(i), Card.THIS);
texts.add(normal);
}
return Collections.unmodifiableList(texts);
});
normalizedFlavor = new Lazy<>(() -> Collections.unmodifiableList(flavorText().stream().map(UnicodeSymbols::normalize).collect(Collectors.toList())));
normalizedPrinted = new Lazy<>(() -> Collections.unmodifiableList(printedText().stream().map(UnicodeSymbols::normalize).collect(Collectors.toList())));
legalIn = new Lazy<>(() -> Collections.unmodifiableList(legality().keySet().stream().filter((l) -> legalityIn(l).isLegal).collect(Collectors.toList())));
ignoreCountRestriction = new Lazy<>(() -> supertypeContains("basic") || oracleText().stream().map(String::toLowerCase).anyMatch((s) -> s.contains("a deck can have any number")));
}
/**
* Get all of this Card's supertypes, card types, and subtypes.
*
* @return A list whose elements each is a set of Strings which contains all the supertypes,
* types, and subtypes of the corresponding face.
*/
public abstract List<Set<String>> allTypes();
/**
* Get the artist of each face of this Card.
*
* @return a list containing the artist of each face of this Card.
*/
public abstract List<String> artist();
/**
* Get this card's converted mana cost(s).
*
* @return a list containing the converted mana costs of the faces of this Card.
*/
public abstract List<Double> cmc();
/**
* Get this Card's color identity, which is comprised of its its colors and colors of any
* mana symbols that appear in its rules text that is not reminder text, and in abilities that
* are given it by basic land types.
*
* @return a list containing the colors in this Card's color identity.
*/
public abstract List<ManaType> colorIdentity();
/**
* Get all of the colors across this Card's faces.
*
* @return a list containing the colors of this Card.
*/
public abstract List<ManaType> colors();
/**
* Get the colors of one of the faces of this Card.
*
* @param face index of the face to get the colors of
* @return a list containing the colors of the given face.
*/
public abstract List<ManaType> colors(int face);
/**
* @return a list containing the formats this card can be commander in.
*/
public abstract List<String> commandFormats();
/**
* Compare this Card's unified name lexicographically with another's.
*
* @param other Card to compare names with
* @return a positive number if this Card's name comes after the other's, 0 if
* they are the same, or a negative number if it comes before.
*/
public int compareName(Card other)
{
return Collator.getInstance(Locale.US).compare(unifiedName(), other.unifiedName());
}
@Override
public boolean equals(Object other)
{
return other != null && (other == this || other instanceof Card && scryfallid().equals(((Card)other).scryfallid()));
}
/**
* Get this Card's expansion.
*
* @return the expansion this Card belongs to.
*/
public Expansion expansion()
{
return expansion;
}
/**
* Get the number of faces this Card has.
*
* @return the number of faces
*/
public int faces()
{
return faces;
}
/**
* Get the flavor texts of the faces of this Card.
*
* @return a list containing the flavor text of each face of this Card.
*/
public abstract List<String> flavorText();
/**
* Add the Oracle text of all of this Card's faces to the given document, separated
* by a separator on its own line.
*
* @param document document to add text to
* @param printed whether to use printed or Oracle data for a card
*/
public void formatDocument(StyledDocument document, boolean printed)
{
Style textStyle = document.getStyle("text");
try
{
for (int f = 0; f < faces; f++)
{
formatDocument(document, printed, f);
if (f < faces - 1)
document.insertString(document.getLength(), "\n" + TEXT_SEPARATOR + "\n", textStyle);
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
/**
* Add text and icons to the given document so it contains a nice-looking version of this
* Card's Oracle text. The document is expected to have styles "text" and "reminder."
*
* @param document document to format
* @param printed whether to use printed or Oracle data for a card
* @param f face to add to the document
*/
public void formatDocument(StyledDocument document, boolean printed, int f)
{
Style textStyle = document.getStyle("text");
Style reminderStyle = document.getStyle("reminder");
Style chaosStyle = document.addStyle("CHAOS", null);
StyleConstants.setIcon(chaosStyle, FunctionalSymbol.CHAOS.getIcon(ComponentUtils.TEXT_SIZE));
try
{
document.insertString(document.getLength(), name().get(f) + " ", textStyle);
if (!manaCost().get(f).isEmpty())
{
for (Symbol symbol : manaCost().get(f))
{
Style style = document.addStyle(symbol.toString(), null);
StyleConstants.setIcon(style, symbol.getIcon(ComponentUtils.TEXT_SIZE));
document.insertString(document.getLength(), symbol.toString(), style);
}
document.insertString(document.getLength(), " ", textStyle);
}
if (cmc().get(f) == cmc().get(f).doubleValue())
document.insertString(document.getLength(), "(" + (int)cmc().get(f).doubleValue() + ")\n", textStyle);
else
document.insertString(document.getLength(), "(" + cmc().get(f) + ")\n", textStyle);
if (!manaCost().get(f).colors().equals(colors(f)))
{
for (ManaType color : colors(f))
{
Style indicatorStyle = document.addStyle("indicator", document.getStyle("text"));
StyleConstants.setForeground(indicatorStyle, color.color);
document.insertString(document.getLength(), String.valueOf(UnicodeSymbols.BULLET), indicatorStyle);
}
if (!colors().isEmpty())
document.insertString(document.getLength(), " ", textStyle);
}
if (printed)
document.insertString(document.getLength(), printedTypes().get(f) + '\n', textStyle);
else
document.insertString(document.getLength(), typeLine().get(f) + '\n', textStyle);
document.insertString(document.getLength(), expansion.name + ' ' + rarity() + '\n', textStyle);
String abilities = (printed ? printedText() : oracleText()).get(f);
if (!abilities.isEmpty())
{
int start = 0;
Style style = textStyle;
for (int i = 0; i < abilities.length(); i++)
{
if (i == 0 || abilities.charAt(i) == '\n')
{
int nextLine = abilities.substring(i + 1).indexOf('\n');
int dash = (nextLine > -1 ? abilities.substring(i, nextLine + i) : abilities.substring(i)).indexOf(UnicodeSymbols.EM_DASH);
if (dash > -1)
{
dash += i;
if (i > 0)
document.insertString(document.getLength(), abilities.substring(start, i), style);
start = i;
// Assume that the dash used for ability words is surrounded by spaces, but not
// for keywords with cost parameters when the cost is nonmana cost
if (abilities.charAt(dash - 1) == ' ' && abilities.charAt(dash + 1) == ' ')
style = reminderStyle;
}
}
switch (abilities.charAt(i))
{
case '{':
document.insertString(document.getLength(), abilities.substring(start, i), style);
start = i + 1;
break;
case '}':
var symbol = Symbol.tryParseSymbol(abilities.substring(start, i));
if (symbol.isEmpty())
{
System.err.println("Unexpected symbol {" + abilities.substring(start, i) + "} in oracle text for " + unifiedName() + ".");
document.insertString(document.getLength(), abilities.substring(start, i), textStyle);
}
else
{
Style symbolStyle = document.addStyle(symbol.get().toString(), null);
StyleConstants.setIcon(symbolStyle, symbol.get().getIcon(ComponentUtils.TEXT_SIZE));
document.insertString(document.getLength(), symbol.get().toString(), symbolStyle);
}
start = i + 1;
break;
case '(':
document.insertString(document.getLength(), abilities.substring(start, i), style);
style = reminderStyle;
start = i;
break;
case ')':
document.insertString(document.getLength(), abilities.substring(start, i + 1), style);
style = textStyle;
start = i + 1;
break;
case 'C':
if (i < abilities.length() - 5 && abilities.substring(i, i + 5).equals("CHAOS"))
{
document.insertString(document.getLength(), abilities.substring(start, i), style);
document.insertString(document.getLength(), "CHAOS", chaosStyle);
start = i += 5;
}
break;
case UnicodeSymbols.EM_DASH:
document.insertString(document.getLength(), abilities.substring(start, i), style);
style = textStyle;
start = i;
break;
default:
break;
}
if (i == abilities.length() - 1 && abilities.charAt(i) != '}' && abilities.charAt(i) != ')')
document.insertString(document.getLength(), abilities.substring(start, i + 1), style);
}
document.insertString(document.getLength(), "\n", textStyle);
}
String flavor = flavorText().get(f);
if (!flavor.isEmpty())
{
int start = 0;
for (int i = 0; i < flavor.length(); i++)
{
switch (flavor.charAt(i))
{
case '{':
document.insertString(document.getLength(), flavor.substring(start, i), reminderStyle);
start = i + 1;
break;
case '}':
var symbol = Symbol.tryParseSymbol(flavor.substring(start, i));
if (symbol.isEmpty())
{
System.err.println("Unexpected symbol {" + flavor.substring(start, i) + "} in flavor text for " + unifiedName() + ".");
document.insertString(document.getLength(), flavor.substring(start, i), reminderStyle);
}
else
{
Style symbolStyle = document.addStyle(symbol.get().toString(), null);
StyleConstants.setIcon(symbolStyle, symbol.get().getIcon(ComponentUtils.TEXT_SIZE));
document.insertString(document.getLength(), " ", symbolStyle);
}
start = i + 1;
break;
default:
break;
}
if (i == flavor.length() - 1 && flavor.charAt(i) != '}')
document.insertString(document.getLength(), flavor.substring(start, i + 1), reminderStyle);
}
document.insertString(document.getLength(), "\n", reminderStyle);
}
if (!Double.isNaN(power().get(f).value) && !Double.isNaN(toughness().get(f).value))
document.insertString(document.getLength(), power().get(f) + "/" + toughness().get(f) + "\n", textStyle);
else if (loyalty().get(f).exists())
document.insertString(document.getLength(), loyalty().get(f) + "\n", textStyle);
document.insertString(document.getLength(), artist().get(f) + " " + number().get(f) + "/" + expansion.count, textStyle);
}
catch (BadLocationException e)
{
e.printStackTrace();
}
}
@Override
public int hashCode()
{
return Objects.hash(name(), scryfallid());
}
/**
* Check if this Card ignores the restriction on card counts in decks.
*
* @return <code>true</code> if there can be any number of copies of this Card in
* a deck, and <code>false</code> otherwise.
*/
public boolean ignoreCountRestriction()
{
return ignoreCountRestriction.get();
}
/**
* Get the image name of each face of this Card.
*
* @return A list containing the name of each image corresponding to a face of this Card.
*/
public abstract List<String> imageNames();
/**
* @return true if this Card is a land, and false otherwise.
*/
public abstract boolean isLand();
/**
* Get this Card's layout.
*
* @return this Card's layout.
*/
public CardLayout layout()
{
return layout;
}
/**
* Get the formats this Card is legal in.
*
* @return a list of names of formats that this Card is legal in.
*/
public List<String> legalIn()
{
return legalIn.get();
}
/**
* Get the set of formats and this Card's legalities in each one.
*
* @return a map whose keys are format names and whose values are the legalities
* of this Card in those formats.
*/
public abstract Map<String, Legality> legality();
/**
* Check the legality of this Card in the given format.
*
* @param format format to look up
* @return The legality ({@link Legality#LEGAL}, {@link Legality#RESTRICTED},
* {@link Legality#BANNED}) of this Card in the given format.
*/
public Legality legalityIn(String format)
{
return legality().getOrDefault(format, Legality.ILLEGAL);
}
/**
* Get a version of {@link #normalizedName()} with the title removed if this
* Card is legendary, or no changes if it isn't.
*
* @return A list containing the name of the character depicted by each face
* of this Card if it is legendary.
*/
public List<String> legendName()
{
return legendName.get();
}
/**
* Get this Card's loyalty. Any nonpositive number represents a nonexistent
* loyalty.
*
* @return a list containing the loyalty of each face of this Card.
*/
public abstract List<Loyalty> loyalty();
/**
* @return <code>true</code> if this Card has loyalty and it is variable (X),
* and <code>false</code> otherwise.
*/
public boolean loyaltyVariable()
{
return loyalty().stream().anyMatch(Loyalty::variable);
}
/**
* Get this Card's mana cost(s).
*
* @return a list containing the mana costs of the faces of this Card.
*/
public abstract List<ManaCost> manaCost();
/**
* @return the IDs of each face of this card as they are used by
* <a href="http://gatherer.wizards.com">Gatherer</a>.
*/
public abstract List<Integer> multiverseid();
/**
* @return the unique IDs of each face of this card as they are used by
* <a href="https://scryfall.com/">Scryfall</a> for images.
*/
public abstract List<String> scryfallid();
/**
* Get the name of each of this Card's faces.
*
* @return a List containing the name of each face of this Card
*/
public abstract List<String> name();
/**
* Get the flavor texts of this Card's faces in lower case and with special characters replaced
* with versions that appear on a standard QWERTY keyboard.
*
* @return a list containing the "normalized" flavor texts of this Card's faces.
*/
public List<String> normalizedFlavor()
{
return normalizedFlavor.get();
}
/**
* Get a version of {@link #name()} converted to lower case and special characters
* converted to versions that appear on a standard QWERTY keyboard.
*
* @return a list containing the "normalized" names of this Card's faces
*/
public List<String> normalizedName()
{
return normalizedName.get();
}
/**
* Get the Oracle texts of this Card's faces in lower case and with special characters replaced
* with versions that appear on a standard QWERTY keyboard.
*
* @return a list containing the "normalized" Oracle texts of this Card's faces.
*/
public List<String> normalizedOracle()
{
return normalizedOracle.get();
}
/**
* Get the printed texts of this Card's faces in lower case and with special characters replaced
* with versions that appear on a standard QWERTY keyboard.
*
* @return a list containing the "normalized" printed texts of this Card's faces
*/
public List<String> normalizedPrinted()
{
return normalizedPrinted.get();
}
/**
* Get the collector number of each face of this Card. This is a string since some cards don't
* have numbers or are things like "1a"
*
* @return a list containing the collector's number of each face of this Card.
*/
public abstract List<String> number();
/**
* Get the Oracle texts of the faces of this Card.
*
* @return the Oracle text of each of this Card's faces in a list.
*/
public abstract List<String> oracleText();
/**
* Get this Card's power. If it's not a creature, it's {@link Double#NaN} and will
* return <code>false</code> for {@link CombatStat#exists()}.
*
* @return a list containing the power of each face of this Card.
*/
public abstract List<CombatStat> power();
/**
* Check if this Card's power is variable, or has a * in it.
*
* @return true if this Card has a face that is a creature with variable power, and false
* otherwise.
*/
public boolean powerVariable()
{
return power().stream().anyMatch(CombatStat::variable);
}
/**
* Get the printed texts of the faces of this Card.
*
* @return the printed text of each of this Card's faces in a list.
*/
public abstract List<String> printedText();
/**
* Get the printed types of this Card.
*
* @return the printed types of each of this Card's faces in a list.
*/
public abstract List<String> printedTypes();
/**
* Get this Card's rarity.
*
* @return This card's rarity.
*/
public abstract Rarity rarity();
/**
* Get any rulings for this Card.
*
* @return a map whose keys are dates and whose values are the rulings of this
* Card on those dates.
*/
public abstract Map<Date, List<String>> rulings();
/**
* Get this Card's subtypes.
*
* @return a set containing the subtypes among all faces of this Card.
*/
public abstract Set<String> subtypes();
/**
* Check whether or not this Card has a supertype.
*
* @param s supertype to search for
* @return true if the given String is among this Card's supertypes, case insensitive, and
* false otherwise.
*/
public boolean supertypeContains(String s)
{
if (Pattern.compile("\\s").matcher(s).find())
throw new IllegalArgumentException("Supertypes don't contain white space");
return supertypes().stream().anyMatch((t) -> t.equalsIgnoreCase(s));
}
/**
* Get this Card's supertypes.
*
* @return a set containing the supertypes among all the faces of this Card.
*/
public abstract Set<String> supertypes();
@Override
public String toString()
{
return unifiedName();
}
/**
* Get this Card's toughness. If it's not a creature, it's {@link Double#NaN} and will
* return <code>false</code> for {@link CombatStat#exists()}.
*
* @return a list containing the toughness of each face of this Card.
*/
public abstract List<CombatStat> toughness();
/**
* Check if this Card's toughness is variable, or has a * in it.
*
* @return true if this Card has a face that is a creature with variable toughness, and
* false otherwise.
*/
public boolean toughnessVariable()
{
return toughness().stream().anyMatch(CombatStat::variable);
}
/**
* Check whether or not this Card has a card type.
*
* @param s type to search for
* @return true if the given String is among this Card's types, case insensitive, and false
* otherwise.
*/
public boolean typeContains(String s)
{
if (s.matches("\\s"))
throw new IllegalArgumentException("Types don't contain white space");
return types().stream().anyMatch(s::equalsIgnoreCase);
}
/**
* Get this Card's type line formatted as it might appear on a physical card
* ("[{@link #supertypes()}] [{@link #types()}] {@value UnicodeSymbols#EM_DASH} [{@link #supertypes()}]").
*
* @return A list of Strings containing the full, formatted type line of each face.
*/
public abstract List<String> typeLine();
/**
* Get this Card's card types.
*
* @return a set containing the types among all the faces of this Card.
*/
public abstract Set<String> types();
/**
* Get a String consisting of the names of each of the faces of this Card
* concatenated by {@link #FACE_SEPARATOR}.
*
* @return the unified name of this Card
*/
public String unifiedName()
{
return name().stream().collect(Collectors.joining(FACE_SEPARATOR));
}
/**
* Get the type lines of this Card's faces separated by {@link #FACE_SEPARATOR}.
*
* @return A String consisting of the type lines of all faces of this Card.
*/
public String unifiedTypeLine()
{
return String.join(FACE_SEPARATOR, typeLine());
}
}
<file_sep>package editor.database;
import java.util.AbstractMap.SimpleImmutableEntry;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* This class represents the constraints on building a deck for a particular format.
*
* @author <NAME>
*/
public class FormatConstraints
{
/**
* Mapping of format names onto their deckbulding constraints.
*/
public static final Map<String, FormatConstraints> CONSTRAINTS = Map.ofEntries(
new SimpleImmutableEntry<>("brawl", new FormatConstraints(60, true, 1, 0, true)),
new SimpleImmutableEntry<>("commander", new FormatConstraints(100, true, 1, 0, true)),
new SimpleImmutableEntry<>("duel", new FormatConstraints(100, true, 1, 0, true)),
new SimpleImmutableEntry<>("future", new FormatConstraints()),
new SimpleImmutableEntry<>("historic", new FormatConstraints()),
new SimpleImmutableEntry<>("legacy", new FormatConstraints()),
new SimpleImmutableEntry<>("modern", new FormatConstraints()),
new SimpleImmutableEntry<>("oldschool", new FormatConstraints()),
new SimpleImmutableEntry<>("pauper", new FormatConstraints()),
new SimpleImmutableEntry<>("penny", new FormatConstraints()),
new SimpleImmutableEntry<>("pioneer", new FormatConstraints()),
new SimpleImmutableEntry<>("standard", new FormatConstraints()),
new SimpleImmutableEntry<>("vintage", new FormatConstraints())
);
/**
* List of supported format names, in alphabetical order.
*/
public static final List<String> FORMAT_NAMES = CONSTRAINTS.keySet().stream().sorted().collect(Collectors.toList());
/**
* List of types of each of the deckbuilding constraints.
*/
public static final List<Class<?>> CLASSES = List.of(
String.class,
Integer.class,
Boolean.class,
Integer.class,
Integer.class,
Boolean.class
);
/**
* The name of each type of deckbuilding constraint: name of the format,
* number of cards allowed in the deck, whether that number is a minimum
* number or exact number, number of copies of any card allowed in a deck
* (not counting restricted cards, basic lands, or other cards that ignore
* this restriction), and whether or not the format has a commander.
*/
public static final List<String> DATA_NAMES = List.of(
"Name",
"Deck Size",
"Exact?",
"Max Card Count",
"Sideboard size",
"Has Commander?"
);
/** Number of cards the deck should have. */
public final int deckSize;
/** Whether {@link #deckSize} represents an exact count or minimum. */
public final boolean isExact;
/** Maximum number of copies of a card in a deck. */
public final int maxCopies;
/** Maximum number of cards in a sideboard */
public final int sideboardSize;
/** Whether or not the format has a commander. */
public final boolean hasCommander;
/**
* Create a new set of deckbuilding constraints. Since this is immutable and
* not customizable by the user, this constructor isn't visible outside this class.
*
* @param size number of cards in a deck
* @param exact whether or not <code>size</code> is an exact count
* @param copies number of copies of a card
* @param sideboard number of copies in a sideboard
* @param commander whether or not the format has a commander
*/
private FormatConstraints(int size, boolean exact, int copies, int sideboard, boolean commander)
{
deckSize = size;
isExact = exact;
maxCopies = copies;
sideboardSize = sideboard;
hasCommander = commander;
}
/**
* Create a default set of deckbuilding constraints, which is for a 60-card-
* minimum-sized deck with 4 copies of any card and no commander.
*/
public FormatConstraints()
{
this(60, false, 4, 15, false);
}
/**
* @param name name of the format
* @return An array containig the elements of this set of deckbuilding constraints
* with the name of the format prepended, in the order specified by {@link #DATA_NAMES}.
*/
public Object[] toArray(String name)
{
return new Object[] { name, deckSize, isExact, maxCopies, sideboardSize, hasCommander };
}
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other == this)
return true;
if (!(other instanceof FormatConstraints))
return false;
FormatConstraints o = (FormatConstraints)other;
return o.deckSize == deckSize &&
o.isExact == isExact &&
o.maxCopies == maxCopies &&
o.sideboardSize == sideboardSize &&
o.hasCommander == hasCommander;
}
@Override
public int hashCode()
{
return Objects.hash(deckSize, isExact, maxCopies, sideboardSize, hasCommander);
}
}<file_sep>package editor.gui.ccp.data;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.util.Arrays;
import java.util.Collection;
import java.util.stream.Collectors;
import editor.database.card.Card;
/**
* This class represents the data t t can be transferred from an inventory via
* drag and drop or cut/copy/paste. It supports card and String flavors.
*
* @author <NAME>
*/
public class CardTransferData implements Transferable
{
/**
* Cards to be transferred.
*/
private Card[] cards;
/**
* Create a new TransferData from the given cards.
*
* @param cards cards to transfer
*/
public CardTransferData(Card... cards)
{
this.cards = cards;
}
/**
* Create a new TransferData from the given cards.
*
* @param cards cards to transfer
*/
public CardTransferData(Collection<? extends Card> cards)
{
this(cards.toArray(new Card[0]));
}
@Override
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
{
if (flavor.equals(DataFlavors.cardFlavor))
return cards;
else if (flavor.equals(DataFlavor.stringFlavor))
return Arrays.stream(cards).map(Card::unifiedName).collect(Collectors.joining("\n"));
else
throw new UnsupportedFlavorException(flavor);
}
@Override
public DataFlavor[] getTransferDataFlavors()
{
return new DataFlavor[]{ DataFlavors.cardFlavor, DataFlavor.stringFlavor };
}
@Override
public boolean isDataFlavorSupported(DataFlavor flavor)
{
return Arrays.asList(getTransferDataFlavors()).contains(flavor);
}
}<file_sep>package editor.gui.ccp.handler;
import java.awt.datatransfer.DataFlavor;
import javax.swing.TransferHandler;
/**
* Interface describing a handler for importing a single flavor of data.
*
* @author <NAME>
*/
public interface ImportHandler
{
/**
* @return The data flavor supported by this ImportHandler.
*/
DataFlavor supportedFlavor();
/**
* @see TransferHandler#canImport
*/
boolean canImport(TransferHandler.TransferSupport supp);
/**
* @see TransferHandler#importData
*/
boolean importData(TransferHandler.TransferSupport supp);
}<file_sep>package editor.database.card;
import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import editor.collection.CardList;
import editor.collection.deck.CategorySpec;
import editor.collection.deck.Deck;
import editor.database.attributes.CardAttribute;
import editor.util.CollectionUtils;
/**
* This class represents a method of formatting a card into a string. It takes
* a format string, which consists of arbitrary characters and format specifiers,
* and replaces the format specifiers with the corresponding values of a card
* in a deck. A format specifier consists of the name of a {@link CardAttribute}
* surrounded by braces ({}).
*
* @author <NAME>
*/
public class CardFormat
{
/**
* This class represents a "fake" card entry that reports static data about a card.
* It always returns 1 for count, the card's release date for date, and an empty
* set for categories.
*
* @author <NAME>
*/
private static class FakeEntry implements CardList.Entry
{
/**
* Card so the release date can be known.
*/
private final Card card;
/**
* Create a new FakeEntry.
*
* @param c card for the new entry
*/
public FakeEntry(Card c)
{
card = c;
}
@Override
public Card card()
{
return card;
}
@Override
public Set<CategorySpec> categories()
{
return Collections.emptySet();
}
@Override
public int count()
{
return 1;
}
@Override
public LocalDate dateAdded()
{
return card.expansion().releaseDate;
}
}
/**
* Format specifier for a card.
*/
public final String format;
/**
* Create a new CardFormat.
*
* @param pattern format specifier for a card
*/
public CardFormat(String pattern)
{
format = pattern;
}
/**
* Format a card using this CardFormat's format specifier. Deck-dependent
* values will be statically assigned:
* {@link CardAttribute#COUNT}: 1
* {@link CardAttribute#CATEGORIES}: empty set
* {@link CardAttribute#DATE_ADDED}: the card's release date
*
* @param card card to format
* @return the formatted string
*/
public String format(Card card)
{
return format(new FakeEntry(card));
}
/**
* Format a card using this CardFormat's format specifier. Deck-dependent
* values will be taken from the entry provided.
*
* @param card entry for the card to format
* @return the formatted string
*/
public String format(CardList.Entry card)
{
String pattern = format;
for (CardAttribute type : CardAttribute.displayableValues())
{
String replacement = '{' + type.toString().toLowerCase() + '}';
pattern = pattern.replace(replacement, switch (type) {
case MANA_COST, POWER, TOUGHNESS, LOYALTY -> String.join(Card.FACE_SEPARATOR,
((List<?>)card.get(type)).stream().map(String::valueOf).collect(Collectors.toList()));
case CMC -> String.join(Card.FACE_SEPARATOR,
CollectionUtils.convertToList(card.get(type), Double.class).stream().map((n) -> {
if (n == n.intValue())
return Integer.toString(n.intValue());
else
return n.toString();
}).collect(Collectors.toList()));
case COLORS, COLOR_IDENTITY -> String.join(",",
((List<?>)card.get(type)).stream().map(String::valueOf).collect(Collectors.toList()));
case CATEGORIES -> String.join(",",
CollectionUtils.convertToSet(card.get(type), CategorySpec.class).stream().map(CategorySpec::getName).sorted().collect(Collectors.toList()));
case DATE_ADDED -> Deck.DATE_FORMATTER.format((LocalDate)card.get(type));
default -> String.valueOf(card.get(type));
});
}
return pattern;
}
}
<file_sep>package editor.gui.generic;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.util.Objects;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
/**
* This class is a scroll pane that is controlled with buttons on the sides rather than
* a scroll bar on the edge. The buttons are always visible, even if the contents don't
* fill the pane, but are disabled until scrolling is necessary.
*
* TODO: Eventually allow this to have vertical versions as well
* @author <NAME>
*/
@SuppressWarnings("serial")
public class ButtonScrollPane extends JPanel
{
/**
* Initial delay when holding down an arrow button before auto-scrolling.
*/
private static final int INITIAL_DELAY = 750;
/**
* Delay between scroll actions when holding down an arrow button.
*/
private static final int TICK_DELAY = 75;
/**
* A button with an arrow icon pointing in the direction it will scroll the pane.
*
* @author <NAME>
*/
private static class ArrowButton extends RepeatButton
{
/**
* East-facing (right) arrow.
*/
public static final int EAST = 1;
/**
* West-facing (left) arrow.
*/
public static final int WEST = 3;
/**
* Direction the button will face.
*/
private int direction;
/**
* Create a new arrow button facing the specified direction.
*
* @param d direction the arrow button will face (EAST or WEST)
*/
public ArrowButton(int d)
{
super(INITIAL_DELAY, TICK_DELAY);
direction = d;
setFocusable(false);
}
/**
* @inheritDoc
* Arrow buttons have a constant size on one of their sides so they are
* thin.
*/
@Override
public Dimension getPreferredSize()
{
Dimension original = super.getPreferredSize();
return new Dimension(12, original.height);
}
@Override
public void paintComponent(Graphics g)
{
super.paintComponent(g);
int h = getHeight();
int w = getWidth();
int[] x;
switch (direction)
{
case EAST:
x = new int[] {w/3, 2*w/3, w/3};
break;
case WEST:
x = new int[] {2*w/3, w/3, 2*w/3};
break;
default:
throw new IllegalArgumentException("Illegal direction " + direction);
};
int[] y = new int[] {2*h/3, h/2, h/3};
g.setColor(UIManager.getColor(isEnabled() ? "Button.foreground" : "Button.disabledForeground"));
g.fillPolygon(x, y, 3);
}
}
/**
* Create a new ButtonScrollPane containing the given component. Add things to that
* component, not to this pane.
*
* @param view component in this ButtonScrollPane's view
*/
public ButtonScrollPane(final Component view)
{
super(new BorderLayout());
Objects.requireNonNull(view);
ArrowButton left = new ArrowButton(ArrowButton.WEST);
add(left, BorderLayout.WEST);
JScrollPane pane = new JScrollPane(view);
pane.setBorder(null);
pane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
add(pane, BorderLayout.CENTER);
ArrowButton right = new ArrowButton(ArrowButton.EAST);
add(right, BorderLayout.EAST);
final JScrollBar bar = pane.getHorizontalScrollBar();
left.addRepeatListener((e) -> bar.getActionMap().get("negativeUnitIncrement").actionPerformed(
new ActionEvent(bar, ActionEvent.ACTION_PERFORMED, "", e.getWhen(), e.getModifiers())
));
right.addRepeatListener((e) -> bar.getActionMap().get("positiveUnitIncrement").actionPerformed(
new ActionEvent(bar, ActionEvent.ACTION_PERFORMED, "", e.getWhen(), e.getModifiers())
));
view.addComponentListener(new ComponentListener()
{
@Override
public void componentResized(ComponentEvent e)
{
boolean scrollable = view.getPreferredSize().width > pane.getSize().width;
left.setEnabled(scrollable);
right.setEnabled(scrollable);
}
@Override
public void componentHidden(ComponentEvent e)
{}
@Override
public void componentMoved(ComponentEvent e)
{}
@Override
public void componentShown(ComponentEvent e)
{}
});
}
}
<file_sep>package editor.gui.display;
import java.awt.Color;
import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.Icon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.UIManager;
import javax.swing.border.Border;
import javax.swing.table.DefaultTableCellRenderer;
import editor.collection.deck.CategorySpec;
import editor.collection.deck.Deck;
import editor.database.attributes.CombatStat;
import editor.database.attributes.Loyalty;
import editor.database.attributes.ManaCost;
import editor.database.attributes.ManaType;
import editor.database.card.Card;
import editor.database.symbol.ColorSymbol;
import editor.util.CollectionUtils;
import editor.util.UnicodeSymbols;
/**
* This class represents a cell renderer for a {@link CardTable}.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class CardTableCellRenderer extends DefaultTableCellRenderer
{
/** Internal cache of icon sets to speed up resizing. */
private Map<List<ManaCost>, Icon[][]> cache;
/**
* Create a new CardTableCellRenderer.
*/
public CardTableCellRenderer()
{
super();
cache = new HashMap<>();
}
/**
* {@inheritDoc}
* Several types of data get special renderings:
* <ul>
* <li>Mana costs are displayed using their symbols
* <li>Converted mana costs and combat stats are displayed using special delimiters
* <li>Colors and color identity are displayed using the mana symbols corresponding to the colors
* <li>Deck categories are displayed using colored squares
* <li>Date added is displayed according to {@link Deck#DATE_FORMATTER}
* </ul>
*/
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
{
Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (table.getModel() instanceof CardTableModel)
{
JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
Border border = BorderFactory.createEmptyBorder(1, 1, 1, 1);
StringJoiner join = new StringJoiner(Card.FACE_SEPARATOR);
switch (((CardTableModel)table.getModel()).getColumnData(column))
{
case MANA_COST:
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
var icons = cache.computeIfAbsent(
CollectionUtils.convertToList(value, ManaCost.class),
(cost) -> cost.stream().map((l) -> l.stream().map((s) -> s.getIcon(13)).toArray(Icon[]::new)).toArray(Icon[][]::new)
);
border = BorderFactory.createEmptyBorder(0, 1, icons.length == 1 ? -1 : 0, 0);
for (int i = 0; i < icons.length; i++)
{
if (icons[i].length > 0)
{
if (i > 0)
panel.add(new JLabel(Card.FACE_SEPARATOR));
for (int j = 0; j < icons[i].length; j++)
panel.add(new JLabel(icons[i][j]));
}
}
break;
case CMC:
panel.add(new JLabel(CollectionUtils.join(join, CollectionUtils.convertToList(value, Double.class))));
break;
case COLORS:
case COLOR_IDENTITY:
panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
for (ManaType color : CollectionUtils.convertToList(value, ManaType.class))
panel.add(new JLabel(ColorSymbol.SYMBOLS.get(color).getIcon(13)));
break;
case POWER:
case TOUGHNESS:
panel.add(new JLabel(CollectionUtils.join(join, CollectionUtils.convertToList(value, CombatStat.class))));
break;
case LOYALTY:
panel.add(new JLabel(CollectionUtils.join(join, CollectionUtils.convertToList(value, Loyalty.class))));
break;
case CATEGORIES:
var categories = new ArrayList<>(CollectionUtils.convertToSet(value, CategorySpec.class));
categories.sort(Comparator.comparing(CategorySpec::getName));
panel = new JPanel()
{
@Override
public void paintComponent(Graphics g)
{
super.paintComponent(g);
int s = getHeight();
for (int i = 0; i < categories.size(); i++)
{
int x = i * (s + 1) + 1;
int y = 1;
g.setColor(categories.get(i).getColor());
g.fillRect(x, y, s - 3, s - 3);
g.setColor(Color.BLACK);
g.drawRect(x, y, s - 3, s - 3);
}
}
};
if (!categories.isEmpty())
{
StringBuilder tooltip = new StringBuilder();
tooltip.append("<html>Categories:<br>");
for (CategorySpec category : categories)
tooltip.append(UnicodeSymbols.BULLET).append(" ").append(category.getName()).append("<br>");
tooltip.append("</html>");
panel.setToolTipText(tooltip.toString());
}
break;
case DATE_ADDED:
panel.add(new JLabel(Deck.DATE_FORMATTER.format((LocalDate)value)));
break;
default:
return c;
}
if (hasFocus)
panel.setBorder(UIManager.getBorder("Table.focusCellHighlightBorder"));
else
panel.setBorder(border);
panel.setForeground(c.getForeground());
panel.setBackground(c.getBackground());
c = panel;
}
return c;
}
}
<file_sep>package editor.collection.deck;
import java.awt.Color;
import java.util.Collection;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.filter.Filter;
import editor.filter.FilterGroup;
/**
* This class represents a set of specifications for a category. Those specifications are its name,
* the lists of cards to include or exclude regardless of filter, its color, its filter, and its String
* representation.
*
* @author <NAME>
*/
public class CategorySpec
{
/**
* Name of the category.
*/
private String name;
/**
* List of cards to include in the category regardless of filter.
*/
private Set<Card> whitelist;
/**
* List of cards to exclude from the category regardless of filter.
*/
private Set<Card> blacklist;
/**
* Color of the category.
*/
private Color color;
/**
* Filter of the category.
*/
private Filter filter;
/**
* Create a new CategorySpec with the color black and a filter that passes all cards.
*/
public CategorySpec()
{
this("All Cards", Color.BLACK, CardAttribute.createFilter(CardAttribute.ANY));
}
/**
* Copy constructor for CategorySpec.
*
* @param original original CategorySpec to copy
*/
public CategorySpec(CategorySpec original)
{
name = original.name;
whitelist = new HashSet<>(original.whitelist);
blacklist = new HashSet<>(original.blacklist);
color = original.color;
filter = original.filter.copy();
}
/**
* Create a new CategorySpec with the given specifications.
*
* @param name name of the new spec
* @param whitelist whitelist of the new spec
* @param blacklist blacklist of the new spec
* @param color color of the new spec
* @param filter filter of the new spec
*/
public CategorySpec(String name, Collection<Card> whitelist, Collection<Card> blacklist, Color color, Filter filter)
{
this.name = name;
this.whitelist = new HashSet<>(whitelist);
this.blacklist = new HashSet<>(blacklist);
this.color = color;
this.filter = filter;
}
/**
* Create a new CategorySpec with the given specifications and an empty white- and
* blacklist.
*
* @param name name of the new spec
* @param color color of the new spec
* @param filter filter of the new spec
*/
public CategorySpec(String name, Color color, Filter filter)
{
this(name, new HashSet<>(), new HashSet<>(), color, filter);
}
/**
* Copy the name, whitelist, blacklist, color, and filter from the given
* CategorySpec, discarding those values from this one.
*
* @param other CategorySpec to copy
* @return <code>true</code> if any changes were made to this CategorySpec, and
* <code>false</code> otherwise.
*/
public boolean copy(CategorySpec other)
{
CategorySpec old = new CategorySpec(this);
name = other.name;
whitelist.clear();
whitelist.addAll(other.whitelist);
blacklist.clear();
blacklist.addAll(other.blacklist);
color = other.color;
filter = new FilterGroup();
filter = other.filter.copy();
return !equals(old);
}
@Override
public boolean equals(Object other)
{
if (other == null)
return false;
if (other == this)
return true;
if (!(other instanceof CategorySpec))
return false;
CategorySpec o = (CategorySpec)other;
return name.equals(o.name) && color.equals(o.color) && filter.equals(o.filter)
&& blacklist.equals(o.blacklist) && whitelist.equals(o.whitelist);
}
/**
* Exclude a card from the category, even if it passes through the filter.
*
* @param c card to exclude
* @return true if the card was successfully excluded (it was added to the
* blacklist or removed from the whitelist), and false otherwise.
*/
public boolean exclude(Card c)
{
boolean changed = false;
if (filter.test(c))
changed |= blacklist.add(c);
changed |= whitelist.remove(c);
return changed;
}
/**
* Get the set of cards that should not be included in the category,
* even if they pass through the filter.
*
* @return the set of cards that explicitly must never pass through the
* filter
*/
public Set<Card> getBlacklist()
{
return new HashSet<>(blacklist);
}
/**
* Get the category's color.
*
* @return the Color of the category.
*/
public Color getColor()
{
return color;
}
/**
* Get the category's filter for automatically including cards.
*
* @return the filter of the category.
*/
public Filter getFilter()
{
return filter;
}
/**
* Get the name of the category this CategorySpec represents.
*
* @return the name of the category.
*/
public String getName()
{
return name;
}
/**
* Get the set of cards that should be included in the category even
* if they don't pass through the filter.
*
* @return the set of cards that explicitly must pass through the filter.
*/
public Set<Card> getWhitelist()
{
return new HashSet<>(whitelist);
}
@Override
public int hashCode()
{
return Objects.hash(name, color, filter, blacklist, whitelist);
}
/**
* Include a card in the category, even if it doesn't pass through the filter.
*
* @param c card to include
* @return <code>true</code> if the Card was successfully included (either it
* was added to the whitelist or removed from the blacklist), and <code>false</code>
* otherwise.
*/
public boolean include(Card c)
{
boolean changed = false;
if (!filter.test(c))
changed |= whitelist.add(c);
changed |= blacklist.remove(c);
return changed;
}
/**
* Check if this CategorySpec's filter includes a card.
*
* @param c card to test for inclusion
* @return <code>true</code> if this CategorySpec includes the given card, and
* <code>false</code> otherwise.
*/
public boolean includes(Card c)
{
return (filter.test(c) || whitelist.contains(c)) && !blacklist.contains(c);
}
/**
* Set the Color of the category, and alert any listeners of this event.
*
* @param c new Color for the category
*/
public void setColor(Color c)
{
color = c;
}
/**
* Change the filter of the category so a new set of cards is automatically
* included, and alert any listeners of this event.
*
* @param f new filter for the category
*/
public void setFilter(Filter f)
{
filter = f;
}
/**
* Change the name of the category and update any listeners of this event.
*
* @param n new name for the category
*/
public void setName(String n)
{
name = n;
}
}
<file_sep>package editor.filter.leaf.options.single;
import java.util.HashSet;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.database.card.CardLayout;
import editor.filter.Filter;
/**
* This class represents a filter that groups cards by layout.
*
* @author <NAME>
*/
public class LayoutFilter extends SingletonOptionsFilter<CardLayout>
{
/**
* Create a new LayoutFilter.
*/
public LayoutFilter()
{
super(CardAttribute.LAYOUT, Card::layout);
}
@Override
protected CardLayout convertFromString(String str)
{
return CardLayout.valueOf(str.replace(' ', '_').toUpperCase());
}
@Override
public Filter copy()
{
LayoutFilter filter = (LayoutFilter)CardAttribute.createFilter(CardAttribute.LAYOUT);
filter.contain = contain;
filter.selected = new HashSet<>(selected);
return filter;
}
@Override
protected JsonElement convertToJson(CardLayout item)
{
return new JsonPrimitive(item.toString());
}
@Override
protected CardLayout convertFromJson(JsonElement item)
{
return CardLayout.valueOf(item.getAsString().replace(' ', '_').toUpperCase());
}
}
<file_sep>package editor.collection.export;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Optional;
import java.util.StringJoiner;
import java.util.stream.Collectors;
import editor.collection.CardList;
import editor.collection.deck.Deck;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.database.card.CardFormat;
import editor.gui.MainFrame;
import editor.gui.editor.DeckSerializer;
/**
* This class represents a formatter that creates a table whose columns
* are card characteristics and whose rows contain the values of those
* characteristics for the corresponding cards.
*
* @author <NAME>
*/
public class DelimitedCardListFormat implements CardListFormat
{
/**
* Default delimiter between table cells. It is a comma.
*/
public static final String DEFAULT_DELIMITER = ",";
/**
* Default data to present in the table. By default, only a card's name,
* expansion, and copy count will be used.
*/
public static final List<CardAttribute> DEFAULT_DATA = List.of(CardAttribute.NAME,
CardAttribute.EXPANSION,
CardAttribute.COUNT);
/**
* List of suggested delimiters.
*/
public static final String[] DELIMITERS = new String[]{",", ";", ":", "{tab}", "{space}"};
/**
* String to surround cells that contain the delimiter with.
*/
public static final String ESCAPE = "\"";
/**
* Split a string along a delimiter, but only if that delimiter is not inside {@value #ESCAPE}.
* If a split value is surrounded by {@value #ESCAPE}, remove them.
*
* @param delimiter delimiter to split with
* @param line string to split
* @return an array containing the split string with delimiters and surrounding {@value #ESCAPE} removed
*/
public static String[] split(String delimiter, String line)
{
String[] cells = line.split(delimiter + "(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)");
for (int i = 0; i < cells.length; i++)
if (cells[i].substring(0, ESCAPE.length()).equals(ESCAPE) || cells[i].substring(cells[i].length() - ESCAPE.length()).equals(ESCAPE))
cells[i] = cells[i].substring(1, cells[i].length() - 1);
return cells;
}
/**
* Storage structure for the column indices of important card attributes used for identifying
* cards in a table. Some of the indices allow for the use of -1 to indicate that that
* piece of information is not present in the table.
*
* @author <NAME>
*/
private static class Indices
{
/** Column index where cards' names can be found. Must be present. */
public final int name;
/** Column index where cards' expansions can be found. */
public final int expansion;
/** Column index where cards' collector numbers can be found. */
public final int number;
/** Column index where cards' counts can be found. */
public final int count;
/** Column index where cards' dates added can be found. */
public final int date;
/**
* Create a new set of indices. Throw an exception if the index for cards'
* names is unknown (-1) and warn if the one for cards' counts is unknown.
*
* @param n index for names
* @param e index for expansions
* @param m index for collector numbers
* @param c index for counts
* @param d index for dates
*/
public Indices(int n, int e, int m, int c, int d)
{
name = n;
expansion = e;
number = m;
count = c;
date = d;
if (name < 0)
throw new IllegalStateException("can't parse cards without names");
if (count < 0)
System.err.println("warning: missing card count in parse; assuming one copy of each card");
}
}
/**
* Delimiter to separate table cells.
*/
private String delimiter;
/**
* Whether or not to include column headers. Parsing will require
* column headers.
*/
private boolean include;
/**
* Data types to include in the table.
*/
private List<CardAttribute> types;
/**
* Current position in the text.
*/
private int pos;
/**
* Indices where identifying information can be found.
*/
private Indices indices;
/**
* Create a new way to format a card list into a table.
*
* @param delim delimiter for the table cells
* @param data data types to use for the columns
* @param headers whether or not to include column headers
*/
public DelimitedCardListFormat(String delim, List<CardAttribute> data, boolean headers)
{
delimiter = delim;
types = data;
include = headers;
if ("{space}".equals(delimiter))
delimiter = " ";
else if ("{tab}".equals(delimiter))
delimiter = "\t";
}
@Override
public String format(CardList list)
{
StringJoiner join = new StringJoiner(System.lineSeparator());
var columnFormats = types.stream().map((t) -> new CardFormat('{' + t.toString().toLowerCase() + '}')).collect(Collectors.toList());
for (Card card : list)
{
StringJoiner line = new StringJoiner(delimiter);
for (CardFormat format : columnFormats)
{
String value = format.format(list.getEntry(card));
if (value.contains(delimiter))
value = ESCAPE + value.replace(ESCAPE, ESCAPE + ESCAPE) + ESCAPE;
line.add(value);
}
join.add(line.toString());
}
return join.toString();
}
@Override
public String header()
{
if (include)
return String.join(delimiter, types.stream().map(CardAttribute::toString).toArray(String[]::new));
else
return "";
}
/**
* Parse a delimited line to find which headers in the table contain which
* information.
*
* @param line line to parse
* @throws ParseException if the line can't be parsed
*/
private void parseHeader(String line) throws ParseException
{
if (include)
throw new IllegalStateException("Headers are already defined");
else
{
if (!include)
{
String[] headers = line.split(delimiter);
types = new ArrayList<>(headers.length);
for (String header : headers)
{
boolean success = false;
for (CardAttribute type : CardAttribute.displayableValues())
{
if (header.compareToIgnoreCase(type.toString()) == 0)
{
types.add(type);
success = true;
break;
}
}
if (!success)
throw new ParseException("unknown data type " + header, pos);
}
indices = new Indices(
types.indexOf(CardAttribute.NAME),
types.indexOf(CardAttribute.EXPANSION),
types.indexOf(CardAttribute.CARD_NUMBER),
types.indexOf(CardAttribute.COUNT),
types.indexOf(CardAttribute.DATE_ADDED)
);
}
}
}
/**
* Attempt to identify a card from a line of delimited text.
*
* @param deck deck to add the parsed card to
* @param line line to parse
* @throws ParseException if the line can't be parsed
*/
private void parseLine(Deck deck, String line) throws ParseException
{
line = line.replace(ESCAPE + ESCAPE, ESCAPE);
String[] cells = split(delimiter, line);
var possibilities = MainFrame.inventory().stream().filter((c) -> c.unifiedName().equalsIgnoreCase(cells[indices.name])).collect(Collectors.toList());
if (possibilities.size() > 1 && indices.expansion > -1)
possibilities.removeIf((c) -> !c.expansion().name.equalsIgnoreCase(cells[indices.expansion]));
if (possibilities.size() > 1 && indices.number > -1)
possibilities.removeIf((c) -> !String.join(Card.FACE_SEPARATOR, c.number()).equals(cells[indices.number]));
if (possibilities.size() > 1)
System.err.println("warning: cannot determine printing of " + possibilities.get(0).unifiedName());
if (possibilities.isEmpty())
throw new ParseException("can't find card named " + cells[indices.name], pos);
deck.add(possibilities.get(0), indices.count < 0 ? 1 : Integer.parseInt(cells[indices.count]), indices.date < 0 ? LocalDate.now() : LocalDate.parse(cells[indices.date], Deck.DATE_FORMATTER));
}
@Override
public DeckSerializer parse(InputStream source) throws ParseException, IOException
{
Deck deck = new Deck();
Optional<String> extra = Optional.empty();
var extras = new LinkedHashMap<String, Deck>();
pos = 0;
int c;
StringBuilder line = new StringBuilder(128);
boolean headed = false;
do
{
c = source.read();
if (c >= 0 && c != '\r' && c != '\n')
line.append((char)c);
if (c == '\n' || c < 0)
{
if (!headed && !include)
{
parseHeader(line.toString());
headed = true;
}
else
{
try
{
parseLine(extra.map(extras::get).orElse(deck), line.toString());
}
catch (ParseException e)
{
extra = Optional.of(line.toString());
extras.put(extra.get(), new Deck());
}
}
line.setLength(0);
}
pos++;
} while (c >= 0);
return new DeckSerializer(deck, extras, "");
}
}
<file_sep>package editor.database.symbol;
import java.util.Map;
import java.util.Optional;
/**
* This class represents a symbol that has a specific meaning that isn't related to mana costs.
*
* @author <NAME>
*/
public class FunctionalSymbol extends Symbol
{
/**
* The Chaos symbol that appears on Plane cards. Because it has a special
* text representation that doens't use {}, it is exposed as a separate constant.
*/
public static final FunctionalSymbol CHAOS = new FunctionalSymbol("chaos.png", "CHAOS")
{
@Override
public String toString()
{
return "CHAOS";
}
};
/**
* Map of symbol texts onto their respective symbols.
*/
public static final Map<String, FunctionalSymbol> SYMBOLS = Map.of(
CHAOS.toString(), CHAOS,
"P", new FunctionalSymbol("phyrexia.png", "P"),
"T", new FunctionalSymbol("tap.png", "T"),
"TAP", new FunctionalSymbol("tap.png", "T"),
"Q", new FunctionalSymbol("untap.png", "Q"),
"E", new FunctionalSymbol("energy.png", "E")
);
/**
* Get the FunctionalSymbol corresponding to the given String.
*
* @param s String to look up
* @return the FunctionalSymbol corresponding to the given String
* @throws IllegalArgumentException if the String doesn't correspond to a functional symbol
*/
public static FunctionalSymbol parseFunctionalSymbol(String s) throws IllegalArgumentException
{
return tryParseFunctionalSymbol(s).orElseThrow(() -> new IllegalArgumentException('"' + s + "\" is not a functional symbol"));
}
/**
* Get the FunctionalSymbol corresponding to the given String.
*
* @param s String to look up
* @return the FunctionalSymbol corresponding to the given String, or null if there is none
*/
public static Optional<FunctionalSymbol> tryParseFunctionalSymbol(String s)
{
return Optional.ofNullable(SYMBOLS.get(s.toUpperCase()));
}
/**
* Create a new FunctionalSymbol.
*
* @param iconName name of the new symbol's icon
* @param text text representation of the new symbol
*/
private FunctionalSymbol(String iconName, String text)
{
super(iconName, text);
}
}
<file_sep>package editor.gui.editor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.function.Function;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.DefaultListSelectionModel;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ListSelectionModel;
import editor.collection.CardList;
import editor.collection.deck.Deck;
import editor.database.FormatConstraints;
import editor.database.attributes.Legality;
import editor.database.attributes.ManaCost;
import editor.database.attributes.ManaType;
import editor.database.card.Card;
import editor.database.symbol.ColorSymbol;
import editor.database.symbol.ManaSymbol;
import editor.gui.generic.ComponentUtils;
import editor.gui.settings.SettingsDialog;
import editor.util.UnicodeSymbols;
/**
* This class represents a panel that shows the formats a deck is legal and illegal in.
*
* @author <NAME>
*/
@SuppressWarnings("serial")
public class LegalityPanel extends Box
{
/** Item to show for searching the main deck. */
private static final String MAIN_DECK = "Main Deck";
/** Item to show for searching all of the lists. */
private static final String ALL_LISTS = "All Lists";
/** Regex pattern used to detect if a card can be a partner. */
private static final Pattern PARTNER_PATTERN = Pattern.compile("partner(?: with (.+) \\()?");
/**
* Array containing formats the deck is illegal in.
*/
private List<String> illegal;
/**
* Array containing formats the deck is legal in.
*/
private List<String> legal;
/**
* Map of formats to reasons for being illegal in them. Contents of the map are lists
* of Strings, which will be empty for legal formats.
*/
private Map<String, List<String>> warnings;
/**
* List showing which formats the deck is legal in.
*/
private JList<String> legalList;
/**
* List showing which formats the deck is illegal in.
*/
private JList<String> illegalList;
/**
* List showing reasons for why the deck is illegal in the selected format.
*/
private JList<String> warningsList;
/**
* Create a new LegalityPanel showing the legality of a deck.
*
* @param editor editor frame containing the deck to check
*/
public LegalityPanel(EditorFrame editor)
{
super(BoxLayout.Y_AXIS);
setPreferredSize(new Dimension(400, 250));
warnings = FormatConstraints.FORMAT_NAMES.stream().collect(Collectors.toMap(Function.identity(), (l) -> new ArrayList<String>()));
// Panel containing format lists
JPanel listsPanel = new JPanel(new GridLayout(1, 2));
add(listsPanel);
// Panel containing legal formats list
JPanel legalPanel = new JPanel(new BorderLayout());
legalPanel.setBorder(BorderFactory.createTitledBorder("Legal in:"));
listsPanel.add(legalPanel);
// Legal formats list. Selection is disabled in this list
legalList = new JList<>();
legalList.setSelectionModel(new DefaultListSelectionModel()
{
@Override
public int getSelectionMode()
{
return ListSelectionModel.SINGLE_SELECTION;
}
@Override
public void setSelectionInterval(int index0, int index1)
{
super.setSelectionInterval(-1, -1);
}
});
legalPanel.add(new JScrollPane(legalList), BorderLayout.CENTER);
// Panel containing illegal formats list
JPanel illegalPanel = new JPanel(new BorderLayout());
illegalPanel.setBorder(BorderFactory.createTitledBorder("Illegal in:"));
listsPanel.add(illegalPanel);
// Illegal formats list. Only one element can be selected at a time.
illegalList = new JList<>();
illegalList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
illegalPanel.add(new JScrollPane(illegalList), BorderLayout.CENTER);
// Panel containing check box for enabling commander search
Box cmdrPanel = Box.createHorizontalBox();
JCheckBox cmdrCheck = new JCheckBox("", SettingsDialog.settings().editor.legality.searchForCommander);
cmdrCheck.setText(cmdrCheck.isSelected() ? "Search for commander in:" : "Search for commander");
cmdrPanel.add(cmdrCheck);
List<String> names = new ArrayList<>(List.of(MAIN_DECK, ALL_LISTS));
names.addAll(editor.getExtraNames());
var cmdrBox = new JComboBox<>(names.toArray(String[]::new));
cmdrBox.setVisible(SettingsDialog.settings().editor.legality.searchForCommander);
if (SettingsDialog.settings().editor.legality.main)
cmdrBox.setSelectedIndex(names.indexOf(MAIN_DECK));
else if (SettingsDialog.settings().editor.legality.all)
cmdrBox.setSelectedIndex(names.indexOf(ALL_LISTS));
else
{
String name = SettingsDialog.settings().editor.legality.list;
cmdrBox.setSelectedIndex(names.contains(name) ? names.indexOf(name) : names.indexOf(MAIN_DECK));
}
cmdrBox.setMaximumSize(cmdrBox.getPreferredSize());
cmdrPanel.add(cmdrBox);
cmdrPanel.add(Box.createHorizontalGlue());
add(cmdrPanel);
// Panel containing check box for including a sideboard
final JCheckBox sideCheck;
final JComboBox<String> sideCombo;
if (!editor.getExtraNames().isEmpty())
{
String sb = SettingsDialog.settings().editor.legality.sideboard;
add(Box.createVerticalStrut(2));
Box sideboardBox = Box.createHorizontalBox();
sideCheck = new JCheckBox("", !sb.isEmpty() && editor.getExtraNames().contains(sb));
sideboardBox.add(sideCheck);
sideCombo = new JComboBox<>(editor.getExtraNames().toArray(String[]::new));
sideCombo.setSelectedIndex(Math.max(0, editor.getExtraNames().indexOf(sb)));
sideCombo.setMaximumSize(sideCombo.getPreferredSize());
sideboardBox.add(sideCombo);
sideboardBox.add(Box.createHorizontalGlue());
add(sideboardBox);
}
else
{
sideCheck = null;
sideCombo = null;
}
ActionListener listener = (e) -> {
if (!editor.getExtraNames().isEmpty())
{
sideCheck.setText(sideCheck.isSelected() ? "Sideboard is:" : "Include sideboard");
sideCombo.setVisible(sideCheck.isSelected());
}
cmdrCheck.setText("Search for commander" + (cmdrCheck.isSelected() ? " in:" : ""));
cmdrBox.setVisible(cmdrCheck.isSelected());
checkLegality(editor.getList(EditorFrame.MAIN_DECK), !cmdrCheck.isSelected() ? new Deck() : switch (cmdrBox.getSelectedItem().toString()) {
case MAIN_DECK -> editor.getList(EditorFrame.MAIN_DECK);
case ALL_LISTS -> editor.getExtraCards();
default -> editor.getList(cmdrBox.getSelectedItem().toString());
}, !editor.getExtraNames().isEmpty() && sideCheck.isSelected() ? Optional.of(editor.getList(sideCombo.getItemAt(sideCombo.getSelectedIndex()))) : Optional.empty());
};
if (!editor.getExtraNames().isEmpty())
{
sideCheck.addActionListener(listener);
sideCombo.addActionListener(listener);
}
cmdrCheck.addActionListener(listener);
cmdrBox.addActionListener(listener);
// Panel containing text box that shows why a deck is illegal in a format
JPanel warningsPanel = new JPanel(new BorderLayout());
warningsPanel.setBorder(BorderFactory.createTitledBorder("Warnings"));
add(warningsPanel);
// Text box that shows reasons for illegality
warningsList = new JList<>();
warningsList.setSelectionModel(new DefaultListSelectionModel()
{
@Override
public int getSelectionMode()
{
return ListSelectionModel.SINGLE_SELECTION;
}
@Override
public void setSelectionInterval(int index0, int index1)
{
super.setSelectionInterval(-1, -1);
}
});
warningsList.setCellRenderer((l, v, i, s, c) -> {
Matcher m = ManaCost.MANA_COST_PATTERN.matcher(v);
if (m.find())
{
Box cell = Box.createHorizontalBox();
cell.add(new JLabel(v.substring(0, m.start())));
for (ManaSymbol symbol : ManaCost.parseManaCost(m.group()))
cell.add(new JLabel(symbol.getIcon(ComponentUtils.TEXT_SIZE)));
return cell;
}
else
return new JLabel(v);
});
warningsPanel.add(new JScrollPane(warningsList), BorderLayout.CENTER);
// Click on a list element to show why it is illegal
illegalList.addListSelectionListener((e) -> {
if (illegalList.getSelectedIndex() >= 0)
warningsList.setListData(warnings.get(illegalList.getSelectedValue()).stream().map((w) -> UnicodeSymbols.BULLET + " " + w).toArray(String[]::new));
else
warningsList.setListData(new String[0]);
});
listener.actionPerformed(new ActionEvent(cmdrCheck, 0, "", ActionEvent.ACTION_PERFORMED));
}
/**
* Check which formats a deck is legal in, and the reasons for why it is illegal in
* others.
*
* @param deck deck to check
*/
public void checkLegality(CardList deck, CardList commanderSearch, Optional<CardList> sideboard)
{
Map<Card, Integer> isoNameCounts = new HashMap<>();
for (Card c : deck)
{
boolean counted = false;
for (Card name : isoNameCounts.keySet())
{
if (name.compareName(c) == 0)
{
isoNameCounts.compute(name, (k, v) -> v += deck.getEntry(name).count());
counted = true;
break;
}
}
if (!counted)
isoNameCounts.put(c, deck.getEntry(c).count());
}
Set<ManaType> deckColorIdentity = deck.stream().flatMap((c) -> c.colorIdentity().stream()).collect(Collectors.toSet());
for (final String format : warnings.keySet())
{
warnings.get(format).clear();
final FormatConstraints constraints = FormatConstraints.CONSTRAINTS.get(format);
// Commander(s) exist(s) and deck matches color identity
boolean commander = false;
boolean partners = false;
if (!commanderSearch.isEmpty())
{
if (constraints.hasCommander)
{
var possibleCommanders = commanderSearch.stream().filter((c) -> c.commandFormats().contains(format)).collect(Collectors.toList());
for (Card c : new ArrayList<>(possibleCommanders))
{
if (c.colorIdentity().containsAll(deckColorIdentity))
{
commander = true;
break;
}
}
var possiblePartners = possibleCommanders.stream()
.flatMap((c) -> c.normalizedOracle().stream().map((o) -> new SimpleEntry<>(c, PARTNER_PATTERN.matcher(o))))
.filter((e) -> e.getKey().commandFormats().contains(format) && e.getValue().find())
.map((e) -> new SimpleEntry<>(e.getKey(), e.getValue().group(1) != null ? e.getValue().group(1).toLowerCase() : ""))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
search: for (var p : possiblePartners.entrySet())
{
for (Card c : possibleCommanders)
{
var colorIdentity = new HashSet<ManaType>();
if (p.getValue().isEmpty())
{
if (c.normalizedOracle().stream().map((o) -> PARTNER_PATTERN.matcher(o)).anyMatch((m) -> m.find() && m.group(1) == null))
{
colorIdentity.addAll(p.getKey().colorIdentity());
colorIdentity.addAll(c.colorIdentity());
}
}
else if (p.getValue().equalsIgnoreCase(c.unifiedName()))
{
colorIdentity.addAll(p.getKey().colorIdentity());
colorIdentity.addAll(c.colorIdentity());
}
if (colorIdentity.containsAll(deckColorIdentity))
{
partners = true;
break search;
}
}
}
if (!(commander || partners))
warnings.get(format).add("Could not find a legendary creature whose color identity contains " +
deckColorIdentity.stream().sorted().map((t) -> ColorSymbol.SYMBOLS.get(t).toString()).collect(Collectors.joining()));
}
}
// Deck size
if (constraints.hasCommander)
{
if (((commanderSearch.isEmpty() || commanderSearch == deck) && deck.total() != constraints.deckSize) ||
((!commanderSearch.isEmpty() && commanderSearch != deck) &&
(commander && deck.total() != constraints.deckSize - 1) || (partners && deck.total() != constraints.deckSize - 2)))
warnings.get(format).add("Deck does not contain exactly " + (constraints.deckSize - 1) + " cards plus a commander or " +
(constraints.deckSize - 2) + " cards plus two partner commanders");
}
else
{
if (deck.total() < constraints.deckSize)
warnings.get(format).add("Deck contains fewer than " + constraints.deckSize + " cards");
}
// Individual card legality and count
for (Card c : deck)
{
final int maxCopies = constraints.maxCopies;
if (!c.legalityIn(format).isLegal)
warnings.get(format).add(c.unifiedName() + " is illegal in " + format);
else if (isoNameCounts.containsKey(c) && !c.ignoreCountRestriction())
{
if (c.legalityIn(format) == Legality.RESTRICTED && isoNameCounts.get(c) > 1)
warnings.get(format).add(c.unifiedName() + " is restricted in " + format);
else if (isoNameCounts.get(c) > maxCopies)
warnings.get(format).add("Deck contains more than " + maxCopies + " copies of " + c.unifiedName());
}
}
// Sideboard size
sideboard.ifPresent((sb) -> {
if (sb.total() > constraints.sideboardSize)
warnings.get(format).add("Sideboard contains more than " + constraints.sideboardSize + " cards");
});
}
// Collate the legality lists
illegal = warnings.keySet().stream().filter((s) -> !warnings.get(s).isEmpty()).collect(Collectors.toList());
Collections.sort(illegal);
legal = new ArrayList<>(FormatConstraints.FORMAT_NAMES);
legal.removeAll(illegal);
Collections.sort(legal);
warningsList.setListData(new String[0]);
legalList.setListData(legal.toArray(String[]::new));
illegalList.setListData(illegal.toArray(String[]::new));
}
}
<file_sep>package editor.filter.leaf.options.multi;
import java.util.Collection;
import java.util.Objects;
import java.util.function.Function;
import editor.database.attributes.CardAttribute;
import editor.database.card.Card;
import editor.filter.leaf.FilterLeaf;
import editor.filter.leaf.options.OptionsFilter;
/**
* This class represents a filter that groups cards by a characteristic that
* can contain zero or more of a set of values.
*
* @param <T> Type of the characteristic being filtered
* @author <NAME>
*/
public abstract class MultiOptionsFilter<T> extends OptionsFilter<T>
{
/**
* Function representing the characteristic being filtered that hides
* the superclass's function. Replaces the function inherited from
* {@link FilterLeaf}.
*/
private Function<Card, Collection<T>> function;
/**
* Create a new MultiOptionsFilter.
*
* @param t type of the new MultiOptionsFilter
* @param f function for the new MultiOptionsFilter
*/
public MultiOptionsFilter(CardAttribute t, Function<Card, Collection<T>> f)
{
super(t, null);
function = f;
}
@Override
public int hashCode()
{
return Objects.hash(type(), function, contain, selected);
}
/**
* Get the function representing this MultiOptionsFilter's attribute. Don't use
* {@link #function()}, which will return <code>null</code>.
*
* @return this MultiOptionsFilter's function
*/
protected Function<Card, Collection<T>> multifunction()
{
return function;
}
/**
* {@inheritDoc}
* Filter cards by attributes that can take zero or or more of a certain value
* according to this MultiOptionsFilter's selection and containment.
*/
@Override
public boolean test(Card c)
{
return contain.test(function.apply(c), selected);
}
}
<file_sep>package editor.database.card;
/**
* This enum enumerates all of the different types of possible card layouts.
* Some of them indicate that a card has multiple faces.
*
* @author <NAME>
*/
public enum CardLayout
{
/**
* Normal, single-faced card.
*
* @see SingleCard
*/
NORMAL("Normal"),
/**
* Card with multiple "mini-cards" present on the front face. Usually
* there's only two.
*
* @see SplitCard
*/
SPLIT("Split", true),
/**
* Special split card where one of the "mini-cards" can only be cast from
* the graveyard.
*
* @see SplitCard
*/
AFTERMATH("Aftermath", true),
/**
* Card with one face on the top and another on the bottom that is
* accessible by rotating it 180 degrees.
*
* @see FlipCard
*/
FLIP("Flip", true),
/**
* Card with one face on the front and another on the back.
*
* @see DoubleFacedCard
*/
TRANSFORM("Transform", true),
/**
* Card with one face on the front and half of another on the back.
* Another meld card will have the other half of the back.
*
* @see MeldCard
*/
MELD("Meld", true),
/**
* Single-faced card with a special frame that has three sets of abilities.
*
* @see SingleCard
*/
LEVELER("Leveler"),
/**
* Single-faced card with a special frame that indicates three "chapters"
* of a story.
*
* @see SingleCard
*/
SAGA("Saga"),
/**
* Special split card with a "main" creature face and a special instant or
* sorcery "Adventure" face.
*
* @see SplitCard
*/
ADVENTURE("Adventure", true),
/**
* Special double-faced card where either face can be played.
*/
MODAL_DFC("Modal DFC", true),
/**
* An extra-large card for use in the Planechase format.
*/
PLANAR("Planar"),
/**
* An extra-large scheme card for use in the Archenemy format.
*/
SCHEME("Scheme"),
/**
* An extra-large card for use in the Vanguard format.
*/
VANGUARD("Vanguard"),
/**
* A single-faced card intended to host an #{@link #AUGMENT}.
*/
HOST("Host"),
/**
* A single-faced card intended to attach to a {@link #HOST} and improve
* it.
*/
AUGMENT("Augment");
/**
* Whether or not the card is multi-faced.
*/
public final boolean isMultiFaced;
/**
* String representation of the card's layout.
*/
private final String layout;
/**
* Create a new CardLayout that is not multi-faced.
*
* @param l String representation of the layout.
*/
CardLayout(String l)
{
this(l, false);
}
/**
* Create a new CardLayout.
*
* @param l String representation of the layout.
* @param m whether or not the layout is multi-faced.
*/
CardLayout(String l, boolean m)
{
layout = l;
isMultiFaced = m;
}
@Override
public String toString()
{
return layout;
}
}
<file_sep>package editor.database.attributes;
/**
* This enum represents a rarity a Magic: The Gathering card can have. Rarities
* are basically Strings, so they implement {@link CharSequence}. All of the
* implemented methods operate on a Rarity's String representation from
* {@link #toString()}.
*
* @author <NAME>
*/
public enum Rarity implements CharSequence
{
/**
* Rarity for basic lands.
*/
BASIC_LAND("Basic Land"),
/**
* Common rarity.
*/
COMMON("Common"),
/**
* Uncommon rarity.
*/
UNCOMMON("Uncommon"),
/**
* Rare rarity.
*/
RARE("Rare"),
/**
* Mythic rare rarity.
*/
MYTHIC_RARE("Mythic Rare"),
/**
* "Special" rarity, such as timeshifted.
*/
SPECIAL("Special");
/**
* Create a rarity from a shorthand character.
*
* @param rarity Character to create a Rarity from
* @return a Rarity representing the specified shorthand character
* @throws IllegalArgumentException if a Rarity cannot be created from the specified character
*/
public static Rarity parseRarity(char rarity)
{
return switch (Character.toLowerCase(rarity)) {
case 'c' -> COMMON;
case 'u' -> UNCOMMON;
case 'r' -> RARE;
case 'm' -> MYTHIC_RARE;
case 's' -> SPECIAL;
case 'b' -> BASIC_LAND;
default -> throw new IllegalArgumentException("Illegal rarity shorthand");
};
}
/**
* Create a Rarity from the specified String.
*
* @param rarity String to create a Rarity from
* @return a Rarity representing the specified String
* @throws IllegalArgumentException if a Rarity cannot be created from the String
*/
public static Rarity parseRarity(String rarity)
{
if (rarity.contains("mythic"))
return MYTHIC_RARE;
else if (rarity.contains("rare"))
return RARE;
else if (rarity.contains("uncommon"))
return UNCOMMON;
else if (rarity.contains("common"))
return COMMON;
else if (rarity.contains("basic"))
return BASIC_LAND;
else
{
System.err.println("warning: Could not determine rarity of \"" + rarity + '"');
return SPECIAL;
}
}
/**
* String representation of this Rarity.
*/
private final String rarity;
/**
* Create a new Rarity.
*
* @param rarity String representation of the new Rarity.
*/
Rarity(final String rarity)
{
this.rarity = rarity;
}
@Override
public char charAt(int index)
{
return rarity.charAt(index);
}
@Override
public int length()
{
return rarity.length();
}
/**
* Get the shorthand character for this Rarity.
*
* @return A shorthand character representing this Rarity.
*/
public char shorthand()
{
return switch (this) {
case COMMON -> 'C';
case UNCOMMON -> 'U';
case RARE -> 'R';
case MYTHIC_RARE -> 'M';
case SPECIAL -> 'S';
case BASIC_LAND -> 'B';
};
}
@Override
public CharSequence subSequence(int start, int end)
{
return rarity.subSequence(start, end);
}
@Override
public String toString()
{
return rarity;
}
}
<file_sep>package editor.database.attributes;
import java.text.Collator;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Optional;
import java.util.Set;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import editor.collection.CardList;
import editor.collection.Inventory;
import editor.collection.deck.CategorySpec;
import editor.database.card.Card;
import editor.database.card.CardLayout;
import editor.filter.Filter;
import editor.filter.leaf.BinaryFilter;
import editor.filter.leaf.ColorFilter;
import editor.filter.leaf.FilterLeaf;
import editor.filter.leaf.ManaCostFilter;
import editor.filter.leaf.NumberFilter;
import editor.filter.leaf.TextFilter;
import editor.filter.leaf.TypeLineFilter;
import editor.filter.leaf.VariableNumberFilter;
import editor.filter.leaf.options.multi.CardTypeFilter;
import editor.filter.leaf.options.multi.LegalityFilter;
import editor.filter.leaf.options.multi.SubtypeFilter;
import editor.filter.leaf.options.multi.SupertypeFilter;
import editor.filter.leaf.options.multi.TagsFilter;
import editor.filter.leaf.options.single.BlockFilter;
import editor.filter.leaf.options.single.ExpansionFilter;
import editor.filter.leaf.options.single.LayoutFilter;
import editor.filter.leaf.options.single.RarityFilter;
import editor.util.CollectionUtils;
/**
* This enum represents an attribute of a Magic: The Gathering card such as name, power, toughness,
* etc. It can create a {@link Filter} for values of the attribute and compare two different values
* of the attribute. Generally an attribute that can be compared can also be displayed in a table.
*
* @author <NAME>
*/
public enum CardAttribute implements Supplier<FilterLeaf<?>>, Comparator<Object>
{
/** Name of a card. */
NAME("Name", String.class, (a) -> new TextFilter(a, Card::normalizedName), Collator.getInstance()),
/** A card's Oracle text. */
RULES_TEXT("Rules Text", (a) -> new TextFilter(a, Card::normalizedOracle)),
/** A card's flavor text. */
FLAVOR_TEXT("Flavor Text", (a) -> new TextFilter(a, Card::normalizedFlavor)),
/** The text physically printed on a card. */
PRINTED_TEXT("Printed Text", (a) -> new TextFilter(a, Card::normalizedPrinted)),
/** Mana cost of a card. */
MANA_COST("Mana Cost", List.class, (a) -> new ManaCostFilter(), Comparator.comparing((a) -> CollectionUtils.convertToList(a, ManaCost.class).get(0))),
/** Converted mana cost of a card. */
CMC("CMC", List.class, (a) -> new NumberFilter(a, Card::cmc), Comparator.comparingDouble((a) -> Collections.min(CollectionUtils.convertToList(a, Double.class)))),
/** Colors of all faces of a card. */
COLORS("Colors", List.class, (a) -> new ColorFilter(a, Card::colors), (a, b) -> {
var first = CollectionUtils.convertToList(a, ManaType.class);
var second = CollectionUtils.convertToList(b, ManaType.class);
int diff = first.size() - second.size();
if (diff == 0)
for (int i = 0; i < first.size(); i++)
diff += first.get(i).compareTo(second.get(i)) * Math.pow(10, first.size() - i);
return diff;
}),
/** Color identity of a card. */
COLOR_IDENTITY("Color Identity", List.class, (a) -> new ColorFilter(a, Card::colorIdentity), (a, b) -> {
var first = CollectionUtils.convertToList(a, ManaType.class);
var second = CollectionUtils.convertToList(b, ManaType.class);
int diff = first.size() - second.size();
if (diff == 0)
for (int i = 0; i < first.size(); i++)
diff += first.get(i).compareTo(second.get(i)) * Math.pow(10, first.size() - i);
return diff;
}),
/** Type line of a card. */
TYPE_LINE("Type Line", String.class, (a) -> new TypeLineFilter(), Collator.getInstance()),
/** The type line physically printed on a card. */
PRINTED_TYPES("Printed Type Line", (a) -> new TextFilter(a, Card::printedTypes)),
/** A card's types. */
CARD_TYPE("Card Type", (a) -> new CardTypeFilter()),
/** A card's subtypes. */
SUBTYPE("Subtype", (a) -> new SubtypeFilter()),
/** A card's supertypes. */
SUPERTYPE("Supertype", (a) -> new SupertypeFilter()),
/** Power of a creature card. */
POWER("Power", List.class, (a) -> new VariableNumberFilter(a, (c) -> c.power().stream().map((p) -> p.value).collect(Collectors.toList()), Card::powerVariable), (a, b) -> {
CombatStat first = CollectionUtils.convertToList(a, CombatStat.class).stream().filter(CombatStat::exists).findFirst().orElse(CombatStat.NO_COMBAT);
CombatStat second = CollectionUtils.convertToList(b, CombatStat.class).stream().filter(CombatStat::exists).findFirst().orElse(CombatStat.NO_COMBAT);
return first.compareTo(second);
}),
/** Toughness of a creature card. */
TOUGHNESS("Toughness", List.class, (a) -> new VariableNumberFilter(a, (c) -> c.toughness().stream().map((p) -> p.value).collect(Collectors.toList()), Card::toughnessVariable), (a, b) -> {
CombatStat first = CollectionUtils.convertToList(a, CombatStat.class).stream().filter(CombatStat::exists).findFirst().orElse(CombatStat.NO_COMBAT);
CombatStat second = CollectionUtils.convertToList(b, CombatStat.class).stream().filter(CombatStat::exists).findFirst().orElse(CombatStat.NO_COMBAT);
return first.compareTo(second);
}),
/** Loyalty of a planeswalker card. */
LOYALTY("Loyalty", List.class, (a) -> new VariableNumberFilter(a, (Card c) -> c.loyalty().stream().map((l) -> (double)l.value).collect(Collectors.toList()), Card::loyaltyVariable),(a, b) -> {
Loyalty first = CollectionUtils.convertToList(a, Loyalty.class).stream().filter(Loyalty::exists).findFirst().orElse(Loyalty.NO_LOYALTY);
Loyalty second = CollectionUtils.convertToList(b, Loyalty.class).stream().filter(Loyalty::exists).findFirst().orElse(Loyalty.NO_LOYALTY);
return first.compareTo(second);
}),
/** {@link CardLayout} of a card. */
LAYOUT("Layout", CardLayout.class, (a) -> new LayoutFilter(), (a, b) -> ((CardLayout)a).compareTo((CardLayout)b)),
/** Name of the expansion a card was released in. */
EXPANSION("Expansion", String.class, (a) -> new ExpansionFilter(), Collator.getInstance()),
/** Name of the block containing the expansion the card was released in. */
BLOCK("Block", String.class, (a) -> new BlockFilter(), Collator.getInstance()),
/** Rarity of a card in its expansion. */
RARITY("Rarity", Rarity.class, (a) -> new RarityFilter(), (a, b) -> ((Rarity)a).compareTo((Rarity)b)),
/** Artist of a card. */
ARTIST("Artist", String.class,(a) -> new TextFilter(a, Card::artist), Collator.getInstance()),
/** Collector number of a card. */
CARD_NUMBER("Card Number", List.class, (a) -> new NumberFilter(a, (c) -> c.number().stream().map((v) -> Double.valueOf(v.replace("--", "0").replaceAll("[\\D]", ""))).collect(Collectors.toList())), (a, b) -> {
var first = String.join(Card.FACE_SEPARATOR, CollectionUtils.convertToList(a, String.class));
var second = String.join(Card.FACE_SEPARATOR, CollectionUtils.convertToList(b, String.class));
return Collator.getInstance().compare(first, second);
}),
/** Set of formats a card is legal in. */
LEGAL_IN("Format Legality", List.class, (a) -> new LegalityFilter(), (a, b) -> {
var first = String.join(",", CollectionUtils.convertToList(a, String.class).stream().sorted().collect(Collectors.toList()));
var second = String.join(",", CollectionUtils.convertToList(b, String.class).stream().sorted().collect(Collectors.toList()));
return first.compareTo(second);
}),
/** Tags that have been applied to a card. */
TAGS("Tags", Set.class, (a) -> new TagsFilter(), (a, b) -> {
var first = String.join(",", CollectionUtils.convertToSet(a, String.class).stream().sorted().collect(Collectors.toList()));
var second = String.join(",", CollectionUtils.convertToSet(b, String.class).stream().sorted().collect(Collectors.toList()));
return Collator.getInstance().compare(first, second);
}),
/** Categories in a deck in which a card belongs.*/
CATEGORIES("Categories", Set.class, (a, b) -> {
var first = CollectionUtils.convertToSet(a, CategorySpec.class).stream().sorted(Comparator.comparing(CategorySpec::getName)).collect(Collectors.toList());
var second = CollectionUtils.convertToSet(b, CategorySpec.class).stream().sorted(Comparator.comparing(CategorySpec::getName)).collect(Collectors.toList());
for (int i = 0; i < Math.min(first.size(), second.size()); i++)
{
int diff = first.get(i).getName().compareTo(second.get(i).getName());
if (diff != 0)
return diff;
}
return Integer.compare(first.size(), second.size());
}),
/** Number of copies of a card in a deck. */
COUNT("Count", Integer.class, (a, b) -> (Integer)b - (Integer)a),
/** Date a card was added to a deck. */
DATE_ADDED("Date Added", LocalDate.class, (a, b) -> ((LocalDate)a).compareTo((LocalDate)b)),
/** No filter applied. */
ANY("<Any Card>", (a) -> new BinaryFilter(true)),
/** Filter all cards. */
NONE("<No Card>", (a) -> new BinaryFilter(false)),
/** Filter using one of the predefined filters. This should not be used to create a filter. */
DEFAULTS("Defaults", (a) -> null),
/** Group of filters. This should not be used to create a filter. */
GROUP("Group", Optional.empty(), Optional.empty(), Optional.empty());
/**
* Parse a String for a CardAttribute.
*
* @param s String to parse
* @return the CardAttribute that corresponds to the given String.
* @throws IllegalArgumentException if no such CardAttribute exists
*/
public static CardAttribute fromString(String s) throws IllegalArgumentException
{
for (CardAttribute c : CardAttribute.values())
if (c.toString().equalsIgnoreCase(s))
return c;
throw new IllegalArgumentException("Unknown attribute \"" + s + "\"");
}
/**
* Create a new filter that filters the specified attribute.
*
* @param attribute attribute to filter by
* @return a {@link Filter} that filters by the chosen attribute
*/
public static Filter createFilter(CardAttribute attribute)
{
return attribute.get();
}
/**
* @return an array containing the attributes that can be filtered.
*/
public static CardAttribute[] filterableValues()
{
return Arrays.stream(values()).filter((f) -> f.filter.isPresent()).toArray(CardAttribute[]::new);
}
/**
* @return an array containing the attributes that can be displayed in a table.
*/
public static CardAttribute[] displayableValues()
{
return Arrays.stream(values()).filter((c) -> c.dataType.isPresent()).toArray(CardAttribute[]::new);
}
/**
* Get the types of CardAttribute that can be returned by an {@link Inventory}.
*
* @return An array containing the CardAttribute that can be shown in the inventory table.
*/
public static CardAttribute[] inventoryValues()
{
var displayable = new ArrayList<>(Arrays.asList(displayableValues()));
displayable.removeAll(List.of(CATEGORIES, COUNT));
return displayable.toArray(new CardAttribute[displayable.size()]);
}
/**
* Name of the characteristic
*/
private final String name;
/**
* Class of the data that will appear in table columns containing data of this characteristic
* if it can be displayed.
*/
private final Optional<Class<?>> dataType;
/**
* Function for creating a new filter for the attribute if it can be filtered.
*/
private final Optional<Function<CardAttribute, FilterLeaf<?>>> filter;
/**
* Function for comparing the values of two attributes.
*/
private final Optional<Comparator<Object>> comparing;
/**
* Create a CardCharacteristic with the specified name, column class, and filter generator.
*
* @param n name of the new CardAttribute
* @param c class of the corresponding information on a card, if it can be displayed in a table
* @param f function for generating a filter on the attribute, if it can be filtered
* @param comp function for comparing attributes, if it can be compared
*/
private CardAttribute(String n, Optional<Class<?>> c, Optional<Function<CardAttribute, FilterLeaf<?>>> f, Optional<Comparator<Object>> comp)
{
name = n;
dataType = c;
filter = f;
comparing = comp;
}
/**
* Create a CardCharacteristic with the specified name, column class, and filter generator.
*
* @param n name of the new CardAttribute
* @param f function for generating a filter on the attribute
* @param comp function for comparing attributes
*/
CardAttribute(String n, Class<?> c, Function<CardAttribute, FilterLeaf<?>> f, Comparator<Object> comp)
{
this(n, Optional.of(c), Optional.of(f), Optional.of(comp));
}
/**
* Create a CardCharacteristic with the specified name and column class that shouldn't be
* used to create a filter.
*
* @param n name of the new CardAttribute
* @param c class of the corresponding information on a card, if it can be displayed in a table
* @param comp function for comparing attributes
*/
CardAttribute(String n, Class<?> c, Comparator<Object> comp)
{
this(n, Optional.of(c), Optional.empty(), Optional.of(comp));
}
/**
* Create a CardCharacteristic with the specified name and filter generator that shouldn't be
* displayed in a table
*
* @param n name of the new CardAttribute
* @param f function for generating a filter on the attribute
*/
CardAttribute(String n, Function<CardAttribute, FilterLeaf<?>> f)
{
this(n, Optional.empty(), Optional.of(f), Optional.empty());
}
@Override
public String toString()
{
return name;
}
/**
* @return the data type used for displaying values of this attribute in a table column.
* @throws NoSuchElementException if this attribute shouldn't be displayed in a table
*/
public Class<?> dataType() throws NoSuchElementException
{
return dataType.orElseThrow();
}
/**
* @return a new filter that filters by this attribute.
* @throws NoSuchElementException if this attribute shouldn't be used for filtering
*/
@Override
public FilterLeaf<?> get() throws NoSuchElementException
{
return filter.orElseThrow().apply(this);
}
@Override
public int compare(Object a, Object b)
{
return comparing.map((c) -> c.compare(a, b)).orElse(0);
}
/**
* @return A comparator that compares two card list entries according to this attribute.
*/
public Comparator<CardList.Entry> comparingCard()
{
return (a, b) -> comparing.map((c) -> c.compare(a.get(this), b.get(this))).orElse(0);
}
} | 75b1de8c500a6a1138fad3eb28c7ee2b64746907 | [
"Markdown",
"Java",
"Maven POM"
] | 59 | Java | aroelke/deck-editor | 7cb2cb44dd193dbbddccef4dedb47d372fdf45e1 | 2cb2c640dfbdc47b9c5bba2d3f5d998f445a6b3e |
refs/heads/master | <repo_name>YushkinaS/meetup-to-woocommerce<file_sep>/meetup-import.php
<?php
function mtw_load_events() {
$meetup = new Meetup(array(
'key' => get_option('mtw_settings')['mtw_meetup_api_key']
));
$response = $meetup->getEvents(array(
'status' => 'upcoming,past',
'fields' => 'featured',
'group_urlname' => get_option('mtw_settings')['mtw_meetup_group_urlname']
));
$result = mtw_process_response_page($response);
$images_for_thumbnails = $result['images_for_thumbnails'];
while( ($response = $meetup->getNext($response)) ) {
$result = mtw_process_response_page($response);
$images_for_thumbnails = array_merge( $images_for_thumbnails,$result['images_for_thumbnails'] );
}
$old_images = get_option('mtw_product_thumbnails');
if ( is_array( $old_images ) ) {
$images_for_thumbnails = array_merge( $images_for_thumbnails, $old_images );
}
update_option('mtw_product_thumbnails',$images_for_thumbnails);
}
function mtw_process_response_page($response) {
$post_event = mtw_post_to_event();
$images = array();
$past_product_cat = get_term_by( 'slug', 'past-events','product_cat' )->term_id;
$upcoming_product_cat = get_term_by( 'slug', 'upcoming-events','product_cat' )->term_id;
foreach ($response->results as $event) {
if (array_key_exists($event->id,$post_event)) {
//here should be some check for updates
if ( $post_event[$event->id]->status == $upcoming_product_cat ) {
$post_id = $post_event[$event->id]->post_id;
if ( $event->status == 'past' ) {
wp_set_object_terms($post_id,'past-events','product_cat');
//echo 'updated '.$post_id .'<br>';
update_post_meta($post_id ,'_stock_status','outofstock');
delete_post_meta($post_id ,'_price');
delete_post_meta($post_id ,'_regular_price');
delete_post_meta($post_id ,'_featured');
}
elseif ( $event->time/1000 < current_time('timestamp') ) {
update_post_meta($post_id ,'_visibility','');
}
}
}
else {
if ('past' == $event->status) {
$post_id = mtw_create_product_for_past_event($event);
}
elseif ('upcoming' == $event->status) {
$post_id = mtw_create_product_for_upcoming_event($event);
}
if ($post_id) {
preg_match('/(?<=<img src=")[^"]+/',$event->description,$image_links);
$images[] = (object) array('post_id'=>$post_id,'image_links'=> $image_links);
}
}
}
$returned_data = array();
$returned_data['images_for_thumbnails'] = $images;
return $returned_data;
}
function mtw_create_product_for_upcoming_event($event) {
//make excerpt
$end = 500;
if (strlen($event->description) < $end) {
$end = strlen($event->description);
}
$post_excerpt = strip_tags(mb_substr($event->description, 0, $end)) . '... ';
$my_post = array(
'post_title' => $event->name,
'post_content' => $event->description,
'post_status' => 'publish',
'post_type' => 'product',
'post_excerpt' => $post_excerpt,
'meta_input' => array(
'event_id' => $event->id,
'event_time' => $event->time / 1000,
'_visibility' => 'visible',
'_stock_status' => 'instock',
'_regular_price'=> $event->fee->amount,
'_price' => $event->fee->amount,
'meetup_url' => $event->event_url,
'_featured' => ($event->featured == 'true') ? 'yes':'no'
)
);
$post_id = wp_insert_post( $my_post);
wp_set_object_terms($post_id,'upcoming-events','product_cat');
//удалить нулевые цены
if (! isset($event->fee->amount)) {
delete_post_meta($post_id,'_regular_price');
delete_post_meta($post_id,'_price');
}
return $post_id;
}
function mtw_create_product_for_past_event($event) {
//make excerpt
$end = 500;
if (strlen($event->description) < $end) {
$end = strlen($event->description);
}
$post_excerpt = strip_tags(mb_substr($event->description, 0, $end)) . '... ';
//create product
$my_post = array(
'post_title' => $event->name,
'post_content' => $event->description,
'post_status' => 'publish',
'post_type' => 'product',
'post_excerpt' => $post_excerpt,
'meta_input' => array(
'event_id' => $event->id,
'event_time' => $event->time / 1000,
'_visibility' => 'visible',
'_stock_status' => 'outofstock',
'_regular_price'=> '',
'_price' => '',
'meetup_url' => $event->event_url,
)
);
$post_id = wp_insert_post( $my_post);
wp_set_object_terms($post_id,'past-events','product_cat');
return $post_id;
}
function mtw_post_to_event() {
global $wpdb;
$past_product_cat = get_term_by( 'slug', 'past-events','product_cat' )->term_id;
$upcoming_product_cat = get_term_by( 'slug', 'upcoming-events','product_cat' )->term_id;
$res = $wpdb->get_results($wpdb->prepare("SELECT
posts.ID as post_id,
postmeta.meta_value as event_id,
term_relationships.term_taxonomy_id as term
FROM wp_posts posts
INNER JOIN wp_postmeta postmeta
ON posts.ID = postmeta.post_id
AND postmeta.meta_key LIKE 'event_id'
LEFT JOIN wp_term_relationships term_relationships
ON posts.ID = term_relationships.object_id
AND term_relationships.term_taxonomy_id IN (%d,%d)",
$past_product_cat,$upcoming_product_cat));
$post_ids = $wpdb->get_col(null,0);
$event_ids = $wpdb->get_col(null,1);
$statuses = $wpdb->get_col(null,2);
$post_id_status = array_combine($post_ids,$statuses);
$new_post_id_status = array();
foreach ($post_id_status as $post_id=>$status) {
$new_post_id_status[] = (object) array('post_id'=>$post_id,'status'=>$status);
}
$post_event = array_combine($event_ids,$new_post_id_status);
return $post_event;
}
function mtw_set_thumbnails() {
$images_for_thumbnails = get_option('mtw_product_thumbnails');
$thumbnailed=array();
foreach ($images_for_thumbnails as $index=>$image) {
mtw_set_product_thumbnail($image->image_links,$image->post_id);
$thumbnailed[] = $index;
}
foreach ($thumbnailed as $index) {
unset( $images_for_thumbnails[$index] );
}
update_option('mtw_product_thumbnails',$images_for_thumbnails);
}
function mtw_set_product_thumbnail($image_links,$post_id) {
add_action('add_attachment','mtw_save_attachment_id');
foreach ($image_links as $image_link) {
media_sideload_image($image_link,$post_id,'product_'.$post_id.'_image');
}
remove_action('add_attachment','mtw_save_attachment_id');
}
function mtw_save_attachment_id($att_id) {
// the post this was sideloaded into is the attachments parent!
$p = get_post($att_id);
update_post_meta($p->post_parent,'_thumbnail_id',$att_id);
}
?>
<file_sep>/meetup-to-woocommerce.php
<?php
/*
Plugin Name: meetup-to-woocommerce
*/
//http://wp-kama.ru/function/media_sideload_image
require_once(ABSPATH . 'wp-admin/includes/media.php');
require_once(ABSPATH . 'wp-admin/includes/file.php');
require_once(ABSPATH . 'wp-admin/includes/image.php');
//http://wp-kama.ru/function/media_sideload_image
require_once('admin-view.php');
require_once('client-view.php');
require_once('meetup-import.php');
require_once('meetup.php');
add_action('mtw_hourly_task', 'mtw_cron_load_meetup_events');
register_activation_hook(__FILE__, 'mtw_activation');
register_deactivation_hook( __FILE__, 'mtw_deactivation');
function mtw_activation() {
wp_clear_scheduled_hook( 'mtw_hourly_task' );
wp_schedule_event( time(), 'hourly', 'mtw_hourly_task');
}
function mtw_cron_load_meetup_events() {
mtw_load_events();
mtw_set_thumbnails();
}
function mtw_deactivation() {
wp_clear_scheduled_hook('mtw_hourly_task');
delete_option('mtw_product_thumbnails');
}
?>
<file_sep>/client-view.php
<?php
add_action( 'woocommerce_before_shop_loop_item_title', 'mtw_show_event_time', 15 );
function mtw_show_event_time() {
global $product;
$post_id = $product->get_id( );
$time = get_post_meta ( $post_id, 'event_time', true );
?>
<span class="event_time"><?php echo date ('M j, Y · H:i',$time); ?></span>
<?php
}
add_filter('woocommerce_get_catalog_ordering_args', 'mtw_get_catalog_ordering_args');
function mtw_get_catalog_ordering_args( $args ) {
if ( is_tax('product_cat','past-events') ) {
$args['order'] = 'DESC';
$args['meta_key'] = 'event_time';
$args['orderby'] = 'meta_value_num';
return $args;
}
if ( is_tax('product_cat','upcoming-events') ) {
$args['order'] = 'ASC';
$args['meta_key'] = 'event_time';
$args['orderby'] = 'meta_value_num';
return $args;
}
}
add_filter( 'woocommerce_get_availability', 'mtw_get_availability', 1, 2);
function mtw_get_availability( $availability, $_product ) {
// Change Out of Stock Text
if ( ! $_product->is_in_stock() ) {
$availability['availability'] = __('This is unavailable event', 'woocommerce');
}
return $availability;
}
<file_sep>/README.md
# meetup-to-woocommerce
how to sell meetup events as woocommerce products
Библиотека для импорта данных Meetup: https://github.com/FokkeZB/Meetup (чуть-чуть поправлена)
##На будущее:
- [x] ~~Сейчас загрузка новых ивентов и конвертация имеющихся (из будущих в прошедшие) выполняются по нажатию кнопки в админке. Планируется делать это через планировщик задач.~~Сделано
- [ ] Планируется сделать два режима работы:
* Единожды импортированные ивенты живут новой жизнью, их можно редактировать (сейчас работаем именно в этом режиме). Но вот сейас пришлось разбираться со странным поведением при переносе из upcoming в past - ивент не переносился, оказывается, автор его отредактировал и поставил дату на неделю вперед, но плагин то этого не видит.. проверять как-то выборочно на изменение дат?
* Полная синхронизация с meetup. В этом случае править ивенты через вордпресс бессмысленно - правки будут затерты.
- [ ] Открыт вопрос с валютами
- [ ] Добавить еще каких-то настроек
* нужен архив past events или храним только актуальные, которые можно продать?
* нужно ли загружать на свой сервер все картинки с митапа в виде галереи продукта?
- [ ] Статистика и отчеты?
- [ ] Решить, как сортировать товары в каталоге
* Строго - past по убыванию даты, upcoming по возрастанию
* Оставить обычную сортировку + к ней вариант сортировки по дате?
* Сделать это опцией?
##Как работает?
Создаем две категории товаров: Upcoming events и Past events.
Для каждого ивента создаем товар с дополнительными мета-полями: event_id, event_time, meetup_url.
Для featured ивентов также указываем _featured => yes (для обычных - no)
В excerpt (цитату) помещаем первые 500 символов описания ивента.
Регулярным выражением находим в описании первую ссылку на изображение и загружаем ее как картинку товара.
```php
$end = 500;
if (strlen($event->description) < $end) {
$end = strlen($event->description);
}
$post_excerpt = strip_tags(substr($event->description, 0, $end)) . '... ';
$my_post = array(
'post_title' => $event->name,
'post_content' => $event->description,
'post_status' => 'publish',
'post_type' => 'product',
'post_excerpt' => $post_excerpt,
'meta_input' => array(
'event_id' => $event->id,
'event_time' => $event->time / 1000,
'_stock_status' => 'instock',
'_regular_price'=> $event->fee->amount,
'_price' => $event->fee->amount,
'meetup_url' => $event->event_url,
'_featured' => ($event->featured == 'true') ? 'yes':'no'
)
);
$post_id = wp_insert_post( $my_post);
wp_set_object_terms($post_id,'upcoming-events','product_cat');
if (! isset($event->fee->amount)) {
delete_post_meta($post_id,'_regular_price');
delete_post_meta($post_id,'_price');
}
preg_match('/(?<=<img src=")[^"]+/',$event->description,$image_links);
add_action('add_attachment','obrabotka_save_attachment_id');
foreach ($image_links as $image_link) {
media_sideload_image($image_link,$post_id,'product_'.$post_id.'_image');
}
remove_action('add_attachment','obrabotka_save_attachment_id');
```
Когда ~~проходит event_time~~ статус события сменился на митапе, товар должен сменить категорию (было - Upcoming events, станет - Past events). Также удаляем все цены и ставим _stock_status => outofstock.
```php
wp_set_object_terms($post->ID,'past-events','product_cat');
update_post_meta($post->ID,'_stock_status','outofstock');
delete_post_meta($post->ID,'_price');
delete_post_meta($post->ID,'_regular_price');
delete_post_meta($post->ID,'_featured');
```
<file_sep>/admin-view.php
<?php
/*
* Plugin Page
*/
add_action('admin_menu', 'mtw_admin_menu' );
function mtw_admin_menu() {
add_menu_page( 'MTW Edit Panel', 'MTW Edit Panel', 'manage_woocommerce', 'mtw_edit_panel', 'mtw_edit_panel_content', 'dashicons-calendar');
}
function mtw_edit_panel_content() {
?>
<div class="wrap">
<h2><?php echo get_admin_page_title() ?></h2>
<form method="post" action="">
<input type="hidden" name="load_meetup_events" value='1'>
<input type="submit" value="Load meetup events" class="button button-primary">
</form>
<?php
if (isset($_POST["load_meetup_events"])) {
mtw_load_events();
mtw_set_thumbnails();
}
?>
<form action="options.php" method="POST">
<?php
settings_fields( 'mtw_option_group' );
do_settings_sections( 'mtw_edit_panel' );
submit_button();
?>
</form>
</div>
<?php
}
/*
* Settings Fields
*/
add_action('admin_init', 'mtw_register_setting');
function mtw_register_setting() {
$page = 'mtw_edit_panel';
register_setting( 'mtw_option_group', 'mtw_settings', 'mtw_settings_sanitize_callback' );
add_settings_section( 'mtw_settings_section', 'Settings', '', $page );
add_settings_field('mtw_meetup_api_key', 'Meetup API Key', 'mtw_meetup_api_key_callback', $page, 'mtw_settings_section' );
add_settings_field('mtw_meetup_group_urlname', 'Meetup Group URL Name', 'mtw_meetup_group_urlname_callback', $page, 'mtw_settings_section' );
//add_settings_field('mtw_meetup_load_mode', 'Load Mode', 'mtw_meetup_load_mode_callback', $page, 'mtw_settings_section' );
}
function mtw_settings_sanitize_callback( $options ) {
return $options;
}
function mtw_meetup_api_key_callback() {
$val = get_option('mtw_settings')['mtw_meetup_api_key'];
?>
<input type="password" name="mtw_settings[mtw_meetup_api_key]" value="<?php echo $val; ?>" class="form-control" />
<?php
}
function mtw_meetup_group_urlname_callback() {
$val = get_option('mtw_settings')['mtw_meetup_group_urlname'];
?>
<input type="text" name="mtw_settings[mtw_meetup_group_urlname]" value="<?php echo $val; ?>" class="form-control" />
<?php
}
function mtw_meetup_load_mode_callback() {
$selected = get_option('mtw_settings')['mtw_meetup_load_mode'];
?>
<select class="form-control" id="sel1" name="mtw_settings[mtw_meetup_load_mode]">
<option value="once" <?php echo 'once' == $selected ? 'selected' : '' ?> >Load each event once</option>
<option value="update" <?php echo 'update' == $selected ? 'selected' : '' ?> >Load all event's updates</option>
</select>
<?php
}
/*
* Products List
*/
add_filter('manage_product_posts_columns','mtw_add_product_posts_columns',100);
function mtw_add_product_posts_columns($cols) {
unset($cols['sku']);
unset($cols['date']);
unset($cols['product_type']);
$cols['event_time'] = 'Event time';
$cols['meetup_url'] = 'Meetup URL';
return $cols;
}
add_action('manage_posts_custom_column','mtw_custom_columns',10,2);
function mtw_custom_columns( $column, $post_id ) {
if ( 'event_time' == $column ) {
echo date ( 'M j, Y · H:i',get_post_meta ( $post_id, 'event_time', true ) );
}
if ( 'meetup_url' == $column ) {
?>
<a href="<?php echo get_post_meta ( $post_id, 'meetup_url', true ); ?>">#</a>
<?php
}
}
add_filter( 'manage_edit-product_sortable_columns', 'mtw_manage_sortable_columns');
function mtw_manage_sortable_columns( $cols )
{
$cols['event_time'] = 'event_time';
return $cols;
}
?>
| 2e7fd5c47c4dc25caa2e372ae8110a9f815aca2b | [
"Markdown",
"PHP"
] | 5 | PHP | YushkinaS/meetup-to-woocommerce | ba57afeb5c5e72d7da99d2678985461a6d5b6806 | a5149124979443831eabecf55fdb524272c167d6 |
refs/heads/master | <file_sep>class ProductsController < ApplicationController
before_action :set_product, only: [:show, :edit, :update, :destroy]
# GET /products
# GET /products.json
def index
requestd = Vacuum.new
unless params[:page].present?
params[:page] = 1
end
requestd.configure(aws_access_key_id: 'AKIAIP4ABLWHY7ANK2TQ',aws_secret_access_key: '<KEY>',associate_tag: 'bstoda-20' )
response = requestd.item_search(query: {'SearchIndex' => 'FashionWomen','Keywords' => 'shoes,Handbags & Wallets','ResponseGroup' => "ItemAttributes,Images",:ItemPage => params[:page]})
response_shoes = requestd.item_search(query: {'SearchIndex' => 'FashionWomen','Keywords' => 'shoes','ResponseGroup' => "ItemAttributes,Images",:ItemPage => params[:page]})
hashed_response_shoes = response_shoes.to_h
hashed_products = response.to_h
@products = []
hashed_products['ItemSearchResponse']['Items']['Item'].each do |item|
product = OpenStruct.new
product.asin = item['ASIN']
product.name = item['ItemAttributes']['Title']
product.price = item['ItemAttributes']['ListPrice']['FormattedPrice'] if item['ItemAttributes']['ListPrice']
#product.url = item['DetailPageURL']
product.feature = item['ItemAttributes']['Feature']
product.image_url = item['MediumImage']['URL'] if item['LargeImage']
product.link = item['ItemLinks']['ItemLink'][5]['URL']
@products << product
end
hashed_response_shoes['ItemSearchResponse']['Items']['Item'].each do |item|
product = OpenStruct.new
product.asin = item['ASIN']
product.name = item['ItemAttributes']['Title']
product.price = item['ItemAttributes']['ListPrice']['FormattedPrice'] if item['ItemAttributes']['ListPrice']
#product.url = item['DetailPageURL']
product.feature = item['ItemAttributes']['Feature']
product.image_url = item['MediumImage']['URL'] if item['LargeImage']
product.link = item['ItemLinks']['ItemLink'][5]['URL']
@products << product
end
respond_to do |format|
format.js
format.html
end
end
# GET /products/1
# GET /products/1.json
def show
end
# GET /products/new
def new
@product = Product.new
end
# GET /products/1/edit
def edit
end
# POST /products
# POST /products.json
def create
@product = Product.new(product_params)
respond_to do |format|
if @product.save
format.html { redirect_to @product, notice: 'Product was successfully created.' }
format.json { render :show, status: :created, location: @product }
else
format.html { render :new }
format.json { render json: @product.errors, status: :unprocessable_entity }
end
end
end
# PATCH/PUT /products/1
# PATCH/PUT /products/1.json
def update
respond_to do |format|
if @product.update(product_params)
format.html { redirect_to @product, notice: 'Product was successfully updated.' }
format.json { render :show, status: :ok, location: @product }
else
format.html { render :edit }
format.json { render json: @product.errors, status: :unprocessable_entity }
end
end
end
# DELETE /products/1
# DELETE /products/1.json
def destroy
@product.destroy
respond_to do |format|
format.html { redirect_to products_url, notice: 'Product was successfully destroyed.' }
format.json { head :no_content }
end
end
private
# Use callbacks to share common setup or constraints between actions.
def set_product
@product = Product.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def product_params
params.fetch(:product, {})
end
end
| 8d3d9e8b3a58e46aeb35f79ed91995700bc60601 | [
"Ruby"
] | 1 | Ruby | nadir-jahan/bs-testing | 32c9f5e8b62d61732fbb690f981f53be0e451151 | fa654dfd98025e9acef2159101d2f460469d813b |
refs/heads/master | <file_sep><?php
$descricao= filter_input(INPUT_GET, "descricao");
$valor = filter_input(INPUT_GET, "valor");
$tipo = filter_input(INPUT_GET, "tipo");
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
if($mysqllink){
if($tipo == "Consulta"){
$sql = mysqli_query($mysqllink,"insert into especialidade(id_especialidade, descricao, valor)
values ('', '$descricao', '$valor');");
if($sql){
header("Location: pesquisaProcedimento.php");
}
else{
die("Erro:" . mysqli_error($sql));
}
}else if($tipo == "Exame"){
//EXAME
$sql = mysqli_query($mysqllink,"insert into tipo_exame(id_tipo_exame, descricao_tipo_exame, valor_exame)
values ('', '$descricao', '$valor');");
if($sql){
header("Location: pesquisarProcedimentoExame.php");
}
else{
die("Erro:" . mysqli_error($sql));
}
}else {
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep><?php
$id = filter_input(INPUT_GET, 'id');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"SELECT * FROM exame as e INNER JOIN pagamento_exame as pe on pe.exame_id_exame = e.id_exame inner join tipo_exame as tp on e.tipo_exame_id_tipo_exame = tp.id_tipo_exame inner join paciente_exame as px on px.exame_id_exame = e.id_exame inner join paciente as p on p.id_paciente = px.paciente_id_paciente where pe.id_pagamento_exame = '$id' ");
echo $id;
$linha = mysqli_fetch_assoc($dados);
?>
<file_sep><?php
//$idExame = filter_input(INPUT_GET, 'idExame');
//$id = filter_input(INPUT_GET, 'id');
echo $idExame;
$mysqllinkE = mysqli_connect("localhost", "root", "");
$dbE = mysqli_select_db($mysqllinkE,"mydb");
//if($idExame!=null){
//$dadosE = mysqli_query($mysqllinkE,"select * from tipo_exame where id_tipo_exame = '$idExame'");
//$linhaE = mysqli_fetch_assoc($dadosE);
//}else {
$dadosE = mysqli_query($mysqllinkE,"select * from tipo_exame");
$linhaE = mysqli_fetch_assoc($dadosE);
//}
?><file_sep><?php
$idCodigoAgendamento= filter_input(INPUT_GET, "idExame");
$convenio = filter_input(INPUT_GET, "convenio");
$data = filter_input(INPUT_GET, "data");
$turno = filter_input(INPUT_GET, "turno");
//echo $dataConsulta;
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$data = implode('-', array_reverse(explode('/', $_GET['data']))); //Converter data
function converterData($dataConsulta, $formato){
//"br"-> data vem no formato dd-mm-aa
//"en"-> data vem no formado yyyy-mm-dd
//convertendo para yyy-mm-dd
if($formato == "br"){
list($dia, $mes, $ano)=
explode("/", $dataConsulta);
$dataNova = $ano . "-" . $mes . "-" . $dia;
}
return $dataNova;
}
if($mysqllink){
$sql = mysqli_query($mysqllink,"UPDATE exame set convenio = '$convenio', data_exame = '$data', turno = '$turno' where id_exame = '$idCodigoAgendamento'");
if($sql){
echo $idPaciente;
header("Location: atendente-editarExame.php?id=$idCodigoAgendamento "); //ENCAMINHAR PARA TELA DE HISTORCO DE PACINETE
}
else{
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep><?php
$id = filter_input(INPUT_GET, "id_especialidade");
$descricao = filter_input(INPUT_GET, "descricao");
$valor = filter_input(INPUT_GET, "valor");
//echo $dataConsulta;
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
if($mysqllink){
$sql = mysqli_query($mysqllink,"UPDATE tipo_exame set descricao_tipo_exame = '$descricao', valor_exame = '$valor' where id_tipo_exame = '$id'");
if($sql){
echo $idPaciente;
header("Location: pesquisarProcedimentoExame.php"); //ENCAMINHAR PARA TELA DE HISTORCO DE PACINETE
}
else{
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep>
<?php
$id = filter_input(INPUT_GET, 'id');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"SELECT * FROM consulta as c INNER JOIN pagamento_consulta as pg on pg.consulta_id_consulta = c.id_consulta INNER JOIN medico as m INNER JOIN especialidade as e on e.id_especialidade = m.especialidade INNER JOIN consulta_has_paciente as cp on cp.consulta_id_consulta = c.id_consulta inner join paciente as p on p.id_paciente = cp.paciente_id_paciente where pg.id_pagamento='$id'");
echo $id;
$linha = mysqli_fetch_assoc($dados);
?>
<file_sep><?php
$id = filter_input(INPUT_GET, "id");
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
if($mysqllink){
$sql = mysqli_query($mysqllink,"UPDATE pagamento_consulta set estorno = 'V' WHERE id_pagamento = '$id';");
if($sql){
require_once ("./area-financeira.php");
}
else{
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep><?php
$id = filter_input(INPUT_GET, "id");
$nome = filter_input(INPUT_GET, "nome");
$cpf= filter_input(INPUT_GET, "cpf");
$endereco = filter_input(INPUT_GET, "endereco");
$telefone = filter_input(INPUT_GET, "telefone");
$cargo = filter_input(INPUT_GET, "cargo");
$email = filter_input(INPUT_GET, "email");
$senha = filter_input(INPUT_GET, "senha");
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
echo $cargo;
if($mysqllink){
$sql = mysqli_query($mysqllink,"START TRANSACTION;");//Iniciar Trasação
$sql = mysqli_query($mysqllink,"UPDATE funcionario set nome_funcionario = '$nome', cpf_funcionario = '$cpf', endereco_funcionario= '$endereco', cargo_idcargo = '$cargo', telefone_funcionario ='$telefone', email_funcionario = '$email',senha_funcionario = '$senha' where idFuncionario='$id' ");
if($sql){
$sql = mysqli_query($mysqllink,"COMMIT;"); //Deu certo COMM
header("Location: pesquisaFuncionario.php");
// echo $pagina;
//header("Location: tela-sucesso.php?p='$pagina'");
}
else{
$sql = mysqli_query($mysqllink,"ROLLBACK;");
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep><?php
$id = filter_input(INPUT_GET, 'id');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"select p.nomePaciente, e.descricao, m.nome, e.valor, c.`data`, c.id_consulta, c.status from consulta as c inner join consulta_has_medico as cm on cm.consulta_id_consulta = c.id_consulta inner join medico as m on m.id_medico = cm.medico_id_medico inner join especialidade as e on e.id_especialidade= m.especialidade inner join consulta_has_paciente as cp on cp.consulta_id_consulta = c.id_consulta inner join paciente as p on p.id_paciente = cp.paciente_id_paciente where c.id_consulta = '$id'");
$linha = mysqli_fetch_assoc($dados);
<file_sep><?php
$id= filter_input(INPUT_GET, "idConsulta");
$data = filter_input(INPUT_GET, "dataConsulta");
$turno = filter_input(INPUT_GET, "turno");
//echo $dataConsulta;
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$data = implode('-', array_reverse(explode('/', $_GET['dataConsulta']))); //Converter data
function converterData($dataConsulta, $formato){
//"br"-> data vem no formato dd-mm-aa
//"en"-> data vem no formado yyyy-mm-dd
//convertendo para yyy-mm-dd
if($formato == "br"){
list($dia, $mes, $ano)=
explode("/", $dataConsulta);
$dataNova = $ano . "-" . $mes . "-" . $dia;
}
return $dataNova;
}
if($mysqllink){
$sql = mysqli_query($mysqllink,"UPDATE consulta set data = '$data', turno = '$turno' where id_consulta = '$id'");
if($sql){
echo $idPaciente;
header("Location: atendente-editarConsulta.php?id=$id "); //ENCAMINHAR PARA TELA DE HISTORCO DE PACINETE
}
else{
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep><?php
$idPaciente = filter_input(INPUT_GET, "idPaciente");
$convenio = filter_input(INPUT_GET, "convenio");
$tipo = filter_input(INPUT_GET, "especialidade");
$data = filter_input(INPUT_GET, "data");
$turno = filter_input(INPUT_GET, "turno");
//echo $dataConsulta;
echo $tipo;
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$data = implode('-', array_reverse(explode('/', $_GET['data']))); //Converter data
function converterData($dataConsulta, $formato){
//"br"-> data vem no formato dd-mm-aa
//"en"-> data vem no formado yyyy-mm-dd
//convertendo para yyy-mm-dd
if($formato == "br"){
list($dia, $mes, $ano)=
explode("/", $dataConsulta);
$dataNova = $ano . "-" . $mes . "-" . $dia;
}
return $dataNova;
}
//Exemplo de chamada a função
if($mysqllink){
$sql = mysqli_query($mysqllink,"START TRANSACTION;");//Iniciar Trasação
$sql = mysqli_query($mysqllink,"insert into exame (id_exame, data_exame, turno, convenio, tipo_exame_id_tipo_exame)
values ('', '$data', '$turno', '$convenio', '$tipo'); ");
$exame =(mysqli_insert_id($mysqllink)); //Pega ID DO EXAME
$sql = mysqli_query($mysqllink," insert into paciente_exame(exame_id_exame, paciente_id_paciente) values ('$exame','$idPaciente')");
//echo $consulta;
// $id = $idPaciente;
//echo $exame;
if($sql){
echo $idPaciente;
$sql = mysqli_query($mysqllink,"COMMIT;"); //Deu certo COMMIT
header("Location: atendente-atividadesExamePaciente.php?id= $idPaciente "); //ENCAMINHAR PARA TELA DE HISTORCO DE PACINETE
}
else{
$sql = mysqli_query($mysqllink,"ROLLBACK;");
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
//VALIDA DATA
function ValidaData($dat){
$data = explode("/","$dat"); // fatia a string $dat em pedados, usando / como referência
$d = $data[0];
$m = $data[1];
$y = $data[2];
// verifica se a data é válida!
// 1 = true (válida)
// 0 = false (inválida)
$res = checkdate($m,$d,$y);
if ($res == 1){
return 1;
} else {
echo "Atenção: Data Invalida!";
}
}
?>
<file_sep><?php
//$id = filter_input(INPUT_GET, 'id');
$mysqllinkEx = mysqli_connect("localhost", "root", "");
$dbEx = mysqli_select_db($mysqllinkEx,"mydb");
//data sistema
$d= date('d/m/y');
//echo $d;
$dataAtual = implode('-', array_reverse(explode('/', $d))); //Converter data
echo $dataAtual;
$dadosEx = mysqli_query($mysqllinkEx,"SELECT * FROM paciente AS p INNER JOIN paciente_exame AS pe ON pe.paciente_id_paciente = p.id_paciente inner JOIN exame as e on e.id_exame = pe.exame_id_exame inner join tipo_exame as te on te.id_tipo_exame = e.tipo_exame_id_tipo_exame where data_exame like '%$dataAtual%'");
$linhaEx = mysqli_fetch_assoc($dadosEx);
?><file_sep><?php
$id = filter_input(INPUT_GET, 'id');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"SELECT * FROM funcionario as f inner join cargo as c on c.idCargo = f.cargo_idcargo where idFuncionario='$id'");
echo $id;
$linha = mysqli_fetch_assoc($dados);
?>
<file_sep><?php
$id = filter_input(INPUT_GET, 'id');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"SELECT * FROM paciente AS p INNER JOIN paciente_exame AS pe ON pe.paciente_id_paciente = p.id_paciente inner JOIN exame as e on e.id_exame = pe.exame_id_exame inner join tipo_exame as te on te.id_tipo_exame = e.tipo_exame_id_tipo_exame where p.id_paciente ='$id'");
echo $id;
$linha = mysqli_fetch_assoc($dados);
<file_sep><!DOCTYPE html>
<html lang="pt-br">
<head >
<?php
$id = filter_input(INPUT_GET, 'id');
echo $id;
require_once('comprovanteExame.php');
$total = mysqli_num_rows($dados);
var_dump($total);
?>
<meta charset="utf-8">
<title>Sucesso no procedimento</title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/dashboard/estrutura.css">
<link rel="stylesheet" type="text/css" href="css/components/components.css">
<link rel="stylesheet" type="text/css" href="css/resultado.css">
<link rel="stylesheet" type="text/css" href="fontawesome-free-5.3.1-web/css/all.css">
</head>
<body>
<header class="container-cabecalho">
<div class="area-logo">
<div class="logo">
<p class="logo-texto">Centro Médico</p>
<p class="logo-texto">Francisco Machado</p>
</div>
</div>
<div class="area-meio">
</div>
<div class="area-fim alinha-central">
<a href="login.html">
<button class="btn btn-dark alinha-central">Sair</button>
</a>
</div>
</header>
<main class="container-principal">
<aside class="menu-opcoes">
</aside>
<div class="area-geral">
<div class="card-info">
<h1 class="title">Comprovante de Pagamento Exame</h1>
</br>
<p1> Paciente: <?php echo $linha['nomePaciente'] ?></p1>
<p1> Data Nascimento: <?php echo $linha['dataNascimento'] ?></p1>
<p1> Procedimeto: <?php echo $linha['descricao_tipo_exame'] ?></p1>
<p1> Data do Exame: <?php echo $linha['data_exame'] ?></p1>
<p1> Valor Pago: <?php echo $linha['valor_exame'] ?></p1>
<p1> Fone: <?php echo $linha['telefone'] ?></p1>
<p1><?php echo $linha['data_exame'] ?></p1>
</div>
</div>
</main>
</body>
</html><file_sep><?php
$nome = filter_input(INPUT_GET, "nome");
$cpf= filter_input(INPUT_GET, "cpf");
$endereco = filter_input(INPUT_GET, "endereco");
$telefone = filter_input(INPUT_GET, "telefone");
$cargo = filter_input(INPUT_GET, "cargo");
$email= filter_input(INPUT_GET, "email");
$senha= filter_input(INPUT_GET, "senha");
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
echo $cargo;
if($mysqllink){
$sql = mysqli_query($mysqllink,"insert into funcionario(idFuncionario, nome_funcionario, cpf_funcionario, endereco_funcionario, cargo_idcargo, telefone_funcionario, email_funcionario, senha_funcionario)
values ('', '$nome', '$cpf', '$endereco', '$cargo', '$telefone', '$email', '$senha' );");
if($sql){
header("Location: pesquisaFuncionario.php");
// echo $pagina;
//header("Location: tela-sucesso.php?p='$pagina'");
}
else{
die("Erro:" . mysqli_error($sql));
}
}else{
die("Erro:" . mysqli_error($link));
}
?>
<file_sep><!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title></title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/dashboard/estrutura.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="<KEY>" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="css/components/components.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
</head>
<body>
<header class="container-cabecalho">
<div class="area-logo">
<div class="logo">
<p class="logo-texto">Centro Médico</p>
<p class="logo-texto">Francisco Machado</p>
</div>
</div>
<div class="area-meio">
</div>
<div class="area-fim alinha-central">
<a href="login.html">
<button class="btn btn-dark alinha-central">Sair</button>
</a>
</div>
</header>
<main class="container-principal">
<aside class="menu-opcoes">
<div class="usuario alinha-central">
<div class="content-info">
<!--REPLICAR PARA TODOS --->
<?php if($acesso == 1){ ?>
<p>Painel atendente</p>
<?php }else If($acesso == 2){ ?>
<p>Painel Sub Gerente</p>
<?php }else {?>
<p>Painel Gerente</p>
<?php }?>
</div>
</div>
<a href="telaPrincipal-Atendente.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-tachometer-alt"></i>
</div>
<div class="opcoes-detalhes">
<p>Início</p>
</div>
</div>
</a>
<a href="atendente-paciente.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-user"></i>
</div>
<div class="opcoes-detalhes">
<p>Pacientes</p>
</div>
</div>
</a>
<a href="atendente-novoPaciente.html">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="far fa-plus-square"></i>
</div>
<div class="opcoes-detalhes">
<p>Novo paciente</p>
</div>
</div>
</a>
<a href="atendente-listarConsultas.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-notes-medical"></i>
</div>
<div class="opcoes-detalhes">
<p>Listagem consultas</p>
</div>
</div>
</a>
<a href="atendente-listarExames.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-file-medical"></i>
</div>
<div class="opcoes-detalhes">
<p>Listagem exames</p>
</div>
</div>
</a>
<a href="cadastrarFuncionarios.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-plus"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar funcionário</p>
</div>
</div>
</a>
<a href="pesquisaFuncionario.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search"></i>
</div>
<div class="opcoes-detalhes">
<p>Pesquisar funcionário</p>
</div>
</div>
</a>
<a href="cadastrarMedico.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-user-md"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar médicos</p>
</div>
</div>
</a>
<a href="pesquisaMedico.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-plus"></i>
</div>
<div class="opcoes-detalhes">
<p>Pesquisar médicos</p>
</div>
</div>
</a>
<a href="cadastrarProcedimentos.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-prescription-bottle-alt"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar procedimento</p>
</div>
</div>
</a>
<a href="pesquisaProcedimento.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-minus"></i>
</div>
<div class="opcoes-detalhes">
<p>Procedimento consulta</p>
</div>
</div>
</a>
<a href="pesquisarProcedimentoExame.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-minus"></i>
</div>
<div class="opcoes-detalhes">
<p>Procedimento exame</p>
</div>
</div>
</a>
<a href="area-financeira.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="opcoes-detalhes">
<p>Financeiro Consulta</p>
</div>
</div>
</a>
<a href="area-financeiraExame.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="opcoes-detalhes">
<p>Financeiro Exame</p>
</div>
</div>
</a>
</aside>
<div class="area-geral">
<header class="area-geral-cabecalho">
<div class="info-cabecalho alinha-central">
<div class="icon icon-info alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="texto-info alinha-central">
<p>Finanças</p>
</div>
</div>
</header>
<div class="apaga-consulta opacity0">
<div class="txt-cabecalho alinha-central">
<p>Tem certeza que deseja apagar está receita?</p>
</div>
<div class="txt-mensagem-apagar alinha-central">
<p>Depois de apagar, você não poderá desfazer esta ação.</p>
</div>
<div class="txt-apagar">
<div class="btnManter btnContainer alinha-central"><p class="manterTbm">Manter receita</p></div>
<div class="btnApagar btnContainer alinha-central"><p>Apagar receita</p></div>
</div>
</div>
<div class="area-consulta-dados">
<header class="area-consulta-header alinha-central">
<p>Extrato</p>
</header>
<div class="containerBuscar">
<div class="buscaDataTabela alinha-central">
<div class="pesquisaMedicoFinanceiro alinha-central">
<p>Pesquisar médico:</p>
<form action="" method="">
<select class="medicoSelect">
<option>--</option>
<option><NAME></option>
<option><NAME></option>
<option><NAME></option>
<option><NAME></option>
</select>
<button type="input" class="btn btn-blue">Buscar</button>
</form>
</div>
</div>
</div>
<div class="containerTabela">
<table id="tabela1" class="display tabelaMedico tabelaConsulta tabelaMaior" style="width:100%">
<thead>
<tr>
<th>Data</th>
<th>Médico</th>
<th>Procedimento</th>
<th>Valor</th>
<th>Paciente</th>
<th>Apagar receita</th>
</tr>
</thead>
<tbody>
<tr>
<td>24/10/2018</td>
<td><NAME></td>
<td>Consulta</td>
<td>R$ 30,0</td>
<td><NAME></td>
<td><i class="close op-close fas fa-trash-alt"></i></td>
</tr>
</tbody>
</table>
</div>
<div class="container-infoExtrato">
<div class="total alinha-central">
<div class="tot-txt">
<p>Total de transações do período:</p>
</div>
<div class="tot-valor">
<p>3</p>
</div>
</div>
<div class="total totalValor alinha-central">
<div class="receita-txt">
<p>Total de receitas do período:</p>
</div>
<div class="receita-valor">
<p>R$ 90</p>
</div>
</div>
</div>
<div class="print">
<a href="#"><img src="img/print.png" width="40" height="40"></a>
</div>
</div>
</div>
</main>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#tabela1').DataTable({
"language": {
"lengthMenu": "Mostrando _MENU_ registros por página",
"zeroRecords": "Nenhum registro encontrado",
"info": "Mostrando página _PAGE_ de _PAGES_",
"infoEmpty": "Nenhum registro disponível",
"infoFiltered": "(filtrado de _MAX_ registros no total)"
}});
} );
</script>
<script type="text/javascript" src="js/apagarConsultaListagem.js"></script>
</body>
</html><file_sep><?php
$idExame = filter_input(INPUT_GET, 'idExame');
//$id = filter_input(INPUT_GET, 'id');
echo $idExame;
$mysqllinkP = mysqli_connect("localhost", "root", "");
$dbP = mysqli_select_db($mysqllinkP,"mydb");
if($idExame!=null){
$dadosP = mysqli_query($mysqllinkP,"select * from tipo_exame where id_tipo_exame = '$idExame'");
$linhaP = mysqli_fetch_assoc($dadosP);
}else {
$dadosP = mysqli_query($mysqllinkP,"select * from tipo_exame");
$linhaP = mysqli_fetch_assoc($dadosP);
}
?>
<file_sep><?php
$id_exame = filter_input(INPUT_GET, 'id_exame');
$mysqllinkLE = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllinkLE,"mydb");
echo $id_exame;
$dadosLE = mysqli_query($mysqllinkLE,"SELECT * FROM tipo_exame where id_tipo_exame ='$id_exame' ");
$linhaLE = mysqli_fetch_assoc($dadosLE);
<file_sep><?php
$id = filter_input(INPUT_GET, 'id');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"SELECT * FROM medico AS m inner join horario as h on h.medico_id_medico = m.id_medico where 1=1 AND m.id_medico = '$id' AND h.status= 'ATIVO'");
$linhaPM = mysqli_fetch_assoc($dados);
?>
<file_sep><?php
$email = filter_input(INPUT_POST, 'email');
$senha = filter_input(INPUT_POST, 'senha');
$mysqllink = mysqli_connect("localhost", "root", "");
$db = mysqli_select_db($mysqllink,"mydb");
$dados = mysqli_query($mysqllink,"select * from funcionario where 1=1 and email_funcionario = '$email' and senha_funcionario = '$senha'");
$linha = mysqli_fetch_assoc($dados);
$nomeFuncionario = $linha['nome_funcionario'];
$Matricula = $linha['IdFuncionario'];
if($linha!=0){
//Criar sessão
//COLOCAR NOME DO USUARIO EM SESSÃO
//INICIAR SESSÃO
session_start();
$_SESSION['Usuario'] = $nomeFuncionario;
$_SESSION['Matricula'] = $Matricula;
$_SESSION['acesso'] = $linha['cargo_idcargo'];
$acesso = $linha['cargo_idcargo'];
echo $acesso;
if($acesso ==2){
//require_once ("../Sistem-de-gest-o-de-consultas/sub-gerente/telaPrincipal-Atendente.php");
require_once ("./telaPrincipal-Atendente.php");;
} else if($acesso == 1){
//require_once ("../Sistem-de-gest-o-de-consultas/atendente/telaPrincipal-Atendente.php");
require_once ("./telaPrincipal-Atendente.php");
// require_once ("./paginaTesteLogin.php");
echo $_SESSION['Usuario'];
}
else{
require_once ("./telaPrincipal-Atendente.php");
}
}else {
require_once ("./senhaErradaLogin.html");
}
?>
<file_sep><!DOCTYPE html>
<html lang="pt-br">
<head>
<?php
if (!isset($_SESSION)) {
session_start();
}
$acesso = $_SESSION['acesso'] ;
$editar = 0;
if($acesso==1){
$editar = 1;
//header('Location:semAcesso.php ');
// require_once ('./semAcesso.php');
}
$id = filter_input(INPUT_GET, 'id');
$idEspecialidade = filter_input(INPUT_GET, "idEspecialidade");
$des= null;
$valor = null;
if($idEspecialidade != null){
echo $idEspecialidade;
require_once('buscarMedicoEspecialidade.php');
$totalM = mysqli_num_rows($dadosM);
var_dump($totalM);
$des = $linhaM['descricao'];
$valor = $linhaM['valor'];
}else {
$idEspecialidade = 1;
require_once('buscarMedicoEspecialidade.php');
$totalM = mysqli_num_rows($dadosM);
var_dump($totalM);
$des = $linhaM['descricao'];
$valor = $linhaM['valor'];
}
require_once('buscarConsultaPaciente.php');
$total = mysqli_num_rows($dados);
var_dump($total);
$idP=$linha['id_paciente'];
?>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title></title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/dashboard/estrutura.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="<KEY>" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="css/components/components.css">
</head>
<body>
<header class="container-cabecalho">
<div class="area-logo">
<div class="logo">
<p class="logo-texto">Centro Médico</p>
<p class="logo-texto"><NAME></p>
</div>
</div>
<div class="area-meio">
</div>
<div class="area-fim alinha-central">
<a href="login.html">
<button class="btn btn-dark alinha-central">Sair</button>
</a>
</div>
</header>
<main class="container-principal">
<aside class="menu-opcoes">
<div class="usuario alinha-central">
<div class="content-info">
<!--REPLICAR PARA TODOS --->
<?php if($acesso == 1){ ?>
<p>Painel atendente</p>
<?php }else If($acesso == 2){ ?>
<p>Painel Sub Gerente</p>
<?php }else {?>
<p>Painel Gerente</p>
<?php }?>
</div>
</div>
<a href="telaPrincipal-Atendente.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-tachometer-alt"></i>
</div>
<div class="opcoes-detalhes">
<p>Início</p>
</div>
</div>
</a>
<a href="atendente-paciente.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-user"></i>
</div>
<div class="opcoes-detalhes">
<p>Pacientes</p>
</div>
</div>
</a>
<a href="atendente-novoPaciente.html">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="far fa-plus-square"></i>
</div>
<div class="opcoes-detalhes">
<p>Novo paciente</p>
</div>
</div>
</a>
<a href="atendente-listarConsultas.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-notes-medical"></i>
</div>
<div class="opcoes-detalhes">
<p>Listagem consultas</p>
</div>
</div>
</a>
<a href="atendente-listarExames.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-file-medical"></i>
</div>
<div class="opcoes-detalhes">
<p>Listagem exames</p>
</div>
</div>
</a>
<a href="cadastrarFuncionarios.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-plus"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar funcionário</p>
</div>
</div>
</a>
<a href="pesquisaFuncionario.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search"></i>
</div>
<div class="opcoes-detalhes">
<p>Pesquisar funcionário</p>
</div>
</div>
</a>
<a href="cadastrarMedico.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-user-md"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar médicos</p>
</div>
</div>
</a>
<a href="pesquisaMedico.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-plus"></i>
</div>
<div class="opcoes-detalhes">
<p>Pesquisar médicos</p>
</div>
</div>
</a>
<a href="cadastrarProcedimentos.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-prescription-bottle-alt"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar procedimento</p>
</div>
</div>
</a>
<a href="pesquisaProcedimento.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-minus"></i>
</div>
<div class="opcoes-detalhes">
<p>Procedimento consulta</p>
</div>
</div>
</a>
<a href="pesquisarProcedimentoExame.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-minus"></i>
</div>
<div class="opcoes-detalhes">
<p>Procedimento exame</p>
</div>
</div>
</a>
<a href="area-financeira.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="opcoes-detalhes">
<p>Financeiro Consulta</p>
</div>
</div>
</a>
<a href="area-financeiraExame.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="opcoes-detalhes">
<p>Financeiro Exame</p>
</div>
</div>
</a>
</aside>
<div class="area-geral alinha-central">
<div class="card-cadastro card-cadastro-maior cadastroPaciente">
<header>
<div class="area-texto">
<p>Editar consulta</p>
</div>
</header>
<div class="container-info-paciente alinha-central">
<div class="info-paciente">
<h4><?php echo $linha['nomePaciente'] ?></h4>
<p>Codigo do Agendamento:<?php echo $linha['id_consulta'] ?> </p>
<p><?php echo $linha['descricao'] ?></p>
<p><?php echo $linha['nome'] ?></p>
<p><?php echo $linha['data'] ?></p>
<p><?php echo $linha['turno'] ?></p>
</div>
<div class="botoes-container">
<div class="container-apagar containerSome">
<p class="optionSome txtApagar">Deseja cancelar a consulta?</p>
<div class="dangerZone">
<div class="btn btn-red btnExcluir optionSome"><a href="<?php echo "cancelarConsulta.php?id=" . $linha["id_consulta"] ?>">Cancelar</a></div>
<div class="btn btn-red btnApagar">Cancelar consulta</div>
<div class="btn btn-gray btnCancelar optionSome">Fechar</div>
</div>
</div>
<?php if($editar==0){ ?>
<div class="btn-pagar alinha-central">
<a href="novaReceita.php?id=<?php echo $linha['id_consulta']?>">
<button class="btn btn-fixo btn-blue">Nova receita</button></a>
</div>
<?php } ?>
</div>
</div>
<form class="area-form semPadding padding-top" action="editarConsulta.php">
<div class="input-area flex">
<h3>Editar Consulta</h3>
</div>
<div class="input-area">
<p>Código do Agendamento</p>
<input class="" value="<?php echo $linha['id_consulta'] ?>" type="text" name="idConsulta" readonly="true">
</div>
<div class="input-area select">
<p>Especialidade</p>
<select class="input-menor campoSelect" name="especialidade" onchange="location = this.value">
<option value= "">Selecione uma Especialidade</option>
<?php
if ($total){do {
?>
<option value="atendente-editarConsulta.php?idEspecialidade=<?php echo $linha['id_especialidade']?> && id=<?php echo $id ?> "><?php echo $linha['descricao'] ?></option>
<?php
} while($linha = mysqli_fetch_assoc($dados));
mysqli_free_result($dados);
}
mysqli_close($mysqllink);
?>
</select>
<button class="btn btn-blue">buscar</button>
</div>
<table class="tabelaMedico">
<tr>
<th>CodMe</th>
<th>Nome</th>
<th>Dia</th>
<th>Manhã</th>
<th>Tarde</th>
<th>Noite</th>
</tr>
<?php
if ($totalM){do {
?>
<tr>
<td><?php echo $linhaM['id_medico'] ?> </td>
<td><?php echo $linhaM['nome']?></td>
<td> <?php echo ($linhaM["dia"])?></td>
<td> <?php echo ($linhaM["m"])?> </td>
<td> <?php echo ($linhaM["t"])?> </td>
<td> <?php echo ($linhaM["n"])?> </td>
</tr>
<?php
} while($linhaM = mysqli_fetch_assoc($dadosM));
mysqli_free_result($dadosM);
}
mysqli_close($mysqllinkM);
?>
</table>
<div class="input-area">
<p>Data da consulta:</p>
<input class="input-menor" type="date" name="dataConsulta" >
</div>
<div class="input-area">
<p>Turno da consulta:</p>
<select class="input-menor campoSelect" name="turno" >
<option >manhã</option>
<option >tarde</option>
<option >noite</option>
</select>
</div>
<table class="tabelaMedico">
<tr>
<th>Consulta</th>
<th>Preço</th>
</tr>
<tr>
<td><?php echo $des ?></td>
<td><?php echo $valor ?></td>
</tr>
</table>
<div class="area-btn alinha-central">
<button type="submit" class="btn btn-blue">Editar</button>
<div class="btn btn-gray"><a href="atendente-atividadesConsultaPaciente.php?id=<?php echo $idP ?> ">Cancelar</a></div>
</div>
</form>
</div>
</div>
</main>
<script type="text/javascript" src="js/open-close-option.js"></script>
<script type="text/javascript" src="js/confirmaApagar.js"></script>
</body>
</html><file_sep><!DOCTYPE html>
<html lang="pt-br">
<head>
<?php
//permissão ***********************************
if (!isset($_SESSION)) {
session_start();
}
$acesso = $_SESSION['acesso'] ;
//VERIFICAR LOGIN
if($acesso== null){
header('Location:login.html');
}
if($acesso==1 || $acesso == 2){
header('Location:semAcesso.php ');
// require_once ('./semAcesso.php');
}
//permissão ***********************************
$totalReceita = 0;
$transacao = 0;
require_once('./ListarTodosProcedimentoExame.php');
$total = mysqli_num_rows($dados);
var_dump($total);
if ($p7 != null){
$falgDados=1;
$total7 = mysqli_num_rows($dados7);
var_dump($total7);
}
?>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title></title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/dashboard/estrutura.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="<KEY>" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="css/components/components.css">
<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
</head>
<body onload="apagarCampo()">
<header class="container-cabecalho">
<div class="area-logo">
<div class="logo">
<p class="logo-texto">Centro Médico</p>
<p class="logo-texto"><NAME></p>
</div>
</div>
<div class="area-meio">
</div>
<div class="area-fim alinha-central">
<a href="login.html">
<button class="btn btn-dark alinha-central">Sair</button>
</a>
</div>
</header>
<main class="container-principal">
<aside class="menu-opcoes">
<div class="usuario alinha-central">
<div class="content-info">
<!--REPLICAR PARA TODOS --->
<?php if($acesso == 1){ ?>
<p>Painel atendente</p>
<?php }else If($acesso == 2){ ?>
<p>Painel Sub Gerente</p>
<?php }else {?>
<p>Painel Gerente</p>
<?php }?>
</div>
</div>
<a href="telaPrincipal-Atendente.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-tachometer-alt"></i>
</div>
<div class="opcoes-detalhes">
<p>Início</p>
</div>
</div>
</a>
<a href="atendente-paciente.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-user"></i>
</div>
<div class="opcoes-detalhes">
<p>Pacientes</p>
</div>
</div>
</a>
<a href="atendente-novoPaciente.html">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="far fa-plus-square"></i>
</div>
<div class="opcoes-detalhes">
<p>Novo paciente</p>
</div>
</div>
</a>
<a href="atendente-listarConsultas.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-notes-medical"></i>
</div>
<div class="opcoes-detalhes">
<p>Listagem consultas</p>
</div>
</div>
</a>
<a href="atendente-listarExames.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-file-medical"></i>
</div>
<div class="opcoes-detalhes">
<p>Listagem exames</p>
</div>
</div>
</a>
<a href="cadastrarFuncionarios.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-plus"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar funcionário</p>
</div>
</div>
</a>
<a href="pesquisaFuncionario.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search"></i>
</div>
<div class="opcoes-detalhes">
<p>Pesquisar funcionário</p>
</div>
</div>
</a>
<a href="cadastrarMedico.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-user-md"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar médicos</p>
</div>
</div>
</a>
<a href="pesquisaMedico.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-plus"></i>
</div>
<div class="opcoes-detalhes">
<p>Pesquisar médicos</p>
</div>
</div>
</a>
<a href="cadastrarProcedimentos.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-prescription-bottle-alt"></i>
</div>
<div class="opcoes-detalhes">
<p>Cadastrar procedimento</p>
</div>
</div>
</a>
<a href="pesquisaProcedimento.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-minus"></i>
</div>
<div class="opcoes-detalhes">
<p>Procedimento consulta</p>
</div>
</div>
</a>
<a href="pesquisarProcedimentoExame.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-search-minus"></i>
</div>
<div class="opcoes-detalhes">
<p>Procedimento exame</p>
</div>
</div>
</a>
<a href="area-financeira.php">
<div class="opcoes alinha-central">
<div class="opcoes-icon alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="opcoes-detalhes">
<p>Financeiro Consulta</p>
</div>
</div>
</a>
<a href="area-financeiraExame.php">
<div class="opcoes alinha-central active">
<div class="opcoes-icon alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="opcoes-detalhes">
<p>Financeiro Exame</p>
</div>
</div>
</a>
</aside>
<div class="area-geral">
<header class="area-geral-cabecalho">
<div class="info-cabecalho alinha-central">
<div class="icon icon-info alinha-central">
<i class="fas fa-dollar-sign"></i>
</div>
<div class="texto-info alinha-central">
<p>Finanças dos exames</p>
</div>
</div>
</header>
<div class="apaga-consulta opacity0">
<div class="txt-cabecalho alinha-central">
<p>Tem certeza que deseja apagar está receita?</p>
</div>
<div class="txt-mensagem-apagar alinha-central">
<p>Depois de apagar, você não poderá desfazer esta ação.</p>
</div>
<div class="txt-apagar">
<div class="btnManter btnContainer alinha-central"><p class="manterTbm">Manter receita</p></div>
<div class="btnApagar btnContainer alinha-central"><p>Apagar receita</p></div>
</div>
</div>
<div class="area-consulta-dados">
<header class="area-consulta-header alinha-central">
<p>Extrato</p>
</header>
<div class="navegação-container">
<p class="titulo">Navegação</p>
<form class="formulario-busca-finaceiro" action="RelatorioFinaceiro02.php">
<div class="containerDataFinanceiro alinha-central">
<div class="input-container positionBusca alinha-central FinanData">
<label>Data:</label>
<select name="periodo">
<option>--</option>
<option value="Hoje">Hoje</option>
<option value="Semana">Está semana</option>
<option value="Mes">Este mês</option>
<option value="Ano">Este ano</option>
</select>
</div>
<div class="input-container displayNone positionBusca alinha-central FinanPeri">
<label for="data1">De:</label>
<input type="date" id="data1" name="dataInicio">
<label for="data2">Até:</label>
<input type="date" id="data2" name="dataFim">
</div>
<button class="btnFinanceiro selecionado btnData">Data</button>
<button class="btnFinanceiro btnPeri">Período</button>
</div>
<div class="input-container marginTopMaior alinha-central">
<label>Tipo de Exame:</label>
<select class="selectMedico" name="medico">
<option value="Todos">Todos</option>
<?php
if ($total){do {
?>
<option value="<?php echo $linha['id_tipo_exame']?>"><?php echo $linha['descricao_tipo_exame'] ?></option>
<?php
} while($linha = mysqli_fetch_assoc($dados));
mysqli_free_result($dados);
}
mysqli_close($mysqllink);
?>
</select>
</div>
<div class="input-container alinha-central">
<button class="btnFinanceiro btn btn-blue">Pesquisar</button>
</div>
</form>
</div>
<?php if ($p7 != null){ ?>
<div class="containerTabela">
<table id="tabela1" class="display tabelaMedico tabelaConsulta tabelaMaior" style="width:100%">
<thead>
<tr>
<th>Data</th>
<th>Exame</th>
<th>Paciente</th>
<th>Valor</th>
<th>Estorno</th>
<th>Dado Baixa por</th>
</tr>
</thead>
<tbody>
<?php
if ($total7){do {
?>
<tr>
<td><?php echo $linha7['data_exame']?></td>
<td><?php echo $linha7['descricao_tipo_exame']?></td>
<td><?php echo $linha7['nomePaciente']?></td>
<td><?php echo $linha7['valor_exame']?></td>
<?php
if($linha7['estorno']== "F"){
$totalReceita = $totalReceita + $linha7['valor_exame'];
}?>
<?php $transacao = $total7;?>
<td>
<?php
if($linha7['estorno']== "F"){
?>
<a href="estornoExame.php?id=<?php echo $linha7['id_pagamento_exame']?>">ESTORNAR</a>
<?php
}else {
?>
<p>Exame Estornado</p>
<?php
}
?>
</td>
<td>
<?php
if($linha7['atendente_pagamento_exame'] == null){
?>
<p> EM ABERTO</p>
<?php
}else{ ?>
<a href="detalhesPagamento.php?f=<?php echo $linha7['atendente_pagamento_exame'] ?> && p=<?php echo $linha7['tipo_pagamento_exame'] ?> && d=<?php echo $linha7['data_pagamento_exame']?> && t=Exame"><p><?php echo $linha7['atendente_pagamento_exame'] ?> </p> </a>
<?php } ?>
</td>
</tr>
<?php
} while($linha7 = mysqli_fetch_assoc($dados7));
mysqli_free_result($dados7);
}
mysqli_close($mysqllink7);
?>
</tbody>
</table>
</div>
<?php } ?>
<div class="container-infoExtrato">
<div class="total alinha-central">
<div class="tot-txt">
<p>Total de transações do período:</p>
</div>
<div class="tot-valor">
<p><?php echo $transacao?></p>
</div>
</div>
<div class="total totalValor alinha-central">
<div class="receita-txt">
<p>Total de receitas do período:</p>
</div>
<div class="receita-valor">
<p>R$ <?php echo $totalReceita ?></p>
</div>
</div>
</div>
<div class="print" onClick="window.print()">
<a href="#"><img src="img/print.png" width="40" height="40"></a>
</div>
</div>
</div>
</main>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#tabela1').DataTable({
"language": {
"lengthMenu": "Mostrando _MENU_ registros por página",
"zeroRecords": "Nenhum registro encontrado",
"info": "Mostrando página _PAGE_ de _PAGES_",
"infoEmpty": "Nenhum registro disponível",
"infoFiltered": "(filtrado de _MAX_ registros no total)"
}});
} );
</script>
<script type="text/javascript" src="js/somePesquisa.js"></script>
<script type="text/javascript" src="js/apagarConsultaListagem.js"></script>
<script type="text/javascript" src="js/mudaTipoPesquisa.js"></script>
</body>
</html> | 2609b36d11d641008271da70d0ae997cb6799ec0 | [
"PHP"
] | 23 | PHP | beattrizmi01/centromedico | 89e5159801983f8c05b50f43345e6f17c9600721 | f655cfc92692e475d8360a777d973f19e06b4489 |
refs/heads/master | <file_sep>const services = {
security: {
url: "http://127.0.0.1:9000"
},
users: {
url: "http://127.0.0.1:9001"
},
posts: {
url: "http://127.0.0.1:9002"
},
};
export {
services
}<file_sep>import { StyleSheet } from '@react-pdf/renderer';
const styles = StyleSheet.create({
// Col Widths
col5: {
width: '5%'
},
col10: {
width: '10%'
},
col15: {
width: '15%'
},
col20: {
width: '20%'
},
col25: {
width: '25%'
},
col30: {
width: '30%'
},
col35: {
width: '35%'
},
col40: {
width: '40%'
},
col45: {
width: '45%'
},
col50: {
width: '50%'
},
col55: {
width: '55%'
},
col60: {
width: '60%'
},
col65: {
width: '65%'
},
col70: {
width: '70%'
},
col75: {
width: '75%'
},
col80: {
width: '80%'
},
col85: {
width: '85%'
},
col90: {
width: '90%'
},
col95: {
width: '95%'
},
col100: {
width: '100%'
},
page: {
fontFamily: 'Helvetica',
fontSize: '11',
padding: 20,
paddingTop: 30
},
row: {
flexDirection: 'row',
margin: 5,
},
strong: {
fontFamily: 'Helvetica-Bold'
},
imageCaption: {
margin: '5pt',
fontSize: '8'
},
sublabel: {
fontSize: '8'
},
uppercase: {
textTransform: 'uppercase'
},
textCenter: {
textAlign: 'center'
},
textRight: {
textAlign: 'right'
},
textJustify: {
textAlign: 'justify'
},
details: {
borderLeft: '1pt',
borderTop: '1pt',
marginTop: '5pt',
marginBottom: '5pt',
},
detailHeaderRow: {
flexDirection: 'row',
borderBottom: '1pt',
},
detailRow: {
flexDirection: 'row',
borderBottom: '1pt'
},
detailHeader: {
fontFamily: 'Helvetica-Bold',
textAlign: 'center',
borderRight: '1pt',
padding: '1pt',
paddingTop: '4pt'
},
detailField: {
textAlign: 'center',
borderRight: '1pt',
padding: '1pt',
paddingTop: '4pt'
},
title: {
fontSize: 14,
paddingRight: '10pt',
marginTop: '15pt'
},
logo: {
height: '48pt',
margin: 'auto'
},
upperInfo: {
marginTop: '10pt'
},
footerImage: {
maxHeight: '350pt',
marginTop: '10pt',
}
});
export default styles<file_sep>import React, { Component } from "react";
import { Jumbotron } from "react-bootstrap";
import { collect } from 'react-recollect';
import Button from "../../components/CustomButton/CustomButton.jsx";
import AuthService from "../../services/AuthService.jsx";
class LandingPage extends Component {
constructor(props) {
AuthService.checkOauthRedirect();
if(AuthService.isLoggedIn()) {
props.history.push('/dashboard');
}
super(props);
}
handleOnSingInClick = () => {
AuthService.getOauthToken();
}
render() {
return (
<div className="landingPage">
<Jumbotron>
<div className="shadow">
<h1>Social Media Aggregator</h1>
<h2>
Keep things <strong>organized</strong>. Never miss <strong>anything</strong>.
</h2>
<p>
<Button
fill
bsStyle="primary"
onClick={this.handleOnSingInClick}>
<i className="fa fa-twitter"/>
Sign in with Twitter
</Button>
</p>
</div>
</Jumbotron>
</div>
);
}
}
export default collect(LandingPage);
<file_sep>import React, { Component } from "react";
import UserCard from "./UserCard.jsx";
import { collect } from 'react-recollect';
import {
Row,
Col,
FormGroup,
ControlLabel,
} from "react-bootstrap";
import AsyncSelect from 'components/CustomSelect/CustomAsyncSelect.jsx';
import Button from "../CustomButton/CustomButton.jsx";
import UserService from "../../services/UserService.jsx"
export class UserCRUD extends Component {
constructor() {
super();
this.state = {
twitterUser: null
}
}
getUser = () => {
return this.props.store.user;
}
getBoard = () => {
return this.props.store.user.boards[this.props.boardKey];
}
handleOnAddUser = () => {
const twitterUser = this.state.twitterUser;
if(twitterUser) {
const user = this.getUser();
const board = this.getBoard();
if(!board.userFollowings.some(u => u.username === twitterUser.username)){
UserService.followUser({
username: user.username,
boardname: board.name,
twitterUser,
onSuccess: res => {
board.userFollowings = [twitterUser].concat(board.userFollowings);
this.setState({twitterUser: null});
},
});
} else {
this.setState({twitterUser: null});
}
}
}
handleOnRemoveUser = (twitterUser) => {
const user = this.getUser();
const board = this.getBoard();
UserService.unfollowUser({
username: user.username,
boardname: board.name,
twitterUsername: twitterUser.username,
onSuccess: res => {
board.userFollowings = board.userFollowings.filter(u => u.username !== twitterUser.username);
},
});
}
handleOnUserSearch = (query, callback) => {
UserService.searchTwitterUsers({
query,
onSuccess: async res => {
const users = await res.json();
callback(users);
}
});
}
render() {
const board = this.getBoard();
return (
<div className="crud">
<form>
<Row>
<Col md={4} xs={11}>
<FormGroup >
<ControlLabel>Add User</ControlLabel>
<AsyncSelect
loadOptions={this.handleOnUserSearch}
value={this.state.twitterUser}
onChange={twitterUser => this.setState({twitterUser})}
getOptionLabel={twitterUser =>
<div>
<strong>{twitterUser.name}</strong> @{twitterUser.username}
</div>
}
getOptionValue={twitterUser => twitterUser.username}
placeholder="newuser"
/>
</FormGroup>
</Col>
<Col md={1}>
<Button
fill
bsStyle="primary"
bsSize="small"
className="add-btn"
onClick={this.handleOnAddUser}>
ADD
</Button>
</Col>
</Row>
</form>
<div className="node-container">
{board.userFollowings.map( twitterUser => (
<UserCard
key={twitterUser.username}
data={twitterUser}
onClick={() => this.handleOnRemoveUser(twitterUser)}/>
))}
<div className="space-between-fix"></div>
</div>
</div>
);
}
}
export default collect(UserCRUD);
<file_sep>import React, { Component } from "react";
import cx from "classnames";
import PropTypes from "prop-types";
class CustomDivButton extends Component {
render() {
const { fill, simple, pullRight, round,
block, bsStyle, ml, mr, className, ...rest } = this.props;
const btnClasses = cx({
"btn-fill": fill,
"btn-simple": simple,
"pull-right": pullRight,
"btn-block": block,
"btn-round": round,
"btn-ml": ml,
"btn-mr": mr,
"btn-danger": bsStyle === "danger",
"btn-info": bsStyle === "info",
"btn-warning": bsStyle === "warning",
"btn-success": bsStyle === "success",
"btn-default": bsStyle === "default"
});
return <div className={`btn ${btnClasses} ${className}`} {...rest} />;
}
}
CustomDivButton.propTypes = {
fill: PropTypes.bool,
simple: PropTypes.bool,
pullRight: PropTypes.bool,
block: PropTypes.bool,
round: PropTypes.bool
};
export default CustomDivButton;
<file_sep>import React, { Component } from 'react'
import { components } from 'react-select';
class MenuList extends Component {
getIsFocused = (newOption) => {
const focusedOption = this.getStateManager().select.state.focusedOption;
const getOptionValue = this.props.selectProps.getOptionValue;
return !focusedOption || getOptionValue(focusedOption) === getOptionValue(newOption);
}
getStateManager = () => {
const current = this.props.selectProps.selectRef.current,
type = this.props.selectProps.type;
return type === "AsyncSelect" ? current.select : current;
}
render() {
const {
select,
state
} = this.getStateManager()
const createNewOption = this.props.selectProps.onCreateNewOption || (inputValue => ({
value: inputValue,
label: inputValue
}));
const newOption = createNewOption(state.inputValue);
return (
<components.MenuList {...this.props}>
{
this.props.children.length || !state.inputValue ? (
this.props.children
) : ("")
}
{
state.inputValue ? (
<div
ref={this.createNew}
className={`react-select__option ${this.getIsFocused(newOption) ? "react-select__option--is-focused" : ""}`}
onMouseOver={() => {
select.setState({focusedOption: newOption});
}}
onClick={() => {
this.props.selectOption(newOption);
}}>
Create New: "{state.inputValue}"
</div>
) : ("")
}
</components.MenuList>
);
}
};
export default MenuList;<file_sep>import React, {Component} from 'react'
import AsyncSelect from 'react-select/lib/Async';
import MenuList from './MenuList';
class CustomAsyncSelect extends Component {
constructor() {
super();
this.selectRef = React.createRef();
this.state = {
isLoading: false
}
}
handleOnkeyDown = (event) => {
switch (event.key) {
case 'Enter':
const select = this.selectRef.current.select.select;
if (select.props.menuIsOpen) {
select.selectOption(
select.state.focusedOption ||
this.props.onCreateNewOption(select.props.inputValue)
);
} else {
select.focusOption('first');
}
event.defaultPrevented = true;
break;
default:
return;
}
};
handleOnLoadOptions = (value,callback) => {
this.setState({isLoading: true});
const query = value || '';
this.props.loadOptions(query, (res) => {
callback(res)
this.setState({isLoading: false});
});
}
render() {
const {
isCreatable,
components,
loadOptions,
...rest
} = this.props;
return (
<AsyncSelect
ref={this.selectRef}
selectRef={this.selectRef}
className="react-select"
classNamePrefix="react-select"
isClearable
type="AsyncSelect"
// Async
isLoading={this.state.isLoading}
loadOptions={(value,callback) => this.handleOnLoadOptions(value,callback)}
// Creatable
components={isCreatable ? {MenuList, ...components} : {...components}}
onKeyDown={isCreatable ? this.handleOnkeyDown : null}
{...rest}
/>
)
}
}
export default CustomAsyncSelect;<file_sep>import {services} from '../variables/CustomVariables.jsx'
const AuthService = {
getOauthToken: () => {
window.location = `${services.security.url}/authenticate`
},
checkOauthRedirect: () => {
const searchParams = new URLSearchParams(window.location.search);
if(searchParams.has("redirect")) {
window.location = searchParams.get("redirect");
}
},
doLogin: () => {
localStorage.setItem("sfederella.socialMediaAggregator.isLoggedIn","true");
},
isLoggedIn: () => {
return localStorage.getItem("sfederella.socialMediaAggregator.isLoggedIn") === "true";
},
doLogout: () => {
localStorage.removeItem("sfederella.socialMediaAggregator.isLoggedIn")
window.location = `${services.security.url}/unauthenticate`
}
}
export default AuthService<file_sep>import React, { Component } from 'react'
import DatePicker from "react-16-bootstrap-date-picker";
class CustomDatePicker extends Component {
render() {
const {
value,
disabled
} = this.props;
return (
<div className="datepicker">
<DatePicker
showClearButton={value && !disabled}
clearButtonElement={
<svg height="16px" width="18px" viewBox="0 0 20 20" aria-hidden="true" focusable="false"><path d="M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"></path></svg>
}
{...this.props}
/>
</div>
)
}
}
export default CustomDatePicker;<file_sep>import {services} from '../variables/CustomVariables.jsx'
const PostService = {
getPosts: (options) => {
const {
search,
onSuccess = res => {},
onError = res => {console.error(res);alert("Error")}
} = options;
fetch(`${services.posts.url}/posts/search`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(search)
})
.then( res => {
if ( res.status === 200 ) {
onSuccess(res);
} else {
onError(res)
}
})
},
getEventSource: () => new EventSource(`${services.posts.url}/posts/stream`),
feedPosts(eventSource, callback) {
eventSource.onmessage = msg => {
callback(JSON.parse(msg.data));
}
},
closeFeed(eventSource) {
eventSource.close()
}
}
export default PostService;<file_sep>import React, { Component } from 'react'
import Select from 'react-select';
import MenuList from './MenuList';
class CustomSelect extends Component {
constructor() {
super();
this.selectRef = React.createRef();
}
handleOnkeyDown = (event) => {
switch (event.key) {
case 'Enter':
const select = this.selectRef.current.select;
if (select.props.menuIsOpen) {
select.selectOption(
select.state.focusedOption ||
this.props.onCreateNewOption(select.props.inputValue)
);
} else {
select.focusOption('first');
}
event.defaultPrevented = true;
break;
default:
return;
}
};
render() {
const {
isCreatable,
components,
...rest
} = this.props;
return (
<Select
ref={this.selectRef}
selectRef={this.selectRef}
className="react-select"
classNamePrefix="react-select"
isClearable isSearchable
type="Select"
// Creatable
components={isCreatable ? {MenuList, ...components} : {...components}}
onKeyDown={isCreatable ? this.handleOnkeyDown : null}
{...rest}
/>
)
}
}
export default CustomSelect;<file_sep># social-media-aggregator-posts
Social Media Aggregator Challenge - Post API
<file_sep># social-media-aggregator-users
Social Media Aggregator Challenge - User API
<file_sep>import React from 'react';
import { Document, Page, Text, Image, View } from '@react-pdf/renderer';
import logoTransitar from "assets/img/logo-color-transitar.png";
import styles from "./Styles.jsx";
import { CustomDate } from "utils/Utils.js"
// Create Document Component
const VoucherTemplate = ({data, ...props}) => {
const {
type,
destination,
date,
clients,
operator,
address,
telephone,
cellPhone,
cantPax,
arrivalDate,
departureDate,
details,
flights,
flightsReservationCode,
contact,
reservationCode,
notes
} = data;
console.log('templateProps',data);
return (
<Document>
<Page size="A4" style={styles.page}>
<View style={styles.row}>
<View style={styles.col30}>
<Image
style={styles.logo}
src={logoTransitar}
/>
<Text style={[styles.sublabel,styles.textCenter, styles.imageCaption]}>
EVT Legajo nº 15254 Disposición 1287
</Text>
</View>
<View style={[styles.col40, styles.textCenter, styles.title]}>
<Text style={styles.uppercase}>{`VOUCHER - ${type.desc}`}</Text>
<Text style={styles.uppercase}>{destination.desc}</Text>
</View>
<View style={[styles.col30,styles.textRight,styles.sublabel, styles.upperInfo]}>
<Text>Virrey del Pino 2686 Piso 2 Oficina A</Text>
<Text>Capital Federal (1426) Buenos Aires Argentina</Text>
<Text>Tel: 54-11-4781-9444</Text>
<Text>Fax: 54-11-4781-9444</Text>
<Text>E-mail: <EMAIL></Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Fecha</Text>
</View>
<View style={styles.col70}>
<Text>{new CustomDate(date).format("dd/MM/aaaa")}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>A</Text>
</View>
<View style={styles.col70}>
<Text>{operator.name}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Dirección</Text>
</View>
<View style={styles.col70}>
<Text>{address}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Teléfono</Text>
</View>
<View style={styles.col30}>
<Text>{telephone}</Text>
</View>
<View style={[styles.col20,styles.strong]}>
<Text>Celular</Text>
</View>
<View style={styles.col30}>
<Text>{cellPhone}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Pasajeros</Text>
</View>
<View style={styles.col70}>
<Text>{clients.map(c=>c.name).join(' & ')}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Cant Personas</Text>
</View>
<View style={styles.col70}>
<Text>{cantPax}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Fecha Llegada</Text>
</View>
<View style={styles.col30}>
<Text>{new CustomDate(arrivalDate).format("dd/MM/aaaa")}</Text>
</View>
<View style={[styles.col20,styles.strong]}>
<Text>Fecha Salida</Text>
</View>
<View style={styles.col30}>
<Text>{new CustomDate(departureDate).format("dd/MM/aaaa")}</Text>
</View>
</View>
<View style={[styles.row]}>
<View style={styles.col100}>
<Text style={styles.strong}>Servicios</Text>
<View style={styles.details}>
<View style={styles.detailHeaderRow}>
<View style={[styles.detailHeader,styles.col15]}>
<Text>Fecha</Text>
</View>
<View style={[styles.detailHeader,styles.col50]}>
<Text>Servicio</Text>
</View>
<View style={[styles.detailHeader,styles.col5]}>
<Text>Pax</Text>
</View>
<View style={[styles.detailHeader,styles.col10]}>
<Text>Tipo</Text>
</View>
<View style={[styles.detailHeader,styles.col20]}>
<Text>Horario Pick-Up</Text>
</View>
</View>
{details.map((d,key) => {
return (
<View key={key} style={styles.detailRow}>
<View style={[styles.detailField,styles.col15]}>
<Text>{new CustomDate(d.date).format("dd/MM/aaaa")}</Text>
</View>
<View style={[styles.detailField,styles.col50]}>
<Text>{d.detail.desc}</Text>
</View>
<View style={[styles.detailField,styles.col5]}>
<Text>{d.pax}</Text>
</View>
<View style={[styles.detailField,styles.col10]}>
<Text>{d.type.desc}</Text>
</View>
<View style={[styles.detailField,styles.col20]}>
<Text>{d.pickupTime}</Text>
</View>
</View>
)})}
</View>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col20,styles.strong]}>
<Text>Vuelos</Text>
</View>
<View style={styles.col30}>
<Text>{flights}</Text>
</View>
<View style={[styles.col30,styles.strong]}>
<Text>Codigos Reserva Vuelos</Text>
</View>
<View style={styles.col20}>
<Text>{flightsReservationCode}</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col30,styles.strong]}>
<Text>Reserva confirmada por</Text>
</View>
<View style={styles.col20}>
<Text>{contact}</Text>
</View>
<View style={[styles.col30,styles.strong]}>
<Text>Codigo Reserva</Text>
</View>
<View style={styles.col20}>
<Text>{reservationCode}</Text>
</View>
</View>
{notes ? (
<View style={styles.row}>
<View style={[styles.col30,styles.strong]}>
<Text>Nota</Text>
</View>
<View style={styles.col70}>
<Text>{notes}</Text>
</View>
</View>
) : null}
<View style={styles.row}>
<View style={[styles.col100, styles.sublabel, styles.textJustify]}>
<Text><Text style={styles.strong}>Observaciones:</Text> Reserva prepaga por Transitar Viajes y Turismo. En caso de desencuentro el celular de emergencia de ZIGZAG TRAVEL es +54-294-15-453-4000. Los servicios de traslados de Aeropuerto tendran una espera maxima de una (1/2) hora. Estar listos en el Lobby del hotel en los horarios que corresponda para cada excursión. La empresa no se responsabiliza por demoras ocasionadas por los pasajeros. Todos los extras a cargo de los pasajeros.</Text>
</View>
</View>
<View style={styles.row}>
<View style={[styles.col100]}>
<Image
style={styles.footerImage}
src={`/api/destinations/images/${destination._id}`}
/>
</View>
</View>
</Page>
</Document>
)
}
export default VoucherTemplate;<file_sep>import React from 'react'
const ControlSublabel = (props) => (
<p className="form-text control-sublabel">{props.children}</p>
);
export default ControlSublabel;<file_sep># social-media-aggregator-security
Social Media Aggregator Challenge - Security API
<file_sep>import React, { Component } from "react";
import {
Row,
Col,
Modal,
ControlLabel,
FormGroup,
FormControl } from "react-bootstrap";
import Button from "../../components/CustomButton/CustomButton.jsx";
export class Tweet extends Component {
handleOnSubmit = (e) => {
e.preventDefault();
this.props.onAccept(this.name.value)
}
render() {
const {
boardname,
show,
onAccept,
onClose
} = this.props
return (
<Modal
show={!!show}
onHide={onClose}>
{!!show ? (
<div>
<Modal.Header closeButton>
<Modal.Title>{boardname ? "Edit Board" : "New Board"}</Modal.Title>
</Modal.Header>
<Modal.Body>
<form onSubmit={this.handleOnSubmit}>
<Row>
<Col md={12}>
<FormGroup>
<ControlLabel>Name</ControlLabel>
<FormControl
inputRef={ref => this.name = ref}
type="text"
bsClass="form-control"
defaultValue = {boardname}
placeholder="New Board"
/>
</FormGroup>
</Col>
</Row>
</form>
</Modal.Body>
<Modal.Footer>
<Button
fill
bsStyle="primary"
onClick={() => onAccept(this.name.value)}>
Aceptar
</Button>
<Button
fill
bsStyle="default"
onClick={onClose}>
Cerrar
</Button>
</Modal.Footer>
</div>
) : null}
</Modal>
);
}
}
export default Tweet;
<file_sep>import React, { Component } from "react";
export class UserCard extends Component {
render() {
const {
data = {},
onClick
} = this.props
return (
<div className="node">
<strong className="name">
{data.name}
</strong>
<span className="username">
@{data.username}
</span>
<i
className="pe-7s-close"
onClick={onClick}
/>
</div>
);
}
}
export default UserCard;
<file_sep>import React from 'react'
const LoadingIcon = (props) => {
const {
width = "1em",
height = "1em"
} = props;
return (
<div aria-hidden="true" className="loadingIcon">
<span style={{width:width,height:height}} className="loadingDot"></span>
<span style={{width:width,height:height}} className="loadingDot"></span>
<span style={{width:width,height:height}} className="loadingDot"></span>
</div>
)
}
export default LoadingIcon<file_sep>import Posts from "views/Posts/Posts";
import Edit from "views/Edit/Edit";
const dashboardRoutes = [
{
path: "/dashboard/boards",
name: "Boards",
icon: "pe-7s-news-paper",
component: Posts,
},
{
path: "/dashboard/edit",
icon: "pe-7s-edit",
name: "Edit",
component: Edit,
},
{ redirect: true, path: "/", to: "/dashboard/boards", name: "Redirect" }
];
export default dashboardRoutes;
<file_sep>import React, { Component } from "react";
import {
Grid,
Row,
Col,
Tab,
Tabs } from "react-bootstrap";
import Button from "../../components/CustomButton/CustomButton.jsx";
import { collect } from 'react-recollect';
import BoardFormModal from "../../components/BoardFormModal/BoardFormModal.jsx";
import Card from "../../components/Card/Card.jsx";
import UserCRUD from "../../components/UserCRUD/UserCRUD.jsx";
import SubjectCRUD from "../../components/SubjectCRUD/SubjectCRUD.jsx";
import UserService from "../../services/UserService.jsx"
class Edit extends Component {
constructor() {
super();
this.state = {
activeBoardKey: 0,
activeListKey: "users",
showModal: false,
boardname: "",
onModalAccept: ()=>{}
}
}
componentDidMount = () => {
}
componentDidUpdate(prevProps, prevState, snapshot) {
if (this.state.activeBoardKey !== prevState.activeBoardKey) {
}
}
handleOnSelectBoard = (key) => {
if (key==="+") {
this.handleOnNewBoard();
} else if (key!==this.state.activeBoardKey) {
this.setState({
activeBoardKey: key,
});
}
}
handleOnNewBoard = () => {
this.setState({
showModal: true,
boardname: "",
onModalAccept: this.handleOnNewBoardAccept
});
}
handleOnNewBoardAccept = (boardname) => {
const user = this.props.store.user;
UserService.addBoard({
username: user.username,
boardname,
onSuccess: res => {
user.boards.push({
name: boardname,
userFollowings: [],
subjectFollowings: []
});
this.setState({
showModal: false,
activeBoardKey: user.boards.length-1,
});
},
});
}
handleOnEditBoard = () => {
const user = this.props.store.user;
this.setState({
showModal: true,
boardname: user.boards[this.state.activeBoardKey].name,
onModalAccept: this.handleOnEditBoardAccept
});
}
handleOnEditBoardAccept = (newBoardname) => {
const user = this.props.store.user;
UserService.editBoard({
username: user.username,
boardname: user.boards[this.state.activeBoardKey].name,
newBoardname,
onSuccess: res => {
user.boards[this.state.activeBoardKey].name = newBoardname
this.setState({showModal: false});
},
});
}
handleOnDeleteBoard = () => {
const user = this.props.store.user;
UserService.deleteBoard({
username: user.username,
boardname: user.boards[this.state.activeBoardKey].name,
onSuccess: res => {
user.boards.splice(this.state.activeBoardKey,1);
var nextActiveBoardKey = this.state.activeBoardKey -1;
if (nextActiveBoardKey < 0) {
nextActiveBoardKey = user.boards.length > 0 ? 0 : "+";
}
this.setState({
activeBoardKey: nextActiveBoardKey
});
},
});
}
handleModalClose = () => this.setState({showModal: false});
handleOnSelectList = (key) => {
this.setState({
activeListKey: key,
});
}
render() {
const {
activeBoardKey,
activeListKey,
showModal,
boardname,
onModalAccept
} = this.state
const user = this.props.store.user;
const activeBoard = user.boards[activeBoardKey];
return (
<div className="content content-tabs edit">
<Tabs
id="tabs-boards"
className="tabs-container"
activeKey={activeBoardKey}
onSelect={this.handleOnSelectBoard}
>
{user.boards.map((board,key) => (
<Tab eventKey={key} key={key} title={board.name.toUpperCase()}></Tab>
))}
<Tab title="+" eventKey="+" ></Tab>
</Tabs>
<div className="active-tab">
<Grid fluid>
<Row>
<Col md={12}>
{ !activeBoard ? (
<Card
title={"Welcome!"}
category={
<span>
Create a new board with the
<span className="btn-instruction">+</span>
button.
</span>
}
/>
) : (
<Card
title={activeBoard.name}
category="Follow users and subjects"
content={
<div>
<div className="board-actions">
<Button
fill
bsStyle="primary"
bsSize="small"
onClick={this.handleOnEditBoard}>
<i className="pe-7s-tools"/>
</Button>
<Button
fill
bsStyle="danger"
bsSize="small"
onClick={this.handleOnDeleteBoard}>
<i className="pe-7s-trash"/>
</Button>
</div>
<div className="inner-tabs">
<Row>
<Tabs
id="tabs-lists"
activeKey={activeListKey}
onSelect={this.handleOnSelectList}
>
<Tab
eventKey="users"
title={
<span>Users<strong>{activeBoard.userFollowings.length}</strong></span>
} >
<UserCRUD boardKey={activeBoardKey}/>
</Tab>
<Tab eventKey="subjects"
title={
<span>Hashtags<strong>{activeBoard.subjectFollowings.length}</strong></span>
} >
<SubjectCRUD boardKey={activeBoardKey}/>
</Tab>
</Tabs>
</Row>
</div>
</div>
}
/>
)}
</Col>
</Row>
</Grid>
</div>
< BoardFormModal
boardname={boardname}
show={showModal}
onAccept={onModalAccept}
onClose={this.handleModalClose}
/>
</div>
);
}
}
export default collect(Edit);
<file_sep># Social Media Aggregator
Keep things **organized**. Never miss **anything**.
This is a multitenant application, where you can create different Boards and follow different users and topics from twitter in each one.
## Overall architecture

## Get started
#### Step 1
Start one or more mongo dabases. You can use one database per API or have both APIs using the same database. Then configure the database uri in the respective ``application.conf``
```
mongodb.uri = "mongodb://admin:admin@localhost:27017/social-media-aggregator-api"
```
#### Step 2
Start the services with the script ``run-all.bat`` or start them individually:
1. social-media-aggregator-security: ``sbt "run 9000"``
2. social-media-aggregator-users: ``sbt "run 9001"``
3. social-media-aggregator-posts: ``sbt "run 9002"``
#### Step 3
Start the client with ``yarn start`` and after loading it will start running in the browser automatically.
## Documentation
There is a swagger available in the three APIs which you can use as documentation. For example, the security swagger will be in:
```
http://127.0.0.1:9000/swagger
```
<file_sep># social-media-aggregator-client
Social Media Aggregator Challenge - React Client
<file_sep>import React, { Component } from "react";
import { Nav, NavDropdown, MenuItem } from "react-bootstrap";
import AuthService from "services/AuthService";
class HeaderLinks extends Component {
constructor() {
super();
this.handleLogout = this.handleLogout.bind(this);
}
handleLogout() {
AuthService.doLogout();
}
render() {
const user = this.props.store.user
return (
<div>
<Nav pullRight>
<NavDropdown
eventKey={1}
title={user.imageUrl ? (
<span>
<img className="header-profile-image" src={user.imageUrl} alt={user.username}/>
{user.name}
</span>
) : (
user.name
)}
id="basic-nav-dropdown-right"
>
<MenuItem eventKey={1.1} onClick={this.handleLogout}>Log out</MenuItem>
</NavDropdown>
</Nav>
</div>
);
}
}
export default HeaderLinks;
| 2cce45f55aa7f47b2cbf56fe493b9f94f3fc788f | [
"JavaScript",
"Markdown"
] | 24 | JavaScript | sfederella/social-media-aggregator | 5b8e0ccdd60115cbaba8e0d6b1f43324af335c91 | 4d03ef93375745e0c6821afbfcba35e1a38f0a01 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from '../../environments/environment';
@Injectable({
providedIn: 'root'
})
export class EmployeeService {
url: any;
constructor(private http: HttpClient) {
this.url = environment.link_url;
}
getAllEmployees1(){
return new Promise((resolve, reject) => {
this.http.get(this.url+'users?page=1').subscribe(
(res) => {
resolve(res);
},
(err) => {
reject(err);
}
);
});
}
getAllEmployees2(){
return new Promise((resolve, reject) => {
this.http.get(this.url+'users?page=2').subscribe(
(res) => {
resolve(res);
},
(err) => {
reject(err);
}
);
});
}
getEmployeeById(id){
return new Promise((resolve, reject) => {
this.http.get(this.url+'users/'+id).subscribe(
(res) => {
resolve(res);
},
(err) => {
reject(err);
}
);
});
}
deleteEmployee(id){
return new Promise((resolve, reject) => {
this.http.delete(this.url+'users/',id).subscribe(
(res) => {
resolve(res);
},
(err) => {
reject(err);
}
);
});
}
editEmployee(id, body){
return new Promise((resolve, reject) => {
this.http.put(this.url+'users/'+id, body).subscribe(
(res) => {
resolve(res);
},
(err) => {
reject(err);
}
);
});
}
createEmployee(body){
return new Promise((resolve, reject) => {
this.http.post(this.url+'users/', body).subscribe(
(res) => {
resolve(res);
},
(err) => {
reject(err);
}
);
});
}
}
<file_sep>import { Component, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AlertController, PopoverController, ToastController } from '@ionic/angular';
import { EmployeeService } from 'src/app/services/employee.service';
@Component({
selector: 'app-popover',
templateUrl: './popover.component.html',
styleUrls: ['./popover.component.scss'],
})
export class PopoverComponent implements OnInit {
@Input() id;
constructor(private popoverController: PopoverController, private alertController: AlertController,
private toastController: ToastController, private employeeService: EmployeeService, private router: Router) { }
ngOnInit() {
}
dismissPopover(){
this.popoverController.dismiss();
}
edit(){
this.dismissPopover();
this.router.navigate(['/edit', this.id]);
}
async deleteAlert() {
const alert = await this.alertController.create({
cssClass: 'my-custom-class',
header: 'Are you sure you want to delete this employee?',
buttons: [
{
text: 'Cancel',
role: 'cancel',
cssClass: 'secondary',
handler: (blah) => {
console.log('Confirm Cancel: blah');
}
}, {
text: 'Delete',
handler: () => {
this.delete();
}
}
]
});
this.dismissPopover();
await alert.present();
}
delete(){
this.employeeService.deleteEmployee(this.id).then((res: any) => {
this.deleteToast();
this.router.navigate(['/home']);
})
}
async deleteToast() {
const toast = await this.toastController.create({
message: 'Employee deleted',
duration: 2000
});
toast.present();
}
}
<file_sep>import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { PopoverController } from '@ionic/angular';
import { PopoverComponent } from 'src/app/components/popover/popover.component';
import { EmployeeService } from 'src/app/services/employee.service';
@Component({
selector: 'app-employee-detail',
templateUrl: './employee-detail.page.html',
styleUrls: ['./employee-detail.page.scss'],
})
export class EmployeeDetailPage implements OnInit {
id: any;
details: any;
flagLoaded = false;
constructor(private employeeService: EmployeeService, private activeRoute: ActivatedRoute, private router: Router,
private popoverController: PopoverController) { }
ngOnInit() {
this.activeRoute.params.subscribe((param) => {
this.id = param.id
});
}
ionViewWillEnter(){
this.getDetails();
// this.delete();
}
goBack() {
this.router.navigate(['/home']);
}
getDetails(){
this.employeeService.getEmployeeById(this.id).then((res: any) => {
this.flagLoaded = true;
this.details = res.data;
console.log(this.details);
})
}
async presentPopover(ev: any) {
const popover = await this.popoverController.create({
component: PopoverComponent,
cssClass: 'my-custom-class',
event: ev,
translucent: true,
componentProps: {
'id': this.id
}
});
return await popover.present();
}
edit(){
// this.employeeService.editEmployee(this.id).then((res: any) => {
// console.log(res);
// this.getDetails();
// });
// this.employeeService.createEmployee().then((res: any) => {
// console.log(res);
// })
}
delete(){
this.employeeService.deleteEmployee(this.id).then((res: any) => {
console.log(res);
})
}
}
<file_sep>import { Component } from '@angular/core';
import { Router } from '@angular/router';
import { EmployeeService } from '../../services/employee.service';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
employeeList: any;
constructor(private employeeService: EmployeeService, private router: Router) {}
ngOnInit(){
}
ionViewWillEnter(){
this.fetchAllEmployees();
}
fetchAllEmployees(){
this.employeeService.getAllEmployees1().then((res: any) => {
this.employeeList = res.data;
})
this.employeeService.getAllEmployees2().then((res: any) =>{
let tempList = res.data;
tempList.forEach(element => {
this.employeeList.push(element);
});
// this.employeeList.push(res.data);
console.log(this.employeeList);
})
}
gotoDetail(id){
this.router.navigate(['/detail',id]);
}
gotoAdd(){
this.router.navigate(['/add']);
}
filterList(evt){
const searchTerm = evt.srcElement.value;
console.log(searchTerm);
if (!searchTerm) {
this.fetchAllEmployees();
return;
}
this.employeeList = this.employeeList.filter(currentFood => {
if ((currentFood.first_name || currentFood.last_name) && searchTerm ) {
return (currentFood.first_name.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1);
}
});
}
}
<file_sep>import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { ToastController } from '@ionic/angular';
import { EmployeeService } from 'src/app/services/employee.service';
@Component({
selector: 'app-employee-add',
templateUrl: './employee-add.page.html',
styleUrls: ['./employee-add.page.scss'],
})
export class EmployeeAddPage implements OnInit {
addForm: FormGroup;
constructor(private fb: FormBuilder, private employeeService: EmployeeService, private toastController: ToastController,
private router: Router) {
this.initForms();
}
ngOnInit() {
}
initForms(){
const alphaRegex = /^[a-zA-Z\s]*$/;
this.addForm = this.fb.group({
first_name: new FormControl('', Validators.compose([Validators.required, Validators.pattern(alphaRegex)])),
last_name: new FormControl('', Validators.compose([Validators.required, Validators.pattern(alphaRegex)])),
job: new FormControl('', Validators.compose([Validators.required, Validators.pattern(alphaRegex)])),
});
}
submitForm(){
if(this.addForm.valid){
let body = this.addForm.value;
this.employeeService.createEmployee(body).then((res: any) => {
console.log(res);
this.addToast();
this.router.navigate(['/home']);
})
}
}
async addToast() {
const toast = await this.toastController.create({
message: 'Employee profile saved succesfully',
duration: 2000
});
toast.present();
}
}
<file_sep>import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
import { ToastController } from '@ionic/angular';
import { EmployeeService } from 'src/app/services/employee.service';
@Component({
selector: 'app-employee-edit',
templateUrl: './employee-edit.page.html',
styleUrls: ['./employee-edit.page.scss'],
})
export class EmployeeEditPage implements OnInit {
id: any;
details: any;
editForm: FormGroup;
flagLoaded = false;
constructor(private activeRoute: ActivatedRoute, private employeeService: EmployeeService,
private fb: FormBuilder, private router: Router, private toastController: ToastController) {
this.initForms();
}
ngOnInit() {
this.activeRoute.params.subscribe((param) => {
this.id = param.id
});
}
ionViewWillEnter(){
this.getDetails();
}
goBack(){
this.router.navigate(['/detail', this.id]);
}
initForms(){
const alphaRegex = /^[a-zA-Z\s]*$/;
this.editForm = this.fb.group({
first_name: new FormControl('', Validators.compose([Validators.required, Validators.pattern(alphaRegex)])),
last_name: new FormControl('', Validators.compose([Validators.required, Validators.pattern(alphaRegex)])),
});
}
getDetails(){
this.employeeService.getEmployeeById(this.id).then((res: any) => {
this.flagLoaded = true;
this.details = res.data;
console.log(this.details);
})
}
submitForm(){
if(this.editForm.valid){
let body = this.editForm.value;
this.employeeService.editEmployee(this.id, body).then((res: any) => {
console.log(res);
this.editToast();
this.router.navigate(['/detail', this.id]);
})
}
}
async editToast() {
const toast = await this.toastController.create({
message: 'Employee profile saved succesfully',
duration: 2000
});
toast.present();
}
}
| a14f904ad8a42ec4df1acfcc02502d5e2216437c | [
"TypeScript"
] | 6 | TypeScript | joyamadea/employee-application | e90354750c7b9aa1f819e312840b7de38426111b | ddc5122b94cc842edecf5a11b5f3a57f050984de |
refs/heads/main | <repo_name>Zhaozzy-hub/LeetCode_Problems<file_sep>/Solutions/ArithmeticSubarrays1630.cpp
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<bool> checkArithmeticSubarrays(vector<int>& nums, vector<int>& l, vector<int>& r) {
int len = nums.size();
int sublen = l.size();
vector<bool> ans;
for (int i = 0; i < sublen; i++) {
vector<int> tmp = { nums.begin() + l[i],nums.end() - (len - r[i] - 1) };
sort(tmp.begin(), tmp.end());
int diff = tmp[1] - tmp[0];
for (int j = 1; j < tmp.size(); j++) {
if (diff != tmp[j] - tmp[j - 1]) {
ans.push_back(false);
break;
}
if (j == tmp.size() - 1) {
ans.push_back(true);
}
}
}
return ans;
}<file_sep>/Solutions/CombSumII40.cpp
#include <vector>
#include <iostream>
#include <Algorithm>
using namespace std;
void backtrack(vector<int>& candidates,int target, vector<int> cur, vector<vector<int>>& l,int pos) {
if (target == 0) {
l.push_back(cur);
return;
}
for (int i = pos; i < candidates.size(); i++) {
if (i > pos && candidates[i] == candidates[i - 1]) continue ;
if (target - candidates[i] >= 0) {
cur.push_back(candidates[i]);
backtrack(candidates, target - candidates[i], cur, l, i+1);
cur.pop_back();
}
}
return;
}
vector<vector<int>> combinationSum2(vector<int>& candidates, int target){
sort(candidates.begin(), candidates.end());
vector<vector<int>> l;
vector<int> cur;
int pos = 0;
backtrack(candidates, target, cur, l, pos);
return l;
}
void printer(vector<vector<int>> v) {
for (int i = 0; i < v.size(); i++) {
for (int j = 0; j < v[i].size(); j++) {
cout << v[i][j] << " ";
}
cout << endl;
}
}
//int main() {
// vector<int> candidates = { 10,1,2,7,6,1,5 };
// printer(combinationSum2(candidates, 8));
//
//
//}<file_sep>/Solutions/ContinuousSubarraySum523.cpp
#include <vector>
#include <iostream>
#include <unordered_map>
using namespace std;
bool checkSubarraySum(vector<int>& nums, int k) {
int len = nums.size();
unordered_map<int, int> m{ {0,-1} };
int r = 0;
for (int i = 0; i < len; i++) {
r += nums[i];
r %= k; // reminder of sum(nums[0~i])
if (m.count(r)) {
if (i - m[r] > 1) return true; // exists same reminder before which means sum(nums[0~i])% k == sum(nums[0~j])% k => sum(nums[i~j]) %k == 0
}
else {
m[r] = i;
}
}
return false;
}<file_sep>/Playground/canSum.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
bool canSum(int n, vector<int> a) {
if (n == 0)
{
return true;
}
if (n < 0)
{
return false;
}
for (int i = 0; i < a.size(); i++) {
if (canSum(n - a[i], a)) {
return true;
}
}
return false;
}
bool dp_canSum(int n, vector<int> a,map<int, bool> &memo) {
if (memo.find(n) != memo.end()) {
return memo[n];
}
if (n == 0)
{
return true;
}
if (n < 0)
{
return false;
}
for (int i = 0; i < a.size(); i++) {
if (dp_canSum(n - a[i], a, memo)) {
memo[n] = true;
return true;
}
}
memo[n] = false;
return false;
}
//int main()
//{
// vector<int> a = { 7,14 };
// map<int, bool> m;
// cout << dp_canSum(300, a, m) << endl;
// //cout << canSum(300, a) << endl;
//}
<file_sep>/Solutions/PartitionEqualSubset416.cpp
#include <vector>
#include <iostream>
using namespace std;
bool canpartition(vector<int>& nums) {
int sum=0;
for (int i = 0; i < nums.size(); i++) {
sum += nums[i];
}
if (sum % 2 != 0) {
return false;
}
int C = sum / 2;
int n = nums.size();
vector<vector<int>> tab(n + 1, vector<int>(C + 1));
for (int j = 0; j <= n; j++) {
for (int k = 0; k <= C; k++) {
if (k == 0 || j == 0) {
tab[j][k] = false;
}
else if (nums[j - 1] == k) {
tab[j][k] = true;
}
else if (nums[j - 1] < k) {
tab[j][k] = tab[j - 1][k - nums[j - 1]] || tab[j - 1][k];
}
else {
tab[j][k] = tab[j - 1][k];
}
}
}
return tab[n][C];
}
bool canPart1D(vector<int>& nums) {
int sum = 0;
for (int i = 0; i < nums.size(); i++) {
sum += nums[i];
}
if (sum % 2 != 0) {
return false;
}
int C = sum / 2;
int n = nums.size();
vector<int> tab(C + 1);
tab[0] = true;
if (nums[0] <= C) {
tab[nums[0]] = true;
}
for (int i = 1; i < n; i++) {
for (int k = C; k >= 0 && nums[i] <= k; k--) {
tab[k] = tab[k] || tab[k - nums[i]];
}
if (tab[C]) {
return tab[C];
}
}
return tab[C];
}
//
//int main() {
// vector<int> nums = { 1,5,11,5 };
// cout << canPart1D(nums) << endl;
//
//}<file_sep>/Playground/allConstruct.cpp
#include <vector>
#include <iostream>
#include <map>
#include <string>
using namespace std;
vector<string> allConstruct(string target, vector<string> bank, map<string,vector<string>>& memo) {
if (target.compare("") == 0) {
vector<string> emp = { "" };
return emp;
}
if (memo.find(target) != memo.end()) {
return memo[target];
}
vector<string> r = {};
for (int i = 0; i < bank.size(); i++) {
string word = bank[i];
if (target.find(word) == 0) {
string subtarget = target.substr(word.size());
vector<string> subways = allConstruct(subtarget, bank,memo);
vector<string> targetways = subways;
for (int j = 0; j < targetways.size(); j++) {
targetways[j] = word + " "+ targetways[j];
}
r.insert(r.end(), targetways.begin(), targetways.end());
}
}
memo[target] = r;
return r;
}
vector<string> tab_allConstruct(string target, vector<string> bank) {
vector<vector<string>> tab(target.size()+1, vector<string>());
tab[0] = { "" };
for (int i = 0; i <= target.size(); i++) {
if (tab[i].size() > 0) {
for (int j = 0; j < bank.size(); j++) {
int m = bank[j].length();
if (i + m <= target.size()) {
if (target.substr(i, bank[j].size()).compare(bank[j]) == 0) {
vector<string> tmp = tab[i];
for (int k = 0; k < tab[i].size(); k++) {
tmp[k] += " " + bank[j];
}
tab[i + m].insert(tab[i + m].end(), tmp.begin(), tmp.end());
}
}
}
}
}
return tab[target.size()];
}
void printer(vector<string> r) {
for (int i = 0; i < r.size(); i++)
{
cout << r[i] << endl;
}
}
//int main() {
// map<string, vector<string>> memo1;
// string target1 = "abcdef";
// vector<string> bank1= { "ab","abc","cd","def","abcd","ef","c" };
// vector<string> r1 = tab_allConstruct(target1, bank1);
// printer(r1);
//
// map<string, vector<string>> memo2;
// string target2 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz";
// vector<string> bank2 = { "a","aa","aaa","aaaa","aaaaa","aaaaaa","aaaaaaa" };
// vector<string> r2 = allConstruct(target2, bank2,memo2);
// printer(r2);
//
// map<string, vector<string>> memo3;
// string target3 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
// vector<string> bank3 = { "a","aa","aaa","aaaa","aaaaa","aaaaaa","aaaaaaa" };
// vector<string> r3 = allConstruct(target3, bank3,memo3);
// printer(r3);
//}<file_sep>/Solutions/MatrixDiagonalSum1572.cpp
#include <vector>
#include <iostream>
using namespace std;
int diagonalSum(vector<vector<int>>& mat) {
int n = mat.size();
if (n == 1) return mat[0][0];
int i = 0;
int left = 0;
int right = 0;
while (i < n) {
left += mat[i][i];
if (i != n - i - 1) right += mat[i][n - i - 1];
i++;
}
return left + right;
}
<file_sep>/Solutions/PartitionKEqualSubset698.cpp
#include <vector>
#include <iostream>
using namespace std;
bool backtrack(int target, vector<int>& nums, vector<bool> visited, int it,int k, int cur) {
if (k == 1) {
return true;
}
if (cur == target) {
return backtrack(target, nums, visited, 0, k - 1, 0);
}
if (cur > target) {
return false;
}
for (int i = it; i < nums.size(); i++) {
if (i > 0 && nums[i] == nums[i - 1] && visited[i - 1])
continue;
if (visited[i] ) {
visited[i] = false;
if (backtrack(target, nums, visited, i+1, k, cur + nums[i])) {
return true;
}
visited[i] = true;
}
}
return false;
}
bool PartitionKEqualSubset(vector<int>& nums,int k) {
int sum = 0;
for (int i = 0; i < nums.size(); i++) {
sum += nums[i];
}
if (sum % k != 0) {
return false;
}
int m = sum / k;
vector<bool> visited(nums.size(), true);
return backtrack(m, nums, visited, 0, k, 0);
}
//int main() {
// vector<int> nums1 = { 1,1,1,1,1,1,1,1,1,1 };
// vector<int> nums2 = { 2,2,2,2,3,4,5 };
// vector<int> nums3 = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3 };
//
// cout << PartitionKEqualSubset(nums1, 5) << endl;
// cout << PartitionKEqualSubset(nums2, 4) << endl;
// cout << PartitionKEqualSubset(nums3, 8) << endl;
//}<file_sep>/Solutions/FlipColumnsMaxEqualRows.cpp
#include <vector>
#include <iostream>
#include <string>
#include <map>
#include <algorithm>
using namespace std;
int maxEqualRowsAfterFlips(vector<vector<int>>& matrix) {
int ans = 0;
int m = matrix.size();
int n = matrix[0].size();
map<string, int> map;
for (auto& row : matrix) {
string boolrow = "";
for (int i = 1; i < row.size(); i++) {
boolrow += row[0] == row[i] ? '0' : '1';
}
map[boolrow]++;
}
for (auto& i : map) {
ans = max(ans, i.second);
}
return ans;
}<file_sep>/Playground/fib.cpp
#include <iostream>
using namespace std;
int rec_fib(int n) {
int a;
if (n == 1 or n == 2) {
return 1;
}
a = rec_fib(n - 1) + rec_fib(n - 2);
return a;
}
unsigned long long int dp_fib(int n) {
unsigned long long int arr[2] = {1, 1};
if (n <= 2)
{
return 1;
}
int i;
for (i = 2; i < n; i++)
{
unsigned long long int tmp = arr[0];
arr[0] = arr[1];
arr[1] = tmp + arr[0];
}
return arr[1];
}
//int main() {
//
// cout << rec_fib(3) << endl;
// cout << dp_fib(50) << endl;
//}<file_sep>/Solutions/PerfectSquares279.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
int pfs(int n) {
vector<int> tab(n+1, 1);
tab[0] = 0;
for (int i = 1; i <= n; i++) {
if (int(sqrt(i))* int(sqrt(i)) == i) {
tab[i] = 1;
}
else {
int tmp = INT_MAX;
for (int j = 1; j*j <= i; j++) {
tmp = min((tab[i%(j*j)] + i/(j*j)), tmp);
}
tab[i] = tmp;
}
}
return tab[n];
}
//int main(){
// cout << pfs(4560) << endl;
//}
<file_sep>/Solutions/ArithmeticSlicesII446.cpp
#include <iostream>
#include <vector>
#include <map>
using namespace std;
// dp[i][diff] := the number of subsequences ends in i with diff (length >=2)
int numberOfArithmeticSlices(vector<int>& nums) {
int ans = 0;
int n = nums.size();
if (n < 3) return 0;
vector<map<long long, int>> dp(n);
for (int i = 0; i < n; i++) {
for (int j = 0; j < i; j++) {
long long diff = (long long)nums[i] - (long long)nums[j];
// add a sequence with length = 2;
dp[i][diff] += 1;
// if sequence with diff already exist
if (dp[j].find(diff) != dp[j].end()) {
// add all subsequnce
dp[i][diff] += dp[j][diff];
ans += dp[j][diff];
}
}
}
return ans;
}<file_sep>/Solutions/BoatstoSavePeople881.cpp
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
// greedy, sort
int numRescueBoats(vector<int>& people, int limit) {
int k = 0;
sort(people.begin(), people.end());
int start = 0;
int end = people.size() - 1;
while (start < end) {
if (people[start] + people[end] <= limit) {
start++;
end--;
k++;
}
else {
end--;
k++;
}
}
if (start == end) {
k++;
}
return k;
}<file_sep>/Solutions/CloneGraph133.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
class Node {
public:
int val;
vector<Node*> neighbors;
Node() {
val = 1;
neighbors = vector<Node*>();
}
Node(int _val) {
val = _val;
neighbors = vector<Node*>();
}
Node(int _val, vector<Node*> _neighbors) {
val = _val;
neighbors = _neighbors;
}
};
Node* copy(Node* node, map<Node*, Node*>& nodemap) {
if (nodemap.find(node) == nodemap.end()) {
Node* newnode = new Node(node->val);
nodemap[node] = newnode;
for (int i = 0; i < node->neighbors.size(); i++) {
newnode->neighbors.push_back(copy(node->neighbors[i], nodemap));
}
return newnode;
}
else {
return nodemap[node];
}
}
// note without the map the function while continuously create space for seen nodes;
Node* cloneGraph(Node* node) {
if (node == NULL) {
return NULL;
}
map<Node*, Node*> nodemap;
return copy(node, nodemap);
}<file_sep>/Solutions/BinaryTreeZigzag103.cpp
#include <vector>;
#include<iostream>;
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), left(left), right(right) {}
};
void solver(vector<vector<int>>& l, int layer, TreeNode* root) {
if (root == nullptr) {
return;
}
if (l.size() < layer + 1) {
l.push_back(vector<int>(1, root->val));
solver(l, layer + 1, root->left);
solver(l, layer + 1, root->right);
}
else if (layer % 2 == 0) {
l[layer].push_back(root->val);
solver(l, layer + 1, root->left);
solver(l, layer + 1, root->right);
}
else if (layer % 2 != 0) {
l[layer].insert(l[layer].begin(), root->val);
solver(l, layer + 1, root->left);
solver(l, layer + 1, root->right);
}
}
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> l;
vector<int> cur;
int layer = 0;
solver(l, layer, root);
return l;
}<file_sep>/Solutions/UniqueNumberofOccurrence1207.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
bool uniqueOccurrences(vector<int>& arr) {
map<int, int>m;
for (int i = 0; i < arr.size(); i++) {
if (m.find(arr[i]) != m.end()) {
m[arr[i]] += 1;
}
else {
m[arr[i]] = 1;
}
}
map<int, int>n;
for (auto it = m.begin(); it != m.end(); it++)
{
n[it->second] = it->first;
}
if (m.size() == n.size()) {
return true;
}
return false;
}<file_sep>/Solutions/RecoverBinarySearchTree99.cpp
#include <vector>
#include <iostream>
using namespace std;
struct TreeNode {
int val;
TreeNode* left;
TreeNode* right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode* left, TreeNode* right) : val(x), left(left), right(right) {}
};
void find_wrong(TreeNode* root, vector<TreeNode*>& missed) {
if (root == NULL) return;
find_wrong(root->left, missed);
if (missed[0] == NULL && root->val < missed[2]->val) missed[0] = missed[2];
if (missed[0] != NULL && root->val < missed[2]->val) missed[1] = root;
missed[2] = root;
find_wrong(root->right, missed);
}
void recoverTree(TreeNode* root) {
vector<TreeNode*> missed(3, NULL);
missed[2] = new TreeNode(INT_MIN);
find_wrong(root, missed);
TreeNode* f = missed[0];
TreeNode* s = missed[1];
int tmp;
tmp = s->val;
s->val = f->val;
f->val = tmp;
return;
}<file_sep>/Solutions/FillingBookcaseShelves1105.cpp
#include <vector>
#include <iostream>
using namespace std;
int minHeightShelves(vector<vector<int>>& books, int shelf_width) {
int numbooks = books.size();
vector<int> dp(numbooks, INT_MAX);
for (int i = 0; i < numbooks; i++) {
int w = 0;
int h = 0;
for (int j = i; j >= 0; j--) {
if ((w += books[j][0]) > shelf_width) break;
h = max(h, books[j][1]);
dp[i] = min((j == 0 ? 0 : dp[j - 1]) + h, dp[i]);
}
}
return dp[numbooks - 1];
}<file_sep>/Solutions/ValidSudoku36.cpp
#include <vector>
#include <iostream>
#include <unordered_map>
#include <string>
using namespace std;
bool isValidSudoku(vector<vector<char>>& board) {
unordered_map<string, int> seen;
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
if (board[i][j] != '.') {
string s(1, board[i][j]);
string row = s + "seen in row" + to_string(i);
string col = s + "seen in col" + to_string(j);
string box = s + "seen in box" + to_string(i / 3) + to_string(j / 3);
if ((seen.find(row) != seen.end()) || (seen.find(col) != seen.end()) || (seen.find(box) != seen.end())) return false;
else {
seen[row] = 1;
seen[col] = 1;
seen[box] = 1;
}
}
}
}
return true;
}
<file_sep>/Playground/01knapsack.cpp
#include <vector>
#include <iostream>
using namespace std;
int knapsack(vector<int> v, vector<int> w, int C) {
int n = v.size() + 1;
int m = C + 1;
vector<vector<int>> tab(n, vector<int>(m));
for (int i = 0; i <= v.size(); i++) {
for (int j = 0; j <= C; j++) {
if (i == 0 || j == 0) {
tab[i][j] = 0;
cout << tab[i][j] << " ";
}
else if (w[i-1] <= j) {
tab[i][j] = max(tab[i-1][j],tab[i-1][j-w[i-1]]+v[i-1]);
cout << tab[i][j] << " ";
}
else {
tab[i][j] = tab[i - 1][j];
cout << tab[i][j] << " ";
}
}
cout << endl;
}
return tab[v.size()][C];
}
//int main() {
// int c = 5;
// vector<int> v = { 10,20,25,9 };
// vector<int> w = { 3,4,5,1 };
// cout << knapsack(v, w, c) << endl;
//
//}<file_sep>/Solutions/PalindromePartitionII132.cpp
#include <vector>
#include <iostream>
using namespace std;
bool ifpalidrome(string s) {
if (s.length() == 1) {
return true;
}
bool tmp = true;
for (int i = 0; i <= s.length() / 2; i++) {
tmp = tmp and (s[i] == s[s.length() - i - 1]);
}
return tmp;
}
//slow
int minCut(string s) {
int n = s.length();
vector<int> dp(n, n);
for (int i = 0; i < n; i++) {
if (ifpalidrome(s.substr(0, i + 1))) {
dp[i] = 0;
}
else
{
for (int j = 0; j < i; j++) {
if (ifpalidrome(s.substr(j + 1, i - j))) {
dp[i] = min(dp[i], dp[j] + 1);
}
}
}
}
return dp[n - 1];
}<file_sep>/Solutions/UncommonWords884.cpp
#include <vector>
#include <string>
#include <iostream>
#include <unordered_map>
using namespace std;
vector<string> uncommonFromSentences(string s1, string s2) {
int m = s1.size();
int n = s2.size();
unordered_map<string, int> dc;
vector<string> ans;
string tmp1 = "";
string tmp2 = "";
for (int i = 0; i < m; i++) {
if (s1[i] == ' ' || i == m - 1) {
if (i == m - 1) tmp1 = tmp1 + s1[i];
dc[tmp1] += 1;
tmp1 = "";
}
else {
tmp1 = tmp1 + s1[i];
}
}
for (int j = 0; j < n; j++) {
if (s2[j] == ' ' || j == n - 1) {
if (j == n - 1) tmp2 = tmp2 + s2[j];
dc[tmp2] += 1;
tmp2 = "";
}
else {
tmp2 = tmp2 + s2[j];
}
}
unordered_map<string, int>::iterator k;
for (auto k = dc.begin(); k != dc.end(); k++) {
if (k->second == 1) {
ans.push_back(k->first);
}
}
return ans;
}<file_sep>/Playground/GridTraveler.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
int rec_gridTraveler(int m, int n)
{
int a;
if (m == 0 or n == 0) {
return 0;
}
if (m == 1 and n == 1) {
return 1;
}
a = rec_gridTraveler(m - 1, n) + rec_gridTraveler(m , n - 1);
return a;
}
unsigned long long int dp_gridTraveler(int m, int n, map<pair<int,int>,unsigned long long int> &dict)
{
pair<int, int> tmp1 = { m,n };
pair<int, int> tmp2 = { n,m };
if (m == 0 or n == 0) {
return unsigned long long int (0);
}
if (m == 1 and n == 1) {
return unsigned long long int(1);
}
if (dict.find(tmp1) != dict.end() or dict.find(tmp2) != dict.end())
{
return (dict.find(tmp1) != dict.end()) ? dict[tmp1] : dict[tmp2];
}
dict[tmp1] = unsigned long long int(dp_gridTraveler(m - 1, n, dict)) + unsigned long long int(dp_gridTraveler(m, n - 1, dict));
return dict[tmp1];
}
unsigned long long int GridTraveler_tab(int n, int m) {
vector<vector<unsigned long long int>> tab(n + 1, vector<unsigned long long int>(m + 1, 0));
tab[1][1] = 1;
for (int i = 1; i < n + 1; i++) {
for (int j = 1; j < m + 1; j++) {
tab[i][j] += tab[i - 1][j] + tab[i][j - 1];
}
}
return tab[n][m];
}
//int main() {
// map<pair<int, int>, unsigned long long int> dict;
// cout << rec_gridtraveler(3, 2) << endl;
// cout << dp_gridtraveler(18, 18, dict) << endl;
//}<file_sep>/Solutions/AsteroidCollision735.cpp
#include <vector>
#include <iostream>
using namespace std;
vector<int> asteroidCollision(vector<int>& asteroids) {
vector<int> stack;
for (int i = 0; i < asteroids.size(); i++) {
if (i == 0 || stack.size() == 0) {
stack.push_back(asteroids[i]);
continue;
}
if (stack[stack.size() - 1] > 0 && asteroids[i] < 0) {
stack.push_back(asteroids[i]);
for (int j = stack.size() - 2; j >= 0; j--) {
if (stack[j] > 0 && stack[j + 1] < 0) {
if (stack[j] == -stack[j + 1]) {
stack.pop_back();
stack.pop_back();
break;
}
else {
stack[j] = stack[j] > -stack[j + 1] ? stack[j] : stack[j + 1];
}
stack.pop_back();
}
else {
break;
}
}
}
else {
stack.push_back(asteroids[i]);
continue;
}
}
return stack;
}<file_sep>/Playground/canConstruct.cpp
#include <vector>
#include <iostream>
#include <map>
#include <string>
using namespace std;
bool canConstruct(string target, vector<string> bank, map<string, bool> &memo) {
if (memo.find(target) != memo.end()) {
return memo[target];
}
if (target.compare("")==0) {
return true;
}
for (int i = 0; i < bank.size(); i++) {
string word = bank[i];
if (target.find(word) == 0) {
string subtarget = target.substr(word.size());
if (canConstruct(subtarget, bank, memo)) {
memo[target] = true;
return true;
}
}
}
memo[target] = false;
return false;
}
//int main() {
//
//
// map<string, bool> memo1;
// vector<string> vec1 = { "ab","abc","cd","def","abcd" };
// cout << canconstruct("abcdef",vec1 , memo1) << endl;
// map<string, bool> memo2;
// vector<string> vec2 = { "e","ee","eee","eeee","eeeee","eeeeeeeee" };
// cout << canconstruct("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeef", vec2, memo2) << endl;
//
//
//}<file_sep>/Solutions/DetermineifStringClose1657.cpp
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
bool closeStrings(string word1, string word2) {
int len1 = word1.length();
int len2 = word2.length();
if (len1 != len2) return false;
vector<int> a(26, 0);
vector<int> b(26, 0);
for (int i = 0; i < len1; i++) {
a[word1[i] - 'a']++;
b[word2[i] - 'a']++;
}
for (int j = 0; j < 26; j++) {
if (a[j] > 0 && b[j] == 0) return false;
if (b[j] > 0 && a[j] == 0) return false;
}
sort(a.begin(), a.end());
sort(b.begin(), b.end());
for (int k = 0; k < 26; k++) {
if (a[k] != b[k]) return false;
}
return true;
}<file_sep>/Solutions/PredictWinner486.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
map<pair<int, int>, int> m;
int solve(int head, int tail, vector<int>& nums, map<pair<int, int>, int>& m) {
if (head == tail) {
m[{head, tail}] = nums[head];
return nums[head];
}
if (m.find({ head,tail }) != m.end()) {
return m[{head, tail}];
}
int cur = max(nums[head] - solve(head + 1, tail, nums, m), nums[tail] - solve(head, tail - 1, nums, m));
m[{head, tail}] = cur;
return cur;
}
bool PredictTheWinner(vector<int>& nums) {
return solve(0, nums.size() - 1, nums, m) >= 0;
}
//int main() {
// vector<int> nums = { 1,5,233,7 };
// cout << PredictTheWinner(nums) << endl;
//
//}<file_sep>/Solutions/LargestPerimeterTriangle976.cpp
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int largestPerimeter(vector<int>& nums) {
int n = nums.size();
if (n < 3) return 0;
sort(nums.begin(), nums.end());
int ans = 0;
for (int i = 2; i < n; i++) {
if (nums[i] < nums[i - 1] + nums[i - 2])ans = nums[i - 1] + nums[i - 2] + nums[i];
}
return ans;
}<file_sep>/Solutions/MinimumCostTreeFromLeafValues1130.cpp
#include <vector>
#include <iostream>
#include <stack>
using namespace std;
int mctFromLeafValues(vector<int>& arr) {
int n = arr.size();
stack<int> s;
s.push(INT_MAX);
int ans = 0;
for (int i = 0; i < n; i++) {
while (s.top() <= arr[i]) {
int pop = s.top();
s.pop();
ans += pop * min(s.top(), arr[i]);
}
s.push(arr[i]);
}
while (s.size() > 2) {
int pop = s.top();
s.pop();
ans += pop * s.top();
}
return ans;
}<file_sep>/Solutions/DeleteNode237.cpp
#include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode* next;
ListNode(int x) : val(x), next(NULL) {}
};
void deleteNode(ListNode* node) {
if (node == nullptr) return;
node->val = node->next->val;
ListNode* old = node->next;
node->next = old->next;
delete old;
}
<file_sep>/Solutions/BuildArray1420.cpp
#include <iostream>
#include <vector>
using namespace std;
int numOfArrays(int n, int m, int k) {
vector<vector<vector <long long>>> dp(n, vector<vector<long long>>(m + 1, vector<long long>(k + 1, 0)));
// set modulo modifier
long long M = 1e9 + 7;
// dp[i][j][k] the ans of arrs of length n, max of j(appeared) and k updates;
//initial cases when length is 1 and cost is 1, there is only 1 possible way for any max
for (int i = 1; i <= m; i++) {
dp[0][i][1] = 1;
}
for (int i = 1; i < n; i++) {
for (int j = 1; j <= m; j++) {
for (int l = 1; l <= k; l++) {
// the ith element is larger than the first i-1 elements;
for (int p = 1; p <= j - 1; p++) {
dp[i][j][l] += dp[i - 1][p][l - 1] % M;
}
// the ith element is smaller than the max within the first i-1 elements;
dp[i][j][l] += dp[i - 1][j][l] * j % M;
}
}
}
long long ans = 0;
for (int s = 1; s <= m; s++) {
ans += dp[n - 1][s][k] % M;
}
return ans % M;
}<file_sep>/Solutions/MaximumPoints1423.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
int maxScore(vector<int>& arr, int k) {
int n = arr.size();
int j = 0, sum = 0, sublen = 0, minSum = INT_MAX, tot = 0;
for (int i = 0; i < arr.size(); i++) {
tot += arr[i];
sum += arr[i];
sublen++;
if (sublen == n - k) {
minSum = min(minSum, sum);
sum -= arr[j];
j++;
sublen--;
}
}
if (n - k == 0)return tot;
return tot - minSum;
}
<file_sep>/Solutions/ArithmeticSlices413.cpp
#include <iostream>
#include <vector>
using namespace std;
int numberOfArithmeticSlices(vector<int>& nums) {
int len = nums.size();
if (len < 3) return 0;
vector<int> dp(len, 0);
int diff = nums[1] - nums[0];
int pre = 0;
for (int i = 2; i < len; i++) {
if (nums[i] - nums[i - 1] == diff) {
dp[i] = dp[i - 1] + i - pre - 1;
}
else {
dp[i] = dp[i - 1];
pre = i - 1;
diff = nums[i] - nums[i - 1];
}
}
return dp[len - 1];
}<file_sep>/Solutions/TargetSum494.cpp
#include <vector>
#include <iostream>
#include <numeric>
using namespace std;
int findTargetSumWays(vector<int>& nums, int target) {
int sum = accumulate(nums.begin(), nums.end(), 0);
if (sum < target) return 0;
if (nums.size() == 1 and (nums[0] == target || nums[0] == -target)) {
return 1;
}
else if (nums.size() == 1 and nums[0] != target) {
return 0;
}
int m = 2 * sum + 1;
vector<vector<int>> dp(nums.size() + 1, vector<int>(m, 0));
dp[0][sum] = 1;
for (int i = 0; i < nums.size(); i++) {
for (int j = 0; j < m; j++) {
if (dp[i][j] != 0) {
if (nums[i] == 0) {
dp[i + 1][j] = dp[i][j] * 2;
continue;
}
if ((j - nums[i]) >= 0 and (j + nums[i]) < m) {
dp[i + 1][j - nums[i]] += dp[i][j];
dp[i + 1][j + nums[i]] += dp[i][j];
}
if ((j - nums[i]) < 0 and (j + nums[i]) < m) {
dp[i + 1][j + nums[i]] += dp[i][j];
}
if ((j - nums[i]) > 0 and (j + nums[i]) >= m) {
dp[i + 1][j - nums[i]] += dp[i][j];
}
continue;
}
}
}
return dp[nums.size()][target + sum];
}
<file_sep>/WaterBottles1518.cpp
#include <iostream>
using namespace std;
int numWaterBottles(int numBottles, int numExchange) {
int drinked = numBottles;
while (numBottles >= numExchange) {
drinked += numBottles / numExchange;
numBottles = numBottles % numExchange + numBottles / numExchange;
}
return drinked;
}<file_sep>/Driver.cpp
int main() {
cout << fbi(3) << endl;
}<file_sep>/Solutions/PanlidromPartition131.cpp
#include <vector>
#include <iostream>
using namespace std;
bool ifpalidrome(string s) {
if (s.length() == 1) {
return true;
}
bool tmp = true;
for (int i = 0; i <= s.length() / 2; i++) {
tmp = tmp and (s[i] == s[s.length() - i - 1]);
}
return tmp;
}
void solver(string s, vector<vector<string>>& dp, vector<string> cur) {
if (s.length() == 0) {
dp.push_back(cur);
}
for (int i = 0; i < s.length(); i++) {
if (ifpalidrome(s.substr(0, i + 1))) {
cur.push_back(s.substr(0, i + 1));
solver(s.substr(i + 1, s.length()), dp, cur);
cur.pop_back();
}
}
}
vector<vector<string>> partition(string s) {
vector<vector<string>> dp;
vector<string> cur;
solver(s, dp, cur);
return dp;
}<file_sep>/Solutions/canIWin464.cpp
#include <vector>
#include <iostream>
#include <map>
using namespace std;
bool solve2(int state, int desiredTotal, vector<char>& m, int maxChoosableInteger) {
if (desiredTotal <= 0) return false;
if (m[state]) {
return m[state] == 1;
}
for (int i = 0; i < maxChoosableInteger; i++) {
if (state & (1 << i))continue;
if (!solve2(state | (1 << i), desiredTotal - i - 1, m, maxChoosableInteger)) {
return m[state] = 1;
}
}
m[state] = -1;
return false;
}
bool canIWin(int maxChoosableInteger, int desiredTotal) {
if ((1 + maxChoosableInteger) * maxChoosableInteger / 2 < desiredTotal) {
return false;
}
if (desiredTotal <= 0) return true;
vector<char>m(1 << maxChoosableInteger, 0);
return solve2(0, desiredTotal, m, maxChoosableInteger);
}
//int main() {
// cout << canIWin(20, 152) << endl;
//} | 7705a88831df902f47adc5f92758c83f149d2322 | [
"C++"
] | 38 | C++ | Zhaozzy-hub/LeetCode_Problems | ce3a2140ee7ea32c04236bc353b62822eef1ccc4 | 36f3f11ce1d706bedf8ed7bdd1825a48371f1343 |
refs/heads/master | <file_sep>import resolve from 'did-resolver'
import register from '../register'
describe('ethResolver', () => {
register()
describe('resolve', () => {
describe('valid DID docs', () => {
const address = '0xf3beac30c498d9e26865f34fcaa57dbb935b0d74'
const did = `did:eth:${address}`
const didDoc = {
'@context': 'https://w3id.org/did/v1',
id: did,
publicKey: [{
id: `${did}#keys-1`,
type: 'Secp256k1VerificationKey2018',
owner: did,
ethereumAddress: address
}]
}
it('resolves document', async () => {
expect(resolve(did)).resolves.toEqual(didDoc)
})
})
describe('error handling', () => {
it('rejects promise', async () => {
expect(resolve('did:eth:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX')).rejects.toEqual(new Error('Not a valid eth DID: did:eth:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX'))
})
})
})
})
<file_sep># eth DID Resolver
This library is intended to use ethereum addresses as [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/#decentralized-identifiers-dids) and wrap them in a [DID Dcument](https://w3c-ccg.github.io/did-spec/#did-documents)
It supports the proposed [Decentralized Identifiers](https://w3c-ccg.github.io/did-spec/) spec from the [W3C Credentials Community Group](https://w3c-ccg.github.io).
It requires the `did-resolver` library, which is the primary interface for resolving DIDs.
## DID method
To encode a DID for an Ethereum address, simply prepend `did:eth:`
eg:
`did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74`
## DID Document
The did resolver takes the ethereum address and wraps it into a simple DID document:
```js
{
'@context': 'https://w3id.org/did/v1',
id:'did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74',
publicKey: [{
id: `did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74#keys-1`,
type: 'Secp256k1VerificationKey2018',
owner: 'did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74',
ethereumAddress: '0xf3beac30c498d9e26865f34fcaa57dbb935b0d74'
}]
}
```
Note this uses the `Secp256k1VerificationKey2018` type and an `ethereumAddress` instead of a `publicKeyHex`.
## Resolving a DID document
The resolver presents a simple `resolver()` function that returns a ES6 Promise returning the DID document.
```js
import resolve from 'did-resolver'
import registerResolver from 'eth-did-resolver'
registerResolver()
resolve('did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74').then(doc => console.log)
// You can also use ES7 async/await syntax
const doc = await resolve('did:eth:0xf3beac30c498d9e26865f34fcaa57dbb935b0d74')
```
| b93a731b9ce1388fd18bab79171ed23d4f945777 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | invisiblebot98/eth-did-resolver | b4b62de0fc5f2cbec4283a67eaad4fe66ad37cfd | 6304f1b2635ba6d0930f1cd3d103e7e201b487b5 |
refs/heads/master | <repo_name>fuqu-io/laravel-slack<file_sep>/src/ServiceProvider.php
<?php
namespace Maknz\Slack\Laravel;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Maknz\Slack\Client;
class ServiceProvider extends BaseServiceProvider{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot(){
$this->publishes([__DIR__ . '/../config/main.php' => config_path('slack.php')], 'config');
$this->mergeConfigFrom(__DIR__ . '/../config/main.php', 'slack');
}
/**
* Register the service provider.
*
* @return void
*/
public function register(){
$this->app->singleton('SlackAccount', function($app){
return new Client(env('SLACK_HOOK_URL'), config('slack'));
});
}
}
| c466bd2beda5e3ad80ca3143a91cc0c63037e350 | [
"PHP"
] | 1 | PHP | fuqu-io/laravel-slack | 3e2027983483e7e465f0562c77fdf5276dfe2bab | 22f5bb3c0482f13db438241a33fba1051c621790 |
refs/heads/master | <file_sep>from pico2d import *
import game_framework
import game_world
class Brick:
image = None
def __init__(self):
if Brick.image == None:
Brick.image = load_image('brick180x40.png')
self.x, self.y, self.move_speed = 1000, 180, 200
self.dir = 1
def get_bb(self):
return self.x - 90, self.y - 20, self.x + 90, self.y + 20
def draw(self):
self.image.draw(self.x,self.y)
draw_rectangle(*self.get_bb())
def update(self):
self.x += self.move_speed * game_framework.frame_time
if self.x >= 1510:
self.move_speed = -200
if self.x <= 90:
self.move_speed = 200
<file_sep>import game_framework
from pico2d import *
# 1 pixel 1cm
# 새의 크기 (150, 130)pixel = (150, 130) cm
# 새의 속도 20 km/h == 555pps
PIXEL_PER_METER = (10.0 / 0.1)
RUN_SPEED_KMPH = 20.0
RUN_SPEED_MPM = (RUN_SPEED_KMPH * 1000.0 / 60.0)
RUN_SPEED_MPS = (RUN_SPEED_MPM / 60.0)
RUN_SPEED_PPS = (RUN_SPEED_MPS * PIXEL_PER_METER)
# 새의 날개짓 초당 2번
TIME_PER_ACTION = 0.5
ACTION_PER_TIME = 1.0 / TIME_PER_ACTION
FRAMES_PER_ACTION = 14
class Bird:
def __init__(self):
self.x, self.y = 1600 // 2, 300
self.image = load_image('bird_animation.png')
self.font = load_font('ENCR10B.TTF', 16)
self.dir = 1
self.velocity = RUN_SPEED_PPS
self.frame = 0
self.frame_XY = [[0, 2], [1, 2], [2, 2], [3, 2], [4, 2],
[0, 1], [1, 1], [2, 1], [3, 1], [4, 1],
[0, 0], [1, 0], [2, 0], [3, 0]]
def draw(self):
if self.dir == 1:
self.image.clip_draw(self.frame_XY[int(self.frame)][0] * 183,
self.frame_XY[int(self.frame)][1] * 168, 180, 165, self.x, self.y)
elif self.dir == -1:
self.image.clip_composite_draw(self.frame_XY[int(self.frame)][0] * 183,
self.frame_XY[int(self.frame)][1] * 168, 180, 165, 0, 'h', self.x, self.y,
180, 165)
self.font.draw(self.x - 70, self.y + 70, '(Time: %3.2f)' % get_time(), (0, 0, 0))
def update(self):
self.frame = (self.frame + FRAMES_PER_ACTION * ACTION_PER_TIME * game_framework.frame_time) % 14
self.x += self.velocity * game_framework.frame_time
if self.x >= 1510:
self.velocity = -RUN_SPEED_PPS
elif self.x <= 90:
self.velocity = RUN_SPEED_PPS
self.dir = clamp(-1, self.velocity, 1)
<file_sep>import random
import json
import pickle
import os
from pico2d import *
import game_framework
import game_world
import main_state
import world_build_state
name = "RankingState"
ranking_board = []
def enter():
pass
def exit():
game_world.clear()
def pause():
pass
def resume():
pass
def handle_events():
events = get_events()
for event in events:
if event.type == SDL_QUIT:
game_framework.quit()
elif event.type == SDL_KEYDOWN and event.key == SDLK_ESCAPE:
game_framework.change_state(main_state)
def update():
pass
def draw():
pass
<file_sep>from pico2d import*
import random
KPU_WIDTH, KPU_HEIGHT = 1280, 1024
open_canvas(KPU_WIDTH,KPU_HEIGHT)
kpu_ground = load_image('KPU_GROUND.png')
character = load_image('animation_sheet.png')
size = 10
points = [(random.randint(0,500 + KPU_WIDTH//2),random.randint(0,500 + KPU_HEIGHT//2)) for i in range(size)]
def handle_events():
global running
events = get_events()
for event in events:
if event.type == SDL_QUIT:
running = False
elif event.type == SDL_KEYDOWN and event.key == SDLK_ESCAPE:
running = False
def draw_curve(p, size):
frame = 0
for j in range(0, size):
for i in range(0, 100, 2):
clear_canvas()
kpu_ground.draw(KPU_WIDTH // 2, KPU_HEIGHT // 2)
t = i / 100
x = ((-t ** 3 + 2 * t ** 2 - t) * p[j][0] + (3 * t ** 3 - 5 * t ** 2 + 2) * p[(j+1)%size][0] + (
-3 * t ** 3 + 4 * t ** 2 + t) * p[(j+2)%size][0] + (t ** 3 - t ** 2) * p[(j+3)%size][0]) / 2
y = ((-t ** 3 + 2 * t ** 2 - t) * p[j][1] + (3 * t ** 3 - 5 * t ** 2 + 2) * p[(j+1)%size][1] + (
-3 * t ** 3 + 4 * t ** 2 + t) * p[(j+2)%size][1] + (t ** 3 - t ** 2) * p[(j+3)%size][1]) / 2
if p[j][0] < p[(j + 1) % size][0]:
character.clip_draw(frame * 100, 000, 100, 100, x, y)
else:
character.clip_draw(frame * 100, 100, 100, 100, x, y)
frame = (frame + 1) % 8
delay(0.02)
handle_events()
update_canvas()
while True:
draw_curve(points,size)<file_sep># 2014182038-2DGP-Drills
<file_sep>from pico2d import *
KPU_WIDTH, KPU_HEIGHT = 1280, 1024
def handle_events():
global running
global x,y
global mouse_x,mouse_y
global save_x,save_y
global move_ani
events = get_events()
for event in events:
if event.type == SDL_QUIT:
running =False
elif event.type == SDL_MOUSEMOTION:
mouse_x, mouse_y = event.x+20, KPU_HEIGHT - 1 - event.y-10
elif event.type ==SDL_MOUSEBUTTONDOWN and event.button == SDL_BUTTON_LEFT:
save_x,save_y = x,y
x, y = event.x, KPU_HEIGHT - 1 - event.y
move_ani =300
elif event.type ==SDL_KEYDOWN and event.key ==SDLK_ESCAPE:
running =False
open_canvas(KPU_WIDTH,KPU_HEIGHT)
kpu_ground = load_image('KPU_GROUND.png')
character = load_image('animation_sheet.png')
Mouse = load_image('hand_arrow.png')
running = True
x, y = KPU_WIDTH // 2, KPU_HEIGHT // 2
mouse_x, mouse_y =0,0
frame = 0
move_ani=300
save_x,save_y=KPU_WIDTH // 2, KPU_HEIGHT // 2
hide_cursor()
def run():
global x,y
global save_x,save_y
global running
frame=0
count = 0
while count<10:
clear_canvas()
kpu_ground.draw(KPU_WIDTH // 2, KPU_HEIGHT // 2)
Mouse.draw(mouse_x, mouse_y)
divine_x = (-x + save_x) / 10
divine_y = (-y + save_y) / 10
x = x + divine_x
y = y + divine_y
character.clip_draw(frame * 100, 100 * 1, 100, 100, x, y)
update_canvas()
frame = (frame + 1) % 8
move_ani =300
count+=1
if(count == 10):
count=0
running=False
while running:
run()
handle_events()
close_canvas()
| dda667cf8ff48129e6da6c0b5bd13db542f7d0ad | [
"Markdown",
"Python"
] | 6 | Python | gyuhyun-jang/2014182038-2DGP-Drills | 80d87f9969e10a1073c7f3c96bfffbf720eb1ee0 | 87cfb5f729fde067e29c652b70dd4aea778eec0e |
refs/heads/master | <file_sep>package com.methnani.miniprojet.activites;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import com.methnani.miniprojet.R;
import com.methnani.miniprojet.connection.WebClient;
import com.methnani.miniprojet.models.Account;
import com.methnani.miniprojet.models.Consomation;
import com.methnani.miniprojet.models.SubRegime;
import com.methnani.miniprojet.utils.Constant;
import com.methnani.miniprojet.utils.Utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.HashMap;
import cn.pedant.SweetAlert.SweetAlertDialog;
import io.paperdb.Paper;
public class LastLevelActivity extends AppCompatActivity {
private static final String TAG = "LastLevelActivity";
public static final int FAILURE = 0;
public static final int DONE = 1;
String id;
ListView listView;
SweetAlertDialog loading;
ArrayList<Consomation> regemes;
Account account;
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
switch (msg.what){
case FAILURE:
break;
case DONE:
regemes = (ArrayList<Consomation>) msg.obj;
String[] names = new String[regemes.size()];
for (int i =0; i < regemes.size(); i++){
names[i] = regemes.get(i).getCommentaire();
}
/*ArrayAdapter<String> adapter
= new ArrayAdapter<String>(LastLevelActivity.this,android.R.layout.simple_list_item_1,names);
listView.setAdapter(adapter);*/
((TextView) findViewById(R.id.conso)).setText(names[0]);
addComment(null);
break;
}
loading.dismissWithAnimation();
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_last_level);
id = getIntent().getIntExtra(Constant.INTENT_SUB_REGIME_ID, 1) + "";
listView = (ListView) findViewById(R.id.listView);
loading = Utils.showLoading(this);
loading.show();
Thread ws = new Thread(new Runnable() {
@Override
public void run() {
WebClient webClient = new WebClient();
HashMap<String,String> nvps = new HashMap<>();
nvps.put("id", id);
String json = webClient.getBody(Constant.URL_CONSOMATION,nvps);
Log.d(TAG, "Json : " + json);
Message msg = new Message();
if(json == null){
msg.what = FAILURE;
}else{
try {
JSONArray array = new JSONArray(json);
regemes = new ArrayList<>();
for (int i =0; i < array.length();i++){
JSONObject obj = array.getJSONObject(i);
Consomation subRegime = new Consomation();
subRegime.setId(obj.getInt("id"));
subRegime.setCommentaire(obj.getString("commentaire"));
regemes.add(subRegime);
}
msg.obj = regemes;
msg.what = DONE;
} catch (JSONException e) {
e.printStackTrace();
msg.what = FAILURE;
}
handler.sendMessage(msg);
}
}
});
ws.start();
setUpAddComment();
}
private void setUpAddComment() {
account = Paper.book().read(Constant.PAPER_ACCOUNT,null);
final Button btnAddComment = (Button) findViewById(R.id.btn_add);
btnAddComment.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (account == null) {
SweetAlertDialog pDialog = new SweetAlertDialog(LastLevelActivity.this);
pDialog.setTitleText("Please connect");
pDialog.setCancelable(true);
pDialog.show();
} else {
final Dialog dialog = new Dialog(LastLevelActivity.this);
dialog.setContentView(R.layout.dilaog_comment);
final EditText text = (EditText) dialog.findViewById(R.id.editText);
Button btnAdd = (Button) dialog.findViewById(R.id.add);
Button btnCancel = (Button) dialog.findViewById(R.id.cancel);
btnCancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
dialog.dismiss();
}
});
btnAdd.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String comment = text.getText().toString();
addComment(comment);
dialog.dismiss();
}
});
dialog.show();
}
}
});
}
private void addComment(String comment) {
ArrayList<String> comments = Paper.book().read("Paper-" + account.getId() + "-" + id, null);
if(comments == null){
comments = new ArrayList<>();
}
if(comment != null) comments.add(comment);
if(comments.size() != 0){
Paper.book().write("Paper-" + account.getId() + "-" + id, comments);
initList(comments);
}
}
private void initList(ArrayList<String> comments){
listView.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, comments));
}
}
<file_sep>package com.methnani.miniprojet.activites;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.methnani.miniprojet.R;
import com.methnani.miniprojet.adapters.TypeAdapter;
import com.methnani.miniprojet.connection.WebClient;
import com.methnani.miniprojet.models.RegimeType;
import com.methnani.miniprojet.utils.Constant;
import com.methnani.miniprojet.utils.Utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import cn.pedant.SweetAlert.SweetAlertDialog;
public class FirstLevelActivity extends AppCompatActivity implements AdapterView.OnItemClickListener {
private static final String TAG = "FirstLevelActivity";
TypeAdapter adapter;
ListView listView;
SweetAlertDialog loading;
ArrayList<RegimeType> regimes;
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
switch (msg.what){
case 0:
showError("Veuiller verifier vos parametres de connection!");
break;
case 1:
regimes = (ArrayList<RegimeType>) msg.obj;
adapter = new TypeAdapter(FirstLevelActivity.this,regimes);
listView.setAdapter(adapter);
break;
}
loading.dismissWithAnimation();
}
};
private void showError(final String error){
runOnUiThread(new Runnable() {
@Override
public void run() {
new SweetAlertDialog(FirstLevelActivity.this).setContentText(error).setTitleText("Error!").show();
}
});
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_first_level);
listView = (ListView) findViewById(R.id.listView);
listView.setOnItemClickListener(this);
loading = Utils.showLoading(this);
loading.show();
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
Message msg = new Message();
WebClient webClient = new WebClient();
String json = webClient.getBody(Constant.URL_TYPE_REGIMES,null);
Log.d(TAG, "run() called with: " + "json: " + json);
msg.what = 0;
if(json == null){
msg.what = 0;
}else{
try {
ArrayList<RegimeType> regimes = new ArrayList<>();
JSONArray array = new JSONArray(json);
for(int i = 0; i < array.length(); i++){
JSONObject object = array.getJSONObject(i);
RegimeType regime = new RegimeType();
regime.setUrl(object.getString("image"));
regime.setName(object.getString("nom"));
regime.setId(object.getInt("id")+"");
regimes.add(regime);
}
msg.what = 1;
msg.obj = regimes;
} catch (JSONException e) {
e.printStackTrace();
}
}
handler.sendMessage(msg);
}
});
thread.start();
}
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
RegimeType regimeType = regimes.get(i);
Intent intent = new Intent(FirstLevelActivity.this,SecondLevelActivity.class);
intent.putExtra(Constant.INTENT_TYPE_ID,regimeType.getId());
startActivity(intent);
}
}
<file_sep>package com.methnani.miniprojet;
import android.app.Application;
import io.paperdb.Paper;
/**
* Created by <NAME> on 1/31/2016.
*/
public class MiniProjet extends Application{
@Override
public void onCreate() {
super.onCreate();
Paper.init(this);
}
}
<file_sep>package com.methnani.miniprojet.callbacks;
import com.methnani.miniprojet.models.Account;
/**
* Created by <NAME> on 1/31/2016.
*/
public interface LoginCallback {
void onLogin(Account account);
void onFailure(String message);
}
<file_sep>package com.methnani.miniprojet.connection;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* Created by <NAME> on 1/1/2016.
*/
public class WebClient {
private static final int TIMEOUT = 15;
OkHttpClient client;
public String getBody(String url,HashMap<String,String> nvps){
if(nvps != null){
Iterator it = nvps.entrySet().iterator();
String sep = "?";
while (it.hasNext()) {
Map.Entry pair = (Map.Entry)it.next();
try {
url += sep + pair.getKey() + "=" + URLEncoder.encode(
pair.getValue().toString(), "utf-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
sep = "&";
}
}
try {
return run(url);
}catch (IOException exp){
return null;
}
}
private String run(String url) throws IOException {
Request request = new Request.Builder()
.url(url)
.build();
if(client == null){
client = new OkHttpClient();
client.setConnectTimeout(TIMEOUT, TimeUnit.SECONDS);
}
Response response = client.newCall(request).execute();
if(response.isSuccessful()) return response.body().string();
return null;
}
}
<file_sep>package com.methnani.miniprojet.parsers;
import com.methnani.miniprojet.models.Account;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by <NAME> on 1/31/2016.
*/
public class AccountParser {
}
| 2214121aa2b2aea1f347f1139a8d246c1ef15679 | [
"Java"
] | 6 | Java | BoolHak/miniprojet | 204124973488955ef3a2f9c8542f46e12d43f319 | afdc02e103810d955cb535fee0c5e372f81f5e2b |
refs/heads/master | <file_sep>package com.infomaximum.database.domainobject.index;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.domain.ExchangeFolderEditable;
import com.infomaximum.domain.ExchangeFolderReadable;
import com.infomaximum.database.domainobject.ExchangeFolderDataTest;
import org.junit.Assert;
import org.junit.Test;
/**
* Created by kris on 22.04.17.
*/
public class MultiIndexCreateTest extends ExchangeFolderDataTest {
@Test
public void run() throws Exception {
String uuid = "AQMkAGYzOGZhMGRlLTk0ZmQtNGU4Mi05YzMyLWU1YmMyODgAMzA1MzkALgAAA2q7G9o/e25DjV2GPrKtaxsBAOVhxnfq2u5Gj3QIHLYcQRoAAAIBDQAAAA==";
String userEmail = "<EMAIL>";
//Добавляем объект
domainObjectSource.executeTransactional(transaction -> {
ExchangeFolderEditable exchangeFolder = transaction.create(ExchangeFolderEditable.class);
exchangeFolder.setUuid(uuid);
exchangeFolder.setUserEmail(userEmail);
transaction.save(exchangeFolder);
});
//Ищем объект
try (IteratorEntity<ExchangeFolderReadable> i = domainObjectSource.find(ExchangeFolderReadable.class, new HashFilter(ExchangeFolderReadable.FIELD_UUID, uuid)
.appendField(ExchangeFolderReadable.FIELD_USER_EMAIL, userEmail))) {
ExchangeFolderReadable exchangeFolder = i.next();
Assert.assertNotNull(exchangeFolder);
Assert.assertEquals(uuid, exchangeFolder.getUuid());
Assert.assertEquals(userEmail, exchangeFolder.getUserEmail());
}
}
}
<file_sep>package com.infomaximum.database.anotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target(TYPE)
@Retention(RUNTIME)
public @interface Entity {
String namespace();
String name();
Field[] fields();
HashIndex[] hashIndexes() default {};
PrefixIndex[] prefixIndexes() default {};
IntervalIndex[] intervalIndexes() default {};
RangeIndex[] rangeIndexes() default {};
}
<file_sep>package com.infomaximum.rocksdb;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.rocksdb.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class RocksDBLoadOptionsTest extends RocksDataTest {
private Path optionsFilePath;
@Before
@Override
public void init() throws Exception {
super.init();
optionsFilePath = Paths.get(pathDataBase.toString() + ".ini");
optionsFilePath.toFile().deleteOnExit();
}
@After
@Override
public void destroy() throws Exception {
optionsFilePath.toFile().delete();
super.destroy();
}
@Test
public void fromFile() throws Exception {
List<String> content = Arrays.asList(
"[Version]",
"rocksdb_version=5.7.3",
"options_file_version=1.0",
"[DBOptions]",
"max_open_files=5",
"max_total_wal_size=104857600",
"info_log_level=WARN_LEVEL",
"[CFOptions \"default\"]"
);
Files.write(optionsFilePath, content, StandardCharsets.UTF_8);
try (DBOptions options = loadOptionsFromFile(optionsFilePath, false)) {
Assert.assertEquals(options.maxOpenFiles(), 5);
Assert.assertEquals(options.maxTotalWalSize(), 104857600L);
Assert.assertEquals(options.infoLogLevel(), InfoLogLevel.WARN_LEVEL);
}
}
@Test
public void fromFileWithWrongOptions() throws Exception {
List<String> content = Arrays.asList(
"[Version]",
"rocksdb_version=5.7.3",
"options_file_version=1.0",
"[DBOptions]",
"max_open_files=5",
"_unknown_=0",
"info_log_level=WARN_LEVEL",
"[CFOptions \"default\"]"
);
Files.write(optionsFilePath, content, StandardCharsets.UTF_8);
try (DBOptions options = loadOptionsFromFile(optionsFilePath, false)) {
Assert.assertEquals(options.maxOpenFiles(), 5);
Assert.assertEquals(options.infoLogLevel(), InfoLogLevel.WARN_LEVEL);
} catch (RocksDBException e) {
Assert.assertTrue(true);
return;
}
Assert.fail();
}
@Test
public void fromFileWithIgnoreWrongOptions() throws Exception {
List<String> content = Arrays.asList(
"[Version]",
"rocksdb_version=1000.12.3",
"options_file_version=1.0",
"[DBOptions]",
"max_open_files=5",
"_unknown_=0",
"info_log_level=WARN_LEVEL",
"[CFOptions \"default\"]"
);
Files.write(optionsFilePath, content, StandardCharsets.UTF_8);
try (DBOptions options = loadOptionsFromFile(optionsFilePath, true)) {
Assert.assertEquals(options.maxOpenFiles(), 5);
Assert.assertEquals(options.infoLogLevel(), InfoLogLevel.WARN_LEVEL);
}
}
private static DBOptions loadOptionsFromFile(Path optionsFilePath, boolean ignoreUnknownOptions) throws RocksDBException {
List<ColumnFamilyDescriptor> descs = new ArrayList<>();
DBOptions options = new DBOptions();
try {
OptionsUtil.loadOptionsFromFile(optionsFilePath.toString(), Env.getDefault(), options, descs, ignoreUnknownOptions);
} catch (Throwable e) {
try (DBOptions t = options) {}
throw e;
}
return options;
}
}
<file_sep>package com.infomaximum.database;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.DomainObjectSource;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.exception.UnexpectedEndObjectException;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.*;
public class DataCommandTest extends StoreFileDataTest {
//All iterator test
@Test
public void selectAllIterator() throws Exception {
final int insertedRecordCount = 10;
Collection<? extends DomainObject> expected = initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource.select("StoreFile", "com.infomaximum.store")){
List<Record> actual = new ArrayList<>();
while (iterator.hasNext()) {
actual.add(iterator.next());
}
assertContainsExactlyDomainObjects(actual, expected);
}
}
@Test()
public void selectAllIteratorNoneObjects() {
try (RecordIterator iterator = recordSource.select("StoreFile", "com.infomaximum.store")){
Assertions.assertThat(iterator.hasNext()).isFalse();
}
}
@Test
public void checkInnerStructure() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (DBTransaction transaction = rocksDBProvider.beginTransaction()) {
transaction.delete(Schema.getEntity(StoreFileReadable.class).getColumnFamily(), TypeConvert.pack(2L));
transaction.commit();
}
try (RecordIterator iterator = recordSource.select("StoreFile", "com.infomaximum.store")){
Assertions.assertThatThrownBy(() -> {
while (iterator.hasNext()) {
iterator.next();
}
}).isInstanceOf(UnexpectedEndObjectException.class);
}
}
@Test
public void orderingIterate() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource.select("StoreFile", "com.infomaximum.store")){
int iteratedRecordCount = 0;
long prevId = 0;
while (iterator.hasNext()) {
Record storeFile = iterator.next();
if (prevId == storeFile.getId()) Assertions.fail("Fail next object");
if (prevId >= storeFile.getId()) Assertions.fail("Fail sort id to iterators");
prevId = storeFile.getId();
++iteratedRecordCount;
}
Assertions.assertThat(insertedRecordCount).isEqualTo(iteratedRecordCount);
}
}
@Test
public void iterateTransactional() throws Exception {
recordSource.executeTransactional(transaction -> {
// insert
long objId = transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"size"},
new Object[]{10L});
Assertions.assertThat(transaction.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, objId))
.matches(record -> record.getValues()[StoreFileReadable.FIELD_SIZE].equals(10L));
// change
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
objId,
new String[]{"size"},
new Object[]{20L});
try (RecordIterator i = transaction.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE)) {
Assertions.assertThat(i.next().getValues()[StoreFileReadable.FIELD_SIZE]).isEqualTo(20L);
}
});
}
@Test
public void iterateAndChange() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
recordSource.executeTransactional(transaction -> {
try (RecordIterator i = transaction.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE)) {
while (i.hasNext()) {
Record current = i.next();
if (current.getId() == insertedRecordCount) {
break;
}
Record newNext = transaction.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, current.getId() + 1);
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
newNext.getId(),
new String[]{"double", "name"},
new Object[]{Double.POSITIVE_INFINITY, UUID.randomUUID().toString()});
Record next = i.next();
Assertions.assertThat(next.getValues()[StoreFileReadable.FIELD_FILE_NAME]).isEqualTo("name");
Assertions.assertThat(next.getValues()[StoreFileReadable.FIELD_DOUBLE]).isNull();
}
}
});
}
@Test
public void removeAndFind() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
recordSource.executeTransactional(transaction -> {
transaction.deleteRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1);
transaction.deleteRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 5);
Assertions.assertThat(transaction.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1)).isNull();
});
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1)).isNull();
}
//Hash iterator test
@Test
@DisplayName("Проверка HashIndex итератора. Находит ВСЕ StoreFiles объекты по заданному HashIndex для одного поля")
public void selectHashIteratorForAll() throws Exception {
final int insertedRecordCount = 10;
Collection<? extends DomainObject> expected = initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "name"))){
List<Record> actual = new ArrayList<>();
while (iterator.hasNext()) {
actual.add(iterator.next());
}
assertContainsExactlyDomainObjects(actual, expected);
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Находит только один StoreFiles объекты по заданному HashIndex для одного поля")
public void selectHashIteratorOnlyOne() throws Exception {
final int insertedRecordCount = 10;
List<? extends DomainObject> dbData = initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_SIZE, 2L))){
List<Record> actual = new ArrayList<>();
while (iterator.hasNext()) {
actual.add(iterator.next());
}
assertContainsExactlyDomainObjects(actual, dbData.get(2));
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Находит некоторые StoreFiles объекты по заданному HashIndex для двух полей")
public void selectHashIteratorTwoFields() throws Exception {
final int insertedRecordCount = 10;
List<? extends DomainObject> dbData = initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_SIZE, 2L)
.appendField(StoreFileReadable.FIELD_FILE_NAME, "name"))){
List<Record> actual = new ArrayList<>();
while (iterator.hasNext()) {
actual.add(iterator.next());
}
assertContainsExactlyDomainObjects(actual, dbData.get(2));
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Находит ВСЕ StoreFiles объекты по заданному HashIndex для двух полей")
public void selectHashIteratorTwoFieldsAllMatch() throws Exception {
final int insertedRecordCount = 10;
List<? extends DomainObject> expected = initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_SINGLE, true)
.appendField(StoreFileReadable.FIELD_FILE_NAME, "name"))){
List<Record> actual = new ArrayList<>();
while (iterator.hasNext()) {
actual.add(iterator.next());
}
assertContainsExactlyDomainObjects(actual, expected);
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Не находит объекты по заданному HashIndex")
public void selectHashIteratorTwoFieldsNoneMatch() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_SINGLE, false)
.appendField(StoreFileReadable.FIELD_FILE_NAME, "name"))){
Assertions.assertThat(iterator.hasNext()).isFalse();
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Не должен упасть с NPE при отстутствии объектов в бд")
public void selectHashIteratorNoneObjects() {
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_SINGLE, false)
.appendField(StoreFileReadable.FIELD_FILE_NAME, "name"))) {
Assertions.assertThat(iterator.hasNext()).isFalse();
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Не должен упасть с NPE при удалении ключа с id 2 [00 00 00 00 00 00 00 02]")
public void checkInnerStructureHashIterator() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (DBTransaction transaction = rocksDBProvider.beginTransaction()) {
transaction.delete(Schema.getEntity(StoreFileReadable.class).getColumnFamily(), TypeConvert.pack(2L));
transaction.commit();
}
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "name"))) {
while (iterator.hasNext()) {
iterator.next();
}
}
}
@Test
@DisplayName("Проверка HashIndex итератора. Проверка порядка id")
public void orderingIterateHashIndex() throws Exception {
final int insertedRecordCount = 10;
initAndFillStoreFiles(domainObjectSource, insertedRecordCount);
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "name"))){
int iteratedRecordCount = 0;
long prevId = 0;
while (iterator.hasNext()) {
Record storeFile = iterator.next();
if (prevId == storeFile.getId()) Assertions.fail("Fail next object");
if (prevId >= storeFile.getId()) Assertions.fail("Fail sort id to iterators");
prevId = storeFile.getId();
++iteratedRecordCount;
}
Assertions.assertThat(insertedRecordCount).isEqualTo(iteratedRecordCount);
}
}
private List<? extends DomainObject> initAndFillStoreFiles(DomainObjectSource domainObjectSource, int recordCount) throws Exception {
List<StoreFileReadable> result = new ArrayList<>();
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; i++) {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(i);
obj.setFileName("name");
obj.setContentType("type");
obj.setSingle(true);
// obj.setFormat(FormatType.B);
transaction.save(obj);
result.add(obj);
}
});
return result;
}
}
<file_sep>package com.infomaximum.database.utils;
public interface BaseEnum {
int intValue();
}
<file_sep>package com.infomaximum.database.domainobject.engine.index;
import com.infomaximum.database.Record;
import com.infomaximum.database.RecordIterator;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.domain.StoreFileReadable;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
/**
* Created by kris on 22.04.17.
*/
public class MuiltiIndexUpdateTest extends StoreFileDataTest {
@Test
public void run() throws Exception {
//Добавляем объекты
recordSource.executeTransactional(transaction -> {
for (int i=1; i<=10; i++) {
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, new String[]{"name", "size"}, new Object[]{(i%2==0)?"2":"1", 100L});
}
});
//Редактируем 1-й объект
recordSource.executeTransactional(transaction -> transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1L, new String[]{"size"}, new Object[]{99L}));
//Ищем объекты по size
int count=0;
try(RecordIterator i = recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE, new HashFilter(StoreFileReadable.FIELD_SIZE, 100L)
.appendField(StoreFileReadable.FIELD_FILE_NAME, "1"))) {
while(i.hasNext()) {
Record storeFile = i.next();
Assertions.assertThat(storeFile)
.isNotNull()
.matches(record -> record.getValues()[StoreFileReadable.FIELD_SIZE].equals(100L) &&
record.getValues()[StoreFileReadable.FIELD_FILE_NAME].equals("1"));
count++;
}
}
Assertions.assertThat(count).isEqualTo(4);
}
}
<file_sep>package com.infomaximum.database.utils;
import com.infomaximum.database.schema.dbstruct.*;
import com.infomaximum.database.schema.table.*;
import java.util.Arrays;
import java.util.stream.Collectors;
public class TableUtils {
public static Table buildTable(DBTable dbTable, DBSchema schema) {
return new Table(dbTable.getName(),
dbTable.getNamespace(),
dbTable.getSortedFields().stream().map(field -> buildField(field, schema)).collect(Collectors.toList()),
dbTable.getHashIndexes().stream().map(index -> buildIndex(index, dbTable)).collect(Collectors.toList()),
dbTable.getPrefixIndexes().stream().map(index -> buildIndex(index, dbTable)).collect(Collectors.toList()),
dbTable.getIntervalIndexes().stream().map(index -> buildIndex(index, dbTable)).collect(Collectors.toList()),
dbTable.getRangeIndexes().stream().map(index -> buildIndex(index, dbTable)).collect(Collectors.toList())
);
}
public static TField buildField(DBField dbField, DBSchema schema) {
if (dbField.isForeignKey()) {
DBTable foreignTable = schema.getTableById(dbField.getForeignTableId());
return new TField(dbField.getName(), new TableReference(foreignTable.getName(), foreignTable.getNamespace()));
}
return new TField(dbField.getName(), dbField.getType());
}
public static THashIndex buildIndex(DBHashIndex dbIndex, DBTable dbTable) {
return new THashIndex(Arrays
.stream(dbIndex.getFieldIds())
.mapToObj(id -> dbTable.getField(id).getName())
.toArray(String[]::new)
);
}
public static TPrefixIndex buildIndex(DBPrefixIndex dbIndex, DBTable dbTable) {
return new TPrefixIndex(Arrays
.stream(dbIndex.getFieldIds())
.mapToObj(id -> dbTable.getField(id).getName())
.toArray(String[]::new)
);
}
public static TIntervalIndex buildIndex(DBIntervalIndex dbIndex, DBTable dbTable) {
String indexedField = dbTable.getField(dbIndex.getIndexedFieldId()).getName();
String[] hashFields = Arrays
.stream(dbIndex.getHashFieldIds())
.mapToObj(id -> dbTable.getField(id).getName())
.toArray(String[]::new);
return new TIntervalIndex(indexedField, hashFields);
}
public static TRangeIndex buildIndex(DBRangeIndex dbIndex, DBTable dbTable) {
String beginField = dbTable.getField(dbIndex.getBeginFieldId()).getName();
String endField = dbTable.getField(dbIndex.getEndFieldId()).getName();
String[] hashFields = Arrays
.stream(dbIndex.getHashFieldIds())
.mapToObj(id -> dbTable.getField(id).getName())
.toArray(String[]::new);
return new TRangeIndex(beginField, endField, hashFields);
}
public static Object[] sortValuesByFieldOrder(String tableName, String namespace, String[] fields, Object[] values, DBSchema schema) {
DBTable table = schema.getTable(tableName, namespace);
Object[] result = new Object[table.getSortedFields().size()];
for (int i = 0; i < fields.length; i++) {
int fieldId = table.getFieldIndex(fields[i]);
result[fieldId] = values[i];
}
return result;
}
public static Object[] sortValuesByFieldOrder(String tableName, String namespace, String[] fields, Object[] values, Object[] prevValues, DBSchema schema) {
DBTable table = schema.getTable(tableName, namespace);
Object[] result = Arrays.copyOf(prevValues, prevValues.length);
for (int i = 0; i < fields.length; i++) {
int fieldId = table.getFieldIndex(fields[i]);
result[fieldId] = values[i];
}
return result;
}
}
<file_sep>package com.infomaximum.database.domainobject;
import com.infomaximum.domain.ExchangeFolderReadable;
import org.junit.Before;
public abstract class ExchangeFolderDataTest extends DomainDataTest {
@Before
public void init() throws Exception {
super.init();
createDomain(ExchangeFolderReadable.class);
}
}
<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.exception.SequenceAlreadyExistsException;
import com.infomaximum.database.utils.TypeConvert;
import org.rocksdb.ColumnFamilyHandle;
import org.rocksdb.RocksDBException;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicLong;
public class SequenceManager {
public static final String SEQUENCE_PREFIX = "sequence.";
private final RocksDBProvider dbProvider;
private final ColumnFamilyHandle defaultColumnFamily;
private final ConcurrentMap<String, Sequence> sequences = new ConcurrentHashMap<>();
public SequenceManager(RocksDBProvider dbProvider) throws DatabaseException {
this.dbProvider = dbProvider;
this.defaultColumnFamily = dbProvider.getColumnFamilyHandle(RocksDBProvider.DEFAULT_COLUMN_FAMILY);
readSequences();
}
public Sequence getSequence(String name) {
return sequences.get(name);
}
public void createSequence(String name) throws DatabaseException {
if (sequences.containsKey(name)) {
throw new SequenceAlreadyExistsException(name);
}
final KeyValue keyValue = new KeyValue(createSequenceKey(name), TypeConvert.pack(0L));
try {
dbProvider.getRocksDB().put(defaultColumnFamily, keyValue.getKey(), keyValue.getValue());
sequences.put(name, new Sequence(keyValue));
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
public void dropSequence(String name) throws DatabaseException {
try {
dbProvider.getRocksDB().delete(defaultColumnFamily, createSequenceKey(name));
sequences.remove(name);
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
private static byte[] createSequenceKey(String sequenceName) {
return TypeConvert.pack(SEQUENCE_PREFIX + sequenceName);
}
private void readSequences() throws DatabaseException {
try (DBIterator i = dbProvider.createIterator(RocksDBProvider.DEFAULT_COLUMN_FAMILY)) {
final byte[] keyPrefix = TypeConvert.pack(SEQUENCE_PREFIX);
for (KeyValue keyValue = i.seek(new KeyPattern(keyPrefix)); keyValue != null; keyValue = i.next()) {
String sequenceName = TypeConvert.unpackString(keyValue.getKey(), keyPrefix.length, keyValue.getKey().length - keyPrefix.length);
sequences.put(sequenceName, new Sequence(keyValue));
}
}
}
public Map<String, Sequence> getSequences() {
return Collections.unmodifiableMap(sequences);
}
public class Sequence {
private final static int SIZE_CACHE = 10;
private final byte[] key;
private final AtomicLong counter;
private long maxCacheValue;
Sequence(KeyValue keyValue) {
this.key = keyValue.getKey();
this.maxCacheValue = TypeConvert.unpackLong(keyValue.getValue(), 0);
this.counter = new AtomicLong(maxCacheValue);
}
public long next() throws DatabaseException {
long value;
do {
value = counter.get();
if (value >= maxCacheValue) {
//Кеш закончился-берем еще
growCache();
}
} while (!counter.compareAndSet(value, value + 1));
return value + 1;
}
private synchronized void growCache() throws DatabaseException {
if ((maxCacheValue - counter.get()) > SIZE_CACHE) {
return;
}
try {
dbProvider.getRocksDB().put(defaultColumnFamily, key, TypeConvert.pack(maxCacheValue + SIZE_CACHE));
maxCacheValue += SIZE_CACHE;
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
}
}
<file_sep>package com.infomaximum.database;
public class TransactionTest {
}
<file_sep>package com.infomaximum.database.exception;
public class UnexpectedEndObjectException extends DatabaseException {
public UnexpectedEndObjectException(long prevId, long nextId, String fieldName) {
super("Unexpected end of object. Previous id of object: " + prevId + ". Next key: id = " + nextId + ", field = " + fieldName);
}
}
<file_sep>package com.infomaximum.database.exception;
public class InvalidValueException extends DatabaseException{
public InvalidValueException(String message) {
super(message);
}
}
<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.infomaximum.database.domainobject.DataEnumerable;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.IntervalFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.BaseIntervalIndex;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.database.utils.key.IntervalIndexKey;
import java.util.*;
public class IntervalIndexIterator<E extends DomainObject> extends BaseIntervalIndexIterator<E, IntervalFilter> {
public IntervalIndexIterator(DataEnumerable dataEnumerable, Class<E> clazz, Set<Integer> loadingFields, IntervalFilter filter) throws DatabaseException {
super(dataEnumerable, clazz, loadingFields, filter.getSortDirection(), filter);
}
@Override
BaseIntervalIndex getIndex(IntervalFilter filter, StructEntity entity) {
return entity.getIntervalIndex(filter.getHashedValues().keySet(), filter.getIndexedFieldId());
}
@Override
KeyValue seek(DBIterator indexIterator, KeyPattern pattern) throws DatabaseException {
return indexIterator.seek(pattern);
}
@Override
int matchKey(long id, byte[] key) {
long indexedBeginValue = IntervalIndexKey.unpackIndexedValue(key);
if (indexedBeginValue < filterBeginValue || indexedBeginValue > filterEndValue) {
return KeyPattern.MATCH_RESULT_UNSUCCESS;
}
return KeyPattern.MATCH_RESULT_SUCCESS;
}
}
<file_sep>package com.infomaximum.database.schema.dbstruct;
import net.minidev.json.JSONObject;
public abstract class DBObject {
static final String JSON_PROP_ID = "id";
private int id;
DBObject(int id) {
this.id = id;
}
void setId(int id) {
this.id = id;
}
public int getId() {
return id;
}
abstract JSONObject toJson();
}
<file_sep>package com.infomaximum.domain;
import com.infomaximum.database.anotation.*;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.RangeFilter;
@Entity(
namespace = "com.infomaximum.store",
name = "StoreFile",
fields = {
@Field(number = BoundaryReadable.FIELD_LONG_1, name = "long_1", type = Long.class),
@Field(number = BoundaryReadable.FIELD_LONG_2, name = "long_2", type = Long.class),
@Field(number = BoundaryReadable.FIELD_LONG_3, name = "long_3", type = Long.class),
@Field(number = BoundaryReadable.FIELD_STRING_1, name = "string_1", type = String.class),
@Field(number = BoundaryReadable.FIELD_STRING_2, name = "string_2", type = String.class),
@Field(number = BoundaryReadable.FIELD_STRING_3, name = "string_3", type = String.class),
},
hashIndexes = {
@HashIndex(fields = {BoundaryReadable.FIELD_LONG_1}),
@HashIndex(fields = {BoundaryReadable.FIELD_LONG_2}),
@HashIndex(fields = {BoundaryReadable.FIELD_LONG_3})
},
prefixIndexes = {
@PrefixIndex(fields = {BoundaryReadable.FIELD_STRING_1}),
@PrefixIndex(fields = {BoundaryReadable.FIELD_STRING_2}),
@PrefixIndex(fields = {BoundaryReadable.FIELD_STRING_3})
},
intervalIndexes = {
@IntervalIndex(indexedField = BoundaryReadable.FIELD_LONG_1),
@IntervalIndex(indexedField = BoundaryReadable.FIELD_LONG_2),
@IntervalIndex(indexedField = BoundaryReadable.FIELD_LONG_3)
},
rangeIndexes = {
@RangeIndex(beginField = BoundaryReadable.FIELD_LONG_1, endField = BoundaryReadable.FIELD_LONG_2),
@RangeIndex(beginField = BoundaryReadable.FIELD_LONG_2, endField = BoundaryReadable.FIELD_LONG_3)
}
)
public class BoundaryReadable extends DomainObject {
public final static int FIELD_LONG_1=0;
public final static int FIELD_LONG_2=1;
public final static int FIELD_LONG_3=2;
public final static int FIELD_STRING_1=3;
public final static int FIELD_STRING_2=4;
public final static int FIELD_STRING_3=5;
public final static RangeFilter.IndexedField RANGE_LONG_FIELD = new RangeFilter.IndexedField(FIELD_LONG_1, FIELD_LONG_2);
public final static RangeFilter.IndexedField RANGE_LONG_FIELD_2 = new RangeFilter.IndexedField(FIELD_LONG_2, FIELD_LONG_3);
public BoundaryReadable(long id) {
super(id);
}
public Long getLong1() {
return getLong(FIELD_LONG_1);
}
public Long getLong2() {
return getLong(FIELD_LONG_2);
}
public Long getLong3() {
return getLong(FIELD_LONG_3);
}
public String getString1() {
return getString(FIELD_STRING_1);
}
public String getString2() {
return getString(FIELD_STRING_2);
}
public String getString3() {
return getString(FIELD_STRING_3);
}
}
<file_sep>package com.infomaximum.util;
import java.time.Duration;
import java.util.concurrent.TimeUnit;
public class DurationUtils {
public static String toString(Duration duration) {
long durationMillis = duration.toMillis();
long durationMin = TimeUnit.MILLISECONDS.toSeconds(durationMillis) / TimeUnit.MINUTES.toSeconds(1);
long durationSec = durationMillis / TimeUnit.SECONDS.toMillis(1);
long durationMs = durationMillis % TimeUnit.SECONDS.toMillis(1);
if (durationMin != 0) {
durationSec -= (durationMin * TimeUnit.MINUTES.toSeconds(1));
return String.format("%d m %d s %d ms", durationMin, durationSec, durationMs);
} else if (durationSec != 0) {
return String.format("%d s %d ms", durationSec, durationMs);
}
return String.format("%d ms", durationMs);
}
}
<file_sep>package com.infomaximum.database.engine;
import com.infomaximum.database.domainobject.filter.IntervalFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBDataReader;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.dbstruct.DBBaseIntervalIndex;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.utils.key.IntervalIndexKey;
public class IntervalIterator extends BaseIntervalRecordIterator<IntervalFilter> {
public IntervalIterator(DBTable table, IntervalFilter filter, DBDataReader dataReader) {
super(table, filter, filter.getSortDirection(), dataReader);
}
@Override
DBBaseIntervalIndex getIndex(IntervalFilter filter, DBTable table) {
return table.getIndex(filter);
}
@Override
KeyValue seek(DBIterator indexIterator, KeyPattern pattern) throws DatabaseException {
return indexIterator.seek(pattern);
}
@Override
int matchKey(long id, byte[] key) {
long indexedBeginValue = IntervalIndexKey.unpackIndexedValue(key);
if (indexedBeginValue < filterBeginValue || indexedBeginValue > filterEndValue) {
return KeyPattern.MATCH_RESULT_UNSUCCESS;
}
return KeyPattern.MATCH_RESULT_SUCCESS;
}
}
<file_sep>package com.infomaximum.database.maintenance;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.exception.TableNotFoundException;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.domain.ExchangeFolderEditable;
import com.infomaximum.domain.ExchangeFolderReadable;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.database.domainobject.DomainDataTest;
import org.junit.Assert;
import org.junit.Test;
public class SchemaServiceTest extends DomainDataTest {
@Test
public void validateValidScheme() throws DatabaseException {
createDomain(ExchangeFolderReadable.class);
createDomain(StoreFileReadable.class);
new SchemaService(rocksDBProvider)
.setNamespace("com.infomaximum.store")
.setValidationMode(true)
.setSchema(Schema.read(rocksDBProvider))
.execute();
Assert.assertTrue(true);
}
// @Test
// public void validateInvalidScheme() throws DatabaseException {
// try {
// new SchemaService(rocksDBProvider)
// .setNamespace("com.infomaximum.store")
// .setValidationMode(true)
// .setSchema(Schema.read(rocksDBProvider))
// .execute();
// Assert.fail();
// } catch (InconsistentDatabaseException e) {
// Assert.assertTrue(true);
// }
// }
@Test
public void removeInvalidScheme() throws DatabaseException {
new SchemaService(rocksDBProvider)
.setNamespace("com.infomaximum.store")
.setChangeMode(ChangeMode.REMOVAL)
.setValidationMode(false)
.setSchema(Schema.read(rocksDBProvider))
.execute();
}
@Test
public void createAndValidateScheme() throws DatabaseException {
new SchemaService(rocksDBProvider)
.setNamespace("com.infomaximum.store")
.setChangeMode(ChangeMode.CREATION)
.setValidationMode(true)
.setSchema(Schema.read(rocksDBProvider))
.execute();
Assert.assertTrue(true);
}
// @Test
// public void validateUnknownColumnFamily() throws Exception {
// createDomain(ExchangeFolderEditable.class);
// createDomain(StoreFileReadable.class);
//
// rocksDBProvider.createColumnFamily("com.infomaximum.store.new_StoreFile.some_prefix");
//
// try {
// new SchemaService(rocksDBProvider)
// .setNamespace("com.infomaximum.store")
// .setValidationMode(true)
// .setSchema(Schema.read(rocksDBProvider))
// .execute();
// Assert.fail();
// } catch (InconsistentDatabaseException e) {
// Assert.assertTrue(true);
// }
// }
@Test
public void validateWithIgnoringNotOwnedColumnFamily() {
createDomain(ExchangeFolderReadable.class);
createDomain(StoreFileReadable.class);
rocksDBProvider.createColumnFamily("com.new_infomaximum.new_StoreFile.some_prefix");
new SchemaService(rocksDBProvider)
.setNamespace("com.infomaximum.store")
.setValidationMode(true)
.setSchema(Schema.read(rocksDBProvider))
.execute();
Assert.assertTrue(true);
}
@Test
public void validateInaccurateData() {
try {
createDomain(StoreFileEditable.class);
Assert.fail();
} catch (TableNotFoundException ex) {
Assert.assertTrue(true);
}
}
@Test
public void validateCoherentData() throws Exception {
createDomain(ExchangeFolderEditable.class);
createDomain(StoreFileEditable.class);
domainObjectSource.executeTransactional(transaction -> {
ExchangeFolderEditable folder = transaction.create(ExchangeFolderEditable.class);
transaction.save(folder);
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFolderId(folder.getId());
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
transaction.save(obj);
});
new SchemaService(rocksDBProvider)
.setNamespace("com.infomaximum.store")
.setValidationMode(true)
.setSchema(Schema.read(rocksDBProvider))
.execute();
}
}
<file_sep>package com.infomaximum.database.exception;
public class KeyCorruptedException extends RuntimeException {
public KeyCorruptedException(final byte[] key) {
super("Key corrupted, key length is " + key.length);
}
public KeyCorruptedException(String message) {
super(message);
}
}
<file_sep>package com.infomaximum.database.schema.dbstruct;
import com.infomaximum.database.utils.IndexUtils;
import com.infomaximum.database.utils.key.KeyUtils;
import java.util.Arrays;
public abstract class DBIndex extends DBObject {
private static final int FIELDS_HASH_BYTE_SIZE = 4;
private static final int INDEX_NAME_BYTE_SIZE = 3;
public static final int ATTENDANT_BYTE_SIZE = INDEX_NAME_BYTE_SIZE + FIELDS_HASH_BYTE_SIZE;
private final byte[] attendant;
private final int[] fieldIds;
DBIndex(int id, DBField[] fields) {
super(id);
this.fieldIds = Arrays.stream(fields).mapToInt(DBObject::getId).toArray();
this.attendant = new byte[ATTENDANT_BYTE_SIZE];
KeyUtils.putAttendantBytes(this.attendant, getIndexNameBytes(), IndexUtils.buildFieldsHashCRC32(fields));
}
public int[] getFieldIds() {
return fieldIds;
}
public boolean fieldContains(int fieldId) {
return contains(fieldId, getFieldIds());
}
public boolean fieldsEquals(DBIndex index) {
return Arrays.equals(index.fieldIds, fieldIds);
}
public byte[] getAttendant() {
return attendant;
}
private static boolean contains(int value, int[] destination) {
for (int item : destination) {
if (item == value) {
return true;
}
}
return false;
}
static void checkSorting(DBField[] fields) {
if (fields.length < 2) {
return;
}
for (int i = 1; i < fields.length; ++i) {
if (fields[i - 1].getName().compareToIgnoreCase(fields[i].getName()) > 0) {
throw new IllegalArgumentException("wrong sorting");
}
}
}
protected abstract byte[] getIndexNameBytes();
}
<file_sep>package com.infomaximum.domain;
import com.infomaximum.database.domainobject.DomainObjectEditable;
import com.infomaximum.domain.type.FormatType;
import java.time.Instant;
import java.time.LocalDateTime;
public class StoreFileEditable extends StoreFileReadable implements DomainObjectEditable {
public StoreFileEditable(long id) {
super(id);
}
public void setFileName(String fileName) {
set(FIELD_FILE_NAME, fileName);
}
public void setContentType(String contentType) {
set(FIELD_CONTENT_TYPE, contentType);
}
public void setSize(long size) {
set(FIELD_SIZE, size);
}
public void setSingle(Boolean single) {
set(FIELD_SINGLE, single);
}
public void setFormat(FormatType format) {
set(FIELD_FORMAT, format);
}
public void setFolderId(long folderId) {
set(FIELD_FOLDER_ID, folderId);
}
public void setFolderId(Long folderId) {
set(FIELD_FOLDER_ID, folderId);
}
public void setDouble(Double value) {
set(FIELD_DOUBLE, value);
}
public void setBeginTime(Instant value) {
set(FIELD_BEGIN_TIME, value);
}
public void setEndTime(Instant value) {
set(FIELD_END_TIME, value);
}
public void setBegin(Long value) {
set(FIELD_BEGIN, value);
}
public void setEnd(Long value) {
set(FIELD_END, value);
}
public void setLocalBegin(LocalDateTime value) {
set(FIELD_LOCAL_BEGIN, value);
}
public void setLocalEnd(LocalDateTime value) {
set(FIELD_LOCAL_END, value);
}
public void setData(byte[] data) {
set(FIELD_DATA, data);
}
}
<file_sep>rootProject.name = 'rdao'
<file_sep>package com.infomaximum.rocksdb;
import org.apache.commons.io.FileUtils;
import org.apache.commons.math.stat.descriptive.rank.Median;
import org.junit.Assert;
import org.rocksdb.*;
import javax.swing.*;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.file.Files;
import java.nio.file.Path;
import java.security.SecureRandom;
public class RocksPerfomanceTest {
private static class ByteUtils {
private static ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES);
public static byte[] longToBytes(long x) {
buffer.putLong(0, x);
return buffer.array();
}
public static long bytesToLong(byte[] bytes) {
buffer.put(bytes, 0, bytes.length);
buffer.flip();//need flip
return buffer.getLong();
}
}
private static String PROCESS_PID = "-";
static {
try {
String processName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
if (processName != null && processName.length() > 0) {
String[] parse = processName.split("@");
PROCESS_PID = parse[0];
}
} catch (Throwable e) {
throw new RuntimeException(e);
}
}
private static void showMessage(String message) {
JOptionPane optionPane = new JOptionPane(message);
JDialog dialog = optionPane.createDialog("Perfomance test");
dialog.setAlwaysOnTop(true);
dialog.setVisible(true);
}
//@Test
public void writingDataTest() throws RocksDBException, IOException {
Path pathDataBase = Files.createTempDirectory("rocksdb");
pathDataBase.toAbsolutePath().toFile().deleteOnExit();
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString());
final WriteOptions writeOptions = new WriteOptions();
final ReadOptions readOptions = new ReadOptions()) {
System.out.println(PROCESS_PID);
showMessage("Test on starting...");
final long totalSize = 2L * 1024L * 1024L * 1024L;
final long packageSize = 50L * 1024L * 1024L;
final int valueSize = 1024;
final int keySize = 100;
final SecureRandom secureRandom = new SecureRandom();
long totalCommitedSize = 0;
while (totalCommitedSize < totalSize) {
try (final Transaction txn = txnDb.beginTransaction(writeOptions)) {
long commitedSize = 0;
while (commitedSize < packageSize) {
byte[] key = secureRandom.generateSeed(keySize);
byte[] value = secureRandom.generateSeed(valueSize);
txn.put(key, value);
//txnDb.put(key, value);
commitedSize += valueSize;
}
txn.commit();
totalCommitedSize += commitedSize;
}
}
showMessage("Test on stopped.");
}
FileUtils.deleteDirectory(pathDataBase.toAbsolutePath().toFile());
}
//@Test
public void gettingDataTest() throws RocksDBException, IOException {
final int VALUE_SIZE = 512;
final int BEGIN = 1000000;
final int END = 2000000;
final int STEP = 100000;
final int FINDING_COUNT = 10000;
final SecureRandom secureRandom = new SecureRandom();
for (int keyCount = BEGIN; keyCount <= END; keyCount += STEP) {
Path pathDataBase = Files.createTempDirectory("rocksdb");
pathDataBase.toAbsolutePath().toFile().deleteOnExit();
try (final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString())) {
for (long i = 1; i <= keyCount; i++) {
byte[] key = ByteUtils.longToBytes(i);
byte[] value = secureRandom.generateSeed(VALUE_SIZE);
txnDb.put(key, value);
}
int step = keyCount / FINDING_COUNT;
if (step == 0) {
step = 1;
}
int pointCount = keyCount / step;
double[] times = new double[pointCount];
for (int i = 0; i < pointCount; i++) {
byte[] key = ByteUtils.longToBytes(i * step + 1);
long time = System.nanoTime();
byte[] value = txnDb.get(key);
times[i] = System.nanoTime() - time;
Assert.assertNotNull(value);
}
double mediana = (new Median()).evaluate(times);
System.out.println(Long.toString(keyCount) + "\t" + (long) mediana);
}
FileUtils.deleteDirectory(pathDataBase.toAbsolutePath().toFile());
}
}
}
<file_sep>package com.infomaximum.database.utils.key;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.exception.KeyCorruptedException;
import com.infomaximum.database.schema.HashIndex;
import com.infomaximum.database.schema.dbstruct.DBHashIndex;
import com.infomaximum.database.utils.TypeConvert;
import java.nio.ByteBuffer;
import static com.infomaximum.database.schema.BaseIndex.ATTENDANT_BYTE_SIZE;
public class HashIndexKey extends IndexKey {
private final long[] fieldValues;
public HashIndexKey(long id, final HashIndex index) {
this(id, index.attendant, new long[index.sortedFields.size()]);
}
public HashIndexKey(long id, final DBHashIndex index) {
this(id, index.getAttendant(), new long[index.getFieldIds().length]);
}
public HashIndexKey(long id, final byte[] attendant, final long[] fieldValues) {
super(id, attendant);
if (fieldValues == null || fieldValues.length == 0) {
throw new IllegalArgumentException();
}
this.fieldValues = fieldValues;
}
public long[] getFieldValues() {
return fieldValues;
}
public byte[] getAttendant() {
return attendant;
}
@Override
public byte[] pack() {
byte[] buffer = KeyUtils.allocateAndPutIndexAttendant(attendant.length + ID_BYTE_SIZE * fieldValues.length + ID_BYTE_SIZE,
attendant);
int offset = TypeConvert.pack(fieldValues, buffer, attendant.length);
TypeConvert.pack(getId(), buffer, offset);
return buffer;
}
public static HashIndexKey unpack(final byte[] src) {
final int longCount = readLongCount(src);
ByteBuffer buffer = TypeConvert.wrapBuffer(src);
byte[] attendant = new byte[ATTENDANT_BYTE_SIZE];
buffer.get(attendant);
long[] fieldValues = new long[longCount - 1];
for (int i = 0; i < fieldValues.length; ++i) {
fieldValues[i] = buffer.getLong();
}
return new HashIndexKey(buffer.getLong(), attendant, fieldValues);
}
public static long unpackId(final byte[] src) {
return TypeConvert.unpackLong(src, src.length - ID_BYTE_SIZE);
}
public static long unpackFirstIndexedValue(final byte[] src) {
return TypeConvert.unpackLong(src, ATTENDANT_BYTE_SIZE);
}
public static KeyPattern buildKeyPattern(final HashIndex index, final long[] fieldValues) {
byte[] buffer = KeyUtils.allocateAndPutIndexAttendant(index.attendant.length + ID_BYTE_SIZE * fieldValues.length,
index.attendant);
TypeConvert.pack(fieldValues, buffer, index.attendant.length);
return new KeyPattern(buffer);
}
public static KeyPattern buildKeyPattern(final DBHashIndex index, final long[] fieldValues) {
byte[] buffer = KeyUtils.allocateAndPutIndexAttendant(index.getAttendant().length + ID_BYTE_SIZE * fieldValues.length,
index.getAttendant());
TypeConvert.pack(fieldValues, buffer, index.getAttendant().length);
return new KeyPattern(buffer);
}
public static KeyPattern buildKeyPattern(final DBHashIndex index, final long fieldValue) {
byte[] buffer = KeyUtils.allocateAndPutIndexAttendant(index.getAttendant().length + ID_BYTE_SIZE,
index.getAttendant());
TypeConvert.pack(fieldValue, buffer, index.getAttendant().length);
return new KeyPattern(buffer);
}
public static KeyPattern buildKeyPattern(final HashIndex index, final long fieldValue) {
byte[] buffer = KeyUtils.allocateAndPutIndexAttendant(index.attendant.length + ID_BYTE_SIZE,
index.attendant);
TypeConvert.pack(fieldValue, buffer, index.attendant.length);
return new KeyPattern(buffer);
}
public static KeyPattern buildKeyPatternForLastKey(final HashIndex index) {
byte[] buffer = KeyUtils.allocateAndPutIndexAttendant(index.attendant.length + ID_BYTE_SIZE,
index.attendant);
TypeConvert.pack(0xFFFFFFFFFFFFFFFFL, buffer, index.attendant.length);
return new KeyPattern(buffer, index.attendant.length);
}
private static int readLongCount(final byte[] src) {
final int fieldsByteSize = src.length - ATTENDANT_BYTE_SIZE;
final int count = fieldsByteSize / ID_BYTE_SIZE;
final int tail = fieldsByteSize % ID_BYTE_SIZE;
if (count < 2 || tail != 0) {
throw new KeyCorruptedException(src);
}
return count;
}
}
<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.infomaximum.database.domainobject.DataEnumerable;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.RangeFilter;
import com.infomaximum.database.domainobject.filter.SortDirection;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.BaseIntervalIndex;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.database.utils.RangeIndexUtils;
import com.infomaximum.database.utils.key.RangeIndexKey;
import java.util.*;
public class RangeIndexIterator<E extends DomainObject> extends BaseIntervalIndexIterator<E, RangeFilter> {
private Set<Long> processedIds/* = null*/; // не нужно инициализировать, т.к. matchKey вызывается из конструктора базового класса
public RangeIndexIterator(DataEnumerable dataEnumerable, Class<E> clazz, Set<Integer> loadingFields, RangeFilter filter) throws DatabaseException {
super(dataEnumerable, clazz, loadingFields, SortDirection.ASC, filter);
}
@Override
BaseIntervalIndex getIndex(RangeFilter filter, StructEntity entity) {
RangeFilter.IndexedField indexedField = filter.getIndexedField();
return entity.getRangeIndex(filter.getHashedValues().keySet(), indexedField.beginField, indexedField.endField);
}
@Override
KeyValue seek(DBIterator indexIterator, KeyPattern pattern) throws DatabaseException {
return RangeIndexUtils.seek(indexIterator, pattern, filterBeginValue);
}
@Override
int matchKey(long id, byte[] key) {
long indexedValue = RangeIndexKey.unpackIndexedValue(key);
if (indexedValue > filterEndValue) {
return KeyPattern.MATCH_RESULT_UNSUCCESS;
} else if (indexedValue == filterEndValue) {
if (filterBeginValue != filterEndValue) {
return KeyPattern.MATCH_RESULT_UNSUCCESS;
}
return RangeIndexKey.unpackType(key) == RangeIndexKey.Type.DOT ? KeyPattern.MATCH_RESULT_SUCCESS : KeyPattern.MATCH_RESULT_CONTINUE;
}
if (processedIds != null && processedIds.contains(id)) {
if (RangeIndexKey.unpackType(key) == RangeIndexKey.Type.END) {
processedIds.remove(id);
}
return KeyPattern.MATCH_RESULT_CONTINUE;
}
if (RangeIndexKey.unpackType(key) == RangeIndexKey.Type.BEGIN) {
if (processedIds == null) {
processedIds = new HashSet<>();
}
processedIds.add(id);
}
return KeyPattern.MATCH_RESULT_SUCCESS;
}
}
<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.google.common.collect.Range;
import com.google.common.collect.RangeSet;
import com.google.common.collect.TreeRangeSet;
import com.infomaximum.database.domainobject.DataEnumerable;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.Field;
import com.infomaximum.database.schema.PrefixIndex;
import com.infomaximum.database.utils.PrefixIndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.database.utils.key.PrefixIndexKey;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
public class PrefixIndexIterator<E extends DomainObject> extends BaseIndexIterator<E> {
private final PrefixIndex index;
private List<String> searchingWords;
private ByteBuffer loadingIds = null;
private final RangeSet<Long> prevLoadedIds = TreeRangeSet.create();
private String[] values;
private List<String> tempList;
public PrefixIndexIterator(DataEnumerable dataEnumerable, Class<E> clazz, Set<Integer> loadingFields, PrefixFilter filter) throws DatabaseException {
super(dataEnumerable, clazz, loadingFields);
this.index = entity.getPrefixIndex(filter.getFieldNames());
this.searchingWords = PrefixIndexUtils.splitSearchingTextIntoWords(filter.getFieldValue());
if (this.searchingWords.isEmpty()) {
return;
}
KeyPattern indexKeyPattern = PrefixIndexKey.buildKeyPatternForFind(searchingWords.get(searchingWords.size() - 1), index);
List<Field> additionLoadingFields;
if (this.searchingWords.size() > 1) {
additionLoadingFields = index.sortedFields;
} else {
additionLoadingFields = Collections.emptyList();
this.searchingWords = Collections.emptyList();
}
this.dataKeyPattern = buildDataKeyPattern(additionLoadingFields, loadingFields, entity);
if (this.dataKeyPattern != null) {
this.dataIterator = dataEnumerable.createIterator(entity.getColumnFamily());
this.values = new String[index.sortedFields.size()];
this.tempList = new ArrayList<>();
}
this.indexIterator = dataEnumerable.createIterator(index.columnFamily);
KeyValue keyValue = indexIterator.seek(indexKeyPattern);
this.loadingIds = keyValue != null ? TypeConvert.wrapBuffer(keyValue.getValue()) : null;
nextImpl();
}
@Override
void nextImpl() throws DatabaseException {
while (loadingIds != null) {
if (!loadingIds.hasRemaining()) {
KeyValue keyValue = indexIterator.next();
loadingIds = keyValue != null ? TypeConvert.wrapBuffer(keyValue.getValue()) : null;
continue;
}
final long id = loadingIds.getLong();
if (prevLoadedIds.contains(id)) {
continue;
}
nextElement = findObject(id);
if (nextElement != null) {
prevLoadedIds.add(Range.closedOpen(id, id + 1));
return;
}
}
nextElement = null;
close();
}
@Override
boolean checkFilter(E obj) throws DatabaseException {
for (int i = 0; i < index.sortedFields.size(); ++i) {
values[i] = obj.get(index.sortedFields.get(i).getNumber());
}
return PrefixIndexUtils.contains(searchingWords, values, tempList);
}
}
<file_sep>package com.infomaximum.domain.proxy;
import com.infomaximum.database.domainobject.DomainObject;
public class ProxyDomainObject extends DomainObject {
public ProxyDomainObject(long id) {
super(id);
}
}
<file_sep>package com.infomaximum.database;
import com.infomaximum.database.domainobject.filter.*;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBProvider;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.schema.dbstruct.DBSchema;
public class RecordSource {
private final DBProvider dbProvider;
private final DBSchema dbSchema;
@FunctionalInterface
public interface Monad {
/**
* Реализация операции.
* @param transaction Контекст, в котором выполняется операция.
* @throws Exception Если во время выполнения операции возникла ошибка.
*/
void action(final DataCommand transaction) throws Exception;
}
@FunctionalInterface
public interface Function<R> {
/**
* Реализация операции.
* @param transaction Контекст, в котором выполняется операция.
* @throws Exception Если во время выполнения операции возникла ошибка.
*/
R apply(final DataCommand transaction) throws Exception;
}
public RecordSource(DBProvider dbProvider) throws DatabaseException {
this.dbProvider = dbProvider;
this.dbSchema = Schema.read(dbProvider).getDbSchema();
}
public Record getById(String table, String namespace, long id) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).getById(table, namespace, id);
}
public RecordIterator select(String table, String namespace) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).select(table, namespace);
}
public RecordIterator select(String table, String namespace, HashFilter filter) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).select(table, namespace, filter);
}
public RecordIterator select(String table, String namespace, PrefixFilter filter) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).select(table, namespace, filter);
}
public RecordIterator select(String table, String namespace, IntervalFilter filter) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).select(table, namespace, filter);
}
public RecordIterator select(String table, String namespace, RangeFilter filter) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).select(table, namespace, filter);
}
public RecordIterator select(String table, String namespace, IdFilter filter) throws DatabaseException {
return new DataReadCommand(dbProvider, dbSchema).select(table, namespace, filter);
}
public void executeTransactional(final Monad operation) throws Exception {
try (DBTransaction transaction = dbProvider.beginTransaction()) {
operation.action(buildDataCommand(transaction));
transaction.commit();
}
}
public <R> R executeFunctionTransactional(final Function<R> function) throws Exception {
try (DBTransaction transaction = dbProvider.beginTransaction()) {
R result = function.apply(buildDataCommand(transaction));
transaction.commit();
return result;
}
}
private DataCommand buildDataCommand(DBTransaction transaction) {
return new DataCommand(transaction, dbSchema);
}
}
<file_sep>package com.infomaximum.database.domainobject.index;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.exception.IndexNotFoundException;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.domain.type.FormatType;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import org.junit.Assert;
import org.junit.Test;
public class IndexTest extends StoreFileDataTest {
@Test
public void notFoundIndex() {
try {
domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_BEGIN_TIME, null));
Assert.fail();
} catch (IndexNotFoundException ignore) {}
try {
domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_BEGIN_TIME, null).appendField(StoreFileReadable.FIELD_SIZE, null));
Assert.fail();
} catch (IndexNotFoundException ignore) {}
}
@Test
public void findByIndex() throws Exception {
final int recordCount = 100;
domainObjectSource.executeTransactional(transaction -> {
for (long size = 0; size < recordCount; size++) {
StoreFileEditable storeFile = transaction.create(StoreFileEditable.class);
storeFile.setSize(size);
transaction.save(storeFile);
}
});
for (long size = 0; size < recordCount; size++) {
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, size))) {
Assert.assertTrue(i.hasNext());
Assert.assertEquals(size, i.next().getSize());
Assert.assertFalse(i.hasNext());
}
}
}
@Test
public void findByEnumIndex() throws Exception {
final int recordCount = 100;
domainObjectSource.executeTransactional(transaction -> {
for (long size = 0; size < recordCount; size++) {
StoreFileEditable storeFile = transaction.create(StoreFileEditable.class);
storeFile.setFormat(FormatType.A);
transaction.save(storeFile);
storeFile = transaction.create(StoreFileEditable.class);
storeFile.setFormat(FormatType.B);
transaction.save(storeFile);
storeFile = transaction.create(StoreFileEditable.class);
storeFile.setFormat(null);
transaction.save(storeFile);
}
});
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FORMAT, FormatType.A))) {
long id = 1;
int count = 0;
while (i.hasNext()) {
StoreFileReadable obj = i.next();
Assert.assertEquals(id, obj.getId());
Assert.assertEquals(FormatType.A, obj.getFormat());
id += 3;
++count;
}
Assert.assertEquals(recordCount, count);
}
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FORMAT, null))) {
long id = 3;
int count = 0;
while (i.hasNext()) {
StoreFileReadable obj = i.next();
Assert.assertEquals(id, obj.getId());
Assert.assertNull(obj.getFormat());
id += 3;
++count;
}
Assert.assertEquals(recordCount, count);
}
}
@Test
public void findByPartialUpdatedMultiIndex() throws Exception {
final int recordCount = 100;
final String fileName = "file_name";
// insert new objects
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; i++) {
StoreFileEditable storeFile = transaction.create(StoreFileEditable.class);
storeFile.setSize(i);
storeFile.setFileName(fileName);
transaction.save(storeFile);
}
});
// update part of multi-indexed object
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; i++) {
StoreFileEditable storeFile = transaction.get(StoreFileEditable.class, i + 1);
storeFile.setSize(i + 2 * recordCount);
transaction.save(storeFile);
}
});
// find
for (long size = (2 * recordCount); size < (recordCount + 2 * recordCount); size++) {
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, size))) {
Assert.assertTrue(i.hasNext());
Assert.assertEquals(size, i.next().getSize());
Assert.assertFalse(i.hasNext());
}
HashFilter filter = new HashFilter(StoreFileReadable.FIELD_SIZE, size).appendField(StoreFileReadable.FIELD_FILE_NAME, fileName);
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, filter)) {
Assert.assertTrue(i.hasNext());
Assert.assertEquals(size, i.next().getSize());
Assert.assertFalse(i.hasNext());
}
}
}
}
<file_sep>package com.infomaximum.database;
import com.infomaximum.database.exception.DatabaseException;
import java.util.Iterator;
public interface DataIterator<T> extends AutoCloseable, Iterator<T> {
// void reuseReturningRecord(boolean value);
@Override
boolean hasNext() throws DatabaseException;
@Override
T next() throws DatabaseException;
@Override
void close() throws DatabaseException;
}
<file_sep>package com.infomaximum.database.utils.key;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.schema.BaseIntervalIndex;
import com.infomaximum.database.schema.RangeIndex;
import com.infomaximum.database.schema.dbstruct.DBRangeIndex;
import com.infomaximum.database.utils.TypeConvert;
import java.nio.ByteBuffer;
public class RangeIndexKey extends BaseIntervalIndexKey {
public enum Type {
BEGIN, END, DOT
}
private static final byte END_OF_RANGE_VALUE = 0x00;
private static final byte NEGATIVE_VALUE = 0x1F;
private static final byte POSITIVE_VALUE = 0x7F;
private static final byte DOT_VALUE = (byte) 0xEF;
private long beginRangeValue;
private Type type;
public RangeIndexKey(long id, long[] hashedValues, BaseIntervalIndex index) {
super(id, hashedValues, index.attendant);
}
public RangeIndexKey(long id, long[] hashedValues, DBRangeIndex index) {
super(id, hashedValues, index.getAttendant());
}
public void setIndexedValue(long value) {
indexedValue = value;
}
public void setBeginRangeValue(long value) {
beginRangeValue = value;
}
public void setType(Type type) {
this.type = type;
}
@Override
public byte[] pack() {
ByteBuffer buffer = TypeConvert.allocateBuffer(attendant.length + (hashedValues.length + 1) * ID_BYTE_SIZE + 2 * (Long.BYTES + Byte.BYTES));
BaseIntervalIndexKey.fillBuffer(attendant, hashedValues, indexedValue, buffer);
// for segment sorting
putBeginRange(beginRangeValue, type, buffer);
buffer.putLong(getId());
return buffer.array();
}
public static long unpackIndexedValue(byte[] src) {
return TypeConvert.unpackLong(src, src.length - ID_BYTE_SIZE - 2 * Long.BYTES - Byte.BYTES);
}
public static Type unpackType(byte[] src) {
switch (src[src.length - ID_BYTE_SIZE - Long.BYTES - Byte.BYTES]) {
case END_OF_RANGE_VALUE:
return Type.END;
case DOT_VALUE:
return Type.DOT;
default:
return Type.BEGIN;
}
}
public static void setIndexedValue(long indexedValue, byte[] dstKey) {
int offset = dstKey.length - ID_BYTE_SIZE - 2 * Long.BYTES - Byte.BYTES;
dstKey[offset - 1] = BaseIntervalIndexKey.getSignByte(indexedValue);
TypeConvert.pack(indexedValue, dstKey, offset);
}
public static void setType(Type type, byte[] dstKey) {
int beginPos = dstKey.length - ID_BYTE_SIZE - Long.BYTES - Byte.BYTES;
switch (type) {
case BEGIN:
long beginRangeValue = TypeConvert.unpackLong(dstKey, beginPos + 1);
dstKey[beginPos] = beginRangeValue < 0 ? NEGATIVE_VALUE : POSITIVE_VALUE;
break;
case END:
dstKey[beginPos] = END_OF_RANGE_VALUE;
break;
case DOT:
dstKey[beginPos] = DOT_VALUE;
TypeConvert.pack(0, dstKey, beginPos + 1);
break;
}
}
public static KeyPattern buildBeginPattern(long[] hashedValues, long beginRangeValue, RangeIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.attendant.length + ID_BYTE_SIZE * hashedValues.length + (Byte.BYTES + Long.BYTES) * 2);
BaseIntervalIndexKey.fillBuffer(index.attendant, hashedValues, beginRangeValue, buffer);
putBeginRange(beginRangeValue, Type.BEGIN, buffer);
return new KeyPattern(buffer.array(), index.attendant.length + ID_BYTE_SIZE * hashedValues.length);
}
public static KeyPattern buildBeginPattern(long[] hashedValues, long beginRangeValue, DBRangeIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.getAttendant().length + ID_BYTE_SIZE * hashedValues.length + (Byte.BYTES + Long.BYTES) * 2);
BaseIntervalIndexKey.fillBuffer(index.getAttendant(), hashedValues, beginRangeValue, buffer);
putBeginRange(beginRangeValue, Type.BEGIN, buffer);
return new KeyPattern(buffer.array(), index.getAttendant().length + ID_BYTE_SIZE * hashedValues.length);
}
private static void putBeginRange(long beginRangeValue, Type type, ByteBuffer destination) {
switch (type) {
case BEGIN:
destination.put(beginRangeValue < 0 ? NEGATIVE_VALUE : POSITIVE_VALUE);
destination.putLong(beginRangeValue);
break;
case END:
destination.put(END_OF_RANGE_VALUE);
destination.putLong(beginRangeValue);
break;
case DOT:
destination.put(DOT_VALUE);
destination.putLong(0);
break;
}
}
}
<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.domainobject.DomainDataTest;
import com.infomaximum.database.maintenance.ChangeMode;
import com.infomaximum.database.maintenance.SchemaService;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.domain.ExchangeFolderEditable;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.rocksdb.util.PerfomanceTest;
import org.junit.Test;
public class SchemaServiceTest extends DomainDataTest {
@Test
public void validateCoherentData() throws Exception {
createDomain(ExchangeFolderEditable.class);
createDomain(StoreFileEditable.class);
final int recordCount = 100 * 1000;
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; ++i) {
ExchangeFolderEditable folder = transaction.create(ExchangeFolderEditable.class);
transaction.save(folder);
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFolderId(folder.getId());
transaction.save(obj);
}
});
SchemaService schemaService = new SchemaService(rocksDBProvider)
.setNamespace("com.infomaximum.store")
.setChangeMode(ChangeMode.NONE)
.setSchema(Schema.read(rocksDBProvider));
PerfomanceTest.test(10, step -> schemaService.execute());
}
}
<file_sep>package com.infomaximum.database.exception;
public class FieldNotFoundException extends SchemaException {
public FieldNotFoundException(String fieldName, String tableName) {
super("Field name=" + fieldName + " not found into '" + tableName + "'");
}
public FieldNotFoundException(int fieldId, String tableName) {
super("Field id=" + fieldId + " not found into '" + tableName + "'");
}
public FieldNotFoundException(Class<?> clazz, String fieldName) {
super("Field " + fieldName + " not found in " + clazz);
}
}
<file_sep>package com.infomaximum.database.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBDataReader;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.schema.dbstruct.DBTable;
public class AllIterator extends BaseRecordIterator {
private final DBIterator iterator;
private final DBTable table;
private final NextState state;
public AllIterator(DBTable table, DBDataReader dataReader) throws DatabaseException {
this.iterator = dataReader.createIterator(table.getDataColumnFamily());
this.table = table;
state = initializeState();
}
@Override
public boolean hasNext() throws DatabaseException {
return !state.isEmpty();
}
@Override
public Record next() throws DatabaseException {
return nextRecord(table, state, iterator);
}
@Override
public void close() throws DatabaseException {
iterator.close();
}
private NextState initializeState() throws DatabaseException {
return seek(null, iterator);
}
}
<file_sep>package com.infomaximum.database.exception;
import com.infomaximum.database.schema.dbstruct.DBTable;
public class TableAlreadyExistsException extends SchemaException {
public TableAlreadyExistsException(DBTable table) {
super("Table already exists, table=" + table.getName());
}
}
<file_sep>package com.infomaximum.database.exception;
public class SequenceNotFoundException extends DatabaseException {
public SequenceNotFoundException(String name) {
super("Sequence " + name + " not found.");
}
}
<file_sep>package com.infomaximum.database.provider;
import com.infomaximum.database.utils.ByteUtils;
import java.io.Serializable;
public class KeyPattern implements Serializable {
public static final int MATCH_RESULT_SUCCESS = 1;
public static final int MATCH_RESULT_CONTINUE = 0;
public static final int MATCH_RESULT_UNSUCCESS = -1;
public static class Postfix implements Serializable {
private final int startPos;
private final byte[] value;
public Postfix(int startPos, byte[] value) {
this.startPos = startPos;
this.value = value;
}
public boolean match(byte[] key) {
if ((key.length - startPos) != value.length) {
return false;
}
return ByteUtils.endsWith(value, key);
}
}
private byte[] prefix;
private int strictMatchingLen;
private final Postfix[] orPatterns;
private boolean forBackward = false;
public KeyPattern(byte[] prefix, int strictMatchingLen, Postfix[] orPatterns) {
this.prefix = prefix;
this.strictMatchingLen = strictMatchingLen;
this.orPatterns = orPatterns;
}
public KeyPattern(byte[] prefix, Postfix[] orPatterns) {
this(prefix, prefix != null ? prefix.length : 0, orPatterns);
}
public KeyPattern(byte[] prefix, int strictMatchingLen) {
this(prefix, strictMatchingLen, null);
}
public KeyPattern(byte[] prefix) {
this(prefix, null);
}
public KeyPattern(Postfix[] orPatterns) {
this(null, orPatterns);
}
public void setPrefix(byte[] prefix) {
this.prefix = prefix;
if (strictMatchingLen != -1) {
strictMatchingLen = prefix != null ? prefix.length : 0;
}
}
public byte[] getPrefix() {
return prefix;
}
public boolean isForBackward() {
return forBackward;
}
public void setForBackward(boolean forBackward) {
this.forBackward = forBackward;
}
public int match(final byte[] key) {
if (prefix != null) {
if (strictMatchingLen != -1 && !ByteUtils.startsWith(prefix, 0, strictMatchingLen, key)) {
return MATCH_RESULT_UNSUCCESS;
}
}
if (orPatterns == null) {
return MATCH_RESULT_SUCCESS;
}
for (Postfix orPattern : orPatterns) {
if (orPattern.match(key)) {
return MATCH_RESULT_SUCCESS;
}
}
return MATCH_RESULT_CONTINUE;
}
}
<file_sep>package com.infomaximum.database.domainobject.index;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import org.junit.Assert;
import org.junit.Test;
public class IndexUpdateTest extends StoreFileDataTest {
@Test
public void update() throws Exception {
final long oldValue = 100;
//Добавляем объект
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable storeFile = transaction.create(StoreFileEditable.class);
storeFile.setSize(oldValue);
transaction.save(storeFile);
});
//Редактируем объект
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable storeFile = domainObjectSource.get(StoreFileEditable.class, 1L);
storeFile.setSize(99);
transaction.save(storeFile);
});
//Ищем объекты по size
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, oldValue))) {
Assert.assertFalse(i.hasNext());
}
}
@Test
public void partialUpdate1() throws Exception {
final long prevValue = 100;
//Добавляем объекты
domainObjectSource.executeTransactional(transaction -> {
for (int i= 1; i <= 2; i++) {
StoreFileEditable storeFile = transaction.create(StoreFileEditable.class);
storeFile.setSize(prevValue);
transaction.save(storeFile);
}
});
//Редактируем 1-й объект
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable storeFile = domainObjectSource.get(StoreFileEditable.class, 1L);
storeFile.setSize(99);
transaction.save(storeFile);
});
//Ищем объекты по size
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, prevValue))) {
StoreFileReadable storeFile = i.next();
Assert.assertEquals(2L, storeFile.getId());
Assert.assertEquals(prevValue, storeFile.getSize());
Assert.assertFalse(i.hasNext());
}
}
@Test
public void partialUpdate2() throws Exception {
final long value = 100;
//Добавляем объекты
domainObjectSource.executeTransactional(transaction -> {
for (int i = 1; i <= 10; i++) {
StoreFileEditable storeFile = transaction.create(StoreFileEditable.class);
storeFile.setSize(value);
transaction.save(storeFile);
}
});
//Редактируем 1-й объект
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable storeFile = domainObjectSource.get(StoreFileEditable.class, 1L);
storeFile.setSize(99);
transaction.save(storeFile);
});
//Ищем объекты по size
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, value))) {
int count = 0;
while(i.hasNext()) {
StoreFileReadable storeFile = i.next();
Assert.assertTrue(storeFile.getId() != 1);
Assert.assertEquals(value, storeFile.getSize());
count++;
}
Assert.assertEquals(9, count);
}
}
}
<file_sep>package com.infomaximum.database.exception;
import com.infomaximum.database.domainobject.DomainObject;
public class FieldAlreadyExistsException extends SchemaException {
public FieldAlreadyExistsException(String fieldName, String tableName, String namespace) {
super("Field name=" + fieldName + " already exists into '" + namespace + "." + tableName + "'");
}
public FieldAlreadyExistsException(int fieldNumber, Class<? extends DomainObject> objClass) {
super("Field number=" + fieldNumber + " already exists into " + objClass.getSimpleName());
}
}
<file_sep>package com.infomaximum.database.upd;
import com.infomaximum.database.Record;
import java.io.Serializable;
import java.util.List;
public class RecordObject extends Record {
private final List<FieldValue<? extends Serializable>> values;
public RecordObject(long id, List<FieldValue<? extends Serializable>> values) {
super(id, values.stream().map(FieldValue::getValue).toArray());
this.values = values;
values.add(1, new FieldValue<>("dsf", 1));
String s = (String) values.get(1).getValue();
}
public List<FieldValue<?>> getRecordValues() {
return values;
}
}
<file_sep>package com.infomaximum.database.anotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target({})
@Retention(RUNTIME)
public @interface PrefixIndex {
int[] fields();
}
<file_sep>package com.infomaximum.database.domainobject.filter;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class HashFilter implements Filter {
private final Map<Integer, Object> values = new HashMap<>();
public HashFilter(int fieldNumber, Object fieldValue) {
appendField(fieldNumber, fieldValue);
}
public HashFilter appendField(int number, Object value) {
values.put(number, value);
return this;
}
public Map<Integer, Object> getValues() {
return Collections.unmodifiableMap(values);
}
}
<file_sep>package com.infomaximum.database.utils;
import com.infomaximum.database.domainobject.Value;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBDataCommand;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.Field;
import com.infomaximum.database.schema.PrefixIndex;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBPrefixIndex;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.utils.key.FieldKey;
import com.infomaximum.database.utils.key.Key;
import com.infomaximum.database.utils.key.PrefixIndexKey;
import java.io.Serializable;
import java.util.*;
import java.util.function.Function;
public class PrefixIndexUtils {
@FunctionalInterface
public interface Action {
boolean apply(int beginIndex, int endIndex);
}
public static final int PREFERRED_MAX_ID_COUNT_PER_BLOCK = 1024;
private static final Comparator<String> searchingWordComparator = Comparator.comparingInt(String::length);
public static SortedSet<String> buildSortedSet() {
return new TreeSet<>(Comparator.reverseOrder());
}
public static void diffIndexedLexemes(List<Field> fields, Value<Serializable>[] prevValues, Value<Serializable>[] newValues,
Collection<String> outDeletingLexemes, Collection<String> outInsertingLexemes) {
diffIndexedLexemes(fields, prevValues, newValues, outDeletingLexemes, outInsertingLexemes, Field::getNumber);
}
public static void diffIndexedLexemes(int[] fieldIds, Object[] prevValues, Object[] newValues,
Collection<String> outDeletingLexemes, Collection<String> outInsertingLexemes) {
outDeletingLexemes.clear();
outInsertingLexemes.clear();
SortedSet<String> prevLexemes = buildSortedSet();
SortedSet<String> newLexemes = buildSortedSet();
for (int fieldId : fieldIds) {
Object prevValue = prevValues[fieldId];
String prevText = prevValue != null ? (String) prevValue : null;
PrefixIndexUtils.splitIndexingTextIntoLexemes(prevText, prevLexemes);
Object newValue = fieldId < newValues.length ? newValues[fieldId] : prevValue;
if (newValue != null) {
String newText = (String) newValue;
PrefixIndexUtils.splitIndexingTextIntoLexemes(newText, newLexemes);
}
}
for (String newLexeme : newLexemes) {
if (!prevLexemes.contains(newLexeme)) {
outInsertingLexemes.add(newLexeme);
}
}
for (String prevLexeme : prevLexemes) {
if (!newLexemes.contains(prevLexeme)) {
outDeletingLexemes.add(prevLexeme);
}
}
}
public static void getIndexedLexemes(DBField[] fields, Object[] newValues, Collection<String> outInsertingLexemes) {
outInsertingLexemes.clear();
SortedSet<String> newLexemes = buildSortedSet();
for (DBField field : fields) {
Object newValue = field.getId() < newValues.length ? newValues[field.getId()] : null;
String newText = newValue != null ? (String) newValue : null;
PrefixIndexUtils.splitIndexingTextIntoLexemes(newText, newLexemes);
}
outInsertingLexemes.addAll(newLexemes);
}
public static <T> void diffIndexedLexemes(List<T> fields, Value<Serializable>[] prevValues, Value<Serializable>[] newValues,
Collection<String> outDeletingLexemes, Collection<String> outInsertingLexemes,
Function<T, Integer> numberGetter) {
outDeletingLexemes.clear();
outInsertingLexemes.clear();
SortedSet<String> prevLexemes = buildSortedSet();
SortedSet<String> newLexemes = buildSortedSet();
for (T field : fields) {
int number = numberGetter.apply(field);
Value<Serializable> prevValue = prevValues[number];
String prevText = prevValue != null ? (String) prevValue.getValue() : null;
PrefixIndexUtils.splitIndexingTextIntoLexemes(prevText, prevLexemes);
Value<Serializable> newValue = number < newValues.length ? newValues[number] : prevValue;
String newText = newValue != null ? (String) newValue.getValue() : prevText;
PrefixIndexUtils.splitIndexingTextIntoLexemes(newText, newLexemes);
}
for (String newLexeme : newLexemes) {
if (!prevLexemes.contains(newLexeme)) {
outInsertingLexemes.add(newLexeme);
}
}
for (String prevLexeme : prevLexemes) {
if (!newLexemes.contains(prevLexeme)) {
outDeletingLexemes.add(prevLexeme);
}
}
}
public static boolean forEachWord(String text, Action action) {
if (text == null) {
return true;
}
int beginWordPos = -1;
for (int i = 0; i < text.length(); ++i) {
if (Character.isWhitespace(text.charAt(i))) {
if (beginWordPos != -1) {
if (!action.apply(beginWordPos, i)) {
return false;
}
beginWordPos = -1;
}
} else if (beginWordPos == -1) {
beginWordPos = i;
}
}
if (beginWordPos != -1) {
return action.apply(beginWordPos, text.length());
}
return true;
}
/**
* @return sorted list by length of word
*/
public static List<String> splitSearchingTextIntoWords(String text) {
List<String> result = new ArrayList<>();
forEachWord(text,
(beginIndex, endIndex) -> result.add(text.substring(beginIndex, endIndex).toLowerCase()));
result.sort(searchingWordComparator);
return result;
}
public static void splitIndexingTextIntoLexemes(final String text, SortedSet<String> inOutLexemes) {
splitIndexingTextIntoLexemes(text, (Collection<String>) inOutLexemes);
if (inOutLexemes.isEmpty()) {
return;
}
Iterator<String> i = inOutLexemes.iterator();
String target = i.next();
while (i.hasNext()) {
String next = i.next();
if (target.startsWith(next)) {
i.remove();
} else {
target = next;
}
}
}
private static void splitIndexingTextIntoLexemes(final String text, Collection<String> inOutLexemes) {
if (text == null || text.isEmpty()) {
return;
}
forEachWord(text, (beginIndex, endIndex) -> {
splitIntoLexeme(text.substring(beginIndex, endIndex).toLowerCase(), inOutLexemes);
return true;
});
}
private static void splitIntoLexeme(final String word, Collection<String> destination) {
int beginLexemePos = 0;
for (int i = 0; i < word.length(); ++i) {
char c = word.charAt(i);
if (!Character.isAlphabetic(c) && !Character.isDigit(c)) {
if (beginLexemePos != -1) {
destination.add(word.substring(beginLexemePos));
beginLexemePos = -1;
}
} else if (beginLexemePos == -1) {
beginLexemePos = i;
}
}
if (beginLexemePos != -1) {
destination.add(word.substring(beginLexemePos));
}
}
public static byte[] appendId(long id, byte[] ids) {
int pos = binarySearch(id, ids);
if (pos >= 0) {
return ids;
}
pos = - pos - 1;
return TypeConvert.allocateBuffer(ids.length + Key.ID_BYTE_SIZE)
.put(ids, 0, pos)
.putLong(id)
.put(ids, pos, ids.length - pos)
.array();
}
public static byte[] removeId(long id, byte[] ids) {
if (ids == null) {
return null;
}
int pos = binarySearch(id, ids);
if (pos < 0) {
return null;
}
byte[] newIds = new byte[ids.length - Key.ID_BYTE_SIZE];
System.arraycopy(ids, 0, newIds, 0, pos);
System.arraycopy(ids, pos + Key.ID_BYTE_SIZE, newIds, pos, ids.length - pos - Key.ID_BYTE_SIZE);
return newIds;
}
public static int getIdCount(byte[] ids) {
return ids.length / Key.ID_BYTE_SIZE;
}
/**
* @param sortedSearchingWords is sorted list by length of word
*/
public static boolean contains(final List<String> sortedSearchingWords, final String[] indexingTexts, List<String> tempList) {
tempList.clear();
for (String text : indexingTexts) {
splitIndexingTextIntoLexemes(text, tempList);
}
tempList.sort(searchingWordComparator);
if (sortedSearchingWords.size() > tempList.size()){
return false;
}
int matchCount = 0;
for (String word : sortedSearchingWords) {
for (int j = 0; j < tempList.size(); ++j) {
if (tempList.get(j).startsWith(word)) {
tempList.remove(j);
++matchCount;
break;
}
}
}
return matchCount == sortedSearchingWords.size();
}
public static void removeIndexedLexemes(PrefixIndex index, long id, Collection<String> lexemes, DBTransaction transaction) throws DatabaseException {
if (lexemes.isEmpty()) {
return;
}
try (DBIterator iterator = transaction.createIterator(index.columnFamily)) {
for (String lexeme : lexemes) {
KeyValue keyValue = iterator.seek(PrefixIndexKey.buildKeyPatternForEdit(lexeme, index));
while (keyValue != null) {
byte[] newIds = removeId(id, keyValue.getValue());
if (newIds != null) {
if (newIds.length != 0) {
transaction.put(index.columnFamily, keyValue.getKey(), newIds);
} else {
transaction.delete(index.columnFamily, keyValue.getKey());
}
}
keyValue = iterator.next();
}
}
}
}
public static void removeIndexedLexemes(DBPrefixIndex index, long id, Collection<String> lexemes, DBTable table, DBDataCommand dataCommand) throws DatabaseException {
if (lexemes.isEmpty()) {
return;
}
try (DBIterator iterator = dataCommand.createIterator(table.getIndexColumnFamily())) {
for (String lexeme : lexemes) {
KeyValue keyValue = iterator.seek(PrefixIndexKey.buildKeyPatternForEdit(lexeme, index));
while (keyValue != null) {
byte[] newIds = removeId(id, keyValue.getValue());
if (newIds != null) {
if (newIds.length != 0) {
dataCommand.put(table.getIndexColumnFamily(), keyValue.getKey(), newIds);
} else {
dataCommand.delete(table.getIndexColumnFamily(), keyValue.getKey());
}
}
keyValue = iterator.next();
}
}
}
}
public static void insertIndexedLexemes(PrefixIndex index, long id, Collection<String> lexemes, DBTransaction transaction) throws DatabaseException {
if (lexemes.isEmpty()) {
return;
}
try (DBIterator iterator = transaction.createIterator(index.columnFamily)) {
for (String lexeme : lexemes) {
KeyValue keyValue = iterator.seek(PrefixIndexKey.buildKeyPatternForEdit(lexeme, index));
byte[] key;
byte[] idsValue;
if (keyValue != null) {
KeyValue prevKeyValue;
do {
long lastId = TypeConvert.unpackLong(keyValue.getValue(), keyValue.getValue().length - FieldKey.ID_BYTE_SIZE);
if (id < lastId) {
key = keyValue.getKey();
idsValue = appendId(id, keyValue.getValue());
break;
}
prevKeyValue = keyValue;
keyValue = iterator.next();
if (keyValue == null) {
key = prevKeyValue.getKey();
if (getIdCount(prevKeyValue.getValue()) < PREFERRED_MAX_ID_COUNT_PER_BLOCK) {
idsValue = appendId(id, prevKeyValue.getValue());
} else {
PrefixIndexKey.incrementBlockNumber(key);
idsValue = TypeConvert.pack(id);
}
break;
}
} while (true);
} else {
key = new PrefixIndexKey(lexeme, index).pack();
idsValue = TypeConvert.pack(id);
}
transaction.put(index.columnFamily, key, idsValue);
}
}
}
public static void insertIndexedLexemes(DBPrefixIndex index, long id, Collection<String> lexemes, DBTable table, DBDataCommand dataCommand) throws DatabaseException {
if (lexemes.isEmpty()) {
return;
}
try (DBIterator iterator = dataCommand.createIterator(table.getIndexColumnFamily())) {
for (String lexeme : lexemes) {
KeyValue keyValue = iterator.seek(PrefixIndexKey.buildKeyPatternForEdit(lexeme, index));
byte[] key;
byte[] idsValue;
if (keyValue != null) {
KeyValue prevKeyValue;
do {
long lastId = TypeConvert.unpackLong(keyValue.getValue(), keyValue.getValue().length - FieldKey.ID_BYTE_SIZE);
if (id < lastId) {
key = keyValue.getKey();
idsValue = appendId(id, keyValue.getValue());
break;
}
prevKeyValue = keyValue;
keyValue = iterator.next();
if (keyValue == null) {
key = prevKeyValue.getKey();
if (getIdCount(prevKeyValue.getValue()) < PREFERRED_MAX_ID_COUNT_PER_BLOCK) {
idsValue = appendId(id, prevKeyValue.getValue());
} else {
PrefixIndexKey.incrementBlockNumber(key);
idsValue = TypeConvert.pack(id);
}
break;
}
} while (true);
} else {
key = new PrefixIndexKey(lexeme, index).pack();
idsValue = TypeConvert.pack(id);
}
dataCommand.put(table.getIndexColumnFamily(), key, idsValue);
}
}
}
public static void insertIndexedLexemes(DBPrefixIndex index, long id, Collection<String> lexemes, String indexColumnFamily, DBTransaction transaction) throws DatabaseException {
if (lexemes.isEmpty()) {
return;
}
try (DBIterator iterator = transaction.createIterator(indexColumnFamily)) {
for (String lexeme : lexemes) {
KeyValue keyValue = iterator.seek(PrefixIndexKey.buildKeyPatternForEdit(lexeme, index));
byte[] key;
byte[] idsValue;
if (keyValue != null) {
KeyValue prevKeyValue;
do {
long lastId = TypeConvert.unpackLong(keyValue.getValue(), keyValue.getValue().length - FieldKey.ID_BYTE_SIZE);
if (id < lastId) {
key = keyValue.getKey();
idsValue = appendId(id, keyValue.getValue());
break;
}
prevKeyValue = keyValue;
keyValue = iterator.next();
if (keyValue == null) {
key = prevKeyValue.getKey();
if (getIdCount(prevKeyValue.getValue()) < PREFERRED_MAX_ID_COUNT_PER_BLOCK) {
idsValue = appendId(id, prevKeyValue.getValue());
} else {
PrefixIndexKey.incrementBlockNumber(key);
idsValue = TypeConvert.pack(id);
}
break;
}
} while (true);
} else {
key = new PrefixIndexKey(lexeme, index).pack();
idsValue = TypeConvert.pack(id);
}
transaction.put(indexColumnFamily, key, idsValue);
}
}
}
private static int binarySearch(long value, byte[] longs) {
if ((longs.length % Long.BYTES) != 0) {
throw new IllegalArgumentException("Size of longs must be multiple of " + Long.BYTES);
}
int low = 0;
int high = (longs.length / Long.BYTES) - 1;
while (low <= high) {
int mid = (low + high) >>> 1;
long midVal = TypeConvert.unpackLong(longs, mid * Long.BYTES);
if (midVal < value)
low = mid + 1;
else if (midVal > value)
high = mid - 1;
else
return mid * Long.BYTES; // key found
}
return -(low * Long.BYTES + 1); // key not found.
}
}
<file_sep>package com.infomaximum.database.utils.key;
import com.infomaximum.database.exception.KeyCorruptedException;
import com.infomaximum.database.schema.BaseIndex;
public class KeyUtils {
/**
* Заполняет начало байтового массива названием индекса и хэшем индексируемых полей: [index_name][fields_hash]...
*/
public static void putAttendantBytes(byte[] destination, final byte[] indexName, final byte[] fieldsHash) {
if (destination.length < BaseIndex.ATTENDANT_BYTE_SIZE) {
throw new IllegalArgumentException("Attendant size more than buffer size");
}
System.arraycopy(indexName, 0, destination, 0, indexName.length);
System.arraycopy(fieldsHash, 0, destination, indexName.length, fieldsHash.length);
}
static byte[] allocateAndPutIndexAttendant(int size, byte[] attendant) {
if (size < attendant.length) {
throw new IllegalArgumentException("Attendant size more than buffer size");
}
byte[] result = new byte[size];
System.arraycopy(attendant, 0, result, 0, attendant.length);
return result;
}
public static byte[] getIndexAttendant(byte[] src) {
if (src.length < BaseIndex.ATTENDANT_BYTE_SIZE) {
throw new KeyCorruptedException(src);
}
byte[] result = new byte[BaseIndex.ATTENDANT_BYTE_SIZE];
System.arraycopy(src, 0, result, 0, BaseIndex.ATTENDANT_BYTE_SIZE);
return result;
}
}<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.rocksdb.options.columnfamily.ColumnFamilyConfig;
import org.apache.commons.io.FileUtils;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.rocksdb.ColumnFamilyDescriptor;
import org.rocksdb.ColumnFamilyHandle;
import org.rocksdb.RocksDBException;
import org.rocksdb.util.SizeUnit;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
public class ColumnFamilyConfigTest {
protected Path pathDataBase;
@BeforeEach
public void init() throws Exception {
pathDataBase = Files.createTempDirectory("rocksdb");
pathDataBase.toAbsolutePath().toFile().deleteOnExit();
}
@AfterEach
public void destroy() throws Exception {
FileUtils.deleteDirectory(pathDataBase.toAbsolutePath().toFile());
}
@Test
@DisplayName("Тест без указания опций семействам колонок, возвращает значения по умолчанию")
public void emptyConfiguredColumnTest() throws RocksDBException {
final String firstColumnName = "com.infomaximum.subsystem.test";
final String secondColumnName = "com.infomaximum.subsystem.test1";
final String thirdColumnName = "com.infomaximum.subsystem.test2_postfixName";
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder().withPath(pathDataBase).build()) {
rocksDBProvider.createColumnFamily(firstColumnName);
rocksDBProvider.createColumnFamily(secondColumnName);
rocksDBProvider.createColumnFamily(thirdColumnName);
}
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder()
.withPath(pathDataBase)
.build()) {
final ColumnFamilyHandle firstColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(firstColumnName);
final ColumnFamilyDescriptor firstColumnDescriptor = firstColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(firstColumnDescriptor.getName())).isEqualTo(firstColumnName);
Assertions.assertThat(firstColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(64L * SizeUnit.MB);
final ColumnFamilyHandle secondColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(secondColumnName);
final ColumnFamilyDescriptor secondColumnDescriptor = secondColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(secondColumnDescriptor.getName())).isEqualTo(secondColumnName);
Assertions.assertThat(secondColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(64L * SizeUnit.MB);
final ColumnFamilyHandle thirdColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(thirdColumnName);
final ColumnFamilyDescriptor thirdColumnDescriptor = thirdColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(thirdColumnDescriptor.getName())).isEqualTo(thirdColumnName);
Assertions.assertThat(thirdColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(64L * SizeUnit.MB);
}
}
@Test
@DisplayName("Тест указания опций конкретному семейству колонок, для настроенной колонки возвращает установленно значение, для остальных возвращает значения по умолчанию")
public void notCorrectConfiguredColumnTest() throws RocksDBException {
final String firstColumnName = "com.infomaximum.subsystem.test";
final String secondColumnName = "com.infomaximum.subsystem.test1";
final String thirdColumnName = "com.infomaximum.subsystem.test2_postfixName";
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder().withPath(pathDataBase).build()) {
rocksDBProvider.createColumnFamily(firstColumnName);
rocksDBProvider.createColumnFamily(secondColumnName);
rocksDBProvider.createColumnFamily(thirdColumnName);
}
Assertions.assertThatThrownBy(() -> {
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder()
.withPath(pathDataBase)
.withConfigColumnFamilies(
new HashMap<String, ColumnFamilyConfig>() {{
put(null, null);
}})
.build()) {
}
}).isInstanceOf(NullPointerException.class)
.hasMessageContaining("column name pattern cannot be null");
//-------------------------------------------------------------------------------
Assertions.assertThatThrownBy(() -> {
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder()
.withPath(pathDataBase)
.withConfigColumnFamilies(
new HashMap<String, ColumnFamilyConfig>() {{
put("com.infomaximum.subsystem.test", null);
}})
.build()) {
}
}).isInstanceOf(NullPointerException.class)
.hasMessageContaining("column family config cannot be null");
}
@Test
@DisplayName("Тест указания опций конкретному семейству колонок, для настроенной колонки возвращает установленно значение, для остальных возвращает значения по умолчанию")
public void specificNameConfiguredColumnTest() throws RocksDBException {
final String firstColumnName = "com.infomaximum.subsystem.test";
final String secondColumnName = "com.infomaximum.subsystem.test1";
final String thirdColumnName = "com.infomaximum.subsystem.test2_postfixName";
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder().withPath(pathDataBase).build()) {
rocksDBProvider.createColumnFamily(firstColumnName);
rocksDBProvider.createColumnFamily(secondColumnName);
rocksDBProvider.createColumnFamily(thirdColumnName);
}
final long writeBufferSize = 4L * SizeUnit.MB;
Map<String, ColumnFamilyConfig> configuredColumnFamilies = new HashMap<String, ColumnFamilyConfig>() {{
put("^com\\.infomaximum\\.subsystem\\.test$", ColumnFamilyConfig.newBuilder().withWriteBufferSize(writeBufferSize).build());
}};
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder()
.withPath(pathDataBase)
.withConfigColumnFamilies(configuredColumnFamilies)
.build()) {
final ColumnFamilyHandle firstColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(firstColumnName);
final ColumnFamilyDescriptor firstColumnDescriptor = firstColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(firstColumnDescriptor.getName())).isEqualTo(firstColumnName);
Assertions.assertThat(firstColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(writeBufferSize);
final ColumnFamilyHandle secondColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(secondColumnName);
final ColumnFamilyDescriptor secondColumnDescriptor = secondColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(secondColumnDescriptor.getName())).isEqualTo(secondColumnName);
Assertions.assertThat(secondColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(64L * SizeUnit.MB);
final ColumnFamilyHandle thirdColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(thirdColumnName);
final ColumnFamilyDescriptor thirdColumnDescriptor = thirdColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(thirdColumnDescriptor.getName())).isEqualTo(thirdColumnName);
Assertions.assertThat(thirdColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(64L * SizeUnit.MB);
}
}
@Test
@DisplayName("Тест указания опций набору семейств колонок, для настроенных колонки возвращает установленно значение, для остальных возвращает значения по умолчанию")
public void maskedNameConfiguredColumnTest() throws RocksDBException {
final String firstColumnName = "com.infomaximum.subsystem.test";
final String secondColumnName = "com.infomaximum.subsystem.test1";
final String thirdColumnName = "com.infomaximum.subsystem.test2_postfixName";
final String fourthColumnName = "com.infomaximum.subsystem.otherName";
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder().withPath(pathDataBase).build()) {
rocksDBProvider.createColumnFamily(firstColumnName);
rocksDBProvider.createColumnFamily(secondColumnName);
rocksDBProvider.createColumnFamily(thirdColumnName);
rocksDBProvider.createColumnFamily(fourthColumnName);
}
final long writeBufferSize = 4L * SizeUnit.MB;
Map<String, ColumnFamilyConfig> configuredColumnFamilies = new HashMap<String, ColumnFamilyConfig>() {{
put("^com\\.infomaximum\\.subsystem\\.test.*$", ColumnFamilyConfig.newBuilder().withWriteBufferSize(writeBufferSize).build());
}};
try (RocksDBProvider rocksDBProvider = new RocksDataBaseBuilder()
.withPath(pathDataBase)
.withConfigColumnFamilies(configuredColumnFamilies)
.build()) {
final ColumnFamilyHandle firstColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(firstColumnName);
final ColumnFamilyDescriptor firstColumnDescriptor = firstColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(firstColumnDescriptor.getName())).isEqualTo(firstColumnName);
Assertions.assertThat(firstColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(writeBufferSize);
final ColumnFamilyHandle secondColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(secondColumnName);
final ColumnFamilyDescriptor secondColumnDescriptor = secondColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(secondColumnDescriptor.getName())).isEqualTo(secondColumnName);
Assertions.assertThat(secondColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(writeBufferSize);
final ColumnFamilyHandle thirdColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(thirdColumnName);
final ColumnFamilyDescriptor thirdColumnDescriptor = thirdColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(thirdColumnDescriptor.getName())).isEqualTo(thirdColumnName);
Assertions.assertThat(thirdColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(writeBufferSize);
final ColumnFamilyHandle fourthColumnFamilyHandle = rocksDBProvider.getColumnFamilyHandle(fourthColumnName);
final ColumnFamilyDescriptor fourthColumnDescriptor = fourthColumnFamilyHandle.getDescriptor();
Assertions.assertThat(TypeConvert.unpackString(fourthColumnDescriptor.getName())).isEqualTo(fourthColumnName);
Assertions.assertThat(fourthColumnDescriptor.getOptions().writeBufferSize()).isEqualTo(64L * SizeUnit.MB);
}
}
}
<file_sep>package com.infomaximum.database.schema.dbstruct;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.domainobject.filter.IntervalFilter;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.domainobject.filter.RangeFilter;
import com.infomaximum.database.exception.FieldNotFoundException;
import com.infomaximum.database.exception.IndexNotFoundException;
import com.infomaximum.database.exception.SchemaException;
import com.infomaximum.database.schema.StructEntity;
import net.minidev.json.JSONObject;
import java.io.Serializable;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
public class DBTable extends DBObject {
private static final String JSON_PROP_NAME = "name";
private static final String JSON_PROP_NAMESPACE = "namespace";
private static final String JSON_PROP_FIELDS = "fields";
private static final String JSON_PROP_HASH_INDEXES = "hash_indexes";
private static final String JSON_PROP_PREFIX_INDEXES = "prefix_indexes";
private static final String JSON_PROP_INTERVAL_INDEXES = "interval_indexes";
private static final String JSON_PROP_RANGE_INDEXES = "range_indexes";
private final String dataColumnFamily;
private final String indexColumnFamily;
private String name;
private final String namespace;
private final List<DBField> sortedFields;
private final List<DBHashIndex> hashIndexes;
private final List<DBPrefixIndex> prefixIndexes;
private final List<DBIntervalIndex> intervalIndexes;
private final List<DBRangeIndex> rangeIndexes;
private final Map<String, DBField> fieldNameFieldMap;
private DBTable(int id, String name, String namespace, List<DBField> sortedFields,
List<DBHashIndex> hashIndexes, List<DBPrefixIndex> prefixIndexes,
List<DBIntervalIndex> intervalIndexes, List<DBRangeIndex> rangeIndexes) {
super(id);
this.dataColumnFamily = namespace + StructEntity.NAMESPACE_SEPARATOR + name;
this.indexColumnFamily = namespace + StructEntity.NAMESPACE_SEPARATOR + name + ".index";
this.name = name;
this.namespace = namespace;
this.sortedFields = sortedFields;
this.hashIndexes = hashIndexes;
this.prefixIndexes = prefixIndexes;
this.intervalIndexes = intervalIndexes;
this.rangeIndexes = rangeIndexes;
this.fieldNameFieldMap = sortedFields.stream().collect(Collectors.toMap(DBField::getName, dbField -> dbField));
}
DBTable(int id, String name, String namespace, List<DBField> sortedFields) {
this(id, name, namespace, sortedFields, new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>());
}
public String getDataColumnFamily() {
return dataColumnFamily;
}
public String getIndexColumnFamily() {
return indexColumnFamily;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNamespace() {
return namespace;
}
public void dropField(int id) {
fieldNameFieldMap.remove(sortedFields.get(id).getName());
for (int i = id + 1; i < sortedFields.size(); i++) {
DBField field = sortedFields.get(i);
field.setId(field.getId() - 1);
}
sortedFields.remove(id);
decrementIndexFieldIdsAfterId(id);
}
public void dropIndex(DBHashIndex index) {
dropIndex(index, hashIndexes);
}
public void dropIndex(DBPrefixIndex index) {
dropIndex(index, prefixIndexes);
}
public void dropIndex(DBIntervalIndex index) {
dropIndex(index, intervalIndexes);
}
public void dropIndex(DBRangeIndex index) {
dropIndex(index, rangeIndexes);
}
public List<DBField> getSortedFields() {
return Collections.unmodifiableList(sortedFields);
}
public DBField newField(String name, Class<? extends Serializable> type, Integer foreignTableId) {
DBField field = new DBField(DBSchema.nextId(sortedFields), name, type, foreignTableId);
sortedFields.add(field);
fieldNameFieldMap.put(field.getName(), field);
return field;
}
public DBField insertNewField(int fieldId, String name, Class<? extends Serializable> type, Integer foreignTableId) {
DBField newField = new DBField(fieldId, name, type, foreignTableId);
fieldNameFieldMap.remove(sortedFields.get(fieldId).getName());
fieldNameFieldMap.put(name, newField);
sortedFields.add(fieldId, newField);
for (int i = fieldId + 1; i < sortedFields.size(); i++) {
DBField field = sortedFields.get(i);
field.setId(field.getId() + 1);
}
incrementIndexFieldIdsAfterId(fieldId);
return newField;
}
public int findFieldIndex(String fieldName) {
DBField field = fieldNameFieldMap.get(fieldName);
return field != null ? field.getId() : -1;
}
public boolean containField(String fieldName) throws SchemaException {
return findFieldIndex(fieldName) != -1;
}
public int getFieldIndex(String fieldName) throws SchemaException {
int i = findFieldIndex(fieldName);
if (i == -1) {
throw new FieldNotFoundException(fieldName, getName());
}
return i;
}
public DBField getField(String fieldName) throws SchemaException {
return sortedFields.get(getFieldIndex(fieldName));
}
public DBField getField(int id) throws SchemaException {
if (id >= sortedFields.size()) {
throw new FieldNotFoundException(id, getName());
}
return sortedFields.get(id);
}
public DBField[] getFields(int[] ids) throws SchemaException {
DBField[] fields = new DBField[ids.length];
for (int i = 0; i < ids.length; i++) {
fields[i] = sortedFields.get(ids[i]);
}
return fields;
}
public List<DBHashIndex> getHashIndexes() {
return hashIndexes;
}
public List<DBPrefixIndex> getPrefixIndexes() {
return prefixIndexes;
}
public List<DBIntervalIndex> getIntervalIndexes() {
return intervalIndexes;
}
public List<DBRangeIndex> getRangeIndexes() {
return rangeIndexes;
}
public Stream<? extends DBIndex> getIndexesStream() {
return Stream.concat(Stream.concat(Stream.concat(
hashIndexes.stream(),
prefixIndexes.stream()),
intervalIndexes.stream()),
rangeIndexes.stream());
}
public void attachIndex(DBHashIndex index) {
attachIndex(index, hashIndexes);
}
public void attachIndex(DBPrefixIndex index) {
attachIndex(index, prefixIndexes);
}
public void attachIndex(DBIntervalIndex index) {
attachIndex(index, intervalIndexes);
}
public void attachIndex(DBRangeIndex index) {
attachIndex(index, rangeIndexes);
}
public DBHashIndex getIndex(HashFilter filter) {
Set<Integer> indexedFieldIds = filter.getValues().keySet();
return hashIndexes.stream()
.filter(index -> index.getFieldIds().length == indexedFieldIds.size()
&& Arrays.stream(index.getFieldIds()).allMatch(indexedFieldIds::contains))
.findAny()
.orElseThrow(() -> new IndexNotFoundException(indexedFieldIds, this));
}
public DBPrefixIndex getIndex(PrefixFilter filter) {
Set<Integer> indexedFieldIds = filter.getFieldNames();
return prefixIndexes.stream()
.filter(index -> index.getFieldIds().length == indexedFieldIds.size()
&& Arrays.stream(index.getFieldIds()).allMatch(indexedFieldIds::contains))
.findAny()
.orElseThrow(() -> new IndexNotFoundException(indexedFieldIds, this));
}
public DBIntervalIndex getIndex(IntervalFilter filter) {
Set<Integer> indexedFieldIds = filter.getHashedValues().keySet();
return intervalIndexes.stream()
.filter(index -> index.getFieldIds().length == indexedFieldIds.size() + 1
&& index.getIndexedFieldId() == filter.getIndexedFieldId()
&& Arrays.stream(index.getHashFieldIds()).allMatch(indexedFieldIds::contains))
.findAny()
.orElseThrow(() -> {
indexedFieldIds.add(filter.getIndexedFieldId());
return new IndexNotFoundException(indexedFieldIds, this);
});
}
public DBRangeIndex getIndex(RangeFilter filter) {RangeFilter.IndexedField indexedField = filter.getIndexedField();
Set<Integer> indexedFieldIds = filter.getHashedValues().keySet();
return rangeIndexes.stream()
.filter(index -> index.getFieldIds().length == indexedFieldIds.size() + 2
&& index.getBeginFieldId() == indexedField.beginField && index.getEndFieldId() == indexedField.endField
&& Arrays.stream(index.getHashFieldIds()).allMatch(indexedFieldIds::contains))
.findAny()
.orElseThrow(() -> {
indexedFieldIds.add(indexedField.beginField);
indexedFieldIds.add(indexedField.endField);
return new IndexNotFoundException(indexedFieldIds, this);
});
}
void checkIntegrity() throws SchemaException {
DBSchema.checkUniqueId(sortedFields);
DBSchema.checkUniqueId(getIndexesStream().collect(Collectors.toList()));
checkFieldsOrder();
Set<Integer> indexingFieldIds = new HashSet<>(sortedFields.size());
for (DBHashIndex i : hashIndexes) {
IntStream.of(i.getFieldIds()).forEach(indexingFieldIds::add);
}
for (DBPrefixIndex i : prefixIndexes) {
IntStream.of(i.getFieldIds()).forEach(indexingFieldIds::add);
}
for (DBIntervalIndex i : intervalIndexes) {
indexingFieldIds.add(i.getIndexedFieldId());
IntStream.of(i.getHashFieldIds()).forEach(indexingFieldIds::add);
}
for (DBRangeIndex i : rangeIndexes) {
indexingFieldIds.add(i.getBeginFieldId());
indexingFieldIds.add(i.getEndFieldId());
IntStream.of(i.getHashFieldIds()).forEach(indexingFieldIds::add);
}
Set<Integer> existingFieldIds = sortedFields.stream().map(DBObject::getId).collect(Collectors.toSet());
indexingFieldIds.stream()
.filter(fieldId -> !existingFieldIds.contains(fieldId))
.findFirst()
.ifPresent(fieldId -> {
throw new SchemaException("Field id=" + fieldId + " not found into '" + getName() + "'");
});
}
private <T extends DBIndex> void attachIndex(T index, List<T> destination) {
index.setId(DBSchema.nextId(getIndexesStream()));
destination.add(index);
}
private void checkFieldsOrder() {
int id = 0;
for (DBField sortedField : sortedFields) {
if (sortedField.getId() != id) {
throw new SchemaException("Table " + namespace + "." + name + " has inconsistent fields order: " + sortedFields.stream()
.map(DBObject::getId)
.collect(Collectors.toList()));
}
id++;
}
}
private <T extends DBIndex> void dropIndex(T index, List<T> indexes) {
for (int i = 0; i < indexes.size(); i++) {
if (index.fieldsEquals(indexes.get(i))) {
indexes.remove(i);
return;
}
}
}
static DBTable fromJson(JSONObject source) throws SchemaException {
List<DBField> fields = JsonUtils.toList(JSON_PROP_FIELDS, source, DBField::fromJson);
return new DBTable(
JsonUtils.getValue(JSON_PROP_ID, Integer.class, source),
JsonUtils.getValue(JSON_PROP_NAME, String.class, source),
JsonUtils.getValue(JSON_PROP_NAMESPACE, String.class, source),
fields,
JsonUtils.toList(JSON_PROP_HASH_INDEXES, source, s -> DBHashIndex.fromJson(s, fields)),
JsonUtils.toList(JSON_PROP_PREFIX_INDEXES, source, s -> DBPrefixIndex.fromJson(s, fields)),
JsonUtils.toList(JSON_PROP_INTERVAL_INDEXES, source, s -> DBIntervalIndex.fromJson(s, fields)),
JsonUtils.toList(JSON_PROP_RANGE_INDEXES, source, s -> DBRangeIndex.fromJson(s, fields))
);
}
@Override
JSONObject toJson() {
JSONObject object = new JSONObject();
object.put(JSON_PROP_ID, getId());
object.put(JSON_PROP_NAME, name);
object.put(JSON_PROP_NAMESPACE, namespace);
object.put(JSON_PROP_FIELDS, JsonUtils.toJsonArray(sortedFields));
object.put(JSON_PROP_HASH_INDEXES, JsonUtils.toJsonArray(hashIndexes));
object.put(JSON_PROP_PREFIX_INDEXES, JsonUtils.toJsonArray(prefixIndexes));
object.put(JSON_PROP_INTERVAL_INDEXES, JsonUtils.toJsonArray(intervalIndexes));
object.put(JSON_PROP_RANGE_INDEXES, JsonUtils.toJsonArray(rangeIndexes));
return object;
}
private void decrementIndexFieldIdsAfterId(int id) {
for (int i = 0; i < hashIndexes.size(); i++) {
DBHashIndex index = hashIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId > id)) {
DBField[] fields = Arrays.stream(index.getFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId > id ? fieldId - 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBHashIndex newHashIndex = new DBHashIndex(index.getId(), fields);
hashIndexes.set(i, newHashIndex);
}
}
for (int i = 0; i < prefixIndexes.size(); i++) {
DBPrefixIndex index = prefixIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId > id)) {
DBField[] fields = Arrays.stream(index.getFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId > id ? fieldId - 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBPrefixIndex newIndex = new DBPrefixIndex(index.getId(), fields);
prefixIndexes.set(i, newIndex);
}
}
for (int i = 0; i < intervalIndexes.size(); i++) {
DBIntervalIndex index = intervalIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId > id)) {
int realIndexedFieldId = index.getIndexedFieldId() > id ? index.getIndexedFieldId() - 1 : index.getIndexedFieldId();
DBField indexedField = sortedFields.get(realIndexedFieldId);
DBField[] hashedFieldIds = Arrays.stream(index.getHashFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId > id ? fieldId - 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBIntervalIndex newIndex = new DBIntervalIndex(index.getId(), indexedField, hashedFieldIds);
intervalIndexes.set(i, newIndex);
}
}
for (int i = 0; i < rangeIndexes.size(); i++) {
DBRangeIndex index = rangeIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId > id)) {
int realBeginFieldId = index.getBeginFieldId() > id ? index.getBeginFieldId() - 1 : index.getBeginFieldId();
int realEndFieldId = index.getEndFieldId() > id ? index.getEndFieldId() - 1 : index.getEndFieldId();
DBField beginField = sortedFields.get(realBeginFieldId);
DBField endField = sortedFields.get(realEndFieldId);
DBField[] hashedFieldIds = Arrays.stream(index.getHashFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId > id ? fieldId - 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBRangeIndex newIndex = new DBRangeIndex(index.getId(), beginField, endField, hashedFieldIds);
rangeIndexes.set(i, newIndex);
}
}
}
private void incrementIndexFieldIdsAfterId(int id) {
for (int i = 0; i < hashIndexes.size(); i++) {
DBHashIndex index = hashIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId >= id)) {
DBField[] fields = Arrays.stream(index.getFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId >= id ? fieldId + 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBHashIndex newHashIndex = new DBHashIndex(index.getId(), fields);
hashIndexes.set(i, newHashIndex);
}
}
for (int i = 0; i < prefixIndexes.size(); i++) {
DBPrefixIndex index = prefixIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId >= id)) {
DBField[] fields = Arrays.stream(index.getFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId >= id ? fieldId + 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBPrefixIndex newIndex = new DBPrefixIndex(index.getId(), fields);
prefixIndexes.set(i, newIndex);
}
}
for (int i = 0; i < intervalIndexes.size(); i++) {
DBIntervalIndex index = intervalIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId >= id)) {
int realIndexedFieldId = index.getIndexedFieldId() > id ? index.getIndexedFieldId() + 1 : index.getIndexedFieldId();
DBField indexedField = sortedFields.get(realIndexedFieldId);
DBField[] hashedFieldIds = Arrays.stream(index.getHashFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId >= id ? fieldId + 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBIntervalIndex newIndex = new DBIntervalIndex(index.getId(), indexedField, hashedFieldIds);
intervalIndexes.set(i, newIndex);
}
}
for (int i = 0; i < rangeIndexes.size(); i++) {
DBRangeIndex index = rangeIndexes.get(i);
if (Arrays.stream(index.getFieldIds()).anyMatch(fieldId -> fieldId >= id)) {
int realBeginFieldId = index.getBeginFieldId() > id ? index.getBeginFieldId() + 1 : index.getBeginFieldId();
int realEndFieldId = index.getEndFieldId() > id ? index.getEndFieldId() + 1 : index.getEndFieldId();
DBField beginField = sortedFields.get(realBeginFieldId);
DBField endField = sortedFields.get(realEndFieldId);
DBField[] hashedFieldIds = Arrays.stream(index.getHashFieldIds()).mapToObj(fieldId -> {
int realFieldId = fieldId >= id ? fieldId + 1 : fieldId;
return sortedFields.get(realFieldId);
}).toArray(DBField[]::new);
DBRangeIndex newIndex = new DBRangeIndex(index.getId(), beginField, endField, hashedFieldIds);
rangeIndexes.set(i, newIndex);
}
}
}
}
<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.DomainObjectSource;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.Transaction;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.utils.HashIndexUtils;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.domain.type.FormatType;
import org.junit.Assert;
import org.junit.Test;
import java.lang.reflect.Field;
import java.time.LocalDateTime;
import java.util.*;
public class HashIndexIteratorTest extends StoreFileDataTest {
@Test
public void ignoreCaseFind() throws Exception {
final long sizeExpected = 10;
final String nameExpected = "привет всем";
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName("привет всем");
obj.setSize(sizeExpected);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("привет");
obj.setSize(sizeExpected);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("ПРИВЕТ ВСЕМ");
obj.setSize(sizeExpected);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("всем");
obj.setSize(sizeExpected);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("прИВет всЕм");
obj.setSize(sizeExpected);
transaction.save(obj);
});
Set<Integer> loadingFields = new HashSet<>(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_SIZE));
HashFilter filter = new HashFilter(StoreFileReadable.FIELD_SIZE, sizeExpected).appendField(StoreFileReadable.FIELD_FILE_NAME, nameExpected);
try (IteratorEntity<StoreFileReadable> iterator = domainObjectSource.find(StoreFileReadable.class, filter, loadingFields)) {
int iteratedRecordCount = 0;
while (iterator.hasNext()) {
StoreFileReadable storeFile = iterator.next();
Assert.assertTrue(storeFile.getFileName().equalsIgnoreCase(nameExpected));
++iteratedRecordCount;
}
Assert.assertEquals(3, iteratedRecordCount);
}
}
@Test
public void loadTwoFields() throws Exception {
initAndFillStoreFiles(domainObjectSource, 100);
Set<Integer> loadingFields = new HashSet<>(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_SIZE));
HashFilter filter = new HashFilter(StoreFileReadable.FIELD_SIZE, 9L);
try (IteratorEntity<StoreFileReadable> iterator = domainObjectSource.find(StoreFileReadable.class, filter, loadingFields)) {
int iteratedRecordCount = 0;
while (iterator.hasNext()) {
StoreFileReadable storeFile = iterator.next();
checkLoadedState(storeFile, loadingFields);
++iteratedRecordCount;
}
Assert.assertEquals(10, iteratedRecordCount);
}
}
@Test
public void loadNullableTwoFields() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < 10; i++) {
transaction.save(transaction.create(StoreFileEditable.class));
}
});
Field fieldValuesField = DomainObject.class.getDeclaredField("loadedFieldValues");
fieldValuesField.setAccessible(true);
Set<Integer> loadingFields = new HashSet<>(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_SIZE));
HashFilter filter = new HashFilter(StoreFileReadable.FIELD_SIZE, null);
try (IteratorEntity<StoreFileReadable> iterator = domainObjectSource.find(StoreFileReadable.class, filter, loadingFields)) {
int iteratedRecordCount = 0;
while (iterator.hasNext()) {
StoreFileReadable storeFile = iterator.next();
Assert.assertNull(storeFile.get(StoreFileReadable.FIELD_SIZE));
checkLoadedState(storeFile, loadingFields);
++iteratedRecordCount;
}
Assert.assertEquals(10, iteratedRecordCount);
}
}
@Test
public void loadZeroFields() throws Exception {
initAndFillStoreFiles(domainObjectSource, 100);
Set<Integer> loadingFields = Collections.emptySet();
HashFilter filter = new HashFilter(StoreFileReadable.FIELD_SIZE, 9L);
try (IteratorEntity<StoreFileReadable> iterator = domainObjectSource.find(StoreFileReadable.class, filter, loadingFields)) {
int iteratedRecordCount = 0;
while (iterator.hasNext()) {
StoreFileReadable storeFile = iterator.next();
checkLoadedState(storeFile, loadingFields);
++iteratedRecordCount;
}
Assert.assertEquals(10, iteratedRecordCount);
}
}
@Test
public void findTransactional() {
try (Transaction transaction = domainObjectSource.buildTransaction()) {
// insert
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(10);
transaction.save(obj);
Assert.assertEquals(10L, transaction.get(StoreFileReadable.class, obj.getId()).getSize());
// change
obj.setSize(20);
transaction.save(obj);
HashFilter filter = new HashFilter(StoreFileReadable.FIELD_SIZE, 20L);
try (IteratorEntity<StoreFileReadable> i = transaction.find(StoreFileReadable.class, filter)) {
Assert.assertTrue(i.hasNext());
}
transaction.commit();
}
}
@Test
public void findBySingleField() throws Exception {
final String nameExpected = "привет всем";
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName("привет всем");
obj.setSize(20);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("привет");
obj.setSize(30);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("ПРИВЕТ ВСЕМ");
obj.setSize(40);
transaction.save(obj);
});
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, 50L))) {
Assert.assertFalse(i.hasNext());
}
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, 30L))) {
int count = 0;
while (i.hasNext()) {
i.next();
++count;
}
Assert.assertEquals(1, count);
}
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "unknown"))) {
Assert.assertFalse(i.hasNext());
}
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, nameExpected), Collections.emptySet())) {
Assert.assertTrue(i.hasNext());
}
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, nameExpected))) {
int count = 0;
while (i.hasNext()) {
i.next();
++count;
}
Assert.assertEquals(2, count);
}
}
@Test
public void testCollision() throws Exception {
final int storedCount = 5;
final String nameCol1 = "http://ccwf/login.aspx?login=auto&crid=20560116";
final String nameCol2 = "http://ccwf/login.aspx?login=auto&crid=20517268";
Assert.assertEquals("Hash of names must be equals",
HashIndexUtils.buildHash(String.class, nameCol2, null), HashIndexUtils.buildHash(String.class, nameCol1, null));
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < storedCount; ++i) {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName(nameCol1);
transaction.save(obj);
}
});
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, nameCol2))) {
Assert.assertFalse(i.hasNext());
}
try (IteratorEntity<StoreFileReadable> i = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, nameCol1))) {
int count = 0;
while (i.hasNext()) {
i.next();
++count;
}
Assert.assertEquals(storedCount, count);
}
}
@Test
public void iterateAndChange() throws Exception {
final long value = 20;
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName("привет всем");
obj.setSize(value);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("привет");
obj.setSize(value);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setFileName("ПРИВЕТ ВСЕМ");
obj.setSize(40);
obj.setLocalBegin(LocalDateTime.of(2018, 10, 22, 18, 32));
transaction.save(obj);
});
try (Transaction transaction = domainObjectSource.buildTransaction()) {
try (IteratorEntity<StoreFileReadable> i = transaction.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, value))) {
List<Long> ids = new ArrayList<>();
while (i.hasNext()) {
StoreFileEditable s = transaction.get(StoreFileEditable.class, 3);
s.setSize(value);
transaction.save(s);
StoreFileReadable item = i.next();
Assert.assertEquals(value, item.getSize());
ids.add(item.getId());
}
Assert.assertEquals(Arrays.asList(1L, 2L), ids);
}
Assert.assertNotNull(transaction.find(
StoreFileReadable.class,
new HashFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, LocalDateTime.of(2018, 10, 22, 18, 32))
));
}
}
@Test
public void removeAndFind() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(1);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(20);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(1);
transaction.save(obj);
});
domainObjectSource.executeTransactional(transaction -> {
transaction.remove(transaction.get(StoreFileEditable.class, 1));
transaction.remove(transaction.get(StoreFileEditable.class, 2));
testFind(transaction, new HashFilter(StoreFileReadable.FIELD_SIZE, 20L));
testFind(transaction, new HashFilter(StoreFileReadable.FIELD_SIZE, 1L), 3);
});
testFind(domainObjectSource, new HashFilter(StoreFileReadable.FIELD_SIZE, 20L));
testFind(domainObjectSource, new HashFilter(StoreFileReadable.FIELD_SIZE, 1L), 3);
StoreFileEditable[] newObj = {null};
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(1);
transaction.save(obj);
try (IteratorEntity<StoreFileEditable> i = transaction.find(StoreFileEditable.class, new HashFilter(StoreFileEditable.FIELD_SIZE, 1L))) {
transaction.remove(i.next());
}
obj = transaction.create(StoreFileEditable.class);
obj.setSize(2);
transaction.save(obj);
newObj[0] = obj;
});
assertFind(domainObjectSource, new HashFilter(StoreFileReadable.FIELD_SIZE, 2L), newObj[0].getId());
}
private void initAndFillStoreFiles(DomainObjectSource domainObjectSource, int recordCount) throws Exception {
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; i++) {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(i % 10);
obj.setFileName("name");
obj.setContentType("type");
obj.setSingle(true);
obj.setFormat(FormatType.B);
transaction.save(obj);
}
});
}
}
<file_sep>package com.infomaximum.database.domainobject.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.RecordIterator;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.domainobject.filter.IntervalFilter;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.exception.ForeignDependencyException;
import com.infomaximum.database.maintenance.ChangeMode;
import com.infomaximum.database.maintenance.DomainService;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.domain.*;
import org.assertj.core.api.Assertions;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
public class TransactionTest extends StoreFileDataTest {
@Test
public void optimisticTransactionLazyTest() throws Exception {
String fileName = "aaa.txt";
long size = 15L;
recordSource.executeTransactional(transaction -> {
long id = transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"name", "size"}, new Object[] {fileName, size});
try (RecordIterator ie = transaction.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE)) {
Record storeFile = ie.next();
Assert.assertEquals(fileName, storeFile.getValues()[StoreFileReadable.FIELD_FILE_NAME]);
Assert.assertEquals(size, storeFile.getValues()[StoreFileReadable.FIELD_SIZE]);
}
});
}
@Test
public void create() throws Exception {
//Проверяем, что такого объекта нет в базе
Assert.assertNull(domainObjectSource.get(StoreFileReadable.class, 1L));
String fileName="application/json";
String contentType="info.json";
long size=1000L;
recordSource.executeTransactional(transaction -> transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"name", "size", "type"}, new Object[] {fileName, size, contentType}));
//Загружаем сохраненый объект
Record storeFileCheckSave = recordSource.executeFunctionTransactional(transaction -> transaction.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1));
Assertions.assertThat(storeFileCheckSave).isNotNull();
Assertions.assertThat(fileName).isEqualTo(storeFileCheckSave.getValues()[StoreFileReadable.FIELD_FILE_NAME]);
Assertions.assertThat(contentType).isEqualTo(storeFileCheckSave.getValues()[StoreFileReadable.FIELD_CONTENT_TYPE]);
Assertions.assertThat(size).isEqualTo(storeFileCheckSave.getValues()[StoreFileReadable.FIELD_SIZE]);
}
@Test
public void update() throws Exception {
recordSource.executeTransactional(transaction -> transaction.insertRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE,
new String[]{}, new Object[]{}));
long recordId = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{}, new Object[]{}));
Record obj = recordSource.executeFunctionTransactional(transaction -> transaction.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1));
Assertions.assertThat(obj).isNotNull();
Assertions.assertThat(obj.getValues()).containsOnlyNulls();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new IntervalFilter(StoreFileReadable.FIELD_DOUBLE, 0d, 1d)).hasNext()).isTrue();
//Добавляем объект
recordSource.executeFunctionTransactional(transaction -> transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
recordId,
new String[]{"name", "folder_id", "single", "data", "double"},
new Object[]{"test", 1L, false, new byte[]{1,2}, 0.1}));
//Загружаем сохраненый объект
obj = recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
Assertions.assertThat(obj).isNotNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_FILE_NAME]).isEqualTo("test");
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_FOLDER_ID]).isEqualTo(1L);
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_SINGLE]).isEqualTo(false);
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_DATA]).isEqualTo(new byte[]{1,2});
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_DOUBLE]).isEqualTo(0.1);
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "test")).hasNext()).isTrue();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "test").appendField(StoreFileReadable.FIELD_SINGLE, false)).hasNext()).isTrue();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new IntervalFilter(StoreFileReadable.FIELD_DOUBLE, 0d, 1d)).hasNext()).isTrue();
//Редактируем сохраненный объект
recordSource.executeTransactional(transaction -> transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
recordId,
new String[]{"name", "folder_id", "single", "data", "double"},
new Object[]{null, null, null, null, null}));
obj = recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
Assertions.assertThat(obj).isNotNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_FILE_NAME]).isNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_FOLDER_ID]).isNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_SINGLE]).isNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_DATA]).isNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_DOUBLE]).isNull();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "test")).hasNext()).isFalse();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, null)).hasNext()).isTrue();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "test").appendField(StoreFileReadable.FIELD_SINGLE, false)).hasNext()).isFalse();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, null).appendField(StoreFileReadable.FIELD_SINGLE, null)).hasNext()).isTrue();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, null).appendField(StoreFileReadable.FIELD_SIZE, null)).hasNext()).isTrue();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME, "test")).hasNext()).isFalse();
Assertions.assertThat(recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new IntervalFilter(StoreFileReadable.FIELD_DOUBLE, 0d, 1d)).hasNext()).isTrue();
//Повторно редактируем сохраненный объект
recordSource.executeTransactional(transaction -> transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
recordId,
new String[]{"name", "data"},
new Object[]{"", new byte[] {TypeConvert.NULL_BYTE_ARRAY_SCHIELD, 1, 2}}));
obj = recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
Assertions.assertThat(obj).isNotNull();
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_FILE_NAME]).isEqualTo("");
Assertions.assertThat(obj.getValues()[StoreFileReadable.FIELD_DATA]).isEqualTo(new byte[] {TypeConvert.NULL_BYTE_ARRAY_SCHIELD, 1, 2});
}
@Test
public void updateByNonExistenceObject() {
Assertions.assertThatThrownBy(() ->
recordSource.executeTransactional(transaction -> transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[] {256L}))).isInstanceOf(ForeignDependencyException.class);
}
@Test
public void updateValueStringEmptyThenNull() throws Exception {
final String emptyFileName = "";
final String contentType = "info.json";
//Добавляем объект
long recordId = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"type", "name"}, new Object[]{contentType, emptyFileName}));
//Загружаем сохраненый объект
Record storeFileCheckSave = recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
Assertions.assertThat(storeFileCheckSave.getValues()[StoreFileReadable.FIELD_FILE_NAME]).isEqualTo(emptyFileName);
Assertions.assertThat(storeFileCheckSave.getValues()[StoreFileReadable.FIELD_CONTENT_TYPE]).isEqualTo(contentType);
//Редактируем сохраненый объект
recordSource.executeFunctionTransactional(transaction ->
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
recordId,
new String[]{"type"}, new Object[]{null}));
//Загружаем сохраненый объект
Record storeFileCheckEdit = recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
Assertions.assertThat(storeFileCheckEdit.getValues()[StoreFileReadable.FIELD_FILE_NAME]).isEqualTo(emptyFileName);
Assertions.assertThat(storeFileCheckEdit.getValues()[StoreFileReadable.FIELD_CONTENT_TYPE]).isNull();
}
@Test
public void saveEmptyDomainObject() throws Exception {
final String emptyFileName = "";
final String contentType = "info.json";
//Добавляем объект
long recordId = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"type", "name"}, new Object[]{contentType, emptyFileName}));
//Загружаем сохраненый объект и сразу без редактирования полей вызываем сохранение
recordSource.executeTransactional(transaction -> {
Record record = transaction.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
record);
});
}
@Test
public void removeOneObject() throws Exception {
//Добавляем объект
long recordId1 = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{}, new Object[]{}));
long recordId2 = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{}, new Object[]{}));
long recordId3 = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{}, new Object[]{}));
//Проверяем что файлы сохранены
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId1)).isNotNull();
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId2)).isNotNull();
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId3)).isNotNull();
//Удаляем 2-й объект
recordSource.executeTransactional(transaction -> transaction.deleteRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId2));
//Проверяем, корректность удаления
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId1)).isNotNull();
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId2)).isNull();
Assertions.assertThat(recordSource.getById(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId3)).isNotNull();
}
@Test
public void removeReferencedObject() throws Exception {
long folderId = recordSource.executeFunctionTransactional(transaction -> transaction.insertRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE,
new String[]{}, new Object[]{}));
long recordId = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{folderId}));
Assertions.assertThatThrownBy(() -> recordSource
.executeTransactional(transaction -> transaction.deleteRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE, folderId)))
.isInstanceOf(ForeignDependencyException.class);
recordSource
.executeTransactional(transaction -> {
transaction.deleteRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, recordId);
transaction.deleteRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE, folderId);
});
}
@Test
public void removeAll() throws Exception {
recordSource.executeTransactional(transaction -> {
long folderId = transaction.insertRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE, new String[]{}, new Object[]{});
long folderId2 = transaction.insertRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE, new String[]{}, new Object[]{});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{null});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{null});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{null});
});
recordSource.executeTransactional(transaction -> transaction.clearTable(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE));
Assertions.assertThat(recordSource.select(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE).hasNext()).isFalse();
new DomainService(domainObjectSource.getDbProvider(), schema)
.setChangeMode(ChangeMode.NONE)
.setValidationMode(true)
.setDomain(Schema.getEntity(ExchangeFolderEditable.class))
.execute();
recordSource.executeTransactional(transaction -> {
long folderId = transaction.insertRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE, new String[]{}, new Object[]{});
long folderId2 = transaction.insertRecord(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE, new String[]{}, new Object[]{});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{null});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{folderId2});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{folderId2});
transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE,
new String[]{"folder_id"}, new Object[]{null});
});
Assertions.assertThatThrownBy(() -> recordSource
.executeTransactional(transaction -> transaction.clearTable(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE)))
.isInstanceOf(ForeignDependencyException.class);
recordSource.executeTransactional(transaction -> {
transaction.clearTable(STORE_FILE_NAME, STORE_FILE_NAMESPACE);
transaction.clearTable(FOLDER_FILE_NAME, FOLDER_FILE_NAMESPACE);
});
}
}
<file_sep>package com.infomaximum.database.anotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created by kris on 18.05.17.
*/
@Target({})
@Retention(RUNTIME)
public @interface HashIndex {
int[] fields();
}<file_sep>package com.infomaximum.database.utils;
import com.google.common.primitives.UnsignedInts;
import com.infomaximum.database.schema.TypeConverter;
public abstract class EnumConverter<T extends Enum<?> & BaseEnum> implements TypeConverter<T> {
private final T[] enumConstants;
protected EnumConverter(Class<T> clazz) {
this.enumConstants = clazz.getEnumConstants();
}
@Override
public byte[] pack(T value) {
return value != null ? TypeConvert.pack(value.intValue()) : TypeConvert.EMPTY_BYTE_ARRAY;
}
@Override
public T unpack(byte[] value) {
if (ByteUtils.isNullOrEmpty(value)) {
return null;
}
int enumValue = TypeConvert.unpackInt(value);
for(T e : enumConstants) {
if(enumValue == e.intValue()) {
return e;
}
}
throw new RuntimeException("Not found enum value " + enumValue + " into " + getClass());
}
@Override
public long buildHash(T value) {
return value != null ? UnsignedInts.toLong(value.intValue()) : 0;
}
}
<file_sep>package com.infomaximum.database.schema;
import com.infomaximum.database.exception.IllegalTypeException;
import com.infomaximum.database.utils.IntervalIndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import java.util.Collection;
import java.util.List;
public class RangeIndex extends BaseIntervalIndex {
private final static byte[] INDEX_NAME_BYTES = TypeConvert.pack("rng");
private final List<Field> hashedFields;
private final Field beginIndexedField;
private final Field endIndexedField;
public RangeIndex(com.infomaximum.database.anotation.RangeIndex index, StructEntity parent) {
super(buildIndexedFields(index, parent), parent);
this.hashedFields = sortedFields.subList(0, sortedFields.size() - 2);
this.beginIndexedField = sortedFields.get(sortedFields.size() - 2);
this.endIndexedField = sortedFields.get(sortedFields.size() - 1);
}
@Override
public List<Field> getHashedFields() {
return hashedFields;
}
public Field getBeginIndexedField() {
return beginIndexedField;
}
public Field getEndIndexedField() {
return endIndexedField;
}
@Override
public void checkIndexedValueType(Class<?> valueType) {
beginIndexedField.throwIfNotMatch(valueType);
}
private static List<Field> buildIndexedFields(com.infomaximum.database.anotation.RangeIndex index, StructEntity parent) {
Field beginField = parent.getField(index.beginField());
IntervalIndexUtils.checkType(beginField.getType());
Field endField = parent.getField(index.endField());
IntervalIndexUtils.checkType(endField.getType());
if (beginField.getType() != endField.getType()) {
throw new IllegalTypeException("Inconsistent range-types, " + beginField.getType().getSimpleName() + " and " + endField.getType().getSimpleName());
}
List<Field> fields = buildIndexedFields(index.hashedFields(), parent);
fields.add(beginField);
fields.add(endField);
return fields;
}
public static String toString(Collection<String> hashedFields, String beginField, String endField) {
return RangeIndex.class.getSimpleName() + ": " + hashedFields + ", [" + beginField + " - " + endField + "]";
}
@Override
public byte[] getIndexNameBytes() {
return INDEX_NAME_BYTES;
}
}
<file_sep>package com.infomaximum.rocksdb.options.columnfamily;
import com.infomaximum.database.utils.TypeConvert;
import org.rocksdb.ColumnFamilyDescriptor;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Function;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class ColumnFamilyConfigService {
private Map<String, ColumnFamilyConfig> configuredColumnFamilies;
public ColumnFamilyConfigService(Map<String, ColumnFamilyConfig> configuredColumnFamilies) {
this.configuredColumnFamilies = configuredColumnFamilies;
}
private static Map<String, ColumnFamilyDescriptor> getDescriptors(List<ColumnFamilyDescriptor> columnFamilyDescriptors) {
return columnFamilyDescriptors.stream()
.collect(Collectors.toMap(
descriptor -> TypeConvert.unpackString(descriptor.getName()),
Function.identity(), (columnFamilyDescriptor, columnFamilyDescriptor2) -> columnFamilyDescriptor));
}
public void applySettings(List<ColumnFamilyDescriptor> columnFamilyDescriptors) {
if (configuredColumnFamilies.isEmpty()) {
return;
}
final Map<String, ColumnFamilyDescriptor> descriptorMap = getDescriptors(columnFamilyDescriptors);
for (Map.Entry<String, ColumnFamilyConfig> columnFamilyConfigEntry : configuredColumnFamilies.entrySet()) {
final String key = columnFamilyConfigEntry.getKey();
Objects.requireNonNull(key, "column name pattern cannot be null");
final Pattern pattern = Pattern.compile(key);
final ColumnFamilyConfig columnFamilyConfig = columnFamilyConfigEntry.getValue();
descriptorMap.entrySet().stream()
.filter(entry -> pattern.matcher(entry.getKey()).find())
.map(entry -> entry.getValue())
.map(columnFamilyDescriptor -> columnFamilyDescriptor.getOptions())
.forEach(columnFamilyOptions -> ColumnFamilyConfigMapper.setRocksDbOpt(columnFamilyConfig, columnFamilyOptions));
}
}
}<file_sep>package com.infomaximum.database.utils.key;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.schema.BaseIntervalIndex;
import com.infomaximum.database.schema.dbstruct.DBBaseIntervalIndex;
import com.infomaximum.database.schema.dbstruct.DBRangeIndex;
import com.infomaximum.database.utils.TypeConvert;
import java.nio.ByteBuffer;
public abstract class BaseIntervalIndexKey extends IndexKey {
private static final byte NEGATIVE_VALUE = 0;
private static final byte POSITIVE_VALUE = 1;
final long[] hashedValues;
long indexedValue;
BaseIntervalIndexKey(long id, long[] hashedValues, byte[] attendant) {
super(id, attendant);
if (hashedValues == null) {
throw new IllegalArgumentException();
}
this.hashedValues = hashedValues;
}
public long[] getHashedValues() {
return hashedValues;
}
public static long unpackId(byte[] src) {
return TypeConvert.unpackLong(src, src.length - ID_BYTE_SIZE);
}
public static KeyPattern buildLeftBorder(long[] hashedValues, long indexedValue, final BaseIntervalIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.attendant.length + ID_BYTE_SIZE * (hashedValues.length + 1) + Byte.BYTES);
fillBuffer(index.attendant, hashedValues, indexedValue, buffer);
return new KeyPattern(buffer.array(), index.attendant.length + ID_BYTE_SIZE * hashedValues.length);
}
public static KeyPattern buildLeftBorder(long[] hashedValues, long indexedValue, final DBBaseIntervalIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.getAttendant().length + ID_BYTE_SIZE * (hashedValues.length + 1) + Byte.BYTES);
fillBuffer(index.getAttendant(), hashedValues, indexedValue, buffer);
return new KeyPattern(buffer.array(), index.getAttendant().length + ID_BYTE_SIZE * hashedValues.length);
}
public static KeyPattern buildLeftBorder(long[] hashedValues, long indexedValue, final DBRangeIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.getAttendant().length + ID_BYTE_SIZE * (hashedValues.length + 1) + Byte.BYTES);
fillBuffer(index.getAttendant(), hashedValues, indexedValue, buffer);
return new KeyPattern(buffer.array(), index.getAttendant().length + ID_BYTE_SIZE * hashedValues.length);
}
public static KeyPattern buildRightBorder(long[] hashedValues, long indexedValue, final BaseIntervalIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.attendant.length + ID_BYTE_SIZE * (hashedValues.length + 2) + Byte.BYTES);
fillBuffer(index.attendant, hashedValues, indexedValue, buffer);
buffer.putLong(0xffffffffffffffffL);
KeyPattern pattern = new KeyPattern(buffer.array(), index.attendant.length + ID_BYTE_SIZE * hashedValues.length);
pattern.setForBackward(true);
return pattern;
}
public static KeyPattern buildRightBorder(long[] hashedValues, long indexedValue, final DBBaseIntervalIndex index) {
ByteBuffer buffer = TypeConvert.allocateBuffer(index.getAttendant().length + ID_BYTE_SIZE * (hashedValues.length + 2) + Byte.BYTES);
fillBuffer(index.getAttendant(), hashedValues, indexedValue, buffer);
buffer.putLong(0xffffffffffffffffL);
KeyPattern pattern = new KeyPattern(buffer.array(), index.getAttendant().length + ID_BYTE_SIZE * hashedValues.length);
pattern.setForBackward(true);
return pattern;
}
static void fillBuffer(byte[] attendant, long[] hashedValues, long indexedValue, ByteBuffer destination) {
destination.put(attendant);
for (long hashedValue : hashedValues) {
destination.putLong(hashedValue);
}
destination.put(getSignByte(indexedValue));
destination.putLong(indexedValue);
}
static Byte getSignByte(long value) {
return value < 0 ? NEGATIVE_VALUE : POSITIVE_VALUE;
}
}
<file_sep>package com.infomaximum.database.utils;
import com.infomaximum.database.exception.DatabaseException;
import java.nio.file.Path;
public class PathUtils {
public static void checkPath(Path path) throws DatabaseException {
if (!path.isAbsolute()) {
throw new DatabaseException("RocksDB-paths is not absolute.");
}
}
}
<file_sep>package com.infomaximum.domain;
import com.infomaximum.database.anotation.*;
import com.infomaximum.database.domainobject.DomainObject;
import java.time.Instant;
@Entity(
namespace = "com.infomaximum.rocksdb",
name = "IndexRecreation",
fields = {
@Field(number = IndexRecreationReadable.FIELD_NAME_Z, name = "z_name", type = String.class),
@Field(number = IndexRecreationReadable.FIELD_TYPE, name = "a_type", type = Boolean.class),
@Field(number = IndexRecreationReadable.FIELD_S_BEGIN, name = "s_begin", type = Instant.class),
@Field(number = IndexRecreationReadable.FIELD_AMOUNT, name = "a_amount", type = Long.class),
@Field(number = IndexRecreationReadable.FIELD_NAME_X, name = "x_name", type = String.class),
@Field(number = IndexRecreationReadable.FIELD_PRICE, name = "a_price", type = Long.class),
@Field(number = IndexRecreationReadable.FIELD_G_END, name = "g_end", type = Instant.class),
},
hashIndexes = {
@HashIndex(fields = {IndexRecreationReadable.FIELD_PRICE, IndexRecreationReadable.FIELD_NAME_Z})
},
prefixIndexes = {
@PrefixIndex(fields = {IndexRecreationReadable.FIELD_NAME_X, IndexRecreationReadable.FIELD_NAME_Z})
},
intervalIndexes = {
@IntervalIndex(indexedField = IndexRecreationReadable.FIELD_AMOUNT,
hashedFields = {IndexRecreationReadable.FIELD_PRICE, IndexRecreationReadable.FIELD_NAME_Z})
},
rangeIndexes = {
@RangeIndex(beginField = IndexRecreationReadable.FIELD_S_BEGIN, endField = IndexRecreationReadable.FIELD_G_END,
hashedFields = {IndexRecreationReadable.FIELD_PRICE, IndexRecreationReadable.FIELD_NAME_Z}
)
}
)
public class IndexRecreationReadable extends DomainObject {
public final static int FIELD_NAME_Z = 0;
public final static int FIELD_TYPE = 1;
public final static int FIELD_S_BEGIN = 2;
public final static int FIELD_AMOUNT = 3;
public final static int FIELD_NAME_X = 4;
public final static int FIELD_PRICE = 5;
public final static int FIELD_G_END = 6;
public IndexRecreationReadable(long id) {
super(id);
}
public String getNameZ() {
return getString(FIELD_NAME_Z);
}
public Boolean getType() {
return getBoolean(FIELD_TYPE);
}
public Instant getBegin() {
return getInstant(FIELD_S_BEGIN);
}
public Long getAmount() {
return getLong(FIELD_AMOUNT);
}
public String getNameX() {
return getString(FIELD_NAME_X);
}
public Long getPrice() {
return getLong(FIELD_PRICE);
}
public Instant getEnd() {
return getInstant(FIELD_G_END);
}
}<file_sep>package com.infomaximum.database.schema;
import com.infomaximum.database.utils.TypeConvert;
import java.util.Collection;
import java.util.Collections;
public class HashIndex extends BaseIndex {
private final static byte[] INDEX_NAME_BYTES = TypeConvert.pack("hsh");
HashIndex(com.infomaximum.database.anotation.HashIndex index, StructEntity parent) {
super(buildIndexedFields(index.fields(), parent), parent);
}
public HashIndex(Field field, StructEntity parent) {
super(Collections.singletonList(field), parent);
}
public static String toString(Collection<String> indexedFields) {
return HashIndex.class.getSimpleName() + ": " + indexedFields;
}
@Override
public byte[] getIndexNameBytes() {
return INDEX_NAME_BYTES;
}
}
<file_sep>package com.infomaximum.database.domainobject;
import com.google.common.collect.Range;
import com.google.common.collect.RangeSet;
import com.google.common.collect.TreeRangeSet;
import com.infomaximum.database.DataCommand;
import com.infomaximum.database.domainobject.filter.EmptyFilter;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.exception.ForeignDependencyException;
import com.infomaximum.database.exception.ClosedObjectException;
import com.infomaximum.database.provider.*;
import com.infomaximum.database.schema.*;
import com.infomaximum.database.utils.HashIndexUtils;
import com.infomaximum.database.utils.PrefixIndexUtils;
import com.infomaximum.database.utils.RangeIndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.database.utils.key.FieldKey;
import com.infomaximum.database.utils.key.HashIndexKey;
import com.infomaximum.database.utils.key.IntervalIndexKey;
import com.infomaximum.database.utils.key.RangeIndexKey;
import java.io.Serializable;
import java.util.*;
public class Transaction extends DataEnumerable implements AutoCloseable {
private DBTransaction transaction = null;
private DataCommand dataCommand = null;
private boolean closed = false;
private boolean foreignFieldEnabled = true;
private final Map<String, Objects> deletingObjects = new HashMap<>();
protected Transaction(DBProvider dbProvider) {
super(dbProvider);
}
public boolean isForeignFieldEnabled() {
return foreignFieldEnabled;
}
public void setForeignFieldEnabled(boolean value) {
this.foreignFieldEnabled = value;
}
public DBTransaction getDBTransaction() throws DatabaseException {
ensureTransaction();
return transaction;
}
public DataCommand getDataCommand() throws DatabaseException {
ensureTransaction();
dataCommand = new DataCommand(transaction, getSchema().getDbSchema());
return dataCommand;
}
public <T extends DomainObject & DomainObjectEditable> T create(final Class<T> clazz) throws DatabaseException {
ensureTransaction();
StructEntity entity = Schema.getEntity(clazz);
long id = transaction.nextId(entity.getColumnFamily());
T domainObject = buildDomainObject(DomainObject.getConstructor(clazz), id, Collections.emptyList());
domainObject._setAsJustCreated();
//Принудительно указываем, что все поля отредактированы - иначе для не инициализированных полей не правильно построятся индексы
for (Field field: entity.getFields()) {
domainObject.set(field.getNumber(), null);
}
return domainObject;
}
public <T extends DomainObject & DomainObjectEditable> void save(final T object) throws DatabaseException {
Value<Serializable>[] newValues = object.getNewValues();
if (newValues == null) {
return;
}
ensureTransaction();
final String columnFamily = object.getStructEntity().getColumnFamily();
final Value<Serializable>[] loadedValues = object.getLoadedValues();
// update hash-indexed values
for (HashIndex index: object.getStructEntity().getHashIndexes()) {
if (anyChanged(index.sortedFields, newValues)) {
tryLoadFields(columnFamily, object, index.sortedFields, loadedValues);
updateIndexedValue(index, object, loadedValues, newValues, transaction);
}
}
// update prefix-indexed values
for (PrefixIndex index: object.getStructEntity().getPrefixIndexes()) {
if (anyChanged(index.sortedFields, newValues)) {
tryLoadFields(columnFamily, object, index.sortedFields, loadedValues);
updateIndexedValue(index, object, loadedValues, newValues, transaction);
}
}
// update interval-indexed values
for (IntervalIndex index: object.getStructEntity().getIntervalIndexes()) {
if (anyChanged(index.sortedFields, newValues)) {
tryLoadFields(columnFamily, object, index.sortedFields, loadedValues);
updateIndexedValue(index, object, loadedValues, newValues, transaction);
}
}
// update range-indexed values
for (RangeIndex index: object.getStructEntity().getRangeIndexes()) {
if (anyChanged(index.sortedFields, newValues)) {
tryLoadFields(columnFamily, object, index.sortedFields, loadedValues);
updateIndexedValue(index, object, loadedValues, newValues, transaction);
}
}
// update self-object
if (object._isJustCreated()) {
transaction.put(columnFamily, new FieldKey(object.getId()).pack(), TypeConvert.EMPTY_BYTE_ARRAY);
}
for (int i = 0; i < newValues.length; ++i) {
Value<Serializable> newValue = newValues[i];
if (newValue == null) {
continue;
}
Field field = object.getStructEntity().getFields()[i];
Object value = newValue.getValue();
validateUpdatingValue(object, field, value);
if (object._isJustCreated() && value == null) {
continue;
}
byte[] key = new FieldKey(object.getId(), field.getNameBytes()).pack();
byte[] bValue = TypeConvert.pack(field.getType(), value, field.getConverter());
transaction.put(columnFamily, key, bValue);
}
object._flushNewValues();
}
public <T extends DomainObject & DomainObjectEditable> void remove(final T obj) throws DatabaseException {
ensureTransaction();
validateForeignValues(obj);
String columnFamily = obj.getStructEntity().getColumnFamily();
deletingObjects.computeIfAbsent(columnFamily, s -> new Objects(obj.getStructEntity())).add(obj);
}
private void deleteObjects() throws DatabaseException {
for (Map.Entry<String, Objects> entry : deletingObjects.entrySet()) {
String columnFamily = entry.getKey();
StructEntity entity = entry.getValue().entity;
Value<Serializable>[] loadedValues = new Value[entity.getFields().length];
for (Range<Long> range : entry.getValue().ids.asRanges()) {
for (long objId = range.lowerEndpoint(); objId < range.upperEndpoint(); ++objId) {
Arrays.fill(loadedValues, null);
// delete hash-indexed values
for (HashIndex index : entity.getHashIndexes()) {
tryLoadFields(columnFamily, objId, index.sortedFields, loadedValues);
removeIndexedValue(index, objId, loadedValues, transaction);
}
// delete prefix-indexed values
for (PrefixIndex index : entity.getPrefixIndexes()) {
tryLoadFields(columnFamily, objId, index.sortedFields, loadedValues);
removeIndexedValue(index, objId, loadedValues, transaction);
}
// delete interval-indexed values
for (IntervalIndex index : entity.getIntervalIndexes()) {
tryLoadFields(columnFamily, objId, index.sortedFields, loadedValues);
removeIndexedValue(index, objId, loadedValues, transaction);
}
// delete range-indexed values
for (RangeIndex index : entity.getRangeIndexes()) {
tryLoadFields(columnFamily, objId, index.sortedFields, loadedValues);
removeIndexedValue(index, objId, loadedValues, transaction);
}
}
// delete self-object
transaction.singleDeleteRange(columnFamily,
FieldKey.buildKeyPrefix(range.lowerEndpoint()),
FieldKey.buildKeyPrefix(range.upperEndpoint())
);
}
}
}
@Override
public boolean isMarkedForDeletion(StructEntity entity, long objId) {
Objects objs = deletingObjects.get(entity.getColumnFamily());
return objs != null && objs.ids.contains(objId);
}
public <T extends DomainObject & DomainObjectEditable> void removeAll(Class<T> objClass) throws DatabaseException {
ensureTransaction();
StructEntity entity = Schema.getEntity(objClass);
validateForeignValues(entity);
Objects objects = deletingObjects.computeIfAbsent(entity.getColumnFamily(), s -> new Objects(entity));
try (IteratorEntity<T> i = find(objClass, EmptyFilter.INSTANCE, Collections.emptySet())) {
while (i.hasNext()) {
objects.add(i.next());
}
}
}
@Override
public DBIterator createIterator(String columnFamily) throws DatabaseException {
ensureTransaction();
return transaction.createIterator(columnFamily);
}
public void commit() throws DatabaseException {
if (transaction != null) {
deleteObjects();
transaction.commit();
}
close();
}
public boolean isClosed() {
return closed;
}
@Override
public void close() throws DatabaseException {
closed = true;
try (DBTransaction t = transaction) {
transaction = null;
}
}
private void ensureTransaction() throws DatabaseException {
if (closed) {
throw new ClosedObjectException(this.getClass());
}
if (transaction == null) {
transaction = getDbProvider().beginTransaction();
}
}
private void tryLoadFields(String columnFamily, DomainObject obj, List<Field> fields, Value<Serializable>[] loadedValues) throws DatabaseException {
if (!obj._isJustCreated()) {
tryLoadFields(columnFamily, obj.getId(), fields, loadedValues);
}
}
private void tryLoadFields(String columnFamily, long objId, List<Field> fields, Value<Serializable>[] loadedValues) throws DatabaseException {
for (Field field: fields) {
tryLoadField(columnFamily, objId, field, loadedValues);
}
}
private void tryLoadField(String columnFamily, long id, Field field, Value<Serializable>[] loadedValues) throws DatabaseException {
if (loadedValues[field.getNumber()] != null) {
return;
}
final byte[] key = new FieldKey(id, field.getNameBytes()).pack();
final byte[] value = transaction.getValue(columnFamily, key);
loadedValues[field.getNumber()] = Value.of(TypeConvert.unpack(field.getType(), value, field.getConverter()));
}
private static void updateIndexedValue(HashIndex index, DomainObject obj, Value<Serializable>[] prevValues, Value<Serializable>[] newValues, DBTransaction transaction) throws DatabaseException {
final HashIndexKey indexKey = new HashIndexKey(obj.getId(), index);
if (!obj._isJustCreated()) {
// Remove old value-index
HashIndexUtils.setHashValues(index.sortedFields, prevValues, indexKey.getFieldValues());
transaction.delete(index.columnFamily, indexKey.pack());
}
// Add new value-index
setHashValues(index.sortedFields, prevValues, newValues, indexKey.getFieldValues());
transaction.put(index.columnFamily, indexKey.pack(), TypeConvert.EMPTY_BYTE_ARRAY);
}
private static void removeIndexedValue(HashIndex index, long id, Value<Serializable>[] values, DBTransaction transaction) throws DatabaseException {
final HashIndexKey indexKey = new HashIndexKey(id, index);
HashIndexUtils.setHashValues(index.sortedFields, values, indexKey.getFieldValues());
transaction.singleDelete(index.columnFamily, indexKey.pack());
}
private static void updateIndexedValue(PrefixIndex index, DomainObject obj, Value<Serializable>[] prevValues, Value<Serializable>[] newValues, DBTransaction transaction) throws DatabaseException {
List<String> deletingLexemes = new ArrayList<>();
List<String> insertingLexemes = new ArrayList<>();
PrefixIndexUtils.diffIndexedLexemes(index.sortedFields, prevValues, newValues, deletingLexemes, insertingLexemes);
if (!obj._isJustCreated()) {
PrefixIndexUtils.removeIndexedLexemes(index, obj.getId(), deletingLexemes, transaction);
}
PrefixIndexUtils.insertIndexedLexemes(index, obj.getId(), insertingLexemes, transaction);
}
private static void removeIndexedValue(PrefixIndex index, long id, Value<Serializable>[] values, DBTransaction transaction) throws DatabaseException {
SortedSet<String> lexemes = PrefixIndexUtils.buildSortedSet();
for (Field field : index.sortedFields) {
PrefixIndexUtils.splitIndexingTextIntoLexemes((String) values[field.getNumber()].getValue(), lexemes);
}
PrefixIndexUtils.removeIndexedLexemes(index, id, lexemes, transaction);
}
private static void updateIndexedValue(IntervalIndex index, DomainObject obj, Value<Serializable>[] prevValues, Value<Serializable>[] newValues, DBTransaction transaction) throws DatabaseException {
final List<Field> hashedFields = index.getHashedFields();
final Field indexedField = index.getIndexedField();
final IntervalIndexKey indexKey = new IntervalIndexKey(obj.getId(), new long[hashedFields.size()], index);
if (!obj._isJustCreated()) {
// Remove old value-index
HashIndexUtils.setHashValues(hashedFields, prevValues, indexKey.getHashedValues());
indexKey.setIndexedValue(prevValues[indexedField.getNumber()].getValue());
transaction.delete(index.columnFamily, indexKey.pack());
}
// Add new value-index
setHashValues(hashedFields, prevValues, newValues, indexKey.getHashedValues());
indexKey.setIndexedValue(getValue(indexedField, prevValues, newValues));
transaction.put(index.columnFamily, indexKey.pack(), TypeConvert.EMPTY_BYTE_ARRAY);
}
private static void removeIndexedValue(IntervalIndex index, long id, Value<Serializable>[] values, DBTransaction transaction) throws DatabaseException {
final List<Field> hashedFields = index.getHashedFields();
final IntervalIndexKey indexKey = new IntervalIndexKey(id, new long[hashedFields.size()], index);
HashIndexUtils.setHashValues(hashedFields, values, indexKey.getHashedValues());
indexKey.setIndexedValue(values[index.getIndexedField().getNumber()].getValue());
transaction.singleDelete(index.columnFamily, indexKey.pack());
}
private static void updateIndexedValue(RangeIndex index, DomainObject obj, Value<Serializable>[] prevValues, Value<Serializable>[] newValues, DBTransaction transaction) throws DatabaseException {
final List<Field> hashedFields = index.getHashedFields();
final RangeIndexKey indexKey = new RangeIndexKey(obj.getId(), new long[hashedFields.size()], index);
if (!obj._isJustCreated()) {
// Remove old value-index
HashIndexUtils.setHashValues(hashedFields, prevValues, indexKey.getHashedValues());
RangeIndexUtils.removeIndexedRange(index, indexKey,
prevValues[index.getBeginIndexedField().getNumber()].getValue(),
prevValues[index.getEndIndexedField().getNumber()].getValue(),
transaction, transaction::delete);
}
// Add new value-index
setHashValues(hashedFields, prevValues, newValues, indexKey.getHashedValues());
RangeIndexUtils.insertIndexedRange(index, indexKey,
getValue(index.getBeginIndexedField(), prevValues, newValues),
getValue(index.getEndIndexedField(), prevValues, newValues),
transaction);
}
private static void removeIndexedValue(RangeIndex index, long id, Value<Serializable>[] values, DBTransaction transaction) throws DatabaseException {
final List<Field> hashedFields = index.getHashedFields();
final RangeIndexKey indexKey = new RangeIndexKey(id, new long[hashedFields.size()], index);
HashIndexUtils.setHashValues(hashedFields, values, indexKey.getHashedValues());
RangeIndexUtils.removeIndexedRange(index, indexKey,
values[index.getBeginIndexedField().getNumber()].getValue(),
values[index.getEndIndexedField().getNumber()].getValue(),
transaction, transaction::singleDelete);
}
private static void setHashValues(List<Field> fields, Value<Serializable>[] prevValues, Value<Serializable>[] newValues, long[] destination) {
for (int i = 0; i < fields.size(); ++i) {
Field field = fields.get(i);
Object value = getValue(field, prevValues, newValues);
destination[i] = HashIndexUtils.buildHash(field.getType(), value, field.getConverter());
}
}
private static Object getValue(Field field, Value<Serializable>[] prevValues, Value<Serializable>[] newValues) {
Value<Serializable> value = newValues[field.getNumber()];
if (value == null) {
value = prevValues[field.getNumber()];
}
return value.getValue();
}
private static boolean anyChanged(List<Field> fields, Value<Serializable>[] newValues) {
for (Field field: fields) {
if (newValues[field.getNumber()] != null) {
return true;
}
}
return false;
}
private void validateUpdatingValue(DomainObject obj, Field field, Object value) throws DatabaseException {
if (value == null) {
return;
}
if (!foreignFieldEnabled || !field.isForeign()) {
return;
}
long fkeyIdValue = (Long) value;
if (transaction.getValue(field.getForeignDependency().getColumnFamily(), new FieldKey(fkeyIdValue).pack()) == null ||
isMarkedForDeletion(field.getForeignDependency(), fkeyIdValue)) {
throw new ForeignDependencyException(obj.getId(), obj.getStructEntity().getObjectClass(), field, fkeyIdValue);
}
}
private void validateForeignValues(DomainObject obj) throws DatabaseException {
if (!foreignFieldEnabled) {
return;
}
List<StructEntity.Reference> references = obj.getStructEntity().getReferencingForeignFields();
if (references.isEmpty()) {
return;
}
for (StructEntity.Reference ref : references) {
KeyPattern keyPattern = HashIndexKey.buildKeyPattern(ref.fieldIndex, obj.getId());
try (DBIterator i = transaction.createIterator(ref.fieldIndex.columnFamily)) {
KeyValue keyValue = i.seek(keyPattern);
if (keyValue != null) {
long referencingId = HashIndexKey.unpackId(keyValue.getKey());
if (!isMarkedForDeletion(Schema.getEntity(ref.objClass), referencingId)) {
throw new ForeignDependencyException(obj.getId(), obj.getStructEntity().getObjectClass(), referencingId, ref.objClass);
}
}
}
}
}
private void validateForeignValues(StructEntity entity) throws DatabaseException {
if (!foreignFieldEnabled) {
return;
}
List<StructEntity.Reference> references = entity.getReferencingForeignFields();
if (references.isEmpty()) {
return;
}
for (StructEntity.Reference ref : references) {
if (ref.objClass.equals(entity.getObjectClass())) {
continue;
}
Objects objs = deletingObjects.get(Schema.getEntity(ref.objClass).getColumnFamily());
KeyPattern keyPattern = HashIndexKey.buildKeyPatternForLastKey(ref.fieldIndex);
keyPattern.setForBackward(true);
try (DBIterator i = transaction.createIterator(ref.fieldIndex.columnFamily)) {
for (KeyValue keyValue = i.seek(keyPattern); keyValue != null; keyValue = i.step(DBIterator.StepDirection.BACKWARD)) {
if (HashIndexKey.unpackFirstIndexedValue(keyValue.getKey()) == 0) {
break;
}
long referencingId = HashIndexKey.unpackId(keyValue.getKey());
if (objs != null && objs.ids.contains(referencingId)) {
continue;
}
long objId = HashIndexKey.unpackFirstIndexedValue(keyValue.getKey());
throw new ForeignDependencyException(objId, entity.getObjectClass(), referencingId, ref.objClass);
}
}
}
}
private static class Objects {
final StructEntity entity;
final RangeSet<Long> ids = TreeRangeSet.create();
Objects(StructEntity entity) {
this.entity = entity;
}
void add(DomainObject obj) {
ids.add(Range.closedOpen(obj.getId(), obj.getId() + 1));
}
}
}
<file_sep>package com.infomaximum.domain.proxy;
import com.infomaximum.database.anotation.Entity;
import com.infomaximum.database.anotation.Field;
import com.infomaximum.database.anotation.HashIndex;
import com.infomaximum.domain.type.FormatType;
/**
* Created by user on 19.04.2017.
*/
@Entity(
namespace = "com.infomaximum.store",
name = "StoreFile",
fields = {
@Field(number = ProxyStoreFileReadable.FIELD_FILE_NAME, name = "name", type = String.class),
@Field(number = ProxyStoreFileReadable.FIELD_CONTENT_TYPE, name = "type", type = String.class),
@Field(number = ProxyStoreFileReadable.FIELD_SIZE, name = "size", type = Long.class),
@Field(number = ProxyStoreFileReadable.FIELD_SINGLE, name = "single", type = Boolean.class),
@Field(number = ProxyStoreFileReadable.FIELD_FORMAT, name = "format", type = FormatType.class)
},
hashIndexes = {
@HashIndex(fields = {ProxyStoreFileReadable.FIELD_SIZE}),
@HashIndex(fields = {ProxyStoreFileReadable.FIELD_SIZE, ProxyStoreFileReadable.FIELD_FILE_NAME})
}
)
public class ProxyStoreFileReadable extends ProxyDomainObject {
public final static int FIELD_FILE_NAME = 0;
public final static int FIELD_CONTENT_TYPE = 1;
public final static int FIELD_SIZE = 2;
public final static int FIELD_SINGLE = 3;
public final static int FIELD_FORMAT = 4;
public ProxyStoreFileReadable(long id) {
super(id);
}
public String getFileName() {
return getString(FIELD_FILE_NAME);
}
public String getContentType() {
return getString(FIELD_CONTENT_TYPE);
}
public long getSize() {
return getLong(FIELD_SIZE);
}
public boolean isSingle() {
return getBoolean(FIELD_SINGLE);
}
public FormatType getFormat() {
return get(FIELD_FORMAT);
}
}
<file_sep>package com.infomaximum.rocksdb.options.columnfamily;
import java.io.Serializable;
import java.util.Objects;
public class ColumnFamilyConfig implements Serializable {
final Long writeBufferSize;
final Integer maxWriteBufferNumber;
final Integer minWriteBufferNumberToMerge;
final Integer numLevels;
final Long targetFileSizeBase;
final Long maxBytesForLevelBase;
final Boolean enableLevelCompactionDynamicLevelBytes;
final Long maxCompactionBytes;
final Long arenaBlockSize;
final Boolean disableAutoCompactions;
final Long maxSequentialSkipInIterations;
final Double memtablePrefixBloomSizeRatio;
final Long maxSuccessiveMerges;
final Long softPendingCompactionBytesLimit;
final Integer level0FileNumCompactionTrigger;
final Integer level0StopWritesTrigger;
final Integer maxWriteBufferNumberToMaintain;
private ColumnFamilyConfig(Builder builder) {
writeBufferSize = builder.writeBufferSize;
maxWriteBufferNumber = builder.maxWriteBufferNumber;
minWriteBufferNumberToMerge = builder.minWriteBufferNumberToMerge;
numLevels = builder.numLevels;
targetFileSizeBase = builder.targetFileSizeBase;
maxBytesForLevelBase = builder.maxBytesForLevelBase;
enableLevelCompactionDynamicLevelBytes = builder.enableLevelCompactionDynamicLevelBytes;
maxCompactionBytes = builder.maxCompactionBytes;
arenaBlockSize = builder.arenaBlockSize;
disableAutoCompactions = builder.disableAutoCompactions;
maxSequentialSkipInIterations = builder.maxSequentialSkipInIterations;
memtablePrefixBloomSizeRatio = builder.memtablePrefixBloomSizeRatio;
maxSuccessiveMerges = builder.maxSuccessiveMerges;
softPendingCompactionBytesLimit = builder.softPendingCompactionBytesLimit;
level0FileNumCompactionTrigger = builder.level0FileNumCompactionTrigger;
level0StopWritesTrigger = builder.level0StopWritesTrigger;
maxWriteBufferNumberToMaintain = builder.maxWriteBufferNumberToMaintain;
}
public static Builder newBuilder() {
return new Builder();
}
public Long getWriteBufferSize() {
return writeBufferSize;
}
public Integer getMaxWriteBufferNumber() {
return maxWriteBufferNumber;
}
public Integer getMinWriteBufferNumberToMerge() {
return minWriteBufferNumberToMerge;
}
public Integer getNumLevels() {
return numLevels;
}
public Long getTargetFileSizeBase() {
return targetFileSizeBase;
}
public Long getMaxBytesForLevelBase() {
return maxBytesForLevelBase;
}
public Boolean getEnableLevelCompactionDynamicLevelBytes() {
return enableLevelCompactionDynamicLevelBytes;
}
public Long getMaxCompactionBytes() {
return maxCompactionBytes;
}
public Long getArenaBlockSize() {
return arenaBlockSize;
}
public Boolean getDisableAutoCompactions() {
return disableAutoCompactions;
}
public Long getMaxSequentialSkipInIterations() {
return maxSequentialSkipInIterations;
}
public Double getMemtablePrefixBloomSizeRatio() {
return memtablePrefixBloomSizeRatio;
}
public Long getMaxSuccessiveMerges() {
return maxSuccessiveMerges;
}
public Long getSoftPendingCompactionBytesLimit() {
return softPendingCompactionBytesLimit;
}
public Integer getLevel0FileNumCompactionTrigger() {
return level0FileNumCompactionTrigger;
}
public Integer getLevel0StopWritesTrigger() {
return level0StopWritesTrigger;
}
public Integer getMaxWriteBufferNumberToMaintain() {
return maxWriteBufferNumberToMaintain;
}
public Boolean isContainWriteBufferSize() {
return Objects.nonNull(writeBufferSize);
}
public Boolean isContainMaxWriteBufferNumber() {
return Objects.nonNull(maxWriteBufferNumber);
}
public Boolean isContainMinWriteBufferNumberToMerge() {
return Objects.nonNull(minWriteBufferNumberToMerge);
}
public Boolean isContainNumLevels() {
return Objects.nonNull(numLevels);
}
public Boolean isContainTargetFileSizeBase() {
return Objects.nonNull(targetFileSizeBase);
}
public Boolean isContainMaxBytesForLevelBase() {
return Objects.nonNull(maxBytesForLevelBase);
}
public Boolean isContainEnableLevelCompactionDynamicLevelBytes() {
return Objects.nonNull(enableLevelCompactionDynamicLevelBytes);
}
public Boolean isContainMaxCompactionBytes() {
return Objects.nonNull(maxCompactionBytes);
}
public Boolean isContainArenaBlockSize() {
return Objects.nonNull(arenaBlockSize);
}
public Boolean isContainDisableAutoCompactions() {
return Objects.nonNull(disableAutoCompactions);
}
public Boolean isContainMaxSequentialSkipInIterations() {
return Objects.nonNull(maxSequentialSkipInIterations);
}
public Boolean isContainMemtablePrefixBloomSizeRatio() {
return Objects.nonNull(memtablePrefixBloomSizeRatio);
}
public Boolean isContainMaxSuccessiveMerges() {
return Objects.nonNull(maxSuccessiveMerges);
}
public Boolean isContainSoftPendingCompactionBytesLimit() {
return Objects.nonNull(softPendingCompactionBytesLimit);
}
public Boolean isContainLevel0FileNumCompactionTrigger() {
return Objects.nonNull(level0FileNumCompactionTrigger);
}
public Boolean isContainLevel0StopWritesTrigger() {
return Objects.nonNull(level0StopWritesTrigger);
}
public Boolean isContainMaxWriteBufferNumberToMaintain() {
return Objects.nonNull(maxWriteBufferNumberToMaintain);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ColumnFamilyConfig that = (ColumnFamilyConfig) o;
return Objects.equals(writeBufferSize, that.writeBufferSize)
&& Objects.equals(maxWriteBufferNumber, that.maxWriteBufferNumber)
&& Objects.equals(minWriteBufferNumberToMerge, that.minWriteBufferNumberToMerge)
&& Objects.equals(numLevels, that.numLevels)
&& Objects.equals(targetFileSizeBase, that.targetFileSizeBase)
&& Objects.equals(maxBytesForLevelBase, that.maxBytesForLevelBase)
&& Objects.equals(enableLevelCompactionDynamicLevelBytes, that.enableLevelCompactionDynamicLevelBytes)
&& Objects.equals(maxCompactionBytes, that.maxCompactionBytes)
&& Objects.equals(arenaBlockSize, that.arenaBlockSize)
&& Objects.equals(disableAutoCompactions, that.disableAutoCompactions)
&& Objects.equals(maxSequentialSkipInIterations, that.maxSequentialSkipInIterations)
&& Objects.equals(memtablePrefixBloomSizeRatio, that.memtablePrefixBloomSizeRatio)
&& Objects.equals(maxSuccessiveMerges, that.maxSuccessiveMerges)
&& Objects.equals(softPendingCompactionBytesLimit, that.softPendingCompactionBytesLimit)
&& Objects.equals(level0FileNumCompactionTrigger, that.level0FileNumCompactionTrigger)
&& Objects.equals(level0StopWritesTrigger, that.level0StopWritesTrigger)
&& Objects.equals(maxWriteBufferNumberToMaintain, that.maxWriteBufferNumberToMaintain);
}
@Override
public int hashCode() {
return Objects.hash(writeBufferSize,
maxWriteBufferNumber,
minWriteBufferNumberToMerge,
numLevels,
targetFileSizeBase,
maxBytesForLevelBase,
enableLevelCompactionDynamicLevelBytes,
maxCompactionBytes,
arenaBlockSize,
disableAutoCompactions,
maxSequentialSkipInIterations,
memtablePrefixBloomSizeRatio,
maxSuccessiveMerges,
softPendingCompactionBytesLimit,
level0FileNumCompactionTrigger,
level0StopWritesTrigger,
maxWriteBufferNumberToMaintain);
}
public static final class Builder {
private Long writeBufferSize;
private Integer maxWriteBufferNumber;
private Integer minWriteBufferNumberToMerge;
private Integer numLevels;
private Long targetFileSizeBase;
private Long maxBytesForLevelBase;
private Boolean enableLevelCompactionDynamicLevelBytes;
private Long maxCompactionBytes;
private Long arenaBlockSize;
private Boolean disableAutoCompactions;
private Long maxSequentialSkipInIterations;
private Double memtablePrefixBloomSizeRatio;
private Long maxSuccessiveMerges;
private Long softPendingCompactionBytesLimit;
private Integer level0FileNumCompactionTrigger;
private Integer level0StopWritesTrigger;
private Integer maxWriteBufferNumberToMaintain;
private Builder() {
}
public Builder withWriteBufferSize(Long writeBufferSize) {
this.writeBufferSize = writeBufferSize;
return this;
}
public Builder withMaxWriteBufferNumber(Integer maxWriteBufferNumber) {
this.maxWriteBufferNumber = maxWriteBufferNumber;
return this;
}
public Builder withMinWriteBufferNumberToMerge(Integer minWriteBufferNumberToMerge) {
this.minWriteBufferNumberToMerge = minWriteBufferNumberToMerge;
return this;
}
public Builder withNumLevels(Integer numLevels) {
this.numLevels = numLevels;
return this;
}
public Builder withTargetFileSizeBase(Long targetFileSizeBase) {
this.targetFileSizeBase = targetFileSizeBase;
return this;
}
public Builder withMaxBytesForLevelBase(Long maxBytesForLevelBase) {
this.maxBytesForLevelBase = maxBytesForLevelBase;
return this;
}
public Builder withEnableLevelCompactionDynamicLevelBytes(Boolean enableLevelCompactionDynamicLevelBytes) {
this.enableLevelCompactionDynamicLevelBytes = enableLevelCompactionDynamicLevelBytes;
return this;
}
public Builder withMaxCompactionBytes(Long maxCompactionBytes) {
this.maxCompactionBytes = maxCompactionBytes;
return this;
}
public Builder withArenaBlockSize(Long arenaBlockSize) {
this.arenaBlockSize = arenaBlockSize;
return this;
}
public Builder withDisableAutoCompactions(Boolean disableAutoCompactions) {
this.disableAutoCompactions = disableAutoCompactions;
return this;
}
public Builder withMaxSequentialSkipInIterations(Long maxSequentialSkipInIterations) {
this.maxSequentialSkipInIterations = maxSequentialSkipInIterations;
return this;
}
public Builder withMemtablePrefixBloomSizeRatio(Double memtablePrefixBloomSizeRatio) {
this.memtablePrefixBloomSizeRatio = memtablePrefixBloomSizeRatio;
return this;
}
public Builder withMaxSuccessiveMerges(Long maxSuccessiveMerges) {
this.maxSuccessiveMerges = maxSuccessiveMerges;
return this;
}
public Builder withSoftPendingCompactionBytesLimit(Long softPendingCompactionBytesLimit) {
this.softPendingCompactionBytesLimit = softPendingCompactionBytesLimit;
return this;
}
public Builder withLevel0FileNumCompactionTrigger(Integer level0FileNumCompactionTrigger) {
this.level0FileNumCompactionTrigger = level0FileNumCompactionTrigger;
return this;
}
public Builder withLevel0StopWritesTrigger(Integer level0StopWritesTrigger) {
this.level0StopWritesTrigger = level0StopWritesTrigger;
return this;
}
public Builder withMaxWriteBufferNumberToMaintain(Integer maxWriteBufferNumberToMaintain) {
this.maxWriteBufferNumberToMaintain = maxWriteBufferNumberToMaintain;
return this;
}
public ColumnFamilyConfig build() {
return new ColumnFamilyConfig(this);
}
}
}<file_sep>package com.infomaximum.database.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.domainobject.filter.IdFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBDataReader;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.utils.key.FieldKey;
import java.util.NoSuchElementException;
public class IdIterator extends BaseRecordIterator {
private final DBIterator iterator;
private final DBTable table;
private final NextState state;
private final long endId;
public IdIterator(DBTable table, IdFilter filter, DBDataReader dataReader) {
this.iterator = dataReader.createIterator(table.getDataColumnFamily());
this.table = table;
this.endId = filter.getToId();
KeyPattern dataKeyPattern = new KeyPattern(FieldKey.buildKeyPrefix(filter.getFromId()), 0);
state = initializeState(dataKeyPattern);
if (endReached()) {
state.reset();
close();
}
}
@Override
public boolean hasNext() throws DatabaseException {
return !state.isEmpty();
}
@Override
public Record next() throws DatabaseException {
if (state.isEmpty()) {
throw new NoSuchElementException();
}
Record result = nextRecord(table, state, iterator);
if (endReached()) {
state.reset();
close();
}
return result;
}
@Override
public void close() throws DatabaseException {
iterator.close();
}
private NextState initializeState(KeyPattern keyPattern) throws DatabaseException {
return seek(keyPattern, iterator);
}
private boolean endReached() {
return state.isEmpty() || state.getNextId() > endId;
}
}
<file_sep>package com.infomaximum.database.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.domainobject.filter.BaseIntervalFilter;
import com.infomaximum.database.domainobject.filter.SortDirection;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.exception.IllegalTypeException;
import com.infomaximum.database.provider.DBDataReader;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.dbstruct.DBBaseIntervalIndex;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.utils.HashIndexUtils;
import com.infomaximum.database.utils.IntervalIndexUtils;
import com.infomaximum.database.utils.key.BaseIntervalIndexKey;
import java.util.*;
abstract class BaseIntervalRecordIterator<F extends BaseIntervalFilter> extends BaseIndexRecordIterator {
private final List<DBField> checkedFilterFields;
private final List<Object> filterValues;
private final DBIterator.StepDirection direction;
private final KeyPattern indexPattern;
private KeyValue indexKeyValue;
final long filterBeginValue, filterEndValue;
BaseIntervalRecordIterator(DBTable table, F filter, SortDirection direction, DBDataReader dataReader) throws DatabaseException {
super(table, dataReader);
this.direction = direction == SortDirection.ASC ? DBIterator.StepDirection.FORWARD : DBIterator.StepDirection.BACKWARD;
Map<Integer, Object> filters = filter.getHashedValues();
DBBaseIntervalIndex index = getIndex(filter, table);
List<DBField> filterFields = null;
List<Object> filterValues = null;
long[] values = new long[index.getHashFieldIds().length];
for (int i = 0; i < index.getHashFieldIds().length; ++i) {
DBField field = table.getField(index.getHashFieldIds()[i]);
Object value = filters.get(field.getId());
if (field.getType() != value.getClass()) {
throw new IllegalTypeException(field.getType(), value.getClass());
}
values[i] = HashIndexUtils.buildHash(field.getType(), value, null);
if (HashIndexUtils.toLongCastable(field.getType())) {
continue;
}
if (filterFields == null) {
filterFields = new ArrayList<>();
filterValues = new ArrayList<>();
}
filterFields.add(field);
filterValues.add(value);
}
index.checkIndexedFieldType(filter.getBeginValue().getClass(), table);
index.checkIndexedFieldType(filter.getEndValue().getClass(), table);
this.checkedFilterFields = filterFields != null ? filterFields : Collections.emptyList();
this.filterValues = filterValues;
this.filterBeginValue = IntervalIndexUtils.castToLong(filter.getBeginValue());
this.filterEndValue = IntervalIndexUtils.castToLong(filter.getEndValue());
IntervalIndexUtils.checkInterval(filterBeginValue, filterEndValue);
switch (this.direction) {
case FORWARD:
this.indexPattern = BaseIntervalIndexKey.buildLeftBorder(values, filterBeginValue, index);
break;
case BACKWARD:
this.indexPattern = BaseIntervalIndexKey.buildRightBorder(values, filterEndValue, index);
break;
default:
throw new IllegalArgumentException("direction = " + direction);
}
this.indexKeyValue = seek(indexIterator, indexPattern);
nextImpl();
}
abstract DBBaseIntervalIndex getIndex(F filter, DBTable table);
abstract KeyValue seek(DBIterator indexIterator, KeyPattern pattern) throws DatabaseException;
@Override
protected void nextImpl() throws DatabaseException {
while (indexKeyValue != null) {
final long id = BaseIntervalIndexKey.unpackId(indexKeyValue.getKey());
final int res = matchKey(id, indexKeyValue.getKey());
if (res == KeyPattern.MATCH_RESULT_SUCCESS) {
nextRecord = findRecord(id);
} else if (res == KeyPattern.MATCH_RESULT_CONTINUE) {
nextRecord = null;
} else {
break;
}
indexKeyValue = indexIterator.step(direction);
if (indexKeyValue != null && indexPattern.match(indexKeyValue.getKey()) != KeyPattern.MATCH_RESULT_SUCCESS) {
indexKeyValue = null;
}
if (nextRecord != null) {
return;
}
}
nextRecord = null;
close();
}
/**
* @return KeyPattern.MATCH_RESULT_*
*/
abstract int matchKey(long id, byte[] key);
@Override
protected boolean checkFilter(Record record) throws DatabaseException {
for (int i = 0; i < checkedFilterFields.size(); ++i) {
DBField field = checkedFilterFields.get(i);
if (!HashIndexUtils.equals(field.getType(), filterValues.get(i), record.getValues()[field.getId()])) {
return false;
}
}
return true;
}
}
<file_sep>package com.infomaximum.database.domainobject;
import com.infomaximum.domain.ExchangeFolderEditable;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.type.FormatType;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/**
* Created by kris on 22.04.17.
*/
public class DomainObjectTest extends StoreFileDataTest {
@Test
public void serialize() throws Exception {
StoreFileEditable storeFile = new StoreFileEditable(1);
storeFile.setContentType("application/json");
storeFile.setFileName("info.json");
storeFile.setSize(1000L);
storeFile.setFormat(FormatType.B);
testSerialize(storeFile);
ExchangeFolderEditable exchangeFolder = new ExchangeFolderEditable(1);
exchangeFolder.setUuid("1111");
exchangeFolder.setUserEmail("<EMAIL>");
exchangeFolder.setSyncDate(null);
exchangeFolder.setSyncState("555");
exchangeFolder.setParentId(10L);
testSerialize(exchangeFolder);
}
private static void testSerialize(Serializable object) throws IOException {
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
try (ObjectOutputStream oos = new ObjectOutputStream(baos)) {
oos.writeObject(object);
baos.toByteArray();
}
}
}
}
<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.utils.TypeConvert;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
import org.junit.Test;
import org.rocksdb.*;
public class OptimisticTransactionTest extends RocksDataTest {
final byte[] key1= TypeConvert.pack("key1");
final byte[] value1_old = TypeConvert.pack("value1_old");
final byte[] value1_new = TypeConvert.pack("value1_new");
final byte[] key2 = TypeConvert.pack("key2");
final byte[] value2_old = TypeConvert.pack("value2_old");
final byte[] value2_new = TypeConvert.pack("value2_new");
@Test
public void commit() throws RocksDBException {
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString());
final WriteOptions writeOptions = new WriteOptions();
final ReadOptions readOptions = new ReadOptions()) {
txnDb.put(writeOptions, key1, value1_old);
try(final Transaction txn = txnDb.beginTransaction(writeOptions)) {
txn.put(key1, value1_new);
Assert.assertArrayEquals(value1_new, txn.get(readOptions, key1));
txn.commit();
}
Assert.assertArrayEquals(value1_new, txnDb.get(readOptions, key1));
}
}
@Test
public void leaveTransaction() throws RocksDBException {
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString());
final WriteOptions writeOptions = new WriteOptions();
final ReadOptions readOptions = new ReadOptions()) {
txnDb.put(writeOptions, key1, value1_old);
try(final Transaction txn = txnDb.beginTransaction(writeOptions)) {
txn.put(key1, value1_new);
txn.put(key2, value2_new);
Assert.assertArrayEquals(value1_new, txn.get(readOptions, key1));
}
Assert.assertArrayEquals(value1_old, txnDb.get(readOptions, key1));
Assert.assertNull(txnDb.get(readOptions, key2));
}
}
@Test
public void rollback() throws RocksDBException {
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString());
final WriteOptions writeOptions = new WriteOptions();
final ReadOptions readOptions = new ReadOptions()) {
txnDb.put(writeOptions, key1, value1_old);
try(final Transaction txn = txnDb.beginTransaction(writeOptions)) {
txn.put(key1, value1_new);
Assert.assertArrayEquals(value1_new, txn.get(readOptions, key1));
txn.rollback();
}
Assert.assertArrayEquals(value1_old, txnDb.get(readOptions, key1));
}
}
@Test
public void readOutside() throws RocksDBException {
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString())) {
try(final WriteOptions writeOptions = new WriteOptions();
final Transaction txn = txnDb.beginTransaction(writeOptions);
final ReadOptions readOptions = new ReadOptions()) {
byte[] value = txn.get(readOptions, key1);
Assert.assertNull(value);
// Write a key in this transaction
txn.put(key1, value1_old);
// Read a key OUTSIDE this transaction. Does not affect txn.
value = txnDb.get(readOptions, key1);
Assert.assertNull(value);
// Write a key OUTSIDE of this transaction.
// Does not affect txn since this is an unrelated key.
// If we wrote key 'abc' here, the transaction would fail to commit.
txnDb.put(writeOptions, key2, value2_old);
txn.commit();
}
}
}
@Test
public void writeInsideThanOutside() throws RocksDBException {
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString())) {
try(final WriteOptions writeOptions = new WriteOptions();
final Transaction txn = txnDb.beginTransaction(writeOptions)) {
txn.put(key1, value1_old);
txnDb.put(writeOptions, key1, value1_new);
try {
txn.commit();
} catch (RocksDBException e) {
Assert.assertTrue(true);
return;
}
}
}
Assert.fail();
}
@Test
public void writeInsideThanWriteAnotherInside() throws RocksDBException {
try(final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB txnDb = OptimisticTransactionDB.open(options, pathDataBase.toString());
final WriteOptions writeOptions = new WriteOptions()) {
// Put initial value#2
txnDb.put(writeOptions, key2, value2_old);
try(final Transaction txn1 = txnDb.beginTransaction(writeOptions);
final ReadOptions readOptions = new ReadOptions()) {
// Put value#2 inside transacion#1
txn1.put(key1, value1_old);
// Read initial value#2 inside transacion#1
try (final RocksIterator iter = txn1.getIterator(readOptions)) {
iter.seek(key2);
Assert.assertTrue(iter.isValid());
Assert.assertArrayEquals(key2, iter.key());
Assert.assertArrayEquals(value2_old, iter.value());
}
// Change value#2 inside transaction#2
try(final Transaction txn2 = txnDb.beginTransaction(writeOptions)) {
txn2.put(key2, value2_new);
txn2.commit();
}
// Read new value#2 inside transacion#1
try (final RocksIterator iter = txn1.getIterator(readOptions)) {
iter.seek(key2);
Assert.assertTrue(iter.isValid());
Assert.assertArrayEquals(key2, iter.key());
Assert.assertArrayEquals(value2_new, iter.value());
}
txn1.commit();
}
}
}
@Test
public void reopenDB() throws Exception {
final int reopenCount = 20;
try (final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB db = OptimisticTransactionDB.open(options, pathDataBase.toString())) {
db.put(key1, value1_old);
}
for (int i = 0; i < reopenCount; ++i) {
try (final Options options = new Options().setCreateIfMissing(true);
final OptimisticTransactionDB db = OptimisticTransactionDB.open(options, pathDataBase.toString())) {
try (RocksIterator iter = db.newIterator())
{}
value1_old[0] = (byte) i;
db.put(key1, value1_old);
}
}
FileUtils.deleteDirectory(pathDataBase.toAbsolutePath().toFile());
}
}
<file_sep>package com.infomaximum.database.domainobject.engine.index;
import com.infomaximum.database.utils.PrefixIndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.database.utils.key.Key;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import java.nio.LongBuffer;
import java.util.*;
public class PrefixIndexUtilsTest {
@Test
public void diffIndexedLexemes() {
assertEquals(
new String[] {"test01 test02 test03", "test12 test12 test13"},
new String[] {},
Collections.emptySet(),
Collections.emptySet()
);
assertEquals(
new String[] {"test01 test02 test03", "test12 test12 test13"},
new String[] {"test01 test02 test03", "test12 test12 test13"},
Collections.emptySet(),
Collections.emptySet()
);
assertEquals(
new String[] {"test01 test02 test03", "test12 test12 test13"},
new String[] {"test12 test12 test13", "test01 test02 test03"},
Collections.emptySet(),
Collections.emptySet()
);
assertEquals(
new String[] {"test01 test02 test03", "test12 test12 test13"},
new String[] {"test01 test02 test", "test13 test"},
new HashSet<>(Arrays.asList("test03", "test12")),
Collections.emptySet()
);
assertEquals(
new String[] {"test01 test02 test03", "test12 test12 test13"},
new String[] {null, null},
new HashSet<>(Arrays.asList("test01", "test02", "test03", "test12", "test13")),
Collections.emptySet()
);
assertEquals(
new String[] {"test01 test02 test03", "test12 test12 test13"},
new String[] {"test01 test02 test03", null},
new HashSet<>(Arrays.asList("test12", "test13")),
Collections.emptySet()
);
}
private static void assertEquals(Object[] prevValues, Object[] newValues,
Set<String> expectedDeletingLexemes, Set<String> expectedInsertingLexemes) {
final Set<String> actualDeletingLexemes = new HashSet<>();
final Set<String> actualInsertingLexemes = new HashSet<>();
PrefixIndexUtils.diffIndexedLexemes(new int[] {0, 1}, prevValues, newValues, actualDeletingLexemes, actualInsertingLexemes);
Assertions.assertThat(expectedDeletingLexemes)
.as("Deleting lexemes")
.containsAll(actualDeletingLexemes);
Assertions.assertThat(expectedInsertingLexemes)
.as("Inserting lexemes")
.containsAll(actualInsertingLexemes);
}
@Test
public void splitIndexedWhitespaceBeginingText() {
final String text = " Привет comparator Медвед infom.COM com cOmpa comPArat test...2d sop@ru \n \r";
SortedSet<String> lexemes = PrefixIndexUtils.buildSortedSet();
PrefixIndexUtils.splitIndexingTextIntoLexemes(text, lexemes);
Assertions.assertThat(lexemes.toArray())
.containsOnly("привет", "медвед", "test...2d", "<EMAIL>", "ru", "infom.com", "comparator", "2d");
}
@Test
public void splitIndexedText() {
final String text = "Привет Медвед infom.COM i com ...test...2d sop@ru м м мед медв";
SortedSet<String> lexemes = PrefixIndexUtils.buildSortedSet();
PrefixIndexUtils.splitIndexingTextIntoLexemes(text, lexemes);
Assertions.assertThat(lexemes.toArray())
.containsOnly("привет", "медвед", "test...2d", "<EMAIL>", "ru", "infom.com", "com", "2d", "...test...2d");
}
@Test
public void appendId() {
byte[] bytes = TypeConvert.pack(100L);
bytes = PrefixIndexUtils.appendId(200, bytes);
bytes = PrefixIndexUtils.appendId(20, bytes);
bytes = PrefixIndexUtils.appendId(30, bytes);
bytes = PrefixIndexUtils.appendId(400, bytes);
assertArrayEquals(new long[] {20, 30, 100, 200, 400}, bytes);
}
@Test
public void removeId() {
byte[] bytes = TypeConvert.pack(100L);
bytes = PrefixIndexUtils.appendId(200, bytes);
bytes = PrefixIndexUtils.appendId(30, bytes);
bytes = PrefixIndexUtils.appendId(400, bytes);
byte[] newBytes = PrefixIndexUtils.removeId(10, bytes);
Assertions.assertThat(newBytes).isNull();
newBytes = PrefixIndexUtils.removeId(200, bytes);
assertArrayEquals(new long[] {30, 100, 400 }, newBytes);
newBytes = PrefixIndexUtils.removeId(400, newBytes);
assertArrayEquals(new long[] {30, 100 }, newBytes);
newBytes = PrefixIndexUtils.removeId(100, newBytes);
assertArrayEquals(new long[] { 30 }, newBytes);
newBytes = PrefixIndexUtils.removeId(30, newBytes);
Assertions.assertThat(new byte[0])
.isEqualTo(newBytes);
}
@Test
public void getIdCount() {
byte[] bytes = TypeConvert.allocateBuffer(4 * Key.ID_BYTE_SIZE)
.putLong(100)
.putLong(200)
.putLong(30)
.putLong(400)
.array();
Assertions.assertThat(PrefixIndexUtils.getIdCount(bytes))
.isEqualTo(4);
}
@Test
public void splitSearchingTextIntoWords() {
final String text = " Привет Медвед infom.COM COM com test...2d sop@ru \n \r";
List<String> lexemes = PrefixIndexUtils.splitSearchingTextIntoWords(text);
Assertions.assertThat(lexemes.toArray())
.isEqualTo(Arrays.asList(
"com",
"com",
"привет",
"медвед",
"<EMAIL>",
"infom.com",
"test...2d").toArray());
}
@Test
public void contains() {
final String[] texts = {" Привет Медвед infom.COM COM com test...2d sop@ru \n \r", "ru.yandex perl"};
List<String> tempList = new ArrayList<>();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords("прив мед"), texts, tempList))
.isTrue();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords("прив прив"), texts, tempList))
.isFalse();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords("прив мед мед мед мед мед мед мед мед мед мед"), texts, tempList))
.isFalse();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords(" прив \n мед "), texts, tempList))
.isTrue();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords(" tes co com sop@ "), texts, tempList))
.isTrue();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords(" ru "), texts, tempList))
.isTrue();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords(" com ru "), texts, tempList))
.isTrue();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords(" com ru 2d"), texts, tempList))
.isTrue();
Assertions.assertThat(PrefixIndexUtils.contains(PrefixIndexUtils.splitSearchingTextIntoWords(" com ru yand"), texts, tempList))
.isTrue();
}
private static void assertArrayEquals(long[] expected, byte[] actual) {
LongBuffer buffer = TypeConvert.wrapBuffer(actual).asLongBuffer();
Assertions.assertThat(buffer.limit())
.as("Size")
.isEqualTo(expected.length);
for (long val : expected) {
Assertions.assertThat(val)
.isEqualTo(buffer.get());
}
}
}
<file_sep>package com.infomaximum.database.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBDataReader;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.utils.key.FieldKey;
import java.util.NoSuchElementException;
public abstract class BaseIndexRecordIterator extends BaseRecordIterator {
protected final DBTable dbTable;
protected final DBIterator indexIterator;
protected final DBIterator dataIterator;
protected KeyPattern dataKeyPattern = null;
protected Record nextRecord;
BaseIndexRecordIterator(DBTable table, DBDataReader dataReader) throws DatabaseException {
this.dbTable = table;
this.indexIterator = dataReader.createIterator(table.getIndexColumnFamily());
this.dataIterator = dataReader.createIterator(table.getDataColumnFamily());
}
@Override
public boolean hasNext() {
return nextRecord != null;
}
@Override
public Record next() throws DatabaseException {
if (nextRecord == null) {
throw new NoSuchElementException();
}
Record record = nextRecord;
nextImpl();
return record;
}
@Override
public void close() throws DatabaseException {
indexIterator.close();
dataIterator.close();
}
protected abstract void nextImpl() throws DatabaseException;
protected Record findRecord(long id) throws DatabaseException {
if (dataKeyPattern == null) {
dataKeyPattern = FieldKey.buildKeyPattern(id);
} else {
dataKeyPattern.setPrefix(FieldKey.buildKeyPrefix(id));
}
Record record = seekRecord(dbTable, dataIterator, dataKeyPattern);
return record == null ? null :
checkFilter(record) ? record : null;
}
abstract boolean checkFilter(Record record) throws DatabaseException;
}
<file_sep>package com.infomaximum.database.utils;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.DomainObjectSource;
import com.infomaximum.database.domainobject.filter.EmptyFilter;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.exception.SchemaException;
import com.infomaximum.database.provider.DBProvider;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.schema.*;
import com.infomaximum.database.schema.dbstruct.*;
import com.infomaximum.database.utils.key.HashIndexKey;
import com.infomaximum.database.utils.key.IntervalIndexKey;
import com.infomaximum.database.utils.key.RangeIndexKey;
import java.util.*;
import java.util.stream.Collectors;
public class IndexService {
@FunctionalInterface
private interface ModifierCreator {
void apply(final DomainObject obj, DBTransaction transaction) throws DatabaseException;
}
//todo check existed indexes and throw exception
public static void doIndex(HashIndex index, StructEntity table, DBProvider dbProvider) throws DatabaseException {
final Set<Integer> indexingFields = index.sortedFields.stream().map(Field::getNumber).collect(Collectors.toSet());
final HashIndexKey indexKey = new HashIndexKey(0, index);
indexData(indexingFields, table, dbProvider, (obj, transaction) -> {
indexKey.setId(obj.getId());
HashIndexUtils.setHashValues(index.sortedFields, obj, indexKey.getFieldValues());
transaction.put(index.columnFamily, indexKey.pack(), TypeConvert.EMPTY_BYTE_ARRAY);
});
}
public static void doIndex(DBHashIndex index, DBTable table, DBProvider dbProvider) throws DatabaseException {
final DBField[] dbFields = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getFieldIds());
final StructEntity structEntity = getStructEntity(table);
ArrayList<Field> structEntityFields = getStructEntityFields(dbFields, structEntity);
final HashIndexKey indexKey = new HashIndexKey(0, index);
indexData(getLoadedFields(structEntityFields), table, dbProvider, (obj, transaction) -> {
indexKey.setId(obj.getId());
HashIndexUtils.setHashValues(structEntityFields, obj, indexKey.getFieldValues());
transaction.put(table.getIndexColumnFamily(), indexKey.pack(), TypeConvert.EMPTY_BYTE_ARRAY);
});
}
public static void doPrefixIndex(PrefixIndex index, StructEntity table, DBProvider dbProvider) throws DatabaseException {
final Set<Integer> indexingFields = index.sortedFields.stream().map(Field::getNumber).collect(Collectors.toSet());
final SortedSet<String> lexemes = PrefixIndexUtils.buildSortedSet();
indexData(indexingFields, table, dbProvider, (obj, transaction) -> {
lexemes.clear();
for (Field field : index.sortedFields) {
PrefixIndexUtils.splitIndexingTextIntoLexemes(obj.get(field.getNumber()), lexemes);
}
PrefixIndexUtils.insertIndexedLexemes(index, obj.getId(), lexemes, transaction);
});
}
public static void doPrefixIndex(DBPrefixIndex index, DBTable table, DBProvider dbProvider) throws DatabaseException {
final DBField[] dbFields = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getFieldIds());
final StructEntity structEntity = getStructEntity(table);
ArrayList<Field> structEntityFields = getStructEntityFields(dbFields, structEntity);
final SortedSet<String> lexemes = PrefixIndexUtils.buildSortedSet();
indexData(getLoadedFields(structEntityFields), table, dbProvider, (obj, transaction) -> {
lexemes.clear();
for (Field field : structEntityFields) {
PrefixIndexUtils.splitIndexingTextIntoLexemes(obj.get(field.getNumber()), lexemes);
}
PrefixIndexUtils.insertIndexedLexemes(index, obj.getId(), lexemes, table.getIndexColumnFamily(), transaction);
});
}
public static void doIntervalIndex(IntervalIndex index, StructEntity table, DBProvider dbProvider) throws DatabaseException {
final Set<Integer> indexingFields = index.sortedFields.stream().map(Field::getNumber).collect(Collectors.toSet());
final List<Field> hashedFields = index.getHashedFields();
final Field indexedField = index.getIndexedField();
final IntervalIndexKey indexKey = new IntervalIndexKey(0, new long[hashedFields.size()], index);
indexData(indexingFields, table, dbProvider, (obj, transaction) -> {
indexKey.setId(obj.getId());
HashIndexUtils.setHashValues(hashedFields, obj, indexKey.getHashedValues());
indexKey.setIndexedValue(obj.get(indexedField.getNumber()));
transaction.put(index.columnFamily, indexKey.pack(), TypeConvert.EMPTY_BYTE_ARRAY);
});
}
public static void doIntervalIndex(DBIntervalIndex index, DBTable table, DBProvider dbProvider) throws DatabaseException {
final DBField[] dbFields = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getFieldIds());
final StructEntity structEntity = getStructEntity(table);
final ArrayList<Field> structEntityFields = getStructEntityFields(dbFields, structEntity);
final DBField[] dbHashedFields = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getHashFieldIds());
ArrayList<Field> hashIndexFields = getStructEntityFields(dbHashedFields, structEntity);
final DBField indexedField = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getIndexedFieldId());
final IntervalIndexKey indexKey = new IntervalIndexKey(0, new long[dbHashedFields.length], index);
indexData(getLoadedFields(structEntityFields), table, dbProvider, (obj, transaction) -> {
indexKey.setId(obj.getId());
HashIndexUtils.setHashValues(hashIndexFields, obj, indexKey.getHashedValues());
indexKey.setIndexedValue(obj.get(indexedField.getId()));
transaction.put(table.getIndexColumnFamily(), indexKey.pack(), TypeConvert.EMPTY_BYTE_ARRAY);
});
}
public static void doRangeIndex(RangeIndex index, StructEntity table, DBProvider dbProvider) throws DatabaseException {
final Set<Integer> indexingFields = index.sortedFields.stream().map(Field::getNumber).collect(Collectors.toSet());
final List<Field> hashedFields = index.getHashedFields();
final RangeIndexKey indexKey = new RangeIndexKey(0, new long[hashedFields.size()], index);
indexData(indexingFields, table, dbProvider, (obj, transaction) -> {
indexKey.setId(obj.getId());
HashIndexUtils.setHashValues(hashedFields, obj, indexKey.getHashedValues());
RangeIndexUtils.insertIndexedRange(index, indexKey,
obj.get(index.getBeginIndexedField().getNumber()),
obj.get(index.getEndIndexedField().getNumber()),
transaction);
});
}
public static void doRangeIndex(DBRangeIndex index, DBTable table, DBProvider dbProvider) throws DatabaseException {
final DBField[] allFields = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getFieldIds());
final StructEntity structEntity = getStructEntity(table);
final ArrayList<Field> structEntityFields = getStructEntityFields(allFields, structEntity);
final DBField[] dbHashedFields = IndexUtils.getFieldsByIds(table.getSortedFields(), index.getHashFieldIds());
ArrayList<Field> hashIndexFields = getStructEntityFields(dbHashedFields, structEntity);
final RangeIndexKey indexKey = new RangeIndexKey(0, new long[hashIndexFields.size()], index);
final Field beginField = getStructEntityField(IndexUtils.getFieldsByIds(table.getSortedFields(), index.getBeginFieldId()), structEntity);
final Field endField = getStructEntityField(IndexUtils.getFieldsByIds(table.getSortedFields(), index.getEndFieldId()), structEntity);
indexData(getLoadedFields(structEntityFields), table, dbProvider, (obj, transaction) -> {
indexKey.setId(obj.getId());
HashIndexUtils.setHashValues(hashIndexFields, obj, indexKey.getHashedValues());
RangeIndexUtils.insertIndexedRange(index,
indexKey,
obj.get(beginField.getNumber()),
obj.get(endField.getNumber()),
table.getIndexColumnFamily(),
transaction);
});
}
private static void indexData(Set<Integer> loadingFields, StructEntity table, DBProvider dbProvider, ModifierCreator recordCreator) throws DatabaseException {
DomainObjectSource domainObjectSource = new DomainObjectSource(dbProvider);
try (DBTransaction transaction = dbProvider.beginTransaction();
IteratorEntity<? extends DomainObject> iter = domainObjectSource.find(table.getObjectClass(), EmptyFilter.INSTANCE, loadingFields)) {
while (iter.hasNext()) {
recordCreator.apply(iter.next(), transaction);
}
transaction.commit();
}
}
private static void indexData(Set<Integer> loadingFields, DBTable table, DBProvider dbProvider, ModifierCreator recordCreator) throws DatabaseException {
DomainObjectSource domainObjectSource = new DomainObjectSource(dbProvider);
try (DBTransaction transaction = dbProvider.beginTransaction();
IteratorEntity<? extends DomainObject> iter = domainObjectSource.find(Schema.getTableClass(table.getName(), table.getNamespace()),
EmptyFilter.INSTANCE,
loadingFields)) {
while (iter.hasNext()) {
recordCreator.apply(iter.next(), transaction);
}
transaction.commit();
}
}
private static StructEntity getStructEntity(DBTable table) {
final Class<? extends DomainObject> tableClass = Schema.getTableClass(table.getName(), table.getNamespace());
return new StructEntity(StructEntity.getAnnotationClass(tableClass));
}
private static ArrayList<Field> getStructEntityFields(DBField[] dbFields, StructEntity structEntity) {
ArrayList<Field> fields = new ArrayList<>();
for (DBField dbField : dbFields) {
fields.add(getStructEntityField(dbField, structEntity));
}
return fields;
}
private static Field getStructEntityField(DBField dbFields, StructEntity structEntity) {
final Field[] structEntityFields = structEntity.getFields();
for (Field structEntityField : structEntityFields) {
if (structEntityField.getName().equals(dbFields.getName())) {
return structEntityField;
}
}
throw new SchemaException("Required field:" + dbFields.getName() + "from schema doesn't found in StructEntity");
}
private static HashSet<Integer> getLoadedFields(ArrayList<Field> fields) {
return fields.stream()
.map(Field::getNumber)
.collect(Collectors.toCollection(HashSet::new));
}
}
<file_sep>package com.infomaximum.database.maintenance;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.IntervalFilter;
import com.infomaximum.database.domainobject.filter.RangeFilter;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.exception.ColumnFamilyNotFoundException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.exception.InconsistentDatabaseException;
import com.infomaximum.database.schema.BaseIndex;
import com.infomaximum.database.schema.HashIndex;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.domain.ExchangeFolderReadable;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.domain.type.FormatType;
import com.infomaximum.database.domainobject.DomainDataTest;
import org.assertj.core.api.Assertions;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.HashSet;
public class DomainServiceTest extends DomainDataTest {
@FunctionalInterface
private interface Producer {
void accept() throws DatabaseException;
}
@Before
public void init() throws Exception {
super.init();
SchemaService.install(new HashSet<Class<? extends DomainObject>>() {{
add(StoreFileReadable.class);
add(ExchangeFolderReadable.class);
}}, rocksDBProvider);
}
private Schema ensureSchema() throws DatabaseException {
return Schema.read(rocksDBProvider);
}
@Test
public void createAll() throws Exception {
Schema schema = Schema.read(rocksDBProvider);
schema.dropTable("StoreFile", "com.infomaximum.store");
schema.dropTable("ExchangeFolder", "com.infomaximum.exchange");
Schema.resolve(ExchangeFolderReadable.class);
Schema.resolve(StoreFileReadable.class);
testNotWorking();
schema.createTable(Schema.getEntity(ExchangeFolderReadable.class));
schema.createTable(Schema.getEntity(StoreFileReadable.class));
new DomainService(rocksDBProvider, schema)
.setChangeMode(ChangeMode.CREATION)
.setValidationMode(true)
.setDomain(Schema.getEntity(StoreFileReadable.class))
.execute();
testWorking();
}
@Test
public void createPartial() throws Exception {
Schema schema = ensureSchema();
StructEntity entity = Schema.getEntity(StoreFileReadable.class);
new DomainService(rocksDBProvider, schema)
.setChangeMode(ChangeMode.CREATION)
.setValidationMode(true)
.setDomain(entity)
.execute();
rocksDBProvider.dropColumnFamily(entity.getColumnFamily());
testNotWorking();
}
@Test
public void createIndexAndIndexingDataAfterDropIndex() throws Exception {
Schema schema = ensureSchema();
StructEntity entity = Schema.getEntity(StoreFileReadable.class);
new DomainService(rocksDBProvider, schema)
.setChangeMode(ChangeMode.CREATION)
.setValidationMode(true)
.setDomain(entity)
.execute();
domainObjectSource.executeTransactional(transaction -> {
for (long i = 1; i < 100; ++i) {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName("Test");
obj.setSize(i);
obj.setBegin(i);
obj.setEnd(i+10);
transaction.save(obj);
}
});
rocksDBProvider.dropColumnFamily(entity.getIndexColumnFamily());
Assertions.assertThatThrownBy(() -> {
try (IteratorEntity ignored = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, 10L))) {
}
}).isExactlyInstanceOf(ColumnFamilyNotFoundException.class);
Assertions.assertThatThrownBy(() -> {
try (IteratorEntity ignored = domainObjectSource.find(StoreFileReadable.class, new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME,"tes"))) {
}
}).isExactlyInstanceOf(ColumnFamilyNotFoundException.class);
Assertions.assertThatThrownBy(() -> {
try (IteratorEntity ignored = domainObjectSource.find(StoreFileReadable.class, new IntervalFilter(StoreFileReadable.FIELD_SIZE, 35L, 50L))) {
}
}).isExactlyInstanceOf(ColumnFamilyNotFoundException.class);
Assertions.assertThatThrownBy(() -> {
try (IteratorEntity ignored = domainObjectSource.find(StoreFileReadable.class,
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 35L, 50L))) {
}
}).isExactlyInstanceOf(ColumnFamilyNotFoundException.class);
}
@Test
public void createIndexAndIndexingDataAfterDropEachIndex() throws Exception {
Schema schema = ensureSchema();
StructEntity entity = Schema.getEntity(StoreFileReadable.class);
new DomainService(rocksDBProvider, schema)
.setChangeMode(ChangeMode.CREATION)
.setValidationMode(true)
.setDomain(entity)
.execute();
domainObjectSource.executeTransactional(transaction -> {
for (long i = 1; i < 100; ++i) {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName("Test");
obj.setSize(i);
obj.setBegin(i);
obj.setEnd(i+10);
transaction.save(obj);
}
});
for (HashIndex hashIndex : entity.getHashIndexes()) {
schema.dropIndex(hashIndex, entity.getName(), entity.getNamespace());
}
try (IteratorEntity ignored = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, 10L))) {
}
}
@Test
public void validateUnknownColumnFamily() {
Schema schema = ensureSchema();
rocksDBProvider.createColumnFamily("com.infomaximum.store.StoreFile.some_prefix");
Assertions.assertThatExceptionOfType(InconsistentDatabaseException.class).isThrownBy(() -> new DomainService(rocksDBProvider, schema)
.setValidationMode(true)
.setDomain(Schema.getEntity(StoreFileReadable.class))
.execute());
}
// @Test
// public void remove() throws Exception{
// Schema schema = ensureSchema();
// Assertions.assertThat(schema.getDbSchema().getTables()).hasSize(2);
//
// new DomainService(rocksDBProvider, schema)
// .setChangeMode(ChangeMode.REMOVAL)
// .setDomain(Schema.getEntity(StoreFileReadable.class))
// .execute();
// new DomainService(rocksDBProvider, schema)
// .setChangeMode(ChangeMode.REMOVAL)
// .setDomain(Schema.getEntity(ExchangeFolderReadable.class))
// .execute();
//
// Assert.assertArrayEquals(new String[] { Schema.SERVICE_COLUMN_FAMILY}, rocksDBProvider.getColumnFamilies());
// Assertions.assertThat(schema.getDbSchema().getTables()).isEmpty();
// }
// @Test
// public void removeAndValidate() throws Exception{
// Schema schema = ensureSchema();
//
// new DomainService(rocksDBProvider, schema)
// .setChangeMode(ChangeMode.REMOVAL)
// .setValidationMode(true)
// .setDomain(Schema.getEntity(ExchangeFolderReadable.class))
// .execute();
// new DomainService(rocksDBProvider, schema)
// .setChangeMode(ChangeMode.REMOVAL)
// .setValidationMode(true)
// .setDomain(Schema.getEntity(StoreFileReadable.class))
// .execute();
//
// Assert.assertArrayEquals(new String[] { Schema.SERVICE_COLUMN_FAMILY}, rocksDBProvider.getColumnFamilies());
// Schema afterSchema = Schema.read(rocksDBProvider);
// Assertions.assertThat(schema.getDbSchema().getTables()).isEmpty();
// Assertions.assertThat(afterSchema.getDbSchema().getTables()).isEmpty();
// }
private void testNotWorking() throws Exception {
try {
testWorking();
Assert.fail();
} catch (DatabaseException ignoring) {
Assert.assertTrue(true);
}
}
private void testWorking() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName("Test");
obj.setSize(100);
obj.setFormat(FormatType.B);
obj.setSingle(false);
obj.setContentType("content");
transaction.save(obj);
});
}
private void removeIndex(BaseIndex index) {
try (DBTransaction transaction = rocksDBProvider.beginTransaction()) {
try (DBIterator it = domainObjectSource.createIterator(index.columnFamily)) {
for (KeyValue kv = it.seek(new KeyPattern(index.attendant)); kv != null ; kv = it.next()) {
transaction.delete(index.columnFamily, kv.getKey());
}
}
transaction.commit();
} catch (DatabaseException e) {
throw new RuntimeException(e);
}
}
private void checkIndexExist(StructEntity entity, Producer before, Schema schema) throws Exception {
before.accept();
new DomainService(rocksDBProvider, schema)
.setChangeMode(ChangeMode.CREATION)
.setValidationMode(true)
.setDomain(entity)
.execute();
try (IteratorEntity iter = domainObjectSource.find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_SIZE, 10L))) {
Assert.assertNotNull(iter.next());
}
try (IteratorEntity iter = domainObjectSource.find(StoreFileReadable.class, new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME,"tes"))) {
Assert.assertNotNull(iter.next());
}
try (IteratorEntity iter = domainObjectSource.find(StoreFileReadable.class, new IntervalFilter(StoreFileReadable.FIELD_SIZE, 35L, 50L))) {
long expectedId = 35;
while (iter.hasNext()) {
DomainObject st = iter.next();
Assert.assertEquals(expectedId, st.getId());
expectedId++;
}
Assert.assertEquals(50L, expectedId-1);
}
try (IteratorEntity iter = domainObjectSource.find(StoreFileReadable.class,
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 35L, 50L))) {
long expectedId = 35-9;
while (iter.hasNext()) {
DomainObject st = iter.next();
Assert.assertEquals(expectedId, st.getId());
expectedId++;
}
Assert.assertEquals(50L, expectedId);
}
}
}
<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.utils.TypeConvert;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Objects;
public class RocksDBDataSourceTest extends RocksDataTest {
private RocksDBProvider rocksDBProvider;
private static final String columnFamily = "test_cf";
private static final long startValue = 0x8000000080000000L;
private static final int valueCount = 100;
@Before
public void init() throws Exception {
super.init();
rocksDBProvider = new RocksDataBaseBuilder().withPath(pathDataBase).build();
}
@After
public void destroy() throws Exception {
rocksDBProvider.close();
super.destroy();
}
@Test
public void seekWithStrictMatching() throws Exception {
fillData();
try (DBIterator iterator = rocksDBProvider.createIterator(columnFamily)) {
KeyValue keyValue = iterator.seek(new KeyPattern(TypeConvert.pack(0x6000000080000000L)));
Assert.assertNull(keyValue);
byte[] pattern = TypeConvert.pack(0x6000000080000001L);
keyValue = iterator.seek(new KeyPattern(pattern));
Assert.assertArrayEquals(pattern, keyValue.getKey());
keyValue = iterator.seek(new KeyPattern(TypeConvert.pack(0x7000000080000000L), -1));
Assert.assertArrayEquals(TypeConvert.pack(0x7000000080000001L), keyValue.getKey());
pattern = TypeConvert.pack(0x6000000080000001L);
keyValue = iterator.seek(new KeyPattern(pattern, -1));
Assert.assertArrayEquals(pattern, keyValue.getKey());
}
}
@Test
public void step() throws Exception {
fillData();
// test iterate by previous
try (DBIterator iterator = rocksDBProvider.createIterator(columnFamily)) {
iterator.seek(new KeyPattern(TypeConvert.pack(0xA0000000)));
for (long i = startValue + valueCount - 1; i >= startValue; --i) {
KeyValue keyValue = iterator.step(DBIterator.StepDirection.BACKWARD);
Assert.assertEquals(i, Objects.requireNonNull(TypeConvert.unpackLong(keyValue.getKey())).longValue());
}
}
// test iterate by next
try (DBIterator iterator = rocksDBProvider.createIterator(columnFamily)) {
iterator.seek(new KeyPattern(TypeConvert.pack(0x70000000)));
for (long i = startValue; i < startValue + valueCount; ++i) {
KeyValue keyValue = iterator.step(DBIterator.StepDirection.FORWARD);
Assert.assertEquals(i, Objects.requireNonNull(TypeConvert.unpackLong(keyValue.getKey())).longValue());
}
}
try (DBIterator iterator = rocksDBProvider.createIterator(columnFamily)) {
final KeyValue firstKeyValue = iterator.seek(null);
Assert.assertArrayEquals(TypeConvert.pack(0x6000000080000001L), firstKeyValue.getKey());
KeyValue keyValue = iterator.step(DBIterator.StepDirection.BACKWARD);
Assert.assertNull(keyValue);
final KeyValue lastKeyValue = iterator.seek(new KeyPattern(TypeConvert.pack(0xA0000000)));
Assert.assertArrayEquals(TypeConvert.pack(0xA000000080000001L), lastKeyValue.getKey());
keyValue = iterator.step(DBIterator.StepDirection.FORWARD);
Assert.assertNull(keyValue);
}
}
private void fillData() {
rocksDBProvider.createColumnFamily(columnFamily);
try (DBTransaction transaction = rocksDBProvider.beginTransaction()) {
transaction.put(columnFamily, TypeConvert.pack(0x6000000080000001L), TypeConvert.EMPTY_BYTE_ARRAY);
transaction.put(columnFamily, TypeConvert.pack(0x7000000080000001L), TypeConvert.EMPTY_BYTE_ARRAY);
transaction.put(columnFamily, TypeConvert.pack(0xA000000080000001L), TypeConvert.EMPTY_BYTE_ARRAY);
for (int i = 0; i < valueCount; i++) {
transaction.put(columnFamily, TypeConvert.pack(startValue + i), TypeConvert.EMPTY_BYTE_ARRAY);
}
transaction.commit();
}
}
}
<file_sep>package com.infomaximum.database.domainobject.engine;
import com.infomaximum.database.RecordSource;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.domain.SelfDependencyReadable;
import org.junit.jupiter.api.Test;
public class SelfDependencyTest extends StoreFileDataTest {
@Test
public void dependencyOnOtherObject() throws Exception {
createDomain(SelfDependencyReadable.class);
recordSource = new RecordSource(rocksDBProvider);
long recordId = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord("SelfDependency", "com.infomaximum.self", new String[] {}, new Object[] {}));
recordSource.executeTransactional(transaction -> {
transaction.insertRecord("SelfDependency", "com.infomaximum.self", new Object[] {recordId});
});
}
@Test
public void updateDependencyOnTheObject() throws Exception {
createDomain(SelfDependencyReadable.class);
recordSource = new RecordSource(rocksDBProvider);
long recordId = recordSource.executeFunctionTransactional(transaction ->
transaction.insertRecord("SelfDependency", "com.infomaximum.self", new String[] {}, new Object[] {}));
recordSource.executeTransactional(transaction -> {
transaction.updateRecord("SelfDependency", "com.infomaximum.self", recordId, new String[] {"dependence"}, new Object[] {recordId});
});
}
}
<file_sep>package com.infomaximum.database.domainobject.filter;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
public class PrefixFilter implements Filter {
private final Set<Integer> fieldNames;
private String fieldValue;
public PrefixFilter(int fieldNumber, String fieldValue) {
this.fieldNames = Collections.singleton(fieldNumber);
this.fieldValue = fieldValue;
}
public PrefixFilter(Collection<Integer> fieldNames, String fieldValue) {
this.fieldNames = Collections.unmodifiableSet(new HashSet<>(fieldNames));
this.fieldValue = fieldValue;
}
public Set<Integer> getFieldNames() {
return fieldNames;
}
public String getFieldValue() {
return fieldValue;
}
public void setFieldValue(String fieldValue) {
this.fieldValue = fieldValue;
}
}
<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.infomaximum.database.domainobject.DataEnumerable;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.IdFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.database.utils.key.FieldKey;
import java.lang.reflect.Constructor;
import java.util.NoSuchElementException;
import java.util.Set;
public class IdIterator<E extends DomainObject> implements IteratorEntity<E> {
private final DataEnumerable dataEnumerable;
private final Constructor<E> constructor;
private final Set<Integer> loadingFields;
private final DBIterator dataIterator;
private final StructEntity entity;
private final DataEnumerable.NextState state;
private final long endId;
public IdIterator(DataEnumerable dataEnumerable, Class<E> clazz, Set<Integer> loadingFields, IdFilter filter) throws DatabaseException {
this.dataEnumerable = dataEnumerable;
this.constructor = DomainObject.getConstructor(clazz);
this.loadingFields = loadingFields;
this.endId = filter.getToId();
this.entity = Schema.getEntity(clazz);
this.dataIterator = dataEnumerable.createIterator(entity.getColumnFamily());
KeyPattern dataKeyPattern;
if (loadingFields != null) {
dataKeyPattern = new KeyPattern(FieldKey.buildKeyPrefix(filter.getFromId()), 0, FieldKey.buildInnerPatterns(entity.getFieldNames(loadingFields)));
} else {
dataKeyPattern = new KeyPattern(FieldKey.buildKeyPrefix(filter.getFromId()), 0);
}
this.state = dataEnumerable.seek(dataIterator, dataKeyPattern, entity);
if (endReached()) {
state.reset();
close();
}
}
@Override
public boolean hasNext() {
return !state.isEmpty();
}
@Override
public E next() throws DatabaseException {
if (state.isEmpty()) {
throw new NoSuchElementException();
}
E result = dataEnumerable.nextObject(constructor, loadingFields, dataIterator, state, entity);
if (endReached()) {
state.reset();
close();
}
return result;
}
@Override
public void close() throws DatabaseException {
dataIterator.close();
}
private boolean endReached() {
return state.isEmpty() || state.getNextId() > endId;
}
}
<file_sep>package com.infomaximum.database.utils;
public class ByteUtils {
public static boolean startsWith(byte[] prefix, byte[] source) {
return startsWith(prefix, 0, prefix.length, source);
}
public static boolean startsWith(byte[] prefix, int offset, int len, byte[] source) {
if (len > (source.length - offset)) {
return false;
}
for (int i = 0; i < len; ++i, ++offset) {
if (source[offset] != prefix[i]) {
return false;
}
}
return true;
}
public static boolean equals(byte[] left, int lfrom, int lto, byte[] right, int rfrom, int rto) {
if ((lto - lfrom) != (rto - rfrom)) {
return false;
}
for (; lfrom < lto; ++lfrom, ++rfrom) {
if (left[lfrom] != right[rfrom]) {
return false;
}
}
return true;
}
public static boolean endsWith(byte[] suffix, byte[] source) {
if (suffix.length > source.length) {
return false;
}
int j = source.length - suffix.length;
for (int i = 0; i < suffix.length; ++i, ++j) {
if (source[j] != suffix[i]) {
return false;
}
}
return true;
}
public static boolean isNullOrEmpty(byte[] value) {
return value == null || value.length == 0;
}
public static int indexOf(byte value, byte[] source) {
for (int i = 0; i < source.length; ++i) {
if (value == source[i]) {
return i;
}
}
return -1;
}
}
<file_sep>package com.infomaximum.database.utils;
import com.infomaximum.database.exception.SchemaException;
import com.infomaximum.database.schema.Field;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.database.schema.dbstruct.DBField;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
public class IndexUtils {
public static List<Field> buildIndexedFields(int[] indexedFields, StructEntity parent) {
return Arrays.stream(indexedFields)
.mapToObj(parent::getField)
.sorted(Comparator.comparing(f -> f.getName().toLowerCase())) //Сортируем, что бы хеш не ломался из-за перестановки местами полей
.collect(Collectors.toList());
}
public static byte[] buildFieldsHashCRC32(List<Field> indexedFields) {
StringBuilder stringBuilder = new StringBuilder();
indexedFields.forEach(field -> stringBuilder.append(field.getName()).append(':').append(field.getType().getName()).append('.'));
return TypeConvert.packCRC32(stringBuilder.toString());
}
public static byte[] buildFieldsHashCRC32(DBField[] indexedFields) {
StringBuilder stringBuilder = new StringBuilder();
Arrays.stream(indexedFields).forEach(field -> stringBuilder.append(field.getName()).append(':').append(field.getType().getName()).append('.'));
return TypeConvert.packCRC32(stringBuilder.toString());
}
public static DBField[] getFieldsByIds(List<DBField> tableFields, int... destinationFields) {
DBField[] result = new DBField[destinationFields.length];
for (int i = 0; i < destinationFields.length; i++) {
int destFieldId = destinationFields[i];
result[i] = getFieldsByIds(tableFields, destFieldId);
}
return result;
}
public static DBField getFieldsByIds(List<DBField> tableFields, int destinationField) {
return tableFields.stream()
.filter(field -> destinationField == field.getId())
.findAny()
.orElseThrow(() -> new SchemaException("Destination field id=" + destinationField + " doesn't found in table"));
}
}
<file_sep>package com.infomaximum.database.exception;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBTable;
import java.util.Set;
import java.util.stream.Collectors;
public class IndexNotFoundException extends DatabaseException {
public IndexNotFoundException(String indexName, Class<? extends DomainObject> domainClass) {
super("Not found " + indexName + " in " + domainClass);
}
public IndexNotFoundException(Set<Integer> indexedFieldIds, DBTable table) {
super("Not found " +
indexedFieldIds.stream()
.map(table::getField)
.map(DBField::getName)
.collect(Collectors.joining(", ")) +
" in " + table.getNamespace() + "." + table.getName());
}
}
<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.infomaximum.database.domainobject.DataEnumerable;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.Field;
import com.infomaximum.database.schema.HashIndex;
import com.infomaximum.database.utils.HashIndexUtils;
import com.infomaximum.database.utils.key.HashIndexKey;
import java.util.*;
public class HashIndexIterator<E extends DomainObject> extends BaseIndexIterator<E> {
private final List<Field> checkedFilterFields;
private final List<Object> filterValues;
private KeyValue indexKeyValue;
public HashIndexIterator(DataEnumerable dataEnumerable, Class<E> clazz, Set<Integer> loadingFields, HashFilter filter) throws DatabaseException {
super(dataEnumerable, clazz, loadingFields);
Map<Integer, Object> filters = filter.getValues();
final HashIndex index = entity.getHashIndex(filters.keySet());
List<Field> filterFields = null;
List<Object> filterValues = null;
long[] values = new long[index.sortedFields.size()];
for (int i = 0; i < index.sortedFields.size(); ++i) {
Field field = index.sortedFields.get(i);
Object value = filters.get(field.getNumber());
if (value != null) {
field.throwIfNotMatch(value.getClass());
}
values[i] = HashIndexUtils.buildHash(field.getType(), value, field.getConverter());
if (HashIndexUtils.toLongCastable(field.getType())) {
continue;
}
if (filterFields == null) {
filterFields = new ArrayList<>();
filterValues = new ArrayList<>();
}
filterFields.add(field);
filterValues.add(value);
}
this.checkedFilterFields = filterFields != null ? filterFields : Collections.emptyList();
this.filterValues = filterValues;
this.dataKeyPattern = buildDataKeyPattern(filterFields, loadingFields, entity);
if (this.dataKeyPattern != null) {
this.dataIterator = dataEnumerable.createIterator(entity.getColumnFamily());
}
this.indexIterator = dataEnumerable.createIterator(index.columnFamily);
this.indexKeyValue = indexIterator.seek(HashIndexKey.buildKeyPattern(index, values));
nextImpl();
}
@Override
void nextImpl() throws DatabaseException {
while (indexKeyValue != null) {
nextElement = findObject(HashIndexKey.unpackId(indexKeyValue.getKey()));
indexKeyValue = indexIterator.next();
if (nextElement != null) {
return;
}
}
nextElement = null;
close();
}
@Override
boolean checkFilter(E obj) throws DatabaseException {
for (int i = 0; i < checkedFilterFields.size(); ++i) {
Field field = checkedFilterFields.get(i);
if (!HashIndexUtils.equals(field.getType(), filterValues.get(i), obj.get(field.getNumber()))) {
return false;
}
}
return true;
}
}
<file_sep>package com.infomaximum.database.schema.dbstruct;
import com.infomaximum.database.exception.SchemaException;
import net.minidev.json.JSONArray;
import net.minidev.json.JSONObject;
import net.minidev.json.parser.JSONParser;
import net.minidev.json.parser.ParseException;
import java.util.ArrayList;
import java.util.List;
class JsonUtils {
@FunctionalInterface
interface ObjectConverter<T> {
T convert(JSONObject value) throws SchemaException;
}
static <T> T parse(String source, Class<T> type) throws SchemaException {
try {
Object tablesJson = new JSONParser(JSONParser.DEFAULT_PERMISSIVE_MODE).parse(source);
return castTo(type, tablesJson);
} catch (ParseException e) {
throw new SchemaException(e);
}
}
static <T> T getValue(String key, Class<T> type, JSONObject source) throws SchemaException {
Object val = source.get(key);
if (val == null) {
throw new SchemaException("Value of '" + key + "' is null");
}
return castTo(type, val);
}
static <T> T getValueOrDefault(String key, Class<T> type, JSONObject source, T defaultValue) throws SchemaException {
Object val = source.get(key);
return val != null ? castTo(type, val) : defaultValue;
}
static int[] getIntArrayValue(String key, JSONObject source) throws SchemaException {
JSONArray array = getValue(key, JSONArray.class, source);
int[] value = new int[array.size()];
for (int i = 0; i < array.size(); ++i) {
value[i] = castTo(Integer.class, array.get(i));
}
return value;
}
static <T> List<T> toList(String key, JSONObject source, ObjectConverter<T> converter) throws SchemaException {
return toList(getValue(key, JSONArray.class, source), converter);
}
static <T> List<T> toList(JSONArray source, ObjectConverter<T> converter) throws SchemaException {
List<T> result = new ArrayList<>(source.size());
for (Object item : source) {
result.add(converter.convert(castTo(JSONObject.class, item)));
}
return result;
}
static <T extends DBObject> JSONArray toJsonArray(List<T> source) {
JSONArray result = new JSONArray();
for (T item : source) {
result.add(item.toJson());
}
return result;
}
static <T extends DBObject> JSONArray toJsonArray(int[] source) {
JSONArray result = new JSONArray();
for (int item : source) {
result.add(item);
}
return result;
}
private static <T> T castTo(Class<T> type, Object value) throws SchemaException {
if (value.getClass() != type) {
throw new SchemaException("Unexpected type of value=" + value + ", expected=" + type + ", actual=" + value.getClass());
}
return (T) value;
}
}
<file_sep>package com.infomaximum.database.exception;
public class ClosedObjectException extends RuntimeException {
private final Class causeClass;
public ClosedObjectException(Class causeClass) {
this.causeClass = causeClass;
}
public Class getCauseClass() {
return causeClass;
}
}
<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.utils.PathUtils;
import com.infomaximum.database.utils.TempLibraryCleaner;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.rocksdb.options.columnfamily.ColumnFamilyConfig;
import com.infomaximum.rocksdb.options.columnfamily.ColumnFamilyConfigService;
import org.rocksdb.*;
import org.rocksdb.util.SizeUnit;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
public class RocksDataBaseBuilder {
private Path path;
private ColumnFamilyConfigService columnFamilyConfigService;
public RocksDataBaseBuilder withPath(Path path) {
this.path = path.toAbsolutePath();
return this;
}
public RocksDataBaseBuilder withConfigColumnFamilies(Map<String, ColumnFamilyConfig> configuredColumnFamilies) {
columnFamilyConfigService = new ColumnFamilyConfigService(configuredColumnFamilies);
return this;
}
public RocksDBProvider build() throws DatabaseException {
TempLibraryCleaner.clear();
PathUtils.checkPath(path);
try (DBOptions options = buildOptions()) {
List<ColumnFamilyDescriptor> columnFamilyDescriptors = getColumnFamilyDescriptors();
if (Objects.nonNull(columnFamilyConfigService)) {
columnFamilyConfigService.applySettings(columnFamilyDescriptors);
}
List<ColumnFamilyHandle> columnFamilyHandles = new ArrayList<>();
OptimisticTransactionDB rocksDB = OptimisticTransactionDB.open(options, path.toString(), columnFamilyDescriptors, columnFamilyHandles);
ConcurrentMap<String, ColumnFamilyHandle> columnFamilies = new ConcurrentHashMap<>();
for (int i = 0; i < columnFamilyDescriptors.size(); i++) {
String columnFamilyName = TypeConvert.unpackString(columnFamilyDescriptors.get(i).getName());
ColumnFamilyHandle columnFamilyHandle = columnFamilyHandles.get(i);
columnFamilies.put(columnFamilyName, columnFamilyHandle);
}
return new RocksDBProvider(rocksDB, columnFamilies);
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
private DBOptions buildOptions() throws RocksDBException {
final String optionsFilePath = path.toString() + ".ini";
DBOptions options = new DBOptions();
if (Files.exists(Paths.get(optionsFilePath))) {
final List<ColumnFamilyDescriptor> ignoreDescs = new ArrayList<>();
OptionsUtil.loadOptionsFromFile(optionsFilePath, Env.getDefault(), options, ignoreDescs, false);
} else {
options
.setInfoLogLevel(InfoLogLevel.WARN_LEVEL)
.setMaxTotalWalSize(100L * SizeUnit.MB);
}
return options.setCreateIfMissing(true);
}
private List<ColumnFamilyDescriptor> getColumnFamilyDescriptors() throws RocksDBException {
List<ColumnFamilyDescriptor> columnFamilyDescriptors = new ArrayList<>();
try (Options options = new Options()) {
for (byte[] columnFamilyName : RocksDB.listColumnFamilies(options, path.toString())) {
columnFamilyDescriptors.add(new ColumnFamilyDescriptor(columnFamilyName));
}
}
if (columnFamilyDescriptors.isEmpty()) {
columnFamilyDescriptors.add(new ColumnFamilyDescriptor(TypeConvert.pack(RocksDBProvider.DEFAULT_COLUMN_FAMILY)));
}
return columnFamilyDescriptors;
}
}<file_sep>package com.infomaximum.database.domainobject.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.RecordIterator;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.filter.*;
import com.infomaximum.database.exception.ForeignDependencyException;
import com.infomaximum.database.utils.TableUtils;
import com.infomaximum.domain.StoreFileReadable;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class DataCommandInsertTest extends StoreFileDataTest {
@Test
public void insertSimple() throws Exception {
String[] fields = new String[]{"name"};
Object[] values = new Object[]{"objName"};
long id = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord("StoreFile", "com.infomaximum.store", fields, values));
assertThatDBContainsRecord(id, fields, values, "StoreFile", "com.infomaximum.store");
}
@Test
public void insertWithTwoValueFields() throws Exception {
String[] fields = new String[]{"size", "end_time"};
Object[] values = new Object[]{3L, Instant.now()};
long id = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord("StoreFile", "com.infomaximum.store", fields, values));
assertThatDBContainsRecord(id, fields, values, "StoreFile", "com.infomaximum.store");
}
@Test
public void insertWithAllFields() throws Exception {
String[] fields = new String[]{"size",
"name",
"data",
"single",
"double",
"begin_time",
"end_time",
"begin",
"end",
"local_begin",
"local_end"};
Object[] values = new Object[]{3L,
"name",
"bytes".getBytes(),
false,
123.34,
Instant.now(),
Instant.now(),
12L,
14L,
LocalDateTime.now(),
LocalDateTime.now(),
};
long id = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord("StoreFile", "com.infomaximum.store", fields, values));
assertThatDBContainsRecord(id, fields, values, "StoreFile", "com.infomaximum.store");
}
@Test
public void insertWithAllAndDependencyFields() throws Exception {
String tableName = "StoreFile";
String namespace = "com.infomaximum.store";
String[] folderFields = new String[] {"uuid"};
String[] folderFieldValues = new String[] {"uuid"};
long folderId = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord("ExchangeFolder", "com.infomaximum.exchange", folderFields, folderFieldValues));
LocalDateTime localBegin = LocalDateTime.ofEpochSecond(1604589065, 0, ZoneOffset.UTC);
LocalDateTime localEnd = LocalDateTime.ofEpochSecond(1604599965, 0, ZoneOffset.UTC);
Instant beginTime = Instant.ofEpochSecond(1604589065);
Instant endTime = Instant.ofEpochSecond(1604599965);
String[] fields = new String[]{"size",
"name",
"type",
"data",
"single",
"folder_id",
"double",
"begin_time",
"end_time",
"begin",
"end",
"local_begin",
"local_end"};
Object[] values = new Object[]{3L,
"name",
"nameType",
"bytes".getBytes(),
false,
folderId,
123.34,
beginTime,
endTime,
12L,
14L,
localBegin,
localEnd,
};
long id = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord(tableName, namespace, fields, values));
assertThatDBContainsRecord(id, fields, values, tableName, namespace);
Record expected = buildRecord(id, fields, values, tableName, namespace);
assertThatFilteredRecordsContainsExactly(Collections.singletonList(expected), tableName, namespace,
new HashFilter(StoreFileReadable.FIELD_SIZE, 3L),
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "name"),
new HashFilter(StoreFileReadable.FIELD_SIZE, 3L).appendField(StoreFileReadable.FIELD_FILE_NAME, "name"),
new HashFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, localBegin),
new HashFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, localBegin),
new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME, "na"),
new PrefixFilter(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_CONTENT_TYPE), "nam"),
new IntervalFilter(StoreFileReadable.FIELD_SIZE, 2L, 4L),
new IntervalFilter(StoreFileReadable.FIELD_DOUBLE, 120d, 124d),
new IntervalFilter(StoreFileReadable.FIELD_BEGIN_TIME, beginTime.minusMillis(10000), endTime),
new IntervalFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, localBegin.minusMinutes(1), localEnd),
new IntervalFilter(StoreFileReadable.FIELD_SIZE, 2L, 4L).appendHashedField(StoreFileReadable.FIELD_FILE_NAME, "name"),
new IntervalFilter(StoreFileReadable.FIELD_SIZE, 2L, 4L).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, folderId),
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 11L, 13L),
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 11L, 13L).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, folderId),
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN_TIME, StoreFileReadable.FIELD_END_TIME), beginTime.minusMillis(10000), beginTime.plusMillis(1)).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, folderId)
);
}
@Test
public void insertManyObjectsWithAllAndDependencyFields() throws Exception {
String tableName = "StoreFile";
String namespace = "com.infomaximum.store";
String[] folderFields = new String[] {"uuid"};
String[] folderFieldValues = new String[] {"uuid"};
long folderId = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord("ExchangeFolder", "com.infomaximum.exchange", folderFields, folderFieldValues));
LocalDateTime localBegin = LocalDateTime.ofEpochSecond(1604589065, 0, ZoneOffset.UTC);
LocalDateTime localEnd = LocalDateTime.ofEpochSecond(1604599965, 0, ZoneOffset.UTC);
Instant beginTime = Instant.ofEpochSecond(1604589065);
Instant endTime = Instant.ofEpochSecond(1604599965);
String[] fields = new String[]{"size",
"name",
"type",
"data",
"single",
"folder_id",
"double",
"begin_time",
"end_time",
"begin",
"end",
"local_begin",
"local_end"};
Object[] values = new Object[]{3L,
"name",
"nameType",
"bytes".getBytes(),
false,
folderId,
123.34,
beginTime,
endTime,
12L,
14L,
localBegin,
localEnd,
};
long id = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord(tableName, namespace, fields, values));
insertStoreFilesData(tableName, namespace);
assertThatDBContainsRecord(id, fields, values, tableName, namespace);
Record expected = buildRecord(id, fields, values, tableName, namespace);
assertThatFilteredRecordsContainsExactly(Collections.singletonList(expected), tableName, namespace,
new HashFilter(StoreFileReadable.FIELD_SIZE, 3L),
new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "name"),
new HashFilter(StoreFileReadable.FIELD_SIZE, 3L).appendField(StoreFileReadable.FIELD_FILE_NAME, "name"),
new HashFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, localBegin),
new HashFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, localBegin),
new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME, "na"),
new PrefixFilter(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_CONTENT_TYPE), "nam"),
new IntervalFilter(StoreFileReadable.FIELD_SIZE, 2L, 4L),
new IntervalFilter(StoreFileReadable.FIELD_DOUBLE, 120d, 124d),
new IntervalFilter(StoreFileReadable.FIELD_BEGIN_TIME, beginTime.minusMillis(10000), endTime),
new IntervalFilter(StoreFileReadable.FIELD_LOCAL_BEGIN, localBegin.minusMinutes(1), localEnd),
new IntervalFilter(StoreFileReadable.FIELD_SIZE, 2L, 4L).appendHashedField(StoreFileReadable.FIELD_FILE_NAME, "name"),
new IntervalFilter(StoreFileReadable.FIELD_SIZE, 2L, 4L).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, folderId),
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 11L, 13L),
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 11L, 13L).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, folderId),
new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN_TIME, StoreFileReadable.FIELD_END_TIME), beginTime.minusMillis(10000), beginTime.plusMillis(1)).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, folderId)
);
}
@Test
public void failForeignDependencyExceptionNotExistingReferencingObject() {
String tableName = "StoreFile";
String namespace = "com.infomaximum.store";
String[] fields = new String[]{"size",
"folder_id"};
Object[] values = new Object[]{3L,
3L
};
Assertions.assertThatThrownBy(() -> recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord(tableName, namespace, fields, values)))
.isInstanceOf(ForeignDependencyException.class);
}
private void insertStoreFilesData(String tableName, String namespace) throws Exception {
String[] folderFields = new String[] {"uuid"};
String[] folderFieldValues = new String[] {"uuid"};
long folderId = recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord("ExchangeFolder", "com.infomaximum.exchange", folderFields, folderFieldValues));
String[] fields = new String[]{"size",
"name",
"type",
"data",
"single",
"folder_id",
"double",
"begin_time",
"end_time",
"begin",
"end",
"local_begin",
"local_end"};
Object[] values = new Object[]{5L,
"name2",
"nameType2",
"bytes2".getBytes(),
true,
folderId,
13.34,
Instant.now(),
Instant.now(),
110L,
111L,
LocalDateTime.now(),
LocalDateTime.now(),
};
recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord(tableName, namespace, fields, values));
String[] fields2 = new String[]{"size",
"name",
"type",
"data",
"single",
"folder_id",
"double",
"begin_time",
"end_time",
"begin",
"end",
"local_begin",
"local_end"};
Object[] values2 = new Object[]{6L,
"name3",
"nameType3",
"bytes3".getBytes(),
true,
folderId,
1311.34,
Instant.now(),
Instant.now(),
10L,
11L,
LocalDateTime.now(),
LocalDateTime.now(),
};
recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord(tableName, namespace, fields2, values2));
String[] fields3 = new String[]{"size",
"name",
"type",
"data",
"single",
"folder_id",
"double",
"begin_time",
"end_time",
"begin",
"end",
"local_begin",
"local_end"};
Object[] values3 = new Object[]{7L,
"name4",
"nameType3",
"bytes3".getBytes(),
true,
folderId,
11.34,
Instant.now(),
Instant.now(),
25L,
45L,
LocalDateTime.now(),
LocalDateTime.now(),
};
recordSource.executeFunctionTransactional(dataCommand ->
dataCommand.insertRecord(tableName, namespace, fields3, values3));
}
private Record buildRecord(long id, String[] fields, Object[] values, String table, String namespace) {
Object[] sortedValues = TableUtils.sortValuesByFieldOrder(table, namespace, fields, values, schema.getDbSchema());
return new Record(id, sortedValues);
}
private void assertThatFilteredRecordsContainsExactly(List<Record> expected, String table, String namespace, Filter... filters) {
for (Filter filter : filters) {
assertIndexFilter(expected, filter, table, namespace);
}
}
private void assertThatDBContainsRecord(long id, String[] fields, Object[] values, String table, String namespace) {
try (RecordIterator i = recordSource.select(table, namespace)) {
while (i.hasNext()) {
Record record = i.next();
if (record.getId() == id) {
Object[] actualValues = TableUtils.sortValuesByFieldOrder(table, namespace, fields, values, schema.getDbSchema());
Assertions.assertThat(record.getValues()).isEqualTo(actualValues);
return;
}
}
}
Assertions.fail("БД не содержит заданный record");
}
private void assertIndexFilter(List<Record> expected, Filter filter, String table, String namespace) {
List<Record> actual = new ArrayList<>();
try (RecordIterator i = selectIterator(table, namespace, filter)){
while (i.hasNext()) {
actual.add(i.next());
}
}
Assertions.assertThat(actual).as("TableName: %s, Namespace: %s, Filter: %s", table, namespace, filter.getClass().getName()).containsAll(expected);
}
private RecordIterator selectIterator(String table, String namespace, Filter filter) {
if (filter instanceof HashFilter) {
return recordSource.select(table, namespace, (HashFilter) filter);
}
if (filter instanceof PrefixFilter) {
return recordSource.select(table, namespace, (PrefixFilter) filter);
}
if (filter instanceof IntervalFilter) {
return recordSource.select(table, namespace, (IntervalFilter) filter);
}
if (filter instanceof RangeFilter) {
return recordSource.select(table, namespace, (RangeFilter) filter);
}
throw new UnsupportedOperationException(Filter.class.getName());
}
}<file_sep>package com.infomaximum.domain;
import com.infomaximum.database.anotation.Entity;
import com.infomaximum.database.anotation.Field;
import com.infomaximum.database.anotation.HashIndex;
import com.infomaximum.database.domainobject.DomainObject;
import java.time.Instant;
/**
* Created by kris on 27.06.17.
*/
@Entity(
namespace = "com.infomaximum.exchange",
name = "ExchangeFolder",
fields = {
@Field(number = ExchangeFolderReadable.FIELD_UUID, name = "uuid", type = String.class),
@Field(number = ExchangeFolderReadable.FIELD_USER_EMAIL, name = "email", type = String.class),
@Field(number = ExchangeFolderReadable.FIELD_SYNC_DATE, name = "date", type = Instant.class),
@Field(number = ExchangeFolderReadable.FIELD_SYNC_STATE, name = "state", type = String.class),
@Field(number = ExchangeFolderReadable.FIELD_PARENT_ID, name = "parent_id", type = Long.class, foreignDependency = ExchangeFolderReadable.class),
},
hashIndexes = {
@HashIndex(fields = {ExchangeFolderReadable.FIELD_USER_EMAIL, ExchangeFolderReadable.FIELD_UUID})
}
)
public class ExchangeFolderReadable extends DomainObject {
public final static int FIELD_UUID = 0;
public final static int FIELD_USER_EMAIL = 1;
public final static int FIELD_SYNC_DATE = 2;
public final static int FIELD_SYNC_STATE = 3;
public final static int FIELD_PARENT_ID = 4;
public ExchangeFolderReadable(long id){
super(id);
}
public String getUuid() {
return getString(FIELD_UUID);
}
public String getUserEmail() {
return getString(FIELD_USER_EMAIL);
}
public Instant getSyncDate() {
return getInstant(FIELD_SYNC_DATE);
}
public String getSyncState() {
return getString(FIELD_SYNC_STATE);
}
public Long getParentId() {
return getLong(FIELD_PARENT_ID);
}
}<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.exception.ColumnFamilyNotFoundException;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.DBProvider;
import com.infomaximum.database.provider.DBTransaction;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.rocksdb.backup.RocksDBCreateBackup;
import com.infomaximum.rocksdb.options.columnfamily.ColumnFamilyConfig;
import com.infomaximum.rocksdb.options.columnfamily.ColumnFamilyConfigMapper;
import org.rocksdb.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentMap;
public class RocksDBProvider implements DBProvider, AutoCloseable {
public static final String DEFAULT_COLUMN_FAMILY = new String(RocksDB.DEFAULT_COLUMN_FAMILY);
private final OptimisticTransactionDB rocksDB;
private final ConcurrentMap<String, ColumnFamilyHandle> columnFamilies;
private final WriteOptions writeOptions = new WriteOptions();
private final ReadOptions readOptions = new ReadOptions();
private final SequenceManager sequenceManager;
RocksDBProvider(OptimisticTransactionDB rocksDB, ConcurrentMap<String, ColumnFamilyHandle> columnFamilies) throws DatabaseException {
this.rocksDB = rocksDB;
this.columnFamilies = columnFamilies;
this.sequenceManager = new SequenceManager(this);
}
public RocksDB getRocksDB() {
return rocksDB;
}
@Override
public DBTransaction beginTransaction() throws DatabaseException {
return new RocksDBTransaction(rocksDB.beginTransaction(writeOptions), this);
}
@Override
public DBIterator createIterator(String columnFamily) throws DatabaseException {
return new RocksDBIterator(getRocksDB().newIterator(getColumnFamilyHandle(columnFamily), readOptions));
}
@Override
public byte[] getValue(String columnFamily, final byte[] key) throws DatabaseException {
try {
return getRocksDB().get(getColumnFamilyHandle(columnFamily), readOptions, key);
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
@Override
public boolean containsColumnFamily(String name) throws DatabaseException {
return columnFamilies.containsKey(name);
}
@Override
public String[] getColumnFamilies() {
int size = columnFamilies.size();
if (columnFamilies.containsKey(RocksDBProvider.DEFAULT_COLUMN_FAMILY)) {
--size;
}
String[] columns = new String[size];
int pos = 0;
for (Map.Entry<String, ColumnFamilyHandle> cf : columnFamilies.entrySet()) {
if (!cf.getKey().equals(RocksDBProvider.DEFAULT_COLUMN_FAMILY)) {
columns[pos++] = cf.getKey();
}
}
return columns;
}
@Override
public boolean containsSequence(String name) throws DatabaseException {
return sequenceManager.getSequence(name) != null;
}
@Override
public void createSequence(String name) throws DatabaseException {
sequenceManager.createSequence(name);
}
@Override
public void dropSequence(String name) throws DatabaseException {
sequenceManager.dropSequence(name);
}
@Override
public void createColumnFamily(String columnFamilyName) throws DatabaseException {
try {
ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor(TypeConvert.pack(columnFamilyName));
ColumnFamilyHandle columnFamilyHandle = getRocksDB().createColumnFamily(columnFamilyDescriptor);
if (columnFamilies.putIfAbsent(columnFamilyName, columnFamilyHandle) != null) {
try (ColumnFamilyHandle handle = columnFamilyHandle) {
getRocksDB().dropColumnFamily(handle);
}
}
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
@Override
public void createColumnFamily(String columnFamilyName, ColumnFamilyConfig options) throws DatabaseException {
try {
ColumnFamilyDescriptor columnFamilyDescriptor = new ColumnFamilyDescriptor(
TypeConvert.pack(columnFamilyName),
ColumnFamilyConfigMapper.toRocksDbOpt(options)
);
ColumnFamilyHandle columnFamilyHandle = getRocksDB().createColumnFamily(columnFamilyDescriptor);
if (columnFamilies.putIfAbsent(columnFamilyName, columnFamilyHandle) != null) {
try (ColumnFamilyHandle handle = columnFamilyHandle) {
getRocksDB().dropColumnFamily(handle);
}
}
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
@Override
public void dropColumnFamily(String columnFamilyName) throws DatabaseException {
try (ColumnFamilyHandle columnFamilyHandle = columnFamilies.remove(columnFamilyName)) {
if (columnFamilyHandle != null) {
getRocksDB().dropColumnFamily(columnFamilyHandle);
}
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
@Override
public void compactRange() throws DatabaseException {
try {
rocksDB.compactRange();
} catch (RocksDBException e) {
throw new DatabaseException(e);
}
}
public RocksDBCreateBackup getRocksDBBackup() {
return new RocksDBCreateBackup(rocksDB);
}
@Override
public void close() {
List<AbstractNativeReference> refs = new ArrayList<>(columnFamilies.size() + 3);
refs.add(readOptions);
refs.add(writeOptions);
for (Map.Entry<String, ColumnFamilyHandle> entry : columnFamilies.entrySet()) {
refs.add(entry.getValue());
}
refs.add(rocksDB);
for (int i = 0; i < refs.size(); ++i) {
try {
refs.get(i).close();
} catch (Throwable e) {
try {
for (++i; i < refs.size(); ++i) {
refs.get(i).close();
}
} catch (Throwable ignore) {}
throw e;
}
}
}
public ColumnFamilyHandle getColumnFamilyHandle(String columnFamilyName) throws ColumnFamilyNotFoundException {
ColumnFamilyHandle cf = columnFamilies.get(columnFamilyName);
if (cf != null) {
return cf;
}
throw new ColumnFamilyNotFoundException(columnFamilyName);
}
WriteOptions getWriteOptions() {
return writeOptions;
}
ReadOptions getReadOptions() {
return readOptions;
}
SequenceManager getSequenceManager() {
return sequenceManager;
}
}
<file_sep>package com.infomaximum.domain;
import com.infomaximum.database.domainobject.DomainObjectEditable;
import com.infomaximum.database.exception.DatabaseException;
import java.time.Instant;
/**
* Created by kris on 27.06.17.
*/
public class ExchangeFolderEditable extends ExchangeFolderReadable implements DomainObjectEditable {
public ExchangeFolderEditable(long id){
super(id);
}
public void setUuid(String uuid) {
set(FIELD_UUID, uuid);
}
public void setUserEmail(String userEmail) {
set(FIELD_USER_EMAIL, userEmail);
}
public void setSyncDate(Instant syncInstant) {
set(FIELD_SYNC_DATE, syncInstant);
}
public void setSyncState(String syncState) {
set(FIELD_SYNC_STATE, syncState);
}
public void setParentId(Long parentId) throws DatabaseException {
set(FIELD_PARENT_ID, parentId);
}
}<file_sep>package com.infomaximum.database.domainobject.engine.index;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.exception.IndexNotFoundException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.database.utils.PrefixIndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.database.utils.key.Key;
import com.infomaximum.database.utils.key.PrefixIndexKey;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import org.assertj.core.api.Assertions;
import org.junit.Assert;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class PrefixIndexTest extends StoreFileDataTest {
private final String fileName = " Test sTring <EMAIL> \r";
private final List<String> lexemes = Arrays.asList("test", "string", "<EMAIL>", "mail.com", "com");
private String indexColumnFamily;
@BeforeEach
public void init() throws Exception {
super.init();
indexColumnFamily = Schema.getEntity(StoreFileReadable.class).getPrefixIndexes().get(0).columnFamily;
}
@Test
public void notFoundIndex() {
Assertions.assertThatThrownBy(() -> recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE, new PrefixFilter(StoreFileReadable.FIELD_BEGIN_TIME, null)))
.isInstanceOf(IndexNotFoundException.class);
Assertions.assertThatThrownBy(() -> recordSource.select(STORE_FILE_NAME, STORE_FILE_NAMESPACE, new PrefixFilter(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_SIZE), null)))
.isInstanceOf(IndexNotFoundException.class);
}
@Test
public void insertWithNotOverflowedBlock() throws Exception {
final int recordCount = 10;
ByteBuffer buffer = createRecords(recordCount);
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
assertEquals(0, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assertions.assertThat(currentLexemes.size()).isEqualTo(0);
}
@Test
public void insertWithOverflowedBlock() throws Exception {
final int recordCountForFullBlock = PrefixIndexUtils.PREFERRED_MAX_ID_COUNT_PER_BLOCK;
ByteBuffer bufferForFullBlock = createRecords(recordCountForFullBlock);
final int recordCount = 10;
ByteBuffer buffer = createRecords(recordCount);
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
PrefixIndexKey key = PrefixIndexKey.unpack(keyValue.getKey());
Assert.assertEquals(0, key.getBlockNumber());
Assert.assertArrayEquals(bufferForFullBlock.array(), keyValue.getValue());
keyValue = iterator.next();
assertEquals(1, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assertions.assertThat(currentLexemes.size()).isEqualTo(0);
}
@Test
public void reinsertWithOverflowedBlock() throws Exception {
final int recordCountForFullBlock = PrefixIndexUtils.PREFERRED_MAX_ID_COUNT_PER_BLOCK;
ByteBuffer bufferForFullBlock = createRecords(recordCountForFullBlock);
final int recordCount = 10;
ByteBuffer buffer = createRecords(recordCount);
final long updatingId1 = 7;
final long updatingId2 = PrefixIndexUtils.PREFERRED_MAX_ID_COUNT_PER_BLOCK + 2;
recordSource.executeTransactional(transaction -> {
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, updatingId1, new String[]{"name"}, new Object[]{null});
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, updatingId2, new String[]{"name"}, new Object[]{null});
});
recordSource.executeTransactional(transaction -> {
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, updatingId1, new String[]{"name"}, new Object[]{fileName});
transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, updatingId2, new String[]{"name"}, new Object[]{fileName});
});
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
PrefixIndexKey key = PrefixIndexKey.unpack(keyValue.getKey());
Assertions.assertThat(key.getBlockNumber()).isEqualTo(0);
Assertions.assertThat(bufferForFullBlock.array()).containsExactly(keyValue.getValue());
keyValue = iterator.next();
assertEquals(1, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assertions.assertThat(currentLexemes.size()).isEqualTo(0);
}
@Test
public void remove() throws Exception {
final int recordCount = 10;
byte[] buffer = createRecords(recordCount).array();
final long removingId = 7;
recordSource.executeTransactional(transaction -> transaction.deleteRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, removingId));
buffer = PrefixIndexUtils.removeId(removingId, buffer);
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
assertEquals(0, buffer, currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assertions.assertThat(currentLexemes.size()).isEqualTo(0);
}
@Test
public void update() throws Exception {
final int recordCount = 1;
ByteBuffer buffer = createRecords(recordCount);
final String newFileName = " Test sTrIng inform@mail. \r";
recordSource.executeTransactional(transaction -> transaction.updateRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, 1, new String[]{"name"}, new Object[]{newFileName}));
List<String> currentLexemes = new ArrayList<>(Arrays.asList("test", "string", "inform@mail.", "mail."));
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
assertEquals(0, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assertions.assertThat(currentLexemes.size()).isEqualTo(0);
}
private static void assertEquals(int expectedBlock, byte[] expectedValue, List<String> expectedLexemes, KeyValue actual) {
PrefixIndexKey key = PrefixIndexKey.unpack(actual.getKey());
Assertions.assertThat(expectedLexemes.remove(key.getLexeme())).isTrue();
Assertions.assertThat(expectedBlock).isEqualTo(key.getBlockNumber());
Assertions.assertThat(expectedValue).containsExactly(actual.getValue());
}
private ByteBuffer createRecords(int recordCount) throws Exception {
ByteBuffer idsBuffer = TypeConvert.allocateBuffer(recordCount * Key.ID_BYTE_SIZE);
recordSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; ++i) {
long id = transaction.insertRecord(STORE_FILE_NAME, STORE_FILE_NAMESPACE, new String[]{"name"}, new Object[]{fileName});
idsBuffer.putLong(id);
}
});
return idsBuffer;
}
private KeyPattern buildAttendantPrefixIndex() {
StructEntity structEntity = Schema.getEntity(StoreFileEditable.class);
return PrefixIndexKey.buildKeyPatternForFind("", structEntity.getPrefixIndex(Collections.singleton(0)));
}
}
<file_sep>package com.infomaximum.database.schema.dbstruct;
import com.infomaximum.database.exception.SchemaException;
import net.minidev.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
public class DBField extends DBObject {
private final static Logger log = LoggerFactory.getLogger(DBField.class);
private static final String JSON_PROP_NAME = "name";
private static final String JSON_PROP_TYPE = "type";
private static final String JSON_PROP_FOREIGN_TABLE_ID = "foreign_table_id";
private String name;
private Class<? extends Serializable> type;
private Integer foreignTableId;
DBField(int id, String name, Class<? extends Serializable> type, Integer foreignTableId) {
super(id);
this.name = name;
this.type = type;
this.foreignTableId = foreignTableId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Class<? extends Serializable> getType() {
return type;
}
public void setType(Class<? extends Serializable> type) {
this.type = type;
}
public Integer getForeignTableId() {
return foreignTableId;
}
public void setForeignTableId(Integer foreignTableId) {
this.foreignTableId = foreignTableId;
}
public boolean isForeignKey() {
return foreignTableId != null;
}
static DBField fromJson(JSONObject source) throws SchemaException {
return new DBField(
JsonUtils.getValue(JSON_PROP_ID, Integer.class, source),
JsonUtils.getValue(JSON_PROP_NAME, String.class, source),
resolve(JsonUtils.getValue(JSON_PROP_TYPE, String.class, source)),
JsonUtils.getValueOrDefault(JSON_PROP_FOREIGN_TABLE_ID, Integer.class, source, null)
);
}
@Override
JSONObject toJson() {
JSONObject object = new JSONObject();
object.put(JSON_PROP_ID, getId());
object.put(JSON_PROP_NAME, name);
object.put(JSON_PROP_TYPE, type.getName());
object.put(JSON_PROP_FOREIGN_TABLE_ID, foreignTableId);
return object;
}
private static Class<? extends Serializable> resolve(String type) throws SchemaException {
try {
return (Class<? extends Serializable>) Class.forName(type);
} catch (ClassNotFoundException e) {
log.warn("Class not found for type: " + type);
return String.class;
}
}
}
<file_sep>package com.infomaximum.database.schema;
import com.infomaximum.database.domainobject.DomainObjectSource;
import com.infomaximum.database.domainobject.filter.HashFilter;
import com.infomaximum.database.domainobject.filter.IntervalFilter;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.domainobject.filter.RangeFilter;
import com.infomaximum.database.domainobject.iterator.HashIndexIterator;
import com.infomaximum.database.domainobject.iterator.IntervalIndexIterator;
import com.infomaximum.database.domainobject.iterator.PrefixIndexIterator;
import com.infomaximum.database.domainobject.iterator.RangeIndexIterator;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.schema.dbstruct.DBTableTestUtil;
import com.infomaximum.database.schema.table.*;
import com.infomaximum.domain.IndexRecreationEditable;
import com.infomaximum.domain.IndexRecreationReadable;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class BugSchemaTableTest extends DomainDataJ5Test {
private static DBTable getExpectedDbTable() {
DBField fieldGEnd = DBTableTestUtil.buildDBField(0, "g_end", Instant.class, null);
DBField fieldAPrice = DBTableTestUtil.buildDBField(1, "a_price", Long.class, null);
DBField fieldXName = DBTableTestUtil.buildDBField(2, "x_name", String.class, null);
DBField fieldAAmount = DBTableTestUtil.buildDBField(3, "a_amount", Long.class, null);
DBField fieldAType = DBTableTestUtil.buildDBField(4, "a_type", Boolean.class, null);
DBField fieldSBegin = DBTableTestUtil.buildDBField(5, "s_begin", Instant.class, null);
DBField fieldZName = DBTableTestUtil.buildDBField(6, "z_name", String.class, null);
DBTable expected = DBTableTestUtil.buildDBTable(0, "IndexRecreation", "com.infomaximum.rocksdb", new ArrayList<DBField>() {{
add(fieldGEnd);
add(fieldAPrice);
add(fieldXName);
add(fieldAAmount);
add(fieldAType);
add(fieldSBegin);
add(fieldZName);
}});
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(fieldAPrice, fieldZName));
expected.attachIndex(DBTableTestUtil.buildDBPrefixIndex(fieldXName, fieldZName));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(fieldAAmount, fieldAPrice, fieldZName));
expected.attachIndex(DBTableTestUtil.buildDBRangeIndex(fieldSBegin, fieldGEnd, fieldAPrice, fieldZName));
return expected;
}
@Test
@DisplayName("Создается таблица заполняется данными, после чего удаляем и заново создаем индекс в таблице.")
void removeAndAttachHashIndexTest() throws Exception {
final Table indexRecreationTable = createIndexRecreationTable();
final THashIndex hashIndex = new THashIndex("a_price", "z_name");
final TPrefixIndex prefixIndex = new TPrefixIndex("x_name", "z_name");
final TIntervalIndex intervalIndex = new TIntervalIndex("a_amount", new String[]{"z_name", "a_price"});
final TRangeIndex rangeIndex = new TRangeIndex("s_begin", "g_end", new String[]{"z_name", "a_price"});
schema.dropIndex(hashIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.dropIndex(prefixIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.dropIndex(intervalIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.dropIndex(rangeIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.createIndex(hashIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.createIndex(prefixIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.createIndex(intervalIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
schema.createIndex(rangeIndex, indexRecreationTable.getName(), indexRecreationTable.getNamespace());
DBTableTestUtil.assertThatContains(rocksDBProvider, getExpectedDbTable());
testHashIndexDirectOrder();
testHashIndexReverseOrder();
testPrefixIndexDirectOrder();
testPrefixIndexReverseOrder();
testIntervalFilterDirectOrder();
testIntervalFilterReverseOrder();
testRangeFilterDirectOrder();
testRangeFilterReverseOrder();
}
private void testRangeFilterReverseOrder() {
String name = "nameZ2";
Long price = 3080L;
final RangeFilter filter = new RangeFilter(
new RangeFilter.IndexedField(IndexRecreationReadable.FIELD_S_BEGIN, IndexRecreationReadable.FIELD_G_END),
Instant.EPOCH.plus(2, ChronoUnit.MINUTES),
Instant.EPOCH.plus(6, ChronoUnit.MINUTES))
.appendHashedField(IndexRecreationReadable.FIELD_PRICE, price)
.appendHashedField(IndexRecreationReadable.FIELD_NAME_Z, name);
try (RangeIndexIterator<IndexRecreationReadable> hashIndexIterator = new RangeIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getNameZ()).isEqualTo(name);
Assertions.assertThat(readable.getPrice()).isEqualTo(price);
Assertions.assertThat(readable.getAmount()).isEqualTo(190L);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testRangeFilterDirectOrder() {
String name = "nameZ2";
Long price = 3080L;
final RangeFilter filter = new RangeFilter(
new RangeFilter.IndexedField(IndexRecreationReadable.FIELD_S_BEGIN, IndexRecreationReadable.FIELD_G_END),
Instant.EPOCH.plus(2, ChronoUnit.MINUTES),
Instant.EPOCH.plus(6, ChronoUnit.MINUTES))
.appendHashedField(IndexRecreationReadable.FIELD_NAME_Z, name)
.appendHashedField(IndexRecreationReadable.FIELD_PRICE, price);
try (RangeIndexIterator<IndexRecreationReadable> hashIndexIterator = new RangeIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getNameZ()).isEqualTo(name);
Assertions.assertThat(readable.getPrice()).isEqualTo(price);
Assertions.assertThat(readable.getAmount()).isEqualTo(190L);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testIntervalFilterDirectOrder() {
String name = "nameZ2";
Long price = 3080L;
IntervalFilter filter = new IntervalFilter(IndexRecreationReadable.FIELD_AMOUNT, 5L, 200L)
.appendHashedField(IndexRecreationReadable.FIELD_NAME_Z, name)
.appendHashedField(IndexRecreationReadable.FIELD_PRICE, price);
try (IntervalIndexIterator<IndexRecreationReadable> hashIndexIterator = new IntervalIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getNameZ()).isEqualTo(name);
Assertions.assertThat(readable.getPrice()).isEqualTo(price);
Assertions.assertThat(readable.getAmount()).isEqualTo(190L);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testIntervalFilterReverseOrder() {
String name = "nameZ2";
Long price = 3080L;
IntervalFilter filter = new IntervalFilter(IndexRecreationReadable.FIELD_AMOUNT, 5L, 200L)
.appendHashedField(IndexRecreationReadable.FIELD_PRICE, price)
.appendHashedField(IndexRecreationReadable.FIELD_NAME_Z, name);
try (IntervalIndexIterator<IndexRecreationReadable> hashIndexIterator = new IntervalIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getNameZ()).isEqualTo(name);
Assertions.assertThat(readable.getPrice()).isEqualTo(price);
Assertions.assertThat(readable.getAmount()).isEqualTo(190L);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testPrefixIndexDirectOrder() {
String name = "nameX3";
PrefixFilter filter = new PrefixFilter(Arrays.asList(IndexRecreationReadable.FIELD_NAME_X, IndexRecreationReadable.FIELD_NAME_Z), name);
try (PrefixIndexIterator<IndexRecreationReadable> hashIndexIterator = new PrefixIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getNameX()).isEqualTo(name);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testPrefixIndexReverseOrder() {
String name = "nameZ3";
PrefixFilter filter = new PrefixFilter(Arrays.asList(IndexRecreationReadable.FIELD_NAME_Z, IndexRecreationReadable.FIELD_NAME_X), name);
try (PrefixIndexIterator<IndexRecreationReadable> hashIndexIterator = new PrefixIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getNameZ()).isEqualTo(name);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testHashIndexDirectOrder() {
Long price = 3080L;
String zName = "nameZ2";
HashFilter filter = new HashFilter(IndexRecreationReadable.FIELD_PRICE, price)
.appendField(IndexRecreationReadable.FIELD_NAME_Z, zName);
try (HashIndexIterator<IndexRecreationReadable> hashIndexIterator = new HashIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getPrice()).isEqualTo(price);
Assertions.assertThat(readable.getNameZ()).isEqualTo(zName);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private void testHashIndexReverseOrder() {
Long price = 3080L;
String zName = "nameZ2";
HashFilter filter = new HashFilter(IndexRecreationReadable.FIELD_NAME_Z, zName)
.appendField(IndexRecreationReadable.FIELD_PRICE, price);
try (HashIndexIterator<IndexRecreationReadable> hashIndexIterator = new HashIndexIterator<>(new DomainObjectSource(rocksDBProvider),
IndexRecreationReadable.class,
null,
filter
)) {
int iteratedRecordCount = 0;
while (hashIndexIterator.hasNext()) {
final IndexRecreationReadable readable = hashIndexIterator.next();
Assertions.assertThat(readable.getPrice()).isEqualTo(price);
Assertions.assertThat(readable.getNameZ()).isEqualTo(zName);
++iteratedRecordCount;
}
Assertions.assertThat(iteratedRecordCount).isEqualTo(1);
}
}
private Table createIndexRecreationTable() throws Exception {
Schema.resolve(IndexRecreationReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("g_end", Instant.class));
add(new TField("a_price", Long.class));
add(new TField("x_name", String.class));
add(new TField("a_amount", Long.class));
add(new TField("a_type", Boolean.class));
add(new TField("s_begin", Instant.class));
add(new TField("z_name", String.class));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("z_name", "a_price"));
}};
List<TPrefixIndex> prefixIndexes = new ArrayList<TPrefixIndex>() {{
add(new TPrefixIndex("x_name", "z_name"));
}};
List<TIntervalIndex> intervalIndexes = new ArrayList<TIntervalIndex>() {{
add(new TIntervalIndex("a_amount", new String[]{"z_name", "a_price"}));
}};
List<TRangeIndex> rangeIndexes = new ArrayList<TRangeIndex>() {{
add(new TRangeIndex("s_begin", "g_end", new String[]{"z_name", "a_price"}));
}};
Table table = new Table("IndexRecreation",
"com.infomaximum.rocksdb",
fields,
hashIndexes,
prefixIndexes,
intervalIndexes,
rangeIndexes);
schema.createTable(table);
domainObjectSource.executeTransactional(transaction -> {
IndexRecreationEditable editable = transaction.create(IndexRecreationEditable.class);
editable.setNameZ("nameZ1");
editable.setType(true);
editable.setBegin(Instant.EPOCH.plus(1, ChronoUnit.MINUTES));
editable.setNameX("nameX1");
editable.setAmount(10L);
editable.setPrice(300L);
editable.setEnd(Instant.EPOCH.plus(2, ChronoUnit.MINUTES));
transaction.save(editable);
editable = transaction.create(IndexRecreationEditable.class);
editable.setNameZ("nameZ2");
editable.setType(false);
editable.setBegin(Instant.EPOCH.plus(3, ChronoUnit.MINUTES));
editable.setNameX("nameX2");
editable.setAmount(190L);
editable.setPrice(3080L);
editable.setEnd(Instant.EPOCH.plus(4, ChronoUnit.MINUTES));
transaction.save(editable);
editable = transaction.create(IndexRecreationEditable.class);
editable.setNameZ("nameZ3");
editable.setType(Boolean.TRUE);
editable.setBegin(Instant.EPOCH.plus(5, ChronoUnit.MINUTES));
editable.setNameX("nameX3");
editable.setAmount(1920L);
editable.setPrice(30830L);
editable.setEnd(Instant.EPOCH.plus(6, ChronoUnit.MINUTES));
transaction.save(editable);
});
return schema.getTable("IndexRecreation", "com.infomaximum.rocksdb");
}
}<file_sep>package com.infomaximum.database.domainobject.iterator;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.exception.DatabaseException;
/**
* Created by kris on 08.09.17.
*/
public interface IteratorEntity<E extends DomainObject> extends AutoCloseable {
boolean hasNext();
E next() throws DatabaseException;
void close() throws DatabaseException;
}
<file_sep>package com.infomaximum.database.utils.key;
import static com.infomaximum.database.schema.BaseIndex.ATTENDANT_BYTE_SIZE;
abstract class IndexKey extends Key {
final byte[] attendant;
IndexKey(long id, byte[] attendant) {
super(id);
checkAttendant(attendant);
this.attendant = attendant;
}
private static void checkAttendant(final byte[] attendant) {
if(attendant == null || attendant.length != ATTENDANT_BYTE_SIZE) {
throw new IllegalArgumentException();
}
}
}<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.domainobject.DomainDataTest;
import com.infomaximum.database.domainobject.Transaction;
import com.infomaximum.rocksdb.util.PerfomanceTest;
import org.junit.Test;
public class WriteTest extends DomainDataTest {
@Test
public void createNonIndexedRecords1() throws Exception {
createDomain(RecordReadable.class);
PerfomanceTest.test(1000000, step-> {
try (Transaction transaction = domainObjectSource.buildTransaction()) {
RecordEditable rec = transaction.create(RecordEditable.class);
rec.setString1("some value");
transaction.save(rec);
transaction.commit();
}
});
}
@Test
public void createNonIndexedRecords2() throws Exception {
createDomain(RecordReadable.class);
try (Transaction transaction = domainObjectSource.buildTransaction()) {
PerfomanceTest.test(1000000, step -> {
RecordEditable rec = transaction.create(RecordEditable.class);
rec.setString1("some value");
transaction.save(rec);
});
transaction.commit();
}
}
@Test
public void createIndexedRecords() throws Exception {
createDomain(RecordIndexReadable.class);
long counter[] = new long[] {0};
try (Transaction transaction = domainObjectSource.buildTransaction()) {
PerfomanceTest.test(500000, step -> {
RecordIndexEditable rec = transaction.create(RecordIndexEditable.class);
long val = ++counter[0];
rec.setString1(Long.toString(val));
rec.setLong1(val);
transaction.save(rec);
});
transaction.commit();
}
}
}
<file_sep>package com.infomaximum.database.provider;
import java.io.Serializable;
public class KeyValue implements Serializable {
private final byte[] key;
private final byte[] value;
public KeyValue(byte[] key, byte[] value) {
this.key = key;
this.value = value;
}
public byte[] getKey() {
return key;
}
public byte[] getValue() {
return value;
}
}
<file_sep>package com.infomaximum.database.schema;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBSchema;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.schema.dbstruct.DBTableTestUtil;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.domain.ExchangeFolderReadable;
import com.infomaximum.domain.GeneralReadable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.domain.type.FormatType;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.time.Instant;
import java.time.LocalDateTime;
import java.util.ArrayList;
class SchemaTest extends DomainDataJ5Test {
@Override
public void createSchema() {
}
@Test
@DisplayName("Создание пустой схемы")
void justCreateTest() throws DatabaseException {
Schema schema = Schema.create(rocksDBProvider);
DBSchema schemaDB = schema.getDbSchema();
Assertions.assertThat(schemaDB.getTables()).isEmpty();
Assertions.assertThat(schemaDB.getVersion()).isEqualTo(Schema.CURRENT_VERSION);
rocksDBProvider.containsColumnFamily(Schema.SERVICE_COLUMN_FAMILY);
String schemaJson = TypeConvert.unpackString(rocksDBProvider.getValue(Schema.SERVICE_COLUMN_FAMILY, Schema.SCHEMA_KEY));
Assertions.assertThat(schemaJson).isEqualTo("[]");
String versionJson = TypeConvert.unpackString(rocksDBProvider.getValue(Schema.SERVICE_COLUMN_FAMILY, Schema.VERSION_KEY));
Assertions.assertThat(versionJson).isEqualTo(Schema.CURRENT_VERSION);
}
@Test
@DisplayName("Ошибка создания уже существующей схемы")
void schemaAlreadyExistsTest() throws DatabaseException {
Schema.create(rocksDBProvider);
Assertions.assertThatExceptionOfType(DatabaseException.class).isThrownBy(() -> Schema.create(rocksDBProvider));
}
@Test
@DisplayName("Чтение пустой схемы")
void readSchemaTest() throws DatabaseException {
Schema.create(rocksDBProvider);
Schema readSchema = Schema.read(rocksDBProvider);
DBSchema schemaDB = readSchema.getDbSchema();
Assertions.assertThat(schemaDB.getTables()).isEmpty();
Assertions.assertThat(schemaDB.getVersion()).isEqualTo(Schema.CURRENT_VERSION);
}
@Test
@DisplayName("Создание простой таблицы с одним полем и одним hashIndex")
void createSimpleTable() throws DatabaseException {
Schema schema = Schema.create(rocksDBProvider);
StructEntity generalSE = new StructEntity(GeneralReadable.class);
schema.createTable(generalSE);
assertColumnFamilies("com.infomaximum.rocksdb.general", "com.infomaximum.rocksdb.general.index");
DBField field = DBTableTestUtil.buildDBField(0, "value", Long.class, null);
DBTable expected = DBTableTestUtil.buildDBTable(0, "general", "com.infomaximum.rocksdb", new ArrayList<DBField>() {{
add(field);
}});
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field));
DBTableTestUtil.assertThatContains(rocksDBProvider, expected);
}
@Test
@DisplayName("Создание таблицы с несколькими полями, одним hashIndex и зависимостью на саму себя")
void createMultiplyFieldTable() throws DatabaseException {
Schema schema = Schema.create(rocksDBProvider);
StructEntity exchangeFolder = new StructEntity(ExchangeFolderReadable.class);
schema.createTable(exchangeFolder);
assertColumnFamilies("com.infomaximum.exchange.ExchangeFolder", "com.infomaximum.exchange.ExchangeFolder.index");
DBField field1 = DBTableTestUtil.buildDBField(0, "uuid", String.class, null);
DBField field2 = DBTableTestUtil.buildDBField(1, "email", String.class, null);
DBField field3 = DBTableTestUtil.buildDBField(2, "date", Instant.class, null);
DBField field4 = DBTableTestUtil.buildDBField(3, "state", String.class, null);
DBField field5 = DBTableTestUtil.buildDBField(4, "parent_id", Long.class, 0);
DBTable expected = DBTableTestUtil.buildDBTable(0, "ExchangeFolder", "com.infomaximum.exchange", new ArrayList<DBField>() {{
add(field1);
add(field2);
add(field3);
add(field4);
add(field5);
}});
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field5));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field2, field1));
DBTableTestUtil.assertThatContains(rocksDBProvider, expected);
}
@Test
@DisplayName("Создание таблицы с несколькими полями, всеми индексами и на другую сущность")
void createTableWithAllIndexes() throws DatabaseException {
Schema schema = Schema.create(rocksDBProvider);
StructEntity general = new StructEntity(GeneralReadable.class);
schema.createTable(general);
StructEntity exchangeFolder = new StructEntity(ExchangeFolderReadable.class);
schema.createTable(exchangeFolder);
StructEntity storeFile = new StructEntity(StoreFileReadable.class);
schema.createTable(storeFile);
assertColumnFamilies("com.infomaximum.store.StoreFile", "com.infomaximum.store.StoreFile.index");
DBField field0 = DBTableTestUtil.buildDBField(0, "name", String.class, null);
DBField field1 = DBTableTestUtil.buildDBField(1, "type", String.class, null);
DBField field2 = DBTableTestUtil.buildDBField(2, "size", Long.class, null);
DBField field3 = DBTableTestUtil.buildDBField(3, "single", Boolean.class, null);
DBField field4 = DBTableTestUtil.buildDBField(4, "format", FormatType.class, null);
DBField field5 = DBTableTestUtil.buildDBField(5, "folder_id", Long.class, 1);
DBField field6 = DBTableTestUtil.buildDBField(6, "double", Double.class, null);
DBField field7 = DBTableTestUtil.buildDBField(7, "begin_time", Instant.class, null);
DBField field8 = DBTableTestUtil.buildDBField(8, "end_time", Instant.class, null);
DBField field9 = DBTableTestUtil.buildDBField(9, "begin", Long.class, null);
DBField field10 = DBTableTestUtil.buildDBField(10, "end", Long.class, null);
DBField field11 = DBTableTestUtil.buildDBField(11, "local_begin", LocalDateTime.class, null);
DBField field12 = DBTableTestUtil.buildDBField(12, "local_end", LocalDateTime.class, null);
DBField field13 = DBTableTestUtil.buildDBField(13, "data", byte[].class, null);
DBTable expected = DBTableTestUtil.buildDBTable(0, "StoreFile", "com.infomaximum.store", new ArrayList<DBField>() {{
add(field0);
add(field1);
add(field2);
add(field3);
add(field4);
add(field5);
add(field6);
add(field7);
add(field8);
add(field9);
add(field10);
add(field11);
add(field12);
add(field13);
}});
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field5));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field2));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field0));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field0, field2));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field0, field3));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field4));
expected.attachIndex(DBTableTestUtil.buildDBHashIndex(field11));
expected.attachIndex(DBTableTestUtil.buildDBPrefixIndex(field0));
expected.attachIndex(DBTableTestUtil.buildDBPrefixIndex(field0, field1));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(field2));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(field6));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(field7));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(field11));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(field2, field0));
expected.attachIndex(DBTableTestUtil.buildDBIntervalIndex(field2, field5));
expected.attachIndex(DBTableTestUtil.buildDBRangeIndex(field9, field10));
expected.attachIndex(DBTableTestUtil.buildDBRangeIndex(field9, field10, field5));
expected.attachIndex(DBTableTestUtil.buildDBRangeIndex(field7, field8));
expected.attachIndex(DBTableTestUtil.buildDBRangeIndex(field7, field8, field5));
expected.attachIndex(DBTableTestUtil.buildDBRangeIndex(field11, field12));
DBTableTestUtil.assertThatContains(rocksDBProvider, expected);
}
private void assertColumnFamilies(String... cfs) {
Assertions.assertThat(rocksDBProvider.getColumnFamilies()).contains(cfs);
}
// Добавить еще на чтение
// Добавить save schema
}
<file_sep>package com.infomaximum.database.anotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created by user on 19.04.2017.
*/
@Target({})
@Retention(RUNTIME)
public @interface Field {
int number();
String name();
Class type();
@Deprecated
Class packerType() default Class.class;
Class foreignDependency() default Class.class;
}<file_sep>package com.infomaximum.database.schema;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.domainobject.filter.*;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.exception.*;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.dbstruct.DBTable;
import com.infomaximum.database.schema.table.*;
import com.infomaximum.domain.*;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.time.Instant;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class SchemaTableTest extends DomainDataJ5Test {
//Создание таблицы_____________________________________________
@Test
@DisplayName("Создает простую таблицу с полями без зависимостей")
void createTableOnlyFieldsTest() throws DatabaseException {
List<TField> fields = new ArrayList<TField>() {{
add(new TField("field1", String.class));
add(new TField("field2", Integer.class));
add(new TField("field3", Long.class));
}};
Table table = new Table("dataTest", "com.infomaximum.exchange", fields);
schema.createTable(table);
assertThatSchemaContainsTable(table);
}
@Test
@DisplayName("Создает простую таблицу с полями без зависимостей и хеш индексом")
void createTableFieldsAndIndexesTest() throws DatabaseException {
Schema.resolve(GeneralReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("value", String.class));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("value"));
}};
Table table = new Table("general", "com.infomaximum.rocksdb", fields, hashIndexes);
schema.createTable(table);
assertThatSchemaContainsTable(table);
}
@Test
@DisplayName("Создает таблицу с зависимостью на саму себя")
void createTableWithSelfDependenciesTest() throws DatabaseException {
Schema.resolve(ExchangeFolderReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("uuid", String.class));
add(new TField("email", String.class));
add(new TField("date", Instant.class));
add(new TField("state", String.class));
add(new TField("parent_id", new TableReference("ExchangeFolder", "com.infomaximum.exchange")));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("email", "uuid"));
}};
Table table = new Table("ExchangeFolder", "com.infomaximum.exchange", fields, hashIndexes);
schema.createTable(table);
List<THashIndex> expectedHashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("parent_id"));
add(new THashIndex("email", "uuid"));
}};
Table expected = new Table("ExchangeFolder", "com.infomaximum.exchange", fields, expectedHashIndexes);
assertThatSchemaContainsTable(expected);
}
@Test
@DisplayName("Создает таблицу с полями с зависимостями и всеми индексами")
void createTableWithDependenciesAndIndexesTest() throws Exception {
createExchangeFolderTable();
Schema.resolve(StoreFileReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("name", String.class));
add(new TField("type", String.class));
add(new TField("size", Long.class));
add(new TField("single", Boolean.class));
add(new TField("format", String.class));
add(new TField("folder_id", new TableReference("ExchangeFolder", "com.infomaximum.exchange")));
add(new TField("double", Double.class));
add(new TField("begin_time", Instant.class));
add(new TField("end_time", Instant.class));
add(new TField("begin", Long.class));
add(new TField("end", Long.class));
add(new TField("local_begin", LocalDateTime.class));
add(new TField("local_end", LocalDateTime.class));
add(new TField("data", byte[].class));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("size"));
add(new THashIndex("name"));
add(new THashIndex("size", "name"));
add(new THashIndex("format"));
add(new THashIndex("local_begin"));
}};
List<TPrefixIndex> prefixIndexes = new ArrayList<TPrefixIndex>() {{
add(new TPrefixIndex("name"));
add(new TPrefixIndex("name", "type"));
}};
List<TIntervalIndex> intervalIndexes = new ArrayList<TIntervalIndex>() {{
add(new TIntervalIndex("size"));
add(new TIntervalIndex("double"));
add(new TIntervalIndex("begin_time"));
add(new TIntervalIndex("local_begin"));
add(new TIntervalIndex("size", new String[]{"name"}));
add(new TIntervalIndex("size", new String[]{"folder_id"}));
}};
List<TRangeIndex> rangeIndexes = new ArrayList<TRangeIndex>() {{
add(new TRangeIndex("begin", "end"));
add(new TRangeIndex("begin", "end", new String[]{"folder_id"}));
add(new TRangeIndex("begin_time", "end_time"));
add(new TRangeIndex("begin_time", "begin_time", new String[]{"folder_id"}));
add(new TRangeIndex("local_begin", "local_end"));
}};
Table table = new Table("StoreFile",
"com.infomaximum.store",
fields,
hashIndexes,
prefixIndexes,
intervalIndexes,
rangeIndexes
);
schema.createTable(table);
hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("folder_id"));
add(new THashIndex("size"));
add(new THashIndex("name"));
add(new THashIndex("name", "size"));
add(new THashIndex("format"));
add(new THashIndex("local_begin"));
}};
Table expected = new Table("StoreFile",
"com.infomaximum.store",
fields,
hashIndexes,
prefixIndexes,
intervalIndexes,
rangeIndexes
);
assertThatSchemaContainsTable(expected);
}
@Test
@DisplayName("Очищает таблицу с полями с зависимостями и всеми индексами")
void clearTableWithDependenciesAndIndexesTest() throws Exception {
Table exchangeFolderTable = createExchangeFolderTable();
Table storeFolderTable = createStoreFolderTable();
//Добавляем новые данные в таблицу
domainObjectSource.executeTransactional(transaction -> {
ExchangeFolderEditable ex = transaction.create(ExchangeFolderEditable.class);
ex.setUuid("1243");
ex.setUserEmail("email");
transaction.save(ex);
ExchangeFolderEditable ex2 = transaction.create(ExchangeFolderEditable.class);
ex.setUuid("12435");
ex.setUserEmail("email2");
ex.setParentId(ex.getId());
transaction.save(ex2);
StoreFileEditable storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(123L);
storeFileEditable.setBegin(124L);
storeFileEditable.setEnd(144L);
storeFileEditable.setFileName("FileName2");
storeFileEditable.setFolderId(ex.getId());
storeFileEditable.setDouble(12.7);
transaction.save(storeFileEditable);
storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(11L);
storeFileEditable.setBegin(1L);
storeFileEditable.setEnd(2L);
storeFileEditable.setFolderId(ex2.getId());
storeFileEditable.setFileName("FileName2");
storeFileEditable.setDouble(13.4);
transaction.save(storeFileEditable);
});
//Делаем очистку
schema.clearTable("StoreFile", "com.infomaximum.store");
assertThatTableIsEmpty(storeFolderTable);
schema.clearTable("ExchangeFolder", "com.infomaximum.exchange");
assertThatTableIsEmpty(exchangeFolderTable);
Table expectedStoreFile = new Table("StoreFile",
"com.infomaximum.store",
storeFolderTable.getFields(),
storeFolderTable.getHashIndexes(),
storeFolderTable.getPrefixIndexes(),
storeFolderTable.getIntervalIndexes(),
storeFolderTable.getRangeIndexes()
);
assertThatSchemaContainsTable(expectedStoreFile);
Table expected = new Table("ExchangeFolder",
"com.infomaximum.exchange",
exchangeFolderTable.getFields(),
exchangeFolderTable.getHashIndexes(),
exchangeFolderTable.getPrefixIndexes(),
exchangeFolderTable.getIntervalIndexes(),
exchangeFolderTable.getRangeIndexes()
);
assertThatSchemaContainsTable(expected);
}
@Test
@DisplayName("Проверка ошибки очистки таблицы из-за наличия зависимости от этой таблицы")
void errorClearTableWithDependenciesTest() throws Exception {
Table exchangeFolderTable = createExchangeFolderTable();
Table storeFolderTable = createStoreFolderTable();
//Добавляем новые данные в таблицу
domainObjectSource.executeTransactional(transaction -> {
ExchangeFolderEditable ex = transaction.create(ExchangeFolderEditable.class);
ex.setUuid("1243");
ex.setUserEmail("email");
transaction.save(ex);
ExchangeFolderEditable ex2 = transaction.create(ExchangeFolderEditable.class);
ex.setUuid("12435");
ex.setUserEmail("email2");
ex.setParentId(ex.getId());
transaction.save(ex2);
StoreFileEditable storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(123L);
storeFileEditable.setBegin(124L);
storeFileEditable.setEnd(144L);
storeFileEditable.setFileName("FileName2");
storeFileEditable.setFolderId(ex.getId());
storeFileEditable.setDouble(12.7);
transaction.save(storeFileEditable);
storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(11L);
storeFileEditable.setBegin(1L);
storeFileEditable.setEnd(2L);
storeFileEditable.setFolderId(ex2.getId());
storeFileEditable.setFileName("FileName2");
storeFileEditable.setDouble(13.4);
transaction.save(storeFileEditable);
});
Assertions.assertThatThrownBy(() -> schema.clearTable("ExchangeFolder", "com.infomaximum.exchange")).isInstanceOf(TableClearException.class);
}
//Удаление таблицы_____________________________________________
@Test
@DisplayName("Удаляет простую таблицу")
void removeTableTest() throws Exception {
createExchangeFolderTable();
createStoreFolderTable();
schema.dropTable("StoreFile", "com.infomaximum.store");
assertTableDoesntExist("StoreFile", "com.infomaximum.store");
schema.dropTable("ExchangeFolder", "com.infomaximum.exchange");
assertTableDoesntExist("ExchangeFolder", "com.infomaximum.exchange");
}
@Test
@DisplayName("Ошибка при удалени таблицы, на которую ссылается другая таблица")
void failBecauseRemoveDependencedTableTest() throws Exception {
createExchangeFolderTable();
createStoreFolderTable();
Assertions.assertThatThrownBy(() -> schema.dropTable("ExchangeFolder", "com.infomaximum.exchange"))
.isExactlyInstanceOf(TableRemoveException.class);
}
//Добавление полей_____________________________________________
@Test
@DisplayName("Добавляет поле в таблицу")
void createTableFieldTest() throws Exception {
Table generalTable = createGeneralTable();
TField newField = new TField("newField", Long.class);
schema.createField(newField, generalTable);
List<TField> newFields = new ArrayList<>(generalTable.getFields());
newFields.add(newField);
generalTable = new Table(generalTable.getName(), generalTable.getNamespace(), newFields, generalTable.getHashIndexes());
assertThatSchemaContainsTable(generalTable);
}
@Test
@DisplayName("Ошибка добавления поля в таблицу, которое зависит от не существующей таблицы")
void failCreateFieldBecauseForeignTableDoesntExist() throws Exception {
createGeneralTable();
TField newFieldWithDependence = new TField("newFieldWithDependence", new TableReference("ExchangeFolder",
"com.infomaximum.exchange"));
Assertions.assertThatThrownBy(() -> schema.createField(newFieldWithDependence, "general", "com.infomaximum.rocksdb"))
.isExactlyInstanceOf(TableNotFoundException.class);
}
@Test
@DisplayName("Ошибка имя поля уже существует")
void failCreateFieldWithSameName() throws Exception {
createGeneralTable();
TField newFieldWithDependence = new TField("value", Double.class);
Assertions.assertThatThrownBy(() -> schema.createField(newFieldWithDependence, "general", "com.infomaximum.rocksdb"))
.isExactlyInstanceOf(FieldAlreadyExistsException.class);
}
//Удаление полей_____________________________________________
@Test
@DisplayName("Удаляет поле")
void removeField() throws Exception {
Table table = createExchangeFolderTable();
schema.dropField("email", table.getName(), table.getNamespace());
List<TField> expectedFields = new ArrayList<>(table.getFields());
expectedFields.remove(new TField("email", String.class));
List<THashIndex> hashIndexes = new ArrayList<>(table.getHashIndexes());
hashIndexes.remove(new THashIndex("email", "uuid"));
Table expectedTable = new Table(table.getName(), table.getNamespace(), expectedFields, hashIndexes, table.getPrefixIndexes(), table.getIntervalIndexes(), table.getRangeIndexes());
assertThatSchemaContainsTable(expectedTable);
domainObjectSource.executeTransactional(transaction -> {
try(IteratorEntity<ExchangeFolderReadable> it = transaction.find(ExchangeFolderReadable.class, EmptyFilter.INSTANCE)) {
Assertions.assertThat(it.hasNext()).isTrue();
while (it.hasNext()) {
ExchangeFolderReadable ef = it.next();
Assertions.assertThat(ef.getUserEmail()).isNull();
}
}
});
}
@Test
@DisplayName("Удаляет зависимое поле")
void removeForeignDependencyField() throws Exception {
Table table = createExchangeFolderTable();
schema.dropField("parent_id", table.getName(), table.getNamespace());
List<TField> expectedFields = new ArrayList<>(table.getFields());
expectedFields.remove(new TField("parent_id", new TableReference(table.getName(), table.getNamespace())));
List<THashIndex> hashIndexes = new ArrayList<>(table.getHashIndexes());
hashIndexes.remove(new THashIndex("parent_id"));
Table expectedTable = new Table(table.getName(), table.getNamespace(), expectedFields, hashIndexes, table.getPrefixIndexes(), table.getIntervalIndexes(), table.getRangeIndexes());
assertThatSchemaContainsTable(expectedTable);
domainObjectSource.executeTransactional(transaction -> {
try(IteratorEntity<ExchangeFolderReadable> it = transaction.find(ExchangeFolderReadable.class, EmptyFilter.INSTANCE)) {
Assertions.assertThat(it.hasNext()).isTrue();
while (it.hasNext()) {
ExchangeFolderReadable ef = it.next();
Assertions.assertThat(ef.getParentId()).isNull();
}
}
});
}
//Переименование полей_____________________________________________
@Test
@DisplayName("Переименование поля таблицы")
void renameTableFieldTest() throws Exception {
Table exchangeFolderTable = createExchangeFolderTable();
schema.renameField("state", "newValue", "ExchangeFolder", "com.infomaximum.exchange");
List<TField> fields = new ArrayList<TField>() {{
add(new TField("uuid", String.class));
add(new TField("email", String.class));
add(new TField("date", Instant.class));
add(new TField("newValue", String.class));
add(new TField("parent_id", new TableReference("ExchangeFolder", "com.infomaximum.exchange")));
}};
exchangeFolderTable = new Table(exchangeFolderTable.getName(), exchangeFolderTable.getNamespace(), fields, exchangeFolderTable.getHashIndexes());
assertThatSchemaContainsTable(exchangeFolderTable);
}
@Test
@DisplayName("Переименование поля таблицы у которого есть индекс")
void renameTableFieldWithIndexTest() throws Exception {
Table exchangeFolderTable = createExchangeFolderTable();
schema.renameField("email", "znew", "ExchangeFolder", "com.infomaximum.exchange");
List<TField> fields = new ArrayList<TField>() {{
add(new TField("uuid", String.class));
add(new TField("znew", String.class));
add(new TField("date", Instant.class));
add(new TField("state", String.class));
add(new TField("parent_id", new TableReference("ExchangeFolder", "com.infomaximum.exchange")));
}};
List<THashIndex> expectedHashIndexes = new ArrayList<>(exchangeFolderTable.getHashIndexes());
expectedHashIndexes.remove(1);
expectedHashIndexes.add(new THashIndex("uuid", "znew"));
exchangeFolderTable = new Table(exchangeFolderTable.getName(), exchangeFolderTable.getNamespace(), fields, expectedHashIndexes);
assertThatSchemaContainsTable(exchangeFolderTable);
}
@Test
@DisplayName("Ошибка переименования поля таблицы. Поле с таким именем уже существует")
void failRenameTableFieldNameAlreadyExistsTest() throws Exception {
createExchangeFolderTable();
Assertions.assertThatThrownBy(() -> schema.renameField("state", "email", "ExchangeFolder", "com.infomaximum.exchange"))
.isExactlyInstanceOf(FieldAlreadyExistsException.class);
}
//Удаление индексов_____________________________________________
@Test
@DisplayName("Удаляет hash index из таблицы с одним хэшем")
void removeSimpleIndexTest() throws Exception {
Table table = createGeneralTable();
THashIndex removingHashIndex = new THashIndex("value");
schema.dropIndex(removingHashIndex, table.getName(), table.getNamespace());
List<THashIndex> expectedHashes = new ArrayList<>(table.getHashIndexes());
expectedHashes.remove(removingHashIndex);
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
expectedHashes,
table.getPrefixIndexes(),
table.getIntervalIndexes(),
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatNoAnyRecords(GeneralReadable.class, new HashFilter(GeneralEditable.FIELD_VALUE, 12L));
}
@Test
@DisplayName("Удаляет index'ы из таблицы")
void removeIndexTest() throws Exception {
createExchangeFolderTable();
Table table = createStoreFolderTable();
THashIndex removingHashIndex = new THashIndex("name");
schema.dropIndex(removingHashIndex, table.getName(), table.getNamespace());
List<THashIndex> expectedHashes = new ArrayList<>(table.getHashIndexes());
expectedHashes.remove(removingHashIndex);
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
expectedHashes,
table.getPrefixIndexes(),
table.getIntervalIndexes(),
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatNoAnyRecords(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName"));
domainObjectSource.executeTransactional(transaction -> {
try(IteratorEntity<StoreFileReadable> si = transaction.
find(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName")
.appendField(StoreFileReadable.FIELD_SIZE, 12L))) {
Assertions.assertThat(si.hasNext()).isTrue();
}
});
}
@Test
@DisplayName("Удаляет hash index, состоящий из нескольких полей, из таблицы")
void removeMultiIndexTest() throws Exception {
createExchangeFolderTable();
Table table = createStoreFolderTable();
THashIndex removingHashIndex = new THashIndex("size", "name");
schema.dropIndex(removingHashIndex, table.getName(), table.getNamespace());
List<THashIndex> expectedHashes = new ArrayList<>(table.getHashIndexes());
expectedHashes.remove(new THashIndex("name", "size"));
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
expectedHashes,
table.getPrefixIndexes(),
table.getIntervalIndexes(),
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatNoAnyRecords(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName").appendField(StoreFileReadable.FIELD_SIZE, 12L));
}
@Test
@DisplayName("Удаляет hash index из таблицы и заного его добавляет")
void removeAndAttachIndexTest() throws Exception {
createExchangeFolderTable();
Table table = createStoreFolderTable();
THashIndex removingHashIndex = new THashIndex("name");
schema.dropIndex(removingHashIndex, table.getName(), table.getNamespace());
assertThatNoAnyRecords(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName"));
schema.createIndex(removingHashIndex, "StoreFile", "com.infomaximum.store");
List<THashIndex> expectedHashes = new ArrayList<>(table.getHashIndexes());
expectedHashes.remove(removingHashIndex);
expectedHashes.add(removingHashIndex);
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
expectedHashes,
table.getPrefixIndexes(),
table.getIntervalIndexes(),
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatHasAnyRecords(StoreFileReadable.class, new HashFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName"));
}
@Test
@DisplayName("Удаляет hash index из таблицы и заного его добавляет")
void removeAndAttachPrefixIndexTest() throws Exception {
createExchangeFolderTable();
Table table = createStoreFolderTable();
TPrefixIndex removingIndex = new TPrefixIndex("name");
schema.dropIndex(removingIndex, table.getName(), table.getNamespace());
List<TPrefixIndex> expectedHashes = new ArrayList<>(table.getPrefixIndexes());
expectedHashes.remove(removingIndex);
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
table.getHashIndexes(),
expectedHashes,
table.getIntervalIndexes(),
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatNoAnyRecords(StoreFileReadable.class, new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName"));
schema.createIndex(removingIndex, "StoreFile", "com.infomaximum.store");
expectedHashes = new ArrayList<>(table.getPrefixIndexes());
expectedHashes.remove(removingIndex);
expectedHashes.add(removingIndex);
expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
table.getHashIndexes(),
expectedHashes,
table.getIntervalIndexes(),
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatHasAnyRecords(StoreFileReadable.class, new PrefixFilter(StoreFileReadable.FIELD_FILE_NAME, "FileName"));
}
@Test
@DisplayName("Удаляет interval index из таблицы и заного его добавляет")
void removeAndAttachIntervalIndexTest() throws Exception {
createExchangeFolderTable();
Table table = createStoreFolderTable();
TIntervalIndex removingIndex = new TIntervalIndex("size");
schema.dropIndex(removingIndex, table.getName(), table.getNamespace());
List<TIntervalIndex> expectedHashes = new ArrayList<>(table.getIntervalIndexes());
expectedHashes.remove(removingIndex);
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
table.getHashIndexes(),
table.getPrefixIndexes(),
expectedHashes,
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatNoAnyRecords(StoreFileReadable.class, new IntervalFilter(StoreFileReadable.FIELD_SIZE, 1L, 13L));
schema.createIndex(removingIndex, "StoreFile", "com.infomaximum.store");
expectedHashes = new ArrayList<>(table.getIntervalIndexes());
expectedHashes.remove(removingIndex);
expectedHashes.add(removingIndex);
expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
table.getHashIndexes(),
table.getPrefixIndexes(),
expectedHashes,
table.getRangeIndexes());
assertThatSchemaContainsTable(expected);
assertThatHasAnyRecords(StoreFileReadable.class, new IntervalFilter(StoreFileReadable.FIELD_SIZE, 1L, 13L));
}
@Test
@DisplayName("Удаляет range index из таблицы и заного его добавляет")
void removeAndAttachRangeIndexTest() throws Exception {
createExchangeFolderTable();
Table table = createStoreFolderTable();
TRangeIndex removingIndex = new TRangeIndex("begin", "end");
schema.dropIndex(removingIndex, table.getName(), table.getNamespace());
List<TRangeIndex> expectedHashes = new ArrayList<>(table.getRangeIndexes());
expectedHashes.remove(removingIndex);
Table expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
table.getHashIndexes(),
table.getPrefixIndexes(),
table.getIntervalIndexes(),
expectedHashes);
assertThatSchemaContainsTable(expected);
assertThatNoAnyRecords(StoreFileReadable.class, new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 9L, 14L));
schema.createIndex(removingIndex, "StoreFile", "com.infomaximum.store");
expectedHashes = new ArrayList<>(table.getRangeIndexes());
expectedHashes.remove(removingIndex);
expectedHashes.add(removingIndex);
expected = new Table(table.getName(),
table.getNamespace(),
table.getFields(),
table.getHashIndexes(),
table.getPrefixIndexes(),
table.getIntervalIndexes(),
expectedHashes);
assertThatSchemaContainsTable(expected);
assertThatHasAnyRecords(StoreFileReadable.class, new RangeFilter(new RangeFilter.IndexedField(StoreFileReadable.FIELD_BEGIN, StoreFileReadable.FIELD_END), 9L, 14L));
}
private Table createGeneralTable() throws Exception {
Schema.resolve(GeneralReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("value", Long.class));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("value"));
}};
Table table = new Table("general", "com.infomaximum.rocksdb", fields, hashIndexes);
schema.createTable(table);
domainObjectSource.executeTransactional(transaction -> {
GeneralEditable generalEditable = transaction.create(GeneralEditable.class);
generalEditable.setValue(12L);
transaction.save(generalEditable);
generalEditable = transaction.create(GeneralEditable.class);
generalEditable.setValue(111L);
transaction.save(generalEditable);
generalEditable = transaction.create(GeneralEditable.class);
generalEditable.setValue(12L);
transaction.save(generalEditable);
});
return schema.getTable("general", "com.infomaximum.rocksdb");
}
private Table createExchangeFolderTable() throws Exception {
Schema.resolve(ExchangeFolderReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("uuid", String.class));
add(new TField("email", String.class));
add(new TField("date", Instant.class));
add(new TField("state", String.class));
add(new TField("parent_id", new TableReference("ExchangeFolder", "com.infomaximum.exchange")));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("email", "uuid"));
}};
Table table = new Table("ExchangeFolder", "com.infomaximum.exchange", fields, hashIndexes);
schema.createTable(table);
domainObjectSource.executeTransactional(transaction -> {
ExchangeFolderEditable exchangeFolderEditable1 = transaction.create(ExchangeFolderEditable.class);
exchangeFolderEditable1.setUuid("uuid1");
exchangeFolderEditable1.setUserEmail("email1");
exchangeFolderEditable1.setSyncDate(Instant.now());
exchangeFolderEditable1.setSyncState("adsf");
transaction.save(exchangeFolderEditable1);
ExchangeFolderEditable exchangeFolderEditable2 = transaction.create(ExchangeFolderEditable.class);
exchangeFolderEditable2.setUuid("uuid2");
exchangeFolderEditable2.setUserEmail("email2");
exchangeFolderEditable2.setSyncDate(Instant.now());
exchangeFolderEditable2.setSyncState("adsf2");
exchangeFolderEditable2.setParentId(1L);
transaction.save(exchangeFolderEditable2);
ExchangeFolderEditable exchangeFolderEditable3 = transaction.create(ExchangeFolderEditable.class);
exchangeFolderEditable3.setUuid("uuid3");
exchangeFolderEditable3.setUserEmail("email3");
exchangeFolderEditable3.setSyncDate(Instant.now());
exchangeFolderEditable3.setSyncState("adsf3");
exchangeFolderEditable3.setParentId(2L);
transaction.save(exchangeFolderEditable3);
});
return schema.getTable("ExchangeFolder", "com.infomaximum.exchange");
}
private Table createStoreFolderTable() throws Exception {
Schema.resolve(StoreFileReadable.class);
List<TField> fields = new ArrayList<TField>() {{
add(new TField("name", String.class));
add(new TField("type", String.class));
add(new TField("size", Long.class));
add(new TField("single", Boolean.class));
add(new TField("format", String.class));
add(new TField("folder_id", new TableReference("ExchangeFolder", "com.infomaximum.exchange")));
add(new TField("double", Double.class));
add(new TField("begin_time", Instant.class));
add(new TField("end_time", Instant.class));
add(new TField("begin", Long.class));
add(new TField("end", Long.class));
add(new TField("local_begin", LocalDateTime.class));
add(new TField("local_end", LocalDateTime.class));
add(new TField("data", byte[].class));
}};
List<THashIndex> hashIndexes = new ArrayList<THashIndex>() {{
add(new THashIndex("size"));
add(new THashIndex("name"));
add(new THashIndex("size", "name"));
add(new THashIndex("format"));
add(new THashIndex("local_begin"));
}};
List<TPrefixIndex> prefixIndexes = new ArrayList<TPrefixIndex>() {{
add(new TPrefixIndex("name"));
add(new TPrefixIndex("name", "type"));
}};
List<TIntervalIndex> intervalIndexes = new ArrayList<TIntervalIndex>() {{
add(new TIntervalIndex("size"));
add(new TIntervalIndex("double"));
add(new TIntervalIndex("begin_time"));
add(new TIntervalIndex("local_begin"));
add(new TIntervalIndex("size", new String[]{"name"}));
add(new TIntervalIndex("size", new String[]{"folder_id"}));
}};
List<TRangeIndex> rangeIndexes = new ArrayList<TRangeIndex>() {{
add(new TRangeIndex("begin", "end"));
add(new TRangeIndex("begin", "end", new String[]{"folder_id"}));
add(new TRangeIndex("begin_time", "end_time"));
add(new TRangeIndex("begin_time", "begin_time", new String[]{"folder_id"}));
add(new TRangeIndex("local_begin", "local_end"));
}};
Table table = new Table("StoreFile",
"com.infomaximum.store",
fields,
hashIndexes,
prefixIndexes,
intervalIndexes,
rangeIndexes
);
schema.createTable(table);
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(12L);
storeFileEditable.setBegin(12L);
storeFileEditable.setEnd(14L);
storeFileEditable.setFileName("FileName");
storeFileEditable.setDouble(12.4);
transaction.save(storeFileEditable);
storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(11L);
storeFileEditable.setBegin(1L);
storeFileEditable.setEnd(2L);
storeFileEditable.setFileName("FileName2");
storeFileEditable.setDouble(13.4);
transaction.save(storeFileEditable);
storeFileEditable = transaction.create(StoreFileEditable.class);
storeFileEditable.setSize(1L);
storeFileEditable.setBegin(10L);
storeFileEditable.setEnd(13L);
storeFileEditable.setFileName("FileName");
storeFileEditable.setDouble(13.123);
transaction.save(storeFileEditable);
});
return schema.getTable("StoreFile", "com.infomaximum.store");
}
private void assertThatSchemaContainsTable(Table expected) throws DatabaseException {
Schema schema = Schema.read(rocksDBProvider);
Table actual = schema.getTable(expected.getName(), expected.getNamespace());
Assertions.assertThat(actual).isEqualTo(expected);
String dataColumnFamily = expected.getNamespace() + "." + expected.getName();
String indexColumnFamily = expected.getNamespace() + "." + expected.getName() + ".index";
Assertions.assertThat(rocksDBProvider.containsColumnFamily(dataColumnFamily)).isTrue();
Assertions.assertThat(rocksDBProvider.containsColumnFamily(indexColumnFamily)).isTrue();
}
private void assertThatTableIsEmpty(String name, String namespace) throws DatabaseException {
Schema schema = Schema.read(rocksDBProvider);
DBTable table = schema.getDbSchema().getTable(name, namespace);
try (DBIterator it = rocksDBProvider.createIterator(table.getDataColumnFamily())){
KeyValue kv = it.seek(null);
Assertions.assertThat(kv)
.as("Table %s.%s doesn't empty", namespace, name)
.isNull();
}
try (DBIterator it = rocksDBProvider.createIterator(table.getIndexColumnFamily())){
KeyValue kv = it.seek(null);
Assertions.assertThat(kv)
.as("Table %s.%s doesn't empty. Indexes doesn't empty", namespace, name)
.isNull();
}
}
private void assertThatTableIsEmpty(Table table) throws DatabaseException {
assertThatTableIsEmpty(table.getName(), table.getNamespace());
}
private void assertTableDoesntExist(String name, String namespace) throws DatabaseException {
Schema schema = Schema.read(rocksDBProvider);
Assertions.assertThatThrownBy(() -> schema.getTable(name, namespace)).isExactlyInstanceOf(TableNotFoundException.class);
String dataColumnFamily = namespace + "." + name;
String indexColumnFamily = namespace + "." + name + ".index";
Assertions.assertThat(rocksDBProvider.containsColumnFamily(dataColumnFamily)).isFalse();
Assertions.assertThat(rocksDBProvider.containsColumnFamily(indexColumnFamily)).isFalse();
}
private <T extends DomainObject> void assertThatNoAnyRecords(Class<T> dbEntity, Filter filter) throws Exception {
domainObjectSource.executeTransactional(transaction -> {
try(IteratorEntity<T> it = transaction.find(dbEntity, filter)) {
Assertions.assertThat(it.hasNext()).isFalse();
}
});
}
private <T extends DomainObject> void assertThatHasAnyRecords(Class<T> dbEntity, Filter filter) throws Exception {
domainObjectSource.executeTransactional(transaction -> {
try(IteratorEntity<T> it = transaction.find(dbEntity, filter)) {
Assertions.assertThat(it.hasNext()).isTrue();
}
});
}
}
<file_sep>package com.infomaximum.database.domainobject.filter;
import java.time.Instant;
import java.time.LocalDateTime;
public class IntervalFilter extends BaseIntervalFilter {
private final Integer indexedFieldId;
private SortDirection sortDirection = SortDirection.ASC;
public IntervalFilter(Integer indexedFieldId, Double beginValue, Double endValue) {
super(beginValue, endValue);
this.indexedFieldId = indexedFieldId;
}
public IntervalFilter(Integer indexedFieldId, Long beginValue, Long endValue) {
super(beginValue, endValue);
this.indexedFieldId = indexedFieldId;
}
public IntervalFilter(Integer indexedFieldId, Instant beginValue, Instant endValue) {
super(beginValue, endValue);
this.indexedFieldId = indexedFieldId;
}
public IntervalFilter(Integer indexedFieldId, LocalDateTime beginValue, LocalDateTime endValue) {
super(beginValue, endValue);
this.indexedFieldId = indexedFieldId;
}
public Integer getIndexedFieldId() {
return indexedFieldId;
}
public SortDirection getSortDirection() {
return sortDirection;
}
@Override
public IntervalFilter appendHashedField(Integer number, Object value) {
return (IntervalFilter) super.appendHashedField(number, value);
}
public IntervalFilter setSortDirection(SortDirection sortDirection) {
if (sortDirection == null) {
throw new IllegalArgumentException();
}
this.sortDirection = sortDirection;
return this;
}
}
<file_sep>package com.infomaximum.database.domainobject.index;
import com.infomaximum.database.domainobject.filter.PrefixFilter;
import com.infomaximum.database.exception.IndexNotFoundException;
import com.infomaximum.database.provider.DBIterator;
import com.infomaximum.database.provider.KeyPattern;
import com.infomaximum.database.provider.KeyValue;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.database.schema.StructEntity;
import com.infomaximum.database.utils.key.Key;
import com.infomaximum.database.utils.key.PrefixIndexKey;
import com.infomaximum.database.utils.PrefixIndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class PrefixIndexTest extends StoreFileDataTest {
private final String fileName = " Test sTring <EMAIL> \r";
private final List<String> lexemes = Arrays.asList("test", "string", "<EMAIL>", "mail.com", "com");
private String indexColumnFamily;
@Before
public void init() throws Exception {
super.init();
indexColumnFamily = Schema.getEntity(StoreFileReadable.class).getPrefixIndexes().get(0).columnFamily;
}
@Test
public void notFoundIndex() {
try {
domainObjectSource.find(StoreFileReadable.class, new PrefixFilter(StoreFileReadable.FIELD_BEGIN_TIME, null));
Assert.fail();
} catch (IndexNotFoundException ignore) {}
try {
domainObjectSource.find(StoreFileReadable.class, new PrefixFilter(Arrays.asList(StoreFileReadable.FIELD_FILE_NAME, StoreFileReadable.FIELD_SIZE), null), null);
Assert.fail();
} catch (IndexNotFoundException ignore) {}
}
@Test
public void insertWithNotOverflowedBlock() throws Exception {
final int recordCount = 10;
ByteBuffer buffer = createRecords(recordCount);
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
assertEquals(0, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assert.assertEquals(0, currentLexemes.size());
}
@Test
public void insertWithOverflowedBlock() throws Exception {
final int recordCountForFullBlock = PrefixIndexUtils.PREFERRED_MAX_ID_COUNT_PER_BLOCK;
ByteBuffer bufferForFullBlock = createRecords(recordCountForFullBlock);
final int recordCount = 10;
ByteBuffer buffer = createRecords(recordCount);
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
PrefixIndexKey key = PrefixIndexKey.unpack(keyValue.getKey());
Assert.assertEquals(0, key.getBlockNumber());
Assert.assertArrayEquals(bufferForFullBlock.array(), keyValue.getValue());
keyValue = iterator.next();
assertEquals(1, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assert.assertEquals(0, currentLexemes.size());
}
@Test
public void reinsertWithOverflowedBlock() throws Exception {
final int recordCountForFullBlock = PrefixIndexUtils.PREFERRED_MAX_ID_COUNT_PER_BLOCK;
ByteBuffer bufferForFullBlock = createRecords(recordCountForFullBlock);
final int recordCount = 10;
ByteBuffer buffer = createRecords(recordCount);
final long updatingId1 = 7;
final long updatingId2 = PrefixIndexUtils.PREFERRED_MAX_ID_COUNT_PER_BLOCK + 2;
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.get(StoreFileEditable.class, updatingId1);
obj.setFileName(null);
transaction.save(obj);
obj = transaction.get(StoreFileEditable.class, updatingId2);
obj.setFileName(null);
transaction.save(obj);
});
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.get(StoreFileEditable.class, updatingId1);
obj.setFileName(fileName);
transaction.save(obj);
obj = transaction.get(StoreFileEditable.class, updatingId2);
obj.setFileName(fileName);
transaction.save(obj);
});
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
PrefixIndexKey key = PrefixIndexKey.unpack(keyValue.getKey());
Assert.assertEquals(0, key.getBlockNumber());
Assert.assertArrayEquals(bufferForFullBlock.array(), keyValue.getValue());
keyValue = iterator.next();
assertEquals(1, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assert.assertEquals(0, currentLexemes.size());
}
@Test
public void remove() throws Exception {
final int recordCount = 10;
byte[] buffer = createRecords(recordCount).array();
final long removingId = 7;
domainObjectSource.executeTransactional(transaction -> transaction.remove(transaction.get(StoreFileEditable.class, removingId)));
buffer = PrefixIndexUtils.removeId(removingId, buffer);
List<String> currentLexemes = new ArrayList<>(lexemes);
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
assertEquals(0, buffer, currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assert.assertEquals(0, currentLexemes.size());
}
@Test
public void update() throws Exception {
final int recordCount = 1;
ByteBuffer buffer = createRecords(recordCount);
final String newFileName = " Test sTrIng <EMAIL>. \r";
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.get(StoreFileEditable.class, 1);
obj.setFileName(newFileName);
transaction.save(obj);
});
List<String> currentLexemes = new ArrayList<>(Arrays.asList("test", "string", "<EMAIL>.", "mail."));
try (DBIterator iterator = rocksDBProvider.createIterator(indexColumnFamily)) {
KeyValue keyValue = iterator.seek(buildAttendantPrefixIndex());
while (keyValue != null) {
assertEquals(0, buffer.array(), currentLexemes, keyValue);
keyValue = iterator.next();
}
}
Assert.assertEquals(0, currentLexemes.size());
}
private static void assertEquals(int expectedBlock, byte[] expectedValue, List<String> expectedLexemes, KeyValue actual) {
PrefixIndexKey key = PrefixIndexKey.unpack(actual.getKey());
Assert.assertTrue(expectedLexemes.remove(key.getLexeme()));
Assert.assertEquals(expectedBlock, key.getBlockNumber());
Assert.assertArrayEquals(expectedValue, actual.getValue());
}
private ByteBuffer createRecords(int recordCount) throws Exception {
ByteBuffer idsBuffer = TypeConvert.allocateBuffer(recordCount * Key.ID_BYTE_SIZE);
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < recordCount; ++i) {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setFileName(fileName);
transaction.save(obj);
idsBuffer.putLong(obj.getId());
}
});
return idsBuffer;
}
private KeyPattern buildAttendantPrefixIndex() {
StructEntity structEntity = Schema.getEntity(StoreFileEditable.class);
return PrefixIndexKey.buildKeyPatternForFind("", structEntity.getPrefixIndex(Collections.singleton(0)));
}
}
<file_sep>package com.infomaximum.database.domainobject.index;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import com.infomaximum.database.domainobject.iterator.IntervalIndexIteratorTest;
import org.junit.Test;
import java.util.Arrays;
public class IntervalIndexUpdateTest extends IntervalIndexIteratorTest {
@Test
public void removeRecords() throws Exception {
prepareData();
assertValueEquals(Arrays.asList(-4L, -2L, 0L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
domainObjectSource.executeTransactional(transaction -> transaction.remove(transaction.get(StoreFileEditable.class, 4)));
assertValueEquals(Arrays.asList(-4L, 0L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
domainObjectSource.executeTransactional(transaction -> transaction.remove(transaction.get(StoreFileEditable.class, 2)));
assertValueEquals(Arrays.asList(-4L, 0L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
}
@Test
public void removeThenInsertRecords() throws Exception {
prepareData();
assertValueEquals(Arrays.asList(-4L, -2L, 0L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
domainObjectSource.executeTransactional(transaction -> transaction.remove(transaction.get(StoreFileEditable.class, 4)));
assertValueEquals(Arrays.asList(-4L, 0L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(-2);
transaction.save(obj);
});
assertValueEquals(Arrays.asList(-4L, -2L, 0L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
}
@Test
public void updateRecords() throws Exception {
prepareData();
assertValueEquals(Arrays.asList(-4L, -2L, 0L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.get(StoreFileEditable.class, 4);
obj.setSize(3);
transaction.save(obj);
});
assertValueEquals(Arrays.asList(-4L, 0L, 3L, 3L, 5L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.get(StoreFileEditable.class, 4);
obj.setSize(8);
transaction.save(obj);
});
assertValueEquals(Arrays.asList(-4L, 0L, 3L, 5L, 8L), StoreFileReadable.FIELD_SIZE, -5L, 10L);
}
private void prepareData() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable obj = transaction.create(StoreFileEditable.class);
obj.setSize(5);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(3);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(0);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(-2);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(-4);
transaction.save(obj);
obj = transaction.create(StoreFileEditable.class);
obj.setSize(-9);
transaction.save(obj);
});
}
}
<file_sep>package com.infomaximum.domain.type;
import com.infomaximum.database.utils.BaseEnum;
/**
* Created by kris on 16.06.17.
*/
public enum FormatType implements BaseEnum {
A(1),
B(2);
private final int value;
FormatType(int value) {
this.value = value;
}
@Override
public int intValue() {
return value;
}
}
<file_sep>package com.infomaximum.database.domainobject.filter;
public class EmptyFilter implements Filter {
public static final EmptyFilter INSTANCE = new EmptyFilter();
private EmptyFilter() {}
}
<file_sep>package com.infomaximum.database.domainobject;
import java.io.Serializable;
public class Value<T extends Serializable> implements Serializable {
private static final Value<? extends Serializable> EMPTY = new Value<>(null);
private final T value;
private Value(T value) {
this.value = value;
}
public T getValue() {
return value;
}
public static <U extends Serializable> Value<U> empty() {
return (Value<U>) EMPTY;
}
public static <U extends Serializable> Value<U> of(U value) {
return value != null ? new Value<>(value) : empty();
}
}
<file_sep>plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
id "org.checkerframework" version "0.6.15" //https://github.com/kelloggm/checkerframework-gradle-plugin
}
if (project.hasProperty('ossrhUsername')) {
apply from: 'publish.gradle'
}
group 'com.infomaximum'
version '1.14.11'
ext.moduleName = 'com.infomaximum.rdao'
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
compileJava {
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath
]
classpath = files()
}
}
sourceSets {
main {
java.srcDir 'src/main/java'
resources.srcDir 'src/main/resources'
}
test {
java.srcDir 'src/test/java'
resources.srcDir 'src/test/resources'
}
test_performance {
java.srcDir 'src/test_performance/java'
resources.srcDir 'src/test_performance/resources'
compileClasspath += sourceSets.main.output + sourceSets.test.output
runtimeClasspath += sourceSets.main.output + sourceSets.test.output
}
}
configurations {
test_performanceImplementation.extendsFrom(testImplementation)
test_performanceRuntimeOnly.extendsFrom(testRuntimeOnly)
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.rocksdb:rocksdbjni:6.8.1'
implementation('com.google.guava:guava:31.1-jre') {
exclude group: 'com.google.guava', module: 'failureaccess'
exclude group: 'com.google.guava', module: 'listenablefuture'
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
exclude group: 'com.google.code.findbugs', module: 'jsr305'
}
implementation 'com.infomaximum:json-smart:2.4.8'
implementation 'org.slf4j:slf4j-api:2.0.0-beta1'
testImplementation group: 'junit', name: 'junit', version: '4.13-beta-3'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.5.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.5.2'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.13.2'
testImplementation 'ch.qos.logback:logback-core:1.3.0-beta0'
testImplementation 'ch.qos.logback:logback-classic:1.3.0-beta0'
testImplementation 'org.apache.commons:commons-io:1.3.2'
testImplementation 'org.apache.commons:commons-math:2.0'
}
task test_performance(type: Test, description: 'Performance test', group: 'Verification') {}<file_sep>package com.infomaximum.database.exception;
public class SequenceAlreadyExistsException extends DatabaseException {
public SequenceAlreadyExistsException(String name) {
super("Sequence " + name + " already exists.");
}
}
<file_sep>package com.infomaximum.database.domainobject;
/**
* Created by kris on 06.09.17.
*/
public interface DomainObjectEditable {
}
<file_sep>package com.infomaximum.database.domainobject.engine;
import com.infomaximum.database.Record;
import com.infomaximum.database.RecordIterator;
import com.infomaximum.database.domainobject.StoreFileDataTest;
import com.infomaximum.database.domainobject.filter.RangeFilter;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.utils.InstantUtils;
import com.infomaximum.database.utils.LocalDateTimeUtils;
import com.infomaximum.domain.ExchangeFolderEditable;
import com.infomaximum.domain.StoreFileEditable;
import com.infomaximum.domain.StoreFileReadable;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import java.time.*;
import java.util.*;
import java.util.stream.Collectors;
public class RangeIndexIteratorTest extends StoreFileDataTest {
// @Test
// public void insertAndFindZeroLengthRange() throws Exception {
// final Long value = 10L;
// final Long folderId = 20L;
//
// domainObjectSource.executeTransactional(transaction -> {
// transaction.setForeignFieldEnabled(false);
//
// StoreFileEditable s = transaction.create(StoreFileEditable.class);
// s.setBegin(value);
// s.setEnd(value);
// transaction.save(s);
//
// s = transaction.create(StoreFileEditable.class);
// s.setBegin(value - 1);
// s.setEnd(value + 1);
// transaction.save(s);
//
// s = transaction.create(StoreFileEditable.class);
// s.setFolderId(folderId);
// s.setBegin(value);
// s.setEnd(value);
// transaction.save(s);
// });
//
// assertEquals(Collections.singletonList(3L), findAll(new Interval(value, value, true, folderId)));
// assertEquals(Arrays.asList(1L, 3L), findAll(new Interval(value, value)));
// assertEquals(Arrays.asList(2L, 1L, 3L), findAll(new Interval(value, value + 1)));
// assertEquals(Collections.singletonList(2L), findAll(new Interval(value - 1, value)));
// assertEquals(Arrays.asList(2L, 1L, 3L), findAll(new Interval(value - 1, value + 1)));
//
// recordSource.executeTransactional(transaction -> {
// try (RecordIterator iterator = recordSource.select("StoreFile", "com.infomaximum.store")) {
// while (iterator.hasNext()) {
// transaction.remove(iterator.next());
// }
// }
// });
// new DomainService(rocksDBProvider, schema)
// .setChangeMode(ChangeMode.NONE)
// .setValidationMode(true)
// .setDomain(Schema.getEntity(StoreFileEditable.class))
// .execute();
// }
private void assertEquals(List<Long> expectedIds, List<Record> actual) {
Assertions.assertThat(actual.stream().map(Record::getId).collect(Collectors.toList())).isEqualTo(expectedIds);
}
@Test
public void insertAndFindLargeInstant() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBeginTime(InstantUtils.MIN);
s.setEndTime(InstantUtils.ZERO);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBeginTime(InstantUtils.ZERO.plus(Duration.ofSeconds(1)));
s.setEndTime(InstantUtils.MAX);
transaction.save(s);
});
RangeFilter rangeFilter = new RangeFilter(StoreFileReadable.RANGE_INSTANT_FIELD, InstantUtils.MIN, InstantUtils.ZERO.minus(Duration.ofMillis(1)));
try (RecordIterator iterator = recordSource
.select("StoreFile", "com.infomaximum.store", rangeFilter)) {
Assertions.assertThat(iterator.hasNext()).isTrue();
}
rangeFilter = new RangeFilter(StoreFileReadable.RANGE_INSTANT_FIELD, InstantUtils.ZERO.plus(Duration.ofMillis(1)), InstantUtils.MAX);
try (RecordIterator i = recordSource
.select("StoreFile", "com.infomaximum.store", rangeFilter)) {
Assertions.assertThat(i.hasNext()).isTrue();
}
Assertions.assertThatThrownBy(() -> {
RangeFilter rangeFilter1 = new RangeFilter(StoreFileReadable.RANGE_INSTANT_FIELD, InstantUtils.ZERO.plus(Duration.ofMillis(1)), InstantUtils.MAX.plus(Duration.ofMillis(1)));
try (RecordIterator i = recordSource
.select("StoreFile", "com.infomaximum.store", rangeFilter1)) {
Assertions.assertThat(i.hasNext()).isTrue();
}
}).isExactlyInstanceOf(ArithmeticException.class);
}
@Test
public void insertAndFindLocalDateTime() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setLocalBegin(LocalDateTime.of(2018, 2, 5, 18, 30, 5));
s.setLocalEnd(LocalDateTime.of(2018, 2, 5, 18, 30, 10));
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setLocalBegin(LocalDateTime.of(2018, 2, 5, 17, 30, 5));
s.setLocalEnd(LocalDateTime.of(2018, 2, 5, 17, 30, 10));
transaction.save(s);
});
RangeFilter rangeFilter = new RangeFilter(StoreFileReadable.RANGE_LOCAL_FIELD,
LocalDateTime.of(2018, 2, 5, 18, 30, 0),
LocalDateTime.of(2018, 2, 5, 18, 30, 6)
);
try (RecordIterator i = recordSource
.select("StoreFile", "com.infomaximum.store", rangeFilter)) {
Assertions.assertThat(i.hasNext()).isTrue();
}
rangeFilter = new RangeFilter(StoreFileReadable.RANGE_LOCAL_FIELD,
LocalDateTimeUtils.MIN,
LocalDateTimeUtils.MAX
);
try (RecordIterator i = recordSource
.select("StoreFile", "com.infomaximum.store", rangeFilter)) {
Assertions.assertThat(i.hasNext()).isTrue();
i.next();
Assertions.assertThat(i.hasNext()).isTrue();
i.next();
Assertions.assertThat(i.hasNext()).isFalse();
}
}
@Test
public void insertAndFindLocalDateTimeWithHashIndex() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
ExchangeFolderEditable s = transaction.create(ExchangeFolderEditable.class);
s.setUuid("1");
transaction.save(s);
s = transaction.create(ExchangeFolderEditable.class);
s.setUuid("2");
transaction.save(s);
});
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setFolderId(1);
s.setBegin(10L);
s.setEnd(100L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setFolderId(2);
s.setBegin(10L);
s.setEnd(100L);
transaction.save(s);
});
RangeFilter rangeFilter = new RangeFilter(StoreFileReadable.RANGE_LONG_FIELD,
Long.MIN_VALUE,
Long.MAX_VALUE
).appendHashedField(StoreFileEditable.FIELD_FOLDER_ID, 2L);
try (RecordIterator i = recordSource
.select("StoreFile", "com.infomaximum.store", rangeFilter)) {
Assertions.assertThat(i.hasNext()).isTrue();
Assertions.assertThat(i.next().getId()).isEqualTo(2L);
Assertions.assertThat(i.hasNext()).isFalse();
}
}
@Test
public void checkOrder() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBegin(100L);s.setEnd(200L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(150L);s.setEnd(200L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(50L);s.setEnd(180L);
transaction.save(s);
});
assertEquals(Arrays.asList(3L, 1L, 2L), findAll(new Interval(150, 200)));
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBegin(-10L);s.setEnd(10L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(5L);s.setEnd(15L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(-15L);s.setEnd(15L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(-20L);s.setEnd(5L);
transaction.save(s);
});
assertEquals(Arrays.asList(7L, 6L, 4L, 5L), findAll(new Interval(4, 6)));
}
@Test
public void insertAndFind() throws Exception {
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBegin(1L);
s.setEnd(null);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(null);
s.setEnd(1L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(null);
s.setEnd(null);
transaction.save(s);
});
assertEquals(Collections.emptyList(), findAll(new Interval(0, 5)));
test(0,
" |___|", "",
"|V____|");
test(100,
" |___|","",
" |V____|"
);
test(200,
" |____|","",
" |V____|",
"|__|"
);
test(300,
" |____|","",
" |V______|",
" |__|"
);
test(400,
" |_____|","",
" |V____|",
" |V____|",
"|___|",
"|___|"
);
test(500,
" |____|","",
" |V____|",
"|V____|"
);
test(600,
" |_____|","",
" |V____|",
" |V____|",
"|____|"
);
test(700,
"|___|", "",
" |_____|"
);
test(800,
" |___|","",
"|_____|"
);
test(900,
" |___|","",
"|____|"
);
test(1000,
" |___|","",
" |____|"
);
test(1100,
" |___|","",
"|V________|",
" |V__|"
);
test(1200,
" |___|","",
" |V__|",
"|V________|"
);
test(1300,
" |____________|","",
" |V__|",
"|V________|",
" |V_____|",
" |_____|"
);
test(1400,
" |____________|", "",
" |V__|",
"|V________|",
" |V_____|",
" |_____|"
);
test(1500,
" |____|","",
" |V__|",
" |V________|",
" |V_____|",
"|_|",
" |_|",
" |V_______________|"
);
test(1600,
" |_|","",
" |V_____|",
" |_|"
);
test(1700,
" |_|","",
" |V_____|",
" |V_____|",
" |V_____|",
" |_|"
);
test(1800,
" |_|","",
" |V____|",
" |_|"
);
test(1900,
" |_|","",
" |V____|",
" |_|"
);
test(2000,
" |__|","",
" |V____|",
" |_|"
);
test(2100,
" |_|","",
" |V____|",
" |V__|",
" |__|",
" |__|",
" |_| "
);
}
@Test
public void groupedInsertAndFind() throws Exception {
test(0,
" |___________2|", "",
" |__1|",
"|________1|"
);
test(100,
" |___________1|","",
" |V__1|",
"|________2|"
);
test(200,
" |___________1|","",
" |V__1|",
"|________2|",
" |V________1|"
);
test(300,
" |____1|","",
" |V__1|",
"|________2|",
" |V________1|",
" |__1|"
);
test(400,
" |1|","",
" |V____1|",
" |1|"
);
test(500,
" |1|","",
" |V___1|",
" |V___1|",
" |____2|",
" |1|"
);
test(600,
" |1|","",
" |V___1|",
" |1|"
);
test(700,
" |-1|","",
" |V___1|",
" |1|"
);
test(800,
" |-----------1|","",
" |_1|",
" |2|"
);
test(850,
" |-----------------1|","",
" |-1|",
" |V1| ",
" |V-1|",
" |2|",
" |V------1|"
);
test(900,
" |---------1|","",
" |V___1|",
" |2|"
);
List<Long> expectedIds = new ArrayList<>();
domainObjectSource.executeTransactional(transaction -> {
transaction.setForeignFieldEnabled(false);
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBeginTime(toInstant(9, 1, 2018));
s.setEndTime(toInstant(14, 1, 2018));
s.setFolderId(1);
transaction.save(s);
expectedIds.add(s.getId());
s = transaction.create(StoreFileEditable.class);
s.setBeginTime(toInstant(9, 1, 2018));
s.setEndTime(toInstant(11, 1, 2018));
s.setFolderId(1);
transaction.save(s);
});
RangeFilter filter = new RangeFilter(
StoreFileReadable.RANGE_INSTANT_FIELD,
toInstant(12, 1, 2018),
toInstant(13, 1, 2018)
).appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, 1L);
List<Long> ids = new ArrayList<>();
try (RecordIterator i = recordSource.select("StoreFile", "com.infomaximum.store", filter)) {
while (i.hasNext()) {
ids.add(i.next().getId());
}
}
Assertions.assertThat(ids).isEqualTo(expectedIds);
}
private static Instant toInstant(int day, int month, int year) {
return ZonedDateTime.of(
year, month, day, 0, 0, 0, 0, ZoneId.of("Europe/Moscow")).toInstant();
}
@Test
public void updateAndFind() throws Exception {
final long id1 = 1L;
final long id2 = 2L;
final List<Long> expected = Arrays.asList(id1, id2);
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBegin(10L);
s.setEnd(20L);
transaction.save(s);
s = transaction.create(StoreFileEditable.class);
s.setBegin(20L);
s.setEnd(21L);
transaction.save(s);
});
assertEquals(expected, findAll(new Interval(0, 40)));
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.get(StoreFileEditable.class, id2);
s.setEnd(22L);
transaction.save(s);
});
domainObjectSource.executeTransactional(transaction -> {
StoreFileEditable s = transaction.get(StoreFileEditable.class, id1);
s.setEnd(23L);
transaction.save(s);
});
assertEquals(expected, findAll(new Interval(0, 40)));
}
// @Test
// public void deleteAndFind() throws Exception {
// domainObjectSource.executeTransactional(transaction -> {
// transaction.setForeignFieldEnabled(false);
//
// StoreFileEditable s = transaction.create(StoreFileEditable.class);
// s.setBegin(10L);
// s.setEnd(20L);
// s.setFolderId(1);
// transaction.save(s);
//
// s = transaction.create(StoreFileEditable.class);
// s.setBegin(15L);
// s.setEnd(25L);
// s.setFolderId(2);
// transaction.save(s);
//
// s = transaction.create(StoreFileEditable.class);
// s.setBegin(16L);
// s.setEnd(28L);
// s.setFolderId(2);
//
// s = transaction.create(StoreFileEditable.class);
// s.setBegin(15L);
// s.setEnd(18L);
// s.setFolderId(2);
// transaction.save(s);
//
// s = transaction.create(StoreFileEditable.class);
// s.setBegin(35L);
// s.setEnd(35L);
// s.setFolderId(2);
// transaction.save(s);
// });
//
// domainObjectSource.executeTransactional(transaction -> {
// try (RecordIterator i = recordSource.select("StoreFile", "com.infomaximum.store")) {
// while (i.hasNext()) {
// transaction.remove(i.next());
// }
// }
// });
//
// Assertions.assertThat(findAll(new Interval(0, 50))).hasSameElementsAs(Collections.emptyList());
// }
// @Test
// public void removeAndFind() throws Exception {
// domainObjectSource.executeTransactional(transaction -> {
// StoreFileEditable obj = transaction.create(StoreFileEditable.class);
// obj.setBegin(1L);
// obj.setEnd(2L);
// transaction.save(obj);
//
// obj = transaction.create(StoreFileEditable.class);
// obj.setBegin(10L);
// obj.setEnd(20L);
// transaction.save(obj);
//
// obj = transaction.create(StoreFileEditable.class);
// obj.setBegin(1L);
// obj.setEnd(2L);
// transaction.save(obj);
// });
//
// domainObjectSource.executeTransactional(transaction -> {
// transaction.remove(transaction.get(StoreFileEditable.class, 1));
// transaction.remove(transaction.get(StoreFileEditable.class, 2));
//
// testFind(transaction, new RangeFilter(StoreFileReadable.RANGE_LONG_FIELD, 10L, 20L));
// testFind(transaction, new RangeFilter(StoreFileReadable.RANGE_LONG_FIELD, 1L, 2L), 3);
// });
//
// testFind(domainObjectSource, new RangeFilter(StoreFileReadable.RANGE_LONG_FIELD, 10L, 20L));
// testFind(domainObjectSource, new RangeFilter(StoreFileReadable.RANGE_LONG_FIELD, 1L, 2L), 3);
// }
/**
* @param f filter
*/
private void test(long intervalShift, String f, String... insertingIntervals) throws Exception {
List<StoreFileReadable> expected = new ArrayList<>(insertingIntervals.length);
Assertions.assertThat(insertingIntervals[0]).isEqualTo("");
domainObjectSource.executeTransactional(transaction -> {
transaction.setForeignFieldEnabled(false);
for (int i = 1; i < insertingIntervals.length; ++i) {
Interval interval = parseInterval(insertingIntervals[i]);
StoreFileEditable s = transaction.create(StoreFileEditable.class);
s.setBegin(interval.begin + intervalShift);
s.setEnd(interval.end + intervalShift);
s.setFolderId(interval.folderId);
transaction.save(s);
if (interval.isMatched) {
expected.add(s);
}
}
});
Interval interval = parseInterval(f);
interval.plus(intervalShift);
List<Record> actual = findAll(interval);
Comparator<StoreFileReadable> comparator = Comparator.comparingLong(StoreFileReadable::getBegin)
.thenComparingLong(StoreFileReadable::getId);
expected.sort(comparator);
assertContainsExactlyDomainObjects(actual, expected);
}
private List<Record> findAll(Interval interval) throws DatabaseException {
List<Record> result = new ArrayList<>();
RangeFilter rangeFilter = new RangeFilter(StoreFileReadable.RANGE_LONG_FIELD, interval.begin, interval.end);
if (interval.folderId != null) {
rangeFilter.appendHashedField(StoreFileReadable.FIELD_FOLDER_ID, interval.folderId);
}
try (RecordIterator i = recordSource.select("StoreFile", "com.infomaximum.store", rangeFilter)) {
while (i.hasNext()) {
result.add(i.next());
}
}
return result;
}
private static Interval parseInterval(String src) {
int begin = src.indexOf('|');
int end = src.indexOf('|', begin + 1);
Long folderId = Character.isDigit(src.charAt(end - 1)) ? (long) Character.getNumericValue(src.charAt(end - 1)) : null;
return new Interval(begin, end, src.charAt(begin + 1) == 'V', folderId);
}
private static class Interval {
long begin;
long end;
final boolean isMatched;
final Long folderId;
Interval(long begin, long end, boolean isMatched, Long folderId) {
this.begin = begin;
this.end = end;
this.isMatched = isMatched;
this.folderId = folderId;
}
Interval(long begin, long end) {
this(begin, end, false, null);
}
void plus(long value) {
begin += value;
end += value;
}
}
}
<file_sep>package com.infomaximum.database.utils;
import java.time.Instant;
public class InstantUtils {
public static final Instant MAX = Instant.ofEpochMilli(Long.MAX_VALUE);
public static final Instant ZERO = Instant.EPOCH;
public static final Instant MIN = Instant.ofEpochMilli(Long.MIN_VALUE);
public static long toLong(Instant value) {
return value.toEpochMilli();
}
public static Instant fromLong(long value) {
return Instant.ofEpochMilli(value);
}
}
<file_sep>package com.infomaximum.database.exception;
public class TableRemoveException extends SchemaException
{
public TableRemoveException(String message) {
super(message);
}
}
<file_sep>package com.infomaximum.database.schema.table;
import java.util.Objects;
public class TableReference {
private final String name;
private final String namespace;
public TableReference(String name, String namespace) {
this.name = name;
this.namespace = namespace;
}
public String getName() {
return name;
}
public String getNamespace() {
return namespace;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TableReference that = (TableReference) o;
return Objects.equals(name, that.name) &&
Objects.equals(namespace, that.namespace);
}
@Override
public int hashCode() {
return Objects.hash(name, namespace);
}
@Override
public String toString() {
return "TableReference{" +
"name='" + name + '\'' +
", namespace='" + namespace + '\'' +
'}';
}
}
<file_sep>package com.infomaximum.database.domainobject;
import com.google.common.primitives.Longs;
import com.infomaximum.database.DataCommand;
import com.infomaximum.database.Record;
import com.infomaximum.database.RecordIterator;
import com.infomaximum.database.RecordSource;
import com.infomaximum.database.domainobject.filter.*;
import com.infomaximum.database.domainobject.iterator.IteratorEntity;
import com.infomaximum.database.exception.DatabaseException;
import com.infomaximum.database.schema.Schema;
import com.infomaximum.domain.ExchangeFolderReadable;
import com.infomaximum.domain.StoreFileReadable;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.stream.Collectors;
import java.util.stream.LongStream;
public abstract class StoreFileDataTest extends DomainDataTest {
protected static final String STORE_FILE_NAMESPACE = "com.infomaximum.store";
protected static final String STORE_FILE_NAME = "StoreFile";
protected static final String FOLDER_FILE_NAME = "ExchangeFolder";
protected static final String FOLDER_FILE_NAMESPACE = "com.infomaximum.exchange";
protected Schema schema;
protected RecordSource recordSource;
@BeforeEach
public void init() throws Exception {
super.init();
schema = Schema.read(rocksDBProvider);
createDomain(ExchangeFolderReadable.class);
createDomain(StoreFileReadable.class);
recordSource = new RecordSource(rocksDBProvider);
schema = Schema.read(rocksDBProvider);
}
@Deprecated
protected void assertFind(DataEnumerable enumerable, Filter filter, long... expectedIds) throws Exception {
assertFind(filter, expectedIds);
}
protected void assertFind(DataCommand dataCommand, Filter filter, long... expectedIds) throws DatabaseException {
assertFind(dataCommand, filter, Longs.asList(expectedIds));
}
protected void assertFind(Filter filter, List<Long> expectedIds) throws Exception {
recordSource.executeTransactional(dataCommand -> assertFind(dataCommand, filter, expectedIds));
}
protected void assertFind(Filter filter, long... expectedIds) throws Exception {
assertFind(filter, LongStream.of(expectedIds).boxed().collect(Collectors.toList()));
}
protected void assertFind(DataCommand dataCommand, Filter filter, List<Long> expectedIds) throws DatabaseException {
List<Long> temp = new ArrayList<>(expectedIds);
List<Long> foundIds = new ArrayList<>(temp.size());
try (RecordIterator iterator = getIteratorForFilter(STORE_FILE_NAME, STORE_FILE_NAMESPACE, filter, dataCommand)) {
while (iterator.hasNext()) {
foundIds.add(iterator.next().getId());
}
}
temp.sort(Long::compareTo);
foundIds.sort(Long::compareTo);
Assertions.assertThat(temp).isEqualTo(foundIds);
}
protected <T extends DomainObject> void assertContainsExactlyDomainObjects(Collection<Record> records, Collection<T> domainObjects) {
Assertions.assertThat(records).hasSameSizeAs(domainObjects);
for (Record record : records) {
T domainObject = domainObjects.stream().filter(t -> t.getId() == record.getId()).findAny().orElseThrow(() -> new NoSuchElementException(record.toString()));
for (int i = 0; i < record.getValues().length; i++) {
Assertions.assertThat(record.getValues()[i]).isEqualTo(domainObject.get(i));
}
}
}
protected <T extends DomainObject> void assertContainsExactlyDomainObjects(Collection<Record> records, T domainObject) {
Assertions.assertThat(records).hasSize(1);
for (Record record : records) {
for (int i = 0; i < record.getValues().length; i++) {
Assertions.assertThat(record.getValues()[i]).isEqualTo(domainObject.get(i));
}
}
}
private RecordIterator getIteratorForFilter(String tableName, String namespace, Filter filter, DataCommand dataCommand) {
if (filter instanceof HashFilter) {
return dataCommand.select(tableName, namespace, (HashFilter) filter);
}
if (filter instanceof PrefixFilter) {
return dataCommand.select(tableName, namespace, (PrefixFilter) filter);
}
if (filter instanceof IdFilter) {
return dataCommand.select(tableName, namespace, (IdFilter) filter);
}
if (filter instanceof IntervalFilter) {
return dataCommand.select(tableName, namespace, (IntervalFilter) filter);
}
if (filter instanceof RangeFilter) {
return dataCommand.select(tableName, namespace, (RangeFilter) filter);
}
if (filter instanceof EmptyFilter) {
return dataCommand.select(tableName, namespace);
}
throw new UnsupportedOperationException();
}
protected void testFind(DataEnumerable enumerable, Filter filter, long... expectedIds) throws DatabaseException {
testFind(enumerable, filter, Longs.asList(expectedIds));
}
protected void testFind(Filter filter, long... expectedIds) throws DatabaseException {
testFind(domainObjectSource, filter, expectedIds);
}
protected void testFind(Filter filter, List<Long> expectedIds) throws DatabaseException {
testFind(domainObjectSource, filter, expectedIds);
}
protected void testFind(DataEnumerable enumerable, Filter filter, List<Long> expectedIds) throws DatabaseException {
List<Long> temp = new ArrayList<>(expectedIds);
List<Long> foundIds = new ArrayList<>(temp.size());
try (IteratorEntity<StoreFileReadable> iterator = enumerable.find(StoreFileReadable.class, filter)) {
while (iterator.hasNext()) {
foundIds.add(iterator.next().getId());
}
}
temp.sort(Long::compareTo);
foundIds.sort(Long::compareTo);
Assertions.assertThat(temp).isEqualTo(foundIds);
}
}
<file_sep>package com.infomaximum.database.domainobject;
import com.infomaximum.domain.DataTestEditable;
import com.infomaximum.rocksdb.RocksDBProvider;
import org.junit.Assert;
import org.junit.Test;
public class DomainDataInstanceTestTest extends DomainDataInstanceTest {
@Test
public void test() throws Exception {
fillEtalonBD(this::fillData);
resetBDToEtalon();
domainObjectSource.executeTransactional(transaction -> {
DataTestEditable dataTestEditable = transaction.get(DataTestEditable.class, 1L);
Assert.assertNotNull(dataTestEditable);
transaction.remove(dataTestEditable);
});
resetBDToEtalon();
domainObjectSource.executeTransactional(transaction -> {
DataTestEditable dataTestEditable = transaction.get(DataTestEditable.class, 1L);
Assert.assertNotNull(dataTestEditable);
transaction.remove(dataTestEditable);
});
domainObjectSource.executeTransactional(transaction -> {
DataTestEditable dataTestEditable = transaction.get(DataTestEditable.class, 1L);
Assert.assertNull(dataTestEditable);
});
}
private void fillData(DomainObjectSource domainObjectSource, RocksDBProvider provider) throws Exception {
createDomain(DataTestEditable.class, provider);
domainObjectSource.executeTransactional(transaction -> {
for (int i = 0; i < 10; ++i) {
DataTestEditable generalEditable = transaction.create(DataTestEditable.class);
generalEditable.setValue("value:" + i);
transaction.save(generalEditable);
}
});
}
}<file_sep>task sourceJar(type: Jar) {
from sourceSets.main.java.srcDirs
archiveClassifier = "sources"
}
task packageJavadoc(type: Jar) {
from sourceSets.main.java.srcDirs
archiveClassifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar
artifact packageJavadoc
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'cluster'
description = 'Library for creating a light cluster'
url = 'https://github.com/Infomaximum/cluster'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'infomaximum'
name = 'Infomaximum LLC'
email = '<EMAIL>'
}
}
scm {
connection = 'scm:git:https://github.com/Infomaximum/cluster.git'
developerConnection = 'scm:git:<EMAIL>:Infomaximum/cluster.git'
url = 'https://github.com/Infomaximum/cluster'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username ossrhUsername
password ossrh<PASSWORD>
}
}
}
}
signing {
sign publishing.publications.mavenJava
}<file_sep>package com.infomaximum.rocksdb;
import com.infomaximum.database.anotation.Entity;
import com.infomaximum.database.anotation.Field;
import com.infomaximum.database.anotation.HashIndex;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.exception.DatabaseException;
@Entity(
namespace = "com.infomaximum.rocksdb",
name = "record",
fields = {
@Field(number = RecordIndexReadable.FIELD_STRING_1, name = "str1", type = String.class),
@Field(number = RecordIndexReadable.FIELD_LONG_1, name = "lng1", type = Long.class),
@Field(number = RecordIndexReadable.FIELD_INT_1, name = "int1", type = Integer.class),
@Field(number = RecordIndexReadable.FIELD_BOOLEAN_1, name = "bool1", type = Boolean.class)
},
hashIndexes = {
@HashIndex(fields = {RecordIndexReadable.FIELD_STRING_1}),
@HashIndex(fields = {RecordIndexReadable.FIELD_LONG_1}),
@HashIndex(fields = {RecordIndexReadable.FIELD_LONG_1, RecordIndexReadable.FIELD_STRING_1})
}
)
public class RecordIndexReadable extends DomainObject {
public final static int FIELD_STRING_1 = 0;
public final static int FIELD_LONG_1 = 1;
public final static int FIELD_INT_1 = 2;
public final static int FIELD_BOOLEAN_1 = 3;
public RecordIndexReadable(long id) {
super(id);
}
public String getString1() throws DatabaseException {
return getString(FIELD_STRING_1);
}
public Long getLong1() throws DatabaseException {
return getLong(FIELD_LONG_1);
}
public Boolean getBoolean1() throws DatabaseException {
return getBoolean(FIELD_BOOLEAN_1);
}
public Integer getInt1() throws DatabaseException {
return getInteger(FIELD_INT_1);
}
}
<file_sep>package com.infomaximum.database.schema;
import com.infomaximum.database.exception.IllegalTypeException;
import com.infomaximum.database.exception.StructEntityException;
import com.infomaximum.database.utils.TypeConvert;
import java.io.Serializable;
public class Field {
private final int number;
private final String name;
private final byte[] nameBytes;
private final Class<? extends Serializable> type;
private final TypeConverter converter;
private final StructEntity foreignDependency;
Field(com.infomaximum.database.anotation.Field field, StructEntity parent) {
this.number = field.number();
this.name = field.name();
this.nameBytes = TypeConvert.pack(field.name());
this.type = field.type();
this.converter = buildPacker(field.packerType());
if (field.foreignDependency() != Class.class) {
if (parent.getObjectClass() != field.foreignDependency()) {
this.foreignDependency = Schema.resolve(field.foreignDependency());
} else {
this.foreignDependency = parent;
}
} else {
this.foreignDependency = null;
}
if (isForeign() && this.type != Long.class) {
throw new StructEntityException("Type of foreign field " + field.name() + " must be " + Long.class + ".");
}
}
public int getNumber() {
return number;
}
public String getName() {
return name;
}
public byte[] getNameBytes() {
return nameBytes;
}
public Class<? extends Serializable> getType() {
return type;
}
public TypeConverter getConverter() {
return converter;
}
public boolean isForeign() {
return foreignDependency != null;
}
public StructEntity getForeignDependency() {
return foreignDependency;
}
public void throwIfNotMatch(Class type) {
if (this.type != type) {
throw new IllegalTypeException(this.type, type);
}
}
private static TypeConverter buildPacker(Class<?> packerClass) {
if (packerClass == Class.class) {
return null;
}
try {
return (TypeConverter) packerClass.newInstance();
} catch (ReflectiveOperationException e) {
throw new IllegalTypeException(e);
}
}
}
<file_sep>package com.infomaximum.database.schema.dbstruct;
import com.infomaximum.database.exception.IllegalTypeException;
import com.infomaximum.database.exception.SchemaException;
import com.infomaximum.database.utils.IndexUtils;
import com.infomaximum.database.utils.TypeConvert;
import net.minidev.json.JSONObject;
import java.util.Arrays;
import java.util.List;
public class DBRangeIndex extends DBBaseIntervalIndex {
private final static byte[] INDEX_NAME_BYTES = TypeConvert.pack("rng");
private static final String JSON_PROP_BEGIN_FIELD_ID = "begin_field_id";
private static final String JSON_PROP_END_FIELD_ID = "end_field_id";
private static final String JSON_PROP_HASH_FIELD_IDS = "hash_field_ids";
private final int beginFieldId;
private final int endFieldId;
DBRangeIndex(int id, DBField beginField, DBField endField, DBField[] hashFields) {
super(id, concatenate(beginField, endField, hashFields), Arrays.stream(hashFields).mapToInt(DBField::getId).toArray());
checkSorting(hashFields);
this.beginFieldId = beginField.getId();
this.endFieldId = endField.getId();
}
public DBRangeIndex(DBField beginField, DBField endField, DBField[] hashFields) {
this(-1, beginField, endField, hashFields);
}
public int getBeginFieldId() {
return beginFieldId;
}
public int getEndFieldId() {
return endFieldId;
}
@Override
protected byte[] getIndexNameBytes() {
return INDEX_NAME_BYTES;
}
static DBRangeIndex fromJson(JSONObject source, List<DBField> tableFields) throws SchemaException {
return new DBRangeIndex(
JsonUtils.getValue(JSON_PROP_ID, Integer.class, source),
IndexUtils.getFieldsByIds(tableFields, JsonUtils.getValue(JSON_PROP_BEGIN_FIELD_ID, Integer.class, source)),
IndexUtils.getFieldsByIds(tableFields, JsonUtils.getValue(JSON_PROP_END_FIELD_ID, Integer.class, source)),
IndexUtils.getFieldsByIds(tableFields, JsonUtils.getIntArrayValue(JSON_PROP_HASH_FIELD_IDS, source))
);
}
@Override
JSONObject toJson() {
JSONObject object = new JSONObject();
object.put(JSON_PROP_ID, getId());
object.put(JSON_PROP_BEGIN_FIELD_ID, beginFieldId);
object.put(JSON_PROP_END_FIELD_ID, endFieldId);
object.put(JSON_PROP_HASH_FIELD_IDS, JsonUtils.toJsonArray(getHashFieldIds()));
return object;
}
@Override
public Class<?> checkIndexedFieldType(Class<?> expectedType, DBTable table) {
DBField field = table.getField(beginFieldId);
if (field.getType() != expectedType) {
throw new IllegalTypeException(field.getType(), expectedType);
}
return null;
}
private static DBField[] concatenate(DBField beginFieldId, DBField endFieldId, DBField[] hashFieldIds) {
DBField[] fieldIds = Arrays.copyOf(hashFieldIds, hashFieldIds.length + 2);
fieldIds[fieldIds.length - 2] = beginFieldId;
fieldIds[fieldIds.length - 1] = endFieldId;
return fieldIds;
}
}
<file_sep>package com.infomaximum.database.exception;
import com.infomaximum.database.schema.Field;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBTable;
public class ForeignDependencyException extends DatabaseException {
public ForeignDependencyException(long objId, Class objClass, Field foreignField, long notExistenceFieldValue) {
super(String.format("Foreign field %s.%s = %d not exists into %s, for object id = %d.",
objClass.getName(), foreignField.getName(), notExistenceFieldValue,
foreignField.getForeignDependency().getObjectClass().getName(), objId));
}
public ForeignDependencyException(long recordId,
String table,
String tableNamespace,
String foreignTable,
String foreignTableNamespace,
DBField foreignField,
long notExistenceFieldValue) {
super(String.format("Foreign field %s.%s.%s = %d not exists into %s.%s, for object id = %d.",
table,
tableNamespace,
foreignField.getName(),
notExistenceFieldValue,
foreignTable,
foreignTableNamespace,
recordId));
}
public ForeignDependencyException(long recordId,
DBTable table,
DBTable foreignTable,
DBField foreignField,
long notExistenceFieldValue) {
this(recordId, table.getName(), table.getNamespace(), foreignTable.getName(), foreignTable.getNamespace(), foreignField, notExistenceFieldValue);
}
public ForeignDependencyException(long removingId, Class removingClass, long referencingId, Class referencingClass) {
super(String.format("Object %s.id = %d referenced to removing %s.id = %d.",
referencingClass.getName(), referencingId,
removingClass.getName(), removingId));
}
public ForeignDependencyException(long removingId,
String removingTableName,
String removingNamespace,
long referencingId,
String referencingTableName,
String referencingNamespace) {
super(String.format("Object %s.%s.id = %d referenced to removing %s.%s.id = %d.",
referencingNamespace, referencingTableName, referencingId,
removingNamespace, removingTableName, removingId));
}
}
| bf9fc1ad6ee53e2ca182a8cf1f25e7124a864c6d | [
"Java",
"Gradle"
] | 112 | Java | Infomaximum/rdao | f806362e779b80ab42dc76448322c65a5c77b6a5 | 3383955e818470a0f26add617f8202427f599dd4 |
refs/heads/master | <repo_name>nornagon/pushpin<file_sep>/src/renderer/ShareLink.ts
import Base58 from 'bs58'
/** share link helper functions
* lifted and adapted from pixelpusher
*/
import { DocUrl } from 'hypermerge'
export type HypermergeUrl = DocUrl
export type PushpinUrl = string & { pushpin: true }
export function isHypermergeUrl(str: string): str is HypermergeUrl {
return /^hypermerge:\/\w+$/.test(str)
}
export function isPushpinUrl(str: string): str is PushpinUrl {
return /^hypermerge:\/.+\/?\?pushpinContentType=(\w+)$/.test(str)
}
export function createDocumentLink(type: string, url: HypermergeUrl): PushpinUrl {
if (!url.match('hypermerge:/')) {
throw new Error('expecting a hypermerge URL as input')
}
if (url.match('pushpinContentType')) {
throw new Error('so-called ID contains "pushpin". you appear to have passed a URL as an ID')
}
const id = url.substring(12)
if (!type) {
throw new Error('no type when creating URL')
}
return `hypermerge:/${id}?pushpinContentType=${type}` as PushpinUrl
}
interface Parts {
scheme: string
type: string
docId: string
hypermergeUrl: HypermergeUrl
}
export function parseDocumentLink(link: string): Parts {
if (!link) {
throw new Error('Cannot parse an empty value as a link.')
}
const { scheme, type, docId } = parts(link)
if (scheme !== 'hypermerge') {
throw new Error(`Invalid url scheme: ${scheme} (expected hypermerge)`)
}
if (!type) {
throw new Error(`Missing type in ${link}`)
}
if (!docId) {
throw new Error(`Missing docId in ${link}`)
}
const hypermergeUrl = `hypermerge:/${docId}` as HypermergeUrl
return { scheme, type, docId, hypermergeUrl }
}
export function parts(str: string) {
const p = encodedParts(str)
return {
scheme: p.scheme,
type: p.type,
docId: p.docId,
}
}
export const encodedParts = (str: string) => {
// ugly
const [, /* whole match */ scheme, docId, type] = str.match(
/^(\w+):\/(\w+)\?pushpinContentType=(\w+)$/
) || [undefined, undefined, undefined, undefined]
return { scheme, type, docId }
}
export const encode = (str: string) => Base58.encode(hexToBuffer(str))
export const decode = (str: string) => bufferToHex(Base58.decode(str))
export const hexToBuffer = (key: string | Buffer) =>
Buffer.isBuffer(key) ? key : Buffer.from(key, 'hex')
export const bufferToHex = (key: Buffer | string) =>
Buffer.isBuffer(key) ? key.toString('hex') : key
| c3bc3e1e547790661b34b07df042f6063bcc43d0 | [
"TypeScript"
] | 1 | TypeScript | nornagon/pushpin | 84eedd9be45c5aedd4f1faeaa78dc6eb3fb9c81e | 40cc53d4d3443a069137830cfda0f2d661147a95 |
refs/heads/master | <file_sep>#!/bin/bash
set -e # exit with nonzero exit code if anything fails
cd site
cp -r ../examples .
# update scripts to reference unpkg
sed -i "s#../../node_modules/#https://unpkg.com/#" examples/*/index.html
sed -i "s#../../packages/#https://unpkg.com/#" examples/*/index.html
# disable jekyll
touch .nojekyll
# create a *new* Git repo
git init
git config user.name "Travis CI"
git config user.email "<you>@<your-email>"
git add .
git commit -m "Deploy to GitHub Pages"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
| 1637dc5d673941b791e64b49c02a1721b9287333 | [
"Shell"
] | 1 | Shell | mortezae/d3fc | db87e846786766234d3c367d2bfe1fe0f8b2345b | 66fce5071ece61ce9db189f181923fb7296a6dcf |
refs/heads/master | <repo_name>liuhangyang/RecruitPlatform<file_sep>/controllers/RecruitController.go
package controllers
import (
"github.com/astaxie/beego"
"RecruitPlatform/models"
"time"
"fmt"
)
// Operations about RecruitMsg
type RecruitController struct {
beego.Controller
}
// @Title GetRecruitList
// @Description get all recruit list
// @Success 200 {object} models.RecruitMsg
// @Failure 400 get recruitmsg error
// @router / [get]
func (n *RecruitController) GetRecruitMsgList(){
list,err := models.GetRecruitMsgList()
urlMap := make(map[string]interface{})
urlMap["data"]= list
if err != nil{
n.Data["json"] = err.Error()
}else{
n.Data["json"] = urlMap
}
n.ServeJSON()
}
// @Title CommitRecruitMsg
// @Description commit a recruit msg
// @Success 200 {object} models.RecruitMsg
// @Failure 400 commit recruitmsg error
// @router / [post]
func (n *RecruitController) CommitRecruitNews(){
title := n.Input().Get("title")
company := n .Input().Get("company")
endtime := n.Input().Get("endtime")
endtime += " 00:00:00"
content := n.Input().Get("detail")
Releasetime := time.Now()
t, _ := time.Parse("2006-01-02 15:04:05", endtime)
recruit := models.RecruitMsg{Person_id:user.Id,Person_name:user.Name,Recruit_title:title,Recruit_company:company,Recruit_releasetime:Releasetime,Recruit_endtime:t,Recruit_content:content}
maps,err:= models.InsertRecruitList(&recruit)
if err ==nil{
s := fmt.Sprintf("%s发布了一条新招聘动态",user.Name)
new := models.News{Person_id:user.Id,Person_name:user.Name,News_title:s,News_time:Releasetime,News_url:"http://127.0.0.1/recruit/1"}
err = models.InsertNewList(&new)
if err != nil{
}else{
}
}
n.Data["json"] = maps
n.ServeJSON()
}
// @Title GetRecruitList
// @Description get recruit detail
// @Param key path string true "the id for recruitmsg"
// @Success 200 {object} models.RecruitMsg
// @Failure 400 get recruit detail error
// @router /:Id [get]
func (n *RecruitController) GetRecruitDetail() {
id, _ := n.GetInt(":Id")
fmt.Println("ID:", id)
list, err := models.GetRecruitDetailById(id)
if err == nil{
n.Data["recruit_title"] = list[0]["recruit_title"]
n.Data["recruit_releasetime"] = list[0]["recruit_releasetime"]
n.Data["recruit_content"] = list[0]["recruit_content"]
n.Data["person_name"] = list[0]["recruit_title"]
}
n.Data["avatar"] = user.Avatar_url
n.Data["user"] = user.Name
n.Layout = "index.html"
n.TplName = "recruit_detail.html"
}
<file_sep>/models/Interview.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
)
type Interview struct{
Id int `orm:"pk;auto"`
Person_id int
Person_name string `orm:"size(30)"`
Interview_title string `orm:"size(150)"`
Interview_company string `orm:"size(100)"`
Interview_time time.Time `orm:"auto_now_add;type(datetime)"`
Interview_way string `orm:"size(100)"`
Interview_class string `orm:"size(100)"`
Interview_content string `orm:"type(text);null"`
InterviewComment []*InterviewComment `orm:"reverse(many)"`
}
<file_sep>/main.go
package main
import (
_ "RecruitPlatform/routers"
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"
"RecruitPlatform/models"
_ "github.com/go-sql-driver/mysql" // import your used driver
//"github.com/astaxie/beego/session"
//"github.com/astaxie/beego/session"
)
func init(){
beego.BConfig.WebConfig.Session.SessionOn = true
orm.RegisterDataBase("default","mysql",beego.AppConfig.String("jdbc.username")+":"+beego.AppConfig.String("jdbc.password")+"@/recruit?charset=utf8",30)
orm.RegisterModel(
new(models.Interview),
new(models.Tag),
new(models.InterviewComment),
new(models.RecruitMsg),
new(models.RecruitComment),
new(models.ResumeMsg),
new(models.News))
orm.RunSyncdb("default",false,true)
beego.AddTemplateExt("js")
}
func main() {
if beego.BConfig.RunMode == "dev" {
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
}
beego.Run()
}
<file_sep>/routers/router.go
package routers
import (
"RecruitPlatform/controllers"
"github.com/astaxie/beego"
//"RecruitPlatform/filters"
//"github.com/astaxie/beego/plugins/cors"
//"github.com/astaxie/beego/plugins/cors"
"github.com/astaxie/beego/plugins/cors"
)
// @APIVersion 1.0.0
// @Title XiYouLinux CS Recruit API
// @Description Recruitment platform API of XiYouLinux CS.
// @Contact <EMAIL>
func init() {
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
AllowAllOrigins: true,
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
AllowHeaders: []string{"Origin", "Authorization", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
ExposeHeaders: []string{"Content-Length", "Access-Control-Allow-Origin", "Access-Control-Allow-Headers", "Content-Type"},
AllowCredentials: true,
}))
beego.Router("/", &controllers.IndexController{},"GET:Login")
beego.Router("/index",&controllers.IndexController{},"GET:Index")
beego.Router("/recruit/update_comment/:id",&controllers.ReCommentController{},"POST:UpdateRecruitComment")
ns :=
beego.NewNamespace("/recruit",
beego.NSNamespace("/newslist",
beego.NSInclude(
&controllers.NewsController{},
),
),
beego.NSNamespace("/get_recruit_msg",
beego.NSInclude(
&controllers.RecruitController{},
),
),
beego.NSNamespace("/commit_recruit_news",
beego.NSInclude(
&controllers.RecruitController{},
),
),
beego.NSNamespace("/detail",
beego.NSInclude(
&controllers.RecruitController{},
),
),
beego.NSNamespace("/comments",
beego.NSInclude(
&controllers.ReCommentController{},
),
),
beego.NSNamespace("/post_comment",
beego.NSInclude(
&controllers.ReCommentController{},
),
),
)
beego.AddNamespace(ns)
}
<file_sep>/routers/commentsRouter_.go
package routers
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/context/param"
)
func init() {
beego.GlobalControllerRouter["RecruitPlatform/controllers:NewsController"] = append(beego.GlobalControllerRouter["RecruitPlatform/controllers:NewsController"],
beego.ControllerComments{
Method: "GetNewList",
Router: `/`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Params: nil})
beego.GlobalControllerRouter["RecruitPlatform/controllers:ReCommentController"] = append(beego.GlobalControllerRouter["RecruitPlatform/controllers:ReCommentController"],
beego.ControllerComments{
Method: "GetRecuitComment",
Router: `/:Id`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Params: nil})
beego.GlobalControllerRouter["RecruitPlatform/controllers:ReCommentController"] = append(beego.GlobalControllerRouter["RecruitPlatform/controllers:ReCommentController"],
beego.ControllerComments{
Method: "InsertRecruitComment",
Router: `/:Id`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Params: nil})
beego.GlobalControllerRouter["RecruitPlatform/controllers:RecruitController"] = append(beego.GlobalControllerRouter["RecruitPlatform/controllers:RecruitController"],
beego.ControllerComments{
Method: "GetRecruitMsgList",
Router: `/`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Params: nil})
beego.GlobalControllerRouter["RecruitPlatform/controllers:RecruitController"] = append(beego.GlobalControllerRouter["RecruitPlatform/controllers:RecruitController"],
beego.ControllerComments{
Method: "CommitRecruitNews",
Router: `/`,
AllowHTTPMethods: []string{"post"},
MethodParams: param.Make(),
Params: nil})
beego.GlobalControllerRouter["RecruitPlatform/controllers:RecruitController"] = append(beego.GlobalControllerRouter["RecruitPlatform/controllers:RecruitController"],
beego.ControllerComments{
Method: "GetRecruitDetail",
Router: `/:Id`,
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Params: nil})
}
<file_sep>/models/Kalendar.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
)
type Kalendar struct {
Id int `orm:"pk;auto"`
Person_id int
Person_name string `orm:"size(20)"`
Event_title string `orm:"size(50)"`
Event_starttime time.Time `orm:"auto_now_add;type(datetime)"`
Event_endtime time.Time `orm:"auto_now_add;type(datetime)"`
Event_allday int8
Event_bgcolor string `orm:"size(10)"`
Is_avaliable int8
}
<file_sep>/models/RecruitComment.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
"github.com/astaxie/beego/orm"
)
type RecruitComment struct {
Id int `orm:"pk;auto"`
Person_id int
Person_name string `orm:"size(30)"`
Release_head_url string `orm:"size(200)"`
Comment_parent int
Comment_content string `orm:"type(text)"`
Comment_created time.Time `orm:"auto_now_add;type(datetime)"`
Comment_modified time.Time `orm:"auto_now_add;type(datetime);default('')"`
UpvoteCount int
UserHasUpvoted string `orm:"type(text)"`
RecruitMsg *RecruitMsg `orm:"rel(fk)"`
}
func GetRecruitCommentById(id int,)(mapsjson []map[string]interface{},err error){
var comment []*RecruitComment
o := orm.NewOrm()
num,err := o.QueryTable("recruit_comment").Filter("recruit_msg_id",id).RelatedSel().All(&comment)
if err != nil || num == 0{
return mapsjson,err
}
n:=int(num)
for i:= 0; i <n ; i++{
maps := make(map[string]interface{})
maps["id"] = comment[i].Id
maps["parent"] = comment[i].Comment_parent
maps["created"] =comment[i].Comment_created.Format("2006-01-02 15:04:05")
maps["modified"] =comment[i].Comment_modified.Format("2006-01-02 15:04:05")
maps["content"] =comment[i].Comment_content
maps["fullname"] =comment[i].Person_name
maps["profile_picture_url"] = comment[i].Release_head_url
maps["created_by_current_user"] = "True"
maps["upvote_count"]=comment[i].UpvoteCount
maps["user_has_upvoted"]=comment[i].UserHasUpvoted
mapsjson=append(mapsjson, maps)
}
return mapsjson,err
}
func InsertRecruitCommentById(comment * RecruitComment,id int)(error){
o := orm.NewOrm()
_,err:=o.Raw("insert recruit_comment(person_id,person_name,release_head_url,comment_parent,comment_created,recruit_msg_id,comment_content) values(?,?,?,?,?,?,?)",comment.Person_id,comment.Person_name,comment.Release_head_url,comment.Comment_parent,comment.Comment_created,id,comment.Comment_content).Exec()
return err
}
func UpdateRecruitCommentById(comment *RecruitComment)(error){
o := orm.NewOrm()
_,err:=o.Update(comment,"Comment_content","Comment_modified")
return err
}<file_sep>/models/InterviewComment.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
)
type InterviewComment struct{
Id int `orm:"pk;auto"`
Person_id int
Person_name string `orm:"size(30)"`
Release_head_url string `orm:"size(100)"`
Comment_parent int
Comment_created time.Time `orm:"auto_now_add;type(datetime)"`
Comment_modified time.Time `orm:"auto_now_add;type(datetime)"`
UpvoteCount int
UserHasUpvoted string `orm:"type(text)"`
Interview *Interview `orm:"rel(fk)"`
}<file_sep>/models/Tag.go
package models
import (
//"github.com/astaxie/beego/orm"
)
type Tag struct {
Id int `orm:"pk;auto"`
Tag_name string `orm:"size(20)"`
ResumeMsg []*ResumeMsg `orm:"reverse(many)"`
}
<file_sep>/models/ResumeMsg.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
)
type ResumeMsg struct{
Id int `orm:"pk;auto"`
Person_id int
Person_name string `orm:"size(30)"`
Resume_name string `orm:"size(100)"`
Resume_desc string `orm:"size(100)"`
Resume_path string `orm:"size(100)"`
Resume_thumb string `orm:"size(100)"`
Upload_time time.Time `orm:"auto_now_add;type(datetime)"`
Is_gathered int8
Tag []*Tag `orm:"rel(m2m)"`
}
<file_sep>/filters/Filter.go
package filters
import (
"github.com/astaxie/beego/context"
"github.com/astaxie/beego"
"fmt"
)
var IsLogin = func (ctx *context.Context)(){
token, flag := ctx.GetSecureCookie(beego.AppConfig.String("cookie.secure"), beego.AppConfig.String("cookie.token"))
fmt.Println("token:"+ token)
fmt.Println(flag)
}<file_sep>/controllers/CalendarConreoller.go
package controllers
import (
"github.com/astaxie/beego"
)
type CalendarContorller struct{
beego.Controller
}
func ( c *CalendarContorller) CalendarIndex(){
c.Layout = "index.html"
c.TplName = "news.html"
}
<file_sep>/controllers/newsController.go
package controllers
import (
"github.com/astaxie/beego"
"RecruitPlatform/models"
)
// Operations about News
type NewsController struct {
beego.Controller
}
// @Title Getlist
// @Description get all news list
// @Success 200 {object} models.News
// @Failure 400 get newlist error
// @router / [get]
func (n *NewsController) GetNewList(){
list,err := models.GetNewList()
if err != nil{
n.Data["json"] = err.Error()
}else{
n.Data["json"] = list
}
n.ServeJSON()
}
<file_sep>/controllers/ReCommentController.go
package controllers
import (
"github.com/astaxie/beego"
"fmt"
"RecruitPlatform/models"
"encoding/json"
"strconv"
"strings"
"time"
)
type ReCommentController struct {
beego.Controller
}
// @Title GetRecruitComment
// @Description get recruit detail
// @Param key path string true "the id for recruitMsg for comment"
// @Success 200 {object} models.RecruitComment
// @Failure 400 get recruit detail error
// @router /:Id [get]
func (n *ReCommentController) GetRecuitComment(){
id, _ := n.GetInt(":Id")
list, err := models.GetRecruitCommentById(id)
fmt.Println(list)
if err != nil {
n.Data["json"] = err.Error()
}else{
n.Data["json"] = list
}
n.ServeJSON()
}
// @TitleInsertRecruitComment
// @Description add comment
// @Param key path string true "the id for recruitMsg for comment"
// @Success 200 {object} models.RecruitComment
// @Failure 400 get recruit detail error
// @router /:Id [post]
func(n *ReCommentController) InsertRecruitComment(){
maps := make(map[string]string)
var dat map[string]interface{}
id, _ := n.GetInt(":Id")
fmt.Println("AddComment:", id)
//maps := make(map[string]string)
str := n.GetString("data")
var comment models.RecruitComment
if err := json.Unmarshal([]byte(str), &dat); err != nil {
maps["result"]="False"
maps["message"] ="数据格式错误"
}
//把TZ 时间转换为UTC
created := dat["created"]
str1 := created.(string)
s := strings.Split(str1,".")[0]
s1 := strings.Replace(s,"T"," ",1)
t, _ := time.Parse("2006-01-02 15:04:05", s1)
t =t.Add(time.Hour*8)
// 把content转换为string
content := dat["content"].(string)
if parent := dat["parent"];parent == nil{
comment.Comment_parent = 0
}else{
if sid,ok := parent.(string);ok{
fmt.Println("SID",sid)
id,_:= strconv.Atoi(sid)
fmt.Println("ID:",id)
comment.Comment_parent= id
}else{
//打印log
}
}
comment.Person_id = user.Id
comment.Person_name = user.Name
comment.Release_head_url = user.Avatar_url
comment.Comment_created = t
comment.Comment_content = content
err := models.InsertRecruitCommentById(&comment,id)
if err == nil{
maps["result"]="True"
maps["message"] ="success"
}else{
maps["result"]="False"
maps["message"] =err.Error()
}
n.Data["json"] = maps
n.ServeJSON()
}
func(n *ReCommentController) UpdateRecruitComment(){
maps := make(map[string]string)
var dat map[string]string
str := n.GetString("data")
if err := json.Unmarshal([]byte(str), &dat); err != nil {
maps["result"]="False"
maps["message"] ="数据格式错误"
}
content := dat["content"]
fmt.Println("dat[id]:",dat["id"])
id,_:= strconv.Atoi(dat["id"])
fmt.Println("cID:",id)
comment := models.RecruitComment{Id:id}
comment.Comment_content = content
comment.Comment_modified = time.Now()
err := models.UpdateRecruitCommentById(&comment)
if err == nil{
maps["result"]="True"
maps["message"] ="success"
}else{
maps["result"]="False"
maps["message"] =err.Error()
}
n.Data["json"] = maps
n.ServeJSON()
}<file_sep>/models/News.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
//"github.com/astaxie/beego/orm"
"github.com/astaxie/beego/orm"
)
type News struct{
Id int `orm:"pk;auto`
Person_id int
Person_name string `orm:"size(20)"`
News_title string `orm:"size(100)"`
News_time time.Time `orm:"auto_now_add;type(datetime)"`
News_url string `orm:"size(200)"`
}
func GetNewList()(maps []orm.Params,err error){
o := orm.NewOrm()
num,err := o.Raw("SELECT news_title,news_time,news_url from news").Values(&maps)
if err != nil || num == 0{
return nil,err
}
return
}
func InsertNewList(new *News)(error){
o := orm.NewOrm()
_,err := o.Insert(new)
return err
}
<file_sep>/static/js/table-managed.js
var TableManaged = function () {
return {
//main function to initiate the module
init: function () {
if (!jQuery().dataTable) {
return;
}
// begin first table
$('#mail_table').dataTable({
"aoColumns": [
{ "bSortable": false },
null,
{ "bSortable": false },
null,
{ "bSortable": false }
],
"aLengthMenu": [
[10, 15, 20, -1],
[10, 15, 20, "All"] // change per page values here
],
// set the initial value
"iDisplayLength": 10,
"sDom": "<'row'<'col-md-6'l><'col-md-6'f>r>t<'row'<'col-md-6'i><'col-md-6'p>>",
"sPaginationType": "bootstrap",
"oLanguage": {
"sLengthMenu": "_MENU_ 篇 每页",
"oPaginate": {
"sPrevious": "上一页",
"sNext": "下一页"
}
},
"aoColumnDefs": [{
'bSortable': false,
'aTargets': [0]
}
]
});
jQuery('#mail_table_wrapper .dataTables_filter input').addClass("m-wrap medium"); // modify table search input
jQuery('#mail_table_wrapper .dataTables_length select').addClass("m-wrap small"); // modify table per page dropdown
//jQuery('#mail_table_wrapper .dataTables_length select').select2(); // initialzie select2 dropdown
// begin second table
}
};
}();
<file_sep>/models/RecruitMsg.go
package models
import (
//"github.com/astaxie/beego/orm"
"time"
"github.com/astaxie/beego/orm"
)
type RecruitMsg struct{
Id int `orm:"pk;auto"`
Person_id int
Person_name string `orm:"size(30)"`
Recruit_title string `orm:"size(100)"`
Recruit_company string `orm:"size(30)"`
Recruit_releasetime time.Time `orm:"auto_now_add;type(datetime)"`
Recruit_endtime time.Time `orm:"auto_now_add;type(datetime)"`
Recruit_content string `orm:"type(text)"`
RecruitComment []*RecruitComment `orm:"reverse(many)"`
}
func GetRecruitMsgList() (maps []orm.Params,err error){
o := orm.NewOrm()
num,err := o.Raw("SELECT id,person_name,recruit_title,recruit_releasetime,recruit_endtime from recruit_msg").Values(&maps)
if err != nil || num == 0{
return nil,err
}
return
}
func InsertRecruitList( recruit *RecruitMsg)(map[string]string,error){
maps := make(map[string]string)
o := orm.NewOrm()
_,err := o.Insert(recruit)
if err != nil{
maps["result"] = "False"
maps["message"] = err.Error()
return maps,err
}
maps["result"] = "True"
maps["message"] = "success"
return maps,err
}
func GetRecruitDetailById(id int)(maps []orm.Params,err error ) {
o := orm.NewOrm()
num, err := o.Raw("SELECT person_name,recruit_title,recruit_releasetime,recruit_content from recruit_msg where id = ?", id).Values(&maps)
if err != nil || num == 0 {
return nil, err
}
return
}
<file_sep>/controllers/IndexController.go
package controllers
import (
"github.com/astaxie/beego"
"github.com/astaxie/beego/httplib"
"fmt"
)
var flag = 0
var resp OauthToken
var user User
type IndexController struct {
beego.Controller
}
type OauthToken struct{
Token string `json:"access_token"`
Type string `json:"token_type"`
ExpiresIn string `json:"expires_in"`
}
type User struct {
Id int `json:"id"`
Name string `json:"name"`
Avatar_url string `json:"avatar_url"`
}
func (c *IndexController) Login(){
flag = 1
urlMap := make(map[string]string)
urlMap["response_type"]= beego.AppConfig.String("Response_type")
urlMap["client_id"] = beego.AppConfig.String("ClientId")
urlMap["state"] = beego.AppConfig.String("State")
urlMap["redirect_uri"]=beego.AppConfig.String("Redirect_uri")
urlMap["scope"]="all"
var url = beego.AppConfig.String("GetCodeURL") + "?"
for key,value := range urlMap{
url += key +"="+value+ "&"
}
url =url[:len(url)-1]
c.Ctx.Redirect(302,url)
}
func (c *IndexController) Index() {
// fmt.Println(c.GetString("code"))
if flag != 0 {
req := httplib.Post(beego.AppConfig.String("GetTokenURL"))
req.Header("Content-Type", "application/x-www-form-urlencoded")
req.Param("code", c.GetString("code"))
fmt.Println("code:", c.GetString("code"))
req.Param("grant_type", "authorization_code")
req.Param("client_id", beego.AppConfig.String("ClientId"))
req.Param("client_secret", beego.AppConfig.String("ClientSecret"))
req.Param("redirect_uri", beego.AppConfig.String("Redirect_uri"))
req.ToJSON(&resp)
fmt.Println("token:" + resp.Token + " " + "type:" + resp.Type + " " + "expires_in")
flag = 0
}
req_info := httplib.Get(beego.AppConfig.String("GetUserInfoURL") + resp.Token)
fmt.Println(req_info.String())
req_info.ToJSON(&user)
c.Data["avatar"] = user.Avatar_url
c.Data["user"] = user.Name
c.Layout = "index.html"
c.TplName = "news.html"
}
| a7d1c803bda5e5b6b6737317fb0a0b80f06499b2 | [
"JavaScript",
"Go"
] | 18 | Go | liuhangyang/RecruitPlatform | 2660ce48fb9e57c6503bada1c6ff288b45160217 | c8001e280b98f30f32789af2cdf0ef96a9ec8914 |
refs/heads/master | <file_sep>#include <stdint.h>
#include <TouchScreen.h>
#include <TFT.h>
#include <PSTRStrings.h>
// #define DEMO
#define TS_MINX 140
#define TS_MAXX 900
#define TS_MINY 120
#define TS_MAXY 940
#define MAXX 220
#define MAXY 320
#ifdef SEEEDUINO
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A1 // must be an analog pin, use "An" notation!
#define YM 14 // can be a digital pin, this is A0
#define XP 17 // can be a digital pin, this is A3
#endif
#define MAXCOMMANDS 20
PSTRStrings commands(MAXCOMMANDS);
bool commandMode = false;
int x = 0;
int y = 0;
int deltax = 100;
int deltay = 100;
int fontsize = 3;
int color;
int radius = 50;
int width = 200;
int height = 60;
int state = 0;
unsigned long touchTimeout = 0;
// For better pressure precision, we need to know the resistance
// between X+ and X- Use any multimeter to read it
// The 2.8" TFT Touch shield has 300 ohms across the X plate
TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
void setup()
{
Serial.begin ( 115200);
Tft.init(); //init TFT library
commands.addString ( PSTR ( "char")); // 0
commands.addString ( PSTR ( "fontsize" )); // 1
commands.addString ( PSTR ( "deltax")); // 2
commands.addString ( PSTR ( "delayy")); // 3
commands.addString ( PSTR ( "circle" )); // 4
commands.addString ( PSTR ( "line" )); // 5
commands.addString ( PSTR ( "rect")); // 6
commands.addString ( PSTR ( "CYAN")); // 7
commands.addString ( PSTR ( "GREEN")); // 8
commands.addString ( PSTR ( "RED")); // 9
commands.addString ( PSTR ( "radius")); // 10
commands.addString ( PSTR ( "width")); // 11
commands.addString ( PSTR ( "height")); // 12
commands.addString ( PSTR ( "BLUE")); // 13
commands.addString ( PSTR ( "x" )); // 14
commands.addString ( PSTR ( "y" )); // 15
commands.addString ( PSTR ( "clear")); // 16
commands.addString ( PSTR ( "YELLOW")); // 17
// commands.showAll();
color = GREEN;
#ifdef DEMO
state = 1;
Tft.drawString ( "Hello this is", 10,10,2,CYAN);
Tft.drawString ( "a cool TFT ", 10,34,2,CYAN);
Tft.drawString ( "Touchscreen ", 10,58,2,CYAN);
Tft.drawString ( "now available", 10,82,2,CYAN);
Tft.drawString ( "on Tindie! ", 10,106,2,CYAN);
Tft.drawString ( " ", 10,130,2,CYAN);
Tft.drawString ( "You can draw ", 10,154,2,CYAN);
Tft.drawString ( "graphics and ", 10,178,2,CYAN);
Tft.drawString ( "text. ", 10,202,2,CYAN);
Tft.drawRectangle ( 130,220,50,50, CYAN );
Tft.drawString ( "ok", 140,250,2,GREEN);
#endif
}
int readDec (int numDigits)
{
char ch;
int total = 0;
int count = 0;
bool negative = false;
while (true)
{
if (Serial.available()) // block on user input
{
ch = Serial.read();
if (ch == '-')
negative = true;
else
{
// Exit if number if not a decimal
if ((ch < '0') || (ch > '9'))
break;
count++;
}
total *= 10;
total += ch - '0';
if (count == numDigits)
break;
}
}
if (negative)
total = 0 - total;
return total;
}
void handleCh (char ch)
{
int gotCommand = commands.matchString ( ch, false);
switch (gotCommand)
{
case 0:
commandMode = false;
break;
case 1: // fontsize
fontsize = readDec (1);
break;
case 2: // deltax
deltax = readDec(3);
break;
case 3: // deltay
deltay = readDec(3);
break;
case 4: // circle
Tft.drawCircle(x,y,radius,color);
break;
case 5: // line
Tft.drawLine ( x,y,x+deltax,y+deltay,color);
break;
case 6: // rect
Tft.drawRectangle ( x,y,width, height, color );
case 7: // CYAN
color = CYAN;
break;
case 8: // GREEN
color = GREEN;
break;
case 9: // RED
color = RED;
break;
case 10: // radius
radius = readDec(3);
break;
case 11: // width
width = readDec(3);
break;
case 12: // height
height = readDec(3);
break;
case 13: // BLUE
color = BLUE;
break;
case 14: // x
x = readDec (3);
if (x > MAXX)
x = MAXX;
break;
case 15: // y
y = readDec (3);
if (y > MAXY)
y = MAXY;
break;
case 16: // clear
Tft.paintScreenBlack();
break;
case 17: // YELLOW
color = YELLOW;
break;
default:
break;
}
}
#ifdef DEMO
void doDemo ()
{
static int demoState = 0;
static int lastDemoState = 0;
switch (demoState++)
{
case 0:
Tft.paintScreenBlack();
Tft.drawString ( "The best part", 10,10,2,CYAN);
Tft.drawString ( "is that it ", 10,34,2,CYAN);
Tft.drawString ( "has a Serial ", 10,58,2,CYAN);
Tft.drawString ( "interface, so", 10,82,2,CYAN);
Tft.drawString ( "you can drive", 10,106,2,CYAN);
Tft.drawString ( "it from your ", 10,130,2,CYAN);
Tft.drawString ( "PC, an Arduino", 10,154,2,CYAN);
Tft.drawString ( "even a rasp- ", 10,178,2,CYAN);
Tft.drawString ( "berry pi! ", 10,202,2,CYAN);
Tft.drawRectangle ( 150,240,50,50, CYAN );
Tft.drawString ( "ok", 160,270,2,GREEN);
break;
case 1:
Tft.paintScreenBlack();
Tft.drawString ( "Create your ", 10,10,2,CYAN);
Tft.drawString ( "own menus or ", 10,34,2,CYAN);
Tft.drawString ( "display debug", 10,58,2,CYAN);
Tft.drawString ( "data. ", 10,82,2,CYAN);
Tft.drawString ( "You could use", 10,106,2,CYAN);
Tft.drawString ( "it to drive ", 10,130,2,CYAN);
Tft.drawString ( "LEDs or even ", 10,154,2,CYAN);
Tft.drawString ( "a remote ",10,178,2,CYAN);
Tft.drawString ( "control tank.", 10,202,2,CYAN);
Tft.drawRectangle ( 150,240,50,50, CYAN );
Tft.drawString ( "ok", 160,270,2,GREEN);
break;
default:
Tft.paintScreenBlack();
Tft.drawString ( "Here are some", 10,10,2,CYAN);
Tft.drawString ( "example ", 10,34,2,CYAN);
Tft.drawString ( "graphics ", 10,58,2,CYAN);
Tft.drawCircle(100, 130, 50, RED);
Tft.drawLine ( 10, 180, 200, 200, YELLOW);
Tft.drawRectangle ( 150,240,50,50, CYAN );
break;
}
}
#endif
void loop()
{
static int x = 0;
static int y = 0;
char oneCh[] = " ";
char ch;
if (Serial.available())
{
if (commandMode)
handleCh (Serial.read());
else
{
ch = Serial.read();
if (ch == '^')
commandMode = true;
else if (ch >= ' ')
{
oneCh[0] = ch;
Tft.drawString ( oneCh, x,y,fontsize,color );
x += fontsize * 6;
if (x > 230)
{
x = 0;
y = y + fontsize * 8;
}
}
}
}
if (millis() > touchTimeout)
{
// a point object holds x y and z coordinates
Point p = ts.getPoint();
// we have some minimum pressure we consider 'valid'
// pressure of 0 means no pressing!
if (p.z > ts.pressureThreshhold)
{
p.x = map(p.x, TS_MINX, TS_MAXX, 240, 0);
p.y = map(p.y, TS_MINY, TS_MAXY, 320, 0);
Serial.print ( "[" );
if (p.x < 10)
Serial.print ( "00" );
else if (p.x < 100)
Serial.print ( "0");
Serial.print ( p.x );
Serial.print ( "," );
if (p.y < 10)
Serial.print ( "00" );
else if (p.y < 100)
Serial.print ( "0");
Serial.print ( p.y );
Serial.println ( "]");
/*
Serial.print("X = "); Serial.print(p.x);
Serial.print("\tY = "); Serial.print(p.y);
Serial.print("\tPressure = "); Serial.println(p.z);
*/
touchTimeout = millis() + 500;
#ifdef DEMO
if (state == 1)
doDemo();
#endif
}
}
}
<file_sep>
This [TFT Touchscreen](https://tindie.com/shops/Paulware/tft-touchscreen-with-serial-interface/) allows you
to easily draw menus and display data from your PC, another Arduino or even a RaspBerry Pi!
It uses a serial interface with a simple set of commands for example, to draw a circle send "circle", to draw a
rectangle send: "rect". Here is a complete list of commands:
<dl>
<dt>clear</dt>
<dd>Clear the screen</dd>
<dt>rect</dt>
<dd>Draw a rectangle</dd>
<dt>x</dt>
<dd>Specify current x value</dd>
<dt>y</dt>
<dd>Specify current y value</dd>
<dt>circle</dt>
<dd>Draw a circle</dd>
<dt>BLUE</dt>
<dd>Change current color to blue</dd>
<dt>RED</dt>
<dd>Change current color to red</dd>
<dt>YELLOW</dt>
<dd>Change the current color to yellow</dd>
<dt>CYAN</td>
<dd>Change the current color to cyan</dd>
<dt>char</dt>
<dd>Switch from command mode to text display mode</dd>
<dt>^</dt>
<dd>Switch from text display mode to command mode</dd>
<dt>radius</dt>
<dd>Set the radius (for circle)</dd>
<dt>width</dt>
<dd>Set the width (for rect) </dd>
<dt>height</dt>
<dd>Set the height (for rect) </dd>
</dl> | 042b8064561a8fca30905579c44993ddae028822 | [
"Markdown",
"C++"
] | 2 | C++ | Paulware/TouchScreen | e9f667118886727fd9395eecef9dcf88150a7312 | e9f2de3dd03cb875e47f6078257883e42aaff488 |
refs/heads/main | <file_sep>const nums = [3,5,7,8,9,12,14,56,24,57];
for (let i=0; i < nums.length; i++){
if (nums[i] < 10){
// break;
continue;
}
console.log(nums[i]);
}<file_sep>const nums = [3,5,7,8,9,12,14,56,24,57];
const part= nums.slice(2,5); //start index theke end index porjonto katbe
console.log(part);
console.log(nums);
const splicepart = nums.splice(2,5,00); //splice er khttre start theke koita delete korbo seta ar , diye kono value dile seta add hobe
console.log(splicepart);
console.log(nums);
const joinpart = nums.join("ami ");
console.log(joinpart);<file_sep>const first = 1;
const second = "1";
if (first == second){
console.log("true");
}
else{
console.log("false");
}
const first2 = 2;
const second2 = "2";
if (first2 === second2){
console.log("true");
}
else{
console.log("false");
}
// double equal mane sudhu value gula check kore
// triple equal hole type + value check korbe | eef33ecba5f497a44603eee8aa53d5ac8073b13d | [
"JavaScript"
] | 3 | JavaScript | piashossain009/advanced-JS | d315dd2f7d2cecef7866726b6b1de85ccda68213 | afc10a0c83ad8b282e932a594a93362342e918f3 |
refs/heads/master | <repo_name>jmorales2012/sketchpad<file_sep>/js/script.js
/*
Creating Grid
1. Ask for user input for size of grid
2. Check to see if grid will be too big
3. If too big, ask for input again
4. If not too big, create grid
5. Style grid squares outside of creation loop (too slow otherwise)
Mouse Enter Effect
1. When mouse enters block
2. Change color of square
3. Optional: Add 10% black each pass through square to add shade
Buttons at Top of Page
1. 'Clear' button
2. Clears screen
3. Back to function 1 (Creating Grid)
*/
function clearScreen() {
// clear the screen before adding more rows/columns
$('.grid_square').remove();
$('.new_row').remove();
}
function clearGrid() {
// un-highlight all squares
$('.grid_square').removeClass('highlighted');
$('.grid_square').css('opacity', '1');
}
function createGrid(option) {
clearScreen();
var grid_size = prompt("Enter the size of your grid: ");
while (grid_size > 100) {
grid_size = prompt("That's too big. Size needs to be under 100: ");
};
// create rows/columns of squares
for (i = 1; i <= grid_size; i++) {
for (j = 1; j <= grid_size; j++) {
$('#grid_container').append('<div class="grid_square"></div>');
}
$('#grid_container').append('<div class="new_row"></div>');
};
// sets height/width of squares based on input
var square_size = $('#grid_container').width()/grid_size - 2;
$('.grid_square').css({
'height': square_size,
'width': square_size
});
// set behavior for mousing through squares based on option
$('.grid_square').mouseenter(function(){
switch(option) {
case 1:
$(this).addClass('highlighted');
break;
case 2:
$(this).addClass('highlighted');
var opac = $(this).css('opacity');
if (opac > 0.1) {
$(this).css('opacity', '-=0.1');
}
break;
}
});
$('.grid_square').click(function() {
$(this).toggleClass('highlighted');
});
}
$(document).ready(function() {
// create container for grid_squares
$('#footer_wrapper').before('<div id="grid_container"></div>');
$('#easy_button').click(function() {
createGrid(1);
$(this).html("Create Easy Sketchpad");
});
$('#hard_button').click(function() {
createGrid(2);
$(this).html("Create Hard Sketchpad");
});
$('#clear_button').click(function() {
clearGrid();
});
});<file_sep>/README.md
# Etch-a-Sketch
Making a browser-based etch a sketch/sketch pad.
| d0002e7d0a03f4f4a64702d8333ac4ea88648a31 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jmorales2012/sketchpad | 68044abd6859f054e6313ea8630cef088f9a5ea0 | 77befc5270ce5a0c1e9785b9bd9d361b88026dd7 |
refs/heads/master | <file_sep>class RailsAdmin::Config::Actions::Index < RailsAdmin::Config::Actions::Base
RailsAdmin::Config::Actions.register(self)
register_instance_option :controller do
proc do
if @model_name == "Demand"
if current_user.admin?
@objects ||= list_entries
else
@objects = Demand.where("current_kind_step_id IN (?)", current_user.kind_step_users.map(&:kind_step_id))
end
else
@objects ||= list_entries
end
end
end
end<file_sep>class RailsAdmin::Config::Actions::Done < RailsAdmin::Config::Actions::Base
RailsAdmin::Config::Actions.register(self)
register_instance_option :http_methods do
[:get]
end
register_instance_option :member do
true
end
register_instance_option :breadcrumb_parent do
[:show, bindings[:abstract_model], bindings[:object]]
end
register_instance_option :controller do
proc do
if request.get?
if @object.update(done_at: DateTime.current, status: Demand.statuses[:done])
respond_to do |format|
format.html { redirect_to_on_success }
format.js { render json: {id: @object.id.to_s, label: @model_config.with(object: @object).object_label} }
end
else
handle_save_error
end
end
end
end
register_instance_option :route_fragment do
'done'
end
register_instance_option :link_icon do
'icon-check'
end
register_instance_option :visible? do
subject = bindings[:object]
subject.is_a? Demand
end
end<file_sep>class CreateDemands < ActiveRecord::Migration[6.0]
def change
create_table :demands do |t|
t.string :description
t.integer :status, default: 0
t.belongs_to :kind, foreign_key: true
t.belongs_to :user, foreign_key: true
t.datetime :done_at
t.string :protocol
t.string :address
t.string :neighborhood
t.string :block # Quadra
t.string :lot # Lote
t.string :allotment # Loteamento
t.string :subunit
t.bigint :current_kind_step_id
t.timestamps
end
end
end
<file_sep>class Step < ApplicationRecord
belongs_to :kind_step
belongs_to :demand
belongs_to :user
after_save do
# Set process to processing
self.demand.processing! if self.kind_step.valid_time and (self.demand.opened? or self.demand.stopped?)
# Stop the proccess if it's not a valid time
self.demand.stopped! unless self.kind_step.valid_time
# Update the current step of the demand
self.demand.update(current_kind_step_id: self.kind_step.id)
end
end
<file_sep>class RailsAdmin::Config::Actions::NextStep < RailsAdmin::Config::Actions::Base
RailsAdmin::Config::Actions.register(self)
register_instance_option :http_methods do
[:get, :post] # NEW / CREATE
end
register_instance_option :member do
true
end
register_instance_option :breadcrumb_parent do
[:show, bindings[:abstract_model], bindings[:object]]
end
register_instance_option :controller do
proc do
if request.get?
# Rendering the page
@kind_steps = @object.kind.kind_steps
render @action.template_name, status: 200
elsif request.post?
@step = Step.new(demand: @object, kind_step_id: params[:step].to_i, user: current_user)
if @step.save!
@auditing_adapter && @auditing_adapter.create_object(@object, @abstract_model, _current_user)
respond_to do |format|
format.html { redirect_to_on_success }
format.js { render json: {id: @object.id.to_s, label: @model_config.with(object: @object).object_label} }
end
else
handle_save_error
end
end
end
end
register_instance_option :route_fragment do
'next-step'
end
register_instance_option :link_icon do
'icon-arrow-right'
end
register_instance_option :visible? do
subject = bindings[:object]
subject.is_a? Demand
end
end<file_sep>class Citizen < ApplicationRecord
belongs_to :user
has_many :owners
has_many :demands, through: :owners
validate do
self.errors.add :cpf, " #{self.cpf} é inválido" if !self.cpf.blank? && !CPF.valid?(self.cpf)
self.errors.add :cnpj, " #{self.cnpj} é inválido" if !self.cnpj.blank? && !CNPJ.valid?(self.cnpj)
self.errors.add(:base, :cpf_or_cnpj_blank,message: "CPF ou CNPJ devem estar presentes") if self.cpf.blank? && self.cnpj.blank?
end
end
<file_sep>class RailsAdmin::Config::Actions::License < RailsAdmin::Config::Actions::Base
RailsAdmin::Config::Actions.register(self)
register_instance_option :http_methods do
[:get] # NEW
end
register_instance_option :member do
true
end
register_instance_option :breadcrumb_parent do
[:show, bindings[:abstract_model], bindings[:object]]
end
register_instance_option :controller do
proc do
if request.get?
# Generar PDF com os dados necessários
# https://onebitcode.com/como-criar-pdfs-incrives-usando-ruby-prawn-gruff/
@kind_steps = @object.kind.kind_steps
render @action.template_name, status: 200
end
end
end
register_instance_option :route_fragment do
'license'
end
register_instance_option :link_icon do
'icon-file'
end
register_instance_option :visible? do
subject = bindings[:object]
subject.is_a? Demand
end
end<file_sep># README
Este é o sistema de monitoramento de processos da Secretaria de Urbanismo e Obras de Caruaru.
Este sistema lida com a abertura, andamento e finalização dos diversos processos de responsabilidade da secretaria.
Essa aplicação roda somente a partir de `/adm` sob acesso de usuário `<EMAIL>` e senha `<PASSWORD>`.
## Install
Para rodar localmente você deve seguit os passos de Deployment (logo abaixo). Para montar o servidor você pode seguir os passos [deste tutorial](https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/), no item 6 (Install Ruby) você pode ter alguma dificuldade com a instalação do RVM, mas ela não é essencial para o funcionamento do sistema, pode ser pulada (Mas lembre-se da versão do Ruby usada aqui).
Além disto utilizaremos o ImageMagick para gerar o PDF do alvará e outros, guia de instalação [aqui](http://www.imagemagick.org/script/download.php)
Após montar o servidor você ainda vai precisar seguir os passos de Deployment.
Usaremos aqui o banco de dados PostgreSQL.
## Versions
* Ruby: **2.6.3**
* Rails: **6.0.0**
* PostgreSQL: **11.4**
* ImageMagick: **7.0.9**
## Deployment
1. `bundle install`
2. `rails db:create db:migrate db:seed`
## TODO
- [ ] Search by protocol to check status (with login)
- [ ] Cadastro com login do cidadão, e-mail para recuperação de senha
- [ ] Traduzir enum do status do processo
- [X] Adicionar código do processo (xxx/ANO => 1212/2019)
- [ ] Mostrar campo de tempo válido (Processo)
- [ ] Dashboard - Listar na ordem de duração (parado a mais tempo (em passos que o tempo não conta)) TOP 10
- [X] Validação do CPF e CNPJ
- [X] Próximo passo (Processo) - adicionar o usuário responsável e o **usuário logado**
- [X] Próximo passo (Processo) == passar a bola para o usuário responsável
- [X] Passos do Tipo => Cadastrar usuários responsáveis pelos processos neste passo
- [X] Usuário normal visualizar apenas os processos que estão nos passos de sua responsabilidade
- [ ] Novo Passo do Tipo traduzir o kind
- [X] Adicionar status de archieved (Processo)
- [ ] Adicionar campo de Serviço/Assunto no cadastro do Processo (Select Field)
- [ ] Imprimir Capa do processo com dados
- [X] Alterar dados de cadastro do processo de acordo com a ficha
- [ ] Gerar PDF do Alvará
### Dashboard
- [ ] Visual Dashboard
- [ ] Intervalo do ano atual
- [ ] Mediana em DIAS
- [ ] Mediana Total (Por TIPO e total)
- [ ] Mediana Mensal (Por TIPO e total)
- [ ] Média por passo
- [ ] Setor (Passo), média (duração) e os 10 que estão a mais tempo.<file_sep># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)
User.create!(name: "ADM", email: "<EMAIL>", password: "<PASSWORD>") if User.find_by_email("<EMAIL>").nil?
Kind.where(name: "Obra", user_id: 1).first_or_create
KindStep.where(name: "Abertura", user_id: 1, kind_id: 1).first_or_create
KindStep.where(name: "Análise", user_id: 1, kind_id: 1).first_or_create
KindStep.where(name: "Exigência", valid_time: false, user_id: 1, kind_id: 1).first_or_create
Citizen.where(name: "<NAME>", cpf: "11122233344", user_id: 1).first_or_create<file_sep>class Owner < ApplicationRecord
belongs_to :citizen
belongs_to :demand
belongs_to :user
end
<file_sep>class KindStep < ApplicationRecord
belongs_to :user
belongs_to :kind
has_many :steps
has_many :kind_step_users
end
<file_sep>class Kind < ApplicationRecord
belongs_to :user
has_many :demands
has_many :kind_steps
end
<file_sep>class Demand < ApplicationRecord
belongs_to :user
belongs_to :kind
has_many :owners
has_many :steps
belongs_to :current_kind_step, foreign_key: "current_kind_step_id", class_name: "KindStep", optional: true
enum status: [:opened, :processing, :stopped, :done, :archieved]
after_validation :set_protocol, on: :create
private
def set_protocol
year = DateTime.current.year
n = Demand.where("EXTRACT(YEAR FROM demands.created_at) = ?", year).length + 1
self.protocol = "#{n}/#{year}"
end
end
<file_sep>class RailsAdmin::Config::Actions::Dashboard < RailsAdmin::Config::Actions::Base
RailsAdmin::Config::Actions.register(self)
register_instance_option :root? do
true
end
register_instance_option :breadcrumb_parent do
nil
end
register_instance_option :controller do
proc do
@real_duration = Demand.all.includes(steps: :kind_step).map do |demand|
demand_hours = 0.0
demand.steps.order(created_at: :asc).each_with_index do |step, i|
next if !step.kind_step.valid_time
if i == demand.steps.length - 1 && i == 0 && !demand.stopped?
demand_hours = demand_hours + TimeDifference.between(DateTime.current, demand.created_at).in_minutes
else
next if i == demand.steps.length - 1
# Somo a a diferença de tempo da criação de um passo para o outro
demand_hours = demand_hours + TimeDifference.between(demand.steps[i + 1].created_at, step.created_at).in_minutes
end
end
demand_hours
end
@median = DescriptiveStatistics::Stats.new(@real_duration).median
@duration = ActiveRecord::Base.connection.exec_query("SELECT EXTRACT(DAY FROM demands.updated_at - demands.created_at) FROM demands")
#You can specify instance variables
@custom_stats = "grab your stats here."
#After you're done processing everything, render the new dashboard
render @action.template_name, status: 200
end
end
register_instance_option :route_fragment do
''
end
register_instance_option :link_icon do
'icon-home'
end
register_instance_option :statistics? do
true
end
end<file_sep>class KindStepUser < ApplicationRecord
belongs_to :kind_step
belongs_to :user
end
| c448c7b18f65031a58f2c557fbd454a1455806b9 | [
"Markdown",
"Ruby"
] | 15 | Ruby | fabioaraujo121/urb2rails | a4765552c903c0e2c54428cfd720184799237d13 | 7afd545adc5f551f86c6204c4a8de9a88f3db9f6 |
refs/heads/master | <file_sep>import { Identifier } from 'i40-aas-objects';
import { IStorageAdapter } from './IRegistryResultSet';
interface ICreateAdapter {
adapterid: string;
name?: string;
url?: string;
submodelid: string;
submodelsemanticid?: string;
}
interface ICreateSubmodelEntry {
submodelid: Identifier;
submodelsemanticid?: string;
}
export { ICreateAdapter, ICreateSubmodelEntry };
<file_sep>import { Identifier } from "i40-aas-objects";
export interface IStorageAdapter {
adapterid: string;
name?: string;
url?: string;
submodelid: string;
submodelsemanticid?: string;
}
<file_sep>import { IStorageAdapter } from "./IStorageAdapter";
//TODO: Consider adaptations to DAOs
/*
interface IAdapterAssignmentResultSet {
submodel: SubmodelEntry;
adapter: Adapter;
}
class AdapterAssignmentResultSet implements IAdapterAssignmentResultSet {
public submodel: SubmodelEntry;
public adapter: Adapter;
constructor(adapter: Adapter, submodel: SubmodelEntry) {
this.submodel = submodel;
this.adapter = adapter;
}
}
class SubmodelEntry implements ISubmodelEntry {
submodelId: string;
submodelSemanticId: string;
*/
class Adapter implements IStorageAdapter {
//the submodel that the adapter can handle
submodelid: string;
public adapterid: string;
public name?: string;
public url?: string;
submodelsemanticid?: string;
constructor(
adapterid: string,
submodelid: string,
submodelsemanticid?: string,
url?: string,
name?: string,
) {
this.url = url;
this.adapterid = adapterid;
this.name = name;
this.submodelid = submodelid;
this.submodelsemanticid = submodelsemanticid;
}
}
export {
//AdapterAssignmentResultSet,
Adapter,
//SubmodelEntry,
IStorageAdapter,
// IAdapterAssignmentResultSet
};
| 31cc2b86fea1e2a876d18951a03b1a9052b0c35a | [
"TypeScript"
] | 3 | TypeScript | christianwarmuth/i40-aas | a624992336818dc55a8b0f78efe6e25c615ebaff | c1b24eddeabf07b9c80952e715ad45eb3789fb1d |
refs/heads/master | <file_sep>/*
Copyright 2017 Brighter API.
*/
'use strict';
var http =require('http')
exports.handler = function (event, context) {
try {
console.log("event.session.application.applicationId=" + event.session.application.applicationId);
//Start New Session
if (event.session.new) {
onSessionStarted({requestId: event.request.requestId}, event.session);
}
//Launch Request Where application Get started
if (event.request.type === "LaunchRequest") {
onLaunch(event.request,
event.session,
function callback(sessionAttributes, speechletResponse) {
context.succeed(buildResponse(sessionAttributes, speechletResponse));
});
} else if (event.request.type === "IntentRequest") {
//Check if it is Intent Request
onIntent(event.request,
event.session,
function callback(sessionAttributes, speechletResponse) {
context.succeed(buildResponse(sessionAttributes, speechletResponse));
});
} else if (event.request.type === "SessionEndedRequest") {
//Session End Request
onSessionEnded(event.request, event.session);
context.succeed();
}
} catch (e) {
//Exceptin Catch
context.fail("Exception: " + e);
}
};
/**
* Called when the session starts.
*/
function onSessionStarted(sessionStartedRequest, session) {
console.log("onSessionStarted requestId=" + sessionStartedRequest.requestId
+ ", sessionId=" + session.sessionId);
// add any session init logic here
}
/**
* Called when the user invokes the skill without specifying what they want.
*/
function onLaunch(launchRequest, session, callback) {
console.log("onLaunch requestId=" + launchRequest.requestId
+ ", sessionId=" + session.sessionId);
var cardTitle = "Hello, Brighter API!"
var speechOutput = "Hello User, Welcome to Brighter API, what smart solution I can provide for you ?"
callback(session.attributes,
buildSpeechletResponse(cardTitle, speechOutput, "", true));
}
/**
* Called when the user specifies an intent for this skill.
*/
function onIntent(intentRequest, session, callback) {
console.log("onIntent requestId=" + intentRequest.requestId
+ ", sessionId=" + session.sessionId);
var intent = intentRequest.intent,
intentName = intentRequest.intent.name;
// dispatch custom intents to handlers here
if (intentName == 'BrighterAPIIntent') {
handleBrighterAPIRequest(intent, session, callback);
}else if(intentName == 'BookingIntent'){
handleBookingIntent(intent, session, callback);
}
else {
throw "Invalid intent";
}
}
/**
* Called when the user ends the session.
* Is not called when the skill returns shouldEndSession=true.
*/
function onSessionEnded(sessionEndedRequest, session) {
console.log("onSessionEnded requestId=" + sessionEndedRequest.requestId
+ ", sessionId=" + session.sessionId);
// Add any cleanup logic here
}
function handleBrighterAPIRequest(intent, session, callback) {
var samplecode = intent.slots.samplecode.value;
if(samplecode == 'brighterapi'){
callback(session.attributes,
buildSpeechletResponseWithoutCard("BrighterAPI is taking initiative for create communities who needs help in solving challenges and making them strong into Algorithms, data structure and APIs using deeply understandable video explanation.", "", "true"));
}else if(samplecode === 'Hackerrank' || samplecode==='hackerrank'){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Best Hackkerrank tutorial at BrighterAPI.com", "", "true"));
} else if(samplecode === 'Holiday' || samplecode ==='holiday'){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Next Holiday in India on 26-June-2017", "", "true"));
}else if(samplecode === undefined){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Sorry, I dont know that.", "", "true"));
}
}
function handleBookingIntent(intent, session, callback) {
var bookingcode = intent.slots.bookingcode.value;
if(bookingcode == '12345'){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Your Booking Status for ID "+ bookingcode +" is booked", "", "true"));
}else if(bookingcode === '23456'){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Your Booking Status for ID "+ bookingcode +" is Cancel", "", "true"));
} else if(bookingcode === '123456'){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Your Booking Status for ID "+ bookingcode +" is In Progress", "", "true"));
}else if(bookingcode === undefined){
callback(session.attributes,
buildSpeechletResponseWithoutCard("Sorry, we are not able to fetch it this booking, kindly contact concern department", "", "true"));
}else{
callback(session.attributes,
buildSpeechletResponseWithoutCard("Sorry, we are not able to fetch it this booking, kindly contact concern department", "", "true"));
}
}
// ------- Helper functions to build responses -------
function buildSpeechletResponse(title, output, repromptText, shouldEndSession) {
return {
outputSpeech: {
type: "PlainText",
text: output
},
card: {
type: "Simple",
title: title,
content: output
},
reprompt: {
outputSpeech: {
type: "PlainText",
text: repromptText
}
},
shouldEndSession: shouldEndSession
};
}
function buildSpeechletResponseWithoutCard(output, repromptText, shouldEndSession) {
return {
outputSpeech: {
type: "PlainText",
text: output
},
reprompt: {
outputSpeech: {
type: "PlainText",
text: repromptText
}
},
shouldEndSession: shouldEndSession
};
}
function buildResponse(sessionAttributes, speechletResponse) {
return {
version: "1.0",
sessionAttributes: sessionAttributes,
response: speechletResponse
};
} | 53bafa3d74559068084e026d1334d318fd57e087 | [
"JavaScript"
] | 1 | JavaScript | brighterapi/APIs | ec5b7922bb5a8460fdcbcebfd08a0443b6a4fb68 | d211c5487aca50a5f61710312aa37fa401d12ec0 |
refs/heads/8.x-3.x | <file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Condition\UserHasRoleTest.
*/
namespace Drupal\Tests\rules\Integration\Condition;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\Condition\UserHasRole
* @group rules_conditions
*/
class UserHasRoleTest extends RulesEntityIntegrationTestBase {
/**
* The condition that is being tested.
*
* @var \Drupal\rules\Core\RulesConditionInterface
*/
protected $condition;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->enableModule('user');
$this->condition = $this->conditionManager->createInstance('rules_user_has_role');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('User has role(s)', $this->condition->summary());
}
/**
* Tests evaluating the condition.
*
* @covers ::evaluate
*/
public function testConditionEvaluation() {
// Set-up a mock object with roles 'authenticated' and 'editor', but not
// 'administrator'.
$account = $this->getMock('Drupal\user\UserInterface');
$account->expects($this->exactly(7))
->method('getRoles')
->will($this->returnValue(['authenticated', 'editor']));
$this->condition->setContextValue('user', $account);
$authenticated = $this->getMockRole('authenticated');
$editor = $this->getMockRole('editor');
$administrator = $this->getMockRole('administrator');
$this->condition->setContextValue('user', $account);
// First test the default AND condition with both roles the user has.
$this->condition->setContextValue('roles', [$authenticated, $editor]);
$this->assertTrue($this->condition->evaluate());
// User doesn't have the administrator role, this should fail.
$this->condition->setContextValue('roles', [$authenticated, $administrator]);
$this->assertFalse($this->condition->evaluate());
// Only one role, should succeed.
$this->condition->setContextValue('roles', [$authenticated]);
$this->assertTrue($this->condition->evaluate());
// A role the user doesn't have.
$this->condition->setContextValue('roles', [$administrator]);
$this->assertFalse($this->condition->evaluate());
// Only one role, the user has with OR condition, should succeed.
$this->condition->setContextValue('roles', [$authenticated]);
$this->condition->setContextValue('operation', 'OR');
$this->assertTrue($this->condition->evaluate());
// User doesn't have the administrator role, but has the authenticated,
// should succeed.
$this->condition->setContextValue('roles', [$authenticated, $administrator]);
$this->condition->setContextValue('operation', 'OR');
$this->assertTrue($this->condition->evaluate());
// User doesn't have the administrator role. This should fail.
$this->condition->setContextValue('roles', [$administrator]);
$this->condition->setContextValue('operation', 'OR');
$this->assertFalse($this->condition->evaluate());
}
/**
* Creates a mocked user role.
*
* @param string $id
* The machine-readable name of the mocked role.
*
* @return \PHPUnit_Framework_MockObject_MockBuilder|\Drupal\user\RoleInterface
* The mocked role.
*/
protected function getMockRole($id) {
$role = $this->getMockBuilder('Drupal\user\Entity\Role')
->disableOriginalConstructor()
->setMethods(['id'])
->getMock();
$role->expects($this->any())
->method('id')
->will($this->returnValue($id));
return $role;
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\Condition\UserIsBlocked.
*/
namespace Drupal\rules\Plugin\Condition;
use Drupal\rules\Core\RulesConditionBase;
/**
* Provides a 'User is blocked' condition.
*
* @Condition(
* id = "rules_user_is_blocked",
* label = @Translation("User is blocked"),
* category = @Translation("User"),
* context = {
* "user" = @ContextDefinition("entity:user",
* label = @Translation("User")
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7.
*/
class UserIsBlocked extends RulesConditionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('User is blocked');
}
/**
* {@inheritdoc}
*/
public function evaluate() {
$account = $this->getContextValue('user');
return $account->isBlocked();
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\Condition\DataComparison.
*/
namespace Drupal\rules\Plugin\Condition;
use Drupal\rules\Core\RulesConditionBase;
/**
* Provides a 'Data comparison' condition.
*
* @Condition(
* id = "rules_data_comparison",
* label = @Translation("Data comparison"),
* category = @Translation("Data"),
* context = {
* "data" = @ContextDefinition("any",
* label = @Translation("Data to compare"),
* description = @Translation("The data to be checked to be empty, specified by using a data selector, e.g. 'node:uid:entity:name:value'.")
* ),
* "operator" = @ContextDefinition("string",
* label = @Translation("Operator"),
* description = @Translation("The comparison operator."),
* required = FALSE
* ),
* "value" = @ContextDefinition("any",
* label = @Translation("Data value"),
* description = @Translation("The value to compare the data with.")
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7.
* @todo: Find a way to port rules_condition_data_is_operator_options() from Drupal 7.
*/
class DataComparison extends RulesConditionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('Data comparison');
}
/**
* {@inheritdoc}
*/
public function evaluate() {
$data = $this->getContextValue('data');
$operator = $this->getContext('operator')->getContextData() ? $this->getContextValue('operator') : '==';
$value = $this->getContextValue('value');
switch ($operator) {
case '<':
return $data < $value;
case '>':
return $data > $value;
case 'contains':
return is_string($data) && strpos($data, $value) !== FALSE || is_array($data) && in_array($value, $data);
case 'IN':
return is_array($value) && in_array($data, $value);
default:
// In case both values evaluate to FALSE, further differentiate between
// NULL values and values evaluating to FALSE.
if (!$data && !$value) {
return (isset($data) && isset($value)) || (!isset($data) && !isset($value));
}
return $data == $value;
}
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Action\UserRoleAddTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
use Drupal\Tests\rules\Integration\RulesUserIntegrationTestTrait;
use Drupal\user\RoleInterface;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\UserRoleAdd
* @group rules_actions
*/
class UserRoleAddTest extends RulesEntityIntegrationTestBase {
use RulesUserIntegrationTestTrait;
/**
* The action that is being tested.
*
* @var \Drupal\rules\Core\RulesActionInterface
*/
protected $action;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->enableModule('user');
$this->action = $this->actionManager->createInstance('rules_user_role_add');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Add user role', $this->action->summary());
}
/**
* Tests adding of one role to user. User should not be saved.
*
* @covers ::execute
*/
public function testAddOneRoleNoSave() {
// Set-up a mock user.
$account = $this->getMockedUser();
$account->expects($this->once())
->method('hasRole')
->with($this->equalTo('administrator'))
->will($this->returnValue(FALSE));
$account->expects($this->once())
->method('addRole')
->with($this->equalTo('administrator'));
// We do noe expect call of the 'save' method because user should be
// auto-saved later.
$account->expects($this->never())
->method('save');
// Mock the 'administrator' user role.
$administrator = $this->getMockedUserRole('administrator');
// Test adding of one role.
$this->action
->setContextValue('user', $account)
->setContextValue('roles', [$administrator])
->execute();
$this->assertEquals($this->action->autoSaveContext(), ['user'], 'Action returns the user context name for auto saving.');
}
/**
* Tests adding of three roles to user.
*
* @covers ::execute
*/
public function testAddThreeRoles() {
// Set-up a mock user.
$account = $this->getMockedUser();
// Mock hasRole.
$account->expects($this->exactly(3))
->method('hasRole')
->with($this->logicalOr(
$this->equalTo('manager'),
$this->equalTo('editor'),
$this->equalTo('administrator')
))
->will($this->returnValue(FALSE));
// Mock addRole.
$account->expects($this->exactly(3))
->method('addRole')
->with($this->logicalOr(
$this->equalTo('manager'),
$this->equalTo('editor'),
$this->equalTo('administrator')
));
// Mock user roles.
$manager = $this->getMockedUserRole('manager');
$editor = $this->getMockedUserRole('editor');
$administrator = $this->getMockedUserRole('administrator');
// Test adding of three roles role.
$this->action
->setContextValue('user', $account)
->setContextValue('roles', [$manager, $editor, $administrator])
->execute();
$this->assertEquals($this->action->autoSaveContext(), ['user'], 'Action returns the user context name for auto saving.');
}
/**
* Tests adding of existing role to user.
*
* @covers ::execute
*/
public function testAddExistingRole() {
// Set-up a mock user with role 'administrator'.
$account = $this->getMockedUser();
$account->expects($this->once())
->method('hasRole')
->with($this->equalTo('administrator'))
->will($this->returnValue(TRUE));
// We do not expect a call of the 'addRole' method.
$account->expects($this->never())
->method('addRole');
// Mock the 'administrator' user role.
$administrator = $this->getMockedUserRole('administrator');
// Test adding one role.
$this->action
->setContextValue('user', $account)
->setContextValue('roles', [$administrator])
->execute();
$this->assertEquals($this->action->autoSaveContext(), [], 'Action returns nothing for auto saving since the user has been saved already.');
}
/**
* Tests adding of one existing and one nonexistent role to user.
*
* @covers ::execute
*/
public function testAddExistingAndNonexistentRole() {
// Set-up a mock user with role 'administrator' but without 'editor'.
$account = $this->getMockedUser();
$account->expects($this->exactly(2))
->method('hasRole')
->with($this->logicalOr(
$this->equalTo('editor'),
$this->equalTo('administrator')
))
->will($this->returnCallback(
function($rid) {
if ($rid == 'administrator') {
return TRUE;
}
return FALSE;
}
));
// We expect only one call of the 'addRole' method.
$account->expects($this->once())
->method('addRole');
// Mock user roles.
$editor = $this->getMockedUserRole('editor');
$administrator = $this->getMockedUserRole('administrator');
// Test adding one role.
$this->action
->setContextValue('user', $account)
->setContextValue('roles', [$administrator, $editor])
->execute();
$this->assertEquals($this->action->autoSaveContext(), ['user'], 'Action returns the user context name for auto saving.');
}
/**
* Tests adding of the 'anonymous' role to user.
*
* @expectedException \InvalidArgumentException
*/
function testAddAnonymousRole() {
// Set-up a mock user.
$account = $this->getMockedUser();
// If you try to add anonymous or authenticated role to user, Drupal will
// throw an \InvalidArgumentException. Anonymous or authenticated role ID
// must not be assigned manually.
$account->expects($this->once())
->method('hasRole')
->with($this->logicalOr(
$this->equalTo(RoleInterface::ANONYMOUS_ID)
))
->will($this->returnCallback(
function($rid) {
if (in_array($rid, [RoleInterface::AUTHENTICATED_ID, RoleInterface::ANONYMOUS_ID])) {
throw new \InvalidArgumentException('Anonymous or authenticated role ID must not be assigned manually.');
}
}
));
// Mock the 'anonymous' user role.
$anonymous = $this->getMockedUserRole(RoleInterface::ANONYMOUS_ID);
// Test adding of the 'anonymous' role.
$this->action
->setContextValue('user', $account)
->setContextValue('roles', [$anonymous])
->execute();
$this->assertEquals($this->action->autoSaveContext(), [], 'Action returns nothing for auto saving since the user has been saved already.');
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Unit\RulesUnitTestBase.
*/
namespace Drupal\Tests\rules\Unit;
use Drupal\Core\TypedData\DataDefinition;
use Drupal\Core\TypedData\Plugin\DataType\Any;
use Drupal\Tests\UnitTestCase;
/**
* Helper class with mock objects.
*/
abstract class RulesUnitTestBase extends UnitTestCase {
/**
* A mocked condition that always evaluates to TRUE.
*
* @var \Drupal\rules\Engine\ConditionExpressionInterface
*/
protected $trueConditionExpression;
/**
* A mocked condition that always evaluates to FALSE.
*
* @var \Drupal\rules\Engine\ConditionExpressionInterface
*/
protected $falseConditionExpression;
/**
* A mocked dummy action object.
*
* @var \Drupal\rules\Engine\ActionExpressionInterface
*/
protected $testActionExpression;
/**
* The mocked expression manager object.
*
* @var \Drupal\rules\Engine\ExpressionPluginManager
*/
protected $expressionManager;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->trueConditionExpression = $this->getMock('Drupal\rules\Engine\ConditionExpressionInterface');
$this->trueConditionExpression->expects($this->any())
->method('execute')
->will($this->returnValue(TRUE));
$this->trueConditionExpression->expects($this->any())
->method('executeWithState')
->will($this->returnValue(TRUE));
$this->trueConditionExpression->expects($this->any())
->method('evaluate')
->will($this->returnValue(TRUE));
$this->falseConditionExpression = $this->getMock('Drupal\rules\Engine\ConditionExpressionInterface');
$this->falseConditionExpression->expects($this->any())
->method('execute')
->will($this->returnValue(FALSE));
$this->falseConditionExpression->expects($this->any())
->method('executeWithState')
->will($this->returnValue(FALSE));
$this->falseConditionExpression->expects($this->any())
->method('evaluate')
->will($this->returnValue(FALSE));
$this->testActionExpression = $this->getMock('Drupal\rules\Engine\ActionExpressionInterface');
$this->expressionManager = $this->getMockBuilder('Drupal\rules\Engine\ExpressionPluginManager')
->disableOriginalConstructor()
->getMock();
}
/**
* Creates a typed data mock with a given value.
*
* @param mixed $value
* The value to set in the mocked typed data object.
*
* @return \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\TypedData\TypedDataInterface
* The mocked typed data object with the given value set.
*/
protected function getMockTypedData($value) {
$typed_data = $this->getMock('Drupal\Core\TypedData\TypedDataInterface');
$typed_data->expects($this->any())
->method('getValue')
->will($this->returnValue($value));
return $typed_data;
}
/**
* Creates a typed data manager with the basic data type methods mocked.
*
* @param array $methods
* (optional) The methods to mock.
*
* @return \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\TypedData\TypedDataManager
* The mocked typed data manager
*
* @see \Drupal\Core\TypedData\TypedDataManager
*/
protected function getMockTypedDataManager(array $methods = []) {
$methods += ['createDataDefinition', 'createListDataDefinition', 'createInstance'];
$typed_data_manager = $this->getMockBuilder('Drupal\Core\TypedData\TypedDataManager')
->setMethods($methods)
->disableOriginalConstructor()
->getMock();
// These can be overridden in the test implementation to return more
// specific data definitions.
$typed_data_manager->expects($this->any())
->method('createDataDefinition')
->with($this->anything())
->will($this->returnCallback(function ($data) {
return DataDefinition::create($data);
}));
$typed_data_manager->expects($this->any())
->method('createListDataDefinition')
->with($this->anything())
->will($this->returnCallback(function ($data) {
return DataDefinition::create($data);
}));
$typed_data_manager->expects($this->any())
->method('createInstance')
->with($this->anything())
->will($this->returnCallback(function ($definition, $configuration) {
// We don't care for validation in our condition plugin tests. Therefore
// we wrap all the data in a simple 'any' data type. That way we can use
// all the data setters and getters without running into any problems or
// needless complexity and mocking.
// @see \Drupal\Core\TypedData\TypedDataManager::createInstance.
return new Any($definition, $configuration['name'], $configuration['parent']);
}));
return $typed_data_manager;
}
/**
* Creates a string translation with the basic translation methods mocked.
*
* @return \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\StringTranslation\TranslationInterface
* The mocked string translation.
*
* @see \Drupal\Core\StringTranslation\TranslationInterface
*/
protected function getMockStringTranslation() {
$string_translation = $this->getMock('Drupal\Core\StringTranslation\TranslationInterface');
$string_translation->expects($this->any())
->method('translate')
->will($this->returnCallback(function ($string) {
return $string;
}));
$string_translation->expects($this->any())
->method('formatPlural')
->will($this->returnCallback(function($count, $one, $multiple) {
return $count == 1 ? $one : str_replace('@count', $count, $multiple);
}));
return $string_translation;
}
/**
* Creates a rule with the basic plugin methods mocked.
*
* @param array $methods
* (optional) The methods to mock.
*
* @return \Drupal\rules\Plugin\RulesExpression\RuleInterface
* The mocked rule.
*/
protected function getMockRule(array $methods = []) {
$methods += ['getPluginId', 'getBasePluginId', 'getDerivativeId', 'getPluginDefinition'];
$rule = $this->getMockBuilder('Drupal\rules\Plugin\RulesExpression\Rule')
->setMethods($methods)
->disableOriginalConstructor()
->getMock();
$this->expectsGetPluginId($rule, 'rules_rule')
->expectsGetDerivativeId($rule, NULL)
->expectsGetBasePluginId($rule, 'rules_rule')
->expectsGetPluginDefinition($rule, 'rules_rule', 'A rule, executing actions when conditions are met.');
// Set the condition container that would otherwise get initialized in the
// constructor.
$rule->setConditions($this->getMockAnd());
// Same for the actions container.
$rule->setActions($this->getMockActionSet());
return $rule;
}
/**
* Creates an 'and' condition container with the basic plugin methods mocked.
*
* @param array $methods
* (optional) The methods to mock.
*
* @return \Drupal\rules\Engine\ConditionExpressionContainerInterface
* The mocked 'and' condition container.
*/
protected function getMockAnd(array $methods = []) {
$methods += ['getPluginId', 'getBasePluginId', 'getDerivativeId', 'getPluginDefinition'];
$and = $this->getMockBuilder('Drupal\rules\Plugin\RulesExpression\RulesAnd')
->setMethods($methods)
->disableOriginalConstructor()
->getMock();
$this->expectsGetPluginId($and, 'rules_and')
->expectsGetDerivativeId($and, NULL)
->expectsGetBasePluginId($and, 'rules_and')
->expectsGetPluginDefinition($and, 'rules_and', 'Condition set (AND)');
return $and;
}
/**
* Creates an 'or' condition container with the basic plugin methods mocked.
*
* @param array $methods
* (optional) The methods to mock.
*
* @return \Drupal\rules\Engine\ConditionExpressionContainerInterface
* The mocked 'or' condition container.
*/
protected function getMockOr(array $methods = []) {
$methods += ['getPluginId', 'getBasePluginId', 'getDerivativeId', 'getPluginDefinition'];
$or = $this->getMockBuilder('Drupal\rules\Plugin\RulesExpression\RulesOr')
->setMethods($methods)
->disableOriginalConstructor()
->getMock();
$this->expectsGetPluginId($or, 'rules_or')
->expectsGetDerivativeId($or, NULL)
->expectsGetBasePluginId($or, 'rules_or')
->expectsGetPluginDefinition($or, 'rules_or', 'Condition set (OR)');
return $or;
}
/**
* Creates an action set with the basic plugin methods mocked.
*
* @param array $methods
* (optional) The methods to mock.
*
* @return \Drupal\rules\Engine\ActionExpressionContainerInterface
* The mocked action container.
*/
protected function getMockActionSet(array $methods = []) {
$methods += ['getPluginId', 'getBasePluginId', 'getDerivativeId', 'getPluginDefinition'];
$actions = $this->getMockBuilder('Drupal\rules\Plugin\RulesExpression\ActionSet')
->setMethods($methods)
->disableOriginalConstructor()
->getMock();
$this->expectsGetPluginId($actions, 'rules_action_set')
->expectsGetDerivativeId($actions, NULL)
->expectsGetBasePluginId($actions, 'rules_action_set')
->expectsGetPluginDefinition($actions, 'rules_action_set', 'Rules Action');
return $actions;
}
/**
* Sets the mocked plugin to expect calls to 'getPluginId'.
*
* @param \PHPUnit_Framework_MockObject_MockObject $plugin
* The mocked plugin instance.
* @param string $id
* (optional) The id of the plugin. Defaults to an empty string.
*
* @return $this
* The current object for chaining.
*/
protected function expectsGetPluginId(\PHPUnit_Framework_MockObject_MockObject $plugin, $id = '') {
$plugin->expects($this->any())
->method('getPluginId')
->will($this->returnValue($id));
return $this;
}
/**
* Sets the mocked plugin to expect calls to 'getBasePluginId'.
*
* @param \PHPUnit_Framework_MockObject_MockObject $plugin
* The mocked plugin instance.
* @param string $id
* (optional) The base id of the plugin. Defaults to an empty string.
*
* @return $this
* The current object for chaining.
*/
protected function expectsGetBasePluginId(\PHPUnit_Framework_MockObject_MockObject $plugin, $id = '') {
$plugin->expects($this->any())
->method('getBasePluginId')
->will($this->returnValue($id));
return $this;
}
/**
* Sets the mocked plugin to expect calls to 'getDerivativeId'.
*
* @param \PHPUnit_Framework_MockObject_MockObject $plugin
* The mocked plugin instance.
* @param string $id
* (optional) The derivative id of the plugin. Defaults to NULL.
*
* @return $this
* The current object for chaining.
*/
protected function expectsGetDerivativeId(\PHPUnit_Framework_MockObject_MockObject $plugin, $id = NULL) {
$plugin->expects($this->any())
->method('getDerivativeId')
->will($this->returnValue(NULL));
return $this;
}
/**
* Sets the mocked plugin to expect calls to 'getPluginDefinition'.
*
* @param \PHPUnit_Framework_MockObject_MockObject $plugin
* The mocked plugin instance.
* @param string $id
* (optional) The id of the plugin. Defaults to an empty string.
* @param string $label
* (optional) The label of the plugin. Defaults to NULL.
* @param string $provider
* (optional) The name of the providing module. Defaults to 'rules'.
* @param array $other
* (optional) Any other values to set as the plugin definition.
*
* @return $this
* The current object for chaining.
*/
protected function expectsGetPluginDefinition(\PHPUnit_Framework_MockObject_MockObject $plugin, $id = '', $label = NULL, $provider = 'rules', array $other = []) {
$defaults = [
'type' => '',
'id' => $id,
'class' => get_class($plugin),
'provider' => $provider,
];
if (isset($label)) {
$definition['label'] = $label;
}
$plugin->expects($this->any())
->method('getPluginDefinition')
->will($this->returnValue($other + $defaults));
return $this;
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\Condition\DataListCountIs.
*/
namespace Drupal\rules\Plugin\Condition;
use Drupal\rules\Core\RulesConditionBase;
/**
* Provides a 'List count comparison' condition.
*
* @Condition(
* id = "rules_list_count_is",
* label = @Translation("List Count Comparison"),
* category = @Translation("Data"),
* context = {
* "list" = @ContextDefinition("list",
* label = @Translation("List"),
* description = @Translation("A multi value data element to have its count compared, specified by using a data selector, eg 'node:uid:entity:roles'.")
* ),
* "operator" = @ContextDefinition("string",
* label = @Translation("Operator"),
* description = @Translation("The comparison operator.")
* ),
* "value" = @ContextDefinition("integer",
* label = @Translation("Count"),
* description = @Translation("The count to compare the data count with.")
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7?
* @todo: set ContextDefinition default value
* @todo: set ContextDefinition options list
* @todo: set ContextDefinition restriction
*/
class DataListCountIs extends RulesConditionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('List count comparison');
}
/**
* {@inheritdoc}
*/
public function evaluate() {
$list = $this->getContextValue('list');
$operator = $this->getContextValue('operator');
$value = $this->getContextValue('value');
switch ($operator) {
case '==':
return count($list) == $value;
case '<';
return count($list) < $value;
case '>';
return count($list) > $value;
}
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Condition\UserHasEntityFieldAccessTest.
*/
namespace Drupal\Tests\rules\Integration\Condition;
use Drupal\Core\Language\Language;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\Condition\UserHasEntityFieldAccess
* @group rules_conditions
*/
class UserHasEntityFieldAccessTest extends RulesEntityIntegrationTestBase {
/**
* The condition to be tested.
*
* @var \Drupal\rules\Core\RulesConditionInterface
*/
protected $condition;
/**
* The mocked entity access handler.
*
* @var \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\Entity\EntityAccessControlHandlerInterface
*/
protected $entityAccess;
/**
* The mocked entity manager.
*
* @var \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\Entity\EntityManagerInterface
*/
protected $entityManager;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->enableModule('user');
$this->condition = $this->conditionManager->createInstance('rules_entity_field_access');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('User has access to field on entity', $this->condition->summary());
}
/**
* Tests evaluating the condition.
*
* @covers ::evaluate
*/
public function testConditionEvaluation() {
$account = $this->getMock('Drupal\user\UserInterface');
$entity = $this->getMock('Drupal\Core\Entity\ContentEntityInterface');
$items = $this->getMock('Drupal\Core\Field\FieldItemListInterface');
$entity->expects($this->any())
->method('getEntityTypeId')
->will($this->returnValue('user'));
$entity->expects($this->exactly(3))
->method('hasField')
->with('potato-field')
->will($this->returnValue(TRUE));
$definition = $this->getMock('Drupal\Core\Field\FieldDefinitionInterface');
$entity->expects($this->exactly(2))
->method('getFieldDefinition')
->with('potato-field')
->will($this->returnValue($definition));
$entity->expects($this->exactly(2))
->method('get')
->with('potato-field')
->will($this->returnValue($items));
$this->condition->setContextValue('entity', $entity)
->setContextValue('field', 'potato-field')
->setContextValue('user', $account);
$this->entityAccess->expects($this->exactly(3))
->method('access')
->will($this->returnValueMap([
[$entity, 'view', Language::LANGCODE_DEFAULT, $account, FALSE, TRUE],
[$entity, 'edit', Language::LANGCODE_DEFAULT, $account, FALSE, TRUE],
[$entity, 'delete', Language::LANGCODE_DEFAULT, $account, FALSE, FALSE],
]));
$this->entityAccess->expects($this->exactly(2))
->method('fieldAccess')
->will($this->returnValueMap([
['view', $definition, $account, $items, FALSE, TRUE],
['edit', $definition, $account, $items, FALSE, FALSE],
]));
// Test with 'view', 'edit' and 'delete'. Both 'view' and 'edit' will have
// general entity access, but the 'potato-field' should deny access for the
// 'edit' operation. Hence, 'edit' and 'delete' should return FALSE.
$this->condition->setContextValue('operation', 'view');
$this->assertTrue($this->condition->evaluate());
$this->condition->setContextValue('operation', 'edit');
$this->assertFalse($this->condition->evaluate());
$this->condition->setContextValue('operation', 'delete');
$this->assertFalse($this->condition->evaluate());
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Unit\RuleTest.
*/
namespace Drupal\Tests\rules\Unit;
use Drupal\rules\Context\ContextDefinition;
use Drupal\rules\Plugin\RulesExpression\Rule;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesExpression\Rule
* @group rules
*/
class RuleTest extends RulesUnitTestBase {
/**
* The rules expression plugin manager.
*
* @var \Drupal\rules\Engine\ExpressionPluginManager
*/
protected $expressionManager;
/**
* The rule being tested.
*
* @var \Drupal\rules\Plugin\RulesExpression\RuleInterface
*/
protected $rule;
/**
* The primary condition container of the rule.
*
* @var \Drupal\rules\Engine\ConditionExpressionContainerInterface
*/
protected $conditions;
/**
* The primary action container of the rule.
*
* @var \Drupal\rules\Engine\ActionExpressionContainerInterface
*/
protected $actions;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->expressionManager = $this->getMockBuilder('Drupal\rules\Engine\ExpressionPluginManager')
->disableOriginalConstructor()
->getMock();
$this->conditions = $this->getMockAnd();
$this->expressionManager->expects($this->at(0))
->method('createInstance')
->with('rules_and')
->will($this->returnValue($this->conditions));
$this->actions = $this->getMockActionSet();
$this->expressionManager->expects($this->at(1))
->method('createInstance')
->with('rules_action_set')
->will($this->returnValue($this->actions));
$this->rule = new Rule([], 'rules_rule', [], $this->expressionManager);
}
/**
* Tests that a rule is constructed with condition and action containers.
*
* @covers ::__construct
*/
public function testContainersOnConstruct() {
$this->assertSame($this->conditions, $this->rule->getConditions());
$this->assertSame($this->actions, $this->rule->getActions());
}
/**
* Tests the condition container setter and getter.
*
* @covers ::setConditions
* @covers ::getConditions
*/
public function testSetConditionsGetConditions() {
$or = $this->getMockOr();
$this->rule->setConditions($or);
$this->assertSame($or, $this->rule->getConditions());
$and = $this->getMockAnd();
$this->rule->setConditions($and);
$this->assertSame($and, $this->rule->getConditions());
}
/**
* Tests the condition container setter and getter.
*
* @covers ::setActions
* @covers ::getActions
*/
public function testSetActionsGetActions() {
$action_set = $this->getMockActionSet();
$this->rule->setActions($action_set);
$this->assertSame($action_set, $this->rule->getActions());
}
/**
* Tests that an action fires if a condition passes.
*
* @covers ::execute
*/
public function testActionExecution() {
// The method on the test action must be called once.
$this->testActionExpression->expects($this->once())
->method('executeWithState');
$this->rule
->addExpressionObject($this->trueConditionExpression)
->addExpressionObject($this->testActionExpression)
->execute();
}
/**
* Tests that an action does not fire if a condition fails.
*
* @covers ::execute
*/
public function testConditionFails() {
// The execute method on the action must never be called.
$this->testActionExpression->expects($this->never())
->method('execute');
$this->rule
->addExpressionObject($this->falseConditionExpression)
->addExpressionObject($this->testActionExpression)
->execute();
}
/**
* Tests that an action fires if a condition passes.
*
* @covers ::execute
*/
public function testTwoConditionsTrue() {
// The method on the test action must be called once.
$this->testActionExpression->expects($this->once())
->method('executeWithState');
$this->rule
->addExpressionObject($this->trueConditionExpression)
->addExpressionObject($this->trueConditionExpression)
->addExpressionObject($this->testActionExpression)
->execute();
}
/**
* Tests that an action does not fire if a condition fails.
*
* @covers ::execute
*/
public function testTwoConditionsFalse() {
// The execute method on the action must never be called.
$this->testActionExpression->expects($this->never())
->method('execute');
$this->rule
->addExpressionObject($this->trueConditionExpression)
->addExpressionObject($this->falseConditionExpression)
->addExpressionObject($this->testActionExpression)
->execute();
}
/**
* Tests that nested rules are properly executed.
*
* @covers ::execute
*/
public function testNestedRules() {
$this->testActionExpression->expects($this->once())
->method('executeWithState');
$nested = $this->getMockRule()
->addExpressionObject($this->trueConditionExpression)
->addExpressionObject($this->testActionExpression);
$this->rule
->addExpressionObject($this->trueConditionExpression)
->addExpressionObject($nested)
->execute();
}
/**
* Tests that a context definiton object is created from configuration.
*/
public function testContextDefinitionFromConfig() {
$rule = new Rule([
'context_definitions' => [
'node' => ContextDefinition::create('entity:node')
->setLabel('node')
->toArray()
],
], 'rules_rule', [], $this->expressionManager);
$context_definition = $rule->getContextDefinition('node');
$this->assertSame($context_definition->getDataType(), 'entity:node');
}
/**
* Tests that provided context definitons are created from configuration.
*/
public function testProvidedDefinitionFromConfig() {
$rule = new Rule([
'provided_definitions' => [
'node' => ContextDefinition::create('entity:node')
->setLabel('node')
->toArray()
],
], 'rules_rule', [], $this->expressionManager);
$provided_definition = $rule->getProvidedContextDefinition('node');
$this->assertSame($provided_definition->getDataType(), 'entity:node');
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Action\EntityCreateTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Core\Entity\ContentEntityType;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\EntityCreate
* @group rules_actions
*/
class EntityCreateTest extends RulesEntityIntegrationTestBase {
/**
* A constant that will be used instead of an entity.
*/
const ENTITY_REPLACEMENT = 'This is a fake entity';
/**
* The action to be tested.
*
* @var \Drupal\rules\Core\RulesActionInterface
*/
protected $action;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
// Prepare mocked bundle field definition. This is needed because
// EntityCreateDeriver adds required contexts for required fields, and
// assumes that the bundle field is required.
$this->bundleFieldDefinition = $this->getMockBuilder('Drupal\Core\Field\BaseFieldDefinition')
->disableOriginalConstructor()
->getMock();
// The next methods are mocked because EntityCreateDeriver executes them,
// and the mocked field definition is instantiated without the necessary
// information.
$this->bundleFieldDefinition
->expects($this->once())
->method('getCardinality')
->willReturn(1);
$this->bundleFieldDefinition
->expects($this->once())
->method('getType')
->willReturn('string');
$this->bundleFieldDefinition
->expects($this->once())
->method('getLabel')
->willReturn('Bundle');
$this->bundleFieldDefinition
->expects($this->once())
->method('getDescription')
->willReturn('Bundle mock description');
// Prepare an content entity type instance.
$this->entityType = new ContentEntityType([
'id' => 'test',
'label' => 'Test',
'entity_keys' => [
'bundle' => 'bundle',
],
]);
// Prepare mocked entity storage.
$this->entityTypeStorage = $this->getMockBuilder('Drupal\Core\Entity\EntityStorageBase')
->setMethods(['create'])
->setConstructorArgs([$this->entityType])
->getMockForAbstractClass();
$this->entityTypeStorage
->expects($this->any())
->method('create')
->willReturn(self::ENTITY_REPLACEMENT);
// Prepare mocked entity manager.
$this->entityManager = $this->getMockBuilder('Drupal\Core\Entity\EntityManager')
->setMethods(['getBundleInfo', 'getStorage', 'getDefinitions', 'getBaseFieldDefinitions'])
->setConstructorArgs([
$this->namespaces,
$this->moduleHandler,
$this->cacheBackend,
$this->languageManager,
$this->getStringTranslationStub(),
$this->getClassResolverStub(),
$this->typedDataManager,
$this->getMock('Drupal\Core\KeyValueStore\KeyValueFactoryInterface'),
$this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface')
])
->getMock();
// Return the mocked storage controller.
$this->entityManager
->expects($this->any())
->method('getStorage')
->willReturn($this->entityTypeStorage);
// Return a mocked list of base fields definitions.
$this->entityManager
->expects($this->any())
->method('getBaseFieldDefinitions')
->willReturn(['bundle' => $this->bundleFieldDefinition]);
// Return a mocked list of entity types.
$this->entityManager
->expects($this->any())
->method('getDefinitions')
->willReturn(['test' => $this->entityType]);
// Return some dummy bundle information for now, so that the entity manager
// does not call out to the config entity system to get bundle information.
$this->entityManager
->expects($this->any())
->method('getBundleInfo')
->with($this->anything())
->willReturn(['test' => ['label' => 'Test']]);
$this->container->set('entity.manager', $this->entityManager);
// Instantiate the action we are testing.
$this->action = $this->actionManager->createInstance('rules_entity_create:entity:test');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Create a new test entity', $this->action->summary());
}
/**
* Tests the action execution.
*
* @covers ::execute
*/
public function testActionExecution() {
$this->action->setContextValue('bundle', 'test');
$this->action->execute();
$entity = $this->action->getProvidedContext('entity')->getContextValue();
$this->assertEquals(self::ENTITY_REPLACEMENT, $entity);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\Condition\EntityIsNew.
*/
namespace Drupal\rules\Plugin\Condition;
use Drupal\rules\Core\RulesConditionBase;
/**
* Provides an 'Entity is new' condition.
*
* @Condition(
* id = "rules_entity_is_new",
* label = @Translation("Entity is new"),
* category = @Translation("Entity"),
* context = {
* "entity" = @ContextDefinition("entity",
* label = @Translation("Entity"),
* description = @Translation("Specifies the entity for which to evaluate the condition.")
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7?
*/
class EntityIsNew extends RulesConditionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('Entity is new');
}
/**
* {@inheritdoc}
*/
public function evaluate() {
$provided_entity = $this->getContextValue('entity');
return $provided_entity->isNew();
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Tests\Integration\Action\EntityFetchByIdTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\EntityFetchById
* @group rules_actions
*/
class EntityFetchByIdTest extends RulesEntityIntegrationTestBase {
/**
* The action to be tested.
*
* @var \Drupal\rules\Core\RulesActionInterface
*/
protected $action;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
// Prepare dummy entity manager.
$this->entityManager = $this->getMockBuilder('Drupal\Core\Entity\EntityManager')
->setMethods(['getBundleInfo', 'getBaseFieldDefinitions', 'getStorage'])
->setConstructorArgs([
$this->namespaces,
$this->moduleHandler,
$this->cacheBackend,
$this->getMock('Drupal\Core\Language\LanguageManagerInterface'),
$this->getStringTranslationStub(),
$this->getClassResolverStub(),
$this->typedDataManager,
$this->getMock('Drupal\Core\KeyValueStore\KeyValueFactoryInterface'),
$this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface')
])
->getMock();
// The base field definitions for entity_test aren't used, and would
// require additional mocking.
$this->entityManager->expects($this->any())
->method('getBaseFieldDefinitions')
->willReturn([]);
// Return some dummy bundle information for now, so that the entity manager
// does not call out to the config entity system to get bundle information.
$this->entityManager->expects($this->any())
->method('getBundleInfo')
->with($this->anything())
->willReturn(['test' => ['label' => 'Test']]);
$this->container->set('entity.manager', $this->entityManager);
$this->action = $this->actionManager->createInstance('rules_entity_fetch_by_id');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Fetch entity by id', $this->action->summary());
}
/**
* Tests the action execution.
*
* @covers ::execute
*/
public function testActionExecution() {
// Prepare entity storage to return dummy entity on the 'load' execution.
$entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entityStorage = $this->getMock('Drupal\Core\Entity\EntityStorageInterface');
$entityStorage->expects($this->once())
->method('load')
->with(1)
->will($this->returnValue($entity));
$this->entityManager->expects($this->once())
->method('getStorage')
->with('test')
->will($this->returnValue($entityStorage));
$this->action
->setContextValue('entity_type_id', 'test')
->setContextValue('entity_id', 1)
->execute();
// Entity load with type 'test' and id '1' should return the dummy entity.
$this->assertEquals($entity, $this->action->getProvidedContext('entity')->getContextValue('entity'), 'Action returns the loaded entity for fetching entity by id.');
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Condition\DataComparisonTest.
*/
namespace Drupal\Tests\rules\Integration\Condition;
use Drupal\Tests\rules\Integration\RulesIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\Condition\DataComparison
* @group rules_conditions
*/
class DataComparisonTest extends RulesIntegrationTestBase {
/**
* The condition to be tested.
*
* @var \Drupal\rules\Core\RulesConditionInterface
*/
protected $condition;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->condition = $this->conditionManager->createInstance('rules_data_comparison');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Data comparison', $this->condition->summary());
}
/**
* Tests evaluating the condition with the "equals" operator.
*
* @covers ::evaluate
*/
public function testConditionEvaluationOperatorEquals() {
// Test that when a boolean data does not equal a boolean value
// and the operator is not set - should fallback to '=='.
$this->condition
->setContextValue('data', TRUE)
->setContextValue('value', FALSE);
$this->assertFalse($this->condition->evaluate());
// Test that when both data and value are false booleans
// and the operator is not set - should fallback to '=='.
$this->condition
->setContextValue('data', FALSE)
->setContextValue('value', FALSE);
$this->assertTrue($this->condition->evaluate());
// Test that when the data string equals the value string and the operator
// is '==', TRUE is returned.
$this->condition
->setContextValue('data', 'Llama')
->setContextValue('operator', '==')
->setContextValue('value', 'Llama');
$this->assertTrue($this->condition->evaluate());
// Test that when the data string does not equal the value string and the
// operator is '==', FALSE is returned.
$this->condition
->setContextValue('data', 'Kitten')
->setContextValue('operator', '==')
->setContextValue('value', 'Llama');
$this->assertFalse($this->condition->evaluate());
// Test that when both data and value are false booleans and the operator
// is '==', TRUE is returned.
$this->condition
->setContextValue('data', FALSE)
->setContextValue('operator', '==')
->setContextValue('value', FALSE);
$this->assertTrue($this->condition->evaluate());
// Test that when a boolean data does not equal a boolean value
// and the operator is '==', FALSE is returned.
$this->condition
->setContextValue('data', TRUE)
->setContextValue('operator', '==')
->setContextValue('value', FALSE);
$this->assertFalse($this->condition->evaluate());
}
/**
* Tests evaluating the condition with the "contains" operator.
*
* @covers ::evaluate
*/
public function testConditionEvaluationOperatorContains() {
// Test that when the data string contains the value string, and the operator
// is 'CONTAINS', TRUE is returned.
$this->condition
->setContextValue('data', 'Big Llama')
->setContextValue('operator', 'contains')
->setContextValue('value', 'Llama');
$this->assertTrue($this->condition->evaluate());
// Test that when the data string does not contain the value string, and
// the operator is 'contains', TRUE is returned.
$this->condition
->setContextValue('data', 'Big Kitten')
->setContextValue('operator', 'contains')
->setContextValue('value', 'Big Kitten');
$this->assertTrue($this->condition->evaluate());
// Test that when a data array contains the value string, and the operator
// is 'CONTAINS', TRUE is returned.
$this->condition
->setContextValue('data', ['Llama', 'Kitten'])
->setContextValue('operator', 'contains')
->setContextValue('value', 'Llama');
$this->assertTrue($this->condition->evaluate());
// Test that when a data array does not contain the value array, and the
// operator is 'CONTAINS', TRUE is returned.
$this->condition
->setContextValue('data', ['Kitten'])
->setContextValue('operator', 'contains')
->setContextValue('value', ['Llama']);
$this->assertFalse($this->condition->evaluate());
}
/**
* Tests evaluating the condition with the "IN" operator.
*
* @covers ::evaluate
*/
public function testConditionEvaluationOperatorIn() {
// Test that when the data string is 'IN' the value array, TRUE is returned.
$this->condition
->setContextValue('data', 'Llama')
->setContextValue('operator', 'IN')
->setContextValue('value', ['Llama', 'Kitten']);
$this->assertTrue($this->condition->evaluate());
// Test that when the data array is not in the value array, and the operator
// is 'IN', FALSE is returned.
$this->condition
->setContextValue('data', ['Llama'])
->setContextValue('operator', 'IN')
->setContextValue('value', ['Kitten']);
$this->assertFalse($this->condition->evaluate());
}
/**
* Tests evaluating the condition with the "is less than" operator.
*
* @covers ::evaluate
*/
public function testConditionEvaluationOperatorLessThan() {
// Test that when data is less than value and operator is '<',
// TRUE is returned.
$this->condition
->setContextValue('data', 1)
->setContextValue('operator', '<')
->setContextValue('value', 2);
$this->assertTrue($this->condition->evaluate());
// Test that when data is greater than value and operator is '<',
// FALSE is returned.
$this->condition
->setContextValue('data', 2)
->setContextValue('operator', '<')
->setContextValue('value', 1);
$this->assertFalse($this->condition->evaluate());
}
/**
* Tests evaluating the condition with the "is greater than" operator.
*
* @covers ::evaluate
*/
public function testConditionEvaluationOperatorGreaterThan() {
// Test that when data is greater than value and operator is '>',
// TRUE is returned.
$this->condition
->setContextValue('data', 2)
->setContextValue('operator', '>')
->setContextValue('value', 1);
$this->assertTrue($this->condition->evaluate());
// Test that when data is less than value and operator is '>',
// FALSE is returned.
$this->condition
->setContextValue('data', 1)
->setContextValue('operator', '>')
->setContextValue('value', 2);
$this->assertFalse($this->condition->evaluate());
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Condition\ListContainsTest.
*/
namespace Drupal\Tests\rules\Integration\Condition;
use Drupal\Tests\rules\Integration\RulesIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\Condition\DataListContains
* @group rules_conditions
*/
class ListContainsTest extends RulesIntegrationTestBase {
/**
* The condition to be tested.
*
* @var \Drupal\rules\Core\RulesConditionInterface
*/
protected $condition;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->condition = $this->conditionManager->createInstance('rules_list_contains');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('List contains', $this->condition->summary());
}
/**
* Tests evaluating the condition.
*
* @covers ::evaluate
*/
public function testConditionEvaluation() {
// Test array of string values
$list = ['One','Two','Three'];
// Test that the list doesn't contain 'Zero'.
$this->condition
->setContextValue('list', $list)
->setContextValue('item', 'Zero');
$this->assertFalse($this->condition->evaluate());
// Test that the list contains 'One'.
$this->condition
->setContextValue('list', $list)
->setContextValue('item', 'One');
$this->assertTrue($this->condition->evaluate());
// Test that the list contains 'Two'.
$this->condition
->setContextValue('list', $list)
->setContextValue('item', 'Two');
$this->assertTrue($this->condition->evaluate());
// Test that the list contains 'Three'.
$this->condition
->setContextValue('list', $list)
->setContextValue('item', 'Three');
$this->assertTrue($this->condition->evaluate());
// Test that the list doesn't contain 'Four'.
$this->condition
->setContextValue('list', $list)
->setContextValue('item', 'Four');
$this->assertFalse($this->condition->evaluate());
// Create array of mock entities
$entity_zero = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity_zero->expects($this->any())
->method('id')
->will($this->returnValue('entity_zero_id'));
$entity_one = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity_one->expects($this->any())
->method('id')
->will($this->returnValue('entity_one_id'));
$entity_two = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity_two->expects($this->any())
->method('id')
->will($this->returnValue('entity_two_id'));
$entity_three = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity_three->expects($this->any())
->method('id')
->will($this->returnValue('entity_three_id'));
$entity_four = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity_four->expects($this->any())
->method('id')
->will($this->returnValue('entity_four_id'));
// Test array of entities
$entity_list = [$entity_one,$entity_two,$entity_three];
// Test that the list of entities doesn't contain entity 'entity_zero'.
$this->condition
->setContextValue('list', $entity_list)
->setContextValue('item', $entity_zero);
$this->assertFalse($this->condition->evaluate());
// Test that the list of entities contains entity 'entity_one'.
$this->condition
->setContextValue('list', $entity_list)
->setContextValue('item', $entity_one);
$this->assertTrue($this->condition->evaluate());
// Test that the list of entities contains entity 'entity_two'.
$this->condition
->setContextValue('list', $entity_list)
->setContextValue('item', $entity_two);
$this->assertTrue($this->condition->evaluate());
// Test that the list of entities contains entity 'entity_three'.
$this->condition
->setContextValue('list', $entity_list)
->setContextValue('item', $entity_three);
$this->assertTrue($this->condition->evaluate());
// Test that the list of entities doesn't contain entity 'entity_four'.
$this->condition
->setContextValue('list', $entity_list)
->setContextValue('item', $entity_four);
$this->assertFalse($this->condition->evaluate());
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\RulesUserIntegrationTestTrait.
*/
namespace Drupal\Tests\rules\Integration;
/**
* Trait for Rules integration tests with user entities.
*/
trait RulesUserIntegrationTestTrait {
/**
* Creates a mocked user.
*
* @return \Drupal\user\UserInterface|\PHPUnit_Framework_MockObject_MockObject
* The mocked user.
*/
protected function getMockedUser() {
return $this->getMock('Drupal\user\UserInterface');
}
/**
* Creates a mocked user role.
*
* @param string $name
* The machine-readable name of the mocked role.
*
* @return \Drupal\user\RoleInterface|\PHPUnit_Framework_MockObject_MockBuilder
* The mocked role.
*/
protected function getMockedUserRole($name) {
$role = $this->getMockBuilder('Drupal\user\RoleInterface')
->getMock();
$role->expects($this->any())
->method('id')
->will($this->returnValue($name));
return $role;
}
}
<file_sep># Rules for Drupal 8
[](https://travis-ci.org/fago/rules)
The Rules module allows site administrators to define conditionally executed
actions based on occurring events (ECA-rules).
* Project homepage: http://drupal.org/project/rules
* #d8rules initiative: http://d8rules.org/
* Documentation: http://thefubhy.gitbooks.io/rules
## Contributing
Link to [Rules 8.x-3.x contributing tasks](https://www.drupal.org/node/2245015#contributing).
For some time, development will happen on GitHub using the pull request model:
in case you are not familiar with that, please take a few minutes to read the
[GitHub article](https://help.github.com/articles/using-pull-requests) on using
pull requests.
There are a few conventions that should be followed when contributing:
* Always create an issue in the [drupal.org Rules issue queue](http://drupal.org/project/issues/rules)
for every pull request you are working on.
* Always cross-reference the Issue in the Pull Request and the Pull Request in
the issue.
* Always create a new branch for every pull request: its name should contain a
brief summary of the ticket and its issue id, e.g **readme-2276369**.
* Try to keep the history of your pull request as clean as possible by squashing
your commits: you can look at the [Symfony documentation](http://symfony.com/doc/current/cmf/contributing/commits.html)
or at the [Git book](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages)
for more information on how to do that.
For further information on how to contribute please refer to
[our documentation](http://thefubhy.gitbooks.io/rules/content/).
## Executing the automated tests
This module comes with PHPUnit and Simpletest tests. You need a working Drupal 8
installation and a checkout of the Rules module in the modules folder.
#### PHPUnit
cd /path/to/drupal-8/core
./vendor/bin/phpunit ../modules/rules
#### Simpletest
php ./core/scripts/run-tests.sh --verbose --color "rules"
Example for executing one single test file during development:
php ./core/scripts/run-tests.sh --verbose --color --class "Drupal\rules\Tests\RulesEngineTest"
You can also execute the test cases from the web interface at
``/admin/config/development/testing``.
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\RulesExpression\ReactionRule.
*/
namespace Drupal\rules\Plugin\RulesExpression;
use Drupal\rules\Engine\ExpressionPluginManager;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\rules\Engine\RulesEventManager;
/**
* Provides a reaction rule that can be configured with an event context.
*
* @RulesExpression(
* id = "rules_reaction_rule",
* label = @Translation("A reaction rule triggering on events")
* )
*/
class ReactionRule extends Rule {
/**
* Constructs a new class instance.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
* @param string $plugin_id
* The plugin_id for the plugin instance.
* @param array $plugin_definition
* The plugin implementation definition.
* @param \Drupal\rules\Engine\ExpressionPluginManager $expression_manager
* The rules expression plugin manager.
* @param \Drupal\rules\Engine\RulesEventManager $event_manager
* The Rules event manager.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, ExpressionPluginManager $expression_manager, RulesEventManager $event_manager) {
// @todo Reaction rules should also work with multiple events.
if (isset($configuration['event'])) {
$event_definition = $event_manager->getDefinition($configuration['event']);
if (!empty($event_definition['context'])) {
$plugin_definition['context'] = $event_definition['context'];
}
}
parent::__construct($configuration, $plugin_id, $plugin_definition, $expression_manager);
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(
$configuration,
$plugin_id,
$plugin_definition,
$container->get('plugin.manager.rules_expression'),
$container->get('plugin.manager.rules_event')
);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Engine\ExpressionInterface.
*/
namespace Drupal\rules\Engine;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\ContextAwarePluginInterface;
use Drupal\Core\Executable\ExecutableInterface;
use Drupal\rules\Context\ContextProviderInterface;
/**
* Defines the interface for Rules expressions.
*
* @see \Drupal\rules\Plugin\RulesExpressionPluginManager
*/
interface ExpressionInterface extends ExecutableInterface, ContextAwarePluginInterface, ContextProviderInterface, ConfigurablePluginInterface {
/**
* Execute the expression with a given Rules state.
*
* @param \Drupal\rules\Engine\RulesStateInterface $state
* The state with all the execution variables in it.
*
* @return null|bool
* The expression may return a boolean value after execution, this is used
* by conditions that return their evaluation result.
*
* @throws \Drupal\rules\Exception\RulesEvaluationException
* In case the Rules expression triggers errors during execution.
*/
public function executeWithState(RulesStateInterface $state);
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\RulesAction\SendAccountEmail.
*/
namespace Drupal\rules\Plugin\RulesAction;
use Drupal\rules\Core\RulesActionBase;
/**
* Provides a 'Send account e-mail' action.
*
* @RulesAction(
* id = "rules_send_account_email",
* label = @Translation("Send account e-mail"),
* category = @Translation("User"),
* context = {
* "user" = @ContextDefinition("entity:user",
* label = @Translation("User"),
* description = @Translation("The user to whom we send the e-mail.")
* ),
* "email_type" = @ContextDefinition("string",
* label = @Translation("E-mail type"),
* description = @Translation("The type of the e-mail to send."),
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7.
*/
class SendAccountEmail extends RulesActionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('Send account e-mail');
}
/**
* {@inheritdoc}
*/
public function execute() {
$account = $this->getContextValue('user');
$mail_type = $this->getContextValue('email_type');
_user_mail_notify($mail_type, $account);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase.
*/
namespace Drupal\Tests\rules\Integration;
/**
* Base class for Rules integration tests with entities.
*
* This base class makes sure the base-entity system is available and its data
* types are registered. It enables entity_test module, such that some test
* entity types are available.
*/
abstract class RulesEntityIntegrationTestBase extends RulesIntegrationTestBase {
/**
* The language manager mock.
*
* @var \Drupal\Core\Language\LanguageManagerInterface
*/
protected $languageManager;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setup();
$this->enabledModules['entity_test'] = TRUE;
require_once $this->root . '/core/includes/entity.inc';
$this->namespaces['Drupal\\Core\\Entity'] = $this->root . '/core/lib/Drupal/Core/Entity';
$this->namespaces['Drupal\\entity_test'] = $this->root . '/core/modules/system/tests/modules/entity_test/src';
$language = $this->getMock('Drupal\Core\Language\LanguageInterface');
$language->expects($this->any())
->method('getId')
->willReturn('en');
$this->languageManager = $this->getMock('Drupal\Core\Language\LanguageManagerInterface');
$this->languageManager->expects($this->any())
->method('getCurrentLanguage')
->willReturn($language);
$this->languageManager->expects($this->any())
->method('getLanguages')
->willReturn([$language]);
$this->entityAccess = $this->getMock('Drupal\Core\Entity\EntityAccessControlHandlerInterface');
$this->entityManager = $this->getMockBuilder('Drupal\Core\Entity\EntityManager')
->setMethods(['getAccessControlHandler', 'getBaseFieldDefinitions', 'getBundleInfo'])
->setConstructorArgs([
$this->namespaces,
$this->moduleHandler,
$this->cacheBackend,
$this->languageManager,
$this->getStringTranslationStub(),
$this->getClassResolverStub(),
$this->typedDataManager,
$this->getMock('Drupal\Core\KeyValueStore\KeyValueFactoryInterface'),
$this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface')
])
->getMock();
$this->entityManager->expects($this->any())
->method('getAccessControlHandler')
->with($this->anything())
->will($this->returnValue($this->entityAccess));
// The base field definitions for entity_test aren't used, and would
// require additional mocking.
$this->entityManager->expects($this->any())
->method('getBaseFieldDefinitions')
->willReturn([]);
// Return some dummy bundle information for now, so that the entity manager
// does not call out to the config entity system to get bundle information.
$this->entityManager->expects($this->any())
->method('getBundleInfo')
->with($this->anything())
->willReturn(['test' => ['label' => 'Test']]);
$this->container->set('entity.manager', $this->entityManager);
$this->moduleHandler->expects($this->any())
->method('getImplementations')
->with('entity_type_build')
->willReturn([]);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Action\UserBlockTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\UserBlock
* @group rules_actions
*/
class UserBlockTest extends RulesEntityIntegrationTestBase {
/**
* Constant used for authenticated test when mocking a user.
*/
const AUTHENTICATED = TRUE;
/**
* Constant used for authenticated test when mocking a user.
*/
const ANONYMOUS = FALSE;
/**
* Constant used for active test when mocking a user.
*/
const ACTIVE = TRUE;
/**
* Constant used for active test when mocking a user.
*/
const BLOCKED = FALSE;
/**
* The action to be tested.
*
* @var \Drupal\rules\Engine\RulesActionInterface
*/
protected $action;
/**
* The mocked session manager.
*
* @var \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\Session\SessionManagerInterface
*/
protected $sessionManager;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->enableModule('user');
$this->sessionManager = $this->getMock('Drupal\Core\Session\SessionManagerInterface');
$this->container->set('session_manager', $this->sessionManager);
$this->action = $this->actionManager->createInstance('rules_user_block');
}
/**
* Test the summary method.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Block a user', $this->action->summary());
}
/**
* Test execute() method for active and authenticated users.
*
* @covers ::execute
*/
public function testBlockUserWithValidUser() {
$user = $this->getUserMock(self::ACTIVE, self::AUTHENTICATED);
$user->expects($this->once())
->method('block');
$user->expects($this->once())
->method('id')
->willReturn('123');
$this->sessionManager->expects($this->once())
->method('delete')
->with('123');
$this->action->setContextValue('user', $user);
$this->action->execute();
$this->assertEquals($this->action->autoSaveContext(), ['user'], 'Action returns the user context name for auto saving.');
}
/**
* Test execute() method for active and anonymous users.
*
* @covers ::execute
*/
public function testBlockUserWithActiveAnonymousUser() {
$user = $this->getUserMock(self::ACTIVE, self::ANONYMOUS);
$user->expects($this->never())
->method('block');
$this->sessionManager->expects($this->never())
->method('delete');
$this->action->setContextValue('user', $user);
$this->action->execute();
$this->assertEquals($this->action->autoSaveContext(), [], 'Action returns nothing for auto saving since the user has not been altered.');
}
/**
* Test execute() method for blocked and authenticated users.
*
* @covers ::execute
*/
public function testBlockUserWithBlockedAuthenticatedUser() {
$user = $this->getUserMock(self::BLOCKED, self::AUTHENTICATED);
$user->expects($this->never())
->method('block');
$this->sessionManager->expects($this->never())
->method('delete');
$this->action->setContextValue('user', $user);
$this->action->execute();
$this->assertEquals($this->action->autoSaveContext(), [], 'Action returns nothing for auto saving since the user has not been altered.');
}
/**
* Test execute() method for blocked and anonymous users.
*
* @covers ::execute
*/
public function testBlockUserWithBlockedAnonymousUser() {
$user = $this->getUserMock(self::BLOCKED, self::ANONYMOUS);
$user->expects($this->never())
->method('block');
$this->sessionManager->expects($this->never())
->method('delete');
$this->action->setContextValue('user', $user);
$this->action->execute();
$this->assertEquals($this->action->autoSaveContext(), [], 'Action returns nothing for auto saving since the user has not been altered.');
}
/**
* Creates a mock user.
*
* @param bool $active
* Is user activated.
* @param bool $authenticated
* Is user authenticated.
*
* @return \PHPUnit_Framework_MockObject_MockObject|\Drupal\user\UserInterface
* The mocked user object.
*/
protected function getUserMock($active, $authenticated) {
$user = $this->getMock('Drupal\user\UserInterface');
$user->expects($this->any())
->method('isActive')
->willReturn($active);
$user->expects($this->any())
->method('isAuthenticated')
->willReturn($authenticated);
return $user;
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\Condition\EntityIsOfBundle.
*/
namespace Drupal\rules\Plugin\Condition;
use Drupal\rules\Core\RulesConditionBase;
/**
* Provides an 'Entity is of bundle' condition.
*
* @Condition(
* id = "rules_entity_is_of_bundle",
* label = @Translation("Entity is of bundle"),
* category = @Translation("Entity"),
* context = {
* "entity" = @ContextDefinition("entity",
* label = @Translation("Entity"),
* description = @Translation("Specifies the entity for which to evaluate the condition.")
* ),
* "type" = @ContextDefinition("string",
* label = @Translation("Type"),
* description = @Translation("The type of the evaluated entity.")
* ),
* "bundle" = @ContextDefinition("string",
* label = @Translation("Bundle"),
* description = @Translation("The bundle of the evaluated entity.")
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7?
*/
class EntityIsOfBundle extends RulesConditionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('Entity is of bundle');
}
/**
* {@inheritdoc}
*/
public function evaluate() {
$provided_entity = $this->getContextValue('entity');
$specified_type = $this->getContextValue('type');
$specified_bundle = $this->getContextValue('bundle');
$entity_type = $provided_entity->getEntityTypeId();
$entity_bundle = $provided_entity->bundle();
// Check to see whether the entity's bundle and type match the specified
// values.
return $entity_bundle == $specified_bundle && $entity_type == $specified_type;
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Context\ContextDefinition.
*/
namespace Drupal\rules\Context;
use \Drupal\Core\Plugin\Context\ContextDefinition as ContextDefinitionCore;
/**
* Extends the core context definition class with useful methods.
*
* @todo: This class is not used when context definitions are created from
* annotations. Make it so.
*/
class ContextDefinition extends ContextDefinitionCore {
/**
* The mapping of config export keys to internal properties.
*
* @var array
*/
protected static $nameMap = [
'type' => 'dataType',
'label' => 'label',
'description' => 'description',
'multiple' => 'isMultiple',
'required' => 'isRequired',
'default_value' => 'defaultValue',
'constraints' => 'constraints',
];
/**
* Exports the definition as an array.
*
* @return array
* An array with values for all definition keys.
*/
public function toArray() {
$values = [];
$defaults = get_class_vars(__CLASS__);
foreach (static::$nameMap as $key => $property_name) {
// Only export values for non-default properties.
if ($this->$property_name !== $defaults[$property_name]) {
$values[$key] = $this->$property_name;
}
}
return $values;
}
/**
* Creates a definition object from an exported array of values.
*
* @param array $values
* The array of values, as returned by toArray().
*
* @return static
* The created definition.
*/
public static function createFromArray($values) {
$definition = static::create($values['type']);
foreach (array_intersect_key(static::$nameMap, $values) as $key => $name) {
$definition->$name = $values[$key];
}
return $definition;
}
}<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Unit\RulesConditionTest.
*/
namespace Drupal\Tests\rules\Unit;
use Drupal\rules\Context\ContextConfig;
use Drupal\rules\Plugin\RulesExpression\RulesCondition;
use Drupal\Tests\UnitTestCase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesExpression\RulesCondition
* @group rules
*/
class RulesConditionTest extends UnitTestCase {
/**
* The mocked condition manager.
*
* @var \Drupal\Core\Condition\ConditionManager
*/
protected $conditionManager;
/**
* The mocked data processor manager.
*
* @var \Drupal\rules\Context\DataProcessorManager
*/
protected $processorManager;
/**
* The condition object being tested.
*
* @var \Drupal\rules\Plugin\RulesExpression\RulesCondition
*/
protected $conditionExpression;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
// Create a test condition plugin that always evaluates to TRUE.
$this->trueCondition = $this->getMock('Drupal\rules\Core\RulesConditionInterface');
$this->trueCondition->expects($this->any())
->method('execute')
->will($this->returnValue(TRUE));
$this->trueCondition->expects($this->any())
->method('evaluate')
->will($this->returnValue(TRUE));
$this->conditionManager = $this->getMockBuilder('Drupal\Core\Condition\ConditionManager')
->disableOriginalConstructor()
->getMock();
$this->processorManager = $this->getMockBuilder('Drupal\rules\Context\DataProcessorManager')
->disableOriginalConstructor()
->getMock();
$this->conditionExpression = new RulesCondition(['condition_id' => 'rules_or'], '', [], $this->conditionManager, $this->processorManager);
}
/**
* Tests that context definitions are retrieved form the plugin.
*/
public function testContextDefinitions() {
$context_definition = $this->getMock('Drupal\Core\Plugin\Context\ContextDefinitionInterface');
$this->trueCondition->expects($this->once())
->method('getContextDefinitions')
->will($this->returnValue(['test' => $context_definition]));
$this->conditionManager->expects($this->once())
->method('createInstance')
->will($this->returnValue($this->trueCondition));
$this->assertSame($this->conditionExpression->getContextDefinitions(), ['test' => $context_definition]);
}
/**
* Tests that context values get data processed with processor mappings.
*/
public function testDataProcessor() {
$condition = new RulesCondition([
'condition_id' => 'rules_or',
] + ContextConfig::create()
// We don't care about the data processor plugin name and
// configuration since we will use a mock anyway.
->process('test', 'foo', [])
->toArray(),
'', [], $this->conditionManager, $this->processorManager);
// Build some mocked context and definitions for our mock condition.
$context = $this->getMock('Drupal\Core\Plugin\Context\ContextInterface');
$condition->setContext('test', $context);
$this->trueCondition->expects($this->exactly(2))
->method('getContextDefinitions')
->will($this->returnValue(['test' => $this->getMock('Drupal\Core\Plugin\Context\ContextDefinitionInterface')]));
$this->trueCondition->expects($this->once())
->method('getProvidedContextDefinitions')
->will($this->returnValue([]));
// Mock some original old value that will be replaced by the data processor.
$this->trueCondition->expects($this->once())
->method('getContextValue')
->with('test')
->will($this->returnValue('old_value'));
// The outcome of the data processor needs to get set on the condition.
$this->trueCondition->expects($this->once())
->method('setContextValue')
->with('test', 'new_value');
$this->conditionManager->expects($this->exactly(2))
->method('createInstance')
->will($this->returnValue($this->trueCondition));
$data_processor = $this->getMock('Drupal\rules\Context\DataProcessorInterface');
$data_processor->expects($this->once())
->method('process')
->with('old_value')
->will($this->returnValue('new_value'));
$this->processorManager->expects($this->once())
->method('createInstance')
->will($this->returnValue($data_processor));
$this->assertTrue($condition->execute());
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Action\UserUnblockTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\UserUnblock
* @group rules_actions
*/
class UserUnblockTest extends RulesEntityIntegrationTestBase {
/**
* Constant used for authenticated test when mocking a user.
*/
const AUTHENTICATED = TRUE;
/**
* Constant used for authenticated test when mocking a user.
*/
const ANONYMOUS = FALSE;
/**
* Constant used for active test when mocking a user.
*/
const ACTIVE = TRUE;
/**
* Constant used for active test when mocking a user.
*/
const BLOCKED = FALSE;
/**
* The action to be tested.
*
* @var \Drupal\rules\Engine\RulesActionInterface
*/
protected $action;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->enableModule('user');
$this->action = $this->actionManager->createInstance('rules_user_unblock');
}
/**
* Test the summary method.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Unblock a user', $this->action->summary());
}
/**
* Test execute() method for users with different status.
* @dataProvider userProvider
* @covers ::execute
*/
public function testUnblockUser($active, $authenticated, $expects, $context_name) {
// Set-up a mock user.
$account = $this->getMock('Drupal\user\UserInterface');
// Mock isBlocked.
$account->expects($this->any())
->method('isBlocked')
->willReturn(!$active);
// Mock isAuthenticated.
$account->expects($this->any())
->method('isAuthenticated')
->willReturn($authenticated);
// Mock activate.
$account->expects($this->{$expects}())
->method('activate');
// We do noe expect call of the 'save' method because user should be
// auto-saved later.
$account->expects($this->never())
->method('save');
// Test unblocking the user.
$this->action
->setContextValue('user', $account)
->execute();
$this->assertEquals($this->action->autoSaveContext(), $context_name, 'Action returns correct context name for auto saving.');
}
/**
* Data provider for ::testUnblockUser.
*/
public function userProvider() {
return [
// Test blocked authenticated user.
[self::BLOCKED, self::AUTHENTICATED, 'once', ['user']],
// Test active anonymous user.
[self::ACTIVE, self::ANONYMOUS, 'never', []],
// Test active authenticated user.
[self::ACTIVE, self::AUTHENTICATED, 'never', []],
// Test blocked anonymous user.
[self::BLOCKED, self::ANONYMOUS, 'never', []],
];
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Condition\EntityIsNewTest.
*/
namespace Drupal\Tests\rules\Integration\Condition;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\Condition\EntityIsNew
* @group rules_conditions
*/
class EntityIsNewTest extends RulesEntityIntegrationTestBase {
/**
* The condition to be tested.
*
* @var \Drupal\rules\Core\RulesConditionInterface
*/
protected $condition;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->condition = $this->conditionManager->createInstance('rules_entity_is_new');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Entity is new', $this->condition->summary());
}
/**
* Tests evaluating the condition.
*
* @covers ::evaluate
*/
public function testConditionEvaluation() {
$entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity->expects($this->once())
->method('isNew')
->will($this->returnValue(TRUE));
// Add the test node to our context as the evaluated entity.
$this->condition->setContextValue('entity', $entity);
$this->assertTrue($this->condition->evaluate());
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Unit\LoggerChannelTest.
*/
namespace Drupal\Tests\rules\Unit;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\rules\Logger\RulesLoggerChannel;
use Drupal\Tests\UnitTestCase;
use Psr\Log\LogLevel;
/**
* @coversDefaultClass \Drupal\rules\Logger\RulesLoggerChannel
* @group Logger
*/
class RulesLoggerChannelTest extends UnitTestCase {
/**
* Tests LoggerChannel::log().
*
* @param string $psr3_message_level
* Expected PSR3 log level.
* @param int $rfc_message_level
* Expected RFC 5424 log level.
* @param int $debug_log
* Is logging enabled.
* @param string $psr3_log_error_level
* Allowed PSR3 log level.
* @param int $expect_log
* Amount of logs to be created
* @param string $message
* Log message.
*
* @dataProvider providerTestLog
*
* @covers ::log
*/
public function testLog($psr3_message_level, $rfc_message_level, $debug_log, $psr3_log_error_level, $expect_log, $message) {
$config = $this->getConfigFactoryStub([
'rules.settings' => [
'debug_log' => $debug_log,
'log_errors' => $psr3_log_error_level,
],
]);
$channel = new RulesLoggerChannel($config);
$logger = $this->getMock('Psr\Log\LoggerInterface');
$channel->addLogger($logger);
$logger->expects($this->exactly($expect_log))
->method('log')
->with($rfc_message_level, $message);
$channel->log($psr3_message_level, $message);
}
/**
* Data provider for self::testLog().
*/
public function providerTestLog() {
return [
[LogLevel::DEBUG, RfcLogLevel::DEBUG, 0, LogLevel::DEBUG, 0, 'apple'],
[LogLevel::CRITICAL, RfcLogLevel::CRITICAL, 1, LogLevel::DEBUG, 1, 'banana'],
[LogLevel::CRITICAL, RfcLogLevel::CRITICAL, 1, LogLevel::DEBUG, 1, 'orange'],
[LogLevel::INFO, RfcLogLevel::INFO, 1, LogLevel::CRITICAL, 0, 'cucumber'],
];
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Unit\ContextHandlerTraitTest.
*/
namespace Drupal\Tests\rules\Unit;
/**
* @coversDefaultClass \Drupal\rules\Context\ContextHandlerTrait
* @group rules
*/
class ContextHandlerTraitTest extends RulesUnitTestBase {
/**
* The mocked condition manager.
*
* @var \Drupal\Core\Condition\ConditionManager
*/
protected $conditionManager;
/**
* The condition object being tested.
*
* @var \Drupal\rules\Plugin\RulesExpression\RulesCondition
*/
protected $condition;
/**
* Tests that a missing required context triggers an exception.
*
* @covers ::mapContext
* @expectedException \Drupal\rules\Exception\RulesEvaluationException
* @expectedExceptionMessage Required context test is missing for plugin testplugin.
*/
public function testMissingContext() {
// Set 'getContextValue' as mocked method.
$trait = $this->getMockForTrait('Drupal\rules\Context\ContextHandlerTrait', [], '', TRUE, TRUE, TRUE, ['getContextValue']);
$context_definition = $this->getMock('Drupal\Core\Plugin\Context\ContextDefinitionInterface');
// Make the context required in the definition.
$context_definition->expects($this->once())
->method('isRequired')
->will($this->returnValue(TRUE));
$plugin = $this->getMock('Drupal\Core\Plugin\ContextAwarePluginInterface');
$plugin->expects($this->once())
->method('getContextDefinitions')
->will($this->returnValue(['test' => $context_definition]));
$plugin->expects($this->once())
->method('getPluginId')
->will($this->returnValue('testplugin'));
$state = $this->getMock('Drupal\rules\Engine\RulesStateInterface');
// Make the 'mapContext' method visible.
$reflection = new \ReflectionClass($trait);
$method = $reflection->getMethod('mapContext');
$method->setAccessible(TRUE);
$method->invokeArgs($trait, [$plugin, $state]);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\rules\Plugin\Condition\EntityHasField.
*/
namespace Drupal\rules\Plugin\Condition;
use Drupal\rules\Core\RulesConditionBase;
/**
* Provides a 'Entity has field' condition.
*
* @Condition(
* id = "rules_entity_has_field",
* label = @Translation("Entity has field"),
* category = @Translation("Entity"),
* context = {
* "entity" = @ContextDefinition("entity",
* label = @Translation("Entity"),
* description = @Translation("Specifies the entity for which to evaluate the condition.")
* ),
* "field" = @ContextDefinition("string",
* label = @Translation("Field"),
* description = @Translation("The name of the field to check for.")
* )
* }
* )
*
* @todo: Add access callback information from Drupal 7.
*/
class EntityHasField extends RulesConditionBase {
/**
* {@inheritdoc}
*/
public function summary() {
return $this->t('Entity has field');
}
/**
* {@inheritdoc}
*/
public function evaluate() {
$entity = $this->getContextValue('entity');
$field = $this->getContextValue('field');
return $entity->hasField($field);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Action\EntityFetchByFieldTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\EntityFetchByField
* @group rules_actions
*/
class EntityFetchByFieldTest extends RulesEntityIntegrationTestBase {
/**
* The action to be tested.
*
* @var \Drupal\rules\Core\RulesActionInterface
*/
protected $action;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
// Prepare our own dummy entityManager as the entityManager in
// RulesEntityIntegrationTestBase does not mock the getStorage method.
$this->entityManager = $this->getMockBuilder('Drupal\Core\Entity\EntityManager')
->setMethods(['getBundleInfo', 'getStorage', 'getBaseFieldDefinitions'])
->setConstructorArgs([
$this->namespaces,
$this->moduleHandler,
$this->cacheBackend,
$this->languageManager,
$this->getStringTranslationStub(),
$this->getClassResolverStub(),
$this->typedDataManager,
$this->getMock('Drupal\Core\KeyValueStore\KeyValueFactoryInterface'),
$this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface')
])
->getMock();
// Return some dummy bundle information for now, so that the entity manager
// does not call out to the config entity system to get bundle information.
$this->entityManager->expects($this->any())
->method('getBundleInfo')
->with($this->anything())
->willReturn(['entity_test' => ['label' => 'Entity Test']]);
$this->container->set('entity.manager', $this->entityManager);
// The base field definitions for entity_test aren't used, and would
// require additional mocking.
$this->entityManager->expects($this->any())
->method('getBaseFieldDefinitions')
->willReturn([]);
$this->action = $this->actionManager->createInstance('rules_entity_fetch_by_field');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Fetch entities by field', $this->action->summary());
}
/**
* Tests action execution when no value for limit is provided.
*
* @covers ::execute
*/
public function testActionExecutionWithNoLimit() {
// Create variables for action context values.
$entity_type = 'entity_test';
$field_name = 'test_field';
$field_value = 'llama';
// Create an array of dummy entities.
$entities = [];
for ($i = 0; $i < 2; $i++) {
$entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entities[] = $entity;
}
// Create dummy entity storage object.
$entityStorage = $this->getMock('Drupal\Core\Entity\EntityStorageInterface');
$entityStorage->expects($this->once())
->method('loadByProperties')
->with([$field_name => $field_value])
->willReturn($entities);
$this->entityManager->expects($this->once())
->method('getStorage')
->with($entity_type)
->willReturn($entityStorage);
// Set context values for EntityFetchByField action and execute.
$this->action->setContextValue('type', $entity_type)
->setContextValue('field_name', $field_name)
->setContextValue('field_value', $field_value)
->execute();
// Test that executing action without a value for limit returns the dummy entities array.
$this->assertEquals($entities, $this->action->getProvidedContext('entity_fetched')->getContextValue('entity_fetched'));
}
/**
* Tests action execution when a value for limit is provided.
*
* @covers ::execute
*/
public function testActionExecutionWithLimit() {
$entity_type = 'entity_test';
$field_name = 'test_field';
$field_value = 'llama';
$limit = 2;
// Create an array of dummy entities.
$entities = array_map(function () {
return $this->getMock('Drupal\Core\Entity\EntityInterface');
}, range(1, $limit));
// Creates entity ids for new dummy array of entities.
$entity_ids = range(1, $limit);
// Create dummy query object.
$query = $this->getMock('Drupal\Core\Entity\Query\QueryInterface');
$query->expects($this->once())
->method('condition')
->with($field_name, $field_value, '=')
->willReturn($query);
$query->expects($this->once())
->method('range')
->with(0, $limit)
->willReturn($query);
$query->expects($this->once())
->method('execute')
->willReturn($entity_ids);
// Create dummy entity storage object.
$entityStorage = $this->getMock('Drupal\Core\Entity\EntityStorageInterface');
$entityStorage->expects($this->once())
->method('loadMultiple')
->with($entity_ids)
->willReturn($entities);
$entityStorage->expects($this->once())
->method('getQuery')
->willReturn($query);
$this->entityManager->expects($this->once())
->method('getStorage')
->with($entity_type)
->willReturn($entityStorage);
// Set context values for EntityFetchByField action and execute.
$this->action->setContextValue('type', $entity_type)
->setContextValue('field_name', $field_name)
->setContextValue('field_value', $field_value)
->setContextValue('limit', $limit)
->execute();
// Test that executing action with a value for limit returns the dummy entities array.
$this->assertEquals($entities, $this->action->getProvidedContext('entity_fetched')->getContextValue('entity_fetched'));
}
/**
* Tests that the context provided by the action execution has the correct entity type.
*
* @covers ::execute
*/
function testActionExecutionProvidedContextEntityType() {
// Create variables for action context values.
$entity_type = 'entity_test';
$field_name = 'test_field';
$field_value = 'llama';
// Create an array of dummy entities.
$entities = [];
for ($i = 0; $i < 2; $i++) {
$entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entities[] = $entity;
}
// Create dummy entity storage object.
$entityStorage = $this->getMock('Drupal\Core\Entity\EntityStorageInterface');
$entityStorage->expects($this->once())
->method('loadByProperties')
->with([$field_name => $field_value])
->willReturn($entities);
$this->entityManager->expects($this->once())
->method('getStorage')
->with($entity_type)
->willReturn($entityStorage);
// Set context values for EntityFetchByField action and execute.
$this->action->setContextValue('type', $entity_type)
->setContextValue('field_name', $field_name)
->setContextValue('field_value', $field_value)
->execute();
// @todo Test that the provided context has the correct entity type.
}
/**
* @covers ::refineContextDefinitions
*/
public function testRefiningContextDefinitions() {
$this->action->setContextValue('type', 'entity_test');
$this->action->refineContextdefinitions();
$this->assertEquals(
$this->action->getProvidedContextDefinition('entity_fetched')
->getDataType(), 'entity:entity_test'
);
}
}
<file_sep><?php
/**
* @file
* Contains \Drupal\Tests\rules\Integration\Action\EntityPathAliasCreateTest.
*/
namespace Drupal\Tests\rules\Integration\Action;
use Drupal\Tests\rules\Integration\RulesEntityIntegrationTestBase;
/**
* @coversDefaultClass \Drupal\rules\Plugin\RulesAction\EntityPathAliasCreate
* @group rules_actions
*/
class EntityPathAliasCreateTest extends RulesEntityIntegrationTestBase {
/**
* The action to be tested.
*
* @var \Drupal\rules\Core\RulesActionInterface
*/
protected $action;
/**
* The mocked alias storage service.
*
* @var \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\Path\AliasStorageInterface
*/
protected $aliasStorage;
/**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
// Prepare mocked AliasStorageInterface.
$this->aliasStorage = $this->getMockBuilder('Drupal\Core\Path\AliasStorageInterface')
->setMethods(['save'])
->getMockForAbstractClass();
$this->container->set('path.alias_storage', $this->aliasStorage);
// Instantiate the action we are testing.
$this->action = $this->actionManager->createInstance('rules_entity_path_alias_create:entity:entity_test');
}
/**
* Tests the summary.
*
* @covers ::summary
*/
public function testSummary() {
$this->assertEquals('Create entity_test path alias', $this->action->summary());
}
/**
* Tests the action execution with an unsaved entity.
*
* @covers ::execute
*/
public function testActionExecutionWithUnsavedEntity() {
// Test that the alias is only saved once.
$this->aliasStorage
->expects($this->once())
->method('save');
$entity = $this->getMockEntity();
$entity->expects($this->once())
->method('isNew')
->will($this->returnValue(TRUE));
// Test that new entities are saved first.
$entity->expects($this->once())
->method('save');
$this->action->setContextValue('entity', $entity)
->setContextValue('alias', 'about');
$this->action->execute();
}
/**
* Tests the action execution with a saved entity.
*
* @covers ::execute
*/
public function testActionExecutionWithSavedEntity() {
// Test that the alias is only saved once.
$this->aliasStorage
->expects($this->once())
->method('save');
$entity = $this->getMockEntity();
$entity->expects($this->once())
->method('isNew')
->will($this->returnValue(FALSE));
// Test that existing entities are not saved again.
$entity->expects($this->never())
->method('save');
$this->action->setContextValue('entity', $entity)
->setContextValue('alias', 'about');
$this->action->execute();
}
/**
* Creates a mock entity.
*
* @return \PHPUnit_Framework_MockObject_MockObject|\Drupal\Core\Entity\EntityInterface
* The mocked entity object.
*/
protected function getMockEntity() {
$language = $this->languageManager->getCurrentLanguage();
$entity = $this->getMock('Drupal\Core\Entity\EntityInterface');
$entity->expects($this->once())
->method('language')
->will($this->returnValue($language));
$url = $this->getMockBuilder('Drupal\Core\Url')
->disableOriginalConstructor()
->getMock();
$url->expects($this->once())
->method('getInternalPath')
->will($this->returnValue('test/1'));
$entity->expects($this->once())
->method('urlInfo')
->with('canonical')
->will($this->returnValue($url));
$this->aliasStorage->expects($this->once())
->method('save')
->with('test/1', 'about', 'en');
return $entity;
}
}
| 6af1dbe1b8f70b085dab57671c5df0cd305f7c84 | [
"Markdown",
"PHP"
] | 30 | PHP | bojanz/rules | 4bfc9b36056efe651832889963a374eea313aefa | cf0006e1bac2c66fe6c1a71a1685c2896046eee0 |
refs/heads/master | <file_sep>from setuptools import setup, find_packages
from orc import PACKAGE_NAME, VERSION
if __name__ == '__main__':
setup(
name=PACKAGE_NAME,
version=VERSION,
license='MIT',
packages=find_packages(),
install_requires=['tornado==3.1.1']
)
<file_sep>PACKAGE_NAME = __name__
VERSION = '0.1.0'
<file_sep>orc
===
virtualenv venv
source venv/bin/activate
python setup.py develop
python -m orc.main
<file_sep>import logging
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from pkg_resources import iter_entry_points
log = logging.getLogger(__name__)
define('port', type=int, default=5067, help='server port number')
define('debug', type=bool, default=True, help='debug mode')
class PluginHandler(tornado.web.RequestHandler):
def get(self):
self.write(
{'plugins': [
{'module_name': plugin.__dict__.get('module_name'),
'name': plugin.__dict__.get('name')}
for plugin in iter_entry_points(group='orc.plugin')]
})
if __name__ == '__main__':
options.parse_command_line()
app = tornado.web.Application([
(r'/api/plugins', PluginHandler),
],
debug=options.debug)
app.listen(options.port)
tornado.ioloop.IOLoop.instance().start()
| d02654c2d27498aa3b1ccea011b0c15b18d35449 | [
"Markdown",
"Python"
] | 4 | Python | eugeniy/orc | 9004016c61ffbd18398710859e89cb1a2661b64e | 3fe743d5959ed7672818d179fa31dfe1b26bcfbc |
refs/heads/master | <repo_name>AdriGeorge/Investiment.py<file_sep>/investment.py
""" This program calculates the 'possible' return
of an investment that has a fixed annual return """
# Method for calculating the return
# on an investiment with a recurring deposit
def investment_fund(investment, time, recurrence):
if recurrence == 1:
deposited = investment*time*12
total_for_one = investment + investment * annual_return/12
total = total_for_one
for month in range(1, time*12):
total += total*(annual_return/12) + total_for_one
effettive_earning = float(total-time*12*investment)
elif recurrence == 2:
deposited = investment*time*2
total_for_one = investment + investment * annual_return/2
total = total_for_one
for semester in range(1, time*2):
total += total*(annual_return/2) + total_for_one
effettive_earning = float(total-time*2*investment)
elif recurrence == 3:
deposited = investment*time
total_for_one = investment + investment* annual_return
total = total_for_one
for year in range(1,time):
total+=total*annual_return + total_for_one
effettive_earning = float(total-time*investment)
return f"Total: {int(total)}\n";\
f"Deposited: {int(deposited)}\n;"\
f"Earning: {int(effettive_earning)}\n"
# Method for calculating the return
# on an investiment with a tantum deposit
def tantum_fund(tantum, time):
total = tantum
for year in range(1,time):
total += total * annual_return
effettive_earning = float(total-tantum)
return f"Total: {int(total)}\n";\
f"Earning: {int(effettive_earning)}\n"
print("WELCOME!")
while True:
try:
annual_return = float(input("Annual return (%): "))
except ValueError:
print('Only number!')
break
annual_return /= 100
choice = input("Constant investment(1) or Tantum(2)?: ")
if choice == "1":
recurrence = int(input("How often do you want to deposit? Every month(1) Every 6 month(2) Every year(3): "))
if recurrence < 1 or recurrence > 3:
print("You can only select: 1 ,2 or 3! Restart!")
break
investment = float(input("How much (Euro)?: "))
time = int(input("How long (years)?: "))
money = investment_fund(investment, time, recurrence)
elif choice == "2":
tantum = int(input("How much (Euro)?"))
time = int(input("How long would you like to keep the money in this fund (years)?: "))
money = tantum_fund(tantum, time)
else:
print("You can only select: 1 or 2! Restart!")
break
print(money+"\n")
replace = input("New investment? (y/n): ")
if replace != "y":
break
<file_sep>/README.md
# JustForFun
investment.py is my first program!
| bb7b2428f998aadcbc6c2c61a79f140a90f79338 | [
"Markdown",
"Python"
] | 2 | Python | AdriGeorge/Investiment.py | e72cdee38723502ad094b3a4235c0011e90315e5 | 9ed48d189d553b44e20488cf4231a857927d589b |
refs/heads/master | <file_sep>package ro.ubb.dp1819.lab4.exercises.chain_of_responsibility;
import ro.ubb.dp1819.lab4.exercises.BaseEmployee;
import ro.ubb.dp1819.lab4.exercises.Employee;
import ro.ubb.dp1819.lab4.exercises.strategy.NotificationStrategy;
public class BaseHolidayApprover extends BaseEmployee implements HolidayApprover {
private BaseHolidayApprover nextHolidayApprover; // next in chain
private NotificationStrategy notificationStrategy;
public BaseHolidayApprover(final double paycheck) {
super(paycheck);
}
public void setNextHolidayApprover(final BaseHolidayApprover next) {
this.nextHolidayApprover = next;
}
public void setNotificationStrategy(final NotificationStrategy notificationStrategy) {
this.notificationStrategy = notificationStrategy;
}
public void notifyEmployee(final Employee employee, final String message) {
notificationStrategy.sendMessage(employee, message);
}
@Override
public boolean approveHolidayRequest() {
if (!currentBillableDay().isEmployeeWorking(this)) {
if (nextHolidayApprover == null) {
System.out.println("Disapproved by " + this);
return false;
}
return nextHolidayApprover.approveHolidayRequest();
}
System.out.println("Approved by " + this);
return true;
}
@Override
public HolidayApprover nextApprover() {
return nextHolidayApprover;
}
}
<file_sep>package ro.ubb.dp1819.lab1.exercises.entity;
import java.util.Objects;
public class Ingredient {
private double quantity;
private String unit;
private String name;
private String adjective;
private Ingredient(double quantity, String unit, String name, String adjective) {
this.quantity = quantity;
this.unit = unit;
this.name = name;
this.adjective = adjective;
}
public String getName() {
return name;
}
public static IngredientBuilder builder() {
return new IngredientBuilder();
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
Ingredient that = (Ingredient) o;
return Double.compare(that.quantity, quantity) == 0 &&
Objects.equals(unit, that.unit) &&
Objects.equals(name, that.name) &&
Objects.equals(adjective, that.adjective);
}
@Override
public int hashCode() {
return Objects.hash(quantity, unit, name, adjective);
}
@Override
public String toString() {
return "" + quantity + " " + unit + " " + name + " " + adjective;
}
public static class IngredientBuilder {
private double quantity;
private String unit;
private String name;
private String adjective;
private IngredientBuilder() {
}
public IngredientBuilder quantity(double quantity) {
this.quantity = quantity;
return this;
}
public IngredientBuilder unit(String unit) {
this.unit = unit;
return this;
}
public IngredientBuilder name(String name) {
this.name = name;
return this;
}
public IngredientBuilder adjective(String adjective) {
this.adjective = adjective;
return this;
}
public Ingredient build() {
return new Ingredient(quantity, unit, name, adjective);
}
}
}
<file_sep>package ro.ubb.dp1819.lab1.exercises.entity;
import java.util.Objects;
public class Cappuccino extends Coffee implements Drinkable {
private Ingredient milk;
private Cappuccino(Ingredient water, Ingredient coffeeBeans, Ingredient milk) {
super(water, coffeeBeans);
this.milk = milk;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
final Cappuccino that = (Cappuccino) o;
return Objects.equals(water, that.water) &&
Objects.equals(coffeeBeans, that.coffeeBeans) &&
Objects.equals(milk, that.milk);
}
@Override
public int hashCode() {
return Objects.hash(water, coffeeBeans, milk);
}
public static CappuccinoBuilder builder() {
return new CappuccinoBuilder();
}
public static class CappuccinoBuilder {
private Ingredient water;
private Ingredient coffeeBeans;
private Ingredient milk;
private CappuccinoBuilder() {}
public CappuccinoBuilder water(Ingredient water) {
this.water = water;
return this;
}
public CappuccinoBuilder coffeeBeans(Ingredient coffeeBeans) {
this.coffeeBeans = coffeeBeans;
return this;
}
public CappuccinoBuilder milk(Ingredient milk) {
this.milk = milk;
return this;
}
public Cappuccino build() {
return new Cappuccino(water, coffeeBeans, milk);
}
}
}
<file_sep>package ro.ubb.dp1819.lab1.exercises;
import ro.ubb.dp1819.lab1.exercises.entity.Coffee;
import ro.ubb.dp1819.lab1.exercises.entity.Ingredient;
import ro.ubb.dp1819.lab1.exercises.factory.CoffeeFactory;
import ro.ubb.dp1819.lab1.exercises.service.InterpretService;
import ro.ubb.dp1819.lab1.exercises.service.ReadService;
import java.util.List;
import static ro.ubb.dp1819.lab1.exercises.utils.Constants.PROJECT_DIRECTORY;
import static ro.ubb.dp1819.lab1.exercises.utils.Constants.SEPARATOR;
public class Main {
private static CoffeeFactory coffeeFactory = new CoffeeFactory();
private static String getFilesPath() {
return PROJECT_DIRECTORY + SEPARATOR + "src" + SEPARATOR + "main" + SEPARATOR + "java" + SEPARATOR + "ro"
+ SEPARATOR + "ubb" + SEPARATOR + "dp1819" + SEPARATOR + "lab1" + SEPARATOR + "exercises"
+ SEPARATOR + "files" + SEPARATOR;
}
public static void main(String[] args) {
final String filesPath = getFilesPath();
final List<String> americanoIngredientsStrings = ReadService.readFile(filesPath + "americano.txt");
final List<String> cappuccinoIngredientsStrings = ReadService.readFile(filesPath + "cappuccino.txt");
final List<String> espressoIngredientsStrings = ReadService.readFile(filesPath + "espresso.txt");
final List<String> longBlackIngredientsStrings = ReadService.readFile(filesPath + "long_black.txt");
final List<Ingredient> americanoIngredients = InterpretService.interpret(americanoIngredientsStrings);
final List<Ingredient> cappuccinoIngredients = InterpretService.interpret(cappuccinoIngredientsStrings);
final List<Ingredient> espressoIngredients = InterpretService.interpret(espressoIngredientsStrings);
final List<Ingredient> longBlackIngredients = InterpretService.interpret(longBlackIngredientsStrings);
final Coffee americano = coffeeFactory.brewCoffee(americanoIngredients);
final Coffee cappuccino = coffeeFactory.brewCoffee(cappuccinoIngredients);
final Coffee espresso = coffeeFactory.brewCoffee(espressoIngredients);
final Coffee longBlack = coffeeFactory.brewCoffee(longBlackIngredients);
System.out.println(americano.getClass().getTypeName());
System.out.println(cappuccino.getClass().getTypeName());
System.out.println(espresso.getClass().getTypeName());
System.out.println(longBlack.getClass().getTypeName());
}
}
<file_sep>package ro.ubb.dp1819.lab4.exercises;
import ro.ubb.dp1819.lab4.exercises.chain_of_responsibility.BaseHolidayApprover;
import ro.ubb.dp1819.lab4.exercises.state.Holiday;
import ro.ubb.dp1819.lab4.exercises.state.SickLeave;
import ro.ubb.dp1819.lab4.exercises.state.UnpaidLeave;
import ro.ubb.dp1819.lab4.exercises.strategy.EmailNotification;
import ro.ubb.dp1819.lab4.exercises.strategy.NotificationType;
import ro.ubb.dp1819.lab4.exercises.strategy.PushNotification;
import ro.ubb.dp1819.lab4.exercises.strategy.SmsNotification;
import java.util.Arrays;
import java.util.List;
import static ro.ubb.dp1819.lab4.exercises.utils.Constants.APPROVED;
import static ro.ubb.dp1819.lab4.exercises.utils.Constants.DISAPPROVED;
public class Company {
public static void main(String[] args) {
final BaseEmployee developer1 = new Developer();
final BaseEmployee developer2 = new Developer();
final BaseEmployee developer3 = new Developer();
developer1.setCurrentBillableDay(new Holiday());
developer2.setCurrentBillableDay(new UnpaidLeave());
developer1.setNotificationType(NotificationType.EMAIL);
developer2.setNotificationType(NotificationType.PUSH_NOTIFICATION);
developer3.setNotificationType(NotificationType.SMS);
System.out.println("Developer #1 paycheck" + developer1.getBillableDayPaycheck());
System.out.println("Developer #2 paycheck" + developer2.getBillableDayPaycheck());
final BaseHolidayApprover projectManager = new ProjectManager();
final BaseHolidayApprover teamLeader = new TeamLeader();
projectManager.setCurrentBillableDay(new SickLeave());
projectManager.setNextHolidayApprover(teamLeader);
final List<BaseEmployee> employees = Arrays.asList(developer1, developer2, developer3);
for (BaseEmployee employee : employees) {
switch (employee.notificationMechanism()) {
case EMAIL:
projectManager.setNotificationStrategy(new EmailNotification());
break;
case PUSH_NOTIFICATION:
projectManager.setNotificationStrategy(new PushNotification());
break;
case SMS:
projectManager.setNotificationStrategy(new SmsNotification());
break;
}
final String message = projectManager.approveHolidayRequest() ? APPROVED : DISAPPROVED;
projectManager.notifyEmployee(employee, message);
}
}
}
<file_sep>package ro.ubb.dp1819.lab1.exercises.service;
import ro.ubb.dp1819.lab1.exercises.entity.Ingredient;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class InterpretService {
public static List<Ingredient> interpret(final List<String> ingredientLines) {
final List<Ingredient> ingredients = new ArrayList<>();
for (String ingredientLine : ingredientLines) {
final List<String> words = Arrays.asList(ingredientLine.split(" "));
final int wordsCount = words.size();
if (wordsCount < 3 || wordsCount > 4) {
System.out.println("Ignoring invalid line: " + ingredientLine);
continue;
}
final double quantity = Double.parseDouble(words.get(0));
final String unit = words.get(1);
final String name = words.get(2);
final String adjective = (wordsCount == 4) ? words.get(3) : null;
final Ingredient ingredient = Ingredient.builder()
.quantity(quantity)
.unit(unit)
.name(name)
.adjective(adjective)
.build();
ingredients.add(ingredient);
}
return ingredients;
}
}
<file_sep>package ro.ubb.dp1819.lab1.exercises.entity;
public class LongBlack extends Coffee {
private LongBlack(Ingredient water, Ingredient coffeeBeans) {
super(water, coffeeBeans);
}
public static LongBlackBuilder builder() {
return new LongBlackBuilder();
}
public static class LongBlackBuilder {
private Ingredient water;
private Ingredient coffeeBeans;
private LongBlackBuilder() {
}
public LongBlackBuilder water(Ingredient water) {
this.water = water;
return this;
}
public LongBlackBuilder coffeeBeans(Ingredient coffeeBeans) {
this.coffeeBeans = coffeeBeans;
return this;
}
public LongBlack build() {
return new LongBlack(water, coffeeBeans);
}
}
}
<file_sep>package ro.ubb.dp1819.lab1.exercises.factory;
import ro.ubb.dp1819.lab1.exercises.entity.Coffee;
import ro.ubb.dp1819.lab1.exercises.entity.Ingredient;
import java.util.List;
public interface AbstractFactory {
Coffee brewCoffee(final List<Ingredient> ingredients);
}
<file_sep>package ro.ubb.dp1819.lab4.exercises.state;
import ro.ubb.dp1819.lab4.exercises.Employee;
public class UnpaidLeave implements BillableDay {
@Override
public boolean isEmployeeWorking(Employee employee) {
return false;
}
@Override
public boolean isEmployeeInOffice(Employee employee) {
return false;
}
@Override
public double getMultiplier() {
return 0;
}
}<file_sep>package ro.ubb.dp1819.lab4.exercises.state;
import ro.ubb.dp1819.lab4.exercises.Employee;
public class WorkingDay implements BillableDay {
@Override
public boolean isEmployeeWorking(Employee employee) {
return true;
}
@Override
public boolean isEmployeeInOffice(Employee employee) {
return true;
}
@Override
public double getMultiplier() {
return 1;
}
} | b22c826627c3d0f6ce09269b59fbe36f6f4ffb02 | [
"Java"
] | 10 | Java | danielmanciu/ubb.dp.1819 | f0883aaff5d9d539b1a9cfb8a37a09a6bb6c77a6 | b3b3622e6805435a5884f15a36b6a4b5095b60a8 |
refs/heads/main | <repo_name>dengzhiteng/uhotel-admin<file_sep>/js_sdk/validator/uni-product-add.js
// 表单校验规则由 schema2code 生成,不建议直接修改校验规则,而建议通过 schema2code 生成, 详情: https://uniapp.dcloud.net.cn/uniCloud/schema
const validator = {
"goods_name": {
"label": "商品名",
"rules": [
{
"required": true,
},
{
"format": "string"
},
],
},
"price": {
"label": "价格",
"rules": [
{
"required": true,
},
],
},
"discount": {
"label": "商品折扣"
},
}
export {
validator,
}
| cc54d32d0fd0f9f46a1f746433c45d73f7b2816d | [
"JavaScript"
] | 1 | JavaScript | dengzhiteng/uhotel-admin | 357327d880406f83572771fcce6215acb1864de7 | b14ca73483cf910c2e0b2e46bab1fbf04e235ea9 |
refs/heads/master | <file_sep><form id="{{id}}" role="form" name="respondForm" class="{{cssClass}}" action="{{action}}">
<div ng-show="showSuccess" class="alert alert-success">{{'Form submitted successfully' | i18next}}</div>
<div ng-show="showError" class="alert alert-danger">{{'There was an error submitting your form' | i18next}}</div>
<div ng-transclude></div>
<button type="button" class="btn btn-default"
ng-click="submitForm(temp)"
ng-disabled="respondForm.$invalid">
{{'Submit' | i18next}} <i ng-show="showLoading" class="fa fa-spinner fa-spin icon-spinner"></i>
</button>
</form><file_sep>//
// Copyright 2013 <NAME>
//
// 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.
(function(){
"use strict"
var LevelInfoTriggerStates = [
{
'name':'inactive',
'initial':true,
'events' :
{
'layer1':'layer1',
'findlayer1':'findlayer1',
'layer2':'layer2',
'findlayer2':'findlayer2',
'layer3':'layer3',
'findlayer3':'findlayer3',
'layer4':'layer4',
'findlayer4':'findlayer4',
'blank':'blank'
}
},
{
'name': 'layer1',
'events' :
{
'layer1':'layer1'
}
},
{
'name': 'layer2',
'events' :
{
'layer2':'layer2'
}
},
{
'name': 'layer3',
'events' :
{
'layer3':'layer3'
}
},
{
'name': 'layer4',
'events' :
{
'layer4':'layer4'
}
},
{
'name': 'findlayer1',
'events':
{
'findlayer1':'findlayer1'
}
},
{
'name': 'findlayer2',
'events':
{
'findlayer2':'findlayer2'
}
},
{
'name': 'findlayer3',
'events':
{
'findlayer3':'findlayer3'
}
},
{
'name': 'findlayer4',
'events':
{
'findlayer4':'findlayer4'
}
},
{
'name': 'blank',
'events':
{
'blank':'blank'
}
}
];
MyGame.LevelInfoTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
this.layertext = "";
this.timer;
this.fsm = new Nadion.StateMachine( LevelInfoTriggerStates, this );
if( props['trigger_on_touch'] === undefined )
this.trigger_on_touch = true;
};
MyGame.LevelInfoTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.LevelInfoTrigger, Nadion.Trigger );
MyGame.LevelInfoTrigger.prototype.constructor = MyGame.LevelInfoTrigger;
MyGame.LevelInfoTrigger.prototype.on = function()
{
this.fsm.consumeEvent(this.props['on']);
this.renderInfo();
};
MyGame.LevelInfoTrigger.prototype.layer1 = function()
{
this.layertext = "Aktuelle Ebene: <b>Fortsetzung</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.layer2 = function()
{
this.layertext = "Aktuelle Ebene: <b>Prägnanz</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.layer3 = function()
{
this.layertext = "Aktuelle Ebene: <b>Geschlossenheit</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.layer4 = function()
{
this.layertext = "Aktuelle Ebene: <b>Ähnlichkeit</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.findlayer1 = function()
{
this.layertext = "Aktuelle Ebene: <b> Fortsetzung </b>";
this.renderText( "Jemand hat eine Notiz auf die Steinwand gekritzelt: <b> Ebene - Fortsetzung </b> <br> Elemente, die sich auf einer durchgehenden Linie oder Kurve befinden, werden vom visuellen System als Einheit wahrgenommen oder als zusammengehörig aufgefasst. Darunter hängt ein weiterer Zettel. Einer der Forscher hat alle Ebenen auf eine Karte geschrieben. <br> Das könnte noch nützlich sein. <br><img src='assets/img/map.png'><br> Drücke <span class='button'> M </span> um dir die Karte nochmal anzusehen. ");
};
MyGame.LevelInfoTrigger.prototype.findlayer2 = function()
{
this.layertext = "Aktuelle Ebene: <b> Prägnanz </b>";
this.renderText( "Wieder eine Notiz <br> <b>Ebene - Prägnanz </b> <br> Elemente, die sich von allen anderen unterscheiden, werden bevorzugt wahrgenommen.<br>");
};
MyGame.LevelInfoTrigger.prototype.findlayer3 = function()
{
this.layertext = "Aktuelle Ebene: <b> Geschlossenheit </b>";
this.renderText( "Auf der Steinwand sind zahlreiche Runen eingeritzt<br> Daneben steht eine Notiz in westlicher Sprache <b> Ebene - Geschlossenheit </b> <br>Die Tendenz, in geometrischen Gebilden diejenigen Strukturen als Figur wahrzunehmen, die eher geschlossen als offen wirken.<br>");
};
MyGame.LevelInfoTrigger.prototype.findlayer4 = function()
{
this.layertext = "Aktuelle Ebene: <b> Ähnlichkeit </b>";
this.renderText( "Auf der Steinwand wurde etwas geschrieben: <b>Ebene - Ähnlichkeit </b> <br>Elemente, die in Farbe, Form oder Größe ähnlich sind, werden zu einem Ganzen verbunden.<br>");
};
MyGame.LevelInfoTrigger.prototype.blank = function()
{
this.layertext = "Aktuelle Ebene: <b> ? </b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.renderInfo = function()
{
$('#info').html(this.layertext);
}
MyGame.LevelInfoTrigger.prototype.renderText = function(text){
var game_state = this.game.state.states[this.game.state.current];
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
$('#text').html(text + (' <br><br> (weiter mit <span class="button"> Enter </span>)'));
$('#text').slideDown(500);
}
})(); <file_sep><?php
class Questionnaire extends Eloquent{
protected $fillable = array('name');
public function question() {
return $this -> hasMany('Question');
}
public function questionnaires() {
return $this->belongsToMany('Players', 'player_questionnaires', 'player_id', 'questionnaire_id');
}
} <file_sep>//
// Copyright 2013 <NAME>
//
// 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.
(function()
{
"use strict";
var player_states = [
{
'name' : 'idle',
'initial' : true,
'events' :
{
'left' : 'walking',
'right' : 'walking',
'jump' : 'jumping',
'hit' : 'stunned',
'startchallenge' : 'challenge',
'startclimbing' : 'climbing',
'startstop' : 'stop',
'openBackpack' : 'openBackpack',
'showMap' : 'showMap',
}
},
{
'name' : 'walking',
'events' :
{
'stop' : 'idle',
'jump' : 'jumping',
'fall' : 'falling',
'hit' : 'stunned',
'talk' : 'talking',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
}
},
{
'name' : 'jumping',
'events' :
{
'land' : 'recovering',
'hit' : 'stunned',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
'stop' : 'idle',
'goLeft' : 'walking',
'goRight' : 'walking',
'fall' : 'falling'
}
},
{
'name' : 'walljump',
'events' :
{
'land' : 'recovering',
'jump' : 'jumping',
'hit' : 'stunned',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
'goLeft' : 'walking',
'goRight' : 'walking',
'stop' : 'idle',
'fall' : 'falling'
}
},
{
'name' : 'recovering',
'events' :
{
'recover' : 'idle'
}
},
{
'name' : 'falling',
'events' :
{
'land' : 'idle',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
'stop' : 'idle',
'hit' : 'stunned'
}
},
{
'name' : 'stunned',
'events' :
{
'recover' : 'idle',
'hit' : 'stunned'
}
},
{
'name' : 'challenge',
'events':
{
'end':'idle',
'startstop':'stop',
}
},
{
'name' : 'openBackpack',
'events':
{
'closeBackpack':'stop',
}
},
{
'name' : 'showMap',
'events':
{
'closeMap':'stop',
}
},
{
'name' : 'washit',
'events':
{
'end':'idle',
}
},
{
'name' : 'stop',
'events':
{
'end':'idle',
}
}
];
MyGame.Player = function ( game, name, x, y, width, height, props )
{
Nadion.BaseSprite.call( this, game, 'player', name, x, y, width, height, props );
// fields
var game_state = this.game.state.states[this.game.state.current];
this.facing = Phaser.RIGHT;
this.time = game.time;
this.fsm = new Nadion.StateMachine( player_states, this );
this.jump_increment = 600;
this.walk_velocity = 110;
this.live = 10;
$('#live').html('Energie: ' + this.live);
this.recovery_timeout = 500;
this.climb_timeout = 50;
this.stunned_timeout = 500;
this.challengeTimeout = 200;
this.challengeTimer = 200;
this.noise = this.game.add.audio( 'step', 1, true );
this.jumpnoise = this.game.add.audio( 'jump', 1, true );
this.slidenoise = this.game.add.audio( 'slide', 1, true );
this.is_player_sprite = true;
this.timer = 0;
this.soundtimer = 0;
this.backpack;
this.challengetype;
// Phaser.Sprite settings
this.body.collideWorldBounds = true;
this.body.width = 32;
this.body.gravity.y = 900;
this.body.maxVelocity.y = this.jump_increment;
this.animations.add( 'jump-left', [32], 1, true );
this.animations.add( 'jump-right', [32], 1, true );
this.animations.add( 'left', [39,38,37,36,35,34], 8, true );
this.animations.add( 'right', [39,38,37,36,35,34], 8, true );
this.animations.add( 'run', [31,30,29,28,27,26,25,24,23], 14, true );
this.body.drag = 600;
$('#text').slideUp(1500);
game.add.existing( this );
};
MyGame.Player.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.Player, Nadion.BaseSprite );
MyGame.Player.prototype.constructor = MyGame.Player;
// prototype (methods)
MyGame.Player.prototype.reset = function()
{
this.x = this.initial_x;
this.y = this.initial_y;
this.body.velocity.x = 0;
this.body.velocity.y = 0;
this.facing = Phaser.RIGHT;
this.stunned_timer = 0;
this.body.velocity.x = 0;
this.body.velocity.y = 0;
this.fsm.reset();
};
// Collide with Tiles
MyGame.Player.prototype.spriteCollisionCallback = function( p, s )
{
if( s instanceof MyGame.Enemy || s instanceof MyGame.Walker || s instanceof MyGame.Fire)
{
this.hit();
}
if( s instanceof MyGame.Shaman )
{
s.fsm.consumeEvent(s.state);
this.renderText(s.talk);
this.fsm.consumeEvent('startstop');
s.destroy();
}
if( s instanceof MyGame.Pickup ){
this.backpack = s;
MyGame.counter = 0;
MyGame.timeout = 120;
s.destroy();
this.fsm.consumeEvent('stop');
this.fsm.consumeEvent('openBackpack');
/*this.fsm.consumeEvent('startstop');*/
}
if( s instanceof MyGame.Challenge ){
if(this.backpack === undefined)
{
if(this.facing === 1)
{
this.body.velocity.x = 200;
}else{
this.body.velocity.x = -200;
}
this.renderText('Suche das Bild das dir den Weg weist <br> (weiter mit <span class="button"> Enter </span)');
this.loseLevel();
}else if(this.backpack.pictureType !== s.challengetype)
{
if(this.facing === 1)
{
this.body.velocity.x = 200;
}else{
this.body.velocity.x = -200;
}
this.renderText('Dein Bild erfüllt nicht das Gesetz:' +s.challengetype + ' <br> <br> <img src="assets/img/Gestaltgesetze/'+this.backpack.picture+'.png" style=""> <br> du bist leider auf dem falschen Weg! <br> Suche ein Tor auf einer anderen Ebene <br>(weiter mit <span class="button"> Enter </span)');
MyGame.mistakes = MyGame.mistakes +1;
this.fsm.consumeEvent('startchallenge');
}
else{
this.renderText('Du bist auf dem Richtigen Weg. Dein Bild erfüllt das Gesetz <b> ' + s.challengetype + ' </b> <br> <img src="assets/img/Gestaltgesetze/'+this.backpack.picture+'.png" style=""> <br> (weiter mit <span class="button"> Enter </span)');
s.destroy();
this.backpack = undefined;
this.fsm.consumeEvent('startstop');
MyGame.taskTimes.push(MyGame.counter);
MyGame.counter = 0;
MyGame.timeout = 999;
}
}
};
MyGame.Player.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
// collide player with tilemap layers that are marked 'solid'
for( var i = 0; i < game_state.layers.length; i++ )
{
var lyr = game_state.layers[i];
if( lyr.solid )
this.game.physics.collide( this, lyr );
}
// collide with sprites that are 'solid'
for( i = 0; i < game_state.groups.length; i++ )
{
this.game.physics.collide( this, game_state.groups[i], this.spriteCollisionCallback, null, this );
}
// handle input
var left = this.game.input.keyboard.isDown( MyGame.KEY_L );
var right = this.game.input.keyboard.isDown( MyGame.KEY_R );
var run = this.game.input.keyboard.isDown( MyGame.KEY_RUN );
var jump = this.game.input.keyboard.isDown( MyGame.KEY_JUMP );
var jump2 = this.game.input.keyboard.isDown( MyGame.KEY_JUMP2 );
var openBackpack = this.game.input.keyboard.isDown( MyGame.KEY_BACKPACK );
var showMap = this.game.input.keyboard.isDown( MyGame.KEY_MAP );
var action = this.game.input.keyboard.isDown( MyGame.KEY_ACTION );
var reset = this.game.input.keyboard.isDown( MyGame.KEY_RESET );
var q1 = this.game.input.keyboard.isDown( MyGame.KEY_Q1 );
var q2 = this.game.input.keyboard.isDown( MyGame.KEY_Q2 );
var state = this.fsm.getState();
if (reset){this.loseLevel();}
if(MyGame.globalcounter > 600 && MyGame.midtest || MyGame.levelinfo === "Level-7" && MyGame.midtest || q1)
{
var midQuestionTrigger = $.grep(game_state.triggers, function(n){
return(n.name === "Midquestions")
});
MyGame.timeout = 999;
midQuestionTrigger[0].activate();
MyGame.midtest = false;
}
if(MyGame.globalcounter > 1200 || q2)
{
var endQuestionTrigger = $.grep(game_state.triggers, function(n){
return(n.name === "Endtrigger")
});
MyGame.timeout = 999;
endQuestionTrigger[0].activate();
}
if ( reset ){this.loseLevel();}
if ( (MyGame.counter > MyGame.timeout )){
MyGame.counter = 0;
this.renderText('Du warst leider zu langsam <br> Das Bild kehrt an seinen Schrein zurück!');
this.loseLevel();
}
switch( state )
{
case 'walking':
if( jump || jump2)
{
this.fsm.consumeEvent( 'jump' );
}
else if( left && run)
{
if(this.body.blocked.left && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
if(this.waitTime(this.soundtimer, 355))
{
this.playSound(this.noise);
}
this.jump_increment = 450;
this.walk_velocity = 230;
this.animations.play('run');
this.goLeft();
}
}
else if( right && run )
{
if(this.body.blocked.right && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.animations.play( 'run' );
if(this.waitTime(this.soundtimer, 355))
{
this.playSound(this.noise);
}
this.jump_increment = 450;
this.walk_velocity = 230;
this.goRight();
}
}
else if( left )
{
this.animations.play( 'left' );
if(this.waitTime(this.soundtimer, 420))
{
this.playSound(this.noise);
}
if(this.body.blocked.left && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.jump_increment = 350;
this.walk_velocity = 110;
this.goLeft();
}
}
else if( right )
{
this.animations.play( 'right' );
if(this.waitTime(this.soundtimer, 420))
{
this.playSound(this.noise);
}
if(this.body.blocked.right && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.jump_increment = 350;
this.walk_velocity = 110;
this.goRight();
}
}
else
{
this.fsm.consumeEvent( 'stop' );
}
break;
case 'jumping':
case 'falling':
// reset horizontal velocity
this.body.velocity.x = 0;
// land?
if( this.body.touching.down || this.body.blocked.down )
{
this.fsm.consumeEvent( 'land' );
}
// can move side to side
if( left )
if(this.body.blocked.left)
{
this.fsm.consumeEvent('startwalljump');
}else{
this.airborneLeft();
}
else if( right )
if(this.body.blocked.right)
{
this.fsm.consumeEvent('startwalljump');
}else{
this.airborneRight();
}
break;
case 'walljump':
// reset horizontal velocity
this.jump_increment = 450
this.body.velocity.x = 0;
this.body.velocity.y = 30;
this.body.gravity.y = 1000;
this.frame = 33;
// land?
if((jump && right && left )||(jump2 && right && left ) ){
break;
}
else if( jump && right || (jump2 && right ))
{
if(this.facing === 1)
{
this.jump_increment = 450;
this.walk_velocity = 230;
this.jump();
this.fsm.consumeEvent('jump');
break;
}
}else if( (jump && left) || (jump2 && left ))
{
if(this.facing === 2 )
{
this.jump_increment = 450;
this.walk_velocity = 230;
this.jump();
this.fsm.consumeEvent('jump');
break;
}
}
else if( left )
{
if(this.facing === 1 ){
this.walk_velocity = 0;
this.body.velocity.y = 20;
}else{
this.jump_increment = 450;
this.walk_velocity = 230;
this.airborneRight();
this.fsm.consumeEvent('jump');
}
break;
}
else if( right )
{
if(this.facing === 2 ){
this.walk_velocity = 0;
this.body.velocity.y = 20;
}else{
this.jump_increment = 450;
this.walk_velocity = 230;
this.airborneLeft();
this.fsm.consumeEvent('jump');
}
break;
}
else{
this.fsm.consumeEvent('stop');
break;
}
break;
case 'idle':
// reset horizontal velocity
this.body.velocity.x = 0;
this.walk_velocity = 110;
this.jump_increment = 350;
this.body.gravity.y = 1000;
// can walk or jump
if( jump || jump2)
this.fsm.consumeEvent( 'jump' );
else if( left )
{
this.facing = Phaser.LEFT;
this.fsm.consumeEvent( 'left' );
}
else if( right )
{
this.facing = Phaser.RIGHT;
this.fsm.consumeEvent( 'right' );
}
else if ( openBackpack )
{
this.fsm.consumeEvent( 'openBackpack' );
}
else if ( showMap )
{
this.fsm.consumeEvent( 'showMap' );
}
break;
case 'openBackpack':
this.fsm.consumeEvent( 'closeBackpack' );
break;
case 'showMap':
this.fsm.consumeEvent( 'closeMap' );
break;
case 'challenge':
if(this.waitTime(this.timer, 400))
{
this.fsm.consumeEvent('startstop');
}
break;
case 'stunned':
if(this.waitTime(this.timer, 800))
{
this.fsm.consumeEvent('recover');
}
break;
case 'stop':
if( action )
{
$('#text').slideUp(500);
this.fsm.consumeEvent('end');
}
break;
default:
break;
}
};
MyGame.Player.prototype.openBackpack = function()
{
var content = "Der Rucksack ist Leer (weiter mit <span class='button'> Enter </span>)"
if (this.backpack !== undefined)
{
content = '<img src="assets/img/Gestaltgesetze/'+this.backpack.picture+'.png" style=""> <br> (weiter mit <span class="button"> Enter </span>)'
}
$('#text').html(content);
$('#text').slideDown(500);
};
MyGame.Player.prototype.showMap = function()
{
var content = '<img src="assets/img/map.png" style=""> <br> (weiter mit <span class="button"> Enter </span>)'
$('#text').html(content);
$('#text').slideDown(500);
};
MyGame.Player.prototype.challenge = function()
{
this.timer = this.time.now;
};
MyGame.Player.prototype.washit = function()
{
this.timer = this.time.now;
};
MyGame.Player.prototype.stop = function()
{
this.body.velocity.x = 0;
};
MyGame.Player.prototype.hit = function()
{
// can't be hit while already stunned
if( this.fsm.getState() != 'stunned' )
{
this.fsm.consumeEvent( 'hit' );
//this.live= this.live -1;
MyGame.hits = MyGame.hits +1;
$('#live').html('Energie: ' + this.live);
}
if( this.body.touching.right )
{
this.body.velocity.x = -150;
this.body.touching.right = false;
}
else if( this.body.touching.left )
{
this.body.velocity.x = 150;
this.body.touching.left = false;
}
if( this.body.touching.down )
{
this.body.velocity.y = -350;
this.body.touching.down = false;
}
else if( this.body.touching.up )
{
if(this.facing === 1){
this.body.velocity.x = 300;
}else{
this.body.velocity.x = -300;
}
this.body.touching.up = false;
}
};
MyGame.Player.prototype.idle = function()
{
this.animations.stop();
this.frame = 36;
if( this.facing == Phaser.LEFT )
{
this.scale.x = -1;
}
else
{
this.scale.x = 1;
}
};
MyGame.Player.prototype.walking = function()
{
if( this.facing == Phaser.LEFT )
{
this.walkLeft();
}
else
{
this.walkRight();
}
};
MyGame.Player.prototype.jumping = function()
{
this.jump();
};
MyGame.Player.prototype.walljump = function()
{
this.animations.stop();
this.frame = 33;
}
MyGame.Player.prototype.falling = function()
{
this.frame = 33;
};
MyGame.Player.prototype.recovering = function()
{
this.timer = this.time.now;
this.fsm.consumeEvent( 'recover' );
};
MyGame.Player.prototype.stunned = function()
{
// start timer
this.timer = this.time.now;
this.frame = 3;
if( this.facing == Phaser.LEFT )
{
this.scale.x = -1;
}
else
{
this.scale.x = 1;
}
};
// start walking right
MyGame.Player.prototype.walkRight = function()
{
this.body.velocity.x = this.walk_velocity;
this.scale.x = 1;
this.animations.play( 'right' );
};
MyGame.Player.prototype.runRight = function()
{
this.body.velocity.x = this.walk_velocity;
this.scale.x = 1;
this.animations.play( 'run' );
};
MyGame.Player.prototype.runLeft = function()
{
this.body.velocity.x = this.walk_velocity;
this.scale.x = -1;
this.animations.play( 'run' );
};
// start walking left
MyGame.Player.prototype.walkLeft = function()
{
this.body.velocity.x = -this.walk_velocity;
// flip on x axis
this.scale.x = -1;
this.animations.play( 'left' );
};
MyGame.Player.prototype.climbing = function(){
this.timer = this.time.now;
};
MyGame.Player.prototype.stepup = function(){
this.body.velocity.y = -this.walk_velocity;
};
// move in air (jump/fall) right
MyGame.Player.prototype.airborneRight = function()
{
this.goRight();
};
// move in air (jump/fall) left
MyGame.Player.prototype.airborneLeft = function()
{
this.goLeft();
};
// move right
MyGame.Player.prototype.goRight = function()
{
this.scale.x = 1;
this.facing = Phaser.RIGHT;
this.body.velocity.x = this.walk_velocity;
};
// move left
MyGame.Player.prototype.goLeft = function()
{
// flip on x axis
this.scale.x = -1;
this.facing = Phaser.LEFT;
this.body.velocity.x = -this.walk_velocity;
};
MyGame.Player.prototype.jump = function()
{
this.body.velocity.y = -this.jump_increment;
this.body.blocked.down = false;
this.body.touching.down = false;
// what direction are we facing
if( this.facing == Phaser.LEFT )
{
// flip on x axis
this.scale.x = -1;
this.animations.play( 'jump-left' );
}
else
{
this.scale.x = 1;
this.animations.play( 'jump-right' );
}
};
// helper Gestaltgesetze
MyGame.Player.prototype.waitTime = function(timer , time)
{
return this.time.elapsedSince( timer ) > time;
};
MyGame.Player.prototype.renderText = function(text)
{
$('#text').html(text);
$('#text').slideDown(500);
};
MyGame.Player.prototype.playSound = function( sound )
{
this.soundtimer = this.time.now;
sound.play( '', 0, 1 );
};
MyGame.Player.prototype.loseLevel = function(text)
{
var datanotsend = true;
var game_state = this.game.state.states[this.game.state.current];
game_state.triggers.forEach(function(t){
if(t instanceof MyGame.DataTrigger && datanotsend){
if(t.name === 'CollectData'){
t.activate();
datanotsend = false;
}
}
if(t instanceof Nadion.NextLevelTrigger){
if(t.name === 'ResetTrigger')
{
t.activate();
$('#live').html('Energie: 10');
$('#info').html('');
}
}
})
};
})();
<file_sep><!DOCTYPE html>
<html>
<head>
<title>tp-itservice · Webdesign aus Ulm </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="Sie suchen einen Webentwickler aus Ulm/Neu Ulm für ein Redesign, Optimierungen oder ein neues Homepage-Konzept, dann sind Sie hier genau richtig. Ich biete Ihnen einfache moderne IT Lösungen unter Verwendung neuster Webtechnologien wie HTML5, CSS3, AJAX, PHP, RespondCMS, Lavarel, Django, NodeJs, Python, SQL und mehr.">
<meta name="author" content="<NAME>">
<meta http-equiv="cache-control" content="max-age=3600">
<meta name="robots" content="index, follow">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<section class="hero hero-index">
<article>
<div id="hero">
<h1>Webdesign aus Ulm</h1>
<h2>tp-itservice</h2>
</div>
</article>
</section>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript">
new WOW().init();
</script>
</body>
</html><file_sep>(function()
{
"use strict";
var motivationStates = [];
MyGame.Fire = function (game,name,x,y,width,height,props)
{
Nadion.BaseSprite.call( this, game, 'fire', name, x, y, width, height, props );
this.Firetype = props['type'];
this.animations.add( 'burn', [0,1,2,3], 8, true );
}
MyGame.Fire.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.Fire, Nadion.BaseSprite );
MyGame.Fire.prototype.constructor = MyGame.Fire;
MyGame.Fire.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
this.game.physics.collide( this, game_state.main_layer );
this.body.velocity.x = 0;
this.body.velocity.y = 0;
this.body.gravity.y = 1000;
this.animations.play( 'burn' );
this.body.collideWorldBounds = true;
};
})()<file_sep><?php
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Eloquent::unguard();
// $this->call('UserTableSeeder');
$this->call('MyAppSeeder');
}
}
class MyAppSeeder extends Seeder {
public function run(){
DB::table('Players')->delete();
DB::table('Questions')->delete();
DB::table('Questionnaires')->delete();
DB::table('Answers')->delete();
$kim = Questionnaire::create(array('name' => 'kim'));
$frage1 = Question::create(array('question' => 'Das Spiel hat mir Spass gemacht','questionnaire_id' => $kim->id));
$playerJustus = Player::create(array('gender' => 'm','age' => '21','computer' => '4','game' => '3','questionnaire_id' => $kim->id));
$Testfrage = Answer::create(array('answer' => 'Test','player_id' => $playerJustus->id,'question_id' => $frage1->id));
}
}<file_sep>// Hud Element
game.ScoreObject = me.HUD_Item.extend({
init: function(x, y) {
// call the parent constructor
this.parent(x, y);
// create a font
this.hudfont = new me.Font("PTSans",12,"white","left");
},
draw: function(context, x, y) {
this.hudfont.draw(context, this.value, this.pos.x + x, this.pos.y + y);
}
});
//player entity
game.PlayerEntity = me.ObjectEntity.extend({
init: function(x,y,settings){
this.parent(x,y,settings);
//speed (x ,y)
this.setVelocity(4,10)
//collision box size
this.updateColRect(8, 48, 0, 48);
//camera follow
me.game.viewport.follow(this.pos, me.game.viewport.AXIS.BOTH);
},
update: function() {
var leftright;
if (me.input.isKeyPressed('speed')) {
//run forest run
this.setVelocity(7,16);
}else if (me.input.isKeyPressed('left')) {
// flip the sprite on horizontal axis
this.flipX(true);
leftright = true;
// update the entity velocity
this.vel.x -= this.accel.x * me.timer.tick;
} else if (me.input.isKeyPressed('right')) {
// unflip the sprite
this.flipX(false);
leftright = false;
// update the entity velocity
this.vel.x += this.accel.x * me.timer.tick;
} else {
this.vel.x = 0;
this.setVelocity(4,10);
}
if (me.input.isKeyPressed('jump')) {
// make sure we are not already jumping or falling
if (!this.jumping && !this.falling) {
// set current vel to the maximum defined value
// gravity will then do the rest
this.vel.y = -this.maxVel.y * me.timer.tick;
// set the jumping flag
this.jumping = true;
me.audio.play("jump");
}
}
if (me.input.isKeyPressed('shoot')){
if (leftright){
shot = new bullet(this.pos.x-40, this.pos.y+15, { image: 'shoot', spritewidth: 64 }, leftright);
}else{
shot = new bullet(this.pos.x+40, this.pos.y+15, { image: 'shoot', spritewidth: 64 }, leftright);
}
me.game.add(shot, this.z);
me.audio.play("fire");
me.game.sort();
}
// check & update player movement
this.updateMovement();
// check for collision
var res = me.game.collide(this);
if (res) {
// if we collide with an enemy
if (res.obj.type == me.game.ENEMY_OBJECT) {
// check if we jumped on it
if ((res.y > 0) && ! this.jumping) {
// bounce (force jump)
this.falling = false;
this.vel.y = -this.maxVel.y * me.timer.tick;
// set the jumping flag
this.jumping = true;
} else {
// let's flicker in case we touched an enemy
this.renderable.flicker(15);
me.game.HUD.updateItemValue("live", -1);
var live = me.game.HUD.getItemValue("live");
if (live < 0) {
me.state.change(me.state.GAMEOVER);
}
}
}
}
// update animation if necessary
if (this.vel.x!=0 || this.vel.y!=0) {
// update object animation
this.parent();
return true;
}
// else inform the engine we did not perform
// any update (e.g. position, animation)
return false;
}
})
/*----------------
a Coin entity
------------------------ */
game.CoinEntity = me.CollectableEntity.extend({
// extending the init function is not mandatory
// unless you need to add some extra initialization
init: function(x, y, settings) {
// call the parent constructor
this.parent(x, y, settings);
},
// this function is called by the engine, when
// an object is touched by something (here collected)
onCollision: function() {
// do something when collected
me.audio.play("cling");
me.game.HUD.updateItemValue("live", 10);
// make sure it cannot be collected "again"
this.collidable = false;
// remove it
me.game.remove(this);
}
});
/*shoot entity*/
var bullet = me.ObjectEntity.extend({
init: function(x,y,settings, direction){
this.parent(x,y,settings);
this.collidable = true;
this.gravity = 0;
this.direction = direction;
},
update: function () {
if (!this.visible){
me.game.remove(this);
}
//collision with enemy
var res = me.game.collide(this);
if (res){
if (res.obj.type == me.game.ENEMY_OBJECT) {
res.obj.ishit += 1;
me.game.remove(this);
if (res.obj.ishit > 3){
me.game.remove(res.obj);
}
}
}
//remove bullet on collision with walls
var collision = this.updateMovement();
if (collision.yprop.isSolid){
me.game.remove(this);
}
if (collision.xprop.isSolid){
me.game.remove(this);
}
//direction of bullet
if (this.direction){
this.vel.x -= 1.2;
} else{
this.vel.x += 1.2;
}
setTimeout(function(){
me.game.remove(this);
},300);
this.updateMovement();
return true;
}
});
//ememy
game.EnemyEntity = me.ObjectEntity.extend({
init: function(x,y,settings){
settings.image = "gir";
settings.spritewidth = 64;
this.parent(x,y,settings);
this.startX = x;
this.endX = x + settings.width - settings.spritewidth;
this.pos.x = x + settings.width - settings.spritewidth;
this.walkLeft = true;
this.updateColRect(8, 48, 0, 48);
this.setVelocity(4, 6);
this.collidable = true;
this.type = me.game.ENEMY_OBJECT;
this.ishit = 0;
},
onCollision: function(res, obj){
},
update: function() {
// do nothing if not in viewport
if (!this.visible){
return false;
}
if (this.alive) {
if (this.walkLeft && this.pos.x <= this.startX) {
this.walkLeft = false;
} else if (!this.walkLeft && this.pos.x >= this.endX) {
this.walkLeft = true;
}
// make it walk
this.flipX(this.walkLeft);
this.vel.x += (this.walkLeft) ? -this.accel.x * me.timer.tick : this.accel.x * me.timer.tick;
} else {
this.vel.x = 0;
}
// check and update movement
this.updateMovement();
// update animation if necessary
if (this.vel.x!=0 || this.vel.y!=0) {
// update object animation
this.parent();
return true;
}
return false;
}
});
<file_sep>'use strict';
// Declare app level module which depends on views, and components
var ctcBand = angular.module('ctcBand', [
'ngRoute',
'ctcBand.home',
'ctcBand.band',
'ctcBand.gigs',
'ctcBand.bilder',
'ctcBand.musik',
'ctcBand.kontakt',
'ctcBand.header',
'ctcBand.footer'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/home'});
}])
.factory('ServiceHelper', ['$sce', '$location', function($sce, $location){
return {
renderHtml: function(html) {
return $sce.trustAsHtml(html);
}
};
}])
;
<file_sep>//
// Copyright 2013 <NAME>
//
// 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.
(function(){
"use strict"
var IntroTrigger_states = [
{
'name':'inactive',
'initial':true,
'events' :
{
'intro':'introtext',
'runtut':'runtext',
'jumptut':'jumptext',
'climbtut':'climbtext',
'pickuptut':'pickuptext',
'gatetut':'gatetext',
'picturetut':'picturetext',
'jumphightut':'jumphightext',
'maptut':'maptext',
'level2tut':'level2text',
'level2tut2':'level2text2',
'level3tut':'level3text',
'monster':'monstertext'
}
},
{
'name': 'introtext',
'events' :
{
}
},
{
'name': 'jumptext',
'events':
{
}
},
{
'name': 'runtext',
'events':
{
}
},
{
'name': 'climbtext',
'events':
{
}
},
{
'name': 'picturetext',
'events':
{
}
},
{
'name': 'pickuptext',
'events':
{
'pickupOn': 'pickuptext2'
}
},
{
'name': 'gatetext',
'events':
{
}
},
{
'name': 'monstertext',
'events':
{
}
},
{
'name': 'maptext',
'events':
{
}
},
{
'name': 'level2text',
'events':
{
}
},
{
'name': 'level2text2',
'events':
{
}
},
{
'name': 'level3text',
'events':
{
}
},
{
'name': 'jumphightext',
'events':
{
}
}
];
MyGame.IntroTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
this.fsm = new Nadion.StateMachine( IntroTrigger_states, this );
props = props['on'];
this.trigger_on_touch = true;
this.text="";
};
MyGame.IntroTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.IntroTrigger, Nadion.Trigger );
MyGame.IntroTrigger.prototype.constructor = MyGame.IntroTrigger;
MyGame.IntroTrigger.prototype.on = function()
{
this.fsm.consumeEvent(this.props['on']);
};
MyGame.IntroTrigger.prototype.introtext = function()
{
MyGame.counter = 0;
//$('#hud>p').hide();
//Was für eine Landung... von dem Flugzeug ist nicht mehr viel übrig... ich muss hier irgendwie wegkommen <br> hoffentlich kann ich noch laufen... <br> (
$('#text').html('Bewege die Spielfigur in dem du die - Pfeiltasten - nach links oder rechts gedrückt hältst <br><br> <span class="button"> < </span> oder <span id="right-b" class="button pulse animated"> > </span> <br><br> (weiter mit <span class="button"> Enter </span>)');
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
}
return true;
});
};
MyGame.IntroTrigger.prototype.jumptext = function()
{
//Ok zusammenreißen... ein kleiner Sprung und ich bin da oben! <br> (
$('#text').html('drücke - ALT GR - um zu springen<br><br> <span class="button "> Alt Gr </span> <br><br> (weiter mit <span class="button"> Enter </span>)');
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
//Space
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
}
return true;
});
};
MyGame.IntroTrigger.prototype.runtext = function(){
//Jetzt nichts wie weg hier bevor das Flugzeug in die Luft geht! <br> (
$('#text').html('halte - Leertaste - gedrückt während du läufst um zu rennen! <br><br> <span class="button space"> Leertaste </span><br><br> (weiter mit <span class="button"> Enter </span>)' );
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
//c
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
}
return true;
});
};
MyGame.IntroTrigger.prototype.jumphightext = function(){
//Jetzt nichts wie weg hier bevor das Flugzeug in die Luft geht! <br> (
$('#text').html('um große Hindernisse zu überwinden springe hoch und weit in dem du springst während du rennst <br><br> <span class="button space"> Space </span> + <span class="button"> > </span> + <span class="button"> Alt Gr </span> <br><br> (weiter mit <span class="button"> Enter </span>)');
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
//c
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
}
return true;
});
};
MyGame.IntroTrigger.prototype.climbtext = function(){
$('#text').html('Springe gegen eine Wand und halte die - Pfeiltaste > - gedrückt um dich festzuhalten. <br> Während du dich fest hältst kannst du auf die andre Seite springen in dem du die gegenüber liegende - < Pfeiltaste - drückst <br> <br><span class="button"> Alt Gr </span> dann <span class="button"> > </span> dann <span class="button"> < </span> <br><br> (weiter mit -Enter- )');
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
//up
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
}
return true;
});
};
MyGame.IntroTrigger.prototype.pickuptext = function(){
var fsm = this.fsm;
var game_state = this.game.state.states[this.game.state.current];
//game_state.triggers[7].activated = false;
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
var text = '';
text += 'hebe ein Bild auf in dem du darüber läufst , drücke - b - um es dir später nochmal anzusehen! <br> <span class="button"> B </span> <br><br> (weiter mit -Enter- ) ';
$('#text').html(text);
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
game_state.player.fsm.consumeEvent('end');
}
});
};
MyGame.IntroTrigger.prototype.gatetext = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
$('#text').html('Ein Tor versperrt den Weg <br> es steht <b>Verstehen</b> darauf <br> finde den passenden Schlüssel um es zu öffnen<br> (weiter mit <span class="button"> Enter </span>)');
$('#text').slideDown(500);
$(document).bind('keydown', function(e) {
if (e.keyCode === 13)
{
$('#text').slideUp(500);
$(document).unbind( 'keydown' );
game_state.player.fsm.consumeEvent('end');
}
});
}
};
MyGame.IntroTrigger.prototype.monstertext = function(){
var text = "Es liegt etwas auf dem Boden...ein Stück Papier..<br><br>"
text+= "Forschungsexpedition Phoenix Logbuch Tag 42 <br>"
text+= "Kein Ausweg in Sicht wir irren seit Tagen durch diesen Urwald und finden keinen Weg nach draußen ... <br>"
text+= "Dieser Dschungel ist wie verhext ... unsere Vorräte werden nicht mehr lange halten... <br>"
text+= "Der Stoßtrupp auf der Suche nach Hilfe hat sich seit Tagen nicht gemeldet <br>"
text+= "Wir werden aber weiter warten<br>"
text+= "<br><br>(weiter mit - Enter -)"
this.renderText(text);
};
MyGame.IntroTrigger.prototype.maptext = function(){
var text;
this.renderText(text);
};
MyGame.IntroTrigger.prototype.level2text = function(){
var text = "<br>";
text += "Stoßtrupp Phoenix Tag 43.<br>"
text += "Wir haben den gesamten Bereich gründlich untersucht.<br>"
text += "Wir arbeiten an der Übersetzung der vier Steinruinen mit ihren seltsamen Runenschriften.<br>"
text += "Die Bewohner dieses Dschungels sind uns keine große Hilfe ganz im Gegenteil... wir kommen ihnen besser nicht zu nahe.<br>"
text += "Sie verehren die Gesetze der Bilder an ihren Tempeln.<br>"
text += "Wir haben auf jeder Ebene des Dschungels eine Tempelruine gefunden.<br>"
text += "Wenn die Übersetzungen stimmen besagt ihre Lehre, dass jede Ebene ihres Dschungels für ein Gesetz steht. . . <br>"
text += "Nur wie soll uns das weiter helfen..."
text += "<br><br> (weiter mit <span class='button'> Enter </span>)"
this.renderText(text);
};
MyGame.IntroTrigger.prototype.level3text = function(){
var text = "";
text += "Stoßtrupp Phoenix Tag 45.<br>"
text += "Wir haben ein seltsames Amulett entdeckt. Es schimmert ein Bild hindurch wenn man es ansieht.<br>"
text += "Die Eingeborenen scheinen diese Amulette als Wegweiser zu benutzen und <br>"
text += "es scheint irgendeine Verbindung zwischen den vier Ebenen des Dschungels und dem Amulett zu geben aber wir kommen nicht hinter das Geheimnis.<br>"
text += "Als wir versuchten das Amulett zum Forschungstrupp zu bringen kehrte es nach kurzer Zeit wie durch Hexerei an seinen Ausgangspunkt zurück.<br>"
text += "Wir können uns das alles nicht erklären und werden uns erst einmal mit dem Forschungstrupp beraten."
text += "<br><br> (weiter mit <span class='button'> Enter </span>)"
this.renderText(text);
};
MyGame.IntroTrigger.prototype.picturetext = function(){
var game_state = this.game.state.states[this.game.state.current];
var playerStates = game_state.player.fsm;
playerStates.consumeEvent('startchallenge');
};
MyGame.IntroTrigger.prototype.renderText = function(text){
var game_state = this.game.state.states[this.game.state.current];
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
$('#text').html(text);
$('#text').slideDown(500);
}
})(); <file_sep>(function(){
"use strict"
MyGame.ClimbTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
props['on'] = 'on';
if( props['trigger_on_touch'] === undefined )
this.trigger_on_touch = true;
};
MyGame.ClimbTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.ClimbTrigger, Nadion.Trigger );
MyGame.ClimbTrigger.prototype.constructor = MyGame.ClimbTrigger;
MyGame.ClimbTrigger.prototype.on = function()
{
var counter = MyGame.counter
var game_state = this.game.state.states[this.game.state.current];
var playerstates = game_state.player.fsm;
if(playerstates.getState() === 'idle')
playerstates.consumeEvent('startclimbing');
this.activated = false;
};
MyGame.ClimbTrigger.prototype.startclimbing = function()
{
};
MyGame.ClimbTrigger.prototype.endclimbing = function()
{
};
})(); <file_sep><?php
$path= getcwd();
$pics = array();
if ($handle = opendir('/ctc-band/redesign/public/img')) {
/* Das ist der korrekte Weg, ein Verzeichnis zu durchlaufen. */
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != ".."){
$entry = "http://redesign.ctc-band.com/public/img/".$entry;
array_push($pics, $entry);
}
}
echo json_encode($pics);
}<file_sep><!DOCTYPE html>
<html>
<head>
<title>Cheerful to Cloudy · Band</title>
<meta property="og:title" content="Cheerful to Cloudy · Band">
<meta property="og:description" content="Cheerful to Cloudy sind <NAME> und Tobi, die Newcomerband aus Ulm">
<meta property="og:image" content="http://ctc-band.com/Logos/ctc-black.jpg">
<meta name="Description" content="Cheerful to Cloudy sind <NAME> und Tobi, die Newcomerband aus Ulm">
<meta name="Author" content="<NAME>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300' rel='stylesheet' type='text/css'>
<link rel="canonical" href="http://www.ctc-band.com/band.php" />
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css" rel="stylesheet">
</head>
<body itemscope itemtype="http://schema.org/MusicGroup">
<?php include 'header.php'; ?>
<section id="hero" class="hero-band">
<article><h1>Warum so Cloudy ?</h1>
<H2>Time to Cheer-up!</H2>
</article>
</section>
<article class="row">
<p itemprop="description">Die starke Stimme von Sängerin Marisa, die durch raue, gleichzeitig zurückhaltende Rockklänge dringt, während sie die ersten Zeilen eines Songs anstimmt - das ist die Musik von Cheerful to Cloudy, einer Band, bei der man sich wundert, dass sie noch nicht groß aus Ulm herausgekommen ist. Glaubt uns, das wird sie noch!<br>
<i>- Artikel aus der SpaZz, August 2013</i>
</p>
</article>
<div class="row band" id="mari">
<section class="col-1">
<img src="img/band/mari.png">
</section>
<section class="col-2">
<h4 itemprop="musicGroupMember">Marisa - Gesang</h4>
<p>Alter: 24 </p>
<p>Studiert: BWL </p>
<p>Hobbys: rumsingen, mit‘m Motorrad rumfahren, rumtanzen </p>
<p>Held der Kindheit: Sindbad der Seefahrer</p>
<p>Erstes Konzert: <NAME> XD </p>
<p>Absoluter Lieblingssong: The Verve - BitterSweet Symphony</p>
</section>
</div>
<div class="row band" id="willi">
<section class="col-1">
<img src="img/band/willi.png">
</section>
<section class="col-2">
<h4 itemprop="musicGroupMember">Willi - Gitarre</h4>
<p>Alter: 23 </p>
<p>Studiert: MEGAtronik </p>
<p>Hobbys: essen und nichts tun, Probe im sitzen verbringen </p>
<p>Held der Kindheit: Son-Goku</p>
<p>Erstes Konzert: Taubertal Festival </p>
<p>Absoluter Lieblingssong: Metallica - Nothing else matters </p>
</section>
</div>
<div class="row band" id="rob">
<section class="col-1">
<img src="img/band/rob.png">
</section>
<section class="col-2">
<h4 itemprop="musicGroupMember"><NAME></h4>
<p>Alter: 25 </p>
<p>Studiert: Produktionstechnik </p>
<p>Hobbys: Nerden, Ami-Serien und Prokrastinieren </p>
<p>Held der Kindheit: Donatello (Turtles)</p>
<p>Erstes Konzert: KIZ </p>
<p>Absoluter Lieblingssong: Blur - Song 2 </p>
</section>
</div>
<div class="row band" id="tobi">
<section class="col-1">
<img src="img/band/tobi.png">
</section>
<section class="col-2">
<h4 itemprop="musicGroupMember"><NAME></h4>
<p>Alter: 27 </p>
<p>Studiert: Medieninformatik </p>
<p>Hobbys: Computerkram, Musik </p>
<p>Held der Kindheit: Grisu der kleine Drache</p>
<p>Erstes Konzert: Deep Purple </p>
<p>Absoluter Lieblingssong: Extreme - Cupid's Dead</p>
</section>
</div>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#navigation>li').removeClass('active');
$('#nav_band').addClass('active');
var h = $('#hero').css("height").replace("px","");
h=h*0.3;
$('#hero>article').css({"padding-top":h+"px"})
$("#mari").mouseenter(function(){
$('#mari>section>img').addClass("tada animated");
setTimeout(function(){
$('#mari>section>img').attr("src","img/band/mari2.png");
},50)
});
$("#mari").mouseleave(function(){
$('#mari>section>img').attr("src","img/band/mari.png");
$('#mari>section>img').removeClass("tada animated");
});
$("#willi").mouseenter(function(){
$('#willi>section>img').addClass("swing animated");
setTimeout(function(){
$('#willi>section>img').attr("src","img/band/willi2.png");
},50)
});
$("#willi").mouseleave(function(){
$('#willi>section>img').attr("src","img/band/willi.png");
$('#willi>section>img').removeClass("swing animated")});
$("#rob").mouseenter(function(){
$('#rob>section>img').addClass("swing animated");
setTimeout(function(){
$('#rob>section>img').attr("src","img/band/rob2.png");
},50)
});
$("#rob").mouseleave(function(){
$('#rob>section>img').attr("src","img/band/rob.png");
$('#rob>section>img').removeClass("swing animated");
});
$("#tobi").mouseenter(function(){
$('#tobi>section>img').addClass("bounce animated");
setTimeout(function(){
$('#tobi>section>img').attr("src","img/band/tobi2.png");
},50)
});
$("#tobi").mouseleave(function(){
$('#tobi>section>img').attr("src","img/band/tobi.png");
$('#tobi>section>img').removeClass("bounce animated");
});
$('.navicon').click(function(){
if ($('nav').hasClass('activated')){
$('nav').removeClass('activated');
$('nav').css({'display':'none'});
}else{
$('nav').css({'display':'block'});
$('nav').addClass('activated');
}
});
});
</script>
</body>
</html><file_sep><?php
class Game extends Eloquent{
protected $fillable = array('score','mistakes','hits');
} <file_sep>// respond app
// respond.controllers -> js/respond.controllers.js
// respond.factories -> js/respond.factories.js
// respond.directives -> js/respond.directives.js
angular.module('respond.site', ['respond.site.controllers', 'respond.site.factories', 'respond.site.directives', 'jm.i18next'])
// disable header during development
.config(['$httpProvider', function($httpProvider) {
//initialize get if not there
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
}
//disable IE ajax request caching
$httpProvider.defaults.headers.get['If-Modified-Since'] = '0';
}])
.config(function($i18nextProvider, $httpProvider) {
// config $il8nextProvider
$i18nextProvider.options = {
lng: '{{language}}',
getAsync : false,
useCookie: false,
useLocalStorage: false,
fallbackLng: 'en',
resGetPath: 'locales/__lng__/__ns__.json',
defaultLoadingValue: ''
};
// set authInterceptor
$httpProvider.interceptors.push('authInterceptor');
})
.run(function($rootScope, $i18next, $window, Site) {
// get cart from sessionStorage
if(sessionStorage['respond-cart'] != null){
var str = sessionStorage['respond-cart'];
$rootScope.cart = eval(str);
}
else{
$rootScope.cart = [];
}
// init user
$rootScope.user = null;
// set user from session storage
if($window.sessionStorage.user != null){
var str = $window.sessionStorage.user;
$rootScope.user = JSON.parse(str);
}
});
<file_sep>$(document).ready(function(){
var wHeight = $(window).height();
var ContentHeight = $('#gig_content').height();
var mt = (wHeight - ContentHeight) * 0.5;
$('.herorow').height(wHeight);
$('#gig_content').css({'margin-top':mt});
});<file_sep>(function(){
"use strict"
var challengeTrigger_states = [
{
'name':'inactive',
'initial':true,
'events' :
{
'challengeDeko':'deko',
'challengesolve':'solve',
'challengeUnderstand':'understand',
'challengeMakeclear':'makeclear'
}
},
{
'name':'deko',
'events': {}
},
{
'name':'solve',
'events': {}
},
{
'name':'understand',
'events': {}
},
{
'name':'makeclear',
'events': {}
}
];
MyGame.ChallengeTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
this.Challengetype = props['on'];
this.fsm = new Nadion.StateMachine( challengeTrigger_states, this );
if( props['trigger_on_touch'] === undefined )
this.trigger_on_touch = true;
};
MyGame.ChallengeTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.ChallengeTrigger, Nadion.Trigger );
MyGame.ChallengeTrigger.prototype.constructor = MyGame.ChallengeTrigger;
MyGame.ChallengeTrigger.prototype.on = function()
{
this.fsm.consumeEvent(this.props['on']);
};
MyGame.ChallengeTrigger.prototype.deko = function()
{
};
MyGame.ChallengeTrigger.prototype.understand = function()
{
var game_state = this.game.state.states[this.game.state.current];
var playerStates = game_state.player.fsm;
playerStates.consumeEvent('startchallenge');
};
MyGame.ChallengeTrigger.prototype.makeclear = function()
{
};
MyGame.ChallengeTrigger.prototype.solve = function()
{
};
})(); <file_sep><?php
echo '
<footer>
<a href="https://www.facebook.com/cheerfultocloudy">facebook</a> | <a href="https://www.youtube.com/user/CheerfulToCloudy">youtube</a> | <a href="https://soundcloud.com/cheerful-to-cloudy">soundcloud</a> | <a href="impressum.php">impressum</a>
</footer>
';<file_sep><?php
class Level extends Eloquent{
protected $table = 'level';
protected $fillable = array('score','mistakes','hits','info','player_id');
public function player() {
return $this -> belongsTo('Player');
}
} <file_sep>game.GameoverScreen = me.ScreenObject.extend({
init: function(){
this.parent(true);
this.title = null;
this.font = null;
this.txtDevonshire = new me.Font("PTSans",18,"white","left");
},
onResetEvent: function() {
if(this.title == null ){
this.title = me.loader.getImage("gameover");
}
me.input.bindKey(me.input.KEY.ENTER, "enter", true);
},
update: function() {
if (me.input.isKeyPressed('enter')) {
me.state.change(me.state.PLAY);
}
return true;
},
draw: function(context){
context.drawImage(this.title, 0, 0);
this.txtDevonshire.draw(context,"Press Enter to play again!",200,250);
},
/**
* action to perform when leaving this screen (state change)
*/
onDestroyEvent: function() {
me.input.unbindKey(me.input.KEY.ENTER);
}
});
<file_sep>(function(){
"use strict"
var LevelInfoTriggerStates = [
{
'name':'inactive',
'initial':true,
'events' :
{
'layer1':'layer1',
'findlayer1':'findlayer1',
'layer2':'layer2',
'findlayer2':'findlayer2',
'layer3':'layer3',
'findlayer3':'findlayer3',
'layer4':'layer4',
'findlayer4':'findlayer4',
'blank':'blank'
}
},
{
'name': 'layer1',
'events' :
{
'layer1':'layer1'
}
},
{
'name': 'layer2',
'events' :
{
'layer2':'layer2'
}
},
{
'name': 'layer3',
'events' :
{
'layer3':'layer3'
}
},
{
'name': 'layer4',
'events' :
{
'layer4':'layer4'
}
},
{
'name': 'findlayer1',
'events':
{
'findlayer1':'findlayer1'
}
},
{
'name': 'findlayer2',
'events':
{
'findlayer2':'findlayer2'
}
},
{
'name': 'findlayer3',
'events':
{
'findlayer3':'findlayer3'
}
},
{
'name': 'findlayer4',
'events':
{
'findlayer4':'findlayer4'
}
},
{
'name': 'blank',
'events':
{
'blank':'blank'
}
}
];
MyGame.LevelInfoTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
this.layertext = "";
this.timer;
this.fsm = new Nadion.StateMachine( LevelInfoTriggerStates, this );
if( props['trigger_on_touch'] === undefined )
this.trigger_on_touch = true;
};
MyGame.LevelInfoTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.LevelInfoTrigger, Nadion.Trigger );
MyGame.LevelInfoTrigger.prototype.constructor = MyGame.LevelInfoTrigger;
MyGame.LevelInfoTrigger.prototype.on = function()
{
this.fsm.consumeEvent(this.props['on']);
this.renderInfo();
};
MyGame.LevelInfoTrigger.prototype.layer1 = function()
{
this.layertext = "Aktuelle Ebene: <b>Handlungsanleitung</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.layer2 = function()
{
this.layertext = "Aktuelle Ebene: <b>Verstehen</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.layer3 = function()
{
this.layertext = "Aktuelle Ebene: <b>Dekorieren</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.layer4 = function()
{
this.layertext = "Aktuelle Ebene: <b>Veranschaulichen</b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.findlayer1 = function()
{
this.renderText( "Es steht etwas auf der Steinwand: <b> Handlungsanleitung </b> <br><br> Ebene Handlungsanleitung entdeckt!");
this.layertext = "Aktuelle Ebene: <b> Handlungsanleitung </b>";
};
MyGame.LevelInfoTrigger.prototype.findlayer2 = function()
{
this.layertext = "Aktuelle Ebene: <b> Verstehen </b>";
this.renderText( "Es steht etwas auf der Steinwand: <b> Verstehen </b> <br><br> Ebene Verstehen entdeckt!");
};
MyGame.LevelInfoTrigger.prototype.findlayer3 = function()
{
this.layertext = "Aktuelle Ebene: <b> Dekorieren </b>";
this.renderText( "Es steht etwas auf der Steinwand: <b> Dekorieren </b> <br><br> Ebene Dekorieren entdeckt!");
};
MyGame.LevelInfoTrigger.prototype.findlayer4 = function()
{
this.layertext = "Aktuelle Ebene: <b> Veranschaulichen </b>";
this.renderText( "Es steht etwas auf der Steinwand: <b> Veranschaulichen </b> <br><br> Ebene Veranschaulichen entdeckt!");
};
MyGame.LevelInfoTrigger.prototype.blank = function()
{
this.layertext = "Aktuelle Ebene: <b> ? </b>";
this.activated = false;
};
MyGame.LevelInfoTrigger.prototype.renderInfo = function()
{
$('#info').html(this.layertext);
}
MyGame.LevelInfoTrigger.prototype.renderText = function(text){
var game_state = this.game.state.states[this.game.state.current];
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
$('#text').html(text + (' <br><br> (weiter mit - Enter -)'));
$('#text').slideDown(500);
}
})(); <file_sep><!DOCTYPE html>
<html>
<head>
<title>Cheerful to Cloudy · Bilder</title>
<meta property="og:title" content="Cheerful to Cloudy · Bilder">
<meta property="og:description" content="Bilder von und mit Cheerful to Cloudy der Newcomerband aus Ulm">
<meta property="og:image" content="http://ctc-band.com/Logos/ctc-black.jpg">
<meta name="Description" content="Bilder von und mit Cheerful to Cloudy der Newcomerband aus Ulm">
<meta name="Author" content="<NAME>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300' rel='stylesheet' type='text/css'>
<link rel="canonical" href="http://www.ctc-band.com/bilder.php" />
<link rel="shortcut icon" href="favicon.ico">
<!-- Bootstrap -->
<link href="css/style.css" rel="stylesheet">
</head>
<body itemscope itemtype="http://schema.org/MusicGroup">
<section class="" id="img-hero" ><img alt="img-gallery big" src="">
<section class="close">X <br> <small>ESC</small></section>
</section>
<?php include 'header.php'; ?>
<section class="images-holder"></section>
<section class="images">
<h2>Recordingsession bei <a href="http://www.turbinepowered.de/index.php?option=com_content&view=category&layout=blog&id=2&Itemid=3">Turbine Powered </a></h2>
<hr>
<div class="col-4">
<img class="g-img" src="img/gallery/s1.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/s2.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/s3.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/s4.jpg">
</div>
</section>
<section class="images">
<h2>Bandfotos</h2>
<hr>
<div class="col-4">
<img class="g-img" src="img/gallery/0.jpg">
<img class="g-img" src="img/gallery/13.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/2.png">
<img class="g-img" src="img/gallery/bod.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/2.jpg">
<img class="g-img" src="img/gallery/12.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/11.jpg">
<img class="g-img" src="img/gallery/ctc2.jpg">
<img class="g-img" src="img/gallery/extern.jpg">
</div>
</section>
<section class="images">
<h2>Gigs</h2>
<hr>
<div class="col-4">
<img class="g-img" src="img/gallery/4.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/g4.jpg">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/ctc1.png">
</div>
<div class="col-4">
<img class="g-img" src="img/gallery/g3.jpg">
</div>
</section>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#navigation>li').removeClass('active');
$('#nav_bilder').addClass('active');
var images = $('.g-img').toArray();
var i = 0;
$('#img-hero>img').click(function(){
var h = $("#img-hero>img");
i += 1;
if(i>15){
i=0;
}
var imgh = $('#img-hero').css("height").replace("px","");
$('#img-hero>img').css({"padding-top":(imgh*0.1) + "px", "max-height":(imgh*0.8) + "px", "max-width":"50%", "margin-left":"25%"})
var src = images[i].getAttributeNode("src").value;
h.attr("src", src);
});
$('.close').click(function(){
$('#img-hero').css({"display":"none"})
});
document.onkeydown = function(evt) {
evt = evt || window.event;
if (evt.keyCode == 27) {
$('#img-hero').css({"display":"none"})
}
};
$('.col-4>img').click(function(){
var imgh = $('#img-hero').css("height").replace("px","");
$('#img-hero>img').css({"padding-top":(imgh*0.1) + "px", "max-height":(imgh*0.8) + "px", "max-width":"50%", "margin-left":"25%"})
$('#img-hero>img').attr("src", $(this).attr("src"));
$('#img-hero').css({"display":"block"})
});
$('.navicon').click(function(){
if ($('nav').hasClass('activated')){
$('nav').removeClass('activated');
$('nav').css({'display':'none'});
}else{
$('nav').css({'display':'block'});
$('nav').addClass('activated');
}
});
});
</script>
</body>
</html><file_sep>(function(){
"use strict"
var LearningTrigger_states = [
{
'name':'inactive',
'initial':true,
'events' :
{
'door1':'door1text',
'door2':'door2text',
'door3':'door3text',
'findmap':'maptext',
'monster':'monstertext',
'climbtut':'climbtext',
'pickuptut':'pickuptext',
'gatetut':'gatetext',
'picturetut':'picturetext'
}
},
{
'name': 'door1text',
'events' :
{
}
},
{
'name': 'door2text',
'events' :
{
}
},
{
'name': 'door3text',
'events' :
{
}
},
{
'name': 'maptext',
'events':
{
}
},
{
'name': 'monstertext',
'events':
{
}
}
];
MyGame.LearningTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
this.fsm = new Nadion.StateMachine( LearningTrigger_states, this );
props = props['on'];
this.trigger_on_touch = true;
this.text="";
};
MyGame.LearningTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.LearningTrigger, Nadion.Trigger );
MyGame.LearningTrigger.prototype.constructor = MyGame.LearningTrigger;
MyGame.LearningTrigger.prototype.on = function()
{
this.fsm.consumeEvent(this.props['on']);
};
MyGame.LearningTrigger.prototype.door1text = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
var text = 'Ein verschlossenes Tor: <br> <b>Handlungsanleitung</b> <br> finde den passenden Schlüssel um es zu öffnen <br> (weiter mit -Enter-)';
this.renderText(text);
}
};
MyGame.LearningTrigger.prototype.door2text = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
var text = 'Ein verschlossenes Tor: <br> <b>Dekorieren</b> finde den passenden Schlüssel um es zu öffnen <br> (weiter mit -Enter-)';
this.renderText(text);
}
};
MyGame.LearningTrigger.prototype.door3text = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
var text = 'Ein verschlossenes Tor: <br> <b>Veranschaulichen</b> finde den passenden Schlüssel um es zu öffnen <br> (weiter mit -Enter-)';
this.renderText(text);
}
};
MyGame.LearningTrigger.prototype.maptext = function(){
var text = 'Drücke - M - um dir die verschiedenen Ebenen und dazugehörigen Tore noch einmal anzusehen. Schließe die Übersicht mit - Enter - <br> (weiter mit - Enter -)';
this.renderText(text);
};
MyGame.LearningTrigger.prototype.renderText = function(text){
var game_state = this.game.state.states[this.game.state.current];
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
$('#text').html(text);
$('#text').slideDown(500);
}
})(); <file_sep><?php
$path= getcwd();
$pics = array();
if ($handle = opendir('/xampp/htdocs/ctc-2015/app/public/img')) {
/* Das ist der korrekte Weg, ein Verzeichnis zu durchlaufen. */
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != ".."){
$entry = $path.'/'.$entry;
array_push($pics, $entry);
}
}
echo json_encode($pics);
}<file_sep>
$(document).ready(function(){
$('#navigation>li').removeClass('active');
$('#nav_musik').addClass('active');
var h = $('#hero').css("height").replace("px","");
h=h*0.3;
$('#hero>article').css({"padding-top":h+"px"})
$('.navicon').click(function(){
if ($('nav').hasClass('activated')){
$('nav').removeClass('activated');
$('nav').css({'display':'none'});
}else{
$('nav').css({'display':'block'});
$('nav').addClass('activated');
}
});
})
<file_sep>
function center(){
var hero = $('#hero');
var h = (hero.css("height").replace("px",""))*0.7;
var w = (hero.css("width").replace("px",""))/2;
hero.css({"position":"absolute","top":"50%","left":"50%","margin-left":"-"+w+"px","margin-top":"-"+h+"px"});
}
$( document ).ajaxStart(function() {
$('#hero').removeClass('bounceInDown animated');
});
$( document ).ajaxComplete(function() {
center();
$('#hero').css({'opacity':1});
$('#hero').addClass('bounceInDown animated');
});
$( document ).ready(function() {
$('nav>ul>li').removeClass('active');
$('nav>ul>li>a[href="index.php"]').parent().addClass('active');
function i4(){
setTimeout(function(){
$.get( "carousel/index-4.html", function( data ) {
$( "#hero" ).html( data );
});
i2();
},4500);
}
function i3(){
setTimeout(function(){
$.get( "carousel/index-3.html", function( data ) {
$( "#hero" ).html( data );
});
i4();
},4500);
}
function i2(){
setTimeout(function(){
$.get( "carousel/index-2.html", function( data ) {
$( "#hero" ).html( data );
});
i3();
},4500);
}
function carouselStart(){
setTimeout(function(){
$.get( "carousel/index-1.html", function( data ) {
$( "#hero" ).html( data );
});
i2();
},1500);
}
carouselStart();
}); <file_sep><?php
class Player extends Eloquent{
protected $fillable = array('gender','age','score','mistakes','hits');
public function questionnaires() {
return $this->belongsToMany('Questionnaire', 'player_questionnaires', 'questionnaire_id', 'player_id');
}
} <file_sep>(function()
{
"use strict";
MyGame.Challenge = function (game,name,x,y,width,height,props)
{
Nadion.BaseSprite.call( this, game, 'challenge', name, x, y, width, height, props );
this.challengetype = props['type'];
this.body.width = 64;
this.body.height = 256;
}
MyGame.Challenge.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.Challenge, Nadion.BaseSprite );
MyGame.Challenge.prototype.constructor = MyGame.Challenge;
MyGame.Challenge.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
this.game.physics.collide( this, game_state.main_layer );
this.body.immovable = true;
this.body.collideWorldBounds = true;
};
})()<file_sep>$(document).ready(function(){
var wHeight = $(window).height();
var ContentHeight = $('#index-content').height();
var mt = (wHeight - ContentHeight) * 0.4;
$('.herorow').height(wHeight);
$('#index-content').css({'margin-top':mt});
$('.herorow').height(wHeight);
var news1Top = $('#news1').offset().top * 0.6;
var news2Top = $('#news2').offset().top * 0.8;
$(window).scroll(function(){
if ($(document).scrollTop() > news1Top){
$('.to_left').css({'margin-left':'0px','opacity':'1'})
}
if ($(document).scrollTop() > news2Top){
$('.to_left2').css({'margin-left':'0px','opacity':'1'})
}
});
$('#test').click(function(){
$.get( "ajax_band.html", function( data ) {
$( ".wrapper" ).html( data );
});
})
var audioPlayer=document.getElementById("player");
if (audioPlayer.canPlayType('audio/mpeg')){
$('#start').click(function(){
if ($('#start > span').hasClass('glyphicon-play')){
audioPlayer.play();
$('#start > span').removeClass('glyphicon-play').addClass('glyphicon-stop');
}else{
audioPlayer.pause();
$('#start > span').removeClass('glyphicon-stop').addClass('glyphicon-play');
}
});
$('#next').click(function(){
audioPlayer.pause();
audioPlayer.src='audio/D&B.mp3';
audioPlayer.play();
$('#title').html('D&B');
});
$('#back').click(function(){
audioPlayer.pause();
audioPlayer.src='audio/touch.mp3';
audioPlayer.play();
$('#title').html('Touch');
});
}else{
$('.navbar-bot').addClass('hidden')
}
});<file_sep>(function()
{
"use strict";
var motivationStates = [];
MyGame.PicM = function (game,name,x,y,width,height,props)
{
Nadion.BaseSprite.call( this, game, 'picM', name, x, y, width, height, props );
}
MyGame.PicM.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.PicM, Nadion.BaseSprite );
MyGame.PicM.prototype.constructor = MyGame.PicM;
MyGame.PicM.prototype.reset = function()
{
this.fsm.reset();
};
MyGame.PicM.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
this.body.velocity.x = 0;
};
})()<file_sep>$( document ).ready(function() {
$(".backtomenu").click(function(){
$('body,html').animate({scrollTop: $("#menu").offset().top});
});
$(".kufa").click(function(){
$('body,html').animate({scrollTop: $("#kufa").offset().top});
});
$(".shooting").click(function(){
$('body,html').animate({scrollTop: $("#Shooting2013").offset().top});
});
$(".betai").click(function(){
$('body,html').animate({scrollTop: $("#Betai").offset().top});
});
$(".jamgig").click(function(){
$('body,html').animate({scrollTop: $("#JamGig").offset().top});
});
$(".Rob").click(function(){
$('body,html').animate({scrollTop: $("#Rob").offset().top});
});
$(".btn").click(function(){
$('body,html').animate({scrollTop: $("#news").offset().top});
});
$(".gigs").click(function(){
$('body,html').animate({scrollTop: $("#gigs").offset().top});
});
$(".sticker").click(function(){
$('body,html').animate({scrollTop: $("#sticker").offset().top});
});
$(".spazz").click(function(){
$('body,html').animate({scrollTop: $("#spazz").offset().top});
});
$(".betei").click(function(){
$('body,html').animate({scrollTop: $("#betei").offset().top});
});
});<file_sep>'use strict';
angular.module('ctcBand.musik', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/musik', {
templateUrl: 'view/Musik/musik.html',
controller: 'MusikCtrl'
});
}])
.factory('ServiceHelper', ['$sce', '$location', function($sce, $location){
return {
renderHtml: function(html) {
return $sce.trustAsHtml(html);
}
};
}])
.controller('MusikCtrl', ['$scope','$http', 'ServiceHelper',
function($scope,$http, ServiceHelper) {
$scope.showLightbox = false;
$scope.showVideoPlayer = false;
$http.get('public/img/gal.php')
.success(function(data){
$scope.imageList = angular.fromJson(data);
});
$http.get('public/videos.json')
.success(function(data){
console.log(data);
$scope.videos = data;
});
$scope.selectImage = function(img){
$scope.selectedImage = img;
$scope.showLightbox = true;
}
$scope.closeLightbox = function(){
$scope.showLightbox = false;
}
$scope.selectVideo = function(vid){
$scope.youtube = ' <iframe id="ytplayer" type="text/html" width="800" height="450" src="http://www.youtube.com/embed/?';
$scope.youtube += vid;
$scope.youtube += 'autoplay=1&controls=0&color=white&theme=light" frameborder="0" allowfullscreen>';
$scope.youtubeFrame = ServiceHelper.renderHtml($scope.youtube);
$scope.showVideoPlayer = true;
}
$scope.closeVideoPlayer = function(){
$scope.showVideoPlayer = false;
}
}]);<file_sep>'use strict';
angular.module('ctcBand.gigs', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/gigs', {
templateUrl: 'view/Gigs/gigs.html',
controller: 'GigsCtrl'
});
}])
.controller('GigsCtrl', ['$scope','$http',function($scope,$http) {
$http.get('public/news.json')
.success(function(data){
$scope.news = data;
});
}]);<file_sep>// sample plugin
.directive('pluginSample', function($rootScope){
return{
restrict: 'E',
transclude: true,
scope: {
id: '@',
class: '@',
attr1: '@',
attr2: '@'
},
templateUrl: 'templates/plugin/sample.html',
link: function(scope, element, attr){}
}
})<file_sep>// page controller
.controller('PageCtrl', function($scope, $location, $rootScope, $attrs) {
// set user
$scope.user = $rootScope.user;
$rootScope.timeStamp = '';
// get timestamp (if set)
var t = respond.utilities.getQueryStringByName('t');
// set page variables
var pages = {{pages}};
// get pageid
var pageid = $attrs.page;
// get current page
var page = pages[pageid];
// append a timestamp for previews
if(t != '' && t != undefined){
page.FullStylesheetUrl = page.FullStylesheetUrl + '?t='+t;
$rootScope.timeStamp = '?t='+t;
}
// set site variables
var site = {{site}};
// redirect if user is not logged in
if(page.IsSecure == true && $scope.user == null){
console.log('[respond.message] page requires login, user not logged in');
$state.go('login');
}
else if(page.IsSecure == true && $scope.user != null){ // check if the user is allowed to view the site
var isAllowed = false;
// users with All can view the page
if($rootScope.user.CanView == 'All'){
console.log('[respond.message] valid permissions');
isAllowed = true;
}
else if($rootScope.user.CanView.indexOf(page.PageTypeId) != -1){
console.log('[respond.message] valid permissions');
isAllowed = true;
}
if(isAllowed == false){
console.log('[respond.message] invalid permissions');
$state.go('login');
}
else{
console.log('[respond.message] valid permissions');
}
}
// set page to $scope and $rootScope
$scope.page = page
$rootScope.page = page;
// set site to scope and $rootscope
$scope.site = site;
$rootScope.site = $scope.site;
// fallback
$scope.site.ImagesURL = $scope.site.ImagesUrl;
// set fullLogoUrl
$scope.fullLogoUrl = $scope.site.ImagesUrl + $scope.site.LogoUrl;
// set cart to scope
$scope.cart = $rootScope.cart;
// toggle settings
$scope.toggleSettings = function(){
$('body').removeClass('show-cart');
$('body').removeClass('show-search');
$('body').toggleClass('show-settings');
}
// toggle cart
$scope.toggleCart = function(){
$('body').removeClass('show-settings');
$('body').removeClass('show-search');
$('body').toggleClass('show-cart');
}
// toggle search
$scope.toggleSearch = function(){
$('body').removeClass('show-settings');
$('body').removeClass('show-cart');
$('body').toggleClass('show-search');
}
})<file_sep><?php
/**
* API call to pay for a subscription
* @uri /pay/stripe/subscription
*/
class PayStripeSubscriptionResource extends Tonic\Resource {
/**
* @method POST
*/
function pay() {
// get token
$token = Utilities::ValidateJWTToken(apache_request_headers());
// check if token is not null
if($token != NULL){
// parse request
parse_str($this->request->data, $request);
$site = Site::GetBySiteId($token->SiteId);
$siteId = $site['SiteId'];
$email = $site['PrimaryEmail'];
$status = 'Active';
$stripe_token = $request['token'];
$plan = $request['plan'];
// set API key
Stripe::setApiKey(STRIPE_SECRET_KEY);
// create a new customer and subscribe them to the plan
$customer = Stripe_Customer::create(
array(
"card" => $stripe_token,
"plan" => $plan,
"email" => $email)
);
// get back the id and the end period for the plan
$id = $customer->id;
// get subscription information
$subscription = $customer->subscriptions->data[0];
$subscriptionId = $subscription->id;
$stripe_status = $subscription->status;
$stripe_plan = $subscription->plan->id;
$stripe_planname = $subscription->plan->name;
// subscribe to a plan
Site::Subscribe($siteId, $status, $plan, 'stripe', $subscriptionId, $customerId);
// return a json response
return new Tonic\Response(Tonic\Response::OK);
}
else{
return new Tonic\Response(Tonic\Response::UNAUTHORIZED);
}
}
}
?><file_sep>var load_state = {
preload: function() {
game.load.tilemap('map', 'img/map.json', null, Phaser.Tilemap.TILED_JSON);
game.load.image('tiles', 'img/tiles.png');
game.load.spritesheet('player', 'img/player.png',32,64);
//player id ,image, width, height
},
create: function(){
this.game.state.start('menu');
}
}<file_sep>// init State for Nadion template
//
// Copyright 2013 <NAME>
//
// 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.
"use strict";
MyGame.Init = (function()
{
function preload()
{
// load the "preload" sprit
this.game.load.image( 'preload', 'assets/img/loading.png' );
// load the assets we need for the splash/menu state
this.game.load.image( 'logo', 'assets/img/start.jpg' );
this.game.load.image( 'logo-text', 'assets/img/start-text.png' );
this.game.load.image( 'plane', 'assets/img/plane.png' );
this.game.load.image( 'cloud', 'assets/img/cloud.png' );
this.game.load.audio( 'logo-fx', ['assets/snd/intro.mp3', 'assets/snd/intro.ogg'] );
}
function create()
{
MyGame.myTimer = this.game.time.events.loop(Phaser.Timer.SECOND, updateCounter, this);
// (WebGL doesn't have a context and can't do this)
if( this.game.context )
Phaser.Canvas.setSmoothingEnabled( this.game.context, false );
// we'll redraw the entire screen every time, no need to clear
this.game.stage.clear = false;
// desktop settings
if( this.game.device.desktop )
{
this.game.stage.scaleMode = Phaser.StageScaleMode.SHOW_ALL;
// don't scale below actual size
this.game.stage.scale.minWidth = Nadion.VIEW_WIDTH;
this.game.stage.scale.minHeight = Nadion.VIEW_HEIGHT;
// scale up to 1.5x maximum
this.game.stage.scale.maxWidth = Nadion.VIEW_WIDTH * 1.5;
this.game.stage.scale.maxHeight = Nadion.VIEW_HEIGHT * 1.5;
this.game.stage.scale.forceLandscape = true;
this.game.stage.scale.pageAlignHorizontally = true;
this.game.stage.scale.setScreenSize( true );
}
// TODO: wait for our sound(s) to be loaded
//while( !this.cache.isSoundDecoded( 'logo-fx' ) ) {}
this.logo = this.game.add.sprite( 0, 0, 'logo' );
//Start Intro Animation Sequence
this.logo.alpha = 0;
this.tween = this.game.add.tween( this.logo )
.to ({ alpha : 1 }, 0, Phaser.Easing.Sinusoidal.In )
.start();
this.tween.onComplete.addOnce( startplane, this );
// play the start-screen music
this.music = this.game.add.audio( 'logo-fx', 1, true );
this.music.play( '', 0, 0.5 );
this.game.stage.backgroundColor = '#333333';
this.ready = false;
}
function startplane(){
this.plane = this.game.add.sprite(800,0,'plane');
this.tween = this.game.add.tween( this.plane )
.to({ x : -1000, y: 1000 }, 4000, Phaser.Easing.Sinusoidal.In )
.start();
this.tween.onComplete.addOnce( explode, this );
}
function explode(){
this.cloud = this.game.add.sprite(10,500,'cloud');
this.tween = this.game.add.tween( this.cloud )
.to({ y: 350, alpha: 0 }, 1000, Phaser.Easing.Sinusoidal.In )
.start();
this.tween.onComplete.addOnce( showtext, this );
}
function showtext(){
this.cloud = this.game.add.sprite(0,-500,'logo-text');
this.tween = this.game.add.tween( this.cloud )
.to({ y: 0,x:0, alpha: 1 }, 1000, Phaser.Easing.Sinusoidal.In )
.start();
this.tween.onComplete.addOnce( onReady, this );
}
function onReady()
{
this.ready = true;
}
function update()
{
while( !this.ready ) return;
if( this.game.input.keyboard.isDown( Phaser.Keyboard.ENTER ) || this.game.input.keyboard.isDown( Phaser.Keyboard.SPACEBAR ) || this.game.input.pointer1.isDown )
{
this.game.sound.stopAll();
this.game.state.add( 'level-1', new MyGame.Level_1, true );
$('#hud').show();
//$('#hud>#counter').hide();
}
}
function updateCounter()
{
MyGame.counter = MyGame.counter +1;
MyGame.globalcounter = MyGame.globalcounter +1;
$('#hud>#counter').html(MyGame.counter);
}
// return public API for this module
return {
preload : preload,
create : create,
update : update
};
})();
<file_sep><!DOCTYPE html>
<html>
<head>
<title>tp-itservice · Webdesign aus Ulm </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="Sie suchen einen Webentwickler aus Ulm/Neu Ulm für ein Redesign, Optimierungen oder ein neues Homepage-Konzept, dann sind Sie hier genau richtig. Ich biete Ihnen einfache moderne IT Lösungen unter Verwendung neuster Webtechnologien wie HTML5, CSS3, AJAX, PHP, RespondCMS, Lavarel, Django, NodeJs, Python, SQL und mehr.">
<meta name="author" content="<NAME>">
<meta http-equiv="cache-control" content="max-age=3600">
<meta name="robots" content="index, follow">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<div class="row services cms ">
<div class="col-1"><img alt="cms" class="wow bounceInDown" data-wow-delay="1s" src="img/respond1.png"></div>
</div>
<div class=" center-text ">
<h2 class="wow bounceInLeft">C<span class="muted">ontent</span> M<span class="muted">anagement</span> S<span class="muted">ysteme</span></h2>
<p>Ein ContentmanagementSystem kurz CMS dient der einfachen Verwaltung Ihrer Homepage. Die Pflege und Aktualisierung von Inhalten ist mit benutzerfreundlichen Lösungen wie RespondCMS nicht schwieriger wie Textverarbeitung in Word. Unübersichtliche und komplizierte Dialoge wie in vergleichbaren Lösungen gehören der Vergangenheit an. Lassen Sie sich ein unverbindliches Angebot machen und Probieren Sie es selbst aus. </p>
</div>
<div class="row services konzept">
<div class="col-1"><img alt="konzept" class="wow bounceInLeft" data-wow-delay="1s"src="img/konzept.png"></div>
</div>
<div class=" center-text">
<h2 class=" wow bounceInRight" data-wow-delay="1s">Homepagekonzeption · · · <span class="muted">Beginn bei null</span> </span></h2>
<p>Sie haben eine Idee, eine Firma oder wollen für sich persönlich eine neue Präsenz im Internet. Dann holen Sie sich professionelle Hilfe bei der Konzeption und Erstellung Ihrer neuen Internetseite. Egal ob bei gestalterischen oder technischen Fragen Sie erhalten die Unterstützung die Sie benötigen.</p>
</div>
<div class="row services app">
<div class="col-1"><img class="wow bounceInLeft" data-wow-delay="1s" alt="apps" src="img/app.png"></div>
</div>
<div class="center-text">
<h2 class="wow bounceInLeft" data-wow-delay="1s">Web Applikationen · · · <span class="muted">arbeiten im Browser</span> </span></h2>
<p>Sie möchten produktiv von überall an ihrem Projekt arbeiten können? </p>
<p> Webapplikationen machen es möglich. Egal ob am Pc, im Büro oder am Tablet zu Hause. Mit Webapplikationen nehmen Sie ihr Projekt überall mit hin und können zu jeder Zeit, an jedem Ort produktiv sein.</p>
</div>
<div class="row services redesign">
<div class="col-1" id="redesign"><img alt="redesign" src="img/alt.png"></div>
</div>
<div id="redesign-trigger" class=" center-text">
<h2 id="redesign-header" class="wow bounceInLeft" data-wow-delay="1s">Homepage Redesign · · · <span class="muted"> Aus alt mach neu</span></h2>
<p>Bei einem Homepage Redesign bleibt der Inhalt Ihrer Seite weites gehend gleich. Die Gestaltung der Seite wird aber komplett überarbeitet. Darunter Fällt das Layout, Typografie, Bilder und Logos. Nach einem Redesign ist Ihre Homepage wieder auf dem optischen und technischen Stand der Zeit. Verabschieden Sie sich von Ihrer alten Homepage und lassen Sie sich ein faires Angebot machen. </p>
</div>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="js/angebot.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript">
new WOW().init();
</script>
</body>
</html><file_sep>//
// Copyright 2013 <NAME>
//
// 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.
(function()
{
"use strict";
var ShamanStates = [
{
'name':'inactive',
'initial':true,
'events' :
{
'intro':'introtext',
'learn':'learntext',
'door3':'door3text',
'findmap':'maptext',
'monster':'monstertext',
'climbtut':'climbtext',
'pickuptut':'pickuptext',
'gatetut':'gatetext',
'picturetut':'picturetext'
}
},
{
'name': 'introtext',
'events' :
{
}
},
{
'name': 'learntext',
'events' :
{
}
}
];
MyGame.Shaman = function (game,name,x,y,width,height,props)
{
Nadion.BaseSprite.call( this, game, 'shaman', name, x, y, width, height, props );
this.fsm = new Nadion.StateMachine( ShamanStates, this );
this.state= props['state'];
this.talk = "";
this.body.width = 32;
this.body.height = 64;
}
MyGame.Shaman.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.Shaman, Nadion.BaseSprite );
MyGame.Shaman.prototype.constructor = MyGame.Shaman;
MyGame.Shaman.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
this.body.velocity.x = 0;
this.body.collideWorldBounds = true;
};
MyGame.Shaman.prototype.introtext = function()
{
var text = "Willkommen in meinem Reich. Ich bin der <i>Schamane der Bilder</i> und dies ist mein <i>Dschungel der Bildfunktionen</i>. ";
text+= "<i>Bilder</i> sind nicht einfach nur <i>Bilder</i> ... jedes <i>Bild</i> hat eine <i>Funktion</i>. <br>";
text+= "Um durch mein Reich zu gelangen finde die <i>Bilder</i>, die hier im Dschungel versteckt sind und deute ihre <i>Funktion</i>. <br>";
text+= "Doch Achtung!<br> Hast du ein Bild erst einmal an dich genommen bleibt dir nicht unbegrenzt Zeit.";
text+= "Meine <i>Bilder</i> merken wenn du dich auf falschem Weg befindest und kehren zurück an ihren Ursprungsort. <br>";
text+= "Bist du aber schlau und schnell genug werden die <i>Bilder</i> als Schlüssel für die Tore dienen die dir sonst den Weg versperren. <br>";
text+= "Mein Reich umfasst vier verschiedene Ebenen. Jede dieser Ebenen steht für eine <i>Bildfunktion</i>. ";
text+= "Löse meine Aufgabe ... finde die <i>Bilder</i> und wähle den richtigen Weg! <br>";
text+= "<br><br>(weiter mit - Enter -)"
this.talk = text;
};
MyGame.Shaman.prototype.learntext = function()
{
var text = "";
text += "Gut gemacht ... du hast alle vier Ebenen meines Dschungels entdeckt. "
text += "Aber glaube nicht das ich es dir weiterhin so leicht machen werde! "
text += "Deine Prüfung hat gerade erst begonnen!"
text += "<br><br>(weiter mit - Enter -)"
this.talk = text;
};
})()<file_sep><?php
class HomeController extends BaseController {
//Player Controller
public function start()
{
$eingang = Questionnaire::where('name', '=', 'eingang')->first();
return View::make('welcome', array('eingang' => $eingang));
}
public function createplayer(){
$newplayer = new Player;
$newplayer->gender = Input::get('gender');
$newplayer->semester = Input::get('semester');
$newplayer->type = "postiv";
$newplayer->save();
$eingang = Questionnaire::where('name', '=', 'eingang')->first();
foreach ($eingang->question as $q) {
$qfield = 'q'.$q->id;
$a = new Answer;
$a->player_id = $newplayer->id;
$a->question_id = $q->id;
$a->answer = Input::get($qfield);
$a->questionnaire_id = $eingang->id;
$a->save();
}
//return View::make('game-n', array('newplayer' => $newplayer));
$pca = $newplayer->answers[0]->answer;
$lawa = $newplayer->answers[1]->answer;
if($pca <= 4){
$pc = 'Nein';
}else{
$pc = 'Ja';
}
if($lawa <= 4){
$law = 'Nein';
}else{
$law = 'Ja';
}
$gender = $newplayer->gender;
if($pc == 'Nein' && $law == 'Nein' && $gender == 'weiblich'){
$newplayer->type = 1;
}elseif($pc == 'Nein' && $law == 'Nein' && $gender == 'männlich'){
$newplayer->type = 2;
}elseif($pc == 'Nein' && $law == 'Ja' && $gender == 'weiblich'){
$newplayer->type = 3;
}elseif($pc == 'Nein' && $law == 'Ja' && $gender == 'männlich'){
$newplayer->type = 4;
}elseif($pc == 'Ja' && $law == 'Nein' && $gender == 'weiblich'){
$newplayer->type = 5;
}elseif($pc == 'Ja' && $law == 'Nein' && $gender == 'männlich'){
$newplayer->type = 6;
}elseif($pc == 'Ja' && $law == 'Ja' && $gender == 'weiblich'){
$newplayer->type = 7;
}elseif($pc == 'Ja' && $law == 'Ja' && $gender == 'männlich'){
$newplayer->type = 8;
}
$newplayer->save();
$typcounts = [
"negativ" => Player::where('gametype','=', 'negativ')->where('type','=', $newplayer->type)->count(),
"positiv" => Player::where('gametype','=', 'positiv')->where('type','=', $newplayer->type)->count(),
"neutral" => Player::where('gametype','=', 'neutral')->where('type','=', $newplayer->type)->count()
];
$min_value_typcounts=array_keys($typcounts, min($typcounts));
$counts = [
"negativ" => Player::where('gametype','=', 'negativ')->count(),
"positiv" => Player::where('gametype','=', 'positiv')->count(),
"neutral" => Player::where('gametype','=', 'neutral')->count()
];
$min_value_counts=array_keys($counts, min($counts));
$max_value_counts=array_keys($counts, max($counts));
switch ($min_value_typcounts[0]) {
case 'negativ':
if($counts[$max_value_counts[0]] - $counts[$min_value_counts[0]] > 1){
switch ($min_value_counts[0]) {
case 'negativ':
$newplayer->gametype = 'negativ';
$newplayer->save();
return View::make('game-n', array('newplayer' => $newplayer));
break;
case 'positiv':
$newplayer->gametype = 'positiv';
$newplayer->save();
return View::make('game-p', array('newplayer' => $newplayer));
break;
case 'neutral':
$newplayer->gametype = 'neutral';
$newplayer->save();
return View::make('game', array('newplayer' => $newplayer));
break;
default:
# code...
break;
}
}else{
$newplayer->gametype = 'negativ';
$newplayer->save();
return View::make('game-n', array('newplayer' => $newplayer));
}
break;
case 'positiv':
if($counts[$max_value_counts[0]] - $counts[$min_value_counts[0]] > 1){
switch ($min_value_counts[0]) {
case 'negativ':
$newplayer->gametype = 'negativ';
$newplayer->save();
return View::make('game-n', array('newplayer' => $newplayer));
break;
case 'positiv':
$newplayer->gametype = 'positiv';
$newplayer->save();
return View::make('game-p', array('newplayer' => $newplayer));
break;
case 'neutral':
$newplayer->gametype = 'neutral';
$newplayer->save();
return View::make('game', array('newplayer' => $newplayer));
break;
default:
# code...
break;
}
}else{
$newplayer->gametype = 'positiv';
$newplayer->save();
return View::make('game-p', array('newplayer' => $newplayer));
}
break;
case 'neutral':
if($counts[$max_value_counts[0]] - $counts[$min_value_counts[0]] > 1){
switch ($min_value_counts[0]) {
case 'negativ':
$newplayer->gametype = 'negativ';
$newplayer->save();
return View::make('game-n', array('newplayer' => $newplayer));
break;
case 'positiv':
$newplayer->gametype = 'positiv';
$newplayer->save();
return View::make('game-p', array('newplayer' => $newplayer));
break;
case 'neutral':
$newplayer->gametype = 'neutral';
$newplayer->save();
return View::make('game', array('newplayer' => $newplayer));
break;
default:
# code...
break;
}
}else{
$newplayer->gametype = 'neutral';
$newplayer->save();
return View::make('game', array('newplayer' => $newplayer));
}
break;
}
}
public function writedata()
{
$level = new Level;
$level->score = Input::get('taskTimes');
$level->mistakes = Input::get('mistakes');
$level->hits = Input::get('hits');
$level->info = Input::get('info');
$level->player_id = Input::get('player');
$level->save();
return View::make('empty');
}
public function midquestions()
{
$questionnaire = Questionnaire::where('name', '=', 'mittel')->first();
$toanswer = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
$playerid = Input::get('player');
return View::make('midquestions', array('toanswer' => $toanswer, 'player' => $playerid ));
}
public function midquestionsdone()
{
$questionnaire = Questionnaire::where('name', '=', 'mittel')->first();
$questions = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
$playerid = Input::get('player');
foreach ($questions as $q) {
$answer = new Answer;
$answername = 'field' . $q->id;
$answer->answer = Input::get($answername);
$answer->player_id = $playerid;
$answer->question_id = $q->id;
$answer->questionnaire_id = $questionnaire->id;
$answer->save();
}
return View::make('empty');
}
public function end()
{
$player_id = Input::get('player');
$player = Player::find($player_id);
$player->save();
$questionnaire = Questionnaire::where('name', '=', 'end')->first();
$toanswer = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
return View::make('endquestions', array('toanswer' => $toanswer, 'player' => $player_id));
}
public function enddone()
{
$questionnaire = Questionnaire::where('name', '=', 'end')->first();
$questions = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
$playerid = Input::get('player');
foreach ($questions as $q) {
$answer = new Answer;
$answername = 'field' . $q->id;
$answer->answer = Input::get($answername);
$answer->player_id = $playerid;
$answer->question_id = $q->id;
$answer->questionnaire_id = $questionnaire->id;
$answer->save();
}
return View::make('test', array('player' => $playerid));
}
public function endtest()
{
$questions = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
$playerid = Input::get('player');
foreach ($questions as $q) {
$answer = new Answer;
$answername = 'field' . $q->id;
$answer->answer = Input::get($answername);
$answer->player_id = $playerid;
$answer->question_id = $q->id;
$answer->questionnaire_id = $questionnaire->id;
$answer->save();
}
return View::make('test', array('player' => $playerid));
}
public function endtestdone()
{
$score = 0;
if(Input::get('aenlich1') == "Ähnlichkeit"){
$score = $score+1;
}
if(Input::get('geschlossenheit1') == "Geschlossenheit"){
$score = $score+1;
}
if(Input::get('praegnanz1') == "Prägnanz"){
$score = $score+1;
}
if(Input::get('fortsetzung1') == "Fortsetzung"){
$score = $score+1;
}
if(Input::get('aenlich2') == "Ähnlichkeit"){
$score = $score+1;
}
if(Input::get('geschlossenheit2') == "Geschlossenheit"){
$score = $score+1;
}
if(Input::get('praegnanz2') == "Prägnanz"){
$score = $score+1;
}
if(Input::get('fortsetzung2') == "Fortsetzung"){
$score = $score+1;
}
$player = Player::find(Input::get('player'));
$player->endtestscore = $score;
$player->save();
return View::make('thanks', array('player' => $player->id));
}
//Admin Controller
public function adminstart()
{
return View::make('adminstart');
}
public function admin()
{
$quests = Questionnaire::all();
$quest = Questionnaire::all()->first();
$questions = Question::where('questionnaire_id', '=', $quest->id)->get();
return View::make('admin2', array('quests' => $quests, 'quest' => $quest, 'questions' => $questions));
}
public function adminchange()
{
$quests = Questionnaire::all();
$select = Input::get('selection');
$quest = Questionnaire::where('name', '=', $select)->first();
$questions = Question::where('questionnaire_id', '=', $quest->id)->get();
return View::make('admin2', array('quests' => $quests, 'quest' => $quest, 'questions' => $questions));
}
public function adminNeueFrage()
{
$qid = Input::get("qid");
$quest = Questionnaire::where('id', '=', $qid)->first();
$newQuestion = new Question;
$newQuestion->question = Input::get('neueFrage');
$newQuestion->questionnaire_id = $qid;
$newQuestion->save();
$toanswer = Question::all();
return Redirect::to('adminstart/admin');
}
public function adminBearbeite()
{
$qid = Input::get("qid");
$questions = Question::where('questionnaire_id', '=', $qid)->get();
foreach ($questions as $q) {
$q->questionnaire_id = $qid;
$fieldname = "field".$q->id;
$q->question =Input::get($fieldname);
$q->save();
if(($q->question) == "x"){
$q->delete();
}
}
$questions = Question::where('questionnaire_id', '=', $qid)->get();
return Redirect::to('adminstart/admin');
}
public function results(){
$players = Player::all();
$answers = Answer::all();
$questions = Question::all();
return View::make('results', array('players' => $players, 'answers' => $answers, 'questions' => $questions));
}
public function resultsonly(){
$answers = Answer::all();
$questions = Question::all();
return View::make('resultsonly', array('answers' => $answers, 'questions' => $questions));
}
public function questionsdone(){
$questions = Question::all();
$playerid = Input::get('player');
foreach ($questions as $q) {
$answer = new Answer;
$answername = 'field' . $q->id;
$answer->answer = Input::get($answername);
$answer->player_id = $playerid;
$answer->question_id = $q->id;
$answer->save();
}
return View::make('thanks');
}
public function statistics(){
$counts = [
"negativ" => Player::where('gametype','=', 'negativ')->count(),
"positiv" => Player::where('gametype','=', 'positiv')->count(),
"neutral" => Player::where('gametype','=', 'neutral')->count()
];
echo "Anzahl aktuell: n " . $counts["negativ"] . ' p ' . $counts["positiv"] ." neutral " . $counts['neutral'] . '<br>'
."<br>"."Anzahl 1: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"1")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"1")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"1")->count()
."<br>"."Anzahl 2: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"2")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"2")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"2")->count()
."<br>"."Anzahl 3: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"3")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"3")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"3")->count()
."<br>"."Anzahl 4: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"4")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"4")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"4")->count()
."<br>"."Anzahl 5: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"5")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"5")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"5")->count()
."<br>"."Anzahl 6: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"6")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"6")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"6")->count()
."<br>"."Anzahl 7: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"7")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"7")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"7")->count()
."<br>"."Anzahl 8: " .' negativ '. Player::where('gametype','=', 'negativ')->where('type','=',"8")->count().' neutral '. Player::where('gametype','=', 'neutral')->where('type','=',"8")->count() .' positiv '. Player::where('gametype','=', 'positiv')->where('type','=',"8")->count()
;
}
}
<file_sep><!DOCTYPE html>
<html>
<head>
<title>tp-itservice · Portfolio und Referenzen </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="description" content="Meine Referenzen sind: Der Karikaturist und Schnellzeichner <NAME>, die Firma German Gulf Medical Service, die Band Cheerful To Cloudy und die Firma FPS Informationssysteme GmbH">
<meta name="author" content="<NAME>">
<meta http-equiv="cache-control" content="max-age=3600">
<meta name="robots" content="index, follow">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<div class="row" id="blockr">
<div class="col-2 wow fadeInUp" data-wow-delay="1.2s">
<a href="#"><img src="img/blockr.png" alt="blockr app"></a>
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="1.2s">
<h2>Interaktive Systeme II</h2>
<h3>Anwendungsfach an der Universität Ulm</h3>
<p>Augmented Reality Assistenzsystem für Anleitungen</p>
<p>Universal App erstellt in Unity</p>
<p>3d Modelle, Animationen und Sprachausgabe</p>
</div>
</div>
<div class="row" id="rundm">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<a href="#"><img src="img/riegermoser.png" alt="rieger und moser"></a>
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<h2>Homepage Redesign</h2>
<h3>Rieger und Moser Ulm</h3>
<p>Migration der Homepage in ein Respond CMS</p>
<p>Erstellen eines responsive Themes</p>
<p>Dynamisches Kontaktformular</p>
</div>
</div>
<div class="row" id="gg">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<a href="http://german-gulf.de/" title="laufendes Projekt"><img id="gg-img" src="img/mgg.png" alt="German Gulf Medical Service Homepage"></a>
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s" id="gg-txt">
<h2>Redesign</h2>
<h3>German Gulf Medical Service</h3>
<p>Statisches mehrspaltiges Layout</p>
<p>Horizontale und vertikale Content-Slideshows</p>
<p>Optimierung auf verschiedene Browser z.B. Internetexplorer</p>
</div>
</div>
<div class="row" id="mueller">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<a href="http://www.karikaturist-schnellzeichner.eu" title="zur Homepage von <NAME>"><img src="img/msz.png" alt="<NAME>ller schnellzeichner"></a>
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<h2>Content Pflege</h2>
<h3><NAME> - Schnellzeichner</h3>
<p>Aktualisierung von Inhalten</p>
<p>Formatierung von Texten und Bildern in HTML</p>
<p>Recherche Arbeiten</p>
</div>
</div>
<div class="row" id="ctc">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<a href="http://www.ctc-band.com" title="zur Band-Homepage von Cheerful to Cloudy"><img id="ctc-img" src="img/mctc.png" alt="Cheerful to Cloudy Bandhomepage"></a>
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s" id="ctc-txt">
<h2>Homepage</h2>
<h3>Cheerful to Cloudy</h3>
<p>Responsive Layout</p>
<p>Optimiert auf Tablets und Handys</p>
<p>Bildergalerie, Videos und Audio</p>
</div>
</div>
<div class="row" id="da">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<img id="da-img" src="img/mda.png" alt="deviantART Redesign">
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s" id="da-txt">
<h2>Interaktive Systeme I</h2>
<h3>Anwendungsfach an der Universität Ulm</h3>
<p>Redesign Deviant Art</p>
<p>LightBox Plus mit dynamischen und animierten Menüelementen</p>
<p>Tag-Suche mit Filtern, Sortierungen, Inklusion und Exklusion</p>
</div>
</div>
<div class="row" id="sopra">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<img id="sopra-img" src="img/msopra.png" alt="Sopra Uni Ulm">
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s" id="sopra-txt">
<h2>ModulmanagementSystem</h2>
<h3>Universitäts- Projekt - SoftwareTechnik/SoftwareProjekt </h3>
<p>Online Redaktionssystem für die Modulverwaltung der Uni Ulm</p>
<p>Implementiert mit Python, HTML5, Javascript und Mysql</p>
<p>Unterstützt ein dynamisches Datenbankmodell</p>
</div>
</div>
<div class="row" id="fps">
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s">
<a href="http://www.fps.de" title="zur Homepage von der FPS Informationssysteme GmbH"><img id="fps-img" src="img/mfps.png" alt="fps logo"></a>
</div>
<div class="col-2 wow fadeInUp" data-wow-delay="0.7s" id="fps-txt">
<h2>Ausbildung als It-Systemelektroniker</h2>
<h3>bei der FPS Informationssysteme GmbH</h3>
<p>Betreuung von Homepages mit Typo3</p>
<p>Wartung von Server Hard- und Software</p>
<p>Betreuung der EDV von Schulen und Gemeinde im Landkreis Schweinfurt</p>
</div>
</div>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="js/port.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript">
new WOW().init();
</script>
</body>
</html>
<file_sep><?php
class HomeController extends BaseController {
//Player Controller
public function playerstart()
{
$players = Player::all();
return View::make('welcome', array('players' => $players));
}
public function playername(){
$eingang = Questionnaire::where('name', '=', 'eingang')->first();
$newplayer = new Player;
$newplayer->gender = Input::get('gender');
$newplayer->age = Input::get('age');
$newplayer->save();
return View::make('game', array('newplayer' => $newplayer));
}
public function questionsdone(){
$questions = Question::all();
$playerid = Input::get('player');
foreach ($questions as $q) {
$answer = new Answer;
$answername = 'field' . $q->id;
$answer->answer = Input::get($answername);
$answer->player_id = $playerid;
$answer->question_id = $q->id;
$answer->save();
}
return View::make('thanks');
}
public function midquestions()
{
$questionnaire = Questionnaire::where('name', '=', 'mittel')->first();
$toanswer = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
return View::make('midquestions', array('toanswer' => $toanswer));
}
public function midquestionsdone()
{
$questionnaire = Questionnaire::where('name', '=', 'mittel')->first();
$questions = Question::where('questionnaire_id', '=', $questionnaire->id)->get();
$playerid = Input::get('player');
foreach ($questions as $q) {
$answer = new Answer;
$answername = 'field' . $q->id;
$answer->answer = Input::get($answername);
$answer->player_id = $playerid;
$answer->question_id = $q->id;
$answer->questionnaire_id = $questionnaire->id;
$answer->save();
}
return View::make('empty');
}
//Admin Controller
public function adminstart()
{
return View::make('adminstart');
}
public function admin()
{
$quests = Questionnaire::all();
$quest = Questionnaire::all()->first();
$questions = Question::where('questionnaire_id', '=', $quest->id)->get();
return View::make('admin2', array('quests' => $quests, 'quest' => $quest, 'questions' => $questions));
}
public function adminchange()
{
$quests = Questionnaire::all();
$select = Input::get('selection');
$quest = Questionnaire::where('name', '=', $select)->first();
$questions = Question::where('questionnaire_id', '=', $quest->id)->get();
return View::make('admin2', array('quests' => $quests, 'quest' => $quest, 'questions' => $questions));
}
public function adminNeueFrage()
{
$qid = Input::get("qid");
$quest = Questionnaire::where('id', '=', $qid)->first();
$newQuestion = new Question;
$newQuestion->question = Input::get('neueFrage');
$newQuestion->questionnaire_id = $qid;
$newQuestion->save();
$toanswer = Question::all();
return Redirect::to('adminstart/admin');
}
public function adminBearbeite()
{
$qid = Input::get("qid");
$questions = Question::where('questionnaire_id', '=', $qid)->get();
foreach ($questions as $q) {
$q->questionnaire_id = $qid;
$fieldname = "field".$q->id;
$q->question =Input::get($fieldname);
$q->save();
if(($q->question) == "x"){
$q->delete();
}
}
$questions = Question::where('questionnaire_id', '=', $qid)->get();
return Redirect::to('adminstart/admin');
}
public function results(){
$players = Player::all();
$answers = Answer::all();
$questions = Question::all();
return View::make('results', array('players' => $players, 'answers' => $answers, 'questions' => $questions));
}
public function resultsonly(){
$answers = Answer::all();
$questions = Question::all();
return View::make('resultsonly', array('answers' => $answers, 'questions' => $questions));
}
}
<file_sep>"use strict";
(function()
{
MyGame.Level_5 = function ()
{
// call the super-class constructor
Nadion.Level.call( this );
this.tile_width = 32;
this.tile_height = 32;
// tilemap
this.tilemap = 'assets/maps/level-mid5.json';
// tileset
this.tileset_url = 'assets/img/tiles.png';
// spritesheets
this.spritesheets =
[
{
name: 'player',
url: 'assets/img/rossiwalk.png',
width: 32,
height:64
}, {
name: 'fire',
url: 'assets/img/fire.png',
width: 32,
height:64
},
{
name: 'pickup',
url: 'assets/img/pickup2.png',
width: 32,
height:32
},
{
name: 'shaman',
url: 'assets/img/schamane.png',
width: 32,
height:64
},
{
name: 'fighter',
url: 'assets/img/fighter.png',
width: 32,
height:62
},
{
name: 'walker',
url: 'assets/img/tiger.png',
width: 32,
height:32
},
{
name: 'challenge',
url: 'assets/img/gate.png',
width: 64,
height:256
}
];
// images
this.images =
[
{
name: 'background',
url: 'assets/img/bg.jpg',
width: 1024,
height: 512
},
];
// sound fx
// (sans extension, must exist as both mp3 & ogg
// extension will be added in code)
this.sounds =
[
{
name: 'main-music-loop',
url: 'assets/snd/bodenstaendig_2000_in_rock_4bit',
volume: 0
},
{
name: 'phaser',
url: 'assets/snd/phaser',
volume: 1
}
];
// background music/soundtrack
var bg_music_idx = Nadion.findNamedItemInArray( this.sounds, 'main-music-loop' );
if( bg_music_idx !== undefined )
this.background_music = this.sounds[bg_music_idx];
// background color
this.background_color = '#333';
// set the game_namespace, which is where the Tiled object creation
// code will look for your object types (it will fall-back to Nadion
// and then the global namespace)
this.game_namespace = MyGame;
// if you set the loading font style to a bitmap font,
// the percentage loaded will display along with the 'loading' png
//this.loading_text_style = { font: "My_Bitmap_Font", align: "center" };
};
MyGame.Level_5.prototype = Object.create( Nadion.Level );
Nadion.__extends( MyGame.Level_5, Nadion.Level );
MyGame.Level_5.prototype.constructor = MyGame.Level_5;
})();
<file_sep>angular.module('respond.filters', [])
.filter('notags', function() {
return function(text) {
if(text === '' || text === null)return i18n.t('No tags');
else return text;
}
})
.filter('fromNow', function() {
return function(text) {
var st = moment.utc(text, 'YYYY-MM-DD HH:mm:ss');
return st.fromNow();
}
})
.filter('prettyDate', function() {
return function(text) {
var st = moment.utc(text, 'YYYY-MM-DD HH:mm:ss');
return st.format('MMM Do YYYY, h:mm:ss a');
}
})
.filter('daysLeft', function() {
return function(text) {
var now = moment.utc();
var st = moment.utc(text, 'YYYY-MM-DD HH:mm:ss');
var difference = 30 - now.diff(st, 'days');
if(difference < 0){
difference = 0;
}
return difference;
}
})
.filter('toid', function() {
return function(text) {
var text = text.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()]/g, '');
return text.replace(/\s+/g, '-').toLowerCase();
}
})
.filter('toHuman', function(){
return function(text) {
if(text != undefined){
return text.charAt(0).toUpperCase() + text.substr(1);
}
else return text;
}
})
;
<file_sep><?php
class Player extends Eloquent{
protected $fillable = array('gender','semester', 'type', 'gametype','endtestscore');
public function answers() {
return $this -> hasMany('Answer');
}
public function levels() {
return $this -> hasMany('Level');
}
} <file_sep>$(document).ready(function(){
var wHeight = $(window).height();
var ContentHeight = $('#gig_content').height();
var mt = (wHeight - ContentHeight) * 0.5;
$('.herorow').height(wHeight);
$('#gig_content').css({'margin-top':mt});
$('.gallery>img').click(function(){
$(document).scrollTop(0);
$('.overlay').removeClass('hidden');
document.documentElement.style.overflow = 'hidden';
document.body.scroll = "no";
$('#hero').attr('src',$(this).attr('src'));
console.log($(this));
})
$('.overlay').click(function(){
$('.overlay').addClass('hidden');
document.documentElement.style.overflow = 'scroll';
document.body.scroll = "yes";
})
});<file_sep>(function()
{
"use strict";
var motivationStates = [];
MyGame.Obstacle = function (game,name,x,y,width,height,props)
{
Nadion.BaseSprite.call( this, game, 'Obstacle', name, x, y, width, height, props );
this.Obstacletype = props['type'];
}
MyGame.Obstacle.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.Obstacle, Nadion.BaseSprite );
MyGame.Obstacle.prototype.constructor = MyGame.Obstacle;
MyGame.Obstacle.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
this.game.physics.collide( this, game_state.main_layer );
this.body.velocity.x = 1;
this.body.velocity.y = 1;
this.body.gravity.y = 1000;
this.body.collideWorldBounds = true;
};
})()<file_sep><?php
class Question extends Eloquent{
protected $fillable = array('question','questionnaire_id');
public function player() {
return $this -> belongsTo('Questionnaire');
}
} <file_sep><?php
echo '
<a class="navicon"><img src="img/hamburger.svg"></a>
<nav>
<ul id="navigation">
<li><a>Cheerful to Cloudy</a></li>
<li id="nav_index"><a href="index.php">News</a></li>
<li id="nav_band"><a href="band.php">Band</a></li>
<li id="nav_gigs"><a href="gigs.php">Gigs</a></li>
<li id="nav_musik""><a href="musik.php">Musik</a></li>
<li id="nav_bilder" ><a href="bilder.php">Bilder</a></li>
<li id="nav_kontakt" ><a href="kontakt.php">Kontakt</a></li>
<li class="pull-right"><a href="https://www.facebook.com/cheerfultocloudy">f</a></li>
</ul>
</nav>
';<file_sep>angular.module('respond.site.controllers', [])
// app controller
.controller('PageCtrl', function($scope, $state, $location, $rootScope, pageMeta, siteMeta, Site) {
// set user
$scope.user = $rootScope.user;
// redirect if user is not logged in
if(pageMeta.IsSecure == true && $scope.user == null){
console.log('[respond.message] page requires login, user not logged in');
$state.go('login');
}
else if(pageMeta.IsSecure == true && $scope.user != null){ // check if the user is allowed to view the site
var isAllowed = false;
// users with All can view the page
if($rootScope.user.CanView == 'All'){
console.log('[respond.message] valid permissions');
isAllowed = true;
}
else if($rootScope.user.CanView.indexOf(pageMeta.PageTypeId) != -1){
console.log('[respond.message] valid permissions');
isAllowed = true;
}
if(isAllowed == false){
console.log('[respond.message] invalid permissions');
$state.go('login');
}
else{
console.log('[respond.message] valid permissions');
}
}
// set page variables from route meta
var page = {
PageId: pageMeta.PageId,
Url: pageMeta.Url,
FriendlyId: pageMeta.FriendlyId,
Name: pageMeta.Name,
Description: pageMeta.Description,
Keywords: pageMeta.Keywords,
Callout: pageMeta.Callout,
BeginDate: pageMeta.BeginDate,
EndDate: pageMeta.EndDate,
Location: pageMeta.Location,
LatLong: pageMeta.LatLong,
Layout: pageMeta.Layout,
Stylesheet: pageMeta.Stylesheet,
FullStylesheetUrl: pageMeta.FullStylesheetUrl,
Image: pageMeta.Image,
LastModifiedDate: pageMeta.LastModifiedDate,
FirstName: pageMeta.FirstName,
LastName: pageMeta.LastName,
PhotoUrl: pageMeta.PhotoUrl
}
// set page to $scope and $rootScope
$scope.page = page
$rootScope.page = page;
// set site to scope and $rootscope
$scope.site = siteMeta.data;
$rootScope.site = $scope.site;
// fallback
$scope.site.ImagesURL = $scope.site.ImagesUrl;
// set fullLogoUrl
$scope.fullLogoUrl = $scope.site.ImagesUrl + $scope.site.LogoUrl;
// set cart to scope
$scope.cart = $rootScope.cart;
// toggle settings
$scope.toggleSettings = function(){
$('body').removeClass('show-cart');
$('body').removeClass('show-search');
$('body').toggleClass('show-settings');
}
// toggle cart
$scope.toggleCart = function(){
$('body').removeClass('show-settings');
$('body').removeClass('show-search');
$('body').toggleClass('show-cart');
}
// toggle search
$scope.toggleSearch = function(){
$('body').removeClass('show-settings');
$('body').removeClass('show-cart');
$('body').toggleClass('show-search');
}
});<file_sep>
$( document ).ready(function() {
$('nav>ul>li').removeClass('active');
$('nav>ul>li>a[href="angebot.php"]').parent().addClass('active');
$('#redesign-trigger').mouseenter(function(){
$('#redesign>img').attr('src','img/neu.png');
});
$('#redesign-trigger').mouseleave(function(){
$('#redesign>img').attr('src','img/alt.png');
});
}); <file_sep><?php
class Answer extends Eloquent{
protected $fillable = array('answer','player_id','question_id');
public function question() {
return $this -> belongsTo('Question');
}
public function player() {
return $this -> belongsTo('Player');
}
} <file_sep>'use strict';
angular.module('ctcBand.footer', ['ngAudio'])
.controller('FooterCtrl', ['$scope','ngAudio', function($scope,ngAudio){
$scope.sound = ngAudio.load("public/audio/colors.mp3");
$scope.play = function(){
$scope.sound.play();
};
$scope.pause = function(){
$scope.sound.pause();
};
}]);
<file_sep>var game = new Phaser.Game(800, 600, Phaser.AUTO, '');
var score = 0;
game.state.add('load',load_state);
game.state.add('menu',menu_state);
game.state.add('play',play_state);
game.state.start('load');<file_sep><div id="block-1" class="block row jumbotron" data-nested="not-nested" data-containerid="" data-containercssclass="">
<div class="col col-md-12">
<h1 id="h1-1">Simply Beautiful</h1>
<p id="p-1">Chromatic is a simple, yet stunning theme built around a single color.</p>
<div id="image-4" class="respond-image" data-display="standalone">
<img ng-src="{{site.ImagesURL}}files/editor.png">
</div>
<h3 id="h3-1">Listen. Call to Action <a ui-sref="page/contact">Sign Up</a></h3>
</div>
</div>
<div class="container nested-container welcome-block">
<div id="block-2" class="block row" data-nested="nested" data-containerid="" data-containercssclass="nested-container welcome-block">
<div class="col col-md-12">
<h3 id="h3-2">Welcome to the Future</h3>
<p id="p-2">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec venenatis mollis arcu, eget posuere libero faucibus sit amet. Cras pharetra pellentesque augue, id vestibulum nisi pharetra et. Morbi in dapibus leo. Vivamus vehicula risus vel eros interdum et mattis tortor congue. Sed gravida interdum est, sit amet pretium nisl consectetur at.
</p>
</div>
</div>
</div>
<div id="block-5" class="block row callout" data-nested="not-nested" data-containerid="" data-containercssclass="">
<div class="col col-md-9">
<h3 id="h3-7">Beautiful, Dynamic</h3>
<p id="p-8">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec venenatis mollis arcu, eget posuere libero faucibus sit amet. Cras pharetra pellentesque augue, id vestibulum nisi pharetra et. Morbi in dapibus leo. Vivamus vehicula risus vel eros interdum et mattis tortor congue. Sed gravida interdum est, sit amet pretium nisl consectetur at. In hac habitasse platea dictumst. In purus enim, elementum porttitor tincidunt volutpat, fermentum quis ante. Vivamus at est sem, quis ornare lorem. Cras pulvinar est eget nisi iaculis consequat.
</p>
</div>
<div class="col col-md-3">
<div id="image-5" class="respond-image" data-display="standalone">
<img ng-src="{{site.ImagesURL}}files/home-themes.png">
</div>
</div>
</div>
<div id="block-6" class="block row callout" data-nested="not-nested" data-containerid="" data-containercssclass="">
<div class="col col-md-3">
<div id="image-1" class="respond-image" data-display="standalone">
<img ng-src="{{site.ImagesURL}}files/home-tech.png">
</div>
</div>
<div class="col col-md-9">
<h3 id="h3-3">The Latest Tech</h3>
<p id="p-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec venenatis mollis arcu, eget posuere libero faucibus sit amet. Cras pharetra pellentesque augue, id vestibulum nisi pharetra et. Morbi in dapibus leo. Vivamus vehicula risus vel eros interdum et mattis tortor congue. Sed gravida interdum est, sit amet pretium nisl consectetur at.
</p>
</div>
</div>
<div id="block-7" class="block row callout" data-nested="not-nested" data-containerid="" data-containercssclass="">
<div class="col col-md-9">
<h3 id="h3-4">A Better Experience</h3>
<p id="p-4">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec venenatis mollis arcu, eget posuere libero faucibus sit amet. Cras pharetra pellentesque augue, id vestibulum nisi pharetra et. Morbi in dapibus leo. Vivamus vehicula risus vel eros interdum et mattis tortor congue. Sed gravida interdum est, sit amet pretium nisl consectetur at. In hac habitasse platea dictumst. In purus enim, elementum porttitor tincidunt volutpat, fermentum quis ante. Vivamus at est sem, quis ornare lorem. Cras pulvinar est eget nisi iaculis consequat.
</p>
</div>
<div class="col col-md-3">
<div id="image-2" class="respond-image" data-display="standalone">
<img ng-src="{{site.ImagesURL}}files/home-experience.png">
</div>
</div>
</div>
<div class="container nested-container alternate-background-2">
<div id="block-4" class="block row" data-nested="nested" data-containerid="" data-containercssclass="nested-container alternate-background-2">
<div class="col col-md-12">
<h3 id="h3-6">100% Open Source, always.</h3>
<p id="p-6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec venenatis mollis arcu, eget posuere libero faucibus sit amet. Cras pharetra pellentesque augue, id vestibulum nisi pharetra et. Morbi in dapibus leo. Vivamus vehicula risus vel eros interdum et mattis tortor congue. Sed gravida interdum est, sit amet pretium nisl consectetur at. In hac habitasse platea dictumst. In purus enim, elementum porttitor tincidunt volutpat, fermentum quis ante. Vivamus at est sem, quis ornare lorem. Cras pulvinar est eget nisi iaculis consequat.</p>
<p id="p-7">Get started with <a href="http://respond.io">Triangulate</a>
</p>
</div>
</div>
</div><file_sep>$(document).ready(function(){
function setBandHeights(){
var wHeight = $(window).height();
var ContentHeight = $('#band-content').height();
var mt = (wHeight - ContentHeight) * 0.5;
$('.herorow').height(wHeight);
$('#band-content').css({'margin-top':mt});
var wHeight = $(window).height();
$('.herorow').height(wHeight);
$('#mari').mouseenter(function(){
$('#mari').attr('src','img/band/mari2.jpg');
});
$('#mari').mouseleave(function(){
$('#mari').attr('src','img/band/mari.jpg');
});
}
setBandHeights();
});<file_sep><!DOCTYPE html>
<html>
<head>
<title>Cheerful to Cloudy · Musik</title>
<meta property="og:title" content="Cheerful to Cloudy · Musik">
<meta property="og:description" content="Die aktuellen Demos von von Cheerful to Cloudy der Newcomerband aus Ulm">
<meta property="og:image" content="http://ctc-band.com/Logos/ctc-black.jpg">
<meta name="Description" content="Die aktuellen Demos von von Cheerful to Cloudy der Newcomerband aus Ulm">
<meta name="Author" content="<NAME>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300' rel='stylesheet' type='text/css'>
<link rel="canonical" href="http://www.ctc-band.com/musik.php" />
<link rel="shortcut icon" href="favicon.ico">
<!-- Bootstrap -->
<link href="css/style.css" rel="stylesheet">
</head>
<body itemscope itemtype="http://schema.org/MusicGroup">
<?php include 'header.php'; ?>
<section id="hero" class="hero-band">
<article><h1>Hör doch mal rein ?</h1>
<H2>unsere aktuellen Demos</H2>
</article>
</section>
<div class="row">
<iframe width="100%" height="620px" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F11246666&color=000000&auto_play=false&show_artwork=true"></iframe>
</div>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/musik.js"></script>
</body>
</html><file_sep><?php
class Questionnaire extends Eloquent{
protected $fillable = array('name');
public function question() {
return $this -> hasMany('Question');
}
} <file_sep>angular.module('respond.site.factories', [])
// site factory
.factory('Site', function($http){
var site = {};
// retrieve languages
site.retrieve = function(callback){
// post to API
$http.get('data/site.json', {cache:true})
.success(callback);
}
return site;
})
// adds authentication header to API requests, #ref: https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/
.factory('authInterceptor', function ($rootScope, $q, $window, $location) {
return {
request:function (config) {
config.headers = config.headers || {};
if($window.sessionStorage.token){
config.headers.Authorization = 'Bearer ' + $window.sessionStorage.token;
}
return config || $q.when(config);
},
responseError:function(rejection){
if(rejection.status === 401){
// handle the case where the user is not authenticated
//location.href = Setup.url;
//alert('401');
$location.path('login');
}
return $q.reject(rejection);
}
};
})
// setup factory
.factory('Menu', function($http){
var menu = {};
// retrieve languages
menu.list = function(type, callback){
// list menu by type
$http.get('data/menu-' + type + '.json')
.success(callback);
}
return menu;
})
// setup factory
.factory('Page', function($http, $rootScope){
var page = {};
// retrieve a list of pages
page.list = function(type, pagesize, current, orderby, successCallback, failureCallback){
// set params
var params = {
siteId: $rootScope.site.SiteId,
type: type,
pagesize: pagesize,
current: current,
orderby: orderby
}
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/page/published/list', $.param(params))
.success(successCallback)
.error(failureCallback);
}
// retrieve a count for a list
page.count = function(type, successCallback, failureCallback){
// set params
var params = {
siteId: $rootScope.site.SiteId,
type: type
}
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/page/published/count', $.param(params))
.success(successCallback)
.error(failureCallback);
}
return page;
})
// user factory
.factory('User', function($http, $rootScope, $window){
var user = {};
// login API call
user.login = function(email, password, siteId, successCallback, failureCallback){
// set params
var params = {
email: email,
password: <PASSWORD>,
siteId: siteId
}
console.log(params);
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/user/login', $.param(params))
.success(successCallback)
.error(failureCallback);
}
// add a user
user.add = function(toBeAdded, siteId, successCallback, failureCallback){
// set params
var params = {
siteId: siteId,
firstName: toBeAdded.FirstName,
lastName: toBeAdded.LastName,
email: toBeAdded.Email,
password: <PASSWORD>.Password};
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/user/add/member', $.param(params))
.success(successCallback)
.error(failureCallback);
}
return user;
})
// setup factory
.factory('Form', function($http, $rootScope){
var form = {};
// submit form
form.submit = function(pageId, params, successCallback, failureCallback){
params['siteId'] = $rootScope.site.SiteId;
params['pageId'] = pageId;
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/form', $.param(params))
.success(successCallback)
.error(failureCallback);
}
return form;
})
// setup factory
.factory('Translation', function($http, $rootScope){
var translation = {};
translation.locales = [];
// searches translations for a given term
translation.search = function(term, locale, callback){
// set params
var params = {
siteId: $rootScope.site.SiteId,
locale: locale
};
console.log('search params');
console.log(params);
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/translation/retrieve', $.param(params))
.then(function(res){
// retrieve translations from the api
var data = res.data;
// holds pages to be returned
var pages = [];
// top level
for(x in data){
// pages are stored in objects
if(typeof(data[x]) == 'object'){
// this is what will be returned
var page = {
PageId: x,
Name: data[x]['name'],
Url: data[x]['url'],
Description: data[x]['description']
}
// walk through data[x]
for(y in data[x]){
var text = data[x][y].toLowerCase();
// searh for the term
if(text.search(new RegExp(term.toLowerCase(), 'i')) != -1){
// push found pages
pages.push(page);
break;
}
}
}
}
return pages;
})
.then(callback);
}
// retrieve locales for site
translation.listLocales = function(callback){
// set params
var params = {
siteId: $rootScope.site.SiteId};
// post to API
$http.post($rootScope.site.API + '/translation/list/locales', $.param(params))
.then(function(res){
// set data for factory
translation.locales = res.data;
return res.data;
})
.then(callback);
}
return translation;
})
// setup factory
.factory('Transaction', function($http, $rootScope){
var transaction = {};
// retrieve languages
transaction.receipt = function(processorTransactionId, callback){
// set params
var params = {
processorTransactionId: processorTransactionId
}
// set post to URL Encoded
$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
// post to API
$http.post($rootScope.site.API + '/transaction/receipt', $.param(params))
.success(callback);
}
return transaction;
})
;<file_sep><?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', 'HomeController@start');
Route::get('/player','HomeController@createplayer');
Route::post('/player/data','HomeController@writedata');
Route::post('/player/midquestions', 'HomeController@midquestions');
Route::post('/player/midquestions/done', 'HomeController@midquestionsdone');
Route::post('/player/end', 'HomeController@end');
Route::post('/player/end/done', 'HomeController@enddone');
Route::post('/player/end/test', 'HomeController@endtest');
Route::post('/player/end/test/done', 'HomeController@endtestdone');
Route::get('/adminstart', 'HomeController@adminstart');
Route::get('/adminstart/statistics', 'HomeController@statistics');
Route::get('adminstart/results', 'HomeController@results');
Route::get('adminstart/results/only', 'HomeController@resultsonly');
Route::get('adminstart/admin', 'HomeController@admin');
Route::post('adminstart/admin', 'HomeController@adminchange');
Route::get('adminstart/admin/neuefrage', 'HomeController@adminNeueFrage');
Route::get('adminstart/admin/bearbeite', 'HomeController@adminBearbeite');
<file_sep>(function(){
"use strict"
var testtrigger_states = [
{
'name':'inactive',
'initial':true,
'events' :
{
'activate':'startmenu'
}
},
{
'name': 'startmenu',
'events' :
{
'choice1':'text1',
'chocie2':'text2',
'end':'inactive'
}
}
];
MyGame.TestTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
props['on'] = 'on';
this.fsm = new Nadion.StateMachine( testtrigger_states, this );
if( props['trigger_on_touch'] === undefined )
this.trigger_on_touch = true;
};
MyGame.TestTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.TestTrigger, Nadion.Trigger );
MyGame.TestTrigger.prototype.constructor = MyGame.TestTrigger;
MyGame.TestTrigger.prototype.on = function()
{
$('#text').html('trigger berührt');
$('#text').show(500);
this.fsm.consumeEvent('activate');
this.game.add
return true;
};
MyGame.TestTrigger.prototype.startmenu = function()
{
console.log(MyGame.counter);
MyGame.counter = 0;
$('#text').html('trigger loest etwas aus');
$('#text').show(500);
$(document).bind('keydown', function(e) {
if (e.keyCode == 72) {
//H
$('#text').html('ein test mit H');
$('#text').hide(1500);
} else if (e.keyCode == 74) {
//J
$('#text').html('<a href="http://127.0.0.1/test_lav/test/public/player">Du hast es Geschafft :)</a>');
}
return true;
})
};
})(); <file_sep>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Cheerful to Cloudy · Band</title>
<link rel="canonical" href="http://www.ctc-band.com/index.html" />
<link rel="shortcut icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Bandpage von Cheerful to Cloudy Alternative Pop Rock aus Ulm">
<meta name="author" content="<NAME>">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta property="og:site_name" content="CheerfulToCloudy">
<meta name="keywords" content="Band Ulm Neu Ulm Rock Pop Alternative Newcomer Cheerful To Cloudy CTC CheerfultoCloudy" />
<meta name="description" content="Bandpage"/>
<meta property="og:locale" content="de_DE">
<meta name="robots" content="index, follow" />
<meta itemprop="name" content="Cheerful to Cloudy">
<meta itemprop="description" content="Pop Rock Alternative Newcomer Band aus Ulm">
<meta itemprop="image" content="http://cheerfultocloudy.com/img/1.png">
<link href="css/wide.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48105936-1', 'ctc-band.com');
ga('send', 'pageview');
</script>
</head>
<body>
<div itemscope itemtype="http://schema.org/MusicGroup" class="container box" id="wrapper">
<img alt="headerimage" src="img/1.jpg" style="min-width:100%">
<div class="like pull-right">
<a href="https://www.facebook.com/cheerfultocloudy"><img alt="facebook" src="img/fb_1.png"></a>
</div>
<!-- Navigation -->
<div class="navbar fat" id="menu">
<div class="navbar-inner">
<ul class="nav">
<li class="active"><a href="index.html">News</a></li>
<li><a href="band.html">Band</a></li>
<li><a href="dates.html">Gigs</a></li>
<li><a href="ctc_musik.html">Musik</a></li>
<li><a href="auswahl.html">Bilder</a></li>
<li><a href="kontakt.html">Kontakt</a></li>
</ul>
<ul class="nav pull-right visible-desktop" style="margin-right:20px;">
<li>
<a href="player.html" onclick="window.open(this.href, 'Fenstername', 'width=500,height=350'); return false">
<img style="display: block;" src="img/play.png" alt="play"></a>
</li>
</ul>
</div>
</div>
<!-- Contentbreich -->
<div class="m25">
<!-- News Section -->
<div class="row">
<!-- mobile news -->
<div id="news" class="span11 hidden-desktop">
<h2 class="text-center">News</h2>
<ul class="nav nav-list">
<li class="divider"></li>
<li class="text-center">Mai 2014</li>
<li class="text-center"><a class="pointer light mai"> Gigs im Mai</a></li>
<li class="divider"></li>
<li class="text-center">Januar 2014</li>
<li class="text-center"><a class="pointer light buchse">Büchsenstadel Bands gegen Rechts</a></li>
<li class="divider"></li>
<li class="text-center">Oktober 2013</li>
<li class="text-center"><a class="pointer light betei">Gig 2 im Beteigeuze</a></li>
<li class="divider"></li>
<li class="text-center">September 2013</li>
<li class="text-center"><a class="pointer light kufa">Auftritt in der Kulturfahrschule</a></li>
<li class="divider"></li>
<li class="text-center">Juli 2013</li>
<li class="text-center"><a class="pointer light gigs">Gigs im Herbst/Winter 2013</a></li>
<li class="text-center"><a class="pointer light sticker">Sticker</a></li>
<li class="text-center"><a class="pointer light spazz">Spazz 2013</a></li>
<li class="text-center"><a class="pointer light shooting">Fotoshooting 2013</a></li>
<li class="divider"></li>
<li class="text-center active">April 2013</li>
<li class="text-center"><a class=" pointer light betai">Rock gegen Rechts im Beteigeuze</a></li>
<li class="text-center"><a class=" pointer light jamgig">Youngstars im Cafe Jam</a></li>
<li class="divider"></li>
</ul>
</div>
<!-- desktop news -->
<div id="news" class="span3 pull-right visible-desktop">
<h2 class="text-center">News</h2>
<ul class="nav nav-list">
<li class="divider"></li>
<li class="text-center">Mai 2014</li>
<li class="text-center"><a class="pointer light mai"> Gigs im Mai</a></li>
<li class="divider"></li>
<li class="text-center">Januar 2014</li>
<li class="text-center"><a class="pointer light buchse">Büchsenstadel Bands gegen Rechts</a>
<li class="divider"></li>
<li class="text-center">Oktober 2013</li>
<li class="text-center"><a class="pointer light betei">Gig 2 im Beteigeuze</a></li>
<li class="divider"></li>
<li class="text-center">September 2013</li>
<li class="text-center"><a class="pointer light kufa">Auftritt in der Kulturfahrschule</a></li>
<li class="divider"></li>
<li class="text-center">Juli 2013</li>
<li class="text-center"><a class="pointer light gigs">Gigs im Herbst/Winter 2013</a></li>
<li class="text-center"><a class="pointer light sticker">Sticker</a></li>
<li class="text-center"><a class="pointer light spazz">Spazz 2013</a></li>
<li class="text-center"><a class="pointer light shooting">Fotoshooting 2013</a></li>
<li class="divider"></li>
<li class="text-center active">April 2013</li>
<li class="text-center"><a class=" pointer light betai">Rock gegen Rechts im Beteigeuze</a></li>
<li class="text-center"><a class=" pointer light jamgig">Youngstars im Cafe Jam</a></li>
<li class="divider"></li>
</ul>
</div>
<!-- newsnavigation -->
<div class="row"> <!-- saalte für news -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem pull-left">
<h2 id="buchse" class="newshead">Bands gegen Rechts im Büchsenstadel </h2>
<div class="newstriag"></div>
<img alt=" beteigeuze nummer 2" src="img/news/buechse.jpg">
<div class="newstext">
<p class="lead">guter Start ins Jahr</p>
<p class="light">Am 18.1.14 haben wir wieder bei Bands gegen Rechts gegen Rassismus und Intoleranz Lärm gemacht. Mit dabei waren auch No Brainer, Handgemenge und Los Zapatas Muertos. </p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem pull-left">
<h2 id="betei" class="newshead">Gig 2 im Beteigeuze </h2>
<div class="newstriag"></div>
<img alt=" beteigeuze nummer 2" src="img/news/betei2.jpg">
<div class="newstext">
<p class="lead">Der zweite Streich</p>
<p class="light">Wie versprochen sind wir wiedermal vorbeigekommen. Unser Gig Nummer Zwei im Beteigeuze Ulm und wieder Bombenstimmung mit H13, Handgemenge und Green Waste.
Auch an der absolut leckeren Pizza und dem klasse Team vom Betei hat sich nichts geändert. Wir kommen wieder keine Frage. </p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem">
<h2 id="kufa" class="newshead"> Auftritt in der Kulturfahrschule </h2>
<div class="newstriag"></div>
<style>.embed-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='http://www.youtube.com/embed/J-kZ0WeyT4Q' frameborder='0' allowfullscreen></iframe></div>
<div class="newstext">
<br>
<br>
<br>
<p class="light">Zusammen mit <NAME> und der <NAME> haben wir die Kufa gerockt. <br>
Für alle die nicht da sein konnten gibt es hier einen kleinen Eindruck.</p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem">
<h2 id="gigs" class="newshead"> Gigs im Herbst/Winter 2013</h2>
<div class="newstriag"></div>
<img alt=" liveonstage" src="img/news/liveonstage.jpg">
<div class="newstext">
<p class="lead"> Wieder am Start!</p>
<p class="light">Im Herbst/Winter2013 sind wir an folgenden Terminen für euch in Ulm am Start! <BR>
20.9 in der Kufa <BR>
19.10 im Betei <BR>
06.12 im Studentencafe mit Chrome <BR>
<a href="dates.html#kufa">mehr Infos</a></p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem black">
<h2 id="sticker" class="newshead">Sticker</h2>
<div class="newstriag"></div>
<img alt="sticker" src="img/news/sticker.jpg">
<div class="newstext">
<p class="lead">Kleb uns wo drauf</p>
<p class="light" >Es gibt jetzt Sticker mit und von uns. <br>
Komm zu unseren nächsten Gigs und hol dir einen ab.
</p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem">
<h2 id="spazz" class="newshead">
<span itemprop="name">Cheerful to Cloudy</span>im Spazz 2013</h2>
<div class="newstriag"></div>
<img alt="spaZz" src="img/news/spazz.jpg">
<div class="newstext">
<p class="lead">In den Top 50!</p>
<p class="light">Die SpaZz hat uns im Bandpool der 50 angesagtesten Bands aus Ulm aufgenommen und uns mit einem tollen Pressetext überrascht. <br>
<a href="http://de.calameo.com/read/000771566450853cb98ed" target="_blank">zur Ausgabe</a></p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem">
<h2 id="Shooting2013" class="newshead">Fotoshooting 2013</h2>
<div class="newstriag"></div>
<img alt="shooting" src="img/news/shootung.jpg">
<div class="newstext">
<p class="lead">Viele neue Bilder</p>
<p class="light" >Unser erstes Fotoshooting ist heil überstanden und wir haben einen ganzen Satz neuer Bandfotos. </p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem black">
<h2 id="Betai" class="newshead">Gig im BeteiGeuze</h2>
<div class="newstriag"></div>
<img alt="betai" src="img/news/betnews.jpg">
<div class="newstext">
<p class="lead">Hammer Gig im Betei. Wir kommen wieder!</p>
<p class="light">Nach kurzer Eingewöhnungsphase an diese neue Location gings los und es ging gescheit ab.
Danke an die Veranstalter und die hammer Pizza vom Koch. Ausserdem super Show von Solitary Hearts, Side Show
und Daisy Cutter!</p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
<!-- newsitem -->
<div class="thumbnail span8 newsitem">
<h2 id="JamGig" class="newshead">Gig im Cafe Jam</h2>
<div class="newstriag"></div>
<img alt="cafe jam" src="img/news/jam.jpg">
<div class="newstext">
<p class="lead">YoungStars im Cafe Jam!</p>
<p class="light">Unser zweiter Auftritt stand bevor. Gute Location und guter Gig zusammen mit Moral Victory, Red Cat, MBE! und Miss Teacup.</p>
<a class="black btn pointer">zurück zu den News</a>
</div>
</div>
<!-- newsitem -->
</div> <!-- spalte für news -->
</div> <!-- News Section -->
</div> <!-- content ende -->
<!-- ######FOOOTER##### -->
<footer>
<a href="ctc_impresum.html" class="white pull-right mr" id="imp_link">impressum</a>
<a class="backtomenu pointer white pull-left">zurück zum Menü</a>
</footer>
</div> <!-- mainrow end -->
<script src="js/jquery.js"></script>
<script src="js/index.js"></script>
</body>
</html>
<file_sep>'use strict';
angular.module('ctcBand.header', [])
.controller('HeaderCtrl', ['$scope', function($scope){
$scope.toggleMenu = function() {
angular.element( document.querySelector( '#menuBtn' ) )
.toggleClass('active');
angular.element( document.querySelector( '#mainMenuContainer' ) )
.toggleClass('slideInRight animated active');
}
}]);
<file_sep>angular.module('respond.site.controllers', [])
{{controllers}}
;<file_sep>game.PlayScreen = me.ScreenObject.extend({
onResetEvent: function() {
// stuff to reset on state change
// load a level
me.levelDirector.loadLevel("welt2");
me.audio.playTrack("bgm1");
// add Hud Informations
me.game.addHUD(0,0,300,300);
me.game.HUD.addItem("live", new game.ScoreObject(0));
me.game.HUD.updateItemValue("live", 100);
me.game.sort();
},
/* ---
action to perform when game is finished (state change)
--- */
onDestroyEvent: function() {
me.game.disableHUD();
}
});<file_sep>$( document ).ready(function() {
$(".backtomenu").click(function(){
$('body').animate({scrollTop: $("#menu").offset().top});
});
$("#bigimg").click(function(){
x = (this.src);
x = x.split("/");
x = x.pop();
x = x.split(".");
x = parseInt(x[0])
x=(x+1)%15
path = "img/shooting/shooting/" + x +".jpg"
$('#bigimg').attr("src",path)
});
$(".thumb").click(function(){
$(".selectedimg").removeClass('selectedimg')
$(this).addClass('selectedimg')
x = (this.src)
x = x.split("/")
x = x.pop()
path = "img/shooting/shooting/"
path = path.concat(x)
$('#bigimg').attr("src",path)
});
});<file_sep>// main entry point for Nadion template
//
// Copyright 2013 <NAME>
//
// 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.
"use strict";
var MyGame = (function()
{
// set any Nadion properties that we wish to override
Nadion.VIEW_WIDTH = 800;
Nadion.VIEW_HEIGHT = 450;
// return the MyGame namespace
return {
name : "FluchtausdemDschungel",
save_file : 'SaveFile',
midtest: true,
counter: 0,
globalcounter: 0,
timeout:150,
mistakes: -1,
hits: 0,
taskTimes: [],
backpack: 0,
baseurl:'http://serious.tp-itservice.com/public/',
// keyboard controls
KEY_MAP : Phaser.Keyboard.M,
KEY_JUMP : Phaser.Keyboard.ALT,
KEY_RUN : Phaser.Keyboard.SPACEBAR,
KEY_L : Phaser.Keyboard.LEFT,
KEY_R : Phaser.Keyboard.RIGHT,
KEY_BACKPACK : Phaser.Keyboard.B,
KEY_ACTION : Phaser.Keyboard.ENTER,
KEY_RESET : Phaser.Keyboard.R,
KEY_HELP : Phaser.Keyboard.H,
KEY_Q1 : Phaser.Keyboard.Q,
KEY_Q2 : Phaser.Keyboard.W
};
})();
<file_sep>
(function()
{
"use strict";
var player_states = [
{
'name' : 'idle',
'initial' : true,
'events' :
{
'left' : 'walking',
'right' : 'walking',
'jump' : 'jumping',
'hit' : 'stunned',
'startchallenge' : 'challenge',
'startclimbing' : 'climbing',
'startstop' : 'stop',
'attack' : 'attack',
'openBackpack' : 'openBackpack',
'openMap' : 'openMap'
}
},
{
'name' : 'walking',
'events' :
{
'stop' : 'idle',
'jump' : 'jumping',
'fall' : 'falling',
'hit' : 'stunned',
'talk' : 'talking',
'startchallenge' : 'challenge',
'attack' : 'attack',
'startstop' : 'stop',
'startwalljump' : 'walljump',
}
},
{
'name' : 'jumping',
'events' :
{
'land' : 'recovering',
'hit' : 'stunned',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
'stop' : 'idle',
'goLeft' : 'walking',
'goRight' : 'walking',
'fall' : 'falling'
}
},
{
'name' : 'walljump',
'events' :
{
'land' : 'recovering',
'jump' : 'jumping',
'hit' : 'stunned',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
'goLeft' : 'walking',
'goRight' : 'walking',
'stop' : 'idle',
'fall' : 'falling'
}
},
{
'name' : 'recovering',
'events' :
{
'recover' : 'idle'
}
},
{
'name' : 'falling',
'events' :
{
'land' : 'idle',
'startchallenge' : 'challenge',
'startstop' : 'stop',
'startwalljump' : 'walljump',
'stop' : 'idle',
'hit' : 'stunned'
}
},
{
'name' : 'stunned',
'events' :
{
'recover' : 'idle',
'hit' : 'stunned'
}
},
{
'name': 'climbing',
'events':
{
'climbup':'climbing',
'stop' : 'idle',
'left' : 'walking',
'right' : 'walking',
}
},
{
'name' : 'challenge',
'events':
{
'end':'idle',
'startstop':'stop',
}
},
{
'name' : 'openBackpack',
'events':
{
'closeBackpack':'stop',
}
},
{
'name' : 'openMap',
'events':
{
'closeMap':'stop',
}
},
{
'name' : 'washit',
'events':
{
'end':'idle',
}
},
{
'name' : 'attack',
'events':
{
'end':'idle',
}
},
{
'name' : 'stop',
'events':
{
'end':'idle',
}
}
];
MyGame.Player = function ( game, name, x, y, width, height, props )
{
Nadion.BaseSprite.call( this, game, 'player', name, x, y, width, height, props );
// fields
var game_state = this.game.state.states[this.game.state.current];
this.facing = Phaser.RIGHT;
this.time = game.time;
this.fsm = new Nadion.StateMachine( player_states, this );
this.jump_increment = 600;
this.walk_velocity = 110;
this.live = 10;
$('#live').html('Energie: ' + this.live);
this.recovery_timeout = 500;
this.climb_timeout = 50;
this.stunned_timeout = 500;
this.challengeTimeout = 200;
this.challengeTimer = 200;
this.is_player_sprite = true;
this.timer = 0;
this.backpack;
this.challengetype;
// Phaser.Sprite settings
this.body.collideWorldBounds = true;
this.body.width = 32;
this.body.gravity.y = 900;
this.body.maxVelocity.y = this.jump_increment;
this.animations.add( 'jump-left', [32], 1, true );
this.animations.add( 'jump-right', [32], 1, true );
this.animations.add( 'left', [39,38,37,36,35,34], 8, true );
this.animations.add( 'right', [39,38,37,36,35,34], 8, true );
this.animations.add( 'run', [31,30,29,28,27,26,25,24,23], 14, true );
this.body.drag = 600;
game.add.existing( this );
};
MyGame.Player.prototype = Object.create( Nadion.BaseSprite );
Nadion.__extends( MyGame.Player, Nadion.BaseSprite );
MyGame.Player.prototype.constructor = MyGame.Player;
// prototype (methods)
MyGame.Player.prototype.reset = function()
{
this.x = this.initial_x;
this.y = this.initial_y;
this.body.velocity.x = 0;
this.body.velocity.y = 0;
this.facing = Phaser.RIGHT;
this.stunned_timer = 0;
this.body.velocity.x = 0;
this.body.velocity.y = 0;
this.fsm.reset();
};
// Collide with Tiles
MyGame.Player.prototype.spriteCollisionCallback = function( p, s )
{
if( s instanceof MyGame.Enemy || s instanceof MyGame.Walker )
{
this.hit();
MyGame.hits = MyGame.hits +1;
}
if( s instanceof MyGame.Shaman )
{
s.fsm.consumeEvent(s.state);
this.renderText(s.talk);
this.fsm.consumeEvent('startstop');
s.destroy();
}
if( s instanceof MyGame.Pickup ){
this.backpack = s;
s.destroy();
this.fsm.consumeEvent('stop');
this.fsm.consumeEvent('openBackpack');
/*this.fsm.consumeEvent('startstop');*/
}
if( s instanceof MyGame.Challenge ){
if(this.backpack === undefined)
{
if(this.facing === 1)
{
this.body.velocity.x = 200;
}else{
this.body.velocity.x = -200;
}
this.renderText('Du besitzt kein Bild um das Tor zu öffnen <br> (weiter mit - Enter -)');
this.fsm.consumeEvent('startchallenge');
}else if(this.backpack.pictureType !== s.challengetype)
{
if(this.facing === 1)
{
this.body.velocity.x = 200;
}else{
this.body.velocity.x = -200;
}
this.renderText('Dein Bild besitzt nicht die Funktion :' +s.challengetype + ' <br> (weiter mit - Enter -)');
MyGame.mistakes = MyGame.mistakes +1;
this.fsm.consumeEvent('startchallenge');
}
else{
this.renderText('Das Tor <b> ' + s.challengetype + ' </b> öffnet sich durch <br> <img src="assets/img/functions/'+this.backpack.picture+'.png" style=""> <br> (weiter mit - Enter -)');
s.destroy();
this.backpack = undefined;
this.fsm.consumeEvent('startstop');
this.live = this.live+1;
$('#live').html('Energie: ' + this.live);
MyGame.taskTimes.push(MyGame.counter);
MyGame.counter = 0;
}
}
};
// Update
MyGame.Player.prototype.updateObject = function()
{
var game_state = this.game.state.states[this.game.state.current];
// collide player with tilemap layers that are marked 'solid'
for( var i = 0; i < game_state.layers.length; i++ )
{
var lyr = game_state.layers[i];
if( lyr.solid )
this.game.physics.collide( this, lyr );
}
// collide with sprites that are 'solid'
for( i = 0; i < game_state.groups.length; i++ )
{
this.game.physics.collide( this, game_state.groups[i], this.spriteCollisionCallback, null, this );
}
// handle input
var left = this.game.input.keyboard.isDown( MyGame.KEY_L );
var right = this.game.input.keyboard.isDown( MyGame.KEY_R );
var up = this.game.input.keyboard.isDown( MyGame.KEY_UP );
var down = this.game.input.keyboard.isDown( MyGame.KEY_DOWN );
var run = this.game.input.keyboard.isDown( MyGame.KEY_RUN );
var jump = this.game.input.keyboard.isDown( MyGame.KEY_JUMP );
var openBackpack = this.game.input.keyboard.isDown( MyGame.KEY_BACKPACK );
var openMap = this.game.input.keyboard.isDown( MyGame.KEY_MAP );
var action = this.game.input.keyboard.isDown( MyGame.KEY_ACTION );
var state = this.fsm.getState();
if (this.live < 0 ){this.loseLevel();}
switch( state )
{
case 'walking':
if( jump )
this.fsm.consumeEvent( 'jump' );
else if( left && run)
{
if(this.body.blocked.left && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.jump_increment = 450;
this.walk_velocity = 230;
this.animations.play('run');
this.goLeft();
}
}
else if( right && run )
{
if(this.body.blocked.right && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.animations.play( 'run' );
this.jump_increment = 450;
this.walk_velocity = 230;
this.goRight();
}
}
else if( left )
{
this.animations.play( 'left' );
if(this.body.blocked.left && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.jump_increment = 350;
this.walk_velocity = 110;
this.goLeft();
}
}
else if( right )
{
this.animations.play( 'right' );
if(this.body.blocked.right && !this.body.blocked.down)
{
this.fsm.consumeEvent( 'startwalljump' );
}else{
this.jump_increment = 350;
this.walk_velocity = 110;
this.goRight();
}
}
else
{
this.fsm.consumeEvent( 'stop' );
}
break;
case 'jumping':
case 'falling':
// reset horizontal velocity
this.body.velocity.x = 0;
// land?
if( this.body.touching.down || this.body.blocked.down )
{
this.fsm.consumeEvent( 'land' );
}
// can move side to side
if( left )
if(this.body.blocked.left)
{
this.fsm.consumeEvent('startwalljump');
}else{
this.airborneLeft();
}
else if( right )
if(this.body.blocked.right)
{
this.fsm.consumeEvent('startwalljump');
}else{
this.airborneRight();
}
break;
case 'walljump':
// reset horizontal velocity
this.jump_increment = 300
this.body.velocity.x = 0;
this.body.velocity.y = 30;
this.body.gravity.y = 1000;
this.frame = 33;
// land?
if( jump && right )
{
if(this.facing === 1)
{
this.jump_increment = 450;
this.walk_velocity = 230;
this.jump();
this.fsm.consumeEvent('goRight');
}
}else if( jump && left )
{
if(this.facing === 2 )
{
this.jump_increment = 450;
this.walk_velocity = 230;
this.jump();
this.fsm.consumeEvent('goRight');
}
}
else if( left )
{
if(this.facing === 2 ){
this.walk_velocity = 0;
this.body.velocity.y = 20;
}
}
else if( right )
{
if(this.facing === 1 ){
this.walk_velocity = 0;
this.body.velocity.y = 20;
}
}
else{
this.fsm.consumeEvent('fall');
}
break;
case 'idle':
// reset horizontal velocity
this.body.velocity.x = 0;
this.walk_velocity = 110;
this.jump_increment = 350;
this.body.gravity.y = 1000;
// can walk or jump
if( jump )
this.fsm.consumeEvent( 'jump' );
else if( left )
{
this.facing = Phaser.LEFT;
this.fsm.consumeEvent( 'left' );
}
else if( right )
{
this.facing = Phaser.RIGHT;
this.fsm.consumeEvent( 'right' );
}
else if ( openBackpack )
{
this.fsm.consumeEvent( 'openBackpack' );
}
else if ( openMap )
{
this.fsm.consumeEvent( 'openMap' );
}
break;
case 'openBackpack':
this.fsm.consumeEvent( 'closeBackpack' );
break;
case 'openMap':
this.fsm.consumeEvent( 'closeMap' );
break;
case 'talking':
this.fsm.consumeEvent( 'stop' );
break;
case 'climbing':
this.body.gravity.y = 1000;
if( left && up ){
this.facing = Phaser.LEFT;
this.body.velocity.x = -300;
this.fsm.consumeEvent( 'stop' );
break;
}else if( right && up )
{
this.facing = Phaser.RIGHT;
this.body.velocity.x = 300;
this.fsm.consumeEvent( 'stop' );
break;
}else if( up ){
this.body.velocity.x = 0;
this.body.gravity.y = 0;
this.body.velocity.y = -100;
this.fsm.consumeEvent('climbup');
break;
}else if(left){
this.body.gravity.y = 1000;
this.fsm.consumeEvent( 'left' );
}else if(right){
this.body.gravity.y = 1000;
this.fsm.consumeEvent( 'right' );
}
break;
case 'challenge':
if(this.waitTime(this.timer, 400))
{
this.fsm.consumeEvent('startstop');
}
break;
case 'stunned':
if(this.waitTime(this.timer, 200))
{
this.fsm.consumeEvent('recover');
}
break;
case 'stop':
if( action )
{
$('#text').slideUp(500);
this.fsm.consumeEvent('end');
}
break;
default:
break;
}
};
MyGame.Player.prototype.openBackpack = function()
{
var content = "Der Rucksack ist Leer"
if (this.backpack !== undefined)
{
content = '<img src="assets/img/functions/'+this.backpack.picture+'.png" style=""> <br> (weiter mit - Enter -)'
}
$('#text').html(content);
$('#text').slideDown(500);
};
MyGame.Player.prototype.openMap = function()
{
var content = '<img src="assets/img/map.png" style="width:100%"> <br> (weiter mit - Enter -)';
$('#text').html(content);
$('#text').slideDown(500);
};
MyGame.Player.prototype.challenge = function()
{
this.timer = this.time.now;
};
MyGame.Player.prototype.washit = function()
{
this.timer = this.time.now;
};
MyGame.Player.prototype.stop = function()
{
this.body.velocity.x = 0;
};
MyGame.Player.prototype.hit = function()
{
// can't be hit while already stunned
if( this.fsm.getState() != 'stunned' )
{
this.fsm.consumeEvent( 'hit' );
this.live= this.live -1;
$('#live').html('Energie: ' + this.live);
}
if( this.body.touching.right )
{
this.body.velocity.x = -150;
this.body.touching.right = false;
}
else if( this.body.touching.left )
{
this.body.velocity.x = 150;
this.body.touching.left = false;
}
if( this.body.touching.down )
{
this.body.velocity.y = -350;
this.body.touching.down = false;
}
else if( this.body.touching.up )
{
if(this.facing === 1){
this.body.velocity.x = 300;
}else{
this.body.velocity.x = -300;
}
this.body.touching.up = false;
}
};
MyGame.Player.prototype.idle = function()
{
this.animations.stop();
this.frame = 36;
if( this.facing == Phaser.LEFT )
{
this.scale.x = -1;
}
else
{
this.scale.x = 1;
}
};
MyGame.Player.prototype.walking = function()
{
if( this.facing == Phaser.LEFT )
{
this.walkLeft();
}
else
{
this.walkRight();
}
};
MyGame.Player.prototype.jumping = function()
{
this.jump();
};
MyGame.Player.prototype.walljump = function()
{
this.animations.stop();
this.frame = 33;
}
MyGame.Player.prototype.falling = function()
{
this.frame = 33;
};
MyGame.Player.prototype.recovering = function()
{
this.timer = this.time.now;
this.fsm.consumeEvent( 'recover' );
};
MyGame.Player.prototype.stunned = function()
{
// start timer
this.timer = this.time.now;
this.frame = 3;
if( this.facing == Phaser.LEFT )
{
this.scale.x = -1;
}
else
{
this.scale.x = 1;
}
};
// start walking right
MyGame.Player.prototype.walkRight = function()
{
this.body.velocity.x = this.walk_velocity;
this.scale.x = 1;
this.animations.play( 'right' );
};
MyGame.Player.prototype.runRight = function()
{
this.body.velocity.x = this.walk_velocity;
this.scale.x = 1;
this.animations.play( 'run' );
};
MyGame.Player.prototype.runLeft = function()
{
this.body.velocity.x = this.walk_velocity;
this.scale.x = -1;
this.animations.play( 'run' );
};
// start walking left
MyGame.Player.prototype.walkLeft = function()
{
this.body.velocity.x = -this.walk_velocity;
// flip on x axis
this.scale.x = -1;
this.animations.play( 'left' );
};
MyGame.Player.prototype.climbing = function(){
this.timer = this.time.now;
};
MyGame.Player.prototype.stepup = function(){
this.body.velocity.y = -this.walk_velocity;
};
// move in air (jump/fall) right
MyGame.Player.prototype.airborneRight = function()
{
this.goRight();
};
// move in air (jump/fall) left
MyGame.Player.prototype.airborneLeft = function()
{
this.goLeft();
};
// move right
MyGame.Player.prototype.goRight = function()
{
this.scale.x = 1;
this.facing = Phaser.RIGHT;
this.body.velocity.x = this.walk_velocity;
};
// move left
MyGame.Player.prototype.goLeft = function()
{
// flip on x axis
this.scale.x = -1;
this.facing = Phaser.LEFT;
this.body.velocity.x = -this.walk_velocity;
};
MyGame.Player.prototype.jump = function()
{
this.body.velocity.y = -this.jump_increment;
this.body.blocked.down = false;
this.body.touching.down = false;
// what direction are we facing
if( this.facing == Phaser.LEFT )
{
// flip on x axis
this.scale.x = -1;
this.animations.play( 'jump-left' );
}
else
{
this.scale.x = 1;
this.animations.play( 'jump-right' );
}
};
// helper functions
MyGame.Player.prototype.waitTime = function(timer , time)
{
return this.time.elapsedSince( timer ) > time;
};
MyGame.Player.prototype.renderText = function(text)
{
$('#text').html(text);
$('#text').slideDown(500);
};
MyGame.Player.prototype.loseLevel = function(text)
{
var game_state = this.game.state.states[this.game.state.current];
game_state.triggers.forEach(function(t){
if(t instanceof Nadion.NextLevelTrigger){
if(t.name === 'ResetTrigger')
{
t.activate();
$('#live').html('Energie: 10');
$('#info').html('');
}
}
})
};
})();
<file_sep><!DOCTYPE html>
<html>
<head>
<title>Cheerful to Cloudy · News</title>
<meta property="og:title" content="Cheerful to Cloudy · News">
<meta property="og:description" content="Cheerful to Cloudy die Alternative Pop Rock Band aus Ulm">
<meta property="og:image" content="http://ctc-band.com/Logos/ctc-black.jpg">
<meta name="Description" content="Cheerful to Cloudy die Alternative Pop Rock Band aus Ulm">
<meta name="Author" content="<NAME>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300' rel='stylesheet' type='text/css'>
<link rel="canonical" href="http://www.ctc-band.com/index.php" />
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<section id="hero" class="hero-index">
<article>
<h1>WIR SIND CHEERFUL TO CLOUDY</h1>
<H2>Synthie-Power-Pop aus Ulm !</H2>
</article>
</section>
<section class="news wow bounceInDown" data-wow-delay="1.0s">
<article>
<H2>Gigs für 2015</H2>
<img src="img/news/heimspiel.jpg">
<p>HEIM SPIEL</p>
<p>zusammen mit Chinese Silk and Videotape, Magnetic Monkeys und The Phans.
</p>
</article>
</section>
<section class="news wow bounceInDown" data-wow-delay="1.0s">
<article>
<H2>Erster Song COLORS und Gig im Studentencafe Ulm</H2>
<img src="https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xpf1/v/t1.0-9/10417569_10204770461239225_218417498918211868_n.jpg?oh=64cb06c00a2cdd9f36dea623b8997345&oe=54B1A272&__gda__=1425014093_90557f0b3fe771c2bc1b34db30f45cd8">
<p>unsre erster Song ist fertig</p>
<p>
Wir waren im August bei Turbine Powered im Studio für unsere erste EP.
<a href="https://www.facebook.com/turbinepoweredstudio?v=app_178091127385">Hier</a> gibt es den Song "Colors" zum reinhören!
Wir spielen übrigens diesen Freitag (24.10.14)
<a href="https://www.facebook.com/events/887191021293334">im Studentencafe Ulm mit den Autos!</a>
21 Uhr, freier Eintritt!
</p>
</article>
</section>
<section class="news wow bounceInDown" data-wow-delay="1.0s">
<article>
<H2>Endlich im Studio!! und Gig im Liederkranz</H2>
<img src="http://www.biergarten-liederkranz.de/images/logo.jpg">
<p>unsre erste CD wird aufgenommen</p>
<p>
Dieses Wochenende schließen wir uns im Studio ein und nehmen vier unserer besten Songs für euch auf. Um die Zeit zu überbrücken bis die CD fertig ist könnt ihr uns am 09.08.Live im Liederkranz hören.
Wir freuen uns auf die CD und den Gig.
</p>
</article>
</section>
<section class="news wow bounceInDown" data-wow-delay="0.7s">
<article>
<H2>HAPPY BIRTHDAY CTC-BAND.COM !!</H2>
<img src="img/news/happybirthday.jpg">
<p>unsre Seite wird EINS</p>
<p>
Wir glauben es auch kaum, aber unsere geliebte Bandhomepage wird ein ganzes Jahr alt. So sagen wir Happy Birthday ctc-band.com auf ein weiteres Jahr voller Rock and Roll!!!
</p>
</article>
</section>
<section class="news ">
<article class="wow bounceInDown" data-wow-delay="0.7s">
<H2>Gigs im Frühjahr</H2>
<img src="https://scontent-a-fra.xx.fbcdn.net/hphotos-frc1/t1.0-9/10169312_619780564771795_7380958773144248033_n.jpg">
<p>wir zählen auf euch!</p>
<p>
Hallo ihr Lieben, wir freuen uns euch mitteilen zu können das wir im Mai 2 Gigs am Start haben zu unserem 2-jährigen Jubiläum - Yay!
</p>
Einmal am 28.5 <a href="https://www.facebook.com/events/614963118579937/">im Beteigeuze am Eselsberg</a> und am 31.5 beim
<a href="https://www.facebook.com/donauopenair"> Donau Open Air in Munderkingen!</a>
<p>Unsere Songs haben zum Teil ein Facelifting bekommen und klingen fresher als den je!
Zudem gibt es die Premiere vom neuen Song "Colors" - Kommt vorbei und checkts ab!</p>
</article>
</section>
<section class="news wow bounceInDown" data-wow-delay="0.7s">
<article>
<H2>Willkommen 2014 !!</H2>
<img src="img/news/news1.jpg">
<p>frisch ins neue Jahr</p>
<p>
Neues Jahr neues Glück. Zum Neustart 2014 gibts nicht nur ein Redesign unserer Bandhomepage. Wir haben außerdem die 100 Facebook-Likes geknackt :) und sind drauf und dran unser erstes Album aufzunehmen.Ihr dürft auch gespannt sein was noch alles passieren wird.
</p>
</article>
</section>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
new WOW().init();
</script>
</body>
</html><file_sep><?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/player', 'HomeController@playerstart');
Route::post('/player','HomeController@playername');
Route::post('/player/midquestions', 'HomeController@midquestions');
Route::post('/player/midquestions/done', 'HomeController@midquestionsdone');
Route::get('/player/questions', 'HomeController@questions');
Route::get('/player/questions/done', 'HomeController@questionsdone');
Route::get('/adminstart', 'HomeController@adminstart');
Route::get('adminstart/results', 'HomeController@results');
Route::get('adminstart/results/only', 'HomeController@resultsonly');
Route::get('adminstart/admin', 'HomeController@admin');
Route::post('adminstart/admin', 'HomeController@adminchange');
Route::get('adminstart/admin/neuefrage', 'HomeController@adminNeueFrage');
Route::get('adminstart/admin/bearbeite', 'HomeController@adminBearbeite');
<file_sep>'use strict';
angular.module('ctcBand.home', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/home', {
templateUrl: 'view/Home/home.html',
controller: 'HomeCtrl'
});
}])
.controller('HomeCtrl', ['$scope','$http',function($scope,$http) {
$http.get('public/news.json')
.success(function(data){
$scope.news = data;
});
$scope.newsFilter = 'alle';
$scope.setFilter = function(filter){
$scope.newsFilter = filter;
}
$scope.newsFilterFunction = function(newsEntry){
if(newsEntry.category === $scope.newsFilter || $scope.newsFilter === 'alle') {
return true;
} else {
return false;
}
}
}]);<file_sep><!DOCTYPE html>
<html>
<head>
<title>Cheerful to Cloudy · Gigs</title>
<meta property="og:title" content="Cheerful to Cloudy · Gigs">
<meta property="og:description" content="Komm vorbei und hör zu, die nächsten Gigs von Cheerful to Cloudy der Newcomerband aus Ulm">
<meta property="og:image" content="http://ctc-band.com/Logos/ctc-black.jpg">
<meta name="Description" content="Komm vorbei und hör zu, die nächsten Gigs von Cheerful to Cloudy der Newcomerband aus Ulm">
<meta name="Author" content="<NAME>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300' rel='stylesheet' type='text/css'>
<link rel="canonical" href="http://www.ctc-band.com/gigs.php" />
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<section class="hero-gigs">
<section id="not100" class="gigs">
<section class="content row">
<div itemscope itemtype="http://schema.org/Event" class="col">
<a href="">
<h1><span itemprop="name">
Heimspiel </span> - Club Schilli Ulm</h1>
<h2>am <span itemprop="startDate" content="2015-02-07T19:00">07.02.2015</span></h2>
</a>
</div>
<hr>
<p>
Mehr Informationen zu unseren Konzerten findet ihr auch auf unserer <a href="https://www.facebook.com/cheerfultocloudy/events">Facebookpage</a> und den Veranstaltungsseiten.
</p>
</section>
</section>
</section>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$('#navigation>li').removeClass('active');
$('#nav_gigs').addClass('active');
$('.navicon').click(function(){
if ($('nav').hasClass('activated')){
$('nav').removeClass('activated');
$('nav').css({'display':'none'});
}else{
$('nav').css({'display':'block'});
$('nav').addClass('activated');
}
});
</script>
</body>
</html><file_sep>Respond CMS
===========
Respond is an open source, responsive content management system that you can use to build responsive sites. Respond features a REST API, a lightning-fast Angular-powered UI, Bootstrap 3.0, multilingual support, and an enhanced data layer using PDO.
Learn more about Respond CMS at: http://respondcms.com
View our documentation at: http://respondcms.com/page/documentation
The current version is Respond 4.<file_sep><?php
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Eloquent::unguard();
// $this->call('UserTableSeeder');
$this->call('MyAppSeeder');
}
}
class MyAppSeeder extends Seeder {
public function run(){
DB::table('Players')->delete();
DB::table('Questions')->delete();
DB::table('Questionnaires')->delete();
DB::table('Answers')->delete();
DB::table('Level')->delete();
$eingang = Questionnaire::create(array('name' => 'eingang'));
$mittel = Questionnaire::create(array('name' => 'mittel'));
$end = Questionnaire::create(array('name' => 'end'));
$test = Questionnaire::create(array('name' => 'test'));
$level = Level::create(array('score' => 1,'mistakes' => 10,'hits' => 2,'info' => 'info'));
$test1 = Question::create(array('question' => '1','questionnaire_id' => $test->id));
$test2 = Question::create(array('question' => '2','questionnaire_id' => $test->id));
$test3 = Question::create(array('question' => '3','questionnaire_id' => $test->id));
$test4 = Question::create(array('question' => '4','questionnaire_id' => $test->id));
$eingang1 = Question::create(array('question' => 'Ich spiele häufig Computerspiele','questionnaire_id' => $eingang->id));
$eingang1 = Question::create(array('question' => 'Ich kenne die Gestaltgesetze','questionnaire_id' => $eingang->id));
$frage1 = Question::create(array('question' => 'Das Spiel hat mir Spass gemacht','questionnaire_id' => $end->id));
$fam1 = Question::create(array('question' => 'Ich mag solche Rätsel und Knobeleien','questionnaire_id' => $end->id));
$fam15 = Question::create(array('question' => 'Ich glaube, der Schwierigkeit dieses Spiels gewachsen zu sein','questionnaire_id' => $end->id));
$fam16 = Question::create(array('question' => 'Wahrscheinlich werde ich das Spiel nicht schaffen.','questionnaire_id' => $end->id));
$fam1 = Question::create(array('question' => 'Bei dem Spiel mag ich die Rolle des Wissenschaftlers, der Zusammenhänge entdeckt.','questionnaire_id' => $end->id));
$fam2 = Question::create(array('question' => 'Das Spiel ist eine richtige Herausforderung für mich.','questionnaire_id' => $end->id));
$fam3 = Question::create(array('question' => 'Nach dem Lesen der Instruktion erscheint mir das Spiel sehr interessant.','questionnaire_id' => $end->id));
$fam4 = Question::create(array('question' => 'Ich bin sehr gespannt darauf, wie gut ich hier abschneiden werde.','questionnaire_id' => $end->id));
$fam5 = Question::create(array('question' => 'Ich fürchte mich ein wenig davor, dass ich mich hier blamieren könnte','questionnaire_id' => $end->id));
$fam6 = Question::create(array('question' => 'Ich bin fest entschlossen, mich bei diesem Spiel voll anzustrengen.','questionnaire_id' => $end->id));
$fam7 = Question::create(array('question' => 'Bei Spielen wie diesem brauche ich keine Belohnung, sie machen mir auch so viel Spaß. ','questionnaire_id' => $end->id));
$fam8 = Question::create(array('question' => 'Es ist mir etwas peinlich, hier zu versagen.','questionnaire_id' => $end->id));
$fam9 = Question::create(array('question' => 'Ich glaube, dass kann jeder schaffen','questionnaire_id' => $end->id));
$fam10 = Question::create(array('question' => 'Ich glaube, ich schaffe dieses Spiel nicht','questionnaire_id' => $end->id));
$fam11 = Question::create(array('question' => 'Wenn ich das Spiel schaffe, werde ich schon ein wenig stolz auf meine Tüchtigkeit sein.','questionnaire_id' => $end->id));
$fam12 = Question::create(array('question' => 'Wenn ich an das Spiel denke, bin ich etwas beunruhigt.','questionnaire_id' => $end->id));
$fam13 = Question::create(array('question' => 'Eine solches Spiel würde ich auch in meiner Freizeit spielen.','questionnaire_id' => $end->id));
$fam14 = Question::create(array('question' => 'Die konkreten Leistungsanforderungen hier lähmen mich.','questionnaire_id' => $end->id));
$frage1 = Question::create(array('question' => 'Das Spiel hat mir Spass gemacht','questionnaire_id' => $mittel->id));
$fammid1 = Question::create(array('question' => 'Ich mag solche Rätsel und Knobeleien','questionnaire_id' => $mittel->id));
$fammid15 = Question::create(array('question' => 'Ich glaube, der Schwierigkeit dieses Spiels gewachsen zu sein','questionnaire_id' => $mittel->id));
$fammid16 = Question::create(array('question' => 'Wahrscheinlich werde ich das Spiel nicht schaffen.','questionnaire_id' => $mittel->id));
$fammid1 = Question::create(array('question' => 'Bei dem Spiel mag ich die Rolle des Wissenschaftlers, der Zusammenhänge entdeckt.','questionnaire_id' => $mittel->id));
$fammid2 = Question::create(array('question' => 'Das Spiel ist eine richtige Herausforderung für mich.','questionnaire_id' => $mittel->id));
$fammid3 = Question::create(array('question' => 'Nach dem Lesen der Instruktion erscheint mir das Spiel sehr interessant.','questionnaire_id' => $mittel->id));
$fammid4 = Question::create(array('question' => 'Ich bin sehr gespannt darauf, wie gut ich hier abschneiden werde.','questionnaire_id' => $mittel->id));
$fammid5 = Question::create(array('question' => 'Ich fürchte mich ein wenig davor, dass ich mich hier blamieren könnte','questionnaire_id' => $mittel->id));
$fammid6 = Question::create(array('question' => 'Ich bin fest entschlossen, mich bei diesem Spiel voll anzustrengen.','questionnaire_id' => $mittel->id));
$fammid7 = Question::create(array('question' => 'Bei Spielen wie diesem brauche ich keine Belohnung, sie machen mir auch so viel Spaß. ','questionnaire_id' => $mittel->id));
$fammid8 = Question::create(array('question' => 'Es ist mir etwas peinlich, hier zu versagen.','questionnaire_id' => $mittel->id));
$fammid9 = Question::create(array('question' => 'Ich glaube, dass kann jeder schaffen','questionnaire_id' => $mittel->id));
$fammid10 = Question::create(array('question' => 'Ich glaube, ich schaffe dieses Spiel nicht','questionnaire_id' => $mittel->id));
$fammid11 = Question::create(array('question' => 'Wenn ich das Spiel schaffe, werde ich schon ein wenig stolz auf meine Tüchtigkeit sein.','questionnaire_id' => $mittel->id));
$fammid12 = Question::create(array('question' => 'Wenn ich an das Spiel denke, bin ich etwas beunruhigt.','questionnaire_id' => $mittel->id));
$fammid13 = Question::create(array('question' => 'Eine solches Spiel würde ich auch in meiner Freizeit spielen.','questionnaire_id' => $mittel->id));
$fammid14 = Question::create(array('question' => 'Die konkreten Leistungsanforderungen hier lähmen mich.','questionnaire_id' => $mittel->id));
}
}<file_sep> $(document).ready(function(){
function scrollToAnchor(aid, offset){
var aTag = $(aid);
if(offset === undefined){offset = 0;}
if(aTag.offset() !== undefined){
$('html,body').animate({scrollTop: aTag.offset().top - offset},'fast');
}
}
$("img.lazy").lazyload({
effect : "fadeIn"
});
$("nav").headroom({
"offset": 200,
"tolerance": 28,
"classes": {
"initial": "",
"pinned": "slideDown",
"unpinned": "slideUp"
}
});
$('.item').each(function(number, value){
if(value.firstChild != null)
{
src = value.childNodes[1].src;
$(this).css({'background-image':'url('+src+')','background-size':'cover'});
}
})
$('nav>ul>li').click(function(){
scrollToAnchor('.'+$(this).data('to'));
})
$('nav>span').click(function(){
scrollToAnchor('.hero');
});
//Portfolio HoverEffekt
$('.item').mouseenter(function(){
$(this).css({'background-image':'url('+$(this).children('.none').attr('src')+')','background-size':'cover'});
});
$('.item').mouseleave(function(){
if(!$(this).hasClass('active')){
$(this).css({'background-image':'url('+$(this).children('.first').attr('src')+')','background-size':'cover'});
}
});
//Portfolio Tabs
$('.item').click(function(){
if($(this).hasClass('active')){
$($(this).data('to')).fadeOut();
$($(this).data('to')).removeClass('tab_open');
$(this).removeClass('active');
$(this).css({'background-image':'url('+$(this).children('.first').attr('src')+')','background-size':'cover'});
}else{
var bsave = $(this);
$('.active').css({'background-image':'url('+$('.active').children('.first').attr('src')+')','background-size':'cover'});
if($('.tab_open').length < 1){
bsave.addClass('active');
$(bsave.data('to')).addClass('tab_open');
$(bsave.data('to')).fadeIn("fast",function(){
scrollToAnchor('.active');
});
}else{
$('.tab_open').fadeOut("fast",function(){
$('.item').removeClass('active');
$('.wrapper').removeClass('tab_open');
bsave.addClass('active');
$(bsave.data('to')).addClass('tab_open');
$(bsave.data('to')).fadeIn("fast",function(){
scrollToAnchor('.active');
});
});
}
}
});
//Portfolio Close
$('.close').click(function(){
var bsave = $(this);
$('.wrapper').fadeOut();
scrollToAnchor('.active', 0);
$('.active').css({'background-image':'url('+$('.active').children('.first').attr('src')+')','background-size':'cover'});
$('.item').removeClass('active');
});
//send mail
$('#submit').click(function(){
var email = $('input[name=email]').val();
var message = $('textarea[name=message]').val();
var message_entered = true;
if(message=="") {
$('textarea[name=message]').css('border-color','red');
message_entered = false;
}else{
$('textarea[name=message]').css('border-color','rgba(200,200,200,.5)');
}
if(email=="") {
$('input[name=email]').css('border-color','red');
message_entered = false;
}else{
$('input[name=email]').css('border-color','rgba(200,200,200,.5)');
}
if(message_entered){
post_data = {'email':email, 'message':message};
$.post('mail.php', post_data, function(response){
//load json data from server and output message
if(response.type == 'error')
{
output = '<div class="error">'+response.text+'</div>';
}else{
output = '<div class="success">'+response.text+'</div>';
//reset values in all input fields
$('#contact-form>input').val('');
$('#contact-form>textarea').val('');
}
$(".content").hide().html(output).fadeIn();
}, 'json');
}
});
});<file_sep><?php
if($_POST)
{
$to_Email = "<EMAIL>"; //Replace with recipient email address
$subject = 'Anfrage von Homepage'; //Subject line for emails
//check if its an ajax request, exit if not
if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {
//exit script outputting json data
$output = json_encode(
array(
'type'=>'error',
'text' => 'Request must come from Ajax'
));
die($output);
}
//check $_POST vars are set, exit if any missing
if(!isset($_POST["email"]) || !isset($_POST["message"]))
{
$output = json_encode(array('type'=>'error', 'text' => 'Input fields are empty!'));
die($output);
}
//Sanitize input data using PHP filter_var().
$user_Email = filter_var($_POST["email"], FILTER_SANITIZE_EMAIL);
$user_Message = filter_var($_POST["message"], FILTER_SANITIZE_STRING);
//additional php validation
if(!filter_var($user_Email, FILTER_VALIDATE_EMAIL)) //email validation
{
$output = json_encode(array('type'=>'error', 'text' => 'Bitte geben Sie eine richtige Email-Adresse an'));
die($output);
}
if(strlen($user_Message)<5) //check emtpy message
{
$output = json_encode(array('type'=>'error', 'text' => 'Ihre Nachricht war zu kurz'));
die($output);
}
//proceed with PHP email.
$headers = 'From: '.$user_Email.'' . "\r\n" .
'Reply-To: '.$user_Email.'' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$sentMail = @mail($to_Email, $subject, $user_Message, $headers);
if(!$sentMail)
{
$output = json_encode(array('type'=>'error', 'text' => 'Die Mail konnte nicht versendet werden Serverfehler :('));
die($output);
}else{
$output = json_encode(array('type'=>'message', 'text' => 'Danke für Ihre Anfrage'));
die($output);
}
}
?><file_sep><?php
// Version
define('VERSION', '4');
// define brand
define('BRAND', 'Respond');
define('BRAND_CSS', '');
define('BRAND_LOGO', '/images/respond-icon.png');
define('BRAND_ICON', '/images/respond-icon.png');
define('COPY', 'Made by <NAME> in Manchester, MO');
define('EMAIL', '<EMAIL>');
// DB connection parameters
define('DB_HOST', 'rdbms.strato.de');
define('DB_NAME', 'DB1681979');
define('DB_USER', 'U1681979');
define('DB_PASSWORD', '<PASSWORD>');
// debugging
define('DEBUG', true);
if(DEBUG){
error_reporting(E_ALL);
ini_set('display_errors', '1');
}
// S3 deployment options
// enables copying site to S3 for deployment
define('ENABLE_S3_DEPLOYMENT', false);
// stores all uploaded files on S3
define('FILES_ON_S3', false);
// default bucket
define('BUCKET_NAME', 'ctc-band.com');
define('S3_LOCATION', 'us-east-1');
define('S3_URL', 'http://{{bucket}}.s3-website-us-east-1.amazonaws.com/{{site}}');
define('S3_KEY', 'AWS ACCESS KEY');
define('S3_SECRET', 'AWS SECRET KEY');
// URLs
define('APP_URL', 'http://cms.ctc-band.com');
define('API_URL', 'http://cms.ctc-band.com/api');
define('SITES_URL', 'http://cms.ctc-band.com/sites');
define('SITE_URL', 'http://test-site.ctc-band.com/');
define('TERMS_URL', 'http://test-site.ctc-band.com/page/terms-of-service');
define('PRICING_URL', 'http://test-site.ctc-band.com/page/terms-of-service');
// webhooks URL
define('WEBHOOKS_URL', '');
// default mode (hash, hashbang, html5, static)
define('DEFAULT_URL_MODE', 'static');
// image prefix (the protocol to use for accessing images, prefixes the domain name)
define('IMAGE_PREFIX', 'http://');
// locations
define('APP_LOCATION', '../');
define('SITES_LOCATION', '../sites');
// setup default language for the site
define('DEFAULT_LANGUAGE', 'en');
// default the name on create
define('DEFAULT_NAME_ON_CREATE', true);
// setup the default text direction for the site (ltr, rtl, auto)
define('DEFAULT_DIRECTION', 'ltr');
// determines whether the user can change the default language while creating the site
define('CHANGE_DEFAULT_LANGUAGE', false);
// passcode
define('PASSCODE', '<PASSWORD>');
// JWT key
define('JWT_KEY', 'iloverespond');
// paypal
define('PAYPAL_EMAIL', '');
define('PAYPAL_USE_SANDBOX', false);
define('PAYPAL_CURRENCY', 'USD');
define('PAYPAL_LOGO', '');
// stripe keys
define('STRIPE_SECRET_KEY', '');
define('STRIPE_PUBLISHABLE_KEY', '');
// plans
define ('SUBSCRIPTION_PLANS', serialize (array (
array(
'id' => 'respond-starter',
'desc' => 'Starter - $5/mo',
'price' => 5,
'interval' => 'M' // M = month, D = day, W = week, Y = year
),
array(
'id' => 'respond-basic',
'desc' => 'Basic - $15/mo',
'price' => 15,
'interval' => 'M'
),
array(
'id' => 'respond-pro',
'desc' => 'Professional - $30/mo',
'price' => 30,
'interval' => 'M'
)
)));
// Cross Origin Resource Sharing (CORS)
define ('CORS', serialize (array (
'http://cms.ctc-band.com '
)));
// advanced SMTP settings (see https://github.com/Synchro/PHPMailer)
define('IS_SMTP', false);
define('SMTP_HOST', 'smtp.mailserver.com');
define('SMTP_AUTH', true);
define('SMTP_USERNAME', '');
define('SMTP_PASSWORD', '');
define('SMTP_SECURE', 'tls');
// key used to encrypt site SMTP passwords
define('SMTPENC_KEY', 'iloverespond');
// set what emails should be sent out and a reply-to email address
define('REPLY_TO', '');
define('REPLY_TO_NAME', '');
define('SEND_WELCOME_EMAIL', false);
define('SEND_PAYMENT_SUCCESSFUL_EMAIL', false);
define('SEND_PAYMENT_FAILED_EMAIL', false);
// start page (sets the default page (route state) a user sees after logon)
define('START_PAGE', 'app.pages');
// set the default theme (directory name: themes/simple => simple)
define('DEFAULT_THEME', 'simple');
define('THEMES_FOLDER', 'themes');
// allowed filetypes (NOTE: gif, png, jpg, and svg are enabled by default)
define('ALLOWED_FILETYPES', 'ico, css, js, pdf, doc, docx, zip');
// advanced configurations
define('IMAGE_AUTO_RESIZE', true);
define('IMAGE_MAX_WIDTH', 1024);
define('IMAGE_MAX_HEIGHT', 768);
// thumb width and height
define('THUMB_MAX_WIDTH', 400);
define('THUMB_MAX_HEIGHT', 400);
// set default as UTC
date_default_timezone_set('UTC');
?><file_sep><!DOCTYPE html>
<html>
<head>
<title></title>
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:image" content="">
<meta name="Description" content="">
<meta name="Author" content="<NAME>">
<meta charset="utf-8">
<link rel="shortcut icon" href="favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Lato:100,300' rel='stylesheet' type='text/css'>
<link href="css/style.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css" rel="stylesheet">
</head>
<style type="text/css">
body{
background-image: url(img/bg.jpg);
background-size: cover;
}
</style>
<body>
<div id="loading"> LOADING ! </div>
<div class="main">
<div class="row" id="hero">
</div>
<div class="row">
<nav>
<ul>
<li id="drums"><a>DRUMS</a></li>
<li id="snare"><a>SNARES</a></li>
<li id="cymbals"><a>CYMBALS</a></li>
<li id="hardware"><a>HARDWARE</a></li>
<li id="sound"><a>SOUND</a></li>
</ul>
</nav>
</div>
<div class="row" id="row1"></div>
<div class="row" id="row2"></div>
<div class="row" id="row3"></div>
</div>
<footer>
<div class="row">
<div class="col-l">
<h3>Design</h3>
<a style="
color: #f9f9f9;
" href="http://tp-itservice.com/index.php">Webdesign Ulm</a>
</div>
<div class="col-s">
<h3>Impressum</h3>
<p>
<NAME> <br>
<br>
Virchowstraße 16<br>
<br>
89075 Ulm<br>
<br>
<EMAIL></p>
</div>
</div>
</footer>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$( "#loading" ).hide();
$( document ).ajaxStart(function() {
$( "#hero" ).removeClass('bounceInDown animated');
$( "#row1>.col-l" ).removeClass('bounceInLeft animated');
$( "#row1>.col-s" ).removeClass('bounceInRight animated');
$( "#row2>.col-s" ).removeClass('bounceInLeft animated');
$( "#row2>.col-l" ).removeClass('bounceInRight animated');
$( "#row3>.col-s" ).removeClass('bounceInRight animated');
$( "#row3>.col-l" ).removeClass('bounceInLeft animated');
});
$( document ).ajaxComplete(function() {
$( "#hero" ).addClass('bounceInDown animated');
$( "#row1>.col-l" ).addClass('bounceInLeft animated');
$( "#row1>.col-s" ).addClass('bounceInRight animated');
$( "#row2>.col-s" ).addClass('bounceInLeft animated');
$( "#row2>.col-l" ).addClass('bounceInRight animated');
$( "#row3>.col-s" ).addClass('bounceInRight animated');
$( "#row3>.col-l" ).addClass('bounceInLeft animated');
});
$('#snare').click(function(){
$.get( "snarehero.html", function( data ) {
$( "#hero" ).html( data );
});
$.get( "snare1.html", function( data ) {
$( "#row1" ).html( data );
});
$.get( "snare2.html", function( data ) {
$( "#row2" ).html( data );
});
$.get( "empty.html", function( data ) {
$( "#row3" ).html( data );
});
});
$('#cymbals').click(function(){
$.get( "cymhero.html", function( data ) {
$( "#hero" ).html( data );
});
$.get( "cym1.html", function( data ) {
$( "#row1" ).html( data );
});
$.get( "cym2.html", function( data ) {
$( "#row2" ).html( data );
});
$.get( "empty.html", function( data ) {
$( "#row3" ).html( data );
});
});
$('#hardware').click(function(){
$.get( "hwhero.html", function( data ) {
$( "#hero" ).html( data );
});
$.get( "cobras.html", function( data ) {
$( "#row1" ).html( data );
});
$.get( "pearl.html", function( data ) {
$( "#row2" ).html( data );
});
$.get( "felle.html", function( data ) {
$( "#row3" ).html( data );
});
});
$('#drums').click(function(){
$.get( "drumhero.html", function( data ) {
$( "#hero" ).html( data );
});
$.get( "drum1.html", function( data ) {
$( "#row1" ).html( data );
});
$.get( "drum2.html", function( data ) {
$( "#row2" ).html( data );
});
$.get( "drum3.html", function( data ) {
$( "#row3" ).html( data );
});
});
$('#sound').click(function(){
$.get( "drumsound.html", function( data ) {
$( "#hero" ).html( data );
});
$.get( "empty.html", function( data ) {
$( "#row1" ).html( data );
});
$.get( "empty.html", function( data ) {
$( "#row2" ).html( data );
});
$.get( "empty.html", function( data ) {
$( "#row3" ).html( data );
});
});
$.get( "drumhero.html", function( data ) {
$( "#hero" ).html( data );
});
$.get( "drum1.html", function( data ) {
$( "#row1" ).html( data );
});
$.get( "drum2.html", function( data ) {
$( "#row2" ).html( data );
});
$.get( "drum3.html", function( data ) {
$( "#row3" ).html( data );
});
</script>
</body>
</html><file_sep>var tour = {
intro:function(){
// setup a tour
var tour = new Shepherd.Tour({
defaults: {
classes: 'shephed-element',
scrollTo: true
}
});
tour.addStep('step1', {
text: i18n.t('tour_intro_step1'),
attachTo: {element: 'nav h1', on: 'bottom'},
classes: 'no-arrow',
buttons: [
{
text: i18n.t('Exit'),
classes: 'shepherd-button-secondary',
action: function() {
return tour.hide();
}
},
{
text: i18n.t('Next'),
classes: 'shepherd-button-primary',
action: function() {
return tour.next();
}
}
]
});
tour.addStep('step2', {
text: i18n.t('tour_intro_step2'),
attachTo: '#listItem-0 h2 a right',
classes: '',
buttons: [
{
text: i18n.t('Exit'),
classes: 'shepherd-button-secondary',
action: function() {
return tour.hide();
}
},
{
text: i18n.t('Next'),
classes: 'shepherd-button-primary',
action: function() {
return tour.next();
}
}
]
});
tour.addStep('step3', {
text: i18n.t('tour_intro_step3'),
attachTo: '#add-page left',
classes: '',
buttons: [
{
text: i18n.t('Exit'),
classes: 'shepherd-button-secondary',
action: function() {
return tour.hide();
}
},
{
text: i18n.t('Next'),
classes: 'shepherd-button-primary',
action: function() {
return tour.next();
}
}
],
tetherOptions:{
offset: '-5px 0',
targetOffset: '20px 0'
}
});
tour.addStep('step4', {
text: i18n.t('tour_intro_step4'),
attachTo: 'nav .show-menu right',
classes: '',
buttons: [
{
text: i18n.t('Exit'),
classes: 'shepherd-button-secondary',
action: function() {
return tour.hide();
}
},
{
text: i18n.t('Next'),
classes: 'shepherd-button-primary',
action: function() {
$('body').toggleClass('show-nav');
return tour.next();
}
}
],
tetherOptions:{
targetOffset: '20px 0'
}
});
tour.addStep('step5', {
text: i18n.t('tour_intro_step5'),
attachTo: '#advanced-configurations right',
classes: 'pull-front',
buttons: [
{
text: i18n.t('Exit'),
classes: 'shepherd-button-secondary',
action: function() {
return tour.hide();
}
},
{
text: i18n.t('Next'),
classes: 'shepherd-button-primary',
action: function() {
$('body').toggleClass('show-nav');
return tour.next();
}
}
],
tetherOptions:{
targetOffset: '20px 200px'
}
});
tour.addStep('step6', {
text: i18n.t('tour_intro_step6'),
attachTo: '#listItem-0 h2 a right',
classes: '',
buttons: [
{
text: i18n.t('Get Started'),
classes: 'shepherd-button-primary',
action: function() {
return tour.hide();
}
}
]
});
tour.start();
}
}<file_sep> <?php
echo '
<nav>
<ul>
<li><a href="impressum.php">Impressum</a></li>
<li><a href="portfolio.php">Portfolio</a></li>
<li><a href="angebot.php">Angebote</a></li>
<li><a href="index.php">Home</a></li>
</ul>
</nav>
';
<file_sep>//
// Copyright 2013 <NAME>
//
// 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.
(function(){
"use strict"
var LearningTrigger_states = [
{
'name':'inactive',
'initial':true,
'events' :
{
'door1':'door1text',
'door2':'door2text',
'door3':'door3text',
'findmap':'maptext',
'monster':'monstertext',
'climbtut':'climbtext',
'pickuptut':'pickuptext',
'gatetut':'gatetext',
'picturetut':'picturetext'
}
},
{
'name': 'door1text',
'events' :
{
}
},
{
'name': 'door2text',
'events' :
{
}
},
{
'name': 'door3text',
'events' :
{
}
},
{
'name': 'maptext',
'events':
{
}
},
{
'name': 'monstertext',
'events':
{
}
}
];
MyGame.LearningTrigger = function(game, name, x, y, width, height, props)
{
Nadion.Trigger.call( this, game, name, x, y, width, height, props );
this.fsm = new Nadion.StateMachine( LearningTrigger_states, this );
props = props['on'];
this.trigger_on_touch = true;
this.text="";
};
MyGame.LearningTrigger.prototype = Object.create( Nadion.Trigger );
Nadion.__extends( MyGame.LearningTrigger, Nadion.Trigger );
MyGame.LearningTrigger.prototype.constructor = MyGame.LearningTrigger;
MyGame.LearningTrigger.prototype.on = function()
{
this.fsm.consumeEvent(this.props['on']);
};
MyGame.LearningTrigger.prototype.door1text = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
var text = 'Ein verschlossenes Tor: <br> <b>Fortsetzung</b> <br> finde den passenden Schlüssel um es zu öffnen <br> (weiter mit -Enter-)';
this.renderText(text);
}
};
MyGame.LearningTrigger.prototype.door2text = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
var text = 'Ein verschlossenes Tor: <br> <b>Geschlossenheit</b> finde den passenden Schlüssel um es zu öffnen <br> (weiter mit -Enter-)';
this.renderText(text);
}
};
MyGame.LearningTrigger.prototype.door3text = function(){
var game_state = this.game.state.states[this.game.state.current];
if(game_state.player.backpack === undefined)
{
var text = 'Ein verschlossenes Tor: <br> <b>Ähnlichkeit</b> finde den passenden Schlüssel um es zu öffnen <br> (weiter mit -Enter-)';
this.renderText(text);
}
};
MyGame.LearningTrigger.prototype.maptext = function(){
var text = 'Drücke - M - um dir die verschiedenen Ebenen und dazugehörigen Tore noch einmal anzusehen. Schließe die Übersicht mit - Enter - <br> (weiter mit - Enter -)';
this.renderText(text);
};
MyGame.LearningTrigger.prototype.renderText = function(text){
var game_state = this.game.state.states[this.game.state.current];
game_state.player.fsm.consumeEvent('stop');
game_state.player.fsm.consumeEvent('startstop');
$('#text').html(text);
$('#text').slideDown(500);
}
})(); <file_sep>var play_state = {
create: function() {
game.physics.startSystem(Phaser.Physics.ARCADE);
game.stage.backgroundColor = '#00affee';
//add MapTiles
map = game.add.tilemap('map');
map.addTilesetImage('tiles', 'tiles');
map.setCollisionBetween(0, 2);
layer = map.createLayer('Layer-1');
layer2 = map.createLayer('Layer-2');
//add MapCollisionBounds
//layer.debug = true;
//add Player and Playerphysics
p = game.add.sprite(32, 100, 'player');
game.physics.enable(p);
game.physics.arcade.gravity.y = 100;
p.body.bounce.y = 0.2;
p.body.linearDamping = 1;
p.body.collideWorldBounds = true;
p.animations.add('left', [0,1,2,3], 4, true)
p.animations.add('right', [8,9,10,11], 4, true)
p.animations.add('idle', [4,5,6,7], 2, true)
p.animations.add('jump', [12,13,14,15], 4, true)
game.camera.follow(p);
cursors = game.input.keyboard.createCursorKeys();
},
update: function () {
game.physics.arcade.collide(p, layer);
p.body.velocity.x = 0;
if (cursors.left.isDown)
{
p.body.velocity.x = -200;
p.animations.play('left');
}
else if (cursors.right.isDown)
{
p.body.velocity.x = 200;
p.animations.play('right');
if (cursors.up.isDown){
if (p.body.onFloor())
{
p.animations.play('jump');
p.body.velocity.y = -200;
}
}
}else if (cursors.up.isDown)
{
if (p.body.onFloor())
{
p.animations.play('jump');
p.body.velocity.y = -200;
}
}else{
p.animations.play('idle');
}
}
}<file_sep> <?php
echo '
<footer>
<EMAIL> | 0171 8125202 | <NAME> | Tp-ITService
</footer>
';
<file_sep><?php
$file = './public/news.json';
$news = file_get_contents($file, true);
$news .= "<NAME>\n";
file_put_contents($file, $news);
echo $news;<file_sep><!DOCTYPE html>
<html>
<head>
<title>Cheerful to Cloudy · Kontakt</title>
<meta property="og:title" content="Cheerful to Cloudy · Kontakt">
<meta property="og:description" content="Schreib uns doch mal">
<meta property="og:image" content="http://ctc-band.com/Logos/ctc-black.jpg">
<meta name="Description" content="Schreib uns doch mal">
<meta name="Author" content="<NAME>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300' rel='stylesheet' type='text/css'>
<link rel="canonical" href="http://www.ctc-band.com/kontakt.php" />
<link rel="shortcut icon" href="favicon.ico">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<?php include 'header.php'; ?>
<section class="hero-kontakt">
<section id="not100" class="row">
<div class="content">
<h1>Schreib uns doch mal</h1>
<fieldset id="contact-form">
<input class="row" type="email" name="email" id="email" id="" placeholder="Deine Mail">
<textarea name="message" class="row" placeholder="Deine Nachricht" rows="10"></textarea>
<button class="row" type="submit" id="submit" class="btn btn-lg btn-default form-control">Send</button>
</fieldset>
<h1><EMAIL></h1>
</div>
</section>
</section>
<?php include 'footer.php'; ?>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$('#navigation>li').removeClass('active');
$('#nav_kontakt').addClass('active');
$('.navicon').click(function(){
if ($('nav').hasClass('activated')){
$('nav').removeClass('activated');
$('nav').css({'display':'none'});
}else{
$('nav').css({'display':'block'});
$('nav').addClass('activated');
}
});
$('#submit').click(function(){
var email = $('input[name=email]').val();
var message = $('textarea[name=message]').val();
var message_entered = true;
if(message=="") {
$('textarea[name=message]').css('border-color','red');
message_entered = false;
}
if(message_entered){
post_data = {'email':email, 'message':message};
}
$.post('mail.php', post_data, function(response){
//load json data from server and output message
if(response.type == 'error')
{
output = '<div class="error">'+response.text+'</div>';
}else{
output = '<div class="success">'+response.text+'</div>';
//reset values in all input fields
$('#contact_form input').val('');
$('#contact_form textarea').val('');
}
$(".content").hide().html(output).slideDown();
}, 'json');
});
</script>
</body>
</html> | 683cf4848e7813dc6a1bab416a3a68e905764d9b | [
"JavaScript",
"Markdown",
"HTML",
"PHP"
] | 86 | HTML | sanderdrummer/Homepages | 7b769299747a1a88f2ad4fb1314e2e635661d3e3 | 814bc84badf857ac7f913c5ce75ba8494ec1f7c4 |
refs/heads/master | <repo_name>DominikPhua/bloggies-psql<file_sep>/app/controllers/posts_controller.rb
class PostsController < ApplicationController
before_action :authenticate_user!
# only: [:new, :edit]
# except: [:new, :edit]
def index
news_url = 'https://newsapi.org/v1/articles?source=techcrunch&apiKey=2b2592e5b8c148bab1df27ed05b5e533'
response = HTTParty.get(news_url)
@news_data = response
places_url = 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&type=restaurant&keyword=cruise&key=<KEY>'
response_places = HTTParty.get(places_url)
@places_data = response_places
# render json: response
@all_posts = current_user.posts
@new_post = current_user.posts.new
# @new_post = Post.new
# render json: current_user.posts
# render json: current_user
# render html: "show all posts by #{current_user.id}"
end
def show
@show_post = Post.find(params[:id])
end
def new
render html: 'show form to create new post'
end
def edit
@current_post = Post.find(params[:id])
end
def create
creating_post = post_params
Post.create(creating_post)
redirect_to posts_path
end
def destroy
Post.destroy(params[:id])
redirect_to posts_path
end
def update
# render json: post_params
updated_post = Post.find(params[:id])
updated_post.update(post_update_params)
redirect_to posts_path
# render html: 'updated'
end
private
def post_params
params.require(:post).permit(:title, :content, :user_id)
end
def post_update_params
params.require(:post).permit(:title, :content)
end
end
| 2d5310f1e37a9ab49956d2804587455a614ed656 | [
"Ruby"
] | 1 | Ruby | DominikPhua/bloggies-psql | 8242c628ad66cff8e783747d907c752b48fd48c8 | 25c84c261b75297a46073bc68360f2df31eb5887 |
refs/heads/master | <repo_name>pannous/netbase-ruby<file_sep>/node.rb
class Node
alias old_initialize initialize
alias old_inspect inspect
alias old_save save
alias old_destroy destroy
#attr_accessor :name,:class,:value,:statements,:block # attr_accessor :value, :statements, :owner # , :kind
def initialize args=nil
puts "init "
old_initialize args
return self
end
def self.load netbaseId
url="http://netbase.pannous.com/json/verbose/"+netbaseId.to_s
require 'net/http'
require 'uri'
json=Net::HTTP.get URI.parse(url)
require 'json'
objects=JSON.parse(json, object_class: OpenStruct)
results=objects['results']
result=results[0]
end
def get predicate, object=nil
get_member predicate, object
end
def self.list instance_name
begin
Node.find_all_by_name instance_name.to_s
rescue Interrupt
puts "Interrupted\n"
rescue IRB::Abort
puts "Interrupted\n"
end
end
@value
def value
Value.find :last, :conditions=>"node_id=#{id}" rescue @value
end
def value= val
@value=val
Value.new(:node=>self, :value=>val).save
end
def edges
# subject_statements+object_statements
end
def statements
edges
end
def destroy
clear
@@instances.remove self
old_destroy
end
@@instances=Hash.new
def self.get(name, context=nil)
return name if name.is_a? Node
name= name.to_s
# n=Node.find_by_name name
n=@@instances[name] if not n
puts "found #{name} in RAM" if n
if not n
n=Node.find_by_id name if name.is_a? Fixnum
n=Node.find_by_name name.to_s if not n #all
puts "found #{name} in DB" if n
end
if not n
puts "create "+name
n=Node.new(:name=>name, :context=>context) if context
n=Node.new(:name=>name) if not context
end
@@instances[name]=n
@@instances[n.id]=n
n
end
#allows for New.huhn{self.eier=8}
def evaluate &block
puts "evaluate "+block
instance_eval &block
#puts block.methods
#puts &block.methods
# wie geht New.huhn{eier=8} ? gar nicht? so nicht :
#@self_before_instance_eval = eval "self", block.binding
#self.instance_eval &block
#instance_eval &block, self.binding
end
#
#def self.method_missing method
# Node.new method.to_s
#end
def self.Unknown
Node.get "Unknown"
end
# def self.method_missing #needs trick [class eval alias ...]
# @@old_class_method_missing = self.public_class_method(:method_missing)
# def self.method_missing method, *args, &block
# begin
# puts @@old_class_method_missing
## return @@old_class_method_missing.call(method, args)#OK!
# rescue
## puts "nix"
# end
# n=Node.get method.to_s
# n.value=args[0] if args.length>0
# if block_given?
# n.evaluate &block
# end
# return n
# end
alias old_method_missing method_missing
def method_missing meth, *args
# puts "."
# puts "method_missing "+meth+" "+args
arg=args[0] rescue ""
arg=arg.to_s if arg.is_a? Symbol
# puts caller
begin
x= old_method_missing(meth, args) if args.length > 0
x= old_method_missing(meth) if args.length==0
# puts "found method "+meth+" "+args
return x
rescue NoMethodError
# puts "ok"
rescue NameError
puts $!
return
# puts "ok"
rescue ArgumentError
puts "+++++++++++++++++++"
puts "ArgumentError "+meth+" "+args
puts $!
# puts $!.backtrace
puts "---------------------"
# retry if old_method_missing(meth)
rescue => err;
puts "Rescued #{err.class.name}";
puts $!
# raise err
return
# puts "nix"
end
type="Node" if type==nil
# return name if (meth=='name')
# return context.id if (meth=='context_id')
# puts "method_missing "+meth+" "+args
meth=meth.to_s
isAssignment= /=$/ =~ meth
isPlural= /s$/ =~ meth
isQuestion= /\?$/ =~ meth
isCall= /!$/ =~ meth
# raise "MethodMissing "+method /\!$/ =~ method #if not (/=$/ =~ method) and args.length>0
meth.sub!(/=$/, "")
# puts isAssignment
if find_edge meth
# puts name+" FOUND "+meth
return get(meth)
elsif isAssignment
puts name+".value="+arg.to_s
add(meth, arg)
return self
elsif isQuestion
ans=has meth
return ans.blank? ? ans : Node.Unknown
else
if isPlural
alle=get_all meth.sub!(/s$/, "")
return alle if alle
end
node=add_new_member meth
end
if args.length>0 and isAssignment and node.is_a? Node
isQuestion= /\?$/ =~ arg rescue false
return node.value==arg.sub!(/\?$/, "") if isQuestion
node.value=arg
puts node.name+".value="+arg
else
puts "handle_arguments"
node.handle_arguments args if args.length>0 rescue nil #TODO
end
# n.owner=self if not n.owner
return node
end
def inspect
show
# return self
end
# def kind
# type
# end
def show
body=""
@statements.each{|key, node|
val= node.value.blank? ? "" : "="+node.value.to_s rescue ""
body+=";" if not body.blank?
body+= key+val
} if @statements
for node in subject_statements
body+=";" if not body.blank?
body+="\t"
body+= node.predicate.blank? ? node.object.to_s : node.predicate.to_s+ (node.object.blank? ? "": ": "+node.object.to_s) rescue "xx"
end
for node in object_statements
body+=";" if not body.blank?
body+="\t"
body+= node.predicate.to_s+ "@"+node.subject.to_s rescue "xx"
end
if (body.length>30)
body="\n"+body.gsub(";", "\n")+"\n"
else
body.gsub!("\t", " ")
end
# for node in predicate_statements
# body+=";" if not body.blank?
# body+= node.subject.to_s+"->"+self.to_s+ "->"+node.object.to_s rescue "xx" if node.object.blank?
# body+= self.to_s+"@"+node.subject.to_s rescue "xx" if not node.object.blank?
# end
body="{"+body+"}" if not body.blank?
val= value.blank? ? "" : "="+value.to_s;
# puts "self.value="+self.value
# klass= type+" " rescue ""# @class=="object" ? "" : @class.to_s+" "
klass= kind+" " if kind!="Node" rescue ""# @class=="object" ? "" : @class.to_s+" "
return body # "\n"+klass+name.to_s+" #"+id+body+val+"\n";
end
def to_s
# return label.value.to_s if has "label" rescue nil
name.to_s
end
def set predicate, object=nil
add predicate, object
end
def add predicate, object=nil
# save
predicate=Node.get predicate
object=Node.get object if object
predicate.save
object.save if object
statement=Statement.new({:subject=>self, :predicate=>Node.get(predicate), :object=>Node.get(object)})
# statement=subject_statements.create({:subject=>self, :predicate=>Node.get(predicate), :object=>Node.get(object)})
statement.save
subject_statements<<statement
object.object_statements<<statement if object
predicate.predicate_statements<<statement if predicate
statement.save
# Statement.new(self,predicate,object).save if object
# Statement.new(self,"HAS",predicate).save if not object
# Statement.new({:subject=>self,:predicate=>predicate,:object=>object}).save if object
# Statement.new({:subject=>self,:predicate=>"HAS",:object=>predicate}).save if not object
end
def self.[] id
Node.get id
end
# def [] id
## Node.get id #todo instances or so
# get_all id
# end
def type
for s in subject_statements
return s.object if s.predicate==Relation.Hypernym|| s.predicate.is('IS')|| s.predicate.is('Type')
end
for s in object_statements
return s.subject if s.predicate==Relation.Hypernym|| s.predicate.is('Instance')|| s.predicate.is('subclass') and s.object==kind
end
end
def is kind
kind_s=kind.to_s.downcase
return true if is_a? kind rescue nil
return true if self==kind or self.class.to_s.downcase==kind_s or kind_s==(name||"").downcase rescue false #NIL !! todo
return false
end
# def length
# name.length
# end
def is? kind
return true if self.is kind
return false if self.is_a? Statement
return false if respond_to?"name" and name.is_a? Statement # SHOULD NEVER BE!!!!!!!!!!!!!!!!
return false if kind.is_a? Statement
for s in subject_statements
return true if (s.predicate==Relation.Hypernym|| s.predicate.is('IS')|| s.predicate.is('SuperClass')|| s.predicate.is('Type')) and s.object.is kind
# RECURSIVE!
return true if (s.predicate==Relation.Hypernym|| s.predicate.is('IS')|| s.predicate.is('SuperClass')|| s.predicate.is('Type')) and s.object.is? kind
end
for s in object_statements
return true if s.predicate==Relation.Hyponym|| s.predicate.is('Instance')|| s.predicate.is('SubClass') and s.object==kind rescue nil
end
# for s in subject_statements
# return true if s.predicate==Relation.Hypernym|| s.predicate.is('IS')|| s.predicate.is('SuperClass')|| s.predicate.is('Type') and s.object.is kind
# end u
# for s in object_statements
# return true if s.predicate==Relation.Hypernym|| s.predicate.is('IS')|| s.predicate.is('Type') and s.object==kind
# end
return false
end
# def get predicate
# get_member predicate
# end
# def self.where s
# Node.find :all, :conditions=>s
# end
def get_member predicate, object=nil, &block
for s in subject_statements
next if not s.predicate
if not object
if (s.predicate and s.object and
( s.predicate.is(Relation.Meronym) or
s.predicate.is(Relation.Part) or
s.predicate.is(Relation.Substance) or
s.predicate.is('has')) and s.object.is(predicate))
then
return s.object||predicate
end
return s.object||predicate if s.predicate.is predicate
return s.object||predicate if s.object.is predicate and not s.predicate.is_a? Relation rescue nil #nee, oder
else
return s.object if s.predicate==predicate and s.object.is object
return s.object if s.object.is object
end
end
for s in object_statements
next if not s.predicate
if not object
return s.object if s.object.is? predicate rescue nil
return s.subject if s.subject.is? predicate rescue nil
return s.predicate if s.predicate.is? predicate and not s.subject
return s.subject if s.predicate.is_a? Relation and s.predicate.Antonym.is? predicate and s.subject rescue nil
else
return s.subject if s.predicate.is? predicate and s.subject.is? subject
return s.subject if s.predicate==Relation.Holonym || s.predicate.is('OWNER') and s.subject.is object
end
end
return nil
end
def get_all predicate, object=nil, &block
all=[]
for s in subject_statements
next if not s.predicate
if not object
if ((s.predicate.is(Relation.Meronym) ||
s.predicate.is(Relation.Part) ||
s.predicate.is(Relation.Substance) ||
s.predicate.is('HAS')) && s.object.is(predicate))
then
all<< s.object||predicate
end
all<<s.object||predicate if s.predicate==predicate || s.predicate.to_s==predicate.to_s
all<<s.object||predicate if s.predicate.is predicate rescue nil
all<<s.object||predicate if s.object.is predicate and not s.predicate.is_a? Relation rescue nil #nee, oder
else
all<<s.object if s.predicate==predicate and s.object.is object
all<<s.object if s.object.is object
end
end
for s in object_statements
next if not s.predicate
if not object
all<<s.object if s.object.is? predicate
all<<s.subject if s.subject.is? predicate rescue nil
all<<s.predicate if s.predicate.is?(predicate) and not s.subject
# all<<s.subject if s.predicate.is? predicate and s.subject
all<< s.subject if s.predicate.is_a? Relation and s.predicate.Antonym and s.predicate.Antonym.is predicate and s.subject rescue nil
else
all<<s.subject if s.predicate.is? predicate and s.subject.is? subject
all<<s.subject if s.predicate==Relation.Holonym or s.predicate.is('OWNER') and s.subject.is object
end
end
return all
end
alias has? get_member
def add_new_member name
puts self.name+" += NEW "+name.to_s
n=Node.new :name=>name
# @statements[name]=n
s=Statement.new(:subject=>self, :predicate=>Relation.Member, :object=>n)
s.fix_id
s.save
subject_statements<<s rescue nil
# @@instances[name]=n
return n
end
#
# def synonym
# x=get Relation.Synonym
# return x.name if x
# return name
# end
def classes
get_all Relation.Hyponym
end
def handle_arguments *args
return self if not args or args.length<1 or args.length==1 and args[0]==[]
puts ">>"+args.length+ " args for "+self.name+" "+args.inspect
pref=self
for a in args
a=a.to_s if a.is_a? Symbol
puts pref.name+"." +a
a=a[0] if a.length>0 rescue a
pref.add a
pref=a
end
return self
end
def self.My
return Context.first
end
def find_edges predicate, object=nil
all=[]
for s in subject_statements
next if not s.predicate
if not object
all<<s if s.object.is? predicate
all<<s if s.predicate.is? predicate
all<< s if s.predicate.is_a? Relation and s.predicate.Antonym.is? predicate rescue nil
all<<s if s.subject.is? predicate rescue nil
else
all<<s if s.predicate.is? predicate and s.object.is? object
end
end
for s in object_statements
next if not s.predicate
if not object
all<< s if s.object.is? predicate
all<< s if s.predicate.is? predicate
all<< s if s.predicate.is_a? Relation and s.predicate.Antonym.is? predicate rescue nil
all<< s if s.subject.is? predicate rescue nil
else
all<< s if s.predicate.is? predicate and s.subject.is? subject
end
end
return all
end
def find_edge predicate, object=nil
return Statement[predicate] if not object and predicate.is_a? Fixnum
for s in subject_statements
next if not s.predicate
if not object
return s if s.object.is? predicate rescue nil
return s if s.predicate.is? predicate rescue nil
return s if s.predicate.is_a? Relation and s.predicate.Antonym.is? predicate rescue nil
return s if s.subject.is? predicate rescue nil
else
return s if s.predicate.is? predicate and s.object.is? object rescue nil
end
end
for s in object_statements
next if not s.predicate
if not object
return s if s.object.is? predicate rescue nil
return s if s.predicate.is? predicate rescue nil
return s if s.predicate.is_a? Relation and s.predicate.Antonym.is? predicate rescue nil
return s if s.subject.is? predicate rescue nil
else
return s if s.predicate.is? predicate and s.subject.is? subject rescue nil
end
end
return nil
end
alias edge find_edge
def drop predicate, object=nil
edge=find_edge predicate, object
return false if not edge
edges.delete edge
edge.destroy
save
return edge
end
def all
reals=list name
for real in reals
real.has? name
end
end
def count
edges.count
end
end
#ok, if no table
class Noun <Node
end
class Kind<Node
end
class Verb<Node
end
class Word<Node
end
class Adjective<Node
end
class Adverb<Node
end
class Person<Node
end
#if table exists
class Concept < Node
# def method_missing m, *a
# puts "Concept method_missing"
# super(m, *a)
# end
end
<file_sep>/test.rb
require './netbase.rb'
puts Node<file_sep>/README.md
# netbase-ruby
<file_sep>/relation.rb
class Relation < Node
def is? x
return x.to_s == to_s
end
def is x
return x.to_s == to_s
end
# def self.method_missing method,*args
# return Relation.find_by_name method
# end
def self.get relation
return Relation.find_by_name(relation)
end
@@Category=Relation.find_by_id 43
def self.Category
@@Category
end
@@SubContext=Relation.find_by_id 44
def self.SubContext
@@SubContext
end
@@SuperContext=Relation.find_by_id 45
def self.SuperContext
@@SuperContext
end
@@Synonym=Relation.find_by_id 32
def self.Synonym
@@Synonym
end
#rake db:fixtures:load
# ALSO_SEE :
# id: 0x0
# name: "ALSO_SEE"
## ^
#
@@Antonym=Relation.find_by_id 1
def self.Antonym
@@Antonym
end
# ANTONYM :
# id: 0x1
# context_id: 103
# context_id: 103
# name: "ANTONYM"
### !
#
# ATTRIBUTE :
# id: 0x2
# context_id: 103
# name: "ATTRIBUTE"
### =
#
# CAUSE:
# id: 0x3
# context_id: 103
# name: "CAUSE"
### >
#
#
# DERIVATIONALLY_RELATED_FORM :
# id: 0x5
# context_id: 103
# name: "DERIVATIONALLY_RELATED_FORM"
### +
## zero (noun.) => to zero (v.) ++
#
@@Derived=Relation.find_by_id 4
def self.Derived
@@Derived
end
# DERIVED_FROM_ADJECTIVE :
# id: 0x4
# context_id: 103
# name: "DERIVED_FROM_ADJECTIVE"
# # \
## zero (adj.) => to zero (v.) ++
#
#
# DOMAIN_OF_SYNSET_CATEGORY :
# id: 0x6
# name: "DOMAIN_OF_SYNSET_CATEGORY"
### ;c
## sheet @ maths !!
#
# DOMAIN_OF_SYNSET_REGION :
# id: 0x7
# name: "DOMAIN_OF_SYNSET_REGION"
### ;r
## mate @ australia billion@US --
#
# DOMAIN_OF_SYNSET_USAGE :
# id: 0x8
# context_id: 103
# name: "DOMAIN_OF_SYNSET_USAGE"
### ;u
##bitch @ colloquialism || fin de siecle @ French # fuck(vulgar)
#
# ENTAILMENT :
# id: 0x9
# context_id: 103
# name: "ENTAILMENT"
### *
## jump implies come down to anger s.o. => s.o. sees red
#
@@Hypernym=Relation.find_by_id 10
def self.Hypernym
@@Hypernym
# Relation.find_by_id 10
# Relation.find_by_name "HYPERNYM"
end
# HYPERNYM :
# id: 0xa #10
# context_id: 103
# name: "HYPERNYM"
### @
@@Hyponym=Relation.find_by_id 11
def self.Hyponym
@@Hyponym
# Relation.find_by_id 11
# Relation.find_by_name "HYPONYM"
end
# HYPONYM :
# id: 0xb #11
# context_id: 103
# name: "HYPONYM"
#
# MEMBER_HOLONYM:
# id: 0xc #12
# context_id: 103
# name: "MEMBER_HOLONYM"
### #m
#
@@Holonym=Relation.find_by_id(12)
def self.Holonym
@@Holonym
end
def self.Owner
@@Holonym
end
#TODO: cache
@@Meronym=Relation.find_by_id(13)
def self.Member
@@Meronym
end
def self.Meronym
@@Meronym
# Relation.find_by_id 13
end
@@PartMeronym= Relation.find_by_id 18
def self.Part
@@PartMeronym
# Relation.find_by_id 18
end
@@SubstanceMeronym= Relation.find_by_id 23
def self.Substance
@@SubstanceMeronym
# Relation.find_by_id 23
end
# MEMBER_MERONYM:
# id: 0xd #13
# context_id: 103
# name: "MEMBER_MERONYM"
### %m
#
# MEMBER_OF_THIS_DOMAIN_CATEGORY :
# id: 0xe #14
# context_id: 103
# name: "MEMBER_OF_THIS_DOMAIN_CATEGORY"
### -c
## Old Testament : Simon in(of the) Ethiopia: Rastafarian aviation: to overfly
## name: chandelle
#
# MEMBER_OF_THIS_DOMAIN_REGION :
# id: 0xf #15
# context_id: 103
# name: "MEMBER_OF_THIS_DOMAIN_REGION"
### -r IN Japan : Sushi ! France : Marne?naja
#
# MEMBER_OF_THIS_DOMAIN_USAGE :
# id: 0x10 #16
# context_id: 103
# name: "MEMBER_OF_THIS_DOMAIN_USAGE"
## # -u
#
# PART_HOLONYM:
# id: 0x11
# context_id: 103
# name: "PART_HOLONYM"
## # #p
#
# PART_MERONYM:
# id: 0x12
# context_id: 103
# name: "PART_MERONYM"
## # %p
#
# PARTICIPLE_OF_VERB :
# id: 0x13
# context_id: 103
# name: "PARTICIPLE_OF_VERB"
## # <
#
# PERTAINYM :
# id: 0x14
# context_id: 103
# name: "PERTAINYM"
## # \
## cellular(a) \ cell(n) equally(adv)-equal(adj)
#
# SIMILAR_TO :
# id: 0x15
# context_id: 103
# name: "SIMILAR_TO"
## # &
# #?
#
# SUBSTANCE_HOLONYM :
# id: 0x16
# context_id: 103
# name: "SUBSTANCE_HOLONYM"
## # #s
# # Lithium IS-CONTAINED-BY batteries
#
# SUBSTANCE_MERONYM :
# id: 0x17
# context_id: 103
# name: "SUBSTANCE_MERONYM"
# ##CONTAINS # %s
# # asperin CONTAINS salicylic acid
#
# VERB_GROUP :
# id: 0x18
# context_id: 103
# name: "VERB_GROUP"
## # $
#
# RELATIONSHIP_COUNT:
# id: 0x19
# context_id: 103
# name: "RELATIONSHIP_COUNT"
##
def relation_path
puts "TEST"
end
def Antonym
return Relation.Hyponym if self==Relation.Hypernym
return Relation.Hypernym if self==Relation.Hyponym
return Relation.Synonym if self==Relation.Synonym
return Relation.Antonym if self==Relation.Antonym
# return Relation.Attribute if self==Relation.Owner?
return Relation.Derived if self==Relation.Derived
return Relation.SubContext if self==Relation.SuperContext
return Relation.SuperContext if self==Relation.SubContext
end
def anti
return self.Antonym()
end
end
| 6141e966430e13496aa9ea3819c5c5a8a2db9c03 | [
"Markdown",
"Ruby"
] | 4 | Ruby | pannous/netbase-ruby | 848f6f3040decf638ab137ae60f9ca7d4652d8d4 | 06fbe9720a2a017e74d7ee78cfb55acbc4db0670 |
refs/heads/master | <repo_name>SnapLogic/docker-postgres-sakila<file_sep>/Dockerfile
FROM postgres:latest
RUN install --directory /docker-entrypoint-initdb.d
ADD postgres-sakila-db /postgres-sakila-db
ADD scripts/init-sakila-db.sh /docker-entrypoint-initdb.d
#ADD scripts/init-sakila-db.sh /postgres-sakila-db
<file_sep>/README.md
# docker-postgres-sakila
Adds sakila database to official postgres docker image.
## Sakila
The database is initialized with the Sakila database as ported by the jOOQ
project. See: https://github.com/jOOQ/jOOQ/tree/master/jOOQ-examples/Sakila
The scripts are unmodified except for commenting out the creation of the
plpgsql language since it's already been defined. Tsk tsk - it forgot to
add 'if not exists'.
## Enhancements
We needed to add a few fields our purposes:
* adds 'state' column to city table
* populate 'state' column for US and Canadian cities
* adds 'code, 'code2', and 'code3' column to country table.
* populate these columns with ISO-3166 data.
Note: there's no ISO-3166 entry for Yugoslavia.
This allows us to create LDAP entries for the 'staff' and 'customer'
tables that contain the 'ST' and 'C' attributes.
### LDAP .ldif files
(to be done)
The 'staff' and 'customer' tables are exported as .ldif files that
can be loaded into an LDAP server using 'ldapmodify'.
### Digital certificates
(to be done)
Digital certificates and private keys will be created for every
record in the 'staff' and 'customer' tables. This allows testing
applications that require strong mutual authentication. The LDAP
.ldif files will be modified accordingly.
<file_sep>/scripts/init-sakila-db.sh
#!/bin/bash
set -e
# create postgres user since it's not created when we specify a POSTGRES_USER user.
createuser --username "$POSTGRES_USER" --superuser
# create and populate Sakila
for i in postgres-sakila-schema.sql postgres-sakila-schema.sql
do
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" --file /postgres-sakila-db/$i
done
# tweak database to add a bit of missing data
for i in sakila-add-iso3166.sql sakila-add-states.sql
do
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" --file /postgres-sakila-extensions/$i
done
| bfb8cdd80d1875c5e193239abd14609f93a4743f | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Dockerfile | SnapLogic/docker-postgres-sakila | 7c2837d13fc1f3464dd0b476a619232616d5d990 | 262968d9fbcb90f73b7a6fa62760929ab4978f0b |
refs/heads/master | <file_sep>package ru.spbau.mit.bachelors2015
import org.junit.Assert.*
class DullDataBaseManager : DataBaseManager {
private val volunteers: List<Volunteer> =
listOf(
Volunteer(
"<NAME>",
"+7 999 2286942"
),
Volunteer(
"<NAME>",
"+7 666 6669666"
),
Volunteer(
"<NAME>",
"+7 000 9110000"
)
)
private val accommodations: List<Accommodation> =
listOf(
Accommodation("Academy Street", 42, "hotel", "Sun Heaven"),
Accommodation("Jefferson Avenue", 228, "hostel", null),
Accommodation(
"Church Road",
69,
"hutments",
"A place for my head"
)
)
private val athletes: MutableList<Athlete> =
mutableListOf(
Athlete(
"<NAME>",
"male",
203,
113,
32,
accommodations[0].brief(1),
"USA",
volunteers[0].brief(1)
),
Athlete(
"<NAME>",
"male",
193,
100,
35,
null,
"USA",
null
),
Athlete(
"<NAME>",
"female",
175,
90,
36,
null,
"USA",
volunteers[1].brief(2)
)
)
override fun allAthletes(accommodationId: Int?): List<AthleteBrief> {
return (1..athletes.size).filter {
accommodationId == null || athletes[it - 1].accommodation?.id == accommodationId
}.map { athletes[it - 1].brief(it) }
}
override fun allAccommodations(): List<AccommodationBrief> {
return (1..accommodations.size).map { accommodations[it - 1].brief(it) }
}
override fun allVolunteers(): List<VolunteerBrief> {
return (1..volunteers.size).map { volunteers[it - 1].brief(it) }
}
override fun getAthlete(athleteId: Int): Athlete {
return athletes.getOrElse(athleteId - 1) {
throw InvalidIdException(athleteId, "athlete")
}
}
override fun getAccommodation(accommodationId: Int): Accommodation {
return accommodations.getOrElse(accommodationId - 1) {
throw InvalidIdException(accommodationId, "accommodation")
}
}
override fun getVolunteer(volunteerId: Int): Volunteer {
return volunteers.getOrElse(volunteerId - 1) {
throw InvalidIdException(volunteerId, "volunteer")
}
}
override fun setAthleteInfo(athleteId: Int, accommodationId: Int?, volunteerId: Int?) {
val pos = athleteId - 1
val athlete = athletes[pos]
val accommodation = accommodationId?.let { accommodations[it - 1].brief(it) }
val volunteer = volunteerId?.let { volunteers[it - 1].brief(it) }
athletes[pos] = Athlete(
athlete.name,
athlete.sex,
athlete.height,
athlete.weight,
athlete.age,
accommodation,
athlete.country,
volunteer
)
}
}
class ServerTest<file_sep>SELECT countries.name
FROM delegations
JOIN countries ON countries.id = delegations.country_id
EXCEPT
SELECT countries.name
FROM participations
JOIN athletes ON athletes.id = participations.athlete_id
JOIN delegations ON delegations.id = athletes.delegation_id
JOIN countries ON countries.id = delegations.country_id
WHERE participations.place = 1;
<file_sep>WITH building_counts AS (
SELECT buildings.id AS building_id, competitions.id AS competition_id, COUNT(1) AS athletes_number
FROM buildings
JOIN competitions ON competitions.site_id = buildings.id
JOIN participations ON participations.competition_id = competitions.id
GROUP BY (competitions.id, buildings.id)
),
building_statistics AS (
SELECT *, MAX(athletes_number) OVER (PARTITION BY building_id) AS max,
MIN(athletes_number) OVER (PARTITION BY building_id) AS min
FROM building_counts
)
SELECT buildings.name, buildings.street, buildings.house_number, sports.name,
competitions.timestamp, athletes_number,
(CASE WHEN (athletes_number = max) THEN 'maximum' ELSE 'minimum' END)::TEXT AS type
FROM building_statistics
JOIN buildings ON buildings.id = building_statistics.building_id
JOIN competitions ON competitions.id = building_statistics.competition_id
JOIN sports ON sports.id = competitions.sport_id
WHERE athletes_number = max OR athletes_number = min
ORDER BY buildings.name DESC, buildings.street DESC, buildings.house_number DESC, athletes_number DESC;
<file_sep>WITH building_statistics AS (
SELECT buildings.id, COUNT(1) AS number_of_headquarters
FROM buildings
JOIN delegations ON delegations.headquarters_id = buildings.id
GROUP BY buildings.id
)
SELECT buildings.street, buildings.house_number, buildings.name,
delegation_leaders.name, delegation_leaders.telephone_number,
countries.name AS country
FROM delegations
LEFT JOIN delegation_leaders ON delegation_leaders.delegation_id = delegations.id
LEFT JOIN countries ON countries.id = delegations.country_id
LEFT JOIN buildings ON buildings.id = delegations.headquarters_id
LEFT JOIN building_statistics ON building_statistics.id = buildings.id
WHERE number_of_headquarters > 1
ORDER BY buildings.id
<file_sep>FROM postgres
ADD init.sql /docker-entrypoint-initdb.d/
ADD tinyData.sql /docker-entrypoint-initdb.d/
EXPOSE 5432
<file_sep>import React from 'react';
import { Table } from 'semantic-ui-react'
let query = require('../query');
class Details extends React.Component {
constructor(props) {
super(props);
}
renderDetails = () => {
let cellNames = query.getCellNames(this.props.queryType);
let detailIndex = 0;
let rows = [];
for (let item in this.props.object) {
if (item === "id") {
continue;
}
let detail = this.props.object[item];
let detailName = cellNames[detailIndex];
detailIndex++;
rows.push(
<Table.Row key={detailIndex + this.props.queryType}>
<Table.Cell textAlign='center'> {detailName} </Table.Cell>
<Table.Cell textAlign='center'> {detail} </Table.Cell>
</Table.Row>
);
}
return rows;
};
render() {
return (
<Table collapsing definition>
<Table.Header>
<Table.Row>
<Table.HeaderCell colSpan='2' textAlign='center'>
{query.getDetailTableHeader(this.props.queryType)}
</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
{this.renderDetails()}
</Table.Body>
</Table>
);
};
}
export default Details;
<file_sep>import React from 'react';
import Details from './details';
import SpecifiedList from './list-view';
import { Button } from 'semantic-ui-react';
import { allQuery, getQuery } from '../actions';
let query = require('../query');
const center = {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
marginBottom: "20px"
};
class Sportsman extends React.Component {
constructor(props) {
super(props);
// I've no idea why I should get .object
let sportsman = Object.assign({}, this.props.object);
let accommodation = sportsman.accommodation;
let volunteer = sportsman.volunteer;
delete sportsman.accommodation;
delete sportsman.volunteer;
this.state = {
sportsman,
volunteer,
accommodation,
choosing: false
}
}
onRowClick = (id) => {
let createdGetQuery = query.createGetQuery(this.state.queryType);
let handler = (menu, response) => {
let sportsmanId = `id=${this.state.sportsman.id}`;
let accommodationId, volunteerId;
let object = response.object;
let params = "";
let changedInformation = null;
switch (createdGetQuery) {
case query.getQueryType.GET_ACCOMMODATION:
this.setState({accommodation : object});
accommodationId = `accommodation_id=${id}`;
volunteerId = `volunteer_id=${this.state.volunteer.id}`;
params = `${sportsmanId}&${accommodationId}&${volunteerId}`;
changedInformation = "accommodation";
break;
case query.getQueryType.GET_VOLUNTEER:
this.setState({volunteer : object});
accommodationId = `accommodation_id=${this.state.accommodation.id}`;
volunteerId = `volunteer_id=${id}`;
params = `${sportsmanId}&${accommodationId}&${volunteerId}`;
changedInformation = "volunteer";
break;
}
let setHandler = response => {
let menu = this.props.menu;
if (response.type === 'error') {
menu.setError(response.message);
return;
}
this.setState({
choosing: false
});
};
query.sendQuery(query.setQueryType.SET_SPORTSMEN, params, setHandler.bind(this));
}
getQuery(id, createdGetQuery, this.props.menu, handler.bind(this));
}
handleButtonClick = (queryType) => {
let handler = (menu, response) => {
this.setState({
choosing: true,
data: response.tableBody,
columns: response.tableHeader,
queryType
});
}
allQuery(queryType, this.props.menu, handler.bind(this));
}
renderButton = (queryType) => {
let text = "";
switch (queryType) {
case query.allQueryType.ALL_SPORTSMEN:
return;
break;
case query.allQueryType.ALL_ACCOMMODATIONS:
text = "Изменить помещение";
break;
case query.allQueryType.ALL_VOLUNTEERS:
text = "Изменить волонтера";
break;
}
return (
<Button primary onClick={() => this.handleButtonClick(queryType)}>
{text}
</Button>
);
};
renderEmptyObject = (object) => {
if (object === null || object === undefined) {
return (
<h5> Выбранный объект у спортсмена отсутствует </h5>
);
}
};
renderDetails = (getQueryType, allQueryType, object) => {
return (
<div style = {{ display: "flex",
flexDirection: "column",
marginRight: "20px",
marginLeft: "20px",
alignItems: "center"
}}>
<Details
queryType={getQueryType}
object={object}
/>
{this.renderEmptyObject(object)}
{this.renderButton(allQueryType)}
</div>
);
}
renderInformation = () => {
if (this.state.choosing) {
return
}
return (
<div style = {{ display: "flex",
flexDirection: "row",
marginRight: "20px",
marginLeft: "20px",
}}>
{this.renderDetails(query.getQueryType.GET_SPORTSMAN,
query.allQueryType.ALL_SPORTSMEN,
this.state.sportsman)}
{this.renderDetails(query.getQueryType.GET_ACCOMMODATION,
query.allQueryType.ALL_ACCOMMODATIONS,
this.state.accommodation)}
{this.renderDetails(query.getQueryType.GET_VOLUNTEER,
query.allQueryType.ALL_VOLUNTEERS,
this.state.volunteer)}
</div>
);
}
renderChoosingFromList = () => {
if (!this.state.choosing) {
return
}
return (
<div style={center}>
<h3> Выберите из списка объект, на который нужно заменить: </h3>
<SpecifiedList
columns={this.state.columns}
data={this.state.data}
onRowClick={this.onRowClick}
queryType={this.state.queryType}
/>
</div>
);
}
render() {
return (
<div>
{this.renderInformation()}
{this.renderChoosingFromList()}
</div>
);
};
}
export default Sportsman;
<file_sep>WITH sport_counts AS (
SELECT sports.id AS sport_id, COUNT(1) AS athletes_number
FROM athletes
JOIN athletes_specializations ON athletes_specializations.athlete_id = athletes.id
JOIN sports ON sports.id = athletes_specializations.sport_id
GROUP BY sports.id
),
sport_statistics AS (
SELECT *, MAX(athletes_number) OVER (), MIN(athletes_number) OVER ()
FROM sport_counts
)
SELECT name, athletes_number
FROM sports
JOIN sport_statistics ON sport_statistics.sport_id = sports.id
WHERE athletes_number = max OR athletes_number = min
ORDER BY athletes_number DESC, name ASC;
<file_sep>WITH statistics AS (
SELECT volunteers.id, COUNT(*) AS athletes_number
FROM volunteers
JOIN athletes ON athletes.volunteer_id = volunteers.id
GROUP BY volunteers.id
)
SELECT percentile_cont(0.5) WITHIN GROUP (ORDER BY athletes_number)
FROM statistics
<file_sep>WITH delegation_size AS (
SELECT delegations.id, COUNT(1) AS athletes_number
FROM delegations
JOIN athletes ON athletes.delegation_id = delegations.id
GROUP BY delegations.id
),
delegation_sport_pairs AS (
SELECT delegations.id AS delegation_id, sports.id AS sport_id, COUNT(1) AS athletes
FROM delegations
JOIN athletes ON athletes.delegation_id = delegations.id
JOIN athletes_specializations ON athletes_specializations.athlete_id = athletes.id
JOIN sports ON sports.id = athletes_specializations.sport_id
GROUP BY (delegations.id, sports.id)
),
delegation_statistics AS (
SELECT delegation_id AS id, MAX(athletes) AS max_specialists_in_one_sport
FROM delegation_sport_pairs
GROUP BY delegation_id
)
SELECT countries.name, delegations.id
FROM delegations
JOIN delegation_size ON delegation_size.id = delegations.id
JOIN delegation_statistics ON delegation_statistics.id = delegations.id
JOIN countries ON countries.id = delegations.country_id
WHERE athletes_number >= 2 AND 2 * max_specialists_in_one_sport >= athletes_number
<file_sep>let query = require('../query');
/**
* @param id object's id
* @param getQueryType /accommodation/get, /sportsman/get, /volunteer/get
*/
export function getQuery(id, getQueryType, menu, handleData) {
let recievedResponse = {};
let handler = response => {
if (response.type !== 'success') {
menu.setError(response.message);
return;
}
recievedResponse = response.result;
recievedResponse.id = id;
let data = {
queryType: getQueryType,
object: recievedResponse,
id
};
handleData(menu, data);
};
query.sendQuery(getQueryType, `id=${id}`, handler.bind(this));
};
function getTableHeader(allQueryType) {
let tableHeader = "";
switch (allQueryType) {
case query.allQueryType.ALL_ACCOMMODATIONS:
tableHeader = ["Название улицы", "Номер дома", ""];
break;
case query.allQueryType.ALL_SPORTSMEN:
tableHeader = ["Имя Фамилия", ""];
break;
case query.allQueryType.ALL_VOLUNTEERS:
tableHeader = ["Имя Фамилия", ""];
}
return tableHeader;
}
export function allQuery(allQueryType, menu, handleData) {
let tableHeader = getTableHeader(allQueryType);
let recievedResponse = [];
let handler = response => {
if (response.type !== 'success') {
menu.setError(response.message);
return;
}
recievedResponse = response.result;
let data = {
queryType: allQueryType,
tableHeader: tableHeader,
tableBody: recievedResponse,
};
handleData(menu, data);
};
query.sendQuery(allQueryType, "", handler.bind(this));
};
export function getSportsmanAccommodation(accommodationId, menu, handleData) {
let recievedResponse = {};
let params = `accommodation_id=${accommodationId}`;
let queryType = query.allQueryType.ALL_SPORTSMEN;
let handler = response => {
if (response.type !== 'success') {
menu.showError(response.message);
return;
}
recievedResponse = response.result;
let tableHeader = getTableHeader(queryType);
let data = {
queryType,
tableBody: recievedResponse,
tableHeader
};
handleData(menu, data);
};
query.sendQuery(query.allQueryType.ALL_SPORTSMEN, params, handler.bind(this));
};
<file_sep>import React from 'react';
import { Menu } from 'semantic-ui-react';
import SpecifiedList from './list-view';
import Details from './details';
import Sportsman from './sportsman';
import { getQuery, allQuery, getSportsmanAccommodation } from '../actions';
let query = require('../query');
const center = {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
marginBottom: "20px"
};
class UI extends React.Component {
constructor() {
super();
this.initState();
}
initState = () => {
this.state = {
activeItem: null,
queryType: null,
tableBody: null,
tableHeader: null,
accommodation: false,
objectInformation: null,
error: "",
selectMenuItem : allQuery,
getQuery,
getSportsmanAccommodation
};
}
renderContent = () => {
let queryType = this.state.queryType;
if (queryType === null) {
return;
}
let data = null;
let accommodation = this.state.accommodation;
let accommodationSportsmenClicked = accommodation &&
queryType === query.getQueryType.GET_SPORTSMAN;
if (accommodationSportsmenClicked) {
data = this.state.accommodation;
} else {
data = this.state.tableBody;
}
let columns = this.state.tableHeader;
let accommodationButton = undefined;
if (query.allQueryType.ALL_ACCOMMODATIONS) {
accommodationButton = this.state.getSportsmanAccommodation;
}
switch(queryType) {
case query.allQueryType.ALL_SPORTSMEN:
case query.allQueryType.ALL_ACCOMMODATIONS:
case query.allQueryType.ALL_VOLUNTEERS:
return (
<SpecifiedList
columns={columns}
data={data}
queryType={queryType}
getInfo={this.state.getQuery}
accommodationButton={accommodationButton}
menu={this}
/>
);
break;
case query.getQueryType.GET_ACCOMMODATION:
case query.getQueryType.GET_VOLUNTEER:
return (
<Details
queryType={queryType}
object={this.state.objectInformation}
menu={this}
/>
);
break;
case query.getQueryType.GET_SPORTSMAN:
return (
<Sportsman
queryType={queryType}
object={this.state.objectInformation}
menu={this}
/>
);
break;
}
};
handleClick = (item, queryType) => {
let handler = (menu, data) => {
menu.setState({
tableBody : data.tableBody,
tableHeader : data.tableHeader,
accommodation : false,
activeItem : item,
queryType : queryType,
error: ""
});
};
this.state.selectMenuItem(queryType, this, handler);
};
setError = (message) => {
this.initState();
this.setState({
error: message
});
}
showError = (message) => {
if (message === "") {
return
}
return (
<div>
<h2> Произошла ошибка! </h2>
<h3> {message} </h3>
</div>
);
}
render() {
const activeItem = this.state.activeItem;
const allSportsmenItem = 'all_sportsmen';
const allAccommodationsItem = 'all_accommodations';
const allVolunteersItem = 'all_volunteers';
return (
<div style={center}>
<h1> Olympiad website! </h1>
<Menu>
<Menu.Item
name={allSportsmenItem}
active={activeItem === allSportsmenItem}
content='Список всех спортсменов'
onClick={() => this.handleClick(allSportsmenItem,
query.allQueryType.ALL_SPORTSMEN)}
/>
<Menu.Item
name={allAccommodationsItem}
active={activeItem === allAccommodationsItem}
content='Список всех помещений'
onClick={() => this.handleClick(allAccommodationsItem,
query.allQueryType.ALL_ACCOMMODATIONS)}
/>
<Menu.Item
name={allVolunteersItem}
active={activeItem === allVolunteersItem}
content='Список всех волонтеров'
onClick={() => this.handleClick(allVolunteersItem,
query.allQueryType.ALL_VOLUNTEERS)}
/>
</Menu>
{this.renderContent()}
{this.showError(this.state.error)}
</div>
);
};
}
export default UI;
<file_sep>SELECT countries.name, COUNT(CASE WHEN participations.place = 1 THEN 1 END) AS gold,
COUNT(CASE WHEN participations.place = 2 THEN 1 END) AS silver,
COUNT(CASE WHEN participations.place = 3 THEN 1 END) AS bronze
FROM countries
LEFT JOIN delegations ON delegations.country_id = countries.id
LEFT JOIN athletes ON athletes.delegation_id = delegations.id
LEFT JOIN participations ON participations.athlete_id = athletes.id
GROUP BY countries.id
ORDER BY gold DESC, silver DESC, bronze DESC, name ASC
<file_sep>SELECT countries.name, COUNT(1) AS athletes_number
FROM countries
LEFT JOIN delegations ON delegations.country_id = countries.id
LEFT JOIN athletes ON athletes.delegation_id = delegations.id
GROUP BY countries.id;
<file_sep>package ru.spbau.mit.bachelors2015
import java.sql.Connection
import java.sql.DriverManager
import java.sql.Types
import kotlin.coroutines.experimental.buildSequence
interface DataBaseManager {
fun allAthletes(accommodationId: Int?) : List<AthleteBrief>
fun allAccommodations() : List<AccommodationBrief>
fun allVolunteers() : List<VolunteerBrief>
fun getAthlete(athleteId: Int) : Athlete
fun getAccommodation(accommodationId: Int) : Accommodation
fun getVolunteer(volunteerId: Int) : Volunteer
fun setAthleteInfo(athleteId: Int, accommodationId: Int?, volunteerId: Int?)
}
class DataBaseManagerImpl(
host: String = "localhost",
port: Int = 5432,
database: String = "postgres",
user: String = "postgres",
password: String = ""
) : DataBaseManager {
private val connection: Connection = DriverManager.getConnection("jdbc:postgresql://$host:$port/$database", user, password)
override fun allAthletes(accommodationId: Int?) : List<AthleteBrief> {
val statement = """
|SELECT id, name
| FROM athletes""".trimMargin()
.let {
if (accommodationId == null) {
connection.prepareStatement(it)
} else {
connection.prepareStatement(it + "\nWHERE accomodation_id = ?").apply {
setInt(1, accommodationId)
}
}
}
return statement.executeQuery().use { rs ->
buildSequence {
while (rs.next()) {
val id = rs.getInt("id")
val name = rs.getString("name")
yield(AthleteBrief(id, name))
}
}.toList()
}
}
override fun allAccommodations() : List<AccommodationBrief> {
val statement = connection.prepareStatement("""
|SELECT id, street, house_number
| FROM buildings
| """.trimMargin())
return statement.executeQuery().use { rs ->
buildSequence {
while (rs.next()) {
val buildingId = rs.getInt("id")
val street = rs.getString("street")
val houseNumber = rs.getInt("house_number")
yield(AccommodationBrief(buildingId, street, houseNumber))
}
}.toList()
}
}
override fun allVolunteers() : List<VolunteerBrief> {
val statement = connection.prepareStatement("""
|SELECT id, name
| FROM volunteers
| """.trimMargin())
return statement.executeQuery().use { rs ->
buildSequence {
while (rs.next()) {
val id = rs.getInt("id")
val name = rs.getString("name")
yield(VolunteerBrief(id, name))
}
}.toList()
}
}
override fun getAthlete(athleteId: Int) : Athlete {
val statement = connection.prepareStatement("""
|SELECT A.name, A.sex, A.height, A.weight, A.age,
| B.id AS building_id, B.street, B.house_number,
| C.name AS country,
| V.id AS volunteer_id, V.name AS volunteer
| FROM athletes A
| LEFT JOIN buildings B ON A.accomodation_id = B.id
| LEFT JOIN volunteers V ON A.volunteer_id = V.id
| JOIN delegations D ON A.delegation_id = D.id
| JOIN countries C ON D.country_id = C.id
| WHERE A.id = ?
| """.trimMargin())
.apply { setInt(1, athleteId) }
return statement.executeQuery().use { rs ->
if (!rs.next()) {
throw InvalidIdException(athleteId, "athletes")
}
val name = rs.getString("name")
val sex = rs.getString("sex")
val height = rs.getInt("height")
val weight = rs.getInt("weight")
val age = rs.getInt("age")
val buildingId = rs.getInt("building_id")
val street = rs.getString("street")
val houseNumber = rs.getInt("house_number")
val country = rs.getString("country")
val volunteerId = rs.getInt("volunteer_id")
val volunteer = rs.getString("volunteer")
Athlete(name, sex, height, weight, age,
maybeAccommodationBrief(buildingId, street, houseNumber),
country,
maybeVolunteerBrief(volunteerId, volunteer))
}
}
override fun getAccommodation(accommodationId: Int) : Accommodation {
val statement = connection.prepareStatement("""
|SELECT street, house_number, building_types.type AS type, name
| FROM buildings
| JOIN building_types ON buildings.type_id = building_types.id
| WHERE buildings.id = ?
| """.trimMargin())
.apply { setInt(1, accommodationId) }
return statement.executeQuery().use { rs ->
if (!rs.next()) {
throw InvalidIdException(accommodationId, "buildings")
}
val street = rs.getString("street")
val houseNumber = rs.getInt("house_number")
val type = rs.getString("type")
val name = rs.getString("name")
Accommodation(street, houseNumber, type, name)
}
}
override fun getVolunteer(volunteerId: Int) : Volunteer {
val statement = connection.prepareStatement("""
|SELECT name, telephone_number
| FROM volunteers
| WHERE id = ?
| """.trimMargin())
.apply { setInt(1, volunteerId) }
return statement.executeQuery().use { rs ->
if (!rs.next()) {
throw InvalidIdException(volunteerId, "volunteers")
}
val name = rs.getString("name")
val telephoneNumber = rs.getString("telephone_number")
Volunteer(name, telephoneNumber)
}
}
override fun setAthleteInfo(athleteId: Int, accommodationId: Int?, volunteerId: Int?) {
val statement = connection.prepareStatement("""
|UPDATE athletes SET accomodation_id = ?, volunteer_id = ?
| WHERE id = ?
| """.trimMargin())
.apply {
if (accommodationId != null) {
setInt(1, accommodationId)
} else {
setNull(1, Types.INTEGER)
}
if (volunteerId != null) {
setInt(2, volunteerId)
} else {
setNull(2, Types.INTEGER)
}
setInt(3, athleteId)
}
if (statement.executeUpdate() == 0) {
throw InvalidIdException(athleteId, "athletes")
}
}
private fun maybeAccommodationBrief(id: Int?, street: String?, houseNumber: Int?): AccommodationBrief? {
return if (id != null && street != null && houseNumber != null) {
AccommodationBrief(id, street, houseNumber)
} else {
null
}
}
private fun maybeVolunteerBrief(id: Int?, name: String?): VolunteerBrief? {
return if (id != null && name != null) {
VolunteerBrief(id, name)
} else {
null
}
}
}
<file_sep>package ru.spbau.mit.bachelors2015
import com.google.gson.GsonBuilder
import spark.Request
import spark.Response
import spark.Spark
fun Request.getIntParam(name: String) : Int? {
val param = this.queryParams(name) ?: return null
try {
return param.toInt()
} catch (_: NumberFormatException) {
throw IntParsingException(param)
}
}
fun Request.getRequiredIntParam(name: String) : Int {
return this.getIntParam(name) ?: throw NoRequiredParamException(name)
}
fun Request.getOptionalIntParam(name: String) : Int? {
return this.getIntParam(name)
}
class Server(database: DataBaseManager) {
private val serverPort = 8080
private val jsonSerializer = GsonBuilder().serializeNulls().create()
private val sportsmanAll: (Request, Response) -> Any? = {
request, _ ->
val accommodationId = request.getOptionalIntParam("accommodation_id")
database.allAthletes(accommodationId)
}
private val accommodationAll: (Request, Response) -> Any? = {
_, _ -> database.allAccommodations()
}
private val volunteerAll: (Request, Response) -> Any? = {
_, _ -> database.allVolunteers()
}
private val sportsmanGet: (Request, Response) -> Any? = {
request, _ ->
val athleteId = request.getRequiredIntParam("id")
database.getAthlete(athleteId)
}
private val accommodationGet: (Request, Response) -> Any? = {
request, _ ->
val accommodationId = request.getRequiredIntParam("id")
database.getAccommodation(accommodationId)
}
private val volunteerGet: (Request, Response) -> Any? = {
request, _ ->
val volunteerId = request.getRequiredIntParam("id")
database.getVolunteer(volunteerId)
}
private val sportsmanSet: (Request, Response) -> Any? = lambda@ {
request, _ ->
val athleteId = request.getRequiredIntParam("id")
val accommodationId = request.getOptionalIntParam("accommodation_id")
val volunteerId = request.getOptionalIntParam("volunteer_id")
database.setAthleteInfo(athleteId, accommodationId, volunteerId)
return@lambda null // todo: is that necessary?
}
fun run() {
init()
Spark.path("/sportsman") {
safeGet("/all", sportsmanAll)
safeGet("/get", sportsmanGet)
safeGet("/set", sportsmanSet)
}
Spark.path("/accommodation") {
safeGet("/all", accommodationAll)
safeGet("/get", accommodationGet)
}
Spark.path("/volunteer") {
safeGet("/all", volunteerAll)
safeGet("/get", volunteerGet)
}
}
private fun init() {
Spark.exception<Exception>(Exception::class.java) { e, _, _ ->
e.printStackTrace()
}
Spark.staticFiles.location("/public")
Spark.port(serverPort)
}
private fun safeGet(path: String, route: (Request, Response) -> Any?) {
Spark.get(path) { request, response ->
val objectToSend = try {
OrdinaryResponse(route(request, response))
} catch (e: InvalidQueryException) {
ErrorResponse(e.message ?: "Unknown error")
}
jsonSerializer.toJson(objectToSend)
}
}
private abstract class ServerResponse {
abstract val type: String
}
private class OrdinaryResponse(val result: Any?) : ServerResponse() {
override val type: String = "success"
}
private class ErrorResponse(val message: String) : ServerResponse() {
override val type: String = "error"
}
}
<file_sep>package ru.spbau.mit.bachelors2015
abstract class InvalidQueryException(message: String) : Exception(message)
class NoRequiredParamException(
paramName: String
) : InvalidQueryException("No required parameter '$paramName'")
class IntParsingException(
probableInt: String
) : InvalidQueryException("Unable to parse int value: $probableInt")
class InvalidIdException(
id: Int,
tableName: String
) : InvalidQueryException("Invalid id for table '$tableName': $id")
<file_sep>import React from 'react';
import { Table, Icon } from 'semantic-ui-react';
let query = require('../query');
class SpecifiedList extends React.Component {
constructor(props) {
super(props);
}
renderTableHeader = () => {
let cells = [];
let columnsNumber = this.props.columns.length;
if (this.props.onRowClick !== undefined) {
columnsNumber -= 1; // removing empty icon column
}
for (let index = 0; index < columnsNumber; index++) {
let columnName = this.props.columns[index];
cells.push(
<Table.HeaderCell key={(-index - 1).toString()}>
{columnName}
</Table.HeaderCell>
);
}
return (
<Table.Row>
{cells}
</Table.Row>
);
};
renderTableBody = () => {
let rows = [];
for (let index = 0; index < this.props.data.length; index++) {
let currentRow = this.props.data[index];
let rowCells = [];
let objectId = -1;
for (let item in currentRow) {
if (item === "id") {
objectId = currentRow[item];
continue;
}
rowCells.push(
<Table.Cell key={item}>
{currentRow[item]}
</Table.Cell>
);
}
if (this.props.onRowClick !== undefined) {
rows.push(
<Table.Row key={index.toString()}
onClick={() => this.props.onRowClick(objectId)}>
{rowCells}
</Table.Row>
);
continue;
}
let allQuery = this.props.queryType;
let getQuery = query.createGetQuery(allQuery);
let paramFunctions = [
this.props.getInfo,
this.props.accommodationButton
];
rowCells.push(getClickableButtons(this.props.menu,
allQuery, paramFunctions, objectId, getQuery));
rows.push(
<Table.Row key={index.toString()}>
{rowCells}
</Table.Row>
);
}
return (
<Table.Body>
{rows}
</Table.Body>
);
};
render() {
return (
<div style={{ display: "flex",
justifyContent: "center",
width:"60%" }}>
<Table selectable={this.props.onRowClick !== undefined}
singleLine compact size="large">
<Table.Header>
{this.renderTableHeader()}
</Table.Header>
{this.renderTableBody()}
</Table>
</div>
);
}
}
function handleHotelClick(menu, response) {
// sorry...
menu.setState({
accommodation: true,
queryType: response.queryType,
tableHeader: response.tableHeader,
tableBody: response.tableBody
});
};
function handleGetInfoClick(menu, response) {
menu.setState({
accommodation: false,
queryType: response.queryType,
objectInformation: response.object
});
};
let getClickableButtons = (menu, queryType, clickFunctions, objectId, getQuery) => {
let getInfo = clickFunctions[0];
// TODO : better code
if (queryType === query.allQueryType.ALL_ACCOMMODATIONS) {
let getSportsmanAccommodation = clickFunctions[1];
return (
<Table.Cell key={"icons key"}>
<Icon name='hotel' onClick={() =>
getSportsmanAccommodation(objectId, menu, handleHotelClick)
}/>
<Icon name='info circle' onClick={() =>
getInfo(objectId, getQuery, menu, handleGetInfoClick)
}/>
</Table.Cell>
);
}
return (
<Table.Cell key={"icons key"}>
<Icon name='info circle' onClick={() =>
getInfo(objectId, getQuery, menu, handleGetInfoClick)
}/>
</Table.Cell>
);
};
export default SpecifiedList;
<file_sep># sql-homework
*Академический Университет, осенний семестр 2017 года.*
**Предмет**: Базы данных
**Преподаватель**: <NAME>.
**Команда**: Веселов, Кайсин, Фёдорова, Шавкунов
## Инструкция по работе с репозиторием:
Чтобы вся команда могла видеть изменения и комментировать их, в ветку master необходимо делать [pull-request](https://help.github.com/articles/about-pull-requests/). В pull-request необходимо запросить [review](https://help.github.com/articles/requesting-a-pull-request-review/) всех остальных членов команды. После того, как вся команда одобрила pull-request, его можно сливать в ветку master.
## diagram.xml
В файле diagram.xml находится диаграмма таблиц базы данных. Этот файл можно открыть с помощью онлайн сервиса [draw.io](https://www.draw.io/).
## Cервер
[API](https://docs.google.com/document/d/1_x5iuYHjmK96zsDj2hNFROGvErIVjn_cCnLEqmC4TBk/edit?usp=sharing)
[Архитектура](https://docs.google.com/drawings/d/1EQBvECH23qZILDWx2yz7CtsA_SOPlCoKkQavJUeEWEw/edit?usp=sharing)
## Инструкция по запуску
* `startDatabase.sh` запускает docker с инициализированной базой данных. Можно передать в качестве аргумента номер порта, по которому нужно будет получать доступ к базе.
* Само серверное приложение с клиентом находится в папке `server`.
* Сервер запускается командой `gradle run`.
* В качестве опционального аргумента можно передать порт, по которому нужно общаться с базой данных. Это делается командой `gradle run -PappArgs="['5432']"`.
* По умолчанию используется порт `5432`.
<file_sep>package ru.spbau.mit.bachelors2015
fun main(args: Array<String>) {
if (args.size > 1) {
System.err.println("Invalid number of arguments")
return
}
if (args.size == 1) {
val port = try {
args.first().toInt()
} catch (_: NumberFormatException) {
System.err.println("Unable to parse first argument as port")
return
}
Server(DataBaseManagerImpl(port = port)).run()
} else {
Server(DataBaseManagerImpl()).run()
}
}
<file_sep>package ru.spbau.mit.bachelors2015
data class AthleteBrief(val id: Int, val name: String)
data class Athlete(
val name: String,
val sex: String,
val height: Int,
val weight: Int,
val age: Int,
val accommodation: AccommodationBrief?,
val country: String,
val volunteer: VolunteerBrief?
) {
fun brief(id: Int) : AthleteBrief {
return AthleteBrief(id, name)
}
}
data class AccommodationBrief(
val id: Int,
val street: String,
val houseNumber: Int
)
data class Accommodation(
val street: String,
val houseNumber: Int,
val type: String,
val name: String?
) {
fun brief(id: Int) : AccommodationBrief {
return AccommodationBrief(id, street, houseNumber)
}
}
data class VolunteerBrief(val id: Int, val name: String)
data class Volunteer(val name: String, val telephoneNumber: String) {
fun brief(id: Int) : VolunteerBrief {
return VolunteerBrief(id, name)
}
}
<file_sep># Frontend
## How to build
npm manager is required.
See [get npm link](https://docs.npmjs.com/getting-started/installing-node).
After npm install simply run:
`npm install`
It will create node_modules directory and lots of libraries there.
After downloading libraries we need to build React scripts by:
`webpack`
It will create build directory with generated javascript.
## Launch
Just open index.html in your browser and enjoy!<file_sep>#!/bin/bash
port=5432
if [ "$1" != "" ]; then
port=$1
fi
sudo docker build -t olympic_db .
sudo docker run -p $port:5432 -it olympic_db
<file_sep>-- usage: psql -d ... -f ... -v id=...
WITH athletes_number AS (
SELECT COUNT(1)
FROM volunteers_assignments
JOIN volunteers ON volunteers.id = volunteers_assignments.volunteer_id
JOIN athletes ON athletes.volunteer_id = volunteers.id
WHERE volunteers_assignments.assignment_id = :id
)
SELECT vehicles.id
FROM vehicles
WHERE vehicles.capacity >= (SELECT * FROM athletes_number)
EXCEPT
SELECT vehicles.id
FROM vehicles
JOIN assignments ON assignments.vehicle_id = vehicles.id
WHERE assignments.timestamp::date = (SELECT timestamp::date FROM assignments WHERE id = :id)
<file_sep>group 'ru.spbau.mit.bachelors2015'
version '1.0'
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile group: 'com.sparkjava', name: 'spark-core', version: '2.7.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
// https://mvnrepository.com/artifact/org.postgresql/postgresql
compile group: 'org.postgresql', name: 'postgresql', version: '9.3-1100-jdbc4'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
mainClassName = 'ru.spbau.mit.bachelors2015.AppKt'
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
run {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
}<file_sep>-- TODO: default values - think about it
CREATE TYPE SEX AS ENUM ('male', 'female');
CREATE SEQUENCE card_number_sequence;
CREATE TABLE vehicles (
id SERIAL PRIMARY KEY,
reg_number TEXT NOT NULL UNIQUE,
capacity INTEGER CHECK (capacity > 0) NOT NULL
);
CREATE TABLE assignments (
id SERIAL PRIMARY KEY,
timestamp TIMESTAMP NOT NULL,
description TEXT NOT NULL,
vehicle_id INTEGER REFERENCES vehicles NULL
);
CREATE TABLE volunteers (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
telephone_number TEXT NOT NULL,
card_number INTEGER NOT NULL UNIQUE DEFAULT nextval('card_number_sequence')
);
CREATE TABLE building_types (
id SERIAL PRIMARY KEY,
type TEXT NOT NULL UNIQUE
);
CREATE TABLE buildings (
id SERIAL PRIMARY KEY,
street TEXT NOT NULL,
house_number INTEGER NOT NULL,
type_id INTEGER REFERENCES building_types NOT NULL,
name TEXT NULL
);
CREATE TABLE countries (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL UNIQUE
);
CREATE TABLE delegations (
id SERIAL PRIMARY KEY,
country_id INTEGER REFERENCES countries NOT NULL,
headquarters_id INTEGER REFERENCES buildings NOT NULL
);
CREATE TABLE delegation_leaders (
name TEXT NOT NULL,
telephone_number TEXT NOT NULL,
delegation_id INTEGER REFERENCES delegations NOT NULL
);
CREATE TABLE athletes (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
sex SEX NOT NULL,
height INTEGER CHECK (height > 0) NOT NULL,
weight INTEGER CHECK (weight > 0) NOT NULL,
age INTEGER CHECK (age > 0) NOT NULL,
accomodation_id INTEGER REFERENCES buildings NULL,
card_number INTEGER NOT NULL UNIQUE DEFAULT nextval('card_number_sequence'),
delegation_id INTEGER REFERENCES delegations NOT NULL,
volunteer_id INTEGER REFERENCES volunteers NULL
);
CREATE TABLE sports (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL UNIQUE
);
CREATE TABLE competitions (
id SERIAL PRIMARY KEY,
sport_id INTEGER REFERENCES sports NOT NULL,
timestamp TIMESTAMP NOT NULL,
description TEXT NOT NULL,
site_id INTEGER REFERENCES buildings NOT NULL
);
CREATE TABLE participations (
competition_id INTEGER REFERENCES competitions NOT NULL,
athlete_id INTEGER REFERENCES athletes NOT NULL,
place INTEGER CHECK (place > 0) NULL,
UNIQUE (competition_id, athlete_id),
UNIQUE (competition_id, place)
);
CREATE TABLE athletes_specializations (
athlete_id INTEGER REFERENCES athletes NOT NULL,
sport_id INTEGER REFERENCES sports NOT NULL
);
CREATE TABLE building_specializations (
building_id INTEGER REFERENCES buildings NOT NULL,
sport_id INTEGER REFERENCES sports NOT NULL
);
CREATE TABLE volunteers_assignments (
volunteer_id INTEGER REFERENCES volunteers NOT NULL,
assignment_id INTEGER REFERENCES assignments NOT NULL
);
<file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import BodyBackgroundColor from 'react-body-backgroundcolor';
import UI from './components/menu.js';
injectTapEventPlugin();
ReactDOM.render(
<BodyBackgroundColor backgroundColor='#FAEBD7'>
<UI />
</BodyBackgroundColor>,
document.getElementById('app')
);
| 89828063dc7e7e105f8c6ba9dbdf9f7c7cdcd6b2 | [
"SQL",
"JavaScript",
"Markdown",
"Dockerfile",
"Gradle",
"Kotlin",
"Shell"
] | 27 | Kotlin | Ivan-Veselov/sql-homework | 6d62c93e922a59010d8331ae3f6559166d509a0d | af0cb36dd0675113f3ac9ef253714b76d51419b3 |
refs/heads/master | <file_sep>class StudentsController < ApplicationController
#setup the routes here
def index
@students = Student.all
end
#resources :students, :except => [:index]
end
| 4c2a046d5c9334c4a38988a986aac7668b531c92 | [
"Ruby"
] | 1 | Ruby | byojelly/rails-restful-index-action-lab-v-000 | 323217514e3989523003f0ef079cebb422e3d0b7 | 51d51b5cedd935ef53226e22b4a58d838d51253e |
refs/heads/master | <repo_name>JMazzy/MailNurse<file_sep>/app/models/gmail_api.rb
require 'gmail'
include ActionView::Helpers::SanitizeHelper
class GmailAPI
def initialize
@gmail = Gmail.connect(ENV["email"], ENV["password"])
end
# Mail.defaults do
# retriever_method :pop3, :address => "pop.gmail.com",
# :port => 995,
# :user_name => ENV['email'],
# :password => ENV['<PASSWORD>'],
# :enable_ssl => true
# end
def grab_all
@arr = []
@email_objects = []
@emails = @gmail.inbox.emails
# @other = Mail.all
# raise
@emails.each do |email|
begin
body = Premailer.new(email.html_part.try(:body).try(:decoded), with_html_string: true).to_inline_css
rescue
next
end
obj = {
name: email.from[0].name,
from: "#{email.from[0].mailbox}@#{email.from[0].host}",
subject: email.subject,
body: body,
date: email.date
}
@email_objects << obj
end
@email_objects
end
end
<file_sep>/app/controllers/emails_controller.rb
class EmailsController < ApplicationController
def index
@emails = GmailAPI.new.grab_all
render json: @emails
end
end
| efec27abef4046fa90f1a181b720785731f3f0bc | [
"Ruby"
] | 2 | Ruby | JMazzy/MailNurse | 2756654b68807183deef4602172e36b5602b5a40 | e513001e851d61bb796150b39bf48e70a0b8266a |
refs/heads/master | <file_sep>import React from "react";
const Header = ({ user }) => {
return (
<nav className="navbar navbar-expand-lg navbar-light bg-light">
AMC Project
</nav>
);
};
export default Header;
<file_sep>import React, { Component } from "react";
class QuizOver extends Component {
state = {};
render() {
return (
<React.Fragment>
<div className="centerTest background">
<h1>Quiz Completed</h1>
</div>
</React.Fragment>
);
}
}
export default QuizOver;
<file_sep>import React, { Component } from "react";
import http from "../APIServices/httpService";
import config from "../APIServices/config.json";
import UserContext from "../Context/UserContext";
import { ToastContainer, toast } from "react-toastify";
class Question extends Component {
static contextType = UserContext;
constructor() {
super();
this.state = {
Question: "",
Choice_one: "",
Choice_two: "",
Choice_three: "",
Choice_four: "",
Correct_answer: "",
Question_id: null,
QuestionList: [],
index: 1,
TotalQuestions: 0,
ReRender: false,
isCorrect: false,
selectedOption: null,
isChecked1: false,
isChecked2: false,
isChecked3: false,
isChecked4: false,
};
this.oneFirstChange = this.oneFirstChange.bind(this);
this.oneSecondChange = this.oneSecondChange.bind(this);
this.oneThirdChange = this.oneThirdChange.bind(this);
this.oneFourthChange = this.oneFourthChange.bind(this);
this.nextQuestion = this.nextQuestion.bind(this);
}
//this is used to shuffle the questions
shuffle(array) {
var currentIndex = array.length,
temporaryValue,
randomIndex;
// While there remain elements to shuffle...
while (0 !== currentIndex) {
// Pick a remaining element...
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
// And swap it with the current element.
temporaryValue = array[currentIndex];
array[currentIndex] = array[randomIndex];
array[randomIndex] = temporaryValue;
}
return array;
}
ReRender() {
// It simply sets the state to its current value
this.setState({ ReRender: true });
}
async componentDidMount() {
const { history } = this.props;
if (this.context.currentUser.username === null) {
history.push("/");
}
if (this.context.currentUser.completed_quiz === true) {
history.push("/results");
}
http.get(config.apiEndpoint + "/quiz/").then((res) => {
console.log(res.data);
this.shuffle(res.data);
this.state.Question = res.data[0].question;
this.state.Choice_one = res.data[0].mc_option1;
this.state.Choice_two = res.data[0].mc_option2;
this.state.Choice_three = res.data[0].mc_option3;
this.state.Choice_four = res.data[0].mc_option4;
this.state.Correct_answer = res.data[0].correct_answer;
this.state.question_id = res.data[0].question_id;
this.setState({ QuestionList: res.data });
this.ReRender();
for (let x in this.state.QuestionList) {
this.state.TotalQuestions = this.state.TotalQuestions + 1;
console.log(this.state.TotalQuestions);
}
});
}
nextQuestion = async () => {
const { QuestionList, index, TotalQuestions } = this.state;
const { history } = this.props;
if (index === TotalQuestions) {
toast.success(`Quiz Completed`);
history.push("/freeresponse");
return;
}
this.state.Question = QuestionList[index].question;
this.state.Choice_one = QuestionList[index].mc_option1;
this.state.Choice_two = QuestionList[index].mc_option2;
this.state.Choice_three = QuestionList[index].mc_option3;
this.state.Choice_four = QuestionList[index].mc_option4;
this.state.Correct_answer = QuestionList[index].correct_answer;
this.state.question_id = QuestionList[index].question_id;
this.setState({
isChecked1: false,
isChecked2: false,
isChecked3: false,
isChecked4: false,
});
this.state.index = this.state.index + 1;
this.ReRender();
};
handleSubmit = (e) => {
e.preventDefault();
console.log(this.state.selectedOption);
toast.success(`Question Submitted`);
if (this.state.selectedOption === this.state.Correct_answer) {
this.state.isCorrect = true;
} else {
this.state.isCorrect = false;
}
http
.post(config.apiEndpoint + "/results/", {
user_id: this.context.currentUser.ID,
quiz_id: this.context.currentUser.Quiz_id,
question_id: this.state.question_id,
answer: this.state.selectedOption,
correct: this.state.isCorrect,
section_id: this.context.currentUser.Section_id,
})
.then((res) => {
console.log(res);
});
this.setState({ selectedOption: null });
this.nextQuestion();
};
oneFirstChange(event) {
this.setState({
selectedOption: event.target.value,
isChecked1: !this.state.isChecked1,
isChecked2: false,
isChecked3: false,
isChecked4: false,
});
}
oneSecondChange(event) {
this.setState({
selectedOption: event.target.value,
isChecked2: !this.state.isChecked2,
isChecked1: false,
isChecked3: false,
isChecked4: false,
});
}
oneThirdChange(event) {
this.setState({
selectedOption: event.target.value,
isChecked3: !this.state.isChecked3,
isChecked1: false,
isChecked2: false,
isChecked4: false,
});
}
oneFourthChange(event) {
this.setState({
selectedOption: event.target.value,
isChecked4: !this.state.isChecked4,
isChecked1: false,
isChecked2: false,
isChecked3: false,
});
}
render() {
return (
<React.Fragment>
<ToastContainer />
<div className="background">
<nav className="navbar navbar-expand-lg navbar-light bg-light">
<div>
<div>
{" "}
AMC Project <br />
<span>{this.context.currentUser.username}</span>
</div>
</div>
</nav>
<div>
<h1 className="center">{this.state.Question}</h1>
<form onSubmit={this.formSubmit} class="form">
<div className="inputGroup">
<input
type="radio"
name="radio"
id="radio1"
value={this.state.Choice_one}
onChange={this.oneFirstChange}
checked={this.state.isChecked1}
/>
<label for="radio1">{this.state.Choice_one}</label>
</div>
<div className="inputGroup">
<input
type="radio"
name="radio"
id="radio2"
value={this.state.Choice_two}
onChange={this.oneSecondChange}
checked={this.state.isChecked2}
/>
<label for="radio2">{this.state.Choice_two}</label>
</div>
<div className="inputGroup">
<input
type="radio"
name="radio"
id="radio3"
value={this.state.Choice_three}
onChange={this.oneThirdChange}
checked={this.state.isChecked3}
/>
<label for="radio3">{this.state.Choice_three}</label>
</div>
<div className="inputGroup">
<input
type="radio"
name="radio"
id="radio4"
value={this.state.Choice_four}
onChange={this.oneFourthChange}
checked={this.state.isChecked4}
/>
<label for="radio4">{this.state.Choice_four}</label>
</div>
<button
type="submit"
className="btn btn-dark float-right"
onClick={this.handleSubmit}
>
Submit
</button>
</form>
</div>
</div>
</React.Fragment>
);
}
}
export default Question;
<file_sep>import React, { Component } from "react";
import UserContext from "../Context/UserContext";
class QuizResults extends Component {
static contextType = UserContext;
state = {};
async componentDidMount() {
const { history } = this.props;
if (this.context.currentUser.username === null) {
history.push("/");
}
}
render() {
return (
<React.Fragment>
<div className="centerTest background">
<h1>Download Results</h1>
<h1>
<a
href={
"https://amc-pdf.s3-us-west-1.amazonaws.com/results" +
this.context.currentUser.ID
}
>
Data Download
</a>
</h1>
<br />
<h3>
If the download does not work, your professor is still working on
grades.
</h3>
</div>
</React.Fragment>
);
}
}
export default QuizResults;
<file_sep>import React, { Component } from "react";
// import * as jwt_decode from "jwt-decode";
import { ToastContainer } from "react-toastify";
import { Route, Switch } from "react-router-dom";
import Question from "./components/Question";
import Login from "./components/Login";
import Password from "./components/QuizPassword";
import QuizOver from "./components/QuizOver";
import FreeResponse from "./components/FreeResponse";
import Results from "./components/QuizResults";
import { UserContext } from "./Context/UserContext";
import "./App.css";
import "react-toastify/dist/ReactToastify.css";
class App extends Component {
state = {
currentUser: {
username: null,
ID: null,
Section_id: null,
Quiz_id: null,
completed_quiz: null,
},
};
/*
componentDidMount() {
try {
const jwt = localStorage.getItem("token"); //this is not a jwt it is django token
console.log(jwt);
const user = jwt_decode(jwt);
console.log(user);
//this.setState({ user });
//console.log(jwt);
} catch (ex) {
console.log(ex, ex.stack);
}
} */
render() {
return (
<div>
<UserContext.Provider
value={{
currentUser: this.state.currentUser,
onLoggedIn: this.handleLoggedIn,
}}
>
<body>
<ToastContainer />
<Switch>
{" "}
<Route path="/quiz" component={Question} />
<Route path="/passwords" component={Password} />
<Route path="/quizover" component={QuizOver} />
<Route path="/freeresponse" component={FreeResponse} />
<Route path="/results" exact component={Results} />
<Route path="/" exact component={Login} />
</Switch>
</body>
</UserContext.Provider>
</div>
);
}
}
export default App;
| e9d45acf317fe993d023d53d491d93ec7987a8f6 | [
"JavaScript"
] | 5 | JavaScript | ConnorDetlefsen/AMC | 92d36b4caf4b2ac1a7e8d35ad6ccef12bd864a45 | 22a57cbf27013b5b7aa37b7f7d9477cb810b8def |
refs/heads/master | <repo_name>LvZhenDong/DiyView<file_sep>/app/src/main/java/com/kklv/diyview/widgets/AnimProgressBar.java
package com.kklv.diyview.widgets;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.LinearInterpolator;
import com.kklv.diyview.util.DensityUtils;
import java.text.DecimalFormat;
/**
* Created by yaodongdong on 2019/1/3
*/
public class AnimProgressBar extends View {
public AnimProgressBar(Context context) {
super(context);
startAnim();
}
public AnimProgressBar(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
startAnim();
}
public AnimProgressBar(Context context, @Nullable AttributeSet attrs, int
defStyleAttr) {
super(context, attrs, defStyleAttr);
startAnim();
}
public AnimProgressBar(Context context, @Nullable AttributeSet attrs, int
defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
startAnim();
}
float mProgress;
float pgbHeight, tipHeight, margin, tipWidth, tipRound, triWidth, triHeight;
Paint paint;
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
pgbHeight = DensityUtils.dp2px(getContext(), 5);
margin = DensityUtils.dp2px(getContext(), 8);
tipHeight = DensityUtils.dp2px(getContext(), 20);
tipWidth = DensityUtils.dp2px(getContext(), 30);
tipRound = DensityUtils.dp2px(getContext(), 2);
triWidth = DensityUtils.dp2px(getContext(), 10);
triHeight = triWidth / 2;
paint = new Paint();
paint.setColor(Color.GRAY);
RectF re1 = new RectF(tipWidth / 2, tipHeight + margin, getWidth() - tipWidth / 2,
tipHeight + margin + pgbHeight);
canvas.drawRoundRect(re1, pgbHeight, pgbHeight, paint);
paint.setColor(Color.BLUE);
RectF reFore = new RectF(tipWidth / 2, tipHeight + margin, tipWidth / 2 + mProgress,
tipHeight + margin + pgbHeight);
canvas.drawRoundRect(reFore, pgbHeight, pgbHeight, paint);
drawRoundRect(canvas);
drawTriangle(canvas);
drawText(canvas);
}
String currentPgb = "0%";
private void startAnim() {
ValueAnimator animator = ValueAnimator.ofFloat(0, 100);
animator.setDuration(10000);
animator.setInterpolator(new LinearInterpolator());
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
float value = (float) animation.getAnimatedValue();
mProgress = (value / 100) * (getWidth() - tipWidth);
DecimalFormat df = new DecimalFormat("#");
currentPgb = df.format(value);
invalidate();
}
});
animator.start();
}
private void drawRoundRect(Canvas canvas) {
RectF reTip = new RectF(0 + mProgress, 0, tipWidth + mProgress, tipHeight);
canvas.drawRoundRect(reTip, tipRound, tipRound, paint);
}
private void drawTriangle(Canvas canvas) {
paint.setStyle(Paint.Style.FILL);
Path path = new Path();
path.moveTo(tipWidth / 2 - triWidth / 2 + mProgress, tipHeight);
path.lineTo(tipWidth / 2 + mProgress, tipHeight + triHeight);
path.lineTo(tipWidth / 2 + triWidth / 2 + mProgress, tipHeight);
path.close();
canvas.drawPath(path, paint);
}
private void drawText(Canvas canvas) {
paint.setTextSize(DensityUtils.sp2px(getContext(), 10));
paint.setColor(Color.WHITE);
paint.setTextAlign(Paint.Align.CENTER);
Paint.FontMetricsInt fontMetrics = paint.getFontMetricsInt();
float baseline = (tipHeight - fontMetrics.bottom + fontMetrics.top) / 2 - fontMetrics.top;
canvas.drawText(currentPgb + "%", tipWidth / 2 + mProgress, baseline, paint);
}
}
<file_sep>/app/src/main/java/com/kklv/diyview/activity/WaveActivity.java
package com.kklv.diyview.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import com.kklv.diyview.R;
import com.kklv.diyview.util.DensityUtils;
import com.kklv.diyview.widgets.WaveView;
public class WaveActivity extends AppCompatActivity {
WaveView waveView;
View view;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wave);
waveView=findViewById(R.id.wave);
view=findViewById(R.id.view);
final float marginTop=DensityUtils.dp2px(this,100);
waveView.setOnWaveListener(new WaveView.OnWaveListener() {
@Override
public void onWaveAnim(float y) {
RelativeLayout.LayoutParams params= (RelativeLayout.LayoutParams) view.getLayoutParams();
params.topMargin= (int) (y);
view.setLayoutParams(params);
}
});
}
}
<file_sep>/app/src/main/java/com/kklv/diyview/widgets/RingPgb.java
package com.kklv.diyview.widgets;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import com.kklv.diyview.util.DensityUtils;
/**
* Created by yaodongdong on 2019/1/4
*/
public class RingPgb extends View {
public RingPgb(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
private int currentProgress;
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
float radius = DensityUtils.dp2px(getContext(), 50);
float width = DensityUtils.dp2px(getContext(), 5);
RectF oval = new RectF(0, 0,
getWidth(), radius * 2);
Paint paint = new Paint();
paint.setColor(Color.RED);
paint.setAntiAlias(true);
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeWidth(width);
paint.setStrokeCap(Paint.Cap.ROUND);
int startColor=Color.parseColor("#ff0000");
int endColor=Color.parseColor("#00ff00");
int progress=80;
float unitAngle= (float) (240/100.0);
for (int i = 0, end = (int) (currentProgress*unitAngle); i < end; i++) {
//这里一定要把end转为float
paint.setColor(getGradient(i/(float)end,startColor,endColor));
canvas.drawArc(oval,150+i,1,false,paint);
}
if(currentProgress<progress){
currentProgress++;
postInvalidateDelayed(100);
}
}
private int getGradient(float fraction, int startColor, int endColor) {
if (fraction > 1) fraction = 1;
int alphaStart = Color.alpha(startColor);
int redStart = Color.red(startColor);
int greenStart = Color.green(startColor);
int blueStart = Color.blue(startColor);
int alphaEnd = Color.alpha(endColor);
int redEnd = Color.red(endColor);
int greenEnd = Color.green(endColor);
int blueEnd = Color.blue(endColor);
int alphaDiff = alphaEnd - alphaStart;
int redDiff = redEnd - redStart;
int greenDiff = greenEnd - greenStart;
int blueDiff = blueEnd - blueStart;
int alphaCurrent = (int) (alphaStart + fraction * alphaDiff);
int redCurrent = (int) (blueStart + fraction * redDiff);
int greenCurrent = (int) (greenStart + fraction * greenDiff);
int blueCurrent = (int) (blueStart + fraction * blueDiff);
int color=Color.argb(alphaCurrent,redCurrent,greenCurrent,blueCurrent);
return color;
}
}
| 85a8ca5e2c5ff54fa93c20e7707a9120b6420ba1 | [
"Java"
] | 3 | Java | LvZhenDong/DiyView | 06aa1b1c82b4b8decd02d09f647833b5dddb12be | 15ccc23b5d11496377612508ef65faf57c325014 |
refs/heads/master | <file_sep><?php
namespace App\Service\ImportExport;
use App\Service\ImportExport\Csv\CsvContactImporter;
use GuzzleHttp\Client;
class UrlImporter
{
public function importCsvContacts($url, $id_account)
{
// download
$temp_file = tempnam(sys_get_temp_dir(), uniqid());
$this->downloadFile($url, $temp_file);
// import
$csv_import = new CsvContactImporter();
$csv_import->import($temp_file, $id_account);
// delete the temporary file
unlink($temp_file);
}
protected function downloadFile($url, $localFilePath)
{
$client = new Client();
$response = $client->send($client->get($url));
if ($response->getBody()->isReadable()) {
if ($response->getStatusCode() == 200) {
file_put_contents($localFilePath, $response->getBody()->getStream());
}
}
}
}
<file_sep># Test SumaCRM
## Instalación
composer install
## Ejecución de tests
vendor/bin/phpunit --debug
### Tests disponibles
- Tests\Service\ImportExport\Csv\CsvContactImporterTest
- testImport: realiza la importación de un ficheros CSV con contactos
<file_sep><?php
namespace Tests\Repository;
use App\Repository\ContactsRepository;
use App\Entity\Contact;
class MockContactsRepository implements ContactsRepository
{
protected $contacts;
public function __construct()
{
$this->contacts = [];
}
/**
*
* {@inheritdoc}
* @see \App\Repository\ContactsRepository::addNew()
*/
public function addNew($id_account, $contact)
{
$email = $contact->getEmail();
if (!$email) {
throw new \RuntimeException('Contact must have an email.');
}
// check it is really new
if ($this->findByEmail($email)) {
throw new \RuntimeException('Contact already exists.');
}
// complete the keys
$contact->setId(count($this->contacts) + 1);
$contact->setIdAccount($id_account);
$this->contacts[$email] = $contact;
}
/**
*
* {@inheritdoc}
* @see \App\Repository\ContactsRepository::count()
*/
public function count()
{
return count($this->contacts);
}
/**
*
* {@inheritdoc}
* @see \App\Repository\ContactsRepository::isGranted()
*/
public function isGranted($id_account, $email)
{
// TODO check ACL to match id_account with contact register.
return TRUE;
}
/**
*
* {@inheritdoc}
* @see \App\Repository\ContactsRepository::update()
*/
public function update($contact)
{
$current = &$this->find($contact->getEmail());
if ($current) {
$current->updateFields($contact);
}
}
/**
* Looks for a contact by email.
*
* @param string $email
* @return Contact|FALSE The contact or FALSE if not found.
*/
public function findByEmail($email)
{
if (array_key_exists($email, $this->contacts)) {
return $this->contacts[$email];
}
return FALSE;
}
}
<file_sep><?php
namespace App\Entity;
class Contact
{
protected $id;
protected $id_account;
protected $email;
protected $data;
public function __construct()
{
$data = [];
}
/**
* Getter.
*
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* Getter.
*
* @return mixed
*/
public function getIdAccount()
{
return $this->id_account;
}
/**
* Getter.
*
* @return mixed
*/
public function getEmail()
{
return $this->email;
}
/**
* Getter.
*
* @return mixed
*/
public function getFirstname()
{
return (array_key_exists('firstname', $this->data) ? $this->data['firstname'] : NULL);
}
/**
* Getter.
*
* @return mixed
*/
public function getLastname()
{
return (array_key_exists('lastname', $this->data) ? $this->data['lastname'] : NULL);
}
/**
* Getter.
*
* @return mixed
*/
public function getPhone()
{
return (array_key_exists('phone', $this->data) ? $this->data['phone'] : NULL);
}
/**
* Setter.
*
* @param mixed $id
* @return self
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Setter.
*
* @param mixed $id_account
* @return self
*/
public function setIdAccount($id_account)
{
$this->id_account = $id_account;
return $this;
}
/**
* Setter.
*
* @param mixed $email
* @return self
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Setter.
*
* @param mixed $firstname
* @return self
*/
public function setFirstname($firstname)
{
$this->data['firstname'] = $firstname;
return $this;
}
/**
* Setter.
*
* @param mixed $lastname
* @return self
*/
public function setLastname($lastname)
{
$this->data['lastname'] = $lastname;
return $this;
}
/**
* Setter.
*
* @param mixed $phone
* @return self
*/
public function setPhone($phone)
{
$this->data['phone'] = $phone;
return $this;
}
/**
* Factory from array.
*
* @param array $record
* @return \App\Entity\Contact
*/
public static function fromArray($record)
{
$contact = new Contact();
$contact->setEmail($record['email']);
$contact->setFirstname($record['firstname']);
$contact->setLastname($record['lastname']);
$contact->setPhone($record['phone']);
return $contact;
}
/**
* Update fields from another contact.
*
* @param Contact $another_contact
*/
public function updateFields($another_contact)
{
$this->data = array_merge($this->data, $another_contact->data);
}
}
<file_sep><?php
namespace Tests\Service\ImportExport\Csv;
use App\Service\ImportExport\Csv\CsvContactImporter;
use PHPUnit\Framework\TestCase;
use Tests\Repository\MockContactsRepository;
/**
* CsvContactImporter test case.
*/
class CsvContactImporterTest extends TestCase
{
/**
*
* @var CsvContactImporter
*/
private $csvContactImporter;
/**
*
* @var MockContactsRepository
*/
private $contactsRepository;
/**
* Prepares the environment before running a test.
*/
protected function setUp()
{
parent::setUp();
$this->contactsRepository = new MockContactsRepository();
$this->csvContactImporter = new CsvContactImporter($this->contactsRepository);
}
/**
* Tests CsvContactImporter->import()
*/
public function testImport()
{
$file = dirname(__DIR__) . '/../../../../resources/mock/contacts_import_01.csv';
$id_account = 1;
// 2 contacts in file
$this->csvContactImporter->import($file, $id_account);
$this->assertSame(2, $this->contactsRepository->count());
// first sample in the mock CSV file
$test_contact = [
'email' => '<EMAIL>',
'firstname' => 'Rafa',
'lastname' => 'Couto',
'phone' => '656123123'
];
// contact exists
$contact = $this->contactsRepository->findByEmail($test_contact['email']);
$this->assertNotFalse($contact);
// contact data was imported
$this->assertSame($test_contact['email'], $contact->getEmail());
$this->assertSame($test_contact['firstname'], $contact->getFirstname());
$this->assertSame($test_contact['lastname'], $contact->getLastname());
$this->assertSame($test_contact['phone'], $contact->getPhone());
}
}
<file_sep><?php
namespace App\Service\ImportExport;
interface ContactImporter
{
/**
* Imports a file of contacts to an account.
*
* @param string $temp_file
* @param integer $id_account
*/
function import($temp_file, $id_account);
}
<file_sep><?php
namespace App\Repository;
interface ContactsRepository
{
/**
* Adds a new contact to the repository
*
* @param integer $id_account
* @param \App\Entity\Contact $contact
*/
function addNew($id_account, $contact);
/**
* Looks for a contact by email.
*
* @param string $email
* @return \App\Entity\Contact|FALSE The contact or FALSE if not found.
*/
public function findByEmail($email);
/**
* Returns the number of contacts in the repository.
*
* @return integer
*/
function count();
/**
* Check visibility permissions.
*
* @param integer $id_account
* @param string $email
* @return boolean
*/
function isGranted($id_account, $email);
/**
* Update the contact
*
* @param \App\Entity\Contact $contact
*/
function update($contact);
}
<file_sep><?php
namespace App\Service\ImportExport\Csv;
use App\Entity\Contact;
use League\Csv\Reader;
use App\Service\ImportExport\ContactImporter;
class CsvContactImporter implements ContactImporter
{
/**
*
* @var \App\Repository\ContactsRepository
*/
protected $repository;
/**
* Constructor.
*
* @param \App\Repository\ContactsRepository $repo
* Repository where the contacts are imported to.
*/
public function __construct($repo)
{
$this->repository = $repo;
}
/**
*
* {@inheritdoc}
* @see \App\Service\ImportExport\ContactImporter::import()
*/
public function import($temp_file, $id_account)
{
$csv = Reader::createFromPath($temp_file, 'r');
$csv->setHeaderOffset(0);
$count = 0;
foreach ($csv as $record) {
$count ++;
$contact = Contact::fromArray($record);
$result = $this->importContact($id_account, $contact);
if ($result !== TRUE) {
// show the error by standard output
$message = sprintf('Line #%u: %s', $count, $result);
print($message);
}
}
}
/**
* Try to import a contact or returns the problem.
*
* @param integer $id_account
* @param Contact $contact
* @return string|boolean
*/
protected function importContact($id_account, $contact)
{
if ($contact->getEmail() == NULL) {
// warning: contact email is mandatory
return 'W skipping contact without email.';
}
else {
$repo_contact = $this->repository->findByEmail($contact->getEmail());
if (!$repo_contact) {
// import the contact to the current user
$this->repository->addNew($id_account, $contact);
}
else {
// check visibility access
if (!$this->repository->isGranted($id_account, $contact->getEmail())) {
// error: not allowed to update the contact
return 'E contact already exists and not granted to update.';
}
else {
// update contact
$this->repository->update($contact);
}
}
}
// contact is added or updated
return TRUE;
}
}
| 1db10880d32a18603fd0da4d5f53627926e86539 | [
"Markdown",
"PHP"
] | 8 | PHP | rafacouto/sumacrm-test | 0a9a88e1ff5c855d39cc1a567384f786649107f0 | ace0d1c051d7ee4063a2f9fbe36ac0350c0f6a55 |
refs/heads/master | <repo_name>RossyPhuyal/DHRM<file_sep>/app/Model/Admin/Personal_Infos.php
<?php
namespace App\Model\Admin;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Personal_infos extends Model
{
use SoftDeletes;
protected $table = 'personal_infos';
protected $fillable = ['first_name','last_name','nick_name','code_name','DOB','profile_image','bio'];
protected $dates = ['deleted_at'];
public function relationship()
{
return $this->belongsTo(Relationship::class);
}
public function users()
{
return $this->belongsTo(User::class);
}
public function location()
{
return $this->belongsTo(Location::class, 'location_id');
}
public function contact_info()
{
return $this->HasMany(Contact_info::class);
}
public function contact()
{
return $this->HasMany(Contact::class);
}
}
<file_sep>/app/Http/Controllers/Admin/Personal_InfosController.php
<?php
namespace App\Http\Controllers\Admin;
use App\Model\Admin\Location;
use App\Model\Admin\Relationship;
use App\Model\Admin\Contact;
use App\Model\Admin\Contact_info;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Model\Admin\Personal_infos;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
use Illuminate\Support\Arr;
use Intervention\Image\ImageServiceProvider;
class Personal_infosController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
protected $image_path;
protected $panel = 'Edit';
public function __construct()
{
// folder path for image uploading
$this->image_path = 'images'.DIRECTORY_SEPARATOR.'clients'.DIRECTORY_SEPARATOR;
}
public function index()
{
//retrieving data from db
$data['rows'] = Personal_infos::all();
return view('/admin.personal_infos.index',compact('data'));
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
$relationship = DB::table('relationship')->get();
// grouping of location according to corresponding country,state,and city
$country_list = DB::table('location')
->groupBy('country')
->get();
return view('/admin.personal_infos.create')->with(['country_list'=> $country_list,'relationship'=> $relationship]);
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//storing data into db
$personal_infos = new Personal_infos();
$personal_infos->first_name = $request->input('f-name');
$personal_infos->last_name = $request->input('l-name');
$personal_infos->nick_name = $request->input('nick-name');
$personal_infos->code_name = $request->input('code-name');
$personal_infos->DOB = Carbon::parse($request->input('datetime'));
// $personal_infos->user_id = Auth::user()->id;
if ($request->hasFile('image')){
$image = $request->file('image');
$extension = $image->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$image ->move($this->image_path, $filename);
$personal_infos->profile_image = ('images/clients/'.$filename);
}
$personal_infos->bio = $request->input('bio');
$personal_infos->relationship_id = $request->input('relationship');
$personal_infos->location_id = $request->location_id;
$personal_infos->save();
//combining two arrays having types and their corr.values
$array_contact = array_combine($request->contact_type, $request->contact);
foreach($array_contact as $key => $item) {
// Inserts
DB::table('contact_info')->insert(
[
'personal_infos_id' => $personal_infos->id,
'type' => $key,
'title' => $item
]
);
}
$array_num = array_combine($request->number_type, $request->contact_number);
foreach($array_num as $key => $item) {
DB::table('contact')->insert(
[
'personal_infos_id' => $personal_infos->id,
'type' => $key,
'title' => $item
]
);
}
return view('admin.personal_infos.index');
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
$row = Personal_infos::findOrFail($id);
return view('admin.personal_infos.show', compact('row'));
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
$relationship = DB::table('relationship')->get();
$country_list = DB::table('location')
->groupBy('country')
->get();
$row = Personal_infos::findOrFail($id);
return view('/admin.personal_infos.edit',compact(['country_list','relationship','row']));
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
$personal_infos = Personal_infos::findOrFail($id);
$personal_infos->first_name = $request->input('f-name');
$personal_infos->last_name = $request->input('l-name');
$personal_infos->nick_name = $request->input('nick-name');
$personal_infos->code_name = $request->input('code-name');
$personal_infos->DOB = Carbon::parse($request->input('datetime'));
// $personal_infos->user_id = Auth::user()->id;
if ($request->hasFile('image')){
$image = $request->file('image');
$extension = $image->getClientOriginalExtension();
$filename = time() . '.' . $extension;
$image ->move($this->image_path,$filename);
$personal_infos->profile_image = ('images/clients/'.$filename);
}
$personal_infos->bio = $request->input('bio');
$personal_infos->relationship_id = $request->input('relationship');
$personal_infos->location_id = $request->location_id;
$personal_infos->update();
// delete data from child table
$personal_infos->contact_info()->delete();
// Inserts new values
$array_contact = array_combine($request->contact_type, $request->contact);
foreach($array_contact as $key => $item) {
DB::table('contact_info')
->insert(
[
'personal_infos_id' => $personal_infos->id,
'type' => $key,
'title' => $item
]
);
}
$personal_infos->contact()->delete();
$array_num = array_combine($request->number_type, $request->contact_number);
foreach($array_num as $key => $item) {
DB::table('contact')
->insert(
[
'personal_infos_id' => $personal_infos->id,
'type' => $key,
'title' => $item
]
);
}
$request->session()->flash('success_message', ' updated successfully.');
return view('/admin.personal_infos.index');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function delete($id)
{
// $personal_infos = Personal_infos::find($id);
// $personal_infos->delete();
return view('/admin.personal_infos.index');
}
public function recycle()
{
$items = Personal_infos::onlyTrashed()->get();
dd($items);
return view('admin.personal_infos.recyclebin');
}
}
<file_sep>/app/Model/Admin/Location.php
<?php
namespace App\Model\Admin;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Location extends Model
{
protected $table = 'location';
protected $fillable = ['country','state','city'];
public function personal_infos()
{
return HasMany(Personal_infos::class);
}
}
<file_sep>/app/Http/Controllers/Admin/LocationController.php
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
class LocationController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function fetch(Request $request)
{
$select = $request->get('select');
// var_dump($select);die;
$value = $request->get('value');
$dependent = $request->get('dependent');
$data = DB::table('location')
->where($select, $value)
->groupBy($dependent)
->get();
if($dependent != "id"){
$output = '<option value="">Select '.ucfirst($dependent).'</option>';
}
else {
$output = " ";
}
foreach($data as $row)
{
$output .= '<option value="'.$row->$dependent.'">'.$row->$dependent.'</option>';
}
echo $output;
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}
<file_sep>/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Auth::routes();
Route::group(['prefix' => '', 'as' => '', 'namespace'=>'Admin', 'middleware' => 'auth' ], function () {
Route::get('/', ['as' => 'admin.dashboard', 'uses' => 'DashboardController@index']);
Route::group(['prefix' => 'dashboard', 'as' => 'admin.' ], function () {
Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@index']);
Route::group(['prefix' => 'personal_info', 'as' => 'personal_infos.'], function () {
Route::get('/', ['as' => 'index', 'uses' =>'Personal_infosController@index']);
Route::get('/create', ['as' => 'create', 'uses' =>'Personal_infosController@create']);
Route::post('/', ['as' => 'store', 'uses' =>'Personal_infosController@store']);
Route::get('/edit/{id}', ['as' => 'edit', 'uses' =>'Personal_infosController@edit']);
Route::get('/show/{id}', ['as' => 'show', 'uses' =>'Personal_infosController@show']);
Route::get('/{id}', ['as' => 'delete', 'uses' =>'Personal_infosController@delete']);
Route::post('/{id}', ['as' => 'update', 'uses' =>'Personal_infosController@update']);
Route::get('/recycle', ['as' => 'recycle', 'uses' =>'Personal_infosController@recycle']);
});
Route::group(['prefix' => 'location', 'as' => 'location.'], function() {
Route::post('/fetch', ['as' => 'fetch', 'uses' =>'LocationController@fetch']);
});
});
});
<file_sep>/database/migrations/2019_12_11_072306_create_personal_infos_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePersonalInfosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('personal_infos', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('relationship_id')->nullable();
$table->unsignedBigInteger('location_id')->nullable();
$table->unsignedBigInteger('user_id')->nullable();
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('nick_name')->nullable();
$table->string('code_name')->nullable();
$table->dateTime('DOB')->nullable();
$table->text('profile_image')->nullable();
$table->text('bio')->nullable();
$table->softDeletes();
$table->timestamps();
$table->foreign('relationship_id')
->references('id')->on('relationship')
->onDelete('cascade');
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('cascade');
$table->foreign('location_id')
->references('id')->on('location')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('personal_infos');
}
}
<file_sep>/app/Model/Admin/Contact_info.php
<?php
namespace App\Model\Admin;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Contact_info extends Model
{
protected $table = 'contact_info';
protected $fillable = ['personal_infos_id','type','title'];
}
<file_sep>/app/Model/Admin/Relationship.php
<?php
namespace App\Model\Admin;
use Illuminate\Database\Eloquent\Model;
class Relationship extends Model
{
protected $table = 'relationship';
public function personal_infos()
{
return $this->hasMany(Personal_infos::class);
}
}
| b08979734c22d38749c35139a7ba0d1617ee664e | [
"PHP"
] | 8 | PHP | RossyPhuyal/DHRM | 0d55397d392fec22bcfc3238793fe99a5bab85f8 | f512384e36539d68470469385b3ace1c3d87937f |
refs/heads/master | <repo_name>wsjung0516/material-tables-example<file_sep>/src/app/material-tables-examples/two-tables-drag-and-drop/two-tables-drag-and-drop.component.ts
import { Component, OnInit, AfterViewInit, ViewChild } from '@angular/core';
import { TableDragAndDropComponent } from './table-drag-and-drop/table-drag-and-drop.component';
import { StudentsService } from '../mat-table-examples/Services/students.service';
import { timer } from 'rxjs';
@Component({
selector: 'app-two-tables-drag-and-drop',
templateUrl: './two-tables-drag-and-drop.component.html',
styleUrls: ['./two-tables-drag-and-drop.component.scss']
})
export class TwoTablesDragAndDropComponent implements OnInit, AfterViewInit {
@ViewChild('firstTable', { static: false }) firstTable: TableDragAndDropComponent;
@ViewChild('secondTable', { static: false }) secondTable: TableDragAndDropComponent;
constructor(
private studentsService: StudentsService
) { }
ngOnInit() {
}
ngAfterViewInit() {
timer(100).subscribe(() => {
this.secondTable.dataSource.data = this.studentsService.data;
this.secondTable.secondTable = this.firstTable;
this.firstTable.secondTable = this.secondTable;
});
}
moveDataToRightTable() {
this.secondTable.dataSource.data = [...this.secondTable.dataSource.data, ...this.firstTable.dataSource.data];
this.firstTable.dataSource.data = [];
}
moveDataToLeftTable() {
this.firstTable.dataSource.data = [...this.firstTable.dataSource.data, ...this.secondTable.dataSource.data];
this.secondTable.dataSource.data = [];
}
}
<file_sep>/src/app/material-tables-examples/multi-select-mat-table/abstract-mulit-select-mat-table/abstract-mulit-select-mat-table.component.ts
import { Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material';
import { SelectionModel } from '@angular/cdk/collections';
@Component({
selector: 'app-abstract-mulit-select-mat-table',
template: ``
})
export class AbstractMulitSelectMatTableComponent<RECORD_TYPE> implements OnInit {
dataSource: MatTableDataSource<RECORD_TYPE> = new MatTableDataSource<RECORD_TYPE>();
displayedColumns: string[];
selection: SelectionModel<RECORD_TYPE>;
constructor() { }
ngOnInit() {
this.selection = new SelectionModel<RECORD_TYPE>(true, []);
}
isAllSelected() {
const numSelected = this.selection.selected.length;
const numRows = this.dataSource.data.length;
return numSelected === numRows;
}
masterToggle() {
this.isAllSelected() ?
this.selection.clear() :
this.dataSource.data.forEach(row => this.selection.select(row));
}
checkboxLabel(row: RECORD_TYPE): string {
if (!row) {
return `${this.isAllSelected() ? 'select' : 'deselect'} all`;
}
return `${this.selection.isSelected(row) ? 'deselect' : 'select'} wiersz`;
}
}
<file_sep>/src/app/material-tables-examples/sorting-material-table/sorting-material-table.component.ts
import { StudentsService } from './../mat-table-examples/Services/students.service';
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
import { MatTableDataSource, MatSort } from '@angular/material';
@Component({
selector: 'app-sorting-material-table',
templateUrl: './sorting-material-table.component.html',
styleUrls: ['./sorting-material-table.component.scss']
})
export class SortingMaterialTableComponent implements OnInit, AfterViewInit {
displayedColumns: string[] = ['name', 'surname', 'age'];
dataSource: MatTableDataSource<any> = new MatTableDataSource<any>();
@ViewChild(MatSort, {static: false}) sort: MatSort;
constructor(
private studentsService: StudentsService
) {
this.dataSource.data = this.studentsService.data;
}
ngOnInit() {
}
ngAfterViewInit(): void {
this.dataSource.sort = this.sort;
}
sorting(sortEvent) {
console.log(sortEvent);
}
}
<file_sep>/src/app/material-tables-examples/two-tables-drag-and-drop/table-drag-and-drop/table-drag-and-drop.component.ts
import { Component, OnInit, ViewChild, Input } from '@angular/core';
import { MatTableDataSource, MatTable } from '@angular/material';
import { Student } from '../../Interfaces/student';
import { CdkDragDrop, moveItemInArray, transferArrayItem, CdkDropList } from '@angular/cdk/drag-drop';
@Component({
selector: 'app-table-drag-and-drop',
templateUrl: './table-drag-and-drop.component.html',
styleUrls: ['./table-drag-and-drop.component.scss']
})
export class TableDragAndDropComponent implements OnInit {
@ViewChild(MatTable, { static: false }) matTable: MatTable<Student>;
@ViewChild(CdkDropList, { static: false }) cdkDropList: CdkDropList;
@Input() secondTable: TableDragAndDropComponent = null;
displayedColumns: string[] = [
'name',
'surname',
'age'
];
dataSource: MatTableDataSource<Student> = new MatTableDataSource<Student>();
constructor() { }
ngOnInit() {
}
drop(event: CdkDragDrop<Student[]>) {
if (event.previousContainer === event.container) {
const prevIndex = event.container.data.findIndex((d) => d === event.item.data);
moveItemInArray(event.container.data, prevIndex, event.currentIndex);
this.matTable.renderRows();
} else {
const prevIndex = event.previousContainer.data.findIndex((d) => d === event.item.data);
transferArrayItem(event.previousContainer.data,
event.container.data,
prevIndex,
event.currentIndex);
this.matTable.renderRows();
this.secondTable.matTable.renderRows();
}
}
moveItem(index: number) {
const element: Student[] = this.dataSource.data.splice(index, 1);
this.matTable.renderRows();
this.secondTable.dataSource.data.push(element[0]);
this.secondTable.matTable.renderRows();
}
}
<file_sep>/src/app/material-tables-examples/resizable-material-table/abstract-resizable-material-table/abstract-resizable-material-table.component.ts
import { Component, OnInit, ViewChild, ElementRef, Renderer2, HostListener, AfterViewInit } from '@angular/core';
import { MatTable } from '@angular/material';
@Component({
selector: 'app-abstract-resizable-material-table',
templateUrl: './abstract-resizable-material-table.component.html',
styleUrls: ['./abstract-resizable-material-table.component.scss']
})
export class AbstractResizableMaterialTableComponent implements OnInit, AfterViewInit {
@ViewChild(MatTable, { read: ElementRef, static: false }) protected matTableRef: ElementRef;
resizeCursor = false;
pressed = false;
currentResizeIndex: number;
startX: number;
startWidth: number;
isResizingRight: boolean;
resizableMousemove: () => void;
resizableMouseup: () => void;
columns: any[];
displayedColumns: string[] = [];
constructor(protected renderer: Renderer2) { }
ngOnInit() {
this.setDisplayedColumns();
}
ngAfterViewInit() {
this.setTableResize(this.matTableRef.nativeElement.clientWidth);
}
setTableResize(tableWidth: number) {
let totWidth = 0;
this.columns.forEach((column) => {
totWidth += column.width;
});
const scale = (tableWidth - 5) / totWidth;
this.columns.forEach((column) => {
column.width *= scale;
this.setColumnWidth(column);
});
}
setDisplayedColumns() {
this.columns.forEach((column, index) => {
column.index = index;
this.displayedColumns[index] = column.field;
});
}
onMouseMove(event: any) {
const endPos = event.target.offsetLeft + event.target.clientWidth;
if (endPos - event.pageX > 10 && endPos - event.pageX >= 0) {
this.resizeCursor = false;
} else {
this.resizeCursor = true;
}
}
onResizeColumn(event: any, index: number) {
this.checkResizing(event, index);
this.currentResizeIndex = index;
this.startX = event.pageX;
this.startWidth = event.target.clientWidth;
const endPos = event.target.offsetLeft + event.target.clientWidth;
if (endPos - event.pageX > 10 && endPos - event.pageX >= 0) {
return;
}
this.pressed = true;
event.preventDefault();
this.mouseMove(index);
}
protected checkResizing(event, index) {
const cellData = this.getCellData(index);
if ((index === 0) || (Math.abs(event.pageX - cellData.right) < cellData.width / 2 && index !== this.columns.length - 1)) {
this.isResizingRight = true;
} else {
this.isResizingRight = false;
}
}
protected getCellData(index: number) {
const headerRow = this.matTableRef.nativeElement.children[0];
const cell = headerRow.children[index];
return cell.getBoundingClientRect();
}
mouseMove(index: number) {
this.resizableMousemove = this.renderer.listen('document', 'mousemove', (event) => {
if (this.pressed && event.buttons) {
const dx = (this.isResizingRight) ? (event.pageX - this.startX) : (-event.pageX + this.startX);
const width = this.startWidth + dx;
if (this.currentResizeIndex === index && width > 50) {
this.setColumnWidthChanges(index, width);
}
}
});
this.resizableMouseup = this.renderer.listen('document', 'mouseup', (event) => {
if (this.pressed) {
this.pressed = false;
this.currentResizeIndex = -1;
this.resizableMousemove();
this.resizableMouseup();
}
});
}
setColumnWidthChanges(index: number, width: number) {
const orgWidth = this.columns[index].width;
const dx = width - orgWidth;
if (dx !== 0) {
const j = (this.isResizingRight) ? index + 1 : index - 1;
const newWidth = this.columns[j].width - dx;
if (newWidth > 50) {
this.columns[index].width = width;
this.setColumnWidth(this.columns[index]);
this.columns[j].width = newWidth;
this.setColumnWidth(this.columns[j]);
}
}
}
setColumnWidth(column: any) {
const columnEls = Array.from(document.getElementsByClassName('mat-column-' + column.field));
columnEls.forEach((el: HTMLDivElement) => {
el.style.width = column.width + 'px';
});
}
@HostListener('window:resize', ['$event'])
onResize(event) {
this.setTableResize(this.matTableRef.nativeElement.clientWidth);
}
}
<file_sep>/src/app/material-tables-examples/multi-select-mat-table/multi-select-mat-table.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MultiSelectMatTableComponent } from './multi-select-mat-table.component';
import { MatTableModule, MatCheckboxModule } from '@angular/material';
describe('MultiSelectMatTableComponent', () => {
let component: MultiSelectMatTableComponent;
let fixture: ComponentFixture<MultiSelectMatTableComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MultiSelectMatTableComponent ],
imports: [
MatTableModule,
MatCheckboxModule,
]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MultiSelectMatTableComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
| f2766daec5bc25eb861115f4035b80579eb905b8 | [
"TypeScript"
] | 6 | TypeScript | wsjung0516/material-tables-example | 3793d5b13ade99f416979e8f331f7df63ae47105 | d0cf0b8b0e082facda07b830b73b57a2829d628e |
refs/heads/master | <repo_name>fy1402/AppStoreComment<file_sep>/README.md
# AppStoreComment
*** iOS 10.3+ ***
## 新增app用户评论
## 新增appIcon更换
plist文件修改配置:Icon files (iOS 5)
<file_sep>/AppStoreComment/ViewController.swift
//
// ViewController.swift
// AppStoreComment
//
// Created by Feng on 2017/4/19.
// Copyright © 2017年 Feng. All rights reserved.
//
import UIKit
import StoreKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let button = UIButton(type: .custom)
button.addTarget(self, action: #selector(pushAppStoreComment), for: .touchUpInside)
button.frame = CGRect(x: 100, y: 100, width: 100, height: 50)
button.setTitle("评论", for: .normal)
button.setTitleColor(UIColor.black, for: .normal)
view.addSubview(button)
let button1 = UIButton(type: .custom)
button1.addTarget(self, action: #selector(alternateIcon), for: .touchUpInside)
button1.frame = CGRect(x: 100, y: 200, width: 100, height: 50)
button1.setTitle("更换icon", for: .normal)
button1.setTitleColor(UIColor.black, for: .normal)
view.addSubview(button1)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
pushAppStoreComment()
}
func pushAppStoreComment() {
SKStoreReviewController.requestReview()
}
func alternateIcon() {
if UIApplication.shared.supportsAlternateIcons {
print("you can change this app's icon")
}else {
print("you cannot change this app's icon")
return
}
if let name = UIApplication.shared.alternateIconName {
// CHANGE TO PRIMARY ICON
UIApplication.shared.setAlternateIconName(nil) { (err:Error?) in
print("set icon error:\(String(describing: err))")
}
print("the alternate icon's name is \(name)")
}else {
// CHANGE TO ALTERNATE ICON
UIApplication.shared.setAlternateIconName("blackBgColor") { (err:Error?) in
print("set icon error:\(String(describing: err))")
}
}
}
}
| 753579a24b061b3e0f5dc7b80b529130a4f99348 | [
"Markdown",
"Swift"
] | 2 | Markdown | fy1402/AppStoreComment | 0fac98f72ddb34994380db3bf7d233271e1f581d | f35bcadd2f3cd5668e0cb726cee435990b75368d |
refs/heads/master | <repo_name>MazeFX/mazefx_website_project<file_sep>/website/pages/tools.py
from django.template import Context
from django.template.loader import get_template
from django.shortcuts import render
def get_page_filler():
s = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse auctor fringilla arcu, id scelerisque turpis sodales eget. Nullam congue ligula et sapien vehicula, vitae sagittis elit euismod. Morbi convallis, neque non sagittis cursus, nunc risus accumsan elit, quis semper tellus elit in tortor. Suspendisse egestas auctor neque id euismod. Sed in rhoncus mi. Etiam sollicitudin urna eu elit consequat semper. Integer porttitor iaculis eros id dapibus. Fusce ut congue lorem'
filler_list = s.split()
return filler_list
<file_sep>/website/pages/views.py
# -*- coding: utf-8 -*-
# GIFS - Clean up the file
# DOCS - Write some documentation
from django.shortcuts import render_to_response
from .tools import get_page_filler
def home(request):
filler_list = get_page_filler()
return render_to_response('pages/page_home.html', locals())
| 9748af4e9f47f4b34dde34a78b65fea6d321ec2b | [
"Python"
] | 2 | Python | MazeFX/mazefx_website_project | a5b43c9627ded652bb9d3f393a9711b914b61f38 | 8b8e74a8206a060fa6ddda3bd38a17452012ca2a |
refs/heads/master | <file_sep>package com.junar.searchpharma.dao;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import com.junar.searchpharma.Commune;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table COMMUNE.
*/
public class CommuneDao extends AbstractDao<Commune, Long> {
public static final String TABLENAME = "COMMUNE";
/**
* Properties of entity Commune.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public static class Properties {
public final static Property Id = new Property(0, Long.class, "id",
true, "_id");
public final static Property Code = new Property(1, Integer.class,
"code", false, "CODE");
public final static Property RegionCode = new Property(2,
Integer.class, "regionCode", false, "REGION_CODE");
public final static Property Name = new Property(3, String.class,
"name", false, "NAME");
};
public CommuneDao(DaoConfig config) {
super(config);
}
public CommuneDao(DaoConfig config, DaoSession daoSession) {
super(config, daoSession);
}
/** Creates the underlying database table. */
public static void createTable(SQLiteDatabase db, boolean ifNotExists) {
String constraint = ifNotExists ? "IF NOT EXISTS " : "";
db.execSQL("CREATE TABLE " + constraint + "'COMMUNE' (" + //
"'_id' INTEGER PRIMARY KEY ," + // 0: id
"'CODE' INTEGER," + // 1: code
"'REGION_CODE' INTEGER," + // 2: regionCode
"'NAME' TEXT);"); // 3: name
}
/** Drops the underlying database table. */
public static void dropTable(SQLiteDatabase db, boolean ifExists) {
String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "")
+ "'COMMUNE'";
db.execSQL(sql);
}
/** @inheritdoc */
@Override
protected void bindValues(SQLiteStatement stmt, Commune entity) {
stmt.clearBindings();
Long id = entity.getId();
if (id != null) {
stmt.bindLong(1, id);
}
Integer code = entity.getCode();
if (code != null) {
stmt.bindLong(2, code);
}
Integer regionCode = entity.getRegionCode();
if (regionCode != null) {
stmt.bindLong(3, regionCode);
}
String name = entity.getName();
if (name != null) {
stmt.bindString(4, name);
}
}
/** @inheritdoc */
@Override
public Long readKey(Cursor cursor, int offset) {
return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0);
}
/** @inheritdoc */
@Override
public Commune readEntity(Cursor cursor, int offset) {
Commune entity = new Commune( //
cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id
cursor.isNull(offset + 1) ? null : cursor.getInt(offset + 1), // code
cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2), // regionCode
cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3) // name
);
return entity;
}
/** @inheritdoc */
@Override
public void readEntity(Cursor cursor, Commune entity, int offset) {
entity.setId(cursor.isNull(offset + 0) ? null : cursor
.getLong(offset + 0));
entity.setCode(cursor.isNull(offset + 1) ? null : cursor
.getInt(offset + 1));
entity.setRegionCode(cursor.isNull(offset + 2) ? null : cursor
.getInt(offset + 2));
entity.setName(cursor.isNull(offset + 3) ? null : cursor
.getString(offset + 3));
}
/** @inheritdoc */
@Override
protected Long updateKeyAfterInsert(Commune entity, long rowId) {
entity.setId(rowId);
return rowId;
}
/** @inheritdoc */
@Override
public Long getKey(Commune entity) {
if (entity != null) {
return entity.getId();
} else {
return null;
}
}
/** @inheritdoc */
@Override
protected boolean isEntityUpdateable() {
return true;
}
}
<file_sep>package com.junar.searchpharma;
// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
// KEEP INCLUDES - put your custom includes here
// KEEP INCLUDES END
/**
* Entity mapped to table REGION.
*/
public class Region {
private Long id;
private Integer code;
private String name;
// KEEP FIELDS - put your custom fields here
// KEEP FIELDS END
public Region() {
}
public Region(Long id) {
this.id = id;
}
public Region(Long id, Integer code, String name) {
this.id = id;
this.code = code;
this.name = name;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
// KEEP METHODS - put your custom methods here
public String toString() {
return name;
}
// KEEP METHODS END
}
<file_sep>package cl.gob.datos.farmacias.helpers;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import cl.gob.datos.farmacias.R;
import cl.gob.datos.farmacias.controller.SyncController;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.junar.searchpharma.Pharmacy;
public class Utils {
private final static String TAG = Utils.class.getSimpleName();
public static final int DEFAULT_JPG_QUALITY = 70;
private final static String KEY_DAY = "day";
private final static String KEY_MONTH = "month";
private final static String KEY_YEAR = "year";
public static void openFragment(Fragment srcFrg, Fragment dstFragment,
Bundle args, int idContainer, boolean addToBack) {
openFragment(srcFrg, dstFragment, args, idContainer, addToBack, null);
}
public static void openFragment(Fragment srcFrg, Fragment dstFragment,
Bundle args, int idContainer, boolean addToBack, String tag) {
FragmentManager fragmentManager = srcFrg.getFragmentManager();
if (args != null) {
dstFragment.setArguments(args);
}
FragmentTransaction ft = fragmentManager.beginTransaction();
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
if (tag == null) {
ft.replace(idContainer, dstFragment);
} else {
ft.replace(idContainer, dstFragment, tag);
}
if (addToBack) {
ft.addToBackStack(tag);
}
ft.commit();
}
public static Intent createShareIntent(Context context, Pharmacy pharma) {
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append("Farmacia: ");
localStringBuilder.append(pharma.getName());
localStringBuilder.append("\n");
localStringBuilder.append("Dirección: ");
localStringBuilder.append(pharma.getAddress());
localStringBuilder.append("\n");
if (pharma.getPhone().length() > 0) {
localStringBuilder.append("Tel: ");
localStringBuilder.append(pharma.getPhone());
localStringBuilder.append("\n");
}
if (pharma.getLatitude() != 0 && pharma.getLongitude() != 0) {
localStringBuilder.append("Ubicación: ");
localStringBuilder.append("http://maps.google.com/?q="
+ pharma.getLatitude() + "," + pharma.getLongitude());
localStringBuilder.append("\n");
}
localStringBuilder.append(context.getString(R.string.more_pharmas)
+ context.getPackageName());
Intent localIntent = new Intent("android.intent.action.SEND");
localIntent.setType("text/plain");
localIntent.putExtra("android.intent.extra.SUBJECT",
"Farmacia recomendada");
localIntent.putExtra("android.intent.extra.TEXT",
localStringBuilder.toString());
if (pharma.getPhone().length() > 0) {
localIntent.putExtra("android.intent.extra.PHONE_NUMBER",
pharma.getPhone());
}
// localIntent.putExtra("android.intent.extra.EMAIL",
// pharma.getEmail());
return localIntent;
}
public static boolean isOnline(Context context) {
ConnectivityManager cm = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = cm.getActiveNetworkInfo();
if (netInfo != null && netInfo.isConnected()) {
return true;
}
return false;
}
public static boolean isGooglePlayAvailable(Context context) {
try {
int resultCode = GooglePlayServicesUtil
.isGooglePlayServicesAvailable(context);
if (ConnectionResult.SUCCESS == resultCode) {
Log.i(TAG, "Google Play services is available.");
return true;
}
} catch (Exception e) {
Log.d(TAG, e.getMessage());
}
Log.e(TAG, "Google Play services is NOT available.");
return false;
}
public static String getDatePhone(Context context) {
SharedPreferences pref = context.getSharedPreferences(
SyncController.PREFS_NAME, 0);
String formatteDate = pref.getString(KEY_DAY, "") + "/"
+ pref.getString(KEY_MONTH, "") + "/"
+ pref.getString(KEY_YEAR, "");
return formatteDate;
}
public static boolean resizeImageByWidth(String imagePath, int width) {
return resizeImageByWidth(imagePath, width, DEFAULT_JPG_QUALITY);
}
public static boolean resizeImageByWidth(String imagePath, int width,
int quality) {
try {
Options options = new BitmapFactory.Options();
options.inScaled = false;
options.inDither = false;
options.inPurgeable = true;
Bitmap image = BitmapFactory.decodeFile(imagePath, options);
Float imageWidth = new Float(image.getWidth());
Float imageHeight = new Float(image.getHeight());
Float ratio = imageHeight / imageWidth;
compressJpgImage(Bitmap.createScaledBitmap(image, width,
(int) (width * ratio), false), quality, imagePath);
image.recycle();
} catch (Exception e) {
Log.e(TAG, e.getMessage());
return false;
}
return true;
}
/**
* Compress a JPG image from a file and write it in the output file
*
* This method compress a JPG image from a given path with the given quality
* and write the compressed image to the output given path
*
* @param imagePath
* the image to compress
* @param quality
* the quality used to compress
* @param output
* the output file path
* @return boolean true if it could write the image
* @throws FileNotFoundException
*/
public static boolean compressJpgImage(String imagePath, int quality,
String output) {
Options options = new BitmapFactory.Options();
options.inScaled = false;
// options.inSampleSize = 8;
options.inTempStorage = new byte[32 * 1024];
Bitmap image = BitmapFactory.decodeFile(imagePath, options);
return compressJpgImage(image, quality, output);
}
public static boolean compressJpgImage(Bitmap image, int quality,
String output) {
try {
Boolean result = image.compress(Bitmap.CompressFormat.JPEG,
quality, new FileOutputStream(output));
System.gc();
image.recycle();
return result;
} catch (Exception e) {
Log.e(TAG, e.getMessage());
}
return false;
}
}<file_sep>package cl.gob.datos.farmacias.controller;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import java.util.concurrent.TimeoutException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import cl.gob.datos.farmacias.helpers.CommuneJsonHelper;
import cl.gob.datos.farmacias.helpers.LocalDao;
import cl.gob.datos.farmacias.helpers.PharmacyJsonHelper;
import cl.gob.datos.farmacias.helpers.RegionJsonHelper;
import cl.gob.datos.farmacias.helpers.Utils;
import com.junar.searchpharma.Commune;
import com.junar.searchpharma.Pharmacy;
import com.junar.searchpharma.Region;
public class SyncController {
private static final String TAG = SyncController.class.getSimpleName();
private final String DATE_FORMAT_MONTH = "MM";
private final String DATE_FORMAT_DAY = "dd";
private final String DATE_FORMAT_YEAR = "yyyy";
public static final String PREFS_NAME = "syncPharmaPreference";
public static final String KEY_DAY = "day";
public static final String KEY_MONTH = "month";
public static final String KEY_YEAR = "year";
public static final String KEY_TIMESTAMP = "timestamp";
private LocalDao localDao;
private Context mContext;
private SharedPreferences pref;
private SharedPreferences.Editor editor;
public SyncController(Context context) throws TimeoutException,
JSONException, IOException {
mContext = context;
pref = context.getSharedPreferences(PREFS_NAME, 0);
editor = pref.edit();
localDao = AppController.getInstace().getLocalDao();
initCache();
}
private void initCache() throws TimeoutException, JSONException,
IOException {
boolean firstTime = false;
if (Utils.isOnline(mContext)
&& (localDao.isFirstPopulate() || isDiferentSyncDay())) {
try {
if (localDao.isFirstPopulate()) {
firstTime = true;
}
cachePharmaList();
} catch (JSONException e) {
Log.e(TAG, e.getMessage());
if (firstTime || isDiferentSyncDay()) {
throw new JSONException(e.getMessage());
}
}
} else {
if (localDao.isFirstPopulate() || isDiferentSyncDay()) {
throw new TimeoutException("There is not internet conection");
}
}
}
private void cachePharmaList() throws JSONException, TimeoutException {
final PharmacyJsonHelper pharmacyDao = new PharmacyJsonHelper();
final String jsonArrayResponse = pharmacyDao
.invokeDatastream(PharmacyJsonHelper.DATA_GUID_TURN);
if (jsonArrayResponse == null) {
throw new TimeoutException("There is not internet conection");
}
final JSONArray jArray = new JSONObject(jsonArrayResponse)
.getJSONArray("result");
if (jArray.length() == 0) {
throw new JSONException("There is an error parsing pharma list");
}
Runnable runner = new Runnable() {
private String hasFail = "false";
public String toString() {
return hasFail;
}
@Override
public void run() {
try {
localDao.cleanCacheRegionList();
localDao.cleanCacheCommuneList();
localDao.cleanCachePharmaList("T");
List<Pharmacy> pharmaList = pharmacyDao
.parseJsonArrayResponse(jsonArrayResponse,
PharmacyJsonHelper.DATA_GUID_TURN);
downloadAllPharmacies(pharmacyDao);
localDao.cacheRegionList(cacheRegionList());
localDao.cacheCommuneList(cacheComuneList());
localDao.cachePharmaList(pharmaList);
localDao.addDatasetCacheControl();
saveSyncDay();
} catch (Exception e) {
if (localDao.isFirstPopulate()) {
hasFail = "true";
} else {
hasFail = "toast";
}
}
}
};
localDao.getDaoSession().runInTx(runner);
if (runner.toString().equals("true")) {
throw new JSONException("There is an error parsing pharma list");
} else if (runner.toString().equals("toast")) {
throw new JSONException("Toast");
}
}
private void downloadAllPharmacies(PharmacyJsonHelper pharmacyDao)
throws TimeoutException, JSONException {
JSONArray jArrayComplete;
String jsonArrayResponseAllPharmacies = pharmacyDao.invokeDatastream(
PharmacyJsonHelper.DATA_GUID_NORMAL, null, null, -1, -1,
pref.getLong(KEY_TIMESTAMP, 0));
if (jsonArrayResponseAllPharmacies == null) {
throw new TimeoutException("There is not internet conection");
}
if (!(new JSONObject(jsonArrayResponseAllPharmacies).get("result") instanceof JSONArray)) {
return;
} else {
localDao.cleanCachePharmaList("N");
jArrayComplete = new JSONObject(jsonArrayResponseAllPharmacies)
.getJSONArray("result");
if (jArrayComplete.length() > 0) {
List<Pharmacy> pharmaListComplete = pharmacyDao
.parseJsonArrayResponse(jsonArrayResponseAllPharmacies,
PharmacyJsonHelper.DATA_GUID_NORMAL);
localDao.cachePharmaList(pharmaListComplete);
}
}
saveSyncAllPharmaTimestamp();
}
private List<Region> cacheRegionList() throws JSONException,
TimeoutException {
final RegionJsonHelper regionDao = new RegionJsonHelper();
final String jsonArrayResponse = regionDao.invokeDatastream();
if (jsonArrayResponse == null) {
throw new TimeoutException("There is not internet conection");
}
JSONArray jArray = new JSONObject(jsonArrayResponse)
.getJSONArray("result");
if (jArray.length() > 0) {
return regionDao.parseJsonArrayResponse(jsonArrayResponse
.toString());
} else {
throw new JSONException("There is an error parsing regions list");
}
}
private List<Commune> cacheComuneList() throws JSONException,
TimeoutException {
CommuneJsonHelper communeDao = new CommuneJsonHelper();
final String jsonArrayResponse = communeDao.invokeDatastream();
if (jsonArrayResponse == null) {
throw new TimeoutException("There is not internet conection");
}
JSONArray jArray = new JSONObject(jsonArrayResponse)
.getJSONArray("result");
if (jArray.length() > 0) {
return communeDao.parseJsonArrayResponse(jsonArrayResponse
.toString());
} else {
throw new JSONException("There is an error parsing commune list");
}
}
private boolean isDiferentSyncDay() {
if (!pref.getString(KEY_DAY, "")
.equals(getIntegerDate(DATE_FORMAT_DAY))
|| !pref.getString(KEY_MONTH, "").equals(
getIntegerDate(DATE_FORMAT_MONTH))) {
return true;
}
return false;
}
private void saveSyncDay() {
editor.putString(KEY_DAY, getIntegerDate(DATE_FORMAT_DAY));
editor.putString(KEY_MONTH, getIntegerDate(DATE_FORMAT_MONTH));
editor.putString(KEY_YEAR, getIntegerDate(DATE_FORMAT_YEAR));
editor.commit();
}
private void saveSyncAllPharmaTimestamp() {
editor.putLong(KEY_TIMESTAMP, System.currentTimeMillis());
editor.commit();
}
@SuppressLint("SimpleDateFormat")
private String getIntegerDate(String date_format) {
Calendar calendar = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(date_format);
return sdf.format(calendar.getTime());
}
}<file_sep>package com.junar.searchpharma;
// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
// KEEP INCLUDES - put your custom includes here
// KEEP INCLUDES END
/**
* Entity mapped to table COMPLAINT.
*/
public class Complaint {
private Long id;
private String comment;
private String photo;
private Long latitude;
private Long longitude;
// KEEP FIELDS - put your custom fields here
// KEEP FIELDS END
public Complaint() {
}
public Complaint(Long id) {
this.id = id;
}
public Complaint(Long id, String comment, String photo, Long latitude,
Long longitude) {
this.id = id;
this.comment = comment;
this.photo = photo;
this.latitude = latitude;
this.longitude = longitude;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getPhoto() {
return photo;
}
public void setPhoto(String photo) {
this.photo = photo;
}
public Long getLatitude() {
return latitude;
}
public void setLatitude(Long latitude) {
this.latitude = latitude;
}
public Long getLongitude() {
return longitude;
}
public void setLongitude(Long longitude) {
this.longitude = longitude;
}
// KEEP METHODS - put your custom methods here
// KEEP METHODS END
}
<file_sep>package cl.gob.datos.farmacias.helpers;
import java.util.Comparator;
import com.junar.searchpharma.Pharmacy;
public class PharmacyComparator<T> implements Comparator<Pharmacy> {
@Override
public int compare(Pharmacy lhs, Pharmacy rhs) {
if (lhs.getDistance() < rhs.getDistance()) {
return -1;
} else if (lhs.getDistance() > rhs.getDistance()) {
return 1;
}
return 0;
}
}<file_sep>package com.junar.searchpharma.dao;
import java.util.Map;
import android.database.sqlite.SQLiteDatabase;
import com.junar.searchpharma.CacheControl;
import com.junar.searchpharma.Commune;
import com.junar.searchpharma.Complaint;
import com.junar.searchpharma.Pharmacy;
import com.junar.searchpharma.Region;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.AbstractDaoSession;
import de.greenrobot.dao.identityscope.IdentityScopeType;
import de.greenrobot.dao.internal.DaoConfig;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* {@inheritDoc}
*
* @see de.greenrobot.dao.AbstractDaoSession
*/
public class DaoSession extends AbstractDaoSession {
private final DaoConfig regionDaoConfig;
private final DaoConfig communeDaoConfig;
private final DaoConfig pharmacyDaoConfig;
private final DaoConfig complaintDaoConfig;
private final DaoConfig cacheControlDaoConfig;
private final RegionDao regionDao;
private final CommuneDao communeDao;
private final PharmacyDao pharmacyDao;
private final ComplaintDao complaintDao;
private final CacheControlDao cacheControlDao;
public DaoSession(SQLiteDatabase db, IdentityScopeType type,
Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
super(db);
regionDaoConfig = daoConfigMap.get(RegionDao.class).clone();
regionDaoConfig.initIdentityScope(type);
communeDaoConfig = daoConfigMap.get(CommuneDao.class).clone();
communeDaoConfig.initIdentityScope(type);
pharmacyDaoConfig = daoConfigMap.get(PharmacyDao.class).clone();
pharmacyDaoConfig.initIdentityScope(type);
complaintDaoConfig = daoConfigMap.get(ComplaintDao.class).clone();
complaintDaoConfig.initIdentityScope(type);
cacheControlDaoConfig = daoConfigMap.get(CacheControlDao.class).clone();
cacheControlDaoConfig.initIdentityScope(type);
regionDao = new RegionDao(regionDaoConfig, this);
communeDao = new CommuneDao(communeDaoConfig, this);
pharmacyDao = new PharmacyDao(pharmacyDaoConfig, this);
complaintDao = new ComplaintDao(complaintDaoConfig, this);
cacheControlDao = new CacheControlDao(cacheControlDaoConfig, this);
registerDao(Region.class, regionDao);
registerDao(Commune.class, communeDao);
registerDao(Pharmacy.class, pharmacyDao);
registerDao(Complaint.class, complaintDao);
registerDao(CacheControl.class, cacheControlDao);
}
public void clear() {
regionDaoConfig.getIdentityScope().clear();
communeDaoConfig.getIdentityScope().clear();
pharmacyDaoConfig.getIdentityScope().clear();
complaintDaoConfig.getIdentityScope().clear();
cacheControlDaoConfig.getIdentityScope().clear();
}
public RegionDao getRegionDao() {
return regionDao;
}
public CommuneDao getCommuneDao() {
return communeDao;
}
public PharmacyDao getPharmacyDao() {
return pharmacyDao;
}
public ComplaintDao getComplaintDao() {
return complaintDao;
}
public CacheControlDao getCacheControlDao() {
return cacheControlDao;
}
}
<file_sep>package cl.gob.datos.farmacias.controller;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import android.app.Application;
import android.location.Location;
import android.os.Bundle;
import android.util.Log;
import cl.gob.datos.farmacias.helpers.LocalDao;
import cl.gob.datos.farmacias.helpers.Utils;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient;
import com.google.android.gms.location.LocationClient;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
import com.junar.searchpharma.Pharmacy;
public class AppController extends Application implements
GooglePlayServicesClient.ConnectionCallbacks,
GooglePlayServicesClient.OnConnectionFailedListener {
private static final String TAG = AppController.class.getSimpleName();
public static float MAX_RADIO_IN_METERS = 10000;
private LocalDao localDao;
private static AppController mInstance;
private static LocationClient client;
private static Location location;
public static void connectLocationClient() {
if (Utils.isGooglePlayAvailable(AppController.getInstace()
.getApplicationContext())) {
if (client == null) {
client = new LocationClient(AppController.getInstace(),
AppController.getInstace(), AppController.getInstace());
}
if (client != null && !client.isConnected()) {
client.connect();
}
}
}
public static void disconnectLocationClient() {
if (client != null && client.isConnected()) {
client.disconnect();
client = null;
}
}
@Override
public void onCreate() {
super.onCreate();
localDao = new LocalDao(getApplicationContext());
mInstance = this;
AppController.connectLocationClient();
}
public static AppController getInstace() {
return mInstance;
}
public LocalDao getLocalDao() {
return localDao;
}
public List<MarkerOptions> getMarkersList() {
return getMarkersListForPharmaList(getPharmaList());
}
public List<MarkerOptions> getMarkersList(List<Pharmacy> pharmas) {
return getMarkersListForPharmaList(pharmas);
}
public List<Pharmacy> getPharmaList() {
List<Pharmacy> pharmaList = localDao.getPharmaList();
return pharmaList;
}
public Pharmacy getPharmaById(long id) {
return localDao.getPharmaById(id);
}
public List<MarkerOptions> getMarkersListForCommune(String commune) {
List<Pharmacy> pharmaList = localDao.getPharmaByCommune(commune);
Log.i(TAG, "cant de farmacias para comuna " + pharmaList.size());
return getMarkersListForPharmaList(pharmaList);
}
public List<MarkerOptions> getMarkersListForPharmaList(
List<Pharmacy> pharmaList) {
List<MarkerOptions> markerList = new ArrayList<MarkerOptions>();
Iterator<Pharmacy> it = pharmaList.iterator();
while (it.hasNext()) {
Pharmacy pharma = it.next();
markerList.add(getMarkerForPharmacy(pharma));
}
return markerList;
}
public MarkerOptions getMarkerForPharmacy(Pharmacy pharma) {
MarkerOptions marker = new MarkerOptions()
.position(
new LatLng(pharma.getLatitude(), pharma.getLongitude()))
.title(pharma.getName()).snippet(pharma.toString())
.icon(pharma.getMarkerIcon());
return marker;
}
public List<Pharmacy> filterNearestPharma(Location actualLocation,
long curRadioInMeters) {
LatLng location = new LatLng(actualLocation.getLatitude(),
actualLocation.getLongitude());
return filterNearestPharma(location, curRadioInMeters, null);
}
public List<Pharmacy> filterNearestPharma(Location actualLocation,
long curRadioInMeters, String type) {
LatLng location = new LatLng(actualLocation.getLatitude(),
actualLocation.getLongitude());
return filterNearestPharma(location, curRadioInMeters, type);
}
public List<Pharmacy> filterNearestPharma(LatLng actualLocation,
long curRadioInMeters, String type) {
if (actualLocation == null)
return null;
List<Pharmacy> pharmaMarkers = localDao.getPharmaListByRegionAndComune(
0, 0, actualLocation, type);
List<Pharmacy> pharmasInRadio = new ArrayList<Pharmacy>();
for (Pharmacy marker : pharmaMarkers) {
if (marker.getDistance() <= curRadioInMeters) {
pharmasInRadio.add(marker);
}
}
return pharmasInRadio;
}
@Override
public void onConnectionFailed(ConnectionResult arg0) {
Log.i(TAG, "Connection failed: " + arg0.getErrorCode());
}
@Override
public void onConnected(Bundle arg0) {
if (client != null) {
Log.i(TAG, "Connection successfully");
location = client.getLastLocation();
}
}
@Override
public void onDisconnected() {
Log.i(TAG, "Disconnected");
}
public static Location getLastLocation() {
connectLocationClient();
if (client != null && client.isConnected()) {
Location tmp = client.getLastLocation();
if (tmp != null) {
location = tmp;
}
}
return location;
}
}<file_sep>package com.junar.searchpharma;
// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
// KEEP INCLUDES - put your custom includes here
// KEEP INCLUDES END
/**
* Entity mapped to table COMMUNE.
*/
public class Commune {
private Long id;
private Integer code;
private Integer regionCode;
private String name;
// KEEP FIELDS - put your custom fields here
// KEEP FIELDS END
public Commune() {
}
public Commune(Long id) {
this.id = id;
}
public Commune(Long id, Integer code, Integer regionCode, String name) {
this.id = id;
this.code = code;
this.regionCode = regionCode;
this.name = name;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public Integer getRegionCode() {
return regionCode;
}
public void setRegionCode(Integer regionCode) {
this.regionCode = regionCode;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
// KEEP METHODS - put your custom methods here
public String toString() {
return name;
}
// KEEP METHODS END
}
<file_sep>package cl.gob.datos.farmacias.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.MenuItemCompat;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.SearchView;
import android.support.v7.widget.SearchView.OnQueryTextListener;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import cl.gob.datos.farmacias.R;
import cl.gob.datos.farmacias.adapter.CustomPharmaAdapter;
import cl.gob.datos.farmacias.controller.AppController;
import com.astuetz.PagerSlidingTabStrip;
import com.astuetz.PagerSlidingTabStrip.IconTabProvider;
public class MainActivity extends ActionBarActivity {
private SectionsPagerAdapter mSectionsPagerAdapter;
private ViewPager mViewPager;
private PagerSlidingTabStrip tabs;
private MenuItem searchMenuItem;
private Menu mMenu;
private int selectedPage = 0;
public int getSelectedPage() {
return selectedPage;
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.pharmacy_list, menu);
mMenu = menu;
final PharmaListFragment listado = (PharmaListFragment) getSupportFragmentManager()
.findFragmentByTag("listadofarmacias");
final PharmaListFragment listFromMap = (PharmaListFragment) getSupportFragmentManager()
.findFragmentByTag("listadodesdemap");
MenuItem searchItem = mMenu.findItem(R.id.search);
if (searchItem != null
&& ((selectedPage == 0 && listado != null && listado
.isVisible()) || (selectedPage == 1
&& listFromMap != null && listFromMap.isVisible()))) {
searchMenuItem = searchItem;
SearchView searchView = (SearchView) MenuItemCompat
.getActionView(searchMenuItem);
searchView.setOnQueryTextListener(new OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String arg0) {
return false;
}
@Override
public boolean onQueryTextChange(String arg0) {
CustomPharmaAdapter adapter = null;
if (listado != null)
adapter = ((CustomPharmaAdapter) listado
.getListAdapter());
CustomPharmaAdapter adapterFromMap = null;
if (listFromMap != null)
adapterFromMap = ((CustomPharmaAdapter) listFromMap
.getListAdapter());
if (adapter != null && selectedPage == 0) {
adapter.getFilter().filter(arg0);
if (adapterFromMap != null)
adapterFromMap.getFilter().filter("");
} else if (adapterFromMap != null && selectedPage == 1) {
adapterFromMap.getFilter().filter(arg0);
if (adapter != null)
adapter.getFilter().filter("");
}
return false;
}
});
}
return true;
}
private void showUp(boolean show) {
getSupportActionBar().setHomeButtonEnabled(show);
getSupportActionBar().setDisplayHomeAsUpEnabled(show);
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
switch (selectedPage) {
case 0:
mMenu.setGroupVisible(0, false);
Fragment listado = getSupportFragmentManager().findFragmentByTag(
"listadofarmacias");
Fragment mapaFromListado = getSupportFragmentManager()
.findFragmentByTag("mapadesdelistado");
if (listado != null && listado.isVisible()) {
mMenu.findItem(R.id.search).setVisible(true);
mMenu.findItem(R.id.menu_map_settings).setVisible(false);
mMenu.findItem(R.id.action_switch_mode)
.setIcon(R.drawable.ic_location_map).setVisible(true);
showUp(true);
} else if (mapaFromListado != null && mapaFromListado.isVisible()) {
mMenu.findItem(R.id.search).setVisible(false);
mMenu.findItem(R.id.menu_map_settings).setVisible(false);
mMenu.findItem(R.id.action_switch_mode)
.setIcon(R.drawable.ic_collections_sort_by_size)
.setVisible(true);
showUp(true);
} else {
showUp(false);
}
break;
case 1:
mMenu.findItem(R.id.search).setVisible(false);
mMenu.findItem(R.id.menu_map_settings).setVisible(true);
mMenu.findItem(R.id.action_switch_mode)
.setIcon(R.drawable.ic_collections_sort_by_size)
.setVisible(true);
Fragment listadoFromMap = getSupportFragmentManager()
.findFragmentByTag("listadodesdemap");
if (listadoFromMap != null && listadoFromMap.isVisible()) {
mMenu.findItem(R.id.search).setVisible(true);
mMenu.findItem(R.id.menu_map_settings).setVisible(false);
mMenu.findItem(R.id.action_switch_mode)
.setIcon(R.drawable.ic_location_map).setVisible(true);
showUp(true);
} else {
showUp(false);
}
break;
default:
mMenu.setGroupVisible(0, false);
showUp(false);
break;
}
return true;
}
@Override
public void onBackPressed() {
if (searchMenuItem != null
&& MenuItemCompat.isActionViewExpanded(searchMenuItem)) {
MenuItemCompat.collapseActionView(searchMenuItem);
} else {
Fragment search = getSupportFragmentManager().findFragmentByTag(
"zero");
Fragment map = getSupportFragmentManager()
.findFragmentByTag("mapa");
Fragment listFromMap = getSupportFragmentManager()
.findFragmentByTag("listadodesdemap");
Fragment mapFromList = getSupportFragmentManager()
.findFragmentByTag("mapadesdelistado");
Fragment listado = getSupportFragmentManager().findFragmentByTag(
"listadofarmacias");
if ((selectedPage == 0 && search != null && search.isVisible())
|| (selectedPage == 1 && map != null && map.isVisible())
|| selectedPage == 2) {
finish();
} else {
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
if (selectedPage == 1 && listFromMap != null
&& listFromMap.isVisible()) {
ft.replace(R.id.frames_map_container, map).commit();
} else if (selectedPage == 0 && mapFromList != null
&& mapFromList.isVisible()) {
ft.replace(R.id.frames_container, listado).commit();
} else if (selectedPage == 0 && listado != null
&& listado.isVisible()) {
if (searchMenuItem != null) {
((SearchView) MenuItemCompat
.getActionView(searchMenuItem)).setQuery("",
false);
}
ft.replace(R.id.frames_container, search).commit();
} else {
super.onBackPressed();
}
}
}
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
Fragment map = getSupportFragmentManager().findFragmentByTag("mapa");
switch (item.getItemId()) {
case android.R.id.home:
case R.id.action_switch_mode:
Fragment listado = getSupportFragmentManager().findFragmentByTag(
"listadofarmacias");
Fragment mapFromList = getSupportFragmentManager()
.findFragmentByTag("mapadesdelistado");
Fragment listFromMap = getSupportFragmentManager()
.findFragmentByTag("listadodesdemap");
if (listado != null && listado.isVisible() && selectedPage == 0) {
if (item.getItemId() == R.id.action_switch_mode) {
((PharmaListFragment) listado).openMap();
} else {
showUp(false);
onBackPressed();
}
} else if (mapFromList != null && mapFromList.isVisible()
&& selectedPage == 0) {
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.replace(R.id.frames_container, listado).commit();
} else if (map != null && map.isVisible() && selectedPage == 1) {
((PharmaClosestFragment) map).openList();
} else if (listFromMap != null && listFromMap.isVisible()
&& selectedPage == 1) {
FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.replace(R.id.frames_map_container, map).commit();
}
break;
case R.id.menu_map_settings:
if (map != null && map.isVisible() && selectedPage == 1) {
((PharmaClosestFragment) map).showSettingDialog();
}
}
return true;
}
@Override
public boolean onSearchRequested() {
if (searchMenuItem != null) {
if (MenuItemCompat.isActionViewExpanded(searchMenuItem)) {
MenuItemCompat.collapseActionView(searchMenuItem);
} else {
MenuItemCompat.expandActionView(searchMenuItem);
}
}
return super.onSearchRequested();
}
@Override
protected void onStart() {
super.onStart();
AppController.connectLocationClient();
}
@Override
protected void onStop() {
AppController.disconnectLocationClient();
super.onStop();
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mSectionsPagerAdapter = new SectionsPagerAdapter(
getSupportFragmentManager());
mViewPager = (ViewPager) findViewById(R.id.pager);
mViewPager.setOffscreenPageLimit(2);
mViewPager.setAdapter(mSectionsPagerAdapter);
tabs = (PagerSlidingTabStrip) findViewById(R.id.tabs);
tabs.setViewPager(mViewPager);
tabs.setOnPageChangeListener(new OnPageChangeListener() {
@Override
public void onPageSelected(int page) {
selectedPage = page;
getSupportActionBar().setTitle(
mSectionsPagerAdapter.getPageTitle(selectedPage));
supportInvalidateOptionsMenu();
AppController.getLastLocation();
if (searchMenuItem != null) {
MenuItemCompat.collapseActionView(searchMenuItem);
((SearchView) MenuItemCompat.getActionView(searchMenuItem))
.setQuery("", false);
}
}
@Override
public void onPageScrolled(int arg0, float arg1, int arg2) {
}
@Override
public void onPageScrollStateChanged(int arg0) {
}
});
getSupportActionBar().setTitle(
mSectionsPagerAdapter.getPageTitle(selectedPage));
}
public class SectionsPagerAdapter extends FragmentPagerAdapter implements
IconTabProvider {
public SectionsPagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public Fragment getItem(int position) {
switch (position) {
case 0:
return new FragmentZero();
case 1:
return new FragmentOne();
default:
return new InformationFragment();
}
}
@Override
public int getCount() {
return 3;
}
@Override
public CharSequence getPageTitle(int position) {
CharSequence title = "";
switch (position) {
case 0:
title = getString(R.string.title_section1);
break;
case 1:
title = getString(R.string.title_section2);
break;
case 2:
title = getString(R.string.title_section3);
break;
}
return title;
}
@Override
public int getPageIconResId(int position) {
switch (position) {
case 0:
return R.drawable.ic_action_search;
case 1:
return R.drawable.ic_location_web_site;
case 2:
return R.drawable.ic_action_about;
}
return 0;
}
}
/**
* A dummy fragment representing a section of the app, but that simply
* displays dummy text.
*/
public static class DummySectionFragment extends Fragment {
/**
* The fragment argument representing the section number for this
* fragment.
*/
public static final String ARG_SECTION_NUMBER = "section_number";
public DummySectionFragment() {
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_complaint,
container, false);
return rootView;
}
}
}
| e73f883156316bb2a78624d5b6c5d5349c248615 | [
"Java"
] | 10 | Java | Junar/Farmacia | da66a6abaf8364f00027e84e204c087829387bdf | 98b468a123ff7b7463bab85185a08915012ff647 |
refs/heads/master | <file_sep># ControlStructures1
Intro to Control Structures
This is just the basics in Python
<file_sep># ================= Compulsory Task ==================
# Create a Python file called “baby.py” in this folder.
# This program will be used to test if the user is over 18 and allowed entry into a party.
# Ask the user to enter the year they were born and calculate if they are older than 18.
# If they are older then display a message saying “Congrats you are old enough”
age = int(input("Please enter the year you were born: "))
if age <= 2000:
print ("Congrats you are old enough.")
else:
print ("Unfortunately you are not old enough!")
| 3ea183419225b5ccf868319058aef9ac5f1b47e6 | [
"Markdown",
"Python"
] | 2 | Markdown | Francoismc82/ControlStructures1 | 3f93a519fde992724314e3d76815965578e42561 | dd48b94446244baefca1f1bb45f6e1799a571ebd |
refs/heads/master | <repo_name>jeyu22/mosaic<file_sep>/R/chisq.R
#' Extract Chi-squared statistic
#'
#' Extract Chi-squared statistic
#'
#' @param x An object of class `"htest"` a coming from a Chi-squared test,
#' an object of class `"table"`, or
#' the inputs to [tally()].
#' @param correct a logical indicating whether a continuity correction should be
#' applied.
#' @param ... additional arguments passed on to `tally` or `chisq.test`.
#' @seealso [stat()]
#' @examples
#'
#' if(require(mosaicData)) {
#' Mites.table <- tally( ~ outcome + treatment, data=Mites )
#' Mites.table
#' chisq.test(Mites.table)
#' chisq(Mites.table)
#' chisq(chisq.test(Mites.table))
#' ## Randomization test. Increase replications to decrease Monte Carlo error.
#' do(3) * chisq( tally( ~ outcome + shuffle(treatment), data=Mites ) )
#' Mites.rand <- do(1000) * chisq( tally( ~ outcome + shuffle(treatment), data=Mites ) )
#' tally( ~(X.squared >= chisq(Mites.table)), data=Mites.rand, format="proportion")
#' }
#'
#' @export
chisq <- function(x, ...) {
UseMethod("chisq")
}
#' @rdname chisq
#' @export
chisq.htest <- function(x, ...) {
if (! grepl ("Chi-squared", x$method) ) {
stop("This doesn't look like a Chi-sqaured test to me.")
}
setNames(x$statistic, "X.squared")
}
#' @rdname chisq
#' @export
chisq.table <- function(x, correct = FALSE, ...) {
setNames(
chisq.test(x, correct = correct, ...)$statistic,
"X.squared"
)
}
#' @rdname chisq
#' @export
chisq.default <- function(x, correct = FALSE, ...) {
setNames(
chisq.test(tally(x, ...), correct = correct)$statistic,
"X.squared"
)
}
<file_sep>/cran-comments.md
## Context
This is a relatively small update, primarily fixing some types to allow this
to successfully build when the new dplyr hits CRAN.
## Test environments
* local OS X install
* R version 4.0.0 (2020-04-24)
* Platform: x86_64-apple-darwin17.0 (64-bit)
* Running under: macOS Catalina 10.15.4
* win-builder via devtools::check_win_release()
* win-builder via devtools::check_win_devel()
* rhub via devtools::check_rhub()
## R CMD check results
0 errors ✓ | 0 warnings ✓ | 1 note x
R CMD check succeeded
## Note
We have moved several vignettes out of the package to reduce the size.
<file_sep>/tests/testthat/test-xpnorm.R
context("xpnorm")
require(manipulate)
testthat::test_that("xpnorm works", {
vdiffr::expect_doppelganger("xpnorm1", xpnorm(650, 500, 100))
vdiffr::expect_doppelganger("xpnorm2", xqnorm(.75, 500, 100))
#vdiffr::expect_doppelganger("xpnorm3", xpnorm(-3:3, return = "plot", system = "gg") %>%
# gf_labs(title = "My Plot", x = "") %>%
# gf_theme(theme_bw()))
# manipulate(xpnorm(score, 500, 100, verbose = verbose),
# score = slider(200, 800),
# verbose = checkbox(TRUE, label = "Verbose Output")
# )
})<file_sep>/tests/testthat/test-plotCumfreq.R
context("plotCumfreq")
testthat::test_that("plotCumfreq works", {
vdiffr::expect_doppelganger("plotCumfreq1", plotCumfreq(~eruptions, faithful, xlab = 'duration of eruptions'))
})<file_sep>/tests/testthat/test-ashplots.R
context("ashplot()")
ashplot( ~age | substance, groups = sex, data = HELPrct)
testthat::test_that("Ashplots work", {
vdiffr::expect_doppelganger("ashplots1", ashplot( ~age | substance, groups = sex, data = HELPrct))
}) | 44867f4812f4af854ef13f980ee82876318ac38d | [
"Markdown",
"R"
] | 5 | R | jeyu22/mosaic | 892f76dbd23828a2898fa1d382cff1fc82869a09 | 8ae2bcda70125c10c882d4efc708236c98b162b7 |
refs/heads/master | <file_sep>package com.company;
import java.io.PrintStream;
import java.util.Scanner;
public class Main {
public static Scanner in = new Scanner(System.in);
public static PrintStream out = System.out;
public static void main(String[] args) {
boolean q;
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
q = ((a % 2 == 0) && (b % 2 == 0)) || ((a % 2 == 0) && (c % 2 == 0)) || ((b % 2 == 0) && (c % 2 == 0));
out.println(q);
}
}
| 2ddb2b8b4ccc3c3277de52dae0c07a0c2a50fc5c | [
"Java"
] | 1 | Java | Ivan239/TopProject | 24b34aafa399d0c88d24f9bc9bdc4ac2b966acd0 | 153699a358c45d5b4033dbfe3e27dcb1e79e5e60 |
refs/heads/master | <file_sep>import { useQuery } from "react-query";
import { useLocation } from "react-router-dom";
import citiesData from "../data.json";
type CityData = {
"#": number;
City: string;
Country: string;
"All Buildings": string;
"100m+": number;
"150m+": number;
"200m+": number;
"300m+": number;
"Telecom Towers": number;
"All Structures": string;
};
export const useDataViewerApi = () => {
const { search } = useLocation();
const queryParams = new URLSearchParams(search);
const { data = [], ...rest } = useQuery<CityData[]>("cities", async () => {
return citiesData;
});
return {
...rest,
data: orderBy(data, queryParams.get("orderByField")),
};
};
const orderBy = (data: CityData[], orderByField: string | null) => {
if (!orderByField) return data;
const collator = Intl.Collator("en", {
numeric: true,
});
return data.sort((a, b) => {
if (typeof a[orderByField] === "string") {
return collator.compare(
a[orderByField]?.replace(",", ""),
b[orderByField]?.replace(",", "")
);
}
return collator.compare(a[orderByField], b[orderByField]);
});
};
<file_sep># City Buildings
## Installation
Requires Node.js v12+ to run.
> First, fork or clone this project:
>
> `git clone https://github.com/lukaasc/city-buildings.git`
**Install the dependencies and start the server in development.**
```sh
cd city-buildings
npm install
npm run start
```
**building the code for production...**
```sh
cd city-buildings
npm install
npm run build
```
## License
MIT
| 38686d43c8ed725d1934098b5afb9c27dfac5641 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | lukaasc/city-buildings | b1cf2c5112afcb7072ee4abf9667ebfa1e71ba61 | 46a6891d7539ae07f50fe1b3e7f418db1d47593e |
refs/heads/master | <repo_name>cisspbru/wifi-ESP-IoT-controller<file_sep>/IRwifi.ino
#include <ESP8266WiFi.h>
#include <ESP8266WiFiAP.h>
#include <ESP8266WiFiGeneric.h>
#include <ESP8266WiFiSTA.h>
#include <ESP8266WiFiType.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#include <ArduinoJson.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
const char* server = "192.168.127.12"; // server's address
const char* resource = "/controler.php?id=1778"; // http resource plus id
const unsigned long BAUD_RATE = 9600; // serial connection speed
const unsigned long HTTP_TIMEOUT = 10000; // max respone time from server
const size_t MAX_CONTENT_SIZE = 512; // max size of the HTTP response
const int httpPort = 80;
const int rel4 = 2;
const int rel5 = 3;
const int rel6 = 5;
const int rel7 = 6;
const int rel8 = 7;
const int rel9 = 8;
const int rel10 = 9;
const int rel11 = 11;
const int rel12 = 12;
const int rel13 = 13;
const char* json = "{\"ControlerID\":\"1777\",\"pc1\":ok,\"pc2\":\"rest\"}";
const char* ssid = "ssid";
const char* pass = "<PASSWORD>";
int i =0;
char incomingBytes[3];
bool skipResponseHeaders;
struct UserData {
char pk6[32];
char pk7[32];
char pk8[32];
char pk9[32];
};
IRsend irsend(3);
void setup()
{
initSerial();
delay(10);
Serial.print("Connecting to "); //for debugging
Serial.println(ssid); // for debugging
IPAddress ip(192, 168, 0, 177);
// WiFi.config(ip);
WiFi.begin(ssid, pass);
while (WiFi.status() !=WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println(WiFi.localIP());
irsend.begin();
pinMode(4, OUTPUT); }
void loop()
{
WiFiClient client;
/*if (!client.connect(host, httpPort)) {
Serial.println("connection failed");
return;
}
*/
if (client.connect(server, 80)) {
// Send the HTTP GET request to the server
Serial.print("GET ");
Serial.println(resource);
client.print("GET ");
client.print(resource);
client.println(" HTTP/1.0");
client.print("Host: ");
client.println(server);
client.println("Connection: close");
client.println();
bool sendRequest = true;
// HTTP headers end with an empty line
char endOfHeaders[] = "\r\n\r\n";
client.setTimeout(HTTP_TIMEOUT);
bool ok = client.find(endOfHeaders);
if (!ok) {
Serial.println("No response or invalid response!");
skipResponseHeaders = false;
}else skipResponseHeaders = true;
Serial.println("Response OK!");
if (sendRequest && skipResponseHeaders) {
UserData userData;
// Compute optimal size of the JSON buffer according to what we need to parse.
// This is only required if you use StaticJsonBuffer.
const size_t BUFFER_SIZE =
JSON_OBJECT_SIZE(10) + MAX_CONTENT_SIZE; // additional space for strings
// Allocate a temporary memory pool
DynamicJsonBuffer jsonBuffer(BUFFER_SIZE);
JsonObject& root = jsonBuffer.parseObject(client); //JsonObject& root = jsonBuffer.parseObject(json);
if (!root.success()) {
Serial.println("JSON parsing failed!");
// return false;
}
String PCa = root["pc1"];
String PCb = root["pc2"];
String PCc = root["pc3"];
String PCd = root["pc4"];
String PCe = root["pc5"];
String PCf = root["pc6"];
String PCg = root["pc7"];
String PCh = root["pc8"];
String PCk = root["pc9"];
String PCj = root["pc10"];
Serial.println("working");
if ( PCa == "on"){
irsend.sendNEC(0xFB30CF, 32);
Serial.println("cannel 0");
delay(200);
}
if ( PCb == "on"){
irsend.sendNEC(0xFB2AD5, 32);
Serial.println("cannel 1");
delay(200);
}
if ( PCc == "on"){
irsend.sendNEC(0xFBA857, 32);
Serial.println("cannel 2");
delay(200);
}
if ( PCd == "on"){
irsend.sendNEC(0xFB0AF5, 32);
Serial.println("cannel 3");
delay(200);
}
if ( PCe == "on"){
irsend.sendNEC(0xFB48B7, 32);
Serial.println("cannel 4");
delay(200);
}
if ( PCf == "on"){
irsend.sendNEC(0xFB8877, 32);
Serial.println("cannel 5");
delay(200);
}
if ( PCg == "on"){
irsend.sendNEC(0xFB32CD, 32);
Serial.println("cannel 6");
delay(200);
}
if ( PCh == "on"){
irsend.sendNEC(0xFB708F, 32);
Serial.println("cannel 7");
delay(200);
}
if ( PCk == "on"){
digitalWrite(4,HIGH);
Serial.println("light on");
delay(200);
}
if ( PCk == "off"){
digitalWrite(4,LOW);
Serial.println("ligt low");
delay(200);
}
if ( PCj == "on"){
irsend.sendNEC(0xFB38C7, 32);
Serial.println("on/of");
delay(200);
}
}
}else Serial.println("connection failed");
client.stop();
delay(600);
}
void initSerial() {
Serial.begin(9600);
//while (!Serial) {
//wait for serial port to initialize
//}
Serial.println("Serial ready");
}
void printUserData(const struct UserData* userData) {
// Serial.print("pk1 = ");
// Serial.println(userData->pk1);
// Serial.print("pk2 = ");
// Serial.println(userData->pk2);
// Serial.println(userData->pk1);
}
<file_sep>/README.md
# wifi-ESP-IoT-controller with MySQL Cloud
My old project
Controller for remote control light and IR remote
| 5e26cc2ba909f7310b4d234f42da8c1e070418ff | [
"Markdown",
"C++"
] | 2 | C++ | cisspbru/wifi-ESP-IoT-controller | c119913e0f90ccb0b5e712ae80d1733275062506 | 3d0756c89dcd31af4f2ee7e550ef449216774064 |
refs/heads/master | <file_sep>import socket
import threading
import json
class WLinServer:
def __init__(self):
print('서버 준비완료')
self.sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sk.bind(('0.0.0.0', 45770))
self.sk.listen(10)
self._t = threading.Thread(target=self.server_listener)
self._t.start()
self.wl_client_list = []
def server_listener(self):
while True:
c, addr = self.sk.accept()
print(addr)
ret = c.recv(1024)
if ret is None:
c.send("err".encode())
continue
ret = ret.decode()
try:
jobj = json.loads(ret)
if jobj['type'] == 'client_hello':
name = jobj['name']
self.wl_client_list.append(WLinClient(c, addr, name, self))
else:
raise Exception
except:
c.send("err".encode())
class WLinClient:
def __init__(self, sock: socket.socket, addr, name, server: WLinServer):
self.addr = addr
self.name = name
self.sock = sock
self.server = server
sock.send("ok".encode())
def get_cpu_stat(self):
self.sock.send('{"type": "request", "req": "cpu"}'.encode())
ret = self.sock.recv(4096)
if ret is None:
self.server.wl_client_list.remove(self)
return json.loads(ret)
def get_proc_stat(self):
self.sock.send('{"type": "request", "req": "proc"}'.encode())
ret = self.sock.recv(4096)
if ret is None:
self.server.wl_client_list.remove(self)
return json.loads(ret)
def get_name_stat(self):
self.sock.send('{"type": "request", "req": "name"}'.encode())
ret = self.sock.recv(4096)
if ret is None:
self.server.wl_client_list.remove(self)
return json.loads(ret)
def get_mem_stat(self):
self.sock.send('{"type": "request", "req": "mem"}'.encode())
ret = self.sock.recv(4096)
if ret is None:
self.server.wl_client_list.remove(self)
return json.loads(ret)
<file_sep>from flask import Flask, render_template, abort
import wlin_server
app = Flask(__name__)
w = wlin_server.WLinServer()
@app.route('/')
def client_list():
return render_template('connected_client_list.html', client_list=w.wl_client_list)
@app.route('/stat/<name>')
def client_stat(name):
c = None
for i in w.wl_client_list:
if i.name == name:
c = i
break
if c is None:
abort(404)
else:
x = c.get_proc_stat()
print(x)
mem_usage = (int(c.get_mem_stat()["total"]) - int(c.get_mem_stat()["free"])) / int(c.get_mem_stat()["total"]) * 100
swap_usage = (int(c.get_mem_stat()["total_swap"]) - int(c.get_mem_stat()["free_swap"])) / int(c.get_mem_stat()["total_swap"]) * 100
return render_template('client_stat.html', client_info=c, mu=mem_usage, su=swap_usage)
if __name__ == '__main__':
app.run(host='0.0.0.0')
w._t.join()
| db14a10d7c46190b376d1ed32176244884c10780 | [
"Python"
] | 2 | Python | vl0114/wlin_server | d1c1beec801c13987bc99ee6b90dd9ea3389786f | a38a3000462f35b7344224010ac88de24aea42e0 |
refs/heads/master | <repo_name>langlk/palindromes<file_sep>/lib/palindromes.rb
class String
def is_palindrome?
temp_string = self.gsub(/[^a-z0-9]/i, "")
if temp_string.downcase == temp_string.downcase.reverse
return true
else
return false
end
end
def get_palindromes
palindromes = []
words = self.split
i = 0
while i < words.length
j = i + 1
while j <= words.length
temp_string = words[i...j].join(" ")
temp_string = temp_string.gsub(/(^[^a-z0-9]*|[^a-z0-9]*$)/i, '')
if temp_string.is_palindrome?
palindromes.push(temp_string)
end
j += 1
end
i += 1
end
return palindromes
end
end
class File
def get_palindromes
input = self.read
return input.get_palindromes()
end
end
<file_sep>/spec/palindromes_spec.rb
require('rspec')
require('palindromes')
describe("String#is_palindrome?") do
it("returns false if a word does not equal its reverse") do
expect("cat".is_palindrome?).to(eq(false))
end
it("returns true if a word equals its reverse") do
expect("mom".is_palindrome?).to(eq(true))
end
it("ignores case when checking if a word is a palindrome") do
expect("TacoCat".is_palindrome?).to(eq(true))
end
it("returns true if a string is a multi-word palindrome") do
expect("Taco cat".is_palindrome?).to(eq(true))
end
end
describe("String#get_palindromes") do
it("returns all palindromes in a string as an array") do
expect("Bob is a fan of Tacocat".get_palindromes).to(eq(["Bob", "a", "Tacocat"]))
end
it("returns all single and multi-word palindromes in a string as an array") do
expect("Bob likes taco cat".get_palindromes).to(eq(["Bob", "taco cat"]))
end
end
describe("File#get_palindromes") do
it("returns array of palindromes from a text file") do
input = File.new("test.txt", "r")
expect(input.get_palindromes()).to(eq(["Bob", "a", "Tacocat", "Ana", "Anna", "EvilOlive"]))
end
it("returns array of single and multi-word palindromes from a text file") do
input = File.new("test2.txt", "r")
expect(input.get_palindromes()).to(eq(["Bob", "a", "Tacocat", "Ana", "Anna", "Evil Olive", "Ah, Satan sees Natasha", "sees"]))
end
end
<file_sep>/README.md
# Palindromes
#### _Epicodus practice in Ruby, 9/6/17_
#### By _**<NAME> and <NAME>**_
## Description
_Ruby practice: Determines if a word or string is a palindrome, and can check a string or text file for all palindromes._
## Setup/Installation Requirements
* _Clone this repository._
## Specifications
* Returns false if a word does not equal its reverse
* Example input: "cat"
* Example output: false
* Returns true if a word equals its reverse
* Example input: "mom"
* Example output: true
* Ignores case when checking if word is a palindrome
* Example input: "TacoCat"
* Example output: true
* Checks for palindromes in a multiple-word string and returns as array
* Example input: "Bob is a fan of Tacocat"
* Example output: ["Bob", "a", "Tacocat"]
* Checks for palindromes in a text file.
* Example input: "Bob is a fan of Tacocat. Ana and Anna are not, they prefer EvilOlive."
* Example output: ["Bob", "a", "Tacocat", "Ana", "Anna", "EvilOlive"]
* Checks if a string is a multi-word palindrome.
* Example input: "<NAME>"
* Example output: true
* Gets all single and multi-word palindromes in a string.
* Example input: "Bob likes taco cat"
* Example output: ["Bob", "taco cat"]
* Gets all single and multi-word palindromes in a file.
* Example input: "Bob is a fan of Tacocat. Ana and Anna are not, they prefer Evil Olive. Are we not pure? “No sir!” Panama’s moody Noriega brags. “It is garbage!” Irony dooms a man; a prisoner up to new era."
* Example output: ["Bob", "Tacocat", "Ana", "Anna", "Evil Olive", "Are we not pure No sir Panamas moody Noriega brags It is garbage Irony dooms a man a prisoner up to new era", "a", "a"]
## Support and contact details
_If you run into any issues or have questions, ideas or concerns, or if you would like to contribute to the code, please contact <NAME> ._
## Technologies Used
_This application was created using Ruby_
### License
Copyright (c) 2017 **_<NAME> and <NAME>_**
| 953c224e08d4673e802b5905219de4c3ce3f4f14 | [
"Markdown",
"Ruby"
] | 3 | Ruby | langlk/palindromes | 4a652677dff297b574f3ade52c341c48709d35b7 | 73fc3472626e6bc53e5378359a9f8e2dbb080498 |
refs/heads/master | <repo_name>giorgiosst92/Rabbit_2<file_sep>/rabbit.py
import time
import math
from configparser import ConfigParser
config = ConfigParser()
config.read('config.ini')
# read the base params from the config file
a = int(config.get('processing', 'a'))
b = int(config.get('processing', 'b'))
d = int(config.get('processing', 'd'))
def minJumps(a, b, d):
# Base case: when source and
# destination are same
if a == b:
return 0
# when nothing is reachable
# from the given fixed step distance
if d == 0:
return float('inf')
minSteps = math.ceil((b - a) / d)
return minSteps
if __name__ == "__main__":
if a > b:
print("a can't be > b. Please enter new values")
else:
print('Minimum number of jumps to reach',
'end is', minJumps(a, b, d))
<file_sep>/config.ini
[processing]
a=0
b=10
d=3
| 9b0906bc65e808997186b5fda680a6402cf0ed4b | [
"Python",
"INI"
] | 2 | Python | giorgiosst92/Rabbit_2 | 23985ae267f116d1ca19716e5b6f0adb63fb767a | 5a0fce9ceedbe726a4efbfa179279277f0802092 |
refs/heads/master | <repo_name>Iwan204/RPG<file_sep>/RPG V0.3/Character.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
namespace RPG_V0._3
{
public class Character : Entity
{
public AttributesStruct Attributes;
public int Elevation;
public bool IsSelected;
public bool IsPlayer;
public Character(AttributesStruct att,Vector2 pos, ContentManager content, string name)
{
Attributes = att;
Name = name;
Initialize(content, pos);
}
public override void Draw(SpriteBatch spriteBatch)
{
spriteBatch.Draw(sprite, spriteBox, Color.Black);
Console.WriteLine(Name + " Drawn at "+ spriteBox );
}
public override void Initialize(ContentManager content, Vector2 position)
{
IsCollidable = true;
IsSelected = false;
sprite = content.Load<Texture2D>("Characters/DebugDefault");
spriteBox = new Rectangle((int)Position.X - 32, (int)Position.Y - 64, 32, 32);
boundingBox = new Rectangle((int)Position.X - 32, (int)Position.Y - 64, 64, 32);
Elevation = 0;
}
public override void Update(GameTime gameTime)
{
Vector2 TempPosition = Camera.camera.Position - Position;
spriteBox = new Rectangle((int)TempPosition.X - 32, (int)TempPosition.Y - 64, 32, 32);
boundingBox = new Rectangle((int)TempPosition.X - 32, (int)TempPosition.Y - 64, 64, 32);
}
}
}
<file_sep>/RPG V0.3/Camera.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
using System.IO;
using System.Xml.Serialization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Collections.Generic;
using MonoGame.Extended;
namespace RPG_V0._3
{
public static class Camera
{
private static Random randomNum;
public static Camera2D camera;
static Vector2 pointOne;
static Vector2 pointTwo;
static Vector2 randPointOne;
static Vector2 randPointTwo;
static Queue<Vector2> demoCameraQueue;
static Vector2 currentDemoVector;
private static Timer aTimer;
public static void Initialise(GraphicsDevice graphicsDevice)
{
camera = new Camera2D(graphicsDevice);
pointOne = new Vector2();
pointTwo = new Vector2();
randPointOne = new Vector2();
randPointTwo = new Vector2();
demoCameraQueue = new Queue<Vector2>();
currentDemoVector = new Vector2(0, 0);
randomNum = new Random(DateTime.UtcNow.Millisecond);
camera.Position = new Vector2(-800, 800);
SetDemoTimer();
//aTimer.Stop();
//aTimer.Dispose();
}
public static void Update()
{
//move camera with mouse
if (Mouse.GetState().RightButton == ButtonState.Pressed)
{
pointTwo = new Vector2(Mouse.GetState().Position.X, Mouse.GetState().Position.Y);
float camX = (pointOne.X - pointTwo.X);
float camY = (pointOne.Y - pointTwo.Y);
camera.Move(new Vector2(camX, camY));
}
pointOne = new Vector2(Mouse.GetState().Position.X, Mouse.GetState().Position.Y);
//rotate camera
if (Keyboard.GetState().IsKeyDown(Keys.R))
{
Console.WriteLine("R key pressed!");
camera.Rotate(0.0075f);
}
if (Keyboard.GetState().IsKeyDown(Keys.Q))
{
Console.WriteLine("Q key pressed!");
camera.Rotate(-0.0075f);
}
}
public static void UpdateMainMenu(GameTime time)
{
randPointTwo = new Vector2(randomNum.Next(-2, 2), randomNum.Next(-2, 2));
float camX = (randPointOne.X - randPointTwo.X);
float camY = (randPointOne.Y - randPointTwo.Y);
if (camera.BoundingRectangle.Center.X > 800 || camera.BoundingRectangle.Center.X < -1000)
{
if (camera.BoundingRectangle.Center.Y > 800 || camera.BoundingRectangle.Center.Y < -800)
{
var newpos = new Vector2(-800, 800);
camX = (randPointOne.X - newpos.X);
camY = (randPointOne.Y - newpos.Y);
}
}
var camVec = new Vector2(camX, camY);
demoCameraQueue.Enqueue(camVec);
pointOne = new Vector2(randomNum.Next(-2, 2), randomNum.Next(-2, 2));
camera.Move(currentDemoVector);
}
public static void OnDemoMovement(Object source, ElapsedEventArgs e)
{
if (demoCameraQueue.Count != 0)
{
currentDemoVector = demoCameraQueue.Dequeue();
}
//currentDemoVector = demoCameraQueue.Dequeue();
//camera.Move(demoCameraQueue.Dequeue() / 50f);
}
private static void SetDemoTimer()
{
aTimer = new Timer(2000);
aTimer.Elapsed += OnDemoMovement;
aTimer.AutoReset = true;
aTimer.Enabled = true;
}
}
}
<file_sep>/RPG V0.3/GameManager.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using MonoGame.Extended;
using MonoGame.Extended.Content;
using MonoGame.Extended.Graphics;
using MonoGame.Extended.Tiled;
using MonoGame.Extended.Tiled.Graphics;
namespace RPG_V0._3
{
public enum GameState
{
MainMenu,
CharacterCreate,
NewGame,
LoadGame,
Pause,
GameplayLoop,
Quit,
Combat,
}
static class GameManager
{
public static GameState gameState;
public static Dictionary<string,Character> CharacterDictionary;
public static AttributesStruct NewPlayer;
public static string NewPlayerName;
public static void Initialise(ContentManager Content)
{
gameState = GameState.MainMenu; //set default gamestate
NewPlayer = new AttributesStruct();
NewPlayerName = "Default";
CharacterDictionary = new Dictionary<string, Character>();
CharacterDictionary["0001"] = new Character(
new AttributesStruct(),
new Vector2(2,2),
Content,
"Test"
);
}
public static void Draw(SpriteFont soritefont)
{
switch (gameState)
{
case GameState.MainMenu:
break;
case GameState.CharacterCreate:
break;
case GameState.NewGame:
break;
case GameState.LoadGame:
break;
case GameState.Pause:
break;
case GameState.GameplayLoop:
break;
case GameState.Quit:
break;
case GameState.Combat:
break;
default:
break;
}
}
}
}<file_sep>/RPG V0.3/MapHandler.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MonoGame.Extended;
using MonoGame.Extended.Content;
using MonoGame.Extended.Graphics;
using MonoGame.Extended.Tiled;
using MonoGame.Extended.Tiled.Graphics;
namespace RPG_V0._3
{
public struct Level
{
public TiledMap Map;
public string MapName;
public TiledMapObjectLayer ObjectLayer;
public List<Character> Characters;
public int[,] ElevationMatrix;
public int[,] NavigationMatrix;
public Level(TiledMap map)
{
Map = map;
map.Properties.TryGetValue("MapName", out MapName);
ObjectLayer = map.GetLayer<TiledMapObjectLayer>("GameObjects");
NavigationMatrix = new int[map.Width,map.Height];
ElevationMatrix = new int[map.Width, map.Height];
Characters = new List<Character>();
}
}
static class MapHandler
{
public static List<Level> availableMaps;
public static TiledMapRenderer mapRenderer;
public static Level currentLevel;
public static Vector2 playerSpawn;
private static ContentManager Content;
private static GraphicsDevice graphicsDevice;
public static void Initialize(ContentManager content, GraphicsDevice graphics)
{
Content = content;
graphicsDevice = graphics;
availableMaps = new List<Level>();
mapRenderer = new TiledMapRenderer(graphicsDevice);
availableMaps.Add(new Level(content.Load<TiledMap>(@"Maps\DEMO2")));
availableMaps.Add(new Level(content.Load<TiledMap>(@"Maps\ObjectTest")));
currentLevel = availableMaps.First();
}
public static void LoadMap(string loadMapName)
{
//if the current map is loaded
//note: make map, mapname and objectlayer a struct called level for easy access
if (loadMapName != currentLevel.MapName)
{
foreach (var map in availableMaps)
{
var nameToComapre = "";
map.Map.Properties.TryGetValue("MapName", out nameToComapre);
if (nameToComapre == loadMapName)
{
//map found in available maps
currentLevel = map;
//set parameters from objects in map
foreach (var entity in currentLevel.ObjectLayer.Objects)
{
Console.WriteLine(entity.Name + " found");
//camerastart parameter
if (entity.Name == "CameraStart")
{
Camera.camera.Position = entity.Position;
}
if (entity.Name == "Playerspawn")
{
Console.WriteLine("Object for playerspawn found, position = " + entity.Position);
playerSpawn = entity.Position;
}
if (entity.Name == "NonPlayerSpawn")
{
Console.WriteLine("Object for nonplayer found, position = " + entity.Position);
string NPCid = "";
entity.Properties.TryGetValue("NPC_ID", out NPCid);
LoadChar(NPCid,entity.Position);
}
}
}
}
}
}
public static void LoadChar(string NPCid,Vector2 position)
{
GameManager.CharacterDictionary[NPCid].Position = position;
currentLevel.Characters.Add(GameManager.CharacterDictionary[NPCid]);
}
public static void Update(GameTime gameTime)
{
switch (GameManager.gameState)
{
case GameState.MainMenu:
LoadMap("Demo");
mapRenderer.Update(currentLevel.Map, gameTime);
break;
case GameState.CharacterCreate:
LoadMap("Demo");
mapRenderer.Update(currentLevel.Map, gameTime);
break;
case GameState.NewGame:
break;
case GameState.LoadGame:
break;
case GameState.Pause:
break;
case GameState.GameplayLoop:
LoadMap("ObjectTest");
mapRenderer.Update(currentLevel.Map, gameTime);
break;
case GameState.Quit:
break;
case GameState.Combat:
break;
default:
break;
}
}
public static void Draw(SpriteBatch spriteBatch)
{
switch (GameManager.gameState)
{
case GameState.NewGame:
break;
case GameState.LoadGame:
break;
case GameState.Pause:
break;
case GameState.Quit:
break;
case GameState.Combat:
break;
default:
spriteBatch.Begin(transformMatrix: Camera.camera.GetViewMatrix(), samplerState: SamplerState.PointClamp);
mapRenderer.Draw(currentLevel.Map, Camera.camera.GetViewMatrix());
spriteBatch.End();
break;
}
}
public static void DrawLayer(SpriteBatch spriteBatch, string LayerName)
{
spriteBatch.Begin(transformMatrix: Camera.camera.GetViewMatrix(), samplerState: SamplerState.PointClamp);
try
{
TiledMapLayer layer = currentLevel.Map.GetLayer(LayerName);
mapRenderer.Draw(layer, Camera.camera.GetViewMatrix());
}
catch (Exception)
{
//if no layer exists nothing will happen
}
spriteBatch.End();
}
}
}
<file_sep>/RPG V0.3/Game1.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using MonoGame.Extended.Tiled;
using System;
using System.IO;
namespace RPG_V0._3
{
[System.Serializable]
public struct AttributesStruct
{
public int Strength;
public int Dexterity;
public int Constitution;
public int Intelligence;
public int Charisma;
public int Age;
}
public class Game1 : Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
Cursor Cursor;
//
public Screen currentScreen;
public SpriteFont GreySpriteFont;
public SpriteFont Nixie;
public Texture2D GreyImageMap;
public string GreyMap;
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
}
protected override void Initialize()
{
// TODO: Add your initialization logic here
Cursor = new Cursor(Content);
Camera.Initialise(graphics.GraphicsDevice);
MapHandler.Initialize(Content, graphics.GraphicsDevice);
GameManager.Initialise(Content);
base.Initialize();
}
protected override void LoadContent()
{
// Create a new SpriteBatch, which can be used to draw textures.
spriteBatch = new SpriteBatch(GraphicsDevice);
//Gui Initialisation
GreyImageMap = Content.Load<Texture2D>(@"GreySkin\ImageMap");
GreyMap = File.OpenText(@"Content\GreySkin\Map.txt").ReadToEnd();
GreySpriteFont = Content.Load<SpriteFont>(@"Fonts\MenuFont");
Nixie = Content.Load<SpriteFont>(@"Fonts\Nixie");
currentScreen = new MainMenuScreen();
currentScreen.Init(this);
}
protected override void UnloadContent()
{
// TODO: Unload any non ContentManager content here
}
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
Exit();
// TODO: Add your update logic here
Cursor.Update(gameTime);
currentScreen.Update(gameTime);
MapHandler.Update(gameTime);
switch (GameManager.gameState)
{
case GameState.MainMenu:
Camera.UpdateMainMenu(gameTime);
break;
case GameState.NewGame:
break;
case GameState.Pause:
break;
case GameState.GameplayLoop:
Camera.Update();
MapHandler.Update(gameTime);
foreach (var character in MapHandler.currentLevel.Characters)
{
character.Update(gameTime);
}
break;
case GameState.Combat:
break;
default:
break;
}
//Console.WriteLine(GameManager.gameState);
base.Update(gameTime);
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
MapHandler.Draw(spriteBatch);
currentScreen.Draw();
Cursor.Draw(spriteBatch);
foreach (var character in MapHandler.currentLevel.Characters)
{
spriteBatch.Begin(transformMatrix: Camera.camera.GetViewMatrix(), samplerState: SamplerState.PointClamp);
character.Draw(spriteBatch);
spriteBatch.End();
}
base.Draw(gameTime);
}
}
}
<file_sep>/RPG V0.3/Screen.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Ruminate.GUI.Content;
using Ruminate.GUI.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
namespace RPG_V0._3
{
public abstract class Screen
{
public Color Color { get; set; }
public abstract void Init(Game1 game);
public abstract void OnResize();
public abstract void Update(GameTime time);
public abstract void Draw();
}
class CharCreateScreen : Screen
{
Gui gui;
Panel CharCreatePanel;
Panel AttributePanel;
Panel[] IndAttributePanels;
Skin skin;
Text text;
Color AttributeColour;
//Attribute Variables
AttributesStruct Attributes;
bool resizeNeeded;
Label LabelAGEVAL;
Label LabelINTVAL;
Label LabelSTRVAL;
Label LabelDEXVAL;
Label LabelCONVAL;
Label LabelCHAVAL;
SingleLineTextBox NameBox;
public override void Draw()
{
gui.Draw();
}
public override void Init(Game1 game)
{
Color = Color.White;
skin = new Skin(game.GreyImageMap, game.GreyMap);
text = new Text(game.GreySpriteFont, Color.Chartreuse);
AttributeColour = Color.OrangeRed;
resizeNeeded = false;
Attributes = GameManager.NewPlayer;
gui = new Gui(game, skin, text);
gui.AddText("Nixie", new Text(game.Nixie, AttributeColour));
CharCreatePanel = new Panel(1, 1, game.GraphicsDevice.Viewport.Width / 3, game.GraphicsDevice.Viewport.Height - 10);
CharCreatePanel.AddWidget(new Label(1 ,6,"NAME"));
NameBox = new SingleLineTextBox(50, 0, 150, 15);
NameBox.Value = GameManager.NewPlayerName;
CharCreatePanel.AddWidget(NameBox);
AttributePanel = new Panel(1,50,CharCreatePanel.Area.Width -10,70);
IndAttributePanels = new Panel[6];
//strength
Panel PanelSTR = new Panel(1, 1, AttributePanel.Area.Width / 6, AttributePanel.Area.Height - 10);
LabelSTRVAL = new Label(1, 1, Convert.ToString(Attributes.Strength));
LabelSTRVAL.Text = "Nixie";
Label LabelSTR = new Label(1, 35, "STR");
PanelSTR.AddWidget(LabelSTR);
PanelSTR.AddWidget(LabelSTRVAL);
IndAttributePanels[0] = PanelSTR;
//Dex
Panel PanelDEX = new Panel((AttributePanel.Area.Width / 6) * 1, 1, AttributePanel.Area.Width / 6, AttributePanel.Area.Height - 10);
Label LabelDEX = new Label(1, 35, "DEX");
LabelDEXVAL = new Label(1, 1, Convert.ToString(Attributes.Dexterity));
LabelDEXVAL.Text = "Nixie";
PanelDEX.AddWidget(LabelDEX);
PanelDEX.AddWidget(LabelDEXVAL);
IndAttributePanels[1] = PanelDEX;
//Charisma
Panel PanelCHA = new Panel((AttributePanel.Area.Width / 6) * 2, 1, AttributePanel.Area.Width / 6, AttributePanel.Area.Height - 10);
Label LabelCHA = new Label(1, 35, "CHA");
LabelCHAVAL = new Label(1, 1, Convert.ToString(Attributes.Charisma));
LabelCHAVAL.Text = "Nixie";
PanelCHA.AddWidget(LabelCHA);
PanelCHA.AddWidget(LabelCHAVAL);
IndAttributePanels[2] = PanelCHA;
//Intelligence
Panel PanelINT = new Panel((AttributePanel.Area.Width / 6) * 3, 1, AttributePanel.Area.Width / 6, AttributePanel.Area.Height - 10);
Label LabelINT = new Label(1, 35, "INT");
LabelINTVAL = new Label(1, 1, Convert.ToString(Attributes.Intelligence));
LabelINTVAL.Text = "Nixie";
PanelINT.AddWidget(LabelINT);
PanelINT.AddWidget(LabelINTVAL);
IndAttributePanels[3] = PanelINT;
//Constitution
Panel PanelCON = new Panel((AttributePanel.Area.Width / 6) * 4, 1, AttributePanel.Area.Width / 6, AttributePanel.Area.Height - 10);
Label LabelCON = new Label(1, 35, "CON");
LabelCONVAL = new Label(1, 1, Convert.ToString(Attributes.Constitution));
LabelCONVAL.Text = "Nixie";
PanelCON.AddWidget(LabelCON);
PanelCON.AddWidget(LabelCONVAL);
IndAttributePanels[4] = PanelCON;
//Age
Panel PanelAGE = new Panel(((AttributePanel.Area.Width / 6) * 5 )-5, 1, AttributePanel.Area.Width / 6, AttributePanel.Area.Height - 10);
Label LabelAGE = new Label(1, 35, "AGE");
LabelAGEVAL = new Label(1, 1, Convert.ToString(Attributes.Age));
LabelAGEVAL.Text = "Nixie";
PanelAGE.AddWidget(LabelAGE);
PanelAGE.AddWidget(LabelAGEVAL);
IndAttributePanels[5] = PanelAGE;
AttributePanel.AddWidgets(IndAttributePanels);
CharCreatePanel.AddWidget(AttributePanel);
//
Panel[] CharModArray = new Panel[3];
Panel SpeciesSelect = new Panel(10, 125, CharCreatePanel.Area.Width - 30,325);
SpeciesSelect.AddWidget(new Label(1,100,"Select:"));
Panel ClassSelect = new Panel(10, 125, CharCreatePanel.Area.Width - 30, 325);
ClassSelect.AddWidget(new Button(-5, SpeciesSelect.Area.Height / 2, 10, "<", delegate { SpeciesSelect.Visible = true; ClassSelect.Visible = false; }));
ClassSelect.Visible = false;
Panel PerkSelect = new Panel(10, 125, CharCreatePanel.Area.Width - 30, 325);
PerkSelect.AddWidget(new Button(-10, (SpeciesSelect.Area.Height / 2)-10, 10, "<", delegate { ClassSelect.Visible = true; PerkSelect.Visible = false; }));
PerkSelect.Visible = false;
CharModArray[0] = SpeciesSelect;
CharModArray[1] = ClassSelect;
CharModArray[2] = PerkSelect;
CharCreatePanel.AddWidgets(CharModArray);
SpeciesSelect.AddWidget(new Button(-5, SpeciesSelect.Area.Height / 2, 10, "<", delegate { }));
gui.AddWidget(CharCreatePanel);
Console.WriteLine("Character Creation screen initialised");
}
public override void OnResize()
{
gui.Resize();
}
private void SwitchMenus(Panel SwitchFrom, Panel SwitchTo) // as yet nonfunctional
{
CharCreatePanel.RemoveWidget(SwitchFrom);
CharCreatePanel.AddWidget(SwitchTo);
}
public override void Update(GameTime time)
{
gui.Update(time);
//Attribute label update
Attributes = GameManager.NewPlayer;
//OnResize();
}
private void CharacterPressed(object sender, CharacterEventArgs args)
{
Console.WriteLine("Character Pressed");
}
}
class BlankScreen : Screen
{
public override void Draw()
{
}
public override void Init(Game1 game)
{
}
public override void OnResize()
{
}
public override void Update(GameTime time)
{
}
}
class MainMenuScreen : Screen
{
Gui gui;
public override void OnResize()
{
gui.Resize();
}
public override void Update(GameTime time)
{
gui.Update(time);
}
public override void Draw()
{
gui.Draw();
}
public override void Init(Game1 game)
{
Color = Color.White;
var skin = new Skin(game.GreyImageMap, game.GreyMap);
var text = new Text(game.GreySpriteFont, Color.Chartreuse);
gui = new Gui(game, skin, text);
Panel mainmenupanel = new Panel(game.GraphicsDevice.Viewport.Bounds.Center.X-((game.GraphicsDevice.Viewport.Width / 3)/2),game.GraphicsDevice.Viewport.Bounds.Bottom-175,game.GraphicsDevice.Viewport.Width / 3,game.GraphicsDevice.Viewport.Height / 3);
mainmenupanel.AddWidget(new Button(1, 1,mainmenupanel.Area.Width-10,"New Game", delegate
{
if (GameManager.gameState != GameState.CharacterCreate)
{
GameManager.gameState = GameState.CharacterCreate;
game.currentScreen = new CharCreateScreen();
game.currentScreen.Init(game);
}
}
));
mainmenupanel.AddWidget(new Button(1, mainmenupanel.Area.Height / 4, mainmenupanel.Area.Width - 10, "Load Game"));
mainmenupanel.AddWidget(new Button(1, (mainmenupanel.Area.Height / 4) * 2, mainmenupanel.Area.Width - 10, "Settings"));
mainmenupanel.AddWidget(new Button(1, (mainmenupanel.Area.Height / 4) * 3, mainmenupanel.Area.Width - 10, "Quit"));
gui.AddWidget(new Button(1,1,10,"Debug", delegate
{
if (GameManager.gameState != GameState.GameplayLoop)
{
GameManager.gameState = GameState.GameplayLoop;
game.currentScreen = new BlankScreen();
}
}
));
gui.AddWidget(mainmenupanel);
}
}
}
<file_sep>/RPG V0.3/Cursor.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using System;
using MonoGame.Extended;
using MonoGame.Extended.Content;
using MonoGame.Extended.Graphics;
using MonoGame.Extended.Tiled;
using MonoGame.Extended.Tiled.Graphics;
namespace RPG_V0._3
{
public abstract class Entity
{
public abstract void Initialize(ContentManager content, Vector2 position);
public abstract void Update(GameTime gameTime);
public abstract void Draw(SpriteBatch spriteBatch);
private Vector2 position;
private string name;
private Texture2D Sprite;
private Rectangle Spritebox;
private Rectangle BoundingBox;
private bool Collision;
public Vector2 Position
{
get { return position; }
set { position = value; }
}
public bool IsCollidable
{
get { return Collision; }
set { Collision = value; }
}
public Rectangle spriteBox
{
get { return Spritebox; }
set { Spritebox = value; }
}
public Rectangle boundingBox
{
get { return BoundingBox; }
set { BoundingBox = value; }
}
public Texture2D sprite
{
get { return Sprite; }
set { Sprite = value; }
}
public string Name
{
get { return name; }
set { name = value; }
}
}
class Cursor : Entity
{
public Cursor(ContentManager content)
{
Initialize(content, new Vector2(0, 0));
}
public override void Draw(SpriteBatch spriteBatch)
{
spriteBox = new Rectangle((int)(Camera.camera.ScreenToWorld(new Vector2(Mouse.GetState().X, Mouse.GetState().Y))).X - 8, (int)(Camera.camera.ScreenToWorld(new Vector2(Mouse.GetState().X, Mouse.GetState().Y))).Y - 16, 64, 64);
boundingBox = new Rectangle((int)(Camera.camera.ScreenToWorld(new Vector2(Mouse.GetState().X, Mouse.GetState().Y))).X - 8, (int)(Camera.camera.ScreenToWorld(new Vector2(Mouse.GetState().X, Mouse.GetState().Y))).Y - 16, 16, 16);
spriteBatch.Begin(transformMatrix: Camera.camera.GetViewMatrix(), samplerState: SamplerState.PointClamp);
spriteBatch.Draw(sprite, spriteBox, Color.White);
spriteBatch.End();
}
public override void Initialize(ContentManager content, Vector2 position)
{
sprite = content.Load<Texture2D>(@"Cursors\cursor");
IsCollidable = false;
Name = "Cursor";
}
public override void Update(GameTime gameTime)
{
/*
if (Mouse.GetState().LeftButton == ButtonState.Pressed)
{
bool found = false;
foreach (var player in PlayerManager.GetRawPlayerParty)
{
if (boundingBox.Intersects(player.boundingBox))
{
//select player
if (player.IsSelected)
{
player.IsSelected = false;
}
else
{
player.IsSelected = true;
}
found = true;
}
if (found)
{
break;
}
}
if (!found)
{
PlayerManager.selectedVector = new Vector2(boundingBox.Location.X, boundingBox.Location.Y);
Console.WriteLine("selected vector");
found = false;
}
}
*/
//Console.WriteLine(Camera.camera.ScreenToWorld(Mouse.GetState().Position.X, Mouse.GetState().Position.Y).X / 2 + "," + Camera.camera.ScreenToWorld(Mouse.GetState().Position.X, Mouse.GetState().Position.Y).Y);
}
public Vector2 Tile(Vector2 point)
{
Vector2 tempPt = new Vector2(0, 0);
tempPt.X = point.X - point.Y;
tempPt.Y = (point.X + point.Y) / 2;
return (tempPt);
}
}
}
| 2d02f52c7c0a7e3f491f3d8b49ef12b4c1f9fbec | [
"C#"
] | 7 | C# | Iwan204/RPG | 89102d4466cea43717a893dc2418319d3975b31b | 04d1a007f8e11e4591a8e6fde7d1708aa0ea7d00 |
refs/heads/master | <repo_name>pkdevboxy/eve-java<file_sep>/transports/eve_transport_http/src/main/java/com/almende/util/ApacheHttpClient.java
/*
* Copyright: <NAME>. (2014), Rotterdam, The Netherlands
* License: The Apache Software License, Version 2.0
*/
package com.almende.util;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.config.SocketConfig;
import org.apache.http.conn.HttpClientConnectionManager;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.SSLContextBuilder;
import org.apache.http.conn.ssl.TrustSelfSignedStrategy;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
/**
* The Class ApacheHttpClient.
*/
public final class ApacheHttpClient {
private static final Logger LOG = Logger.getLogger(ApacheHttpClient.class
.getCanonicalName());
private static HttpClient httpClient = null;
static {
new ApacheHttpClient();
}
/**
* Instantiates a new apache http client.
*/
private ApacheHttpClient() {
final HttpClientBuilder builder = HttpClientBuilder.create();
// Allow self-signed SSL certificates:
try {
final SSLContextBuilder sslbuilder = new SSLContextBuilder();
sslbuilder.loadTrustMaterial(null, new TrustSelfSignedStrategy());
final SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(
sslbuilder.build(),
SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
builder.setSSLSocketFactory(sslsf);
} catch (final Exception e) {
LOG.log(Level.WARNING, "Couldn't init SSL strategy", e);
}
// Work with PoolingClientConnectionManager
final HttpClientConnectionManager connection = new PoolingHttpClientConnectionManager();
builder.setConnectionManager(connection);
// Provide eviction thread to clear out stale threads.
new Thread(new Runnable() {
@Override
public void run() {
try {
while (true) {
synchronized (this) {
wait(5000);
connection.closeExpiredConnections();
connection.closeIdleConnections(30,
TimeUnit.SECONDS);
}
}
} catch (final InterruptedException ex) {}
}
}).start();
builder.setDefaultCookieStore(new BasicCookieStore());
final RequestConfig globalConfig = RequestConfig.custom()
.setCookieSpec(CookieSpecs.BROWSER_COMPATIBILITY)
.setConnectTimeout(20000).setStaleConnectionCheckEnabled(false)
.build();
builder.setDefaultRequestConfig(globalConfig);
final SocketConfig socketConfig = SocketConfig.custom()
.setSoTimeout(60000).setTcpNoDelay(true).build();
builder.setDefaultSocketConfig(socketConfig);
// generate httpclient
httpClient = builder.build();
}
/**
* Gets the.
*
* @return the default http client
*/
public static HttpClient get() {
return httpClient;
}
}
| 5d55a2724fedc2cc04e3bcfbb36c4e3b55501de7 | [
"Java"
] | 1 | Java | pkdevboxy/eve-java | 04f12c753566fe0803174a719240a5d7c51bc4ea | e7176928c4496578ef1f534f12dee00c1e837729 |
refs/heads/master | <file_sep>#ifndef CONTAR_CARACTERES_H
#define CONTAR_CARACTERES_H
#include "queue.h"
typedef struct characterASCII TCharASCII;
struct characterASCII
{
int idTipo; /* Se idTipo = 0, está sendo representado um nó de árvore (soma de frequências), já com idTipo = 1, um nó de fila. */
char charASCII; /* Caractere representado pela estrutura. */
int frequencia; /* Frequência do caractere em um arquivo. */
int *codigo_prefixo; /* Vetor do código de prefixo gerado na Árvore de Huffman. */
int size_codigo; /* Tamanho do vetor do código de prefixo. */
};
void atribuirZeros(int *vetorASCII);
TQueue* criarFilaASCII(char *nomeArquivo);
int compararFrequencia(TCharASCII *elem1, TCharASCII *elem2);
void printElementoASCII(TCharASCII *elem);
void freeElementoASCII(TCharASCII *elem);
#endif
<file_sep>#ifndef QUEUE_H
#define QUEUE_H
typedef struct node TNode;
struct node
{
void *elem;
TNode *next;
TNode *parent;
TNode *left;
TNode *right;
};
typedef struct queue TQueue;
struct queue
{
int size;
TNode *head;
TNode *tail;
};
TQueue* build_queue();
int queue_empty(TQueue *q);
void enqueue(TQueue *q, void *elem, int (*cmp)());
void enqueue_huffman(TQueue *q, TNode *newNode, int (*cmp)());
void* dequeue(TQueue *q);
TNode* dequeue_huffman(TQueue *q);
void print_queue(TQueue *q, void (*print_elem)());
void free_queue(TQueue *q, void (*free_elem)());
#endif
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "compactacao.h"
#include "queue.h"
#include "contar_caracteres_ASCII.h"
#include "manipulacao_bytes.h"
#include "funcoes_huffman.h"
#define BYTE 8
#define SIZE_ASCII 127
/* A funcao recebe um char e retorna o seu elemento TCharASCII presente na tabela (fila) de prefixos. */
TCharASCII *procurar_char_na_tabela(char char_procurado, TQueue* tabela_prefixos)
{
TNode* node_atual = tabela_prefixos->head;
TCharASCII *elemento_atual = node_atual->elem;
char char_atual = elemento_atual->charASCII;
while (char_atual != char_procurado)
{
node_atual = node_atual->next;
elemento_atual = node_atual->elem;
char_atual = elemento_atual->charASCII;
}
return elemento_atual;
}
void inserir_bits(TByteMap *map, int *bits, int quantidade_bits)
{
int i, byte_atual, bit_atual;
if(map->length < map->max_size)
{
for(i = 0; i < quantidade_bits && map->length < map->max_size; i++)
{
byte_atual = map->length/BYTE;
bit_atual = map->length - byte_atual*BYTE;
switch(bit_atual)
{
case 0:
map->contents[byte_atual].b0 = bits[i];
break;
case 1:
map->contents[byte_atual].b1 = bits[i];
break;
case 2:
map->contents[byte_atual].b2 = bits[i];
break;
case 3:
map->contents[byte_atual].b3 = bits[i];
break;
case 4:
map->contents[byte_atual].b4 = bits[i];
break;
case 5:
map->contents[byte_atual].b5 = bits[i];
break;
case 6:
map->contents[byte_atual].b6 = bits[i];
break;
case 7:
map->contents[byte_atual].b7 = bits[i];
break;
default:
printf("Erro no calculo do bit atual.\n(bit_atual = %i)\n",bit_atual);
break;
}
map->length++;
}
}
}
void deslocar_bits_para_esquerda(TByteMap *map, int num_bytes)
{
int i = 0;
for(i = 0; i < num_bytes; i++)
{
map->contents[i].b0 = map->contents[i+1].b0;
map->contents[i].b1 = map->contents[i+1].b1;
map->contents[i].b2 = map->contents[i+1].b2;
map->contents[i].b3 = map->contents[i+1].b3;
map->contents[i].b4 = map->contents[i+1].b4;
map->contents[i].b5 = map->contents[i+1].b5;
map->contents[i].b6 = map->contents[i+1].b6;
map->contents[i].b7 = map->contents[i+1].b7;
}
}
void gravar_tabela_arquivo(char* nome_arquivo_output, TQueue *tabela_prefixos)
{
FILE *arq_bin;
int i, counter = 0, tamanho_bytes_tabela = 0, quantidade_bytes, *vetor_tabela_aux;
char conversor;
TNode *node_atual;
TCharASCII *element_atual;
/* O vetor abaixo recebe cada caractere e sua frequencia. */
vetor_tabela_aux = (int*)malloc(sizeof(int) * (tabela_prefixos->size + 1) * 2);
node_atual = tabela_prefixos->head;
while(node_atual->next)
{
element_atual = node_atual->elem;
if(element_atual->idTipo == 1)
{
vetor_tabela_aux[counter++] = (int)element_atual->charASCII;
vetor_tabela_aux[counter++] = element_atual->frequencia;
tamanho_bytes_tabela += 5;
}
node_atual = node_atual->next;
}
arq_bin = fopen(nome_arquivo_output,"wb");
fwrite(&tamanho_bytes_tabela, sizeof(int), 1, arq_bin);
for(i = 0; i < counter; )
{
conversor = (char)vetor_tabela_aux[i];
fwrite(&conversor, sizeof(char), 1, arq_bin);
i++;
fwrite(&vetor_tabela_aux[i], sizeof(int), 1, arq_bin);
i++;
}
/* Gravando este inteiro que sera substituido posteriormente pela quantidade de bytes que foram gravados no arquivo. */
quantidade_bytes = 0;
fwrite(&quantidade_bytes, sizeof(int), 1, arq_bin);
fclose(arq_bin);
free(vetor_tabela_aux);
}
void compactacao(char* nome_arquivo_input, char* nome_arquivo_output, TQueue* tabela_prefixos)
{
FILE *arq_txt, *arq_bin;
char char_lido;
int i, quantidade_bytes_lidos, quantidade_bytes_gravados = 0, bits_sobrando = 0;
TCharASCII *elem;
TByteMap *mapa_de_bits = byteInit(256);
arq_txt = fopen(nome_arquivo_input,"r");
if(arq_txt && fscanf(arq_txt,"%c",&char_lido) > 0)
{
rewind(arq_txt);
gravar_tabela_arquivo(nome_arquivo_output, tabela_prefixos);
arq_bin = fopen(nome_arquivo_output,"ab");
/* Gravando estes inteiros que ser�o substitu�dos posteriormente pela quantidade de bytes gravados no
arquivo e pela quantidade de bits 0 sobrando no final, utilizados para preencher o �ltimo byte. */
fwrite(&quantidade_bytes_gravados, sizeof(int), 1, arq_bin);
fwrite(&bits_sobrando, sizeof(int), 1, arq_bin);
while( fscanf(arq_txt,"%c",&char_lido) > 0 )
{
elem = procurar_char_na_tabela(char_lido, tabela_prefixos);
inserir_bits(mapa_de_bits, elem->codigo_prefixo, elem->size_codigo);
quantidade_bytes_lidos = mapa_de_bits->length/BYTE;
for(i = 0; i < quantidade_bytes_lidos; i++)
{
/* Gravando com sizeof = 1, pois a necessidade é de gravar exatamente 1 byte. Caso fosse gravado com sizeof de
TByte, seriam gravados 4 bytes em vez de 1 byte, por se tratar de uma struct. */
fwrite(&mapa_de_bits->contents[0], 1, 1, arq_bin);
quantidade_bytes_gravados++;
deslocar_bits_para_esquerda(mapa_de_bits, quantidade_bytes_lidos);
mapa_de_bits->length -= BYTE;
}
}
fwrite(&mapa_de_bits->contents[0], 1, 1, arq_bin);
quantidade_bytes_gravados++;
fclose(arq_bin);
arq_bin = fopen(nome_arquivo_output,"rb+");
bits_sobrando = BYTE - mapa_de_bits->length;
fread(&i, sizeof(int), 1, arq_bin);
fseek(arq_bin, i, SEEK_CUR);
fwrite(&quantidade_bytes_gravados, sizeof(int), 1, arq_bin);
fwrite(&bits_sobrando, sizeof(int), 1, arq_bin);
fclose(arq_bin);
}
else
{
printf("Nao foi possivel realizar a compactacao. Possiveis causas de erro: \n");
printf("1. O arquivo nao existe;\n");
printf("2. O arquivo esta vazio.\n");
printf("3. O diretorio esta incorreto;\n\n");
}
free(mapa_de_bits->contents);
free(mapa_de_bits);
fclose(arq_txt);
}
void compactar_arquivo(char* nomeArquivoInput, char* nomeArquivoOutput)
{
TQueue *filaASCII, *tabela_prefixos;
TNode *tree;
printf("\nCompactacao inicializada...\n");
filaASCII = criarFilaASCII(nomeArquivoInput);
/* Cópia da fila de prioridades criada acima. Embora possua os mesmos elementos, será
mais prático usar essa durante a criação dos códigos de prefixo. */
tabela_prefixos = build_queue();
tabela_prefixos->head = filaASCII->head;
tabela_prefixos->tail = filaASCII->tail;
tabela_prefixos->size = filaASCII->size;
tree = huffman_build_tree(filaASCII);
criar_codigos_prefixo(tree);
compactacao(nomeArquivoInput, nomeArquivoOutput, tabela_prefixos);
free_queue(filaASCII, &freeElementoASCII);
free_queue(tabela_prefixos, &freeElementoASCII);
printf("\nCOMPACTACAO CONCLUIDA!\n\n");
}
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "funcoes_huffman.h"
#include "queue.h"
#include "contar_caracteres_ASCII.h"
#include "manipulacao_bytes.h"
#define BYTE 8
#define SIZE_ASCII 127
/* Função que transforma gradualmente a fila de prioridades (recebida como parâmetro) em uma Árvore de Huffman. */
TNode *huffman_build_tree(TQueue *q)
{
int counter, sizeQueue = q->size;
TNode *newNode, *menorElem, *menorElem2;
TCharASCII *somaFrequencias, *menorFrequencia, *menorFrequencia2;
for(counter = 1; counter <= sizeQueue; counter++)
{
newNode = (TNode*)malloc(sizeof(TNode)); /* Alocação do novo nó da Árvore de Huffman. */
somaFrequencias = (TCharASCII*)malloc(sizeof(TCharASCII)); /* Alocação do elemento que o novo nó receberá. */
menorElem = dequeue_huffman(q); /* Extração dos dois nós com menores elementos da fila de prioridades. */
menorElem2 = dequeue_huffman(q);
/* Nessas 2 linhas abaixo, os dois nós de fila são "transformados" em nós da árvore (note que as duas estruturas utilizam o mesmo tipo TNode de nó), já que
elas passam a apontar para um nó pai. Detalhe: o filho da esquerda e o filho da direita desses dois nós já apontam para NULL. */
menorElem->parent = newNode;
menorElem2->parent = newNode;
menorFrequencia = menorElem->elem;
menorFrequencia2 = menorElem2->elem;
somaFrequencias->frequencia = menorFrequencia->frequencia + menorFrequencia2->frequencia;
somaFrequencias->codigo_prefixo = NULL; /* Inicializa o ponteiro como nulo. */
somaFrequencias->charASCII = 0; /* Inicializa a variável com o char de controle 00 (NULL CHARACTER). */
somaFrequencias->idTipo = 0; /* Um elemento com idTipo = 0 significa que ele não possui caracter, tratando-se apenas de um elemento de nó de soma. */
newNode->left = menorElem;
newNode->right = menorElem2;
newNode->elem = somaFrequencias;
newNode->parent = NULL;
newNode->next = NULL;
enqueue_huffman(q, newNode, &compararFrequencia); /* Insere na fila o novo nó. */
}
return newNode;
}
/* Função recursiva que percorre toda a árvore e grava os códigos de prefixo nos elementos TCharASCII das folhas da árvore. */
void gerador_codigos_prefixo_huffman(TNode *tree, int *v, int ultima_posicao)
{
int i;
if(tree)
{
/* Se for folha, o código de prefixo atual é gravado. */
if (!tree->left && !tree->right)
{
TCharASCII *elem = tree->elem;
elem->size_codigo = ultima_posicao;
elem->codigo_prefixo = (int*)malloc(sizeof(int)*ultima_posicao);
for(i = 0; i < ultima_posicao; i++) /* Transferindo o código de prefixo para o elemento. */
{
elem->codigo_prefixo[i] = v[i];
}
}
/* Se for para a esquerda, a última posição do vetor recebe 0. */
if (tree->left)
{
v[ultima_posicao] = 0;
gerador_codigos_prefixo_huffman(tree->left, v, ultima_posicao + 1);
}
/* Se for para a direita, a última posição do vetor recebe 1. */
if (tree->right)
{
v[ultima_posicao] = 1;
gerador_codigos_prefixo_huffman(tree->right, v, ultima_posicao + 1);
}
}
}
/* Função cuja responsabilidade é apenas chamar a função recursiva que gera os códigos de prefixo, passando um vetor
que é onde será gravado os códigos de prefixo temporariamente, enquanto a árvore é percorrida. */
void criar_codigos_prefixo(TNode *tree)
{
int aux_prefixos[1000] = {0};
gerador_codigos_prefixo_huffman(tree, aux_prefixos, 0);
}
/* Função que imprime os códigos de prefixo a partir de uma fila que já possua a tabela de prefixos preenchida. */
void print_codigos_prefixo(TQueue *tabela_prefixos)
{
int i;
TNode *nodeActual = tabela_prefixos->head;
TCharASCII *charActual;
while(nodeActual)
{
charActual = nodeActual->elem;
if(charActual->idTipo != 0)
{
printf("\n%c = ", charActual->charASCII);
for (i = 0; i < charActual->size_codigo; i++)
{
printf("%d", charActual->codigo_prefixo[i]);
}
}
nodeActual = nodeActual->next;
}
printf("\n");
}
<file_sep>all: huffman
huffman: main.o compactacao.o descompactacao.o contar_caracteres_ASCII.o funcoes_huffman.o manipulacao_bytes.o queue.o
gcc -o huffman main.o compactacao.o descompactacao.o contar_caracteres_ASCII.o funcoes_huffman.o manipulacao_bytes.o queue.o -ansi -Wall -pedantic -g
main.o: main.c compactacao.h descompactacao.h
gcc -o main.o -c main.c -ansi -Wall -pedantic -g
compactacao.o: compactacao.c contar_caracteres_ASCII.h funcoes_huffman.h manipulacao_bytes.h queue.h
gcc -o compactacao.o -c compactacao.c -ansi -Wall -pedantic -g
descompactacao.o: descompactacao.c contar_caracteres_ASCII.h funcoes_huffman.h manipulacao_bytes.h queue.h
gcc -o descompactacao.o -c descompactacao.c -ansi -Wall -pedantic -g
contar_caracteres_ASCII.o: contar_caracteres_ASCII.c queue.h
gcc -o contar_caracteres_ASCII.o -c contar_caracteres_ASCII.c -ansi -Wall -pedantic -g
funcoes_huffman.o: funcoes_huffman.c contar_caracteres_ASCII.h manipulacao_bytes.h queue.h
gcc -o funcoes_huffman.o -c funcoes_huffman.c -ansi -Wall -pedantic -g
manipulacao_bytes.o: manipulacao_bytes.c
gcc -o manipulacao_bytes.o -c manipulacao_bytes.c -ansi -Wall -pedantic -g
queue.o: queue.c
gcc -o queue.o -c queue.c -ansi -Wall -pedantic -g
clean:
rm -rf *.o *~ huffman<file_sep><h1 align="center">
Algoritmo de Compactação e Descompactação de Arquivos Texto por Árvores de Huffman
</h1>
<p align="center">
<img alt="GitHub language count" src="https://img.shields.io/github/languages/count/JV-Amorim/Compactacao_Descompactacao_Huffman_C">
<img alt="Repository size" src="https://img.shields.io/github/repo-size/JV-Amorim/Compactacao_Descompactacao_Huffman_C">
<a href="https://github.com/JV-Amorim/DevRadar_OmniStack/commits/master">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/JV-Amorim/Compactacao_Descompactacao_Huffman_C">
</a>
<img alt="License" src="https://img.shields.io/badge/license-MIT-brightgreen">
</p>
<p align="center">
<a href="#descrição">Descrição</a> |
<a href="#instruções">Instruções</a> |
<a href="#observações">Observações</a> |
<a href="#licença">Licença</a>
</p>
<br>
<p align="center">
<img alt="Compactação realizada" src="img/compactacao.png" width="45%">
<img alt="Descompactação realizada" src="img/descompactacao.png" width="45%">
<img alt="Texto antes e depois" src="img/texto.png" width="90%">
</p>
## Descrição
O algoritmo realiza a compactação e descompactação de arquivos texto através da técnica de Árvores de Huffman.
## Instruções
### Configuração
Antes de realizar a compilação do algoritmo, configure as seguintes variáveis no arquivo main.c:
- `arquivo_input_compactar`: endereço e nome do arquivo texto que deseja compactar.
- `arquivo_output_compactar`: endereço e nome do arquivo binário de saída. Trata-se do texto compactado.
- `arquivo_input_descompactar`: endereço e nome do arquivo binário que deseja descompactar.
- `arquivo_output_descompactar`: endereço e nome do arquivo texto de saída. Trata-se do texto descompactado.
(Caso os arquivos estejam na mesma pasta do código fonte, basta digitar os nomes dos arquivos (com a extensão .txt).)
Após realizar a configuração das variáveis acima, basta compilar (instruções abaixo) e depois iniciar o executável gerado.
Há dois arquivos incluídos no projetos que podem ser utilizados como testes: `texto_original_1.txt` e `texto_original_2.txt`.
### Compilação
Após ter configurado as variáveis acima, assegure-se de ter no seu computador os seguintes items instalados, para possibilitar a compilação:
- [GCC (compilador);](https://gcc.gnu.org/install/download.html)
- [Make.](https://www.gnu.org/software/make/)
Com esses dois items instalados, basta rodar a linha de comando `make all` no seu shell de preferência, após navegar até a pasta contendo os arquivos de código-fonte.
### Execução
Com a compilação realizada, abra o executável digitando na linha de comando `./huffman`, caso esteja em uma distro Linux, ou simplesmente dando um duplo-clique no executável, caso esteja no Windows. Com o executável aberto, digite C caso o desejado seja realizar uma compactação ou D, caso o desejado seja realizar uma descompactação. O último passo é só aguardar o algoritmo rodar e realizar o processo de compactação ou descompactação.
## Observações
- O algoritmo compacta e descompacta qualquer arquivo texto que possua caracteres entre 0 e 127 na tabela ASCII, sendo facilmente modificável para incluir os caracteres extendidos (127 a 256 na tabela ASCII).
- A compactação é realizada rapidamente mesmo para arquivos com tamanho acima de 1MB de arquivo. Lembre-se que um char ocupa 1 byte.
- A descompactação infelizmente demora muito tempo para ser concluída em arquivos muito grandes (acima de 40 kB já demora alguns minutos). Isso acontece devido ao método utilizado para identificar qual caractere está sendo lido no arquivo binário, onde é chamada uma função recursiva que lê bit por bit do arquivo para percorrer a Árvore de Huffman, parando ao encontrar o nó folha que contém o caractere correto a ser gravado.
Há otimizações que podem ser feitas, tornando possível um descompactação muito mais rápida, que não foram implementadas neste projeto, já que se trata apenas de um projeto de estudo.
Caso deseje implementar essas otimizações, basta seguir a mesma ideia que alguns usuários do Stack Overflow implementaram:
[How to decode huffman code quickly?](https://stackoverflow.com/questions/2235208/how-to-decode-huffman-code-quickly)
[Huffman code with lookup table](https://stackoverflow.com/questions/29890348/how-to-efficiently-decompress-huffman-coded-file)
[How to efficiently decompress huffman coded file](https://stackoverflow.com/questions/13804629/huffman-code-with-lookup-table)
## Licença
Esse projeto é licenciado pela MIT License. Veja a página da [licença](https://opensource.org/licenses/MIT) para detalhes.
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "queue.h"
TQueue* build_queue()
{
TQueue *aux = (TQueue*)malloc(sizeof(TQueue));
aux->size = 0;
aux->head = NULL;
aux->tail = NULL;
return aux;
}
int queue_empty(TQueue *q)
{
if(!q->head)
return 1;
return 0;
}
void enqueue(TQueue *q, void *elem, int (*cmp)())
{
TNode *newNode, *nodeActual = q->head, *nodePrev = NULL;
newNode = (TNode*)malloc(sizeof(TNode));
newNode->elem = elem;
newNode->left = NULL;
newNode->right = NULL;
newNode->parent = NULL;
if(queue_empty(q))
{
newNode->next = NULL;
q->head = newNode;
q->tail = newNode;
}
else
{
while(nodeActual)
{
if(cmp(elem, nodeActual->elem))
{
if(!nodePrev) /* Caso o elemento tenha de ser inserido na primeira posição. */
{
newNode->next = nodeActual;
q->head = newNode;
q->size++;
return;
}
else /* Inserção entre os nós. */
{
nodePrev->next = newNode;
newNode->next = nodeActual;
q->size++;
return;
}
}
nodePrev = nodeActual;
nodeActual = nodeActual->next;
}
/* Inserção após o último nó. Só acontece se nenhuma inserção for feita entre os outros nós. */
nodePrev->next = newNode;
newNode->next = NULL;
q->size++;
}
}
/* O enqueue utilizado na construção da Árvore de Huffman é um pouco diferente do enqueue normal. */
void enqueue_huffman(TQueue *q, TNode *newNode, int (*cmp)())
{
TNode *nodeActual = q->head;
TNode *nodePrev = NULL;
if(queue_empty(q))
{
newNode->next = NULL;
q->head = newNode;
q->tail = newNode;
}
else
{
while(nodeActual)
{
if(cmp(newNode->elem, nodeActual->elem))
{
if(!nodePrev) /* Caso o elemento tenha de ser inserido na primeira posição. */
{
newNode->next = nodeActual;
q->head = newNode;
q->size++;
return;
}
else /* Inserção entre os nós. */
{
nodePrev->next = newNode;
newNode->next = nodeActual;
q->size++;
return;
}
}
nodePrev = nodeActual;
nodeActual = nodeActual->next;
}
/* Inserção após o último nó. Só acontece se nenhuma inserção for feita entre os outros nós. */
nodePrev->next = newNode;
newNode->next = NULL;
q->size++;
}
}
void* dequeue(TQueue *q)
{
if(!queue_empty(q))
{
void *aux = q->head->elem;
TNode *nodeAux = q->head->next;
free(q->head);
q->head = nodeAux;
q->size--;
return aux;
}
printf("The queue is empty.\n");
return NULL;
}
/* O dequeue utilizado na construção da Árvore de Huffman é um pouco diferente do dequeue normal. */
TNode* dequeue_huffman(TQueue *q)
{
if(!queue_empty(q))
{
TNode *nodeReturn = q->head;
TNode *nodeAux = q->head->next;
q->head = nodeAux;
q->size--;
return nodeReturn;
}
printf("The queue is empty.\n");
return NULL;
}
void print_queue(TQueue *q, void (*print_elem)())
{
TNode *nodeActual = q->head;
while(nodeActual)
{
print_elem(nodeActual->elem);
nodeActual = nodeActual->next;
}
}
void free_queue(TQueue *q, void (*free_elem)())
{
TNode *aux;
while(q->head)
{
aux = q->head->next;
free_elem(q->head->elem);
free(q->head);
q->head = aux;
}
free(q);
}
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "compactacao.h"
#include "descompactacao.h"
int main()
{
char arquivo_input_compactar[] = "texto_original_1.txt";
char arquivo_output_compactar[] = "texto_compactado.jva";
char arquivo_input_descompactar[] = "texto_compactado.jva";
char arquivo_output_descompactar[] = "texto_descompactado.txt";
char resposta;
printf("ALGORITMO DE COMPACTACAO E DESCOMPACTACAO\n\n");
printf("Deseja compactar ou descompactar? Digite C para compactar e D para descompactar: \n");
printf("Sua escolha: ");
scanf("%c", &resposta);
fflush(stdin);
if(resposta == 'C' || resposta == 'c')
{
compactar_arquivo(arquivo_input_compactar, arquivo_output_compactar);
}
else if(resposta == 'D' || resposta == 'd')
{
descompactar_arquivo(arquivo_input_descompactar, arquivo_output_descompactar);
}
return 0;
}
<file_sep>#ifndef DESCOMPACTACAO_H
#define DESCOMPACTACAO_H
typedef struct conteudo_binario TConteudoBinario;
struct conteudo_binario
{
int *vetor_conteudo;
int tamanho_vetor;
};
void descompactar_arquivo(char* nome_arquivo_input, char* nome_arquivo_output);
#endif
<file_sep>#ifndef FUNCOES_HUFFMAN_H
#define FUNCOES_HUFFMAN_H
#include "queue.h"
TNode *huffman_build_tree(TQueue *q);
void criar_codigos_prefixo(TNode *t);
void print_codigos_prefixo(TQueue *tabela_prefixos);
void comprimir_arquivo(char* nome_arquivo_txt, TQueue* tabela_prefixos);
void descomprimir_arquivo(char* nome_arquivo_bin);
#endif
<file_sep>#ifndef COMPACTACAO_H
#define COMPACTACAO_H
#include "queue.h"
void compactar_arquivo(char* nomeArquivoInput, char* nomeArquivoOutput);
#endif
<file_sep>#ifndef MANIPULACAO_BYTES_H
#define MANIPULACAO_BYTES_H
typedef struct byte TByte;
struct byte
{
unsigned b0:1;
unsigned b1:1;
unsigned b2:1;
unsigned b3:1;
unsigned b4:1;
unsigned b5:1;
unsigned b6:1;
unsigned b7:1;
};
typedef struct byteMap TByteMap;
struct byteMap
{
unsigned int max_size;
unsigned int length;
TByte *contents;
};
TByteMap *byteInit (unsigned int max_size);
void printByte( TByte b);
void printByteMap( TByteMap *b);
#endif
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "contar_caracteres_ASCII.h"
#include "queue.h"
#define SIZE_ASCII 127
/* Função que recebe um vetor ASCII (vetor de inteiros com tamanho 127) e atribui 0 a todas as suas posições. */
void atribuirZeros(int *vetorASCII)
{
int i;
for(i = 0; i <= SIZE_ASCII; i++)
{
vetorASCII[i] = 0;
}
}
/* Função que lê um arquivo texto e conta a frequência de cada char da tabela ASCII nele, gravando em um vetor ASCII. */
void lerArquivo(int *vetorASCII, char* nomeArquivo)
{
char c;
FILE *arq = fopen(nomeArquivo,"r");
if(arq)
{
while( fscanf(arq,"%c",&c) > 0 )
{
vetorASCII[(int)c]++;
}
fclose(arq);
}
}
/* Função responsável por criar um vetor ASCII (vetor de int com tamanho 127), chamar a função atribuirZeros e lerArquivo. */
int* criarVetorASCII(char *nomeArquivo)
{
int *vetorASCII;
vetorASCII = (int*)malloc(sizeof(int)*(SIZE_ASCII+1));
atribuirZeros(vetorASCII);
lerArquivo(vetorASCII,nomeArquivo);
return vetorASCII;
}
/* Exibe completamente o vetor ASCII passado como parâmetro. */
void printVetorASCII(int *vetorASCII)
{
int i;
for(i = 0; i<=SIZE_ASCII; i++)
{
printf("%i = %i\n",i,vetorASCII[i]);
}
}
/* Exibe um elemento TCharASCII (struct com um caractere e sua frequência em um arquivo texto). */
void printElementoASCII(TCharASCII *elem)
{
if(elem->idTipo == 1)
{
printf("%c = %i\n", elem->charASCII, elem->frequencia);
}
else
{
printf("NodeSoma = %i\n", elem->frequencia);
}
}
/* Desaloca um elemento TCharASCII. */
void freeElementoASCII(TCharASCII *elem)
{
free(elem->codigo_prefixo);
free(elem);
}
/* Compara a frequência entre dois elementos TCharASCII. */
int compararFrequencia(TCharASCII *elem1, TCharASCII *elem2)
{
if(elem1->frequencia < elem2->frequencia)
return 1;
return 0;
}
/* Cria uma fila de prioridades de elementos TCharASCII a partir do arquivo cujo nome é passado como parâmetro. */
TQueue* criarFilaASCII(char *nomeArquivo)
{
TQueue *newQueue;
TCharASCII *elementoASCII;
int *vetorASCII;
int contador;
newQueue = build_queue();
vetorASCII = criarVetorASCII(nomeArquivo);
for(contador = 0; contador <= SIZE_ASCII; contador++)
{
if(vetorASCII[contador] != 0)
{
elementoASCII = (TCharASCII*)malloc(sizeof(TCharASCII));
elementoASCII->idTipo = 1;
elementoASCII->charASCII = (char)contador;
elementoASCII->frequencia = vetorASCII[contador];
enqueue(newQueue,elementoASCII,&compararFrequencia);
}
}
free(vetorASCII);
return newQueue;
}
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "manipulacao_bytes.h"
#define BYTE 8
TByteMap *byteInit (unsigned int max_size)
{
unsigned int size;
TByteMap * map = (TByteMap*)malloc(sizeof(TByteMap));
if( max_size % BYTE != 0) /* Se não for múltiplo de 8, será alocado um byte a mais. */
{
size = (max_size / BYTE) + 1;
}
else
{
size = (max_size / BYTE);
}
map->length = 0;
map->max_size = size * BYTE;
map->contents = (TByte*)malloc(sizeof(TByte)*size);
while( size > 0)
{
map->contents[size - 1].b0 = (unsigned)0;
map->contents[size - 1].b1 = (unsigned)0;
map->contents[size - 1].b2 = (unsigned)0;
map->contents[size - 1].b3 = (unsigned)0;
map->contents[size - 1].b4 = (unsigned)0;
map->contents[size - 1].b5 = (unsigned)0;
map->contents[size - 1].b6 = (unsigned)0;
map->contents[size - 1].b7 = (unsigned)0;
size = size - 1;
}
return map;
}
void printByte( TByte b)
{
printf("%i", b.b0);
printf("%i", b.b1);
printf("%i", b.b2);
printf("%i", b.b3);
printf("%i", b.b4);
printf("%i", b.b5);
printf("%i", b.b6);
printf("%i", b.b7);
printf("\n");
}
void printByteMap( TByteMap *b)
{
unsigned int i = 0, index = 0;
while(index < b->length)
{
if( index < b->length) { printf("%i", b->contents[ i ].b0); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b1); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b2); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b3); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b4); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b5); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b6); index++;}
if( index < b->length) { printf("%i", b->contents[ i ].b7); index++;}
i++;
}
printf("\n");
}
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include "descompactacao.h"
#include "queue.h"
#include "contar_caracteres_ASCII.h"
#include "manipulacao_bytes.h"
#include "funcoes_huffman.h"
#define BYTE 8
#define SIZE_ASCII 127
TQueue* ler_tabela_arquivo(char* nome_arquivo_bin)
{
FILE *arq_bin;
TQueue *newQueue;
TCharASCII *elementoASCII;
int *vetorASCII, quant_elem_tabela, contador = 0, elemFreq;
char elemChar;
newQueue = build_queue();
vetorASCII = (int*)malloc(sizeof(int)*(SIZE_ASCII+1));
atribuirZeros(vetorASCII);
arq_bin = fopen(nome_arquivo_bin,"rb");
fread(&quant_elem_tabela, sizeof(int), 1, arq_bin);
while(contador < quant_elem_tabela)
{
fread(&elemChar, sizeof(char), 1, arq_bin);
fread(&elemFreq, sizeof(int), 1, arq_bin);
vetorASCII[(int)elemChar] = elemFreq;
contador += 5;
}
fclose(arq_bin);
for(contador = 0; contador <= SIZE_ASCII; contador++)
{
if(vetorASCII[contador] > 0)
{
elementoASCII = (TCharASCII*)malloc(sizeof(TCharASCII));
elementoASCII->idTipo = 1;
elementoASCII->charASCII = (char)contador;
elementoASCII->frequencia = vetorASCII[contador];
enqueue(newQueue, elementoASCII, &compararFrequencia);
}
}
free(vetorASCII);
return newQueue;
}
int transferir_para_vetor_de_conteudo(int *v, int ultima_posicao, TByte byte)
{
v[ultima_posicao++] = byte.b0;
v[ultima_posicao++] = byte.b1;
v[ultima_posicao++] = byte.b2;
v[ultima_posicao++] = byte.b3;
v[ultima_posicao++] = byte.b4;
v[ultima_posicao++] = byte.b5;
v[ultima_posicao++] = byte.b6;
v[ultima_posicao++] = byte.b7;
return ultima_posicao;
}
void bits_nao_preenchidos_vetor(int *conteudo_do_arquivo, int ultima_posicao, int bits_nao_preenchidos, TByte byte)
{
switch(bits_nao_preenchidos)
{
case 0:
ultima_posicao = transferir_para_vetor_de_conteudo(conteudo_do_arquivo, ultima_posicao, byte);
break;
case 1:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
conteudo_do_arquivo[ultima_posicao++] = byte.b1;
conteudo_do_arquivo[ultima_posicao++] = byte.b2;
conteudo_do_arquivo[ultima_posicao++] = byte.b3;
conteudo_do_arquivo[ultima_posicao++] = byte.b4;
conteudo_do_arquivo[ultima_posicao++] = byte.b5;
conteudo_do_arquivo[ultima_posicao++] = byte.b6;
break;
case 2:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
conteudo_do_arquivo[ultima_posicao++] = byte.b1;
conteudo_do_arquivo[ultima_posicao++] = byte.b2;
conteudo_do_arquivo[ultima_posicao++] = byte.b3;
conteudo_do_arquivo[ultima_posicao++] = byte.b4;
conteudo_do_arquivo[ultima_posicao++] = byte.b5;
break;
case 3:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
conteudo_do_arquivo[ultima_posicao++] = byte.b1;
conteudo_do_arquivo[ultima_posicao++] = byte.b2;
conteudo_do_arquivo[ultima_posicao++] = byte.b3;
conteudo_do_arquivo[ultima_posicao++] = byte.b4;
break;
case 4:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
conteudo_do_arquivo[ultima_posicao++] = byte.b1;
conteudo_do_arquivo[ultima_posicao++] = byte.b2;
conteudo_do_arquivo[ultima_posicao++] = byte.b3;
break;
case 5:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
conteudo_do_arquivo[ultima_posicao++] = byte.b1;
conteudo_do_arquivo[ultima_posicao++] = byte.b2;
break;
case 6:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
conteudo_do_arquivo[ultima_posicao++] = byte.b1;
break;
case 7:
conteudo_do_arquivo[ultima_posicao++] = byte.b0;
break;
}
}
/* Função que lê completamente o arquivo binário compactado, transfere para um vetor de inteiros e retorna o tamanho deste vetor. */
TConteudoBinario* ler_caracteres_arquivo(char* nome_arquivo_input)
{
FILE *arq_bin = fopen(nome_arquivo_input,"rb");
TByteMap *leitor;
TConteudoBinario *conteudo_do_arquivo = (TConteudoBinario*)malloc(sizeof(TConteudoBinario));
int size_tabela_int, quant_bytes, bits_nao_preenchidos, i, ultima_posicao = 0, size_vetor, *vetor_conteudo;
/* Lendo o primeiro char do arquivo, que representa a quantidade de bytes que a tabela de frequência está ocupando no file. */
fread(&size_tabela_int, sizeof(int), 1, arq_bin);
/* Movendo o cursor para depois da tabela. */
fseek(arq_bin, size_tabela_int, SEEK_CUR);
/* Lendo a quantidade de bytes que está gravada no arquivo e quantos bits do último byte não estão preenchidos. */
fread(&quant_bytes, sizeof(int), 1, arq_bin);
fread(&bits_nao_preenchidos, sizeof(int), 1, arq_bin);
/* Pulando um byte de marcação que há antes do conteúdo do texto propriamente dito. */
fseek(arq_bin, sizeof(int), SEEK_CUR);
size_vetor = quant_bytes*8 - bits_nao_preenchidos;
vetor_conteudo = (int*)malloc(sizeof(int)*size_vetor);
leitor = byteInit(8);
for(i = 0; i < quant_bytes - 1; i++)
{
fread(&leitor->contents[0], 1, 1, arq_bin);
leitor->length = 8;
ultima_posicao = transferir_para_vetor_de_conteudo(vetor_conteudo, ultima_posicao, leitor->contents[0]);
}
fread(&leitor->contents[0], 1, 1, arq_bin);
leitor->length = 8;
bits_nao_preenchidos_vetor(vetor_conteudo, ultima_posicao, bits_nao_preenchidos, leitor->contents[0]);
conteudo_do_arquivo->vetor_conteudo = vetor_conteudo;
conteudo_do_arquivo->tamanho_vetor = size_vetor;
fclose(arq_bin);
free(leitor->contents);
free(leitor);
return conteudo_do_arquivo;
}
int encontrar_caracteres_huffman(TNode *raiz, TNode *vertice_atual, int *conteudo_do_arquivo, int posicao_atual_vetor, char *nome_arquivo_output)
{
FILE *arq_txt;
TCharASCII *elemento;
if(!vertice_atual->left && !vertice_atual->right)
{
elemento = vertice_atual->elem;
arq_txt = fopen(nome_arquivo_output, "a");
fprintf(arq_txt, "%c", elemento->charASCII);
fclose(arq_txt);
}
else if(conteudo_do_arquivo[posicao_atual_vetor] == 0)
{
posicao_atual_vetor = encontrar_caracteres_huffman(raiz, vertice_atual->left, conteudo_do_arquivo, posicao_atual_vetor + 1, nome_arquivo_output);
}
else if(conteudo_do_arquivo[posicao_atual_vetor] == 1)
{
posicao_atual_vetor = encontrar_caracteres_huffman(raiz, vertice_atual->right, conteudo_do_arquivo, posicao_atual_vetor + 1, nome_arquivo_output);
}
return posicao_atual_vetor;
}
void descompactar_arquivo(char* nome_arquivo_input, char* nome_arquivo_output)
{
FILE *arq_bin, *arq_txt;
TQueue *filaASCII, *tabela_prefixos;
TNode *tree;
TConteudoBinario *conteudo_do_arquivo;
int posicao_atual_vetor = 0;
arq_bin = fopen(nome_arquivo_input,"rb");
if(arq_bin)
{
fclose(arq_bin);
printf("\nDescompactacao inicializada...\n");
filaASCII = ler_tabela_arquivo(nome_arquivo_input);
tabela_prefixos = build_queue();
tabela_prefixos->head = filaASCII->head;
tabela_prefixos->tail = filaASCII->tail;
tabela_prefixos->size = filaASCII->size;
tree = huffman_build_tree(filaASCII);
criar_codigos_prefixo(tree);
conteudo_do_arquivo = ler_caracteres_arquivo(nome_arquivo_input);
arq_txt = fopen(nome_arquivo_output,"w");
fclose(arq_txt);
while(posicao_atual_vetor < conteudo_do_arquivo->tamanho_vetor)
{
posicao_atual_vetor = encontrar_caracteres_huffman(tree, tree, conteudo_do_arquivo->vetor_conteudo, posicao_atual_vetor, nome_arquivo_output);
}
printf("\nDESCOMPACTACAO CONCLUIDA!\n\n");
free(conteudo_do_arquivo->vetor_conteudo);
free(conteudo_do_arquivo);
free_queue(filaASCII, &freeElementoASCII);
free_queue(tabela_prefixos, &freeElementoASCII);
}
else
{
printf("O arquivo nao existe ou esta no diretorio incorreto.\n");
}
}
| 41f312488ec76b4938bee4e08e4902abec0c1925 | [
"Markdown",
"C",
"Makefile"
] | 15 | C | jv-amorim/Huffman_Compactador_Descompactador | 9487257c6312430d8053ac142185d35cd67adeeb | 28af517e510b22761d066b2021800845965e7203 |
refs/heads/master | <repo_name>makartsevaelena/btrxdump<file_sep>/src/main/java/com/slonigiraf/btrxdump/downloader/CallsDownloader.java
package com.slonigiraf.btrxdump.downloader;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class CallsDownloader {
static Properties properties;
static String htmlDirectory;
public static void main(String[] args) throws FileNotFoundException {
System.setOut(new PrintStream(new FileOutputStream("log_file.txt")));
System.setErr(new PrintStream(new FileOutputStream("err_file.txt")));
long browsersCount = 10;
properties = getProperties();
System.setProperty("webdriver.chrome.driver",
"/Users/adr/programming/selenium/chromedriver");
cleanTargetDirectory();
htmlDirectory = createDirectories();
int lastCallPageIndex = Integer.parseInt(properties.getProperty("lastCallPageIndex"));
ExecutorService executor = Executors.newCachedThreadPool();
long pagesPerBrowserCount = lastCallPageIndex / browsersCount;
for (int pageIndex = 1; pageIndex <= lastCallPageIndex; pageIndex += pagesPerBrowserCount) {
long lastCurrentIndex = pageIndex + pagesPerBrowserCount - 1;
if (lastCurrentIndex > lastCallPageIndex) {
lastCurrentIndex = lastCallPageIndex;
}
OneStreamCallsDownloader oneStreamDownloader = new OneStreamCallsDownloader(properties, pageIndex, lastCurrentIndex);
executor.execute(oneStreamDownloader);
}
}
static Properties getProperties() {
Properties prop = new Properties();
InputStream input = null;
try {
input = new FileInputStream("/Users/adr/programming/nicgm_btrx.conf");
prop.load(input);
} catch (IOException ex) {
ex.printStackTrace();
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
return prop;
}
static String createDirectories() {
String folder = String.format("%s/%s", properties.getProperty("btrxData"), "html");
if (!isFolderExist(folder)) {
try {
Files.createDirectories(Paths.get(folder));
} catch (IOException e) {
e.printStackTrace();
}
}
return folder;
}
static Pattern LOG_PATTERN = Pattern.compile(".*logs/(\\d+/\\d+/\\d+)/.*");
static Pattern MP3_PATTERN = Pattern.compile(".*filename=(\\d+-\\d+-\\d+)_.*");
static Pattern[] patterns = {LOG_PATTERN, MP3_PATTERN};
static String getSubfolderForFileUrl(String fileName) {
String result = "noDate";
for (Pattern pattern : patterns) {
Matcher matcher = pattern.matcher(fileName);
while (matcher.find()) {
result = matcher.group(1);
}
}
result = result.replaceAll("/", "-");
return result;
}
static String getFolderNameForFileUrl(String url) {
String subFolder = getSubfolderForFileUrl(url);
String type = "unknown";
String fileName = getFileNameFromUrl(url);
String[] nameExtension = fileName.split("\\.");
if (nameExtension.length >= 2) {
type = nameExtension[nameExtension.length - 1];
}
String result = String.format("%s/%s/%s", properties.getProperty("btrxData"), type, subFolder);
return result;
}
static boolean isFolderExist(String name) {
File directory = new File(name);
return directory.isDirectory();
}
static Pattern DEFAULT_NAME_PATTERN = Pattern.compile(".*/(.+?)$");
static Pattern MP3_NAME_PATTERN = Pattern.compile(".*filename=(.+)$");
static Pattern[] namePatterns = {DEFAULT_NAME_PATTERN, MP3_NAME_PATTERN};
static String getFileNameFromUrl(String url) {
String result = "unknown";
for (Pattern pattern : namePatterns) {
Matcher matcher = pattern.matcher(url);
while (matcher.find()) {
result = matcher.group(1);
}
}
if(result.equals("unknown")){
System.err.println("PROBLEM PARSING URL FOR FILE NAME: "+url);
}
return result;
}
static void cleanTargetDirectory() {
try {
deleteRecursive(new File(properties.getProperty("btrxData")));
} catch (Exception e) {
e.printStackTrace();
}
}
static void deleteRecursive(File f) throws Exception {
try {
if (f.isDirectory()) {
for (File c : f.listFiles()) {
deleteRecursive(c);
}
}
if (!f.delete()) {
throw new Exception("Delete command returned false for file: " + f);
}
} catch (Exception e) {
throw new Exception("Failed to delete the folder: " + f, e);
}
}
public static String getHtmlDirectory() {
return htmlDirectory;
}
}
| 050770255ba21486430f9adce487f8fed7fd7aa7 | [
"Java"
] | 1 | Java | makartsevaelena/btrxdump | fb291a49e22eea67ce131defb81d4200d8813e19 | abc85bde73a40e9b01185985055219ffb4f3ba92 |
refs/heads/master | <repo_name>nealhardesty/ubuntu-sshd<file_sep>/Makefile
.DEFAULT_GOAL := build
build:
docker build -t nealhardesty/ubuntu-ssh:latest -t ubuntu-ssh:latest .
run: build kill
docker run \
--name ubuntu-ssh \
-p 2222:22 \
--init \
-e USERNAME=test \
-e PASSWORD=<PASSWORD> \
ubuntu-ssh:latest
push: build
docker push nealhardesty/ubuntu-ssh:latest
kill:
-docker kill ubuntu-ssh
-docker rm ubuntu-ssh
<file_sep>/lib/entrypoint.sh
#!/bin/bash
if [ ! $(id "$USERNAME" >> /dev/null 2>&1) ]; then
echo Creating user $USERNAME
/usr/sbin/useradd -m -s /bin/bash "$USERNAME"
echo "$USERNAME:$PASSWORD" | /usr/sbin/chpasswd
echo Enabling password authentication
/bin/sed -i -e "s/#PasswordAuthentication.*/PasswordAuthentication yes/" /etc/ssh/sshd_config
echo Enabling sudo for $USERNAME
echo "$USERNAME ALL=(ALL:ALL) ALL" >> /etc/sudoers
fi
mkdir -p /var/run/sshd
/usr/bin/ssh-keygen -A
exec /usr/sbin/sshd -D -e
<file_sep>/Dockerfile
FROM ubuntu:18.04
LABEL maintainer "https://github.com/nealhardesty"
ENV USERNAME ubuntu
ENV PASSWORD <PASSWORD>
RUN apt update -y \
&& apt install -y openssh-server sudo \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ADD lib/entrypoint.sh /entrypoint.sh
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]
<file_sep>/README.md
# ubuntu-ssh
Docker image for simple sshd base image
| b93eef3f37f46991deaee194d2c5200ca1dcc039 | [
"Markdown",
"Makefile",
"Dockerfile",
"Shell"
] | 4 | Makefile | nealhardesty/ubuntu-sshd | 2ca363da96f2432a1ae890a11a90626a1bc2f77e | 28d7b000cf133a29eb97dfbfa6015acad5e1450a |
refs/heads/master | <file_sep>=== Genesis 1.0 Sample Theme with Sass ===
For Genesis 2.0, see: https://github.com/gregrickaby/genesis-sample
=== Changelog ===
0.2 - 2013.02.25
- Fixed missing Google Font import
- Fixed code indentation
- Fixed inconsistant $contentWidth capitalization
- Changed body background-color to $bodyBackground
- Changed default text to $textColor
0.1 - 2013.02.24
- Initial release
=== Installation Instructions ===
1. Upload the Genesis Sample theme folder via FTP to your wp-content/themes/ directory. (The Genesis parent theme needs to be in the wp-content/themes/ directory as well.)
2. Go to your WordPress dashboard and select Appearance.
3. Activate the Genesis Sample theme.
4. Inside your WordPress dashboard, go to Genesis > Theme Settings and configure them to your liking.
=== Sass Developer Info ===
Name: <NAME>
Website: http://gregrickaby.com
Twitter: http://twitter.com/gregrickaby
Github project link: https://github.com/gregrickaby/Genesis-Sass
<file_sep><?php
// Start the engine
require_once( get_template_directory() . '/lib/init.php' );
// Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
// Add Viewport meta tag for mobile browsers
add_action( 'genesis_meta', 'sample_viewport_meta_tag' );
function sample_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}
// Add support for custom background
add_theme_support( 'custom-background' );
// Add support for custom header
add_theme_support( 'genesis-custom-header', array(
'width' => 1152,
'height' => 120
) );
// Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 ); | 5cd4607313b8d0a63c1f68f9b2eaabefc27c24fe | [
"Text",
"PHP"
] | 2 | Text | gregrickaby/Genesis-1.0-Sass | 0f2438d89685dd2adb0a546245adf0df0ed97305 | 5d42701a41d8b8f20ee50dc37d80e5b86fd889cc |
refs/heads/master | <repo_name>kyiv-sdk/Client-Server-Test<file_sep>/Server/src/main/java/Thread.java
package com.lab5;
import java.util.Random;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class Main {
static ResourceBuffer CR1 = new ResourceBuffer();
static ResourceVariables CR2 = new ResourceVariables();
static Semaphore sem1 = new Semaphore(0, true); // for P1
static Semaphore sem2 = new Semaphore(0, true); // for P4
static CyclicBarrier br1 = new CyclicBarrier(2); // for P1 and P2
static CyclicBarrier br2 = new CyclicBarrier(2); // for P2 and P4
public static void main(String[] args) {
Thread1 thread1 = new Thread1();
Thread2 thread2 = new Thread2();
Thread3 thread3 = new Thread3();
Thread4 thread4 = new Thread4();
Thread5 thread5 = new Thread5();
Thread6 thread6 = new Thread6();
try {
thread1.t.join();
thread2.t.join();
thread3.t.join();
thread4.t.join();
thread5.t.join();
thread6.t.join();
} catch (InterruptedException e) {
System.out.println(e.getMessage());
}
}
}
class ResourceBuffer {
private static final int MaxBufSize = 24;
private static final int MinBufSize = 0;
int buff[] = new int[MaxBufSize+1];
int ind = 0;
boolean IsEmpty = ind == MinBufSize;
boolean IsFull = ind == MaxBufSize;
int counter = 100;
synchronized void consume(String str) {
while (IsEmpty)
try {
wait();
}
catch (InterruptedException e) {
System.out.println("InterruptedException");
}
System.out.println(str + ": --- buf[" + ind + "] = " + buff[ind]);
buff[ind] = 0;
System.out.println(str + ":--- ind: " + ind-- + " => " + ind);
IsEmpty = ind == MinBufSize;
IsFull = false;
notify();
}
synchronized void produce (String str) {
while (IsFull) {
try {
wait();
} catch (InterruptedException e) {
System.out.println("InterruptedException");
}
}
System.out.println(str + ": +++ ind: " + ind++ +" => " + ind);
buff[ind] = ind;
System.out.println(str + ": +++ buf[" + ind + "] = " + buff[ind]);
counter--;
IsFull = ind == MaxBufSize;
IsEmpty = false;
notify();
if (counter == 0) System.exit(0);
}
}
class ResourceVariables {
private static Random random = new Random();
private byte aByte = 0;
private short aShort = 0;
private int anInt= 0;
private long aLong = 0;
private char aChar = '0';
private boolean aBoolean = false;
private double aDouble= 0;
private float aFloat = 0;
public void consume(String str) {
System.out.println(str + ": CR2 variables consume: " + aShort + " " + aChar + " " + aDouble + " " + aFloat + " " + aLong);
}
public void produce(String str) {
aByte = 1;
anInt= random.nextInt();
aLong = random.nextLong();
aChar = 'd';
aBoolean = random.nextBoolean();
aDouble= random.nextDouble();
aFloat = random.nextFloat();
System.out.println(str + ": CR2 variables produce: " + aShort + " " + aChar + " " + aDouble + " " + aFloat + " " + aLong);
}
}
class Thread1 implements Runnable {
public Thread t;
private Lock mutex = new ReentrantLock();
public Thread1() {
t = new Thread(this,"P1");
t.start();
}
@Override
public void run() {
System.out.println("P1 started!");
while (true) {
mutex.lock();
System.out.println("P1: Mutex lock");
Main.CR2.produce(t.getName());
System.out.println("P1: Mutex unlock");
mutex.unlock();
System.out.println("P1: Semaphore before sync");
Main.sem2.release();
try {
Main.sem1.acquire();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("P1: Semaphore after sync");
mutex.lock();
System.out.println("P1: Mutex lock");
Main.CR2.consume(t.getName());
System.out.println("P1: Mutex unlock");
mutex.unlock();
System.out.println("P1: Barrier (with P2) wait");
try {
Main.br1.await();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (BrokenBarrierException e) {
e.printStackTrace();
}
System.out.println("P1: Barrier (with P2) sync");
}
}
}
class Thread2 implements Runnable {
public Thread t;
public Thread2() {
t = new Thread(this,"P2");
t.start();
}
@Override
public void run() {
System.out.println("P2 started!");
while (true) {
System.out.println("P2: Barrier (with P5) wait");
try {
Main.br2.await();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (BrokenBarrierException e) {
e.printStackTrace();
}
System.out.println("P2: Barrier (with P5) sync");
System.out.println("P2: Barrier (with P1) wait");
try {
Main.br1.await();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (BrokenBarrierException e) {
e.printStackTrace();
}
System.out.println("P2: Barrier (with P1) sync");
Main.CR1.consume(t.getName());
}
}
}
class Thread3 implements Runnable {
public Thread t;
public Thread3() {
t = new Thread(this,"P3");
t.start();
}
@Override
public void run() {
System.out.println("P3 started!");
while (true) {
Main.CR1.consume(t.getName());
// Thread.yield();
}
}
}
class Thread4 implements Runnable {
public Thread t;
private Lock mutex = new ReentrantLock();
public Thread4() {
t = new Thread(this,"P4");
t.start();
}
@Override
public void run() {
System.out.println("P4 started!");
while (true) {
System.out.println("P4: Semaphore before sync");
Main.sem1.release();
try {
Main.sem2.acquire();
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("P4: Semaphore after sync");
mutex.lock();
System.out.println("P4: Mutex lock");
Main.CR2.consume(t.getName());
System.out.println("P4: Mutex unlock");
mutex.unlock();
}
}
}
class Thread5 implements Runnable {
public Thread t;
public Thread5() {
t = new Thread(this,"P5");
t.start();
}
@Override
public void run() {
System.out.println("P5 started!");
while (true) {
System.out.println("P5: Barrier (with P2) wait");
try {
Main.br2.await();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (BrokenBarrierException e) {
e.printStackTrace();
}
System.out.println("P5: Barrier (with P2) sync");
Main.CR1.produce(t.getName());
}
}
}
class Thread6 implements Runnable {
public Thread t;
public Thread6() {
t = new Thread(this,"P6");
t.start();
}
@Override
public void run() {
System.out.println("P6 started!");
while (true) {
Main.CR1.produce(t.getName());
Thread.yield();
}
}
}
| 56608a467346044ed3d053897fec3d31d1bde4cd | [
"Java"
] | 1 | Java | kyiv-sdk/Client-Server-Test | c8586935a43fa54ca04d746051a5b91a86e5f5e8 | 8990ed979318a5a458fbe47525c9a87ad3b04e71 |
refs/heads/master | <file_sep># umnaya_izba
Arduino project for smart village home:
— sauna control
— weather control
— home control
<file_sep>#include <Arduino.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <iarduino_RF433_Receiver.h> // Подключаем библиотеку для работы с приёмником MX-RM-5V
#include "MillisTimer.h"
#include "SensorData.h"
SensorData sensorData[5];
#include <SoftwareSerial.h>
SoftwareSerial espSerial(9, 10); // TX, RX on ESP8266
#include "ThingSpeakApiKey.h"
ThingSpeakApiKey thingSpeakApiKey;
bool DEBUG = true; //show more logs
int responseTime = 2000; //communication timeout
int radioStatusLedPin = A0;
LiquidCrystal_I2C lcd(0x27, 20, 4);
iarduino_RF433_Receiver radio(3); // Создаём объект radio для работы с библиотекой iarduino_RF433, указывая номер вывода к которому подключён приёмник (можно подключать только к выводам использующим внешние прерывания)
MillisTimer timer = MillisTimer();
bool timerStatus = false;
String timerState = "OFF";
unsigned long DEFAULT_TIMEOUT = 2400000;
/*
* Name: sendToWifi
* Description: Function used to send data to ESP8266.
* Params: command - the data/command to send; timeout - the time to wait for a response; debug - print to Serial window?(true = yes, false = no)
* Returns: The response from the esp8266 (if there is a reponse)
*/
String sendToWifi(String command, const int timeout, boolean debug){
String response = "";
espSerial.println(command); // send the read character to the esp8266
long int time = millis();
while( (time+timeout) > millis())
{
while(espSerial.available())
{
// The esp has data so display its output to the serial window
char c = espSerial.read(); // read the next character.
response+=c;
}
}
if(debug)
{
Serial.println(response);
}
return response;
}
/*
* Name: sendData
* Description: Function used to send string to tcp client using cipsend
* Params:
* Returns: void
*/
String sendData(String str, int responseTime, bool DEBUG){
sendToWifi("AT+CIPSTART=\"TCP\",\"api.thingspeak.com\",80",responseTime,DEBUG);
String len="";
len+=str.length();
String response = "";
response += sendToWifi("AT+CIPSEND="+len,responseTime,DEBUG);
delay(100);
response += sendToWifi(str,responseTime,DEBUG);
delay(100);
return response;
}
void initSerial() {
Serial.begin(9600);
espSerial.begin(9600);
}
void initRadio() {
radio.begin(); // Инициируем работу приёмника MX-RM-5V (в качестве параметра можно указать скорость ЧИСЛО бит/сек, тогда можно не вызывать функцию setDataRate)
radio.setDataRate (i433_100BPS); // Указываем скорость приёма данных (i433_5KBPS, i433_4KBPS, i433_3KBPS, i433_2KBPS, i433_1KBPS, i433_500BPS, i433_100BPS), i433_1KBPS - 1кбит/сек
radio.openReadingPipe (5); // Открываем 5 трубу для приема данных (если вызвать функцию без параметра, то будут открыты все трубы сразу, от 0 до 7)
// radio.openReadingPipe (2); // Открываем 2 трубу для приёма данных (таким образом можно прослушивать сразу несколько труб)
// radio.closeReadingPipe(2); // Закрываем 2 трубу от приёма данных (если вызвать функцию без параметра, то будут закрыты все трубы сразу, от 0 до 7)
radio.startListening (); // Включаем приемник, начинаем прослушивать открытую трубу
// radio.stopListening (); // Выключаем приёмник, если потребуется
}
void initLcd() {
lcd.begin();
lcd.backlight();
lcd.print("= UMNAYA BANYA =");
delay(1000);
}
String checkZeroSign(int value) {
if (value < 10) {
return "0" + String(value);
}
return String(value);
}
String formatTime(unsigned long timerValue) {
String minutes = checkZeroSign((timerValue / 1000) / 60);
String seconds = checkZeroSign((timerValue / 1000) % 60);
return minutes + ":" + seconds;
}
void renderTimer(MillisTimer &mt) {
lcd.setCursor(10, 0);
lcd.print(formatTime(mt.getRemainingTime()) + " ");
}
void expireTimer(MillisTimer &mt) {
timerState = "EXPIRED";
mt.reset();
lcd.setCursor(10, 0);
lcd.print("EXPIRED");
}
void resetTimer(MillisTimer &mt) {
timerState = "OFF";
mt.reset();
lcd.setCursor(10, 0);
lcd.print("OFF ");
}
void startTimer(MillisTimer &mt) {
timerState = "RUNNING";
mt.setInterval(DEFAULT_TIMEOUT);
mt.expiredHandler(expireTimer);
mt.setRepeats(1);
mt.start();
}
void setup(){
initLcd();
initRadio();
resetTimer(timer);
initSerial();
pinMode(radioStatusLedPin, OUTPUT);
}
void loop(){
if(radio.available()){ // Если вызвать функцию available с параметром в виде ссылки на переменную типа uint8_t, то мы получим номер трубы, по которой пришли данные (см. урок 26.5)
digitalWrite(radioStatusLedPin, 25);
lcd.setCursor(0, 0);
lcd.print("Timer ");
lcd.setCursor(0, 1);
lcd.print("Water t");
lcd.setCursor(0, 2);
lcd.print("Air t");
lcd.setCursor(0, 3);
lcd.print("Humidity");
radio.read(&sensorData, sizeof(sensorData)); // Читаем данные в массив data и указываем сколько байт читать
SensorData timerData = sensorData[0];
bool timerTrigger = timerData.sensorValue != 0;
if ((timerTrigger != timerStatus)) {
timerStatus = timerTrigger;
if( timerState == "RUNNING" ) {
resetTimer(timer);
}
else if( (timerState == "OFF") | (timerState == "EXPIRED") ) {
startTimer(timer);
}
}
SensorData waterTemperatureSensor = sensorData[4];
lcd.setCursor(10, 1);
lcd.print(waterTemperatureSensor.sensorValue);
SensorData steamRoomAirTemperatureSensor = sensorData[2];
lcd.setCursor(10, 2);
lcd.print(steamRoomAirTemperatureSensor.sensorValue);
SensorData humiditySensor = sensorData[3];
lcd.setCursor(10, 3);
lcd.print(humiditySensor.sensorValue);
SensorData roomAirTemperatureSensor = sensorData[1];
String GET = "GET /update";
GET += "?api_key="+thingSpeakApiKey.apiKey;
GET += "&field1="+String(roomAirTemperatureSensor.sensorValue);
GET += "&field2="+String(steamRoomAirTemperatureSensor.sensorValue);
GET += "&field3="+String(humiditySensor.sensorValue);
GET += "&field4="+String(waterTemperatureSensor.sensorValue);
GET += "\r\n\r\n";
sendData(GET,responseTime,DEBUG);
} else {
digitalWrite(radioStatusLedPin, 0);
}
if (timer.isRunning() & !timer.expired()) {
renderTimer(timer);
}
}
<file_sep>// Вынести температуру в отдельный класс, который использовать для температуры воды и воздуха
#include <Arduino.h>
#include <iarduino_RF433_Transmitter.h> // Подключаем библиотеку для работы с передатчиком FS1000A
#include "SensorData.h"
#include <SHT1x.h>
// Specify data and clock connections and instantiate SHT1x object
#define dataPin 6
#define clockPin 5
SHT1x sht1x(dataPin, clockPin);
iarduino_RF433_Transmitter radio(12); // Создаём объект radio для работы с библиотекой iarduino_RF433, указывая номер вывода к которому подключён передатчик
SensorData sensorData[5];
const int ledPin = 13;
const int buttonPin = 2;
bool buttonState = false;
// // =========== Датчик температуры воды ============
// библиотека для работы с протоколом 1-Wire
#include <OneWire.h>
// библиотека для работы с датчиком DS18B20
#include <DallasTemperature.h>
// сигнальный провод датчика
#define ONE_WIRE_BUS 3
// создаём объект для работы с библиотекой OneWire
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensor(&oneWire);
// //==============================================
void updateTimerButtonState() {
buttonState = !buttonState;
volatile byte ledState = buttonState;
digitalWrite(ledPin, ledState);
}
void initWaterTemperatureSensor() {
// =========== Датчик температуры воды ============
// начинаем работу с датчиком
sensor.begin();
// устанавливаем разрешение датчика от 9 до 12 бит
sensor.setResolution(12);
// ==============================================
}
float getWaterTemperature() {
// =========== Датчик температуры воды ============
// переменная для хранения температуры
// отправляем запрос на измерение температуры
sensor.requestTemperatures();
// считываем данные из регистра датчика
return sensor.getTempCByIndex(0);
}
float getAirTemperature() {
const int B = 4275; // B value of the thermistor
const long R0 = 100000; // R0 = 100k
int rawData = analogRead(A1);
float R = 1023.0/rawData-1.0;
R = R0*R;
float temperature = 1.0/(log(R/R0)/B+1/298.15)-273.15;
return temperature;
}
float getSteamRoomHumidity() {
return sht1x.readHumidity();
};
float getSteamRoomAirTemperature() {
return sht1x.readTemperatureC();
};
void initRadio() {
radio.begin(); // Инициируем работу передатчика FS1000A (в качестве параметра можно указать скорость ЧИСЛО бит/сек, тогда можно не вызывать функцию setDataRate)
radio.setDataRate (i433_100BPS); // Указываем скорость передачи данных (i433_5KBPS, i433_4KBPS, i433_3KBPS, i433_2KBPS, i433_1KBPS, i433_500BPS, i433_100BPS), i433_1KBPS - 1кбит/сек
radio.openWritingPipe (5); // Открываем 5 трубу для передачи данных (передатчик может передавать данные только по одной из труб: 0...7)
} // Если повторно вызвать функцию openWritingPipe указав другой номер трубы, то передатчик начнёт передавать данные по вновь указанной трубе
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
pinMode(buttonPin, INPUT);
attachInterrupt(digitalPinToInterrupt(buttonPin), updateTimerButtonState, FALLING);
initRadio();
initWaterTemperatureSensor();
}
void loop() {
sensorData[0] = {
sensorId: 1,
sensorValue: float(buttonState)
};
sensorData[1] = {
sensorId: 2,
sensorValue: getAirTemperature()
};
sensorData[2] = {
sensorId: 3,
sensorValue: getSteamRoomAirTemperature()
};
sensorData[3] = {
sensorId: 4,
sensorValue: getSteamRoomHumidity()
};
sensorData[4] = {
sensorId: 5,
sensorValue: getWaterTemperature()
};
delay(1000);
Serial.println("Sending data ");
radio.write(&sensorData, sizeof(sensorData)); // отправляем данные из массива data указывая сколько байт массива мы хотим отправить
}
<file_sep>class SensorData {
public:
int sensorId;
float sensorValue;
};
| 30937604642e9a5720bceb3b9c9dd26041b2e217 | [
"Markdown",
"C++"
] | 4 | Markdown | robinsout/umnaya_izba | 79298d48e55fef0b1972f9c1c7867e24254e9c45 | 80676ac068c6ff08915f7347e69f17ee5abed35c |
refs/heads/master | <repo_name>alaeddinez/PhantomStk<file_sep>/README.md
# LMFR-BigData--supply--Suspicious-Stock<file_sep>/src/data/load_sales.py
import pandas as pd
from .utils import read_sql
from skbox.connectors.bigquery import BigQuery
from skbox.connectors.teradata import Teradata
import os
import sys
import time
import logging as log
#PATH = ""
PATH = './data/'
SOURCE_DICT = {
'sales_11_14': PATH + 'load_sales.sql' ,
'daily_sales': PATH + 'load_daily_sales.sql'
}
class LoadSales():
"""
"""
def __init__(self,data_source, option_source, year, week,store):
if option_source == "teradata":
self.data_source = data_source
SALES = read_sql(SOURCE_DICT[self.data_source])
SALES = SALES.replace('\n', '').replace('\r', '')
sql_req = sql_req.replace('year', year).replace('week', week)
teradata = Teradata()
self.dataframe = teradata.select(SALES, chunksize=None)
elif option_source == "bq":
self.data_source = data_source
sql_req = read_sql(SOURCE_DICT[self.data_source])
sql_req = sql_req.replace('\n', ' ').replace('\r', ' ')
sql_req = sql_req.replace('var_year', year).replace('var_week', week).replace('var_store',store)
bq = BigQuery()
df_BQ = bq.select(sql_req)
self.dataframe = df_BQ
else :
print("wrong option")
<file_sep>/src/utils.py
import pandas as pd
import numpy as np
def amplif_coeff(var):
"""[summary]
Arguments:
var {[type]} -- [description]
"""
if var < 0:
var = var * 5
else:
var
return(var)
def string_to_date(str_date):
"""[summary]
Arguments:
str_date {[type]} -- [description]
"""
return(datetime.strptime(eval(str_date), '%d/%m/%Y'))
def prep_vekia(df, date_execution):
previous_monday_date = df.columns[3]
df = df.drop(["POS_ID", "ECART_TYPE"], axis=1)
df = pd.melt(df, id_vars=['RC_ID'])
df = df[df.variable == previous_monday_date]
df.variable = date_execution
df.rename(columns={'RC_ID': 'NUM_ART'}, inplace=True)
# estimate daily sales from weekly sales
df.value = df.value/6
return(df)
def calcul_score(df_vekia, df_sales, cpq_df):
# left join the vekia prev with actual values
merged = df_vekia.merge(df_sales[["NUM_ART", "QTE_VTE"]], on=["NUM_ART"], how='left')
merged.QTE_VTE = merged.QTE_VTE.fillna('0')
merged.QTE_VTE = merged.QTE_VTE.astype("float")
merged = merged.merge(cpq_df, on=["NUM_ART"], how='left')
merged.Standard_CPQ = merged.Standard_CPQ.fillna('1')
merged.Standard_CPQ = merged.Standard_CPQ.astype("float")
merged["score"] = (merged.value - merged.QTE_VTE) / (merged.Standard_CPQ)
# TODO :définir une régle pour amplifier le score lorqu'il est négatif
merged.score = merged['score'].apply(amplif_coeff)
merged["score_cum"] = merged.score
return merged
<file_sep>/src/data/__init__.py
from .load_sales import LoadSales
from .storage import storage_blob
<file_sep>/src/main.py
import pandas as pd
from data import LoadSales
from datetime import datetime
import numpy as np
import os
from data import storage_blob
#executer le script mercredi pour récuperer toutes les ventes (jusqu'à mardi soir)
# loading data at 2020/02/11 (mardi)
date_execution = "20200212" # mercredi
store = '14'
# TODO : prev journaliere !!! diviser pas 6 (vekia)
data = storage_blob(bucket='big-data-dev-supply-sages', blob='EXTRACTION_PV_' + store + '_'+ date_execution +'.csv').select_bucket(sep=";")
previous_monday_date = data.columns[3]
# on s'interesse aux semaine passée! DU 2020/02/10 ==> 2020/02/17 pour matcher avec les ventes réelles
# cet intervalle correspond à la semaine 7 dans ce cas
#on recupere la prévision de cette semaine seulement
data = data.drop(["POS_ID", "ECART_TYPE"], axis=1)#56174895
data = pd.melt(data, id_vars=['RC_ID'])
data = data[data.variable == previous_monday_date]
def string_to_date(str_date):
return(datetime.strptime(eval(str_date), '%d/%m/%Y'))
data.variable = data['variable'].apply(string_to_date)
# data["week_of_year"] = data["variable"].dt.week
# data["year_of_calendar"] = data["variable"].dt.year
data.rename(columns={'RC_ID': 'NUM_ART'}, inplace=True)
list_art_vekia = np.unique(data.NUM_ART)
# ##### real sales ###########
# TODO: un appel par magasin
SALES_df = LoadSales('daily_sales', option_source="bq", year = '2020', week = '5',store = '14').dataframe
# TODO: sort by year and week to detect the recent !
# left join the vekia prev with actual values
merged = data.merge(SALES_df[["NUM_ART", "week_of_year", "year_of_calendar", "QTE_VTE"]], on=["NUM_ART"], how='left')
merged = merged.dropna()
merged.QTE_VTE = merged.QTE_VTE.astype("float")
# Load qté chantier
# merge
merged["coef"] = merged.value - merged.QTE_VTE
# TODO : utiliser les données des inventaires
df_counts = merged.groupby(['NUM_ART']).size().reset_index(name='counts')
df_counts.sort
ex = merged[merged.NUM_ART == 953235]
| 280894ea5d1f5bf9b404f64ac662b1d31fefed58 | [
"Markdown",
"Python"
] | 5 | Markdown | alaeddinez/PhantomStk | 3f79c7124328c00a084e0522b0027969c77a910b | ba5a5ab7fe7b3e3913e4fb84f712190b77d6dd27 |
refs/heads/master | <file_sep>module.exports = {
APPLICATION_ID: process.env.APPLCATION_ID || "Your unsplash key",
SECRET: process.env.SECRET || "Your unsplash secret",
CALLBACK_URL: process.env.CALLBACK_URL || "http://localhost:3000"
};
| 6130efdcfa93b9f14bdd294cdbf800e4c2f21c90 | [
"JavaScript"
] | 1 | JavaScript | comunit/react-infinite-image-scroll | 8d1ec3c979dc803c6a7ce7a06fbdca7311633058 | 76289508f9728c3b4f22cda6b5c7e9e103a6cc42 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.