text stringlengths 2 1.04M | meta dict |
|---|---|
'use strict';
import Events from './events.js';
class Widget extends Events {
constructor(config) {
super();
this.__config = config;
this.eventSplitter = /\s+/;
this.events = {};
this.template = '';
this._delegateEvent();
this.setUp();
}
_delegateEvent () {
var events = this.events || {};
var parent = this.get('parent') || $(document.body);
for (let eventStr in events) {
let eventCb = events[eventStr];
let eventArr = eventStr.split[this.eventSplitter];
let selector = eventArr[0];
let eventType = eventArr[1];
if (eventArr.length < 2) {
continue;
}
parent.on(selector, eventType, function (e) {
eventCb.call(this, e);
});
}
}
_parseTemplate (str, data) {
var fn = new Function('obj',
'var p=[],print=function(){p.push.apply(p,arguments);};' +
'with(obj){p.push(\'' + str
.replace(/[\r\t\n]/g, " ")
.split("<%").join("\t")
.replace(/((^|%>)[^\t]*)'/g, "$1\r")
.replace(/\t=(.*?)%>/g, "',$1,'")
.split("\t").join("');")
.split("%>").join("p.push('")
.split("\r").join("\\'") +
"');}return p.join('');");
return data ? fn(data) : fn;
}
render (data) {
if (!this.template) {
return;
}
this.set('__data', data);
var htmlStr = this._parseTemplate(this.template, data);
var parent = this.get('parent') || $(document.body);
this.set('__currentDom', $(htmlStr));
parent.append(this.get('__currentDom'));
}
setUp () {
this.render();
}
setState (obj) {
if (!this.template) {
return;
}
var data = this.get('__data');
for (let key in obj) {
data[key] = obj[key];
}
var htmlDom = $(this._parseTemplate(this.template, data));
var currentDom = self.get('__currentDom');
if (!currentDom) {
return;
}
currentDom.replaceWith(htmlDom);
self.set('__currentDom', htmlDom);
}
destroy () {
this.off();
this.get('__currentDom').remove();
var events = this.events || {};
var parent = this.get('parent') || $(document.body);
for (let eventStr in events) {
let eventCb = events[eventStr];
let eventArr = eventStr.split[this.eventSplitter];
let selector = eventArr[0];
let eventType = eventArr[1];
if (eventArr.length < 2) {
continue;
}
parent.off(selector, eventType, function (e) {
eventCb.call(this, e);
});
}
}
get (key) {
return this.__config[key];
}
set (key, value) {
this.__config[key] = value;
}
} | {
"content_hash": "223f2ccb86889fbb6068433e2494eb67",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 66,
"avg_line_length": 24.934579439252335,
"alnum_prop": 0.5183658170914542,
"repo_name": "luckyadam/labs",
"id": "dc37aa484d185484c0e19ecc1878c195a6f49373",
"size": "2668",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/framework_base/widget.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "9739"
}
],
"symlink_target": ""
} |
package com.algorithm.patterns.simuduck;
import com.algorithm.patterns.contstants.Constants;
public class MuteQuack implements QuackBehavior {
@Override
public String quack() {
System.out.println(Constants.QUACK_MUTE);
return Constants.QUACK_MUTE;
}
}
| {
"content_hash": "9e69754906d64b60123946f9a789ceca",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 51,
"avg_line_length": 25.636363636363637,
"alnum_prop": 0.7304964539007093,
"repo_name": "vgerasev/algorithm-java",
"id": "5ad0d826aa7c30187b4e032dbb1231ce0a14c350",
"size": "282",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/algorithm/patterns/simuduck/MuteQuack.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "8968"
}
],
"symlink_target": ""
} |
package com.amazonaws.services.amplify.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.amplify.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;
/**
* ListWebhooksResult JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListWebhooksResultJsonUnmarshaller implements Unmarshaller<ListWebhooksResult, JsonUnmarshallerContext> {
public ListWebhooksResult unmarshall(JsonUnmarshallerContext context) throws Exception {
ListWebhooksResult listWebhooksResult = new ListWebhooksResult();
int originalDepth = context.getCurrentDepth();
String currentParentElement = context.getCurrentParentElement();
int targetDepth = originalDepth + 1;
JsonToken token = context.getCurrentToken();
if (token == null)
token = context.nextToken();
if (token == VALUE_NULL) {
return listWebhooksResult;
}
while (true) {
if (token == null)
break;
if (token == FIELD_NAME || token == START_OBJECT) {
if (context.testExpression("webhooks", targetDepth)) {
context.nextToken();
listWebhooksResult.setWebhooks(new ListUnmarshaller<Webhook>(WebhookJsonUnmarshaller.getInstance()).unmarshall(context));
}
if (context.testExpression("nextToken", targetDepth)) {
context.nextToken();
listWebhooksResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
}
} else if (token == END_ARRAY || token == END_OBJECT) {
if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
if (context.getCurrentDepth() <= originalDepth)
break;
}
}
token = context.nextToken();
}
return listWebhooksResult;
}
private static ListWebhooksResultJsonUnmarshaller instance;
public static ListWebhooksResultJsonUnmarshaller getInstance() {
if (instance == null)
instance = new ListWebhooksResultJsonUnmarshaller();
return instance;
}
}
| {
"content_hash": "0960c7fd1eaec23f606c9b4f8809d79e",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 141,
"avg_line_length": 37.014925373134325,
"alnum_prop": 0.6483870967741936,
"repo_name": "jentfoo/aws-sdk-java",
"id": "6b018be2b53d23791fbc8acb79fb664ff51ffdad",
"size": "3060",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-java-sdk-amplify/src/main/java/com/amazonaws/services/amplify/model/transform/ListWebhooksResultJsonUnmarshaller.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "270"
},
{
"name": "FreeMarker",
"bytes": "173637"
},
{
"name": "Gherkin",
"bytes": "25063"
},
{
"name": "Java",
"bytes": "356214839"
},
{
"name": "Scilab",
"bytes": "3924"
},
{
"name": "Shell",
"bytes": "295"
}
],
"symlink_target": ""
} |
import logging
import gevent
from ...policy import Policy
from . import models
logger = logging.getLogger(__name__)
class MongoPolicy(Policy):
_name = "mongo"
def search_domain(self, protocol):
return models.Domain.search(protocol)
def search_mynetwork(self, protocol):
return models.Mynetwork.search(protocol)
def search_policy(self, protocol):
return models.Policy.search(protocol)
def search_blacklist(self, protocol):
return models.BlackList.search(protocol)
def search_whitelist(self, protocol):
return models.WhiteList.search(protocol)
def search_greylist(self, key):
return models.GreylistEntry.search_entry(key)
def create_greylist(self, key=None, protocol=None, policy=None):
return models.GreylistEntry.create_entry(key=key, protocol=protocol, policy=policy)
def task_purge_expire(self, run_once=False):
logger.info("Start Expired Purge...")
while True:
gevent.sleep(self.purge_interval)
try:
for_delete = models.query_for_purge()
#for_delete = models.GreylistEntry.objects(expire_time__lt=utils.utcnow())
count = for_delete.count()
if count > 0:
logger.info("purge expire entries : %s" % count)
for_delete.delete()
if run_once:
return
except Exception, err:
logger.error(str(err))
def task_metrics(self):
logger.info("Start Metrics...")
while True:
gevent.sleep(self.metrics_interval)
try:
metric = models.GreylistEntry.last_metrics()
if metric:
models.GreylistMetric(**metric).save()
except Exception, err:
logger.error(str(err))
| {
"content_hash": "cc4537f0e85002a44f5fe715fa3cd6ea",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 91,
"avg_line_length": 30.1875,
"alnum_prop": 0.5797101449275363,
"repo_name": "radical-software/mongrey",
"id": "5805758107c9f655810ddbe04157070dbc95b080",
"size": "1957",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mongrey/storage/mongo/policy.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "755370"
},
{
"name": "HTML",
"bytes": "676261"
},
{
"name": "Python",
"bytes": "353769"
},
{
"name": "Shell",
"bytes": "3450"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<title>LegendButton Tests</title>
<!-- META TAGS -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- CSS -->
<link rel="stylesheet" href="app/resources/App.css">
<style type='text/css'>
body {
padding: 50px;
}
</style>
<!-- JAVASCRIPT -->
<script type='text/javascript' src="../../dojo/dojo.js"></script>
<script type="text/javascript">
var baseUrl = window.location.pathname.replace(/\/[^\/]+$/, '') + '/' + '../../';
var widgetUnderTest;
require({
baseUrl: baseUrl,
packages: ['app', 'esri', 'dojo', 'dijit', 'dojox', 'xstyle',
{
name: 'jquery',
location: 'jquery/dist',
main: 'jquery'
},{
name: 'bootstrap',
location: 'bootstrap',
main: 'dist/js/bootstrap'
}]
}, [
'app/LegendButton',
'dojo/domReady!'
], function(Module) {
widgetUnderTest = new Module({
}, 'node');
widgetUnderTest.startup();
});
</script>
</head>
<body>
<div id="node"></div>
</body>
</html>
| {
"content_hash": "f3472467caa8ec4a76824099f6b83c58",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 89,
"avg_line_length": 25.32,
"alnum_prop": 0.46445497630331756,
"repo_name": "agrc/BEMS",
"id": "366fa5a94754834778ce11b29bd96e96f2d1d926",
"size": "1266",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/app/tests/LegendButtonTests.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3715"
},
{
"name": "HTML",
"bytes": "22794"
},
{
"name": "JavaScript",
"bytes": "78334"
},
{
"name": "Python",
"bytes": "722"
}
],
"symlink_target": ""
} |
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.30 03/05/08 */
/* */
/* I/O ROUTER MODULE */
/*******************************************************/
/*************************************************************/
/* Purpose: Provides a centralized mechanism for handling */
/* input and output requests. */
/* */
/* Principal Programmer(s): */
/* Gary D. Riley */
/* */
/* Contributing Programmer(s): */
/* Brian L. Dantes */
/* */
/* Revision History: */
/* 6.24: Removed conversion of '\r' to '\n' from the */
/* EnvGetcRouter function. */
/* */
/* Renamed BOOLEAN macro type to intBool. */
/* */
/* Added support for passing context information */
/* to the router functions. */
/* */
/* 6.30: Fixed issues with passing context to routers. */
/* */
/*************************************************************/
#define _ROUTER_SOURCE_
#include <stdio.h>
#define _STDIO_INCLUDED_
#include <stdlib.h>
#include <string.h>
#include "setup.h"
#include "argacces.h"
#include "constant.h"
#include "envrnmnt.h"
#include "extnfunc.h"
#include "filertr.h"
#include "memalloc.h"
#include "strngrtr.h"
#include "sysdep.h"
#include "router.h"
/***************************************/
/* LOCAL INTERNAL FUNCTION DEFINITIONS */
/***************************************/
static int QueryRouter(void *,char *,struct router *);
static void DeallocateRouterData(void *);
/*********************************************************/
/* InitializeDefaultRouters: Initializes output streams. */
/*********************************************************/
globle void InitializeDefaultRouters(
void *theEnv)
{
AllocateEnvironmentData(theEnv,ROUTER_DATA,sizeof(struct routerData),DeallocateRouterData);
RouterData(theEnv)->CommandBufferInputCount = 0;
RouterData(theEnv)->AwaitingInput = TRUE;
#if (! RUN_TIME)
EnvDefineFunction2(theEnv,"exit", 'v', PTIEF ExitCommand, "ExitCommand", "*1i");
#endif
InitializeFileRouter(theEnv);
InitializeStringRouter(theEnv);
}
/*************************************************/
/* DeallocateRouterData: Deallocates environment */
/* data for I/O routers. */
/*************************************************/
static void DeallocateRouterData(
void *theEnv)
{
struct router *tmpPtr, *nextPtr;
tmpPtr = RouterData(theEnv)->ListOfRouters;
while (tmpPtr != NULL)
{
nextPtr = tmpPtr->next;
genfree(theEnv,tmpPtr->name,strlen(tmpPtr->name) + 1);
rtn_struct(theEnv,router,tmpPtr);
tmpPtr = nextPtr;
}
}
/*******************************************/
/* EnvPrintRouter: Generic print function. */
/*******************************************/
globle int EnvPrintRouter(
void *theEnv,
char *logicalName,
char *str)
{
struct router *currentPtr;
/*===================================================*/
/* If the "fast save" option is being used, then the */
/* logical name is actually a pointer to a file and */
/* fprintf can be called directly to bypass querying */
/* all of the routers. */
/*===================================================*/
if (((char *) RouterData(theEnv)->FastSaveFilePtr) == logicalName)
{
fprintf(RouterData(theEnv)->FastSaveFilePtr,"%s",str);
return(2);
}
/*==============================================*/
/* Search through the list of routers until one */
/* is found that will handle the print request. */
/*==============================================*/
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
if ((currentPtr->printer != NULL) ? QueryRouter(theEnv,logicalName,currentPtr) : FALSE)
{
SetEnvironmentRouterContext(theEnv,currentPtr->context);
if (currentPtr->environmentAware)
{ (*currentPtr->printer)(theEnv,logicalName,str); }
else
{ ((int (*)(char *,char *)) (*currentPtr->printer))(logicalName,str); }
return(1);
}
currentPtr = currentPtr->next;
}
/*=====================================================*/
/* The logical name was not recognized by any routers. */
/*=====================================================*/
if (strcmp(WERROR,logicalName) != 0) UnrecognizedRouterMessage(theEnv,logicalName);
return(0);
}
/**************************************************/
/* EnvGetcRouter: Generic get character function. */
/**************************************************/
globle int EnvGetcRouter(
void *theEnv,
char *logicalName)
{
struct router *currentPtr;
int inchar;
/*===================================================*/
/* If the "fast load" option is being used, then the */
/* logical name is actually a pointer to a file and */
/* getc can be called directly to bypass querying */
/* all of the routers. */
/*===================================================*/
if (((char *) RouterData(theEnv)->FastLoadFilePtr) == logicalName)
{
inchar = getc(RouterData(theEnv)->FastLoadFilePtr);
if ((inchar == '\r') || (inchar == '\n'))
{
if (((char *) RouterData(theEnv)->FastLoadFilePtr) == RouterData(theEnv)->LineCountRouter)
{ IncrementLineCount(theEnv); }
}
/* if (inchar == '\r') return('\n'); */
return(inchar);
}
/*===============================================*/
/* If the "fast string get" option is being used */
/* for the specified logical name, then bypass */
/* the router system and extract the character */
/* directly from the fast get string. */
/*===============================================*/
if (RouterData(theEnv)->FastCharGetRouter == logicalName)
{
inchar = (unsigned char) RouterData(theEnv)->FastCharGetString[RouterData(theEnv)->FastCharGetIndex];
RouterData(theEnv)->FastCharGetIndex++;
if (inchar == '\0') return(EOF);
if ((inchar == '\r') || (inchar == '\n'))
{
if (RouterData(theEnv)->FastCharGetRouter == RouterData(theEnv)->LineCountRouter)
{ IncrementLineCount(theEnv); }
}
return(inchar);
}
/*==============================================*/
/* Search through the list of routers until one */
/* is found that will handle the getc request. */
/*==============================================*/
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
if ((currentPtr->charget != NULL) ? QueryRouter(theEnv,logicalName,currentPtr) : FALSE)
{
SetEnvironmentRouterContext(theEnv,currentPtr->context);
if (currentPtr->environmentAware)
{ inchar = (*currentPtr->charget)(theEnv,logicalName); }
else
{ inchar = ((int (*)(char *)) (*currentPtr->charget))(logicalName); }
if ((inchar == '\r') || (inchar == '\n'))
{
if ((RouterData(theEnv)->LineCountRouter != NULL) &&
(strcmp(logicalName,RouterData(theEnv)->LineCountRouter) == 0))
{ IncrementLineCount(theEnv); }
}
return(inchar);
}
currentPtr = currentPtr->next;
}
/*=====================================================*/
/* The logical name was not recognized by any routers. */
/*=====================================================*/
UnrecognizedRouterMessage(theEnv,logicalName);
return(-1);
}
/******************************************************/
/* EnvUngetcRouter: Generic unget character function. */
/******************************************************/
globle int EnvUngetcRouter(
void *theEnv,
int ch,
char *logicalName)
{
struct router *currentPtr;
/*===================================================*/
/* If the "fast load" option is being used, then the */
/* logical name is actually a pointer to a file and */
/* ungetc can be called directly to bypass querying */
/* all of the routers. */
/*===================================================*/
if (((char *) RouterData(theEnv)->FastLoadFilePtr) == logicalName)
{
if ((ch == '\r') || (ch == '\n'))
{
if (((char *) RouterData(theEnv)->FastLoadFilePtr) == RouterData(theEnv)->LineCountRouter)
{ DecrementLineCount(theEnv); }
}
return(ungetc(ch,RouterData(theEnv)->FastLoadFilePtr));
}
/*===============================================*/
/* If the "fast string get" option is being used */
/* for the specified logical name, then bypass */
/* the router system and unget the character */
/* directly from the fast get string. */
/*===============================================*/
if (RouterData(theEnv)->FastCharGetRouter == logicalName)
{
if ((ch == '\r') || (ch == '\n'))
{
if (RouterData(theEnv)->FastCharGetRouter == RouterData(theEnv)->LineCountRouter)
{ DecrementLineCount(theEnv); }
}
if (RouterData(theEnv)->FastCharGetIndex > 0) RouterData(theEnv)->FastCharGetIndex--;
return(ch);
}
/*===============================================*/
/* Search through the list of routers until one */
/* is found that will handle the ungetc request. */
/*===============================================*/
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
if ((currentPtr->charunget != NULL) ? QueryRouter(theEnv,logicalName,currentPtr) : FALSE)
{
if ((ch == '\r') || (ch == '\n'))
{
if ((RouterData(theEnv)->LineCountRouter != NULL) &&
(strcmp(logicalName,RouterData(theEnv)->LineCountRouter) == 0))
{ DecrementLineCount(theEnv); }
}
SetEnvironmentRouterContext(theEnv,currentPtr->context);
if (currentPtr->environmentAware)
{ return((*currentPtr->charunget)(theEnv,ch,logicalName)); }
else
{ return(((int (*)(int,char *)) (*currentPtr->charunget))(ch,logicalName)); }
}
currentPtr = currentPtr->next;
}
/*=====================================================*/
/* The logical name was not recognized by any routers. */
/*=====================================================*/
UnrecognizedRouterMessage(theEnv,logicalName);
return(-1);
}
/*****************************************************/
/* ExitCommand: H/L command for exiting the program. */
/*****************************************************/
globle void ExitCommand(
void *theEnv)
{
int argCnt;
int status;
if ((argCnt = EnvArgCountCheck(theEnv,"exit",NO_MORE_THAN,1)) == -1) return;
if (argCnt == 0)
{ EnvExitRouter(theEnv,EXIT_SUCCESS); }
else
{
status = (int) EnvRtnLong(theEnv,1);
if (GetEvaluationError(theEnv)) return;
EnvExitRouter(theEnv,status);
}
return;
}
/***********************************************/
/* EnvExitRouter: Generic exit function. Calls */
/* all of the router exit functions. */
/***********************************************/
globle void EnvExitRouter(
void *theEnv,
int num)
{
struct router *currentPtr, *nextPtr;
RouterData(theEnv)->Abort = FALSE;
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
nextPtr = currentPtr->next;
if (currentPtr->active == TRUE)
{
if (currentPtr->exiter != NULL)
{
SetEnvironmentRouterContext(theEnv,currentPtr->context);
if (currentPtr->environmentAware)
{ (*currentPtr->exiter)(theEnv,num); }
else
{ ((int (*)(int))(*currentPtr->exiter))(num); }
}
}
currentPtr = nextPtr;
}
if (RouterData(theEnv)->Abort) return;
genexit(theEnv,num);
}
/********************************************/
/* AbortExit: Forces ExitRouter to terminate */
/* after calling all closing routers. */
/********************************************/
globle void AbortExit(
void *theEnv)
{
RouterData(theEnv)->Abort = TRUE;
}
#if ALLOW_ENVIRONMENT_GLOBALS
/*********************************************************/
/* AddRouter: Adds an I/O router to the list of routers. */
/*********************************************************/
globle intBool AddRouter(
char *routerName,
int priority,
int (*queryFunction)(char *),
int (*printFunction)(char *,char *),
int (*getcFunction)(char *),
int (*ungetcFunction)(int,char *),
int (*exitFunction)(int))
{
struct router *newPtr, *lastPtr, *currentPtr;
void *theEnv;
char *nameCopy;
theEnv = GetCurrentEnvironment();
newPtr = get_struct(theEnv,router);
nameCopy = (char *) genalloc(theEnv,strlen(routerName) + 1);
genstrcpy(nameCopy,routerName);
newPtr->name = nameCopy;
newPtr->active = TRUE;
newPtr->environmentAware = FALSE;
newPtr->priority = priority;
newPtr->context = NULL;
newPtr->query = (int (*)(void *,char *)) queryFunction;
newPtr->printer = (int (*)(void *,char *,char *)) printFunction;
newPtr->exiter = (int (*)(void *,int)) exitFunction;
newPtr->charget = (int (*)(void *,char *)) getcFunction;
newPtr->charunget = (int (*)(void *,int,char *)) ungetcFunction;
newPtr->next = NULL;
if (RouterData(theEnv)->ListOfRouters == NULL)
{
RouterData(theEnv)->ListOfRouters = newPtr;
return(1);
}
lastPtr = NULL;
currentPtr = RouterData(theEnv)->ListOfRouters;
while ((currentPtr != NULL) ? (priority < currentPtr->priority) : FALSE)
{
lastPtr = currentPtr;
currentPtr = currentPtr->next;
}
if (lastPtr == NULL)
{
newPtr->next = RouterData(theEnv)->ListOfRouters;
RouterData(theEnv)->ListOfRouters = newPtr;
}
else
{
newPtr->next = currentPtr;
lastPtr->next = newPtr;
}
return(1);
}
#endif
/************************************************************/
/* EnvAddRouter: Adds an I/O router to the list of routers. */
/************************************************************/
globle intBool EnvAddRouter(
void *theEnv,
char *routerName,
int priority,
int (*queryFunction)(void *,char *),
int (*printFunction)(void *,char *,char *),
int (*getcFunction)(void *,char *),
int (*ungetcFunction)(void *,int,char *),
int (*exitFunction)(void *,int))
{
return EnvAddRouterWithContext(theEnv,routerName,priority,
queryFunction,printFunction,getcFunction,
ungetcFunction,exitFunction,NULL);
}
/***********************************************************************/
/* EnvAddRouterWithContext: Adds an I/O router to the list of routers. */
/***********************************************************************/
globle intBool EnvAddRouterWithContext(
void *theEnv,
char *routerName,
int priority,
int (*queryFunction)(void *,char *),
int (*printFunction)(void *,char *,char *),
int (*getcFunction)(void *,char *),
int (*ungetcFunction)(void *,int,char *),
int (*exitFunction)(void *,int),
void *context)
{
struct router *newPtr, *lastPtr, *currentPtr;
char *nameCopy;
newPtr = get_struct(theEnv,router);
nameCopy = (char *) genalloc(theEnv,strlen(routerName) + 1);
genstrcpy(nameCopy,routerName);
newPtr->name = nameCopy;
newPtr->active = TRUE;
newPtr->environmentAware = TRUE;
newPtr->context = context;
newPtr->priority = priority;
newPtr->query = queryFunction;
newPtr->printer = printFunction;
newPtr->exiter = exitFunction;
newPtr->charget = getcFunction;
newPtr->charunget = ungetcFunction;
newPtr->next = NULL;
if (RouterData(theEnv)->ListOfRouters == NULL)
{
RouterData(theEnv)->ListOfRouters = newPtr;
return(1);
}
lastPtr = NULL;
currentPtr = RouterData(theEnv)->ListOfRouters;
while ((currentPtr != NULL) ? (priority < currentPtr->priority) : FALSE)
{
lastPtr = currentPtr;
currentPtr = currentPtr->next;
}
if (lastPtr == NULL)
{
newPtr->next = RouterData(theEnv)->ListOfRouters;
RouterData(theEnv)->ListOfRouters = newPtr;
}
else
{
newPtr->next = currentPtr;
lastPtr->next = newPtr;
}
return(1);
}
/*****************************************************************/
/* EnvDeleteRouter: Removes an I/O router from the list of routers. */
/*****************************************************************/
globle int EnvDeleteRouter(
void *theEnv,
char *routerName)
{
struct router *currentPtr, *lastPtr;
currentPtr = RouterData(theEnv)->ListOfRouters;
lastPtr = NULL;
while (currentPtr != NULL)
{
if (strcmp(currentPtr->name,routerName) == 0)
{
genfree(theEnv,currentPtr->name,strlen(currentPtr->name) + 1);
if (lastPtr == NULL)
{
RouterData(theEnv)->ListOfRouters = currentPtr->next;
rm(theEnv,currentPtr,(int) sizeof(struct router));
return(1);
}
lastPtr->next = currentPtr->next;
rm(theEnv,currentPtr,(int) sizeof(struct router));
return(1);
}
lastPtr = currentPtr;
currentPtr = currentPtr->next;
}
return(0);
}
/*********************************************************************/
/* QueryRouters: Determines if any router recognizes a logical name. */
/*********************************************************************/
globle int QueryRouters(
void *theEnv,
char *logicalName)
{
struct router *currentPtr;
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
if (QueryRouter(theEnv,logicalName,currentPtr) == TRUE) return(TRUE);
currentPtr = currentPtr->next;
}
return(FALSE);
}
/************************************************/
/* QueryRouter: Determines if a specific router */
/* recognizes a logical name. */
/************************************************/
static int QueryRouter(
void *theEnv,
char *logicalName,
struct router *currentPtr)
{
/*===================================================*/
/* If the router is inactive, then it can't respond. */
/*===================================================*/
if (currentPtr->active == FALSE)
{ return(FALSE); }
/*=============================================================*/
/* If the router has no query function, then it can't respond. */
/*=============================================================*/
if (currentPtr->query == NULL) return(FALSE);
/*=========================================*/
/* Call the router's query function to see */
/* if it recognizes the logical name. */
/*=========================================*/
SetEnvironmentRouterContext(theEnv,currentPtr->context);
if (currentPtr->environmentAware)
{
if ((*currentPtr->query)(theEnv,logicalName) == TRUE)
{ return(TRUE); }
}
else
{
if (((int (*)(char *)) (*currentPtr->query))(logicalName) == TRUE)
{ return(TRUE); }
}
return(FALSE);
}
/*******************************************************/
/* EnvDeactivateRouter: Deactivates a specific router. */
/*******************************************************/
globle int EnvDeactivateRouter(
void *theEnv,
char *routerName)
{
struct router *currentPtr;
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
if (strcmp(currentPtr->name,routerName) == 0)
{
currentPtr->active = FALSE;
return(TRUE);
}
currentPtr = currentPtr->next;
}
return(FALSE);
}
/***************************************************/
/* EnvActivateRouter: Activates a specific router. */
/***************************************************/
globle int EnvActivateRouter(
void *theEnv,
char *routerName)
{
struct router *currentPtr;
currentPtr = RouterData(theEnv)->ListOfRouters;
while (currentPtr != NULL)
{
if (strcmp(currentPtr->name,routerName) == 0)
{
currentPtr->active = TRUE;
return(TRUE);
}
currentPtr = currentPtr->next;
}
return(FALSE);
}
/********************************************************/
/* SetFastLoad: Used to bypass router system for loads. */
/********************************************************/
globle void SetFastLoad(
void *theEnv,
FILE *filePtr)
{
RouterData(theEnv)->FastLoadFilePtr = filePtr;
}
/********************************************************/
/* SetFastSave: Used to bypass router system for saves. */
/********************************************************/
globle void SetFastSave(
void *theEnv,
FILE *filePtr)
{
RouterData(theEnv)->FastSaveFilePtr = filePtr;
}
/******************************************************/
/* GetFastLoad: Returns the "fast load" file pointer. */
/******************************************************/
globle FILE *GetFastLoad(
void *theEnv)
{
return(RouterData(theEnv)->FastLoadFilePtr);
}
/******************************************************/
/* GetFastSave: Returns the "fast save" file pointer. */
/******************************************************/
globle FILE *GetFastSave(
void *theEnv)
{
return(RouterData(theEnv)->FastSaveFilePtr);
}
/*****************************************************/
/* UnrecognizedRouterMessage: Standard error message */
/* for an unrecognized router name. */
/*****************************************************/
globle void UnrecognizedRouterMessage(
void *theEnv,
char *logicalName)
{
PrintErrorID(theEnv,"ROUTER",1,FALSE);
EnvPrintRouter(theEnv,WERROR,"Logical name ");
EnvPrintRouter(theEnv,WERROR,logicalName);
EnvPrintRouter(theEnv,WERROR," was not recognized by any routers\n");
}
/*****************************************/
/* PrintNRouter: Generic print function. */
/*****************************************/
globle int PrintNRouter(
void *theEnv,
char *logicalName,
char *str,
unsigned long length)
{
char *tempStr;
int rv;
tempStr = (char *) genalloc(theEnv,length+1);
genstrncpy(tempStr,str,length);
tempStr[length] = 0;
rv = EnvPrintRouter(theEnv,logicalName,tempStr);
genfree(theEnv,tempStr,length+1);
return(rv);
}
| {
"content_hash": "46be163cd29e4f358b3dc0e67b3d5692",
"timestamp": "",
"source": "github",
"line_count": 745,
"max_line_length": 107,
"avg_line_length": 31.8751677852349,
"alnum_prop": 0.47563902808775843,
"repo_name": "DrItanium/LibExpertSystem",
"id": "ada509cd43e2fa6816843c23c8a64a96d2408dea",
"size": "23747",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "router.c",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "5658834"
},
{
"name": "C++",
"bytes": "256944"
},
{
"name": "CLIPS",
"bytes": "46829"
},
{
"name": "Objective-C",
"bytes": "7544"
}
],
"symlink_target": ""
} |
package com.wenyu.danmuku;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} | {
"content_hash": "f198a74c4ce8703a50e4ecc3b9ccdbc0",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 93,
"avg_line_length": 25.846153846153847,
"alnum_prop": 0.7738095238095238,
"repo_name": "ChanJLee/android_live",
"id": "44d1974df861675119d8ab6627b8c35b03207d29",
"size": "336",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "danmaku/src/androidTest/java/com/wenyu/danmuku/ApplicationTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "GLSL",
"bytes": "1099"
},
{
"name": "Java",
"bytes": "672755"
},
{
"name": "Shell",
"bytes": "350"
}
],
"symlink_target": ""
} |
<?php namespace Fungku\NetSuite\Classes;
class FileEncoding {
static $paramtypesmap = array(
);
const _autoDetect = "_autoDetect";
const _shiftJis = "_shiftJis";
const _utf8 = "_utf8";
const _windows1252 = "_windows1252";
}
| {
"content_hash": "664856c685be00aa739fbcef200eb70e",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 40,
"avg_line_length": 21.09090909090909,
"alnum_prop": 0.6896551724137931,
"repo_name": "bitclaw/netsuite-php",
"id": "287df2866e4c5e5bff74441121d377b8de1b57f2",
"size": "232",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/Classes/FileEncoding.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "PHP",
"bytes": "1541401"
}
],
"symlink_target": ""
} |
import Helper, { states } from './_helper';
import { module, test } from 'qunit';
module('Integration | ORM | Has Many | Many to Many | accessor', {
beforeEach() {
this.helper = new Helper();
}
});
states.forEach((state) => {
test(`the references of a ${state} are correct`, function(assert) {
let [ order, products ] = this.helper[state]();
assert.equal(order.products.models.length, products.length, 'the parent has the correct number of children');
assert.equal(order.productIds.length, products.length, 'the parent has the correct number of children ids');
products.forEach((p, i) => {
assert.deepEqual(order.products.models[i], p, 'each child is in parent.children array');
if (p.isSaved()) {
assert.ok(order.productIds.indexOf(p.id) > -1, 'each saved child id is in parent.childrenIds array');
}
// Check the inverse
assert.ok(p.orders.includes(order));
});
});
});
| {
"content_hash": "a56431d32b411a3509d3eb573ac989e3",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 113,
"avg_line_length": 31.666666666666668,
"alnum_prop": 0.6463157894736842,
"repo_name": "mixonic/ember-cli-mirage",
"id": "1ed3a728bdc0b1caac811fbe639753d1bfce8946",
"size": "950",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tests/integration/orm/has-many/8-many-to-many/accessor-test.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "31"
},
{
"name": "HTML",
"bytes": "3120"
},
{
"name": "JavaScript",
"bytes": "816132"
}
],
"symlink_target": ""
} |
namespace dota2
{
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoFileHeader")]
public partial class CDemoFileHeader : global::ProtoBuf.IExtensible
{
public CDemoFileHeader() { }
private string _demo_file_stamp;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"demo_file_stamp", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string demo_file_stamp
{
get { return _demo_file_stamp; }
set { _demo_file_stamp = value; }
}
private int _network_protocol = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"network_protocol", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int network_protocol
{
get { return _network_protocol; }
set { _network_protocol = value; }
}
private string _server_name = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"server_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string server_name
{
get { return _server_name; }
set { _server_name = value; }
}
private string _client_name = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"client_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string client_name
{
get { return _client_name; }
set { _client_name = value; }
}
private string _map_name = "";
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"map_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string map_name
{
get { return _map_name; }
set { _map_name = value; }
}
private string _game_directory = "";
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"game_directory", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string game_directory
{
get { return _game_directory; }
set { _game_directory = value; }
}
private int _fullpackets_version = default(int);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"fullpackets_version", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int fullpackets_version
{
get { return _fullpackets_version; }
set { _fullpackets_version = value; }
}
private bool _allow_clientside_entities = default(bool);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"allow_clientside_entities", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool allow_clientside_entities
{
get { return _allow_clientside_entities; }
set { _allow_clientside_entities = value; }
}
private bool _allow_clientside_particles = default(bool);
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"allow_clientside_particles", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool allow_clientside_particles
{
get { return _allow_clientside_particles; }
set { _allow_clientside_particles = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CGameInfo")]
public partial class CGameInfo : global::ProtoBuf.IExtensible
{
public CGameInfo() { }
private CGameInfo.CDotaGameInfo _dota = null;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"dota", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CGameInfo.CDotaGameInfo dota
{
get { return _dota; }
set { _dota = value; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDotaGameInfo")]
public partial class CDotaGameInfo : global::ProtoBuf.IExtensible
{
public CDotaGameInfo() { }
private uint _match_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"match_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint match_id
{
get { return _match_id; }
set { _match_id = value; }
}
private int _game_mode = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"game_mode", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int game_mode
{
get { return _game_mode; }
set { _game_mode = value; }
}
private int _game_winner = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"game_winner", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int game_winner
{
get { return _game_winner; }
set { _game_winner = value; }
}
private readonly global::System.Collections.Generic.List<CGameInfo.CDotaGameInfo.CPlayerInfo> _player_info = new global::System.Collections.Generic.List<CGameInfo.CDotaGameInfo.CPlayerInfo>();
[global::ProtoBuf.ProtoMember(4, Name = @"player_info", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CGameInfo.CDotaGameInfo.CPlayerInfo> player_info
{
get { return _player_info; }
}
private uint _leagueid = default(uint);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"leagueid", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint leagueid
{
get { return _leagueid; }
set { _leagueid = value; }
}
private readonly global::System.Collections.Generic.List<CGameInfo.CDotaGameInfo.CHeroSelectEvent> _picks_bans = new global::System.Collections.Generic.List<CGameInfo.CDotaGameInfo.CHeroSelectEvent>();
[global::ProtoBuf.ProtoMember(6, Name = @"picks_bans", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CGameInfo.CDotaGameInfo.CHeroSelectEvent> picks_bans
{
get { return _picks_bans; }
}
private uint _radiant_team_id = default(uint);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"radiant_team_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint radiant_team_id
{
get { return _radiant_team_id; }
set { _radiant_team_id = value; }
}
private uint _dire_team_id = default(uint);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"dire_team_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint dire_team_id
{
get { return _dire_team_id; }
set { _dire_team_id = value; }
}
private string _radiant_team_tag = "";
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"radiant_team_tag", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string radiant_team_tag
{
get { return _radiant_team_tag; }
set { _radiant_team_tag = value; }
}
private string _dire_team_tag = "";
[global::ProtoBuf.ProtoMember(10, IsRequired = false, Name = @"dire_team_tag", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string dire_team_tag
{
get { return _dire_team_tag; }
set { _dire_team_tag = value; }
}
private uint _end_time = default(uint);
[global::ProtoBuf.ProtoMember(11, IsRequired = false, Name = @"end_time", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint end_time
{
get { return _end_time; }
set { _end_time = value; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CPlayerInfo")]
public partial class CPlayerInfo : global::ProtoBuf.IExtensible
{
public CPlayerInfo() { }
private string _hero_name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"hero_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string hero_name
{
get { return _hero_name; }
set { _hero_name = value; }
}
private string _player_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"player_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string player_name
{
get { return _player_name; }
set { _player_name = value; }
}
private bool _is_fake_client = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"is_fake_client", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_fake_client
{
get { return _is_fake_client; }
set { _is_fake_client = value; }
}
private ulong _steamid = default(ulong);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"steamid", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(ulong))]
public ulong steamid
{
get { return _steamid; }
set { _steamid = value; }
}
private int _game_team = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"game_team", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int game_team
{
get { return _game_team; }
set { _game_team = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CHeroSelectEvent")]
public partial class CHeroSelectEvent : global::ProtoBuf.IExtensible
{
public CHeroSelectEvent() { }
private bool _is_pick = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"is_pick", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_pick
{
get { return _is_pick; }
set { _is_pick = value; }
}
private uint _team = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"team", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint team
{
get { return _team; }
set { _team = value; }
}
private uint _hero_id = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"hero_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint hero_id
{
get { return _hero_id; }
set { _hero_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoFileInfo")]
public partial class CDemoFileInfo : global::ProtoBuf.IExtensible
{
public CDemoFileInfo() { }
private float _playback_time = default(float);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"playback_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float playback_time
{
get { return _playback_time; }
set { _playback_time = value; }
}
private int _playback_ticks = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"playback_ticks", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int playback_ticks
{
get { return _playback_ticks; }
set { _playback_ticks = value; }
}
private int _playback_frames = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"playback_frames", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int playback_frames
{
get { return _playback_frames; }
set { _playback_frames = value; }
}
private CGameInfo _game_info = null;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"game_info", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CGameInfo game_info
{
get { return _game_info; }
set { _game_info = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoPacket")]
public partial class CDemoPacket : global::ProtoBuf.IExtensible
{
public CDemoPacket() { }
private int _sequence_in = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"sequence_in", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int sequence_in
{
get { return _sequence_in; }
set { _sequence_in = value; }
}
private int _sequence_out_ack = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"sequence_out_ack", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int sequence_out_ack
{
get { return _sequence_out_ack; }
set { _sequence_out_ack = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoFullPacket")]
public partial class CDemoFullPacket : global::ProtoBuf.IExtensible
{
public CDemoFullPacket() { }
private CDemoStringTables _string_table = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"string_table", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDemoStringTables string_table
{
get { return _string_table; }
set { _string_table = value; }
}
private CDemoPacket _packet = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"packet", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDemoPacket packet
{
get { return _packet; }
set { _packet = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoSaveGame")]
public partial class CDemoSaveGame : global::ProtoBuf.IExtensible
{
public CDemoSaveGame() { }
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private ulong _steam_id = default(ulong);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"steam_id", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(ulong))]
public ulong steam_id
{
get { return _steam_id; }
set { _steam_id = value; }
}
private ulong _signature = default(ulong);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"signature", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(ulong))]
public ulong signature
{
get { return _signature; }
set { _signature = value; }
}
private int _version = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"version", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int version
{
get { return _version; }
set { _version = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoSyncTick")]
public partial class CDemoSyncTick : global::ProtoBuf.IExtensible
{
public CDemoSyncTick() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoConsoleCmd")]
public partial class CDemoConsoleCmd : global::ProtoBuf.IExtensible
{
public CDemoConsoleCmd() { }
private string _cmdstring = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"cmdstring", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string cmdstring
{
get { return _cmdstring; }
set { _cmdstring = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoSendTables")]
public partial class CDemoSendTables : global::ProtoBuf.IExtensible
{
public CDemoSendTables() { }
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoClassInfo")]
public partial class CDemoClassInfo : global::ProtoBuf.IExtensible
{
public CDemoClassInfo() { }
private readonly global::System.Collections.Generic.List<CDemoClassInfo.class_t> _classes = new global::System.Collections.Generic.List<CDemoClassInfo.class_t>();
[global::ProtoBuf.ProtoMember(1, Name = @"classes", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDemoClassInfo.class_t> classes
{
get { return _classes; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"class_t")]
public partial class class_t : global::ProtoBuf.IExtensible
{
public class_t() { }
private int _class_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"class_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int class_id
{
get { return _class_id; }
set { _class_id = value; }
}
private string _network_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"network_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string network_name
{
get { return _network_name; }
set { _network_name = value; }
}
private string _table_name = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"table_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string table_name
{
get { return _table_name; }
set { _table_name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoCustomData")]
public partial class CDemoCustomData : global::ProtoBuf.IExtensible
{
public CDemoCustomData() { }
private int _callback_index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"callback_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int callback_index
{
get { return _callback_index; }
set { _callback_index = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoCustomDataCallbacks")]
public partial class CDemoCustomDataCallbacks : global::ProtoBuf.IExtensible
{
public CDemoCustomDataCallbacks() { }
private readonly global::System.Collections.Generic.List<string> _save_id = new global::System.Collections.Generic.List<string>();
[global::ProtoBuf.ProtoMember(1, Name = @"save_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<string> save_id
{
get { return _save_id; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoStringTables")]
public partial class CDemoStringTables : global::ProtoBuf.IExtensible
{
public CDemoStringTables() { }
private readonly global::System.Collections.Generic.List<CDemoStringTables.table_t> _tables = new global::System.Collections.Generic.List<CDemoStringTables.table_t>();
[global::ProtoBuf.ProtoMember(1, Name = @"tables", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDemoStringTables.table_t> tables
{
get { return _tables; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"items_t")]
public partial class items_t : global::ProtoBuf.IExtensible
{
public items_t() { }
private string _str = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"str", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string str
{
get { return _str; }
set { _str = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"table_t")]
public partial class table_t : global::ProtoBuf.IExtensible
{
public table_t() { }
private string _table_name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"table_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string table_name
{
get { return _table_name; }
set { _table_name = value; }
}
private readonly global::System.Collections.Generic.List<CDemoStringTables.items_t> _items = new global::System.Collections.Generic.List<CDemoStringTables.items_t>();
[global::ProtoBuf.ProtoMember(2, Name = @"items", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDemoStringTables.items_t> items
{
get { return _items; }
}
private readonly global::System.Collections.Generic.List<CDemoStringTables.items_t> _items_clientside = new global::System.Collections.Generic.List<CDemoStringTables.items_t>();
[global::ProtoBuf.ProtoMember(3, Name = @"items_clientside", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDemoStringTables.items_t> items_clientside
{
get { return _items_clientside; }
}
private int _table_flags = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"table_flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int table_flags
{
get { return _table_flags; }
set { _table_flags = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoStop")]
public partial class CDemoStop : global::ProtoBuf.IExtensible
{
public CDemoStop() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDemoUserCmd")]
public partial class CDemoUserCmd : global::ProtoBuf.IExtensible
{
public CDemoUserCmd() { }
private int _cmd_number = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"cmd_number", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int cmd_number
{
get { return _cmd_number; }
set { _cmd_number = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAMsg_LocationPing")]
public partial class CDOTAMsg_LocationPing : global::ProtoBuf.IExtensible
{
public CDOTAMsg_LocationPing() { }
private int _x = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int x
{
get { return _x; }
set { _x = value; }
}
private int _y = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int y
{
get { return _y; }
set { _y = value; }
}
private int _target = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"target", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int target
{
get { return _target; }
set { _target = value; }
}
private bool _direct_ping = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"direct_ping", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool direct_ping
{
get { return _direct_ping; }
set { _direct_ping = value; }
}
private int _type = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int type
{
get { return _type; }
set { _type = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAMsg_ItemAlert")]
public partial class CDOTAMsg_ItemAlert : global::ProtoBuf.IExtensible
{
public CDOTAMsg_ItemAlert() { }
private int _x = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int x
{
get { return _x; }
set { _x = value; }
}
private int _y = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int y
{
get { return _y; }
set { _y = value; }
}
private int _itemid = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"itemid", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int itemid
{
get { return _itemid; }
set { _itemid = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAMsg_MapLine")]
public partial class CDOTAMsg_MapLine : global::ProtoBuf.IExtensible
{
public CDOTAMsg_MapLine() { }
private int _x = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int x
{
get { return _x; }
set { _x = value; }
}
private int _y = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int y
{
get { return _y; }
set { _y = value; }
}
private bool _initial = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"initial", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool initial
{
get { return _initial; }
set { _initial = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAMsg_WorldLine")]
public partial class CDOTAMsg_WorldLine : global::ProtoBuf.IExtensible
{
public CDOTAMsg_WorldLine() { }
private int _x = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int x
{
get { return _x; }
set { _x = value; }
}
private int _y = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int y
{
get { return _y; }
set { _y = value; }
}
private int _z = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"z", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int z
{
get { return _z; }
set { _z = value; }
}
private bool _initial = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"initial", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool initial
{
get { return _initial; }
set { _initial = value; }
}
private bool _end = default(bool);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"end", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool end
{
get { return _end; }
set { _end = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAMsg_SendStatPopup")]
public partial class CDOTAMsg_SendStatPopup : global::ProtoBuf.IExtensible
{
public CDOTAMsg_SendStatPopup() { }
private EDOTAStatPopupTypes _style = EDOTAStatPopupTypes.k_EDOTA_SPT_Textline;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"style", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(EDOTAStatPopupTypes.k_EDOTA_SPT_Textline)]
public EDOTAStatPopupTypes style
{
get { return _style; }
set { _style = value; }
}
private readonly global::System.Collections.Generic.List<string> _stat_strings = new global::System.Collections.Generic.List<string>();
[global::ProtoBuf.ProtoMember(2, Name = @"stat_strings", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<string> stat_strings
{
get { return _stat_strings; }
}
private readonly global::System.Collections.Generic.List<int> _stat_images = new global::System.Collections.Generic.List<int>();
[global::ProtoBuf.ProtoMember(3, Name = @"stat_images", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<int> stat_images
{
get { return _stat_images; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAMsg_CoachHUDPing")]
public partial class CDOTAMsg_CoachHUDPing : global::ProtoBuf.IExtensible
{
public CDOTAMsg_CoachHUDPing() { }
private uint _x = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint x
{
get { return _x; }
set { _x = value; }
}
private uint _y = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint y
{
get { return _y; }
set { _y = value; }
}
private string _tgtpath = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"tgtpath", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string tgtpath
{
get { return _tgtpath; }
set { _tgtpath = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAModifierBuffTableEntry")]
public partial class CDOTAModifierBuffTableEntry : global::ProtoBuf.IExtensible
{
public CDOTAModifierBuffTableEntry() { }
private DOTA_MODIFIER_ENTRY_TYPE _entry_type;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"entry_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public DOTA_MODIFIER_ENTRY_TYPE entry_type
{
get { return _entry_type; }
set { _entry_type = value; }
}
private int _parent;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name = @"parent", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int parent
{
get { return _parent; }
set { _parent = value; }
}
private int _index;
[global::ProtoBuf.ProtoMember(3, IsRequired = true, Name = @"index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int index
{
get { return _index; }
set { _index = value; }
}
private int _serial_num;
[global::ProtoBuf.ProtoMember(4, IsRequired = true, Name = @"serial_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int serial_num
{
get { return _serial_num; }
set { _serial_num = value; }
}
private int _modifier_class = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"modifier_class", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int modifier_class
{
get { return _modifier_class; }
set { _modifier_class = value; }
}
private int _ability_level = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"ability_level", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int ability_level
{
get { return _ability_level; }
set { _ability_level = value; }
}
private int _stack_count = default(int);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"stack_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int stack_count
{
get { return _stack_count; }
set { _stack_count = value; }
}
private float _creation_time = default(float);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"creation_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float creation_time
{
get { return _creation_time; }
set { _creation_time = value; }
}
private float _duration = (float)-1;
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue((float)-1)]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private int _caster = default(int);
[global::ProtoBuf.ProtoMember(10, IsRequired = false, Name = @"caster", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int caster
{
get { return _caster; }
set { _caster = value; }
}
private int _ability = default(int);
[global::ProtoBuf.ProtoMember(11, IsRequired = false, Name = @"ability", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int ability
{
get { return _ability; }
set { _ability = value; }
}
private int _armor = default(int);
[global::ProtoBuf.ProtoMember(12, IsRequired = false, Name = @"armor", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int armor
{
get { return _armor; }
set { _armor = value; }
}
private float _fade_time = default(float);
[global::ProtoBuf.ProtoMember(13, IsRequired = false, Name = @"fade_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float fade_time
{
get { return _fade_time; }
set { _fade_time = value; }
}
private bool _subtle = default(bool);
[global::ProtoBuf.ProtoMember(14, IsRequired = false, Name = @"subtle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool subtle
{
get { return _subtle; }
set { _subtle = value; }
}
private float _channel_time = default(float);
[global::ProtoBuf.ProtoMember(15, IsRequired = false, Name = @"channel_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float channel_time
{
get { return _channel_time; }
set { _channel_time = value; }
}
private CMsgVector _v_start = null;
[global::ProtoBuf.ProtoMember(16, IsRequired = false, Name = @"v_start", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector v_start
{
get { return _v_start; }
set { _v_start = value; }
}
private CMsgVector _v_end = null;
[global::ProtoBuf.ProtoMember(17, IsRequired = false, Name = @"v_end", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector v_end
{
get { return _v_end; }
set { _v_end = value; }
}
private string _portal_loop_appear = "";
[global::ProtoBuf.ProtoMember(18, IsRequired = false, Name = @"portal_loop_appear", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string portal_loop_appear
{
get { return _portal_loop_appear; }
set { _portal_loop_appear = value; }
}
private string _portal_loop_disappear = "";
[global::ProtoBuf.ProtoMember(19, IsRequired = false, Name = @"portal_loop_disappear", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string portal_loop_disappear
{
get { return _portal_loop_disappear; }
set { _portal_loop_disappear = value; }
}
private string _hero_loop_appear = "";
[global::ProtoBuf.ProtoMember(20, IsRequired = false, Name = @"hero_loop_appear", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string hero_loop_appear
{
get { return _hero_loop_appear; }
set { _hero_loop_appear = value; }
}
private string _hero_loop_disappear = "";
[global::ProtoBuf.ProtoMember(21, IsRequired = false, Name = @"hero_loop_disappear", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string hero_loop_disappear
{
get { return _hero_loop_disappear; }
set { _hero_loop_disappear = value; }
}
private int _movement_speed = default(int);
[global::ProtoBuf.ProtoMember(22, IsRequired = false, Name = @"movement_speed", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int movement_speed
{
get { return _movement_speed; }
set { _movement_speed = value; }
}
private bool _aura = default(bool);
[global::ProtoBuf.ProtoMember(23, IsRequired = false, Name = @"aura", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool aura
{
get { return _aura; }
set { _aura = value; }
}
private int _activity = default(int);
[global::ProtoBuf.ProtoMember(24, IsRequired = false, Name = @"activity", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int activity
{
get { return _activity; }
set { _activity = value; }
}
private int _damage = default(int);
[global::ProtoBuf.ProtoMember(25, IsRequired = false, Name = @"damage", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int damage
{
get { return _damage; }
set { _damage = value; }
}
private int _range = default(int);
[global::ProtoBuf.ProtoMember(26, IsRequired = false, Name = @"range", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int range
{
get { return _range; }
set { _range = value; }
}
private int _dd_modifier_index = default(int);
[global::ProtoBuf.ProtoMember(27, IsRequired = false, Name = @"dd_modifier_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int dd_modifier_index
{
get { return _dd_modifier_index; }
set { _dd_modifier_index = value; }
}
private int _dd_ability_index = default(int);
[global::ProtoBuf.ProtoMember(28, IsRequired = false, Name = @"dd_ability_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int dd_ability_index
{
get { return _dd_ability_index; }
set { _dd_ability_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_AIDebugLine")]
public partial class CDOTAUserMsg_AIDebugLine : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_AIDebugLine() { }
private string _message = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_Ping")]
public partial class CDOTAUserMsg_Ping : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_Ping() { }
private string _message = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SwapVerify")]
public partial class CDOTAUserMsg_SwapVerify : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SwapVerify() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ChatEvent")]
public partial class CDOTAUserMsg_ChatEvent : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ChatEvent() { }
private DOTA_CHAT_MESSAGE _type;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public DOTA_CHAT_MESSAGE type
{
get { return _type; }
set { _type = value; }
}
private uint _value = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint value
{
get { return _value; }
set { _value = value; }
}
private int _playerid_1 = (int)-1;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"playerid_1", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int playerid_1
{
get { return _playerid_1; }
set { _playerid_1 = value; }
}
private int _playerid_2 = (int)-1;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"playerid_2", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int playerid_2
{
get { return _playerid_2; }
set { _playerid_2 = value; }
}
private int _playerid_3 = (int)-1;
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"playerid_3", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int playerid_3
{
get { return _playerid_3; }
set { _playerid_3 = value; }
}
private int _playerid_4 = (int)-1;
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"playerid_4", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int playerid_4
{
get { return _playerid_4; }
set { _playerid_4 = value; }
}
private int _playerid_5 = (int)-1;
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"playerid_5", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int playerid_5
{
get { return _playerid_5; }
set { _playerid_5 = value; }
}
private int _playerid_6 = (int)-1;
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"playerid_6", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue((int)-1)]
public int playerid_6
{
get { return _playerid_6; }
set { _playerid_6 = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CombatLogData")]
public partial class CDOTAUserMsg_CombatLogData : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CombatLogData() { }
private DOTA_COMBATLOG_TYPES _type = DOTA_COMBATLOG_TYPES.DOTA_COMBATLOG_DAMAGE;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(DOTA_COMBATLOG_TYPES.DOTA_COMBATLOG_DAMAGE)]
public DOTA_COMBATLOG_TYPES type
{
get { return _type; }
set { _type = value; }
}
private uint _target_name = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"target_name", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint target_name
{
get { return _target_name; }
set { _target_name = value; }
}
private uint _attacker_name = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"attacker_name", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint attacker_name
{
get { return _attacker_name; }
set { _attacker_name = value; }
}
private bool _attacker_illusion = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"attacker_illusion", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool attacker_illusion
{
get { return _attacker_illusion; }
set { _attacker_illusion = value; }
}
private bool _target_illusion = default(bool);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"target_illusion", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool target_illusion
{
get { return _target_illusion; }
set { _target_illusion = value; }
}
private uint _inflictor_name = default(uint);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"inflictor_name", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint inflictor_name
{
get { return _inflictor_name; }
set { _inflictor_name = value; }
}
private int _value = default(int);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int value
{
get { return _value; }
set { _value = value; }
}
private int _health = default(int);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"health", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int health
{
get { return _health; }
set { _health = value; }
}
private float _time = default(float);
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float time
{
get { return _time; }
set { _time = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CombatLogShowDeath")]
public partial class CDOTAUserMsg_CombatLogShowDeath : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CombatLogShowDeath() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_BotChat")]
public partial class CDOTAUserMsg_BotChat : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_BotChat() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private string _format = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"format", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string format
{
get { return _format; }
set { _format = value; }
}
private string _message = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private string _target = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"target", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string target
{
get { return _target; }
set { _target = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CombatHeroPositions")]
public partial class CDOTAUserMsg_CombatHeroPositions : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CombatHeroPositions() { }
private uint _index = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint index
{
get { return _index; }
set { _index = value; }
}
private int _time = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"time", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int time
{
get { return _time; }
set { _time = value; }
}
private CMsgVector2D _world_pos = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"world_pos", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector2D world_pos
{
get { return _world_pos; }
set { _world_pos = value; }
}
private int _health = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"health", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int health
{
get { return _health; }
set { _health = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_MiniKillCamInfo")]
public partial class CDOTAUserMsg_MiniKillCamInfo : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_MiniKillCamInfo() { }
private readonly global::System.Collections.Generic.List<CDOTAUserMsg_MiniKillCamInfo.Attacker> _attackers = new global::System.Collections.Generic.List<CDOTAUserMsg_MiniKillCamInfo.Attacker>();
[global::ProtoBuf.ProtoMember(1, Name = @"attackers", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDOTAUserMsg_MiniKillCamInfo.Attacker> attackers
{
get { return _attackers; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"Attacker")]
public partial class Attacker : global::ProtoBuf.IExtensible
{
public Attacker() { }
private uint _attacker = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"attacker", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint attacker
{
get { return _attacker; }
set { _attacker = value; }
}
private int _total_damage = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"total_damage", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int total_damage
{
get { return _total_damage; }
set { _total_damage = value; }
}
private readonly global::System.Collections.Generic.List<CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability> _abilities = new global::System.Collections.Generic.List<CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability>();
[global::ProtoBuf.ProtoMember(3, Name = @"abilities", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDOTAUserMsg_MiniKillCamInfo.Attacker.Ability> abilities
{
get { return _abilities; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"Ability")]
public partial class Ability : global::ProtoBuf.IExtensible
{
public Ability() { }
private uint _ability = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"ability", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint ability
{
get { return _ability; }
set { _ability = value; }
}
private int _damage = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"damage", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int damage
{
get { return _damage; }
set { _damage = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_GlobalLightColor")]
public partial class CDOTAUserMsg_GlobalLightColor : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_GlobalLightColor() { }
private uint _color = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"color", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint color
{
get { return _color; }
set { _color = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_GlobalLightDirection")]
public partial class CDOTAUserMsg_GlobalLightDirection : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_GlobalLightDirection() { }
private CMsgVector _direction = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"direction", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector direction
{
get { return _direction; }
set { _direction = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_LocationPing")]
public partial class CDOTAUserMsg_LocationPing : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_LocationPing() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private CDOTAMsg_LocationPing _location_ping = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"location_ping", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAMsg_LocationPing location_ping
{
get { return _location_ping; }
set { _location_ping = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ItemAlert")]
public partial class CDOTAUserMsg_ItemAlert : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ItemAlert() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private CDOTAMsg_ItemAlert _item_alert = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"item_alert", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAMsg_ItemAlert item_alert
{
get { return _item_alert; }
set { _item_alert = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_WillPurchaseAlert")]
public partial class CDOTAUserMsg_WillPurchaseAlert : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_WillPurchaseAlert() { }
private int _itemid = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"itemid", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int itemid
{
get { return _itemid; }
set { _itemid = value; }
}
private int _player_id = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CourierKilledAlert")]
public partial class CDOTAUserMsg_CourierKilledAlert : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CourierKilledAlert() { }
private uint _team = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"team", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint team
{
get { return _team; }
set { _team = value; }
}
private uint _gold_value = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"gold_value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint gold_value
{
get { return _gold_value; }
set { _gold_value = value; }
}
private int _entity_handle = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"entity_handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_handle
{
get { return _entity_handle; }
set { _entity_handle = value; }
}
private int _timestamp = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"timestamp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int timestamp
{
get { return _timestamp; }
set { _timestamp = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_MinimapEvent")]
public partial class CDOTAUserMsg_MinimapEvent : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_MinimapEvent() { }
private int _event_type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"event_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int event_type
{
get { return _event_type; }
set { _event_type = value; }
}
private int _entity_handle = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"entity_handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_handle
{
get { return _entity_handle; }
set { _entity_handle = value; }
}
private int _x = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int x
{
get { return _x; }
set { _x = value; }
}
private int _y = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int y
{
get { return _y; }
set { _y = value; }
}
private int _duration = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int duration
{
get { return _duration; }
set { _duration = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_MapLine")]
public partial class CDOTAUserMsg_MapLine : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_MapLine() { }
private int _player_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private CDOTAMsg_MapLine _mapline = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"mapline", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAMsg_MapLine mapline
{
get { return _mapline; }
set { _mapline = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_MinimapDebugPoint")]
public partial class CDOTAUserMsg_MinimapDebugPoint : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_MinimapDebugPoint() { }
private CMsgVector _location = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"location", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector location
{
get { return _location; }
set { _location = value; }
}
private uint _color = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"color", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint color
{
get { return _color; }
set { _color = value; }
}
private int _size = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"size", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int size
{
get { return _size; }
set { _size = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CreateLinearProjectile")]
public partial class CDOTAUserMsg_CreateLinearProjectile : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CreateLinearProjectile() { }
private CMsgVector _origin = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"origin", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector origin
{
get { return _origin; }
set { _origin = value; }
}
private CMsgVector2D _velocity = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"velocity", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector2D velocity
{
get { return _velocity; }
set { _velocity = value; }
}
private int _latency = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"latency", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int latency
{
get { return _latency; }
set { _latency = value; }
}
private int _entindex = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entindex
{
get { return _entindex; }
set { _entindex = value; }
}
private int _particle_index = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"particle_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int particle_index
{
get { return _particle_index; }
set { _particle_index = value; }
}
private int _handle = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int handle
{
get { return _handle; }
set { _handle = value; }
}
private CMsgVector2D _acceleration = null;
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"acceleration", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector2D acceleration
{
get { return _acceleration; }
set { _acceleration = value; }
}
private float _max_speed = default(float);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"max_speed", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float max_speed
{
get { return _max_speed; }
set { _max_speed = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_DestroyLinearProjectile")]
public partial class CDOTAUserMsg_DestroyLinearProjectile : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_DestroyLinearProjectile() { }
private int _handle = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int handle
{
get { return _handle; }
set { _handle = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_DodgeTrackingProjectiles")]
public partial class CDOTAUserMsg_DodgeTrackingProjectiles : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_DodgeTrackingProjectiles() { }
private int _entindex;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int entindex
{
get { return _entindex; }
set { _entindex = value; }
}
private bool _attacks_only = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"attacks_only", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool attacks_only
{
get { return _attacks_only; }
set { _attacks_only = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SpectatorPlayerClick")]
public partial class CDOTAUserMsg_SpectatorPlayerClick : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SpectatorPlayerClick() { }
private int _entindex;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int entindex
{
get { return _entindex; }
set { _entindex = value; }
}
private int _order_type = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"order_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int order_type
{
get { return _order_type; }
set { _order_type = value; }
}
private int _target_index = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"target_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int target_index
{
get { return _target_index; }
set { _target_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_NevermoreRequiem")]
public partial class CDOTAUserMsg_NevermoreRequiem : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_NevermoreRequiem() { }
private int _entity_handle = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"entity_handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_handle
{
get { return _entity_handle; }
set { _entity_handle = value; }
}
private int _lines = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"lines", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int lines
{
get { return _lines; }
set { _lines = value; }
}
private CMsgVector _origin = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"origin", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector origin
{
get { return _origin; }
set { _origin = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_InvalidCommand")]
public partial class CDOTAUserMsg_InvalidCommand : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_InvalidCommand() { }
private string _message = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_HudError")]
public partial class CDOTAUserMsg_HudError : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_HudError() { }
private int _order_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"order_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int order_id
{
get { return _order_id; }
set { _order_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SharedCooldown")]
public partial class CDOTAUserMsg_SharedCooldown : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SharedCooldown() { }
private int _entindex = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entindex
{
get { return _entindex; }
set { _entindex = value; }
}
private string _name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private float _cooldown = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"cooldown", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float cooldown
{
get { return _cooldown; }
set { _cooldown = value; }
}
private int _name_index = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"name_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int name_index
{
get { return _name_index; }
set { _name_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SetNextAutobuyItem")]
public partial class CDOTAUserMsg_SetNextAutobuyItem : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SetNextAutobuyItem() { }
private string _name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_HalloweenDrops")]
public partial class CDOTAUserMsg_HalloweenDrops : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_HalloweenDrops() { }
private readonly global::System.Collections.Generic.List<uint> _item_defs = new global::System.Collections.Generic.List<uint>();
[global::ProtoBuf.ProtoMember(1, Name = @"item_defs", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<uint> item_defs
{
get { return _item_defs; }
}
private readonly global::System.Collections.Generic.List<uint> _player_ids = new global::System.Collections.Generic.List<uint>();
[global::ProtoBuf.ProtoMember(2, Name = @"player_ids", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<uint> player_ids
{
get { return _player_ids; }
}
private uint _prize_list = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"prize_list", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint prize_list
{
get { return _prize_list; }
set { _prize_list = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAResponseQuerySerialized")]
public partial class CDOTAResponseQuerySerialized : global::ProtoBuf.IExtensible
{
public CDOTAResponseQuerySerialized() { }
private readonly global::System.Collections.Generic.List<CDOTAResponseQuerySerialized.Fact> _facts = new global::System.Collections.Generic.List<CDOTAResponseQuerySerialized.Fact>();
[global::ProtoBuf.ProtoMember(1, Name = @"facts", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDOTAResponseQuerySerialized.Fact> facts
{
get { return _facts; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"Fact")]
public partial class Fact : global::ProtoBuf.IExtensible
{
public Fact() { }
private int _key;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"key", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int key
{
get { return _key; }
set { _key = value; }
}
private CDOTAResponseQuerySerialized.Fact.ValueType _valtype;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name = @"valtype", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public CDOTAResponseQuerySerialized.Fact.ValueType valtype
{
get { return _valtype; }
set { _valtype = value; }
}
private float _val_numeric = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"val_numeric", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float val_numeric
{
get { return _val_numeric; }
set { _val_numeric = value; }
}
private string _val_string = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"val_string", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string val_string
{
get { return _val_string; }
set { _val_string = value; }
}
[global::ProtoBuf.ProtoContract(Name = @"ValueType")]
public enum ValueType
{
[global::ProtoBuf.ProtoEnum(Name = @"NUMERIC", Value = 1)]
NUMERIC = 1,
[global::ProtoBuf.ProtoEnum(Name = @"STRING", Value = 2)]
STRING = 2
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTASpeechMatchOnClient")]
public partial class CDOTASpeechMatchOnClient : global::ProtoBuf.IExtensible
{
public CDOTASpeechMatchOnClient() { }
private int _concept = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"concept", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int concept
{
get { return _concept; }
set { _concept = value; }
}
private int _recipient_type = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"recipient_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int recipient_type
{
get { return _recipient_type; }
set { _recipient_type = value; }
}
private CDOTAResponseQuerySerialized _responsequery = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"responsequery", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAResponseQuerySerialized responsequery
{
get { return _responsequery; }
set { _responsequery = value; }
}
private int _randomseed = (int)0;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"randomseed", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue((int)0)]
public int randomseed
{
get { return _randomseed; }
set { _randomseed = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_UnitEvent")]
public partial class CDOTAUserMsg_UnitEvent : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_UnitEvent() { }
private EDotaEntityMessages _msg_type;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"msg_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public EDotaEntityMessages msg_type
{
get { return _msg_type; }
set { _msg_type = value; }
}
private int _entity_index;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name = @"entity_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public int entity_index
{
get { return _entity_index; }
set { _entity_index = value; }
}
private CDOTAUserMsg_UnitEvent.Speech _speech = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"speech", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_UnitEvent.Speech speech
{
get { return _speech; }
set { _speech = value; }
}
private CDOTAUserMsg_UnitEvent.SpeechMute _speech_mute = null;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"speech_mute", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_UnitEvent.SpeechMute speech_mute
{
get { return _speech_mute; }
set { _speech_mute = value; }
}
private CDOTAUserMsg_UnitEvent.AddGesture _add_gesture = null;
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"add_gesture", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_UnitEvent.AddGesture add_gesture
{
get { return _add_gesture; }
set { _add_gesture = value; }
}
private CDOTAUserMsg_UnitEvent.RemoveGesture _remove_gesture = null;
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"remove_gesture", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_UnitEvent.RemoveGesture remove_gesture
{
get { return _remove_gesture; }
set { _remove_gesture = value; }
}
private CDOTAUserMsg_UnitEvent.BloodImpact _blood_impact = null;
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"blood_impact", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_UnitEvent.BloodImpact blood_impact
{
get { return _blood_impact; }
set { _blood_impact = value; }
}
private CDOTAUserMsg_UnitEvent.FadeGesture _fade_gesture = null;
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"fade_gesture", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_UnitEvent.FadeGesture fade_gesture
{
get { return _fade_gesture; }
set { _fade_gesture = value; }
}
private CDOTASpeechMatchOnClient _speech_match_on_client = null;
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"speech_match_on_client", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTASpeechMatchOnClient speech_match_on_client
{
get { return _speech_match_on_client; }
set { _speech_match_on_client = value; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"Speech")]
public partial class Speech : global::ProtoBuf.IExtensible
{
public Speech() { }
private int _concept = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"concept", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int concept
{
get { return _concept; }
set { _concept = value; }
}
private string _response = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"response", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string response
{
get { return _response; }
set { _response = value; }
}
private int _recipient_type = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"recipient_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int recipient_type
{
get { return _recipient_type; }
set { _recipient_type = value; }
}
private int _level = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"level", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int level
{
get { return _level; }
set { _level = value; }
}
private bool _muteable = (bool)false;
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"muteable", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue((bool)false)]
public bool muteable
{
get { return _muteable; }
set { _muteable = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"SpeechMute")]
public partial class SpeechMute : global::ProtoBuf.IExtensible
{
public SpeechMute() { }
private float _delay = (float)0.5;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"delay", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue((float)0.5)]
public float delay
{
get { return _delay; }
set { _delay = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"AddGesture")]
public partial class AddGesture : global::ProtoBuf.IExtensible
{
public AddGesture() { }
private Activity _activity = Activity.ACT_INVALID;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"activity", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(Activity.ACT_INVALID)]
public Activity activity
{
get { return _activity; }
set { _activity = value; }
}
private int _slot = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"slot", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int slot
{
get { return _slot; }
set { _slot = value; }
}
private float _fade_in = (float)0;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"fade_in", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue((float)0)]
public float fade_in
{
get { return _fade_in; }
set { _fade_in = value; }
}
private float _fade_out = (float)0.1;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"fade_out", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue((float)0.1)]
public float fade_out
{
get { return _fade_out; }
set { _fade_out = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"RemoveGesture")]
public partial class RemoveGesture : global::ProtoBuf.IExtensible
{
public RemoveGesture() { }
private Activity _activity = Activity.ACT_INVALID;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"activity", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(Activity.ACT_INVALID)]
public Activity activity
{
get { return _activity; }
set { _activity = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"BloodImpact")]
public partial class BloodImpact : global::ProtoBuf.IExtensible
{
public BloodImpact() { }
private int _scale = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"scale", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int scale
{
get { return _scale; }
set { _scale = value; }
}
private int _x_normal = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"x_normal", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int x_normal
{
get { return _x_normal; }
set { _x_normal = value; }
}
private int _y_normal = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"y_normal", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int y_normal
{
get { return _y_normal; }
set { _y_normal = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"FadeGesture")]
public partial class FadeGesture : global::ProtoBuf.IExtensible
{
public FadeGesture() { }
private Activity _activity = Activity.ACT_INVALID;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"activity", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(Activity.ACT_INVALID)]
public Activity activity
{
get { return _activity; }
set { _activity = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ItemPurchased")]
public partial class CDOTAUserMsg_ItemPurchased : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ItemPurchased() { }
private int _item_index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"item_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int item_index
{
get { return _item_index; }
set { _item_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ItemFound")]
public partial class CDOTAUserMsg_ItemFound : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ItemFound() { }
private int _player = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player
{
get { return _player; }
set { _player = value; }
}
private int _quality = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"quality", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int quality
{
get { return _quality; }
set { _quality = value; }
}
private int _rarity = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"rarity", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int rarity
{
get { return _rarity; }
set { _rarity = value; }
}
private int _method = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"method", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int method
{
get { return _method; }
set { _method = value; }
}
private int _itemdef = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"itemdef", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int itemdef
{
get { return _itemdef; }
set { _itemdef = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ParticleManager")]
public partial class CDOTAUserMsg_ParticleManager : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ParticleManager() { }
private DOTA_PARTICLE_MESSAGE _type;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public DOTA_PARTICLE_MESSAGE type
{
get { return _type; }
set { _type = value; }
}
private uint _index;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name = @"index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public uint index
{
get { return _index; }
set { _index = value; }
}
private CDOTAUserMsg_ParticleManager.ReleaseParticleIndex _release_particle_index = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"release_particle_index", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.ReleaseParticleIndex release_particle_index
{
get { return _release_particle_index; }
set { _release_particle_index = value; }
}
private CDOTAUserMsg_ParticleManager.CreateParticle _create_particle = null;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"create_particle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.CreateParticle create_particle
{
get { return _create_particle; }
set { _create_particle = value; }
}
private CDOTAUserMsg_ParticleManager.DestroyParticle _destroy_particle = null;
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"destroy_particle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.DestroyParticle destroy_particle
{
get { return _destroy_particle; }
set { _destroy_particle = value; }
}
private CDOTAUserMsg_ParticleManager.DestroyParticleInvolving _destroy_particle_involving = null;
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"destroy_particle_involving", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.DestroyParticleInvolving destroy_particle_involving
{
get { return _destroy_particle_involving; }
set { _destroy_particle_involving = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticle _update_particle = null;
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"update_particle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticle update_particle
{
get { return _update_particle; }
set { _update_particle = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleFwd _update_particle_fwd = null;
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"update_particle_fwd", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleFwd update_particle_fwd
{
get { return _update_particle_fwd; }
set { _update_particle_fwd = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleOrient _update_particle_orient = null;
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"update_particle_orient", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleOrient update_particle_orient
{
get { return _update_particle_orient; }
set { _update_particle_orient = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleFallback _update_particle_fallback = null;
[global::ProtoBuf.ProtoMember(10, IsRequired = false, Name = @"update_particle_fallback", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleFallback update_particle_fallback
{
get { return _update_particle_fallback; }
set { _update_particle_fallback = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleOffset _update_particle_offset = null;
[global::ProtoBuf.ProtoMember(11, IsRequired = false, Name = @"update_particle_offset", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleOffset update_particle_offset
{
get { return _update_particle_offset; }
set { _update_particle_offset = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleEnt _update_particle_ent = null;
[global::ProtoBuf.ProtoMember(12, IsRequired = false, Name = @"update_particle_ent", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleEnt update_particle_ent
{
get { return _update_particle_ent; }
set { _update_particle_ent = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleShouldDraw _update_particle_should_draw = null;
[global::ProtoBuf.ProtoMember(14, IsRequired = false, Name = @"update_particle_should_draw", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleShouldDraw update_particle_should_draw
{
get { return _update_particle_should_draw; }
set { _update_particle_should_draw = value; }
}
private CDOTAUserMsg_ParticleManager.UpdateParticleSetFrozen _update_particle_set_frozen = null;
[global::ProtoBuf.ProtoMember(15, IsRequired = false, Name = @"update_particle_set_frozen", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAUserMsg_ParticleManager.UpdateParticleSetFrozen update_particle_set_frozen
{
get { return _update_particle_set_frozen; }
set { _update_particle_set_frozen = value; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"ReleaseParticleIndex")]
public partial class ReleaseParticleIndex : global::ProtoBuf.IExtensible
{
public ReleaseParticleIndex() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CreateParticle")]
public partial class CreateParticle : global::ProtoBuf.IExtensible
{
public CreateParticle() { }
private int _particle_name_index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"particle_name_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int particle_name_index
{
get { return _particle_name_index; }
set { _particle_name_index = value; }
}
private int _attach_type = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"attach_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int attach_type
{
get { return _attach_type; }
set { _attach_type = value; }
}
private int _entity_handle = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"entity_handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_handle
{
get { return _entity_handle; }
set { _entity_handle = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"DestroyParticle")]
public partial class DestroyParticle : global::ProtoBuf.IExtensible
{
public DestroyParticle() { }
private bool _destroy_immediately = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"destroy_immediately", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool destroy_immediately
{
get { return _destroy_immediately; }
set { _destroy_immediately = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"DestroyParticleInvolving")]
public partial class DestroyParticleInvolving : global::ProtoBuf.IExtensible
{
public DestroyParticleInvolving() { }
private bool _destroy_immediately = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"destroy_immediately", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool destroy_immediately
{
get { return _destroy_immediately; }
set { _destroy_immediately = value; }
}
private int _entity_handle = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"entity_handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_handle
{
get { return _entity_handle; }
set { _entity_handle = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticle")]
public partial class UpdateParticle : global::ProtoBuf.IExtensible
{
public UpdateParticle() { }
private int _control_point = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"control_point", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int control_point
{
get { return _control_point; }
set { _control_point = value; }
}
private CMsgVector _position = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"position", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector position
{
get { return _position; }
set { _position = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleFwd")]
public partial class UpdateParticleFwd : global::ProtoBuf.IExtensible
{
public UpdateParticleFwd() { }
private int _control_point = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"control_point", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int control_point
{
get { return _control_point; }
set { _control_point = value; }
}
private CMsgVector _forward = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"forward", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector forward
{
get { return _forward; }
set { _forward = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleOrient")]
public partial class UpdateParticleOrient : global::ProtoBuf.IExtensible
{
public UpdateParticleOrient() { }
private int _control_point = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"control_point", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int control_point
{
get { return _control_point; }
set { _control_point = value; }
}
private CMsgVector _forward = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"forward", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector forward
{
get { return _forward; }
set { _forward = value; }
}
private CMsgVector _right = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"right", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector right
{
get { return _right; }
set { _right = value; }
}
private CMsgVector _up = null;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"up", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector up
{
get { return _up; }
set { _up = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleFallback")]
public partial class UpdateParticleFallback : global::ProtoBuf.IExtensible
{
public UpdateParticleFallback() { }
private int _control_point = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"control_point", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int control_point
{
get { return _control_point; }
set { _control_point = value; }
}
private CMsgVector _position = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"position", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector position
{
get { return _position; }
set { _position = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleOffset")]
public partial class UpdateParticleOffset : global::ProtoBuf.IExtensible
{
public UpdateParticleOffset() { }
private int _control_point = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"control_point", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int control_point
{
get { return _control_point; }
set { _control_point = value; }
}
private CMsgVector _origin_offset = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"origin_offset", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector origin_offset
{
get { return _origin_offset; }
set { _origin_offset = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleEnt")]
public partial class UpdateParticleEnt : global::ProtoBuf.IExtensible
{
public UpdateParticleEnt() { }
private int _control_point = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"control_point", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int control_point
{
get { return _control_point; }
set { _control_point = value; }
}
private int _entity_handle = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"entity_handle", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_handle
{
get { return _entity_handle; }
set { _entity_handle = value; }
}
private int _attach_type = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"attach_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int attach_type
{
get { return _attach_type; }
set { _attach_type = value; }
}
private int _attachment = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"attachment", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int attachment
{
get { return _attachment; }
set { _attachment = value; }
}
private CMsgVector _fallback_position = null;
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"fallback_position", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector fallback_position
{
get { return _fallback_position; }
set { _fallback_position = value; }
}
private bool _include_wearables = default(bool);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"include_wearables", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool include_wearables
{
get { return _include_wearables; }
set { _include_wearables = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleSetFrozen")]
public partial class UpdateParticleSetFrozen : global::ProtoBuf.IExtensible
{
public UpdateParticleSetFrozen() { }
private bool _set_frozen = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"set_frozen", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool set_frozen
{
get { return _set_frozen; }
set { _set_frozen = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"UpdateParticleShouldDraw")]
public partial class UpdateParticleShouldDraw : global::ProtoBuf.IExtensible
{
public UpdateParticleShouldDraw() { }
private bool _should_draw = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"should_draw", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool should_draw
{
get { return _should_draw; }
set { _should_draw = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_OverheadEvent")]
public partial class CDOTAUserMsg_OverheadEvent : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_OverheadEvent() { }
private DOTA_OVERHEAD_ALERT _message_type;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"message_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public DOTA_OVERHEAD_ALERT message_type
{
get { return _message_type; }
set { _message_type = value; }
}
private int _value = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int value
{
get { return _value; }
set { _value = value; }
}
private int _target_player_entindex = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"target_player_entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int target_player_entindex
{
get { return _target_player_entindex; }
set { _target_player_entindex = value; }
}
private int _target_entindex = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"target_entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int target_entindex
{
get { return _target_entindex; }
set { _target_entindex = value; }
}
private int _source_player_entindex = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"source_player_entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int source_player_entindex
{
get { return _source_player_entindex; }
set { _source_player_entindex = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TutorialTipInfo")]
public partial class CDOTAUserMsg_TutorialTipInfo : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TutorialTipInfo() { }
private string _name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private int _progress = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"progress", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int progress
{
get { return _progress; }
set { _progress = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TutorialFinish")]
public partial class CDOTAUserMsg_TutorialFinish : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TutorialFinish() { }
private string _heading = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"heading", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string heading
{
get { return _heading; }
set { _heading = value; }
}
private string _emblem = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"emblem", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string emblem
{
get { return _emblem; }
set { _emblem = value; }
}
private string _body = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"body", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string body
{
get { return _body; }
set { _body = value; }
}
private bool _success = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"success", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool success
{
get { return _success; }
set { _success = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TutorialMinimapPosition")]
public partial class CDOTAUserMsg_TutorialMinimapPosition : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TutorialMinimapPosition() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TournamentDrop")]
public partial class CDOTAUserMsg_TournamentDrop : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TournamentDrop() { }
private string _winner_name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"winner_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string winner_name
{
get { return _winner_name; }
set { _winner_name = value; }
}
private int _event_type = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"event_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int event_type
{
get { return _event_type; }
set { _event_type = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SendGenericToolTip")]
public partial class CDOTAUserMsg_SendGenericToolTip : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SendGenericToolTip() { }
private string _title = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"title", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string title
{
get { return _title; }
set { _title = value; }
}
private string _text = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string text
{
get { return _text; }
set { _text = value; }
}
private int _entindex = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"entindex", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entindex
{
get { return _entindex; }
set { _entindex = value; }
}
private bool _close = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"close", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool close
{
get { return _close; }
set { _close = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_WorldLine")]
public partial class CDOTAUserMsg_WorldLine : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_WorldLine() { }
private int _player_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private CDOTAMsg_WorldLine _worldline = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"worldline", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAMsg_WorldLine worldline
{
get { return _worldline; }
set { _worldline = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ChatWheel")]
public partial class CDOTAUserMsg_ChatWheel : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ChatWheel() { }
private EDOTAChatWheelMessage _chat_message = EDOTAChatWheelMessage.k_EDOTA_CW_Ok;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"chat_message", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(EDOTAChatWheelMessage.k_EDOTA_CW_Ok)]
public EDOTAChatWheelMessage chat_message
{
get { return _chat_message; }
set { _chat_message = value; }
}
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private uint _account_id = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"account_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint account_id
{
get { return _account_id; }
set { _account_id = value; }
}
private uint _param_hero_id = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"param_hero_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint param_hero_id
{
get { return _param_hero_id; }
set { _param_hero_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ReceivedXmasGift")]
public partial class CDOTAUserMsg_ReceivedXmasGift : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ReceivedXmasGift() { }
private int _player_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private string _item_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"item_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string item_name
{
get { return _item_name; }
set { _item_name = value; }
}
private int _inventory_slot = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"inventory_slot", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int inventory_slot
{
get { return _inventory_slot; }
set { _inventory_slot = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ShowSurvey")]
public partial class CDOTAUserMsg_ShowSurvey : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ShowSurvey() { }
private int _survey_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"survey_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int survey_id
{
get { return _survey_id; }
set { _survey_id = value; }
}
private uint _match_id = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"match_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint match_id
{
get { return _match_id; }
set { _match_id = value; }
}
private string _response_style = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"response_style", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string response_style
{
get { return _response_style; }
set { _response_style = value; }
}
private uint _teammate_hero_id = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"teammate_hero_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint teammate_hero_id
{
get { return _teammate_hero_id; }
set { _teammate_hero_id = value; }
}
private string _teammate_name = "";
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"teammate_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string teammate_name
{
get { return _teammate_name; }
set { _teammate_name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_UpdateSharedContent")]
public partial class CDOTAUserMsg_UpdateSharedContent : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_UpdateSharedContent() { }
private int _slot_type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"slot_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int slot_type
{
get { return _slot_type; }
set { _slot_type = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TutorialRequestExp")]
public partial class CDOTAUserMsg_TutorialRequestExp : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TutorialRequestExp() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TutorialFade")]
public partial class CDOTAUserMsg_TutorialFade : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TutorialFade() { }
private int _tgt_alpha = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"tgt_alpha", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int tgt_alpha
{
get { return _tgt_alpha; }
set { _tgt_alpha = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_TutorialPingMinimap")]
public partial class CDOTAUserMsg_TutorialPingMinimap : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_TutorialPingMinimap() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private float _pos_x = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"pos_x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float pos_x
{
get { return _pos_x; }
set { _pos_x = value; }
}
private float _pos_y = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"pos_y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float pos_y
{
get { return _pos_y; }
set { _pos_y = value; }
}
private float _pos_z = default(float);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"pos_z", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float pos_z
{
get { return _pos_z; }
set { _pos_z = value; }
}
private int _entity_index = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"entity_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_index
{
get { return _entity_index; }
set { _entity_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTA_UM_GamerulesStateChanged")]
public partial class CDOTA_UM_GamerulesStateChanged : global::ProtoBuf.IExtensible
{
public CDOTA_UM_GamerulesStateChanged() { }
private uint _state = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint state
{
get { return _state; }
set { _state = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_AddQuestLogEntry")]
public partial class CDOTAUserMsg_AddQuestLogEntry : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_AddQuestLogEntry() { }
private string _npc_name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"npc_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string npc_name
{
get { return _npc_name; }
set { _npc_name = value; }
}
private string _npc_dialog = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"npc_dialog", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string npc_dialog
{
get { return _npc_dialog; }
set { _npc_dialog = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SendStatPopup")]
public partial class CDOTAUserMsg_SendStatPopup : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SendStatPopup() { }
private int _player_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private CDOTAMsg_SendStatPopup _statpopup = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"statpopup", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAMsg_SendStatPopup statpopup
{
get { return _statpopup; }
set { _statpopup = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SendRoshanPopup")]
public partial class CDOTAUserMsg_SendRoshanPopup : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SendRoshanPopup() { }
private bool _reclaimed = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"reclaimed", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool reclaimed
{
get { return _reclaimed; }
set { _reclaimed = value; }
}
private int _gametime = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"gametime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int gametime
{
get { return _gametime; }
set { _gametime = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_SendFinalGold")]
public partial class CDOTAUserMsg_SendFinalGold : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_SendFinalGold() { }
private readonly global::System.Collections.Generic.List<uint> _reliable_gold = new global::System.Collections.Generic.List<uint>();
[global::ProtoBuf.ProtoMember(1, Name = @"reliable_gold", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<uint> reliable_gold
{
get { return _reliable_gold; }
}
private readonly global::System.Collections.Generic.List<uint> _unreliable_gold = new global::System.Collections.Generic.List<uint>();
[global::ProtoBuf.ProtoMember(2, Name = @"unreliable_gold", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<uint> unreliable_gold
{
get { return _unreliable_gold; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CustomMsg")]
public partial class CDOTAUserMsg_CustomMsg : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CustomMsg() { }
private string _message = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private int _player_id = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private int _value = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int value
{
get { return _value; }
set { _value = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_CoachHUDPing")]
public partial class CDOTAUserMsg_CoachHUDPing : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_CoachHUDPing() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private CDOTAMsg_CoachHUDPing _hud_ping = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"hud_ping", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CDOTAMsg_CoachHUDPing hud_ping
{
get { return _hud_ping; }
set { _hud_ping = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ClientLoadGridNav")]
public partial class CDOTAUserMsg_ClientLoadGridNav : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ClientLoadGridNav() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_AbilityPing")]
public partial class CDOTAUserMsg_AbilityPing : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_AbilityPing() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private uint _ability_id = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"ability_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint ability_id
{
get { return _ability_id; }
set { _ability_id = value; }
}
private DOTA_ABILITY_PING_TYPE _type = DOTA_ABILITY_PING_TYPE.ABILITY_PING_READY;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(DOTA_ABILITY_PING_TYPE.ABILITY_PING_READY)]
public DOTA_ABILITY_PING_TYPE type
{
get { return _type; }
set { _type = value; }
}
private uint _cooldown_seconds = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"cooldown_seconds", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint cooldown_seconds
{
get { return _cooldown_seconds; }
set { _cooldown_seconds = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_ShowGenericPopup")]
public partial class CDOTAUserMsg_ShowGenericPopup : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_ShowGenericPopup() { }
private string _header;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = @"header", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string header
{
get { return _header; }
set { _header = value; }
}
private string _body;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name = @"body", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string body
{
get { return _body; }
set { _body = value; }
}
private string _param1 = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"param1", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string param1
{
get { return _param1; }
set { _param1 = value; }
}
private string _param2 = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"param2", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string param2
{
get { return _param2; }
set { _param2 = value; }
}
private bool _tint_screen = default(bool);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"tint_screen", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool tint_screen
{
get { return _tint_screen; }
set { _tint_screen = value; }
}
private bool _show_no_other_dialogs = default(bool);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"show_no_other_dialogs", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool show_no_other_dialogs
{
get { return _show_no_other_dialogs; }
set { _show_no_other_dialogs = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_VoteStart")]
public partial class CDOTAUserMsg_VoteStart : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_VoteStart() { }
private string _title = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"title", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string title
{
get { return _title; }
set { _title = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private int _choice_count = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"choice_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int choice_count
{
get { return _choice_count; }
set { _choice_count = value; }
}
private readonly global::System.Collections.Generic.List<string> _choices = new global::System.Collections.Generic.List<string>();
[global::ProtoBuf.ProtoMember(4, Name = @"choices", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<string> choices
{
get { return _choices; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_VoteUpdate")]
public partial class CDOTAUserMsg_VoteUpdate : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_VoteUpdate() { }
private readonly global::System.Collections.Generic.List<int> _choice_counts = new global::System.Collections.Generic.List<int>();
[global::ProtoBuf.ProtoMember(1, Name = @"choice_counts", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<int> choice_counts
{
get { return _choice_counts; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_VoteEnd")]
public partial class CDOTAUserMsg_VoteEnd : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_VoteEnd() { }
private int _selected_choice = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"selected_choice", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int selected_choice
{
get { return _selected_choice; }
set { _selected_choice = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_BoosterStatePlayer")]
public partial class CDOTAUserMsg_BoosterStatePlayer : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_BoosterStatePlayer() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private float _bonus = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"bonus", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float bonus
{
get { return _bonus; }
set { _bonus = value; }
}
private float _event_bonus = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"event_bonus", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float event_bonus
{
get { return _event_bonus; }
set { _event_bonus = value; }
}
private uint _bonus_item_id = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"bonus_item_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint bonus_item_id
{
get { return _bonus_item_id; }
set { _bonus_item_id = value; }
}
private uint _event_bonus_item_id = default(uint);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"event_bonus_item_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint event_bonus_item_id
{
get { return _event_bonus_item_id; }
set { _event_bonus_item_id = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_BoosterState")]
public partial class CDOTAUserMsg_BoosterState : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_BoosterState() { }
private readonly global::System.Collections.Generic.List<CDOTAUserMsg_BoosterStatePlayer> _boosted_players = new global::System.Collections.Generic.List<CDOTAUserMsg_BoosterStatePlayer>();
[global::ProtoBuf.ProtoMember(1, Name = @"boosted_players", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CDOTAUserMsg_BoosterStatePlayer> boosted_players
{
get { return _boosted_players; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_PlayerMMR")]
public partial class CDOTAUserMsg_PlayerMMR : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_PlayerMMR() { }
private readonly global::System.Collections.Generic.List<int> _mmr = new global::System.Collections.Generic.List<int>();
[global::ProtoBuf.ProtoMember(1, Name = @"mmr", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
public global::System.Collections.Generic.List<int> mmr
{
get { return _mmr; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CDOTAUserMsg_AbilitySteal")]
public partial class CDOTAUserMsg_AbilitySteal : global::ProtoBuf.IExtensible
{
public CDOTAUserMsg_AbilitySteal() { }
private uint _player_id = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint player_id
{
get { return _player_id; }
set { _player_id = value; }
}
private uint _ability_id = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"ability_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint ability_id
{
get { return _ability_id; }
set { _ability_id = value; }
}
private uint _ability_level = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"ability_level", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint ability_level
{
get { return _ability_level; }
set { _ability_level = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CMsg_CVars")]
public partial class CMsg_CVars : global::ProtoBuf.IExtensible
{
public CMsg_CVars() { }
private readonly global::System.Collections.Generic.List<CMsg_CVars.CVar> _cvars = new global::System.Collections.Generic.List<CMsg_CVars.CVar>();
[global::ProtoBuf.ProtoMember(1, Name = @"cvars", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CMsg_CVars.CVar> cvars
{
get { return _cvars; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CVar")]
public partial class CVar : global::ProtoBuf.IExtensible
{
public CVar() { }
private string _name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private string _value = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string value
{
get { return _value; }
set { _value = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_NOP")]
public partial class CNETMsg_NOP : global::ProtoBuf.IExtensible
{
public CNETMsg_NOP() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_Disconnect")]
public partial class CNETMsg_Disconnect : global::ProtoBuf.IExtensible
{
public CNETMsg_Disconnect() { }
private ENetworkDisconnectionReason _reason = ENetworkDisconnectionReason.NETWORK_DISCONNECT_INVALID;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"reason", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(ENetworkDisconnectionReason.NETWORK_DISCONNECT_INVALID)]
public ENetworkDisconnectionReason reason
{
get { return _reason; }
set { _reason = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_File")]
public partial class CNETMsg_File : global::ProtoBuf.IExtensible
{
public CNETMsg_File() { }
private int _transfer_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"transfer_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int transfer_id
{
get { return _transfer_id; }
set { _transfer_id = value; }
}
private string _file_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"file_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string file_name
{
get { return _file_name; }
set { _file_name = value; }
}
private bool _is_replay_demo_file = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"is_replay_demo_file", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_replay_demo_file
{
get { return _is_replay_demo_file; }
set { _is_replay_demo_file = value; }
}
private bool _deny = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"deny", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool deny
{
get { return _deny; }
set { _deny = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_SplitScreenUser")]
public partial class CNETMsg_SplitScreenUser : global::ProtoBuf.IExtensible
{
public CNETMsg_SplitScreenUser() { }
private int _slot = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"slot", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int slot
{
get { return _slot; }
set { _slot = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_Tick")]
public partial class CNETMsg_Tick : global::ProtoBuf.IExtensible
{
public CNETMsg_Tick() { }
private uint _tick = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"tick", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint tick
{
get { return _tick; }
set { _tick = value; }
}
private uint _host_computationtime = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"host_computationtime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint host_computationtime
{
get { return _host_computationtime; }
set { _host_computationtime = value; }
}
private uint _host_computationtime_std_deviation = default(uint);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"host_computationtime_std_deviation", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint host_computationtime_std_deviation
{
get { return _host_computationtime_std_deviation; }
set { _host_computationtime_std_deviation = value; }
}
private uint _host_framestarttime_std_deviation = default(uint);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"host_framestarttime_std_deviation", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint host_framestarttime_std_deviation
{
get { return _host_framestarttime_std_deviation; }
set { _host_framestarttime_std_deviation = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_StringCmd")]
public partial class CNETMsg_StringCmd : global::ProtoBuf.IExtensible
{
public CNETMsg_StringCmd() { }
private string _command = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"command", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string command
{
get { return _command; }
set { _command = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_SetConVar")]
public partial class CNETMsg_SetConVar : global::ProtoBuf.IExtensible
{
public CNETMsg_SetConVar() { }
private CMsg_CVars _convars = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"convars", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsg_CVars convars
{
get { return _convars; }
set { _convars = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CNETMsg_SignonState")]
public partial class CNETMsg_SignonState : global::ProtoBuf.IExtensible
{
public CNETMsg_SignonState() { }
private uint _signon_state = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"signon_state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint signon_state
{
get { return _signon_state; }
set { _signon_state = value; }
}
private uint _spawn_count = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"spawn_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint spawn_count
{
get { return _spawn_count; }
set { _spawn_count = value; }
}
private uint _num_server_players = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"num_server_players", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint num_server_players
{
get { return _num_server_players; }
set { _num_server_players = value; }
}
private readonly global::System.Collections.Generic.List<string> _players_networkids = new global::System.Collections.Generic.List<string>();
[global::ProtoBuf.ProtoMember(4, Name = @"players_networkids", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<string> players_networkids
{
get { return _players_networkids; }
}
private string _map_name = "";
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"map_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string map_name
{
get { return _map_name; }
set { _map_name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_ClientInfo")]
public partial class CCLCMsg_ClientInfo : global::ProtoBuf.IExtensible
{
public CCLCMsg_ClientInfo() { }
private uint _send_table_crc = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"send_table_crc", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint send_table_crc
{
get { return _send_table_crc; }
set { _send_table_crc = value; }
}
private uint _server_count = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"server_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint server_count
{
get { return _server_count; }
set { _server_count = value; }
}
private bool _is_hltv = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"is_hltv", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_hltv
{
get { return _is_hltv; }
set { _is_hltv = value; }
}
private bool _is_replay = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"is_replay", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_replay
{
get { return _is_replay; }
set { _is_replay = value; }
}
private uint _friends_id = default(uint);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"friends_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint friends_id
{
get { return _friends_id; }
set { _friends_id = value; }
}
private string _friends_name = "";
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"friends_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string friends_name
{
get { return _friends_name; }
set { _friends_name = value; }
}
private readonly global::System.Collections.Generic.List<uint> _custom_files = new global::System.Collections.Generic.List<uint>();
[global::ProtoBuf.ProtoMember(7, Name = @"custom_files", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
public global::System.Collections.Generic.List<uint> custom_files
{
get { return _custom_files; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_Move")]
public partial class CCLCMsg_Move : global::ProtoBuf.IExtensible
{
public CCLCMsg_Move() { }
private uint _num_backup_commands = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"num_backup_commands", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint num_backup_commands
{
get { return _num_backup_commands; }
set { _num_backup_commands = value; }
}
private uint _num_new_commands = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"num_new_commands", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint num_new_commands
{
get { return _num_new_commands; }
set { _num_new_commands = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_VoiceData")]
public partial class CCLCMsg_VoiceData : global::ProtoBuf.IExtensible
{
public CCLCMsg_VoiceData() { }
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private ulong _xuid = default(ulong);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"xuid", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(ulong))]
public ulong xuid
{
get { return _xuid; }
set { _xuid = value; }
}
private VoiceDataFormat_t _format = VoiceDataFormat_t.VOICEDATA_FORMAT_STEAM;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"format", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(VoiceDataFormat_t.VOICEDATA_FORMAT_STEAM)]
public VoiceDataFormat_t format
{
get { return _format; }
set { _format = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_BaselineAck")]
public partial class CCLCMsg_BaselineAck : global::ProtoBuf.IExtensible
{
public CCLCMsg_BaselineAck() { }
private int _baseline_tick = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"baseline_tick", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int baseline_tick
{
get { return _baseline_tick; }
set { _baseline_tick = value; }
}
private int _baseline_nr = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"baseline_nr", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int baseline_nr
{
get { return _baseline_nr; }
set { _baseline_nr = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_ListenEvents")]
public partial class CCLCMsg_ListenEvents : global::ProtoBuf.IExtensible
{
public CCLCMsg_ListenEvents() { }
private readonly global::System.Collections.Generic.List<uint> _event_mask = new global::System.Collections.Generic.List<uint>();
[global::ProtoBuf.ProtoMember(1, Name = @"event_mask", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
public global::System.Collections.Generic.List<uint> event_mask
{
get { return _event_mask; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_RespondCvarValue")]
public partial class CCLCMsg_RespondCvarValue : global::ProtoBuf.IExtensible
{
public CCLCMsg_RespondCvarValue() { }
private int _cookie = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"cookie", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int cookie
{
get { return _cookie; }
set { _cookie = value; }
}
private int _status_code = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"status_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int status_code
{
get { return _status_code; }
set { _status_code = value; }
}
private string _name = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private string _value = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string value
{
get { return _value; }
set { _value = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_FileCRCCheck")]
public partial class CCLCMsg_FileCRCCheck : global::ProtoBuf.IExtensible
{
public CCLCMsg_FileCRCCheck() { }
private int _code_path = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"code_path", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int code_path
{
get { return _code_path; }
set { _code_path = value; }
}
private string _path = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"path", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string path
{
get { return _path; }
set { _path = value; }
}
private int _code_filename = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"code_filename", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int code_filename
{
get { return _code_filename; }
set { _code_filename = value; }
}
private string _filename = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"filename", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string filename
{
get { return _filename; }
set { _filename = value; }
}
private uint _crc = default(uint);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"crc", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint crc
{
get { return _crc; }
set { _crc = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_LoadingProgress")]
public partial class CCLCMsg_LoadingProgress : global::ProtoBuf.IExtensible
{
public CCLCMsg_LoadingProgress() { }
private int _progress = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"progress", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int progress
{
get { return _progress; }
set { _progress = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_SplitPlayerConnect")]
public partial class CCLCMsg_SplitPlayerConnect : global::ProtoBuf.IExtensible
{
public CCLCMsg_SplitPlayerConnect() { }
private CMsg_CVars _convars = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"convars", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsg_CVars convars
{
get { return _convars; }
set { _convars = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CCLCMsg_ClientMessage")]
public partial class CCLCMsg_ClientMessage : global::ProtoBuf.IExtensible
{
public CCLCMsg_ClientMessage() { }
private int _msg_type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"msg_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int msg_type
{
get { return _msg_type; }
set { _msg_type = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_ServerInfo")]
public partial class CSVCMsg_ServerInfo : global::ProtoBuf.IExtensible
{
public CSVCMsg_ServerInfo() { }
private int _protocol = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"protocol", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int protocol
{
get { return _protocol; }
set { _protocol = value; }
}
private int _server_count = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"server_count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int server_count
{
get { return _server_count; }
set { _server_count = value; }
}
private bool _is_dedicated = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"is_dedicated", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_dedicated
{
get { return _is_dedicated; }
set { _is_dedicated = value; }
}
private bool _is_hltv = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"is_hltv", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_hltv
{
get { return _is_hltv; }
set { _is_hltv = value; }
}
private bool _is_replay = default(bool);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"is_replay", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_replay
{
get { return _is_replay; }
set { _is_replay = value; }
}
private int _c_os = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"c_os", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int c_os
{
get { return _c_os; }
set { _c_os = value; }
}
private uint _map_crc = default(uint);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"map_crc", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint map_crc
{
get { return _map_crc; }
set { _map_crc = value; }
}
private uint _client_crc = default(uint);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"client_crc", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint client_crc
{
get { return _client_crc; }
set { _client_crc = value; }
}
private uint _string_table_crc = default(uint);
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"string_table_crc", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint string_table_crc
{
get { return _string_table_crc; }
set { _string_table_crc = value; }
}
private int _max_clients = default(int);
[global::ProtoBuf.ProtoMember(10, IsRequired = false, Name = @"max_clients", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int max_clients
{
get { return _max_clients; }
set { _max_clients = value; }
}
private int _max_classes = default(int);
[global::ProtoBuf.ProtoMember(11, IsRequired = false, Name = @"max_classes", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int max_classes
{
get { return _max_classes; }
set { _max_classes = value; }
}
private int _player_slot = default(int);
[global::ProtoBuf.ProtoMember(12, IsRequired = false, Name = @"player_slot", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_slot
{
get { return _player_slot; }
set { _player_slot = value; }
}
private float _tick_interval = default(float);
[global::ProtoBuf.ProtoMember(13, IsRequired = false, Name = @"tick_interval", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float tick_interval
{
get { return _tick_interval; }
set { _tick_interval = value; }
}
private string _game_dir = "";
[global::ProtoBuf.ProtoMember(14, IsRequired = false, Name = @"game_dir", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string game_dir
{
get { return _game_dir; }
set { _game_dir = value; }
}
private string _map_name = "";
[global::ProtoBuf.ProtoMember(15, IsRequired = false, Name = @"map_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string map_name
{
get { return _map_name; }
set { _map_name = value; }
}
private string _sky_name = "";
[global::ProtoBuf.ProtoMember(16, IsRequired = false, Name = @"sky_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string sky_name
{
get { return _sky_name; }
set { _sky_name = value; }
}
private string _host_name = "";
[global::ProtoBuf.ProtoMember(17, IsRequired = false, Name = @"host_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string host_name
{
get { return _host_name; }
set { _host_name = value; }
}
private string _addon_name = "";
[global::ProtoBuf.ProtoMember(18, IsRequired = false, Name = @"addon_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string addon_name
{
get { return _addon_name; }
set { _addon_name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_ClassInfo")]
public partial class CSVCMsg_ClassInfo : global::ProtoBuf.IExtensible
{
public CSVCMsg_ClassInfo() { }
private bool _create_on_client = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"create_on_client", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool create_on_client
{
get { return _create_on_client; }
set { _create_on_client = value; }
}
private readonly global::System.Collections.Generic.List<CSVCMsg_ClassInfo.class_t> _classes = new global::System.Collections.Generic.List<CSVCMsg_ClassInfo.class_t>();
[global::ProtoBuf.ProtoMember(2, Name = @"classes", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsg_ClassInfo.class_t> classes
{
get { return _classes; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"class_t")]
public partial class class_t : global::ProtoBuf.IExtensible
{
public class_t() { }
private int _class_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"class_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int class_id
{
get { return _class_id; }
set { _class_id = value; }
}
private string _data_table_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"data_table_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string data_table_name
{
get { return _data_table_name; }
set { _data_table_name = value; }
}
private string _class_name = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"class_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string class_name
{
get { return _class_name; }
set { _class_name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_SetPause")]
public partial class CSVCMsg_SetPause : global::ProtoBuf.IExtensible
{
public CSVCMsg_SetPause() { }
private bool _paused = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"paused", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool paused
{
get { return _paused; }
set { _paused = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_VoiceInit")]
public partial class CSVCMsg_VoiceInit : global::ProtoBuf.IExtensible
{
public CSVCMsg_VoiceInit() { }
private int _quality = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"quality", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int quality
{
get { return _quality; }
set { _quality = value; }
}
private string _codec = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"codec", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string codec
{
get { return _codec; }
set { _codec = value; }
}
private int _version = (int)0;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"version", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue((int)0)]
public int version
{
get { return _version; }
set { _version = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_Print")]
public partial class CSVCMsg_Print : global::ProtoBuf.IExtensible
{
public CSVCMsg_Print() { }
private string _text = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string text
{
get { return _text; }
set { _text = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_Sounds")]
public partial class CSVCMsg_Sounds : global::ProtoBuf.IExtensible
{
public CSVCMsg_Sounds() { }
private bool _reliable_sound = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"reliable_sound", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool reliable_sound
{
get { return _reliable_sound; }
set { _reliable_sound = value; }
}
private readonly global::System.Collections.Generic.List<CSVCMsg_Sounds.sounddata_t> _sounds = new global::System.Collections.Generic.List<CSVCMsg_Sounds.sounddata_t>();
[global::ProtoBuf.ProtoMember(2, Name = @"sounds", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsg_Sounds.sounddata_t> sounds
{
get { return _sounds; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"sounddata_t")]
public partial class sounddata_t : global::ProtoBuf.IExtensible
{
public sounddata_t() { }
private int _origin_x = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"origin_x", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int origin_x
{
get { return _origin_x; }
set { _origin_x = value; }
}
private int _origin_y = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"origin_y", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int origin_y
{
get { return _origin_y; }
set { _origin_y = value; }
}
private int _origin_z = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"origin_z", DataFormat = global::ProtoBuf.DataFormat.ZigZag)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int origin_z
{
get { return _origin_z; }
set { _origin_z = value; }
}
private uint _volume = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"volume", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint volume
{
get { return _volume; }
set { _volume = value; }
}
private float _delay_value = default(float);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"delay_value", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float delay_value
{
get { return _delay_value; }
set { _delay_value = value; }
}
private int _sequence_number = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"sequence_number", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int sequence_number
{
get { return _sequence_number; }
set { _sequence_number = value; }
}
private int _entity_index = default(int);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"entity_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_index
{
get { return _entity_index; }
set { _entity_index = value; }
}
private int _channel = default(int);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"channel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int channel
{
get { return _channel; }
set { _channel = value; }
}
private int _pitch = default(int);
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"pitch", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int pitch
{
get { return _pitch; }
set { _pitch = value; }
}
private int _flags = default(int);
[global::ProtoBuf.ProtoMember(10, IsRequired = false, Name = @"flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int flags
{
get { return _flags; }
set { _flags = value; }
}
private uint _sound_num = default(uint);
[global::ProtoBuf.ProtoMember(11, IsRequired = false, Name = @"sound_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint sound_num
{
get { return _sound_num; }
set { _sound_num = value; }
}
private uint _sound_num_handle = default(uint);
[global::ProtoBuf.ProtoMember(12, IsRequired = false, Name = @"sound_num_handle", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint sound_num_handle
{
get { return _sound_num_handle; }
set { _sound_num_handle = value; }
}
private int _speaker_entity = default(int);
[global::ProtoBuf.ProtoMember(13, IsRequired = false, Name = @"speaker_entity", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int speaker_entity
{
get { return _speaker_entity; }
set { _speaker_entity = value; }
}
private int _random_seed = default(int);
[global::ProtoBuf.ProtoMember(14, IsRequired = false, Name = @"random_seed", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int random_seed
{
get { return _random_seed; }
set { _random_seed = value; }
}
private int _sound_level = default(int);
[global::ProtoBuf.ProtoMember(15, IsRequired = false, Name = @"sound_level", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int sound_level
{
get { return _sound_level; }
set { _sound_level = value; }
}
private bool _is_sentence = default(bool);
[global::ProtoBuf.ProtoMember(16, IsRequired = false, Name = @"is_sentence", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_sentence
{
get { return _is_sentence; }
set { _is_sentence = value; }
}
private bool _is_ambient = default(bool);
[global::ProtoBuf.ProtoMember(17, IsRequired = false, Name = @"is_ambient", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_ambient
{
get { return _is_ambient; }
set { _is_ambient = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_Prefetch")]
public partial class CSVCMsg_Prefetch : global::ProtoBuf.IExtensible
{
public CSVCMsg_Prefetch() { }
private int _sound_index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"sound_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int sound_index
{
get { return _sound_index; }
set { _sound_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_SetView")]
public partial class CSVCMsg_SetView : global::ProtoBuf.IExtensible
{
public CSVCMsg_SetView() { }
private int _entity_index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"entity_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_index
{
get { return _entity_index; }
set { _entity_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_FixAngle")]
public partial class CSVCMsg_FixAngle : global::ProtoBuf.IExtensible
{
public CSVCMsg_FixAngle() { }
private bool _relative = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"relative", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool relative
{
get { return _relative; }
set { _relative = value; }
}
private CMsgQAngle _angle = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"angle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgQAngle angle
{
get { return _angle; }
set { _angle = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_CrosshairAngle")]
public partial class CSVCMsg_CrosshairAngle : global::ProtoBuf.IExtensible
{
public CSVCMsg_CrosshairAngle() { }
private CMsgQAngle _angle = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"angle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgQAngle angle
{
get { return _angle; }
set { _angle = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_BSPDecal")]
public partial class CSVCMsg_BSPDecal : global::ProtoBuf.IExtensible
{
public CSVCMsg_BSPDecal() { }
private CMsgVector _pos = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"pos", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector pos
{
get { return _pos; }
set { _pos = value; }
}
private int _decal_texture_index = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"decal_texture_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int decal_texture_index
{
get { return _decal_texture_index; }
set { _decal_texture_index = value; }
}
private int _entity_index = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"entity_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int entity_index
{
get { return _entity_index; }
set { _entity_index = value; }
}
private int _model_index = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"model_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int model_index
{
get { return _model_index; }
set { _model_index = value; }
}
private bool _low_priority = default(bool);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"low_priority", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool low_priority
{
get { return _low_priority; }
set { _low_priority = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_SplitScreen")]
public partial class CSVCMsg_SplitScreen : global::ProtoBuf.IExtensible
{
public CSVCMsg_SplitScreen() { }
private ESplitScreenMessageType _type = ESplitScreenMessageType.MSG_SPLITSCREEN_ADDUSER;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(ESplitScreenMessageType.MSG_SPLITSCREEN_ADDUSER)]
public ESplitScreenMessageType type
{
get { return _type; }
set { _type = value; }
}
private int _slot = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"slot", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int slot
{
get { return _slot; }
set { _slot = value; }
}
private int _player_index = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"player_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player_index
{
get { return _player_index; }
set { _player_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_GetCvarValue")]
public partial class CSVCMsg_GetCvarValue : global::ProtoBuf.IExtensible
{
public CSVCMsg_GetCvarValue() { }
private int _cookie = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"cookie", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int cookie
{
get { return _cookie; }
set { _cookie = value; }
}
private string _cvar_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"cvar_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string cvar_name
{
get { return _cvar_name; }
set { _cvar_name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_Menu")]
public partial class CSVCMsg_Menu : global::ProtoBuf.IExtensible
{
public CSVCMsg_Menu() { }
private int _dialog_type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"dialog_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int dialog_type
{
get { return _dialog_type; }
set { _dialog_type = value; }
}
private byte[] _menu_key_values = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"menu_key_values", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public byte[] menu_key_values
{
get { return _menu_key_values; }
set { _menu_key_values = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_SendTable")]
public partial class CSVCMsg_SendTable : global::ProtoBuf.IExtensible
{
public CSVCMsg_SendTable() { }
private bool _is_end = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"is_end", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_end
{
get { return _is_end; }
set { _is_end = value; }
}
private string _net_table_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"net_table_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string net_table_name
{
get { return _net_table_name; }
set { _net_table_name = value; }
}
private bool _needs_decoder = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"needs_decoder", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool needs_decoder
{
get { return _needs_decoder; }
set { _needs_decoder = value; }
}
private readonly global::System.Collections.Generic.List<CSVCMsg_SendTable.sendprop_t> _props = new global::System.Collections.Generic.List<CSVCMsg_SendTable.sendprop_t>();
[global::ProtoBuf.ProtoMember(4, Name = @"props", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsg_SendTable.sendprop_t> props
{
get { return _props; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"sendprop_t")]
public partial class sendprop_t : global::ProtoBuf.IExtensible
{
public sendprop_t() { }
private int _type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int type
{
get { return _type; }
set { _type = value; }
}
private string _var_name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"var_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string var_name
{
get { return _var_name; }
set { _var_name = value; }
}
private int _flags = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int flags
{
get { return _flags; }
set { _flags = value; }
}
private int _priority = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"priority", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int priority
{
get { return _priority; }
set { _priority = value; }
}
private string _dt_name = "";
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"dt_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string dt_name
{
get { return _dt_name; }
set { _dt_name = value; }
}
private int _num_elements = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"num_elements", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_elements
{
get { return _num_elements; }
set { _num_elements = value; }
}
private float _low_value = default(float);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"low_value", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float low_value
{
get { return _low_value; }
set { _low_value = value; }
}
private float _high_value = default(float);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"high_value", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float high_value
{
get { return _high_value; }
set { _high_value = value; }
}
private int _num_bits = default(int);
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"num_bits", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_bits
{
get { return _num_bits; }
set { _num_bits = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_GameEventList")]
public partial class CSVCMsg_GameEventList : global::ProtoBuf.IExtensible
{
public CSVCMsg_GameEventList() { }
private readonly global::System.Collections.Generic.List<CSVCMsg_GameEventList.descriptor_t> _descriptors = new global::System.Collections.Generic.List<CSVCMsg_GameEventList.descriptor_t>();
[global::ProtoBuf.ProtoMember(1, Name = @"descriptors", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsg_GameEventList.descriptor_t> descriptors
{
get { return _descriptors; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"key_t")]
public partial class key_t : global::ProtoBuf.IExtensible
{
public key_t() { }
private int _type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int type
{
get { return _type; }
set { _type = value; }
}
private string _name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"descriptor_t")]
public partial class descriptor_t : global::ProtoBuf.IExtensible
{
public descriptor_t() { }
private int _eventid = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"eventid", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int eventid
{
get { return _eventid; }
set { _eventid = value; }
}
private string _name = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private readonly global::System.Collections.Generic.List<CSVCMsg_GameEventList.key_t> _keys = new global::System.Collections.Generic.List<CSVCMsg_GameEventList.key_t>();
[global::ProtoBuf.ProtoMember(3, Name = @"keys", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsg_GameEventList.key_t> keys
{
get { return _keys; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_PacketEntities")]
public partial class CSVCMsg_PacketEntities : global::ProtoBuf.IExtensible
{
public CSVCMsg_PacketEntities() { }
private int _max_entries = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"max_entries", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int max_entries
{
get { return _max_entries; }
set { _max_entries = value; }
}
private int _updated_entries = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"updated_entries", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int updated_entries
{
get { return _updated_entries; }
set { _updated_entries = value; }
}
private bool _is_delta = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"is_delta", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool is_delta
{
get { return _is_delta; }
set { _is_delta = value; }
}
private bool _update_baseline = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"update_baseline", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool update_baseline
{
get { return _update_baseline; }
set { _update_baseline = value; }
}
private int _baseline = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"baseline", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int baseline
{
get { return _baseline; }
set { _baseline = value; }
}
private int _delta_from = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"delta_from", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int delta_from
{
get { return _delta_from; }
set { _delta_from = value; }
}
private byte[] _entity_data = null;
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"entity_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public byte[] entity_data
{
get { return _entity_data; }
set { _entity_data = value; }
}
private bool _pending_full_frame = default(bool);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"pending_full_frame", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool pending_full_frame
{
get { return _pending_full_frame; }
set { _pending_full_frame = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_TempEntities")]
public partial class CSVCMsg_TempEntities : global::ProtoBuf.IExtensible
{
public CSVCMsg_TempEntities() { }
private bool _reliable = default(bool);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"reliable", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool reliable
{
get { return _reliable; }
set { _reliable = value; }
}
private int _num_entries = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"num_entries", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_entries
{
get { return _num_entries; }
set { _num_entries = value; }
}
private byte[] _entity_data = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"entity_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public byte[] entity_data
{
get { return _entity_data; }
set { _entity_data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_CreateStringTable")]
public partial class CSVCMsg_CreateStringTable : global::ProtoBuf.IExtensible
{
public CSVCMsg_CreateStringTable() { }
private string _name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private int _max_entries = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"max_entries", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int max_entries
{
get { return _max_entries; }
set { _max_entries = value; }
}
private int _num_entries = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"num_entries", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_entries
{
get { return _num_entries; }
set { _num_entries = value; }
}
private bool _user_data_fixed_size = default(bool);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"user_data_fixed_size", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool user_data_fixed_size
{
get { return _user_data_fixed_size; }
set { _user_data_fixed_size = value; }
}
private int _user_data_size = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"user_data_size", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int user_data_size
{
get { return _user_data_size; }
set { _user_data_size = value; }
}
private int _user_data_size_bits = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"user_data_size_bits", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int user_data_size_bits
{
get { return _user_data_size_bits; }
set { _user_data_size_bits = value; }
}
private int _flags = default(int);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int flags
{
get { return _flags; }
set { _flags = value; }
}
private byte[] _string_data = null;
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"string_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]
public byte[] string_data
{
get { return _string_data; }
set { _string_data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_UpdateStringTable")]
public partial class CSVCMsg_UpdateStringTable : global::ProtoBuf.IExtensible
{
public CSVCMsg_UpdateStringTable() { }
private int _table_id = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"table_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int table_id
{
get { return _table_id; }
set { _table_id = value; }
}
private int _num_changed_entries = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"num_changed_entries", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_changed_entries
{
get { return _num_changed_entries; }
set { _num_changed_entries = value; }
}
private byte[] _string_data = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"string_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]
public byte[] string_data
{
get { return _string_data; }
set { _string_data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_VoiceData")]
public partial class CSVCMsg_VoiceData : global::ProtoBuf.IExtensible
{
public CSVCMsg_VoiceData() { }
private int _client = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"client", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int client
{
get { return _client; }
set { _client = value; }
}
private bool _proximity = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"proximity", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool proximity
{
get { return _proximity; }
set { _proximity = value; }
}
private ulong _xuid = default(ulong);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"xuid", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(ulong))]
public ulong xuid
{
get { return _xuid; }
set { _xuid = value; }
}
private int _audible_mask = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"audible_mask", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int audible_mask
{
get { return _audible_mask; }
set { _audible_mask = value; }
}
private byte[] _voice_data = null;
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"voice_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public byte[] voice_data
{
get { return _voice_data; }
set { _voice_data = value; }
}
private VoiceDataFormat_t _format = VoiceDataFormat_t.VOICEDATA_FORMAT_STEAM;
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"format", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(VoiceDataFormat_t.VOICEDATA_FORMAT_STEAM)]
public VoiceDataFormat_t format
{
get { return _format; }
set { _format = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_PacketReliable")]
public partial class CSVCMsg_PacketReliable : global::ProtoBuf.IExtensible
{
public CSVCMsg_PacketReliable() { }
private int _tick = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"tick", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int tick
{
get { return _tick; }
set { _tick = value; }
}
private int _messagessize = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"messagessize", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int messagessize
{
get { return _messagessize; }
set { _messagessize = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_FullFrameSplit")]
public partial class CSVCMsg_FullFrameSplit : global::ProtoBuf.IExtensible
{
public CSVCMsg_FullFrameSplit() { }
private int _tick = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"tick", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int tick
{
get { return _tick; }
set { _tick = value; }
}
private int _section = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"section", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int section
{
get { return _section; }
set { _section = value; }
}
private int _total = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"total", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int total
{
get { return _total; }
set { _total = value; }
}
private byte[] _data = null;
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
[Newtonsoft.Json.JsonIgnore]public byte[] data
{
get { return _data; }
set { _data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CMsgVector")]
public partial class CMsgVector : global::ProtoBuf.IExtensible
{
public CMsgVector() { }
private float _x = default(float);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float x
{
get { return _x; }
set { _x = value; }
}
private float _y = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float y
{
get { return _y; }
set { _y = value; }
}
private float _z = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"z", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float z
{
get { return _z; }
set { _z = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CMsgVector2D")]
public partial class CMsgVector2D : global::ProtoBuf.IExtensible
{
public CMsgVector2D() { }
private float _x = default(float);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float x
{
get { return _x; }
set { _x = value; }
}
private float _y = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float y
{
get { return _y; }
set { _y = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CMsgQAngle")]
public partial class CMsgQAngle : global::ProtoBuf.IExtensible
{
public CMsgQAngle() { }
private float _x = default(float);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float x
{
get { return _x; }
set { _x = value; }
}
private float _y = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float y
{
get { return _y; }
set { _y = value; }
}
private float _z = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"z", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float z
{
get { return _z; }
set { _z = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_GameEvent")]
public partial class CSVCMsg_GameEvent : global::ProtoBuf.IExtensible
{
public CSVCMsg_GameEvent() {
}
private string _event_name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"event_name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string event_name
{
get { return _event_name; }
set { _event_name = value; }
}
private int _eventid = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"eventid", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int eventid
{
get { return _eventid; }
set { _eventid = value; }
}
private readonly global::System.Collections.Generic.List<CSVCMsg_GameEvent.key_t> _keys = new global::System.Collections.Generic.List<CSVCMsg_GameEvent.key_t>();
[global::ProtoBuf.ProtoMember(3, Name = @"keys", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsg_GameEvent.key_t> keys
{
get { return _keys; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"key_t")]
public partial class key_t : global::ProtoBuf.IExtensible
{
public key_t() { }
private int _type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int type
{
get { return _type; }
set { _type = value; }
}
private string _val_string = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"val_string", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string val_string
{
get { return _val_string; }
set { _val_string = value; }
}
private float _val_float = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"val_float", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float val_float
{
get { return _val_float; }
set { _val_float = value; }
}
private int _val_long = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"val_long", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int val_long
{
get { return _val_long; }
set { _val_long = value; }
}
private int _val_short = default(int);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"val_short", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int val_short
{
get { return _val_short; }
set { _val_short = value; }
}
private int _val_byte = default(int);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"val_byte", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int val_byte
{
get { return _val_byte; }
set { _val_byte = value; }
}
private bool _val_bool = default(bool);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"val_bool", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool val_bool
{
get { return _val_bool; }
set { _val_bool = value; }
}
private ulong _val_uint64 = default(ulong);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"val_uint64", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(ulong))]
public ulong val_uint64
{
get { return _val_uint64; }
set { _val_uint64 = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsgList_GameEvents")]
public partial class CSVCMsgList_GameEvents : global::ProtoBuf.IExtensible
{
public CSVCMsgList_GameEvents() { }
private readonly global::System.Collections.Generic.List<CSVCMsgList_GameEvents.event_t> _events = new global::System.Collections.Generic.List<CSVCMsgList_GameEvents.event_t>();
[global::ProtoBuf.ProtoMember(1, Name = @"events", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsgList_GameEvents.event_t> events
{
get { return _events; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"event_t")]
public partial class event_t : global::ProtoBuf.IExtensible
{
public event_t() { }
private int _tick = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"tick", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int tick
{
get { return _tick; }
set { _tick = value; }
}
private CSVCMsg_GameEvent _event = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"event", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CSVCMsg_GameEvent @event
{
get { return _event; }
set { _event = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsg_UserMessage")]
public partial class CSVCMsg_UserMessage : global::ProtoBuf.IExtensible
{
public CSVCMsg_UserMessage() { }
private int _msg_type = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"msg_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int msg_type
{
get { return _msg_type; }
set { _msg_type = value; }
}
private byte[] _msg_data = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"msg_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public byte[] msg_data
{
get { return _msg_data; }
set { _msg_data = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CSVCMsgList_UserMessages")]
public partial class CSVCMsgList_UserMessages : global::ProtoBuf.IExtensible
{
public CSVCMsgList_UserMessages() { }
private readonly global::System.Collections.Generic.List<CSVCMsgList_UserMessages.usermsg_t> _usermsgs = new global::System.Collections.Generic.List<CSVCMsgList_UserMessages.usermsg_t>();
[global::ProtoBuf.ProtoMember(1, Name = @"usermsgs", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CSVCMsgList_UserMessages.usermsg_t> usermsgs
{
get { return _usermsgs; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"usermsg_t")]
public partial class usermsg_t : global::ProtoBuf.IExtensible
{
public usermsg_t() { }
private int _tick = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"tick", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int tick
{
get { return _tick; }
set { _tick = value; }
}
private CSVCMsg_UserMessage _msg = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CSVCMsg_UserMessage msg
{
get { return _msg; }
set { _msg = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_AchievementEvent")]
public partial class CUserMsg_AchievementEvent : global::ProtoBuf.IExtensible
{
public CUserMsg_AchievementEvent() { }
private uint _achievement = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"achievement", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint achievement
{
get { return _achievement; }
set { _achievement = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_CloseCaption")]
public partial class CUserMsg_CloseCaption : global::ProtoBuf.IExtensible
{
public CUserMsg_CloseCaption() { }
private uint _hash = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"hash", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint hash
{
get { return _hash; }
set { _hash = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private bool _from_player = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"from_player", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool from_player
{
get { return _from_player; }
set { _from_player = value; }
}
private int _ent_index = default(int);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"ent_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int ent_index
{
get { return _ent_index; }
set { _ent_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_CurrentTimescale")]
public partial class CUserMsg_CurrentTimescale : global::ProtoBuf.IExtensible
{
public CUserMsg_CurrentTimescale() { }
private float _current = default(float);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"current", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float current
{
get { return _current; }
set { _current = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_DesiredTimescale")]
public partial class CUserMsg_DesiredTimescale : global::ProtoBuf.IExtensible
{
public CUserMsg_DesiredTimescale() { }
private float _desired = default(float);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"desired", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float desired
{
get { return _desired; }
set { _desired = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private uint _interpolator = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"interpolator", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint interpolator
{
get { return _interpolator; }
set { _interpolator = value; }
}
private float _start_blend_time = default(float);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"start_blend_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float start_blend_time
{
get { return _start_blend_time; }
set { _start_blend_time = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_Fade")]
public partial class CUserMsg_Fade : global::ProtoBuf.IExtensible
{
public CUserMsg_Fade() { }
private uint _duration = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint duration
{
get { return _duration; }
set { _duration = value; }
}
private uint _hold_time = default(uint);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"hold_time", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint hold_time
{
get { return _hold_time; }
set { _hold_time = value; }
}
private uint _flags = default(uint);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint flags
{
get { return _flags; }
set { _flags = value; }
}
private uint _color = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"color", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint color
{
get { return _color; }
set { _color = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_Shake")]
public partial class CUserMsg_Shake : global::ProtoBuf.IExtensible
{
public CUserMsg_Shake() { }
private uint _command = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"command", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint command
{
get { return _command; }
set { _command = value; }
}
private float _amplitude = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"amplitude", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float amplitude
{
get { return _amplitude; }
set { _amplitude = value; }
}
private float _frequency = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"frequency", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float frequency
{
get { return _frequency; }
set { _frequency = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_ShakeDir")]
public partial class CUserMsg_ShakeDir : global::ProtoBuf.IExtensible
{
public CUserMsg_ShakeDir() { }
private CUserMsg_Shake _shake = null;
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"shake", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CUserMsg_Shake shake
{
get { return _shake; }
set { _shake = value; }
}
private CMsgVector _direction = null;
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"direction", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector direction
{
get { return _direction; }
set { _direction = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_Tilt")]
public partial class CUserMsg_Tilt : global::ProtoBuf.IExtensible
{
public CUserMsg_Tilt() { }
private uint _command = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"command", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint command
{
get { return _command; }
set { _command = value; }
}
private bool _ease_in_out = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"ease_in_out", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool ease_in_out
{
get { return _ease_in_out; }
set { _ease_in_out = value; }
}
private CMsgVector _angle = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"angle", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CMsgVector angle
{
get { return _angle; }
set { _angle = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private float _time = default(float);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float time
{
get { return _time; }
set { _time = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_SayText")]
public partial class CUserMsg_SayText : global::ProtoBuf.IExtensible
{
public CUserMsg_SayText() { }
private uint _client = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"client", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint client
{
get { return _client; }
set { _client = value; }
}
private string _text = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string text
{
get { return _text; }
set { _text = value; }
}
private bool _chat = default(bool);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"chat", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool chat
{
get { return _chat; }
set { _chat = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_SayText2")]
public partial class CUserMsg_SayText2 : global::ProtoBuf.IExtensible
{
public CUserMsg_SayText2() { }
private uint _client = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"client", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint client
{
get { return _client; }
set { _client = value; }
}
private bool _chat = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"chat", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool chat
{
get { return _chat; }
set { _chat = value; }
}
private string _format = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"format", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string format
{
get { return _format; }
set { _format = value; }
}
private string _prefix = "";
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"prefix", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string prefix
{
get { return _prefix; }
set { _prefix = value; }
}
private string _text = "";
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string text
{
get { return _text; }
set { _text = value; }
}
private string _location = "";
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"location", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string location
{
get { return _location; }
set { _location = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_HudMsg")]
public partial class CUserMsg_HudMsg : global::ProtoBuf.IExtensible
{
public CUserMsg_HudMsg() { }
private uint _channel = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"channel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint channel
{
get { return _channel; }
set { _channel = value; }
}
private float _x = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"x", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float x
{
get { return _x; }
set { _x = value; }
}
private float _y = default(float);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"y", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float y
{
get { return _y; }
set { _y = value; }
}
private uint _color1 = default(uint);
[global::ProtoBuf.ProtoMember(4, IsRequired = false, Name = @"color1", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint color1
{
get { return _color1; }
set { _color1 = value; }
}
private uint _color2 = default(uint);
[global::ProtoBuf.ProtoMember(5, IsRequired = false, Name = @"color2", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint color2
{
get { return _color2; }
set { _color2 = value; }
}
private uint _effect = default(uint);
[global::ProtoBuf.ProtoMember(6, IsRequired = false, Name = @"effect", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint effect
{
get { return _effect; }
set { _effect = value; }
}
private float _fade_in_time = default(float);
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name = @"fade_in_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float fade_in_time
{
get { return _fade_in_time; }
set { _fade_in_time = value; }
}
private float _fade_out_time = default(float);
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name = @"fade_out_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float fade_out_time
{
get { return _fade_out_time; }
set { _fade_out_time = value; }
}
private float _hold_time = default(float);
[global::ProtoBuf.ProtoMember(9, IsRequired = false, Name = @"hold_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float hold_time
{
get { return _hold_time; }
set { _hold_time = value; }
}
private float _fx_time = default(float);
[global::ProtoBuf.ProtoMember(10, IsRequired = false, Name = @"fx_time", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float fx_time
{
get { return _fx_time; }
set { _fx_time = value; }
}
private string _message = "";
[global::ProtoBuf.ProtoMember(11, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_HudText")]
public partial class CUserMsg_HudText : global::ProtoBuf.IExtensible
{
public CUserMsg_HudText() { }
private string _message = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_TextMsg")]
public partial class CUserMsg_TextMsg : global::ProtoBuf.IExtensible
{
public CUserMsg_TextMsg() { }
private uint _dest = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"dest", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint dest
{
get { return _dest; }
set { _dest = value; }
}
private readonly global::System.Collections.Generic.List<string> _param = new global::System.Collections.Generic.List<string>();
[global::ProtoBuf.ProtoMember(2, Name = @"param", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<string> param
{
get { return _param; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_GameTitle")]
public partial class CUserMsg_GameTitle : global::ProtoBuf.IExtensible
{
public CUserMsg_GameTitle() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_ResetHUD")]
public partial class CUserMsg_ResetHUD : global::ProtoBuf.IExtensible
{
public CUserMsg_ResetHUD() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_SendAudio")]
public partial class CUserMsg_SendAudio : global::ProtoBuf.IExtensible
{
public CUserMsg_SendAudio() { }
private bool _stop = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"stop", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool stop
{
get { return _stop; }
set { _stop = value; }
}
private string _name = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_VoiceMask")]
public partial class CUserMsg_VoiceMask : global::ProtoBuf.IExtensible
{
public CUserMsg_VoiceMask() { }
private readonly global::System.Collections.Generic.List<int> _audible_players_mask = new global::System.Collections.Generic.List<int>();
[global::ProtoBuf.ProtoMember(1, Name = @"audible_players_mask", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<int> audible_players_mask
{
get { return _audible_players_mask; }
}
private bool _player_mod_enabled = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"player_mod_enabled", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool player_mod_enabled
{
get { return _player_mod_enabled; }
set { _player_mod_enabled = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_RequestState")]
public partial class CUserMsg_RequestState : global::ProtoBuf.IExtensible
{
public CUserMsg_RequestState() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_HintText")]
public partial class CUserMsg_HintText : global::ProtoBuf.IExtensible
{
public CUserMsg_HintText() { }
private string _message = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string message
{
get { return _message; }
set { _message = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_KeyHintText")]
public partial class CUserMsg_KeyHintText : global::ProtoBuf.IExtensible
{
public CUserMsg_KeyHintText() { }
private readonly global::System.Collections.Generic.List<string> _messages = new global::System.Collections.Generic.List<string>();
[global::ProtoBuf.ProtoMember(1, Name = @"messages", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<string> messages
{
get { return _messages; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_StatsCrawlMsg")]
public partial class CUserMsg_StatsCrawlMsg : global::ProtoBuf.IExtensible
{
public CUserMsg_StatsCrawlMsg() { }
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_StatsSkipState")]
public partial class CUserMsg_StatsSkipState : global::ProtoBuf.IExtensible
{
public CUserMsg_StatsSkipState() { }
private int _num_skips = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"num_skips", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_skips
{
get { return _num_skips; }
set { _num_skips = value; }
}
private int _num_players = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"num_players", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int num_players
{
get { return _num_players; }
set { _num_players = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_VoiceSubtitle")]
public partial class CUserMsg_VoiceSubtitle : global::ProtoBuf.IExtensible
{
public CUserMsg_VoiceSubtitle() { }
private int _ent_index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"ent_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int ent_index
{
get { return _ent_index; }
set { _ent_index = value; }
}
private int _menu = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"menu", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int menu
{
get { return _menu; }
set { _menu = value; }
}
private int _item = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"item", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int item
{
get { return _item; }
set { _item = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_VGUIMenu")]
public partial class CUserMsg_VGUIMenu : global::ProtoBuf.IExtensible
{
public CUserMsg_VGUIMenu() { }
private string _name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private bool _show = default(bool);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"show", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(default(bool))]
public bool show
{
get { return _show; }
set { _show = value; }
}
private readonly global::System.Collections.Generic.List<CUserMsg_VGUIMenu.Keys> _keys = new global::System.Collections.Generic.List<CUserMsg_VGUIMenu.Keys>();
[global::ProtoBuf.ProtoMember(3, Name = @"keys", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List<CUserMsg_VGUIMenu.Keys> keys
{
get { return _keys; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"Keys")]
public partial class Keys : global::ProtoBuf.IExtensible
{
public Keys() { }
private string _name = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"name", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get { return _name; }
set { _name = value; }
}
private string _value = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"value", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string value
{
get { return _value; }
set { _value = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_Geiger")]
public partial class CUserMsg_Geiger : global::ProtoBuf.IExtensible
{
public CUserMsg_Geiger() { }
private int _range = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"range", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int range
{
get { return _range; }
set { _range = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_Rumble")]
public partial class CUserMsg_Rumble : global::ProtoBuf.IExtensible
{
public CUserMsg_Rumble() { }
private int _index = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int index
{
get { return _index; }
set { _index = value; }
}
private int _data = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"data", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int data
{
get { return _data; }
set { _data = value; }
}
private int _flags = default(int);
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"flags", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int flags
{
get { return _flags; }
set { _flags = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_Train")]
public partial class CUserMsg_Train : global::ProtoBuf.IExtensible
{
public CUserMsg_Train() { }
private int _train = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"train", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int train
{
get { return _train; }
set { _train = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_SayTextChannel")]
public partial class CUserMsg_SayTextChannel : global::ProtoBuf.IExtensible
{
public CUserMsg_SayTextChannel() { }
private int _player = default(int);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"player", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int player
{
get { return _player; }
set { _player = value; }
}
private int _channel = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"channel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int channel
{
get { return _channel; }
set { _channel = value; }
}
private string _text = "";
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string text
{
get { return _text; }
set { _text = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_MessageText")]
public partial class CUserMsg_MessageText : global::ProtoBuf.IExtensible
{
public CUserMsg_MessageText() { }
private uint _color = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"color", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint color
{
get { return _color; }
set { _color = value; }
}
private string _text = "";
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"text", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string text
{
get { return _text; }
set { _text = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"CUserMsg_CameraTransition")]
public partial class CUserMsg_CameraTransition : global::ProtoBuf.IExtensible
{
public CUserMsg_CameraTransition() { }
private uint _camera_type = default(uint);
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"camera_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(uint))]
public uint camera_type
{
get { return _camera_type; }
set { _camera_type = value; }
}
private float _duration = default(float);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"duration", DataFormat = global::ProtoBuf.DataFormat.FixedSize)]
[global::System.ComponentModel.DefaultValue(default(float))]
public float duration
{
get { return _duration; }
set { _duration = value; }
}
private CUserMsg_CameraTransition.Transition_DataDriven _params_data_driven = null;
[global::ProtoBuf.ProtoMember(3, IsRequired = false, Name = @"params_data_driven", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue(null)]
public CUserMsg_CameraTransition.Transition_DataDriven params_data_driven
{
get { return _params_data_driven; }
set { _params_data_driven = value; }
}
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name = @"Transition_DataDriven")]
public partial class Transition_DataDriven : global::ProtoBuf.IExtensible
{
public Transition_DataDriven() { }
private string _filename = "";
[global::ProtoBuf.ProtoMember(1, IsRequired = false, Name = @"filename", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string filename
{
get { return _filename; }
set { _filename = value; }
}
private int _attach_ent_index = default(int);
[global::ProtoBuf.ProtoMember(2, IsRequired = false, Name = @"attach_ent_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(default(int))]
public int attach_ent_index
{
get { return _attach_ent_index; }
set { _attach_ent_index = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
}
[global::ProtoBuf.ProtoContract(Name = @"Activity")]
public enum Activity
{
[global::ProtoBuf.ProtoEnum(Name = @"ACT_INVALID", Value = -1)]
ACT_INVALID = -1,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RESET", Value = 0)]
ACT_RESET = 0,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE", Value = 1)]
ACT_IDLE = 1,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_TRANSITION", Value = 2)]
ACT_TRANSITION = 2,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COVER", Value = 3)]
ACT_COVER = 3,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COVER_MED", Value = 4)]
ACT_COVER_MED = 4,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COVER_LOW", Value = 5)]
ACT_COVER_LOW = 5,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK", Value = 6)]
ACT_WALK = 6,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM", Value = 7)]
ACT_WALK_AIM = 7,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_CROUCH", Value = 8)]
ACT_WALK_CROUCH = 8,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_CROUCH_AIM", Value = 9)]
ACT_WALK_CROUCH_AIM = 9,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN", Value = 10)]
ACT_RUN = 10,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM", Value = 11)]
ACT_RUN_AIM = 11,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_CROUCH", Value = 12)]
ACT_RUN_CROUCH = 12,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_CROUCH_AIM", Value = 13)]
ACT_RUN_CROUCH_AIM = 13,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_PROTECTED", Value = 14)]
ACT_RUN_PROTECTED = 14,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SCRIPT_CUSTOM_MOVE", Value = 15)]
ACT_SCRIPT_CUSTOM_MOVE = 15,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK1", Value = 16)]
ACT_RANGE_ATTACK1 = 16,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK2", Value = 17)]
ACT_RANGE_ATTACK2 = 17,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK1_LOW", Value = 18)]
ACT_RANGE_ATTACK1_LOW = 18,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK2_LOW", Value = 19)]
ACT_RANGE_ATTACK2_LOW = 19,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIESIMPLE", Value = 20)]
ACT_DIESIMPLE = 20,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIEBACKWARD", Value = 21)]
ACT_DIEBACKWARD = 21,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIEFORWARD", Value = 22)]
ACT_DIEFORWARD = 22,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIEVIOLENT", Value = 23)]
ACT_DIEVIOLENT = 23,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIERAGDOLL", Value = 24)]
ACT_DIERAGDOLL = 24,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLY", Value = 25)]
ACT_FLY = 25,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_HOVER", Value = 26)]
ACT_HOVER = 26,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GLIDE", Value = 27)]
ACT_GLIDE = 27,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SWIM", Value = 28)]
ACT_SWIM = 28,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_JUMP", Value = 29)]
ACT_JUMP = 29,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_HOP", Value = 30)]
ACT_HOP = 30,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_LEAP", Value = 31)]
ACT_LEAP = 31,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_LAND", Value = 32)]
ACT_LAND = 32,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CLIMB_UP", Value = 33)]
ACT_CLIMB_UP = 33,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CLIMB_DOWN", Value = 34)]
ACT_CLIMB_DOWN = 34,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CLIMB_DISMOUNT", Value = 35)]
ACT_CLIMB_DISMOUNT = 35,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SHIPLADDER_UP", Value = 36)]
ACT_SHIPLADDER_UP = 36,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SHIPLADDER_DOWN", Value = 37)]
ACT_SHIPLADDER_DOWN = 37,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STRAFE_LEFT", Value = 38)]
ACT_STRAFE_LEFT = 38,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STRAFE_RIGHT", Value = 39)]
ACT_STRAFE_RIGHT = 39,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_ROLL_LEFT", Value = 40)]
ACT_ROLL_LEFT = 40,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_ROLL_RIGHT", Value = 41)]
ACT_ROLL_RIGHT = 41,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_TURN_LEFT", Value = 42)]
ACT_TURN_LEFT = 42,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_TURN_RIGHT", Value = 43)]
ACT_TURN_RIGHT = 43,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CROUCH", Value = 44)]
ACT_CROUCH = 44,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CROUCHIDLE", Value = 45)]
ACT_CROUCHIDLE = 45,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STAND", Value = 46)]
ACT_STAND = 46,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_USE", Value = 47)]
ACT_USE = 47,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_ALIEN_BURROW_IDLE", Value = 48)]
ACT_ALIEN_BURROW_IDLE = 48,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_ALIEN_BURROW_OUT", Value = 49)]
ACT_ALIEN_BURROW_OUT = 49,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL1", Value = 50)]
ACT_SIGNAL1 = 50,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL2", Value = 51)]
ACT_SIGNAL2 = 51,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL3", Value = 52)]
ACT_SIGNAL3 = 52,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_ADVANCE", Value = 53)]
ACT_SIGNAL_ADVANCE = 53,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_FORWARD", Value = 54)]
ACT_SIGNAL_FORWARD = 54,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_GROUP", Value = 55)]
ACT_SIGNAL_GROUP = 55,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_HALT", Value = 56)]
ACT_SIGNAL_HALT = 56,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_LEFT", Value = 57)]
ACT_SIGNAL_LEFT = 57,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_RIGHT", Value = 58)]
ACT_SIGNAL_RIGHT = 58,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SIGNAL_TAKECOVER", Value = 59)]
ACT_SIGNAL_TAKECOVER = 59,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_LOOKBACK_RIGHT", Value = 60)]
ACT_LOOKBACK_RIGHT = 60,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_LOOKBACK_LEFT", Value = 61)]
ACT_LOOKBACK_LEFT = 61,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COWER", Value = 62)]
ACT_COWER = 62,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMALL_FLINCH", Value = 63)]
ACT_SMALL_FLINCH = 63,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BIG_FLINCH", Value = 64)]
ACT_BIG_FLINCH = 64,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_MELEE_ATTACK1", Value = 65)]
ACT_MELEE_ATTACK1 = 65,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_MELEE_ATTACK2", Value = 66)]
ACT_MELEE_ATTACK2 = 66,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD", Value = 67)]
ACT_RELOAD = 67,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_START", Value = 68)]
ACT_RELOAD_START = 68,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_FINISH", Value = 69)]
ACT_RELOAD_FINISH = 69,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_LOW", Value = 70)]
ACT_RELOAD_LOW = 70,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_ARM", Value = 71)]
ACT_ARM = 71,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DISARM", Value = 72)]
ACT_DISARM = 72,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DROP_WEAPON", Value = 73)]
ACT_DROP_WEAPON = 73,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DROP_WEAPON_SHOTGUN", Value = 74)]
ACT_DROP_WEAPON_SHOTGUN = 74,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PICKUP_GROUND", Value = 75)]
ACT_PICKUP_GROUND = 75,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PICKUP_RACK", Value = 76)]
ACT_PICKUP_RACK = 76,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ANGRY", Value = 77)]
ACT_IDLE_ANGRY = 77,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_RELAXED", Value = 78)]
ACT_IDLE_RELAXED = 78,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_STIMULATED", Value = 79)]
ACT_IDLE_STIMULATED = 79,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_AGITATED", Value = 80)]
ACT_IDLE_AGITATED = 80,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_STEALTH", Value = 81)]
ACT_IDLE_STEALTH = 81,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_HURT", Value = 82)]
ACT_IDLE_HURT = 82,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_RELAXED", Value = 83)]
ACT_WALK_RELAXED = 83,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_STIMULATED", Value = 84)]
ACT_WALK_STIMULATED = 84,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AGITATED", Value = 85)]
ACT_WALK_AGITATED = 85,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_STEALTH", Value = 86)]
ACT_WALK_STEALTH = 86,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_RELAXED", Value = 87)]
ACT_RUN_RELAXED = 87,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_STIMULATED", Value = 88)]
ACT_RUN_STIMULATED = 88,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AGITATED", Value = 89)]
ACT_RUN_AGITATED = 89,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_STEALTH", Value = 90)]
ACT_RUN_STEALTH = 90,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_AIM_RELAXED", Value = 91)]
ACT_IDLE_AIM_RELAXED = 91,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_AIM_STIMULATED", Value = 92)]
ACT_IDLE_AIM_STIMULATED = 92,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_AIM_AGITATED", Value = 93)]
ACT_IDLE_AIM_AGITATED = 93,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_AIM_STEALTH", Value = 94)]
ACT_IDLE_AIM_STEALTH = 94,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_RELAXED", Value = 95)]
ACT_WALK_AIM_RELAXED = 95,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_STIMULATED", Value = 96)]
ACT_WALK_AIM_STIMULATED = 96,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_AGITATED", Value = 97)]
ACT_WALK_AIM_AGITATED = 97,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_STEALTH", Value = 98)]
ACT_WALK_AIM_STEALTH = 98,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_RELAXED", Value = 99)]
ACT_RUN_AIM_RELAXED = 99,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_STIMULATED", Value = 100)]
ACT_RUN_AIM_STIMULATED = 100,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_AGITATED", Value = 101)]
ACT_RUN_AIM_AGITATED = 101,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_STEALTH", Value = 102)]
ACT_RUN_AIM_STEALTH = 102,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CROUCHIDLE_STIMULATED", Value = 103)]
ACT_CROUCHIDLE_STIMULATED = 103,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CROUCHIDLE_AIM_STIMULATED", Value = 104)]
ACT_CROUCHIDLE_AIM_STIMULATED = 104,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_CROUCHIDLE_AGITATED", Value = 105)]
ACT_CROUCHIDLE_AGITATED = 105,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_HURT", Value = 106)]
ACT_WALK_HURT = 106,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_HURT", Value = 107)]
ACT_RUN_HURT = 107,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SPECIAL_ATTACK1", Value = 108)]
ACT_SPECIAL_ATTACK1 = 108,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SPECIAL_ATTACK2", Value = 109)]
ACT_SPECIAL_ATTACK2 = 109,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COMBAT_IDLE", Value = 110)]
ACT_COMBAT_IDLE = 110,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_SCARED", Value = 111)]
ACT_WALK_SCARED = 111,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_SCARED", Value = 112)]
ACT_RUN_SCARED = 112,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VICTORY_DANCE", Value = 113)]
ACT_VICTORY_DANCE = 113,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_HEADSHOT", Value = 114)]
ACT_DIE_HEADSHOT = 114,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_CHESTSHOT", Value = 115)]
ACT_DIE_CHESTSHOT = 115,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_GUTSHOT", Value = 116)]
ACT_DIE_GUTSHOT = 116,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_BACKSHOT", Value = 117)]
ACT_DIE_BACKSHOT = 117,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_HEAD", Value = 118)]
ACT_FLINCH_HEAD = 118,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_CHEST", Value = 119)]
ACT_FLINCH_CHEST = 119,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_STOMACH", Value = 120)]
ACT_FLINCH_STOMACH = 120,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_LEFTARM", Value = 121)]
ACT_FLINCH_LEFTARM = 121,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_RIGHTARM", Value = 122)]
ACT_FLINCH_RIGHTARM = 122,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_LEFTLEG", Value = 123)]
ACT_FLINCH_LEFTLEG = 123,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_RIGHTLEG", Value = 124)]
ACT_FLINCH_RIGHTLEG = 124,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_PHYSICS", Value = 125)]
ACT_FLINCH_PHYSICS = 125,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_HEAD_BACK", Value = 126)]
ACT_FLINCH_HEAD_BACK = 126,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_CHEST_BACK", Value = 127)]
ACT_FLINCH_CHEST_BACK = 127,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_STOMACH_BACK", Value = 128)]
ACT_FLINCH_STOMACH_BACK = 128,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_CROUCH_FRONT", Value = 129)]
ACT_FLINCH_CROUCH_FRONT = 129,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_CROUCH_BACK", Value = 130)]
ACT_FLINCH_CROUCH_BACK = 130,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_CROUCH_LEFT", Value = 131)]
ACT_FLINCH_CROUCH_LEFT = 131,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_FLINCH_CROUCH_RIGHT", Value = 132)]
ACT_FLINCH_CROUCH_RIGHT = 132,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ON_FIRE", Value = 133)]
ACT_IDLE_ON_FIRE = 133,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_ON_FIRE", Value = 134)]
ACT_WALK_ON_FIRE = 134,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_ON_FIRE", Value = 135)]
ACT_RUN_ON_FIRE = 135,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RAPPEL_LOOP", Value = 136)]
ACT_RAPPEL_LOOP = 136,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_180_LEFT", Value = 137)]
ACT_180_LEFT = 137,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_180_RIGHT", Value = 138)]
ACT_180_RIGHT = 138,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_90_LEFT", Value = 139)]
ACT_90_LEFT = 139,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_90_RIGHT", Value = 140)]
ACT_90_RIGHT = 140,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STEP_LEFT", Value = 141)]
ACT_STEP_LEFT = 141,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STEP_RIGHT", Value = 142)]
ACT_STEP_RIGHT = 142,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STEP_BACK", Value = 143)]
ACT_STEP_BACK = 143,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STEP_FORE", Value = 144)]
ACT_STEP_FORE = 144,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK1", Value = 145)]
ACT_GESTURE_RANGE_ATTACK1 = 145,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK2", Value = 146)]
ACT_GESTURE_RANGE_ATTACK2 = 146,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_MELEE_ATTACK1", Value = 147)]
ACT_GESTURE_MELEE_ATTACK1 = 147,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_MELEE_ATTACK2", Value = 148)]
ACT_GESTURE_MELEE_ATTACK2 = 148,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK1_LOW", Value = 149)]
ACT_GESTURE_RANGE_ATTACK1_LOW = 149,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK2_LOW", Value = 150)]
ACT_GESTURE_RANGE_ATTACK2_LOW = 150,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_MELEE_ATTACK_SWING_GESTURE", Value = 151)]
ACT_MELEE_ATTACK_SWING_GESTURE = 151,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_SMALL_FLINCH", Value = 152)]
ACT_GESTURE_SMALL_FLINCH = 152,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_BIG_FLINCH", Value = 153)]
ACT_GESTURE_BIG_FLINCH = 153,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_BLAST", Value = 154)]
ACT_GESTURE_FLINCH_BLAST = 154,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_BLAST_SHOTGUN", Value = 155)]
ACT_GESTURE_FLINCH_BLAST_SHOTGUN = 155,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_BLAST_DAMAGED", Value = 156)]
ACT_GESTURE_FLINCH_BLAST_DAMAGED = 156,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_BLAST_DAMAGED_SHOTGUN", Value = 157)]
ACT_GESTURE_FLINCH_BLAST_DAMAGED_SHOTGUN = 157,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_HEAD", Value = 158)]
ACT_GESTURE_FLINCH_HEAD = 158,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_CHEST", Value = 159)]
ACT_GESTURE_FLINCH_CHEST = 159,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_STOMACH", Value = 160)]
ACT_GESTURE_FLINCH_STOMACH = 160,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_LEFTARM", Value = 161)]
ACT_GESTURE_FLINCH_LEFTARM = 161,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_RIGHTARM", Value = 162)]
ACT_GESTURE_FLINCH_RIGHTARM = 162,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_LEFTLEG", Value = 163)]
ACT_GESTURE_FLINCH_LEFTLEG = 163,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_FLINCH_RIGHTLEG", Value = 164)]
ACT_GESTURE_FLINCH_RIGHTLEG = 164,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_LEFT", Value = 165)]
ACT_GESTURE_TURN_LEFT = 165,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_RIGHT", Value = 166)]
ACT_GESTURE_TURN_RIGHT = 166,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_LEFT45", Value = 167)]
ACT_GESTURE_TURN_LEFT45 = 167,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_RIGHT45", Value = 168)]
ACT_GESTURE_TURN_RIGHT45 = 168,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_LEFT90", Value = 169)]
ACT_GESTURE_TURN_LEFT90 = 169,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_RIGHT90", Value = 170)]
ACT_GESTURE_TURN_RIGHT90 = 170,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_LEFT45_FLAT", Value = 171)]
ACT_GESTURE_TURN_LEFT45_FLAT = 171,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_RIGHT45_FLAT", Value = 172)]
ACT_GESTURE_TURN_RIGHT45_FLAT = 172,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_LEFT90_FLAT", Value = 173)]
ACT_GESTURE_TURN_LEFT90_FLAT = 173,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_TURN_RIGHT90_FLAT", Value = 174)]
ACT_GESTURE_TURN_RIGHT90_FLAT = 174,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BARNACLE_HIT", Value = 175)]
ACT_BARNACLE_HIT = 175,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BARNACLE_PULL", Value = 176)]
ACT_BARNACLE_PULL = 176,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BARNACLE_CHOMP", Value = 177)]
ACT_BARNACLE_CHOMP = 177,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BARNACLE_CHEW", Value = 178)]
ACT_BARNACLE_CHEW = 178,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DO_NOT_DISTURB", Value = 179)]
ACT_DO_NOT_DISTURB = 179,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SPECIFIC_SEQUENCE", Value = 180)]
ACT_SPECIFIC_SEQUENCE = 180,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_DRAW", Value = 181)]
ACT_VM_DRAW = 181,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HOLSTER", Value = 182)]
ACT_VM_HOLSTER = 182,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_IDLE", Value = 183)]
ACT_VM_IDLE = 183,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_FIDGET", Value = 184)]
ACT_VM_FIDGET = 184,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_PULLBACK", Value = 185)]
ACT_VM_PULLBACK = 185,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_PULLBACK_HIGH", Value = 186)]
ACT_VM_PULLBACK_HIGH = 186,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_PULLBACK_LOW", Value = 187)]
ACT_VM_PULLBACK_LOW = 187,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_THROW", Value = 188)]
ACT_VM_THROW = 188,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_PULLPIN", Value = 189)]
ACT_VM_PULLPIN = 189,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_PRIMARYATTACK", Value = 190)]
ACT_VM_PRIMARYATTACK = 190,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_SECONDARYATTACK", Value = 191)]
ACT_VM_SECONDARYATTACK = 191,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_RELOAD", Value = 192)]
ACT_VM_RELOAD = 192,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_DRYFIRE", Value = 193)]
ACT_VM_DRYFIRE = 193,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HITLEFT", Value = 194)]
ACT_VM_HITLEFT = 194,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HITLEFT2", Value = 195)]
ACT_VM_HITLEFT2 = 195,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HITRIGHT", Value = 196)]
ACT_VM_HITRIGHT = 196,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HITRIGHT2", Value = 197)]
ACT_VM_HITRIGHT2 = 197,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HITCENTER", Value = 198)]
ACT_VM_HITCENTER = 198,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HITCENTER2", Value = 199)]
ACT_VM_HITCENTER2 = 199,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_MISSLEFT", Value = 200)]
ACT_VM_MISSLEFT = 200,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_MISSLEFT2", Value = 201)]
ACT_VM_MISSLEFT2 = 201,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_MISSRIGHT", Value = 202)]
ACT_VM_MISSRIGHT = 202,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_MISSRIGHT2", Value = 203)]
ACT_VM_MISSRIGHT2 = 203,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_MISSCENTER", Value = 204)]
ACT_VM_MISSCENTER = 204,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_MISSCENTER2", Value = 205)]
ACT_VM_MISSCENTER2 = 205,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_HAULBACK", Value = 206)]
ACT_VM_HAULBACK = 206,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_SWINGHARD", Value = 207)]
ACT_VM_SWINGHARD = 207,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_SWINGMISS", Value = 208)]
ACT_VM_SWINGMISS = 208,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_SWINGHIT", Value = 209)]
ACT_VM_SWINGHIT = 209,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_IDLE_TO_LOWERED", Value = 210)]
ACT_VM_IDLE_TO_LOWERED = 210,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_IDLE_LOWERED", Value = 211)]
ACT_VM_IDLE_LOWERED = 211,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_LOWERED_TO_IDLE", Value = 212)]
ACT_VM_LOWERED_TO_IDLE = 212,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_RECOIL1", Value = 213)]
ACT_VM_RECOIL1 = 213,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_RECOIL2", Value = 214)]
ACT_VM_RECOIL2 = 214,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_RECOIL3", Value = 215)]
ACT_VM_RECOIL3 = 215,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_PICKUP", Value = 216)]
ACT_VM_PICKUP = 216,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_RELEASE", Value = 217)]
ACT_VM_RELEASE = 217,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_ATTACH_SILENCER", Value = 218)]
ACT_VM_ATTACH_SILENCER = 218,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_VM_DETACH_SILENCER", Value = 219)]
ACT_VM_DETACH_SILENCER = 219,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_IDLE", Value = 220)]
ACT_SLAM_STICKWALL_IDLE = 220,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_ND_IDLE", Value = 221)]
ACT_SLAM_STICKWALL_ND_IDLE = 221,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_ATTACH", Value = 222)]
ACT_SLAM_STICKWALL_ATTACH = 222,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_ATTACH2", Value = 223)]
ACT_SLAM_STICKWALL_ATTACH2 = 223,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_ND_ATTACH", Value = 224)]
ACT_SLAM_STICKWALL_ND_ATTACH = 224,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_ND_ATTACH2", Value = 225)]
ACT_SLAM_STICKWALL_ND_ATTACH2 = 225,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_DETONATE", Value = 226)]
ACT_SLAM_STICKWALL_DETONATE = 226,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_DETONATOR_HOLSTER", Value = 227)]
ACT_SLAM_STICKWALL_DETONATOR_HOLSTER = 227,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_DRAW", Value = 228)]
ACT_SLAM_STICKWALL_DRAW = 228,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_ND_DRAW", Value = 229)]
ACT_SLAM_STICKWALL_ND_DRAW = 229,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_TO_THROW", Value = 230)]
ACT_SLAM_STICKWALL_TO_THROW = 230,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_TO_THROW_ND", Value = 231)]
ACT_SLAM_STICKWALL_TO_THROW_ND = 231,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_STICKWALL_TO_TRIPMINE_ND", Value = 232)]
ACT_SLAM_STICKWALL_TO_TRIPMINE_ND = 232,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_IDLE", Value = 233)]
ACT_SLAM_THROW_IDLE = 233,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_ND_IDLE", Value = 234)]
ACT_SLAM_THROW_ND_IDLE = 234,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_THROW", Value = 235)]
ACT_SLAM_THROW_THROW = 235,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_THROW2", Value = 236)]
ACT_SLAM_THROW_THROW2 = 236,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_THROW_ND", Value = 237)]
ACT_SLAM_THROW_THROW_ND = 237,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_THROW_ND2", Value = 238)]
ACT_SLAM_THROW_THROW_ND2 = 238,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_DRAW", Value = 239)]
ACT_SLAM_THROW_DRAW = 239,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_ND_DRAW", Value = 240)]
ACT_SLAM_THROW_ND_DRAW = 240,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_TO_STICKWALL", Value = 241)]
ACT_SLAM_THROW_TO_STICKWALL = 241,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_TO_STICKWALL_ND", Value = 242)]
ACT_SLAM_THROW_TO_STICKWALL_ND = 242,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_DETONATE", Value = 243)]
ACT_SLAM_THROW_DETONATE = 243,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_DETONATOR_HOLSTER", Value = 244)]
ACT_SLAM_THROW_DETONATOR_HOLSTER = 244,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_THROW_TO_TRIPMINE_ND", Value = 245)]
ACT_SLAM_THROW_TO_TRIPMINE_ND = 245,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_TRIPMINE_IDLE", Value = 246)]
ACT_SLAM_TRIPMINE_IDLE = 246,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_TRIPMINE_DRAW", Value = 247)]
ACT_SLAM_TRIPMINE_DRAW = 247,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_TRIPMINE_ATTACH", Value = 248)]
ACT_SLAM_TRIPMINE_ATTACH = 248,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_TRIPMINE_ATTACH2", Value = 249)]
ACT_SLAM_TRIPMINE_ATTACH2 = 249,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_TRIPMINE_TO_STICKWALL_ND", Value = 250)]
ACT_SLAM_TRIPMINE_TO_STICKWALL_ND = 250,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_TRIPMINE_TO_THROW_ND", Value = 251)]
ACT_SLAM_TRIPMINE_TO_THROW_ND = 251,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_DETONATOR_IDLE", Value = 252)]
ACT_SLAM_DETONATOR_IDLE = 252,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_DETONATOR_DRAW", Value = 253)]
ACT_SLAM_DETONATOR_DRAW = 253,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_DETONATOR_DETONATE", Value = 254)]
ACT_SLAM_DETONATOR_DETONATE = 254,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_DETONATOR_HOLSTER", Value = 255)]
ACT_SLAM_DETONATOR_HOLSTER = 255,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_DETONATOR_STICKWALL_DRAW", Value = 256)]
ACT_SLAM_DETONATOR_STICKWALL_DRAW = 256,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SLAM_DETONATOR_THROW_DRAW", Value = 257)]
ACT_SLAM_DETONATOR_THROW_DRAW = 257,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SHOTGUN_RELOAD_START", Value = 258)]
ACT_SHOTGUN_RELOAD_START = 258,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SHOTGUN_RELOAD_FINISH", Value = 259)]
ACT_SHOTGUN_RELOAD_FINISH = 259,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SHOTGUN_PUMP", Value = 260)]
ACT_SHOTGUN_PUMP = 260,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_IDLE2", Value = 261)]
ACT_SMG2_IDLE2 = 261,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_FIRE2", Value = 262)]
ACT_SMG2_FIRE2 = 262,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_DRAW2", Value = 263)]
ACT_SMG2_DRAW2 = 263,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_RELOAD2", Value = 264)]
ACT_SMG2_RELOAD2 = 264,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_DRYFIRE2", Value = 265)]
ACT_SMG2_DRYFIRE2 = 265,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_TOAUTO", Value = 266)]
ACT_SMG2_TOAUTO = 266,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_SMG2_TOBURST", Value = 267)]
ACT_SMG2_TOBURST = 267,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PHYSCANNON_UPGRADE", Value = 268)]
ACT_PHYSCANNON_UPGRADE = 268,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_AR1", Value = 269)]
ACT_RANGE_ATTACK_AR1 = 269,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_AR2", Value = 270)]
ACT_RANGE_ATTACK_AR2 = 270,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_AR2_LOW", Value = 271)]
ACT_RANGE_ATTACK_AR2_LOW = 271,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_AR2_GRENADE", Value = 272)]
ACT_RANGE_ATTACK_AR2_GRENADE = 272,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_HMG1", Value = 273)]
ACT_RANGE_ATTACK_HMG1 = 273,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_ML", Value = 274)]
ACT_RANGE_ATTACK_ML = 274,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SMG1", Value = 275)]
ACT_RANGE_ATTACK_SMG1 = 275,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SMG1_LOW", Value = 276)]
ACT_RANGE_ATTACK_SMG1_LOW = 276,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SMG2", Value = 277)]
ACT_RANGE_ATTACK_SMG2 = 277,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SHOTGUN", Value = 278)]
ACT_RANGE_ATTACK_SHOTGUN = 278,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SHOTGUN_LOW", Value = 279)]
ACT_RANGE_ATTACK_SHOTGUN_LOW = 279,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_PISTOL", Value = 280)]
ACT_RANGE_ATTACK_PISTOL = 280,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_PISTOL_LOW", Value = 281)]
ACT_RANGE_ATTACK_PISTOL_LOW = 281,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SLAM", Value = 282)]
ACT_RANGE_ATTACK_SLAM = 282,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_TRIPWIRE", Value = 283)]
ACT_RANGE_ATTACK_TRIPWIRE = 283,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_THROW", Value = 284)]
ACT_RANGE_ATTACK_THROW = 284,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_SNIPER_RIFLE", Value = 285)]
ACT_RANGE_ATTACK_SNIPER_RIFLE = 285,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_ATTACK_RPG", Value = 286)]
ACT_RANGE_ATTACK_RPG = 286,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_MELEE_ATTACK_SWING", Value = 287)]
ACT_MELEE_ATTACK_SWING = 287,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_AIM_LOW", Value = 288)]
ACT_RANGE_AIM_LOW = 288,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_AIM_SMG1_LOW", Value = 289)]
ACT_RANGE_AIM_SMG1_LOW = 289,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_AIM_PISTOL_LOW", Value = 290)]
ACT_RANGE_AIM_PISTOL_LOW = 290,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RANGE_AIM_AR2_LOW", Value = 291)]
ACT_RANGE_AIM_AR2_LOW = 291,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COVER_PISTOL_LOW", Value = 292)]
ACT_COVER_PISTOL_LOW = 292,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COVER_SMG1_LOW", Value = 293)]
ACT_COVER_SMG1_LOW = 293,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_AR1", Value = 294)]
ACT_GESTURE_RANGE_ATTACK_AR1 = 294,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_AR2", Value = 295)]
ACT_GESTURE_RANGE_ATTACK_AR2 = 295,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_AR2_GRENADE", Value = 296)]
ACT_GESTURE_RANGE_ATTACK_AR2_GRENADE = 296,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_HMG1", Value = 297)]
ACT_GESTURE_RANGE_ATTACK_HMG1 = 297,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_ML", Value = 298)]
ACT_GESTURE_RANGE_ATTACK_ML = 298,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_SMG1", Value = 299)]
ACT_GESTURE_RANGE_ATTACK_SMG1 = 299,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_SMG1_LOW", Value = 300)]
ACT_GESTURE_RANGE_ATTACK_SMG1_LOW = 300,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_SMG2", Value = 301)]
ACT_GESTURE_RANGE_ATTACK_SMG2 = 301,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_SHOTGUN", Value = 302)]
ACT_GESTURE_RANGE_ATTACK_SHOTGUN = 302,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_PISTOL", Value = 303)]
ACT_GESTURE_RANGE_ATTACK_PISTOL = 303,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_PISTOL_LOW", Value = 304)]
ACT_GESTURE_RANGE_ATTACK_PISTOL_LOW = 304,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_SLAM", Value = 305)]
ACT_GESTURE_RANGE_ATTACK_SLAM = 305,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_TRIPWIRE", Value = 306)]
ACT_GESTURE_RANGE_ATTACK_TRIPWIRE = 306,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_THROW", Value = 307)]
ACT_GESTURE_RANGE_ATTACK_THROW = 307,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RANGE_ATTACK_SNIPER_RIFLE", Value = 308)]
ACT_GESTURE_RANGE_ATTACK_SNIPER_RIFLE = 308,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_MELEE_ATTACK_SWING", Value = 309)]
ACT_GESTURE_MELEE_ATTACK_SWING = 309,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_RIFLE", Value = 310)]
ACT_IDLE_RIFLE = 310,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SMG1", Value = 311)]
ACT_IDLE_SMG1 = 311,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ANGRY_SMG1", Value = 312)]
ACT_IDLE_ANGRY_SMG1 = 312,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_PISTOL", Value = 313)]
ACT_IDLE_PISTOL = 313,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ANGRY_PISTOL", Value = 314)]
ACT_IDLE_ANGRY_PISTOL = 314,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ANGRY_SHOTGUN", Value = 315)]
ACT_IDLE_ANGRY_SHOTGUN = 315,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_STEALTH_PISTOL", Value = 316)]
ACT_IDLE_STEALTH_PISTOL = 316,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_PACKAGE", Value = 317)]
ACT_IDLE_PACKAGE = 317,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_PACKAGE", Value = 318)]
ACT_WALK_PACKAGE = 318,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SUITCASE", Value = 319)]
ACT_IDLE_SUITCASE = 319,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_SUITCASE", Value = 320)]
ACT_WALK_SUITCASE = 320,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SMG1_RELAXED", Value = 321)]
ACT_IDLE_SMG1_RELAXED = 321,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SMG1_STIMULATED", Value = 322)]
ACT_IDLE_SMG1_STIMULATED = 322,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_RIFLE_RELAXED", Value = 323)]
ACT_WALK_RIFLE_RELAXED = 323,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_RIFLE_RELAXED", Value = 324)]
ACT_RUN_RIFLE_RELAXED = 324,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_RIFLE_STIMULATED", Value = 325)]
ACT_WALK_RIFLE_STIMULATED = 325,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_RIFLE_STIMULATED", Value = 326)]
ACT_RUN_RIFLE_STIMULATED = 326,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_AIM_RIFLE_STIMULATED", Value = 327)]
ACT_IDLE_AIM_RIFLE_STIMULATED = 327,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_RIFLE_STIMULATED", Value = 328)]
ACT_WALK_AIM_RIFLE_STIMULATED = 328,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_RIFLE_STIMULATED", Value = 329)]
ACT_RUN_AIM_RIFLE_STIMULATED = 329,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SHOTGUN_RELAXED", Value = 330)]
ACT_IDLE_SHOTGUN_RELAXED = 330,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SHOTGUN_STIMULATED", Value = 331)]
ACT_IDLE_SHOTGUN_STIMULATED = 331,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_SHOTGUN_AGITATED", Value = 332)]
ACT_IDLE_SHOTGUN_AGITATED = 332,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_ANGRY", Value = 333)]
ACT_WALK_ANGRY = 333,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_POLICE_HARASS1", Value = 334)]
ACT_POLICE_HARASS1 = 334,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_POLICE_HARASS2", Value = 335)]
ACT_POLICE_HARASS2 = 335,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_MANNEDGUN", Value = 336)]
ACT_IDLE_MANNEDGUN = 336,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_MELEE", Value = 337)]
ACT_IDLE_MELEE = 337,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ANGRY_MELEE", Value = 338)]
ACT_IDLE_ANGRY_MELEE = 338,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_RPG_RELAXED", Value = 339)]
ACT_IDLE_RPG_RELAXED = 339,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_RPG", Value = 340)]
ACT_IDLE_RPG = 340,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_ANGRY_RPG", Value = 341)]
ACT_IDLE_ANGRY_RPG = 341,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_COVER_LOW_RPG", Value = 342)]
ACT_COVER_LOW_RPG = 342,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_RPG", Value = 343)]
ACT_WALK_RPG = 343,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_RPG", Value = 344)]
ACT_RUN_RPG = 344,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_CROUCH_RPG", Value = 345)]
ACT_WALK_CROUCH_RPG = 345,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_CROUCH_RPG", Value = 346)]
ACT_RUN_CROUCH_RPG = 346,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_RPG_RELAXED", Value = 347)]
ACT_WALK_RPG_RELAXED = 347,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_RPG_RELAXED", Value = 348)]
ACT_RUN_RPG_RELAXED = 348,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_RIFLE", Value = 349)]
ACT_WALK_RIFLE = 349,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_RIFLE", Value = 350)]
ACT_WALK_AIM_RIFLE = 350,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_CROUCH_RIFLE", Value = 351)]
ACT_WALK_CROUCH_RIFLE = 351,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_CROUCH_AIM_RIFLE", Value = 352)]
ACT_WALK_CROUCH_AIM_RIFLE = 352,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_RIFLE", Value = 353)]
ACT_RUN_RIFLE = 353,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_RIFLE", Value = 354)]
ACT_RUN_AIM_RIFLE = 354,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_CROUCH_RIFLE", Value = 355)]
ACT_RUN_CROUCH_RIFLE = 355,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_CROUCH_AIM_RIFLE", Value = 356)]
ACT_RUN_CROUCH_AIM_RIFLE = 356,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_STEALTH_PISTOL", Value = 357)]
ACT_RUN_STEALTH_PISTOL = 357,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_SHOTGUN", Value = 358)]
ACT_WALK_AIM_SHOTGUN = 358,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_SHOTGUN", Value = 359)]
ACT_RUN_AIM_SHOTGUN = 359,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_PISTOL", Value = 360)]
ACT_WALK_PISTOL = 360,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_PISTOL", Value = 361)]
ACT_RUN_PISTOL = 361,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_PISTOL", Value = 362)]
ACT_WALK_AIM_PISTOL = 362,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_PISTOL", Value = 363)]
ACT_RUN_AIM_PISTOL = 363,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_STEALTH_PISTOL", Value = 364)]
ACT_WALK_STEALTH_PISTOL = 364,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_AIM_STEALTH_PISTOL", Value = 365)]
ACT_WALK_AIM_STEALTH_PISTOL = 365,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RUN_AIM_STEALTH_PISTOL", Value = 366)]
ACT_RUN_AIM_STEALTH_PISTOL = 366,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_PISTOL", Value = 367)]
ACT_RELOAD_PISTOL = 367,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_PISTOL_LOW", Value = 368)]
ACT_RELOAD_PISTOL_LOW = 368,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_SMG1", Value = 369)]
ACT_RELOAD_SMG1 = 369,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_SMG1_LOW", Value = 370)]
ACT_RELOAD_SMG1_LOW = 370,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_SHOTGUN", Value = 371)]
ACT_RELOAD_SHOTGUN = 371,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_RELOAD_SHOTGUN_LOW", Value = 372)]
ACT_RELOAD_SHOTGUN_LOW = 372,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RELOAD", Value = 373)]
ACT_GESTURE_RELOAD = 373,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RELOAD_PISTOL", Value = 374)]
ACT_GESTURE_RELOAD_PISTOL = 374,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RELOAD_SMG1", Value = 375)]
ACT_GESTURE_RELOAD_SMG1 = 375,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_RELOAD_SHOTGUN", Value = 376)]
ACT_GESTURE_RELOAD_SHOTGUN = 376,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_LEAN_LEFT", Value = 377)]
ACT_BUSY_LEAN_LEFT = 377,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_LEAN_LEFT_ENTRY", Value = 378)]
ACT_BUSY_LEAN_LEFT_ENTRY = 378,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_LEAN_LEFT_EXIT", Value = 379)]
ACT_BUSY_LEAN_LEFT_EXIT = 379,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_LEAN_BACK", Value = 380)]
ACT_BUSY_LEAN_BACK = 380,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_LEAN_BACK_ENTRY", Value = 381)]
ACT_BUSY_LEAN_BACK_ENTRY = 381,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_LEAN_BACK_EXIT", Value = 382)]
ACT_BUSY_LEAN_BACK_EXIT = 382,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_SIT_GROUND", Value = 383)]
ACT_BUSY_SIT_GROUND = 383,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_SIT_GROUND_ENTRY", Value = 384)]
ACT_BUSY_SIT_GROUND_ENTRY = 384,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_SIT_GROUND_EXIT", Value = 385)]
ACT_BUSY_SIT_GROUND_EXIT = 385,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_SIT_CHAIR", Value = 386)]
ACT_BUSY_SIT_CHAIR = 386,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_SIT_CHAIR_ENTRY", Value = 387)]
ACT_BUSY_SIT_CHAIR_ENTRY = 387,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_SIT_CHAIR_EXIT", Value = 388)]
ACT_BUSY_SIT_CHAIR_EXIT = 388,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_STAND", Value = 389)]
ACT_BUSY_STAND = 389,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_BUSY_QUEUE", Value = 390)]
ACT_BUSY_QUEUE = 390,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DUCK_DODGE", Value = 391)]
ACT_DUCK_DODGE = 391,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_BARNACLE_SWALLOW", Value = 392)]
ACT_DIE_BARNACLE_SWALLOW = 392,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_GESTURE_BARNACLE_STRANGLE", Value = 393)]
ACT_GESTURE_BARNACLE_STRANGLE = 393,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PHYSCANNON_DETACH", Value = 394)]
ACT_PHYSCANNON_DETACH = 394,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PHYSCANNON_ANIMATE", Value = 395)]
ACT_PHYSCANNON_ANIMATE = 395,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PHYSCANNON_ANIMATE_PRE", Value = 396)]
ACT_PHYSCANNON_ANIMATE_PRE = 396,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_PHYSCANNON_ANIMATE_POST", Value = 397)]
ACT_PHYSCANNON_ANIMATE_POST = 397,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_FRONTSIDE", Value = 398)]
ACT_DIE_FRONTSIDE = 398,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_RIGHTSIDE", Value = 399)]
ACT_DIE_RIGHTSIDE = 399,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_BACKSIDE", Value = 400)]
ACT_DIE_BACKSIDE = 400,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DIE_LEFTSIDE", Value = 401)]
ACT_DIE_LEFTSIDE = 401,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_OPEN_DOOR", Value = 402)]
ACT_OPEN_DOOR = 402,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DI_ALYX_ZOMBIE_MELEE", Value = 403)]
ACT_DI_ALYX_ZOMBIE_MELEE = 403,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DI_ALYX_ZOMBIE_TORSO_MELEE", Value = 404)]
ACT_DI_ALYX_ZOMBIE_TORSO_MELEE = 404,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DI_ALYX_HEADCRAB_MELEE", Value = 405)]
ACT_DI_ALYX_HEADCRAB_MELEE = 405,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DI_ALYX_ANTLION", Value = 406)]
ACT_DI_ALYX_ANTLION = 406,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DI_ALYX_ZOMBIE_SHOTGUN64", Value = 407)]
ACT_DI_ALYX_ZOMBIE_SHOTGUN64 = 407,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DI_ALYX_ZOMBIE_SHOTGUN26", Value = 408)]
ACT_DI_ALYX_ZOMBIE_SHOTGUN26 = 408,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_RELAXED_TO_STIMULATED", Value = 409)]
ACT_READINESS_RELAXED_TO_STIMULATED = 409,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_RELAXED_TO_STIMULATED_WALK", Value = 410)]
ACT_READINESS_RELAXED_TO_STIMULATED_WALK = 410,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_AGITATED_TO_STIMULATED", Value = 411)]
ACT_READINESS_AGITATED_TO_STIMULATED = 411,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_STIMULATED_TO_RELAXED", Value = 412)]
ACT_READINESS_STIMULATED_TO_RELAXED = 412,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_PISTOL_RELAXED_TO_STIMULATED", Value = 413)]
ACT_READINESS_PISTOL_RELAXED_TO_STIMULATED = 413,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_PISTOL_RELAXED_TO_STIMULATED_WALK", Value = 414)]
ACT_READINESS_PISTOL_RELAXED_TO_STIMULATED_WALK = 414,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_PISTOL_AGITATED_TO_STIMULATED", Value = 415)]
ACT_READINESS_PISTOL_AGITATED_TO_STIMULATED = 415,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_READINESS_PISTOL_STIMULATED_TO_RELAXED", Value = 416)]
ACT_READINESS_PISTOL_STIMULATED_TO_RELAXED = 416,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_IDLE_CARRY", Value = 417)]
ACT_IDLE_CARRY = 417,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WALK_CARRY", Value = 418)]
ACT_WALK_CARRY = 418,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_IDLE", Value = 419)]
ACT_DOTA_IDLE = 419,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_IDLE_RARE", Value = 421)]
ACT_DOTA_IDLE_RARE = 421,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RUN", Value = 422)]
ACT_DOTA_RUN = 422,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ATTACK", Value = 424)]
ACT_DOTA_ATTACK = 424,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ATTACK2", Value = 425)]
ACT_DOTA_ATTACK2 = 425,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ATTACK_EVENT", Value = 426)]
ACT_DOTA_ATTACK_EVENT = 426,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_DIE", Value = 427)]
ACT_DOTA_DIE = 427,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_FLINCH", Value = 428)]
ACT_DOTA_FLINCH = 428,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_FLAIL", Value = 429)]
ACT_DOTA_FLAIL = 429,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_DISABLED", Value = 430)]
ACT_DOTA_DISABLED = 430,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_1", Value = 431)]
ACT_DOTA_CAST_ABILITY_1 = 431,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_2", Value = 432)]
ACT_DOTA_CAST_ABILITY_2 = 432,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_3", Value = 433)]
ACT_DOTA_CAST_ABILITY_3 = 433,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_4", Value = 434)]
ACT_DOTA_CAST_ABILITY_4 = 434,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_5", Value = 435)]
ACT_DOTA_CAST_ABILITY_5 = 435,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_6", Value = 436)]
ACT_DOTA_CAST_ABILITY_6 = 436,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_OVERRIDE_ABILITY_1", Value = 437)]
ACT_DOTA_OVERRIDE_ABILITY_1 = 437,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_OVERRIDE_ABILITY_2", Value = 438)]
ACT_DOTA_OVERRIDE_ABILITY_2 = 438,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_OVERRIDE_ABILITY_3", Value = 439)]
ACT_DOTA_OVERRIDE_ABILITY_3 = 439,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_OVERRIDE_ABILITY_4", Value = 440)]
ACT_DOTA_OVERRIDE_ABILITY_4 = 440,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_1", Value = 441)]
ACT_DOTA_CHANNEL_ABILITY_1 = 441,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_2", Value = 442)]
ACT_DOTA_CHANNEL_ABILITY_2 = 442,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_3", Value = 443)]
ACT_DOTA_CHANNEL_ABILITY_3 = 443,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_4", Value = 444)]
ACT_DOTA_CHANNEL_ABILITY_4 = 444,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_5", Value = 445)]
ACT_DOTA_CHANNEL_ABILITY_5 = 445,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_6", Value = 446)]
ACT_DOTA_CHANNEL_ABILITY_6 = 446,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_END_ABILITY_1", Value = 447)]
ACT_DOTA_CHANNEL_END_ABILITY_1 = 447,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_END_ABILITY_2", Value = 448)]
ACT_DOTA_CHANNEL_END_ABILITY_2 = 448,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_END_ABILITY_3", Value = 449)]
ACT_DOTA_CHANNEL_END_ABILITY_3 = 449,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_END_ABILITY_4", Value = 450)]
ACT_DOTA_CHANNEL_END_ABILITY_4 = 450,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_END_ABILITY_5", Value = 451)]
ACT_DOTA_CHANNEL_END_ABILITY_5 = 451,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_END_ABILITY_6", Value = 452)]
ACT_DOTA_CHANNEL_END_ABILITY_6 = 452,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CONSTANT_LAYER", Value = 453)]
ACT_DOTA_CONSTANT_LAYER = 453,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAPTURE", Value = 454)]
ACT_DOTA_CAPTURE = 454,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SPAWN", Value = 455)]
ACT_DOTA_SPAWN = 455,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_KILLTAUNT", Value = 456)]
ACT_DOTA_KILLTAUNT = 456,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TAUNT", Value = 457)]
ACT_DOTA_TAUNT = 457,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_THIRST", Value = 458)]
ACT_DOTA_THIRST = 458,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_DRAGONBREATH", Value = 459)]
ACT_DOTA_CAST_DRAGONBREATH = 459,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ECHO_SLAM", Value = 460)]
ACT_DOTA_ECHO_SLAM = 460,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_1_END", Value = 461)]
ACT_DOTA_CAST_ABILITY_1_END = 461,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_2_END", Value = 462)]
ACT_DOTA_CAST_ABILITY_2_END = 462,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_3_END", Value = 463)]
ACT_DOTA_CAST_ABILITY_3_END = 463,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_4_END", Value = 464)]
ACT_DOTA_CAST_ABILITY_4_END = 464,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_MIRANA_LEAP_END", Value = 465)]
ACT_MIRANA_LEAP_END = 465,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WAVEFORM_START", Value = 466)]
ACT_WAVEFORM_START = 466,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_WAVEFORM_END", Value = 467)]
ACT_WAVEFORM_END = 467,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_ROT", Value = 468)]
ACT_DOTA_CAST_ABILITY_ROT = 468,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_DIE_SPECIAL", Value = 469)]
ACT_DOTA_DIE_SPECIAL = 469,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RATTLETRAP_BATTERYASSAULT", Value = 470)]
ACT_DOTA_RATTLETRAP_BATTERYASSAULT = 470,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RATTLETRAP_POWERCOGS", Value = 471)]
ACT_DOTA_RATTLETRAP_POWERCOGS = 471,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RATTLETRAP_HOOKSHOT_START", Value = 472)]
ACT_DOTA_RATTLETRAP_HOOKSHOT_START = 472,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RATTLETRAP_HOOKSHOT_LOOP", Value = 473)]
ACT_DOTA_RATTLETRAP_HOOKSHOT_LOOP = 473,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RATTLETRAP_HOOKSHOT_END", Value = 474)]
ACT_DOTA_RATTLETRAP_HOOKSHOT_END = 474,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_STORM_SPIRIT_OVERLOAD_RUN_OVERRIDE", Value = 475)]
ACT_STORM_SPIRIT_OVERLOAD_RUN_OVERRIDE = 475,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TINKER_REARM1", Value = 476)]
ACT_DOTA_TINKER_REARM1 = 476,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TINKER_REARM2", Value = 477)]
ACT_DOTA_TINKER_REARM2 = 477,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TINKER_REARM3", Value = 478)]
ACT_DOTA_TINKER_REARM3 = 478,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_TINY_AVALANCHE", Value = 479)]
ACT_TINY_AVALANCHE = 479,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_TINY_TOSS", Value = 480)]
ACT_TINY_TOSS = 480,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_TINY_GROWL", Value = 481)]
ACT_TINY_GROWL = 481,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_WEAVERBUG_ATTACH", Value = 482)]
ACT_DOTA_WEAVERBUG_ATTACH = 482,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_WILD_AXES_END", Value = 483)]
ACT_DOTA_CAST_WILD_AXES_END = 483,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_LIFE_BREAK_START", Value = 484)]
ACT_DOTA_CAST_LIFE_BREAK_START = 484,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_LIFE_BREAK_END", Value = 485)]
ACT_DOTA_CAST_LIFE_BREAK_END = 485,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_NIGHTSTALKER_TRANSITION", Value = 486)]
ACT_DOTA_NIGHTSTALKER_TRANSITION = 486,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LIFESTEALER_RAGE", Value = 487)]
ACT_DOTA_LIFESTEALER_RAGE = 487,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LIFESTEALER_OPEN_WOUNDS", Value = 488)]
ACT_DOTA_LIFESTEALER_OPEN_WOUNDS = 488,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SAND_KING_BURROW_IN", Value = 489)]
ACT_DOTA_SAND_KING_BURROW_IN = 489,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SAND_KING_BURROW_OUT", Value = 490)]
ACT_DOTA_SAND_KING_BURROW_OUT = 490,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_EARTHSHAKER_TOTEM_ATTACK", Value = 491)]
ACT_DOTA_EARTHSHAKER_TOTEM_ATTACK = 491,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_WHEEL_LAYER", Value = 492)]
ACT_DOTA_WHEEL_LAYER = 492,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START", Value = 493)]
ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_START = 493,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ALCHEMIST_CONCOCTION", Value = 494)]
ACT_DOTA_ALCHEMIST_CONCOCTION = 494,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_JAKIRO_LIQUIDFIRE_START", Value = 495)]
ACT_DOTA_JAKIRO_LIQUIDFIRE_START = 495,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_JAKIRO_LIQUIDFIRE_LOOP", Value = 496)]
ACT_DOTA_JAKIRO_LIQUIDFIRE_LOOP = 496,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LIFESTEALER_INFEST", Value = 497)]
ACT_DOTA_LIFESTEALER_INFEST = 497,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LIFESTEALER_INFEST_END", Value = 498)]
ACT_DOTA_LIFESTEALER_INFEST_END = 498,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LASSO_LOOP", Value = 499)]
ACT_DOTA_LASSO_LOOP = 499,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ALCHEMIST_CONCOCTION_THROW", Value = 500)]
ACT_DOTA_ALCHEMIST_CONCOCTION_THROW = 500,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END", Value = 501)]
ACT_DOTA_ALCHEMIST_CHEMICAL_RAGE_END = 501,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_COLD_SNAP", Value = 502)]
ACT_DOTA_CAST_COLD_SNAP = 502,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_GHOST_WALK", Value = 503)]
ACT_DOTA_CAST_GHOST_WALK = 503,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_TORNADO", Value = 504)]
ACT_DOTA_CAST_TORNADO = 504,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_EMP", Value = 505)]
ACT_DOTA_CAST_EMP = 505,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ALACRITY", Value = 506)]
ACT_DOTA_CAST_ALACRITY = 506,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_CHAOS_METEOR", Value = 507)]
ACT_DOTA_CAST_CHAOS_METEOR = 507,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_SUN_STRIKE", Value = 508)]
ACT_DOTA_CAST_SUN_STRIKE = 508,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_FORGE_SPIRIT", Value = 509)]
ACT_DOTA_CAST_FORGE_SPIRIT = 509,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ICE_WALL", Value = 510)]
ACT_DOTA_CAST_ICE_WALL = 510,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_DEAFENING_BLAST", Value = 511)]
ACT_DOTA_CAST_DEAFENING_BLAST = 511,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_VICTORY", Value = 512)]
ACT_DOTA_VICTORY = 512,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_DEFEAT", Value = 513)]
ACT_DOTA_DEFEAT = 513,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SPIRIT_BREAKER_CHARGE_POSE", Value = 514)]
ACT_DOTA_SPIRIT_BREAKER_CHARGE_POSE = 514,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SPIRIT_BREAKER_CHARGE_END", Value = 515)]
ACT_DOTA_SPIRIT_BREAKER_CHARGE_END = 515,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TELEPORT", Value = 516)]
ACT_DOTA_TELEPORT = 516,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TELEPORT_END", Value = 517)]
ACT_DOTA_TELEPORT_END = 517,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_REFRACTION", Value = 518)]
ACT_DOTA_CAST_REFRACTION = 518,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_7", Value = 519)]
ACT_DOTA_CAST_ABILITY_7 = 519,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CANCEL_SIREN_SONG", Value = 520)]
ACT_DOTA_CANCEL_SIREN_SONG = 520,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHANNEL_ABILITY_7", Value = 521)]
ACT_DOTA_CHANNEL_ABILITY_7 = 521,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LOADOUT", Value = 522)]
ACT_DOTA_LOADOUT = 522,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_FORCESTAFF_END", Value = 523)]
ACT_DOTA_FORCESTAFF_END = 523,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_POOF_END", Value = 524)]
ACT_DOTA_POOF_END = 524,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SLARK_POUNCE", Value = 525)]
ACT_DOTA_SLARK_POUNCE = 525,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_MAGNUS_SKEWER_START", Value = 526)]
ACT_DOTA_MAGNUS_SKEWER_START = 526,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_MAGNUS_SKEWER_END", Value = 527)]
ACT_DOTA_MAGNUS_SKEWER_END = 527,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_MEDUSA_STONE_GAZE", Value = 528)]
ACT_DOTA_MEDUSA_STONE_GAZE = 528,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RELAX_START", Value = 529)]
ACT_DOTA_RELAX_START = 529,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RELAX_LOOP", Value = 530)]
ACT_DOTA_RELAX_LOOP = 530,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RELAX_END", Value = 531)]
ACT_DOTA_RELAX_END = 531,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CENTAUR_STAMPEDE", Value = 532)]
ACT_DOTA_CENTAUR_STAMPEDE = 532,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_BELLYACHE_START", Value = 533)]
ACT_DOTA_BELLYACHE_START = 533,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_BELLYACHE_LOOP", Value = 534)]
ACT_DOTA_BELLYACHE_LOOP = 534,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_BELLYACHE_END", Value = 535)]
ACT_DOTA_BELLYACHE_END = 535,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ROQUELAIRE_LAND", Value = 536)]
ACT_DOTA_ROQUELAIRE_LAND = 536,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ROQUELAIRE_LAND_IDLE", Value = 537)]
ACT_DOTA_ROQUELAIRE_LAND_IDLE = 537,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GREEVIL_CAST", Value = 538)]
ACT_DOTA_GREEVIL_CAST = 538,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GREEVIL_OVERRIDE_ABILITY", Value = 539)]
ACT_DOTA_GREEVIL_OVERRIDE_ABILITY = 539,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GREEVIL_HOOK_START", Value = 540)]
ACT_DOTA_GREEVIL_HOOK_START = 540,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GREEVIL_HOOK_END", Value = 541)]
ACT_DOTA_GREEVIL_HOOK_END = 541,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GREEVIL_BLINK_BONE", Value = 542)]
ACT_DOTA_GREEVIL_BLINK_BONE = 542,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_IDLE_SLEEPING", Value = 543)]
ACT_DOTA_IDLE_SLEEPING = 543,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_INTRO", Value = 544)]
ACT_DOTA_INTRO = 544,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GESTURE_POINT", Value = 545)]
ACT_DOTA_GESTURE_POINT = 545,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_GESTURE_ACCENT", Value = 546)]
ACT_DOTA_GESTURE_ACCENT = 546,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SLEEPING_END", Value = 547)]
ACT_DOTA_SLEEPING_END = 547,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_AMBUSH", Value = 548)]
ACT_DOTA_AMBUSH = 548,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ITEM_LOOK", Value = 549)]
ACT_DOTA_ITEM_LOOK = 549,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_STARTLE", Value = 550)]
ACT_DOTA_STARTLE = 550,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_FRUSTRATION", Value = 551)]
ACT_DOTA_FRUSTRATION = 551,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TELEPORT_REACT", Value = 552)]
ACT_DOTA_TELEPORT_REACT = 552,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TELEPORT_END_REACT", Value = 553)]
ACT_DOTA_TELEPORT_END_REACT = 553,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SHRUG", Value = 554)]
ACT_DOTA_SHRUG = 554,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RELAX_LOOP_END", Value = 555)]
ACT_DOTA_RELAX_LOOP_END = 555,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_PRESENT_ITEM", Value = 556)]
ACT_DOTA_PRESENT_ITEM = 556,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_IDLE_IMPATIENT", Value = 557)]
ACT_DOTA_IDLE_IMPATIENT = 557,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SHARPEN_WEAPON", Value = 558)]
ACT_DOTA_SHARPEN_WEAPON = 558,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SHARPEN_WEAPON_OUT", Value = 559)]
ACT_DOTA_SHARPEN_WEAPON_OUT = 559,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_IDLE_SLEEPING_END", Value = 560)]
ACT_DOTA_IDLE_SLEEPING_END = 560,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_BRIDGE_DESTROY", Value = 561)]
ACT_DOTA_BRIDGE_DESTROY = 561,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_TAUNT_SNIPER", Value = 562)]
ACT_DOTA_TAUNT_SNIPER = 562,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_DEATH_BY_SNIPER", Value = 563)]
ACT_DOTA_DEATH_BY_SNIPER = 563,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LOOK_AROUND", Value = 564)]
ACT_DOTA_LOOK_AROUND = 564,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAGED_CREEP_RAGE", Value = 565)]
ACT_DOTA_CAGED_CREEP_RAGE = 565,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAGED_CREEP_RAGE_OUT", Value = 566)]
ACT_DOTA_CAGED_CREEP_RAGE_OUT = 566,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAGED_CREEP_SMASH", Value = 567)]
ACT_DOTA_CAGED_CREEP_SMASH = 567,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAGED_CREEP_SMASH_OUT", Value = 568)]
ACT_DOTA_CAGED_CREEP_SMASH_OUT = 568,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP", Value = 569)]
ACT_DOTA_IDLE_IMPATIENT_SWORD_TAP = 569,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_INTRO_LOOP", Value = 570)]
ACT_DOTA_INTRO_LOOP = 570,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_BRIDGE_THREAT", Value = 571)]
ACT_DOTA_BRIDGE_THREAT = 571,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_DAGON", Value = 572)]
ACT_DOTA_DAGON = 572,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_2_ES_ROLL_START", Value = 573)]
ACT_DOTA_CAST_ABILITY_2_ES_ROLL_START = 573,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_2_ES_ROLL", Value = 574)]
ACT_DOTA_CAST_ABILITY_2_ES_ROLL = 574,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CAST_ABILITY_2_ES_ROLL_END", Value = 575)]
ACT_DOTA_CAST_ABILITY_2_ES_ROLL_END = 575,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_NIAN_PIN_START", Value = 576)]
ACT_DOTA_NIAN_PIN_START = 576,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_NIAN_PIN_LOOP", Value = 577)]
ACT_DOTA_NIAN_PIN_LOOP = 577,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_NIAN_PIN_END", Value = 578)]
ACT_DOTA_NIAN_PIN_END = 578,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LEAP_STUN", Value = 579)]
ACT_DOTA_LEAP_STUN = 579,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_LEAP_SWIPE", Value = 580)]
ACT_DOTA_LEAP_SWIPE = 580,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_NIAN_INTRO_LEAP", Value = 581)]
ACT_DOTA_NIAN_INTRO_LEAP = 581,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_AREA_DENY", Value = 582)]
ACT_DOTA_AREA_DENY = 582,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_NIAN_PIN_TO_STUN", Value = 583)]
ACT_DOTA_NIAN_PIN_TO_STUN = 583,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RAZE_1", Value = 584)]
ACT_DOTA_RAZE_1 = 584,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RAZE_2", Value = 585)]
ACT_DOTA_RAZE_2 = 585,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_RAZE_3", Value = 586)]
ACT_DOTA_RAZE_3 = 586,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_UNDYING_DECAY", Value = 587)]
ACT_DOTA_UNDYING_DECAY = 587,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_UNDYING_SOUL_RIP", Value = 588)]
ACT_DOTA_UNDYING_SOUL_RIP = 588,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_UNDYING_TOMBSTONE", Value = 589)]
ACT_DOTA_UNDYING_TOMBSTONE = 589,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_WHIRLING_AXES_RANGED", Value = 590)]
ACT_DOTA_WHIRLING_AXES_RANGED = 590,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_SHALLOW_GRAVE", Value = 591)]
ACT_DOTA_SHALLOW_GRAVE = 591,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_COLD_FEET", Value = 592)]
ACT_DOTA_COLD_FEET = 592,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ICE_VORTEX", Value = 593)]
ACT_DOTA_ICE_VORTEX = 593,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_CHILLING_TOUCH", Value = 594)]
ACT_DOTA_CHILLING_TOUCH = 594,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ENFEEBLE", Value = 595)]
ACT_DOTA_ENFEEBLE = 595,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_FATAL_BONDS", Value = 596)]
ACT_DOTA_FATAL_BONDS = 596,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_MIDNIGHT_PULSE", Value = 597)]
ACT_DOTA_MIDNIGHT_PULSE = 597,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_ANCESTRAL_SPIRIT", Value = 598)]
ACT_DOTA_ANCESTRAL_SPIRIT = 598,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_THUNDER_STRIKE", Value = 599)]
ACT_DOTA_THUNDER_STRIKE = 599,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_KINETIC_FIELD", Value = 600)]
ACT_DOTA_KINETIC_FIELD = 600,
[global::ProtoBuf.ProtoEnum(Name = @"ACT_DOTA_STATIC_STORM", Value = 601)]
ACT_DOTA_STATIC_STORM = 601
}
[global::ProtoBuf.ProtoContract(Name = @"EDemoCommands")]
public enum EDemoCommands
{
[global::ProtoBuf.ProtoEnum(Name = @"DEM_Error", Value = -1)]
DEM_Error = -1,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_Stop", Value = 0)]
DEM_Stop = 0,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_FileHeader", Value = 1)]
DEM_FileHeader = 1,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_FileInfo", Value = 2)]
DEM_FileInfo = 2,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_SyncTick", Value = 3)]
DEM_SyncTick = 3,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_SendTables", Value = 4)]
DEM_SendTables = 4,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_ClassInfo", Value = 5)]
DEM_ClassInfo = 5,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_StringTables", Value = 6)]
DEM_StringTables = 6,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_Packet", Value = 7)]
DEM_Packet = 7,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_SignonPacket", Value = 8)]
DEM_SignonPacket = 8,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_ConsoleCmd", Value = 9)]
DEM_ConsoleCmd = 9,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_CustomData", Value = 10)]
DEM_CustomData = 10,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_CustomDataCallbacks", Value = 11)]
DEM_CustomDataCallbacks = 11,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_UserCmd", Value = 12)]
DEM_UserCmd = 12,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_FullPacket", Value = 13)]
DEM_FullPacket = 13,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_SaveGame", Value = 14)]
DEM_SaveGame = 14,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_Max", Value = 15)]
DEM_Max = 15,
[global::ProtoBuf.ProtoEnum(Name = @"DEM_IsCompressed", Value = 112)]
DEM_IsCompressed = 112
}
[global::ProtoBuf.ProtoContract(Name = @"EDOTAChatWheelMessage")]
public enum EDOTAChatWheelMessage
{
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Ok", Value = 0)]
k_EDOTA_CW_Ok = 0,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Care", Value = 1)]
k_EDOTA_CW_Care = 1,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_GetBack", Value = 2)]
k_EDOTA_CW_GetBack = 2,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_NeedWards", Value = 3)]
k_EDOTA_CW_NeedWards = 3,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Stun", Value = 4)]
k_EDOTA_CW_Stun = 4,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Help", Value = 5)]
k_EDOTA_CW_Help = 5,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Push", Value = 6)]
k_EDOTA_CW_Push = 6,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_GoodJob", Value = 7)]
k_EDOTA_CW_GoodJob = 7,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Missing", Value = 8)]
k_EDOTA_CW_Missing = 8,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Missing_Top", Value = 9)]
k_EDOTA_CW_Missing_Top = 9,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Missing_Mid", Value = 10)]
k_EDOTA_CW_Missing_Mid = 10,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Missing_Bottom", Value = 11)]
k_EDOTA_CW_Missing_Bottom = 11,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Go", Value = 12)]
k_EDOTA_CW_Go = 12,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Initiate", Value = 13)]
k_EDOTA_CW_Initiate = 13,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Follow", Value = 14)]
k_EDOTA_CW_Follow = 14,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Group_Up", Value = 15)]
k_EDOTA_CW_Group_Up = 15,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Spread_Out", Value = 16)]
k_EDOTA_CW_Spread_Out = 16,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Split_Farm", Value = 17)]
k_EDOTA_CW_Split_Farm = 17,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Attack", Value = 18)]
k_EDOTA_CW_Attack = 18,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_BRB", Value = 19)]
k_EDOTA_CW_BRB = 19,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Dive", Value = 20)]
k_EDOTA_CW_Dive = 20,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_OMW", Value = 21)]
k_EDOTA_CW_OMW = 21,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Get_Ready", Value = 22)]
k_EDOTA_CW_Get_Ready = 22,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Bait", Value = 23)]
k_EDOTA_CW_Bait = 23,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Heal", Value = 24)]
k_EDOTA_CW_Heal = 24,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Mana", Value = 25)]
k_EDOTA_CW_Mana = 25,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_OOM", Value = 26)]
k_EDOTA_CW_OOM = 26,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Skill_Cooldown", Value = 27)]
k_EDOTA_CW_Skill_Cooldown = 27,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Ulti_Ready", Value = 28)]
k_EDOTA_CW_Ulti_Ready = 28,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Enemy_Returned", Value = 29)]
k_EDOTA_CW_Enemy_Returned = 29,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_All_Missing", Value = 30)]
k_EDOTA_CW_All_Missing = 30,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Enemy_Incoming", Value = 31)]
k_EDOTA_CW_Enemy_Incoming = 31,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Invis_Enemy", Value = 32)]
k_EDOTA_CW_Invis_Enemy = 32,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Enemy_Had_Rune", Value = 33)]
k_EDOTA_CW_Enemy_Had_Rune = 33,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Split_Push", Value = 34)]
k_EDOTA_CW_Split_Push = 34,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Coming_To_Gank", Value = 35)]
k_EDOTA_CW_Coming_To_Gank = 35,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Request_Gank", Value = 36)]
k_EDOTA_CW_Request_Gank = 36,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Fight_Under_Tower", Value = 37)]
k_EDOTA_CW_Fight_Under_Tower = 37,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Deny_Tower", Value = 38)]
k_EDOTA_CW_Deny_Tower = 38,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Buy_Courier", Value = 39)]
k_EDOTA_CW_Buy_Courier = 39,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Upgrade_Courier", Value = 40)]
k_EDOTA_CW_Upgrade_Courier = 40,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Need_Detection", Value = 41)]
k_EDOTA_CW_Need_Detection = 41,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_They_Have_Detection", Value = 42)]
k_EDOTA_CW_They_Have_Detection = 42,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Buy_TP", Value = 43)]
k_EDOTA_CW_Buy_TP = 43,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Reuse_Courier", Value = 44)]
k_EDOTA_CW_Reuse_Courier = 44,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Deward", Value = 45)]
k_EDOTA_CW_Deward = 45,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Building_Mek", Value = 46)]
k_EDOTA_CW_Building_Mek = 46,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Building_Pipe", Value = 47)]
k_EDOTA_CW_Building_Pipe = 47,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Stack_And_Pull", Value = 48)]
k_EDOTA_CW_Stack_And_Pull = 48,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Pull", Value = 49)]
k_EDOTA_CW_Pull = 49,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Pulling", Value = 50)]
k_EDOTA_CW_Pulling = 50,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Stack", Value = 51)]
k_EDOTA_CW_Stack = 51,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Jungling", Value = 52)]
k_EDOTA_CW_Jungling = 52,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Roshan", Value = 53)]
k_EDOTA_CW_Roshan = 53,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Affirmative", Value = 54)]
k_EDOTA_CW_Affirmative = 54,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Wait", Value = 55)]
k_EDOTA_CW_Wait = 55,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Pause", Value = 56)]
k_EDOTA_CW_Pause = 56,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Current_Time", Value = 57)]
k_EDOTA_CW_Current_Time = 57,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Check_Runes", Value = 58)]
k_EDOTA_CW_Check_Runes = 58,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Smoke_Gank", Value = 59)]
k_EDOTA_CW_Smoke_Gank = 59,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_GLHF", Value = 60)]
k_EDOTA_CW_GLHF = 60,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Nice", Value = 61)]
k_EDOTA_CW_Nice = 61,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Thanks", Value = 62)]
k_EDOTA_CW_Thanks = 62,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Sorry", Value = 63)]
k_EDOTA_CW_Sorry = 63,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_No_Give_Up", Value = 64)]
k_EDOTA_CW_No_Give_Up = 64,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Just_Happened", Value = 65)]
k_EDOTA_CW_Just_Happened = 65,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Game_Is_Hard", Value = 66)]
k_EDOTA_CW_Game_Is_Hard = 66,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_New_Meta", Value = 67)]
k_EDOTA_CW_New_Meta = 67,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_My_Bad", Value = 68)]
k_EDOTA_CW_My_Bad = 68,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Regret", Value = 69)]
k_EDOTA_CW_Regret = 69,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_Relax", Value = 70)]
k_EDOTA_CW_Relax = 70,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_MissingHero", Value = 71)]
k_EDOTA_CW_MissingHero = 71,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_CW_ReturnedHero", Value = 72)]
k_EDOTA_CW_ReturnedHero = 72
}
[global::ProtoBuf.ProtoContract(Name = @"EDOTAStatPopupTypes")]
public enum EDOTAStatPopupTypes
{
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_SPT_Textline", Value = 0)]
k_EDOTA_SPT_Textline = 0,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_SPT_Basic", Value = 1)]
k_EDOTA_SPT_Basic = 1,
[global::ProtoBuf.ProtoEnum(Name = @"k_EDOTA_SPT_Poll", Value = 2)]
k_EDOTA_SPT_Poll = 2
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_MODIFIER_ENTRY_TYPE")]
public enum DOTA_MODIFIER_ENTRY_TYPE
{
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_MODIFIER_ENTRY_TYPE_ACTIVE", Value = 1)]
DOTA_MODIFIER_ENTRY_TYPE_ACTIVE = 1,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_MODIFIER_ENTRY_TYPE_REMOVED", Value = 2)]
DOTA_MODIFIER_ENTRY_TYPE_REMOVED = 2
}
[global::ProtoBuf.ProtoContract(Name = @"EDotaUserMessages")]
public enum EDotaUserMessages
{
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_AddUnitToSelection", Value = 64)]
DOTA_UM_AddUnitToSelection = 64,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_AIDebugLine", Value = 65)]
DOTA_UM_AIDebugLine = 65,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ChatEvent", Value = 66)]
DOTA_UM_ChatEvent = 66,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CombatHeroPositions", Value = 67)]
DOTA_UM_CombatHeroPositions = 67,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CombatLogData", Value = 68)]
DOTA_UM_CombatLogData = 68,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CombatLogShowDeath", Value = 70)]
DOTA_UM_CombatLogShowDeath = 70,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CreateLinearProjectile", Value = 71)]
DOTA_UM_CreateLinearProjectile = 71,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_DestroyLinearProjectile", Value = 72)]
DOTA_UM_DestroyLinearProjectile = 72,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_DodgeTrackingProjectiles", Value = 73)]
DOTA_UM_DodgeTrackingProjectiles = 73,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_GlobalLightColor", Value = 74)]
DOTA_UM_GlobalLightColor = 74,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_GlobalLightDirection", Value = 75)]
DOTA_UM_GlobalLightDirection = 75,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_InvalidCommand", Value = 76)]
DOTA_UM_InvalidCommand = 76,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_LocationPing", Value = 77)]
DOTA_UM_LocationPing = 77,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_MapLine", Value = 78)]
DOTA_UM_MapLine = 78,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_MiniKillCamInfo", Value = 79)]
DOTA_UM_MiniKillCamInfo = 79,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_MinimapDebugPoint", Value = 80)]
DOTA_UM_MinimapDebugPoint = 80,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_MinimapEvent", Value = 81)]
DOTA_UM_MinimapEvent = 81,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_NevermoreRequiem", Value = 82)]
DOTA_UM_NevermoreRequiem = 82,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_OverheadEvent", Value = 83)]
DOTA_UM_OverheadEvent = 83,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SetNextAutobuyItem", Value = 84)]
DOTA_UM_SetNextAutobuyItem = 84,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SharedCooldown", Value = 85)]
DOTA_UM_SharedCooldown = 85,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SpectatorPlayerClick", Value = 86)]
DOTA_UM_SpectatorPlayerClick = 86,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TutorialTipInfo", Value = 87)]
DOTA_UM_TutorialTipInfo = 87,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_UnitEvent", Value = 88)]
DOTA_UM_UnitEvent = 88,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ParticleManager", Value = 89)]
DOTA_UM_ParticleManager = 89,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_BotChat", Value = 90)]
DOTA_UM_BotChat = 90,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_HudError", Value = 91)]
DOTA_UM_HudError = 91,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ItemPurchased", Value = 92)]
DOTA_UM_ItemPurchased = 92,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_Ping", Value = 93)]
DOTA_UM_Ping = 93,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ItemFound", Value = 94)]
DOTA_UM_ItemFound = 94,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CharacterSpeakConcept", Value = 95)]
DOTA_UM_CharacterSpeakConcept = 95,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SwapVerify", Value = 96)]
DOTA_UM_SwapVerify = 96,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_WorldLine", Value = 97)]
DOTA_UM_WorldLine = 97,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TournamentDrop", Value = 98)]
DOTA_UM_TournamentDrop = 98,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ItemAlert", Value = 99)]
DOTA_UM_ItemAlert = 99,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_HalloweenDrops", Value = 100)]
DOTA_UM_HalloweenDrops = 100,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ChatWheel", Value = 101)]
DOTA_UM_ChatWheel = 101,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ReceivedXmasGift", Value = 102)]
DOTA_UM_ReceivedXmasGift = 102,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_UpdateSharedContent", Value = 103)]
DOTA_UM_UpdateSharedContent = 103,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TutorialRequestExp", Value = 104)]
DOTA_UM_TutorialRequestExp = 104,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TutorialPingMinimap", Value = 105)]
DOTA_UM_TutorialPingMinimap = 105,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_GamerulesStateChanged", Value = 106)]
DOTA_UM_GamerulesStateChanged = 106,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ShowSurvey", Value = 107)]
DOTA_UM_ShowSurvey = 107,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TutorialFade", Value = 108)]
DOTA_UM_TutorialFade = 108,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_AddQuestLogEntry", Value = 109)]
DOTA_UM_AddQuestLogEntry = 109,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SendStatPopup", Value = 110)]
DOTA_UM_SendStatPopup = 110,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TutorialFinish", Value = 111)]
DOTA_UM_TutorialFinish = 111,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SendRoshanPopup", Value = 112)]
DOTA_UM_SendRoshanPopup = 112,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SendGenericToolTip", Value = 113)]
DOTA_UM_SendGenericToolTip = 113,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_SendFinalGold", Value = 114)]
DOTA_UM_SendFinalGold = 114,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CustomMsg", Value = 115)]
DOTA_UM_CustomMsg = 115,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CoachHUDPing", Value = 116)]
DOTA_UM_CoachHUDPing = 116,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ClientLoadGridNav", Value = 117)]
DOTA_UM_ClientLoadGridNav = 117,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_AbilityPing", Value = 118)]
DOTA_UM_AbilityPing = 118,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_ShowGenericPopup", Value = 119)]
DOTA_UM_ShowGenericPopup = 119,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_VoteStart", Value = 120)]
DOTA_UM_VoteStart = 120,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_VoteUpdate", Value = 121)]
DOTA_UM_VoteUpdate = 121,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_VoteEnd", Value = 122)]
DOTA_UM_VoteEnd = 122,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_BoosterState", Value = 123)]
DOTA_UM_BoosterState = 123,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_WillPurchaseAlert", Value = 124)]
DOTA_UM_WillPurchaseAlert = 124,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_TutorialMinimapPosition", Value = 125)]
DOTA_UM_TutorialMinimapPosition = 125,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_PlayerMMR", Value = 126)]
DOTA_UM_PlayerMMR = 126,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_AbilitySteal", Value = 127)]
DOTA_UM_AbilitySteal = 127,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UM_CourierKilledAlert", Value = 128)]
DOTA_UM_CourierKilledAlert = 128
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_CHAT_MESSAGE")]
public enum DOTA_CHAT_MESSAGE
{
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_INVALID", Value = -1)]
CHAT_MESSAGE_INVALID = -1,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_HERO_KILL", Value = 0)]
CHAT_MESSAGE_HERO_KILL = 0,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_HERO_DENY", Value = 1)]
CHAT_MESSAGE_HERO_DENY = 1,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_BARRACKS_KILL", Value = 2)]
CHAT_MESSAGE_BARRACKS_KILL = 2,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_TOWER_KILL", Value = 3)]
CHAT_MESSAGE_TOWER_KILL = 3,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_TOWER_DENY", Value = 4)]
CHAT_MESSAGE_TOWER_DENY = 4,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_FIRSTBLOOD", Value = 5)]
CHAT_MESSAGE_FIRSTBLOOD = 5,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_STREAK_KILL", Value = 6)]
CHAT_MESSAGE_STREAK_KILL = 6,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_BUYBACK", Value = 7)]
CHAT_MESSAGE_BUYBACK = 7,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_AEGIS", Value = 8)]
CHAT_MESSAGE_AEGIS = 8,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ROSHAN_KILL", Value = 9)]
CHAT_MESSAGE_ROSHAN_KILL = 9,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_COURIER_LOST", Value = 10)]
CHAT_MESSAGE_COURIER_LOST = 10,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_COURIER_RESPAWNED", Value = 11)]
CHAT_MESSAGE_COURIER_RESPAWNED = 11,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_GLYPH_USED", Value = 12)]
CHAT_MESSAGE_GLYPH_USED = 12,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ITEM_PURCHASE", Value = 13)]
CHAT_MESSAGE_ITEM_PURCHASE = 13,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CONNECT", Value = 14)]
CHAT_MESSAGE_CONNECT = 14,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DISCONNECT", Value = 15)]
CHAT_MESSAGE_DISCONNECT = 15,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DISCONNECT_WAIT_FOR_RECONNECT", Value = 16)]
CHAT_MESSAGE_DISCONNECT_WAIT_FOR_RECONNECT = 16,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DISCONNECT_TIME_REMAINING", Value = 17)]
CHAT_MESSAGE_DISCONNECT_TIME_REMAINING = 17,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DISCONNECT_TIME_REMAINING_PLURAL", Value = 18)]
CHAT_MESSAGE_DISCONNECT_TIME_REMAINING_PLURAL = 18,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RECONNECT", Value = 19)]
CHAT_MESSAGE_RECONNECT = 19,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_LEFT", Value = 20)]
CHAT_MESSAGE_PLAYER_LEFT = 20,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_SAFE_TO_LEAVE", Value = 21)]
CHAT_MESSAGE_SAFE_TO_LEAVE = 21,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RUNE_PICKUP", Value = 22)]
CHAT_MESSAGE_RUNE_PICKUP = 22,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RUNE_BOTTLE", Value = 23)]
CHAT_MESSAGE_RUNE_BOTTLE = 23,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_INTHEBAG", Value = 24)]
CHAT_MESSAGE_INTHEBAG = 24,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_SECRETSHOP", Value = 25)]
CHAT_MESSAGE_SECRETSHOP = 25,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ITEM_AUTOPURCHASED", Value = 26)]
CHAT_MESSAGE_ITEM_AUTOPURCHASED = 26,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ITEMS_COMBINED", Value = 27)]
CHAT_MESSAGE_ITEMS_COMBINED = 27,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_SUPER_CREEPS", Value = 28)]
CHAT_MESSAGE_SUPER_CREEPS = 28,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CANT_USE_ACTION_ITEM", Value = 29)]
CHAT_MESSAGE_CANT_USE_ACTION_ITEM = 29,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CHARGES_EXHAUSTED", Value = 30)]
CHAT_MESSAGE_CHARGES_EXHAUSTED = 30,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CANTPAUSE", Value = 31)]
CHAT_MESSAGE_CANTPAUSE = 31,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_NOPAUSESLEFT", Value = 32)]
CHAT_MESSAGE_NOPAUSESLEFT = 32,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CANTPAUSEYET", Value = 33)]
CHAT_MESSAGE_CANTPAUSEYET = 33,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PAUSED", Value = 34)]
CHAT_MESSAGE_PAUSED = 34,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_UNPAUSE_COUNTDOWN", Value = 35)]
CHAT_MESSAGE_UNPAUSE_COUNTDOWN = 35,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_UNPAUSED", Value = 36)]
CHAT_MESSAGE_UNPAUSED = 36,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_AUTO_UNPAUSED", Value = 37)]
CHAT_MESSAGE_AUTO_UNPAUSED = 37,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_YOUPAUSED", Value = 38)]
CHAT_MESSAGE_YOUPAUSED = 38,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CANTUNPAUSETEAM", Value = 39)]
CHAT_MESSAGE_CANTUNPAUSETEAM = 39,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_VOICE_TEXT_BANNED", Value = 41)]
CHAT_MESSAGE_VOICE_TEXT_BANNED = 41,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_SPECTATORS_WATCHING_THIS_GAME", Value = 42)]
CHAT_MESSAGE_SPECTATORS_WATCHING_THIS_GAME = 42,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_REPORT_REMINDER", Value = 43)]
CHAT_MESSAGE_REPORT_REMINDER = 43,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ECON_ITEM", Value = 44)]
CHAT_MESSAGE_ECON_ITEM = 44,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_TAUNT", Value = 45)]
CHAT_MESSAGE_TAUNT = 45,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RANDOM", Value = 46)]
CHAT_MESSAGE_RANDOM = 46,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RD_TURN", Value = 47)]
CHAT_MESSAGE_RD_TURN = 47,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DROP_RATE_BONUS", Value = 49)]
CHAT_MESSAGE_DROP_RATE_BONUS = 49,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_NO_BATTLE_POINTS", Value = 50)]
CHAT_MESSAGE_NO_BATTLE_POINTS = 50,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DENIED_AEGIS", Value = 51)]
CHAT_MESSAGE_DENIED_AEGIS = 51,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_INFORMATIONAL", Value = 52)]
CHAT_MESSAGE_INFORMATIONAL = 52,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_AEGIS_STOLEN", Value = 53)]
CHAT_MESSAGE_AEGIS_STOLEN = 53,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ROSHAN_CANDY", Value = 54)]
CHAT_MESSAGE_ROSHAN_CANDY = 54,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ITEM_GIFTED", Value = 55)]
CHAT_MESSAGE_ITEM_GIFTED = 55,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_HERO_KILL_WITH_GREEVIL", Value = 56)]
CHAT_MESSAGE_HERO_KILL_WITH_GREEVIL = 56,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_HOLDOUT_TOWER_DESTROYED", Value = 57)]
CHAT_MESSAGE_HOLDOUT_TOWER_DESTROYED = 57,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_HOLDOUT_WALL_DESTROYED", Value = 58)]
CHAT_MESSAGE_HOLDOUT_WALL_DESTROYED = 58,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_HOLDOUT_WALL_FINISHED", Value = 59)]
CHAT_MESSAGE_HOLDOUT_WALL_FINISHED = 59,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_LEFT_LIMITED_HERO", Value = 62)]
CHAT_MESSAGE_PLAYER_LEFT_LIMITED_HERO = 62,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ABANDON_LIMITED_HERO_EXPLANATION", Value = 63)]
CHAT_MESSAGE_ABANDON_LIMITED_HERO_EXPLANATION = 63,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_DISCONNECT_LIMITED_HERO", Value = 64)]
CHAT_MESSAGE_DISCONNECT_LIMITED_HERO = 64,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_LOW_PRIORITY_COMPLETED_EXPLANATION", Value = 65)]
CHAT_MESSAGE_LOW_PRIORITY_COMPLETED_EXPLANATION = 65,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RECRUITMENT_DROP_RATE_BONUS", Value = 66)]
CHAT_MESSAGE_RECRUITMENT_DROP_RATE_BONUS = 66,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_FROSTIVUS_SHINING_BOOSTER_ACTIVE", Value = 67)]
CHAT_MESSAGE_FROSTIVUS_SHINING_BOOSTER_ACTIVE = 67,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_LEFT_AFK", Value = 73)]
CHAT_MESSAGE_PLAYER_LEFT_AFK = 73,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_LEFT_DISCONNECTED_TOO_LONG", Value = 74)]
CHAT_MESSAGE_PLAYER_LEFT_DISCONNECTED_TOO_LONG = 74,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_ABANDONED", Value = 75)]
CHAT_MESSAGE_PLAYER_ABANDONED = 75,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_ABANDONED_AFK", Value = 76)]
CHAT_MESSAGE_PLAYER_ABANDONED_AFK = 76,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_PLAYER_ABANDONED_DISCONNECTED_TOO_LONG", Value = 77)]
CHAT_MESSAGE_PLAYER_ABANDONED_DISCONNECTED_TOO_LONG = 77,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_WILL_NOT_BE_SCORED", Value = 78)]
CHAT_MESSAGE_WILL_NOT_BE_SCORED = 78,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_WILL_NOT_BE_SCORED_RANKED", Value = 79)]
CHAT_MESSAGE_WILL_NOT_BE_SCORED_RANKED = 79,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_WILL_NOT_BE_SCORED_NETWORK", Value = 80)]
CHAT_MESSAGE_WILL_NOT_BE_SCORED_NETWORK = 80,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_WILL_NOT_BE_SCORED_NETWORK_RANKED", Value = 81)]
CHAT_MESSAGE_WILL_NOT_BE_SCORED_NETWORK_RANKED = 81,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_CAN_QUIT_WITHOUT_ABANDON", Value = 82)]
CHAT_MESSAGE_CAN_QUIT_WITHOUT_ABANDON = 82,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_RANKED_GAME_STILL_SCORED_LEAVERS_GET_LOSS", Value = 83)]
CHAT_MESSAGE_RANKED_GAME_STILL_SCORED_LEAVERS_GET_LOSS = 83,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_ABANDON_RANKED_BEFORE_FIRST_BLOOD_PARTY", Value = 84)]
CHAT_MESSAGE_ABANDON_RANKED_BEFORE_FIRST_BLOOD_PARTY = 84,
[global::ProtoBuf.ProtoEnum(Name = @"CHAT_MESSAGE_COMPENDIUM_LEVEL", Value = 85)]
CHAT_MESSAGE_COMPENDIUM_LEVEL = 85
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_NO_BATTLE_POINTS_REASONS")]
public enum DOTA_NO_BATTLE_POINTS_REASONS
{
[global::ProtoBuf.ProtoEnum(Name = @"NO_BATTLE_POINTS_WRONG_LOBBY_TYPE", Value = 1)]
NO_BATTLE_POINTS_WRONG_LOBBY_TYPE = 1,
[global::ProtoBuf.ProtoEnum(Name = @"NO_BATTLE_POINTS_PRACTICE_BOTS", Value = 2)]
NO_BATTLE_POINTS_PRACTICE_BOTS = 2,
[global::ProtoBuf.ProtoEnum(Name = @"NO_BATTLE_POINTS_CHEATS_ENABLED", Value = 3)]
NO_BATTLE_POINTS_CHEATS_ENABLED = 3,
[global::ProtoBuf.ProtoEnum(Name = @"NO_BATTLE_POINTS_LOW_PRIORITY", Value = 4)]
NO_BATTLE_POINTS_LOW_PRIORITY = 4
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_CHAT_INFORMATIONAL")]
public enum DOTA_CHAT_INFORMATIONAL
{
[global::ProtoBuf.ProtoEnum(Name = @"INFO_COOP_BATTLE_POINTS_RULES", Value = 1)]
INFO_COOP_BATTLE_POINTS_RULES = 1,
[global::ProtoBuf.ProtoEnum(Name = @"INFO_FROSTIVUS_ABANDON_REMINDER", Value = 2)]
INFO_FROSTIVUS_ABANDON_REMINDER = 2,
[global::ProtoBuf.ProtoEnum(Name = @"INFO_RANKED_REMINDER", Value = 3)]
INFO_RANKED_REMINDER = 3,
[global::ProtoBuf.ProtoEnum(Name = @"INFO_COOP_LOW_PRIORITY_PASSIVE_REMINDER", Value = 4)]
INFO_COOP_LOW_PRIORITY_PASSIVE_REMINDER = 4
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_ABILITY_PING_TYPE")]
public enum DOTA_ABILITY_PING_TYPE
{
[global::ProtoBuf.ProtoEnum(Name = @"ABILITY_PING_READY", Value = 1)]
ABILITY_PING_READY = 1,
[global::ProtoBuf.ProtoEnum(Name = @"ABILITY_PING_MANA", Value = 2)]
ABILITY_PING_MANA = 2,
[global::ProtoBuf.ProtoEnum(Name = @"ABILITY_PING_COOLDOWN", Value = 3)]
ABILITY_PING_COOLDOWN = 3
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_COMBATLOG_TYPES")]
public enum DOTA_COMBATLOG_TYPES
{
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_DAMAGE", Value = 0)]
DOTA_COMBATLOG_DAMAGE = 0,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_HEAL", Value = 1)]
DOTA_COMBATLOG_HEAL = 1,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_MODIFIER_ADD", Value = 2)]
DOTA_COMBATLOG_MODIFIER_ADD = 2,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_MODIFIER_REMOVE", Value = 3)]
DOTA_COMBATLOG_MODIFIER_REMOVE = 3,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_DEATH", Value = 4)]
DOTA_COMBATLOG_DEATH = 4,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_ABILITY", Value = 5)]
DOTA_COMBATLOG_ABILITY = 5,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_COMBATLOG_ITEM", Value = 6)]
DOTA_COMBATLOG_ITEM = 6
}
[global::ProtoBuf.ProtoContract(Name = @"EDotaEntityMessages")]
public enum EDotaEntityMessages
{
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_SPEECH", Value = 0)]
DOTA_UNIT_SPEECH = 0,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_SPEECH_MUTE", Value = 1)]
DOTA_UNIT_SPEECH_MUTE = 1,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_ADD_GESTURE", Value = 2)]
DOTA_UNIT_ADD_GESTURE = 2,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_REMOVE_GESTURE", Value = 3)]
DOTA_UNIT_REMOVE_GESTURE = 3,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_REMOVE_ALL_GESTURES", Value = 4)]
DOTA_UNIT_REMOVE_ALL_GESTURES = 4,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_FADE_GESTURE", Value = 6)]
DOTA_UNIT_FADE_GESTURE = 6,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_UNIT_SPEECH_CLIENTSIDE_RULES", Value = 7)]
DOTA_UNIT_SPEECH_CLIENTSIDE_RULES = 7
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_PARTICLE_MESSAGE")]
public enum DOTA_PARTICLE_MESSAGE
{
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_CREATE", Value = 0)]
DOTA_PARTICLE_MANAGER_EVENT_CREATE = 0,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_UPDATE", Value = 1)]
DOTA_PARTICLE_MANAGER_EVENT_UPDATE = 1,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD", Value = 2)]
DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD = 2,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION", Value = 3)]
DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION = 3,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK", Value = 4)]
DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK = 4,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ENT", Value = 5)]
DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ENT = 5,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET", Value = 6)]
DOTA_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET = 6,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_DESTROY", Value = 7)]
DOTA_PARTICLE_MANAGER_EVENT_DESTROY = 7,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING", Value = 8)]
DOTA_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING = 8,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_RELEASE", Value = 9)]
DOTA_PARTICLE_MANAGER_EVENT_RELEASE = 9,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_LATENCY", Value = 10)]
DOTA_PARTICLE_MANAGER_EVENT_LATENCY = 10,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_SHOULD_DRAW", Value = 11)]
DOTA_PARTICLE_MANAGER_EVENT_SHOULD_DRAW = 11,
[global::ProtoBuf.ProtoEnum(Name = @"DOTA_PARTICLE_MANAGER_EVENT_FROZEN", Value = 12)]
DOTA_PARTICLE_MANAGER_EVENT_FROZEN = 12
}
[global::ProtoBuf.ProtoContract(Name = @"DOTA_OVERHEAD_ALERT")]
public enum DOTA_OVERHEAD_ALERT
{
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_GOLD", Value = 0)]
OVERHEAD_ALERT_GOLD = 0,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_DENY", Value = 1)]
OVERHEAD_ALERT_DENY = 1,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_CRITICAL", Value = 2)]
OVERHEAD_ALERT_CRITICAL = 2,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_XP", Value = 3)]
OVERHEAD_ALERT_XP = 3,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_BONUS_SPELL_DAMAGE", Value = 4)]
OVERHEAD_ALERT_BONUS_SPELL_DAMAGE = 4,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_MISS", Value = 5)]
OVERHEAD_ALERT_MISS = 5,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_DAMAGE", Value = 6)]
OVERHEAD_ALERT_DAMAGE = 6,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_EVADE", Value = 7)]
OVERHEAD_ALERT_EVADE = 7,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_BLOCK", Value = 8)]
OVERHEAD_ALERT_BLOCK = 8,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_BONUS_POISON_DAMAGE", Value = 9)]
OVERHEAD_ALERT_BONUS_POISON_DAMAGE = 9,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_HEAL", Value = 10)]
OVERHEAD_ALERT_HEAL = 10,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_MANA_ADD", Value = 11)]
OVERHEAD_ALERT_MANA_ADD = 11,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_MANA_LOSS", Value = 12)]
OVERHEAD_ALERT_MANA_LOSS = 12,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_LAST_HIT_EARLY", Value = 13)]
OVERHEAD_ALERT_LAST_HIT_EARLY = 13,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_LAST_HIT_CLOSE", Value = 14)]
OVERHEAD_ALERT_LAST_HIT_CLOSE = 14,
[global::ProtoBuf.ProtoEnum(Name = @"OVERHEAD_ALERT_LAST_HIT_MISS", Value = 15)]
OVERHEAD_ALERT_LAST_HIT_MISS = 15
}
[global::ProtoBuf.ProtoContract(Name = @"NET_Messages")]
public enum NET_Messages
{
[global::ProtoBuf.ProtoEnum(Name = @"net_NOP", Value = 0)]
net_NOP = 0,
[global::ProtoBuf.ProtoEnum(Name = @"net_Disconnect", Value = 1)]
net_Disconnect = 1,
[global::ProtoBuf.ProtoEnum(Name = @"net_File", Value = 2)]
net_File = 2,
[global::ProtoBuf.ProtoEnum(Name = @"net_SplitScreenUser", Value = 3)]
net_SplitScreenUser = 3,
[global::ProtoBuf.ProtoEnum(Name = @"net_Tick", Value = 4)]
net_Tick = 4,
[global::ProtoBuf.ProtoEnum(Name = @"net_StringCmd", Value = 5)]
net_StringCmd = 5,
[global::ProtoBuf.ProtoEnum(Name = @"net_SetConVar", Value = 6)]
net_SetConVar = 6,
[global::ProtoBuf.ProtoEnum(Name = @"net_SignonState", Value = 7)]
net_SignonState = 7
}
[global::ProtoBuf.ProtoContract(Name = @"CLC_Messages")]
public enum CLC_Messages
{
[global::ProtoBuf.ProtoEnum(Name = @"clc_ClientInfo", Value = 8)]
clc_ClientInfo = 8,
[global::ProtoBuf.ProtoEnum(Name = @"clc_Move", Value = 9)]
clc_Move = 9,
[global::ProtoBuf.ProtoEnum(Name = @"clc_VoiceData", Value = 10)]
clc_VoiceData = 10,
[global::ProtoBuf.ProtoEnum(Name = @"clc_BaselineAck", Value = 11)]
clc_BaselineAck = 11,
[global::ProtoBuf.ProtoEnum(Name = @"clc_ListenEvents", Value = 12)]
clc_ListenEvents = 12,
[global::ProtoBuf.ProtoEnum(Name = @"clc_RespondCvarValue", Value = 13)]
clc_RespondCvarValue = 13,
[global::ProtoBuf.ProtoEnum(Name = @"clc_FileCRCCheck", Value = 14)]
clc_FileCRCCheck = 14,
[global::ProtoBuf.ProtoEnum(Name = @"clc_LoadingProgress", Value = 15)]
clc_LoadingProgress = 15,
[global::ProtoBuf.ProtoEnum(Name = @"clc_SplitPlayerConnect", Value = 16)]
clc_SplitPlayerConnect = 16,
[global::ProtoBuf.ProtoEnum(Name = @"clc_ClientMessage", Value = 17)]
clc_ClientMessage = 17
}
[global::ProtoBuf.ProtoContract(Name = @"VoiceDataFormat_t")]
public enum VoiceDataFormat_t
{
[global::ProtoBuf.ProtoEnum(Name = @"VOICEDATA_FORMAT_STEAM", Value = 0)]
VOICEDATA_FORMAT_STEAM = 0,
[global::ProtoBuf.ProtoEnum(Name = @"VOICEDATA_FORMAT_ENGINE", Value = 1)]
VOICEDATA_FORMAT_ENGINE = 1
}
[global::ProtoBuf.ProtoContract(Name = @"SVC_Messages")]
public enum SVC_Messages
{
[global::ProtoBuf.ProtoEnum(Name = @"svc_ServerInfo", Value = 8)]
svc_ServerInfo = 8,
[global::ProtoBuf.ProtoEnum(Name = @"svc_SendTable", Value = 9)]
svc_SendTable = 9,
[global::ProtoBuf.ProtoEnum(Name = @"svc_ClassInfo", Value = 10)]
svc_ClassInfo = 10,
[global::ProtoBuf.ProtoEnum(Name = @"svc_SetPause", Value = 11)]
svc_SetPause = 11,
[global::ProtoBuf.ProtoEnum(Name = @"svc_CreateStringTable", Value = 12)]
svc_CreateStringTable = 12,
[global::ProtoBuf.ProtoEnum(Name = @"svc_UpdateStringTable", Value = 13)]
svc_UpdateStringTable = 13,
[global::ProtoBuf.ProtoEnum(Name = @"svc_VoiceInit", Value = 14)]
svc_VoiceInit = 14,
[global::ProtoBuf.ProtoEnum(Name = @"svc_VoiceData", Value = 15)]
svc_VoiceData = 15,
[global::ProtoBuf.ProtoEnum(Name = @"svc_Print", Value = 16)]
svc_Print = 16,
[global::ProtoBuf.ProtoEnum(Name = @"svc_Sounds", Value = 17)]
svc_Sounds = 17,
[global::ProtoBuf.ProtoEnum(Name = @"svc_SetView", Value = 18)]
svc_SetView = 18,
[global::ProtoBuf.ProtoEnum(Name = @"svc_FixAngle", Value = 19)]
svc_FixAngle = 19,
[global::ProtoBuf.ProtoEnum(Name = @"svc_CrosshairAngle", Value = 20)]
svc_CrosshairAngle = 20,
[global::ProtoBuf.ProtoEnum(Name = @"svc_BSPDecal", Value = 21)]
svc_BSPDecal = 21,
[global::ProtoBuf.ProtoEnum(Name = @"svc_SplitScreen", Value = 22)]
svc_SplitScreen = 22,
[global::ProtoBuf.ProtoEnum(Name = @"svc_UserMessage", Value = 23)]
svc_UserMessage = 23,
[global::ProtoBuf.ProtoEnum(Name = @"svc_EntityMessage", Value = 24)]
svc_EntityMessage = 24,
[global::ProtoBuf.ProtoEnum(Name = @"svc_GameEvent", Value = 25)]
svc_GameEvent = 25,
[global::ProtoBuf.ProtoEnum(Name = @"svc_PacketEntities", Value = 26)]
svc_PacketEntities = 26,
[global::ProtoBuf.ProtoEnum(Name = @"svc_TempEntities", Value = 27)]
svc_TempEntities = 27,
[global::ProtoBuf.ProtoEnum(Name = @"svc_Prefetch", Value = 28)]
svc_Prefetch = 28,
[global::ProtoBuf.ProtoEnum(Name = @"svc_Menu", Value = 29)]
svc_Menu = 29,
[global::ProtoBuf.ProtoEnum(Name = @"svc_GameEventList", Value = 30)]
svc_GameEventList = 30,
[global::ProtoBuf.ProtoEnum(Name = @"svc_GetCvarValue", Value = 31)]
svc_GetCvarValue = 31,
[global::ProtoBuf.ProtoEnum(Name = @"svc_PacketReliable", Value = 32)]
svc_PacketReliable = 32,
[global::ProtoBuf.ProtoEnum(Name = @"svc_FullFrameSplit", Value = 33)]
svc_FullFrameSplit = 33
}
[global::ProtoBuf.ProtoContract(Name = @"ESplitScreenMessageType")]
public enum ESplitScreenMessageType
{
[global::ProtoBuf.ProtoEnum(Name = @"MSG_SPLITSCREEN_ADDUSER", Value = 0)]
MSG_SPLITSCREEN_ADDUSER = 0,
[global::ProtoBuf.ProtoEnum(Name = @"MSG_SPLITSCREEN_REMOVEUSER", Value = 1)]
MSG_SPLITSCREEN_REMOVEUSER = 1
}
[global::ProtoBuf.ProtoContract(Name = @"ENetworkDisconnectionReason")]
public enum ENetworkDisconnectionReason
{
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_INVALID", Value = 0)]
NETWORK_DISCONNECT_INVALID = 0,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_SHUTDOWN", Value = 1)]
NETWORK_DISCONNECT_SHUTDOWN = 1,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_DISCONNECT_BY_USER", Value = 2)]
NETWORK_DISCONNECT_DISCONNECT_BY_USER = 2,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_DISCONNECT_BY_SERVER", Value = 3)]
NETWORK_DISCONNECT_DISCONNECT_BY_SERVER = 3,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_LOST", Value = 4)]
NETWORK_DISCONNECT_LOST = 4,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_OVERFLOW", Value = 5)]
NETWORK_DISCONNECT_OVERFLOW = 5,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_BANNED", Value = 6)]
NETWORK_DISCONNECT_STEAM_BANNED = 6,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_INUSE", Value = 7)]
NETWORK_DISCONNECT_STEAM_INUSE = 7,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_TICKET", Value = 8)]
NETWORK_DISCONNECT_STEAM_TICKET = 8,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_LOGON", Value = 9)]
NETWORK_DISCONNECT_STEAM_LOGON = 9,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_AUTHCANCELLED", Value = 10)]
NETWORK_DISCONNECT_STEAM_AUTHCANCELLED = 10,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_AUTHALREADYUSED", Value = 11)]
NETWORK_DISCONNECT_STEAM_AUTHALREADYUSED = 11,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_AUTHINVALID", Value = 12)]
NETWORK_DISCONNECT_STEAM_AUTHINVALID = 12,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_VACBANSTATE", Value = 13)]
NETWORK_DISCONNECT_STEAM_VACBANSTATE = 13,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_LOGGED_IN_ELSEWHERE", Value = 14)]
NETWORK_DISCONNECT_STEAM_LOGGED_IN_ELSEWHERE = 14,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_VAC_CHECK_TIMEDOUT", Value = 15)]
NETWORK_DISCONNECT_STEAM_VAC_CHECK_TIMEDOUT = 15,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_DROPPED", Value = 16)]
NETWORK_DISCONNECT_STEAM_DROPPED = 16,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STEAM_OWNERSHIP", Value = 17)]
NETWORK_DISCONNECT_STEAM_OWNERSHIP = 17,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_SERVERINFO_OVERFLOW", Value = 18)]
NETWORK_DISCONNECT_SERVERINFO_OVERFLOW = 18,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_TICKMSG_OVERFLOW", Value = 19)]
NETWORK_DISCONNECT_TICKMSG_OVERFLOW = 19,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_STRINGTABLEMSG_OVERFLOW", Value = 20)]
NETWORK_DISCONNECT_STRINGTABLEMSG_OVERFLOW = 20,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW", Value = 21)]
NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW = 21,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_TEMPENTMSG_OVERFLOW", Value = 22)]
NETWORK_DISCONNECT_TEMPENTMSG_OVERFLOW = 22,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_SOUNDSMSG_OVERFLOW", Value = 23)]
NETWORK_DISCONNECT_SOUNDSMSG_OVERFLOW = 23,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_SNAPSHOTOVERFLOW", Value = 24)]
NETWORK_DISCONNECT_SNAPSHOTOVERFLOW = 24,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_SNAPSHOTERROR", Value = 25)]
NETWORK_DISCONNECT_SNAPSHOTERROR = 25,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_RELIABLEOVERFLOW", Value = 26)]
NETWORK_DISCONNECT_RELIABLEOVERFLOW = 26,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_BADDELTATICK", Value = 27)]
NETWORK_DISCONNECT_BADDELTATICK = 27,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_NOMORESPLITS", Value = 28)]
NETWORK_DISCONNECT_NOMORESPLITS = 28,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_TIMEDOUT", Value = 29)]
NETWORK_DISCONNECT_TIMEDOUT = 29,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_DISCONNECTED", Value = 30)]
NETWORK_DISCONNECT_DISCONNECTED = 30,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_LEAVINGSPLIT", Value = 31)]
NETWORK_DISCONNECT_LEAVINGSPLIT = 31,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_DIFFERENTCLASSTABLES", Value = 32)]
NETWORK_DISCONNECT_DIFFERENTCLASSTABLES = 32,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_BADRELAYPASSWORD", Value = 33)]
NETWORK_DISCONNECT_BADRELAYPASSWORD = 33,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_BADSPECTATORPASSWORD", Value = 34)]
NETWORK_DISCONNECT_BADSPECTATORPASSWORD = 34,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_HLTVRESTRICTED", Value = 35)]
NETWORK_DISCONNECT_HLTVRESTRICTED = 35,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_NOSPECTATORS", Value = 36)]
NETWORK_DISCONNECT_NOSPECTATORS = 36,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_HLTVUNAVAILABLE", Value = 37)]
NETWORK_DISCONNECT_HLTVUNAVAILABLE = 37,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_HLTVSTOP", Value = 38)]
NETWORK_DISCONNECT_HLTVSTOP = 38,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_KICKED", Value = 39)]
NETWORK_DISCONNECT_KICKED = 39,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_BANADDED", Value = 40)]
NETWORK_DISCONNECT_BANADDED = 40,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_KICKBANADDED", Value = 41)]
NETWORK_DISCONNECT_KICKBANADDED = 41,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_HLTVDIRECT", Value = 42)]
NETWORK_DISCONNECT_HLTVDIRECT = 42,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_PURESERVER_CLIENTEXTRA", Value = 43)]
NETWORK_DISCONNECT_PURESERVER_CLIENTEXTRA = 43,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_PURESERVER_MISMATCH", Value = 44)]
NETWORK_DISCONNECT_PURESERVER_MISMATCH = 44,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_USERCMD", Value = 45)]
NETWORK_DISCONNECT_USERCMD = 45,
[global::ProtoBuf.ProtoEnum(Name = @"NETWORK_DISCONNECT_REJECTED_BY_GAME", Value = 46)]
NETWORK_DISCONNECT_REJECTED_BY_GAME = 46
}
[global::ProtoBuf.ProtoContract(Name = @"SIGNONSTATE")]
public enum SIGNONSTATE
{
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_NONE", Value = 0)]
SIGNONSTATE_NONE = 0,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_CHALLENGE", Value = 1)]
SIGNONSTATE_CHALLENGE = 1,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_CONNECTED", Value = 2)]
SIGNONSTATE_CONNECTED = 2,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_NEW", Value = 3)]
SIGNONSTATE_NEW = 3,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_PRESPAWN", Value = 4)]
SIGNONSTATE_PRESPAWN = 4,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_SPAWN", Value = 5)]
SIGNONSTATE_SPAWN = 5,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_FULL", Value = 6)]
SIGNONSTATE_FULL = 6,
[global::ProtoBuf.ProtoEnum(Name = @"SIGNONSTATE_CHANGELEVEL", Value = 7)]
SIGNONSTATE_CHANGELEVEL = 7
}
[global::ProtoBuf.ProtoContract(Name = @"EBaseUserMessages")]
public enum EBaseUserMessages
{
[global::ProtoBuf.ProtoEnum(Name = @"UM_AchievementEvent", Value = 1)]
UM_AchievementEvent = 1,
[global::ProtoBuf.ProtoEnum(Name = @"UM_CloseCaption", Value = 2)]
UM_CloseCaption = 2,
[global::ProtoBuf.ProtoEnum(Name = @"UM_CloseCaptionDirect", Value = 3)]
UM_CloseCaptionDirect = 3,
[global::ProtoBuf.ProtoEnum(Name = @"UM_CurrentTimescale", Value = 4)]
UM_CurrentTimescale = 4,
[global::ProtoBuf.ProtoEnum(Name = @"UM_DesiredTimescale", Value = 5)]
UM_DesiredTimescale = 5,
[global::ProtoBuf.ProtoEnum(Name = @"UM_Fade", Value = 6)]
UM_Fade = 6,
[global::ProtoBuf.ProtoEnum(Name = @"UM_GameTitle", Value = 7)]
UM_GameTitle = 7,
[global::ProtoBuf.ProtoEnum(Name = @"UM_Geiger", Value = 8)]
UM_Geiger = 8,
[global::ProtoBuf.ProtoEnum(Name = @"UM_HintText", Value = 9)]
UM_HintText = 9,
[global::ProtoBuf.ProtoEnum(Name = @"UM_HudMsg", Value = 10)]
UM_HudMsg = 10,
[global::ProtoBuf.ProtoEnum(Name = @"UM_HudText", Value = 11)]
UM_HudText = 11,
[global::ProtoBuf.ProtoEnum(Name = @"UM_KeyHintText", Value = 12)]
UM_KeyHintText = 12,
[global::ProtoBuf.ProtoEnum(Name = @"UM_MessageText", Value = 13)]
UM_MessageText = 13,
[global::ProtoBuf.ProtoEnum(Name = @"UM_RequestState", Value = 14)]
UM_RequestState = 14,
[global::ProtoBuf.ProtoEnum(Name = @"UM_ResetHUD", Value = 15)]
UM_ResetHUD = 15,
[global::ProtoBuf.ProtoEnum(Name = @"UM_Rumble", Value = 16)]
UM_Rumble = 16,
[global::ProtoBuf.ProtoEnum(Name = @"UM_SayText", Value = 17)]
UM_SayText = 17,
[global::ProtoBuf.ProtoEnum(Name = @"UM_SayText2", Value = 18)]
UM_SayText2 = 18,
[global::ProtoBuf.ProtoEnum(Name = @"UM_SayTextChannel", Value = 19)]
UM_SayTextChannel = 19,
[global::ProtoBuf.ProtoEnum(Name = @"UM_Shake", Value = 20)]
UM_Shake = 20,
[global::ProtoBuf.ProtoEnum(Name = @"UM_ShakeDir", Value = 21)]
UM_ShakeDir = 21,
[global::ProtoBuf.ProtoEnum(Name = @"UM_StatsCrawlMsg", Value = 22)]
UM_StatsCrawlMsg = 22,
[global::ProtoBuf.ProtoEnum(Name = @"UM_StatsSkipState", Value = 23)]
UM_StatsSkipState = 23,
[global::ProtoBuf.ProtoEnum(Name = @"UM_TextMsg", Value = 24)]
UM_TextMsg = 24,
[global::ProtoBuf.ProtoEnum(Name = @"UM_Tilt", Value = 25)]
UM_Tilt = 25,
[global::ProtoBuf.ProtoEnum(Name = @"UM_Train", Value = 26)]
UM_Train = 26,
[global::ProtoBuf.ProtoEnum(Name = @"UM_VGUIMenu", Value = 27)]
UM_VGUIMenu = 27,
[global::ProtoBuf.ProtoEnum(Name = @"UM_VoiceMask", Value = 28)]
UM_VoiceMask = 28,
[global::ProtoBuf.ProtoEnum(Name = @"UM_VoiceSubtitle", Value = 29)]
UM_VoiceSubtitle = 29,
[global::ProtoBuf.ProtoEnum(Name = @"UM_SendAudio", Value = 30)]
UM_SendAudio = 30,
[global::ProtoBuf.ProtoEnum(Name = @"UM_CameraTransition", Value = 31)]
UM_CameraTransition = 31,
[global::ProtoBuf.ProtoEnum(Name = @"UM_MAX_BASE", Value = 63)]
UM_MAX_BASE = 63
}
} | {
"content_hash": "0afc28be028668a41cb3b7d7152adae4",
"timestamp": "",
"source": "github",
"line_count": 10199,
"max_line_length": 222,
"avg_line_length": 46.62457103637612,
"alnum_prop": 0.6309544838956603,
"repo_name": "bradzacher/Eaglesong",
"id": "f51ef6ad479eab917e5d3f99e68bb73d85e0172f",
"size": "475555",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Eaglesong/dota2proto.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "518613"
},
{
"name": "Protocol Buffer",
"bytes": "60277"
}
],
"symlink_target": ""
} |
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.certificatemanager.v1.model;
/**
* The response message for Locations.ListLocations.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Certificate Manager API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ListLocationsResponse extends com.google.api.client.json.GenericJson {
/**
* A list of locations that matches the specified filter in the request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Location> locations;
/**
* The standard List next-page token.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
* @return value or {@code null} for none
*/
public java.util.List<Location> getLocations() {
return locations;
}
/**
* A list of locations that matches the specified filter in the request.
* @param locations locations or {@code null} for none
*/
public ListLocationsResponse setLocations(java.util.List<Location> locations) {
this.locations = locations;
return this;
}
/**
* The standard List next-page token.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}
/**
* The standard List next-page token.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}
@Override
public ListLocationsResponse set(String fieldName, Object value) {
return (ListLocationsResponse) super.set(fieldName, value);
}
@Override
public ListLocationsResponse clone() {
return (ListLocationsResponse) super.clone();
}
}
| {
"content_hash": "cf2887eb255fb42f9c73eac1011d8bac",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 182,
"avg_line_length": 31.934065934065934,
"alnum_prop": 0.7195457673778389,
"repo_name": "googleapis/google-api-java-client-services",
"id": "497f2e45b2af7b687ce7e78387a0a97c5b4d5329",
"size": "2906",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "clients/google-api-services-certificatemanager/v1/2.0.0/com/google/api/services/certificatemanager/v1/model/ListLocationsResponse.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
#pragma once
#include <aws/gamelift/GameLift_EXPORTS.h>
#include <aws/gamelift/GameLiftRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/gamelift/model/GameServerUtilizationStatus.h>
#include <aws/gamelift/model/GameServerHealthCheck.h>
#include <utility>
namespace Aws
{
namespace GameLift
{
namespace Model
{
/**
*/
class AWS_GAMELIFT_API UpdateGameServerRequest : public GameLiftRequest
{
public:
UpdateGameServerRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateGameServer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline UpdateGameServerRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline UpdateGameServerRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
/**
* <p>A unique identifier for the game server group where the game server is
* running. Use either the <a>GameServerGroup</a> name or ARN value.</p>
*/
inline UpdateGameServerRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline const Aws::String& GetGameServerId() const{ return m_gameServerId; }
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline void SetGameServerId(const Aws::String& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = value; }
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline void SetGameServerId(Aws::String&& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = std::move(value); }
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline void SetGameServerId(const char* value) { m_gameServerIdHasBeenSet = true; m_gameServerId.assign(value); }
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline UpdateGameServerRequest& WithGameServerId(const Aws::String& value) { SetGameServerId(value); return *this;}
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline UpdateGameServerRequest& WithGameServerId(Aws::String&& value) { SetGameServerId(std::move(value)); return *this;}
/**
* <p>A custom string that uniquely identifies the game server to update.</p>
*/
inline UpdateGameServerRequest& WithGameServerId(const char* value) { SetGameServerId(value); return *this;}
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline const Aws::String& GetGameServerData() const{ return m_gameServerData; }
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; }
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline void SetGameServerData(const Aws::String& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = value; }
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline void SetGameServerData(Aws::String&& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = std::move(value); }
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline void SetGameServerData(const char* value) { m_gameServerDataHasBeenSet = true; m_gameServerData.assign(value); }
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline UpdateGameServerRequest& WithGameServerData(const Aws::String& value) { SetGameServerData(value); return *this;}
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline UpdateGameServerRequest& WithGameServerData(Aws::String&& value) { SetGameServerData(std::move(value)); return *this;}
/**
* <p>A set of custom game server properties, formatted as a single string value.
* This data is passed to a game client or service when it requests information on
* game servers using <a>ListGameServers</a> or <a>ClaimGameServer</a>. </p>
*/
inline UpdateGameServerRequest& WithGameServerData(const char* value) { SetGameServerData(value); return *this;}
/**
* <p>Indicates whether the game server is available or is currently hosting
* gameplay.</p>
*/
inline const GameServerUtilizationStatus& GetUtilizationStatus() const{ return m_utilizationStatus; }
/**
* <p>Indicates whether the game server is available or is currently hosting
* gameplay.</p>
*/
inline bool UtilizationStatusHasBeenSet() const { return m_utilizationStatusHasBeenSet; }
/**
* <p>Indicates whether the game server is available or is currently hosting
* gameplay.</p>
*/
inline void SetUtilizationStatus(const GameServerUtilizationStatus& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = value; }
/**
* <p>Indicates whether the game server is available or is currently hosting
* gameplay.</p>
*/
inline void SetUtilizationStatus(GameServerUtilizationStatus&& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = std::move(value); }
/**
* <p>Indicates whether the game server is available or is currently hosting
* gameplay.</p>
*/
inline UpdateGameServerRequest& WithUtilizationStatus(const GameServerUtilizationStatus& value) { SetUtilizationStatus(value); return *this;}
/**
* <p>Indicates whether the game server is available or is currently hosting
* gameplay.</p>
*/
inline UpdateGameServerRequest& WithUtilizationStatus(GameServerUtilizationStatus&& value) { SetUtilizationStatus(std::move(value)); return *this;}
/**
* <p>Indicates health status of the game server. A request that includes this
* parameter updates the game server's <i>LastHealthCheckTime</i> timestamp. </p>
*/
inline const GameServerHealthCheck& GetHealthCheck() const{ return m_healthCheck; }
/**
* <p>Indicates health status of the game server. A request that includes this
* parameter updates the game server's <i>LastHealthCheckTime</i> timestamp. </p>
*/
inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
/**
* <p>Indicates health status of the game server. A request that includes this
* parameter updates the game server's <i>LastHealthCheckTime</i> timestamp. </p>
*/
inline void SetHealthCheck(const GameServerHealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
/**
* <p>Indicates health status of the game server. A request that includes this
* parameter updates the game server's <i>LastHealthCheckTime</i> timestamp. </p>
*/
inline void SetHealthCheck(GameServerHealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
/**
* <p>Indicates health status of the game server. A request that includes this
* parameter updates the game server's <i>LastHealthCheckTime</i> timestamp. </p>
*/
inline UpdateGameServerRequest& WithHealthCheck(const GameServerHealthCheck& value) { SetHealthCheck(value); return *this;}
/**
* <p>Indicates health status of the game server. A request that includes this
* parameter updates the game server's <i>LastHealthCheckTime</i> timestamp. </p>
*/
inline UpdateGameServerRequest& WithHealthCheck(GameServerHealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
private:
Aws::String m_gameServerGroupName;
bool m_gameServerGroupNameHasBeenSet = false;
Aws::String m_gameServerId;
bool m_gameServerIdHasBeenSet = false;
Aws::String m_gameServerData;
bool m_gameServerDataHasBeenSet = false;
GameServerUtilizationStatus m_utilizationStatus;
bool m_utilizationStatusHasBeenSet = false;
GameServerHealthCheck m_healthCheck;
bool m_healthCheckHasBeenSet = false;
};
} // namespace Model
} // namespace GameLift
} // namespace Aws
| {
"content_hash": "146c68267bd03e3f634e2f71dbbb5a99",
"timestamp": "",
"source": "github",
"line_count": 276,
"max_line_length": 155,
"avg_line_length": 43.778985507246375,
"alnum_prop": 0.703467681867086,
"repo_name": "aws/aws-sdk-cpp",
"id": "347c85a37203895817e711511184d33ffdcfc522",
"size": "12202",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "aws-cpp-sdk-gamelift/include/aws/gamelift/model/UpdateGameServerRequest.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "309797"
},
{
"name": "C++",
"bytes": "476866144"
},
{
"name": "CMake",
"bytes": "1245180"
},
{
"name": "Dockerfile",
"bytes": "11688"
},
{
"name": "HTML",
"bytes": "8056"
},
{
"name": "Java",
"bytes": "413602"
},
{
"name": "Python",
"bytes": "79245"
},
{
"name": "Shell",
"bytes": "9246"
}
],
"symlink_target": ""
} |
#include <aws/devicefarm/model/ListUniqueProblemsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DeviceFarm::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListUniqueProblemsRequest::ListUniqueProblemsRequest() :
m_arnHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListUniqueProblemsRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
return payload.WriteReadable();
}
Aws::Http::HeaderValueCollection ListUniqueProblemsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "DeviceFarm_20150623.ListUniqueProblems"));
return headers;
}
| {
"content_hash": "3cfc79840d8f55a9ee41dade15af0080",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 103,
"avg_line_length": 19.340425531914892,
"alnum_prop": 0.7524752475247525,
"repo_name": "chiaming0914/awe-cpp-sdk",
"id": "76f27266efcd8dc260687bf91a61d680102ee783",
"size": "1482",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "aws-cpp-sdk-devicefarm/source/model/ListUniqueProblemsRequest.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "2313"
},
{
"name": "C++",
"bytes": "98158533"
},
{
"name": "CMake",
"bytes": "437471"
},
{
"name": "HTML",
"bytes": "4471"
},
{
"name": "Java",
"bytes": "239297"
},
{
"name": "Python",
"bytes": "72827"
},
{
"name": "Shell",
"bytes": "2803"
}
],
"symlink_target": ""
} |
package paavohuh.sourcream.ui;
import java.awt.Color;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.util.function.Consumer;
import javax.swing.JButton;
import paavohuh.sourcream.utils.ColorUtils;
/**
* A control for selecting colors. Creates a ColorChooserDialog on keypress.
*/
public final class ColorChooserButton extends JButton {
private Color color;
/**
* Creates a new color chooser button.
* @param parent The parent.
* @param label The label of the button.
* @param initialColor The initial color.
*/
public ColorChooserButton(Dialog parent, String label, Color initialColor) {
//this.setPreferredSize(new Dimension(64, 64));
this.setMinimumSize(new Dimension(64, 32));
this.setOpaque(true);
this.setBorderPainted(false);
this.setText(label);
setColor(initialColor);
this.addActionListener(event -> {
ColorChooserDialog chooser = new ColorChooserDialog(parent, color);
setColor(chooser.showAsDialog());
});
}
public Color getColor() {
return color;
}
/**
* Sets the color.
* @param color The color.
*/
public void setColor(Color color) {
this.color = color;
this.setBackground(color);
this.setForeground(ColorUtils.invert(color));
}
/**
* Register a new callback for checking when the color is changed.
* @param func
*/
public void onChangeColor(Consumer<Color> func) {
addChangeListener(event -> {
func.accept(getColor());
});
}
@Override
public void paintComponent(Graphics g) {
super.paintComponent(g);
g.setColor(color);
g.fillRect(2, 2, getWidth() - 4, getHeight() - 4);
g.setColor(getForeground());
FontMetrics metrics = g.getFontMetrics();
int textHeight = metrics.getHeight();
int textWidth = metrics.stringWidth(getText());
g.drawString(getText(), getWidth() / 2 - textWidth / 2, getHeight() / 2 + textHeight / 2);
}
}
| {
"content_hash": "9fef200a892fd229e8921d8b4383567c",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 98,
"avg_line_length": 28.350649350649352,
"alnum_prop": 0.6262024736601007,
"repo_name": "paavohuhtala/SourCream",
"id": "336ae24a441ff2bc95fde8d38561f0bfd08649dc",
"size": "2183",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SourCream/src/main/java/paavohuh/sourcream/ui/ColorChooserButton.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1534"
},
{
"name": "HTML",
"bytes": "2322004"
},
{
"name": "Java",
"bytes": "194893"
}
],
"symlink_target": ""
} |
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['mocha'],
// list of files / patterns to load in the browser
files: [
'bower_components/es5-shim/es5-shim.js',
'bower_components/jquery/dist/jquery.js',
'bower_components/react/react-with-addons.js',
'bower_components/chai/chai.js',
'bower_components/chai-jquery/chai-jquery.js',
'build/reactable.js',
'build/tests/*.js',
],
// list of files to exclude
exclude: [ ],
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: [ process.env.CI === 'true' ? 'spec' : 'dots'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_WARN,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera (has to be installed with `npm install karma-opera-launcher`)
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
browsers: ['PhantomJS'],
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true
});
};
| {
"content_hash": "493fd6e1adbedcbca24e58fc0df56779",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 120,
"avg_line_length": 29.047619047619047,
"alnum_prop": 0.6311475409836066,
"repo_name": "lovewitty/reactable",
"id": "1229450396a89c971eee311ad4a5228ffb953061",
"size": "1830",
"binary": false,
"copies": "19",
"ref": "refs/heads/master",
"path": "karma.conf.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "1154"
},
{
"name": "JavaScript",
"bytes": "263484"
}
],
"symlink_target": ""
} |
package servicecatalog_test
import (
"encoding/hex"
"fmt"
"math/rand"
"reflect"
"strings"
"testing"
"github.com/davecgh/go-spew/spew"
proto "github.com/golang/protobuf/proto"
"github.com/kubernetes-incubator/service-catalog/pkg/api"
testapi "github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/testapi"
apitesting "github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/testing"
"k8s.io/apimachinery/pkg/api/equality"
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/diff"
"k8s.io/apimachinery/pkg/util/sets"
"github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog"
"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
_ "github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/install"
)
func init() {
testapi.Groups[servicecatalog.GroupName] = serviceCatalogAPIGroup()
}
// BABYNETES: ripped from pkg/api/serialization_test.go
var codecsToTest = []func(version schema.GroupVersion, item runtime.Object) (runtime.Codec, bool, error){
func(version schema.GroupVersion, item runtime.Object) (runtime.Codec, bool, error) {
c, err := testapi.GetCodecForObject(item)
return c, true, err
},
}
func fuzzInternalObject(t *testing.T, forVersion schema.GroupVersion, item runtime.Object, seed int64) runtime.Object {
fuzzer.FuzzerFor(apitesting.FuzzerFuncs, rand.NewSource(seed), api.Codecs).Fuzz(item)
j, err := meta.TypeAccessor(item)
if err != nil {
t.Fatalf("Unexpected error %v for %#v", err, item)
}
j.SetKind("")
j.SetAPIVersion("")
return item
}
func dataAsString(data []byte) string {
dataString := string(data)
if !strings.HasPrefix(dataString, "{") {
dataString = "\n" + hex.Dump(data)
proto.NewBuffer(make([]byte, 0, 1024)).DebugPrint("decoded object", data)
}
return dataString
}
// roundTripSame verifies the same source object is tested in all API versions.
func roundTripSame(t *testing.T, group testapi.TestGroup, item runtime.Object, except ...string) {
set := sets.NewString(except...)
seed := rand.Int63()
fuzzInternalObject(t, group.InternalGroupVersion(), item, seed)
version := *group.GroupVersion()
codecs := []runtime.Codec{}
for _, fn := range codecsToTest {
codec, ok, err := fn(version, item)
if err != nil {
t.Errorf("unable to get codec: %v", err)
return
}
if !ok {
continue
}
codecs = append(codecs, codec)
}
t.Logf("version: %v\n", version)
t.Logf("codec: %#v\n", codecs[0])
if !set.Has(version.String()) {
fuzzInternalObject(t, version, item, seed)
for _, codec := range codecs {
roundTrip(t, codec, item)
}
}
}
func roundTrip(t *testing.T, codec runtime.Codec, item runtime.Object) {
printer := spew.ConfigState{DisableMethods: true}
original := item
item = item.DeepCopyObject()
name := reflect.TypeOf(item).Elem().Name()
data, err := runtime.Encode(codec, item)
if err != nil {
if runtime.IsNotRegisteredError(err) {
t.Logf("%v: not registered: %v (%s)", name, err, printer.Sprintf("%#v", item))
} else {
t.Errorf("%v: %v (%s)", name, err, printer.Sprintf("%#v", item))
}
return
}
if !equality.Semantic.DeepEqual(original, item) {
t.Errorf("0: %v: encode altered the object, diff: %v", name, diff.ObjectReflectDiff(original, item))
return
}
t.Logf("Codec: %+v\n", codec)
obj2, err := runtime.Decode(codec, data)
if err != nil {
t.Errorf("ERROR: %v", err)
t.Errorf("0: %v: %v\nCodec: %#v\nData: %s\nSource: %#v", name, err, codec, dataAsString(data), printer.Sprintf("%#v", item))
panic("failed")
}
if !equality.Semantic.DeepEqual(original, obj2) {
t.Errorf("\n1: %v: diff: %v\nCodec: %#v\nSource:\n\n%#v\n\nEncoded:\n\n%s\n\nFinal:\n\n%#v", name, diff.ObjectReflectDiff(item, obj2), codec, printer.Sprintf("%#v", item), dataAsString(data), printer.Sprintf("%#v", obj2))
return
}
obj3 := reflect.New(reflect.TypeOf(item).Elem()).Interface().(runtime.Object)
if err := runtime.DecodeInto(codec, data, obj3); err != nil {
t.Errorf("2: %v: %v", name, err)
return
}
if !equality.Semantic.DeepEqual(item, obj3) {
t.Errorf("3: %v: diff: %v\nCodec: %#v", name, diff.ObjectReflectDiff(item, obj3), codec)
return
}
}
func serviceCatalogAPIGroup() testapi.TestGroup {
// OOPS: didn't register the right group version
groupVersion, err := schema.ParseGroupVersion("servicecatalog.k8s.io/v1beta1")
if err != nil {
panic(fmt.Sprintf("Error parsing groupversion: %v", err))
}
externalGroupVersion := schema.GroupVersion{Group: servicecatalog.GroupName,
Version: api.Scheme.PrioritizedVersionsForGroup(servicecatalog.GroupName)[0].Version}
return testapi.NewTestGroup(
groupVersion,
servicecatalog.SchemeGroupVersion,
api.Scheme.KnownTypes(servicecatalog.SchemeGroupVersion),
api.Scheme.KnownTypes(externalGroupVersion),
)
}
// TestSpecificKind round-trips a single specific kind and is intended to help
// debug issues that arise while adding a new API type.
func TestSpecificKind(t *testing.T) {
group := serviceCatalogAPIGroup()
for _, kind := range group.InternalTypes() {
t.Log(kind)
}
internalGVK := schema.GroupVersionKind{Group: group.GroupVersion().Group, Version: group.GroupVersion().Version, Kind: "ClusterServiceClass"}
seed := rand.Int63()
fuzzer := fuzzer.FuzzerFor(apitesting.FuzzerFuncs, rand.NewSource(seed), api.Codecs)
roundtrip.RoundTripSpecificKindWithoutProtobuf(t, internalGVK, api.Scheme, api.Codecs, fuzzer, nil)
}
func TestClusterServiceBrokerList(t *testing.T) {
kind := "ClusterServiceBrokerList"
item, err := api.Scheme.New(serviceCatalogAPIGroup().InternalGroupVersion().WithKind(kind))
if err != nil {
t.Errorf("Couldn't make a %v? %v", kind, err)
return
}
roundTripSame(t, serviceCatalogAPIGroup(), item)
}
// based on pkg/api/testapi
var catalogGroups = map[string]testapi.TestGroup{
"servicecatalog": serviceCatalogAPIGroup(),
}
// TestRoundTripTypes applies the round-trip test to all round-trippable Kinds
// in all of the API groups registered for test in the testapi package.
func TestRoundTripTypes(t *testing.T) {
seed := rand.Int63()
fuzzer := fuzzer.FuzzerFor(apitesting.FuzzerFuncs, rand.NewSource(seed), api.Codecs)
nonRoundTrippableTypes := map[schema.GroupVersionKind]bool{}
roundtrip.RoundTripTypesWithoutProtobuf(t, api.Scheme, api.Codecs, fuzzer, nonRoundTrippableTypes)
}
func TestBadJSONRejection(t *testing.T) {
badJSONMissingKind := []byte(`{ }`)
if _, err := runtime.Decode(testapi.ServiceCatalog.Codec(), badJSONMissingKind); err == nil {
t.Errorf("Did not reject despite lack of kind field: %s", badJSONMissingKind)
}
badJSONUnknownType := []byte(`{"kind": "bar"}`)
if _, err1 := runtime.Decode(testapi.ServiceCatalog.Codec(), badJSONUnknownType); err1 == nil {
t.Errorf("Did not reject despite use of unknown type: %s", badJSONUnknownType)
}
}
| {
"content_hash": "ea93910bd44b09223008f2695a45b037",
"timestamp": "",
"source": "github",
"line_count": 211,
"max_line_length": 223,
"avg_line_length": 32.93364928909953,
"alnum_prop": 0.720103612030508,
"repo_name": "jboyd01/service-catalog",
"id": "7692000407e6d6fc0f36b83cb6165b3060b37b31",
"size": "7518",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "pkg/apis/servicecatalog/serialization_test.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "98489"
},
{
"name": "Dockerfile",
"bytes": "4300"
},
{
"name": "Go",
"bytes": "4369866"
},
{
"name": "HTML",
"bytes": "30841"
},
{
"name": "JavaScript",
"bytes": "34298"
},
{
"name": "Makefile",
"bytes": "16697"
},
{
"name": "Python",
"bytes": "2031"
},
{
"name": "Ruby",
"bytes": "10517"
},
{
"name": "Shell",
"bytes": "236001"
},
{
"name": "Smarty",
"bytes": "1707"
}
],
"symlink_target": ""
} |
package org.olat.presentation.course.nodes.projectbroker;
import org.apache.log4j.Logger;
import org.olat.data.course.nodes.projectbroker.Project;
import org.olat.lms.commons.ModuleConfiguration;
import org.olat.lms.course.nodes.ProjectBrokerCourseNode;
import org.olat.lms.course.nodes.projectbroker.ProjectBrokerManagerFactory;
import org.olat.lms.course.nodes.projectbroker.ProjectBrokerModuleConfiguration;
import org.olat.lms.course.run.userview.NodeEvaluation;
import org.olat.lms.course.run.userview.UserCourseEnvironment;
import org.olat.presentation.course.nodes.ms.MSCourseNodeRunController;
import org.olat.presentation.framework.core.UserRequest;
import org.olat.presentation.framework.core.components.Component;
import org.olat.presentation.framework.core.components.velocity.VelocityContainer;
import org.olat.presentation.framework.core.control.Controller;
import org.olat.presentation.framework.core.control.WindowControl;
import org.olat.presentation.framework.core.control.controller.BasicController;
import org.olat.system.event.Event;
import org.olat.system.logging.log4j.LoggerHelper;
/**
* @author guretzki
*/
public class ProjectFolderController extends BasicController {
private static final Logger log = LoggerHelper.getLogger();
private final ModuleConfiguration config;
private boolean hasDropbox, hasScoring, hasReturnbox;
private final VelocityContainer content;
private ProjectBrokerDropboxController dropboxController;
private Controller dropboxEditController;
private ProjectBrokerReturnboxController returnboxController;
private MSCourseNodeRunController scoringController;
/**
* @param ureq
* @param wControl
* @param userCourseEnv
* @param ne
* @param previewMode
*/
public ProjectFolderController(final UserRequest ureq, final WindowControl wControl, final UserCourseEnvironment userCourseEnv, final NodeEvaluation ne,
final boolean previewMode, final Project project) {
super(ureq, wControl);
this.config = ne.getCourseNode().getModuleConfiguration();
final ProjectBrokerModuleConfiguration moduleConfig = new ProjectBrokerModuleConfiguration(ne.getCourseNode().getModuleConfiguration());
content = createVelocityContainer("folder");
if (ProjectBrokerManagerFactory.getProjectGroupManager().isProjectParticipant(ureq.getIdentity(), project)
|| ProjectBrokerManagerFactory.getProjectGroupManager().isProjectManagerOrAdministrator(ureq, userCourseEnv.getCourseEnvironment(), project)) {
content.contextPut("isParticipant", true);
readConfig(config);
// modify hasTask/hasDropbox/hasScoring according to accessability
// TODO:cg 27.01.2010 ProjectBroker does not support assessement-tool in first version
// if (hasScoring){
// hasScoring = ne.isCapabilityAccessible("scoring");
// }
hasScoring = false;
// no call 'ne.isCapabilityAccessible(ProjectBrokerCourseNode.ACCESS_DROPBOX);' because no dropbox/returnbox conditions
if (!hasDropbox && !hasReturnbox) {
// nothing to show => Show text message no folder
content.contextPut("noFolder", Boolean.TRUE);
} else {
log.debug("isDropboxAccessible(project, moduleConfig)="
+ ProjectBrokerManagerFactory.getProjectBrokerManager().isDropboxAccessible(project, moduleConfig));
if (ProjectBrokerManagerFactory.getProjectGroupManager().isProjectManager(ureq.getIdentity(), project)) {
dropboxEditController = new ProjectBrokerDropboxScoringViewController(project, ureq, wControl, ne.getCourseNode(), userCourseEnv);
content.put("dropboxController", dropboxEditController.getInitialComponent());
content.contextPut("hasDropbox", Boolean.TRUE);
} else {
if (hasDropbox) {
if (ProjectBrokerManagerFactory.getProjectBrokerManager().isDropboxAccessible(project, moduleConfig)) {
dropboxController = new ProjectBrokerDropboxController(ureq, wControl, config, ne.getCourseNode(), userCourseEnv, previewMode, project,
moduleConfig);
content.put("dropboxController", dropboxController.getInitialComponent());
content.contextPut("hasDropbox", Boolean.TRUE);
} else {
content.contextPut("hasDropbox", Boolean.FALSE);
content.contextPut("DropboxIsNotAccessible", Boolean.TRUE);
}
}
if (hasReturnbox) {
if (!ProjectBrokerManagerFactory.getProjectGroupManager().isProjectManager(ureq.getIdentity(), project)) {
returnboxController = new ProjectBrokerReturnboxController(ureq, wControl, config, ne.getCourseNode(), userCourseEnv, previewMode, project);
content.put("returnboxController", returnboxController.getInitialComponent());
content.contextPut("hasReturnbox", Boolean.TRUE);
}
}
}
// TODO:cg 27.01.2010 ProjectBroker does not support assessement-tool in first version
// if (hasScoring && !previewMode) {
// scoringController = new MSCourseNodeRunController(ureq, getWindowControl(), userCourseEnv, (AssessableCourseNode) ne.getCourseNode(), false);
// content.put("scoringController", scoringController.getInitialComponent());
// content.contextPut("hasScoring", Boolean.TRUE);
// }
}
// push title
content.contextPut("menuTitle", ne.getCourseNode().getShortTitle());
content.contextPut("displayTitle", ne.getCourseNode().getLongTitle());
// learning objectives, only visible on intro page: Adding learning objectives
// TODO: cg 28.01.2010 : no Leaning objective for project-broker
// String learningObj = ne.getCourseNode().getLearningObjectives();
// if (learningObj != null) {
// Component learningObjectives = ObjectivesHelper.createLearningObjectivesComponent(learningObj, ureq);
// content.put("learningObjectives", learningObjectives);
// content.contextPut("hasObjectives", learningObj); // dummy value, just an exists operator
// }
} else {
content.contextPut("isParticipant", false);
}
putInitialPanel(content);
}
private void readConfig(final ModuleConfiguration modConfig) {
Boolean bValue = (Boolean) modConfig.get(ProjectBrokerCourseNode.CONF_DROPBOX_ENABLED);
hasDropbox = (bValue != null) ? bValue.booleanValue() : false;
bValue = (Boolean) modConfig.get(ProjectBrokerCourseNode.CONF_SCORING_ENABLED);
hasScoring = (bValue != null) ? bValue.booleanValue() : false;
bValue = (Boolean) modConfig.get(ProjectBrokerCourseNode.CONF_RETURNBOX_ENABLED);
hasReturnbox = (bValue != null) ? bValue.booleanValue() : false;
}
@Override
protected void event(final UserRequest ureq, final Component source, final Event event) {
}
@Override
protected void doDispose() {
disposeController(dropboxController);
disposeController(dropboxEditController);
disposeController(scoringController);
disposeController(returnboxController);
}
private void disposeController(Controller controller) {
if (controller != null) {
controller.dispose();
controller = null;
}
}
}
| {
"content_hash": "4554c45a7a541f094cdb6ec71281ca39",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 168,
"avg_line_length": 53.72789115646258,
"alnum_prop": 0.6747277791846037,
"repo_name": "huihoo/olat",
"id": "d972481e60a7691d0354180e9e4a90a1ac62cbda",
"size": "8694",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "OLAT-LMS/src/main/java/org/olat/presentation/course/nodes/projectbroker/ProjectFolderController.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "24445"
},
{
"name": "AspectJ",
"bytes": "36132"
},
{
"name": "CSS",
"bytes": "2135670"
},
{
"name": "HTML",
"bytes": "2950677"
},
{
"name": "Java",
"bytes": "50804277"
},
{
"name": "JavaScript",
"bytes": "31237972"
},
{
"name": "PLSQL",
"bytes": "64492"
},
{
"name": "Perl",
"bytes": "10717"
},
{
"name": "Shell",
"bytes": "79994"
},
{
"name": "XSLT",
"bytes": "186520"
}
],
"symlink_target": ""
} |
<main class="container">
<div>
<h1 class="demo-text">Hello</h1>
</div>
<div class="controls">
<!-- Weight Controls -->
<div class="slider-container">
<input type="range" min="100" max="900" value="500" class="slider" id="text-weight" name="text-weight" data-index="0">
<div class="slider-controls">
<label for="text-weight" class="slider-label">
Weight: <span class="output" data-index="0"></span>
</label>
<button class="button" data-index="0">
Reset
</button>
</div>
</div>
<!-- Width Controls -->
<div class="slider-container">
<input type="range" min="75" max="100" value="100" class="slider" id="text-width" name="text-width" data-index="1">
<div class="slider-controls">
<label for="text-width" class="slider-label">
Width: <span class="output" data-index="1"></span>
</label>
<button class="button" data-index="1">
Reset
</button>
</div>
</div>
<!-- Slant Controls -->
<div class="slider-container">
<input type="range" min="0" max="12" value="0" class="slider" id="text-slant" name="text-slant" data-index="2">
<div class="slider-controls">
<label for="text-slant" class="slider-label">
Slant: <span class="output" data-index="2"></span>
</label>
<button class="button" data-index="2">
Reset
</button>
</div>
</div>
</div>
</main> | {
"content_hash": "bbb63a5196c936949b19d86f80a304e1",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 124,
"avg_line_length": 34.95348837209303,
"alnum_prop": 0.550232867598137,
"repo_name": "rscheuer/rscheuer.github.io",
"id": "85992dc8e2ffac9bd43fe982385224708c484135",
"size": "1503",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "se-col/variable-font-slider/src/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "13865"
},
{
"name": "HTML",
"bytes": "47573"
},
{
"name": "JavaScript",
"bytes": "16413"
}
],
"symlink_target": ""
} |
#ifndef __ASM_X86_64_PROCESSOR_H
#define __ASM_X86_64_PROCESSOR_H
#include <asm/segment.h>
#include <asm/page.h>
#include <asm/types.h>
#include <asm/sigcontext.h>
#include <asm/cpufeature.h>
#include <linux/config.h>
#include <linux/threads.h>
#include <asm/msr.h>
#include <asm/current.h>
#include <asm/system.h>
#include <asm/mmsegment.h>
#include <asm/percpu.h>
#include <linux/personality.h>
#define TF_MASK 0x00000100
#define IF_MASK 0x00000200
#define IOPL_MASK 0x00003000
#define NT_MASK 0x00004000
#define VM_MASK 0x00020000
#define AC_MASK 0x00040000
#define VIF_MASK 0x00080000 /* virtual interrupt flag */
#define VIP_MASK 0x00100000 /* virtual interrupt pending */
#define ID_MASK 0x00200000
#define desc_empty(desc) \
(!((desc)->a | (desc)->b))
#define desc_equal(desc1, desc2) \
(((desc1)->a == (desc2)->a) && ((desc1)->b == (desc2)->b))
/*
* Default implementation of macro that returns current
* instruction pointer ("program counter").
*/
#define current_text_addr() ({ void *pc; asm volatile("leaq 1f(%%rip),%0\n1:":"=r"(pc)); pc; })
/*
* CPU type and hardware bug flags. Kept separately for each CPU.
*/
struct cpuinfo_x86 {
__u8 x86; /* CPU family */
__u8 x86_vendor; /* CPU vendor */
__u8 x86_model;
__u8 x86_mask;
int cpuid_level; /* Maximum supported CPUID level, -1=no CPUID */
__u32 x86_capability[NCAPINTS];
char x86_vendor_id[16];
char x86_model_id[64];
int x86_cache_size; /* in KB */
int x86_clflush_size;
int x86_cache_alignment;
int x86_tlbsize; /* number of 4K pages in DTLB/ITLB combined(in pages)*/
__u8 x86_virt_bits, x86_phys_bits;
__u8 x86_max_cores; /* cpuid returned max cores value */
__u32 x86_power;
__u32 extended_cpuid_level; /* Max extended CPUID function supported */
unsigned long loops_per_jiffy;
__u8 apicid;
__u8 booted_cores; /* number of cores as seen by OS */
} ____cacheline_aligned;
#define X86_VENDOR_INTEL 0
#define X86_VENDOR_CYRIX 1
#define X86_VENDOR_AMD 2
#define X86_VENDOR_UMC 3
#define X86_VENDOR_NEXGEN 4
#define X86_VENDOR_CENTAUR 5
#define X86_VENDOR_RISE 6
#define X86_VENDOR_TRANSMETA 7
#define X86_VENDOR_NUM 8
#define X86_VENDOR_UNKNOWN 0xff
#ifdef CONFIG_SMP
extern struct cpuinfo_x86 cpu_data[];
#define current_cpu_data cpu_data[smp_processor_id()]
#else
#define cpu_data (&boot_cpu_data)
#define current_cpu_data boot_cpu_data
#endif
extern char ignore_irq13;
extern void identify_cpu(struct cpuinfo_x86 *);
extern void print_cpu_info(struct cpuinfo_x86 *);
extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
/*
* EFLAGS bits
*/
#define X86_EFLAGS_CF 0x00000001 /* Carry Flag */
#define X86_EFLAGS_PF 0x00000004 /* Parity Flag */
#define X86_EFLAGS_AF 0x00000010 /* Auxillary carry Flag */
#define X86_EFLAGS_ZF 0x00000040 /* Zero Flag */
#define X86_EFLAGS_SF 0x00000080 /* Sign Flag */
#define X86_EFLAGS_TF 0x00000100 /* Trap Flag */
#define X86_EFLAGS_IF 0x00000200 /* Interrupt Flag */
#define X86_EFLAGS_DF 0x00000400 /* Direction Flag */
#define X86_EFLAGS_OF 0x00000800 /* Overflow Flag */
#define X86_EFLAGS_IOPL 0x00003000 /* IOPL mask */
#define X86_EFLAGS_NT 0x00004000 /* Nested Task */
#define X86_EFLAGS_RF 0x00010000 /* Resume Flag */
#define X86_EFLAGS_VM 0x00020000 /* Virtual Mode */
#define X86_EFLAGS_AC 0x00040000 /* Alignment Check */
#define X86_EFLAGS_VIF 0x00080000 /* Virtual Interrupt Flag */
#define X86_EFLAGS_VIP 0x00100000 /* Virtual Interrupt Pending */
#define X86_EFLAGS_ID 0x00200000 /* CPUID detection flag */
/*
* Intel CPU features in CR4
*/
#define X86_CR4_VME 0x0001 /* enable vm86 extensions */
#define X86_CR4_PVI 0x0002 /* virtual interrupts flag enable */
#define X86_CR4_TSD 0x0004 /* disable time stamp at ipl 3 */
#define X86_CR4_DE 0x0008 /* enable debugging extensions */
#define X86_CR4_PSE 0x0010 /* enable page size extensions */
#define X86_CR4_PAE 0x0020 /* enable physical address extensions */
#define X86_CR4_MCE 0x0040 /* Machine check enable */
#define X86_CR4_PGE 0x0080 /* enable global pages */
#define X86_CR4_PCE 0x0100 /* enable performance counters at ipl 3 */
#define X86_CR4_OSFXSR 0x0200 /* enable fast FPU save and restore */
#define X86_CR4_OSXMMEXCPT 0x0400 /* enable unmasked SSE exceptions */
/*
* Save the cr4 feature set we're using (ie
* Pentium 4MB enable and PPro Global page
* enable), so that any CPU's that boot up
* after us can get the correct flags.
*/
extern unsigned long mmu_cr4_features;
static inline void set_in_cr4 (unsigned long mask)
{
mmu_cr4_features |= mask;
__asm__("movq %%cr4,%%rax\n\t"
"orq %0,%%rax\n\t"
"movq %%rax,%%cr4\n"
: : "irg" (mask)
:"ax");
}
static inline void clear_in_cr4 (unsigned long mask)
{
mmu_cr4_features &= ~mask;
__asm__("movq %%cr4,%%rax\n\t"
"andq %0,%%rax\n\t"
"movq %%rax,%%cr4\n"
: : "irg" (~mask)
:"ax");
}
/*
* User space process size. 47bits minus one guard page.
*/
#define TASK_SIZE64 (0x800000000000UL - 4096)
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
#define IA32_PAGE_OFFSET ((current->personality & ADDR_LIMIT_3GB) ? 0xc0000000 : 0xFFFFe000)
#define TASK_SIZE (test_thread_flag(TIF_IA32) ? IA32_PAGE_OFFSET : TASK_SIZE64)
#define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_IA32)) ? IA32_PAGE_OFFSET : TASK_SIZE64)
#define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE/3)
/*
* Size of io_bitmap.
*/
#define IO_BITMAP_BITS 65536
#define IO_BITMAP_BYTES (IO_BITMAP_BITS/8)
#define IO_BITMAP_LONGS (IO_BITMAP_BYTES/sizeof(long))
#define IO_BITMAP_OFFSET offsetof(struct tss_struct,io_bitmap)
#define INVALID_IO_BITMAP_OFFSET 0x8000
struct i387_fxsave_struct {
u16 cwd;
u16 swd;
u16 twd;
u16 fop;
u64 rip;
u64 rdp;
u32 mxcsr;
u32 mxcsr_mask;
u32 st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
u32 xmm_space[64]; /* 16*16 bytes for each XMM-reg = 128 bytes */
u32 padding[24];
} __attribute__ ((aligned (16)));
union i387_union {
struct i387_fxsave_struct fxsave;
};
struct tss_struct {
u32 reserved1;
u64 rsp0;
u64 rsp1;
u64 rsp2;
u64 reserved2;
u64 ist[7];
u32 reserved3;
u32 reserved4;
u16 reserved5;
u16 io_bitmap_base;
/*
* The extra 1 is there because the CPU will access an
* additional byte beyond the end of the IO permission
* bitmap. The extra byte must be all 1 bits, and must
* be within the limit. Thus we have:
*
* 128 bytes, the bitmap itself, for ports 0..0x3ff
* 8 bytes, for an extra "long" of ~0UL
*/
unsigned long io_bitmap[IO_BITMAP_LONGS + 1];
} __attribute__((packed)) ____cacheline_aligned;
extern struct cpuinfo_x86 boot_cpu_data;
DECLARE_PER_CPU(struct tss_struct,init_tss);
#ifdef CONFIG_X86_VSMP
#define ARCH_MIN_TASKALIGN (1 << INTERNODE_CACHE_SHIFT)
#define ARCH_MIN_MMSTRUCT_ALIGN (1 << INTERNODE_CACHE_SHIFT)
#else
#define ARCH_MIN_TASKALIGN 16
#define ARCH_MIN_MMSTRUCT_ALIGN 0
#endif
struct thread_struct {
unsigned long rsp0;
unsigned long rsp;
unsigned long userrsp; /* Copy from PDA */
unsigned long fs;
unsigned long gs;
unsigned short es, ds, fsindex, gsindex;
/* Hardware debugging registers */
unsigned long debugreg0;
unsigned long debugreg1;
unsigned long debugreg2;
unsigned long debugreg3;
unsigned long debugreg6;
unsigned long debugreg7;
/* fault info */
unsigned long cr2, trap_no, error_code;
/* floating point info */
union i387_union i387 __attribute__((aligned(16)));
/* IO permissions. the bitmap could be moved into the GDT, that would make
switch faster for a limited number of ioperm using tasks. -AK */
int ioperm;
unsigned long *io_bitmap_ptr;
unsigned io_bitmap_max;
/* cached TLS descriptors. */
u64 tls_array[GDT_ENTRY_TLS_ENTRIES];
} __attribute__((aligned(16)));
#define INIT_THREAD { \
.rsp0 = (unsigned long)&init_stack + sizeof(init_stack) \
}
#define INIT_TSS { \
.rsp0 = (unsigned long)&init_stack + sizeof(init_stack) \
}
#define INIT_MMAP \
{ &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL }
#define start_thread(regs,new_rip,new_rsp) do { \
asm volatile("movl %0,%%fs; movl %0,%%es; movl %0,%%ds": :"r" (0)); \
load_gs_index(0); \
(regs)->rip = (new_rip); \
(regs)->rsp = (new_rsp); \
write_pda(oldrsp, (new_rsp)); \
(regs)->cs = __USER_CS; \
(regs)->ss = __USER_DS; \
(regs)->eflags = 0x200; \
set_fs(USER_DS); \
} while(0)
#define get_debugreg(var, register) \
__asm__("movq %%db" #register ", %0" \
:"=r" (var))
#define set_debugreg(value, register) \
__asm__("movq %0,%%db" #register \
: /* no output */ \
:"r" (value))
struct task_struct;
struct mm_struct;
/* Free all resources held by a thread. */
extern void release_thread(struct task_struct *);
/* Prepare to copy thread state - unlazy all lazy status */
extern void prepare_to_copy(struct task_struct *tsk);
/*
* create a kernel thread without removing it from tasklists
*/
extern long kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
/*
* Return saved PC of a blocked thread.
* What is this good for? it will be always the scheduler or ret_from_fork.
*/
#define thread_saved_pc(t) (*(unsigned long *)((t)->thread.rsp - 8))
extern unsigned long get_wchan(struct task_struct *p);
#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.rsp0 - 1)
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->rip)
#define KSTK_ESP(tsk) -1 /* sorry. doesn't work for syscall. */
struct microcode_header {
unsigned int hdrver;
unsigned int rev;
unsigned int date;
unsigned int sig;
unsigned int cksum;
unsigned int ldrver;
unsigned int pf;
unsigned int datasize;
unsigned int totalsize;
unsigned int reserved[3];
};
struct microcode {
struct microcode_header hdr;
unsigned int bits[0];
};
typedef struct microcode microcode_t;
typedef struct microcode_header microcode_header_t;
/* microcode format is extended from prescott processors */
struct extended_signature {
unsigned int sig;
unsigned int pf;
unsigned int cksum;
};
struct extended_sigtable {
unsigned int count;
unsigned int cksum;
unsigned int reserved[3];
struct extended_signature sigs[0];
};
/* '6' because it used to be for P6 only (but now covers Pentium 4 as well) */
#define MICROCODE_IOCFREE _IO('6',0)
#define ASM_NOP1 K8_NOP1
#define ASM_NOP2 K8_NOP2
#define ASM_NOP3 K8_NOP3
#define ASM_NOP4 K8_NOP4
#define ASM_NOP5 K8_NOP5
#define ASM_NOP6 K8_NOP6
#define ASM_NOP7 K8_NOP7
#define ASM_NOP8 K8_NOP8
/* Opteron nops */
#define K8_NOP1 ".byte 0x90\n"
#define K8_NOP2 ".byte 0x66,0x90\n"
#define K8_NOP3 ".byte 0x66,0x66,0x90\n"
#define K8_NOP4 ".byte 0x66,0x66,0x66,0x90\n"
#define K8_NOP5 K8_NOP3 K8_NOP2
#define K8_NOP6 K8_NOP3 K8_NOP3
#define K8_NOP7 K8_NOP4 K8_NOP3
#define K8_NOP8 K8_NOP4 K8_NOP4
#define ASM_NOP_MAX 8
/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
static inline void rep_nop(void)
{
__asm__ __volatile__("rep;nop": : :"memory");
}
/* Stop speculative execution */
static inline void sync_core(void)
{
int tmp;
asm volatile("cpuid" : "=a" (tmp) : "0" (1) : "ebx","ecx","edx","memory");
}
#define cpu_has_fpu 1
#define ARCH_HAS_PREFETCH
static inline void prefetch(void *x)
{
asm volatile("prefetcht0 %0" :: "m" (*(unsigned long *)x));
}
#define ARCH_HAS_PREFETCHW 1
static inline void prefetchw(void *x)
{
alternative_input("prefetcht0 (%1)",
"prefetchw (%1)",
X86_FEATURE_3DNOW,
"r" (x));
}
#define ARCH_HAS_SPINLOCK_PREFETCH 1
#define spin_lock_prefetch(x) prefetchw(x)
#define cpu_relax() rep_nop()
/*
* NSC/Cyrix CPU configuration register indexes
*/
#define CX86_CCR0 0xc0
#define CX86_CCR1 0xc1
#define CX86_CCR2 0xc2
#define CX86_CCR3 0xc3
#define CX86_CCR4 0xe8
#define CX86_CCR5 0xe9
#define CX86_CCR6 0xea
#define CX86_CCR7 0xeb
#define CX86_DIR0 0xfe
#define CX86_DIR1 0xff
#define CX86_ARR_BASE 0xc4
#define CX86_RCR_BASE 0xdc
/*
* NSC/Cyrix CPU indexed register access macros
*/
#define getCx86(reg) ({ outb((reg), 0x22); inb(0x23); })
#define setCx86(reg, data) do { \
outb((reg), 0x22); \
outb((data), 0x23); \
} while (0)
static inline void serialize_cpu(void)
{
__asm__ __volatile__ ("cpuid" : : : "ax", "bx", "cx", "dx");
}
static inline void __monitor(const void *eax, unsigned long ecx,
unsigned long edx)
{
/* "monitor %eax,%ecx,%edx;" */
asm volatile(
".byte 0x0f,0x01,0xc8;"
: :"a" (eax), "c" (ecx), "d"(edx));
}
static inline void __mwait(unsigned long eax, unsigned long ecx)
{
/* "mwait %eax,%ecx;" */
asm volatile(
".byte 0x0f,0x01,0xc9;"
: :"a" (eax), "c" (ecx));
}
#define stack_current() \
({ \
struct thread_info *ti; \
asm("andq %%rsp,%0; ":"=r" (ti) : "0" (CURRENT_MASK)); \
ti->task; \
})
#define cache_line_size() (boot_cpu_data.x86_cache_alignment)
extern unsigned long boot_option_idle_override;
/* Boot loader type from the setup header */
extern int bootloader_type;
#define HAVE_ARCH_PICK_MMAP_LAYOUT 1
#endif /* __ASM_X86_64_PROCESSOR_H */
| {
"content_hash": "d687d75f78f6852fc526ac8e5c088d62",
"timestamp": "",
"source": "github",
"line_count": 478,
"max_line_length": 103,
"avg_line_length": 27.269874476987447,
"alnum_prop": 0.6804756425009589,
"repo_name": "ut-osa/syncchar",
"id": "8c8d88c036ed07d037f55435196b91aba545c586",
"size": "13115",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "linux-2.6.16-unmod/include/asm-x86_64/processor.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ASP",
"bytes": "4526"
},
{
"name": "Assembly",
"bytes": "7269561"
},
{
"name": "C",
"bytes": "191363313"
},
{
"name": "C++",
"bytes": "2703790"
},
{
"name": "Objective-C",
"bytes": "515305"
},
{
"name": "Perl",
"bytes": "118289"
},
{
"name": "Python",
"bytes": "160654"
},
{
"name": "Scala",
"bytes": "12158"
},
{
"name": "Shell",
"bytes": "48243"
},
{
"name": "TeX",
"bytes": "51367"
},
{
"name": "UnrealScript",
"bytes": "20822"
},
{
"name": "XSLT",
"bytes": "310"
}
],
"symlink_target": ""
} |
package org.apache.flink.configuration;
import org.apache.flink.annotation.Public;
import org.apache.flink.annotation.PublicEvolving;
import org.apache.flink.api.common.ExecutionConfig;
import org.apache.flink.core.io.IOReadableWritable;
import org.apache.flink.core.memory.DataInputView;
import org.apache.flink.core.memory.DataOutputView;
import org.apache.flink.types.StringValue;
import org.apache.flink.util.TimeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.time.Duration;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Optional;
import java.util.Properties;
import java.util.Set;
import java.util.stream.Collectors;
import static org.apache.flink.configuration.StructuredOptionsSplitter.escapeWithSingleQuote;
import static org.apache.flink.util.Preconditions.checkNotNull;
/**
* Lightweight configuration object which stores key/value pairs.
*/
@Public
public class Configuration extends ExecutionConfig.GlobalJobParameters
implements IOReadableWritable, java.io.Serializable, Cloneable, ReadableConfig, WritableConfig {
private static final long serialVersionUID = 1L;
private static final byte TYPE_STRING = 0;
private static final byte TYPE_INT = 1;
private static final byte TYPE_LONG = 2;
private static final byte TYPE_BOOLEAN = 3;
private static final byte TYPE_FLOAT = 4;
private static final byte TYPE_DOUBLE = 5;
private static final byte TYPE_BYTES = 6;
/** The log object used for debugging. */
private static final Logger LOG = LoggerFactory.getLogger(Configuration.class);
/** Stores the concrete key/value pairs of this configuration object. */
protected final HashMap<String, Object> confData;
// --------------------------------------------------------------------------------------------
/**
* Creates a new empty configuration.
*/
public Configuration() {
this.confData = new HashMap<>();
}
/**
* Creates a new configuration with the copy of the given configuration.
*
* @param other The configuration to copy the entries from.
*/
public Configuration(Configuration other) {
this.confData = new HashMap<>(other.confData);
}
// --------------------------------------------------------------------------------------------
/**
* Returns the class associated with the given key as a string.
*
* @param <T> The type of the class to return.
* @param key The key pointing to the associated value
* @param defaultValue The optional default value returned if no entry exists
* @param classLoader The class loader used to resolve the class.
*
* @return The value associated with the given key, or the default value, if to entry for the key exists.
*/
@SuppressWarnings("unchecked")
public <T> Class<T> getClass(
String key,
Class<? extends T> defaultValue,
ClassLoader classLoader) throws ClassNotFoundException {
Optional<Object> o = getRawValue(key);
if (!o.isPresent()) {
return (Class<T>) defaultValue;
}
if (o.get().getClass() == String.class) {
return (Class<T>) Class.forName((String) o.get(), true, classLoader);
}
throw new IllegalArgumentException(
"Configuration cannot evaluate object of class " + o.get().getClass() + " as a class name");
}
/**
* Adds the given key/value pair to the configuration object. The class can be retrieved by invoking
* {@link #getClass(String, Class, ClassLoader)} if it is in the scope of the class loader on the caller.
*
* @param key The key of the pair to be added
* @param klazz The value of the pair to be added
* @see #getClass(String, Class, ClassLoader)
*/
public void setClass(String key, Class<?> klazz) {
setValueInternal(key, klazz.getName());
}
/**
* Returns the value associated with the given key as a string.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
* @deprecated use {@link #getString(ConfigOption, String)} or {@link #getOptional(ConfigOption)}
*/
@Deprecated
public String getString(String key, String defaultValue) {
return getRawValue(key)
.map(this::convertToString)
.orElse(defaultValue);
}
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getString(ConfigOption<String> configOption) {
return getOptional(configOption)
.orElseGet(configOption::defaultValue);
}
/**
* Returns the value associated with the given config option as a string.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getString(ConfigOption<String> configOption, String overrideDefault) {
return getOptional(configOption)
.orElse(overrideDefault);
}
/**
* Adds the given key/value pair to the configuration object.
*
* @param key
* the key of the key/value pair to be added
* @param value
* the value of the key/value pair to be added
*/
public void setString(String key, String value) {
setValueInternal(key, value);
}
/**
* Adds the given value to the configuration object.
* The main key of the config option will be used to map the value.
*
* @param key
* the option specifying the key to be added
* @param value
* the value of the key/value pair to be added
*/
@PublicEvolving
public void setString(ConfigOption<String> key, String value) {
setValueInternal(key.key(), value);
}
/**
* Returns the value associated with the given key as an integer.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
* @deprecated use {@link #getInteger(ConfigOption, int)} or {@link #getOptional(ConfigOption)}
*/
@Deprecated
public int getInteger(String key, int defaultValue) {
return getRawValue(key)
.map(this::convertToInt)
.orElse(defaultValue);
}
/**
* Returns the value associated with the given config option as an integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public int getInteger(ConfigOption<Integer> configOption) {
return getOptional(configOption)
.orElseGet(configOption::defaultValue);
}
/**
* Returns the value associated with the given config option as an integer.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public int getInteger(ConfigOption<Integer> configOption, int overrideDefault) {
return getOptional(configOption)
.orElse(overrideDefault);
}
/**
* Adds the given key/value pair to the configuration object.
*
* @param key
* the key of the key/value pair to be added
* @param value
* the value of the key/value pair to be added
*/
public void setInteger(String key, int value) {
setValueInternal(key, value);
}
/**
* Adds the given value to the configuration object.
* The main key of the config option will be used to map the value.
*
* @param key
* the option specifying the key to be added
* @param value
* the value of the key/value pair to be added
*/
@PublicEvolving
public void setInteger(ConfigOption<Integer> key, int value) {
setValueInternal(key.key(), value);
}
/**
* Returns the value associated with the given key as a long.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
* @deprecated use {@link #getLong(ConfigOption, long)} or {@link #getOptional(ConfigOption)}
*/
@Deprecated
public long getLong(String key, long defaultValue) {
return getRawValue(key)
.map(this::convertToLong)
.orElse(defaultValue);
}
/**
* Returns the value associated with the given config option as a long integer.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption) {
return getOptional(configOption)
.orElseGet(configOption::defaultValue);
}
/**
* Returns the value associated with the given config option as a long integer.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public long getLong(ConfigOption<Long> configOption, long overrideDefault) {
return getOptional(configOption)
.orElse(overrideDefault);
}
/**
* Adds the given key/value pair to the configuration object.
*
* @param key
* the key of the key/value pair to be added
* @param value
* the value of the key/value pair to be added
*/
public void setLong(String key, long value) {
setValueInternal(key, value);
}
/**
* Adds the given value to the configuration object.
* The main key of the config option will be used to map the value.
*
* @param key
* the option specifying the key to be added
* @param value
* the value of the key/value pair to be added
*/
@PublicEvolving
public void setLong(ConfigOption<Long> key, long value) {
setValueInternal(key.key(), value);
}
/**
* Returns the value associated with the given key as a boolean.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
* @deprecated use {@link #getBoolean(ConfigOption, boolean)} or {@link #getOptional(ConfigOption)}
*/
@Deprecated
public boolean getBoolean(String key, boolean defaultValue) {
return getRawValue(key)
.map(this::convertToBoolean)
.orElse(defaultValue);
}
/**
* Returns the value associated with the given config option as a boolean.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public boolean getBoolean(ConfigOption<Boolean> configOption) {
return getOptional(configOption)
.orElseGet(configOption::defaultValue);
}
/**
* Returns the value associated with the given config option as a boolean.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public boolean getBoolean(ConfigOption<Boolean> configOption, boolean overrideDefault) {
return getOptional(configOption)
.orElse(overrideDefault);
}
/**
* Adds the given key/value pair to the configuration object.
*
* @param key
* the key of the key/value pair to be added
* @param value
* the value of the key/value pair to be added
*/
public void setBoolean(String key, boolean value) {
setValueInternal(key, value);
}
/**
* Adds the given value to the configuration object.
* The main key of the config option will be used to map the value.
*
* @param key
* the option specifying the key to be added
* @param value
* the value of the key/value pair to be added
*/
@PublicEvolving
public void setBoolean(ConfigOption<Boolean> key, boolean value) {
setValueInternal(key.key(), value);
}
/**
* Returns the value associated with the given key as a float.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
* @deprecated use {@link #getFloat(ConfigOption, float)} or {@link #getOptional(ConfigOption)}
*/
@Deprecated
public float getFloat(String key, float defaultValue) {
return getRawValue(key)
.map(this::convertToFloat)
.orElse(defaultValue);
}
/**
* Returns the value associated with the given config option as a float.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public float getFloat(ConfigOption<Float> configOption) {
return getOptional(configOption)
.orElseGet(configOption::defaultValue);
}
/**
* Returns the value associated with the given config option as a float.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public float getFloat(ConfigOption<Float> configOption, float overrideDefault) {
return getOptional(configOption)
.orElse(overrideDefault);
}
/**
* Adds the given key/value pair to the configuration object.
*
* @param key
* the key of the key/value pair to be added
* @param value
* the value of the key/value pair to be added
*/
public void setFloat(String key, float value) {
setValueInternal(key, value);
}
/**
* Adds the given value to the configuration object.
* The main key of the config option will be used to map the value.
*
* @param key
* the option specifying the key to be added
* @param value
* the value of the key/value pair to be added
*/
@PublicEvolving
public void setFloat(ConfigOption<Float> key, float value) {
setValueInternal(key.key(), value);
}
/**
* Returns the value associated with the given key as a double.
*
* @param key
* the key pointing to the associated value
* @param defaultValue
* the default value which is returned in case there is no value associated with the given key
* @return the (default) value associated with the given key
* @deprecated use {@link #getDouble(ConfigOption, double)} or {@link #getOptional(ConfigOption)}
*/
@Deprecated
public double getDouble(String key, double defaultValue) {
return getRawValue(key)
.map(this::convertToDouble)
.orElse(defaultValue);
}
/**
* Returns the value associated with the given config option as a {@code double}.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public double getDouble(ConfigOption<Double> configOption) {
return getOptional(configOption)
.orElseGet(configOption::defaultValue);
}
/**
* Returns the value associated with the given config option as a {@code double}.
* If no value is mapped under any key of the option, it returns the specified
* default instead of the option's default value.
*
* @param configOption The configuration option
* @param overrideDefault The value to return if no value was mapper for any key of the option
* @return the configured value associated with the given config option, or the overrideDefault
*/
@PublicEvolving
public double getDouble(ConfigOption<Double> configOption, double overrideDefault) {
return getOptional(configOption)
.orElse(overrideDefault);
}
/**
* Adds the given key/value pair to the configuration object.
*
* @param key
* the key of the key/value pair to be added
* @param value
* the value of the key/value pair to be added
*/
public void setDouble(String key, double value) {
setValueInternal(key, value);
}
/**
* Adds the given value to the configuration object.
* The main key of the config option will be used to map the value.
*
* @param key
* the option specifying the key to be added
* @param value
* the value of the key/value pair to be added
*/
@PublicEvolving
public void setDouble(ConfigOption<Double> key, double value) {
setValueInternal(key.key(), value);
}
/**
* Returns the value associated with the given key as a byte array.
*
* @param key
* The key pointing to the associated value.
* @param defaultValue
* The default value which is returned in case there is no value associated with the given key.
* @return the (default) value associated with the given key.
*/
public byte[] getBytes(String key, byte[] defaultValue) {
return getRawValue(key).map(o -> {
if (o.getClass().equals(byte[].class)) {
return (byte[]) o;
} else {
throw new IllegalArgumentException(String.format(
"Configuration cannot evaluate value %s as a byte[] value",
o));
}
}
).orElse(defaultValue);
}
/**
* Adds the given byte array to the configuration object. If key is <code>null</code> then nothing is added.
*
* @param key
* The key under which the bytes are added.
* @param bytes
* The bytes to be added.
*/
public void setBytes(String key, byte[] bytes) {
setValueInternal(key, bytes);
}
/**
* Returns the value associated with the given config option as a string.
*
* @param configOption The configuration option
* @return the (default) value associated with the given config option
*/
@PublicEvolving
public String getValue(ConfigOption<?> configOption) {
return Optional.ofNullable(getRawValueFromOption(configOption).orElseGet(configOption::defaultValue))
.map(String::valueOf)
.orElse(null);
}
/**
* Returns the value associated with the given config option as an enum.
*
* @param enumClass The return enum class
* @param configOption The configuration option
* @throws IllegalArgumentException If the string associated with the given config option cannot
* be parsed as a value of the provided enum class.
*/
@PublicEvolving
public <T extends Enum<T>> T getEnum(
final Class<T> enumClass,
final ConfigOption<String> configOption) {
checkNotNull(enumClass, "enumClass must not be null");
checkNotNull(configOption, "configOption must not be null");
Object rawValue = getRawValueFromOption(configOption)
.orElseGet(configOption::defaultValue);
try {
return convertToEnum(rawValue, enumClass);
} catch (IllegalArgumentException ex) {
final String errorMessage = String.format(
"Value for config option %s must be one of %s (was %s)",
configOption.key(),
Arrays.toString(enumClass.getEnumConstants()),
rawValue);
throw new IllegalArgumentException(errorMessage);
}
}
// --------------------------------------------------------------------------------------------
/**
* Returns the keys of all key/value pairs stored inside this
* configuration object.
*
* @return the keys of all key/value pairs stored inside this configuration object
*/
public Set<String> keySet() {
synchronized (this.confData) {
return new HashSet<>(this.confData.keySet());
}
}
/**
* Adds all entries in this {@code Configuration} to the given {@link Properties}.
*/
public void addAllToProperties(Properties props) {
synchronized (this.confData) {
for (Map.Entry<String, Object> entry : this.confData.entrySet()) {
props.put(entry.getKey(), entry.getValue());
}
}
}
public void addAll(Configuration other) {
synchronized (this.confData) {
synchronized (other.confData) {
this.confData.putAll(other.confData);
}
}
}
/**
* Adds all entries from the given configuration into this configuration. The keys
* are prepended with the given prefix.
*
* @param other
* The configuration whose entries are added to this configuration.
* @param prefix
* The prefix to prepend.
*/
public void addAll(Configuration other, String prefix) {
final StringBuilder bld = new StringBuilder();
bld.append(prefix);
final int pl = bld.length();
synchronized (this.confData) {
synchronized (other.confData) {
for (Map.Entry<String, Object> entry : other.confData.entrySet()) {
bld.setLength(pl);
bld.append(entry.getKey());
this.confData.put(bld.toString(), entry.getValue());
}
}
}
}
@Override
public Configuration clone() {
Configuration config = new Configuration();
config.addAll(this);
return config;
}
/**
* Checks whether there is an entry with the specified key.
*
* @param key key of entry
* @return true if the key is stored, false otherwise
*/
public boolean containsKey(String key){
synchronized (this.confData){
return this.confData.containsKey(key);
}
}
/**
* Checks whether there is an entry for the given config option.
*
* @param configOption The configuration option
*
* @return <tt>true</tt> if a valid (current or deprecated) key of the config option is stored,
* <tt>false</tt> otherwise
*/
@PublicEvolving
public boolean contains(ConfigOption<?> configOption) {
synchronized (this.confData){
// first try the current key
if (this.confData.containsKey(configOption.key())) {
return true;
}
else if (configOption.hasFallbackKeys()) {
// try the fallback keys
for (FallbackKey fallbackKey : configOption.fallbackKeys()) {
if (this.confData.containsKey(fallbackKey.getKey())) {
loggingFallback(fallbackKey, configOption);
return true;
}
}
}
return false;
}
}
@Override
public <T> T get(ConfigOption<T> option) {
return getOptional(option).orElseGet(option::defaultValue);
}
@Override
public <T> Optional<T> getOptional(ConfigOption<T> option) {
Optional<Object> rawValue = getRawValueFromOption(option);
Class<?> clazz = option.getClazz();
try {
if (option.isList()) {
return rawValue.map(v -> convertToList(v, clazz));
} else {
return rawValue.map(v -> convertValue(v, clazz));
}
} catch (Exception e) {
throw new IllegalArgumentException(String.format(
"Could not parse value '%s' for key '%s'.",
rawValue.map(Object::toString).orElse(""),
option.key()), e);
}
}
@Override
public <T> Configuration set(ConfigOption<T> option, T value) {
setValueInternal(option.key(), value);
return this;
}
// --------------------------------------------------------------------------------------------
@Override
public Map<String, String> toMap() {
synchronized (this.confData){
Map<String, String> ret = new HashMap<>(this.confData.size());
for (Map.Entry<String, Object> entry : confData.entrySet()) {
ret.put(entry.getKey(), convertToString(entry.getValue()));
}
return ret;
}
}
/**
* Removes given config option from the configuration.
*
* @param configOption config option to remove
* @param <T> Type of the config option
* @return true is config has been removed, false otherwise
*/
public <T> boolean removeConfig(ConfigOption<T> configOption){
synchronized (this.confData){
// try the current key
Object oldValue = this.confData.remove(configOption.key());
if (oldValue == null){
for (FallbackKey fallbackKey : configOption.fallbackKeys()){
oldValue = this.confData.remove(fallbackKey.getKey());
if (oldValue != null){
loggingFallback(fallbackKey, configOption);
return true;
}
}
return false;
}
return true;
}
}
// --------------------------------------------------------------------------------------------
<T> void setValueInternal(String key, T value) {
if (key == null) {
throw new NullPointerException("Key must not be null.");
}
if (value == null) {
throw new NullPointerException("Value must not be null.");
}
synchronized (this.confData) {
this.confData.put(key, value);
}
}
private Optional<Object> getRawValue(String key) {
if (key == null) {
throw new NullPointerException("Key must not be null.");
}
synchronized (this.confData) {
return Optional.ofNullable(this.confData.get(key));
}
}
private Optional<Object> getRawValueFromOption(ConfigOption<?> configOption) {
// first try the current key
Optional<Object> o = getRawValue(configOption.key());
if (o.isPresent()) {
// found a value for the current proper key
return o;
}
else if (configOption.hasFallbackKeys()) {
// try the deprecated keys
for (FallbackKey fallbackKey : configOption.fallbackKeys()) {
Optional<Object> oo = getRawValue(fallbackKey.getKey());
if (oo.isPresent()) {
loggingFallback(fallbackKey, configOption);
return oo;
}
}
}
return Optional.empty();
}
private void loggingFallback(FallbackKey fallbackKey, ConfigOption<?> configOption) {
if (fallbackKey.isDeprecated()) {
LOG.warn("Config uses deprecated configuration key '{}' instead of proper key '{}'",
fallbackKey.getKey(), configOption.key());
} else {
LOG.info("Config uses fallback configuration key '{}' instead of key '{}'",
fallbackKey.getKey(), configOption.key());
}
}
// --------------------------------------------------------------------------------------------
// Type conversion
// --------------------------------------------------------------------------------------------
@SuppressWarnings("unchecked")
private <T> T convertValue(Object rawValue, Class<?> clazz) {
if (Integer.class.equals(clazz)) {
return (T) convertToInt(rawValue);
} else if (Long.class.equals(clazz)) {
return (T) convertToLong(rawValue);
} else if (Boolean.class.equals(clazz)) {
return (T) convertToBoolean(rawValue);
} else if (Float.class.equals(clazz)) {
return (T) convertToFloat(rawValue);
} else if (Double.class.equals(clazz)) {
return (T) convertToDouble(rawValue);
} else if (String.class.equals(clazz)) {
return (T) convertToString(rawValue);
} else if (clazz.isEnum()) {
return (T) convertToEnum(rawValue, (Class<? extends Enum<?>>) clazz);
} else if (clazz == Duration.class) {
return (T) convertToDuration(rawValue);
} else if (clazz == MemorySize.class) {
return (T) convertToMemorySize(rawValue);
} else if (clazz == Map.class) {
return (T) convertToProperties(rawValue);
}
throw new IllegalArgumentException("Unsupported type: " + clazz);
}
@SuppressWarnings("unchecked")
private <T> T convertToList(Object rawValue, Class<?> atomicClass) {
if (rawValue instanceof List) {
return (T) rawValue;
} else {
return (T) StructuredOptionsSplitter.splitEscaped(rawValue.toString(), ';').stream()
.map(s -> convertValue(s, atomicClass))
.collect(Collectors.toList());
}
}
@SuppressWarnings("unchecked")
private Map<String, String> convertToProperties(Object o) {
if (o instanceof Map) {
return (Map<String, String>) o;
} else {
List<String> listOfRawProperties = StructuredOptionsSplitter.splitEscaped(o.toString(), ',');
return listOfRawProperties.stream()
.map(s -> StructuredOptionsSplitter.splitEscaped(s, ':'))
.peek(pair -> {
if (pair.size() != 2) {
throw new IllegalArgumentException("Could not parse pair in the map " + pair);
}
})
.collect(Collectors.toMap(
a -> a.get(0),
a -> a.get(1)
));
}
}
@SuppressWarnings("unchecked")
private <E extends Enum<?>> E convertToEnum(Object o, Class<E> clazz) {
if (o.getClass().equals(clazz)) {
return (E) o;
}
return Arrays.stream(clazz.getEnumConstants())
.filter(e -> e.toString().toUpperCase(Locale.ROOT).equals(o.toString().toUpperCase(Locale.ROOT)))
.findAny()
.orElseThrow(() -> new IllegalArgumentException(
String.format("Could not parse value for enum %s. Expected one of: [%s]", clazz,
Arrays.toString(clazz.getEnumConstants()))));
}
private Duration convertToDuration(Object o) {
if (o.getClass() == Duration.class) {
return (Duration) o;
}
return TimeUtils.parseDuration(o.toString());
}
private MemorySize convertToMemorySize(Object o) {
if (o.getClass() == MemorySize.class) {
return (MemorySize) o;
}
return MemorySize.parse(o.toString());
}
private String convertToString(Object o) {
if (o.getClass() == String.class) {
return (String) o;
} else if (o.getClass() == Duration.class) {
Duration duration = (Duration) o;
return String.format("%d ns", duration.toNanos());
} else if (o instanceof List) {
return ((List<?>) o).stream()
.map(e -> escapeWithSingleQuote(convertToString(e), ";"))
.collect(Collectors.joining(";"));
} else if (o instanceof Map) {
return ((Map<?, ?>) o).entrySet().stream()
.map(e -> {
String escapedKey = escapeWithSingleQuote(e.getKey().toString(), ":");
String escapedValue = escapeWithSingleQuote(e.getValue().toString(), ":");
return escapeWithSingleQuote(escapedKey + ":" + escapedValue, ",");
})
.collect(Collectors.joining(","));
}
return o.toString();
}
private Integer convertToInt(Object o) {
if (o.getClass() == Integer.class) {
return (Integer) o;
} else if (o.getClass() == Long.class) {
long value = (Long) o;
if (value <= Integer.MAX_VALUE && value >= Integer.MIN_VALUE) {
return (int) value;
} else {
throw new IllegalArgumentException(String.format(
"Configuration value %s overflows/underflows the integer type.",
value));
}
}
return Integer.parseInt(o.toString());
}
private Long convertToLong(Object o) {
if (o.getClass() == Long.class) {
return (Long) o;
} else if (o.getClass() == Integer.class) {
return ((Integer) o).longValue();
}
return Long.parseLong(o.toString());
}
private Boolean convertToBoolean(Object o) {
if (o.getClass() == Boolean.class) {
return (Boolean) o;
}
switch (o.toString().toUpperCase()) {
case "TRUE":
return true;
case "FALSE":
return false;
default:
throw new IllegalArgumentException(String.format(
"Unrecognized option for boolean: %s. Expected either true or false(case insensitive)",
o));
}
}
private Float convertToFloat(Object o) {
if (o.getClass() == Float.class) {
return (Float) o;
} else if (o.getClass() == Double.class) {
double value = ((Double) o);
if (value == 0.0
|| (value >= Float.MIN_VALUE && value <= Float.MAX_VALUE)
|| (value >= -Float.MAX_VALUE && value <= -Float.MIN_VALUE)) {
return (float) value;
} else {
throw new IllegalArgumentException(String.format(
"Configuration value %s overflows/underflows the float type.",
value));
}
}
return Float.parseFloat(o.toString());
}
private Double convertToDouble(Object o) {
if (o.getClass() == Double.class) {
return (Double) o;
} else if (o.getClass() == Float.class) {
return ((Float) o).doubleValue();
}
return Double.parseDouble(o.toString());
}
// --------------------------------------------------------------------------------------------
// Serialization
// --------------------------------------------------------------------------------------------
@Override
public void read(DataInputView in) throws IOException {
synchronized (this.confData) {
final int numberOfProperties = in.readInt();
for (int i = 0; i < numberOfProperties; i++) {
String key = StringValue.readString(in);
Object value;
byte type = in.readByte();
switch (type) {
case TYPE_STRING:
value = StringValue.readString(in);
break;
case TYPE_INT:
value = in.readInt();
break;
case TYPE_LONG:
value = in.readLong();
break;
case TYPE_FLOAT:
value = in.readFloat();
break;
case TYPE_DOUBLE:
value = in.readDouble();
break;
case TYPE_BOOLEAN:
value = in.readBoolean();
break;
case TYPE_BYTES:
byte[] bytes = new byte[in.readInt()];
in.readFully(bytes);
value = bytes;
break;
default:
throw new IOException(String.format("Unrecognized type: %s. This method is deprecated and" +
" might not work for all supported types.", type));
}
this.confData.put(key, value);
}
}
}
@Override
public void write(final DataOutputView out) throws IOException {
synchronized (this.confData) {
out.writeInt(this.confData.size());
for (Map.Entry<String, Object> entry : this.confData.entrySet()) {
String key = entry.getKey();
Object val = entry.getValue();
StringValue.writeString(key, out);
Class<?> clazz = val.getClass();
if (clazz == String.class) {
out.write(TYPE_STRING);
StringValue.writeString((String) val, out);
}
else if (clazz == Integer.class) {
out.write(TYPE_INT);
out.writeInt((Integer) val);
}
else if (clazz == Long.class) {
out.write(TYPE_LONG);
out.writeLong((Long) val);
}
else if (clazz == Float.class) {
out.write(TYPE_FLOAT);
out.writeFloat((Float) val);
}
else if (clazz == Double.class) {
out.write(TYPE_DOUBLE);
out.writeDouble((Double) val);
}
else if (clazz == byte[].class) {
out.write(TYPE_BYTES);
byte[] bytes = (byte[]) val;
out.writeInt(bytes.length);
out.write(bytes);
}
else if (clazz == Boolean.class) {
out.write(TYPE_BOOLEAN);
out.writeBoolean((Boolean) val);
}
else {
throw new IllegalArgumentException("Unrecognized type. This method is deprecated and might not work" +
" for all supported types.");
}
}
}
}
// --------------------------------------------------------------------------------------------
@Override
public int hashCode() {
int hash = 0;
for (String s : this.confData.keySet()) {
hash ^= s.hashCode();
}
return hash;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
else if (obj instanceof Configuration) {
Map<String, Object> otherConf = ((Configuration) obj).confData;
for (Map.Entry<String, Object> e : this.confData.entrySet()) {
Object thisVal = e.getValue();
Object otherVal = otherConf.get(e.getKey());
if (!thisVal.getClass().equals(byte[].class)) {
if (!thisVal.equals(otherVal)) {
return false;
}
} else if (otherVal.getClass().equals(byte[].class)) {
if (!Arrays.equals((byte[]) thisVal, (byte[]) otherVal)) {
return false;
}
} else {
return false;
}
}
return true;
}
else {
return false;
}
}
@Override
public String toString() {
return this.confData.toString();
}
}
| {
"content_hash": "c5a0a86574abd660aa6a9fc0e84a6897",
"timestamp": "",
"source": "github",
"line_count": 1180,
"max_line_length": 109,
"avg_line_length": 30.32457627118644,
"alnum_prop": 0.6686974261520834,
"repo_name": "kaibozhou/flink",
"id": "fd965db6063e23847d8cfe299ead6a11caaf9cd6",
"size": "36588",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "flink-core/src/main/java/org/apache/flink/configuration/Configuration.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "4722"
},
{
"name": "CSS",
"bytes": "58149"
},
{
"name": "Clojure",
"bytes": "93247"
},
{
"name": "Dockerfile",
"bytes": "12142"
},
{
"name": "FreeMarker",
"bytes": "28662"
},
{
"name": "HTML",
"bytes": "108850"
},
{
"name": "Java",
"bytes": "53661126"
},
{
"name": "JavaScript",
"bytes": "1829"
},
{
"name": "Makefile",
"bytes": "5134"
},
{
"name": "Python",
"bytes": "1129763"
},
{
"name": "Scala",
"bytes": "13885013"
},
{
"name": "Shell",
"bytes": "533455"
},
{
"name": "TSQL",
"bytes": "123113"
},
{
"name": "TypeScript",
"bytes": "249103"
}
],
"symlink_target": ""
} |
// Copyright 2003-2008 Jan Gaspar.
// Copyright 2013 Paul A. Bristow. Added some Quickbook snippet markers.
// Distributed under the Boost Software License, Version 1.0.
// (See the accompanying file LICENSE_1_0.txt
// or a copy at <http://www.boost.org/LICENSE_1_0.txt>.)
//[circular_buffer_example_1
/*`For all examples, we need this include:
*/
#include <boost/circular_buffer.hpp>
//] [/circular_buffer_example_1]
int main()
{
//[circular_buffer_example_2
// Create a circular buffer with a capacity for 3 integers.
boost::circular_buffer<int> cb(3);
// Insert three elements into the buffer.
cb.push_back(1);
cb.push_back(2);
cb.push_back(3);
int a = cb[0]; // a == 1
int b = cb[1]; // b == 2
int c = cb[2]; // c == 3
// The buffer is full now, so pushing subsequent
// elements will overwrite the front-most elements.
cb.push_back(4); // Overwrite 1 with 4.
cb.push_back(5); // Overwrite 2 with 5.
// The buffer now contains 3, 4 and 5.
a = cb[0]; // a == 3
b = cb[1]; // b == 4
c = cb[2]; // c == 5
// Elements can be popped from either the front or the back.
cb.pop_back(); // 5 is removed.
cb.pop_front(); // 3 is removed.
// Leaving only one element with value = 4.
int d = cb[0]; // d == 4
//] [/circular_buffer_example_2]
return 0;
}
/*
//[circular_buffer_example_output
There is no output from this example.
//] [/circular_buffer_example_output]
*/
| {
"content_hash": "70315d831c7f790f5d2b8c935e939e84",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 74,
"avg_line_length": 23.682539682539684,
"alnum_prop": 0.6092493297587132,
"repo_name": "nawawi/poedit",
"id": "0100741222bca434f564096aab05c8747f25d5a1",
"size": "1492",
"binary": false,
"copies": "12",
"ref": "refs/heads/stable",
"path": "deps/boost/libs/circular_buffer/example/circular_buffer_example.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "48113"
},
{
"name": "C++",
"bytes": "1284178"
},
{
"name": "Inno Setup",
"bytes": "11180"
},
{
"name": "M4",
"bytes": "103958"
},
{
"name": "Makefile",
"bytes": "9507"
},
{
"name": "Objective-C",
"bytes": "16519"
},
{
"name": "Objective-C++",
"bytes": "14681"
},
{
"name": "Python",
"bytes": "6594"
},
{
"name": "Ruby",
"bytes": "292"
},
{
"name": "Shell",
"bytes": "11982"
}
],
"symlink_target": ""
} |
namespace hermit {
struct none_type {
bool operator==( const none_type& ) const { return true; }
bool operator!=( const none_type& ) const { return false; }
bool operator>( const none_type& ) const { return false; }
bool operator<( const none_type& ) const { return false; }
bool operator>=( const none_type& ) const { return true; }
bool operator<=( const none_type& ) const { return true; }
};
}
#endif
| {
"content_hash": "9ac53992c6bb8d0ef628af8aebc7eda9",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 63,
"avg_line_length": 33.46153846153846,
"alnum_prop": 0.6367816091954023,
"repo_name": "Fadis/softdsp",
"id": "19ea94091b0bb147443a3784d8cf62cf1e49fbdf",
"size": "494",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "include/hermit/none_type.hpp",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "C++",
"bytes": "334350"
}
],
"symlink_target": ""
} |
package net.christophermerrill.FancyFxTree.example;
import javafx.application.*;
import javafx.collections.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.stage.*;
import net.christophermerrill.FancyFxTree.*;
import java.net.*;
/**
* @author Christopher L Merrill (see LICENSE.txt for license details)
*/
public class FancyTreeExample extends Application
{
public static void main(String[] args)
{
launch(args);
}
@Override
public void start(Stage stage) throws Exception
{
stage.setTitle(getClass().getSimpleName());
BorderPane root = new BorderPane();
FlowPane button_bar = new FlowPane();
button_bar.getChildren().add(createNodeChangeButton());
_add_node_button = createAddNodeButton();
button_bar.getChildren().add(_add_node_button);
button_bar.getChildren().add(createAddLeafNodeButton());
button_bar.getChildren().add(createStyleNodeButton());
button_bar.getChildren().add(createExpandAllButton());
button_bar.getChildren().add(createCollapseAllButton());
root.setTop(button_bar);
_model_root = ExampleDataNodeBuilder.create(new int[] {4,1,3,2});
_tree = new FancyTreeView(new ExampleOperationHandler(_model_root)
{
@Override
public void selectionChanged(ObservableList<TreeItem<ExampleTreeNodeFacade>> selected_items)
{
super.selectionChanged(selected_items);
_status.setText(String.format("%d items selected", selected_items.size()));
_add_node_button.setDisable(selected_items.size() != 1);
}
});
_tree.setRoot(new ExampleTreeNodeFacade(_model_root));
_tree.expandAll();
_tree.setEditable(true);
root.setCenter(_tree);
_status = new Label();
root.setBottom(_status);
URL resource = getClass().getResource("FancyTreeExample.css");
_tree.getStylesheets().add(resource.toExternalForm());
stage.setScene(new Scene(root, 300, 250));
stage.show();
}
private Button createNodeChangeButton()
{
Button button = new Button();
button.setText("Change a node");
button.setOnAction(event ->
{
ExampleDataNode node = _model_root.pickRandom();
if (node.getExtraData() == null)
node.setExtraData("modified");
else
node.setExtraData(null);
});
return button;
}
private Button createAddNodeButton()
{
Button button = new Button();
button.setText("Add a node");
button.setOnAction(event ->
{
MultipleSelectionModel<TreeItem<ExampleTreeNodeFacade>> selectionModel = _tree.getSelectionModel();
ExampleDataNode node = selectionModel.getSelectedItem().getValue().getModelNode();
ExampleDataNode parent = _model_root.findParentFor(node);
parent.addAfter(new ExampleDataNode("after " + node.getName()), node);
});
button.setDisable(true);
return button;
}
private Button createAddLeafNodeButton()
{
Button button = new Button();
button.setText("Add a leaf");
button.setOnAction(event ->
{
ExampleDataNode leaf = ExampleDataNodeBuilder.createRandomLeaf(_model_root);
_tree.expandScrollToAndSelect(leaf);
});
return button;
}
private Button createStyleNodeButton()
{
Button button = new Button();
button.setText("Style the node");
button.setOnAction(event ->
Platform.runLater(() ->
{
final ObservableList items = _tree.getSelectionModel().getSelectedItems();
for (Object item : items)
{
ExampleTreeNodeFacade node = ((TreeItem<ExampleTreeNodeFacade>) item).getValue();
ExampleDataNode data = node.getModelNode();
if (data.getStyles().isEmpty())
data.addStyle(STYLE1);
else
{
String current_style = data.getStyles().get(0);
switch (current_style)
{
case STYLE1:
data.addStyle(STYLE2);
break;
case STYLE2:
data.addStyle(STYLE3);
break;
}
data.removeStyle(current_style);
}
}
}));
return button;
}
private Button createExpandAllButton()
{
Button button = new Button();
button.setText("Expand All");
button.setOnAction(event -> _tree.expandAll());
return button;
}
private Button createCollapseAllButton()
{
Button button = new Button();
button.setText("Collapse All");
button.setOnAction(event -> _tree.collapseAll());
return button;
}
private ExampleDataNode _model_root;
private Button _add_node_button;
private FancyTreeView<ExampleTreeNodeFacade> _tree;
private Label _status;
private final static String STYLE1 = "customstyle1";
private final static String STYLE2 = "customstyle2";
private final static String STYLE3 = "customstyle3";
} | {
"content_hash": "8df091ec5ce77fcf349faf29d792a838",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 111,
"avg_line_length": 33.042682926829265,
"alnum_prop": 0.5916220704927109,
"repo_name": "ChrisLMerrill/FancyFxTree",
"id": "287afd7fee851d5d20b55be90a6dbdeae846191d",
"size": "5419",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/net/christophermerrill/FancyFxTree/example/FancyTreeExample.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "817"
},
{
"name": "Java",
"bytes": "95211"
}
],
"symlink_target": ""
} |
package seedu.malitio;
import com.google.common.eventbus.Subscribe;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;
import seedu.malitio.commons.core.Config;
import seedu.malitio.commons.core.EventsCenter;
import seedu.malitio.commons.core.LogsCenter;
import seedu.malitio.commons.core.Version;
import seedu.malitio.commons.events.ui.ExitAppRequestEvent;
import seedu.malitio.commons.exceptions.DataConversionException;
import seedu.malitio.commons.util.ConfigUtil;
import seedu.malitio.commons.util.StringUtil;
import seedu.malitio.logic.Logic;
import seedu.malitio.logic.LogicManager;
import seedu.malitio.model.*;
import seedu.malitio.storage.Storage;
import seedu.malitio.storage.StorageManager;
import seedu.malitio.ui.Ui;
import seedu.malitio.ui.UiManager;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Map;
import java.util.Optional;
import java.util.logging.Logger;
/**
* The main entry point to the application.
*/
public class MainApp extends Application {
private static final Logger logger = LogsCenter.getLogger(MainApp.class);
public static final Version VERSION = new Version(0, 5, 0, true);
protected Ui ui;
protected Logic logic;
protected Storage storage;
protected Model model;
protected Config config;
protected UserPrefs userPrefs;
public MainApp() {}
@Override
public void init() throws Exception {
logger.info("=============================[ Initializing Malitio ]===========================");
super.init();
config = initConfig(getApplicationParameter("config"));
storage = new StorageManager(config.getMalitioFilePath(), config.getUserPrefsFilePath());
userPrefs = initPrefs(config);
initLogging(config);
model = initModelManager(storage, userPrefs);
logic = new LogicManager(model, storage);
ui = new UiManager(logic, config, userPrefs);
initEventsCenter();
updateModel();
}
//@@author A0122460W
/**
* update to show relevant deadline and events past current time and date
*/
private void updateModel() {
logger.info("update malitio to current date and time");
model.updateFilteredDeadlineListToShowAll();
model.updateFilteredEventListToShowAll();
model.updateFilteredTaskListToShowAll();
}
//@@author
private String getApplicationParameter(String parameterName){
Map<String, String> applicationParameters = getParameters().getNamed();
return applicationParameters.get(parameterName);
}
private Model initModelManager(Storage storage, UserPrefs userPrefs) {
Optional<ReadOnlyMalitio> malitioOptional;
ReadOnlyMalitio initialData;
try {
malitioOptional = storage.readMalitio();
if(!malitioOptional.isPresent()){
logger.info("Data file not found. Will be starting with an empty Malitio");
}
initialData = malitioOptional.orElse(new Malitio());
} catch (DataConversionException e) {
logger.warning("Data file not in the correct format. Will be starting with an empty Malitio");
initialData = new Malitio();
} catch (IOException e) {
logger.warning("Problem while reading from the file. . Will be starting with an empty Malitio");
initialData = new Malitio();
}
return new ModelManager(initialData, userPrefs);
}
private void initLogging(Config config) {
LogsCenter.init(config);
}
protected Config initConfig(String configFilePath) {
Config initializedConfig;
String configFilePathUsed;
configFilePathUsed = Config.DEFAULT_CONFIG_FILE;
if(configFilePath != null) {
logger.info("Custom Config file specified " + configFilePath);
configFilePathUsed = configFilePath;
}
logger.info("Using config file : " + configFilePathUsed);
try {
Optional<Config> configOptional = ConfigUtil.readConfig(configFilePathUsed);
initializedConfig = configOptional.orElse(new Config());
} catch (DataConversionException e) {
logger.warning("Config file at " + configFilePathUsed + " is not in the correct format. " +
"Using default config properties");
initializedConfig = new Config();
}
//Update config file in case it was missing to begin with or there are new/unused fields
try {
ConfigUtil.saveConfig(initializedConfig, configFilePathUsed);
} catch (IOException e) {
logger.warning("Failed to save config file : " + StringUtil.getDetails(e));
}
return initializedConfig;
}
protected UserPrefs initPrefs(Config config) {
assert config != null;
String prefsFilePath = config.getUserPrefsFilePath();
logger.info("Using prefs file : " + prefsFilePath);
UserPrefs initializedPrefs;
try {
Optional<UserPrefs> prefsOptional = storage.readUserPrefs();
initializedPrefs = prefsOptional.orElse(new UserPrefs());
} catch (DataConversionException e) {
logger.warning("UserPrefs file at " + prefsFilePath + " is not in the correct format. " +
"Using default user prefs");
initializedPrefs = new UserPrefs();
} catch (IOException e) {
logger.warning("Problem while reading from the file. . Will be starting with an empty Malitio");
initializedPrefs = new UserPrefs();
}
//Update prefs file in case it was missing to begin with or there are new/unused fields
try {
storage.saveUserPrefs(initializedPrefs);
} catch (IOException e) {
logger.warning("Failed to save config file : " + StringUtil.getDetails(e));
}
return initializedPrefs;
}
private void initEventsCenter() {
EventsCenter.getInstance().registerHandler(this);
}
@Override
public void start(Stage primaryStage) {
logger.info("Starting Malitio " + MainApp.VERSION);
ui.start(primaryStage);
}
@Override
public void stop() {
logger.info("============================ [ Stopping Malitio ] =============================");
ui.stop();
try {
storage.saveUserPrefs(userPrefs);
} catch (IOException e) {
logger.severe("Failed to save preferences " + StringUtil.getDetails(e));
}
Platform.exit();
System.exit(0);
}
@Subscribe
public void handleExitAppRequestEvent(ExitAppRequestEvent event) {
logger.info(LogsCenter.getEventHandlingLogMessage(event));
this.stop();
}
public static void main(String[] args) {
launch(args);
}
}
| {
"content_hash": "0013d93e11381477142d34b3078cfed1",
"timestamp": "",
"source": "github",
"line_count": 202,
"max_line_length": 108,
"avg_line_length": 34.46534653465346,
"alnum_prop": 0.6505314564780236,
"repo_name": "CS2103AUG2016-T13-C3/main",
"id": "4fc8d944289e698ae5e248820d23574b73587739",
"size": "6962",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/seedu/malitio/MainApp.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "246"
},
{
"name": "CSS",
"bytes": "6590"
},
{
"name": "Java",
"bytes": "508387"
},
{
"name": "XSLT",
"bytes": "6127"
}
],
"symlink_target": ""
} |
{% load i18n %}
{% extends "html/projects/page.html" %}
{% block title %}{{ project|htsafe }} | {% trans %}Project Management{% endtrans %}{% endblock %}
{% block module_title %}{{ project }}{% endblock %}
{% block module_subtitle %}{% trans %}Project{% endtrans %}{% endblock %}
{% block module_topmenu %}
<a href="{% url project-new-to-project project.id %}" class="top-menu add-link">{% trans %}New Project{% endtrans %}</a>
<a href="{% url milestone-new-to-project project.id %}" class="top-menu add-link">{% trans %}New Milestone{% endtrans %}</a>
<a href="{% url task-new-to-project project.id %}" class="top-menu add-link">{% trans %}New Task{% endtrans %}</a>
<a href="{% url project-gantt project.id %}" class="top-menu gantt-link">{% trans %}Gantt Chart{% endtrans %}</a>
<a href="{% url project-detail project.id %}" class="top-menu view-link">{% trans %}View{% endtrans %}</a>
{% if user.profile.has_permission(project, mode='w') %}
<a href="{% url project-edit project.id %}" class="top-menu edit-link">{% trans %}Edit{% endtrans %}</a>
<a href="{% url project-delete project.id %}" class="top-menu delete-link-active">{% trans %}Delete{% endtrans %}</a>
{% endif %}
{% endblock %}
{% block sidebar_right %}
<span class="sidebar-header-first">{% trans %}Filter{% endtrans %}</span>
<div class="sidebar-block">
Projects
</div>
{% endblock %}
{% block module_content %}
<div class="delete-object">
<span class="larger">{% trans %}Delete this Project{% endtrans %}?</span>
<br />
<form action="" method="post" class="content-form">
{% csrf_token %}
<ul class="content-form-fields">
<li>
<label for="trash">
<input id="trash" type="checkbox" name="trash" checked="checked" />
{% trans %}Move to Trash{% endtrans %}
</label>
</li>
<li>
<input type="submit" name="delete" value="{% trans %}Yes, Delete{% endtrans %}" />
<a class="cancel" href="{% url project-detail project.id %}">{% trans %}Cancel{% endtrans %}</a>
</li>
</ul>
</form>
</div>
{% if project.client %}
<div>
<span class="content-label">{% trans %}Client{% endtrans %}:</span>
<span class="content-value"><a href="{% url contacts:contact_view project.client.id %}">{{ project.client }}</a></span>
</div>
{% endif %}
{% if project.manager %}
<div>
<span class="content-label">{% trans %}Project manager{% endtrans %}:</span>
<span class="content-value"><a href="{% url contacts:contact_view project.manager.id %}">{{ project.manager }}</a></span>
</div>
{% endif %}
{% if project.details %}
<div>
<span class="content-label">{% trans %}Details{% endtrans %}:</span>
<span class="content-details">{{ project.details|htsafe }}</span>
</div>
{% endif %}
{% if subprojects %}
<br />
<div>
<span class="content-label">{% trans %}Projects{% endtrans %}:</span>
</div>
{% for subproject in subprojects %}
<div class="content-list-item content-list-item-{{ loop.cycle('odd', 'even') }}">
<span class="content-list-item-name">
<a href="{% url project-detail subproject.id %}">{{ subproject }}</a>
</span>
<span class="content-list-item-group">
{%- if subproject.parent %}
<a href="{% url project-detail subproject.parent_id %}" class="group-link">{{ subproject.parent }}</a>
{%- endif %}
</span>
<span class="content-list-item-actions">
{% if user.profile.has_permission(project, mode='w') %}
<a href="{% url project-edit project.id %}" class="inline-link edit-link">{% trans %}Edit{% endtrans %}</a>
{% endif %}
</span>
</div>
{% endfor %}
{% endif %}
{% endblock %} | {
"content_hash": "70097ae508ce9b0d8936ac869f3ee079",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 125,
"avg_line_length": 38.65979381443299,
"alnum_prop": 0.588,
"repo_name": "tovmeod/anaf",
"id": "b9edc2522d215b933e42c4c387978b92c612a3de",
"size": "3750",
"binary": false,
"copies": "1",
"ref": "refs/heads/drf",
"path": "anaf/templates/html/projects/project_delete.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "400736"
},
{
"name": "HTML",
"bytes": "1512873"
},
{
"name": "JavaScript",
"bytes": "2136807"
},
{
"name": "PHP",
"bytes": "25856"
},
{
"name": "Python",
"bytes": "2045934"
},
{
"name": "Shell",
"bytes": "18005"
},
{
"name": "TSQL",
"bytes": "147855"
}
],
"symlink_target": ""
} |
layout: post
author: Christoph Broschinski
title: University of Milan joins OpenAPC
date: 2017-02-07 08:00:00
summary:
categories: [general, openAPC]
comments: true
---
We welcome the [Università degli Studi di Milano](http://www.unimi.it/ENG/) (University of Milan) as our first contributing institution from Italy!
Contact person is [Paola Galimberti](mailto:paola.galimberti@unimi.it).
## About the dataset
The initial dataset contributed by the University of Milan contains information on publication fees paid in 2016.
## Cost Data
The data covers publication fees for 57 articles. Total expenditure amounts to 90 069€ and the average fee is 1 580€.
The following table and plots show the payments the university has made to publishers in 2016.
| | Articles| Fees paid in EURO| Mean Fee paid|
|:-----------------------------------------|--------:|-----------------:|-------------:|
|Springer Nature | 21| 32432| 1544|
|Elsevier BV | 7| 15429| 2204|
|MDPI AG | 4| 4698| 1175|
|Oxford University Press (OUP) | 4| 10033| 2508|
|Frontiers Media SA | 3| 4591| 1530|
|Public Library of Science (PLoS) | 3| 2909| 970|
|Hindawi Publishing Corporation | 2| 3218| 1609|
|Impact Journals, LLC | 2| 5338| 2669|
|American Physiological Society | 1| 470| 470|
|MedCrave Group, LLC | 1| 230| 230|
|OMICS Publishing Group | 1| 1916| 1916|
|Ovid Technologies (Wolters Kluwer Health) | 1| 1246| 1246|
|S. Karger AG | 1| 1732| 1732|
|SAGE | 1| 1549| 1549|
|SAGE Publications | 1| 2165| 2165|
|Sciedu Press | 1| 215| 215|
|The Endocrine Society | 1| 1288| 1288|
|Timeline Publication Pvt. Ltd | 1| 110| 110|
|Walter de Gruyter GmbH | 1| 500| 500|
### Fees paid per publisher (in EURO)

### Average costs per year (in EURO)

### Average costs per publisher (in EURO)

| {
"content_hash": "3dd5b44ebeca72bab88ae46892045172",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 147,
"avg_line_length": 49.54838709677419,
"alnum_prop": 0.4664713541666667,
"repo_name": "OpenAPC/openapc.github.io",
"id": "4c0cb0a9ea227af4f3ca900ea187c20ea44dc88b",
"size": "3081",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/2017-02-07-milano.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "11254"
},
{
"name": "SCSS",
"bytes": "30504"
}
],
"symlink_target": ""
} |
package com.alibaba.wasp.zookeeper;
import com.alibaba.wasp.FConstants;
import com.alibaba.wasp.ZooKeeperConnectionException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.Abortable;
import org.apache.hadoop.hbase.util.Threads;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.ACL;
import java.io.Closeable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CountDownLatch;
/**
* Acts as the single ZooKeeper Watcher. One instance of this is instantiated
* for each Master, FServer, and client process.
*
* <p>
* This is the only class that implements {@link org.apache.zookeeper.Watcher}. Other internal
* classes which need to be notified of ZooKeeper events must register with the
* local instance of this watcher via {@link #registerListener}.
*
* <p>
* This class also holds and manages the connection to ZooKeeper. Code to deal
* with connection related events and exceptions are handled here.
*/
public class ZooKeeperWatcher implements Watcher, Abortable, Closeable {
private static final Log LOG = LogFactory.getLog(ZooKeeperWatcher.class);
// Identifier for this watcher (for logging only). It is made of the prefix
// passed on construction and the zookeeper sessionid.
private String identifier;
// zookeeper quorum
private String quorum;
// zookeeper connection
private RecoverableZooKeeper recoverableZooKeeper;
// abortable in case of zk failure
protected Abortable abortable;
// listeners to be notified
private final List<ZooKeeperListener> listeners = new CopyOnWriteArrayList<ZooKeeperListener>();
// Used by ZKUtil:waitForZKConnectionIfAuthenticating to wait for SASL
// negotiation to complete
public CountDownLatch saslLatch = new CountDownLatch(1);
// node names
// base znode for this cluster
public String baseZNode;
// znode containing ephemeral nodes of the fservers
public String fsZNode;
// znode containing ephemeral nodes of the draining fservers
public String drainingZNode;
// znode of currently active master
private String masterAddressZNode;
// znode of this master in backup master directory, if not the active master
public String backupMasterAddressesZNode;
// znode containing the current cluster state
public String clusterStateZNode;
// znode used for entityGroup transitioning and assignment
public String assignmentZNode;
// znode used for table disabling/enabling
public String tableZNode;
// znode containing the unique cluster ID
public String clusterIdZNode;
// znode containing the state of the load balancer
public String balancerZNode;
// Certain ZooKeeper nodes need to be world-readable
public static final ArrayList<ACL> CREATOR_ALL_AND_WORLD_READABLE = new ArrayList<ACL>() {
{
add(new ACL(ZooDefs.Perms.READ, ZooDefs.Ids.ANYONE_ID_UNSAFE));
add(new ACL(ZooDefs.Perms.ALL, ZooDefs.Ids.AUTH_IDS));
}
};
private final Configuration conf;
private final Exception constructorCaller;
/**
* Instantiate a ZooKeeper connection and watcher.
* @param descriptor Descriptive string that is added to zookeeper sessionid
* and used as identifier for this instance.
* @throws java.io.IOException
* @throws com.alibaba.wasp.ZooKeeperConnectionException
*/
public ZooKeeperWatcher(Configuration conf, String descriptor,
Abortable abortable) throws ZooKeeperConnectionException, IOException {
this(conf, descriptor, abortable, false);
}
/**
* Instantiate a ZooKeeper connection and watcher.
* @param descriptor Descriptive string that is added to zookeeper sessionid
* and used as identifier for this instance.
* @throws java.io.IOException
* @throws com.alibaba.wasp.ZooKeeperConnectionException
*/
public ZooKeeperWatcher(Configuration conf, String descriptor,
Abortable abortable, boolean canCreateBaseZNode) throws IOException,
ZooKeeperConnectionException {
this.conf = conf;
// Capture a stack trace now. Will print it out later if problem so we can
// distingush amongst the myriad ZKWs.
try {
throw new Exception("ZKW CONSTRUCTOR STACK TRACE FOR DEBUGGING");
} catch (Exception e) {
this.constructorCaller = e;
}
this.quorum = ZKConfig.getZKQuorumServersString(conf);
// Identifier will get the session id appended later below down when we
// handle the sync connect event.
this.identifier = descriptor;
this.abortable = abortable;
setNodeNames(conf);
this.recoverableZooKeeper = ZKUtil.connect(conf, quorum, this, descriptor);
if (canCreateBaseZNode) {
createBaseZNodes();
}
}
private void createBaseZNodes() throws ZooKeeperConnectionException {
try {
// Create all the necessary "directories" of znodes
ZKUtil.createAndFailSilent(this, baseZNode);
ZKUtil.createAndFailSilent(this, assignmentZNode);
ZKUtil.createAndFailSilent(this, fsZNode);
ZKUtil.createAndFailSilent(this, drainingZNode);
ZKUtil.createAndFailSilent(this, tableZNode);
ZKUtil.createAndFailSilent(this, backupMasterAddressesZNode);
} catch (KeeperException e) {
throw new ZooKeeperConnectionException(
prefix("Unexpected KeeperException creating base node"), e);
}
}
@Override
public String toString() {
return this.identifier;
}
/**
* Adds this instance's identifier as a prefix to the passed <code>str</code>
* @param str String to amend.
* @return A new string with this instance's identifier as prefix: e.g. if
* passed 'hello world', the returned string could be
*/
public String prefix(final String str) {
return this.toString() + " " + str;
}
/**
* Set the local variable node names using the specified configuration.
*/
private void setNodeNames(Configuration conf) {
baseZNode = conf.get(FConstants.ZOOKEEPER_ZNODE_PARENT,
FConstants.DEFAULT_ZOOKEEPER_ZNODE_PARENT);
fsZNode = ZKUtil.joinZNode(baseZNode, conf.get("zookeeper.znode.fs", "fs"));
drainingZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.draining.fs", "draining"));
masterAddressZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.master", "master"));
backupMasterAddressesZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.backup.masters", "backup-masters"));
clusterStateZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.state", "shutdown"));
assignmentZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.unassigned", "unassigned"));
tableZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.tableEnableDisable", "table"));
clusterIdZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.clusterId", "waspid"));
balancerZNode = ZKUtil.joinZNode(baseZNode,
conf.get("zookeeper.znode.balancer", "balancer"));
}
/**
* Register the specified listener to receive ZooKeeper events.
* @param listener
*/
public void registerListener(ZooKeeperListener listener) {
listeners.add(listener);
}
/**
* Register the specified listener to receive ZooKeeper events and add it as
* the first in the list of current listeners.
* @param listener
*/
public void registerListenerFirst(ZooKeeperListener listener) {
listeners.add(0, listener);
}
/**
* Get the connection to ZooKeeper.
* @return connection reference to zookeeper
*/
public RecoverableZooKeeper getRecoverableZooKeeper() {
return recoverableZooKeeper;
}
public void reconnectAfterExpiration() throws IOException,
InterruptedException {
recoverableZooKeeper.reconnectAfterExpiration();
}
/**
* Get the quorum address of this instance.
* @return quorum string of this zookeeper connection instance
*/
public String getQuorum() {
return quorum;
}
/**
* Method called from ZooKeeper for events and connection status.
* <p>
* Valid events are passed along to listeners. Connection status changes are
* dealt with locally.
*/
@Override
public void process(WatchedEvent event) {
LOG.debug(prefix("Received ZooKeeper Event, " + "type=" + event.getType()
+ ", " + "state=" + event.getState() + ", " + "path=" + event.getPath()));
switch (event.getType()) {
// If event type is NONE, this is a connection status change
case None: {
connectionEvent(event);
break;
}
// Otherwise pass along to the listeners
case NodeCreated: {
for (ZooKeeperListener listener : listeners) {
listener.nodeCreated(event.getPath());
}
break;
}
case NodeDeleted: {
for (ZooKeeperListener listener : listeners) {
listener.nodeDeleted(event.getPath());
}
break;
}
case NodeDataChanged: {
for (ZooKeeperListener listener : listeners) {
listener.nodeDataChanged(event.getPath());
}
break;
}
case NodeChildrenChanged: {
for (ZooKeeperListener listener : listeners) {
listener.nodeChildrenChanged(event.getPath());
}
break;
}
}
}
// Connection management
/**
* Called when there is a connection-related event via the Watcher callback.
* <p>
* If Disconnected or Expired, this should shutdown the cluster. But, since we
* send a KeeperException.SessionExpiredException along with the abort call,
* it's possible for the Abortable to catch it and try to create a new session
* with ZooKeeper. This is what the client does in HCM.
* <p>
* @param event
*/
private void connectionEvent(WatchedEvent event) {
switch (event.getState()) {
case SyncConnected:
// Now, this callback can be invoked before the this.zookeeper is set.
// Wait a little while.
long finished = System.currentTimeMillis()
+ this.conf.getLong("hbase.zookeeper.watcher.sync.connected.wait",
2000);
while (System.currentTimeMillis() < finished) {
Threads.sleep(1);
if (this.recoverableZooKeeper != null)
break;
}
if (this.recoverableZooKeeper == null) {
LOG.error("ZK is null on connection event -- see stack trace "
+ "for the stack trace when constructor was called on this zkw",
this.constructorCaller);
throw new NullPointerException("ZK is null");
}
this.identifier = this.identifier + "-0x"
+ Long.toHexString(this.recoverableZooKeeper.getSessionId());
// Update our identifier. Otherwise ignore.
LOG.debug(this.identifier + " connected");
break;
case AuthFailed:
if (ZKUtil.isSecureZooKeeper(this.conf)) {
// We could not be authenticated, but clients should proceed anyway.
// Only access to znodes that require SASL authentication will be
// denied. The client may never need to access them.
saslLatch.countDown();
}
break;
// Abort the server if Disconnected or Expired
case Disconnected:
LOG.debug(prefix("Received Disconnected from ZooKeeper, ignoring"));
break;
case Expired:
if (ZKUtil.isSecureZooKeeper(this.conf)) {
// We consider Expired equivalent to AuthFailed for this
// connection. Authentication is never going to complete. The
// client should proceed to do cleanup.
saslLatch.countDown();
}
String msg = prefix(this.identifier + " received expired from "
+ "ZooKeeper, aborting");
// TODO: One thought is to add call to ZooKeeperListener so say,
// ZooKeeperNodeTracker can zero out its data values.
if (this.abortable != null)
this.abortable.abort(msg,
new KeeperException.SessionExpiredException());
break;
default:
throw new IllegalStateException("Received event is not valid.");
}
}
/**
* Forces a synchronization of this ZooKeeper client connection.
* <p>
* Executing this method before running other methods will ensure that the
* subsequent operations are up-to-date and consistent as of the time that the
* sync is complete.
* <p>
* This is used for compareAndSwap type operations where we need to read the
* data of an existing node and delete or transition that node, utilizing the
* previously read version and data. We want to ensure that the version read
* is up-to-date from when we begin the operation.
*/
public void sync(String path) {
this.recoverableZooKeeper.sync(path, null, null);
}
/**
* Handles KeeperExceptions in client calls.
* <p>
* This may be temporary but for now this gives one place to deal with these.
* <p>
* TODO: Currently this method rethrows the exception to let the caller handle
* <p>
* @param ke
* @throws org.apache.zookeeper.KeeperException
*/
public void keeperException(KeeperException ke) throws KeeperException {
LOG.error(
prefix("Received unexpected KeeperException, re-throwing exception"),
ke);
throw ke;
}
/**
* Handles InterruptedExceptions in client calls.
* <p>
* This may be temporary but for now this gives one place to deal with these.
* <p>
* TODO: Currently, this method does nothing. Is this ever expected to happen?
* Do we abort or can we let it run? Maybe this should be logged as WARN? It
* shouldn't happen?
* <p>
* @param ie
*/
public void interruptedException(InterruptedException ie) {
LOG.debug(prefix("Received InterruptedException, doing nothing here"), ie);
// At least preserver interrupt.
Thread.currentThread().interrupt();
// no-op
}
/**
* Close the connection to ZooKeeper.
*
* @throws InterruptedException
*/
public void close() {
try {
if (recoverableZooKeeper != null) {
recoverableZooKeeper.close();
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
public Configuration getConfiguration() {
return conf;
}
@Override
public void abort(String why, Throwable e) {
this.abortable.abort(why, e);
}
@Override
public boolean isAborted() {
return this.abortable.isAborted();
}
/**
* @return Path to the currently active master.
*/
public String getMasterAddressZNode() {
return this.masterAddressZNode;
}
}
| {
"content_hash": "14c1b0c08e72697ddab4ff8c5b6b925a",
"timestamp": "",
"source": "github",
"line_count": 439,
"max_line_length": 98,
"avg_line_length": 34,
"alnum_prop": 0.6908079860645853,
"repo_name": "fengshao0907/wasp",
"id": "ed1af2f0038cf90e27793b60c8047c37e2168da0",
"size": "15735",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/main/java/com/alibaba/wasp/zookeeper/ZooKeeperWatcher.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "932"
},
{
"name": "HTML",
"bytes": "1748"
},
{
"name": "Java",
"bytes": "3805664"
},
{
"name": "JavaScript",
"bytes": "1347"
},
{
"name": "Protocol Buffer",
"bytes": "53324"
},
{
"name": "Ruby",
"bytes": "72366"
},
{
"name": "Shell",
"bytes": "41849"
}
],
"symlink_target": ""
} |
/*
===============================================================================
Trace model vs. polygonal model collision detection.
It is more important to minimize the number of collision polygons
than it is to minimize the number of edges used for collision
detection (total edges - internal edges).
Stitching the world tends to minimize the number of edges used
for collision detection (more internal edges). However stitching
also results in more collision polygons which usually makes a
stitched world slower.
In an average map over 30% of all edges is internal.
===============================================================================
*/
#include "../idlib/precompiled.h"
#pragma hdrstop
#include "CollisionModel_local.h"
idCollisionModelManagerLocal collisionModelManagerLocal;
idCollisionModelManager * collisionModelManager = &collisionModelManagerLocal;
cm_windingList_t * cm_windingList;
cm_windingList_t * cm_outList;
cm_windingList_t * cm_tmpList;
idHashIndex * cm_vertexHash;
idHashIndex * cm_edgeHash;
idBounds cm_modelBounds;
int cm_vertexShift;
/*
===============================================================================
Proc BSP tree for data pruning
===============================================================================
*/
/*
================
idCollisionModelManagerLocal::ParseProcNodes
================
*/
void idCollisionModelManagerLocal::ParseProcNodes( idLexer *src ) {
int i;
src->ExpectTokenString( "{" );
numProcNodes = src->ParseInt();
if ( numProcNodes < 0 ) {
src->Error( "ParseProcNodes: bad numProcNodes" );
}
procNodes = (cm_procNode_t *)Mem_ClearedAlloc( numProcNodes * sizeof( cm_procNode_t ) );
for ( i = 0; i < numProcNodes; i++ ) {
cm_procNode_t *node;
node = &procNodes[i];
src->Parse1DMatrix( 4, node->plane.ToFloatPtr() );
node->children[0] = src->ParseInt();
node->children[1] = src->ParseInt();
}
src->ExpectTokenString( "}" );
}
/*
================
idCollisionModelManagerLocal::LoadProcBSP
FIXME: if the nodes would be at the start of the .proc file it would speed things up considerably
================
*/
void idCollisionModelManagerLocal::LoadProcBSP( const char *name ) {
idStr filename;
idToken token;
idLexer *src;
// load it
filename = name;
filename.SetFileExtension( PROC_FILE_EXT );
src = new idLexer( filename, LEXFL_NOSTRINGCONCAT | LEXFL_NODOLLARPRECOMPILE );
if ( !src->IsLoaded() ) {
common->Warning( "idCollisionModelManagerLocal::LoadProcBSP: couldn't load %s", filename.c_str() );
delete src;
return;
}
if ( !src->ReadToken( &token ) || token.Icmp( PROC_FILE_ID ) ) {
common->Warning( "idCollisionModelManagerLocal::LoadProcBSP: bad id '%s' instead of '%s'", token.c_str(), PROC_FILE_ID );
delete src;
return;
}
// parse the file
while ( 1 ) {
if ( !src->ReadToken( &token ) ) {
break;
}
if ( token == "model" ) {
src->SkipBracedSection();
continue;
}
if ( token == "shadowModel" ) {
src->SkipBracedSection();
continue;
}
if ( token == "interAreaPortals" ) {
src->SkipBracedSection();
continue;
}
if ( token == "nodes" ) {
ParseProcNodes( src );
break;
}
src->Error( "idCollisionModelManagerLocal::LoadProcBSP: bad token \"%s\"", token.c_str() );
}
delete src;
}
/*
===============================================================================
Free map
===============================================================================
*/
/*
================
idCollisionModelManagerLocal::Clear
================
*/
void idCollisionModelManagerLocal::Clear( void ) {
mapName.Clear();
mapFileTime = 0;
loaded = 0;
checkCount = 0;
maxModels = 0;
numModels = 0;
models = NULL;
memset( trmPolygons, 0, sizeof( trmPolygons ) );
trmBrushes[0] = NULL;
trmMaterial = NULL;
numProcNodes = 0;
procNodes = NULL;
getContacts = false;
contacts = NULL;
maxContacts = 0;
numContacts = 0;
}
/*
================
idCollisionModelManagerLocal::RemovePolygonReferences_r
================
*/
void idCollisionModelManagerLocal::RemovePolygonReferences_r( cm_node_t *node, cm_polygon_t *p ) {
cm_polygonRef_t *pref;
while( node ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
if ( pref->p == p ) {
pref->p = NULL;
// cannot return here because we can have links down the tree due to polygon merging
//return;
}
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
if ( p->bounds[0][node->planeType] > node->planeDist ) {
node = node->children[0];
}
else if ( p->bounds[1][node->planeType] < node->planeDist ) {
node = node->children[1];
}
else {
RemovePolygonReferences_r( node->children[1], p );
node = node->children[0];
}
}
}
/*
================
idCollisionModelManagerLocal::RemoveBrushReferences_r
================
*/
void idCollisionModelManagerLocal::RemoveBrushReferences_r( cm_node_t *node, cm_brush_t *b ) {
cm_brushRef_t *bref;
while( node ) {
for ( bref = node->brushes; bref; bref = bref->next ) {
if ( bref->b == b ) {
bref->b = NULL;
return;
}
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
if ( b->bounds[0][node->planeType] > node->planeDist ) {
node = node->children[0];
}
else if ( b->bounds[1][node->planeType] < node->planeDist ) {
node = node->children[1];
}
else {
RemoveBrushReferences_r( node->children[1], b );
node = node->children[0];
}
}
}
/*
================
idCollisionModelManagerLocal::FreeNode
================
*/
void idCollisionModelManagerLocal::FreeNode( cm_node_t *node ) {
// don't free the node here
// the nodes are allocated in blocks which are freed when the model is freed
}
/*
================
idCollisionModelManagerLocal::FreePolygonReference
================
*/
void idCollisionModelManagerLocal::FreePolygonReference( cm_polygonRef_t *pref ) {
// don't free the polygon reference here
// the polygon references are allocated in blocks which are freed when the model is freed
}
/*
================
idCollisionModelManagerLocal::FreeBrushReference
================
*/
void idCollisionModelManagerLocal::FreeBrushReference( cm_brushRef_t *bref ) {
// don't free the brush reference here
// the brush references are allocated in blocks which are freed when the model is freed
}
/*
================
idCollisionModelManagerLocal::FreePolygon
================
*/
void idCollisionModelManagerLocal::FreePolygon( cm_model_t *model, cm_polygon_t *poly ) {
model->numPolygons--;
model->polygonMemory -= sizeof( cm_polygon_t ) + ( poly->numEdges - 1 ) * sizeof( poly->edges[0] );
if ( model->polygonBlock == NULL ) {
Mem_Free( poly );
}
}
/*
================
idCollisionModelManagerLocal::FreeBrush
================
*/
void idCollisionModelManagerLocal::FreeBrush( cm_model_t *model, cm_brush_t *brush ) {
model->numBrushes--;
model->brushMemory -= sizeof( cm_brush_t ) + ( brush->numPlanes - 1 ) * sizeof( brush->planes[0] );
if ( model->brushBlock == NULL ) {
Mem_Free( brush );
}
}
/*
================
idCollisionModelManagerLocal::FreeTree_r
================
*/
void idCollisionModelManagerLocal::FreeTree_r( cm_model_t *model, cm_node_t *headNode, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
cm_brushRef_t *bref;
cm_brush_t *b;
// free all polygons at this node
for ( pref = node->polygons; pref; pref = node->polygons ) {
p = pref->p;
if ( p ) {
// remove all other references to this polygon
RemovePolygonReferences_r( headNode, p );
FreePolygon( model, p );
}
node->polygons = pref->next;
FreePolygonReference( pref );
}
// free all brushes at this node
for ( bref = node->brushes; bref; bref = node->brushes ) {
b = bref->b;
if ( b ) {
// remove all other references to this brush
RemoveBrushReferences_r( headNode, b );
FreeBrush( model, b );
}
node->brushes = bref->next;
FreeBrushReference( bref );
}
// recurse down the tree
if ( node->planeType != -1 ) {
FreeTree_r( model, headNode, node->children[0] );
node->children[0] = NULL;
FreeTree_r( model, headNode, node->children[1] );
node->children[1] = NULL;
}
FreeNode( node );
}
/*
================
idCollisionModelManagerLocal::FreeModel
================
*/
void idCollisionModelManagerLocal::FreeModel( cm_model_t *model ) {
cm_polygonRefBlock_t *polygonRefBlock, *nextPolygonRefBlock;
cm_brushRefBlock_t *brushRefBlock, *nextBrushRefBlock;
cm_nodeBlock_t *nodeBlock, *nextNodeBlock;
// free the tree structure
if ( model->node ) {
FreeTree_r( model, model->node, model->node );
}
// free blocks with polygon references
for ( polygonRefBlock = model->polygonRefBlocks; polygonRefBlock; polygonRefBlock = nextPolygonRefBlock ) {
nextPolygonRefBlock = polygonRefBlock->next;
Mem_Free( polygonRefBlock );
}
// free blocks with brush references
for ( brushRefBlock = model->brushRefBlocks; brushRefBlock; brushRefBlock = nextBrushRefBlock ) {
nextBrushRefBlock = brushRefBlock->next;
Mem_Free( brushRefBlock );
}
// free blocks with nodes
for ( nodeBlock = model->nodeBlocks; nodeBlock; nodeBlock = nextNodeBlock ) {
nextNodeBlock = nodeBlock->next;
Mem_Free( nodeBlock );
}
// free block allocated polygons
Mem_Free( model->polygonBlock );
// free block allocated brushes
Mem_Free( model->brushBlock );
// free edges
Mem_Free( model->edges );
// free vertices
Mem_Free( model->vertices );
// free the model
delete model;
}
/*
================
idCollisionModelManagerLocal::FreeMap
================
*/
void idCollisionModelManagerLocal::FreeMap( void ) {
int i;
if ( !loaded ) {
Clear();
return;
}
for ( i = 0; i < maxModels; i++ ) {
if ( !models[i] ) {
continue;
}
FreeModel( models[i] );
}
FreeTrmModelStructure();
Mem_Free( models );
Clear();
ShutdownHash();
}
/*
================
idCollisionModelManagerLocal::FreeTrmModelStructure
================
*/
void idCollisionModelManagerLocal::FreeTrmModelStructure( void ) {
int i;
assert( models );
if ( !models[MAX_SUBMODELS] ) {
return;
}
for ( i = 0; i < MAX_TRACEMODEL_POLYS; i++ ) {
FreePolygon( models[MAX_SUBMODELS], trmPolygons[i]->p );
}
FreeBrush( models[MAX_SUBMODELS], trmBrushes[0]->b );
models[MAX_SUBMODELS]->node->polygons = NULL;
models[MAX_SUBMODELS]->node->brushes = NULL;
FreeModel( models[MAX_SUBMODELS] );
}
/*
===============================================================================
Edge normals
===============================================================================
*/
/*
================
idCollisionModelManagerLocal::CalculateEdgeNormals
================
*/
#define SHARP_EDGE_DOT -0.7f
void idCollisionModelManagerLocal::CalculateEdgeNormals( cm_model_t *model, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
cm_edge_t *edge;
float dot, s;
int i, edgeNum;
idVec3 dir;
while( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
// if we checked this polygon already
if ( p->checkcount == checkCount ) {
continue;
}
p->checkcount = checkCount;
for ( i = 0; i < p->numEdges; i++ ) {
edgeNum = p->edges[i];
edge = model->edges + abs( edgeNum );
if ( edge->normal[0] == 0.0f && edge->normal[1] == 0.0f && edge->normal[2] == 0.0f ) {
// if the edge is only used by this polygon
if ( edge->numUsers == 1 ) {
dir = model->vertices[ edge->vertexNum[edgeNum < 0]].p - model->vertices[ edge->vertexNum[edgeNum > 0]].p;
edge->normal = p->plane.Normal().Cross( dir );
edge->normal.Normalize();
} else {
// the edge is used by more than one polygon
edge->normal = p->plane.Normal();
}
} else {
dot = edge->normal * p->plane.Normal();
// if the two planes make a very sharp edge
if ( dot < SHARP_EDGE_DOT ) {
// max length normal pointing outside both polygons
dir = model->vertices[ edge->vertexNum[edgeNum > 0]].p - model->vertices[ edge->vertexNum[edgeNum < 0]].p;
edge->normal = edge->normal.Cross( dir ) + p->plane.Normal().Cross( -dir );
edge->normal *= ( 0.5f / ( 0.5f + 0.5f * SHARP_EDGE_DOT ) ) / edge->normal.Length();
model->numSharpEdges++;
} else {
s = 0.5f / ( 0.5f + 0.5f * dot );
edge->normal = s * ( edge->normal + p->plane.Normal() );
}
}
}
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
CalculateEdgeNormals( model, node->children[1] );
node = node->children[0];
}
}
/*
===============================================================================
Trace model to general collision model
===============================================================================
*/
/*
================
idCollisionModelManagerLocal::AllocModel
================
*/
cm_model_t *idCollisionModelManagerLocal::AllocModel( void ) {
cm_model_t *model;
model = new cm_model_t;
model->contents = 0;
model->isConvex = false;
model->maxVertices = 0;
model->numVertices = 0;
model->vertices = NULL;
model->maxEdges = 0;
model->numEdges = 0;
model->edges= NULL;
model->node = NULL;
model->nodeBlocks = NULL;
model->polygonRefBlocks = NULL;
model->brushRefBlocks = NULL;
model->polygonBlock = NULL;
model->brushBlock = NULL;
model->numPolygons = model->polygonMemory =
model->numBrushes = model->brushMemory =
model->numNodes = model->numBrushRefs =
model->numPolygonRefs = model->numInternalEdges =
model->numSharpEdges = model->numRemovedPolys =
model->numMergedPolys = model->usedMemory = 0;
return model;
}
/*
================
idCollisionModelManagerLocal::AllocNode
================
*/
cm_node_t *idCollisionModelManagerLocal::AllocNode( cm_model_t *model, int blockSize ) {
int i;
cm_node_t *node;
cm_nodeBlock_t *nodeBlock;
if ( !model->nodeBlocks || !model->nodeBlocks->nextNode ) {
nodeBlock = (cm_nodeBlock_t *) Mem_ClearedAlloc( sizeof( cm_nodeBlock_t ) + blockSize * sizeof(cm_node_t) );
nodeBlock->nextNode = (cm_node_t *) ( ( (byte *) nodeBlock ) + sizeof( cm_nodeBlock_t ) );
nodeBlock->next = model->nodeBlocks;
model->nodeBlocks = nodeBlock;
node = nodeBlock->nextNode;
for ( i = 0; i < blockSize - 1; i++ ) {
node->parent = node + 1;
node = node->parent;
}
node->parent = NULL;
}
node = model->nodeBlocks->nextNode;
model->nodeBlocks->nextNode = node->parent;
node->parent = NULL;
return node;
}
/*
================
idCollisionModelManagerLocal::AllocPolygonReference
================
*/
cm_polygonRef_t *idCollisionModelManagerLocal::AllocPolygonReference( cm_model_t *model, int blockSize ) {
int i;
cm_polygonRef_t *pref;
cm_polygonRefBlock_t *prefBlock;
if ( !model->polygonRefBlocks || !model->polygonRefBlocks->nextRef ) {
prefBlock = (cm_polygonRefBlock_t *) Mem_Alloc( sizeof( cm_polygonRefBlock_t ) + blockSize * sizeof(cm_polygonRef_t) );
prefBlock->nextRef = (cm_polygonRef_t *) ( ( (byte *) prefBlock ) + sizeof( cm_polygonRefBlock_t ) );
prefBlock->next = model->polygonRefBlocks;
model->polygonRefBlocks = prefBlock;
pref = prefBlock->nextRef;
for ( i = 0; i < blockSize - 1; i++ ) {
pref->next = pref + 1;
pref = pref->next;
}
pref->next = NULL;
}
pref = model->polygonRefBlocks->nextRef;
model->polygonRefBlocks->nextRef = pref->next;
return pref;
}
/*
================
idCollisionModelManagerLocal::AllocBrushReference
================
*/
cm_brushRef_t *idCollisionModelManagerLocal::AllocBrushReference( cm_model_t *model, int blockSize ) {
int i;
cm_brushRef_t *bref;
cm_brushRefBlock_t *brefBlock;
if ( !model->brushRefBlocks || !model->brushRefBlocks->nextRef ) {
brefBlock = (cm_brushRefBlock_t *) Mem_Alloc( sizeof(cm_brushRefBlock_t) + blockSize * sizeof(cm_brushRef_t) );
brefBlock->nextRef = (cm_brushRef_t *) ( ( (byte *) brefBlock ) + sizeof(cm_brushRefBlock_t) );
brefBlock->next = model->brushRefBlocks;
model->brushRefBlocks = brefBlock;
bref = brefBlock->nextRef;
for ( i = 0; i < blockSize - 1; i++ ) {
bref->next = bref + 1;
bref = bref->next;
}
bref->next = NULL;
}
bref = model->brushRefBlocks->nextRef;
model->brushRefBlocks->nextRef = bref->next;
return bref;
}
/*
================
idCollisionModelManagerLocal::AllocPolygon
================
*/
cm_polygon_t *idCollisionModelManagerLocal::AllocPolygon( cm_model_t *model, int numEdges ) {
cm_polygon_t *poly;
int size;
size = sizeof( cm_polygon_t ) + ( numEdges - 1 ) * sizeof( poly->edges[0] );
model->numPolygons++;
model->polygonMemory += size;
if ( model->polygonBlock && model->polygonBlock->bytesRemaining >= size ) {
poly = (cm_polygon_t *) model->polygonBlock->next;
model->polygonBlock->next += size;
model->polygonBlock->bytesRemaining -= size;
} else {
poly = (cm_polygon_t *) Mem_Alloc( size );
}
return poly;
}
/*
================
idCollisionModelManagerLocal::AllocBrush
================
*/
cm_brush_t *idCollisionModelManagerLocal::AllocBrush( cm_model_t *model, int numPlanes ) {
cm_brush_t *brush;
int size;
size = sizeof( cm_brush_t ) + ( numPlanes - 1 ) * sizeof( brush->planes[0] );
model->numBrushes++;
model->brushMemory += size;
if ( model->brushBlock && model->brushBlock->bytesRemaining >= size ) {
brush = (cm_brush_t *) model->brushBlock->next;
model->brushBlock->next += size;
model->brushBlock->bytesRemaining -= size;
} else {
brush = (cm_brush_t *) Mem_Alloc( size );
}
return brush;
}
/*
================
idCollisionModelManagerLocal::AddPolygonToNode
================
*/
void idCollisionModelManagerLocal::AddPolygonToNode( cm_model_t *model, cm_node_t *node, cm_polygon_t *p ) {
cm_polygonRef_t *pref;
pref = AllocPolygonReference( model, model->numPolygonRefs < REFERENCE_BLOCK_SIZE_SMALL ? REFERENCE_BLOCK_SIZE_SMALL : REFERENCE_BLOCK_SIZE_LARGE );
pref->p = p;
pref->next = node->polygons;
node->polygons = pref;
model->numPolygonRefs++;
}
/*
================
idCollisionModelManagerLocal::AddBrushToNode
================
*/
void idCollisionModelManagerLocal::AddBrushToNode( cm_model_t *model, cm_node_t *node, cm_brush_t *b ) {
cm_brushRef_t *bref;
bref = AllocBrushReference( model, model->numBrushRefs < REFERENCE_BLOCK_SIZE_SMALL ? REFERENCE_BLOCK_SIZE_SMALL : REFERENCE_BLOCK_SIZE_LARGE );
bref->b = b;
bref->next = node->brushes;
node->brushes = bref;
model->numBrushRefs++;
}
/*
================
idCollisionModelManagerLocal::SetupTrmModelStructure
================
*/
void idCollisionModelManagerLocal::SetupTrmModelStructure( void ) {
int i;
cm_node_t *node;
cm_model_t *model;
// setup model
model = AllocModel();
assert( models );
models[MAX_SUBMODELS] = model;
// create node to hold the collision data
node = (cm_node_t *) AllocNode( model, 1 );
node->planeType = -1;
model->node = node;
// allocate vertex and edge arrays
model->numVertices = 0;
model->maxVertices = MAX_TRACEMODEL_VERTS;
model->vertices = (cm_vertex_t *) Mem_ClearedAlloc( model->maxVertices * sizeof(cm_vertex_t) );
model->numEdges = 0;
model->maxEdges = MAX_TRACEMODEL_EDGES+1;
model->edges = (cm_edge_t *) Mem_ClearedAlloc( model->maxEdges * sizeof(cm_edge_t) );
// create a material for the trace model polygons
trmMaterial = declManager->FindMaterial( "_tracemodel", false );
if ( !trmMaterial ) {
common->FatalError( "_tracemodel material not found" );
}
// allocate polygons
for ( i = 0; i < MAX_TRACEMODEL_POLYS; i++ ) {
trmPolygons[i] = AllocPolygonReference( model, MAX_TRACEMODEL_POLYS );
trmPolygons[i]->p = AllocPolygon( model, MAX_TRACEMODEL_POLYEDGES );
trmPolygons[i]->p->bounds.Clear();
trmPolygons[i]->p->plane.Zero();
trmPolygons[i]->p->checkcount = 0;
trmPolygons[i]->p->contents = -1; // all contents
trmPolygons[i]->p->material = trmMaterial;
trmPolygons[i]->p->numEdges = 0;
}
// allocate brush for position test
trmBrushes[0] = AllocBrushReference( model, 1 );
trmBrushes[0]->b = AllocBrush( model, MAX_TRACEMODEL_POLYS );
trmBrushes[0]->b->primitiveNum = 0;
trmBrushes[0]->b->bounds.Clear();
trmBrushes[0]->b->checkcount = 0;
trmBrushes[0]->b->contents = -1; // all contents
trmBrushes[0]->b->numPlanes = 0;
}
/*
================
idCollisionModelManagerLocal::SetupTrmModel
Trace models (item boxes, etc) are converted to collision models on the fly, using the last model slot
as a reusable temporary buffer
================
*/
cmHandle_t idCollisionModelManagerLocal::SetupTrmModel( const idTraceModel &trm, const idMaterial *material ) {
int i, j;
cm_vertex_t *vertex;
cm_edge_t *edge;
cm_polygon_t *poly;
cm_model_t *model;
const traceModelVert_t *trmVert;
const traceModelEdge_t *trmEdge;
const traceModelPoly_t *trmPoly;
assert( models );
if ( material == NULL ) {
material = trmMaterial;
}
model = models[MAX_SUBMODELS];
model->node->brushes = NULL;
model->node->polygons = NULL;
// if not a valid trace model
if ( trm.type == TRM_INVALID || !trm.numPolys ) {
return TRACE_MODEL_HANDLE;
}
// vertices
model->numVertices = trm.numVerts;
vertex = model->vertices;
trmVert = trm.verts;
for ( i = 0; i < trm.numVerts; i++, vertex++, trmVert++ ) {
vertex->p = *trmVert;
vertex->sideSet = 0;
}
// edges
model->numEdges = trm.numEdges;
edge = model->edges + 1;
trmEdge = trm.edges + 1;
for ( i = 0; i < trm.numEdges; i++, edge++, trmEdge++ ) {
edge->vertexNum[0] = trmEdge->v[0];
edge->vertexNum[1] = trmEdge->v[1];
edge->normal = trmEdge->normal;
edge->internal = false;
edge->sideSet = 0;
}
// polygons
model->numPolygons = trm.numPolys;
trmPoly = trm.polys;
for ( i = 0; i < trm.numPolys; i++, trmPoly++ ) {
poly = trmPolygons[i]->p;
poly->numEdges = trmPoly->numEdges;
for ( j = 0; j < trmPoly->numEdges; j++ ) {
poly->edges[j] = trmPoly->edges[j];
}
poly->plane.SetNormal( trmPoly->normal );
poly->plane.SetDist( trmPoly->dist );
poly->bounds = trmPoly->bounds;
poly->material = material;
// link polygon at node
trmPolygons[i]->next = model->node->polygons;
model->node->polygons = trmPolygons[i];
}
// if the trace model is convex
if ( trm.isConvex ) {
// setup brush for position test
trmBrushes[0]->b->numPlanes = trm.numPolys;
for ( i = 0; i < trm.numPolys; i++ ) {
trmBrushes[0]->b->planes[i] = trmPolygons[i]->p->plane;
}
trmBrushes[0]->b->bounds = trm.bounds;
// link brush at node
trmBrushes[0]->next = model->node->brushes;
model->node->brushes = trmBrushes[0];
}
// model bounds
model->bounds = trm.bounds;
// convex
model->isConvex = trm.isConvex;
return TRACE_MODEL_HANDLE;
}
/*
===============================================================================
Optimisation, removal of polygons contained within brushes or solid
===============================================================================
*/
/*
============
idCollisionModelManagerLocal::R_ChoppedAwayByProcBSP
============
*/
int idCollisionModelManagerLocal::R_ChoppedAwayByProcBSP( int nodeNum, idFixedWinding *w, const idVec3 &normal, const idVec3 &origin, const float radius ) {
int res;
idFixedWinding back;
cm_procNode_t *node;
float dist;
do {
node = procNodes + nodeNum;
dist = node->plane.Normal() * origin + node->plane[3];
if ( dist > radius ) {
res = SIDE_FRONT;
}
else if ( dist < -radius ) {
res = SIDE_BACK;
}
else {
res = w->Split( &back, node->plane, CHOP_EPSILON );
}
if ( res == SIDE_FRONT ) {
nodeNum = node->children[0];
}
else if ( res == SIDE_BACK ) {
nodeNum = node->children[1];
}
else if ( res == SIDE_ON ) {
// continue with the side the winding faces
if ( node->plane.Normal() * normal > 0.0f ) {
nodeNum = node->children[0];
}
else {
nodeNum = node->children[1];
}
}
else {
// if either node is not solid
if ( node->children[0] < 0 || node->children[1] < 0 ) {
return false;
}
// only recurse if the node is not solid
if ( node->children[1] > 0 ) {
if ( !R_ChoppedAwayByProcBSP( node->children[1], &back, normal, origin, radius ) ) {
return false;
}
}
nodeNum = node->children[0];
}
} while ( nodeNum > 0 );
if ( nodeNum < 0 ) {
return false;
}
return true;
}
/*
============
idCollisionModelManagerLocal::ChoppedAwayByProcBSP
============
*/
int idCollisionModelManagerLocal::ChoppedAwayByProcBSP( const idFixedWinding &w, const idPlane &plane, int contents ) {
idFixedWinding neww;
idBounds bounds;
float radius;
idVec3 origin;
// if the .proc file has no BSP tree
if ( procNodes == NULL ) {
return false;
}
// don't chop if the polygon is not solid
if ( !(contents & CONTENTS_SOLID) ) {
return false;
}
// make a local copy of the winding
neww = w;
neww.GetBounds( bounds );
origin = (bounds[1] - bounds[0]) * 0.5f;
radius = origin.Length() + CHOP_EPSILON;
origin = bounds[0] + origin;
//
return R_ChoppedAwayByProcBSP( 0, &neww, plane.Normal(), origin, radius );
}
/*
=============
idCollisionModelManagerLocal::ChopWindingWithBrush
returns the least number of winding fragments outside the brush
=============
*/
void idCollisionModelManagerLocal::ChopWindingListWithBrush( cm_windingList_t *list, cm_brush_t *b ) {
int i, k, res, startPlane, planeNum, bestNumWindings;
idFixedWinding back, front;
idPlane plane;
bool chopped;
int sidedness[MAX_POINTS_ON_WINDING];
float dist;
if ( b->numPlanes > MAX_POINTS_ON_WINDING ) {
return;
}
// get sidedness for the list of windings
for ( i = 0; i < b->numPlanes; i++ ) {
plane = -b->planes[i];
dist = plane.Distance( list->origin );
if ( dist > list->radius ) {
sidedness[i] = SIDE_FRONT;
}
else if ( dist < -list->radius ) {
sidedness[i] = SIDE_BACK;
}
else {
sidedness[i] = list->bounds.PlaneSide( plane );
if ( sidedness[i] == PLANESIDE_FRONT ) {
sidedness[i] = SIDE_FRONT;
}
else if ( sidedness[i] == PLANESIDE_BACK ) {
sidedness[i] = SIDE_BACK;
}
else {
sidedness[i] = SIDE_CROSS;
}
}
}
cm_outList->numWindings = 0;
for ( k = 0; k < list->numWindings; k++ ) {
//
startPlane = 0;
bestNumWindings = 1 + b->numPlanes;
chopped = false;
do {
front = list->w[k];
cm_tmpList->numWindings = 0;
for ( planeNum = startPlane, i = 0; i < b->numPlanes; i++, planeNum++ ) {
if ( planeNum >= b->numPlanes ) {
planeNum = 0;
}
res = sidedness[planeNum];
if ( res == SIDE_CROSS ) {
plane = -b->planes[planeNum];
res = front.Split( &back, plane, CHOP_EPSILON );
}
// NOTE: disabling this can create gaps at places where Z-fighting occurs
// Z-fighting should not occur but what if there is a decal brush side
// with exactly the same size as another brush side ?
// only leave windings on a brush if the winding plane and brush side plane face the same direction
if ( res == SIDE_ON && list->primitiveNum >= 0 && (list->normal * b->planes[planeNum].Normal()) > 0 ) {
// return because all windings in the list will be on this brush side plane
return;
}
if ( res == SIDE_BACK ) {
if ( cm_outList->numWindings >= MAX_WINDING_LIST ) {
common->Warning( "idCollisionModelManagerLocal::ChopWindingWithBrush: primitive %d more than %d windings", list->primitiveNum, MAX_WINDING_LIST );
return;
}
// winding and brush didn't intersect, store the original winding
cm_outList->w[cm_outList->numWindings] = list->w[k];
cm_outList->numWindings++;
chopped = false;
break;
}
if ( res == SIDE_CROSS ) {
if ( cm_tmpList->numWindings >= MAX_WINDING_LIST ) {
common->Warning( "idCollisionModelManagerLocal::ChopWindingWithBrush: primitive %d more than %d windings", list->primitiveNum, MAX_WINDING_LIST );
return;
}
// store the front winding in the temporary list
cm_tmpList->w[cm_tmpList->numWindings] = back;
cm_tmpList->numWindings++;
chopped = true;
}
// if already found a start plane which generates less fragments
if ( cm_tmpList->numWindings >= bestNumWindings ) {
break;
}
}
// find the best start plane to get the least number of fragments outside the brush
if ( cm_tmpList->numWindings < bestNumWindings ) {
bestNumWindings = cm_tmpList->numWindings;
// store windings from temporary list in the out list
for ( i = 0; i < cm_tmpList->numWindings; i++ ) {
if ( cm_outList->numWindings + i >= MAX_WINDING_LIST ) {
common->Warning( "idCollisionModelManagerLocal::ChopWindingWithBrush: primitive %d more than %d windings", list->primitiveNum, MAX_WINDING_LIST );
return;
}
cm_outList->w[cm_outList->numWindings+i] = cm_tmpList->w[i];
}
// if only one winding left then we can't do any better
if ( bestNumWindings == 1 ) {
break;
}
}
// try the next start plane
startPlane++;
} while ( chopped && startPlane < b->numPlanes );
//
if ( chopped ) {
cm_outList->numWindings += bestNumWindings;
}
}
for ( k = 0; k < cm_outList->numWindings; k++ ) {
list->w[k] = cm_outList->w[k];
}
list->numWindings = cm_outList->numWindings;
}
/*
============
idCollisionModelManagerLocal::R_ChopWindingListWithTreeBrushes
============
*/
void idCollisionModelManagerLocal::R_ChopWindingListWithTreeBrushes( cm_windingList_t *list, cm_node_t *node ) {
int i;
cm_brushRef_t *bref;
cm_brush_t *b;
while( 1 ) {
for ( bref = node->brushes; bref; bref = bref->next ) {
b = bref->b;
// if we checked this brush already
if ( b->checkcount == checkCount ) {
continue;
}
b->checkcount = checkCount;
// if the windings in the list originate from this brush
if ( b->primitiveNum == list->primitiveNum ) {
continue;
}
// if brush has a different contents
if ( b->contents != list->contents ) {
continue;
}
// brush bounds and winding list bounds should overlap
for ( i = 0; i < 3; i++ ) {
if ( list->bounds[0][i] > b->bounds[1][i] ) {
break;
}
if ( list->bounds[1][i] < b->bounds[0][i] ) {
break;
}
}
if ( i < 3 ) {
continue;
}
// chop windings in the list with brush
ChopWindingListWithBrush( list, b );
// if all windings are chopped away we're done
if ( !list->numWindings ) {
return;
}
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
if ( list->bounds[0][node->planeType] > node->planeDist ) {
node = node->children[0];
}
else if ( list->bounds[1][node->planeType] < node->planeDist ) {
node = node->children[1];
}
else {
R_ChopWindingListWithTreeBrushes( list, node->children[1] );
if ( !list->numWindings ) {
return;
}
node = node->children[0];
}
}
}
/*
============
idCollisionModelManagerLocal::WindingOutsideBrushes
Returns one winding which is not fully contained in brushes.
We always favor less polygons over a stitched world.
If the winding is partly contained and the contained pieces can be chopped off
without creating multiple winding fragments then the chopped winding is returned.
============
*/
idFixedWinding *idCollisionModelManagerLocal::WindingOutsideBrushes( idFixedWinding *w, const idPlane &plane, int contents, int primitiveNum, cm_node_t *headNode ) {
int i, windingLeft;
cm_windingList->bounds.Clear();
for ( i = 0; i < w->GetNumPoints(); i++ ) {
cm_windingList->bounds.AddPoint( (*w)[i].ToVec3() );
}
cm_windingList->origin = (cm_windingList->bounds[1] - cm_windingList->bounds[0]) * 0.5;
cm_windingList->radius = cm_windingList->origin.Length() + CHOP_EPSILON;
cm_windingList->origin = cm_windingList->bounds[0] + cm_windingList->origin;
cm_windingList->bounds[0] -= idVec3( CHOP_EPSILON, CHOP_EPSILON, CHOP_EPSILON );
cm_windingList->bounds[1] += idVec3( CHOP_EPSILON, CHOP_EPSILON, CHOP_EPSILON );
cm_windingList->w[0] = *w;
cm_windingList->numWindings = 1;
cm_windingList->normal = plane.Normal();
cm_windingList->contents = contents;
cm_windingList->primitiveNum = primitiveNum;
//
checkCount++;
R_ChopWindingListWithTreeBrushes( cm_windingList, headNode );
//
if ( !cm_windingList->numWindings ) {
return NULL;
}
if ( cm_windingList->numWindings == 1 ) {
return &cm_windingList->w[0];
}
// if not the world model
if ( numModels != 0 ) {
return w;
}
// check if winding fragments would be chopped away by the proc BSP tree
windingLeft = -1;
for ( i = 0; i < cm_windingList->numWindings; i++ ) {
if ( !ChoppedAwayByProcBSP( cm_windingList->w[i], plane, contents ) ) {
if ( windingLeft >= 0 ) {
return w;
}
windingLeft = i;
}
}
if ( windingLeft >= 0 ) {
return &cm_windingList->w[windingLeft];
}
return NULL;
}
/*
===============================================================================
Merging polygons
===============================================================================
*/
/*
=============
idCollisionModelManagerLocal::ReplacePolygons
does not allow for a node to have multiple references to the same polygon
=============
*/
void idCollisionModelManagerLocal::ReplacePolygons( cm_model_t *model, cm_node_t *node, cm_polygon_t *p1, cm_polygon_t *p2, cm_polygon_t *newp ) {
cm_polygonRef_t *pref, *lastpref, *nextpref;
cm_polygon_t *p;
bool linked;
while( 1 ) {
linked = false;
lastpref = NULL;
for ( pref = node->polygons; pref; pref = nextpref ) {
nextpref = pref->next;
//
p = pref->p;
// if this polygon reference should change
if ( p == p1 || p == p2 ) {
// if the new polygon is already linked at this node
if ( linked ) {
if ( lastpref ) {
lastpref->next = nextpref;
}
else {
node->polygons = nextpref;
}
FreePolygonReference( pref );
model->numPolygonRefs--;
}
else {
pref->p = newp;
linked = true;
lastpref = pref;
}
}
else {
lastpref = pref;
}
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
if ( p1->bounds[0][node->planeType] > node->planeDist && p2->bounds[0][node->planeType] > node->planeDist ) {
node = node->children[0];
}
else if ( p1->bounds[1][node->planeType] < node->planeDist && p2->bounds[1][node->planeType] < node->planeDist ) {
node = node->children[1];
}
else {
ReplacePolygons( model, node->children[1], p1, p2, newp );
node = node->children[0];
}
}
}
/*
=============
idCollisionModelManagerLocal::TryMergePolygons
=============
*/
#define CONTINUOUS_EPSILON 0.005f
#define NORMAL_EPSILON 0.01f
cm_polygon_t *idCollisionModelManagerLocal::TryMergePolygons( cm_model_t *model, cm_polygon_t *p1, cm_polygon_t *p2 ) {
int i, j, nexti, prevj;
int p1BeforeShare, p1AfterShare, p2BeforeShare, p2AfterShare;
int newEdges[CM_MAX_POLYGON_EDGES], newNumEdges;
int edgeNum, edgeNum1, edgeNum2, newEdgeNum1, newEdgeNum2;
cm_edge_t *edge;
cm_polygon_t *newp;
idVec3 delta, normal;
float dot;
bool keep1, keep2;
if ( p1->material != p2->material ) {
return NULL;
}
if ( idMath::Fabs( p1->plane.Dist() - p2->plane.Dist() ) > NORMAL_EPSILON ) {
return NULL;
}
for ( i = 0; i < 3; i++ ) {
if ( idMath::Fabs( p1->plane.Normal()[i] - p2->plane.Normal()[i] ) > NORMAL_EPSILON ) {
return NULL;
}
if ( p1->bounds[0][i] > p2->bounds[1][i] ) {
return NULL;
}
if ( p1->bounds[1][i] < p2->bounds[0][i] ) {
return NULL;
}
}
// this allows for merging polygons with multiple shared edges
// polygons with multiple shared edges probably never occur tho ;)
p1BeforeShare = p1AfterShare = p2BeforeShare = p2AfterShare = -1;
for ( i = 0; i < p1->numEdges; i++ ) {
nexti = (i+1)%p1->numEdges;
for ( j = 0; j < p2->numEdges; j++ ) {
prevj = (j+p2->numEdges-1)%p2->numEdges;
//
if ( abs(p1->edges[i]) != abs(p2->edges[j]) ) {
// if the next edge of p1 and the previous edge of p2 are the same
if ( abs(p1->edges[nexti]) == abs(p2->edges[prevj]) ) {
// if both polygons don't use the edge in the same direction
if ( p1->edges[nexti] != p2->edges[prevj] ) {
p1BeforeShare = i;
p2AfterShare = j;
}
break;
}
}
// if both polygons don't use the edge in the same direction
else if ( p1->edges[i] != p2->edges[j] ) {
// if the next edge of p1 and the previous edge of p2 are not the same
if ( abs(p1->edges[nexti]) != abs(p2->edges[prevj]) ) {
p1AfterShare = nexti;
p2BeforeShare = prevj;
break;
}
}
}
}
if ( p1BeforeShare < 0 || p1AfterShare < 0 || p2BeforeShare < 0 || p2AfterShare < 0 ) {
return NULL;
}
// check if the new polygon would still be convex
edgeNum = p1->edges[p1BeforeShare];
edge = model->edges + abs(edgeNum);
delta = model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p -
model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
normal = p1->plane.Normal().Cross( delta );
normal.Normalize();
edgeNum = p2->edges[p2AfterShare];
edge = model->edges + abs(edgeNum);
delta = model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p -
model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
dot = delta * normal;
if (dot < -CONTINUOUS_EPSILON)
return NULL; // not a convex polygon
keep1 = (bool)(dot > CONTINUOUS_EPSILON);
edgeNum = p2->edges[p2BeforeShare];
edge = model->edges + abs(edgeNum);
delta = model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p -
model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
normal = p1->plane.Normal().Cross( delta );
normal.Normalize();
edgeNum = p1->edges[p1AfterShare];
edge = model->edges + abs(edgeNum);
delta = model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p -
model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
dot = delta * normal;
if (dot < -CONTINUOUS_EPSILON)
return NULL; // not a convex polygon
keep2 = (bool)(dot > CONTINUOUS_EPSILON);
newEdgeNum1 = newEdgeNum2 = 0;
// get new edges if we need to replace colinear ones
if ( !keep1 ) {
edgeNum1 = p1->edges[p1BeforeShare];
edgeNum2 = p2->edges[p2AfterShare];
GetEdge( model, model->vertices[model->edges[abs(edgeNum1)].vertexNum[INTSIGNBITSET(edgeNum1)]].p,
model->vertices[model->edges[abs(edgeNum2)].vertexNum[INTSIGNBITNOTSET(edgeNum2)]].p,
&newEdgeNum1, -1 );
if ( newEdgeNum1 == 0 ) {
keep1 = true;
}
}
if ( !keep2 ) {
edgeNum1 = p2->edges[p2BeforeShare];
edgeNum2 = p1->edges[p1AfterShare];
GetEdge( model, model->vertices[model->edges[abs(edgeNum1)].vertexNum[INTSIGNBITSET(edgeNum1)]].p,
model->vertices[model->edges[abs(edgeNum2)].vertexNum[INTSIGNBITNOTSET(edgeNum2)]].p,
&newEdgeNum2, -1 );
if ( newEdgeNum2 == 0 ) {
keep2 = true;
}
}
// set edges for new polygon
newNumEdges = 0;
if ( !keep2 ) {
newEdges[newNumEdges++] = newEdgeNum2;
}
if ( p1AfterShare < p1BeforeShare ) {
for ( i = p1AfterShare + (!keep2); i <= p1BeforeShare - (!keep1); i++ ) {
newEdges[newNumEdges++] = p1->edges[i];
}
}
else {
for ( i = p1AfterShare + (!keep2); i < p1->numEdges; i++ ) {
newEdges[newNumEdges++] = p1->edges[i];
}
for ( i = 0; i <= p1BeforeShare - (!keep1); i++ ) {
newEdges[newNumEdges++] = p1->edges[i];
}
}
if ( !keep1 ) {
newEdges[newNumEdges++] = newEdgeNum1;
}
if ( p2AfterShare < p2BeforeShare ) {
for ( i = p2AfterShare + (!keep1); i <= p2BeforeShare - (!keep2); i++ ) {
newEdges[newNumEdges++] = p2->edges[i];
}
}
else {
for ( i = p2AfterShare + (!keep1); i < p2->numEdges; i++ ) {
newEdges[newNumEdges++] = p2->edges[i];
}
for ( i = 0; i <= p2BeforeShare - (!keep2); i++ ) {
newEdges[newNumEdges++] = p2->edges[i];
}
}
newp = AllocPolygon( model, newNumEdges );
memcpy( newp, p1, sizeof(cm_polygon_t) );
memcpy( newp->edges, newEdges, newNumEdges * sizeof(int) );
newp->numEdges = newNumEdges;
newp->checkcount = 0;
// increase usage count for the edges of this polygon
for ( i = 0; i < newp->numEdges; i++ ) {
if ( !keep1 && newp->edges[i] == newEdgeNum1 ) {
continue;
}
if ( !keep2 && newp->edges[i] == newEdgeNum2 ) {
continue;
}
model->edges[abs(newp->edges[i])].numUsers++;
}
// create new bounds from the merged polygons
newp->bounds = p1->bounds + p2->bounds;
return newp;
}
/*
=============
idCollisionModelManagerLocal::MergePolygonWithTreePolygons
=============
*/
bool idCollisionModelManagerLocal::MergePolygonWithTreePolygons( cm_model_t *model, cm_node_t *node, cm_polygon_t *polygon ) {
int i;
cm_polygonRef_t *pref;
cm_polygon_t *p, *newp;
while( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
//
if ( p == polygon ) {
continue;
}
//
newp = TryMergePolygons( model, polygon, p );
// if polygons were merged
if ( newp ) {
model->numMergedPolys++;
// replace links to the merged polygons with links to the new polygon
ReplacePolygons( model, model->node, polygon, p, newp );
// decrease usage count for edges of both merged polygons
for ( i = 0; i < polygon->numEdges; i++ ) {
model->edges[abs(polygon->edges[i])].numUsers--;
}
for ( i = 0; i < p->numEdges; i++ ) {
model->edges[abs(p->edges[i])].numUsers--;
}
// free merged polygons
FreePolygon( model, polygon );
FreePolygon( model, p );
return true;
}
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
if ( polygon->bounds[0][node->planeType] > node->planeDist ) {
node = node->children[0];
}
else if ( polygon->bounds[1][node->planeType] < node->planeDist ) {
node = node->children[1];
}
else {
if ( MergePolygonWithTreePolygons( model, node->children[1], polygon ) ) {
return true;
}
node = node->children[0];
}
}
return false;
}
/*
=============
idCollisionModelManagerLocal::MergeTreePolygons
try to merge any two polygons with the same surface flags and the same contents
=============
*/
void idCollisionModelManagerLocal::MergeTreePolygons( cm_model_t *model, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
bool merge;
while( 1 ) {
do {
merge = false;
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
// if we checked this polygon already
if ( p->checkcount == checkCount ) {
continue;
}
p->checkcount = checkCount;
// try to merge this polygon with other polygons in the tree
if ( MergePolygonWithTreePolygons( model, model->node, p ) ) {
merge = true;
break;
}
}
} while (merge);
// if leaf node
if ( node->planeType == -1 ) {
break;
}
MergeTreePolygons( model, node->children[1] );
node = node->children[0];
}
}
/*
===============================================================================
Find internal edges
===============================================================================
*/
/*
if (two polygons have the same contents)
if (the normals of the two polygon planes face towards each other)
if (an edge is shared between the polygons)
if (the edge is not shared in the same direction)
then this is an internal edge
else
if (this edge is on the plane of the other polygon)
if (this edge if fully inside the winding of the other polygon)
then this edge is an internal edge
*/
/*
=============
idCollisionModelManagerLocal::PointInsidePolygon
=============
*/
bool idCollisionModelManagerLocal::PointInsidePolygon( cm_model_t *model, cm_polygon_t *p, idVec3 &v ) {
int i, edgeNum;
idVec3 *v1, *v2, dir1, dir2, vec;
cm_edge_t *edge;
for ( i = 0; i < p->numEdges; i++ ) {
edgeNum = p->edges[i];
edge = model->edges + abs(edgeNum);
//
v1 = &model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
v2 = &model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p;
dir1 = (*v2) - (*v1);
vec = v - (*v1);
dir2 = dir1.Cross( p->plane.Normal() );
if ( vec * dir2 > VERTEX_EPSILON ) {
return false;
}
}
return true;
}
/*
=============
idCollisionModelManagerLocal::FindInternalEdgesOnPolygon
=============
*/
void idCollisionModelManagerLocal::FindInternalEdgesOnPolygon( cm_model_t *model, cm_polygon_t *p1, cm_polygon_t *p2 ) {
int i, j, k, edgeNum;
cm_edge_t *edge;
idVec3 *v1, *v2, dir1, dir2;
float d;
// bounds of polygons should overlap or touch
for ( i = 0; i < 3; i++ ) {
if ( p1->bounds[0][i] > p2->bounds[1][i] ) {
return;
}
if ( p1->bounds[1][i] < p2->bounds[0][i] ) {
return;
}
}
//
// FIXME: doubled geometry causes problems
//
for ( i = 0; i < p1->numEdges; i++ ) {
edgeNum = p1->edges[i];
edge = model->edges + abs(edgeNum);
// if already an internal edge
if ( edge->internal ) {
continue;
}
//
v1 = &model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
v2 = &model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p;
// if either of the two vertices is outside the bounds of the other polygon
for ( k = 0; k < 3; k++ ) {
d = p2->bounds[1][k] + VERTEX_EPSILON;
if ( (*v1)[k] > d || (*v2)[k] > d ) {
break;
}
d = p2->bounds[0][k] - VERTEX_EPSILON;
if ( (*v1)[k] < d || (*v2)[k] < d ) {
break;
}
}
if ( k < 3 ) {
continue;
}
//
k = abs(edgeNum);
for ( j = 0; j < p2->numEdges; j++ ) {
if ( k == abs(p2->edges[j]) ) {
break;
}
}
// if the edge is shared between the two polygons
if ( j < p2->numEdges ) {
// if the edge is used by more than 2 polygons
if ( edge->numUsers > 2 ) {
// could still be internal but we'd have to test all polygons using the edge
continue;
}
// if the edge goes in the same direction for both polygons
if ( edgeNum == p2->edges[j] ) {
// the polygons can lay ontop of each other or one can obscure the other
continue;
}
}
// the edge was not shared
else {
// both vertices should be on the plane of the other polygon
d = p2->plane.Distance( *v1 );
if ( idMath::Fabs(d) > VERTEX_EPSILON ) {
continue;
}
d = p2->plane.Distance( *v2 );
if ( idMath::Fabs(d) > VERTEX_EPSILON ) {
continue;
}
}
// the two polygon plane normals should face towards each other
dir1 = (*v2) - (*v1);
dir2 = p1->plane.Normal().Cross( dir1 );
if ( p2->plane.Normal() * dir2 < 0 ) {
//continue;
break;
}
// if the edge was not shared
if ( j >= p2->numEdges ) {
// both vertices of the edge should be inside the winding of the other polygon
if ( !PointInsidePolygon( model, p2, *v1 ) ) {
continue;
}
if ( !PointInsidePolygon( model, p2, *v2 ) ) {
continue;
}
}
// we got another internal edge
edge->internal = true;
model->numInternalEdges++;
}
}
/*
=============
idCollisionModelManagerLocal::FindInternalPolygonEdges
=============
*/
void idCollisionModelManagerLocal::FindInternalPolygonEdges( cm_model_t *model, cm_node_t *node, cm_polygon_t *polygon ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
if ( polygon->material->GetCullType() == CT_TWO_SIDED || polygon->material->ShouldCreateBackSides() ) {
return;
}
while( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
//
// FIXME: use some sort of additional checkcount because currently
// polygons can be checked multiple times
//
// if the polygons don't have the same contents
if ( p->contents != polygon->contents ) {
continue;
}
if ( p == polygon ) {
continue;
}
FindInternalEdgesOnPolygon( model, polygon, p );
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
if ( polygon->bounds[0][node->planeType] > node->planeDist ) {
node = node->children[0];
}
else if ( polygon->bounds[1][node->planeType] < node->planeDist ) {
node = node->children[1];
}
else {
FindInternalPolygonEdges( model, node->children[1], polygon );
node = node->children[0];
}
}
}
/*
=============
idCollisionModelManagerLocal::FindContainedEdges
=============
*/
void idCollisionModelManagerLocal::FindContainedEdges( cm_model_t *model, cm_polygon_t *p ) {
int i, edgeNum;
cm_edge_t *edge;
idFixedWinding w;
for ( i = 0; i < p->numEdges; i++ ) {
edgeNum = p->edges[i];
edge = model->edges + abs(edgeNum);
if ( edge->internal ) {
continue;
}
w.Clear();
w += model->vertices[edge->vertexNum[INTSIGNBITSET(edgeNum)]].p;
w += model->vertices[edge->vertexNum[INTSIGNBITNOTSET(edgeNum)]].p;
if ( ChoppedAwayByProcBSP( w, p->plane, p->contents ) ) {
edge->internal = true;
}
}
}
/*
=============
idCollisionModelManagerLocal::FindInternalEdges
=============
*/
void idCollisionModelManagerLocal::FindInternalEdges( cm_model_t *model, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
while( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
// if we checked this polygon already
if ( p->checkcount == checkCount ) {
continue;
}
p->checkcount = checkCount;
FindInternalPolygonEdges( model, model->node, p );
//FindContainedEdges( model, p );
}
// if leaf node
if ( node->planeType == -1 ) {
break;
}
FindInternalEdges( model, node->children[1] );
node = node->children[0];
}
}
/*
===============================================================================
Spatial subdivision
===============================================================================
*/
/*
================
CM_FindSplitter
================
*/
static int CM_FindSplitter( const cm_node_t *node, const idBounds &bounds, int *planeType, float *planeDist ) {
int i, j, type, axis[3], polyCount;
float dist, t, bestt, size[3];
cm_brushRef_t *bref;
cm_polygonRef_t *pref;
const cm_node_t *n;
bool forceSplit = false;
for ( i = 0; i < 3; i++ ) {
size[i] = bounds[1][i] - bounds[0][i];
axis[i] = i;
}
// sort on largest axis
for ( i = 0; i < 2; i++ ) {
if ( size[i] < size[i+1] ) {
t = size[i];
size[i] = size[i+1];
size[i+1] = t;
j = axis[i];
axis[i] = axis[i+1];
axis[i+1] = j;
i = -1;
}
}
// if the node is too small for further splits
if ( size[0] < MIN_NODE_SIZE ) {
polyCount = 0;
for ( pref = node->polygons; pref; pref = pref->next) {
polyCount++;
}
if ( polyCount > MAX_NODE_POLYGONS ) {
forceSplit = true;
}
}
// find an axial aligned splitter
for ( i = 0; i < 3; i++ ) {
// start with the largest axis first
type = axis[i];
bestt = size[i];
// if the node is small anough in this axis direction
if ( !forceSplit && bestt < MIN_NODE_SIZE ) {
break;
}
// find an axial splitter from the brush bounding boxes
// also try brushes from parent nodes
for ( n = node; n; n = n->parent ) {
for ( bref = n->brushes; bref; bref = bref->next) {
for ( j = 0; j < 2; j++ ) {
dist = bref->b->bounds[j][type];
// if the splitter is already used or outside node bounds
if ( dist >= bounds[1][type] || dist <= bounds[0][type] ) {
continue;
}
// find the most centered splitter
t = abs((bounds[1][type] - dist) - (dist - bounds[0][type]));
if ( t < bestt ) {
bestt = t;
*planeType = type;
*planeDist = dist;
}
}
}
}
// find an axial splitter from the polygon bounding boxes
// also try brushes from parent nodes
for ( n = node; n; n = n->parent ) {
for ( pref = n->polygons; pref; pref = pref->next) {
for ( j = 0; j < 2; j++ ) {
dist = pref->p->bounds[j][type];
// if the splitter is already used or outside node bounds
if ( dist >= bounds[1][type] || dist <= bounds[0][type] ) {
continue;
}
// find the most centered splitter
t = abs((bounds[1][type] - dist) - (dist - bounds[0][type]));
if ( t < bestt ) {
bestt = t;
*planeType = type;
*planeDist = dist;
}
}
}
}
// if we found a splitter on the largest axis
if ( bestt < size[i] ) {
// if forced split due to lots of polygons
if ( forceSplit ) {
return true;
}
// don't create splitters real close to the bounds
if ( bounds[1][type] - *planeDist > (MIN_NODE_SIZE*0.5f) &&
*planeDist - bounds[0][type] > (MIN_NODE_SIZE*0.5f) ) {
return true;
}
}
}
return false;
}
/*
================
CM_R_InsideAllChildren
================
*/
static int CM_R_InsideAllChildren( cm_node_t *node, const idBounds &bounds ) {
assert(node != NULL);
if ( node->planeType != -1 ) {
if ( bounds[0][node->planeType] >= node->planeDist ) {
return false;
}
if ( bounds[1][node->planeType] <= node->planeDist ) {
return false;
}
if ( !CM_R_InsideAllChildren( node->children[0], bounds ) ) {
return false;
}
if ( !CM_R_InsideAllChildren( node->children[1], bounds ) ) {
return false;
}
}
return true;
}
/*
================
idCollisionModelManagerLocal::R_FilterPolygonIntoTree
================
*/
void idCollisionModelManagerLocal::R_FilterPolygonIntoTree( cm_model_t *model, cm_node_t *node, cm_polygonRef_t *pref, cm_polygon_t *p ) {
assert(node != NULL);
while ( node->planeType != -1 ) {
if ( CM_R_InsideAllChildren( node, p->bounds ) ) {
break;
}
if ( p->bounds[0][node->planeType] >= node->planeDist ) {
node = node->children[0];
}
else if ( p->bounds[1][node->planeType] <= node->planeDist ) {
node = node->children[1];
}
else {
R_FilterPolygonIntoTree( model, node->children[1], NULL, p );
node = node->children[0];
}
}
if ( pref ) {
pref->next = node->polygons;
node->polygons = pref;
}
else {
AddPolygonToNode( model, node, p );
}
}
/*
================
idCollisionModelManagerLocal::R_FilterBrushIntoTree
================
*/
void idCollisionModelManagerLocal::R_FilterBrushIntoTree( cm_model_t *model, cm_node_t *node, cm_brushRef_t *pref, cm_brush_t *b ) {
assert(node != NULL);
while ( node->planeType != -1 ) {
if ( CM_R_InsideAllChildren( node, b->bounds ) ) {
break;
}
if ( b->bounds[0][node->planeType] >= node->planeDist ) {
node = node->children[0];
}
else if ( b->bounds[1][node->planeType] <= node->planeDist ) {
node = node->children[1];
}
else {
R_FilterBrushIntoTree( model, node->children[1], NULL, b );
node = node->children[0];
}
}
if ( pref ) {
pref->next = node->brushes;
node->brushes = pref;
}
else {
AddBrushToNode( model, node, b );
}
}
/*
================
idCollisionModelManagerLocal::R_CreateAxialBSPTree
a brush or polygon is linked in the node closest to the root where
the brush or polygon is inside all children
================
*/
cm_node_t *idCollisionModelManagerLocal::R_CreateAxialBSPTree( cm_model_t *model, cm_node_t *node, const idBounds &bounds ) {
int planeType;
float planeDist;
cm_polygonRef_t *pref, *nextpref, *prevpref;
cm_brushRef_t *bref, *nextbref, *prevbref;
cm_node_t *frontNode, *backNode, *n;
idBounds frontBounds, backBounds;
if ( !CM_FindSplitter( node, bounds, &planeType, &planeDist ) ) {
node->planeType = -1;
return node;
}
// create two child nodes
frontNode = AllocNode( model, NODE_BLOCK_SIZE_LARGE );
memset( frontNode, 0, sizeof(cm_node_t) );
frontNode->parent = node;
frontNode->planeType = -1;
//
backNode = AllocNode( model, NODE_BLOCK_SIZE_LARGE );
memset( backNode, 0, sizeof(cm_node_t) );
backNode->parent = node;
backNode->planeType = -1;
//
model->numNodes += 2;
// set front node bounds
frontBounds = bounds;
frontBounds[0][planeType] = planeDist;
// set back node bounds
backBounds = bounds;
backBounds[1][planeType] = planeDist;
//
node->planeType = planeType;
node->planeDist = planeDist;
node->children[0] = frontNode;
node->children[1] = backNode;
// filter polygons and brushes down the tree if necesary
for ( n = node; n; n = n->parent ) {
prevpref = NULL;
for ( pref = n->polygons; pref; pref = nextpref) {
nextpref = pref->next;
// if polygon is not inside all children
if ( !CM_R_InsideAllChildren( n, pref->p->bounds ) ) {
// filter polygon down the tree
R_FilterPolygonIntoTree( model, n, pref, pref->p );
if ( prevpref ) {
prevpref->next = nextpref;
}
else {
n->polygons = nextpref;
}
}
else {
prevpref = pref;
}
}
prevbref = NULL;
for ( bref = n->brushes; bref; bref = nextbref) {
nextbref = bref->next;
// if brush is not inside all children
if ( !CM_R_InsideAllChildren( n, bref->b->bounds ) ) {
// filter brush down the tree
R_FilterBrushIntoTree( model, n, bref, bref->b );
if ( prevbref ) {
prevbref->next = nextbref;
}
else {
n->brushes = nextbref;
}
}
else {
prevbref = bref;
}
}
}
R_CreateAxialBSPTree( model, frontNode, frontBounds );
R_CreateAxialBSPTree( model, backNode, backBounds );
return node;
}
/*
int cm_numSavedPolygonLinks;
int cm_numSavedBrushLinks;
int CM_R_CountChildren( cm_node_t *node ) {
if ( node->planeType == -1 ) {
return 0;
}
return 2 + CM_R_CountChildren(node->children[0]) + CM_R_CountChildren(node->children[1]);
}
void CM_R_TestOptimisation( cm_node_t *node ) {
int polyCount, brushCount, numChildren;
cm_polygonRef_t *pref;
cm_brushRef_t *bref;
if ( node->planeType == -1 ) {
return;
}
polyCount = 0;
for ( pref = node->polygons; pref; pref = pref->next) {
polyCount++;
}
brushCount = 0;
for ( bref = node->brushes; bref; bref = bref->next) {
brushCount++;
}
if ( polyCount || brushCount ) {
numChildren = CM_R_CountChildren( node );
cm_numSavedPolygonLinks += (numChildren - 1) * polyCount;
cm_numSavedBrushLinks += (numChildren - 1) * brushCount;
}
CM_R_TestOptimisation( node->children[0] );
CM_R_TestOptimisation( node->children[1] );
}
*/
/*
================
idCollisionModelManagerLocal::CreateAxialBSPTree
================
*/
cm_node_t *idCollisionModelManagerLocal::CreateAxialBSPTree( cm_model_t *model, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_brushRef_t *bref;
idBounds bounds;
// get head node bounds
bounds.Clear();
for ( pref = node->polygons; pref; pref = pref->next) {
bounds += pref->p->bounds;
}
for ( bref = node->brushes; bref; bref = bref->next) {
bounds += bref->b->bounds;
}
// create axial BSP tree from head node
node = R_CreateAxialBSPTree( model, node, bounds );
return node;
}
/*
===============================================================================
Raw polygon and brush data
===============================================================================
*/
/*
================
idCollisionModelManagerLocal::SetupHash
================
*/
void idCollisionModelManagerLocal::SetupHash( void ) {
if ( !cm_vertexHash ) {
cm_vertexHash = new idHashIndex( VERTEX_HASH_SIZE, 1024 );
}
if ( !cm_edgeHash ) {
cm_edgeHash = new idHashIndex( EDGE_HASH_SIZE, 1024 );
}
// init variables used during loading and optimization
if ( !cm_windingList ) {
cm_windingList = new cm_windingList_t;
}
if ( !cm_outList ) {
cm_outList = new cm_windingList_t;
}
if ( !cm_tmpList ) {
cm_tmpList = new cm_windingList_t;
}
}
/*
================
idCollisionModelManagerLocal::ShutdownHash
================
*/
void idCollisionModelManagerLocal::ShutdownHash( void ) {
delete cm_vertexHash;
cm_vertexHash = NULL;
delete cm_edgeHash;
cm_edgeHash = NULL;
delete cm_tmpList;
cm_tmpList = NULL;
delete cm_outList;
cm_outList = NULL;
delete cm_windingList;
cm_windingList = NULL;
}
/*
================
idCollisionModelManagerLocal::ClearHash
================
*/
void idCollisionModelManagerLocal::ClearHash( idBounds &bounds ) {
int i;
float f, max;
cm_vertexHash->Clear();
cm_edgeHash->Clear();
cm_modelBounds = bounds;
max = bounds[1].x - bounds[0].x;
f = bounds[1].y - bounds[0].y;
if ( f > max ) {
max = f;
}
cm_vertexShift = (float) max / VERTEX_HASH_BOXSIZE;
for ( i = 0; (1<<i) < cm_vertexShift; i++ ) {
}
if ( i == 0 ) {
cm_vertexShift = 1;
}
else {
cm_vertexShift = i;
}
}
/*
================
idCollisionModelManagerLocal::HashVec
================
*/
ID_INLINE int idCollisionModelManagerLocal::HashVec(const idVec3 &vec) {
/*
int x, y;
x = (((int)(vec[0] - cm_modelBounds[0].x + 0.5 )) >> cm_vertexShift) & (VERTEX_HASH_BOXSIZE-1);
y = (((int)(vec[1] - cm_modelBounds[0].y + 0.5 )) >> cm_vertexShift) & (VERTEX_HASH_BOXSIZE-1);
assert (x >= 0 && x < VERTEX_HASH_BOXSIZE && y >= 0 && y < VERTEX_HASH_BOXSIZE);
return y * VERTEX_HASH_BOXSIZE + x;
*/
int x, y, z;
x = (((int) (vec[0] - cm_modelBounds[0].x + 0.5)) + 2) >> 2;
y = (((int) (vec[1] - cm_modelBounds[0].y + 0.5)) + 2) >> 2;
z = (((int) (vec[2] - cm_modelBounds[0].z + 0.5)) + 2) >> 2;
return (x + y * VERTEX_HASH_BOXSIZE + z) & (VERTEX_HASH_SIZE-1);
}
/*
================
idCollisionModelManagerLocal::GetVertex
================
*/
int idCollisionModelManagerLocal::GetVertex( cm_model_t *model, const idVec3 &v, int *vertexNum ) {
int i, hashKey, vn;
idVec3 vert, *p;
for (i = 0; i < 3; i++) {
if ( idMath::Fabs(v[i] - idMath::Rint(v[i])) < INTEGRAL_EPSILON )
vert[i] = idMath::Rint(v[i]);
else
vert[i] = v[i];
}
hashKey = HashVec( vert );
for (vn = cm_vertexHash->First( hashKey ); vn >= 0; vn = cm_vertexHash->Next( vn ) ) {
p = &model->vertices[vn].p;
// first compare z-axis because hash is based on x-y plane
if (idMath::Fabs(vert[2] - (*p)[2]) < VERTEX_EPSILON &&
idMath::Fabs(vert[0] - (*p)[0]) < VERTEX_EPSILON &&
idMath::Fabs(vert[1] - (*p)[1]) < VERTEX_EPSILON )
{
*vertexNum = vn;
return true;
}
}
if ( model->numVertices >= model->maxVertices ) {
cm_vertex_t *oldVertices;
// resize vertex array
model->maxVertices = (float) model->maxVertices * 1.5f + 1;
oldVertices = model->vertices;
model->vertices = (cm_vertex_t *) Mem_ClearedAlloc( model->maxVertices * sizeof(cm_vertex_t) );
memcpy( model->vertices, oldVertices, model->numVertices * sizeof(cm_vertex_t) );
Mem_Free( oldVertices );
cm_vertexHash->ResizeIndex( model->maxVertices );
}
model->vertices[model->numVertices].p = vert;
model->vertices[model->numVertices].checkcount = 0;
*vertexNum = model->numVertices;
// add vertice to hash
cm_vertexHash->Add( hashKey, model->numVertices );
//
model->numVertices++;
return false;
}
/*
================
idCollisionModelManagerLocal::GetEdge
================
*/
int idCollisionModelManagerLocal::GetEdge( cm_model_t *model, const idVec3 &v1, const idVec3 &v2, int *edgeNum, int v1num ) {
int v2num, hashKey, e;
int found, *vertexNum;
// the first edge is a dummy
if ( model->numEdges == 0 ) {
model->numEdges = 1;
}
if ( v1num != -1 ) {
found = 1;
}
else {
found = GetVertex( model, v1, &v1num );
}
found &= GetVertex( model, v2, &v2num );
// if both vertices are the same or snapped onto each other
if ( v1num == v2num ) {
*edgeNum = 0;
return true;
}
hashKey = cm_edgeHash->GenerateKey( v1num, v2num );
// if both vertices where already stored
if (found) {
for (e = cm_edgeHash->First( hashKey ); e >= 0; e = cm_edgeHash->Next( e ) )
{
// NOTE: only allow at most two users that use the edge in opposite direction
if ( model->edges[e].numUsers != 1 ) {
continue;
}
vertexNum = model->edges[e].vertexNum;
if ( vertexNum[0] == v2num ) {
if ( vertexNum[1] == v1num ) {
// negative for a reversed edge
*edgeNum = -e;
break;
}
}
/*
else if ( vertexNum[0] == v1num ) {
if ( vertexNum[1] == v2num ) {
*edgeNum = e;
break;
}
}
*/
}
// if edge found in hash
if ( e >= 0 ) {
model->edges[e].numUsers++;
return true;
}
}
if ( model->numEdges >= model->maxEdges ) {
cm_edge_t *oldEdges;
// resize edge array
model->maxEdges = (float) model->maxEdges * 1.5f + 1;
oldEdges = model->edges;
model->edges = (cm_edge_t *) Mem_ClearedAlloc( model->maxEdges * sizeof(cm_edge_t) );
memcpy( model->edges, oldEdges, model->numEdges * sizeof(cm_edge_t) );
Mem_Free( oldEdges );
cm_edgeHash->ResizeIndex( model->maxEdges );
}
// setup edge
model->edges[model->numEdges].vertexNum[0] = v1num;
model->edges[model->numEdges].vertexNum[1] = v2num;
model->edges[model->numEdges].internal = false;
model->edges[model->numEdges].checkcount = 0;
model->edges[model->numEdges].numUsers = 1; // used by one polygon atm
model->edges[model->numEdges].normal.Zero();
//
*edgeNum = model->numEdges;
// add edge to hash
cm_edgeHash->Add( hashKey, model->numEdges );
model->numEdges++;
return false;
}
/*
================
idCollisionModelManagerLocal::CreatePolygon
================
*/
void idCollisionModelManagerLocal::CreatePolygon( cm_model_t *model, idFixedWinding *w, const idPlane &plane, const idMaterial *material, int primitiveNum ) {
int i, j, edgeNum, v1num;
int numPolyEdges, polyEdges[MAX_POINTS_ON_WINDING];
idBounds bounds;
cm_polygon_t *p;
// turn the winding into a sequence of edges
numPolyEdges = 0;
v1num = -1; // first vertex unknown
for ( i = 0, j = 1; i < w->GetNumPoints(); i++, j++ ) {
if ( j >= w->GetNumPoints() ) {
j = 0;
}
GetEdge( model, (*w)[i].ToVec3(), (*w)[j].ToVec3(), &polyEdges[numPolyEdges], v1num );
if ( polyEdges[numPolyEdges] ) {
// last vertex of this edge is the first vertex of the next edge
v1num = model->edges[ abs(polyEdges[numPolyEdges]) ].vertexNum[ INTSIGNBITNOTSET(polyEdges[numPolyEdges]) ];
// this edge is valid so keep it
numPolyEdges++;
}
}
// should have at least 3 edges
if ( numPolyEdges < 3 ) {
return;
}
// the polygon is invalid if some edge is found twice
for ( i = 0; i < numPolyEdges; i++ ) {
for ( j = i+1; j < numPolyEdges; j++ ) {
if ( abs(polyEdges[i]) == abs(polyEdges[j]) ) {
return;
}
}
}
// don't overflow max edges
if ( numPolyEdges > CM_MAX_POLYGON_EDGES ) {
common->Warning( "idCollisionModelManagerLocal::CreatePolygon: polygon has more than %d edges", numPolyEdges );
numPolyEdges = CM_MAX_POLYGON_EDGES;
}
w->GetBounds( bounds );
p = AllocPolygon( model, numPolyEdges );
p->numEdges = numPolyEdges;
p->contents = material->GetContentFlags();
p->material = material;
p->checkcount = 0;
p->plane = plane;
p->bounds = bounds;
for ( i = 0; i < numPolyEdges; i++ ) {
edgeNum = polyEdges[i];
p->edges[i] = edgeNum;
}
R_FilterPolygonIntoTree( model, model->node, NULL, p );
}
/*
================
idCollisionModelManagerLocal::PolygonFromWinding
NOTE: for patches primitiveNum < 0 and abs(primitiveNum) is the real number
================
*/
void idCollisionModelManagerLocal::PolygonFromWinding( cm_model_t *model, idFixedWinding *w, const idPlane &plane, const idMaterial *material, int primitiveNum ) {
int contents;
contents = material->GetContentFlags();
// if this polygon is part of the world model
if ( numModels == 0 ) {
// if the polygon is fully chopped away by the proc bsp tree
if ( ChoppedAwayByProcBSP( *w, plane, contents ) ) {
model->numRemovedPolys++;
return;
}
}
// get one winding that is not or only partly contained in brushes
w = WindingOutsideBrushes( w, plane, contents, primitiveNum, model->node );
// if the polygon is fully contained within a brush
if ( !w ) {
model->numRemovedPolys++;
return;
}
if ( w->IsHuge() ) {
common->Warning( "idCollisionModelManagerLocal::PolygonFromWinding: model %s primitive %d is degenerate", model->name.c_str(), abs(primitiveNum) );
return;
}
CreatePolygon( model, w, plane, material, primitiveNum );
if ( material->GetCullType() == CT_TWO_SIDED || material->ShouldCreateBackSides() ) {
w->ReverseSelf();
CreatePolygon( model, w, -plane, material, primitiveNum );
}
}
/*
=================
idCollisionModelManagerLocal::CreatePatchPolygons
=================
*/
void idCollisionModelManagerLocal::CreatePatchPolygons( cm_model_t *model, idSurface_Patch &mesh, const idMaterial *material, int primitiveNum ) {
int i, j;
float dot;
int v1, v2, v3, v4;
idFixedWinding w;
idPlane plane;
idVec3 d1, d2;
for ( i = 0; i < mesh.GetWidth() - 1; i++ ) {
for ( j = 0; j < mesh.GetHeight() - 1; j++ ) {
v1 = j * mesh.GetWidth() + i;
v2 = v1 + 1;
v3 = v1 + mesh.GetWidth() + 1;
v4 = v1 + mesh.GetWidth();
d1 = mesh[v2].xyz - mesh[v1].xyz;
d2 = mesh[v3].xyz - mesh[v1].xyz;
plane.SetNormal( d1.Cross(d2) );
if ( plane.Normalize() != 0.0f ) {
plane.FitThroughPoint( mesh[v1].xyz );
dot = plane.Distance( mesh[v4].xyz );
// if we can turn it into a quad
if ( idMath::Fabs(dot) < 0.1f ) {
w.Clear();
w += mesh[v1].xyz;
w += mesh[v2].xyz;
w += mesh[v3].xyz;
w += mesh[v4].xyz;
PolygonFromWinding( model, &w, plane, material, -primitiveNum );
continue;
}
else {
// create one of the triangles
w.Clear();
w += mesh[v1].xyz;
w += mesh[v2].xyz;
w += mesh[v3].xyz;
PolygonFromWinding( model, &w, plane, material, -primitiveNum );
}
}
// create the other triangle
d1 = mesh[v3].xyz - mesh[v1].xyz;
d2 = mesh[v4].xyz - mesh[v1].xyz;
plane.SetNormal( d1.Cross(d2) );
if ( plane.Normalize() != 0.0f ) {
plane.FitThroughPoint( mesh[v1].xyz );
w.Clear();
w += mesh[v1].xyz;
w += mesh[v3].xyz;
w += mesh[v4].xyz;
PolygonFromWinding( model, &w, plane, material, -primitiveNum );
}
}
}
}
/*
=================
CM_EstimateVertsAndEdges
=================
*/
static void CM_EstimateVertsAndEdges( const idMapEntity *mapEnt, int *numVerts, int *numEdges ) {
int j, width, height;
*numVerts = *numEdges = 0;
for ( j = 0; j < mapEnt->GetNumPrimitives(); j++ ) {
const idMapPrimitive *mapPrim;
mapPrim = mapEnt->GetPrimitive(j);
if ( mapPrim->GetType() == idMapPrimitive::TYPE_PATCH ) {
// assume maximum tesselation without adding verts
width = static_cast<const idMapPatch*>(mapPrim)->GetWidth();
height = static_cast<const idMapPatch*>(mapPrim)->GetHeight();
*numVerts += width * height;
*numEdges += (width-1) * height + width * (height-1) + (width-1) * (height-1);
continue;
}
if ( mapPrim->GetType() == idMapPrimitive::TYPE_BRUSH ) {
// assume cylinder with a polygon with (numSides - 2) edges ontop and on the bottom
*numVerts += (static_cast<const idMapBrush*>(mapPrim)->GetNumSides() - 2) * 2;
*numEdges += (static_cast<const idMapBrush*>(mapPrim)->GetNumSides() - 2) * 3;
continue;
}
}
}
/*
=================
idCollisionModelManagerLocal::ConverPatch
=================
*/
void idCollisionModelManagerLocal::ConvertPatch( cm_model_t *model, const idMapPatch *patch, int primitiveNum ) {
const idMaterial *material;
idSurface_Patch *cp;
material = declManager->FindMaterial( patch->GetMaterial() );
if ( !( material->GetContentFlags() & CONTENTS_REMOVE_UTIL ) ) {
return;
}
// copy the patch
cp = new idSurface_Patch( *patch );
// if the patch has an explicit number of subdivisions use it to avoid cracks
if ( patch->GetExplicitlySubdivided() ) {
cp->SubdivideExplicit( patch->GetHorzSubdivisions(), patch->GetVertSubdivisions(), false, true );
} else {
cp->Subdivide( DEFAULT_CURVE_MAX_ERROR_CD, DEFAULT_CURVE_MAX_ERROR_CD, DEFAULT_CURVE_MAX_LENGTH_CD, false );
}
// create collision polygons for the patch
CreatePatchPolygons( model, *cp, material, primitiveNum );
delete cp;
}
/*
================
idCollisionModelManagerLocal::ConvertBrushSides
================
*/
void idCollisionModelManagerLocal::ConvertBrushSides( cm_model_t *model, const idMapBrush *mapBrush, int primitiveNum ) {
int i, j;
idMapBrushSide *mapSide;
idFixedWinding w;
idPlane *planes;
const idMaterial *material;
// fix degenerate planes
planes = (idPlane *) _alloca16( mapBrush->GetNumSides() * sizeof( planes[0] ) );
for ( i = 0; i < mapBrush->GetNumSides(); i++ ) {
planes[i] = mapBrush->GetSide(i)->GetPlane();
planes[i].FixDegeneracies( DEGENERATE_DIST_EPSILON );
}
// create a collision polygon for each brush side
for ( i = 0; i < mapBrush->GetNumSides(); i++ ) {
mapSide = mapBrush->GetSide(i);
material = declManager->FindMaterial( mapSide->GetMaterial() );
if ( !( material->GetContentFlags() & CONTENTS_REMOVE_UTIL ) ) {
continue;
}
w.BaseForPlane( -planes[i] );
for ( j = 0; j < mapBrush->GetNumSides() && w.GetNumPoints(); j++ ) {
if ( i == j ) {
continue;
}
w.ClipInPlace( -planes[j], 0 );
}
if ( w.GetNumPoints() ) {
PolygonFromWinding( model, &w, planes[i], material, primitiveNum );
}
}
}
/*
================
idCollisionModelManagerLocal::ConvertBrush
================
*/
void idCollisionModelManagerLocal::ConvertBrush( cm_model_t *model, const idMapBrush *mapBrush, int primitiveNum ) {
int i, j, contents;
idBounds bounds;
idMapBrushSide *mapSide;
cm_brush_t *brush;
idPlane *planes;
idFixedWinding w;
const idMaterial *material = NULL;
contents = 0;
bounds.Clear();
// fix degenerate planes
planes = (idPlane *) _alloca16( mapBrush->GetNumSides() * sizeof( planes[0] ) );
for ( i = 0; i < mapBrush->GetNumSides(); i++ ) {
planes[i] = mapBrush->GetSide(i)->GetPlane();
planes[i].FixDegeneracies( DEGENERATE_DIST_EPSILON );
}
// we are only getting the bounds for the brush so there's no need
// to create a winding for the last brush side
for ( i = 0; i < mapBrush->GetNumSides() - 1; i++ ) {
mapSide = mapBrush->GetSide(i);
material = declManager->FindMaterial( mapSide->GetMaterial() );
contents |= ( material->GetContentFlags() & CONTENTS_REMOVE_UTIL );
w.BaseForPlane( -planes[i] );
for ( j = 0; j < mapBrush->GetNumSides() && w.GetNumPoints(); j++ ) {
if ( i == j ) {
continue;
}
w.ClipInPlace( -planes[j], 0 );
}
for ( j = 0; j < w.GetNumPoints(); j++ ) {
bounds.AddPoint( w[j].ToVec3() );
}
}
if ( !contents ) {
return;
}
// create brush for position test
brush = AllocBrush( model, mapBrush->GetNumSides() );
brush->checkcount = 0;
brush->contents = contents;
brush->material = material;
brush->primitiveNum = primitiveNum;
brush->bounds = bounds;
brush->numPlanes = mapBrush->GetNumSides();
for (i = 0; i < mapBrush->GetNumSides(); i++) {
brush->planes[i] = planes[i];
}
AddBrushToNode( model, model->node, brush );
}
/*
================
CM_CountNodeBrushes
================
*/
static int CM_CountNodeBrushes( const cm_node_t *node ) {
int count;
cm_brushRef_t *bref;
count = 0;
for ( bref = node->brushes; bref; bref = bref->next ) {
count++;
}
return count;
}
/*
================
CM_R_GetModelBounds
================
*/
static void CM_R_GetNodeBounds( idBounds *bounds, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_brushRef_t *bref;
while ( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
bounds->AddPoint( pref->p->bounds[0] );
bounds->AddPoint( pref->p->bounds[1] );
}
for ( bref = node->brushes; bref; bref = bref->next ) {
bounds->AddPoint( bref->b->bounds[0] );
bounds->AddPoint( bref->b->bounds[1] );
}
if ( node->planeType == -1 ) {
break;
}
CM_R_GetNodeBounds( bounds, node->children[1] );
node = node->children[0];
}
}
/*
================
CM_GetNodeBounds
================
*/
void CM_GetNodeBounds( idBounds *bounds, cm_node_t *node ) {
bounds->Clear();
CM_R_GetNodeBounds( bounds, node );
if ( bounds->IsCleared() ) {
bounds->Zero();
}
}
/*
================
CM_GetNodeContents
================
*/
int CM_GetNodeContents( cm_node_t *node ) {
int contents;
cm_polygonRef_t *pref;
cm_brushRef_t *bref;
contents = 0;
while ( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
contents |= pref->p->contents;
}
for ( bref = node->brushes; bref; bref = bref->next ) {
contents |= bref->b->contents;
}
if ( node->planeType == -1 ) {
break;
}
contents |= CM_GetNodeContents( node->children[1] );
node = node->children[0];
}
return contents;
}
/*
==================
idCollisionModelManagerLocal::RemapEdges
==================
*/
void idCollisionModelManagerLocal::RemapEdges( cm_node_t *node, int *edgeRemap ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
int i;
while ( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
// if we checked this polygon already
if ( p->checkcount == checkCount ) {
continue;
}
p->checkcount = checkCount;
for ( i = 0; i < p->numEdges; i++ ) {
if ( p->edges[i] < 0 ) {
p->edges[i] = -edgeRemap[ abs(p->edges[i]) ];
}
else {
p->edges[i] = edgeRemap[ p->edges[i] ];
}
}
}
if ( node->planeType == -1 ) {
break;
}
RemapEdges( node->children[1], edgeRemap );
node = node->children[0];
}
}
/*
==================
idCollisionModelManagerLocal::OptimizeArrays
due to polygon merging and polygon removal the vertex and edge array
can have a lot of unused entries.
==================
*/
void idCollisionModelManagerLocal::OptimizeArrays( cm_model_t *model ) {
int i, newNumVertices, newNumEdges, *v;
int *remap;
cm_edge_t *oldEdges;
cm_vertex_t *oldVertices;
remap = (int *) Mem_ClearedAlloc( Max( model->numVertices, model->numEdges ) * sizeof( int ) );
// get all used vertices
for ( i = 0; i < model->numEdges; i++ ) {
remap[ model->edges[i].vertexNum[0] ] = true;
remap[ model->edges[i].vertexNum[1] ] = true;
}
// create remap index and move vertices
newNumVertices = 0;
for ( i = 0; i < model->numVertices; i++ ) {
if ( remap[ i ] ) {
remap[ i ] = newNumVertices;
model->vertices[ newNumVertices ] = model->vertices[ i ];
newNumVertices++;
}
}
model->numVertices = newNumVertices;
// change edge vertex indexes
for ( i = 1; i < model->numEdges; i++ ) {
v = model->edges[i].vertexNum;
v[0] = remap[ v[0] ];
v[1] = remap[ v[1] ];
}
// create remap index and move edges
newNumEdges = 1;
for ( i = 1; i < model->numEdges; i++ ) {
// if the edge is used
if ( model->edges[ i ].numUsers ) {
remap[ i ] = newNumEdges;
model->edges[ newNumEdges ] = model->edges[ i ];
newNumEdges++;
}
}
// change polygon edge indexes
checkCount++;
RemapEdges( model->node, remap );
model->numEdges = newNumEdges;
Mem_Free( remap );
// realloc vertices
oldVertices = model->vertices;
if ( oldVertices ) {
model->vertices = (cm_vertex_t *) Mem_ClearedAlloc( model->numVertices * sizeof(cm_vertex_t) );
memcpy( model->vertices, oldVertices, model->numVertices * sizeof(cm_vertex_t) );
Mem_Free( oldVertices );
}
// realloc edges
oldEdges = model->edges;
if ( oldEdges ) {
model->edges = (cm_edge_t *) Mem_ClearedAlloc( model->numEdges * sizeof(cm_edge_t) );
memcpy( model->edges, oldEdges, model->numEdges * sizeof(cm_edge_t) );
Mem_Free( oldEdges );
}
}
/*
================
idCollisionModelManagerLocal::FinishModel
================
*/
void idCollisionModelManagerLocal::FinishModel( cm_model_t *model ) {
// try to merge polygons
checkCount++;
MergeTreePolygons( model, model->node );
// find internal edges (no mesh can ever collide with internal edges)
checkCount++;
FindInternalEdges( model, model->node );
// calculate edge normals
checkCount++;
CalculateEdgeNormals( model, model->node );
//common->Printf( "%s vertex hash spread is %d\n", model->name.c_str(), cm_vertexHash->GetSpread() );
//common->Printf( "%s edge hash spread is %d\n", model->name.c_str(), cm_edgeHash->GetSpread() );
// remove all unused vertices and edges
OptimizeArrays( model );
// get model bounds from brush and polygon bounds
CM_GetNodeBounds( &model->bounds, model->node );
// get model contents
model->contents = CM_GetNodeContents( model->node );
// total memory used by this model
model->usedMemory = model->numVertices * sizeof(cm_vertex_t) +
model->numEdges * sizeof(cm_edge_t) +
model->polygonMemory +
model->brushMemory +
model->numNodes * sizeof(cm_node_t) +
model->numPolygonRefs * sizeof(cm_polygonRef_t) +
model->numBrushRefs * sizeof(cm_brushRef_t);
}
/*
================
idCollisionModelManagerLocal::LoadRenderModel
================
*/
cm_model_t *idCollisionModelManagerLocal::LoadRenderModel( const char *fileName ) {
int i, j;
idRenderModel *renderModel;
const modelSurface_t *surf;
idFixedWinding w;
cm_node_t *node;
cm_model_t *model;
idPlane plane;
idBounds bounds;
bool collisionSurface;
idStr extension;
// only load ASE and LWO models
idStr( fileName ).ExtractFileExtension( extension );
if ( ( extension.Icmp( "ase" ) != 0 ) && ( extension.Icmp( "lwo" ) != 0 ) && ( extension.Icmp( "ma" ) != 0 ) ) {
return NULL;
}
if ( !renderModelManager->CheckModel( fileName ) ) {
return NULL;
}
renderModel = renderModelManager->FindModel( fileName );
model = AllocModel();
model->name = fileName;
node = AllocNode( model, NODE_BLOCK_SIZE_SMALL );
node->planeType = -1;
model->node = node;
model->maxVertices = 0;
model->numVertices = 0;
model->maxEdges = 0;
model->numEdges = 0;
bounds = renderModel->Bounds( NULL );
collisionSurface = false;
for ( i = 0; i < renderModel->NumSurfaces(); i++ ) {
surf = renderModel->Surface( i );
if ( surf->shader->GetSurfaceFlags() & SURF_COLLISION ) {
collisionSurface = true;
}
}
for ( i = 0; i < renderModel->NumSurfaces(); i++ ) {
surf = renderModel->Surface( i );
// if this surface has no contents
if ( ! ( surf->shader->GetContentFlags() & CONTENTS_REMOVE_UTIL ) ) {
continue;
}
// if the model has a collision surface and this surface is not a collision surface
if ( collisionSurface && !( surf->shader->GetSurfaceFlags() & SURF_COLLISION ) ) {
continue;
}
// get max verts and edges
model->maxVertices += surf->geometry->numVerts;
model->maxEdges += surf->geometry->numIndexes;
}
model->vertices = (cm_vertex_t *) Mem_ClearedAlloc( model->maxVertices * sizeof(cm_vertex_t) );
model->edges = (cm_edge_t *) Mem_ClearedAlloc( model->maxEdges * sizeof(cm_edge_t) );
// setup hash to speed up finding shared vertices and edges
SetupHash();
cm_vertexHash->ResizeIndex( model->maxVertices );
cm_edgeHash->ResizeIndex( model->maxEdges );
ClearHash( bounds );
for ( i = 0; i < renderModel->NumSurfaces(); i++ ) {
surf = renderModel->Surface( i );
// if this surface has no contents
if ( ! ( surf->shader->GetContentFlags() & CONTENTS_REMOVE_UTIL ) ) {
continue;
}
// if the model has a collision surface and this surface is not a collision surface
if ( collisionSurface && !( surf->shader->GetSurfaceFlags() & SURF_COLLISION ) ) {
continue;
}
for ( j = 0; j < surf->geometry->numIndexes; j += 3 ) {
w.Clear();
w += surf->geometry->verts[ surf->geometry->indexes[ j + 2 ] ].xyz;
w += surf->geometry->verts[ surf->geometry->indexes[ j + 1 ] ].xyz;
w += surf->geometry->verts[ surf->geometry->indexes[ j + 0 ] ].xyz;
w.GetPlane( plane );
plane = -plane;
PolygonFromWinding( model, &w, plane, surf->shader, 1 );
}
}
// create a BSP tree for the model
model->node = CreateAxialBSPTree( model, model->node );
model->isConvex = false;
FinishModel( model );
// shutdown the hash
ShutdownHash();
common->Printf( "loaded collision model %s\n", model->name.c_str() );
return model;
}
/*
================
idCollisionModelManagerLocal::CollisionModelForMapEntity
================
*/
cm_model_t *idCollisionModelManagerLocal::CollisionModelForMapEntity( const idMapEntity *mapEnt ) {
cm_model_t *model;
idBounds bounds;
const char *name;
int i, brushCount;
// if the entity has no primitives
if ( mapEnt->GetNumPrimitives() < 1 ) {
return NULL;
}
// get a name for the collision model
mapEnt->epairs.GetString( "model", "", &name );
if ( !name[0] ) {
mapEnt->epairs.GetString( "name", "", &name );
if ( !name[0] ) {
if ( !numModels ) {
// first model is always the world
name = "worldMap";
}
else {
name = "unnamed inline model";
}
}
}
model = AllocModel();
model->node = AllocNode( model, NODE_BLOCK_SIZE_SMALL );
CM_EstimateVertsAndEdges( mapEnt, &model->maxVertices, &model->maxEdges );
model->numVertices = 0;
model->numEdges = 0;
model->vertices = (cm_vertex_t *) Mem_ClearedAlloc( model->maxVertices * sizeof(cm_vertex_t) );
model->edges = (cm_edge_t *) Mem_ClearedAlloc( model->maxEdges * sizeof(cm_edge_t) );
cm_vertexHash->ResizeIndex( model->maxVertices );
cm_edgeHash->ResizeIndex( model->maxEdges );
model->name = name;
model->isConvex = false;
// convert brushes
for ( i = 0; i < mapEnt->GetNumPrimitives(); i++ ) {
idMapPrimitive *mapPrim;
mapPrim = mapEnt->GetPrimitive(i);
if ( mapPrim->GetType() == idMapPrimitive::TYPE_BRUSH ) {
ConvertBrush( model, static_cast<idMapBrush*>(mapPrim), i );
continue;
}
}
// create an axial bsp tree for the model if it has more than just a bunch brushes
brushCount = CM_CountNodeBrushes( model->node );
if ( brushCount > 4 ) {
model->node = CreateAxialBSPTree( model, model->node );
} else {
model->node->planeType = -1;
}
// get bounds for hash
if ( brushCount ) {
CM_GetNodeBounds( &bounds, model->node );
} else {
bounds[0].Set( -256, -256, -256 );
bounds[1].Set( 256, 256, 256 );
}
// different models do not share edges and vertices with each other, so clear the hash
ClearHash( bounds );
// create polygons from patches and brushes
for ( i = 0; i < mapEnt->GetNumPrimitives(); i++ ) {
idMapPrimitive *mapPrim;
mapPrim = mapEnt->GetPrimitive(i);
if ( mapPrim->GetType() == idMapPrimitive::TYPE_PATCH ) {
ConvertPatch( model, static_cast<idMapPatch*>(mapPrim), i );
continue;
}
if ( mapPrim->GetType() == idMapPrimitive::TYPE_BRUSH ) {
ConvertBrushSides( model, static_cast<idMapBrush*>(mapPrim), i );
continue;
}
}
FinishModel( model );
return model;
}
/*
================
idCollisionModelManagerLocal::FindModel
================
*/
cmHandle_t idCollisionModelManagerLocal::FindModel( const char *name ) {
int i;
// check if this model is already loaded
for ( i = 0; i < numModels; i++ ) {
if ( !models[i]->name.Icmp( name ) ) {
break;
}
}
// if the model is already loaded
if ( i < numModels ) {
return i;
}
return -1;
}
/*
==================
idCollisionModelManagerLocal::PrintModelInfo
==================
*/
void idCollisionModelManagerLocal::PrintModelInfo( const cm_model_t *model ) {
common->Printf( "%6i vertices (%i KB)\n", model->numVertices, (model->numVertices * sizeof(cm_vertex_t))>>10 );
common->Printf( "%6i edges (%i KB)\n", model->numEdges, (model->numEdges * sizeof(cm_edge_t))>>10 );
common->Printf( "%6i polygons (%i KB)\n", model->numPolygons, model->polygonMemory>>10 );
common->Printf( "%6i brushes (%i KB)\n", model->numBrushes, model->brushMemory>>10 );
common->Printf( "%6i nodes (%i KB)\n", model->numNodes, (model->numNodes * sizeof(cm_node_t))>>10 );
common->Printf( "%6i polygon refs (%i KB)\n", model->numPolygonRefs, (model->numPolygonRefs * sizeof(cm_polygonRef_t))>>10 );
common->Printf( "%6i brush refs (%i KB)\n", model->numBrushRefs, (model->numBrushRefs * sizeof(cm_brushRef_t))>>10 );
common->Printf( "%6i internal edges\n", model->numInternalEdges );
common->Printf( "%6i sharp edges\n", model->numSharpEdges );
common->Printf( "%6i contained polygons removed\n", model->numRemovedPolys );
common->Printf( "%6i polygons merged\n", model->numMergedPolys );
common->Printf( "%6i KB total memory used\n", model->usedMemory>>10 );
}
/*
================
idCollisionModelManagerLocal::AccumulateModelInfo
================
*/
void idCollisionModelManagerLocal::AccumulateModelInfo( cm_model_t *model ) {
int i;
memset( model, 0, sizeof( *model ) );
// accumulate statistics of all loaded models
for ( i = 0; i < numModels; i++ ) {
model->numVertices += models[i]->numVertices;
model->numEdges += models[i]->numEdges;
model->numPolygons += models[i]->numPolygons;
model->polygonMemory += models[i]->polygonMemory;
model->numBrushes += models[i]->numBrushes;
model->brushMemory += models[i]->brushMemory;
model->numNodes += models[i]->numNodes;
model->numBrushRefs += models[i]->numBrushRefs;
model->numPolygonRefs += models[i]->numPolygonRefs;
model->numInternalEdges += models[i]->numInternalEdges;
model->numSharpEdges += models[i]->numSharpEdges;
model->numRemovedPolys += models[i]->numRemovedPolys;
model->numMergedPolys += models[i]->numMergedPolys;
model->usedMemory += models[i]->usedMemory;
}
}
/*
================
idCollisionModelManagerLocal::ModelInfo
================
*/
void idCollisionModelManagerLocal::ModelInfo( cmHandle_t model ) {
cm_model_t modelInfo;
if ( model == -1 ) {
AccumulateModelInfo( &modelInfo );
PrintModelInfo( &modelInfo );
return;
}
if ( model < 0 || model > MAX_SUBMODELS || model > maxModels ) {
common->Printf( "idCollisionModelManagerLocal::ModelInfo: invalid model handle\n" );
return;
}
if ( !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::ModelInfo: invalid model\n" );
return;
}
PrintModelInfo( models[model] );
}
/*
================
idCollisionModelManagerLocal::ListModels
================
*/
void idCollisionModelManagerLocal::ListModels( void ) {
int i, totalMemory;
totalMemory = 0;
for ( i = 0; i < numModels; i++ ) {
common->Printf( "%4d: %5d KB %s\n", i, (models[i]->usedMemory>>10), models[i]->name.c_str() );
totalMemory += models[i]->usedMemory;
}
common->Printf( "%4d KB in %d models\n", (totalMemory>>10), numModels );
}
/*
================
idCollisionModelManagerLocal::BuildModels
================
*/
void idCollisionModelManagerLocal::BuildModels( const idMapFile *mapFile ) {
int i;
const idMapEntity *mapEnt;
idTimer timer;
timer.Start();
if ( !LoadCollisionModelFile( mapFile->GetName(), mapFile->GetGeometryCRC() ) ) {
if ( !mapFile->GetNumEntities() ) {
return;
}
// load the .proc file bsp for data optimisation
LoadProcBSP( mapFile->GetName() );
// convert brushes and patches to collision data
for ( i = 0; i < mapFile->GetNumEntities(); i++ ) {
mapEnt = mapFile->GetEntity(i);
if ( numModels >= MAX_SUBMODELS ) {
common->Error( "idCollisionModelManagerLocal::BuildModels: more than %d collision models", MAX_SUBMODELS );
break;
}
models[numModels] = CollisionModelForMapEntity( mapEnt );
if ( models[ numModels] ) {
numModels++;
}
}
// free the proc bsp which is only used for data optimization
Mem_Free( procNodes );
procNodes = NULL;
// write the collision models to a file
WriteCollisionModelsToFile( mapFile->GetName(), 0, numModels, mapFile->GetGeometryCRC() );
}
timer.Stop();
// print statistics on collision data
cm_model_t model;
AccumulateModelInfo( &model );
common->Printf( "collision data:\n" );
common->Printf( "%6i models\n", numModels );
PrintModelInfo( &model );
common->Printf( "%.0f msec to load collision data.\n", timer.Milliseconds() );
}
/*
================
idCollisionModelManagerLocal::LoadMap
================
*/
void idCollisionModelManagerLocal::LoadMap( const idMapFile *mapFile ) {
if ( mapFile == NULL ) {
common->Error( "idCollisionModelManagerLocal::LoadMap: NULL mapFile" );
}
// check whether we can keep the current collision map based on the mapName and mapFileTime
if ( loaded ) {
if ( mapName.Icmp( mapFile->GetName() ) == 0 ) {
if ( mapFile->GetFileTime() == mapFileTime ) {
common->DPrintf( "Using loaded version\n" );
return;
}
common->DPrintf( "Reloading modified map\n" );
}
FreeMap();
}
// clear the collision map
Clear();
// models
maxModels = MAX_SUBMODELS;
numModels = 0;
models = (cm_model_t **) Mem_ClearedAlloc( (maxModels+1) * sizeof(cm_model_t *) );
// setup hash to speed up finding shared vertices and edges
SetupHash();
// setup trace model structure
SetupTrmModelStructure();
// build collision models
BuildModels( mapFile );
// save name and time stamp
mapName = mapFile->GetName();
mapFileTime = mapFile->GetFileTime();
loaded = true;
// shutdown the hash
ShutdownHash();
}
/*
===================
idCollisionModelManagerLocal::GetModelName
===================
*/
const char *idCollisionModelManagerLocal::GetModelName( cmHandle_t model ) const {
if ( model < 0 || model > MAX_SUBMODELS || model >= numModels || !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::GetModelBounds: invalid model handle\n" );
return "";
}
return models[model]->name.c_str();
}
/*
===================
idCollisionModelManagerLocal::GetModelBounds
===================
*/
bool idCollisionModelManagerLocal::GetModelBounds( cmHandle_t model, idBounds &bounds ) const {
if ( model < 0 || model > MAX_SUBMODELS || model >= numModels || !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::GetModelBounds: invalid model handle\n" );
return false;
}
bounds = models[model]->bounds;
return true;
}
/*
===================
idCollisionModelManagerLocal::GetModelContents
===================
*/
bool idCollisionModelManagerLocal::GetModelContents( cmHandle_t model, int &contents ) const {
if ( model < 0 || model > MAX_SUBMODELS || model >= numModels || !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::GetModelContents: invalid model handle\n" );
return false;
}
contents = models[model]->contents;
return true;
}
/*
===================
idCollisionModelManagerLocal::GetModelVertex
===================
*/
bool idCollisionModelManagerLocal::GetModelVertex( cmHandle_t model, int vertexNum, idVec3 &vertex ) const {
if ( model < 0 || model > MAX_SUBMODELS || model >= numModels || !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::GetModelVertex: invalid model handle\n" );
return false;
}
if ( vertexNum < 0 || vertexNum >= models[model]->numVertices ) {
common->Printf( "idCollisionModelManagerLocal::GetModelVertex: invalid vertex number\n" );
return false;
}
vertex = models[model]->vertices[vertexNum].p;
return true;
}
/*
===================
idCollisionModelManagerLocal::GetModelEdge
===================
*/
bool idCollisionModelManagerLocal::GetModelEdge( cmHandle_t model, int edgeNum, idVec3 &start, idVec3 &end ) const {
if ( model < 0 || model > MAX_SUBMODELS || model >= numModels || !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::GetModelEdge: invalid model handle\n" );
return false;
}
edgeNum = abs( edgeNum );
if ( edgeNum >= models[model]->numEdges ) {
common->Printf( "idCollisionModelManagerLocal::GetModelEdge: invalid edge number\n" );
return false;
}
start = models[model]->vertices[models[model]->edges[edgeNum].vertexNum[0]].p;
end = models[model]->vertices[models[model]->edges[edgeNum].vertexNum[1]].p;
return true;
}
/*
===================
idCollisionModelManagerLocal::GetModelPolygon
===================
*/
bool idCollisionModelManagerLocal::GetModelPolygon( cmHandle_t model, int polygonNum, idFixedWinding &winding ) const {
int i, edgeNum;
cm_polygon_t *poly;
if ( model < 0 || model > MAX_SUBMODELS || model >= numModels || !models[model] ) {
common->Printf( "idCollisionModelManagerLocal::GetModelPolygon: invalid model handle\n" );
return false;
}
poly = *reinterpret_cast<cm_polygon_t **>(&polygonNum);
winding.Clear();
for ( i = 0; i < poly->numEdges; i++ ) {
edgeNum = poly->edges[i];
winding += models[model]->vertices[ models[model]->edges[abs(edgeNum)].vertexNum[INTSIGNBITSET(edgeNum)] ].p;
}
return true;
}
/*
==================
idCollisionModelManagerLocal::LoadModel
==================
*/
cmHandle_t idCollisionModelManagerLocal::LoadModel( const char *modelName, const bool precache ) {
int handle;
handle = FindModel( modelName );
if ( handle >= 0 ) {
return handle;
}
if ( numModels >= MAX_SUBMODELS ) {
common->Error( "idCollisionModelManagerLocal::LoadModel: no free slots\n" );
return 0;
}
// try to load a .cm file
if ( LoadCollisionModelFile( modelName, 0 ) ) {
handle = FindModel( modelName );
if ( handle >= 0 ) {
return handle;
} else {
common->Warning( "idCollisionModelManagerLocal::LoadModel: collision file for '%s' contains different model", modelName );
}
}
// if only precaching .cm files do not waste memory converting render models
if ( precache ) {
return 0;
}
// try to load a .ASE or .LWO model and convert it to a collision model
models[numModels] = LoadRenderModel( modelName );
if ( models[numModels] != NULL ) {
numModels++;
return ( numModels - 1 );
}
return 0;
}
/*
==================
idCollisionModelManagerLocal::TrmFromModel_r
==================
*/
bool idCollisionModelManagerLocal::TrmFromModel_r( idTraceModel &trm, cm_node_t *node ) {
cm_polygonRef_t *pref;
cm_polygon_t *p;
int i;
while ( 1 ) {
for ( pref = node->polygons; pref; pref = pref->next ) {
p = pref->p;
if ( p->checkcount == checkCount ) {
continue;
}
p->checkcount = checkCount;
if ( trm.numPolys >= MAX_TRACEMODEL_POLYS ) {
return false;
}
// copy polygon properties
trm.polys[ trm.numPolys ].bounds = p->bounds;
trm.polys[ trm.numPolys ].normal = p->plane.Normal();
trm.polys[ trm.numPolys ].dist = p->plane.Dist();
trm.polys[ trm.numPolys ].numEdges = p->numEdges;
// copy edge index
for ( i = 0; i < p->numEdges; i++ ) {
trm.polys[ trm.numPolys ].edges[ i ] = p->edges[ i ];
}
trm.numPolys++;
}
if ( node->planeType == -1 ) {
break;
}
if ( !TrmFromModel_r( trm, node->children[1] ) ) {
return false;
}
node = node->children[0];
}
return true;
}
/*
==================
idCollisionModelManagerLocal::TrmFromModel
NOTE: polygon merging can merge colinear edges and as such might cause dangling edges.
==================
*/
bool idCollisionModelManagerLocal::TrmFromModel( const cm_model_t *model, idTraceModel &trm ) {
int i, j, numEdgeUsers[MAX_TRACEMODEL_EDGES+1];
// if the model has too many vertices to fit in a trace model
if ( model->numVertices > MAX_TRACEMODEL_VERTS ) {
common->Printf( "idCollisionModelManagerLocal::TrmFromModel: model %s has too many vertices.\n", model->name.c_str() );
PrintModelInfo( model );
return false;
}
// plus one because the collision model accounts for the first unused edge
if ( model->numEdges > MAX_TRACEMODEL_EDGES+1 ) {
common->Printf( "idCollisionModelManagerLocal::TrmFromModel: model %s has too many edges.\n", model->name.c_str() );
PrintModelInfo( model );
return false;
}
trm.type = TRM_CUSTOM;
trm.numVerts = 0;
trm.numEdges = 1;
trm.numPolys = 0;
trm.bounds.Clear();
// copy polygons
checkCount++;
if ( !TrmFromModel_r( trm, model->node ) ) {
common->Printf( "idCollisionModelManagerLocal::TrmFromModel: model %s has too many polygons.\n", model->name.c_str() );
PrintModelInfo( model );
return false;
}
// copy vertices
for ( i = 0; i < model->numVertices; i++ ) {
trm.verts[ i ] = model->vertices[ i ].p;
trm.bounds.AddPoint( trm.verts[ i ] );
}
trm.numVerts = model->numVertices;
// copy edges
for ( i = 0; i < model->numEdges; i++ ) {
trm.edges[ i ].v[0] = model->edges[ i ].vertexNum[0];
trm.edges[ i ].v[1] = model->edges[ i ].vertexNum[1];
}
// minus one because the collision model accounts for the first unused edge
trm.numEdges = model->numEdges - 1;
// each edge should be used exactly twice
memset( numEdgeUsers, 0, sizeof(numEdgeUsers) );
for ( i = 0; i < trm.numPolys; i++ ) {
for ( j = 0; j < trm.polys[i].numEdges; j++ ) {
numEdgeUsers[ abs( trm.polys[i].edges[j] ) ]++;
}
}
for ( i = 1; i <= trm.numEdges; i++ ) {
if ( numEdgeUsers[i] != 2 ) {
common->Printf( "idCollisionModelManagerLocal::TrmFromModel: model %s has dangling edges, the model has to be an enclosed hull.\n", model->name.c_str() );
PrintModelInfo( model );
return false;
}
}
// assume convex
trm.isConvex = true;
// check if really convex
for ( i = 0; i < trm.numPolys; i++ ) {
// to be convex no vertices should be in front of any polygon plane
for ( j = 0; j < trm.numVerts; j++ ) {
if ( trm.polys[ i ].normal * trm.verts[ j ] - trm.polys[ i ].dist > 0.01f ) {
trm.isConvex = false;
break;
}
}
if ( j < trm.numVerts ) {
break;
}
}
// offset to center of model
trm.offset = trm.bounds.GetCenter();
trm.GenerateEdgeNormals();
return true;
}
/*
==================
idCollisionModelManagerLocal::TrmFromModel
==================
*/
bool idCollisionModelManagerLocal::TrmFromModel( const char *modelName, idTraceModel &trm ) {
cmHandle_t handle;
handle = LoadModel( modelName, false );
if ( !handle ) {
common->Printf( "idCollisionModelManagerLocal::TrmFromModel: model %s not found.\n", modelName );
return false;
}
return TrmFromModel( models[ handle ], trm );
}
| {
"content_hash": "2c4d46d149cc57d3aae9f5cc023daee5",
"timestamp": "",
"source": "github",
"line_count": 3667,
"max_line_length": 165,
"avg_line_length": 27.296973002454322,
"alnum_prop": 0.6231593038821954,
"repo_name": "Grimace1975/bclcontrib-scriptsharp",
"id": "b93bd68e6b67fe7f241156d1af3fea85c0bcd78d",
"size": "101590",
"binary": false,
"copies": "56",
"ref": "refs/heads/master",
"path": "ref.neo/cm/CollisionModel_load.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "538"
},
{
"name": "Awk",
"bytes": "757"
},
{
"name": "Bison",
"bytes": "28643"
},
{
"name": "C",
"bytes": "4699807"
},
{
"name": "C#",
"bytes": "1254546"
},
{
"name": "C++",
"bytes": "21199604"
},
{
"name": "CSS",
"bytes": "435"
},
{
"name": "Emacs Lisp",
"bytes": "3759"
},
{
"name": "Groff",
"bytes": "1815"
},
{
"name": "HTML",
"bytes": "43572"
},
{
"name": "JavaScript",
"bytes": "893948"
},
{
"name": "Makefile",
"bytes": "2945"
},
{
"name": "NSIS",
"bytes": "958"
},
{
"name": "Objective-C",
"bytes": "170817"
},
{
"name": "Objective-C++",
"bytes": "2733"
},
{
"name": "Perl",
"bytes": "9219"
},
{
"name": "Python",
"bytes": "73136"
},
{
"name": "Shell",
"bytes": "260754"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_10) on Fri Jan 14 15:43:25 PST 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class javax.mail.event.FolderEvent (JavaMail API documentation)
</TITLE>
<META NAME="date" CONTENT="2011-01-14">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class javax.mail.event.FolderEvent (JavaMail API documentation)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?javax/mail/event//class-useFolderEvent.html" target="_top"><B>FRAMES</B></A>
<A HREF="FolderEvent.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>javax.mail.event.FolderEvent</B></H2>
</CENTER>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Packages that use <A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#javax.mail.event"><B>javax.mail.event</B></A></TD>
<TD>Listeners and events for the JavaMail API. </TD>
</TR>
</TABLE>
<P>
<A NAME="javax.mail.event"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> in <A HREF="../../../../javax/mail/event/package-summary.html">javax.mail.event</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../javax/mail/event/package-summary.html">javax.mail.event</A> with parameters of type <A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>FolderListener.</B><B><A HREF="../../../../javax/mail/event/FolderListener.html#folderCreated(javax.mail.event.FolderEvent)">folderCreated</A></B>(<A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> e)</CODE>
<BR>
Invoked when a Folder is created.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>FolderAdapter.</B><B><A HREF="../../../../javax/mail/event/FolderAdapter.html#folderCreated(javax.mail.event.FolderEvent)">folderCreated</A></B>(<A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> e)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>FolderListener.</B><B><A HREF="../../../../javax/mail/event/FolderListener.html#folderDeleted(javax.mail.event.FolderEvent)">folderDeleted</A></B>(<A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> e)</CODE>
<BR>
Invoked when a folder is deleted.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>FolderAdapter.</B><B><A HREF="../../../../javax/mail/event/FolderAdapter.html#folderDeleted(javax.mail.event.FolderEvent)">folderDeleted</A></B>(<A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> e)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>FolderListener.</B><B><A HREF="../../../../javax/mail/event/FolderListener.html#folderRenamed(javax.mail.event.FolderEvent)">folderRenamed</A></B>(<A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> e)</CODE>
<BR>
Invoked when a folder is renamed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B>FolderAdapter.</B><B><A HREF="../../../../javax/mail/event/FolderAdapter.html#folderRenamed(javax.mail.event.FolderEvent)">folderRenamed</A></B>(<A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event">FolderEvent</A> e)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../javax/mail/event/FolderEvent.html" title="class in javax.mail.event"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?javax/mail/event//class-useFolderEvent.html" target="_top"><B>FRAMES</B></A>
<A HREF="FolderEvent.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2011 <a href="http://www.oracle.com">Oracle</a>. All Rights Reserved.
</BODY>
</HTML>
| {
"content_hash": "70b56d7c27674d7bb41cfb31967268fe",
"timestamp": "",
"source": "github",
"line_count": 221,
"max_line_length": 280,
"avg_line_length": 47.06334841628959,
"alnum_prop": 0.639265455244688,
"repo_name": "kiyon95/NEWPOCproc",
"id": "3215077443c05f28a518fcb91ccfb72e93a43387",
"size": "10401",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "src/javamail-1.4.4/docs/javadocs/javax/mail/event/class-use/FolderEvent.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "3984"
},
{
"name": "Java",
"bytes": "124271"
}
],
"symlink_target": ""
} |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HotSpots")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HotSpots")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("71946208-77fc-43a1-b586-da1fdc9fa71d")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| {
"content_hash": "b5ceaa8d276812551c0aec8d033b248e",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 84,
"avg_line_length": 38.542857142857144,
"alnum_prop": 0.7472201630837657,
"repo_name": "Cezus/hotspots.js",
"id": "b20ddb2159b15f67550dbeef22ae680eea26f311",
"size": "1352",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "HotSpots/Properties/AssemblyInfo.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "1352"
},
{
"name": "CSS",
"bytes": "781"
},
{
"name": "JavaScript",
"bytes": "404376"
}
],
"symlink_target": ""
} |
using DotNetStarter.Abstractions;
using System;
namespace DotNetStarter
{
/// <summary>
/// Locator extensions for application developers
/// </summary>
public static class LocatorExtensions
{
/// <summary>
/// Attempts to see if given ILocator implementions IServiceProvider, otherwise creates one from the ILocatorAmbient
/// </summary>
/// <param name="locator"></param>
/// <returns></returns>
public static IServiceProvider GetServiceProvider(this ILocator locator)
{
if (locator is ILocatorScoped && locator is IServiceProvider) return locator as IServiceProvider;
var ambient = locator.Get<ILocatorAmbient>();
return ambient.Current is IServiceProvider serviceProvider
? serviceProvider
: new DotNetStarter.ServiceProvider(ambient, locator.Get<IServiceProviderTypeChecker>(), locator.Get<IStartupConfiguration>());
}
}
} | {
"content_hash": "e8188fd4ef00b76d8ef44e413b0232d1",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 143,
"avg_line_length": 37.92307692307692,
"alnum_prop": 0.6632860040567952,
"repo_name": "bmcdavid/DotNetStarter",
"id": "603f17849bee090be7c97c083bdf5c47db1db908",
"size": "988",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/DotNetStarter/LocatorExtensions.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "580677"
},
{
"name": "PowerShell",
"bytes": "1746"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Search Test</title>
<link rel="stylesheet" href="/css/app.css">
</head>
<body>
<div class="container">
@yield('content')
</div>
</body>
</html> | {
"content_hash": "b465a099d5be91206c3379648bc6907d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 44,
"avg_line_length": 16.923076923076923,
"alnum_prop": 0.6272727272727273,
"repo_name": "amiridon/phpsearchtest",
"id": "866a587af084d6413fae2a78b69fccb1bb35f492",
"size": "220",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SearchFeature/resources/views/layouts.blade.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "553"
},
{
"name": "CSS",
"bytes": "69"
},
{
"name": "JavaScript",
"bytes": "503"
},
{
"name": "PHP",
"bytes": "77516"
}
],
"symlink_target": ""
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45.c
Label Definition File: CWE761_Free_Pointer_Not_at_Start_of_Buffer.label.xml
Template File: source-sinks-45.tmpl.c
*/
/*
* @description
* CWE: 761 Free Pointer not at Start of Buffer
* BadSource: environment Read input from an environment variable
* Sinks:
* GoodSink: free() memory correctly at the start of the buffer
* BadSink : free() memory not at the start of the buffer
* Flow Variant: 45 Data flow: data passed as a static global variable from one function to another in the same source file
*
* */
#include "std_testcase.h"
#include <wchar.h>
#define ENV_VARIABLE L"ADD"
#ifdef _WIN32
#define GETENV _wgetenv
#else
#define GETENV getenv
#endif
#define SEARCH_CHAR L'S'
static wchar_t * CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_badData;
static wchar_t * CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_goodB2GData;
#ifndef OMITBAD
static void badSink()
{
wchar_t * data = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_badData;
/* FLAW: We are incrementing the pointer in the loop - this will cause us to free the
* memory block not at the start of the buffer */
for (; *data != L'\0'; data++)
{
if (*data == SEARCH_CHAR)
{
printLine("We have a match!");
break;
}
}
free(data);
}
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_bad()
{
wchar_t * data;
data = (wchar_t *)malloc(100*sizeof(wchar_t));
if (data == NULL) {exit(-1);}
data[0] = L'\0';
{
/* Append input from an environment variable to data */
size_t dataLen = wcslen(data);
wchar_t * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
wcsncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_badData = data;
badSink();
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodB2G() uses the BadSource with the GoodSink */
static void goodB2GSink()
{
wchar_t * data = CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_goodB2GData;
{
size_t i;
/* FIX: Use a loop variable to traverse through the string pointed to by data */
for (i=0; i < wcslen(data); i++)
{
if (data[i] == SEARCH_CHAR)
{
printLine("We have a match!");
break;
}
}
free(data);
}
}
static void goodB2G()
{
wchar_t * data;
data = (wchar_t *)malloc(100*sizeof(wchar_t));
if (data == NULL) {exit(-1);}
data[0] = L'\0';
{
/* Append input from an environment variable to data */
size_t dataLen = wcslen(data);
wchar_t * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
wcsncat(data+dataLen, environment, 100-dataLen-1);
}
}
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_goodB2GData = data;
goodB2GSink();
}
void CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_good()
{
goodB2G();
}
#endif /* OMITGOOD */
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
#ifdef INCLUDEMAIN
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45_bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| {
"content_hash": "39f9bea339460f054860cdd9ea6fe372",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 123,
"avg_line_length": 30.65986394557823,
"alnum_prop": 0.6152651431107167,
"repo_name": "JianpingZeng/xcc",
"id": "38504575caf6dd5fcaee5de958c04cd93e380cda",
"size": "4507",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "xcc/test/juliet/testcases/CWE761_Free_Pointer_Not_at_Start_of_Buffer/CWE761_Free_Pointer_Not_at_Start_of_Buffer__wchar_t_environment_45.c",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
#include <aws/iotanalytics/model/PipelineSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoTAnalytics
{
namespace Model
{
PipelineSummary::PipelineSummary() :
m_pipelineNameHasBeenSet(false),
m_reprocessingSummariesHasBeenSet(false),
m_creationTimeHasBeenSet(false),
m_lastUpdateTimeHasBeenSet(false)
{
}
PipelineSummary::PipelineSummary(JsonView jsonValue) :
m_pipelineNameHasBeenSet(false),
m_reprocessingSummariesHasBeenSet(false),
m_creationTimeHasBeenSet(false),
m_lastUpdateTimeHasBeenSet(false)
{
*this = jsonValue;
}
PipelineSummary& PipelineSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("pipelineName"))
{
m_pipelineName = jsonValue.GetString("pipelineName");
m_pipelineNameHasBeenSet = true;
}
if(jsonValue.ValueExists("reprocessingSummaries"))
{
Array<JsonView> reprocessingSummariesJsonList = jsonValue.GetArray("reprocessingSummaries");
for(unsigned reprocessingSummariesIndex = 0; reprocessingSummariesIndex < reprocessingSummariesJsonList.GetLength(); ++reprocessingSummariesIndex)
{
m_reprocessingSummaries.push_back(reprocessingSummariesJsonList[reprocessingSummariesIndex].AsObject());
}
m_reprocessingSummariesHasBeenSet = true;
}
if(jsonValue.ValueExists("creationTime"))
{
m_creationTime = jsonValue.GetDouble("creationTime");
m_creationTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("lastUpdateTime"))
{
m_lastUpdateTime = jsonValue.GetDouble("lastUpdateTime");
m_lastUpdateTimeHasBeenSet = true;
}
return *this;
}
JsonValue PipelineSummary::Jsonize() const
{
JsonValue payload;
if(m_pipelineNameHasBeenSet)
{
payload.WithString("pipelineName", m_pipelineName);
}
if(m_reprocessingSummariesHasBeenSet)
{
Array<JsonValue> reprocessingSummariesJsonList(m_reprocessingSummaries.size());
for(unsigned reprocessingSummariesIndex = 0; reprocessingSummariesIndex < reprocessingSummariesJsonList.GetLength(); ++reprocessingSummariesIndex)
{
reprocessingSummariesJsonList[reprocessingSummariesIndex].AsObject(m_reprocessingSummaries[reprocessingSummariesIndex].Jsonize());
}
payload.WithArray("reprocessingSummaries", std::move(reprocessingSummariesJsonList));
}
if(m_creationTimeHasBeenSet)
{
payload.WithDouble("creationTime", m_creationTime.SecondsWithMSPrecision());
}
if(m_lastUpdateTimeHasBeenSet)
{
payload.WithDouble("lastUpdateTime", m_lastUpdateTime.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace IoTAnalytics
} // namespace Aws
| {
"content_hash": "95746ed8cc77722871b944008a3ffaa6",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 150,
"avg_line_length": 25.457943925233646,
"alnum_prop": 0.762114537444934,
"repo_name": "cedral/aws-sdk-cpp",
"id": "cc528420c439a8e74ae769c327dc4301281c914b",
"size": "2843",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "aws-cpp-sdk-iotanalytics/source/model/PipelineSummary.cpp",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "294220"
},
{
"name": "C++",
"bytes": "428637022"
},
{
"name": "CMake",
"bytes": "862025"
},
{
"name": "Dockerfile",
"bytes": "11688"
},
{
"name": "HTML",
"bytes": "7904"
},
{
"name": "Java",
"bytes": "352201"
},
{
"name": "Python",
"bytes": "106761"
},
{
"name": "Shell",
"bytes": "10891"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ccs: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.0 / ccs - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ccs
<small>
8.10.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-03-24 00:13:48 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-24 00:13:48 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/ccs"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/CCS"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: Labelled Transitions Systems"
"keyword: process algebras"
"keyword: Calculus of Concurrent Process (CCS)"
"category: Computer Science/Concurrent Systems and Protocols/Theory of concurrent systems"
]
authors: [
"Solange Coupet-Grimal"
]
bug-reports: "https://github.com/coq-contribs/ccs/issues"
dev-repo: "git+https://github.com/coq-contribs/ccs.git"
synopsis: "Equivalence notions on labelled transitions systems"
description: """
We give the specification of three different notions of equivalence
classically defined on labelled transitions systems underlying the
theories of process algebra (and particularly CCS). The fundamentals
properties of these equivalence notions are proven."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/ccs/archive/v8.10.0.tar.gz"
checksum: "md5=ca4da241b945c5825abbfddff139939f"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ccs.8.10.0 coq.8.7.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.0).
The following dependencies couldn't be met:
- coq-ccs -> coq >= 8.10
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ccs.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "f2b9914e612b0ab349425db355e90c63",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 159,
"avg_line_length": 40.60919540229885,
"alnum_prop": 0.549816020379281,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "f21f524e3538581050d490aec3edba8769b77f52",
"size": "7091",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.0/ccs/8.10.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
using UnityEngine;
using System.Collections;
using System;
using UnityEngine.UI;
public class GameController : MonoBehaviour {
public GameObject originalBase;
public GameObject baseFolder;
public GameObject scoreLabel;
private GameObject gameField;
private GameObject[,] bases;
private GameObject[] waypoints;
private int gameFieldWidth = 0;
private int gameFieldHeight = 0;
private Color wayColor;
void Awake () {
this.wayColor = Color.Lerp(Color.green, Color.green, 0F);
this.gameField = GameObject.Find("Ground");
this.gameFieldWidth = (int)(gameField.transform.localScale.x);
this.gameFieldHeight = (int)(gameField.transform.localScale.z);
this.bases = new GameObject[this.gameFieldWidth, this.gameFieldHeight];
this.waypoints = new GameObject[this.gameFieldWidth];
this.initGamePlatform ();
this.drawWaypoint ();
}
void initGamePlatform() {
for (int x = 0; x < this.gameFieldWidth; x++) {
for (int z = 0; z < this.gameFieldHeight; z++) {
GameObject newTowerBase = Instantiate (originalBase);
newTowerBase.transform.SetParent (baseFolder.transform);
newTowerBase.GetComponent<Base>().setBuildable(true);
newTowerBase.transform.position = new Vector3 (originalBase.transform.position.x + x, 0.1f, originalBase.transform.position.z - z);
this.bases [x, z] = newTowerBase;
}
}
}
void drawWaypoint() {
int zAxis = 5;
int x = 0;
while (x < this.gameFieldWidth) {
GameObject baseZ = this.bases[x, zAxis];
baseZ.GetComponent<Renderer> ().material.color = wayColor;
baseZ.GetComponent<Base>().setBuildable(false);
this.waypoints[x] = baseZ;
float randNumber = (float)Math.Round(UnityEngine.Random.Range(-1.0f, 1.0f));
if ( randNumber != 0 ) {
x += 1;
}
if ( zAxis >= -1 && zAxis <= this.gameFieldHeight + 1 ) {
zAxis += (int)randNumber;
}
if ( zAxis < 1 ) {
zAxis += 1;
}
if ( zAxis >= this.gameFieldHeight ) {
zAxis -= 1;
}
}
}
public GameObject[] getWaypoints() {
return this.waypoints;
}
public void increaseScore(int newScore) {
int newSumscore = 0;
Text score = scoreLabel.GetComponent<Text>();
int currentScore = int.Parse(score.text);
newSumscore = currentScore + newScore;
score.text = newSumscore.ToString();
}
}
| {
"content_hash": "5c1d2ab371fb35a54386fe250e5c6f75",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 135,
"avg_line_length": 27.13095238095238,
"alnum_prop": 0.6910925844668714,
"repo_name": "emazzotta/unity-tower-defense",
"id": "725909617864c424dce129c88cd5daaf4882bf12",
"size": "2281",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Assets/Scripts/GameController.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "8483"
},
{
"name": "ShaderLab",
"bytes": "1614"
}
],
"symlink_target": ""
} |
<map name="GraffleExport">
<area shape=rect coords="318,3,438,30" href="Modules.html">
</map>
<img border=0 src="GRAF.png" usemap="#GraffleExport">
| {
"content_hash": "43c9a084db21a7c95666f832de918cc4",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 60,
"avg_line_length": 37.25,
"alnum_prop": 0.7046979865771812,
"repo_name": "nickmain/clips-graffle",
"id": "8b095bd2995fcb79413e98e4ecb58aea0e386f85",
"size": "149",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/graffle-model/GRAF.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CLIPS",
"bytes": "21144"
},
{
"name": "Python",
"bytes": "3590"
}
],
"symlink_target": ""
} |
{% extends "admin/edit.html" %}
{% block form_action %}/api/announcements/{{ announcement.key() }}/edit/{% endblock %}
{% block form_fields %}
<label for="title">
<span class="prefix">title</span>
<input type="text" name="title" value="{{ announcement.title }}" />
<span class="suffix"></span>
</label>
<label for="faculty">
<span class="prefix">faculty</span>
<input type="text" name="faculty" value="{{ announcement.faculty }}" />
<span class="suffix"></span>
</label>
<label for="venue">
<span class="prefix">venue</span>
<input type="text" name="venue" value="{{ announcement.venue }}" />
<span class="suffix"></span>
</label>
<fieldset><legend>brochure</legend>
<label for="brochure_url">
<span class="prefix">brochure url</span>
<input type="text" name="brochure_url" value="{{ announcement.brochure_url }}" />
<span class="suffix"><a class="preview_url" href="{{ announcement.brochure_url }}" target="_blank"><img class="preview" src="{{ announcement.brochure_url }}" /></a><a target="_blank" href="http://www.flickr.com/photos/upload/">Upload image here</a> and then paste the link in this text box.</span>
</label>
<label for="description">
<span class="prefix">description</span>
<textarea name="description" rows="20" cols="70">{{ announcement.description }}</textarea>
<span class="suffix"></span>
</label>
</fieldset>
<fieldset><legend>dates</legend>
<label for="from">
<span class="prefix">from date/time</span>
<input type="text" name="when_from" value="{{ announcement.when_from|datetimeformat('%Y-%m-%dT%H:%M:%S') }}" id="edit-when-from" />
<span class="suffix">The date and time of the commencement of the program.</span>
</label>
<label for="to">
<span class="prefix">to date/time</span>
<input type="text" name="when_to" value="{{ announcement.when_to|datetimeformat('%Y-%m-%dT%H:%M:%S') }}" id="edit-when-to" />
<span class="suffix">The date and time of the end of the program.</span>
</label>
<label for="when_payment_is_calculated">
<span class="prefix">payment calculation date</span>
<input type="text" name="when_payment_is_calculated" id="edit-when-payment-is-calculated" value="{{ announcement.when_payment_is_calculated|datetimeformat('%Y-%m-%dT%H:%M:%S') }}" class="required" />
<span class="suffix">Payment calculations will occur on this date and emails will be dispatched to registered nominees.</span>
</label>
<label for="when_registration_ends">
<span class="prefix">registration closure date</span>
<input type="text" name="when_registration_ends" value="{{ announcement.when_registration_ends|datetimeformat('%Y-%m-%dT%H:%M:%S') }}" id="edit-when-registration-ends" />
<span class="suffix">Registrations received after this date will receive "Thank you for your interest." message.</span>
</label>
</fieldset>
<fieldset>
<legend>participation</legend>
<label for="max_participants">
<span class="prefix">maximum participants</span>
<input type="text" name="max_participants" value="{{ announcement.max_participants }}" />
<span class="suffix"></span>
</label>
{% for fee in announcement.fees %}
<label for="fees_{{ loop.index }}">
<span class="prefix">fees</span>
<input type="text" name="fees_{{ loop.index }}" value="{{ fee.fee }}" />
for participants
<input type="text" name="participants_{{ loop.index }}" value="{{ fee.for_participant_count }}" />
<span class="suffix"></span>
</label>
{% endfor %}
</fieldset>
{% endblock %}
{% block tag_form_additional_content %}
<h2 id="registrants-{{ announcement.key() }}">Registrants (total: {{ announcement.total_participant_count }}, active: {{ announcement.participant_count }})</h2>
<ul class="sub-data-list">
{% for registrant in registrants %}
<li id="{{ registrant.key() }}" class="data-item {% if not registrant.is_active %}unapproved{% endif %} {% if registrant.is_payment_received %}approved-payment{% endif %}"><span class="title">{{ registrant.full_name }} {% if registrant.is_payment_received %}(paid){% endif %}</span> <span class="subtitle">{{ registrant.designation }}, {{ registrant.company }}</span> <span class="subtitle"><a href="mailto:{{ registrant.email }}">{{ registrant.email }}</a>, {{ registrant.phone_number }} - {{ registrant.when_created|datetimeformat('%A, %B %d, %Y - %H:%M:%S') }} UTC</span>
<ul class="sub-actions">
<li><a class="awesome-button cool" href="/api/registrants/{{ registrant.key() }}/approve/{{ announcement.key() }}" rel="approve">✔ Approve Attendance</a></li>
<li><a class="awesome-button warm" href="/api/registrants/{{ registrant.key() }}/unapprove/{{ announcement.key() }}" rel="unapprove">✔ Unapprove Attendance</a></li>
<li><a class="awesome-button cool" href="/api/registrants/{{ registrant.key() }}/confirm_payment/{{ announcement.key() }}" rel="approve-payment">✔ Confirm Payment (sends email)</a></li>
#*<li><a class="awesome-button warm" href="/api/registrants/{{ registrant.key() }}/reverse_payment/{{ announcement.key() }}" rel="unapprove-payment">× Reverse Payment (sends email)</a></li>*#
</ul>
{% if registrant.why_unregister %}<h3>Why unregistered?</h3><p>{{ registrant.why_unregister }}</p>{% endif %}
</li>
{% endfor %}
</ul>
{% endblock %}
| {
"content_hash": "b95df34553a0e1f6cada58fae44eb70d",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 578,
"avg_line_length": 52.80769230769231,
"alnum_prop": 0.6411143481427531,
"repo_name": "spaceone/mils-secure",
"id": "8d337ec1af01c36003c552a5d3d38cde353204a6",
"size": "5492",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "templates/admin/edit_announcement.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "5795"
},
{
"name": "CSS",
"bytes": "70924"
},
{
"name": "Emacs Lisp",
"bytes": "8399"
},
{
"name": "HTML",
"bytes": "113326"
},
{
"name": "JavaScript",
"bytes": "317559"
},
{
"name": "Makefile",
"bytes": "2530"
},
{
"name": "Python",
"bytes": "2396968"
},
{
"name": "Ruby",
"bytes": "294"
},
{
"name": "Shell",
"bytes": "246"
},
{
"name": "Tcl",
"bytes": "149928"
},
{
"name": "VimL",
"bytes": "5813"
}
],
"symlink_target": ""
} |
<?xml version="1.0"?>
<Document>
<Sentence>
<value>A primary brain tumor is a group (mass) of abnormal cells that start in the brain.</value>
<pattern_crowdsource> A [[primary brain tumor|C0750974]] is a group (mass) of abnormal cells that start in the [[brain|C0006104]]. </pattern_crowdsource>
<annotations>
<annotation>
<surface-form>primary brain tumor</surface-form>
<RDF-ID>C0750974</RDF-ID>
</annotation>
<annotation>
<surface-form>group</surface-form>
<RDF-ID>C0441833</RDF-ID>
</annotation>
<annotation>
<surface-form>mass</surface-form>
<RDF-ID>C1306372</RDF-ID>
</annotation>
<annotation>
<surface-form>abnormal cells</surface-form>
<RDF-ID>C0333717</RDF-ID>
</annotation>
<annotation>
<surface-form>brain</surface-form>
<RDF-ID>C0006104</RDF-ID>
</annotation>
</annotations>
<triples>
<triple>C0006104 LOCATION_OF C0750974</triple>
</triples>
</Sentence>
</Document>
| {
"content_hash": "3cd255a87cc852850be345f1a5324fc1",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 156,
"avg_line_length": 27.714285714285715,
"alnum_prop": 0.6721649484536083,
"repo_name": "pvougiou/KB-Text-Alignment",
"id": "b3f5665153f9fe994cf5e54eb3b6f6023e53b26d",
"size": "970",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Data/MedlinePlus/XML/0000540.xml",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "OpenEdge ABL",
"bytes": "611292"
},
{
"name": "Python",
"bytes": "72310"
}
],
"symlink_target": ""
} |
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("poundkoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is recommended you use the following random password:\n"
"rpcuser=poundkoinrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"The username and password MUST NOT be the same.\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions.\n"
"It is also recommended to set alertnotify so you are notified of problems;\n"
"for example: alertnotify=echo %%s | mail -s \"Poundkoin Alert\" admin@foo.com\n"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:"
"@STRENGTH)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"An error occurred while setting up the RPC port %u for listening on IPv4: %s"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"An error occurred while setting up the RPC port %u for listening on IPv6, "
"falling back to IPv4: %s"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Bind to given address and always listen on it. Use [host]:port notation for "
"IPv6"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Cannot obtain a lock on data directory %s. Poundkoin is probably already "
"running."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Error: The transaction was rejected! This might happen if some of the coins "
"in your wallet were already spent, such as if you used a copy of wallet.dat "
"and coins were spent in the copy but not marked as spent here."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Error: This transaction requires a transaction fee of at least %s because of "
"its amount, complexity, or use of recently received funds!"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Execute command when a relevant alert is received (%s in cmd is replaced by "
"message)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Execute command when a wallet transaction changes (%s in cmd is replaced by "
"TxID)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Execute command when the best block changes (%s in cmd is replaced by block "
"hash)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Listen for JSON-RPC connections on <port> (default: 9335 or testnet: 19335)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Number of seconds to keep misbehaving peers from reconnecting (default: "
"86400)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Set maximum size of high-priority/low-fee transactions in bytes (default: "
"27000)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Set the number of script verification threads (up to 16, 0 = auto, <0 = "
"leave that many cores free, default: 0)"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"This is a pre-release test build - use at your own risk - do not use for "
"mining or merchant applications"),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Unable to bind to %s on this computer. Poundkoin is probably already running."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Warning: -paytxfee is set very high! This is the transaction fee you will "
"pay if you send a transaction."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Warning: Displayed transactions may not be correct! You may need to upgrade, "
"or other nodes may need to upgrade."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Warning: Please check that your computer's date and time are correct! If "
"your clock is wrong Poundkoin will not work properly."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Warning: error reading wallet.dat! All keys read correctly, but transaction "
"data or address book entries might be missing or incorrect."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as "
"wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect "
"you should restore from a backup."),
QT_TRANSLATE_NOOP("poundkoin-core", ""
"You must set rpcpassword=<password> in the configuration file:\n"
"%s\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions."),
QT_TRANSLATE_NOOP("poundkoin-core", "Accept command line and JSON-RPC commands"),
QT_TRANSLATE_NOOP("poundkoin-core", "Accept connections from outside (default: 1 if no -proxy or -connect)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Add a node to connect to and attempt to keep the connection open"),
QT_TRANSLATE_NOOP("poundkoin-core", "Allow DNS lookups for -addnode, -seednode and -connect"),
QT_TRANSLATE_NOOP("poundkoin-core", "Allow JSON-RPC connections from specified IP address"),
QT_TRANSLATE_NOOP("poundkoin-core", "Attempt to recover private keys from a corrupt wallet.dat"),
QT_TRANSLATE_NOOP("poundkoin-core", "Poundkoin version"),
QT_TRANSLATE_NOOP("poundkoin-core", "Block creation options:"),
QT_TRANSLATE_NOOP("poundkoin-core", "Cannot downgrade wallet"),
QT_TRANSLATE_NOOP("poundkoin-core", "Cannot resolve -bind address: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Cannot resolve -externalip address: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Cannot write default address"),
QT_TRANSLATE_NOOP("poundkoin-core", "Connect only to the specified node(s)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Connect through socks proxy"),
QT_TRANSLATE_NOOP("poundkoin-core", "Connect to a node to retrieve peer addresses, and disconnect"),
QT_TRANSLATE_NOOP("poundkoin-core", "Corrupted block database detected"),
QT_TRANSLATE_NOOP("poundkoin-core", "Discover own IP address (default: 1 when listening and no -externalip)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Do you want to rebuild the block database now?"),
QT_TRANSLATE_NOOP("poundkoin-core", "Done loading"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error initializing block database"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error initializing wallet database environment %s!"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error loading block database"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error loading wallet.dat"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error loading wallet.dat: Wallet corrupted"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error loading wallet.dat: Wallet requires newer version of Poundkoin"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error opening block database"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error: Disk space is low!"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error: Wallet locked, unable to create transaction!"),
QT_TRANSLATE_NOOP("poundkoin-core", "Error: system error: "),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to listen on any port. Use -listen=0 if you want this."),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to read block info"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to read block"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to sync block index"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write block index"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write block info"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write block"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write file info"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write to coin database"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write transaction index"),
QT_TRANSLATE_NOOP("poundkoin-core", "Failed to write undo data"),
QT_TRANSLATE_NOOP("poundkoin-core", "Fee per KB to add to transactions you send"),
QT_TRANSLATE_NOOP("poundkoin-core", "Find peers using DNS lookup (default: 1 unless -connect)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Generate coins (default: 0)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Get help for a command"),
QT_TRANSLATE_NOOP("poundkoin-core", "How many blocks to check at startup (default: 288, 0 = all)"),
QT_TRANSLATE_NOOP("poundkoin-core", "How thorough the block verification is (0-4, default: 3)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Imports blocks from external blk000??.dat file"),
QT_TRANSLATE_NOOP("poundkoin-core", "Information"),
QT_TRANSLATE_NOOP("poundkoin-core", "Insufficient funds"),
QT_TRANSLATE_NOOP("poundkoin-core", "Invalid -proxy address: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Invalid -tor address: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Invalid amount for -minrelaytxfee=<amount>: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Invalid amount for -mintxfee=<amount>: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Invalid amount for -paytxfee=<amount>: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Invalid amount"),
QT_TRANSLATE_NOOP("poundkoin-core", "List commands"),
QT_TRANSLATE_NOOP("poundkoin-core", "Listen for connections on <port> (default: 9336 or testnet: 19336)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Loading addresses..."),
QT_TRANSLATE_NOOP("poundkoin-core", "Loading block index..."),
QT_TRANSLATE_NOOP("poundkoin-core", "Loading wallet..."),
QT_TRANSLATE_NOOP("poundkoin-core", "Maintain a full transaction index (default: 0)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Maintain at most <n> connections to peers (default: 125)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Not enough file descriptors available."),
QT_TRANSLATE_NOOP("poundkoin-core", "Only accept block chain matching built-in checkpoints (default: 1)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Only connect to nodes in network <net> (IPv4, IPv6 or Tor)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Options:"),
QT_TRANSLATE_NOOP("poundkoin-core", "Output extra debugging information. Implies all other -debug* options"),
QT_TRANSLATE_NOOP("poundkoin-core", "Output extra network debugging information"),
QT_TRANSLATE_NOOP("poundkoin-core", "Password for JSON-RPC connections"),
QT_TRANSLATE_NOOP("poundkoin-core", "Prepend debug output with timestamp"),
QT_TRANSLATE_NOOP("poundkoin-core", "Rebuild block chain index from current blk000??.dat files"),
QT_TRANSLATE_NOOP("poundkoin-core", "Rescan the block chain for missing wallet transactions"),
QT_TRANSLATE_NOOP("poundkoin-core", "Rescanning..."),
QT_TRANSLATE_NOOP("poundkoin-core", "Run in the background as a daemon and accept commands"),
QT_TRANSLATE_NOOP("poundkoin-core", "SSL options: (see the Poundkoin Wiki for SSL setup instructions)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Select the version of socks proxy to use (4-5, default: 5)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Send command to -server or poundkoind"),
QT_TRANSLATE_NOOP("poundkoin-core", "Send commands to node running on <ip> (default: 127.0.0.1)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Send trace/debug info to console instead of debug.log file"),
QT_TRANSLATE_NOOP("poundkoin-core", "Send trace/debug info to debugger"),
QT_TRANSLATE_NOOP("poundkoin-core", "Server certificate file (default: server.cert)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Server private key (default: server.pem)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Set database cache size in megabytes (default: 25)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Set key pool size to <n> (default: 100)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Set maximum block size in bytes (default: 250000)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Set minimum block size in bytes (default: 0)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Set the number of threads to service RPC calls (default: 4)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Shrink debug.log file on client startup (default: 1 when no -debug)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Signing transaction failed"),
QT_TRANSLATE_NOOP("poundkoin-core", "Specify configuration file (default: poundkoin.conf)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Specify connection timeout in milliseconds (default: 5000)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Specify data directory"),
QT_TRANSLATE_NOOP("poundkoin-core", "Specify pid file (default: poundkoind.pid)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Specify your own public address"),
QT_TRANSLATE_NOOP("poundkoin-core", "System error: "),
QT_TRANSLATE_NOOP("poundkoin-core", "This help message"),
QT_TRANSLATE_NOOP("poundkoin-core", "Threshold for disconnecting misbehaving peers (default: 100)"),
QT_TRANSLATE_NOOP("poundkoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("poundkoin-core", "Transaction amount too small"),
QT_TRANSLATE_NOOP("poundkoin-core", "Transaction amounts must be positive"),
QT_TRANSLATE_NOOP("poundkoin-core", "Transaction too large"),
QT_TRANSLATE_NOOP("poundkoin-core", "Unable to bind to %s on this computer (bind returned error %d, %s)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Unknown -socks proxy version requested: %i"),
QT_TRANSLATE_NOOP("poundkoin-core", "Unknown network specified in -onlynet: '%s'"),
QT_TRANSLATE_NOOP("poundkoin-core", "Upgrade wallet to latest format"),
QT_TRANSLATE_NOOP("poundkoin-core", "Usage:"),
QT_TRANSLATE_NOOP("poundkoin-core", "Use OpenSSL (https) for JSON-RPC connections"),
QT_TRANSLATE_NOOP("poundkoin-core", "Use UPnP to map the listening port (default: 0)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Use UPnP to map the listening port (default: 1 when listening)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Use proxy to reach tor hidden services (default: same as -proxy)"),
QT_TRANSLATE_NOOP("poundkoin-core", "Use the test network"),
QT_TRANSLATE_NOOP("poundkoin-core", "Username for JSON-RPC connections"),
QT_TRANSLATE_NOOP("poundkoin-core", "Verifying blocks..."),
QT_TRANSLATE_NOOP("poundkoin-core", "Verifying wallet..."),
QT_TRANSLATE_NOOP("poundkoin-core", "Wallet needed to be rewritten: restart Poundkoin to complete"),
QT_TRANSLATE_NOOP("poundkoin-core", "Warning"),
QT_TRANSLATE_NOOP("poundkoin-core", "Warning: This version is obsolete, upgrade required!"),
QT_TRANSLATE_NOOP("poundkoin-core", "You need to rebuild the databases using -reindex to change -txindex"),
QT_TRANSLATE_NOOP("poundkoin-core", "wallet.dat corrupt, salvage failed"),
}; | {
"content_hash": "88b600f85c7f081df87602b70ca049ee",
"timestamp": "",
"source": "github",
"line_count": 203,
"max_line_length": 110,
"avg_line_length": 67.80295566502463,
"alnum_prop": 0.743606509735542,
"repo_name": "madman5844/poundkoin",
"id": "7467a68c39a8277bb34e07f6d5d9ff51f63dfcf4",
"size": "13916",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/bitcoinstrings.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "30189"
},
{
"name": "C++",
"bytes": "2493001"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "Makefile",
"bytes": "11992"
},
{
"name": "Objective-C",
"bytes": "858"
},
{
"name": "Objective-C++",
"bytes": "2734"
},
{
"name": "Python",
"bytes": "69774"
},
{
"name": "Shell",
"bytes": "9718"
}
],
"symlink_target": ""
} |
debian_root = "/etc/ssl"
debian_certs = "#{debian_root}/certs"
debian_keys = "#{debian_root}/private"
debian_group = "root"
default['ssl']['certs_dir'] = debian_certs
default['ssl']['keys_dir'] = debian_keys
default['ssl']['group'] = debian_group
| {
"content_hash": "4f6d90d2a0fa742ec2dd3226a6514863",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 42,
"avg_line_length": 31.875,
"alnum_prop": 0.6509803921568628,
"repo_name": "visay/chef-repo-testing",
"id": "7ec0d279164f133680e2bb828517d6f0909c022e",
"size": "255",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "site-cookbooks/ssl/attributes/default.rb",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Groovy",
"bytes": "2606"
},
{
"name": "Perl",
"bytes": "847"
},
{
"name": "Python",
"bytes": "565376"
},
{
"name": "Ruby",
"bytes": "1114751"
},
{
"name": "Shell",
"bytes": "4502"
}
],
"symlink_target": ""
} |
#pragma once
#include <gst/gst.h>
#include <vector>
#include <string>
#include <string_view>
#include <optional>
namespace gst_helper
{
/** Converts the passed in gst_list into a std::vector<std::string>
* @param gst_list Must be GST_VALUE_HOLDS_LIST( &gst_list ) == TRUE and the list values must contain G_TYPE_STRING GValues
*/
std::vector<std::string> gst_string_list_to_vector( const GValue& gst_list );
/** Fetches all GValue pointers from a GST_TYPE_LIST or GST_TYPE_ARRAY in a GValue.
* Returns a vector of GValue* pointers.
* Note: These live as long as the GValue passed in lives
*/
std::vector<const GValue*> gst_list_or_array_to_GValue_vector( const GValue& gst_list );
/** Fetches the g_object_get string named 'property_name' and creates a std::string form it.
*/
std::string gobject_get_string( gpointer obj, const char* property_name );
std::optional<std::string> gobject_get_string_opt(gpointer obj, const char* property_name);
bool gobject_has_property(gpointer obj, const char* property_name, GType type = G_TYPE_NONE );
/**
* Returns a GSList of 'char*' objects.
* Note: The returned list must be deleted via g_slist_free or its elements deleted via g_slist_remove
* Note: The contents is a char* pointer which must be deleted via g_free
*/
GSList* gst_string_vector_to_GSList( const std::vector<std::string>& lst );
/**
* Converts the GSList passed in to a std::vector<std::stirng> object.
* Note: The list and its elements are consumer
*/
std::vector<std::string> convert_GSList_to_string_vector_consume( GSList* lst );
inline std::string get_string_entry(GstStructure& struc, const std::string& entry_name)
{
auto str = gst_structure_get_string( &struc, entry_name.c_str());
if (str == nullptr)
{
return {};
}
return str;
}
inline std::string get_string_entry(GstStructure& struc, const char* entry_name)
{
auto str = gst_structure_get_string( &struc, entry_name);
if (str == nullptr)
{
return {};
}
return str;
}
}
| {
"content_hash": "836433e49d4e4545a60363a6a5682376",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 127,
"avg_line_length": 36.65573770491803,
"alnum_prop": 0.6301431127012522,
"repo_name": "TheImagingSource/tiscamera",
"id": "e9317a678bd17416b516c73721472f97c97455d9",
"size": "2236",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "libs/gst-helper/include/gst-helper/gst_gvalue_helper.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "80638"
},
{
"name": "C++",
"bytes": "2287603"
},
{
"name": "CMake",
"bytes": "170765"
},
{
"name": "Python",
"bytes": "41359"
},
{
"name": "Shell",
"bytes": "15386"
}
],
"symlink_target": ""
} |
require 'tradier/base'
module Tradier
class Calendar < Tradier::Base
# Create a new [Tradier::Calendar] instance from a response
#
# @param body [Hash]
# @return [Tradier::Calendar]
def self.from_response(body={})
new(body)
end
def month
@_month ||= @attrs[:calendar][:days][:month]
end
def year
@_year ||= @attrs[:calendar][:days][:year]
end
end
end
| {
"content_hash": "9a520d4b3a46996969bd160c496a85a3",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 63,
"avg_line_length": 18.17391304347826,
"alnum_prop": 0.5909090909090909,
"repo_name": "tradier/tradier.rb",
"id": "19464327a721be26e024d2cd5457bac5a6c874d6",
"size": "418",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "lib/tradier/calendar.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "114335"
}
],
"symlink_target": ""
} |
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:exslt="http://exslt.org/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd" version="3.3" ID="P0b002ee1817adc08">
<name type="corporate">
<namePart>United States Government Printing Office</namePart>
<role>
<roleTerm type="text" authority="marcrelator">printer</roleTerm>
<roleTerm type="code" authority="marcrelator">prt</roleTerm>
</role>
<role>
<roleTerm type="text" authority="marcrelator">distributor</roleTerm>
<roleTerm type="code" authority="marcrelator">dst</roleTerm>
</role>
</name>
<name type="corporate">
<namePart>United States</namePart>
<namePart>United States District Court District of Nebraska</namePart>
<role>
<roleTerm type="text" authority="marcrelator">author</roleTerm>
<roleTerm type="code" authority="marcrelator">aut</roleTerm>
</role>
<description>Government Organization</description>
</name>
<typeOfResource>text</typeOfResource>
<genre authority="marcgt">government publication</genre>
<language>
<languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</language>
<extension>
<collectionCode>USCOURTS</collectionCode>
<category>Judicial Publications</category>
<branch>judicial</branch>
<dateIngested>2012-01-14</dateIngested>
</extension>
<originInfo>
<publisher>Administrative Office of the United States Courts</publisher>
<dateIssued encoding="w3cdtf">2011-01-06</dateIssued>
<issuance>monographic</issuance>
</originInfo>
<physicalDescription>
<note type="source content type">deposited</note>
<digitalOrigin>born digital</digitalOrigin>
</physicalDescription>
<classification authority="sudocs">JU 4.15</classification>
<identifier type="uri">http://www.gpo.gov/fdsys/pkg/USCOURTS-ned-4_10-cv-03091</identifier>
<identifier type="local">P0b002ee1817adc08</identifier>
<recordInfo>
<recordContentSource authority="marcorg">DGPO</recordContentSource>
<recordCreationDate encoding="w3cdtf">2012-01-14</recordCreationDate>
<recordChangeDate encoding="w3cdtf">2012-01-14</recordChangeDate>
<recordIdentifier source="DGPO">USCOURTS-ned-4_10-cv-03091</recordIdentifier>
<recordOrigin>machine generated</recordOrigin>
<languageOfCataloging>
<languageTerm authority="iso639-2b" type="code">eng</languageTerm>
</languageOfCataloging>
</recordInfo>
<accessCondition type="GPO scope determination">fdlp</accessCondition>
<extension>
<docClass>USCOURTS</docClass>
<accessId>USCOURTS-ned-4_10-cv-03091</accessId>
<courtType>District</courtType>
<courtCode>ned</courtCode>
<courtCircuit>8th</courtCircuit>
<courtState>Nebraska</courtState>
<courtSortOrder>2300</courtSortOrder>
<caseNumber>4:10-cv-03091</caseNumber>
<caseOffice>4 Lincoln</caseOffice>
<caseType>civil</caseType>
<natureSuitCode>440</natureSuitCode>
<natureSuit>Other Civil Rights</natureSuit>
<cause>42:1983 Civil Rights Act</cause>
<party firstName="Rene" fullName="Rene A. Garcia" lastName="Garcia" middleName="A." role="Defendant"></party>
<party firstName="Sonia" fullName="Sonia Martinez" lastName="Martinez" role="Plaintiff"></party>
<party firstName="Alan" fullName="Alan Moore" lastName="Moore" role="Defendant"></party>
<party fullName="Saline County, Nebraska" lastName="Saline County, Nebraska" role="Defendant"></party>
</extension>
<titleInfo>
<title>Martinez v. Garcia et al</title>
<partNumber>4:10-cv-03091</partNumber>
</titleInfo>
<location>
<url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/pkg/USCOURTS-ned-4_10-cv-03091/content-detail.html</url>
</location>
<classification authority="sudocs">JU 4.15</classification>
<identifier type="preferred citation">4:10-cv-03091;10-3091</identifier>
<name type="corporate">
<namePart>United States District Court District of Nebraska</namePart>
<namePart>8th Circuit</namePart>
<namePart>4 Lincoln</namePart>
<affiliation>U.S. Courts</affiliation>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
<roleTerm authority="marcrelator" type="code">aut</roleTerm>
</role>
</name>
<name type="personal">
<displayForm>Rene A. Garcia</displayForm>
<namePart type="family">Garcia</namePart>
<namePart type="given">Rene</namePart>
<namePart type="termsOfAddress"></namePart>
<description>Defendant</description>
</name>
<name type="personal">
<displayForm>Sonia Martinez</displayForm>
<namePart type="family">Martinez</namePart>
<namePart type="given">Sonia</namePart>
<namePart type="termsOfAddress"></namePart>
<description>Plaintiff</description>
</name>
<name type="personal">
<displayForm>Alan Moore</displayForm>
<namePart type="family">Moore</namePart>
<namePart type="given">Alan</namePart>
<namePart type="termsOfAddress"></namePart>
<description>Defendant</description>
</name>
<name type="personal">
<displayForm>Saline County, Nebraska</displayForm>
<namePart type="family">Saline County, Nebraska</namePart>
<namePart type="given"></namePart>
<namePart type="termsOfAddress"></namePart>
<description>Defendant</description>
</name>
<extension>
<docClass>USCOURTS</docClass>
<accessId>USCOURTS-ned-4_10-cv-03091</accessId>
<courtType>District</courtType>
<courtCode>ned</courtCode>
<courtCircuit>8th</courtCircuit>
<courtState>Nebraska</courtState>
<courtSortOrder>2300</courtSortOrder>
<caseNumber>4:10-cv-03091</caseNumber>
<caseOffice>4 Lincoln</caseOffice>
<caseType>civil</caseType>
<natureSuitCode>440</natureSuitCode>
<natureSuit>Other Civil Rights</natureSuit>
<cause>42:1983 Civil Rights Act</cause>
<party firstName="Rene" fullName="Rene A. Garcia" lastName="Garcia" middleName="A." role="Defendant"></party>
<party firstName="Sonia" fullName="Sonia Martinez" lastName="Martinez" role="Plaintiff"></party>
<party firstName="Alan" fullName="Alan Moore" lastName="Moore" role="Defendant"></party>
<party fullName="Saline County, Nebraska" lastName="Saline County, Nebraska" role="Defendant"></party>
<state>Nebraska</state>
</extension>
<relatedItem type="constituent" ID="id-USCOURTS-ned-4_10-cv-03091-0" xlink:href="http://www.gpo.gov/fdsys/granule/USCOURTS-ned-4_10-cv-03091/USCOURTS-ned-4_10-cv-03091-0/mods.xml">
<titleInfo>
<title>Martinez v. Garcia et al</title>
<subTitle>MEMORANDUM AND ORDER - The motion to dismiss pursuant to Fed. R. Civ. P. 12(b)(6) filed by defendant Rene Garcia in his official capacity; defendant Sheriff Alan Moore, individually and in his official capacity; and defendant Saline County (filing 9) is granted. Defendant Rene Garcia in his individual capacity is the only remaining defendant in this case. Ordered by Judge Richard G. Kopf. (GJG)</subTitle>
<partNumber>0</partNumber>
</titleInfo>
<originInfo>
<dateIssued>2011-01-06</dateIssued>
</originInfo>
<relatedItem xlink:href="http://www.gpo.gov/fdsys/pkg/pdf/USCOURTS-ned-4_10-cv-03091-0.pdf" type="otherFormat">
<identifier type="FDsys Unique ID">D09002ee181888e60</identifier>
</relatedItem>
<identifier type="uri">http://www.gpo.gov/fdsys/granule/USCOURTS-ned-4_10-cv-03091/USCOURTS-ned-4_10-cv-03091-0</identifier>
<identifier type="former granule identifier">ned-4_10-cv-03091_0.pdf</identifier>
<location>
<url access="object in context" displayLabel="Content Detail">http://www.gpo.gov/fdsys/granule/USCOURTS-ned-4_10-cv-03091/USCOURTS-ned-4_10-cv-03091-0/content-detail.html</url>
<url access="raw object" displayLabel="PDF rendition">http://www.gpo.gov/fdsys/pkg/USCOURTS-ned-4_10-cv-03091/pdf/USCOURTS-ned-4_10-cv-03091-0.pdf</url>
</location>
<extension>
<searchTitle>USCOURTS 4:10-cv-03091; Martinez v. Garcia et al; </searchTitle>
<courtName>United States District Court District of Nebraska</courtName>
<state>Nebraska</state>
<accessId>USCOURTS-ned-4_10-cv-03091-0</accessId>
<sequenceNumber>0</sequenceNumber>
<dateIssued>2011-01-06</dateIssued>
<docketText>MEMORANDUM AND ORDER - The motion to dismiss pursuant to Fed. R. Civ. P. 12(b)(6) filed by defendant Rene Garcia in his official capacity; defendant Sheriff Alan Moore, individually and in his official capacity; and defendant Saline County (filing 9) is granted. Defendant Rene Garcia in his individual capacity is the only remaining defendant in this case. Ordered by Judge Richard G. Kopf. (GJG)</docketText>
</extension>
</relatedItem>
</mods> | {
"content_hash": "88b61b1c783264a92a73154ef3d65c3e",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 424,
"avg_line_length": 49.294117647058826,
"alnum_prop": 0.7632458233890215,
"repo_name": "freelawproject/juriscraper",
"id": "317a6bdc1bbfc8aa4ed356d6abfa5f3357f60bd0",
"size": "8380",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "juriscraper/fdsys/examples/2011/ned-4_10-cv-03091.xml",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "HTML",
"bytes": "63242956"
},
{
"name": "Jinja",
"bytes": "2201"
},
{
"name": "Makefile",
"bytes": "75"
},
{
"name": "Python",
"bytes": "1059228"
}
],
"symlink_target": ""
} |
__d("text.t",function(o,e,t){t.exports="Here is brisk demo!"}); | {
"content_hash": "ef291d81e9469a7c839ccdff724306c9",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 63,
"avg_line_length": 63,
"alnum_prop": 0.6349206349206349,
"repo_name": "Saber-Team/brisky",
"id": "ee8b83fc63f5565ed4f1dd45342e92940484db15",
"size": "63",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "www/dist/static/js/JtKSsyfi+.text.js",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "597"
},
{
"name": "JavaScript",
"bytes": "5868"
},
{
"name": "PHP",
"bytes": "1074387"
},
{
"name": "Smarty",
"bytes": "7497"
}
],
"symlink_target": ""
} |
class Solution {
void help(vector<vector<int>>& result, int begin, vector<int> num) {
if (begin == num.size()) {
result.emplace_back(num);
return;
}
for (int i = begin; i < num.size();i++) {
if (i != begin && num[i] == num[begin]) continue;
swap(num[begin], num[i]);
help(result, begin+1, num);
}
}
public:
vector<vector<int> > permuteUnique(vector<int> &num) {
vector<vector<int>> result;
sort(num.begin(), num.end());
help(result, 0, num);
return result;
}
};
| {
"content_hash": "2662a7f3f201d5d7892000f7f62a9eae",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 72,
"avg_line_length": 26.695652173913043,
"alnum_prop": 0.4837133550488599,
"repo_name": "gzc/leetcode",
"id": "f035e220ed1a7387b9b1ee1c15aa2886ef76128d",
"size": "614",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "cpp/041-050/Permutations II.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "907387"
},
{
"name": "Go",
"bytes": "1470"
},
{
"name": "Java",
"bytes": "2393"
},
{
"name": "Python",
"bytes": "35212"
},
{
"name": "Scala",
"bytes": "2632"
}
],
"symlink_target": ""
} |
#pragma once
#include "envoy/common/platform.h"
#include "envoy/config/core/v3/base.pb.h"
#include "envoy/network/listen_socket.h"
#include "common/common/logger.h"
#include "common/network/socket_option_impl.h"
#include "absl/types/optional.h"
namespace Envoy {
namespace Network {
class AddrFamilyAwareSocketOptionImpl : public Socket::Option,
Logger::Loggable<Logger::Id::connection> {
public:
AddrFamilyAwareSocketOptionImpl(envoy::config::core::v3::SocketOption::SocketState in_state,
SocketOptionName ipv4_optname, SocketOptionName ipv6_optname,
int value)
: ipv4_option_(std::make_unique<SocketOptionImpl>(in_state, ipv4_optname, value)),
ipv6_option_(std::make_unique<SocketOptionImpl>(in_state, ipv6_optname, value)) {}
// Socket::Option
bool setOption(Socket& socket,
envoy::config::core::v3::SocketOption::SocketState state) const override;
// The common socket options don't require a hash key.
void hashKey(std::vector<uint8_t>&) const override {}
absl::optional<Details>
getOptionDetails(const Socket& socket,
envoy::config::core::v3::SocketOption::SocketState state) const override;
/**
* Set a socket option that applies at both IPv4 and IPv6 socket levels. When the underlying FD
* is IPv6, this function will attempt to set at IPv6 unless the platform only supports the
* option at the IPv4 level.
* @param socket.
* @param ipv4_optname SocketOptionName for IPv4 level. Set to empty if not supported on
* platform.
* @param ipv6_optname SocketOptionName for IPv6 level. Set to empty if not supported on
* platform.
* @param optval as per setsockopt(2).
* @param optlen as per setsockopt(2).
* @return int as per setsockopt(2). ENOTSUP is returned if the option is not supported on the
* platform for fd after the above option level fallback semantics are taken into account or the
* socket is non-IP.
*/
static bool setIpSocketOption(Socket& socket,
envoy::config::core::v3::SocketOption::SocketState state,
const std::unique_ptr<SocketOptionImpl>& ipv4_option,
const std::unique_ptr<SocketOptionImpl>& ipv6_option);
private:
const std::unique_ptr<SocketOptionImpl> ipv4_option_;
const std::unique_ptr<SocketOptionImpl> ipv6_option_;
};
} // namespace Network
} // namespace Envoy
| {
"content_hash": "9ec800670c2daca93eb073f52e84f149",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 98,
"avg_line_length": 42.25,
"alnum_prop": 0.6717948717948717,
"repo_name": "envoyproxy/envoy-wasm",
"id": "37d4b93c338c75c3f8d764de347cbe0e892eb7a8",
"size": "2535",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "source/common/network/addr_family_aware_socket_option_impl.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "34272"
},
{
"name": "C++",
"bytes": "18917650"
},
{
"name": "Dockerfile",
"bytes": "245"
},
{
"name": "Emacs Lisp",
"bytes": "966"
},
{
"name": "Go",
"bytes": "695"
},
{
"name": "JavaScript",
"bytes": "1760"
},
{
"name": "Makefile",
"bytes": "1985"
},
{
"name": "PowerShell",
"bytes": "5725"
},
{
"name": "PureBasic",
"bytes": "472"
},
{
"name": "Python",
"bytes": "392412"
},
{
"name": "Rust",
"bytes": "3471"
},
{
"name": "Shell",
"bytes": "115198"
},
{
"name": "Starlark",
"bytes": "1134460"
},
{
"name": "Thrift",
"bytes": "748"
}
],
"symlink_target": ""
} |
Finish:
- AAD from CF VCs
- A step closer to scalable VSS and DKG
- Zero knowledge simulation
- The courage to be disliked
- C++ guidelines
Polish:
- Crypto assumptions in hidden order groups
+ Add examples of cryptosystems based on the assumption and give reduction
- RSA accumulators
- Add non-membership proof
Future:
- Edrax VC
- GIPA and inner products, including KZG trick
| {
"content_hash": "220a667aeb520ddce1e3154edf15192d",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 78,
"avg_line_length": 21.105263157894736,
"alnum_prop": 0.7331670822942643,
"repo_name": "alinush/alinush.github.io",
"id": "360880471c010b1a15a88e2b01a503677dae7c63",
"size": "401",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/TODO.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "82788"
},
{
"name": "JavaScript",
"bytes": "52842"
},
{
"name": "Ruby",
"bytes": "1310"
},
{
"name": "SCSS",
"bytes": "94312"
},
{
"name": "Shell",
"bytes": "5404"
},
{
"name": "TeX",
"bytes": "4182"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "bd7d42b68829f37f8258ebe2c4cb1fa6",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "f851dde588755ffd26ca7da86ca4412e331d6b0f",
"size": "182",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Hovea/Hovea longifolia/Hovea longifolia longifolia/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<krpano>
<!-- Global variables used by actions and plugins -->
<krpano
tour_soundson="true"
tour_soundsvolume="100"
tour_autotourenabled="false"
tour_autorotateenabled="false"
tour_controlmodemousetype="moveto"
tour_controlmodetouchtype="drag2d"
tour_fullscreen="false"
tour_displaymap="false"
tour_displaythumbnails="true"
tour_displayfloorplan="false"
tour_displayinfo="false"
tour_displayspots="true"
tour_displaycontrols="true"
tour_language="en"/>
<krpano tour_gyroscopedevices="true" devices="no-desktop.and.html5" />
<krpano videos_sounds_path="%FIRSTXML%" devices="html5" />
<krpano videos_sounds_path="%SWFPATH%" devices="flash" />
<!-- Control Mode Management -->
<events name="controlmodenewpanoevent" onnewpano="controlmodenewpanoaction();" keep="true"/>
<action name="controlmodenewpanoaction">if (device.desktop, setControlMode(get(tour_controlmodemousetype));, setControlMode(get(tour_controlmodetouchtype)););</action>
<action name="setControlModeDragTo">setControlMode(drag2d);</action>
<action name="setControlModeMoveTo">setControlMode(moveto);</action>
<action name="setControlMode">
if (device.desktop,
set(control.mousetype, %1);
set(tour_controlmodemousetype, %1);
,
set(control.touchtype, %1);
set(tour_controlmodetouchtype, %1);
);
events.dispatch(oncontrolmodechanged);
</action>
<!-- Tour Messages -->
<action name="getmessage">
txtadd(real_message_id, get(tour_language), "_", %2);
set(%1, get(data[get(real_message_id)].content));
</action>
<!-- Hide / Show Hotspots -->
<action name="hideHotspots">
set(tour_displayspots, false);
set(nb_spots, get(hotspot.count));
if (nb_spots != 0, hidepanospotsaction(); );
events.dispatch(hotspots_visibility_changed);
</action>
<action name="showHotspots">
set(tour_displayspots, true);
set(nb_spots, get(hotspot.count));
if (nb_spots != 0, showpanospotsaction(); );
events.dispatch(hotspots_visibility_changed);
</action>
<events name="hideShowHotspotsOnNewPanoEvent" onPanoStart="hideShowHotspotsOnNewPanoAction" keep="true"/>
<action name="hideShowHotspotsOnNewPanoAction">
set(nb_spots, get(hotspot.count));
if (nb_spots != 0,
if (tour_displayspots, showpanospotsaction(); , hidepanospotsaction(); );
);
</action>
<action name="startbehavioursxmlcompleteaction">
events.dispatch(onPanoStart);
ifnot (tour_firststartactiondone,
events.dispatch(onTourStart);
set(tour_firststartactiondone, true);
);
</action>
<action name="mainloadscene">
interruptAnimation();
if (xml.scene != %1, loadscene(%1, NULL, MERGE, BLEND(1)); );
</action>
<!-- Load Previous Scene -->
<action name="loadPreviousScene">
if (%1 != findscene, sub(i, scene.count, 1));
copy(scenenamei, scene[get(i)].name);
dec(i);
if (scenenamei == xml.scene,
if (i GE 0,
mainloadscene(get(scene[get(i)].name));
,
sub(lasti, scene.count, 1);
mainloadscene(get(scene[get(lasti)].name));
);
,
if(i GE 0, loadPreviousScene(findscene));
);
</action>
<!-- Load Next Scene -->
<action name="loadNextScene">
if (%1 != findscene, set(i,0));
copy(scenenamei, scene[get(i)].name);
inc(i);
if (scenenamei == xml.scene,
if (i LT scene.count,
mainloadscene(get(scene[get(i)].name));
,
mainloadscene(get(scene[0].name)); );
,
if(i LT scene.count, loadNextScene(findscene));
);
</action>
<!-- AUTOROTATION -->
<autorotate enabled="false"/>
<krpano tour_autorotation_pausecounter="0"/>
<krpano tour_autorotation_pauseplugin="0"/>
<action name="startautorotation">
set(tour_autorotateenabled, true );
invalidatescreen();
set(autorotate.enabled, true);
set(tour_autorotation_pausecounter, 0);
events.dispatch(onstartautorotation);
if(tour_autotourenabled,
resetautotourvariables();
);
</action>
<action name="stopautorotation">
set(tour_autorotateenabled, false);
set(autorotate.enabled, false);
events.dispatch(onstopautorotation);
if(tour_autotourenabled,
stopautotourtimer();
);
</action>
<action name="pauseautorotation">
if(%1 == forceplugin,
inc(tour_autorotation_pauseplugin);
);
inc(tour_autorotation_pausecounter);
if(tour_autorotateenabled,
set(autorotate.enabled, false);
events.dispatch(onpauseautorotation);
if(tour_autotourenabled,
stopautotourtimer();
);
);
</action>
<action name="resumeautorotation">
if(%1 == forceplugin,
if (tour_autorotation_pauseplugin GT 0,
dec(tour_autorotation_pauseplugin);
);
);
if (tour_autorotation_pausecounter GE 0,
if(%1 != forceresume,
if ((tour_autorotation_pausecounter GT 0) AND (tour_autorotation_pausecounter GT tour_autorotation_pauseplugin),
dec(tour_autorotation_pausecounter);
);
);
);
if(tour_autorotateenabled,
if(tour_autorotation_pausecounter == 0,
if(%1 != forceresume,
set(autorotate.enabled, true);
events.dispatch(onresumeautorotation);
if(tour_autotourenabled,
resetautotourvariables();
);
);
);
,
if(%1 != forceresume,
if(%1 != forceplugin,
if(%1 != forcehotspot,
startautorotation();
);
);
);
);
</action>
<events name="autorotation_events" onnewpano="if(tour_autorotation_pauseplugin LE 0,resumeautorotation(forceresume););" keep="true"/>
<!-- AUTOTOUR -->
<krpano autotourdelay="5" />
<action name="startautotour">
set(tour_autotourenabled, true);startautorotation();
events.dispatch(onstartautotour);
resetautotourvariables();
</action>
<action name="resetautotourvariables">
stopautotourtimer();
if (scene[get(xml.scene)].planar,
set(autotourdelay, 10);
,
set(autotour_amax,1);Math.abs(autotour_vmax, autorotate.speed);if (autotour_vmax == 0, set(autotour_vmax, 5));sub(autotour_xmax, view.hlookatmax, view.hlookatmin);
if(autotour_xmax LT 360,set(autotour_partial,true);mul(autotour_xmax,2););
div(t1,autotour_xmax,autotour_vmax);div(t2,autotour_vmax,autotour_amax);mul(t2,0.5);add(autotourdelay,t1,t2);if(autotour_partial,mul(autotourdelay,2););
mul(autotour_test,autotour_amax,0.5);Math.pow(autotour_test2,autotour_vmax,2);Math.pow(autotour_test3,autotour_amax,2);div(autotour_test2,autotour_test3);mul(autotour_test,autotour_test2);if(autotour_partial,mul(autotour_test,2););
if(autotour_xmax LT autotour_test,set(autotourdelay, 0);div(t1,autotour_xmax,autotour_amax);mul(t1,2);Math.sqrt(autotourdelay,t1);if(autotour_partial,mul(autotourdelay,2);););
add(autotourdelay, autorotate.waittime);
);
delayedcall(autotour_call_id, get(autotourdelay), autotourtimer);
</action>
<action name="stopautotour">
set(tour_autotourenabled, false);
stopautotourtimer();stopautorotation();
events.dispatch(onstopautotour);
</action>
<action name="autotourtimer">
if (tour_autotourenabled,
if (tour_autorotateenabled,
if (autorotate.enabled,loadNextScene();
);
);
);
</action>
<action name="stopautotourtimer">
stopdelayedcall(autotour_call_id);
</action>
<events name="autotourevents"
onnewpano="autotouronnewpanoaction"
onmousedown="autotouronuseraction"
onkeydown="autotouronuseraction"
keep="true"/>
<action name="autotouronnewpanoaction">
if (tour_autotourenabled,resetautotourvariables(););
</action>
<action name="autotouronuseraction">
if (tour_autotourenabled,resetautotourvariables(););
</action>
<krpano tour_deeplinkingvars=""/>
<action name="computeDeepLinkingURL">
txtadd(tour_deeplinkingvars, "s=", get(xml.scene));
set(viewhlookat, get(view.hlookat));roundval(viewhlookat, 4);
mod(viewhlookat, 360);
if (viewhlookat GT 180,
sub(viewhlookat, 360);
,
if (viewhlookat LT -180, add(viewhlookat, 360));
);
set(viewvlookat, get(view.vlookat));roundval(viewvlookat, 4);
set(viewfov, get(view.fov));roundval(viewfov, 4);
txtadd(tour_deeplinkingvars, get(tour_deeplinkingvars), "&h=", get(viewhlookat));
txtadd(tour_deeplinkingvars, get(tour_deeplinkingvars), "&v=", get(viewvlookat));
txtadd(tour_deeplinkingvars, get(tour_deeplinkingvars), "&f=", get(viewfov));
if (%1 !== null,if (%1, txtadd(tour_deeplinkingvars, get(tour_deeplinkingvars), "&skipintro");););
if (%2 !== null,if (%2, txtadd(tour_deeplinkingvars, get(tour_deeplinkingvars), "&norotation");););
</action>
<!-- Spot animation management -->
<action name="animate">
if (tour_stopsequence == false,
if (stopspotsequence == false,
txtadd(delayedname, %1, 'delay');
if(hotspot[%1].loaded,
inc(hotspot[%1].frame,1,get(hotspot[%1].lastframe),0);
mul(hotspot[%1].ypos,get(hotspot[%1].frame),get(hotspot[%1].frameheight));
txtadd(hotspot[%1].crop,'0|',get(hotspot[%1].ypos),'|',get(hotspot[%1].framewidth),'|',get(hotspot[%1].frameheight));
);
delayedcall(get(delayedname),%2,animate(%1,%2));
);
);
</action>
<action name="startspotanimation">
set(tour_stopsequence, false);
set(stopspotsequence , false);
animate(get(name), %1);
</action>
<action name="stopspotanimation">
set(hotspot[%1].stopspotsequence, true);
txtadd(delayedname, %1, 'delay');
stopdelayedcall(get(delayedname));
</action>
<action name="setdefaultanimatedspotframe">
txtadd(defaultcrop, "0|0|", get(framewidth), "|", get(frameheight));
set(crop, get(defaultcrop));
</action>
<action name="interruptAnimation">
if(tour_stopsequence == false,
set(tour_stopsequence, true);
wait(0.1);
);
</action>
<!-- Disable the default fullscreen mode as it does a fullscreen only on the viewer not "on the tour" -->
<contextmenu fullscreen="false" versioninfo="false" />
<!-- Tooltips management -->
<!-- Tooltip Management -->
<krpano tooltipCurrentTextfieldLayer="panotourTooltipDefaultText" coretooltipmess=""/>
<events name="showHideTooltipEvents" onremovepano="hideTooltip();" keep="true" />
<action name="showTooltip">
if (tooltip !== null,
getmessage(currentTooltipText, get(tooltip));
if (%2 == null,
set(tooltipCurrentTextfieldLayer, "panotourTooltipDefaultText");
,
set(tooltipCurrentTextfieldLayer, %2);
);
ifnot (currentTooltipText == "",
tooltipTextSettingsUpdate(%1, %3, %4, %5, %6);
set(tooltipHtmlText, get(currentTooltipText));
escape(tooltipHtmlText);
set(layer[get(tooltipCurrentTextfieldLayer)].html, get(tooltipHtmlText));
set(layer[get(tooltipCurrentTextfieldLayer)].visible, true);
div(halfWidth, get(layer[get(tooltipCurrentTextfieldLayer)].width), 2);
div(halfHeight, get(layer[get(tooltipCurrentTextfieldLayer)].height), 2);
<!-- Default edge center -->
set(usedWidth, get(halfWidth));
set(usedHeight, get(halfHeight));
if(layer[get(tooltipCurrentTextfieldLayer)].edge == "left",
set(usedWidth, get(layer[get(tooltipCurrentTextfieldLayer)].width));
add(rightMargin, get(mouse.x), get(usedWidth));
set(leftMargin, get(mouse.x));
,
if(layer[get(tooltipCurrentTextfieldLayer)].edge == "right",
set(usedWidth, get(layer[get(tooltipCurrentTextfieldLayer)].width));
set(rightMargin, get(mouse.x));
sub(leftMargin, get(mouse.x), get(usedWidth));
,
add(rightMargin, get(mouse.x), get(usedWidth));
sub(leftMargin, get(mouse.x), get(usedWidth));
);
);
add(rightMargin, get(layer[get(tooltipCurrentTextfieldLayer)].xoffset));
add(leftMargin, get(layer[get(tooltipCurrentTextfieldLayer)].xoffset));
if(layer[get(tooltipCurrentTextfieldLayer)].edge == "bottom",
set(usedHeight, get(layer[get(tooltipCurrentTextfieldLayer)].height));
sub(topMargin, get(mouse.y), get(usedHeight));
set(bottomMargin, get(mouse.y));
,
if(layer[get(tooltipCurrentTextfieldLayer)].edge == "top",
set(usedHeight, get(layer[get(tooltipCurrentTextfieldLayer)].height));
set(topMargin, get(mouse.y));
add(bottomMargin, get(mouse.y), get(usedHeight));
,
sub(topMargin, get(mouse.y), get(usedHeight));
add(bottomMargin, get(mouse.y), get(usedHeight));
);
);
add(topMargin, get(layer[get(tooltipCurrentTextfieldLayer)].yoffset));
add(bottomMargin, get(layer[get(tooltipCurrentTextfieldLayer)].yoffset));
if(leftMargin LT 0,
set(layer[get(tooltipCurrentTextfieldLayer)].align, "left");
set(tooltipPositionX, get(usedWidth));
,
if(rightMargin GT stagewidth,
set(layer[get(tooltipCurrentTextfieldLayer)].align, "right");
set(tooltipPositionX, get(usedWidth));
,
div(tooltipPositionX, stagewidth, 2);
sub(tooltipPositionX, get(mouse.x), get(tooltipPositionX));
add(tooltipPositionX, get(layer[get(tooltipCurrentTextfieldLayer)].xoffset));
);
);
set(layer[get(tooltipCurrentTextfieldLayer)].x, get(tooltipPositionX));
if(topMargin LT 0,
if(layer[get(tooltipCurrentTextfieldLayer)].align == "center",
set(layer[get(tooltipCurrentTextfieldLayer)].align, "top");
,
txtadd(layer[get(tooltipCurrentTextfieldLayer)].align, "top");
);
set(tooltipPositionY, get(usedHeight));
,
if(bottomMargin GT stageheight,
if(layer[get(tooltipCurrentTextfieldLayer)].align == "center",
set(layer[get(tooltipCurrentTextfieldLayer)].align, "bottom");
,
txtadd(layer[get(tooltipCurrentTextfieldLayer)].align, "bottom");
);
set(tooltipPositionY, get(usedHeight));
,
div(tooltipPositionY, stageheight, 2);
sub(tooltipPositionY, get(mouse.y), get(tooltipPositionY));
add(tooltipPositionY, get(layer[get(tooltipCurrentTextfieldLayer)].yoffset));
);
);
set(layer[get(tooltipCurrentTextfieldLayer)].y, get(tooltipPositionY));
);
);
</action>
<action name="hideTooltip">
set(layer[get(tooltipCurrentTextfieldLayer)].visible, false);
set(layer[get(tooltipCurrentTextfieldLayer)].html, '');
</action>
<action name="tooltipTextSettingsUpdate">
if(get(tooltipCurrentTextfieldLayer) != "",
set(layer[get(tooltipCurrentTextfieldLayer)].align, "center");
if (%2 == null,
set(layer[get(tooltipCurrentTextfieldLayer)].edge, "bottom");
,
set(layer[get(tooltipCurrentTextfieldLayer)].edge, %2);
);
if (%3 != null,
set(layer[get(tooltipCurrentTextfieldLayer)].autowidth, false);
set(layer[get(tooltipCurrentTextfieldLayer)].wordwrap, true);
set(layer[get(tooltipCurrentTextfieldLayer)].width, %3);
);
if (%4 != null,
set(layer[get(tooltipCurrentTextfieldLayer)].xoffset, %4);
);
if (%5 != null,
set(layer[get(tooltipCurrentTextfieldLayer)].yoffset, %5);
);
set(layer[get(tooltipCurrentTextfieldLayer)].zorder, 99);
);
</action>
<!-- Default HTML5 tooltip style -->
<layer name="panotourTooltipDefaultText"
keep="true"
enabled="false"
capture="false"
url="%FIRSTXML%/graphics/textfield.swf"
align="center"
background="false"
border="false"
textshadow="1" textshadowrange="4.0" textshadowangle="45" textshadowcolor="0x000000" textshadowalpha="1"
css="color:#ffffff;font-family:Arial;font-weight:bold;font-size:14px;text-align:left;"
height="20"
autoheight="true"
autowidth="auto"
edge="bottom"
selectable="false"
zorder="0"
padding="2"
xoffset="0"
yoffset="0"
visible="false"
html=""
/>
<!-- Keyboard management -->
<krpano tour_ctrlPressed="false"/>
<events name="zoomEvents" onkeydown="onKDZ" onkeyup="onKUZ" keep="true"/>
<action name="onKDZ">if(keycode==17,set(tour_ctrlPressed,true );,if(keycode==107,set(fov_moveforce,-1);,if(keycode==109,set(fov_moveforce,+1);,if(keycode==189,set(fov_moveforce,+1);,if(tour_ctrlPressed==true,if(keycode==96,lookto(get(panoview.h),get(panoview.v),get(panoview.fov));););););););</action>
<action name="onKUZ">if(keycode==17,set(tour_ctrlPressed,false);,if(keycode==107,set(fov_moveforce, 0);,if(keycode==109,set(fov_moveforce, 0);,if(keycode==189,set(fov_moveforce, 0);););););</action>
<!-- Indicate if a scene is seen or not - dispatch an event if the state is changed -->
<events name="sceneSeenEvents" onnewpano="changeSeenState" keep="true"/>
<action name="changeSeenState">
ifnot (scene[get(xml.scene)].seen,
set(scene[get(xml.scene)].seen, true);
events.dispatch(onSeenStateChanged);
);
</action>
<!-- Cursors management -->
<events name="cursorsEvents" onnewpano="setCursor" oncontrolmodechanged="setCursor" keep="true" devices="desktop" />
<action name="setCursor">
if (tour_controlmodemousetype == moveto,
setarrowcursors();
,
sethandcursors();
);
</action>
<!-- Change Cursors Appearance -->
<action name="setarrowcursors">
if (device.flash,
ifnot(device.mac,
set(cursors.url , %FIRSTXML%/graphics/cursors_move.png);
set(cursors.type , 8way);
set(cursors.move , 0|0|16|16);
set(cursors.drag , 16|0|16|16);
set(cursors.arrow_u , 32|0|16|16);
set(cursors.arrow_d , 48|0|16|16);
set(cursors.arrow_l , 64|0|16|16);
set(cursors.arrow_r , 80|0|16|16);
set(cursors.arrow_lu, 96|0|16|16);
set(cursors.arrow_ru, 112|0|16|16);
set(cursors.arrow_rd, 128|0|16|16);
set(cursors.arrow_ld, 144|0|16|16);
);
,
js(kpanotour.Cursors.setMoveCursor());
);
</action>
<action name="sethandcursors">
if (device.flash,
ifnot(device.mac,
set(cursors.url , %FIRSTXML%/graphics/cursors_drag.png);
set(cursors.type, 2way);
set(cursors.move, 0|0|32|32);
set(cursors.drag, 32|0|32|32);
);
,
js(kpanotour.Cursors.setDragCursor());
);
</action>
</krpano> | {
"content_hash": "c7cd8cf8ecf5fb206ff1522348afa06e",
"timestamp": "",
"source": "github",
"line_count": 548,
"max_line_length": 304,
"avg_line_length": 33.06751824817518,
"alnum_prop": 0.6658572926438938,
"repo_name": "zixuanwang/home",
"id": "4c3d7c7f8f2450487a10e4df24e9b37042681f69",
"size": "18121",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "web/vt/bainbridgedata/bainbridge_core.xml",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "4815"
},
{
"name": "CSS",
"bytes": "64039"
},
{
"name": "Go",
"bytes": "7076"
},
{
"name": "HTML",
"bytes": "243871"
},
{
"name": "JavaScript",
"bytes": "705082"
},
{
"name": "PHP",
"bytes": "641614"
},
{
"name": "Python",
"bytes": "5845"
}
],
"symlink_target": ""
} |
package gcm.play.android.samples.com.gcm;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import java.io.FileOutputStream;
import gcm.play.android.samples.com.gcm.R;
public class MainActivity extends AppCompatActivity {
private static final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000;
private static final String TAG = "MainActivity";
private BroadcastReceiver mRegistrationBroadcastReceiver;
private BroadcastReceiver mUnRegistrationBroadcastReceiver;
private ProgressBar mRegistrationProgressBar;
private TextView mInformationTextView;
private Boolean pause = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Intent intent = getIntent();
String mode = intent.getStringExtra("mode");
Toast.makeText(getApplicationContext(),mode,2);
mRegistrationProgressBar = (ProgressBar) findViewById(R.id.registrationProgressBar);
mInformationTextView = (TextView) findViewById(R.id.informationTextView);
if (mode == null) {
startActivity(new Intent(this, Topics.class));
return;
}
if (mode.equals("register")) {
mRegistrationBroadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
mRegistrationProgressBar.setVisibility(ProgressBar.GONE);
SharedPreferences sharedPreferences =
PreferenceManager.getDefaultSharedPreferences(context);
boolean sentToken = sharedPreferences
.getBoolean(QuickstartPreferences.SENT_TOKEN_TO_SERVER, false);
if (sentToken) {
String st=getString(R.string.gcm_send_message);
StringBuilder sb=new StringBuilder();
String[] topics=RegistrationIntentService.getTopics();
for (int i=0;i<topics.length;i++)
sb.append(topics[i]+", ");
mInformationTextView.setText(st+" Currently listening to "+ sb.toString().substring(0,sb.length()-2));
} else {
mInformationTextView.setText(getString(R.string.token_error_message));
}
}
};
if (checkPlayServices()) {
// Start IntentService to register this application with GCM.
try {
intent = new Intent(this, RegistrationIntentService.class);
startService(intent);
} catch (Exception exp) {
}
}
}
else
{
mInformationTextView.setText("Unregistering in progress....");
mUnRegistrationBroadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.e("MAIN", "Boardcast Received");
mRegistrationProgressBar.setVisibility(ProgressBar.GONE);
StringBuilder sb = new StringBuilder();
String[] topics=UnRegisterIntentService.getTopics();
for (int i=0;i<topics.length;i++)
sb.append(topics[i]+", ");
String removedTopics=sb.toString().substring(0,sb.length()-2);
String[] RegTopics= RegistrationIntentService.getTopics();
String[] NewTopics=new String[RegTopics.length-topics.length];
Log.d("UnRegister","Array Length: "+ (RegTopics.length-topics.length));
String cTopics=null;
if (NewTopics.length>0) {
int z = 0;
for (int i = 0; i < RegTopics.length; i++) {
Boolean found = false;
for (int j = 0; j < topics.length; j++) {
if (topics[j].equals(RegTopics[i]))
found = true;
}
if (!found) {
NewTopics[z] = RegTopics[i];
z++;
}
}
sb = new StringBuilder();
for (int i = 0; i < NewTopics.length; i++)
sb.append(NewTopics[i] + ", ");
cTopics = sb.toString().substring(0, sb.length() - 2);
}
if (cTopics==null)
cTopics="' '";
RegistrationIntentService.setTopics(NewTopics,false);
try {
FileOutputStream fos = openFileOutput("topics.txt", Context.MODE_PRIVATE);
fos.write(cTopics.replaceAll(", ",",").getBytes());
fos.close();
}
catch (Exception exp)
{}
mInformationTextView.setText("Unregistered Succesfully from "+removedTopics+". Currently Listening to "+cTopics);
}};
Log.i("Main:","Starting unregisteration Intent");
Intent unregintent = new Intent(this, UnRegisterIntentService.class);
startService(unregintent);
}
}
@Override
protected void onResume() {
super.onResume();
LocalBroadcastManager.getInstance(this).registerReceiver(mRegistrationBroadcastReceiver,
new IntentFilter(QuickstartPreferences.REGISTRATION_COMPLETE));
LocalBroadcastManager.getInstance(this).registerReceiver(mUnRegistrationBroadcastReceiver,
new IntentFilter(QuickstartPreferences.UNREGISTRATION_COMPLETE));
}
@Override
protected void onPause() {
LocalBroadcastManager.getInstance(this).unregisterReceiver(mRegistrationBroadcastReceiver);
LocalBroadcastManager.getInstance(this).unregisterReceiver(mUnRegistrationBroadcastReceiver);
super.onPause();
}
/**
* Check the device to make sure it has the Google Play Services APK. If
* it doesn't, display a dialog that allows users to download the APK from
* the Google Play Store or enable it in the device's system settings.
*/
private boolean checkPlayServices() {
GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();
int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);
if (resultCode != ConnectionResult.SUCCESS) {
if (apiAvailability.isUserResolvableError(resultCode)) {
apiAvailability.getErrorDialog(this, resultCode, PLAY_SERVICES_RESOLUTION_REQUEST)
.show();
} else {
Log.i(TAG, "This device is not supported.");
finish();
}
return false;
}
return true;
}
} | {
"content_hash": "7a845423c6b345b3089d203ccac73ba8",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 133,
"avg_line_length": 43.166666666666664,
"alnum_prop": 0.5794079794079794,
"repo_name": "mkalioby/Python_Notifications",
"id": "4cba497f8e80fb7fcf889d5af735533908e45cf4",
"size": "8382",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Applications/Android/src/main/java/gcm/play/android/samples/com/gcm/MainActivity.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "33985"
},
{
"name": "Python",
"bytes": "2587"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Phyllosticta cyperi Hollós
### Remarks
null | {
"content_hash": "23fb65540de57e37c66379e34bd10b64",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 26,
"avg_line_length": 10.076923076923077,
"alnum_prop": 0.7175572519083969,
"repo_name": "mdoering/backbone",
"id": "cf051c442026e31db7042d91496671d6470ce9bc",
"size": "183",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Dothideomycetes/Botryosphaeriales/Botryosphaeriaceae/Phyllosticta/Phyllosticta cyperi/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.javakaffee.msm.samples</groupId>
<artifactId>msm-samples-project</artifactId>
<packaging>pom</packaging>
<version>1.9.2-SNAPSHOT</version>
<name>msm-samples project</name>
<description>Parent pom for msm samples</description>
<!-- TODO <organization> <name>company name</name> <url>company url</url>
</organization> -->
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<modules>
<module>simpleservlet</module>
</modules>
<properties>
<tomcat-version>7.0.91</tomcat-version>
<tomcat.port>9090</tomcat.port>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<version>${tomcat-version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<dependencies>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-util</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-coyote</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-api</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-dbcp</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jsp-api</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper-el</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-el-api</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-tribes</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina-ha</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-annotations-api</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-juli</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-logging-juli</artifactId>
<version>${tomcat-version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-logging-log4j</artifactId>
<version>${tomcat-version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Not working... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version> <executions> <execution> <phase>validate</phase>
<goals> <goal>set-system-properties</goal> </goals> <configuration> <properties>
<property> <name>java.util.logging.config.file</name> <value>..src/main/resources/logging.properties</value>
</property> </properties> </configuration> </execution> </executions> </plugin -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<!-- http port -->
<port>${tomcat.port}</port>
<!-- application path always starts with / -->
<path>/</path>
<backgroundProcessorDelay>10</backgroundProcessorDelay>
<tomcatLoggingFile>../src/main/resources/logging.properties</tomcatLoggingFile>
<!-- When run with `mvn tomcat7:run -pl :simpleservlet -am`
the plugin is run in the submodule's directory, so we must walk up to the
(this) parent project -->
<contextFile>../src/main/resources/context.xml</contextFile>
<systemProperties>
<!-- DOESN'T WORK, specify with -D...! // For maven tomcat plugin,
relative to this project dir -->
<java.util.logging.config.file>src/main/resources/logging.properties</java.util.logging.config.file>
<!-- msm properties as used by context.xml -->
<sticky>${msm.sticky}</sticky>
<memcachedNodes>${msm.memcachedNodes}</memcachedNodes>
<failoverNodes>${msm.failoverNodes}</failoverNodes>
</systemProperties>
</configuration>
<!-- For any extra dependencies needed when running embedded Tomcat (not
WAR dependencies) add them below -->
<dependencies>
<!-- <dependency> <groupId>de.javakaffee.msm</groupId> <artifactId>memcached-session-manager</artifactId>
<version>${project.version}</version> </dependency> -->
<dependency>
<groupId>de.javakaffee.msm</groupId>
<artifactId>memcached-session-manager-tc7</artifactId>
<version>${project.version}</version>
</dependency>
<!-- <dependency> <groupId>net.spy</groupId> <artifactId>spymemcached</artifactId>
<version>2.11.1</version> <scope>compile</scope> </dependency> -->
</dependencies>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>sticky</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<msm.memcachedNodes>n1:localhost:11211,n2:localhost:11212</msm.memcachedNodes>
<msm.failoverNodes>n1</msm.failoverNodes>
<msm.sticky>true</msm.sticky>
</properties>
</profile>
<profile>
<id>single-memcached</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<msm.sticky>true</msm.sticky>
<msm.memcachedNodes>localhost:11211</msm.memcachedNodes>
<!-- use space because tc mvn plugin does not set empty properties -->
<msm.failoverNodes><![CDATA[ ]]></msm.failoverNodes>
</properties>
</profile>
<profile>
<id>non-sticky</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<msm.memcachedNodes>n1:localhost:11211,n2:localhost:11212</msm.memcachedNodes>
<msm.failoverNodes> </msm.failoverNodes>
<msm.sticky>false</msm.sticky>
</properties>
</profile>
</profiles>
</project>
| {
"content_hash": "27adc3ad4778a5d54d6f7b07d87fcc6e",
"timestamp": "",
"source": "github",
"line_count": 245,
"max_line_length": 118,
"avg_line_length": 34.18775510204082,
"alnum_prop": 0.6603390639923591,
"repo_name": "magro/memcached-session-manager",
"id": "a66802f17fe998cc4b7a036eb3dd04e784991499",
"size": "8376",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "samples/pom.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "1225326"
},
{
"name": "Ruby",
"bytes": "12736"
},
{
"name": "XSLT",
"bytes": "4328"
}
],
"symlink_target": ""
} |
package org.jadira.scanner.classfile;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
import java.util.WeakHashMap;
import javassist.bytecode.ClassFile;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.jadira.scanner.classfile.filter.ClassFileFilter;
import org.jadira.scanner.classfile.filter.NameFilter;
import org.jadira.scanner.classfile.filter.PackageFileFilter;
import org.jadira.scanner.classpath.projector.ClasspathProjector;
import org.jadira.scanner.core.api.Allocator;
import org.jadira.scanner.core.api.Projector;
import org.jadira.scanner.core.helper.JavassistClassFileHelper;
import org.jadira.scanner.core.spi.AbstractFileResolver;
import org.jadira.scanner.core.utils.reflection.ClassLoaderUtils;
import org.jadira.scanner.file.locator.JdkBaseClasspathUrlLocator;
import de.schlichtherle.io.FileInputStream;
public class ClassFileResolver extends AbstractFileResolver<ClassFile> {
private static final WeakHashMap<File, ClassFile> CACHED_CLASSFILES = new WeakHashMap<File, ClassFile>();
private static final Projector<File> CLASSPATH_PROJECTOR = ClasspathProjector.SINGLETON;
private static final List<URL> JDK_BASE_CLASSPATH_JARS = new JdkBaseClasspathUrlLocator().locate();
private final ClassFileAssigner assigner = new ClassFileAssigner();
private final ClassLoader[] classLoaders;
public ClassFileResolver() {
this.classLoaders = ClassLoaderUtils.getClassLoaders();
}
public ClassFileResolver(ClassLoader... classLoaders) {
super(JDK_BASE_CLASSPATH_JARS);
this.classLoaders = ClassLoaderUtils.getClassLoaders(classLoaders);
}
public ClassFileResolver(List<URL> classpaths, ClassLoader... classLoaders) {
super(JDK_BASE_CLASSPATH_JARS);
getDriverData().addAll(classpaths);
this.classLoaders = ClassLoaderUtils.getClassLoaders(classLoaders);
}
@Override
public String toString() {
ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
builder.append(getDriverData().toArray());
return builder.toString();
}
@Override
protected Allocator<ClassFile, File> getAssigner() {
return assigner;
}
private final class ClassFileAssigner implements Allocator<ClassFile, File> {
@Override
public ClassFile allocate(File e) {
ClassFile res = CACHED_CLASSFILES.get(e);
if (res != null) {
return res;
}
FileInputStream tis = null;
try {
tis = new FileInputStream(e);
res = JavassistClassFileHelper.constructClassFileForPath(e.getPath(), tis);
CACHED_CLASSFILES.put(e, res);
return res;
} catch (FileNotFoundException e1) {
throw new IllegalArgumentException(e + " is not a valid File", e1);
} catch (IOException e1) {
throw new IllegalArgumentException("Could not load ClassFile for " + e, e1);
} finally {
if (tis != null) {
try {
tis.close();
} catch (IOException e1) {
// Ignore
}
}
}
}
}
public ClassFile resolveClassFile(String name) {
ClassFile cf = null;
String className = name.replace('.', '/').concat(".class");
for (ClassLoader classLoader : classLoaders) {
if (classLoader != null) {
InputStream is = classLoader.getResourceAsStream(className);
if (is == null) {
continue;
}
BufferedInputStream fin = new BufferedInputStream(is);
try {
cf = new ClassFile(new DataInputStream(fin));
if (cf != null) {
return cf;
}
} catch (IOException e) {
// Ignore
}
}
}
cf = resolveFirst(null, CLASSPATH_PROJECTOR, new PackageFileFilter(name, true), new NameFilter(name));
if (cf == null) {
cf = resolveFirst(null, CLASSPATH_PROJECTOR, new ClassFileFilter(name));
}
return cf;
}
} | {
"content_hash": "dc11e87701db0bcfb54a578eca2fc024",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 109,
"avg_line_length": 30.565217391304348,
"alnum_prop": 0.6882408724513988,
"repo_name": "harishpalk/Jadira",
"id": "39f453aedbba9701971b3360baed7f3bb14ded05",
"size": "4836",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "scanner/src/main/java/org/jadira/scanner/classfile/ClassFileResolver.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "3198027"
}
],
"symlink_target": ""
} |
class TextComponent : public Component
{
public:
ADD_TYPE_META_INFO()
TextComponent(std::string text);
~TextComponent();
virtual void initialize(bool force = false) override;
virtual void terminate() override;
READONLY_PROPERTY(std::string, text)
};
| {
"content_hash": "9143e635ee17292ede97450f7acf02db",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 57,
"avg_line_length": 21.307692307692307,
"alnum_prop": 0.6967509025270758,
"repo_name": "Harunx9/2DXngine",
"id": "749f76cfe2b6514621a89ddf3359667ae183ac6c",
"size": "335",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/2DXngine.Engine/Components/Data/TextComponent.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "11799"
},
{
"name": "C++",
"bytes": "414592"
},
{
"name": "CMake",
"bytes": "43148"
},
{
"name": "Shell",
"bytes": "64"
}
],
"symlink_target": ""
} |
module Mutant
class Mutator
class Node
class Literal < self
# Mutator for symbol literals
class Symbol < self
handle(:sym)
children :value
PREFIX = '__mutant__'.freeze
private
# Emit mutations
#
# @return [undefined]
def dispatch
emit_singletons
Util::Symbol.call(value).each(&method(:emit_type))
end
end # Symbol
end # Literal
end # Node
end # Mutator
end # Mutant
| {
"content_hash": "a03a3b0b5b8d8cbf732b8c6c431860de",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 62,
"avg_line_length": 19,
"alnum_prop": 0.5131578947368421,
"repo_name": "tjchambers/mutant",
"id": "0001685c6c9339ee08b04b96a03ee7970c0778ce",
"size": "563",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/mutant/mutator/node/literal/symbol.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Roff",
"bytes": "466"
},
{
"name": "Ruby",
"bytes": "536269"
}
],
"symlink_target": ""
} |
#ifndef INCLUDED_haxe_CallStack
#define INCLUDED_haxe_CallStack
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS0(StringBuf)
HX_DECLARE_CLASS1(haxe,CallStack)
HX_DECLARE_CLASS1(haxe,StackItem)
namespace haxe{
class HXCPP_CLASS_ATTRIBUTES CallStack_obj : public hx::Object{
public:
typedef hx::Object super;
typedef CallStack_obj OBJ_;
CallStack_obj();
Void __construct();
public:
static hx::ObjectPtr< CallStack_obj > __new();
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
~CallStack_obj();
HX_DO_RTTI;
static void __boot();
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
::String __ToString() const { return HX_CSTRING("CallStack"); }
static Array< ::Dynamic > exceptionStack( );
static Dynamic exceptionStack_dyn();
static ::String toString( Array< ::Dynamic > stack);
static Dynamic toString_dyn();
static Void itemToString( ::StringBuf b,::haxe::StackItem s);
static Dynamic itemToString_dyn();
static Array< ::Dynamic > makeStack( Array< ::String > s);
static Dynamic makeStack_dyn();
};
} // end namespace haxe
#endif /* INCLUDED_haxe_CallStack */
| {
"content_hash": "a3cfe3d006dc4254381ad1d61cc655d9",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 65,
"avg_line_length": 24,
"alnum_prop": 0.7016666666666667,
"repo_name": "DrSkipper/twogames",
"id": "745bb113f574217e9cb3c998695944886d43cb76",
"size": "1200",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "bin/windows/cpp/obj/include/haxe/CallStack.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "3402052"
},
{
"name": "Haxe",
"bytes": "66865"
},
{
"name": "JavaScript",
"bytes": "60241"
}
],
"symlink_target": ""
} |
Simple MQQT monitor with dynamically defined publishers
## Installation
Clone the repo:
git clone git@github.com:mchmarny/mqtt-stats.git
## Collect
Once you have a copy locally, execute the collection start script:
cd mqtt-stats
./start.sh
## Publish
Right now the publish part is an external process. Simplest way to schedule this is using cron
crontab -e
Publish data every minute
* * * * * /home/ubuntu/mqtt-stats/send.sh > /home/ubuntu/mqtt-stats/stats.log 2>&1
### Configuration
The stats app has four distinct way configuration sections: log, mqtt, redid, gecko
#### Log
"level": "debug",
"timestamp": true
#### MQTT
"topic": "#",
"secure": false,
"host": "127.0.0.1",
"port": 1883,
"args": {
"keepalive": 59000
}
#### Redis
"prefix": "topic",
"resolution": "yyyy-mm-dd-HH-MM",
"topic": "#",
"host": "127.0.0.1",
"port": 6379,
"options": {}
#### Gecko
You can find more about the configuration of custom widgets [here](http://www.geckoboard.com/developers/custom-widgets/push).
"key": "YOUR_GECKO_KEY",
"widget": "YOUT_CUSTOM_WIDGET_ID"
| {
"content_hash": "13a5c51e0fa8290f984a7aa83b088879",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 125,
"avg_line_length": 18.533333333333335,
"alnum_prop": 0.6609712230215827,
"repo_name": "mchmarny/mqtt-stats",
"id": "437fee538367d6e0dcb6feb51ec91c26c6e5e2a2",
"size": "1126",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "JavaScript",
"bytes": "4496"
},
{
"name": "Shell",
"bytes": "814"
}
],
"symlink_target": ""
} |
require 'spec_helper'
describe 'inspection for common cases' do
it 'should support the new DSL' do
# 1st state machine
expect(FooMultiple.aasm(:left)).to respond_to(:states)
expect(FooMultiple.aasm(:left).states.size).to eql 3
expect(FooMultiple.aasm(:left).states).to include(:open)
expect(FooMultiple.aasm(:left).states).to include(:closed)
expect(FooMultiple.aasm(:left).states).to include(:final)
expect(FooMultiple.aasm(:left)).to respond_to(:initial_state)
expect(FooMultiple.aasm(:left).initial_state).to eq(:open)
expect(FooMultiple.aasm(:left)).to respond_to(:events)
expect(FooMultiple.aasm(:left).events.size).to eql 2
expect(FooMultiple.aasm(:left).events).to include(:close)
expect(FooMultiple.aasm(:left).events).to include(:null)
# 2nd state machine
expect(FooMultiple.aasm(:right)).to respond_to(:states)
expect(FooMultiple.aasm(:right).states.size).to eql 3
expect(FooMultiple.aasm(:right).states).to include(:green)
expect(FooMultiple.aasm(:right).states).to include(:yellow)
expect(FooMultiple.aasm(:right).states).to include(:red)
expect(FooMultiple.aasm(:right)).to respond_to(:initial_state)
expect(FooMultiple.aasm(:right).initial_state).to eq(:green)
expect(FooMultiple.aasm(:right)).to respond_to(:events)
expect(FooMultiple.aasm(:right).events.size).to eql 3
expect(FooMultiple.aasm(:right).events).to include(:green)
expect(FooMultiple.aasm(:right).events).to include(:yellow)
expect(FooMultiple.aasm(:right).events).to include(:red)
end
context "instance level inspection" do
let(:foo) { FooMultiple.new }
let(:two) { FooTwoMultiple.new }
it "delivers all states" do
# 1st state machine
states = foo.aasm(:left).states
expect(states.size).to eql 3
expect(states).to include(:open)
expect(states).to include(:closed)
expect(states).to include(:final)
states = foo.aasm(:left).states(:permitted => true)
expect(states.size).to eql 1
expect(states).to include(:closed)
expect(states).not_to include(:open)
expect(states).not_to include(:final)
foo.close
expect(foo.aasm(:left).states(:permitted => true)).to be_empty
# 2nd state machine
states = foo.aasm(:right).states
expect(states.size).to eql 3
expect(states).to include(:green)
expect(states).to include(:yellow)
expect(states).to include(:red)
states = foo.aasm(:right).states(:permitted => true)
expect(states.size).to eql 1
expect(states).to include(:yellow)
expect(states).not_to include(:green)
expect(states).not_to include(:red)
foo.yellow
states = foo.aasm(:right).states(:permitted => true)
expect(states.size).to eql 2
expect(states).to include(:red)
expect(states).to include(:green)
expect(states).not_to include(:yellow)
end
it "delivers all states for subclasses" do
# 1st state machine
states = two.aasm(:left).states
expect(states.size).to eql 4
expect(states).to include(:open)
expect(states).to include(:closed)
expect(states).to include(:final)
expect(states).to include(:foo)
states = two.aasm(:left).states(:permitted => true)
expect(states.size).to eql 1
expect(states).to include(:closed)
expect(states).not_to include(:open)
two.close
expect(two.aasm(:left).states(:permitted => true)).to be_empty
# 2nd state machine
states = two.aasm(:right).states
expect(states.size).to eql 4
expect(states).to include(:green)
expect(states).to include(:yellow)
expect(states).to include(:red)
expect(states).to include(:bar)
states = two.aasm(:right).states(:permitted => true)
expect(states.size).to eql 1
expect(states).to include(:yellow)
expect(states).not_to include(:red)
expect(states).not_to include(:green)
expect(states).not_to include(:bar)
two.yellow
states = two.aasm(:right).states(:permitted => true)
expect(states.size).to eql 2
expect(states).to include(:green)
expect(states).to include(:red)
expect(states).not_to include(:yellow)
expect(states).not_to include(:bar)
end
it "delivers all events" do
# 1st state machine
events = foo.aasm(:left).events
expect(events.size).to eql 2
expect(events).to include(:close)
expect(events).to include(:null)
foo.close
expect(foo.aasm(:left).events).to be_empty
# 2nd state machine
events = foo.aasm(:right).events
expect(events.size).to eql 1
expect(events).to include(:yellow)
expect(events).not_to include(:green)
expect(events).not_to include(:red)
foo.yellow
events = foo.aasm(:right).events
expect(events.size).to eql 2
expect(events).to include(:green)
expect(events).to include(:red)
expect(events).not_to include(:yellow)
end
end
it 'should list states in the order they have been defined' do
expect(ConversationMultiple.aasm(:left).states).to eq([
:needs_attention, :read, :closed, :awaiting_response, :junk
])
end
end
describe "special cases" do
it "should support valid as state name" do
expect(ValidStateNameMultiple.aasm(:left).states).to include(:invalid)
expect(ValidStateNameMultiple.aasm(:left).states).to include(:valid)
argument = ValidStateNameMultiple.new
expect(argument.invalid?).to be_truthy
expect(argument.aasm(:left).current_state).to eq(:invalid)
argument.valid!
expect(argument.valid?).to be_truthy
expect(argument.aasm(:left).current_state).to eq(:valid)
end
end
describe 'aasm.states_for_select' do
context 'without I18n' do
before { allow(Module).to receive(:const_defined?).with(:I18n).and_return(nil) }
it "should return a select friendly array of states" do
expect(FooMultiple.aasm(:left)).to respond_to(:states_for_select)
expect(FooMultiple.aasm(:left).states_for_select).to eq(
[['Open', 'open'], ['Closed', 'closed'], ['Final', 'final']]
)
end
end
end
describe 'aasm.from_states_for_state' do
it "should return all from states for a state" do
expect(ComplexExampleMultiple.aasm(:left)).to respond_to(:from_states_for_state)
froms = ComplexExampleMultiple.aasm(:left).from_states_for_state(:active)
[:pending, :passive, :suspended].each {|from| expect(froms).to include(from)}
end
it "should return from states for a state for a particular transition only" do
froms = ComplexExampleMultiple.aasm(:left).from_states_for_state(:active, :transition => :left_unsuspend)
[:suspended].each {|from| expect(froms).to include(from)}
end
end
describe 'permitted events' do
let(:foo) {FooMultiple.new}
it 'work' do
expect(foo.aasm(:left).events(:permitted => true)).to include(:close)
expect(foo.aasm(:left).events(:permitted => true)).not_to include(:null)
expect(foo.aasm(:right).events(:permitted => true)).to include(:yellow)
expect(foo.aasm(:right).events(:permitted => true)).not_to include(:green)
expect(foo.aasm(:right).events(:permitted => true)).not_to include(:red)
end
end
| {
"content_hash": "a1a59e3dad498c4fb317d151548bee21",
"timestamp": "",
"source": "github",
"line_count": 205,
"max_line_length": 109,
"avg_line_length": 35.50731707317073,
"alnum_prop": 0.6705591427393873,
"repo_name": "aasm/aasm",
"id": "f5e7cd736e71f92987b1e613bfe67f417185e781",
"size": "7279",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/unit/inspection_multiple_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "981"
},
{
"name": "Ruby",
"bytes": "463487"
}
],
"symlink_target": ""
} |
umount /mnt
clear
echo "Milis Linux Kurulumu"
echo ""
echo "Yeni kullanıcı adını giriniz:"
read user
useradd $user
passwd $user
clear
echo "Milis Linux Kurulumu"
echo ""
echo "hangi diske kurulum yapacaksınız:"
ls /dev/sd*
read disk
clear
echo "Milis Linux Kurulumu"
echo ""
echo "Grubu nereye kuracaksınız:"
ls /dev/sd*
read grub
clear
echo "Milis Linux Kurulumu"
echo ""
echo "Kurulum başlıyor"
mkfs.ext4 /dev/$disk
mount $disk /mnt
echo "Dosyalar Kopyalanıyor"
cp -axvnu / /mnt
echo "Kernel ayarları yapılıyor"
chroot /mnt dracut --no-hostonly --add-drivers "ahci" -f /boot/initramfs
echo "Grub ayarlanıyor"
grub-install --boot-directory=/mnt/boot /$grub
grub-mkconfig -o /mnt/boot/grub/grub.cfg
clear
echo "Milis Linux Kurulumu"
echo ""
clear
echo "Milis kuruldu bilgisayarınızı yeniden başlatınız..."
| {
"content_hash": "fbea4e8a88eef3ceabd6c9e7e2a6c5d9",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 73,
"avg_line_length": 21.394736842105264,
"alnum_prop": 0.7503075030750308,
"repo_name": "HasanUnsal/malfs-milis",
"id": "7b087a96277544bf852e5e5cb5fa6a74d5db6c44",
"size": "881",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "bin/eski/milis-kurucu.sh",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "357"
},
{
"name": "Eiffel",
"bytes": "587"
},
{
"name": "Emacs Lisp",
"bytes": "138"
},
{
"name": "Groff",
"bytes": "21395"
},
{
"name": "M4",
"bytes": "143"
},
{
"name": "Makefile",
"bytes": "108"
},
{
"name": "Perl",
"bytes": "59702"
},
{
"name": "Python",
"bytes": "1640716"
},
{
"name": "Shell",
"bytes": "396736"
}
],
"symlink_target": ""
} |
class AddStatusFromTeacherOrder < ActiveRecord::Migration
def change
add_column :teacher_orders, :status, :string, null: false, default: "draft"
TeacherOrder.update_all status: "active"
end
end
| {
"content_hash": "f966b712a7b421d4df4b6acd0665db88",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 79,
"avg_line_length": 34.333333333333336,
"alnum_prop": 0.7475728155339806,
"repo_name": "gurujowa/rails-simple-crm",
"id": "9b321c6e557a21384da83fb2d8e6905c5ec60c7f",
"size": "206",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "db/old_migrate/2014/20141124120651_add_status_from_teacher_order.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "40786"
},
{
"name": "CoffeeScript",
"bytes": "16495"
},
{
"name": "HTML",
"bytes": "173819"
},
{
"name": "JavaScript",
"bytes": "743279"
},
{
"name": "Ruby",
"bytes": "348562"
}
],
"symlink_target": ""
} |
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.OutlookApi.Events
{
#pragma warning disable
#region SinkPoint Interface
[SupportByVersion("Outlook", 12,14,15,16)]
[InternalEntity(InternalEntityKind.ComEventInterface)]
[ComImport, Guid("000630F7-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIDispatch), TypeLibType((short)0x1010)]
public interface MAPIFolderEvents_12
{
[SupportByVersion("Outlook", 12,14,15,16)]
[SinkArgument("moveTo", typeof(OutlookApi.MAPIFolder))]
[SinkArgument("cancel", SinkArgumentType.Bool)]
[PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(64424)]
void BeforeFolderMove([In, MarshalAs(UnmanagedType.IDispatch)] object moveTo, [In] [Out] ref object cancel);
[SupportByVersion("Outlook", 12,14,15,16)]
[SinkArgument("item", SinkArgumentType.UnknownProxy)]
[SinkArgument("moveTo", typeof(OutlookApi.MAPIFolder))]
[SinkArgument("cancel", SinkArgumentType.Bool)]
[PreserveSig, MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(64425)]
void BeforeItemMove([In, MarshalAs(UnmanagedType.IDispatch)] object item, [In, MarshalAs(UnmanagedType.IDispatch)] object moveTo, [In] [Out] ref object cancel);
}
#endregion
#region SinkHelper
[InternalEntity(InternalEntityKind.SinkHelper)]
[ComVisible(true), ClassInterface(ClassInterfaceType.None), TypeLibType(TypeLibTypeFlags.FHidden)]
public class MAPIFolderEvents_12_SinkHelper : SinkHelper, MAPIFolderEvents_12
{
#region Static
public static readonly string Id = "000630F7-0000-0000-C000-000000000046";
#endregion
#region Ctor
public MAPIFolderEvents_12_SinkHelper(ICOMObject eventClass, IConnectionPoint connectPoint): base(eventClass)
{
SetupEventBinding(connectPoint);
}
#endregion
#region MAPIFolderEvents_12
public void BeforeFolderMove([In, MarshalAs(UnmanagedType.IDispatch)] object moveTo, [In] [Out] ref object cancel)
{
if (!Validate("BeforeFolderMove"))
{
Invoker.ReleaseParamsArray(moveTo, cancel);
return;
}
NetOffice.OutlookApi.MAPIFolder newMoveTo = Factory.CreateEventArgumentObjectFromComProxy(EventClass, moveTo) as NetOffice.OutlookApi.MAPIFolder;
object[] paramsArray = new object[2];
paramsArray[0] = newMoveTo;
paramsArray.SetValue(cancel, 1);
EventBinding.RaiseCustomEvent("BeforeFolderMove", ref paramsArray);
cancel = ToBoolean(paramsArray[1]);
}
public void BeforeItemMove([In, MarshalAs(UnmanagedType.IDispatch)] object item, [In, MarshalAs(UnmanagedType.IDispatch)] object moveTo, [In] [Out] ref object cancel)
{
if (!Validate("BeforeItemMove"))
{
Invoker.ReleaseParamsArray(item, moveTo, cancel);
return;
}
object newItem = Factory.CreateEventArgumentObjectFromComProxy(EventClass, item) as object;
NetOffice.OutlookApi.MAPIFolder newMoveTo = Factory.CreateEventArgumentObjectFromComProxy(EventClass, moveTo) as NetOffice.OutlookApi.MAPIFolder;
object[] paramsArray = new object[3];
paramsArray[0] = newItem;
paramsArray[1] = newMoveTo;
paramsArray.SetValue(cancel, 2);
EventBinding.RaiseCustomEvent("BeforeItemMove", ref paramsArray);
cancel = ToBoolean(paramsArray[2]);
}
#endregion
}
#endregion
#pragma warning restore
} | {
"content_hash": "830d951817a69a9ed9b9c34ed2492a63",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 168,
"avg_line_length": 37.01,
"alnum_prop": 0.723318022156174,
"repo_name": "NetOfficeFw/NetOffice",
"id": "0be08cb0cdff81ad46196aacebb42763f77793d3",
"size": "3703",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "Source/Outlook/Events/MAPIFolderEvents_12.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "951"
},
{
"name": "C#",
"bytes": "47700257"
},
{
"name": "Rich Text Format",
"bytes": "230731"
},
{
"name": "VBA",
"bytes": "1389"
},
{
"name": "Visual Basic .NET",
"bytes": "212815"
}
],
"symlink_target": ""
} |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.filter.security.misc;
import com.yahoo.container.jdisc.RequestHandlerTestDriver;
import com.yahoo.jdisc.Response;
import com.yahoo.jdisc.http.filter.DiscFilterRequest;
import com.yahoo.jdisc.http.filter.util.FilterTestUtils;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
/**
* @author mpolden
* @author bjorncs
*/
public class LocalhostFilterTest {
@Test
void filter() {
// Reject from non-loopback
assertUnauthorized(createRequest("1.2.3.4", null));
// Allow requests from loopback addresses
assertSuccess(createRequest("127.0.0.1", null));
assertSuccess(createRequest("127.127.0.1", null));
assertSuccess(createRequest("0:0:0:0:0:0:0:1", null));
// Allow requests originating from self
assertSuccess(createRequest("1.3.3.7", "1.3.3.7"));
}
private static DiscFilterRequest createRequest(String remoteAddr, String localAddr) {
return FilterTestUtils.newRequestBuilder()
.withUri("http://%s:8080/".formatted(localAddr))
.withRemoteAddress(remoteAddr, 12345)
.build();
}
private static void assertUnauthorized(DiscFilterRequest request) {
LocalhostFilter filter = new LocalhostFilter();
RequestHandlerTestDriver.MockResponseHandler handler = new RequestHandlerTestDriver.MockResponseHandler();
filter.filter(request, handler);
assertEquals(Response.Status.UNAUTHORIZED, handler.getStatus());
}
private static void assertSuccess(DiscFilterRequest request) {
LocalhostFilter filter = new LocalhostFilter();
RequestHandlerTestDriver.MockResponseHandler handler = new RequestHandlerTestDriver.MockResponseHandler();
filter.filter(request, handler);
assertNull(handler.getResponse());
}
}
| {
"content_hash": "070d9ac39212ba7d8bcf4216730aa2f3",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 114,
"avg_line_length": 37.45454545454545,
"alnum_prop": 0.7126213592233009,
"repo_name": "vespa-engine/vespa",
"id": "5b9f143a72b6ae0694fc743aef0ac10a76b5f608",
"size": "2060",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "jdisc-security-filters/src/test/java/com/yahoo/jdisc/http/filter/security/misc/LocalhostFilterTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "8130"
},
{
"name": "C",
"bytes": "60315"
},
{
"name": "C++",
"bytes": "29580035"
},
{
"name": "CMake",
"bytes": "593981"
},
{
"name": "Emacs Lisp",
"bytes": "91"
},
{
"name": "GAP",
"bytes": "3312"
},
{
"name": "Go",
"bytes": "560664"
},
{
"name": "HTML",
"bytes": "54520"
},
{
"name": "Java",
"bytes": "40814190"
},
{
"name": "JavaScript",
"bytes": "73436"
},
{
"name": "LLVM",
"bytes": "6152"
},
{
"name": "Lex",
"bytes": "11499"
},
{
"name": "Makefile",
"bytes": "5553"
},
{
"name": "Objective-C",
"bytes": "12369"
},
{
"name": "Perl",
"bytes": "23134"
},
{
"name": "Python",
"bytes": "52392"
},
{
"name": "Roff",
"bytes": "17506"
},
{
"name": "Ruby",
"bytes": "10690"
},
{
"name": "Shell",
"bytes": "268737"
},
{
"name": "Yacc",
"bytes": "14735"
}
],
"symlink_target": ""
} |
from collections import namedtuple
from io import StringIO
import click
import errno
import json
import logging
import os
import pathlib
import sys
from .benchmark.codec import JsonEncoder
from .benchmark.compare import RunnerComparator, DEFAULT_THRESHOLD
from .benchmark.runner import CppBenchmarkRunner, JavaBenchmarkRunner
from .compat import _import_pandas
from .lang.cpp import CppCMakeDefinition, CppConfiguration
from .utils.cli import ArrowBool, validate_arrow_sources, add_optional_command
from .utils.lint import linter, python_numpydoc, LintValidationException
from .utils.logger import logger, ctx as log_ctx
from .utils.source import ArrowSources
from .utils.tmpdir import tmpdir
# Set default logging to INFO in command line.
logging.basicConfig(level=logging.INFO)
BOOL = ArrowBool()
@click.group()
@click.option("--debug", type=BOOL, is_flag=True, default=False,
help="Increase logging with debugging output.")
@click.option("--pdb", type=BOOL, is_flag=True, default=False,
help="Invoke pdb on uncaught exception.")
@click.option("-q", "--quiet", type=BOOL, is_flag=True, default=False,
help="Silence executed commands.")
@click.pass_context
def archery(ctx, debug, pdb, quiet):
""" Apache Arrow developer utilities.
See sub-commands help with `archery <cmd> --help`.
"""
# Ensure ctx.obj exists
ctx.ensure_object(dict)
log_ctx.quiet = quiet
if debug:
logger.setLevel(logging.DEBUG)
ctx.debug = debug
if pdb:
import pdb
sys.excepthook = lambda t, v, e: pdb.pm()
build_dir_type = click.Path(dir_okay=True, file_okay=False, resolve_path=True)
# Supported build types
build_type = click.Choice(["debug", "relwithdebinfo", "release"],
case_sensitive=False)
# Supported warn levels
warn_level_type = click.Choice(["everything", "checkin", "production"],
case_sensitive=False)
simd_level = click.Choice(["NONE", "SSE4_2", "AVX2", "AVX512"],
case_sensitive=True)
def cpp_toolchain_options(cmd):
options = [
click.option("--cc", metavar="<compiler>", help="C compiler."),
click.option("--cxx", metavar="<compiler>", help="C++ compiler."),
click.option("--cxx-flags", help="C++ compiler flags."),
click.option("--cpp-package-prefix",
help=("Value to pass for ARROW_PACKAGE_PREFIX and "
"use ARROW_DEPENDENCY_SOURCE=SYSTEM"))
]
return _apply_options(cmd, options)
def java_toolchain_options(cmd):
options = [
click.option("--java-home", metavar="<java_home>",
help="Path to Java Developers Kit."),
click.option("--java-options", help="java compiler options."),
]
return _apply_options(cmd, options)
def _apply_options(cmd, options):
for option in options:
cmd = option(cmd)
return cmd
@archery.command(short_help="Initialize an Arrow C++ build")
@click.option("--src", metavar="<arrow_src>", default=None,
callback=validate_arrow_sources,
help="Specify Arrow source directory")
# toolchain
@cpp_toolchain_options
@click.option("--build-type", default=None, type=build_type,
help="CMake's CMAKE_BUILD_TYPE")
@click.option("--warn-level", default="production", type=warn_level_type,
help="Controls compiler warnings -W(no-)error.")
@click.option("--use-gold-linker", default=True, type=BOOL,
help="Toggles ARROW_USE_LD_GOLD option.")
@click.option("--simd-level", default="DEFAULT", type=simd_level,
help="Toggles ARROW_SIMD_LEVEL option.")
# Tests and benchmarks
@click.option("--with-tests", default=True, type=BOOL,
help="Build with tests.")
@click.option("--with-benchmarks", default=None, type=BOOL,
help="Build with benchmarks.")
@click.option("--with-examples", default=None, type=BOOL,
help="Build with examples.")
@click.option("--with-integration", default=None, type=BOOL,
help="Build with integration test executables.")
# Static checks
@click.option("--use-asan", default=None, type=BOOL,
help="Toggle ARROW_USE_ASAN sanitizer.")
@click.option("--use-tsan", default=None, type=BOOL,
help="Toggle ARROW_USE_TSAN sanitizer.")
@click.option("--use-ubsan", default=None, type=BOOL,
help="Toggle ARROW_USE_UBSAN sanitizer.")
@click.option("--with-fuzzing", default=None, type=BOOL,
help="Toggle ARROW_FUZZING.")
# Components
@click.option("--with-compute", default=None, type=BOOL,
help="Build the Arrow compute module.")
@click.option("--with-csv", default=None, type=BOOL,
help="Build the Arrow CSV parser module.")
@click.option("--with-cuda", default=None, type=BOOL,
help="Build the Arrow CUDA extensions.")
@click.option("--with-dataset", default=None, type=BOOL,
help="Build the Arrow dataset module.")
@click.option("--with-filesystem", default=None, type=BOOL,
help="Build the Arrow filesystem layer.")
@click.option("--with-flight", default=None, type=BOOL,
help="Build with Flight rpc support.")
@click.option("--with-gandiva", default=None, type=BOOL,
help="Build with Gandiva expression compiler support.")
@click.option("--with-hdfs", default=None, type=BOOL,
help="Build the Arrow HDFS bridge.")
@click.option("--with-hiveserver2", default=None, type=BOOL,
help="Build the HiveServer2 client and arrow adapater.")
@click.option("--with-ipc", default=None, type=BOOL,
help="Build the Arrow IPC extensions.")
@click.option("--with-json", default=None, type=BOOL,
help="Build the Arrow JSON parser module.")
@click.option("--with-jni", default=None, type=BOOL,
help="Build the Arrow JNI lib.")
@click.option("--with-mimalloc", default=None, type=BOOL,
help="Build the Arrow mimalloc based allocator.")
@click.option("--with-parquet", default=None, type=BOOL,
help="Build with Parquet file support.")
@click.option("--with-plasma", default=None, type=BOOL,
help="Build with Plasma object store support.")
@click.option("--with-python", default=None, type=BOOL,
help="Build the Arrow CPython extesions.")
@click.option("--with-r", default=None, type=BOOL,
help="Build the Arrow R extensions. This is not a CMake option, "
"it will toggle required options")
@click.option("--with-s3", default=None, type=BOOL,
help="Build Arrow with S3 support.")
# Compressions
@click.option("--with-brotli", default=None, type=BOOL,
help="Build Arrow with brotli compression.")
@click.option("--with-bz2", default=None, type=BOOL,
help="Build Arrow with bz2 compression.")
@click.option("--with-lz4", default=None, type=BOOL,
help="Build Arrow with lz4 compression.")
@click.option("--with-snappy", default=None, type=BOOL,
help="Build Arrow with snappy compression.")
@click.option("--with-zlib", default=None, type=BOOL,
help="Build Arrow with zlib compression.")
@click.option("--with-zstd", default=None, type=BOOL,
help="Build Arrow with zstd compression.")
# CMake extra feature
@click.option("--cmake-extras", type=str, multiple=True,
help="Extra flags/options to pass to cmake invocation. "
"Can be stacked")
@click.option("--install-prefix", type=str,
help="Destination directory where files are installed. Expand to"
"CMAKE_INSTALL_PREFIX. Defaults to to $CONDA_PREFIX if the"
"variable exists.")
# misc
@click.option("-f", "--force", type=BOOL, is_flag=True, default=False,
help="Delete existing build directory if found.")
@click.option("--targets", type=str, multiple=True,
help="Generator targets to run. Can be stacked.")
@click.argument("build_dir", type=build_dir_type)
@click.pass_context
def build(ctx, src, build_dir, force, targets, **kwargs):
""" Initialize a C++ build directory.
The build command creates a directory initialized with Arrow's cpp source
cmake and configuration. It can also optionally invoke the generator to
test the build (and used in scripts).
Note that archery will carry the caller environment. It will also not touch
an existing directory, one must use the `--force` option to remove the
existing directory.
Examples:
\b
# Initialize build with clang8 and avx2 support in directory `clang8-build`
\b
archery build --cc=clang-8 --cxx=clang++-8 --cxx-flags=-mavx2 clang8-build
\b
# Builds and run test
archery build --targets=all --targets=test build
"""
# Arrow's cpp cmake configuration
conf = CppConfiguration(**kwargs)
# This is a closure around cmake invocation, e.g. calling `def.build()`
# yields a directory ready to be run with the generator
cmake_def = CppCMakeDefinition(src.cpp, conf)
# Create build directory
build = cmake_def.build(build_dir, force=force)
for target in targets:
build.run(target)
LintCheck = namedtuple('LintCheck', ('option_name', 'help'))
lint_checks = [
LintCheck('clang-format', "Format C++ files with clang-format."),
LintCheck('clang-tidy', "Lint C++ files with clang-tidy."),
LintCheck('cpplint', "Lint C++ files with cpplint."),
LintCheck('iwyu', "Lint changed C++ files with Include-What-You-Use."),
LintCheck('python',
"Format and lint Python files with autopep8 and flake8."),
LintCheck('numpydoc', "Lint Python files with numpydoc."),
LintCheck('cmake-format', "Format CMake files with cmake-format.py."),
LintCheck('rat',
"Check all sources files for license texts via Apache RAT."),
LintCheck('r', "Lint R files."),
LintCheck('docker', "Lint Dockerfiles with hadolint."),
]
def decorate_lint_command(cmd):
"""
Decorate the lint() command function to add individual per-check options.
"""
for check in lint_checks:
option = click.option("--{0}/--no-{0}".format(check.option_name),
default=None, help=check.help)
cmd = option(cmd)
return cmd
@archery.command(short_help="Check Arrow source tree for errors")
@click.option("--src", metavar="<arrow_src>", default=None,
callback=validate_arrow_sources,
help="Specify Arrow source directory")
@click.option("--fix", is_flag=True, type=BOOL, default=False,
help="Toggle fixing the lint errors if the linter supports it.")
@click.option("--iwyu_all", is_flag=True, type=BOOL, default=False,
help="Run IWYU on all C++ files if enabled")
@click.option("-a", "--all", is_flag=True, default=False,
help="Enable all checks.")
@decorate_lint_command
@click.pass_context
def lint(ctx, src, fix, iwyu_all, **checks):
if checks.pop('all'):
# "--all" is given => enable all non-selected checks
for k, v in checks.items():
if v is None:
checks[k] = True
if not any(checks.values()):
raise click.UsageError(
"Need to enable at least one lint check (try --help)")
try:
linter(src, fix, iwyu_all=iwyu_all, **checks)
except LintValidationException:
sys.exit(1)
@archery.command(short_help="Lint python docstring with NumpyDoc")
@click.argument('symbols', nargs=-1)
@click.option("--src", metavar="<arrow_src>", default=None,
callback=validate_arrow_sources,
help="Specify Arrow source directory")
@click.option("--allow-rule", "-a", multiple=True,
help="Allow only these rules")
@click.option("--disallow-rule", "-d", multiple=True,
help="Disallow these rules")
def numpydoc(src, symbols, allow_rule, disallow_rule):
"""
Pass list of modules or symbols as arguments to restrict the validation.
By default all modules of pyarrow are tried to be validated.
Examples
--------
archery numpydoc pyarrow.dataset
archery numpydoc pyarrow.csv pyarrow.json pyarrow.parquet
archery numpydoc pyarrow.array
"""
disallow_rule = disallow_rule or {'GL01', 'SA01', 'EX01', 'ES01'}
try:
results = python_numpydoc(symbols, allow_rules=allow_rule,
disallow_rules=disallow_rule)
for result in results:
result.ok()
except LintValidationException:
sys.exit(1)
@archery.group()
@click.pass_context
def benchmark(ctx):
""" Arrow benchmarking.
Use the diff sub-command to benchmark revisions, and/or build directories.
"""
pass
def benchmark_common_options(cmd):
def check_language(ctx, param, value):
if value not in {"cpp", "java"}:
raise click.BadParameter("cpp or java is supported now")
return value
options = [
click.option("--src", metavar="<arrow_src>", show_default=True,
default=None, callback=validate_arrow_sources,
help="Specify Arrow source directory"),
click.option("--preserve", type=BOOL, default=False, show_default=True,
is_flag=True,
help="Preserve workspace for investigation."),
click.option("--output", metavar="<output>",
type=click.File("w", encoding="utf8"), default=None,
help="Capture output result into file."),
click.option("--language", metavar="<lang>", type=str, default="cpp",
show_default=True, callback=check_language,
help="Specify target language for the benchmark"),
click.option("--build-extras", type=str, multiple=True,
help="Extra flags/options to pass to mvn build. "
"Can be stacked. For language=java"),
click.option("--benchmark-extras", type=str, multiple=True,
help="Extra flags/options to pass to mvn benchmark. "
"Can be stacked. For language=java"),
click.option("--cmake-extras", type=str, multiple=True,
help="Extra flags/options to pass to cmake invocation. "
"Can be stacked. For language=cpp")
]
cmd = java_toolchain_options(cmd)
cmd = cpp_toolchain_options(cmd)
return _apply_options(cmd, options)
def benchmark_filter_options(cmd):
options = [
click.option("--suite-filter", metavar="<regex>", show_default=True,
type=str, default=None,
help="Regex filtering benchmark suites."),
click.option("--benchmark-filter", metavar="<regex>",
show_default=True, type=str, default=None,
help="Regex filtering benchmarks.")
]
return _apply_options(cmd, options)
@benchmark.command(name="list", short_help="List benchmark suite")
@click.argument("rev_or_path", metavar="[<rev_or_path>]",
default="WORKSPACE", required=False)
@benchmark_common_options
@click.pass_context
def benchmark_list(ctx, rev_or_path, src, preserve, output, cmake_extras,
java_home, java_options, build_extras, benchmark_extras,
language, **kwargs):
""" List benchmark suite.
"""
with tmpdir(preserve=preserve) as root:
logger.debug("Running benchmark {}".format(rev_or_path))
if language == "cpp":
conf = CppBenchmarkRunner.default_configuration(
cmake_extras=cmake_extras, **kwargs)
runner_base = CppBenchmarkRunner.from_rev_or_path(
src, root, rev_or_path, conf)
elif language == "java":
for key in {'cpp_package_prefix', 'cxx_flags', 'cxx', 'cc'}:
del kwargs[key]
conf = JavaBenchmarkRunner.default_configuration(
java_home=java_home, java_options=java_options,
build_extras=build_extras, benchmark_extras=benchmark_extras,
**kwargs)
runner_base = JavaBenchmarkRunner.from_rev_or_path(
src, root, rev_or_path, conf)
for b in runner_base.list_benchmarks:
click.echo(b, file=output or sys.stdout)
@benchmark.command(name="run", short_help="Run benchmark suite")
@click.argument("rev_or_path", metavar="[<rev_or_path>]",
default="WORKSPACE", required=False)
@benchmark_common_options
@benchmark_filter_options
@click.option("--repetitions", type=int, default=-1,
help=("Number of repetitions of each benchmark. Increasing "
"may improve result precision. "
"[default: 1 for cpp, 5 for java"))
@click.pass_context
def benchmark_run(ctx, rev_or_path, src, preserve, output, cmake_extras,
java_home, java_options, build_extras, benchmark_extras,
language, suite_filter, benchmark_filter, repetitions,
**kwargs):
""" Run benchmark suite.
This command will run the benchmark suite for a single build. This is
used to capture (and/or publish) the results.
The caller can optionally specify a target which is either a git revision
(commit, tag, special values like HEAD) or a cmake build directory.
When a commit is referenced, a local clone of the arrow sources (specified
via --src) is performed and the proper branch is created. This is done in
a temporary directory which can be left intact with the `--preserve` flag.
The special token "WORKSPACE" is reserved to specify the current git
workspace. This imply that no clone will be performed.
Examples:
\b
# Run the benchmarks on current git workspace
\b
archery benchmark run
\b
# Run the benchmarks on current previous commit
\b
archery benchmark run HEAD~1
\b
# Run the benchmarks on current previous commit
\b
archery benchmark run --output=run.json
"""
with tmpdir(preserve=preserve) as root:
logger.debug("Running benchmark {}".format(rev_or_path))
if language == "cpp":
conf = CppBenchmarkRunner.default_configuration(
cmake_extras=cmake_extras, **kwargs)
repetitions = repetitions if repetitions != -1 else 1
runner_base = CppBenchmarkRunner.from_rev_or_path(
src, root, rev_or_path, conf,
repetitions=repetitions,
suite_filter=suite_filter, benchmark_filter=benchmark_filter)
elif language == "java":
for key in {'cpp_package_prefix', 'cxx_flags', 'cxx', 'cc'}:
del kwargs[key]
conf = JavaBenchmarkRunner.default_configuration(
java_home=java_home, java_options=java_options,
build_extras=build_extras, benchmark_extras=benchmark_extras,
**kwargs)
repetitions = repetitions if repetitions != -1 else 5
runner_base = JavaBenchmarkRunner.from_rev_or_path(
src, root, rev_or_path, conf,
repetitions=repetitions,
benchmark_filter=benchmark_filter)
# XXX for some reason, the benchmark runner only does its work
# when asked to JSON-serialize the results, so produce a JSON
# output even when none is requested.
json_out = json.dumps(runner_base, cls=JsonEncoder)
if output is not None:
output.write(json_out)
@benchmark.command(name="diff", short_help="Compare benchmark suites")
@benchmark_common_options
@benchmark_filter_options
@click.option("--threshold", type=float, default=DEFAULT_THRESHOLD,
show_default=True,
help="Regression failure threshold in percentage.")
@click.option("--repetitions", type=int, default=1, show_default=True,
help=("Number of repetitions of each benchmark. Increasing "
"may improve result precision. "
"[default: 1 for cpp, 5 for java"))
@click.option("--no-counters", type=BOOL, default=False, is_flag=True,
help="Hide counters field in diff report.")
@click.argument("contender", metavar="[<contender>",
default=ArrowSources.WORKSPACE, required=False)
@click.argument("baseline", metavar="[<baseline>]]", default="origin/master",
required=False)
@click.pass_context
def benchmark_diff(ctx, src, preserve, output, language, cmake_extras,
suite_filter, benchmark_filter, repetitions, no_counters,
java_home, java_options, build_extras, benchmark_extras,
threshold, contender, baseline, **kwargs):
"""Compare (diff) benchmark runs.
This command acts like git-diff but for benchmark results.
The caller can optionally specify both the contender and the baseline. If
unspecified, the contender will default to the current workspace (like git)
and the baseline will default to master.
Each target (contender or baseline) can either be a git revision
(commit, tag, special values like HEAD) or a cmake build directory. This
allow comparing git commits, and/or different compilers and/or compiler
flags.
When a commit is referenced, a local clone of the arrow sources (specified
via --src) is performed and the proper branch is created. This is done in
a temporary directory which can be left intact with the `--preserve` flag.
The special token "WORKSPACE" is reserved to specify the current git
workspace. This imply that no clone will be performed.
Examples:
\b
# Compare workspace (contender) with master (baseline)
\b
archery benchmark diff
\b
# Compare master (contender) with latest version (baseline)
\b
export LAST=$(git tag -l "apache-arrow-[0-9]*" | sort -rV | head -1)
\b
archery benchmark diff master "$LAST"
\b
# Compare g++7 (contender) with clang++-8 (baseline) builds
\b
archery build --with-benchmarks=true \\
--cxx-flags=-ftree-vectorize \\
--cc=gcc-7 --cxx=g++-7 gcc7-build
\b
archery build --with-benchmarks=true \\
--cxx-flags=-flax-vector-conversions \\
--cc=clang-8 --cxx=clang++-8 clang8-build
\b
archery benchmark diff gcc7-build clang8-build
\b
# Compare default targets but scoped to the suites matching
# `^arrow-compute-aggregate` and benchmarks matching `(Sum|Mean)Kernel`.
\b
archery benchmark diff --suite-filter="^arrow-compute-aggregate" \\
--benchmark-filter="(Sum|Mean)Kernel"
\b
# Capture result in file `result.json`
\b
archery benchmark diff --output=result.json
\b
# Equivalently with no stdout clutter.
archery --quiet benchmark diff > result.json
\b
# Comparing with a cached results from `archery benchmark run`
\b
archery benchmark run --output=run.json HEAD~1
\b
# This should not recompute the benchmark from run.json
archery --quiet benchmark diff WORKSPACE run.json > result.json
"""
with tmpdir(preserve=preserve) as root:
logger.debug("Comparing {} (contender) with {} (baseline)"
.format(contender, baseline))
if language == "cpp":
conf = CppBenchmarkRunner.default_configuration(
cmake_extras=cmake_extras, **kwargs)
repetitions = repetitions if repetitions != -1 else 1
runner_cont = CppBenchmarkRunner.from_rev_or_path(
src, root, contender, conf,
repetitions=repetitions,
suite_filter=suite_filter,
benchmark_filter=benchmark_filter)
runner_base = CppBenchmarkRunner.from_rev_or_path(
src, root, baseline, conf,
repetitions=repetitions,
suite_filter=suite_filter,
benchmark_filter=benchmark_filter)
elif language == "java":
for key in {'cpp_package_prefix', 'cxx_flags', 'cxx', 'cc'}:
del kwargs[key]
conf = JavaBenchmarkRunner.default_configuration(
java_home=java_home, java_options=java_options,
build_extras=build_extras, benchmark_extras=benchmark_extras,
**kwargs)
repetitions = repetitions if repetitions != -1 else 5
runner_cont = JavaBenchmarkRunner.from_rev_or_path(
src, root, contender, conf,
repetitions=repetitions,
benchmark_filter=benchmark_filter)
runner_base = JavaBenchmarkRunner.from_rev_or_path(
src, root, baseline, conf,
repetitions=repetitions,
benchmark_filter=benchmark_filter)
runner_comp = RunnerComparator(runner_cont, runner_base, threshold)
# TODO(kszucs): test that the output is properly formatted jsonlines
comparisons_json = _get_comparisons_as_json(runner_comp.comparisons)
ren_counters = language == "java"
formatted = _format_comparisons_with_pandas(comparisons_json,
no_counters, ren_counters)
print(formatted, file=output or sys.stdout)
def _get_comparisons_as_json(comparisons):
buf = StringIO()
for comparator in comparisons:
json.dump(comparator, buf, cls=JsonEncoder)
buf.write("\n")
return buf.getvalue()
def _format_comparisons_with_pandas(comparisons_json, no_counters,
ren_counters):
pd = _import_pandas()
df = pd.read_json(StringIO(comparisons_json), lines=True)
# parse change % so we can sort by it
df['change %'] = df.pop('change').str[:-1].map(float)
first_regression = len(df) - df['regression'].sum()
fields = ['benchmark', 'baseline', 'contender', 'change %']
if not no_counters:
fields += ['counters']
df = df[fields]
if ren_counters:
df = df.rename(columns={'counters': 'configurations'})
df = df.sort_values(by='change %', ascending=False)
def labelled(title, df):
if len(df) == 0:
return ''
title += ': ({})'.format(len(df))
df_str = df.to_string(index=False)
bar = '-' * df_str.index('\n')
return '\n'.join([bar, title, bar, df_str])
return '\n\n'.join([labelled('Non-regressions', df[:first_regression]),
labelled('Regressions', df[first_regression:])])
# ----------------------------------------------------------------------
# Integration testing
def _set_default(opt, default):
if opt is None:
return default
return opt
@archery.command(short_help="Execute protocol and Flight integration tests")
@click.option('--with-all', is_flag=True, default=False,
help=('Include all known languages by default '
'in integration tests'))
@click.option('--random-seed', type=int, default=12345,
help="Seed for PRNG when generating test data")
@click.option('--with-cpp', type=bool, default=False,
help='Include C++ in integration tests')
@click.option('--with-csharp', type=bool, default=False,
help='Include C# in integration tests')
@click.option('--with-java', type=bool, default=False,
help='Include Java in integration tests')
@click.option('--with-js', type=bool, default=False,
help='Include JavaScript in integration tests')
@click.option('--with-go', type=bool, default=False,
help='Include Go in integration tests')
@click.option('--with-rust', type=bool, default=False,
help='Include Rust in integration tests',
envvar="ARCHERY_INTEGRATION_WITH_RUST")
@click.option('--write_generated_json', default="",
help='Generate test JSON to indicated path')
@click.option('--run-flight', is_flag=True, default=False,
help='Run Flight integration tests')
@click.option('--debug', is_flag=True, default=False,
help='Run executables in debug mode as relevant')
@click.option('--serial', is_flag=True, default=False,
help='Run tests serially, rather than in parallel')
@click.option('--tempdir', default=None,
help=('Directory to use for writing '
'integration test temporary files'))
@click.option('stop_on_error', '-x', '--stop-on-error',
is_flag=True, default=False,
help='Stop on first error')
@click.option('--gold-dirs', multiple=True,
help="gold integration test file paths")
@click.option('-k', '--match',
help=("Substring for test names to include in run, "
"e.g. -k primitive"))
def integration(with_all=False, random_seed=12345, **args):
from .integration.runner import write_js_test_json, run_all_tests
import numpy as np
# FIXME(bkietz) Include help strings for individual testers.
# For example, CPPTester's ARROW_CPP_EXE_PATH environment variable.
# Make runs involving data generation deterministic
np.random.seed(random_seed)
gen_path = args['write_generated_json']
languages = ['cpp', 'csharp', 'java', 'js', 'go', 'rust']
enabled_languages = 0
for lang in languages:
param = 'with_{}'.format(lang)
if with_all:
args[param] = with_all
if args[param]:
enabled_languages += 1
if gen_path:
try:
os.makedirs(gen_path)
except OSError as e:
if e.errno != errno.EEXIST:
raise
write_js_test_json(gen_path)
else:
if enabled_languages == 0:
raise Exception("Must enable at least 1 language to test")
run_all_tests(**args)
@archery.command()
@click.option('--event-name', '-n', required=True)
@click.option('--event-payload', '-p', type=click.File('r', encoding='utf8'),
default='-', required=True)
@click.option('--arrow-token', envvar='ARROW_GITHUB_TOKEN',
help='OAuth token for responding comment in the arrow repo')
def trigger_bot(event_name, event_payload, arrow_token):
from .bot import CommentBot, actions
event_payload = json.loads(event_payload.read())
bot = CommentBot(name='github-actions', handler=actions, token=arrow_token)
bot.handle(event_name, event_payload)
@archery.group('release')
@click.option("--src", metavar="<arrow_src>", default=None,
callback=validate_arrow_sources,
help="Specify Arrow source directory.")
@click.option("--jira-cache", type=click.Path(), default=None,
help="File path to cache queried JIRA issues per version.")
@click.pass_obj
def release(obj, src, jira_cache):
"""Release releated commands."""
from .release import Jira, CachedJira
jira = Jira()
if jira_cache is not None:
jira = CachedJira(jira_cache, jira=jira)
obj['jira'] = jira
obj['repo'] = src.path
@release.command('curate')
@click.argument('version')
@click.pass_obj
def release_curate(obj, version):
"""Release curation."""
from .release import Release
release = Release.from_jira(version, jira=obj['jira'], repo=obj['repo'])
curation = release.curate()
click.echo(curation.render('console'))
@release.group('changelog')
def release_changelog():
"""Release changelog."""
pass
@release_changelog.command('add')
@click.argument('version')
@click.pass_obj
def release_changelog_add(obj, version):
"""Prepend the changelog with the current release"""
from .release import Release
jira, repo = obj['jira'], obj['repo']
# just handle the current version
release = Release.from_jira(version, jira=jira, repo=repo)
if release.is_released:
raise ValueError('This version has been already released!')
changelog = release.changelog()
changelog_path = pathlib.Path(repo) / 'CHANGELOG.md'
current_content = changelog_path.read_text()
new_content = changelog.render('markdown') + current_content
changelog_path.write_text(new_content)
click.echo("CHANGELOG.md is updated!")
@release_changelog.command('generate')
@click.argument('version')
@click.argument('output', type=click.File('w', encoding='utf8'), default='-')
@click.pass_obj
def release_changelog_generate(obj, version, output):
"""Generate the changelog of a specific release."""
from .release import Release
jira, repo = obj['jira'], obj['repo']
# just handle the current version
release = Release.from_jira(version, jira=jira, repo=repo)
changelog = release.changelog()
output.write(changelog.render('markdown'))
@release_changelog.command('regenerate')
@click.pass_obj
def release_changelog_regenerate(obj):
"""Regeneretate the whole CHANGELOG.md file"""
from .release import Release
jira, repo = obj['jira'], obj['repo']
changelogs = []
for version in jira.project_versions('ARROW'):
if not version.released:
continue
release = Release.from_jira(version, jira=jira, repo=repo)
click.echo('Querying changelog for version: {}'.format(version))
changelogs.append(release.changelog())
click.echo('Rendering new CHANGELOG.md file...')
changelog_path = pathlib.Path(repo) / 'CHANGELOG.md'
with changelog_path.open('w') as fp:
for cl in changelogs:
fp.write(cl.render('markdown'))
@release.command('cherry-pick')
@click.argument('version')
@click.option('--dry-run/--execute', default=True,
help="Display the git commands instead of executing them.")
@click.option('--recreate/--continue', default=True,
help="Recreate the maintenance branch or only apply unapplied "
"patches.")
@click.pass_obj
def release_cherry_pick(obj, version, dry_run, recreate):
"""
Cherry pick commits.
"""
from .release import Release, MinorRelease, PatchRelease
release = Release.from_jira(version, jira=obj['jira'], repo=obj['repo'])
if not isinstance(release, (MinorRelease, PatchRelease)):
raise click.UsageError('Cherry-pick command only supported for minor '
'and patch releases')
if not dry_run:
release.cherry_pick_commits(recreate_branch=recreate)
click.echo('Executed the following commands:\n')
click.echo(
'git checkout {} -b {}'.format(release.previous.tag, release.branch)
)
for commit in release.commits_to_pick():
click.echo('git cherry-pick {}'.format(commit.hexsha))
@archery.group("linking")
@click.pass_obj
def linking(obj):
"""
Quick and dirty utilities for checking library linkage.
"""
pass
@linking.command("check-dependencies")
@click.argument("paths", nargs=-1)
@click.option("--allow", "-a", "allowed", multiple=True,
help="Name of the allowed libraries")
@click.option("--disallow", "-d", "disallowed", multiple=True,
help="Name of the disallowed libraries")
@click.pass_obj
def linking_check_dependencies(obj, allowed, disallowed, paths):
from .linking import check_dynamic_library_dependencies, DependencyError
allowed, disallowed = set(allowed), set(disallowed)
try:
for path in map(pathlib.Path, paths):
check_dynamic_library_dependencies(path, allowed=allowed,
disallowed=disallowed)
except DependencyError as e:
raise click.ClickException(str(e))
add_optional_command("docker", module=".docker.cli", function="docker",
parent=archery)
add_optional_command("crossbow", module=".crossbow.cli", function="crossbow",
parent=archery)
if __name__ == "__main__":
archery(obj={})
| {
"content_hash": "9ea3303f4ab54bb63f64935915b3f5a9",
"timestamp": "",
"source": "github",
"line_count": 930,
"max_line_length": 79,
"avg_line_length": 38.755913978494625,
"alnum_prop": 0.6317731598368616,
"repo_name": "laurentgo/arrow",
"id": "d8eeb7bab0ebbaab8f920dee6ce69527cf293c40",
"size": "36829",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "dev/archery/archery/cli.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "73655"
},
{
"name": "Awk",
"bytes": "3683"
},
{
"name": "Batchfile",
"bytes": "32252"
},
{
"name": "C",
"bytes": "328114"
},
{
"name": "C#",
"bytes": "419434"
},
{
"name": "C++",
"bytes": "7254875"
},
{
"name": "CMake",
"bytes": "401649"
},
{
"name": "CSS",
"bytes": "3946"
},
{
"name": "Dockerfile",
"bytes": "42193"
},
{
"name": "FreeMarker",
"bytes": "2274"
},
{
"name": "Go",
"bytes": "364102"
},
{
"name": "HTML",
"bytes": "23047"
},
{
"name": "Java",
"bytes": "2296962"
},
{
"name": "JavaScript",
"bytes": "84850"
},
{
"name": "Lua",
"bytes": "8741"
},
{
"name": "M4",
"bytes": "8713"
},
{
"name": "MATLAB",
"bytes": "9068"
},
{
"name": "Makefile",
"bytes": "44853"
},
{
"name": "Meson",
"bytes": "36931"
},
{
"name": "Objective-C",
"bytes": "7559"
},
{
"name": "PLpgSQL",
"bytes": "56995"
},
{
"name": "Perl",
"bytes": "3799"
},
{
"name": "Python",
"bytes": "1548489"
},
{
"name": "R",
"bytes": "155922"
},
{
"name": "Ruby",
"bytes": "682150"
},
{
"name": "Rust",
"bytes": "1609482"
},
{
"name": "Shell",
"bytes": "251436"
},
{
"name": "Thrift",
"bytes": "137291"
},
{
"name": "TypeScript",
"bytes": "932690"
}
],
"symlink_target": ""
} |
#ifndef __itkBoxMeanImageFilter_h
#define __itkBoxMeanImageFilter_h
#include "itkBoxImageFilter.h"
namespace itk
{
/**
* \class BoxMeanImageFilter
* \brief Implements a fast rectangular mean filter using the
* accumulator approach
*
*
* This code was contributed in the Insight Journal paper:
* "Efficient implementation of kernel filtering"
* by Beare R., Lehmann G
* http://hdl.handle.net/1926/555
* http://www.insight-journal.org/browse/publication/160
*
*
* \author Richard Beare
* \ingroup ITKReview
*/
template< class TInputImage, class TOutputImage = TInputImage >
class BoxMeanImageFilter:
public BoxImageFilter< TInputImage, TOutputImage >
{
public:
/** Standard class typedefs. */
typedef BoxMeanImageFilter Self;
typedef BoxImageFilter< TInputImage, TOutputImage > Superclass;
typedef SmartPointer< Self > Pointer;
typedef SmartPointer< const Self > ConstPointer;
/** Standard New method. */
itkNewMacro(Self);
/** Runtime information support. */
itkTypeMacro(BoxMeanImageFilter,
BoxImageFilter);
/** Image related typedefs. */
typedef TInputImage InputImageType;
typedef TOutputImage OutputImageType;
typedef typename TInputImage::RegionType RegionType;
typedef typename TInputImage::SizeType SizeType;
typedef typename TInputImage::IndexType IndexType;
typedef typename TInputImage::PixelType PixelType;
typedef typename TInputImage::OffsetType OffsetType;
typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
typedef typename TOutputImage::PixelType OutputPixelType;
/** Image related typedefs. */
itkStaticConstMacro(OutputImageDimension, unsigned int,
TOutputImage::ImageDimension);
itkStaticConstMacro(InputImageDimension, unsigned int,
TInputImage::ImageDimension);
#ifdef ITK_USE_CONCEPT_CHECKING
/** Begin concept checking */
itkConceptMacro( SameDimension,
( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
itkGetStaticConstMacro(OutputImageDimension) > ) );
/** End concept checking */
#endif
protected:
BoxMeanImageFilter();
~BoxMeanImageFilter() {}
/** Multi-thread version GenerateData. */
void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId);
private:
BoxMeanImageFilter(const Self &); //purposely not implemented
void operator=(const Self &); //purposely not implemented
}; // end of class
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
#include "itkBoxMeanImageFilter.hxx"
#endif
#endif
| {
"content_hash": "90b1df8ed099b1c0aaa829faf32280e1",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 105,
"avg_line_length": 32.87356321839081,
"alnum_prop": 0.6793706293706294,
"repo_name": "GEHC-Surgery/ITK",
"id": "e6adb85bde36916639d6aea02d0478a807f82617",
"size": "3635",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Modules/Nonunit/Review/include/itkBoxMeanImageFilter.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Awk",
"bytes": "1153"
},
{
"name": "C",
"bytes": "28596456"
},
{
"name": "C#",
"bytes": "1714"
},
{
"name": "C++",
"bytes": "42000248"
},
{
"name": "CSS",
"bytes": "25071"
},
{
"name": "FORTRAN",
"bytes": "2241251"
},
{
"name": "IDL",
"bytes": "4406"
},
{
"name": "Io",
"bytes": "1833"
},
{
"name": "Java",
"bytes": "57787"
},
{
"name": "Objective-C",
"bytes": "260193"
},
{
"name": "Perl",
"bytes": "23357"
},
{
"name": "Python",
"bytes": "936772"
},
{
"name": "Ruby",
"bytes": "296"
},
{
"name": "Shell",
"bytes": "99462"
},
{
"name": "Tcl",
"bytes": "112271"
},
{
"name": "XSLT",
"bytes": "194665"
}
],
"symlink_target": ""
} |
<?php
namespace Pheasant\Database\Mysqli;
class Exception extends \Pheasant\Database\Exception
{
}
| {
"content_hash": "7bd66d5dc5dbe808d31e5490ea35913f",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 52,
"avg_line_length": 14.428571428571429,
"alnum_prop": 0.7920792079207921,
"repo_name": "bjornpost/pheasant",
"id": "7442f8378a2de99df02ce3e78245cdc1f7dcd5dc",
"size": "101",
"binary": false,
"copies": "3",
"ref": "refs/heads/vlak",
"path": "lib/Pheasant/Database/Mysqli/Exception.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "244428"
}
],
"symlink_target": ""
} |
using namespace std;
namespace RAT {
G4VSolid *GeoPolygonFactory::ConstructSolid(DBLinkPtr table)
{
string volume_name = table->GetIndex();
G4double size_z = table->GetD("size_z") * CLHEP::mm; // half thickness of plate
string poly_table_name = table->GetS("poly_table");
DBLinkPtr lpoly_table = DB::Get()->GetLink(poly_table_name);
const vector<G4double> &vertex_pnts_x = lpoly_table->GetDArray("x");
const vector<G4double> &vertex_pnts_y = lpoly_table->GetDArray("y");
// Optional parameters
G4double scale_fac = 1.0;
try { scale_fac = table->GetD("scale_fac"); }
catch (DBNotFoundError &e) { };
G4double scale_fac_in = 0.0;
try { scale_fac_in = table->GetD("scale_fac_in"); }
catch (DBNotFoundError &e) { };
// end optional parms
G4double poly_max = 0.0 * CLHEP::mm;
G4double poly_max_tmp = 0.0 * CLHEP::mm;
vector<G4TwoVector> g4Polygon;
for ( G4int i=0; i < G4int(vertex_pnts_x.size()); ++i )
{
g4Polygon.push_back( G4TwoVector(vertex_pnts_x[i] * CLHEP::mm, vertex_pnts_y[i] *CLHEP::mm ) );
poly_max_tmp = sqrt((vertex_pnts_x[i] * CLHEP::mm * vertex_pnts_x[i] * CLHEP::mm) + ( vertex_pnts_y[i] * CLHEP::mm *vertex_pnts_y[i] * CLHEP::mm));
if (poly_max_tmp >= poly_max)
poly_max = poly_max_tmp;
}
poly_max = poly_max * scale_fac;
//Check the orientation of polygon to be defined clockwise
CheckOrientation(g4Polygon);
G4VSolid* base_solid = MakeTubeFacetSolid(volume_name,
g4Polygon,
scale_fac,
size_z,
0.0,
poly_max);
if ((scale_fac_in > 0) && (scale_fac_in < scale_fac))
{
G4VSolid* sub_solid = MakeTubeFacetSolid("sub_solid",
g4Polygon,
scale_fac_in,
size_z*1.1,
0.0,
poly_max/scale_fac*scale_fac_in);
base_solid = new G4SubtractionSolid(volume_name, base_solid, sub_solid, 0, G4ThreeVector(0.0,0.0,0.0));
}
return base_solid;
}
} // namespace RAT
| {
"content_hash": "1935202ddde592d4cddca6f1bb885703",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 153,
"avg_line_length": 31.285714285714285,
"alnum_prop": 0.6199898528665652,
"repo_name": "mastbaum/rat-pac",
"id": "236cfb8ebc1bd886862f17e49470ef786d5ca620",
"size": "2240",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "src/geo/GeoPolygonFactory.cc",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "4"
},
{
"name": "C",
"bytes": "7932"
},
{
"name": "C++",
"bytes": "1955220"
},
{
"name": "GLSL",
"bytes": "16656"
},
{
"name": "Makefile",
"bytes": "368"
},
{
"name": "Perl",
"bytes": "14460"
},
{
"name": "Python",
"bytes": "2027711"
},
{
"name": "Shell",
"bytes": "447"
}
],
"symlink_target": ""
} |
package org.ovirt.engine.api.restapi.resource.validation;
import static org.ovirt.engine.api.common.util.EnumValidator.validateEnum;
import org.ovirt.engine.api.model.SchedulingPolicy;
import org.ovirt.engine.api.model.SchedulingPolicyType;
@ValidatedClass(clazz = SchedulingPolicy.class)
public class SchedulingPolicyValidator implements Validator<SchedulingPolicy> {
@Override
public void validateEnums(SchedulingPolicy schedulingPolicy) {
if (schedulingPolicy != null) {
if (schedulingPolicy.isSetPolicy()) {
validateEnum(SchedulingPolicyType.class, schedulingPolicy.getPolicy(), true);
}
}
}
}
| {
"content_hash": "77365c509d722a7b0c332035e9f33f11",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 93,
"avg_line_length": 35.26315789473684,
"alnum_prop": 0.7402985074626866,
"repo_name": "zerodengxinchao/ovirt-engine",
"id": "0eb86553ad09639821cb3e6bc50890452a820049",
"size": "670",
"binary": false,
"copies": "6",
"ref": "refs/heads/eayunos-4.2",
"path": "backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/SchedulingPolicyValidator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "68312"
},
{
"name": "HTML",
"bytes": "16218"
},
{
"name": "Java",
"bytes": "35067557"
},
{
"name": "JavaScript",
"bytes": "69948"
},
{
"name": "Makefile",
"bytes": "24723"
},
{
"name": "PLSQL",
"bytes": "533"
},
{
"name": "PLpgSQL",
"bytes": "796728"
},
{
"name": "Python",
"bytes": "970860"
},
{
"name": "Roff",
"bytes": "10764"
},
{
"name": "Shell",
"bytes": "163853"
},
{
"name": "XSLT",
"bytes": "54683"
}
],
"symlink_target": ""
} |
package com.amazonaws.services.resourcegroupstaggingapi.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.resourcegroupstaggingapi.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* GetTagKeysRequestMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class GetTagKeysRequestMarshaller {
private static final MarshallingInfo<String> PAGINATIONTOKEN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("PaginationToken").build();
private static final GetTagKeysRequestMarshaller instance = new GetTagKeysRequestMarshaller();
public static GetTagKeysRequestMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(GetTagKeysRequest getTagKeysRequest, ProtocolMarshaller protocolMarshaller) {
if (getTagKeysRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getTagKeysRequest.getPaginationToken(), PAGINATIONTOKEN_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
| {
"content_hash": "9d1cd4377bb9e86ccbecb4ca18c5c186",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 122,
"avg_line_length": 33,
"alnum_prop": 0.7396694214876033,
"repo_name": "aws/aws-sdk-java",
"id": "0707186e8e2eade3f25c1e40863a7c9a1b4ddad8",
"size": "2032",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-java-sdk-resourcegroupstaggingapi/src/main/java/com/amazonaws/services/resourcegroupstaggingapi/model/transform/GetTagKeysRequestMarshaller.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
#pragma checksum "C:\Users\Bharath\Documents\Visual Studio 2012\Projects\DesiSongs\DesiSongs\ArtistDetais.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "641563C547FB0232F72F40A63062A566"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18051
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using Microsoft.Phone.Controls;
using System;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Resources;
using System.Windows.Shapes;
using System.Windows.Threading;
namespace DesiSongs {
public partial class ArtistDetais : Microsoft.Phone.Controls.PhoneApplicationPage {
internal System.Windows.Controls.Grid LayoutRoot;
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/DesiSongs;component/ArtistDetais.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
}
}
}
| {
"content_hash": "d6e5b686a8b3eb89395f88a8768cd28a",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 188,
"avg_line_length": 36,
"alnum_prop": 0.6359649122807017,
"repo_name": "BharathMG/DesiSongs",
"id": "e92d9bfb04d4eaeb00b6bedbcaa3f582995dc498",
"size": "2054",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "DesiSongs/obj/Debug/ArtistDetais.g.i.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "66362"
}
],
"symlink_target": ""
} |
package org.kuali.rice.krad.data.metadata;
import java.io.Serializable;
/**
* Represents a single field on which to sort a {@link DataObjectCollection} within a {@link DataObjectMetadata}.
*
* <p>
* The collection may hold multiple of these objects to support sorting by multiple fields.
* </p>
*
* @author Kuali Rice Team (rice.collab@kuali.org)
*/
public interface DataObjectCollectionSortAttribute extends Serializable {
/**
* Gets attribute name.
*
* <p>
* The attribute name on which to sort the collection.
* </p>
*
* @return attribute name
*/
String getAttributeName();
/**
* Gets the attribute sort.
*
* <p>
* For this attribute, which way should we sort?.
* </p>
*
* @return attribute sort
*/
SortDirection getSortDirection();
} | {
"content_hash": "88f8aea2067ddbca91038d8306b74124",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 112,
"avg_line_length": 20.94871794871795,
"alnum_prop": 0.6560587515299877,
"repo_name": "kuali/rice-playground",
"id": "c4a3d3a7a485baf2cffae178103c996c27b46871",
"size": "1438",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "rice-framework/krad-data/src/main/java/org/kuali/rice/krad/data/metadata/DataObjectCollectionSortAttribute.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "582089"
},
{
"name": "Groovy",
"bytes": "2237959"
},
{
"name": "Java",
"bytes": "35408880"
},
{
"name": "JavaScript",
"bytes": "2665736"
},
{
"name": "PHP",
"bytes": "15766"
},
{
"name": "Shell",
"bytes": "13217"
},
{
"name": "XSLT",
"bytes": "107818"
}
],
"symlink_target": ""
} |
import pytest
def test_answer_is_served_from_chosen_port(docker_compose, nginxproxy):
r = nginxproxy.get("http://web.nginx-proxy.tld/port")
assert r.status_code == 200
assert "answer from port 90\n" in r.text
| {
"content_hash": "2645b522bca2fcdf2a01095c34655ae4",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 71,
"avg_line_length": 31.857142857142858,
"alnum_prop": 0.7085201793721974,
"repo_name": "itsafire/nginx-proxy",
"id": "3c95ba629c269be8fc793328de904e5445b44320",
"size": "223",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "test/test_multiple-ports/test_VIRTUAL_PORT.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "1432"
},
{
"name": "Makefile",
"bytes": "339"
},
{
"name": "Python",
"bytes": "55412"
},
{
"name": "Shell",
"bytes": "10374"
}
],
"symlink_target": ""
} |
<?php
namespace Scene7\Requests;
use Scene7\Commands;
class LoadCache extends AbstractRequest
{
use Commands\LayerFactory,
Commands\Align,
Commands\Anchor,
Commands\BackgroundColor,
Commands\Cache,
Commands\Crop,
Commands\ColorQuantization,
Commands\DefaultImage,
Commands\EmbedColorProfile,
Commands\EmbedPathData,
Commands\Fit,
Commands\Format,
Commands\Height,
Commands\Id,
Commands\MaxJpegSize,
Commands\Locale,
Commands\Mask,
Commands\MaskUse,
Commands\OutputColorProfile,
Commands\PrintResolution,
Commands\Quality,
Commands\RegionOfInterest,
Commands\Resolution,
Commands\Resampling,
Commands\Scale,
Commands\ScaleView,
Commands\Template,
Commands\Type,
Commands\ViewRectangle,
Commands\Width,
Commands\XmpEmbed;
/**
* @param string $baseUrl
* @param string $file
*/
public function __construct($baseUrl, $file)
{
$this->setBaseUrl($baseUrl);
$this->file = $file;
}
public function getRequestType()
{
return 'loadcache';
}
} | {
"content_hash": "2e65f01a125624c1668f5d4ece9682d4",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 48,
"avg_line_length": 22.672727272727272,
"alnum_prop": 0.603047313552526,
"repo_name": "joshuaadickerson/Scene7",
"id": "e00aa4426cd3ec1b3d0f39e139c855acbc554248",
"size": "1247",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Requests/LoadCache.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "PHP",
"bytes": "88177"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "3fdae6dce89d1f7e9cdfb3dff529c522",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "9959a678e6c38b1e969e4a673beaaa8cbce55117",
"size": "177",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Pteridophyta/Polypodiopsida/Polypodiales/Drynariaceae/Drynaria/Drynaria lycopodioides/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
@interface PodsDummy_Pods_MAArrowedHandleView_Tests : NSObject
@end
@implementation PodsDummy_Pods_MAArrowedHandleView_Tests
@end
| {
"content_hash": "20f71c61b61142f02c24a9013036869e",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 62,
"avg_line_length": 32.5,
"alnum_prop": 0.8538461538461538,
"repo_name": "devthanatos/MAArrowedHandleView",
"id": "dadc26478d87216f2832d989fa58468b615fd2c6",
"size": "164",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Example/Pods/Target Support Files/Pods-MAArrowedHandleView_Tests/Pods-MAArrowedHandleView_Tests-dummy.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "12580"
},
{
"name": "Ruby",
"bytes": "1578"
},
{
"name": "Shell",
"bytes": "17049"
}
],
"symlink_target": ""
} |
WAListAttribute is an attribute that is restricted to a list of values.
Instance Variables:
options <Block> A block returning a list of possible values for the attribute | {
"content_hash": "4a58c21cecab48fa83f6107c286090b0",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 78,
"avg_line_length": 43,
"alnum_prop": 0.8081395348837209,
"repo_name": "SeasideSt/Seaside-old",
"id": "308a7b629a198f17e61b3a9ffdd0cb9544674818",
"size": "172",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "repository/Seaside-Core.package/WAListAttribute.class/README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "439836"
},
{
"name": "Shell",
"bytes": "2061"
},
{
"name": "Smalltalk",
"bytes": "4795952"
}
],
"symlink_target": ""
} |
/* eslint no-unused-vars: 0 */
const themes = require('../themes')
exports.command = 'list'
exports.aliases = ['ls', 'themes']
exports.desc = 'Get a list of installed themes'
exports.builder = {}
exports.handler = (argv) => {
const list = themes.getThemes()
for (let i = 0; i <= list.length - 1; i++) {
const currentTheme = themes.loadTheme(list[i])
const sample = 'Morbi ornare pulvinar metus, non faucibus arcu ultricies non.'
themes.label(currentTheme, 'down', list[i], sample)
}
}
| {
"content_hash": "82834a26655db2df23530ba824f9818a",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 82,
"avg_line_length": 33.6,
"alnum_prop": 0.6607142857142857,
"repo_name": "drawnepicenter/leximaven",
"id": "a8232ef94987b5980477bdf82acb6c7028a2b072",
"size": "504",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/commands/list.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "88281"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Tue Mar 15 18:33:38 MDT 2016 -->
<title>FrontloadUserJob</title>
<meta name="date" content="2016-03-15">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FrontloadUserJob";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mvc/Jobs/CreateNewUserJob.html" title="class in mvc.Jobs"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mvc/Jobs/UpdateGameJob.html" title="class in mvc.Jobs"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mvc/Jobs/FrontloadUserJob.html" target="_top">Frames</a></li>
<li><a href="FrontloadUserJob.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#fields_inherited_from_class_com.path.android.jobqueue.Job">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">mvc.Jobs</div>
<h2 title="Class FrontloadUserJob" class="title">Class FrontloadUserJob</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.path.android.jobqueue.Job</li>
<li>
<ul class="inheritance">
<li>mvc.Jobs.FrontloadUserJob</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">FrontloadUserJob</span>
extends com.path.android.jobqueue.Job</pre>
<div class="block">Created by Bradshaw on 2016-03-11.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../serialized-form.html#mvc.Jobs.FrontloadUserJob">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_com.path.android.jobqueue.Job">
<!-- -->
</a>
<h3>Fields inherited from class com.path.android.jobqueue.Job</h3>
<code>DEFAULT_RETRY_LIMIT</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../mvc/Jobs/FrontloadUserJob.html#FrontloadUserJob(java.lang.String,%20mvc.Jobs.CallbackInterface)">FrontloadUserJob</a></strong>(java.lang.String username,
<a href="../../mvc/Jobs/CallbackInterface.html" title="interface in mvc.Jobs">CallbackInterface</a> callback)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../mvc/Jobs/FrontloadUserJob.html#onAdded()">onAdded</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../mvc/Jobs/FrontloadUserJob.html#onCancel()">onCancel</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../mvc/Jobs/FrontloadUserJob.html#onRun()">onRun</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected com.path.android.jobqueue.RetryConstraint</code></td>
<td class="colLast"><code><strong><a href="../../mvc/Jobs/FrontloadUserJob.html#shouldReRunOnThrowable(java.lang.Throwable,%20int,%20int)">shouldReRunOnThrowable</a></strong>(java.lang.Throwable throwable,
int runCount,
int maxRunCount)</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_com.path.android.jobqueue.Job">
<!-- -->
</a>
<h3>Methods inherited from class com.path.android.jobqueue.Job</h3>
<code>assertNotCancelled, getApplicationContext, getCurrentRunCount, getDelayInMs, getPriority, getRetryLimit, getRunGroupId, getTags, isCancelled, isPersistent, requiresNetwork, shouldReRunOnThrowable</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="FrontloadUserJob(java.lang.String, mvc.Jobs.CallbackInterface)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FrontloadUserJob</h4>
<pre>public FrontloadUserJob(java.lang.String username,
<a href="../../mvc/Jobs/CallbackInterface.html" title="interface in mvc.Jobs">CallbackInterface</a> callback)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="shouldReRunOnThrowable(java.lang.Throwable, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldReRunOnThrowable</h4>
<pre>protected com.path.android.jobqueue.RetryConstraint shouldReRunOnThrowable(java.lang.Throwable throwable,
int runCount,
int maxRunCount)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>shouldReRunOnThrowable</code> in class <code>com.path.android.jobqueue.Job</code></dd>
</dl>
</li>
</ul>
<a name="onRun()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onRun</h4>
<pre>public void onRun()
throws java.lang.Throwable</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>onRun</code> in class <code>com.path.android.jobqueue.Job</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.Throwable</code></dd></dl>
</li>
</ul>
<a name="onCancel()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onCancel</h4>
<pre>protected void onCancel()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>onCancel</code> in class <code>com.path.android.jobqueue.Job</code></dd>
</dl>
</li>
</ul>
<a name="onAdded()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>onAdded</h4>
<pre>public void onAdded()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>onAdded</code> in class <code>com.path.android.jobqueue.Job</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-files/index-1.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../mvc/Jobs/CreateNewUserJob.html" title="class in mvc.Jobs"><span class="strong">Prev Class</span></a></li>
<li><a href="../../mvc/Jobs/UpdateGameJob.html" title="class in mvc.Jobs"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?mvc/Jobs/FrontloadUserJob.html" target="_top">Frames</a></li>
<li><a href="FrontloadUserJob.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#fields_inherited_from_class_com.path.android.jobqueue.Job">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| {
"content_hash": "cae1c9b2d16de520f1571dd2478e10cb",
"timestamp": "",
"source": "github",
"line_count": 348,
"max_line_length": 213,
"avg_line_length": 34.0919540229885,
"alnum_prop": 0.643627781523938,
"repo_name": "CMPUT301W16T15/Shareo",
"id": "40a22ef9d33705f0f6070c14d75f6aee2b55c7a9",
"size": "11864",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "docs/javadoc/mvc/Jobs/FrontloadUserJob.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "127589"
}
],
"symlink_target": ""
} |
'use strict';
System.register(['./aurelia-filter'], function (_export, _context) {
"use strict";
return {
setters: [function (_aureliaFilter) {
var _exportObj = {};
for (var _key in _aureliaFilter) {
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaFilter[_key];
}
_export(_exportObj);
}],
execute: function () {}
};
}); | {
"content_hash": "b6b147b87be1d9bca3073270756ac7b1",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 97,
"avg_line_length": 22.27777777777778,
"alnum_prop": 0.5411471321695761,
"repo_name": "SpoonX/aurelia-filter",
"id": "1120fdfa5915454fdb26b6215a2d13b50a87c852",
"size": "401",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "dist/system/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "3568"
},
{
"name": "JavaScript",
"bytes": "23269"
}
],
"symlink_target": ""
} |
import type { PrismaClient } from '@prisma/client'
import testMatrix from './_matrix'
declare let prisma: PrismaClient
// https://github.com/prisma/prisma/issues/12572
testMatrix.setupTestSuite(() => {
test('should have equal dates on record creation for @default(now) and @updatedAt', async () => {
const created = await prisma.user.create({ data: {} })
const createdAt = new Date(created.createdAt)
const updatedAt = new Date(created.updatedAt)
expect(createdAt.getDate()).toEqual(updatedAt.getDate())
})
})
| {
"content_hash": "38f73d95ce0cfeebb03b18e72a85813f",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 99,
"avg_line_length": 31.470588235294116,
"alnum_prop": 0.708411214953271,
"repo_name": "prisma/prisma",
"id": "a4ffbcdf31cef4bfc05df7037cca52e3d7c3c93c",
"size": "549",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "packages/client/tests/functional/issues/12572/tests.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "216"
},
{
"name": "Dockerfile",
"bytes": "1926"
},
{
"name": "JavaScript",
"bytes": "51421"
},
{
"name": "Shell",
"bytes": "7524"
},
{
"name": "Smarty",
"bytes": "1110"
},
{
"name": "TSQL",
"bytes": "961"
},
{
"name": "TypeScript",
"bytes": "3551177"
}
],
"symlink_target": ""
} |
title: "4MLinux 26.0 released with LibreOffice 6.1 and Firefox 61.x"
layout: post
categories: 4mlinux release
image: "/assets/images/post-images/4MLinux26.jpg"
---
**The** 4MLinux team has announced the release of 4MLinux 26.0, the latest stable release of independent GNU/Linux distribution with JWM. This release brings a set of updated packages including LibreOffice 6.1 and Firefox 61.0.2.

In addition to the usual package updates, 4MLinux 26.0 provides better development, image editing and, multimedia experience with a set of tools and packages.
The main highlights in 4MLinux 26.0 can be summarized as,
> - Set of updated packages including LibreOffice 6.1.0.1, GNOME Office (AbiWord 3.0.2, GIMP 2.10.6, Gnumeric 1.12.43).
- Helps to share your files using DropBox 55.4.171, surf the Internet with Firefox 61.0.2 and Chromium 68.0.3440.75, stay in touch with your friends via Thunderbird 52.9.1 and Skype for Web, enjoy your music collection with Audacious 3.10, watch your favorite videos with VLC 3.0.3 and mpv 0.28.2, play games powered by Mesa 17.3.7 and Wine 3.14. You can also set up the 4MLinux LAMP Server (Linux 4.14.64, Apache 2.4.34, MariaDB 10.3.9, PHP 5.6.37 and PHP 7.2.9). Perl 5.26.1, Python 2.7.14, and Python 3.6.4 are also available.
- Tcl/Tk (with a collection of small games) integration
- Engrampa (archive manager) with the ability open Debian packages
- Git includes both GUI and cgit web interface
- Beaver (with syntax highlighting) has been as a simple Script/C/C++ code editor
- TiMidity++ now uses the Tcl/Tk interface
- AbiWord has migrated from GTK2 to GTK3
- Expect has been added to the 4MLinux Server to facilitate task automation
- Xorriso (with its GUI) is now available as a downloadable extension
- full support for modern image and video encoding
- ImageMagick and GIMP are now able to handle WebP, HEIF and BPG images.
- Hyper Video Converter for VP8/VP9/AVC/HEVC encoding, creating the video for web, extracting audio tracks, and many other tasks
You may also read the [4MLinux 26.0 release announcement](http://4mlinux-releases.blogspot.com/2018/09/4mlinux-260-stable-released_1.html) in projects blog. | {
"content_hash": "7e188654447a5e7b11e26e3d178acfa2",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 529,
"avg_line_length": 79.67857142857143,
"alnum_prop": 0.7718511878081578,
"repo_name": "opensourcefeed/opensourcefeed.github.io",
"id": "13648163bc141ff38647e08b82dd60a510ffd257",
"size": "2235",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/2018-09-01-01-4MLinux-26.0-released-with-updated-packages-and-features.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "10404"
},
{
"name": "HTML",
"bytes": "79631"
},
{
"name": "JavaScript",
"bytes": "2272"
},
{
"name": "Python",
"bytes": "6883"
},
{
"name": "Ruby",
"bytes": "877"
},
{
"name": "SCSS",
"bytes": "9561"
}
],
"symlink_target": ""
} |
% Panel
## About
A Panel is a container that emanates from the right side of the screen. Panels
are used to represent hierarchy in an application.
Moonstone panels feature a pre-formatted header, with a layout area below for
the main body content.
## API Reference
[moon.Panel]($api/#/kind/moon.Panel)
## Behavior and States
### Behavior
When a Panel is open, the content that it contains is visible. When a user
selects a UI control that creates a new panel, the new panel slides in from the
right, collapsing the current panel into a breadcrumb on the left side of the
screen. This breadcrumb may be clicked to bring the old panel back into view.
See the UI Patterns for different ways in which panels may be used.
### Sizing
By default, a Panel is fullscreen. The panel's width is variable; for example,
a panel may cover half of the screen in the "Always Viewing" pattern.
See the UI Patterns for guidance on how to use different-sized panels.
## Illustration

| {
"content_hash": "58c92b19e6a7fd0d04d61430c7dfd805",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 79,
"avg_line_length": 29.228571428571428,
"alnum_prop": 0.7556207233626588,
"repo_name": "enyojs/enyo-docs",
"id": "260f9f43a3319c854ae2c898c20c7966ab1b6f2d",
"size": "1025",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "developer-guide/design/controls/panel.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "12978"
},
{
"name": "HTML",
"bytes": "38292"
},
{
"name": "JavaScript",
"bytes": "34118"
},
{
"name": "Shell",
"bytes": "5487"
}
],
"symlink_target": ""
} |
<p>
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=15942">http://bugs.webkit.org/show_bug.cgi?id=15942</a>
REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())</i>.
</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function prepare()
{
var target = document.getElementById('target');
var doc = target.contentDocument;
target.contentWindow.getSelection().collapse(doc.body, 0);
target.focus();
test();
}
function test()
{
var target = document.getElementById('target');
target.style.display = 'none';
target.contentDocument.body.innerHTML;
}
</script>
<p>
<iframe onload="prepare()" id="target" srcdoc="<body contenteditable>"></iframe>
</p>
| {
"content_hash": "e72b23fe05412ec80d0c8a7b02fdb2b7",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 119,
"avg_line_length": 30.333333333333332,
"alnum_prop": 0.6263736263736264,
"repo_name": "scheib/chromium",
"id": "36ce319a7f633f110d70e6e2dfba9b551bcaff02",
"size": "819",
"binary": false,
"copies": "9",
"ref": "refs/heads/main",
"path": "third_party/blink/web_tests/editing/selection/cleared-by-relayout.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
package com.indignado.logicbricks.core.actuators;
import com.badlogic.ashley.core.Entity;
/**
* @author Rubentxu.
*/
public class PropertyActuator<T> extends Actuator {
public Entity target;
public String property;
public T value;
public Mode mode;
@Override
public void reset() {
super.reset();
target = null;
property = null;
value = null;
mode = null;
}
public enum Mode {Assign, Add, Toggle, Copy}
}
| {
"content_hash": "96d24ea521060a2f51937dc28857cdf4",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 51,
"avg_line_length": 16.79310344827586,
"alnum_prop": 0.6201232032854209,
"repo_name": "Rubentxu/GDX-Logic-Bricks",
"id": "b380b41688f527f5bc90b3c1a65f624af3d7bfe5",
"size": "487",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "gdx-logic-bricks/src/main/java/com/indignado/logicbricks/core/actuators/PropertyActuator.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "476888"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<!-- 1. use /tools/modularscale/index.html?15&px&1.25,1.125&web&text for font size and line height
2. lazyload images
3. remove font face, display block, opacity 1, visibility visible in critical inline css
4. set font display swap in font face in css -->
<html class="no-js" lang="ru">
<head>
<meta charset="utf-8" />
<!-- <meta http-equiv="x-ua-compatible" content="ie=edge" /> -->
<!-- https://content-security-policy.com/ --><meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https:; connect-src 'self' 'unsafe-inline' https:; frame-src 'self' https:; media-src 'self' https:; img-src 'self' 'unsafe-inline' https: data:" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Online Color Scheme Generator</title>
<META NAME="keywords" CONTENT="web page design - color - scheme - color scheme - color schemer - colorschemer - rgb - hex - web color - html color - color pick - pick - picker">
<META NAME="description" CONTENT="Generate matching color schemes like never before!">
<link rel="stylesheet" href="./css/default.css" />
<script src="./js/funcs.js"></script>
</head>
<body bgcolor="#FCFCF9" text="#000000" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0" onLoad="ChangeColors(51,102,255);">
<div ID="Header">
<table cellspacing="0" cellpadding="0" border="0">
<tr><td> </td><td><img src="./header.gif" width="255" height="30" alt="" border="0" /></td></tr>
<tr><td colspan="2"><div class="headSmall">Enter an RGB or HEX value, or click on the Color Palette below</div></td></tr>
</table>
</div>
<div ID="ColorInput">
<div class="sideHead">Current Color</div>
<div class="currentBorder"><div ID="currentColor"> </div></div>
<form name="codes" id="codes">
<div class="currentBorder">
<div class="navBox">
<table align="center" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>R:</td>
<td><input type="text" name="r" value="0" maxlength="3" class="rgbBox"></td>
</tr>
<tr>
<td>G:</td>
<td><input type="text" name="g" value="0" maxlength="3" class="rgbBox"></td>
</tr>
<tr>
<td>B:</td>
<td><input type="text" name="b" value="0" maxlength="3" class="rgbBox"></td>
</tr>
<tr>
<td colspan="2"><input type="button" class="button" value="Set RGB" onClick="ChangeColors(document.getElementById('codes').r.value,document.getElementById('codes').g.value,document.getElementById('codes').b.value);"></td>
</tr>
<tr>
<td colspan="2">#<input type="text" class="hexBox" name="hex" value="000000" maxlength="6"></td>
</tr>
<tr>
<td colspan="2"><input type="button" class="button" value="Set HEX" onClick="SetHex(document.getElementById('codes').hex.value);"></td>
</tr>
</table>
<input type="button" class="button" value="Lighten Scheme" onClick="LightenScheme();" style="margin-bottom: 0px;">
<input type="button" class="button" value="Darken Scheme" onClick="DarkenScheme();">
</div></div>
</form>
</div>
<div ID="Wheel" align="center">
<div ID="swatch0" class="swatch">
<div class="border"><div ID="0" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="0RGB" class="rgb">255.255.255</div>
<div ID="0HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch1" class="swatch">
<div class="border"><div ID="1" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="1RGB" class="rgb">255.255.255</div>
<div ID="1HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch2" class="swatch">
<div class="border"><div ID="2" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="2RGB" class="rgb">255.255.255</div>
<div ID="2HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch3" class="swatch">
<div class="border"><div ID="3" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="3RGB" class="rgb">255.255.255</div>
<div ID="3HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch4" class="swatch">
<div class="border"><div ID="4" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="4RGB" class="rgb">255.255.255</div>
<div ID="4HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch5" class="swatch">
<div class="border"><div ID="5" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="5RGB" class="rgb">255.255.255</div>
<div ID="5HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch6" class="swatch">
<div class="border"><div ID="6" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="6RGB" class="rgb">255.255.255</div>
<div ID="6HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch7" class="swatch">
<div class="border"><div ID="7" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="7RGB" class="rgb">255.255.255</div>
<div ID="7HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch8" class="swatch">
<div class="border"><div ID="8" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="8RGB" class="rgb">255.255.255</div>
<div ID="8HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch9" class="swatch">
<div class="border"><div ID="9" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="9RGB" class="rgb">255.255.255</div>
<div ID="9HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch10" class="swatch">
<div class="border"><div ID="10" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="10RGB" class="rgb">255.255.255</div>
<div ID="10HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatch11" class="swatch">
<div class="border"><div ID="11" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="11RGB" class="rgb">255.255.255</div>
<div ID="11HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatchm1" class="swatch">
<div class="border"><div ID="m1" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="m1RGB" class="rgb">255.255.255</div>
<div ID="m1HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatchm2" class="swatch">
<div class="border"><div ID="m2" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="m2RGB" class="rgb">255.255.255</div>
<div ID="m2HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatchm3" class="swatch">
<div class="border"><div ID="m3" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="m3RGB" class="rgb">255.255.255</div>
<div ID="m3HEX" class="hex">#FFFFFF</div>
</div>
<div ID="swatchm4" class="swatch">
<div class="border"><div ID="m4" class="color" onClick="SetHex(this.style.backgroundColor);"> </div></div>
<div ID="m4RGB" class="rgb">255.255.255</div>
<div ID="m4HEX" class="hex">#FFFFFF</div>
</div>
</div>
<script>DrawPalette();</script>
</body>
</html>
| {
"content_hash": "fed661158f29c3cc67e63119db92151d",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 295,
"avg_line_length": 51.717241379310344,
"alnum_prop": 0.6224829977330311,
"repo_name": "englishextra/shimansky.biz",
"id": "4370050a3c8238ad6296cf5dba516a73377193b9",
"size": "7499",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "tools/colorschemer/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "11092"
},
{
"name": "CSS",
"bytes": "1361908"
},
{
"name": "HTML",
"bytes": "11546102"
},
{
"name": "JavaScript",
"bytes": "7264274"
},
{
"name": "PHP",
"bytes": "1220963"
},
{
"name": "SCSS",
"bytes": "1344831"
},
{
"name": "XSLT",
"bytes": "14565"
}
],
"symlink_target": ""
} |
<?php
/** PHPExcel root directory */
if (!defined('PHPEXCEL_ROOT')) {
/**
* @ignore
*/
define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
}
/**
* PHPExcel_Reader_SYLK
*
* @category PHPExcel
* @package PHPExcel_Reader
* @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader
{
/**
* Input encoding
*
* @var string
*/
private $_inputEncoding = 'ANSI';
/**
* Sheet index to read
*
* @var int
*/
private $_sheetIndex = 0;
/**
* Formats
*
* @var array
*/
private $_formats = array();
/**
* Format Count
*
* @var int
*/
private $_format = 0;
/**
* Create a new PHPExcel_Reader_SYLK
*/
public function __construct() {
$this->_readFilter = new PHPExcel_Reader_DefaultReadFilter();
}
/**
* Validate that the current file is a SYLK file
*
* @return boolean
*/
protected function _isValidFormat()
{
// Read sample data (first 2 KB will do)
$data = fread($this->_fileHandle, 2048);
// Count delimiters in file
$delimiterCount = substr_count($data, ';');
if ($delimiterCount < 1) {
return FALSE;
}
// Analyze first line looking for ID; signature
$lines = explode("\n", $data);
if (substr($lines[0],0,4) != 'ID;P') {
return FALSE;
}
return TRUE;
}
/**
* Set input encoding
*
* @param string $pValue Input encoding
*/
public function setInputEncoding($pValue = 'ANSI')
{
$this->_inputEncoding = $pValue;
return $this;
}
/**
* Get input encoding
*
* @return string
*/
public function getInputEncoding()
{
return $this->_inputEncoding;
}
/**
* Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns)
*
* @param string $pFilename
* @throws PHPExcel_Reader_Exception
*/
public function listWorksheetInfo($pFilename)
{
// Open file
$this->_openFile($pFilename);
if (!$this->_isValidFormat()) {
fclose ($this->_fileHandle);
throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file.");
}
$fileHandle = $this->_fileHandle;
rewind($fileHandle);
$worksheetInfo = array();
$worksheetInfo[0]['worksheetName'] = 'Worksheet';
$worksheetInfo[0]['lastColumnLetter'] = 'A';
$worksheetInfo[0]['lastColumnIndex'] = 0;
$worksheetInfo[0]['totalRows'] = 0;
$worksheetInfo[0]['totalColumns'] = 0;
// Loop through file
$rowData = array();
// loop through one row (line) at a time in the file
$rowIndex = 0;
while (($rowData = fgets($fileHandle)) !== FALSE) {
$columnIndex = 0;
// convert SYLK encoded $rowData to UTF-8
$rowData = PHPExcel_Shared_String::SYLKtoUTF8($rowData);
// explode each row at semicolons while taking into account that literal semicolon (;)
// is escaped like this (;;)
$rowData = explode("\t",str_replace('짚',';',str_replace(';',"\t",str_replace(';;','짚',rtrim($rowData)))));
$dataType = array_shift($rowData);
if ($dataType == 'C') {
// Read cell value data
foreach($rowData as $rowDatum) {
switch($rowDatum{0}) {
case 'C' :
case 'X' :
$columnIndex = substr($rowDatum,1) - 1;
break;
case 'R' :
case 'Y' :
$rowIndex = substr($rowDatum,1);
break;
}
$worksheetInfo[0]['totalRows'] = max($worksheetInfo[0]['totalRows'], $rowIndex);
$worksheetInfo[0]['lastColumnIndex'] = max($worksheetInfo[0]['lastColumnIndex'], $columnIndex);
}
}
}
$worksheetInfo[0]['lastColumnLetter'] = PHPExcel_Cell::stringFromColumnIndex($worksheetInfo[0]['lastColumnIndex']);
$worksheetInfo[0]['totalColumns'] = $worksheetInfo[0]['lastColumnIndex'] + 1;
// Close file
fclose($fileHandle);
return $worksheetInfo;
}
/**
* Loads PHPExcel from file
*
* @param string $pFilename
* @return PHPExcel
* @throws PHPExcel_Reader_Exception
*/
public function load($pFilename)
{
// Create new PHPExcel
$objPHPExcel = new PHPExcel();
// Load into this instance
return $this->loadIntoExisting($pFilename, $objPHPExcel);
}
/**
* Loads PHPExcel from file into PHPExcel instance
*
* @param string $pFilename
* @param PHPExcel $objPHPExcel
* @return PHPExcel
* @throws PHPExcel_Reader_Exception
*/
public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
{
// Open file
$this->_openFile($pFilename);
if (!$this->_isValidFormat()) {
fclose ($this->_fileHandle);
throw new PHPExcel_Reader_Exception($pFilename . " is an Invalid Spreadsheet file.");
}
$fileHandle = $this->_fileHandle;
rewind($fileHandle);
// Create new PHPExcel
while ($objPHPExcel->getSheetCount() <= $this->_sheetIndex) {
$objPHPExcel->createSheet();
}
$objPHPExcel->setActiveSheetIndex( $this->_sheetIndex );
$fromFormats = array('\-', '\ ');
$toFormats = array('-', ' ');
// Loop through file
$rowData = array();
$column = $row = '';
// loop through one row (line) at a time in the file
while (($rowData = fgets($fileHandle)) !== FALSE) {
// convert SYLK encoded $rowData to UTF-8
$rowData = PHPExcel_Shared_String::SYLKtoUTF8($rowData);
// explode each row at semicolons while taking into account that literal semicolon (;)
// is escaped like this (;;)
$rowData = explode("\t",str_replace('짚',';',str_replace(';',"\t",str_replace(';;','짚',rtrim($rowData)))));
$dataType = array_shift($rowData);
// Read shared styles
if ($dataType == 'P') {
$formatArray = array();
foreach($rowData as $rowDatum) {
switch($rowDatum{0}) {
case 'P' : $formatArray['numberformat']['code'] = str_replace($fromFormats,$toFormats,substr($rowDatum,1));
break;
case 'E' :
case 'F' : $formatArray['font']['name'] = substr($rowDatum,1);
break;
case 'L' : $formatArray['font']['size'] = substr($rowDatum,1);
break;
case 'S' : $styleSettings = substr($rowDatum,1);
for ($i=0;$i<strlen($styleSettings);++$i) {
switch ($styleSettings{$i}) {
case 'I' : $formatArray['font']['italic'] = true;
break;
case 'D' : $formatArray['font']['bold'] = true;
break;
case 'T' : $formatArray['borders']['top']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
case 'B' : $formatArray['borders']['bottom']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
case 'L' : $formatArray['borders']['left']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
case 'R' : $formatArray['borders']['right']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
}
}
break;
}
}
$this->_formats['P'.$this->_format++] = $formatArray;
// Read cell value data
} elseif ($dataType == 'C') {
$hasCalculatedValue = false;
$cellData = $cellDataFormula = '';
foreach($rowData as $rowDatum) {
switch($rowDatum{0}) {
case 'C' :
case 'X' : $column = substr($rowDatum,1);
break;
case 'R' :
case 'Y' : $row = substr($rowDatum,1);
break;
case 'K' : $cellData = substr($rowDatum,1);
break;
case 'E' : $cellDataFormula = '='.substr($rowDatum,1);
// Convert R1C1 style references to A1 style references (but only when not quoted)
$temp = explode('"',$cellDataFormula);
$key = false;
foreach($temp as &$value) {
// Only count/replace in alternate array entries
if ($key = !$key) {
preg_match_all('/(R(\[?-?\d*\]?))(C(\[?-?\d*\]?))/',$value, $cellReferences,PREG_SET_ORDER+PREG_OFFSET_CAPTURE);
// Reverse the matches array, otherwise all our offsets will become incorrect if we modify our way
// through the formula from left to right. Reversing means that we work right to left.through
// the formula
$cellReferences = array_reverse($cellReferences);
// Loop through each R1C1 style reference in turn, converting it to its A1 style equivalent,
// then modify the formula to use that new reference
foreach($cellReferences as $cellReference) {
$rowReference = $cellReference[2][0];
// Empty R reference is the current row
if ($rowReference == '') $rowReference = $row;
// Bracketed R references are relative to the current row
if ($rowReference{0} == '[') $rowReference = $row + trim($rowReference,'[]');
$columnReference = $cellReference[4][0];
// Empty C reference is the current column
if ($columnReference == '') $columnReference = $column;
// Bracketed C references are relative to the current column
if ($columnReference{0} == '[') $columnReference = $column + trim($columnReference,'[]');
$A1CellReference = PHPExcel_Cell::stringFromColumnIndex($columnReference-1).$rowReference;
$value = substr_replace($value,$A1CellReference,$cellReference[0][1],strlen($cellReference[0][0]));
}
}
}
unset($value);
// Then rebuild the formula string
$cellDataFormula = implode('"',$temp);
$hasCalculatedValue = true;
break;
}
}
$columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1);
$cellData = PHPExcel_Calculation::_unwrapResult($cellData);
// Set cell value
$objPHPExcel->getActiveSheet()->getCell($columnLetter.$row)->setValue(($hasCalculatedValue) ? $cellDataFormula : $cellData);
if ($hasCalculatedValue) {
$cellData = PHPExcel_Calculation::_unwrapResult($cellData);
$objPHPExcel->getActiveSheet()->getCell($columnLetter.$row)->setCalculatedValue($cellData);
}
// Read cell formatting
} elseif ($dataType == 'F') {
$formatStyle = $columnWidth = $styleSettings = '';
$styleData = array();
foreach($rowData as $rowDatum) {
switch($rowDatum{0}) {
case 'C' :
case 'X' : $column = substr($rowDatum,1);
break;
case 'R' :
case 'Y' : $row = substr($rowDatum,1);
break;
case 'P' : $formatStyle = $rowDatum;
break;
case 'W' : list($startCol,$endCol,$columnWidth) = explode(' ',substr($rowDatum,1));
break;
case 'S' : $styleSettings = substr($rowDatum,1);
for ($i=0;$i<strlen($styleSettings);++$i) {
switch ($styleSettings{$i}) {
case 'I' : $styleData['font']['italic'] = true;
break;
case 'D' : $styleData['font']['bold'] = true;
break;
case 'T' : $styleData['borders']['top']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
case 'B' : $styleData['borders']['bottom']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
case 'L' : $styleData['borders']['left']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
case 'R' : $styleData['borders']['right']['style'] = PHPExcel_Style_Border::BORDER_THIN;
break;
}
}
break;
}
}
if (($formatStyle > '') && ($column > '') && ($row > '')) {
$columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1);
if (isset($this->_formats[$formatStyle])) {
$objPHPExcel->getActiveSheet()->getStyle($columnLetter.$row)->applyFromArray($this->_formats[$formatStyle]);
}
}
if ((!empty($styleData)) && ($column > '') && ($row > '')) {
$columnLetter = PHPExcel_Cell::stringFromColumnIndex($column-1);
$objPHPExcel->getActiveSheet()->getStyle($columnLetter.$row)->applyFromArray($styleData);
}
if ($columnWidth > '') {
if ($startCol == $endCol) {
$startCol = PHPExcel_Cell::stringFromColumnIndex($startCol-1);
$objPHPExcel->getActiveSheet()->getColumnDimension($startCol)->setWidth($columnWidth);
} else {
$startCol = PHPExcel_Cell::stringFromColumnIndex($startCol-1);
$endCol = PHPExcel_Cell::stringFromColumnIndex($endCol-1);
$objPHPExcel->getActiveSheet()->getColumnDimension($startCol)->setWidth($columnWidth);
do {
$objPHPExcel->getActiveSheet()->getColumnDimension(++$startCol)->setWidth($columnWidth);
} while ($startCol != $endCol);
}
}
} else {
foreach($rowData as $rowDatum) {
switch($rowDatum{0}) {
case 'C' :
case 'X' : $column = substr($rowDatum,1);
break;
case 'R' :
case 'Y' : $row = substr($rowDatum,1);
break;
}
}
}
}
// Close file
fclose($fileHandle);
// Return
return $objPHPExcel;
}
/**
* Get sheet index
*
* @return int
*/
public function getSheetIndex() {
return $this->_sheetIndex;
}
/**
* Set sheet index
*
* @param int $pValue Sheet index
* @return PHPExcel_Reader_SYLK
*/
public function setSheetIndex($pValue = 0) {
$this->_sheetIndex = $pValue;
return $this;
}
}
| {
"content_hash": "a186a86b2c6b9e9f3a0048581bd96dc9",
"timestamp": "",
"source": "github",
"line_count": 426,
"max_line_length": 128,
"avg_line_length": 30.795774647887324,
"alnum_prop": 0.5940239347511244,
"repo_name": "cigiko/brdnc.cafe24.com",
"id": "2b839da9adcd8242b98bdce61685fc292a80de33",
"size": "14181",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "os/PHPExcel/Classes/PHPExcel/Reader/SYLK.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "728"
},
{
"name": "CSS",
"bytes": "208727"
},
{
"name": "HTML",
"bytes": "433645"
},
{
"name": "JavaScript",
"bytes": "250376"
},
{
"name": "PHP",
"bytes": "9514209"
}
],
"symlink_target": ""
} |
import addUsersDirective from './addUsers.directive';
export default
angular.module('AddUsers', [])
.directive('addUsers', addUsersDirective);
| {
"content_hash": "7332badf971901d9341430d7e5763125",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 53,
"avg_line_length": 22.571428571428573,
"alnum_prop": 0.7088607594936709,
"repo_name": "snahelou/awx",
"id": "83604f2c77045ea55d90da32d88a74aa0d33c6f3",
"size": "322",
"binary": false,
"copies": "3",
"ref": "refs/heads/devel",
"path": "awx/ui/client/src/organizations/linkout/addUsers/main.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "277672"
},
{
"name": "HTML",
"bytes": "424349"
},
{
"name": "JavaScript",
"bytes": "2903576"
},
{
"name": "Makefile",
"bytes": "20443"
},
{
"name": "Nginx",
"bytes": "2520"
},
{
"name": "PowerShell",
"bytes": "6936"
},
{
"name": "Python",
"bytes": "7328472"
},
{
"name": "Shell",
"bytes": "1068"
}
],
"symlink_target": ""
} |
/*! \file */
/* ************************************************************************
* Copyright (C) 2019-2022 Advanced Micro Devices, Inc. All rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* ************************************************************************ */
#include "rocsparse_enum.hpp"
#include "testing.hpp"
template <typename T>
void testing_csric0_bad_arg(const Arguments& arg)
{
static const size_t safe_size = 100;
// Create rocsparse handle
rocsparse_local_handle local_handle;
// Create matrix descriptor
rocsparse_local_mat_descr local_descr;
// Create matrix info
rocsparse_local_mat_info local_info;
rocsparse_handle handle = local_handle;
rocsparse_int m = safe_size;
rocsparse_int nnz = safe_size;
const rocsparse_mat_descr descr = local_descr;
T* csr_val = (T*)0x4;
const rocsparse_int* csr_row_ptr = (const rocsparse_int*)0x4;
const rocsparse_int* csr_col_ind = (const rocsparse_int*)0x4;
rocsparse_mat_info info = local_info;
rocsparse_analysis_policy analysis = rocsparse_analysis_policy_force;
rocsparse_solve_policy solve = rocsparse_solve_policy_auto;
size_t* buffer_size = (size_t*)0x4;
void* temp_buffer = (void*)0x4;
#define PARAMS_BUFFER_SIZE \
handle, m, nnz, descr, csr_val, csr_row_ptr, csr_col_ind, info, buffer_size
#define PARAMS_ANALYSIS \
handle, m, nnz, descr, csr_val, csr_row_ptr, csr_col_ind, info, analysis, solve, temp_buffer
#define PARAMS handle, m, nnz, descr, csr_val, csr_row_ptr, csr_col_ind, info, solve, temp_buffer
auto_testing_bad_arg(rocsparse_csric0_buffer_size<T>, PARAMS_BUFFER_SIZE);
auto_testing_bad_arg(rocsparse_csric0_analysis<T>, PARAMS_ANALYSIS);
auto_testing_bad_arg(rocsparse_csric0<T>, PARAMS);
for(auto val : rocsparse_matrix_type_t::values)
{
if(val != rocsparse_matrix_type_general)
{
CHECK_ROCSPARSE_ERROR(rocsparse_set_mat_type(descr, val));
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_buffer_size<T>(PARAMS_BUFFER_SIZE),
rocsparse_status_not_implemented);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_analysis<T>(PARAMS_ANALYSIS),
rocsparse_status_not_implemented);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0<T>(PARAMS), rocsparse_status_not_implemented);
}
}
CHECK_ROCSPARSE_ERROR(rocsparse_set_mat_type(descr, rocsparse_matrix_type_general));
CHECK_ROCSPARSE_ERROR(rocsparse_set_mat_storage_mode(descr, rocsparse_storage_mode_unsorted));
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_buffer_size<T>(PARAMS_BUFFER_SIZE),
rocsparse_status_not_implemented);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_analysis<T>(PARAMS_ANALYSIS),
rocsparse_status_not_implemented);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0<T>(PARAMS), rocsparse_status_not_implemented);
CHECK_ROCSPARSE_ERROR(rocsparse_set_mat_storage_mode(descr, rocsparse_storage_mode_sorted));
#undef PARAMS_BUFFER_SIZE
#undef PARAMS_ANALYSIS
#undef PARAMS
// Test rocsparse_csric0_zero_pivot()
rocsparse_int position;
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_zero_pivot(nullptr, info, &position),
rocsparse_status_invalid_handle);
// Test rocsparse_csric0_clear()
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_clear(nullptr, info), rocsparse_status_invalid_handle);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_clear(handle, nullptr),
rocsparse_status_invalid_pointer);
// Additional tests for invalid zero matrices
EXPECT_ROCSPARSE_STATUS(
rocsparse_csric0_buffer_size<T>(
handle, safe_size, safe_size, descr, nullptr, csr_row_ptr, nullptr, info, buffer_size),
rocsparse_status_invalid_pointer);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_analysis<T>(handle,
safe_size,
safe_size,
descr,
nullptr,
csr_row_ptr,
nullptr,
info,
rocsparse_analysis_policy_reuse,
rocsparse_solve_policy_auto,
temp_buffer),
rocsparse_status_invalid_pointer);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0<T>(handle,
safe_size,
safe_size,
descr,
nullptr,
csr_row_ptr,
nullptr,
info,
rocsparse_solve_policy_auto,
temp_buffer),
rocsparse_status_invalid_pointer);
}
template <typename T>
void testing_csric0(const Arguments& arg)
{
rocsparse_int M = arg.M;
rocsparse_int N = arg.N;
rocsparse_analysis_policy apol = arg.apol;
rocsparse_solve_policy spol = arg.spol;
rocsparse_index_base base = arg.baseA;
bool to_int = arg.timing ? false : true;
static constexpr bool full_rank = true;
rocsparse_matrix_factory<T> matrix_factory(arg, to_int, full_rank);
// Create rocsparse handle
rocsparse_local_handle handle;
// Create matrix descriptor
rocsparse_local_mat_descr descr;
// Create matrix info
rocsparse_local_mat_info info;
// Set matrix index base
CHECK_ROCSPARSE_ERROR(rocsparse_set_mat_index_base(descr, base));
// Argument sanity check before allocating invalid memory
if(M <= 0)
{
static const size_t safe_size = 100;
size_t buffer_size;
rocsparse_int pivot;
// Allocate memory on device
device_vector<rocsparse_int> dcsr_row_ptr(safe_size);
device_vector<rocsparse_int> dcsr_col_ind(safe_size);
device_vector<T> dcsr_val(safe_size);
device_vector<T> dbuffer(safe_size);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_buffer_size<T>(handle,
M,
safe_size,
descr,
dcsr_val,
dcsr_row_ptr,
dcsr_col_ind,
info,
&buffer_size),
(M < 0) ? rocsparse_status_invalid_size : rocsparse_status_success);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_analysis<T>(handle,
M,
safe_size,
descr,
dcsr_val,
dcsr_row_ptr,
dcsr_col_ind,
info,
apol,
spol,
dbuffer),
(M < 0) ? rocsparse_status_invalid_size : rocsparse_status_success);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0<T>(handle,
M,
safe_size,
descr,
dcsr_val,
dcsr_row_ptr,
dcsr_col_ind,
info,
spol,
dbuffer),
(M < 0) ? rocsparse_status_invalid_size : rocsparse_status_success);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_zero_pivot(handle, info, &pivot),
rocsparse_status_success);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_clear(handle, info), rocsparse_status_success);
return;
}
// Allocate host memory for matrix
host_vector<rocsparse_int> hcsr_row_ptr;
host_vector<rocsparse_int> hcsr_col_ind;
host_vector<T> hcsr_val;
host_vector<T> hcsr_val_gold;
// Sample matrix
rocsparse_int nnz;
matrix_factory.init_csr(hcsr_row_ptr, hcsr_col_ind, hcsr_val, M, N, nnz, base);
hcsr_val_gold = hcsr_val;
// Allocate host memory for vectors
host_vector<T> hcsr_val_1(nnz);
host_vector<T> hcsr_val_2(nnz);
host_vector<rocsparse_int> h_analysis_pivot_1(1);
host_vector<rocsparse_int> h_analysis_pivot_2(1);
host_vector<rocsparse_int> h_analysis_pivot_gold(1);
host_vector<rocsparse_int> h_solve_pivot_1(1);
host_vector<rocsparse_int> h_solve_pivot_2(1);
host_vector<rocsparse_int> h_solve_pivot_gold(1);
// Allocate device memory
device_vector<rocsparse_int> dcsr_row_ptr(M + 1);
device_vector<rocsparse_int> dcsr_col_ind(nnz);
device_vector<T> dcsr_val_1(nnz);
device_vector<T> dcsr_val_2(nnz);
device_vector<rocsparse_int> d_analysis_pivot_2(1);
device_vector<rocsparse_int> d_solve_pivot_2(1);
// Copy data from CPU to device
CHECK_HIP_ERROR(hipMemcpy(
dcsr_row_ptr, hcsr_row_ptr, sizeof(rocsparse_int) * (M + 1), hipMemcpyHostToDevice));
CHECK_HIP_ERROR(
hipMemcpy(dcsr_col_ind, hcsr_col_ind, sizeof(rocsparse_int) * nnz, hipMemcpyHostToDevice));
CHECK_HIP_ERROR(hipMemcpy(dcsr_val_1, hcsr_val, sizeof(T) * nnz, hipMemcpyHostToDevice));
// Obtain required buffer size
size_t buffer_size;
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_buffer_size<T>(
handle, M, nnz, descr, dcsr_val_1, dcsr_row_ptr, dcsr_col_ind, info, &buffer_size));
void* dbuffer;
CHECK_HIP_ERROR(rocsparse_hipMalloc(&dbuffer, buffer_size));
if(arg.unit_check)
{
// Copy data from CPU to device
CHECK_HIP_ERROR(hipMemcpy(dcsr_val_2, hcsr_val, sizeof(T) * nnz, hipMemcpyHostToDevice));
// Perform analysis step
// Pointer mode host
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_host));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_analysis<T>(handle,
M,
nnz,
descr,
dcsr_val_1,
dcsr_row_ptr,
dcsr_col_ind,
info,
apol,
spol,
dbuffer));
{
auto st = rocsparse_csric0_zero_pivot(handle, info, h_analysis_pivot_1);
EXPECT_ROCSPARSE_STATUS(st,
(h_analysis_pivot_1[0] != -1) ? rocsparse_status_zero_pivot
: rocsparse_status_success);
}
// Sync to force updated pivots
CHECK_HIP_ERROR(hipDeviceSynchronize());
// Pointer mode device
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_device));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_analysis<T>(handle,
M,
nnz,
descr,
dcsr_val_2,
dcsr_row_ptr,
dcsr_col_ind,
info,
apol,
spol,
dbuffer));
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_zero_pivot(handle, info, d_analysis_pivot_2),
(h_analysis_pivot_1[0] != -1) ? rocsparse_status_zero_pivot
: rocsparse_status_success);
// Sync to force updated pivots
CHECK_HIP_ERROR(hipDeviceSynchronize());
// Perform solve step
// Pointer mode host
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_host));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0<T>(
handle, M, nnz, descr, dcsr_val_1, dcsr_row_ptr, dcsr_col_ind, info, spol, dbuffer));
{
auto st = rocsparse_csric0_zero_pivot(handle, info, h_solve_pivot_1);
EXPECT_ROCSPARSE_STATUS(st,
(h_solve_pivot_1[0] != -1) ? rocsparse_status_zero_pivot
: rocsparse_status_success);
}
// Sync to force updated pivots
CHECK_HIP_ERROR(hipDeviceSynchronize());
// Pointer mode device
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_device));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0<T>(
handle, M, nnz, descr, dcsr_val_2, dcsr_row_ptr, dcsr_col_ind, info, spol, dbuffer));
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_zero_pivot(handle, info, d_solve_pivot_2),
(h_solve_pivot_1[0] != -1) ? rocsparse_status_zero_pivot
: rocsparse_status_success);
// Sync to force updated pivots
CHECK_HIP_ERROR(hipDeviceSynchronize());
// Copy output to host
CHECK_HIP_ERROR(hipMemcpy(hcsr_val_1, dcsr_val_1, sizeof(T) * nnz, hipMemcpyDeviceToHost));
CHECK_HIP_ERROR(hipMemcpy(hcsr_val_2, dcsr_val_2, sizeof(T) * nnz, hipMemcpyDeviceToHost));
CHECK_HIP_ERROR(hipMemcpy(
h_analysis_pivot_2, d_analysis_pivot_2, sizeof(rocsparse_int), hipMemcpyDeviceToHost));
CHECK_HIP_ERROR(hipMemcpy(
h_solve_pivot_2, d_solve_pivot_2, sizeof(rocsparse_int), hipMemcpyDeviceToHost));
// CPU csric0
host_csric0<T>(M,
hcsr_row_ptr,
hcsr_col_ind,
hcsr_val_gold,
base,
h_analysis_pivot_gold,
h_solve_pivot_gold);
// Check pivots
h_analysis_pivot_gold.unit_check(h_analysis_pivot_1);
h_analysis_pivot_gold.unit_check(h_analysis_pivot_2);
h_solve_pivot_gold.unit_check(h_solve_pivot_1);
h_solve_pivot_gold.unit_check(h_solve_pivot_2);
// Check solution vector if no pivot has been found
if(h_analysis_pivot_gold[0] == -1 && h_solve_pivot_gold[0] == -1)
{
hcsr_val_gold.near_check(hcsr_val_1);
hcsr_val_gold.near_check(hcsr_val_2);
}
}
if(arg.timing)
{
int number_cold_calls = 2;
int number_hot_calls = arg.iters;
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_host));
// Warm up
for(int iter = 0; iter < number_cold_calls; ++iter)
{
CHECK_HIP_ERROR(
hipMemcpy(dcsr_val_1, hcsr_val, sizeof(T) * nnz, hipMemcpyHostToDevice));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_analysis<T>(handle,
M,
nnz,
descr,
dcsr_val_1,
dcsr_row_ptr,
dcsr_col_ind,
info,
apol,
spol,
dbuffer));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0<T>(handle,
M,
nnz,
descr,
dcsr_val_1,
dcsr_row_ptr,
dcsr_col_ind,
info,
spol,
dbuffer));
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_clear(handle, info));
}
CHECK_HIP_ERROR(hipMemcpy(dcsr_val_1, hcsr_val, sizeof(T) * nnz, hipMemcpyHostToDevice));
double gpu_analysis_time_used = get_time_us();
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_analysis<T>(handle,
M,
nnz,
descr,
dcsr_val_1,
dcsr_row_ptr,
dcsr_col_ind,
info,
apol,
spol,
dbuffer));
gpu_analysis_time_used = (get_time_us() - gpu_analysis_time_used);
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_zero_pivot(handle, info, h_analysis_pivot_1),
(h_analysis_pivot_1[0] != -1) ? rocsparse_status_zero_pivot
: rocsparse_status_success);
double gpu_solve_time_used = 0;
// Solve run
for(int iter = 0; iter < number_hot_calls; ++iter)
{
CHECK_HIP_ERROR(
hipMemcpy(dcsr_val_1, hcsr_val, sizeof(T) * nnz, hipMemcpyHostToDevice));
double temp = get_time_us();
CHECK_ROCSPARSE_ERROR(rocsparse_csric0<T>(handle,
M,
nnz,
descr,
dcsr_val_1,
dcsr_row_ptr,
dcsr_col_ind,
info,
spol,
dbuffer));
gpu_solve_time_used += (get_time_us() - temp);
}
EXPECT_ROCSPARSE_STATUS(rocsparse_csric0_zero_pivot(handle, info, h_solve_pivot_1),
(h_solve_pivot_1[0] != -1) ? rocsparse_status_zero_pivot
: rocsparse_status_success);
gpu_solve_time_used = gpu_solve_time_used / number_hot_calls;
double gbyte_count = csric0_gbyte_count<T>(M, nnz);
rocsparse_int pivot = -1;
if(h_analysis_pivot_1[0] == -1)
{
pivot = h_solve_pivot_1[0];
}
else if(h_solve_pivot_1[0] == -1)
{
pivot = h_analysis_pivot_1[0];
}
else
{
pivot = std::min(h_analysis_pivot_1[0], h_solve_pivot_1[0]);
}
double gpu_gbyte = get_gpu_gbyte(gpu_solve_time_used, gbyte_count);
display_timing_info("M",
M,
"nnz",
nnz,
"pivot",
pivot,
"analysis policy",
rocsparse_analysis2string(apol),
"solve policy",
rocsparse_solve2string(spol),
s_timing_info_bandwidth,
gpu_gbyte,
"analysis msec",
get_gpu_time_msec(gpu_analysis_time_used),
s_timing_info_time,
get_gpu_time_msec(gpu_solve_time_used));
}
// Clear csric0 meta data
CHECK_ROCSPARSE_ERROR(rocsparse_csric0_clear(handle, info));
// Free buffer
CHECK_HIP_ERROR(rocsparse_hipFree(dbuffer));
}
#define INSTANTIATE(TYPE) \
template void testing_csric0_bad_arg<TYPE>(const Arguments& arg); \
template void testing_csric0<TYPE>(const Arguments& arg)
INSTANTIATE(float);
INSTANTIATE(double);
INSTANTIATE(rocsparse_float_complex);
INSTANTIATE(rocsparse_double_complex);
void testing_csric0_extra(const Arguments& arg) {}
| {
"content_hash": "72f5aef4f11b5c7f7e7f97a37e7cc980",
"timestamp": "",
"source": "github",
"line_count": 499,
"max_line_length": 100,
"avg_line_length": 48.04408817635271,
"alnum_prop": 0.45086343538833734,
"repo_name": "ROCmSoftwarePlatform/rocSPARSE",
"id": "144fdf1ae17ae2fb8eff658fa73057509b62c160",
"size": "23974",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "clients/testings/testing_csric0.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "1140276"
},
{
"name": "C++",
"bytes": "9270269"
},
{
"name": "CMake",
"bytes": "83194"
},
{
"name": "Fortran",
"bytes": "483223"
},
{
"name": "Groovy",
"bytes": "24290"
},
{
"name": "Python",
"bytes": "96574"
},
{
"name": "Shell",
"bytes": "61474"
}
],
"symlink_target": ""
} |
//////////////////////////////////////////////////////////////////
#include <sg.h>
#include "sg_wc__public_typedefs.h"
#include "sg_wc__public_prototypes.h"
#include "sg_wc__private.h"
#include "sg_vv2__public_prototypes.h"
//////////////////////////////////////////////////////////////////
void SG_wc__line_history(SG_context * pCtx,
const SG_pathname* pPathWc,
const char * pszInput,
SG_int32 start_line,
SG_int32 length,
SG_varray ** ppvaResults)
{
SG_wc_tx * pWcTx = NULL;
SG_string * pStringRepoPath = NULL;
char * pszGid = NULL;
sg_wc_liveview_item * pLVI; // we do not own this
SG_wc_status_flags statusFlags;
SG_bool bKnown;
char cDomain;
const char * psz_original_hid = NULL;
SG_bool bAreaWasModifiedInWC = SG_FALSE;
SG_pathname * pTempFile = NULL;
SG_pathname * pWCPath = NULL;
SG_int32 nLineNumInParent = 0;
SG_bool bWasChanged = SG_FALSE;
char * pszBaseline = NULL;
SG_rev_spec * pRevSpec = NULL;
SG_repo * pRepo = NULL;
char gidBuf[SG_GID_BUFFER_LENGTH + 1];
SG_NONEMPTYCHECK_RETURN( pszInput ); // throw if omitted, do not assume "@/".
SG_ERR_CHECK( SG_WC_TX__ALLOC__BEGIN(pCtx, &pWcTx, pPathWc, SG_TRUE) );
SG_ERR_CHECK( sg_wc_db__path__anything_to_repopath(pCtx, pWcTx->pDb, pszInput,
SG_WC_DB__PATH__IMPORT_FLAGS__TREAT_NULL_AS_ERROR,
&pStringRepoPath, &cDomain) );
// find the GID/alias of the named item while taking
// account whatever domain component. (that is, they
// could have said "@g12345...." or "@b/....." rather
// than a live path.)
//
// Fetch the LVI for this item. This may implicitly
// cause a SCANDIR/READIR and/or sync up with the DB.
// This is good because it also means we will get the
// exact-match stuff on each component within the
// pathname.
SG_ERR_CHECK( sg_wc_tx__liveview__fetch_item__domain(pCtx, pWcTx, pStringRepoPath,
&bKnown, &pLVI) );
if (!bKnown)
{
// We only get this if the path is completely bogus and
// took us off into the weeds (as opposed to reporting
// something just not-controlled).
SG_ERR_THROW2( SG_ERR_NOT_FOUND,
(pCtx, "Unknown item '%s'.", SG_string__sz(pStringRepoPath)) );
}
SG_ERR_CHECK( sg_wc__status__compute_flags(pCtx, pWcTx, pLVI,
SG_TRUE, // --no-ignores (faster)
SG_FALSE, // trust TSC
&statusFlags) );
if (statusFlags & (SG_WC_STATUS_FLAGS__U__FOUND
|SG_WC_STATUS_FLAGS__U__IGNORED))
SG_ERR_THROW2( SG_ERR_ITEM_NOT_UNDER_VERSION_CONTROL,
(pCtx, "%s", pszInput) );
if (statusFlags & SG_WC_STATUS_FLAGS__S__ADDED)
SG_ERR_THROW2( SG_ERR_VC_LINE_HISTORY_NOT_COMMITTED_YET,
(pCtx, "%s", pszInput) );
if ((statusFlags & SG_WC_STATUS_FLAGS__T__FILE) == 0)
{
//They passed something that is not a file. That's an error.
SG_ERR_THROW2( SG_ERR_NOTAFILE,
(pCtx, "%s", pszInput) );
}
SG_ERR_CHECK( sg_wc_db__gid__get_gid_from_alias(pCtx, pWcTx->pDb, pLVI->uiAliasGid, &pszGid) );
SG_ASSERT_RELEASE_FAIL2( (pszGid[0] == 'g'), // we get 't' domain IDs for uncontrolled items
(pCtx, "%s has temp id %s", pszInput, pszGid) );
nLineNumInParent = start_line;
if (statusFlags & SG_WC_STATUS_FLAGS__C__NON_DIR_MODIFIED)
{
const char * pszEntrynameOriginal = NULL;
//If the file is modified, we need to check to see if the
//file was modified versus the baseline. If it was, then
//we need to report that to the user.
//Fetch the baseline to do the comparison
SG_ERR_CHECK( sg_wc_liveview_item__get_original_content_hid(pCtx, pLVI, pWcTx, SG_FALSE, &psz_original_hid ) );
SG_ERR_CHECK( sg_wc_db__path__repopath_to_absolute(pCtx, pWcTx->pDb, pStringRepoPath, &pWCPath) );
SG_ERR_CHECK( sg_wc_liveview_item__get_original_entryname(pCtx, pLVI, &pszEntrynameOriginal) );
SG_ERR_CHECK( sg_wc_diff_utils__export_to_temp_file(pCtx, pWcTx, "0", pszGid, psz_original_hid,
pszEntrynameOriginal,
&pTempFile) );
//Subtract one from the start line before sending it down.
SG_ERR_CHECK( SG_linediff(pCtx, pTempFile, pWCPath, start_line - 1, length, &bWasChanged, &nLineNumInParent, NULL) );
if (bWasChanged)
SG_ERR_THROW2( SG_ERR_VC_LINE_HISTORY_WORKING_COPY_MODIFIED,
(pCtx, "%s", pszInput) );
//Add one back to the parent
nLineNumInParent += 1;
}
if (bAreaWasModifiedInWC == SG_FALSE)
{
//Call into vv2's line_history
SG_ERR_CHECK( SG_wc_tx__get_wc_baseline(pCtx, pWcTx, &pszBaseline, NULL) );
SG_ERR_CHECK( SG_REV_SPEC__ALLOC(pCtx, &pRevSpec) );
SG_ERR_CHECK( SG_rev_spec__add_rev(pCtx, pRevSpec, pszBaseline) );
SG_ERR_CHECK( SG_sprintf(pCtx, gidBuf, SG_GID_BUFFER_LENGTH + 1, "@%s", pszGid) );
SG_ERR_CHECK( SG_wc_tx__get_repo_and_wd_top(pCtx, pWcTx, &pRepo, NULL) );
SG_ERR_CHECK( SG_vv2__line_history__repo(pCtx, pRepo, pRevSpec, gidBuf, nLineNumInParent, length, ppvaResults) );
}
fail:
if (pTempFile)
SG_ERR_IGNORE( SG_fsobj__remove__pathname(pCtx,pTempFile) );
SG_NULLFREE(pCtx, pszGid);
SG_NULLFREE(pCtx, pszBaseline);
SG_PATHNAME_NULLFREE(pCtx, pTempFile);
SG_PATHNAME_NULLFREE(pCtx, pWCPath);
SG_STRING_NULLFREE(pCtx, pStringRepoPath);
SG_REV_SPEC_NULLFREE(pCtx, pRevSpec);
SG_REPO_NULLFREE(pCtx, pRepo);
SG_WC_TX__NULLFREE(pCtx, pWcTx);
}
| {
"content_hash": "87e2094e707819ef396aba270c882113",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 121,
"avg_line_length": 37.45390070921986,
"alnum_prop": 0.6443855330429843,
"repo_name": "glycerine/vj",
"id": "3b6e752ff52c0bf18ebf2a36e62feefbcaefb672",
"size": "5843",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/veracity/src/libraries/wc/wc8api/sg_wc__line_history.c",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "305113"
},
{
"name": "C",
"bytes": "16794809"
},
{
"name": "C++",
"bytes": "23785718"
},
{
"name": "CMake",
"bytes": "95243"
},
{
"name": "CSS",
"bytes": "149452"
},
{
"name": "Gnuplot",
"bytes": "691"
},
{
"name": "Groff",
"bytes": "19029"
},
{
"name": "HTML",
"bytes": "199269"
},
{
"name": "Java",
"bytes": "849244"
},
{
"name": "JavaScript",
"bytes": "8559068"
},
{
"name": "Makefile",
"bytes": "274053"
},
{
"name": "Objective-C",
"bytes": "91611"
},
{
"name": "Perl",
"bytes": "170709"
},
{
"name": "Python",
"bytes": "128973"
},
{
"name": "QMake",
"bytes": "274"
},
{
"name": "Shell",
"bytes": "424637"
},
{
"name": "TeX",
"bytes": "230259"
}
],
"symlink_target": ""
} |
package org.apache.hadoop.hive.ql.plan;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hive.ql.exec.MemoryMonitorInfo;
import org.apache.hadoop.hive.ql.exec.Operator;
import org.apache.hadoop.hive.ql.optimizer.signature.Signature;
import org.apache.hadoop.hive.ql.parse.QBJoinTree;
import org.apache.hadoop.hive.ql.plan.Explain.Level;
/**
* Join operator Descriptor implementation.
*
*/
@Explain(displayName = "Join Operator", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public class JoinDesc extends AbstractOperatorDesc {
private static final long serialVersionUID = 1L;
public static final int INNER_JOIN = 0;
public static final int LEFT_OUTER_JOIN = 1;
public static final int RIGHT_OUTER_JOIN = 2;
public static final int FULL_OUTER_JOIN = 3;
public static final int UNIQUE_JOIN = 4;
public static final int LEFT_SEMI_JOIN = 5;
// used to handle skew join
private boolean handleSkewJoin = false;
private int skewKeyDefinition = -1;
private Map<Byte, Path> bigKeysDirMap;
private Map<Byte, Map<Byte, Path>> smallKeysDirMap;
private Map<Byte, TableDesc> skewKeysValuesTables;
// alias to key mapping
private Map<Byte, List<ExprNodeDesc>> exprs;
// alias to filter mapping
private Map<Byte, List<ExprNodeDesc>> filters;
private List<ExprNodeDesc> residualFilterExprs;
// pos of outer join alias=<pos of other alias:num of filters on outer join alias>xn
// for example,
// a left outer join b on a.k=b.k AND a.k>5 full outer join c on a.k=c.k AND a.k>10 AND c.k>20
//
// That means on a(pos=0), there are overlapped filters associated with b(pos=1) and c(pos=2).
// (a)b has one filter on a (a.k>5) and (a)c also has one filter on a (a.k>10),
// making filter map for a as 0=1:1:2:1.
// C also has one outer join filter associated with A(c.k>20), which is making 2=0:1
private int[][] filterMap;
// key index to nullsafe join flag
private boolean[] nullsafes;
// used for create joinOutputObjectInspector
protected List<String> outputColumnNames;
// key:column output name, value:tag
private transient Map<String, Byte> reversedExprs;
// No outer join involved
protected boolean noOuterJoin;
protected JoinCondDesc[] conds;
protected Byte[] tagOrder;
private TableDesc keyTableDesc;
// this operator cannot be converted to mapjoin cause output is expected to be sorted on join key
// it's resulted from RS-dedup optimization, which removes following RS under some condition
private boolean fixedAsSorted;
// used only for explain.
private transient ExprNodeDesc [][] joinKeys;
// Data structures coming originally from QBJoinTree
private transient String leftAlias;
private transient String[] leftAliases;
private transient String[] rightAliases;
private transient String[] baseSrc;
private transient String id;
private transient boolean mapSideJoin;
private transient List<String> mapAliases; //map-side join aliases
private transient Map<String, Operator<? extends OperatorDesc>> aliasToOpInfo;
private transient boolean leftInputJoin;
private transient List<String> streamAliases;
// represents the total memory that this Join operator will use if it is a MapJoin operator
protected transient long inMemoryDataSize;
// non-transient field, used at runtime to kill a task if it exceeded memory limits when running in LLAP
protected MemoryMonitorInfo memoryMonitorInfo;
public JoinDesc() {
}
public JoinDesc(final Map<Byte, List<ExprNodeDesc>> exprs,
List<String> outputColumnNames, final boolean noOuterJoin,
final JoinCondDesc[] conds, final Map<Byte, List<ExprNodeDesc>> filters,
ExprNodeDesc[][] joinKeys, final MemoryMonitorInfo memoryMonitorInfo) {
this.exprs = exprs;
this.outputColumnNames = outputColumnNames;
this.noOuterJoin = noOuterJoin;
this.conds = conds;
this.filters = filters;
this.joinKeys = joinKeys;
this.memoryMonitorInfo = memoryMonitorInfo;
resetOrder();
}
// called by late-MapJoin processor (hive.auto.convert.join=true for example)
public void resetOrder() {
tagOrder = new Byte[exprs.size()];
for (int i = 0; i < tagOrder.length; i++) {
tagOrder[i] = (byte) i;
}
}
@Override
public Object clone() {
JoinDesc ret = new JoinDesc();
Map<Byte,List<ExprNodeDesc>> cloneExprs = new HashMap<Byte,List<ExprNodeDesc>>();
cloneExprs.putAll(getExprs());
ret.setExprs(cloneExprs);
Map<Byte,List<ExprNodeDesc>> cloneFilters = new HashMap<Byte,List<ExprNodeDesc>>();
cloneFilters.putAll(getFilters());
ret.setFilters(cloneFilters);
ret.setConds(getConds().clone());
ret.setNoOuterJoin(getNoOuterJoin());
ret.setNullSafes(getNullSafes());
ret.setHandleSkewJoin(handleSkewJoin);
ret.setSkewKeyDefinition(getSkewKeyDefinition());
ret.setTagOrder(getTagOrder().clone());
if (getMemoryMonitorInfo() != null) {
ret.setMemoryMonitorInfo(new MemoryMonitorInfo(getMemoryMonitorInfo()));
}
if (getKeyTableDesc() != null) {
ret.setKeyTableDesc((TableDesc) getKeyTableDesc().clone());
}
if (getBigKeysDirMap() != null) {
Map<Byte, Path> cloneBigKeysDirMap = new HashMap<Byte, Path>();
cloneBigKeysDirMap.putAll(getBigKeysDirMap());
ret.setBigKeysDirMap(cloneBigKeysDirMap);
}
if (getSmallKeysDirMap() != null) {
Map<Byte, Map<Byte, Path>> cloneSmallKeysDirMap = new HashMap<Byte, Map<Byte,Path>> ();
cloneSmallKeysDirMap.putAll(getSmallKeysDirMap());
ret.setSmallKeysDirMap(cloneSmallKeysDirMap);
}
if (getSkewKeysValuesTables() != null) {
Map<Byte, TableDesc> cloneSkewKeysValuesTables = new HashMap<Byte, TableDesc>();
cloneSkewKeysValuesTables.putAll(getSkewKeysValuesTables());
ret.setSkewKeysValuesTables(cloneSkewKeysValuesTables);
}
if (getOutputColumnNames() != null) {
List<String> cloneOutputColumnNames = new ArrayList<String>();
cloneOutputColumnNames.addAll(getOutputColumnNames());
ret.setOutputColumnNames(cloneOutputColumnNames);
}
if (getReversedExprs() != null) {
Map<String, Byte> cloneReversedExprs = new HashMap<String, Byte>();
cloneReversedExprs.putAll(getReversedExprs());
ret.setReversedExprs(cloneReversedExprs);
}
return ret;
}
public JoinDesc(JoinDesc clone) {
this.bigKeysDirMap = clone.bigKeysDirMap;
this.conds = clone.conds;
this.exprs = clone.exprs;
this.nullsafes = clone.nullsafes;
this.handleSkewJoin = clone.handleSkewJoin;
this.keyTableDesc = clone.keyTableDesc;
this.noOuterJoin = clone.noOuterJoin;
this.outputColumnNames = clone.outputColumnNames;
this.reversedExprs = clone.reversedExprs;
this.skewKeyDefinition = clone.skewKeyDefinition;
this.skewKeysValuesTables = clone.skewKeysValuesTables;
this.smallKeysDirMap = clone.smallKeysDirMap;
this.tagOrder = clone.tagOrder;
this.filters = clone.filters;
this.filterMap = clone.filterMap;
this.residualFilterExprs = clone.residualFilterExprs;
this.statistics = clone.statistics;
this.inMemoryDataSize = clone.inMemoryDataSize;
this.memoryMonitorInfo = clone.memoryMonitorInfo;
this.colExprMap = clone.colExprMap;
}
public Map<Byte, List<ExprNodeDesc>> getExprs() {
return exprs;
}
public Map<String, Byte> getReversedExprs() {
return reversedExprs;
}
public void setReversedExprs(Map<String, Byte> reversedExprs) {
this.reversedExprs = reversedExprs;
}
/**
* @return the keys in string form
*/
@Explain(displayName = "keys")
@Signature
public Map<String, String> getKeysString() {
if (joinKeys == null) {
return null;
}
Map<String, String> keyMap = new LinkedHashMap<String, String>();
for (byte i = 0; i < joinKeys.length; i++) {
keyMap.put(String.valueOf(i), PlanUtils.getExprListString(Arrays.asList(joinKeys[i])));
}
return keyMap;
}
@Explain(displayName = "keys", explainLevels = { Level.USER })
public Map<Byte, String> getUserLevelExplainKeysString() {
if (joinKeys == null) {
return null;
}
Map<Byte, String> keyMap = new LinkedHashMap<Byte, String>();
for (byte i = 0; i < joinKeys.length; i++) {
keyMap.put(i, PlanUtils.getExprListString(Arrays.asList(joinKeys[i]), true));
}
return keyMap;
}
public void setExprs(final Map<Byte, List<ExprNodeDesc>> exprs) {
this.exprs = exprs;
}
/**
* Get the string representation of filters.
*
* Returns null if they are no filters.
*
* @return Map from alias to filters on the alias.
*/
@Explain(displayName = "filter predicates")
@Signature
public Map<String, String> getFiltersStringMap() {
if (getFilters() == null || getFilters().size() == 0) {
return null;
}
LinkedHashMap<String, String> ret = new LinkedHashMap<>();
boolean filtersPresent = false;
for (Map.Entry<Byte, List<ExprNodeDesc>> ent : getFilters().entrySet()) {
StringBuilder sb = new StringBuilder();
boolean first = true;
if (ent.getValue() != null) {
if (ent.getValue().size() != 0) {
filtersPresent = true;
}
for (ExprNodeDesc expr : ent.getValue()) {
if (!first) {
sb.append(" ");
}
first = false;
sb.append("{");
sb.append(expr == null ? "NULL" : expr.getExprString());
sb.append("}");
}
}
ret.put(String.valueOf(ent.getKey()), sb.toString());
}
if (filtersPresent) {
return ret;
} else {
return null;
}
}
public Map<Byte, List<ExprNodeDesc>> getFilters() {
return filters;
}
public void setFilters(Map<Byte, List<ExprNodeDesc>> filters) {
this.filters = filters;
}
@Explain(displayName = "residual filter predicates", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
public String getResidualFilterExprsString() {
if (getResidualFilterExprs() == null || getResidualFilterExprs().size() == 0) {
return null;
}
StringBuilder sb = new StringBuilder();
boolean first = true;
for (ExprNodeDesc expr : getResidualFilterExprs()) {
if (!first) {
sb.append(" ");
}
first = false;
sb.append("{");
sb.append(expr.getExprString());
sb.append("}");
}
return sb.toString();
}
public List<ExprNodeDesc> getResidualFilterExprs() {
return residualFilterExprs;
}
public void setResidualFilterExprs(List<ExprNodeDesc> residualFilterExprs) {
this.residualFilterExprs = residualFilterExprs;
}
@Explain(displayName = "outputColumnNames")
@Signature
public List<String> getOutputColumnNames() {
return outputColumnNames;
}
@Explain(displayName = "Output", explainLevels = { Level.USER })
public List<String> getUserLevelExplainOutputColumnNames() {
return outputColumnNames;
}
public void setOutputColumnNames(
List<String> outputColumnNames) {
this.outputColumnNames = outputColumnNames;
}
public boolean getNoOuterJoin() {
return noOuterJoin;
}
public void setNoOuterJoin(final boolean noOuterJoin) {
this.noOuterJoin = noOuterJoin;
}
@Explain(displayName = "condition map", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
@Signature
public List<JoinCondDesc> getCondsList() {
if (conds == null) {
return null;
}
ArrayList<JoinCondDesc> l = new ArrayList<JoinCondDesc>();
for (JoinCondDesc cond : conds) {
l.add(cond);
}
return l;
}
@Override
@Explain(displayName = "columnExprMap", jsonOnly = true)
public Map<String, String> getColumnExprMapForExplain() {
if(this.reversedExprs == null) {
return super.getColumnExprMapForExplain();
}
Map<String, String> explainColMap = new HashMap<>();
for(String col:this.colExprMap.keySet()){
String taggedCol = this.reversedExprs.get(col) + ":"
+ this.colExprMap.get(col).getExprString();
explainColMap.put(col, taggedCol);
}
return explainColMap;
}
public ExprNodeDesc [][] getJoinKeys() {
return joinKeys;
}
public JoinCondDesc[] getConds() {
return conds;
}
public void setConds(final JoinCondDesc[] conds) {
this.conds = conds;
}
/**
* The order in which tables should be processed when joining.
*
* @return Array of tags
*/
public Byte[] getTagOrder() {
return tagOrder;
}
/**
* The order in which tables should be processed when joining.
*
* @param tagOrder
* Array of tags
*/
public void setTagOrder(Byte[] tagOrder) {
this.tagOrder = tagOrder;
}
@Explain(displayName = "handleSkewJoin", displayOnlyOnTrue = true)
@Signature
public boolean getHandleSkewJoin() {
return handleSkewJoin;
}
/**
* set to handle skew join in this join op.
*
* @param handleSkewJoin
*/
public void setHandleSkewJoin(boolean handleSkewJoin) {
this.handleSkewJoin = handleSkewJoin;
}
/**
* @return mapping from tbl to dir for big keys.
*/
public Map<Byte, Path> getBigKeysDirMap() {
return bigKeysDirMap;
}
/**
* set the mapping from tbl to dir for big keys.
*
* @param bigKeysDirMap
*/
public void setBigKeysDirMap(Map<Byte, Path> bigKeysDirMap) {
this.bigKeysDirMap = bigKeysDirMap;
}
/**
* @return mapping from tbl to dir for small keys
*/
public Map<Byte, Map<Byte, Path>> getSmallKeysDirMap() {
return smallKeysDirMap;
}
/**
* set the mapping from tbl to dir for small keys.
*
* @param smallKeysDirMap
*/
public void setSmallKeysDirMap(Map<Byte, Map<Byte, Path>> smallKeysDirMap) {
this.smallKeysDirMap = smallKeysDirMap;
}
/**
* @return skew key definition. If we see a key's associated entries' number
* is bigger than this, we will define this key as a skew key.
*/
public int getSkewKeyDefinition() {
return skewKeyDefinition;
}
/**
* set skew key definition.
*
* @param skewKeyDefinition
*/
public void setSkewKeyDefinition(int skewKeyDefinition) {
this.skewKeyDefinition = skewKeyDefinition;
}
/**
* @return the table desc for storing skew keys and their corresponding value;
*/
public Map<Byte, TableDesc> getSkewKeysValuesTables() {
return skewKeysValuesTables;
}
/**
* @param skewKeysValuesTables
* set the table desc for storing skew keys and their corresponding
* value;
*/
public void setSkewKeysValuesTables(Map<Byte, TableDesc> skewKeysValuesTables) {
this.skewKeysValuesTables = skewKeysValuesTables;
}
public boolean isNoOuterJoin() {
return noOuterJoin;
}
public void setKeyTableDesc(TableDesc keyTblDesc) {
keyTableDesc = keyTblDesc;
}
public TableDesc getKeyTableDesc() {
return keyTableDesc;
}
public boolean[] getNullSafes() {
return nullsafes;
}
public void setNullSafes(boolean[] nullSafes) {
this.nullsafes = nullSafes;
}
@Explain(displayName = "nullSafes")
@Signature
public String getNullSafeString() {
if (nullsafes == null) {
return null;
}
boolean hasNS = false;
for (boolean ns : nullsafes) {
hasNS |= ns;
}
return hasNS ? Arrays.toString(nullsafes) : null;
}
public int[][] getFilterMap() {
return filterMap;
}
public void setFilterMap(int[][] filterMap) {
this.filterMap = filterMap;
}
@Explain(displayName = "filter mappings", explainLevels = { Level.EXTENDED })
public Map<Integer, String> getFilterMapString() {
return toCompactString(filterMap);
}
protected Map<Integer, String> toCompactString(int[][] filterMap) {
filterMap = compactFilter(filterMap);
if (filterMap == null) {
return null;
}
Map<Integer, String> result = new LinkedHashMap<Integer, String>();
for (int i = 0 ; i < filterMap.length; i++) {
if (filterMap[i] == null) {
continue;
}
result.put(i, Arrays.toString(filterMap[i]));
}
return result.isEmpty() ? null : result;
}
// remove filterMap for outer alias if filter is not exist on that
private int[][] compactFilter(int[][] filterMap) {
if (filterMap == null) {
return null;
}
for (int i = 0; i < filterMap.length; i++) {
if (filterMap[i] != null) {
boolean noFilter = true;
// join positions for even index, filter lengths for odd index
for (int j = 1; j < filterMap[i].length; j += 2) {
if (filterMap[i][j] > 0) {
noFilter = false;
break;
}
}
if (noFilter) {
filterMap[i] = null;
}
}
}
for (int[] mapping : filterMap) {
if (mapping != null) {
return filterMap;
}
}
return null;
}
public int getTagLength() {
int tagLength = -1;
for (byte tag : getExprs().keySet()) {
tagLength = Math.max(tagLength, tag + 1);
}
return tagLength;
}
@SuppressWarnings("unchecked")
public <T> T[] convertToArray(Map<Byte, T> source, Class<T> compType) {
T[] result = (T[]) Array.newInstance(compType, getTagLength());
for (Map.Entry<Byte, T> entry : source.entrySet()) {
result[entry.getKey()] = entry.getValue();
}
return result;
}
public boolean isFixedAsSorted() {
return fixedAsSorted;
}
public void setFixedAsSorted(boolean fixedAsSorted) {
this.fixedAsSorted = fixedAsSorted;
}
public String[] getLeftAliases() {
return leftAliases;
}
public String[] getBaseSrc() {
return baseSrc;
}
public void setBaseSrc(String[] baseSrc) {
this.baseSrc = baseSrc;
}
public String getId() {
return id;
}
public List<String> getMapAliases() {
return mapAliases;
}
public Map<String, Operator<? extends OperatorDesc>> getAliasToOpInfo() {
return aliasToOpInfo;
}
public void setAliasToOpInfo(Map<String, Operator<? extends OperatorDesc>> aliasToOpInfo) {
this.aliasToOpInfo = aliasToOpInfo;
}
public boolean isLeftInputJoin() {
return leftInputJoin;
}
public String getLeftAlias() {
return leftAlias;
}
public void setLeftAlias(String leftAlias) {
this.leftAlias = leftAlias;
}
public String[] getRightAliases() {
return rightAliases;
}
public void setRightAliases(String[] rightAliases) {
this.rightAliases = rightAliases;
}
public List<String> getStreamAliases() {
return streamAliases;
}
public boolean isMapSideJoin() {
return mapSideJoin;
}
public void setQBJoinTreeProps(JoinDesc joinDesc) {
leftAlias = joinDesc.leftAlias;
leftAliases = joinDesc.leftAliases;
rightAliases = joinDesc.rightAliases;
baseSrc = joinDesc.baseSrc;
id = joinDesc.id;
mapSideJoin = joinDesc.mapSideJoin;
mapAliases = joinDesc.mapAliases;
aliasToOpInfo = joinDesc.aliasToOpInfo;
leftInputJoin = joinDesc.leftInputJoin;
streamAliases = joinDesc.streamAliases;
joinKeys = joinDesc.joinKeys;
}
public void setQBJoinTreeProps(QBJoinTree joinTree) {
leftAlias = joinTree.getLeftAlias();
leftAliases = joinTree.getLeftAliases();
rightAliases = joinTree.getRightAliases();
baseSrc = joinTree.getBaseSrc();
id = joinTree.getId();
mapSideJoin = joinTree.isMapSideJoin();
mapAliases = joinTree.getMapAliases();
aliasToOpInfo = joinTree.getAliasToOpInfo();
leftInputJoin = joinTree.getJoinSrc() != null;
streamAliases = joinTree.getStreamAliases();
}
public void cloneQBJoinTreeProps(JoinDesc joinDesc) {
leftAlias = joinDesc.leftAlias;
leftAliases = joinDesc.leftAliases == null ? null : joinDesc.leftAliases.clone();
rightAliases = joinDesc.rightAliases == null ? null : joinDesc.rightAliases.clone();
baseSrc = joinDesc.baseSrc == null ? null : joinDesc.baseSrc.clone();
id = joinDesc.id;
mapSideJoin = joinDesc.mapSideJoin;
mapAliases = joinDesc.mapAliases == null ? null : new ArrayList<String>(joinDesc.mapAliases);
aliasToOpInfo = new HashMap<String, Operator<? extends OperatorDesc>>(joinDesc.aliasToOpInfo);
leftInputJoin = joinDesc.leftInputJoin;
streamAliases = joinDesc.streamAliases == null ? null : new ArrayList<String>(joinDesc.streamAliases);
if (joinDesc.joinKeys != null) {
joinKeys = new ExprNodeDesc[joinDesc.joinKeys.length][];
for(int i = 0; i < joinDesc.joinKeys.length; i++) {
joinKeys[i] = joinDesc.joinKeys[i].clone();
}
}
}
public MemoryMonitorInfo getMemoryMonitorInfo() {
return memoryMonitorInfo;
}
public void setMemoryMonitorInfo(final MemoryMonitorInfo memoryMonitorInfo) {
this.memoryMonitorInfo = memoryMonitorInfo;
}
public long getInMemoryDataSize() {
return inMemoryDataSize;
}
public void setInMemoryDataSize(final long inMemoryDataSize) {
this.inMemoryDataSize = inMemoryDataSize;
}
@Override
public boolean isSame(OperatorDesc other) {
if (getClass().getName().equals(other.getClass().getName())) {
JoinDesc otherDesc = (JoinDesc) other;
return Objects.equals(getKeysString(), otherDesc.getKeysString()) &&
Objects.equals(getFiltersStringMap(), otherDesc.getFiltersStringMap()) &&
Objects.equals(getOutputColumnNames(), otherDesc.getOutputColumnNames()) &&
Objects.equals(getCondsList(), otherDesc.getCondsList()) &&
getHandleSkewJoin() == otherDesc.getHandleSkewJoin() &&
Objects.equals(getNullSafeString(), otherDesc.getNullSafeString());
}
return false;
}
}
| {
"content_hash": "6976b62bdd4f7e1edfc347efff2155cd",
"timestamp": "",
"source": "github",
"line_count": 742,
"max_line_length": 117,
"avg_line_length": 29.440700808625337,
"alnum_prop": 0.6793316548409247,
"repo_name": "b-slim/hive",
"id": "2c93c2a7602301d94f13076a5ad0114c324c4f25",
"size": "22650",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "ql/src/java/org/apache/hadoop/hive/ql/plan/JoinDesc.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "54376"
},
{
"name": "Batchfile",
"bytes": "845"
},
{
"name": "C",
"bytes": "28218"
},
{
"name": "C++",
"bytes": "45308"
},
{
"name": "CSS",
"bytes": "5157"
},
{
"name": "GAP",
"bytes": "177410"
},
{
"name": "HTML",
"bytes": "58711"
},
{
"name": "HiveQL",
"bytes": "7122267"
},
{
"name": "Java",
"bytes": "52041555"
},
{
"name": "JavaScript",
"bytes": "43855"
},
{
"name": "M4",
"bytes": "2276"
},
{
"name": "PHP",
"bytes": "148097"
},
{
"name": "PLSQL",
"bytes": "5261"
},
{
"name": "PLpgSQL",
"bytes": "302587"
},
{
"name": "Perl",
"bytes": "319842"
},
{
"name": "PigLatin",
"bytes": "12333"
},
{
"name": "Python",
"bytes": "407540"
},
{
"name": "Roff",
"bytes": "5379"
},
{
"name": "SQLPL",
"bytes": "409"
},
{
"name": "Shell",
"bytes": "299497"
},
{
"name": "TSQL",
"bytes": "2521294"
},
{
"name": "Thrift",
"bytes": "142763"
},
{
"name": "XSLT",
"bytes": "20199"
},
{
"name": "q",
"bytes": "608893"
}
],
"symlink_target": ""
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__malloc_char_memcpy_65a.c
Label Definition File: CWE126_Buffer_Overread__malloc.label.xml
Template File: sources-sink-65a.tmpl.c
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Use a small buffer
* GoodSource: Use a large buffer
* Sinks: memcpy
* BadSink : Copy data to string using memcpy
* Flow Variant: 65 Data/control flow: data passed as an argument from one function to a function in a different source file called via a function pointer
*
* */
#include "std_testcase.h"
#include <wchar.h>
#ifndef OMITBAD
/* bad function declaration */
void CWE126_Buffer_Overread__malloc_char_memcpy_65b_badSink(char * data);
void CWE126_Buffer_Overread__malloc_char_memcpy_65_bad()
{
char * data;
/* define a function pointer */
void (*funcPtr) (char *) = CWE126_Buffer_Overread__malloc_char_memcpy_65b_badSink;
data = NULL;
/* FLAW: Use a small buffer */
data = (char *)malloc(50*sizeof(char));
memset(data, 'A', 50-1); /* fill with 'A's */
data[50-1] = '\0'; /* null terminate */
/* use the function pointer */
funcPtr(data);
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B uses the GoodSource with the BadSink */
void CWE126_Buffer_Overread__malloc_char_memcpy_65b_goodG2BSink(char * data);
static void goodG2B()
{
char * data;
void (*funcPtr) (char *) = CWE126_Buffer_Overread__malloc_char_memcpy_65b_goodG2BSink;
data = NULL;
/* FIX: Use a large buffer */
data = (char *)malloc(100*sizeof(char));
memset(data, 'A', 100-1); /* fill with 'A's */
data[100-1] = '\0'; /* null terminate */
funcPtr(data);
}
void CWE126_Buffer_Overread__malloc_char_memcpy_65_good()
{
goodG2B();
}
#endif /* OMITGOOD */
/* Below is the main(). It is only used when building this testcase on
* its own for testing or for building a binary to use in testing binary
* analysis tools. It is not used when compiling all the testcases as one
* application, which is how source code analysis tools are tested.
*/
#ifdef INCLUDEMAIN
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
CWE126_Buffer_Overread__malloc_char_memcpy_65_good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
CWE126_Buffer_Overread__malloc_char_memcpy_65_bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| {
"content_hash": "3ed2b3c947af7ef5ee7bc58769a08879",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 154,
"avg_line_length": 28.934065934065934,
"alnum_prop": 0.6498290922901633,
"repo_name": "maurer/tiamat",
"id": "54d6b545f7aa9994187ea62ccc66ebf575699151",
"size": "2633",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "samples/Juliet/testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__malloc_char_memcpy_65a.c",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_192) on Wed Feb 17 15:32:59 CET 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>se.litsec.eidas.opensaml.ext.attributes.impl (eIDAS extension for OpenSAML 3.x - 1.4.4)</title>
<meta name="date" content="2021-02-17">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="se.litsec.eidas.opensaml.ext.attributes.impl (eIDAS extension for OpenSAML 3.x - 1.4.4)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/address/impl/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../../../se/litsec/eidas/opensaml/ext/impl/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?se/litsec/eidas/opensaml/ext/attributes/impl/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package se.litsec.eidas.opensaml.ext.attributes.impl</h1>
<div class="docSummary">
<div class="block">Implementation classes for eIDAS SAML attributes.</div>
</div>
<p>See: <a href="#package.description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/BirthNameTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">BirthNameTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/BirthNameType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>BirthNameType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/BirthNameTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">BirthNameTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation class for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/BirthNameType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>BirthNameType</code></a></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressStructuredTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressStructuredTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <code>CurrentAddressStructuredType</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressStructuredTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressStructuredTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation of <code>CurrentAddressStructuredType</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressStructuredTypeMarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressStructuredTypeMarshaller</a></td>
<td class="colLast">
<div class="block">Marshaller for <code>CurrentAddressStructuredType</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressStructuredTypeUnmarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressStructuredTypeUnmarshaller</a></td>
<td class="colLast">
<div class="block">Thread safe unmarshaller for <code>CurrentAddressStructuredType</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/CurrentAddressType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>CurrentAddressType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation of <code>CurrentAddressType</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressTypeMarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressTypeMarshaller</a></td>
<td class="colLast">
<div class="block">The marshaller for <code>CurrentAddressType</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentAddressTypeUnmarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentAddressTypeUnmarshaller</a></td>
<td class="colLast">
<div class="block">Thread safe unmarshaller for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/CurrentAddressType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>CurrentAddressType</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentFamilyNameTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentFamilyNameTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/CurrentFamilyNameType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>CurrentFamilyNameType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentFamilyNameTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentFamilyNameTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation class for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/CurrentFamilyNameType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>CurrentFamilyNameType</code></a></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentGivenNameTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentGivenNameTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/CurrentGivenNameType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>CurrentGivenNameType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/CurrentGivenNameTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">CurrentGivenNameTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation class for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/CurrentGivenNameType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>CurrentGivenNameType</code></a></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/DateOfBirthTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">DateOfBirthTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder of <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/DateOfBirthType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>DateOfBirthType</code></a> objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/DateOfBirthTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">DateOfBirthTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation of <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/DateOfBirthType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>DateOfBirthType</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/DateOfBirthTypeMarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">DateOfBirthTypeMarshaller</a></td>
<td class="colLast">
<div class="block">Thread-safe marshaller of <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/DateOfBirthType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>DateOfBirthType</code></a> objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/DateOfBirthTypeUnmarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">DateOfBirthTypeUnmarshaller</a></td>
<td class="colLast">
<div class="block">Thread-safe unmarshaller for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/DateOfBirthType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>DateOfBirthType</code></a> objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/GenderTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">GenderTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/GenderType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>GenderType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/GenderTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">GenderTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation of <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/GenderType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>GenderType</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/GenderTypeMarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">GenderTypeMarshaller</a></td>
<td class="colLast">
<div class="block">A thread safe Marshaller for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/GenderType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>GenderType</code></a> objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/GenderTypeUnmarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">GenderTypeUnmarshaller</a></td>
<td class="colLast">
<div class="block">Thread-safe unmarshaller for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/GenderType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>GenderType</code></a> objects.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/PersonIdentifierTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">PersonIdentifierTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/PersonIdentifierType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>PersonIdentifierType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/PersonIdentifierTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">PersonIdentifierTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation of the <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/PersonIdentifierType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>PersonIdentifierType</code></a> interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/PlaceOfBirthTypeBuilder.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">PlaceOfBirthTypeBuilder</a></td>
<td class="colLast">
<div class="block">Builder for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/PlaceOfBirthType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>PlaceOfBirthType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/PlaceOfBirthTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">PlaceOfBirthTypeImpl</a></td>
<td class="colLast">
<div class="block">Implementation of the <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/PlaceOfBirthType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>PlaceOfBirthType</code></a> interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/TransliterationStringTypeImpl.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">TransliterationStringTypeImpl</a></td>
<td class="colLast">
<div class="block">Abstract implementation class of <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/TransliterationStringType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>TransliterationStringType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/TransliterationStringTypeMarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">TransliterationStringTypeMarshaller</a></td>
<td class="colLast">
<div class="block">Marshaller for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/TransliterationStringType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>TransliterationStringType</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/impl/TransliterationStringTypeUnmarshaller.html" title="class in se.litsec.eidas.opensaml.ext.attributes.impl">TransliterationStringTypeUnmarshaller</a></td>
<td class="colLast">
<div class="block">Unmarshaller for <a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/TransliterationStringType.html" title="interface in se.litsec.eidas.opensaml.ext.attributes"><code>TransliterationStringType</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package.description">
<!-- -->
</a>
<h2 title="Package se.litsec.eidas.opensaml.ext.attributes.impl Description">Package se.litsec.eidas.opensaml.ext.attributes.impl Description</h2>
<div class="block">Implementation classes for eIDAS SAML attributes.</div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../se/litsec/eidas/opensaml/ext/attributes/address/impl/package-summary.html">Prev Package</a></li>
<li><a href="../../../../../../../se/litsec/eidas/opensaml/ext/impl/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?se/litsec/eidas/opensaml/ext/attributes/impl/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2021 <a href="http://www.litsec.se">Litsec AB</a>. All rights reserved.</small></p>
</body>
</html>
| {
"content_hash": "2ddd33b133fe480b3d986c424be5af0d",
"timestamp": "",
"source": "github",
"line_count": 323,
"max_line_length": 264,
"avg_line_length": 61.5046439628483,
"alnum_prop": 0.6877076411960132,
"repo_name": "litsec/eidas-opensaml",
"id": "74bcf82b1525a3cf7cc87ebc81173569e23a74fc",
"size": "19866",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/javadoc/opensaml3/1.4.4/se/litsec/eidas/opensaml/ext/attributes/impl/package-summary.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "1028453"
}
],
"symlink_target": ""
} |
require 'pp'
module MagicModelsGenerator
class Schema
class << self
cattr_accessor :superklass,
:belongs_to_associations,
:has_some_associations,
:has_many_through_associations
@@models = nil
def logger
@@logger ||= MagicModelsGenerator.logger
end
def models
load_schema if @@models.nil?
@@models
end
def tables
load_schema if @@tables.nil?
@@tables
end
def table_names
load_schema if @@table_names.nil?
@@table_names
end
def fks_on_table(table_name)
load_schema if @@models.nil?
@@fks_by_table[table_name.to_s] || []
end
# active record only support 2 column link tables, otherwise use a model table, has_many and through
def is_link_table?(table_name)
load_schema if @@models.nil?
return @@link_tables[table_name] if ! @@link_tables[table_name].nil?
column_names = @conn.columns(table_name).map{|x| x.name }
@@link_tables[table_name] = ! column_names.include?("id") && column_names.length == 2 && column_names.select { |x| x =~ /_id$/ } == column_names
return @@link_tables[table_name]
end
def link_tables_for_class(klass)
load_schema if @@models.nil?
end
def load_schema
return if ! @@models.nil?
@@superklass ||= ActiveRecord::Base
raise "No database connection" if !(@conn = @@superklass.connection)
@@models = ModelHash.new
@@tables = Hash.new
@@fks_by_table = Hash.new
@@link_tables = Hash.new
@@belongs_to_associations = Hash.new
@@has_some_associations = Hash.new
@@has_many_through_associations = Hash.new
@@table_names = @conn.tables.sort
@@table_names -= Ignorable.list
# Work out which tables are in the model and which aren't
@@table_names.each do |table_name|
# a model table then...
model_class_name = ActiveRecord::Base.class_name(table_name)
logger.debug "Got a model table: #{table_name} => class #{model_class_name}"
@@models[model_class_name] = table_name
@@tables[table_name] = model_class_name
# Process FKs?
if @conn.supports_fetch_foreign_keys?
table_names.each do |table_name|
logger.debug "Getting FKs for #{table_name}"
@@fks_by_table[table_name] = Array.new
@conn.foreign_key_constraints(table_name).each do |fk|
logger.debug "Got one: #{fk}"
@@fks_by_table[table_name].push(fk)
end # do each fk
end # each table
end
end
models.each do |model_name, table_name|
@@belongs_to_associations[model_name] = []
@@has_some_associations[model_name] = []
@@has_many_through_associations[model_name] = []
end
logger.debug "Loaded all models, now generating associations..."
models.keys.sort.each do |model_name|
logger.debug "Generating for #{model_name}..."
table_name = models[model_name]
generate_associations(model_name, table_name)
end
end
# Used by the generator to access the association code lines for the generated class
def associations(klass)
@@belongs_to_associations[klass.to_s] +
@@has_some_associations[klass.to_s] +
@@has_many_through_associations[klass.to_s]
end
protected
def generate_associations(model_name, table_name)
belongs_to_klass = model_name.constantize rescue return
logger.debug "Processing model table #{table_name}"
processed_columns = Hash.new
# ok, so let's look at the foreign keys on the table...
fks_on_table(table_name).each do |fk|
logger.debug "Found FK column by suffix _id [#{fk.foreign_key}]"
has_some_klass = Inflector.classify(fk.reference_table).constantize rescue next
processed_columns[fk.foreign_key] = { :has_some_klass => has_some_klass }
processed_columns[fk.foreign_key].merge! add_has_some_belongs_to(belongs_to_klass, fk.foreign_key, has_some_klass) rescue next
end
column_names = @conn.columns(table_name).map{ |x| x.name}
column_names.each do |column_name|
next if not column_name =~ /_id$/
logger.debug "Found FK column by suffix _id [#{column_name}]"
if processed_columns.key?(column_name)
logger.debug "Skipping, already processed"
next
end
has_some_klass = Inflector.classify(column_name.sub(/_id$/,"")).constantize rescue next
processed_columns[column_name] = { :has_some_klass => has_some_klass }
begin
processed_columns[column_name].merge! add_has_some_belongs_to(belongs_to_klass, column_name, has_some_klass)
rescue
puts $!
next
end
end
# is this a link table with attributes? (has_many through?)
return if processed_columns.keys.length < 2
processed_columns.keys.each do |key1|
processed_columns.keys.each do |key2|
next if key1 == key2
has_some_class = processed_columns[key1][:has_some_class].to_s
@@has_many_through_associations[has_some_class] <<
"has_many :#{processed_columns[key2][:belongs_to_name].to_s.pluralize.to_sym}, :through => :#{processed_columns[key2][:has_some_name]}"
logger.debug @@has_many_through_associations[has_some_class].last
end
end
end
def add_has_some_belongs_to(belongs_to_klass, belongs_to_fk, has_some_klass)
logger.debug "Trying to add a #{belongs_to_klass} belongs_to #{has_some_klass}..."
# so this is a belongs_to & has_some style relationship...
# is it a has_many, or a has_one? Well, let's assume a has_one has a unique index on the column please... good db design, haha!
unique = belongs_to_klass.get_unique_index_columns.include?(belongs_to_fk)
belongs_to_name = belongs_to_fk.sub(/_id$/, '').to_sym
@@belongs_to_associations[belongs_to_klass.to_s] << "belongs_to :#{belongs_to_name}, :class_name => '#{has_some_klass}', :foreign_key => :#{belongs_to_fk.to_sym}"
logger.debug @@belongs_to_associations[belongs_to_klass.to_s].last
# work out if we need a prefix
has_some_name = ((unique ? belongs_to_klass.table_name.singularize : belongs_to_klass.table_name.pluralize) + (belongs_to_name.to_s == has_some_klass.table_name.singularize ? "" : "_as_"+belongs_to_name.to_s)).downcase.to_sym
method = unique ? :has_one : :has_many
@@has_some_associations[has_some_klass.to_s] << "#{method} :#{has_some_name}, :class_name => '#{belongs_to_klass.to_s}', :foreign_key => :#{belongs_to_fk.to_sym}"
logger.debug @@has_some_associations[has_some_klass.to_s].last
return { :method => method,
:belongs_to_name => belongs_to_name,
:has_some_name => has_some_name,
:has_some_class => has_some_klass }
end
end
end
class ModelHash < Hash
def unenquire(class_id)
@enquired ||= {}
@enquired[class_id = class_id.to_s] = false
end
def enquired?(class_id)
@enquired ||= {}
@enquired[class_id.to_s]
end
def [](class_id)
enquired?(class_id = class_id.to_s)
@enquired[class_id] = true
super(class_id)
end
end
end
| {
"content_hash": "f5087df768bb710c297000c605bdf175",
"timestamp": "",
"source": "github",
"line_count": 202,
"max_line_length": 235,
"avg_line_length": 38.73267326732673,
"alnum_prop": 0.5791155419222904,
"repo_name": "drnic/magic_model_generator",
"id": "50b6ebf555723f7c6e832b28de6da9a4197ad72b",
"size": "7824",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/magic_model_generator/schema.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "25151"
},
{
"name": "Ruby",
"bytes": "627851"
}
],
"symlink_target": ""
} |
An Intelligent Exercise Tracking Application for Android
Villanova Grand Challenges Project
Spring 2014
Description:
Many smartphone apps exist on the market to track individual walks, runs and bike rides. Is it possible to have just one app to track all your exercise? My Grand Challenges project is a Proof of Concept mobile application (native Android), designed to learn and track when you are exercising. The goal of the project is to determine if it is possible to model and track user activity without consuming the battery in a typical day. The project will begin with a high level project summary with timeline and milestones. The project will conclude with a report summarizing the result and major design issues.
## Setup
*Note: These instructions assume you have a Java 1.6 [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) installed.*
*Note: These instructions rely on the Community version of Intellij*
*Note: These instructions used on Ubuntu Linux*
1. download Intellij
extract tgz file to a local folder
create shortcut/launcher to bin/idea.sh
get icon file from same folder
2. download Android SDK ONLY
extract
execute tools\android
install all of android 4.0, or something that supports a phone you have
3. install maven 3.1.1 by extracting tarball
4. sudo /etc/profile and add the following
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export ANDROID_HOME=/home/mjancola/pkg/android-sdk-inux
export PATH=/home/mjancola/pkg/android-sdk-linux/platform-tools:/home/mjancola/pkg/android-sdk-linux/tools:/usr/lib/jvm/java-6-sun/bin:/home/mjancola/pkg/apache-ant-1.9.3/bin:/home/mjancola/pkg/apache-maven-3.1.1/bin:$PATH
5. (optional) validate setup by launching Intellij and building a new empty project
create new project, specifiy:
name
paths
select create module
Android Project as type
Click Next, Next (ok to create src folder)
On the select Java SDK page, select the Android SDK you installed earlier
6. (optional) install the test project on a phone
if devices don't show up in Intellij when connected Via USB and Dev mode enabled on device:
cd ~/pkg/android-sdk-linux/platform-tools/
sudo ./adb kill-server
sudo ./adb start-server
sudo ./adb devices
if you don't see your device, stop and troubleshoot
7. From IntelliJ, install all necessary packages. Select Tools>Android>SDK
install Extras\Android Support Library, Android SDK Tools, and Android SDK Platform-tools
Android SDK Tools (v15)
Android Build-Tools (19.0.3)
android 4.1.2 (16): SDK Platform, ARM image, Google APIs
android 4.1.2 (16): SDK Platform, ARM image, Google APIs
android 4.0.3 (15): SDK Platform, ARM image, Google APIs
android 4.0 (14): SDK Platform, ARM image, Google APIs
android 2.3.3 (16): SDK Platform, ARM image, Google APIs
Android Support Library
Android Play Services
-> rerun SDK installer if prompted, exit
8. Install Android to maven repo
mvn install -Dextras.compatibility.v4.groupid=com.google.android -Dextras.compatibility.v4.artifactid=support-v4 -Dextras.compatibility.v4.version.prefix=r
9. get project from GitHub:
cd source
git clone https://github.com/mjancola/activity-tracker.git (URL link from website)
10. ADD GOOGLE PLAY SERVICES to LOCAL MAVEN REPO
Copy the gms-mvn-install.sh script (from the project root) into the extras/google/google_play_services/libproject/google-play-services_lib folder inside of your SDK.
Execute ./gms-mvn-install.sh 14 which will install the project into your local Maven repository.
Now this dependency in the project Manifest will work
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>google-play-services</artifactId>
<version>14</version>
<type>apklib</type>
</dependency>
11. swap out values in AndroidManifest.xml
<meta-data
android:name="com.google.android.gms.version"
android:value="4323000"/>
12. launch IntelliJ
Import Project
From Maven
click Next through defaults
select Android 4.0.3 as the SDK library
repeat for Google services library module
Click Libraries
Add, from Java, support V4, select the .JAR file in the extras support folder
associate new library as dependency of the main application module
13. F4 on the 'activity-tracker' project name
Under depenedencies of the main activity-tracker app:
change maven android support v4 to provided
be sure android support v4 is compiled
| {
"content_hash": "7a7d246fd8a8749b35aed05e4acf6cd1",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 606,
"avg_line_length": 43.38095238095238,
"alnum_prop": 0.7517014270032931,
"repo_name": "mjancola/activity-tracker",
"id": "b21b28b302470da6114b046824fbbf64dc2d0cff",
"size": "4575",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "128752"
}
],
"symlink_target": ""
} |
using System;
namespace Kingdom.OrTools.ConstraintSolver
{
using Google.OrTools.ConstraintSolver;
/// <summary>
///
/// </summary>
/// <inheritdoc cref="EventArgs"/>
public abstract class AgentEventArgsBase : EventArgs, IBreakable
{
/// <summary>
/// Gets the Solver.
/// </summary>
public Solver Solver { get; }
/// <inheritdoc />
public bool ShouldBreak { get; set; }
/// <summary>
/// Protected Constructor
/// </summary>
/// <param name="solver"></param>
/// <inheritdoc />
protected AgentEventArgsBase(Solver solver)
{
Solver = solver;
}
}
}
| {
"content_hash": "3b4bd6f3a47fd7b6a88b83cee0c47505",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 68,
"avg_line_length": 22.838709677419356,
"alnum_prop": 0.5324858757062146,
"repo_name": "mwpowellhtx/Kingdom.OrTools",
"id": "4f06eebdbd2ff93fd322f6655479ee9858baa78f",
"size": "708",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/Kingdom.OrTools.ConstraintSolver.Core/Internal/AgentEventArgsBase.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "12631"
},
{
"name": "C#",
"bytes": "547148"
}
],
"symlink_target": ""
} |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "8f01ce54836c7569663e64cdbd57305e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "747acec14dea9c77ab1591226c8ecff46e091cfd",
"size": "199",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Centaurea/Centaurea aplolepa/ Syn. Centaurea pandataria/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package com.facebook.buck.android;
import com.facebook.buck.model.BuildTarget;
import com.facebook.buck.model.BuildTargets;
import com.facebook.buck.rules.AbstractBuildRule;
import com.facebook.buck.rules.AddToRuleKey;
import com.facebook.buck.rules.BuildContext;
import com.facebook.buck.rules.BuildRule;
import com.facebook.buck.rules.BuildRuleParams;
import com.facebook.buck.rules.BuildableContext;
import com.facebook.buck.rules.SourcePath;
import com.facebook.buck.rules.SourcePathResolver;
import com.facebook.buck.step.Step;
import com.facebook.buck.step.fs.MkdirStep;
import com.facebook.buck.step.fs.RmStep;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSortedSet;
import java.nio.file.Path;
import java.util.Set;
/**
* {@link AndroidManifest} is a {@link BuildRule} that can generate an Android manifest from a
* skeleton manifest and the library manifests from its dependencies.
* <pre>
* android_manifest(
* name = 'my_manifest',
* skeleton = 'AndroidManifestSkeleton.xml',
* deps = [
* ':sample_manifest',
* # Additional dependent android_resource and android_library rules would be listed here,
* # as well.
* ],
* )
* </pre>
* This will produce a file under buck-out/gen that will be parameterized by the name of the
* {@code android_manifest} rule. This can be used as follows:
* <pre>
* android_binary(
* name = 'my_app',
* manifest = ':my_manifest',
* ...
* )
* </pre>
*/
public class AndroidManifest extends AbstractBuildRule {
@AddToRuleKey
private final SourcePath skeletonFile;
/** These must be sorted so the rule key is stable. */
@AddToRuleKey
private final ImmutableSortedSet<SourcePath> manifestFiles;
private final Path pathToOutputFile;
protected AndroidManifest(
BuildRuleParams params,
SourcePathResolver resolver,
SourcePath skeletonFile,
Set<SourcePath> manifestFiles) {
super(params, resolver);
this.skeletonFile = skeletonFile;
this.manifestFiles = ImmutableSortedSet.copyOf(manifestFiles);
BuildTarget buildTarget = params.getBuildTarget();
this.pathToOutputFile = BuildTargets.getGenPath(buildTarget, "AndroidManifest__%s__.xml");
}
@Override
public ImmutableList<Step> getBuildSteps(
BuildContext context,
BuildableContext buildableContext) {
ImmutableList.Builder<Step> commands = ImmutableList.builder();
// Clear out the old file, if it exists.
commands.add(new RmStep(pathToOutputFile,
/* shouldForceDeletion */ true,
/* shouldRecurse */ false));
// Make sure the directory for the output file exists.
commands.add(new MkdirStep(pathToOutputFile.getParent()));
commands.add(new GenerateManifestStep(
getResolver().getPath(skeletonFile),
ImmutableSet.copyOf(getResolver().getAllPaths(manifestFiles)),
getPathToOutput()));
buildableContext.recordArtifact(pathToOutputFile);
return commands.build();
}
@Override
public Path getPathToOutput() {
return pathToOutputFile;
}
}
| {
"content_hash": "389cb8c8db6ed78f4fe2ba174d6786e1",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 94,
"avg_line_length": 31.29,
"alnum_prop": 0.7350591243208693,
"repo_name": "MarkRunWu/buck",
"id": "0c652cabd27665ec8f0da354a85faa99d2c85c3b",
"size": "3734",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "src/com/facebook/buck/android/AndroidManifest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "638"
},
{
"name": "C",
"bytes": "244480"
},
{
"name": "C++",
"bytes": "2963"
},
{
"name": "CSS",
"bytes": "54863"
},
{
"name": "D",
"bytes": "623"
},
{
"name": "Groff",
"bytes": "440"
},
{
"name": "HTML",
"bytes": "4401"
},
{
"name": "IDL",
"bytes": "128"
},
{
"name": "Java",
"bytes": "8604085"
},
{
"name": "JavaScript",
"bytes": "930007"
},
{
"name": "Makefile",
"bytes": "1791"
},
{
"name": "Matlab",
"bytes": "47"
},
{
"name": "OCaml",
"bytes": "2956"
},
{
"name": "Objective-C",
"bytes": "37573"
},
{
"name": "Objective-C++",
"bytes": "34"
},
{
"name": "PowerShell",
"bytes": "143"
},
{
"name": "Python",
"bytes": "207256"
},
{
"name": "Shell",
"bytes": "29378"
},
{
"name": "Yacc",
"bytes": "323"
}
],
"symlink_target": ""
} |
// This file is automatically generated.
package adila.db;
/*
* Samsung Galaxy On5
*
* DEVICE: o5prolte
* MODEL: SM-G550FY
*/
final class o5prolte {
public static final String DATA = "Samsung|Galaxy On5|";
}
| {
"content_hash": "26ed4ba3ea1ba8a5b4868bed2ff2ad8c",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 60,
"avg_line_length": 16.846153846153847,
"alnum_prop": 0.684931506849315,
"repo_name": "karim/adila",
"id": "d36b20652e595400d455a75e30313026cc9d2091",
"size": "219",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "database/src/main/java/adila/db/o5prolte.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "2903103"
},
{
"name": "Prolog",
"bytes": "489"
},
{
"name": "Python",
"bytes": "3280"
}
],
"symlink_target": ""
} |
<div id="textField" class="form-group has-feedback formio-component formio-component-textfield formio-component-textField " ref="component">
<label ref="label" class="col-form-label " for="textField-textField" id="l-textField-textField">
Text Field
</label>
<div ref="element">
<input ref="input" name="data[textField]" type="text" class="form-control" lang="en" disabled="disabled" spellcheck="true" value="" id="textField-textField" aria-labelledby="l-textField-textField " aria-required="false"></input>
</div>
<div ref="messageContainer" class="formio-errors invalid-feedback"></div>
</div> | {
"content_hash": "95a6faeff86246b5a8e881b888b530fb",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 232,
"avg_line_length": 68,
"alnum_prop": 0.7287581699346405,
"repo_name": "formio/formio.js",
"id": "ece20539bb4fc43149bcf74ed37678dd96f620c9",
"size": "612",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "test/renders/component-bootstrap-textfield-readOnly.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3607"
},
{
"name": "EJS",
"bytes": "61493"
},
{
"name": "HTML",
"bytes": "1990204"
},
{
"name": "JavaScript",
"bytes": "3152153"
},
{
"name": "Less",
"bytes": "517387"
},
{
"name": "Ruby",
"bytes": "465"
},
{
"name": "SCSS",
"bytes": "614566"
}
],
"symlink_target": ""
} |
#pragma once
#include <aws/route53/Route53_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Route53
{
namespace Model
{
/**
* <p>A complex type that identifies a CIDR collection.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CidrCollection">AWS
* API Reference</a></p>
*/
class AWS_ROUTE53_API CidrCollection
{
public:
CidrCollection();
CidrCollection(const Aws::Utils::Xml::XmlNode& xmlNode);
CidrCollection& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline CidrCollection& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline CidrCollection& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the collection. Can be used to reference the collection in IAM
* policy or in another Amazon Web Services account.</p>
*/
inline CidrCollection& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline CidrCollection& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline CidrCollection& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique ID of the CIDR collection.</p>
*/
inline CidrCollection& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of a CIDR collection.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of a CIDR collection.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of a CIDR collection.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of a CIDR collection.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of a CIDR collection.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of a CIDR collection.</p>
*/
inline CidrCollection& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of a CIDR collection.</p>
*/
inline CidrCollection& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of a CIDR collection.</p>
*/
inline CidrCollection& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A sequential counter that Route 53 sets to 1 when you create a CIDR
* collection and increments by 1 each time you update settings for the CIDR
* collection.</p>
*/
inline long long GetVersion() const{ return m_version; }
/**
* <p>A sequential counter that Route 53 sets to 1 when you create a CIDR
* collection and increments by 1 each time you update settings for the CIDR
* collection.</p>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>A sequential counter that Route 53 sets to 1 when you create a CIDR
* collection and increments by 1 each time you update settings for the CIDR
* collection.</p>
*/
inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>A sequential counter that Route 53 sets to 1 when you create a CIDR
* collection and increments by 1 each time you update settings for the CIDR
* collection.</p>
*/
inline CidrCollection& WithVersion(long long value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
long long m_version;
bool m_versionHasBeenSet;
};
} // namespace Model
} // namespace Route53
} // namespace Aws
| {
"content_hash": "4e8aa70ffdd8bbe4f4c97bea4c3d054d",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 100,
"avg_line_length": 30.747663551401867,
"alnum_prop": 0.6325227963525836,
"repo_name": "cedral/aws-sdk-cpp",
"id": "6ab93b8356cbcab9e32a8bf0dabab684ebfdde6f",
"size": "6703",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-cpp-sdk-route53/include/aws/route53/model/CidrCollection.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "294220"
},
{
"name": "C++",
"bytes": "428637022"
},
{
"name": "CMake",
"bytes": "862025"
},
{
"name": "Dockerfile",
"bytes": "11688"
},
{
"name": "HTML",
"bytes": "7904"
},
{
"name": "Java",
"bytes": "352201"
},
{
"name": "Python",
"bytes": "106761"
},
{
"name": "Shell",
"bytes": "10891"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.