content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.CodeAnalysis;
namespace Nuget.PackageIndex.Client
{
/// <summary>
/// Code imported form Microsoft.CodeAnalysis since it is internal there and we need it
/// </summary>
internal static class SyntaxTokenExtensions
{
public static IEnumerable<T> GetAncestors<T>(this SyntaxToken token)
where T : SyntaxNode
{
return token.Parent != null
? token.Parent.AncestorsAndSelf().OfType<T>()
: new List<T>();
}
}
}
| 31.652174 | 111 | 0.652473 | [
"Apache-2.0"
] | ConnectionMaster/NuGet.PackageIndex | src/Nuget.PackageIndex/Client/SyntaxTokenExtensions.cs | 730 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace BreakfastForLumberjacks
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
| 23.206897 | 46 | 0.68945 | [
"MIT"
] | JianGuoWan/third-edition | WPF/Chapter_10/BreakfastForLumberjacks/BreakfastForLumberjacks/MainWindow.xaml.cs | 675 | C# |
using System;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
namespace Xen2D
{
//Example FontEnumeration definition
//public enum Fonts : int
//{
// [ContentIdentifier( "fonts\\Arial" )]
// Arial,
// [ContentIdentifier( "fonts\\TimesNewRoman" )]
// TimesNewRoman,
// [ContentIdentifier( "textures\\Courier" )]
// Courier
//}
/// <summary>
/// This class contains a set of fonts.
/// The FontCache should be constructed and initialized when the game/level is loaded.
/// SpriteFont enumeration definitions must inherit from integer and provide ContentIdentifierAttributes
/// </summary>
public class SpriteFontCache : XenCache<SpriteFont>
{
// SpriteFont Cache
public SpriteFontCache( Type contentElementEnumeration ) : this( Globals.Content, contentElementEnumeration ) { }
public SpriteFontCache( ContentManager content, Type contentElementEnumeration ) : base( content, contentElementEnumeration ) { }
}
public abstract class SpriteFontCache<T> : XenCache<SpriteFont, T>
{
public SpriteFontCache() : base( typeof( T ) ) { }
}
} | 36.235294 | 138 | 0.655844 | [
"MIT"
] | raphaelmun/Xen | Xen2D/Core/SpriteFontCache.cs | 1,234 | C# |
using UnityEngine;
using UnityEngine.InputSystem;
/// <summary>
/// Implements strategy for player selfdestruction.
/// </summary>
public class PlayerDestruction : OnInputActionsBehaviour
{
[SerializeField] private PlayerRespawn PlayerRespawn = null;
[SerializeField] private IntegerVariable PlayerLives = null;
[SerializeField] private ParticleSystem DestructionEffect = null;
public override void Perform(InputAction.CallbackContext context)
{
PlayerLives--;
Instantiate(DestructionEffect, gameObject.transform.position, Quaternion.identity);
PlayerRespawn.DestroyAndRespawn();
}
}
| 35.166667 | 91 | 0.758294 | [
"Unlicense"
] | ConstantinProkhorov/AsteroidsArcade | Assets/Scripts/Input/ShipControlls/PlayerDestruction.cs | 635 | C# |
using Newtonsoft.Json;
namespace BetfairNG.Data
{
public class ReplaceInstruction
{
[JsonProperty(PropertyName = "betId")]
public string BetId { get; set; }
[JsonProperty(PropertyName = "newPrice")]
public double NewPrice { get; set; }
}
} | 22 | 49 | 0.629371 | [
"MIT"
] | k-s-s/betfairng | Data/ReplaceInstruction.cs | 288 | C# |
using ARKBreedingStats.Library;
using ARKBreedingStats.species;
using ARKBreedingStats.values;
using System;
using System.Drawing;
namespace ARKBreedingStats.library
{
public static class CreatureExtensions
{
/// <summary>
/// Creates an image with infos about the creature.
/// </summary>
/// <param name="creature"></param>
/// <param name="cc">CreatureCollection for server settings.</param>
/// <returns></returns>
public static Bitmap InfoGraphic(this Creature creature, CreatureCollection cc)
{
if (creature == null) return null;
int maxGraphLevel = cc?.maxChartLevel ?? 0;
if (maxGraphLevel < 1) maxGraphLevel = 50;
const int width = 300;
const int height = 180;
var bmp = new Bitmap(width, height);
using (var g = Graphics.FromImage(bmp))
using (var font = new Font("Arial", 10))
using (var fontSmall = new Font("Arial", 8))
using (var fontHeader = new Font("Arial", 12, FontStyle.Bold))
using (var fontBrush = new SolidBrush(Color.Black))
using (var penBlack = new Pen(Color.Black, 1))
using (var stringFormatRight = new StringFormat() { Alignment = StringAlignment.Far })
{
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
int currentYPosition = 3;
using (var backgroundBrush = new SolidBrush(Color.AntiqueWhite))
g.FillRectangle(backgroundBrush, 0, 0, width, height);
g.DrawString(creature.Species.DescriptiveNameAndMod, fontHeader, fontBrush, 3, currentYPosition);
currentYPosition += 19;
g.DrawString($"Lvl {creature.LevelHatched} | {Utils.sexSymbol(creature.sex) + (creature.flags.HasFlag(CreatureFlags.Neutered) ? $" ({Loc.s(creature.sex == Sex.Female ? "Spayed" : "Neutered")})" : string.Empty)} | {creature.Mutations} mutations", font, fontBrush, 8, currentYPosition);
currentYPosition += 17;
using (var p = new Pen(Color.LightGray, 1))
g.DrawLine(p, 0, currentYPosition, width, currentYPosition);
currentYPosition += 2;
// levels
const int xStatName = 8;
int xLevelValue = xStatName + 30 + (creature.levelsWild[2].ToString().Length) * 7;
int maxBoxLenght = xLevelValue - xStatName;
g.DrawString("Levels", font, fontBrush, xStatName, currentYPosition);
int statDisplayIndex = 0;
for (int si = 0; si < Values.STATS_COUNT; si++)
{
int statIndex = Values.statsDisplayOrder[si];
if (statIndex == (int)StatNames.Torpidity || !creature.Species.UsesStat(statIndex))
continue;
int y = currentYPosition + 20 + (statDisplayIndex++) * 15;
// box
double levelFractionOfMax = Math.Min(1, (double)creature.levelsWild[statIndex] / maxGraphLevel);
if (levelFractionOfMax < 0) levelFractionOfMax = 0;
int levelPercentageOfMax = (int)(100 * levelFractionOfMax);
int statBoxLength = Math.Max((int)(maxBoxLenght * levelFractionOfMax), 1);
const int statBoxHeight = 2;
var statColor = Utils.getColorFromPercent(levelPercentageOfMax);
using (var b = new SolidBrush(statColor))
g.FillRectangle(b, xStatName, y + 14, statBoxLength, statBoxHeight);
using (var b = new SolidBrush(Color.FromArgb(10, statColor)))
{
for (int r = 4; r > 0; r--)
g.FillRectangle(b, xStatName - r, y + 13 - r, statBoxLength + 2 * r, statBoxHeight + 2 * r);
}
using (var p = new Pen(Utils.getColorFromPercent(levelPercentageOfMax, -0.5), 1))
g.DrawRectangle(p, xStatName, y + 14, statBoxLength, statBoxHeight);
// stat name
g.DrawString($"{Utils.statName(statIndex, true, creature.Species.IsGlowSpecies)}",
font, fontBrush, xStatName, y);
// stat level number
g.DrawString($"{creature.levelsWild[statIndex]}",
font, fontBrush, xLevelValue, y, stringFormatRight);
}
// colors
const int maxColorNameLength = 38;
int xColor = xLevelValue + 20;
g.DrawString("Colors", font, fontBrush, xColor, currentYPosition);
int colorIndex = 0;
for (int ci = 0; ci < Species.COLOR_REGION_COUNT; ci++)
{
if (!string.IsNullOrEmpty(creature.Species.colors[ci]?.name))
{
const int circleDiameter = 16;
const int rowHeight = circleDiameter + 2;
int y = currentYPosition + 20 + (colorIndex++) * rowHeight;
Color c = CreatureColors.creatureColor(creature.colors[ci]);
Color fc = Utils.ForeColor(c);
using (var b = new SolidBrush(c))
g.FillEllipse(b, xColor, y, circleDiameter, circleDiameter);
g.DrawEllipse(penBlack, xColor, y, circleDiameter, circleDiameter);
string colorRegionName = creature.Species.colors[ci].name;
string colorName = CreatureColors.creatureColorName(creature.colors[ci]);
int totalColorLenght = colorRegionName.Length + colorName.Length + 9;
if (totalColorLenght > maxColorNameLength)
{
// shorten color region name
int lengthForRegionName = colorRegionName.Length - (totalColorLenght - maxColorNameLength);
colorRegionName = lengthForRegionName <= 0
? string.Empty
: lengthForRegionName < colorRegionName.Length
? colorRegionName.Substring(0, lengthForRegionName)
: colorRegionName;
}
g.DrawString($"[{ci}] {colorRegionName}: [{creature.colors[ci]}] {colorName}",
fontSmall, fontBrush, xColor + circleDiameter + 4, y);
}
}
// max wild level on server
if (cc != null)
{
g.DrawString($"max wild level: {cc.maxWildLevel}",
fontSmall, fontBrush, width - 4, height - 14, stringFormatRight);
}
// frame
using (var p = new Pen(Color.DarkRed, 1))
g.DrawRectangle(p, 0, 0, width - 1, height - 1);
}
return bmp;
}
/// <summary>
/// Creates infographic and copies it to the clipboard.
/// </summary>
/// <param name="creature"></param>
/// <param name="cc">CreatureCollection for server settings.</param>
public static void ExportInfoGraphicToClipboard(this Creature creature, CreatureCollection cc)
{
if (creature == null) return;
using (var bmp = creature.InfoGraphic(cc))
{
if (bmp != null)
System.Windows.Forms.Clipboard.SetImage(bmp);
}
}
}
}
| 48.75625 | 300 | 0.527753 | [
"MIT"
] | ro007bbe/ARKStatsExtractor | ARKBreedingStats/library/CreatureExtensions.cs | 7,803 | C# |
using System;
namespace ExampleFunctionAppProject.Models
{
/// <summary>
/// User model.
/// </summary>
public class User
{
/// <summary>
/// ID if the user.
/// </summary>
public string Id { get; set; }
/// <summary>
/// Name of the user.
/// </summary>
public string Name { get; set; }
/// <summary>
/// The users birthday.
/// </summary>
public DateTime Birthday { get; set; }
}
}
| 19.846154 | 46 | 0.467054 | [
"MIT"
] | UNIFYSolutions/Unify.AzureFunctionAppTools | Example/ExampleFunctionAppProject/Models/User.cs | 518 | C# |
namespace APIComparer.Backend
{
using System;
using Contracts;
using NServiceBus;
using NServiceBus.Logging;
public class ComparisonHandler : IHandleMessages<CompareNugetPackage>
{
public void Handle(CompareNugetPackage message)
{
log.Info($"Received request to handle comparison for '{message.PackageId}' versions '{message.LeftVersion}' and '{message.RightVersion}'");
var creator = new CompareSetCreator();
var differ = new CompareSetDiffer();
var reporter = new CompareSetReporter();
var packageDescription = message.ToDescription();
try
{
var compareSets = creator.Create(packageDescription);
var diffedCompareSets = differ.Diff(compareSets);
reporter.Report(packageDescription, diffedCompareSets);
}
catch (Exception exception)
{
log.Info($"Failed to process request to handle comparison for '{message.PackageId}' versions '{message.LeftVersion}' and '{message.RightVersion}'");
reporter.ReportFailure(packageDescription, exception);
}
}
static ILog log = LogManager.GetLogger<ComparisonHandler>();
}
} | 36.722222 | 165 | 0.608926 | [
"MIT"
] | Particular/APIComparer | APIComparer.Backend/ComparisonHandler.cs | 1,289 | C# |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// 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("ex1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("ex1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2018")]
[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)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 40.107143 | 93 | 0.749332 | [
"MIT"
] | Team-on/works | 3_dll/[C#] Fake3D/example/ex1/Properties/AssemblyInfo.cs | 2,249 | C# |
using MyAbpApp.MultiTenancy;
using Volo.Abp.AuditLogging;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.IdentityServer;
using Volo.Abp.Modularity;
using Volo.Abp.MultiTenancy;
using Volo.Abp.PermissionManagement.Identity;
using Volo.Abp.PermissionManagement.IdentityServer;
using Volo.Abp.SettingManagement;
using Volo.Abp.TenantManagement;
namespace MyAbpApp
{
[DependsOn(
typeof(MyAbpAppDomainSharedModule),
typeof(AbpAuditLoggingDomainModule),
typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule),
typeof(AbpIdentityServerDomainModule),
typeof(AbpPermissionManagementDomainIdentityServerModule),
typeof(AbpSettingManagementDomainModule),
typeof(AbpTenantManagementDomainModule)
)]
public class MyAbpAppDomainModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpMultiTenancyOptions>(options =>
{
options.IsEnabled = MultiTenancyConsts.IsEnabled;
});
}
}
}
| 32.589744 | 83 | 0.736428 | [
"MIT"
] | DosSEdo/Abp.SettingUi | sample/MyAbpApp/src/MyAbpApp.Domain/MyAbpAppDomainModule.cs | 1,273 | C# |
using System.IO;
using System.Runtime.Serialization;
using GameEstate.Red.Formats.Red.CR2W.Reflection;
using FastMember;
using static GameEstate.Red.Formats.Red.Records.Enums;
namespace GameEstate.Red.Formats.Red.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class W3QuestCond_IsItemEquipped : CQuestScriptedCondition
{
[Ordinal(1)] [RED("itemName")] public CName ItemName { get; set;}
[Ordinal(2)] [RED("categoryName")] public CName CategoryName { get; set;}
[Ordinal(3)] [RED("inverted")] public CBool Inverted { get; set;}
[Ordinal(4)] [RED("isFulfilled")] public CBool IsFulfilled { get; set;}
[Ordinal(5)] [RED("listener")] public CHandle<W3QuestCond_IsItemEquipped_Listener> Listener { get; set;}
public W3QuestCond_IsItemEquipped(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ }
public static new CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new W3QuestCond_IsItemEquipped(cr2w, parent, name);
public override void Read(BinaryReader file, uint size) => base.Read(file, size);
public override void Write(BinaryWriter file) => base.Write(file);
}
} | 35.969697 | 138 | 0.719461 | [
"MIT"
] | bclnet/GameEstate | src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/W3QuestCond_IsItemEquipped.cs | 1,187 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Xunit;
using RoyalBlood;
namespace RoyalBlood.UnitTests
{
public class RoyalBloodUnitTests
{
public List<string> Input1 = new List<string>();
public List<string> Output1 = new List<string>();
public List<string> Input2 = new List<string>();
public List<string> Output2 = new List<string>();
public RoyalBloodUnitTests()
{
Input1 = File.ReadAllLines("1.in").ToList();
Output1 = File.ReadAllLines("1.ans").ToList();
Input2 = File.ReadAllLines("2.in").ToList();
Output2 = File.ReadAllLines("2.ans").ToList();
}
[Fact]
public void DataSet1Test()
{
var result = Program.FindHeir(Input1);
Assert.Equal("elena", result);
}
[Fact]
public void DataSet2Test()
{
var result = Program.FindHeir(Input2);
Assert.Equal("matthew", result);
}
}
}
| 24.431818 | 58 | 0.575814 | [
"MIT"
] | StarlightIT/miscprojects | assignments/Algorithms/Kattis/RoyalBlood.UnitTests/RoyalBloodUnitTests.cs | 1,077 | C# |
using System;
using UnityEngine;
using TMPro;
using UnityEngine.EventSystems;
namespace Yarn.Unity
{
public class OptionView : UnityEngine.UI.Selectable, ISubmitHandler, IPointerClickHandler, IPointerEnterHandler
{
[SerializeField] TextMeshProUGUI text;
[SerializeField] bool showCharacterName = false;
public Action<DialogueOption> OnOptionSelected;
DialogueOption _option;
bool hasSubmittedOptionSelection = false;
public DialogueOption Option
{
get => _option;
set
{
_option = value;
hasSubmittedOptionSelection = false;
// When we're given an Option, use its text and update our
// interactibility.
if (showCharacterName)
{
text.text = value.Line.Text.Text;
}
else
{
text.text = value.Line.TextWithoutCharacterName.Text;
}
interactable = value.IsAvailable;
}
}
// If we receive a submit or click event, invoke our "we just selected
// this option" handler.
public void OnSubmit(BaseEventData eventData)
{
InvokeOptionSelected();
}
public void InvokeOptionSelected()
{
// We only want to invoke this once, because it's an error to
// submit an option when the Dialogue Runner isn't expecting it. To
// prevent this, we'll only invoke this if the flag hasn't been cleared already.
if (hasSubmittedOptionSelection == false)
{
OnOptionSelected.Invoke(Option);
hasSubmittedOptionSelection = true;
}
}
public void OnPointerClick(PointerEventData eventData)
{
InvokeOptionSelected();
}
// If we mouse-over, we're telling the UI system that this element is
// the currently 'selected' (i.e. focused) element.
public override void OnPointerEnter(PointerEventData eventData)
{
base.Select();
}
}
} | 29.891892 | 115 | 0.565099 | [
"MIT"
] | DanielSidhion/YarnSpinner-Unity | Runtime/Views/OptionView.cs | 2,212 | C# |
// Copyright (c) Zolution Software Ltd. All rights reserved.
// Licensed under the MIT License, see LICENSE.txt in the solution root for license information
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Rezolver
{
internal class RezolverServiceScope : IServiceScope
{
public IServiceProvider ServiceProvider
{
get
{
return _scope;
}
}
public void Dispose()
{
_scope.Dispose();
}
private ContainerScope _scope;
public RezolverServiceScope(ContainerScope scope)
{
_scope = scope;
}
}
}
| 17.833333 | 95 | 0.738318 | [
"MIT"
] | LordZoltan/Rezolver | src/Rezolver.Microsoft.Extensions.DependencyInjection/RezolverServiceScope.cs | 644 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Reflection;
using System.Resources;
[assembly: AssemblyTitle("Microsoft Azure Security Center Library")]
[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Security Center Resources.")]
[assembly: AssemblyVersion("0.11.0.0")]
[assembly: AssemblyFileVersion("0.11.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Microsoft Azure .NET SDK")]
[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
| 41.631579 | 115 | 0.782554 | [
"MIT"
] | AnanyShah/azure-sdk-for-net | src/SDKs/SecurityCenter/Management.SecurityCenter/Properties/AssemblyInfo.cs | 791 | C# |
/**
* Copyright 2013 Canada Health Infoway, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: $LastChangedBy: gng $
* Last modified: $LastChangedDate: 2015-11-19 18:20:12 -0500 (Fri, 30 Jan 2015) $
* Revision: $LastChangedRevision: 9755 $
*/
using System.Collections.Generic;
using Ca.Infoway.Messagebuilder.Xml;
using Platform.SimpleXml;
namespace Ca.Infoway.Messagebuilder.Xml
{
[RootAttribute]
public class Vocabulary
{
[ElementListAttribute(Inline = true, Required = false, Entry = "valueSet")]
private IList<ValueSet> valueSets = new List<ValueSet>();
[ElementListAttribute(Inline = true, Required = false, Entry = "conceptDomain")]
private IList<ConceptDomain> conceptDomains = new List<ConceptDomain>();
[ElementListAttribute(Inline = true, Required = false, Entry = "codeSystem")]
private IList<CodeSystem> codeSystems = new List<CodeSystem>();
public virtual IList<ValueSet> ValueSets
{
get
{
return this.valueSets;
}
set
{
IList<ValueSet> valueSets = value;
this.valueSets = valueSets;
}
}
public virtual IList<ConceptDomain> ConceptDomains
{
get
{
return this.conceptDomains;
}
set
{
IList<ConceptDomain> conceptDomains = value;
this.conceptDomains = conceptDomains;
}
}
public virtual IList<CodeSystem> CodeSystems
{
get
{
return codeSystems;
}
set
{
IList<CodeSystem> codeSystems = value;
this.codeSystems = codeSystems;
}
}
}
}
| 26.2375 | 83 | 0.672701 | [
"ECL-2.0",
"Apache-2.0"
] | CanadaHealthInfoway/message-builder-dotnet | message-builder-xml/Main/Ca/Infoway/Messagebuilder/Xml/Vocabulary.cs | 2,099 | C# |
////////////////////////////////////////////////////////////////////////////////
//NUnit tests for "EF Core Provider for LCPI OLE DB"
// IBProvider and Contributors. 30.03.2021.
using System;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using NUnit.Framework;
using xdb=lcpi.data.oledb;
namespace EFCore_LcpiOleDb_Tests.General.Work.DBMS.Firebird.V03_0_0.D1.Query.Operators.SET_002__AS_STR.Divide.Complete.Int16.Double{
////////////////////////////////////////////////////////////////////////////////
using T_DATA1 =System.Int16;
using T_DATA2 =System.Double;
////////////////////////////////////////////////////////////////////////////////
//class TestSet_R504AAB003__param
public static class TestSet_R504AAB003__param
{
private const string c_NameOf__TABLE ="DUAL";
private sealed class MyContext:TestBaseDbContext
{
[Table(c_NameOf__TABLE)]
public sealed class TEST_RECORD
{
[Key]
[Column("ID")]
public System.Int32? TEST_ID { get; set; }
};//class TEST_RECORD
//----------------------------------------------------------------------
public DbSet<TEST_RECORD> testTable { get; set; }
//----------------------------------------------------------------------
public MyContext(xdb.OleDbTransaction tr)
:base(tr)
{
}//MyContext
};//class MyContext
//-----------------------------------------------------------------------
[Test]
public static void Test_001()
{
using(var cn=LocalCnHelper.CreateCn())
{
cn.Open();
using(var tr=cn.BeginTransaction())
{
//insert new record in external transaction
using(var db=new MyContext(tr))
{
T_DATA1 vv1=32;
string vv2="12";
var recs=db.testTable.Where(r => (string)(object)(vv1/vv1/((T_DATA2)vv2.Length))==MasterValues.c_Result__1_2);
int nRecs=0;
foreach(var r in recs)
{
Assert.AreEqual
(0,
nRecs);
++nRecs;
Assert.IsTrue
(r.TEST_ID.HasValue);
Assert.AreEqual
(1,
r.TEST_ID.Value);
}//foreach r
db.CheckTextOfLastExecutedCommand
(new TestSqlTemplate()
.T("SELECT ").N("d","ID").EOL()
.T("FROM ").N(c_NameOf__TABLE).T(" AS ").N("d").EOL()
.T("WHERE ").P_BOOL("__Exec_V_V_0"));
Assert.AreEqual
(1,
nRecs);
}//using db
tr.Commit();
}//using tr
}//using cn
}//Test_001
//-----------------------------------------------------------------------
[Test]
public static void Test_002()
{
using(var cn=LocalCnHelper.CreateCn())
{
cn.Open();
using(var tr=cn.BeginTransaction())
{
//insert new record in external transaction
using(var db=new MyContext(tr))
{
T_DATA1 vv1=32;
string vv2="12";
var recs=db.testTable.Where(r => (string)(object)((vv1/vv1)/((T_DATA2)vv2.Length))==MasterValues.c_Result__1_2);
int nRecs=0;
foreach(var r in recs)
{
Assert.AreEqual
(0,
nRecs);
++nRecs;
Assert.IsTrue
(r.TEST_ID.HasValue);
Assert.AreEqual
(1,
r.TEST_ID.Value);
}//foreach r
db.CheckTextOfLastExecutedCommand
(new TestSqlTemplate()
.T("SELECT ").N("d","ID").EOL()
.T("FROM ").N(c_NameOf__TABLE).T(" AS ").N("d").EOL()
.T("WHERE ").P_BOOL("__Exec_V_V_0"));
Assert.AreEqual
(1,
nRecs);
}//using db
tr.Commit();
}//using tr
}//using cn
}//Test_002
//-----------------------------------------------------------------------
[Test]
public static void Test_003()
{
using(var cn=LocalCnHelper.CreateCn())
{
cn.Open();
using(var tr=cn.BeginTransaction())
{
//insert new record in external transaction
using(var db=new MyContext(tr))
{
T_DATA1 vv1=32;
string vv2="12";
var recs=db.testTable.Where(r => (string)(object)(vv1/(vv1/((T_DATA2)vv2.Length)))=="2.000000000000000");
int nRecs=0;
foreach(var r in recs)
{
Assert.AreEqual
(0,
nRecs);
++nRecs;
Assert.IsTrue
(r.TEST_ID.HasValue);
Assert.AreEqual
(1,
r.TEST_ID.Value);
}//foreach r
db.CheckTextOfLastExecutedCommand
(new TestSqlTemplate()
.T("SELECT ").N("d","ID").EOL()
.T("FROM ").N(c_NameOf__TABLE).T(" AS ").N("d").EOL()
.T("WHERE ").P_BOOL("__Exec_V_V_0"));
Assert.AreEqual
(1,
nRecs);
}//using db
tr.Commit();
}//using tr
}//using cn
}//Test_003
};//class TestSet_R504AAB003__param
////////////////////////////////////////////////////////////////////////////////
}//namespace EFCore_LcpiOleDb_Tests.General.Work.DBMS.Firebird.V03_0_0.D1.Query.Operators.SET_002__AS_STR.Divide.Complete.Int16.Double
| 23.81068 | 134 | 0.525586 | [
"MIT"
] | ibprovider/Lcpi.EFCore.LcpiOleDb | Tests/General/Source/Work/DBMS/Firebird/V03_0_0/D1/Query/Operators/SET_002__AS_STR/Divide/Complete/Int16/Double/TestSet_R504AAB003__param.cs | 4,907 | C# |
using System.Threading.Tasks;
namespace VismaBugBountySelfServicePortal.Services
{
public interface IUserService
{
Task<bool> UserExist(string email);
Task SaveSession(string email);
Task RemoveSession(string email);
Task<bool> IsValidSession(string email);
}
} | 25.583333 | 50 | 0.700326 | [
"MIT"
] | visma-prodsec/BugBountySelfServicePortal | VismaBugBountySelfServicePortal/Services/IUserService.cs | 309 | C# |
using UnityEngine;
using System.Collections;
public class LogicGlobalFracturing : MonoBehaviour
{
[HideInInspector]
public static bool HelpVisible = true;
void Start()
{
HelpVisible = true;
}
public static void GlobalGUI()
{
GUI.Box(new Rect(0, 0, 400, 420), "");
GUI.Box(new Rect(0, 0, 400, 420), "-----Ultimate Fracturing & Destruction Tool-----");
GUILayout.Space(40);
GUILayout.Label("Press F1 to show/hide this help window");
GUILayout.Label("Press 1-" + UnityEngine.SceneManagement.SceneManager.sceneCountInBuildSettings + " to select different sample scenes");
GUILayout.Space(20);
}
void Update()
{
for(int i = 0; i < UnityEngine.SceneManagement.SceneManager.sceneCountInBuildSettings; i++)
{
if(Input.GetKeyDown(KeyCode.Alpha1 + i)) UnityEngine.SceneManagement.SceneManager.LoadScene(i);
}
if(Input.GetKeyDown(KeyCode.F1))
{
HelpVisible = !HelpVisible;
}
}
}
| 28.243243 | 144 | 0.623923 | [
"MIT"
] | cwang25/SmashChess | SmashChess/Assets/Ultimate Game Tools/Fracturing/Sample Scene Data/Scripts/LogicGlobalFracturing.cs | 1,045 | C# |
using System.Collections.Generic;
using System.Linq;
using ModelBazy;
using UI.Interfaces;
namespace UI
{
public class PunktyObslugiService :IService
{
public List<PunktyObslugi> PunktyObslugi { get; set; }
private WypozyczalniaEntities context;
public PunktyObslugiService()
{
context = new WypozyczalniaEntities();
PunktyObslugi = context.PunktyObslugi.ToList();
}
public void AddEntity<T>(T entity)
{
context.PunktyObslugi.Add(entity as PunktyObslugi);
context.SaveChanges();
}
public int GetMax()
{
throw new System.NotImplementedException();
}
public void Dispose()
{
context?.Dispose();
}
}
} | 21.675676 | 63 | 0.586035 | [
"MIT"
] | amitrega01/WypozyczalniaElektronarzedzi | UI/PunktyObslugiService.cs | 804 | C# |
using UnityEngine;
using System;
using System.Collections;
public class ForestSlot : MonoBehaviour {
#region STATIC_ENUM_CONSTANTS
[Serializable]
public class ForestPrefab{
public GameObject[] treePrefabs;
public GameObject[] particlePrefabs;
public int totalTrees;
public int totalParticles;
}
#endregion
#region FIELDS
[SerializeField]
public ForestPrefab forestPrefab;
private GameObject instanceEnemy = null;
private bool activate = false;
private int cellX = -1;
private int cellZ = -1;
private int sizeSlot;
private GameObject[] treeDecorations;
private bool initWithCharacter = false;
#endregion
#region ACCESSORS
public bool HasEnemy{
get { return (instanceEnemy != null); }
}
public bool InitWithCharacter{
get { return initWithCharacter; }
}
public bool IsActivated{
get{ return activate; }
}
#endregion
#region METHODS_UNITY
#endregion
#region METHODS_CUSTOM
public void SetCharacter(){
initWithCharacter = true;
activate = true;
}
public void SetEnemy(GameObject instance){
instanceEnemy = instance;
instanceEnemy.transform.position = this.transform.position;
activate = true;
}
public void Init(int x, int z, int sizeSlot){
SetIndexPosition (x, z);
this.sizeSlot = sizeSlot;
treeDecorations = new GameObject[0];
}
public int DistanceOf(int newCellX, int newCellZ){
int distanceX = Mathf.Abs(cellX - newCellX);
int distanceY = Mathf.Abs(cellZ - newCellZ);
int distance = Mathf.Max (distanceX, distanceY);
//Debug.Log ("Distance to " + this.name + ": " + distance);
return distance;
}
public void On(){
if (!activate) {
if (treeDecorations.Length == 0) {
CreateRandomTrees ();
} else {
for(int i=0; i<treeDecorations.Length; i++){
treeDecorations[i].SetActive(true);
}
}
activate = true;
}
}
public void Off(){
if (activate) {
for(int i=0; i<treeDecorations.Length; i++){
treeDecorations[i].SetActive(false);
}
activate = false;
}
}
private void CreateRandomTrees(){
treeDecorations = new GameObject[forestPrefab.totalTrees];
for(int i=0; i<forestPrefab.totalTrees; i++){
GameObject prefabSelected = forestPrefab.treePrefabs[UnityEngine.Random.Range(0, forestPrefab.treePrefabs.Length)];
GameObject treeGO = (GameObject)Instantiate(
prefabSelected,
new Vector3(this.transform.position.x + UnityEngine.Random.Range((float)(-sizeSlot/2f), (float)(sizeSlot/2f)), UnityEngine.Random.Range(-0.2f, -1.5f), this.transform.position.z + UnityEngine.Random.Range((float)(-sizeSlot/2f), (float)(sizeSlot/2f))),
Quaternion.identity);
treeGO.transform.parent = this.transform;
treeDecorations[i] = treeGO;
}
//Debug.Log ("Identity: " + Quaternion.identity);
}
private void SetIndexPosition(int x, int z){
this.name = "ForestSlot[" + x + "," + z + "]";
cellX = x;
cellZ = z;
}
#endregion
#region METHODS_EVENT
#endregion
}
| 23.125 | 254 | 0.695946 | [
"MIT"
] | chrislugram/HuntRebels | Assets/Scripts/Terrain/ForestSlot.cs | 2,962 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YouTubeVlogger
{
// To save some bandwidth, we can cache request results and keep
// them for some time. But it may be impossible to put such code
// directly into the service class. For example, it could have
// been provided as part of a third party library and/or defined
// as `final`. That's why we put the caching code into a new
// proxy class which implements the same interface as the
// service class. It delegates to the service object only when
// the real requests have to be sent.
public class CachedYouTubeClass : IThirdPartyYouTubeLib
{
private IThirdPartyYouTubeLib _service;
private IEnumerable<object> _cachedVideos;
private object _cachedVideoInfo;
private bool _needRequest;
public CachedYouTubeClass(IThirdPartyYouTubeLib service)
{
_service = service;
}
public object DownloadVideo(Guid id)
{
if (DownloadExist(id) || _needRequest)
{
_service.DownloadVideo(id);
}
return _cachedVideos.Any();
}
public object GetVideoInfo(Guid id)
{
if (_cachedVideoInfo == null || _needRequest)
{
_cachedVideoInfo = _service.GetVideoInfo(id);
}
return _cachedVideoInfo;
}
public IEnumerable<object> GetVideos()
{
if (_cachedVideos == null || _needRequest)
{
_cachedVideos = _service.GetVideos();
}
return _cachedVideos;
}
private bool DownloadExist(Guid id)
{
if (_cachedVideos != null)
{
return _cachedVideos.Contains(id);
}
return false;
}
}
}
| 29.969231 | 68 | 0.590349 | [
"MIT"
] | BaiGanio/Design-Patterns | project/src/Structural/Proxy/Intermediate/YouTubeVlogger/Proxy/CachedYouTubeClass.cs | 1,950 | C# |
// This file is part of the SimWinGamePad project, which is released under MIT License.
// For details, see: https://github.com/DavidRieman/SimWinInput
namespace SimWinInput
{
using System;
using System.Collections.Generic;
[Flags]
public enum GamePadControl : Int32
{
None = 0,
// This block of controls should map up with ScpBus expectations.
DPadUp = 1 << 0,
DPadDown = 1 << 1,
DPadLeft = 1 << 2,
DPadRight = 1 << 3,
Start = 1 << 4,
Back = 1 << 5,
LeftStickClick = 1 << 6,
RightStickClick = 1 << 7,
LeftShoulder = 1 << 8,
RightShoulder = 1 << 9,
Guide = 1 << 10,
A = 1 << 12,
B = 1 << 13,
X = 1 << 14,
Y = 1 << 15,
// The remaining flags are not associated with ScpBus, but can be used for other purposes.
LeftTrigger = 1 << 16,
RightTrigger = 1 << 17,
LeftStickLeft = 1 << 18,
LeftStickRight = 1 << 19,
LeftStickUp = 1 << 20,
LeftStickDown = 1 << 21,
RightStickLeft = 1 << 22,
RightStickRight = 1 << 23,
RightStickUp = 1 << 24,
RightStickDown = 1 << 25,
LeftStickAsAnalog = 1 << 28,
RightStickAsAnalog = 1 << 29,
DPadAsAnalog = 1 << 30,
}
/// <summary>GamePadControls provides static helpers for handling GamePadControl information.</summary>
public static class GamePadControls
{
/// <summary>Provides the set of GamePadControl entries which directly represent binary buttons which should have just on/off states.</summary>
public static readonly GamePadControl[] BinaryControls = {
GamePadControl.DPadUp, GamePadControl.DPadDown, GamePadControl.DPadLeft, GamePadControl.DPadRight,
GamePadControl.Start, GamePadControl.Back,
GamePadControl.LeftStickClick, GamePadControl.RightStickClick,
GamePadControl.LeftShoulder, GamePadControl.RightShoulder,
GamePadControl.Guide, GamePadControl.A, GamePadControl.B, GamePadControl.X, GamePadControl.Y
};
}
}
| 35.5 | 151 | 0.604695 | [
"MIT"
] | DavidRieman/SimWinInput | SimWinGamePad/GamePadControl.cs | 2,132 | C# |
using Steeltoe.Management.Census.Stats.Measures;
using System;
using System.Collections.Generic;
using System.Text;
namespace Steeltoe.Management.Census.Stats
{
public interface IMeasure
{
M Match<M>(
Func<IMeasureDouble, M> p0,
Func<IMeasureLong, M> p1,
Func<IMeasure, M> defaultFunction);
string Name { get; }
string Description { get; }
string Unit { get; }
}
}
| 22.4 | 49 | 0.622768 | [
"Apache-2.0"
] | SergeyKanzhelev/opencensus-csharp | src/Steeltoe.Management.OpenCensus/Api/Stats/IMeasure.cs | 450 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextInput : MonoBehaviour
{
public InputField inputField;
GameController controller;
private void Awake()
{
controller = GetComponent<GameController>();
inputField.onEndEdit.AddListener(AcceptStringInput);
}
void AcceptStringInput(string userInput)
{
userInput = userInput.ToLower();
controller.LogStringWithReturn(userInput);
char[] delimiterCharacters = { ' ' }; //storing space
string[] separatedInputWords = userInput.Split(delimiterCharacters);
for (int i = 0; i < controller.inputActions.Length; i++)
{
InputAction inputAction = controller.inputActions[i];
if (inputAction.keyWord == separatedInputWords[0])
{
inputAction.RespondToInput(controller, separatedInputWords);
}
}
InputComplete();
}
void InputComplete()
{
controller.DisplayLoggedText();
inputField.ActivateInputField();
inputField.text = null;
}
}
| 20.75 | 76 | 0.635972 | [
"MIT"
] | Spid3r0/2D-Text-Adventure-Game | Text-Adventure-Game/Assets/Scripts/TextInput.cs | 1,164 | C# |
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace RajUniEFCoreRP.Migrations
{
public partial class RowVersion : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Grade",
table: "Enrollment",
nullable: true,
oldClrType: typeof(int));
migrationBuilder.AddColumn<byte[]>(
name: "RowVersion",
table: "Department",
rowVersion: true,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RowVersion",
table: "Department");
migrationBuilder.AlterColumn<int>(
name: "Grade",
table: "Enrollment",
nullable: false,
oldClrType: typeof(int),
oldNullable: true);
}
}
}
| 28.052632 | 71 | 0.526266 | [
"MIT"
] | aranab/RajUniEFCoreRP | RajUniEFCoreRP/Migrations/20200314002721_RowVersion.cs | 1,068 | C# |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* This Source Code Form is "Incompatible With Secondary Licenses", as
* defined by the Mozilla Public License, v. 2.0.
*/
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.IO;
using System.Linq;
using LibGit2Sharp;
using LibGit2Sharp.Handlers;
using Viu;
using Viu.Table;
namespace SCFE
{
public class GitExtension : FileColorScheme, IScfeExtension, IDisposable
{
/// <summary>
/// List of FileStatuses that correspond to a change in the working directory (i.e. some changes are present in
/// the working directory, but are not registered in the index nor in the HEAD)
/// </summary>
private static readonly ImmutableList<FileStatus> WorkDirChangeStatuses = new[]
{
FileStatus.NewInWorkdir,
FileStatus.RenamedInWorkdir,
FileStatus.ModifiedInWorkdir,
FileStatus.DeletedFromWorkdir,
FileStatus.TypeChangeInWorkdir
}.ToImmutableList();
/// <summary>
/// List of FileStatuses that correspond to a change in the index (i.e. some changes are present in the working
/// directory and in the index, but not in the HEAD)
/// </summary>
private static readonly ImmutableList<FileStatus> IndexChangeStatuses = new[]
{
FileStatus.NewInIndex,
FileStatus.RenamedInIndex,
FileStatus.ModifiedInIndex,
FileStatus.DeletedFromIndex,
FileStatus.TypeChangeInIndex
}.ToImmutableList();
private readonly ScfeApp _app;
private readonly Dictionary<string, DirectoryStatus> _cachedDirStatus =
new Dictionary<string, DirectoryStatus>();
private readonly Dictionary<string, bool> _cachedIgnoredStatus = new Dictionary<string, bool>();
private Repository _cachedRepo;
private string _cachedRepoPath;
private RepositoryStatus _repoStatus;
public GitExtension(ScfeApp app)
{
_app = app;
_app.OnPreRefresh += (sender, args) => RefreshRepository(null);
_app.OnFileChanged += (sender, args) =>
{
if (!args.Files.Any(f => f.Exists()))
return;
RefreshRepository(null);
RefreshRepository(_app.CurrentDir);
};
}
public IEnumerable<ColumnType<File>> GetColumns()
{
return new List<ColumnType<File>>
{
new MultistateColumnType<File>(new[] {"git"}, file =>
{
if (file == null)
return new[] {""};
var relPath = GetPathRelativeToRepo(file);
var status = CachedFileStatus(relPath);
if (status == 0 && file.IsFolder())
{
if (!_cachedDirStatus.ContainsKey(relPath)) ComputeStatusAndCache(file, relPath);
var st = _cachedDirStatus[relPath];
if (st != DirectoryStatus.Unchanged)
return DirStatusToString(st);
}
var txt = StatusToString(status).ToArray();
return _cachedRepo == null ? new[] {"N/A"} : txt;
}, data =>
{
RefreshRepository(_app.CurrentDir);
return _cachedRepo != null;
}, GetColorForFile)
};
}
public Dictionary<string, Action<object, ActionEventArgs>> GetActions()
{
return new Dictionary<string, Action<object, ActionEventArgs>>
{
{
ScfeActions.GitStage, (o, args) =>
{
RefreshRepository(_app.CurrentDir);
if (_cachedRepo == null)
{
_app.ShowHelpMessage("[git] Not in a Git repository", args.Graphics, ConsoleColor.Red);
return;
}
var toAdd = _app.SelectedElements.Count > 0
? _app.SelectedElements
: new List<File> {_app.FocusedElement}.ToImmutableList();
Commands.Stage(_cachedRepo, toAdd.Select(GetPathRelativeToRepo));
RefreshRepository(null);
RefreshRepository(_app.CurrentDir);
_app.RefreshTableComponent(args.Graphics);
_app.ShowHelpMessage("[git] " + (toAdd.Count > 1
? toAdd.Count + " files staged"
: toAdd[0].GetFileName() + " staged"), args.Graphics,
ConsoleColor.Green);
}
},
{
ScfeActions.GitUnstage, (o, args) =>
{
RefreshRepository(_app.CurrentDir);
if (_cachedRepo == null)
{
_app.ShowHelpMessage("[git] Not in a Git repository", args.Graphics, ConsoleColor.Red);
return;
}
var toAdd = _app.SelectedElements.Count > 0
? _app.SelectedElements
: new List<File> {_app.FocusedElement}.ToImmutableList();
Commands.Unstage(_cachedRepo, toAdd.Select(GetPathRelativeToRepo));
RefreshRepository(null);
RefreshRepository(_app.CurrentDir);
_app.RefreshTableComponent(args.Graphics);
_app.ShowHelpMessage("[git] " + (toAdd.Count > 1
? toAdd.Count + " files unstaged"
: toAdd[0].GetFileName() + " unstaged"), args.Graphics,
ConsoleColor.Green);
}
},
{
ScfeActions.GitInit,
(o, args) =>
{
RefreshRepository(_app.CurrentDir);
if (_cachedRepo != null)
{
_app.ShowHelpMessage("[git] Repository already exists in this folder (or a parent)",
args.Graphics, ConsoleColor.Red);
return;
}
Repository.Init(_app.CurrentDir.FullPath, false);
RefreshRepository(null);
RefreshRepository(_app.CurrentDir);
_app.RefreshTableComponent(args.Graphics);
_app.ShowHelpMessage("[git] Repository initialized successfully", args.Graphics,
ConsoleColor.Green);
}
},
{
ScfeActions.GitCommit,
(o, args) =>
{
RefreshRepository(_app.CurrentDir);
if (_cachedRepo == null)
{
_app.ShowHelpMessage("[git] Not in a git repository", args.Graphics, ConsoleColor.Red);
return;
}
_app.Request("[git] Please choose a commit message (Enter to confirm, Esc to cancel)",
args.Graphics, (s, context, finishFunc) =>
{
finishFunc();
RefreshRepository(_app.CurrentDir);
if (_cachedRepo == null)
{
_app.ShowHelpMessage("[git] Not in a git repository", args.Graphics,
ConsoleColor.Red);
return;
}
Signature sign = _cachedRepo.Config.BuildSignature(DateTimeOffset.Now);
_cachedRepo.Commit(s, sign, sign);
_app.ShowHelpMessage("[git] Changes committed successfully", args.Graphics,
ConsoleColor.Green);
RefreshRepository(null);
RefreshRepository(_app.CurrentDir);
_app.RefreshTableComponent(args.Graphics);
}
);
}
},
{
ScfeActions.GitPush, (o, args) =>
{
_app.AddTask(tk =>
{
_app.ShowHelpMessageLater("[git] Pushing...");
bool forceFail = false;
var opt = new PushOptions
{
CredentialsProvider = (url, fromUrl, types) =>
{
if (types.HasFlag(SupportedCredentialTypes.UsernamePassword))
{
string uname = _app.RequestSync("[git] (Push) Username?");
if (uname == null)
{
forceFail = true;
return null;
}
string pw = _app.RequestSync("[git] (Push) Password?", true);
if (pw == null)
{
forceFail = true;
return null;
}
return new UsernamePasswordCredentials {Username = uname, Password = pw};
}
return new DefaultCredentials();
},
OnPushTransferProgress = (current, total, bytes) =>
{
_app.ShowHelpMessageLater("[git] Push progress: " + current + "/" + total);
return !forceFail;
},
OnNegotiationCompletedBeforePush = updates => true,
OnPackBuilderProgress = (stage, current, total) =>
{
_app.ShowHelpMessageLater(
"[git] Preparing push: " +
(stage == PackBuilderStage.Deltafying ? "deltafying" : "counting") + " " +
current + "/" + total);
return !forceFail;
},
OnPushStatusError = errors =>
{
_app.ShowHelpMessageLater(
"[git] Error: " + errors.Reference + " " + errors.Message,
ConsoleColor.Red);
}
};
try
{
_cachedRepo.Network.Push(_cachedRepo.Head, opt);
return new TaskResult(true, "[git] Push finished successfully");
}
catch (Exception e)
{
if (forceFail)
return new TaskResult(false, "[git] Push aborted");
return new TaskResult(false, "[git] Error: " + e.Message);
}
});
}
},
{
ScfeActions.GitPull, (o, args) =>
{
_app.AddTask(tk =>
{
_app.ShowHelpMessageLater("[git] Pulling...");
bool forceFail = false;
var opt = new PullOptions
{
FetchOptions = new FetchOptions
{
CertificateCheck = (certificate, valid, host) => true, // dangerous
CredentialsProvider = (url, fromUrl, types) =>
{
if (types.HasFlag(SupportedCredentialTypes.UsernamePassword))
{
string uname = _app.RequestSync("[git] (Pull) Username?");
if (uname == null)
{
forceFail = true;
return null;
}
string pw = _app.RequestSync("[git] (Pull) Password?", true);
if (pw == null)
{
forceFail = true;
return null;
}
return new UsernamePasswordCredentials {Username = uname, Password = pw};
}
return new DefaultCredentials();
},
OnTransferProgress = progress =>
{
_app.ShowHelpMessageLater(
$"[git] Transfer status (objects): {progress.ReceivedObjects} received, {progress.IndexedObjects} indexed, {progress.TotalObjects} total");
return !forceFail;
},
OnUpdateTips = (name, id, newId) =>
{
_app.ShowHelpMessageLater(
$"[git] Reference {name} updated, {id.Sha} -> {newId.Sha}");
return !forceFail;
}
},
MergeOptions = new MergeOptions
{
FailOnConflict = true,
CommitOnSuccess = true,
OnCheckoutProgress = (path, steps, totalSteps) =>
{
_app.ShowHelpMessageLater($"[git] Merging: {steps}/{totalSteps} steps");
}
}
};
try
{
Signature sign = _cachedRepo.Config.BuildSignature(DateTimeOffset.Now);
Commands.Pull(_cachedRepo, sign, opt);
RefreshRepository(null);
RefreshRepository(_app.CurrentDir);
_app.DoGraphicsAndWait(g => _app.RefreshTableComponent(g));
return new TaskResult(true, "[git] Pull finished successfully");
}
catch (Exception e)
{
if (forceFail)
return new TaskResult(false, "[git] Pull aborted");
return new TaskResult(false, "[git] Error: " + e.Message);
}
});
}
},
{
ScfeActions.GitClone,
(o, args) =>
{
_app.AddTask(tk =>
{
RefreshRepository(_app.CurrentDir);
if (_cachedRepo != null)
{
return new TaskResult(false,
"[git] Cannot clone a git repository while in a git repository");
}
string cloneUri = _app.RequestSync("[git] (Clone) Clone URL?");
if (cloneUri == null)
return new TaskResult(false, "[git] Clone aborted");
string cloneInFolder =
_app.RequestSync(
"[git] (Clone) Directory name for cloned repository? (Leave empty for clone in current dir)");
if (cloneInFolder == null)
return new TaskResult(false, "[git] Clone aborted");
File cloneIn;
if (string.IsNullOrWhiteSpace(cloneInFolder))
{
cloneIn = _app.CurrentDir;
}
else
{
cloneIn = _app.CurrentDir.GetChild(cloneInFolder);
if (!cloneIn.Exists())
cloneIn.CreateDirectory(true);
}
bool forceFail = false;
Stopwatch timeSinceLastMsg = Stopwatch.StartNew();
var opt = new CloneOptions
{
Checkout = true,
IsBare = false,
RecurseSubmodules = true,
OnProgress = output =>
{
var outVal = output.Replace("\n", "").Split('\r');
_app.ShowHelpMessageLater(
"[git] Clone progress: " +
outVal[outVal.Length > 3 ? outVal.Length - 2 : outVal.Length - 1]);
return !forceFail;
},
OnUpdateTips = (reference, oldId, newId) =>
{
_app.ShowHelpMessageLater(
$"[git] Clone reference {reference} updated: {oldId} -> {newId}");
return !forceFail;
},
OnCheckoutProgress = (s, steps, totalSteps) =>
{
_app.ShowHelpMessageLater(
$"[git] Checkout progress: {steps}/{totalSteps} steps");
},
OnTransferProgress = progress =>
{
if (progress.ReceivedObjects % 10 == 1 || timeSinceLastMsg.ElapsedMilliseconds > 30)
{
_app.ShowHelpMessageLater(
$"[git] Transfer progress: {progress.ReceivedObjects} received, {progress.IndexedObjects} indexed, {progress.TotalObjects} total");
timeSinceLastMsg.Restart();
}
return !forceFail;
},
CertificateCheck = (certificate, valid, host) => true, // This is dangerous
CredentialsProvider = (url, fromUrl, types) =>
{
if (types.HasFlag(SupportedCredentialTypes.UsernamePassword))
{
string uname = _app.RequestSync("[git] (Clone) Username?");
if (uname == null)
{
forceFail = true;
return null;
}
string pw = _app.RequestSync("[git] (Clone) Password?", true);
if (pw == null)
{
forceFail = true;
return null;
}
return new UsernamePasswordCredentials {Username = uname, Password = pw};
}
return new DefaultCredentials();
}
};
try
{
_app.ShowHelpMessageLater("[git] Cloning...");
var path = Repository.Clone(cloneUri, cloneIn.FullPath, opt);
if (path != null)
{
tk.AddCallback((tk1, tr) =>
_app.DoGraphicsLater(g =>
{
var fpath = new File(path.TrimEnd(Path.DirectorySeparatorChar));
if (fpath.GetFileName() == ".git")
fpath = fpath.GetParent();
_app.SwitchToFolder(fpath);
_app.RefreshTableComponent(g);
}));
return new TaskResult(true, "[git] Repo cloned and opened successfully.");
}
return new TaskResult(true, "[git] Repo cloned successfully");
}
catch (Exception e)
{
return new TaskResult(false,
forceFail ? "[git] Clone aborted" : "[git] Clone error: " + e.Message);
}
});
}
}
};
}
public IEnumerable<FileOption> GetCurrDirOptions()
{
return new[]
{
new FileOption
{
Title = "(git) Initialize a repository here",
ActionName = ScfeActions.GitInit,
CanActionBeApplied = (list, o) =>
!IsGitRepository(new[] {_app.CurrentDir}.ToImmutableList(), null)
},
new FileOption
{
Title = "(git) Create a commit",
ActionName = ScfeActions.GitCommit,
CanActionBeApplied = (list, o) => IsGitRepository(new[] {_app.CurrentDir}.ToImmutableList(), null)
},
new FileOption
{
Title = "(git) Push to origin",
ActionName = ScfeActions.GitPush,
CanActionBeApplied = (list, o) => IsGitRepository(new[] {_app.CurrentDir}.ToImmutableList(), null)
},
new FileOption
{
Title = "(git) Pull from origin",
ActionName = ScfeActions.GitPull,
CanActionBeApplied = (list, o) => IsGitRepository(new[] {_app.CurrentDir}.ToImmutableList(), null)
},
new FileOption
{
Title = "(git) Clone repository here",
ActionName = ScfeActions.GitClone,
CanActionBeApplied = (list, o) => !IsGitRepository(new[] {_app.CurrentDir}.ToImmutableList(), null)
}
};
}
public IEnumerable<FileOption> GetFilesOptions()
{
return new[]
{
new FileOption
{
Title = "Stage file (if possible)",
ActionName = ScfeActions.GitStage,
CanActionBeApplied = IsGitRepository
},
new FileOption
{
Title = "Unstage file (if possible)",
ActionName = ScfeActions.GitUnstage,
CanActionBeApplied = IsGitRepository
}
};
}
private bool IsGitRepository(ImmutableList<File> files, object arg2)
{
return files.Select(file => file.IsFolder() ? file : file.GetParent()).Distinct()
.All(folder => Repository.Discover(folder.FullPath) != null);
}
private IEnumerable<string> DirStatusToString(DirectoryStatus status)
{
switch (status)
{
case DirectoryStatus.Ignored:
return new[] {"x", "ignored"};
case DirectoryStatus.Unchanged:
return new[] {"=", "no changes"};
case DirectoryStatus.ChangedInWorkDir:
return new[] {"*", "modified"};
case DirectoryStatus.ChangedInIndex:
return new[] {"+", "staged"};
default:
throw new ArgumentOutOfRangeException(nameof(status), status, null);
}
}
private ConsoleColor? DirStatusToColor(DirectoryStatus status)
{
switch (status)
{
case DirectoryStatus.Ignored:
return ConsoleColor.DarkGray;
case DirectoryStatus.Unchanged:
return null;
case DirectoryStatus.ChangedInWorkDir:
return ConsoleColor.DarkYellow;
case DirectoryStatus.ChangedInIndex:
return ConsoleColor.Green;
default:
throw new ArgumentOutOfRangeException(nameof(status), status, null);
}
}
private void ComputeStatusAndCache(File file, string relPath)
{
var allFiles = file.GetAllChildren();
foreach (var f in allFiles)
{
var stat = CachedFileStatus(f);
if (WorkDirChangeStatuses.Any(x => (x & stat) == x))
{
_cachedDirStatus.Add(relPath, DirectoryStatus.ChangedInWorkDir);
return;
}
if (IndexChangeStatuses.Any(x => (x & stat) == x))
{
_cachedDirStatus.Add(relPath, DirectoryStatus.ChangedInIndex);
return;
}
}
_cachedDirStatus.Add(relPath, DirectoryStatus.Unchanged);
}
private FileStatus CachedFileStatus(File file)
{
return CachedFileStatus(GetPathRelativeToRepo(file));
}
private IEnumerable<string> StatusToString(FileStatus retrieveStatus)
{
if (Corresponds(retrieveStatus, FileStatus.Nonexistent))
return new[]
{
"n", "not found"
};
if (Corresponds(retrieveStatus, FileStatus.NewInWorkdir))
return new[]
{
"+?", "new"
};
if (Corresponds(retrieveStatus, FileStatus.ModifiedInWorkdir))
return new[]
{
"*?", "modified"
};
if (Corresponds(retrieveStatus, FileStatus.DeletedFromWorkdir))
return new[]
{
"-?", "removed"
};
if (Corresponds(retrieveStatus, FileStatus.TypeChangeInWorkdir))
return new[]
{
"~?", "type change"
};
if (Corresponds(retrieveStatus, FileStatus.RenamedInWorkdir))
return new[]
{
"r?", "renamed"
};
if (Corresponds(retrieveStatus, FileStatus.NewInIndex))
return new[]
{
"++", "new added"
};
if (Corresponds(retrieveStatus, FileStatus.ModifiedInIndex))
return new[]
{
"*+", "mod added"
};
if (Corresponds(retrieveStatus, FileStatus.DeletedFromIndex))
return new[]
{
"-+", "rm added"
};
if (Corresponds(retrieveStatus, FileStatus.RenamedInIndex))
return new[]
{
"r+", "mv added"
};
if (Corresponds(retrieveStatus, FileStatus.TypeChangeInIndex))
return new[]
{
"~+", "typch added"
};
if (Corresponds(retrieveStatus, FileStatus.Unreadable))
return new[]
{
"N/A", "unreadable"
};
if (Corresponds(retrieveStatus, FileStatus.Ignored))
return new[]
{
"x", "ignored"
};
if (Corresponds(retrieveStatus, FileStatus.Conflicted))
return new[]
{
"!", "conflict"
};
if (Corresponds(retrieveStatus, FileStatus.Unaltered))
return new[]
{
"=", "no changes"
};
return new[]
{
"???"
};
}
private bool Corresponds(FileStatus retrieveStatus, FileStatus toCheckAgainst)
{
return (retrieveStatus & toCheckAgainst) == toCheckAgainst;
}
private void RefreshRepository(File folder)
{
if (folder == null)
{
_cachedRepo?.Dispose();
_cachedRepo = null;
_cachedRepoPath = null;
_repoStatus = null;
_cachedDirStatus.Clear();
_cachedIgnoredStatus.Clear();
return;
}
var probeResult = Repository.Discover(folder.FullPath);
if (probeResult != _cachedRepoPath)
{
RefreshRepository(null); // Reset the caches
_cachedRepo = probeResult != null ? new Repository(probeResult) : null;
_cachedRepoPath = probeResult;
_repoStatus = _cachedRepo?.RetrieveStatus();
}
}
public override ConsoleColor? GetColorForFile(File file)
{
if (_cachedRepo == null)
return new DiscriminateDirectoriesAndHiddenScheme().GetColorForFile(file);
if (file == null)
return null;
var relPath = GetPathRelativeToRepo(file);
var status = CachedFileStatus(relPath);
if (status == 0 && file.IsFolder())
{
if (!_cachedDirStatus.ContainsKey(relPath)) ComputeStatusAndCache(file, relPath);
var st = _cachedDirStatus[relPath];
if (st != DirectoryStatus.Unchanged)
return DirStatusToColor(st);
return ConsoleColor.Cyan;
}
return StatusToColor(status);
}
private FileStatus CachedFileStatus(string relPath)
{
// Get the statuses that correspond to our file
var en = _repoStatus.Where(se => se.FilePath == relPath);
// And combine all of the known states into one using the OR bit-wise operator since the states
// are just bit masks
var result = en.Aggregate(FileStatus.Unaltered, (status, entry) => status | entry.State);
if (!_cachedIgnoredStatus.ContainsKey(relPath))
_cachedIgnoredStatus.Add(relPath, _cachedRepo.Ignore.IsPathIgnored(relPath));
if (_cachedIgnoredStatus[relPath])
result |= FileStatus.Ignored;
return result;
}
private ConsoleColor? StatusToColor(FileStatus retrieveStatus)
{
if (Corresponds(retrieveStatus, FileStatus.NewInWorkdir))
return ConsoleColor.DarkYellow;
if (Corresponds(retrieveStatus, FileStatus.ModifiedInWorkdir))
return ConsoleColor.DarkYellow;
if (Corresponds(retrieveStatus, FileStatus.DeletedFromWorkdir))
return ConsoleColor.DarkYellow;
if (Corresponds(retrieveStatus, FileStatus.TypeChangeInWorkdir))
return ConsoleColor.DarkYellow;
if (Corresponds(retrieveStatus, FileStatus.RenamedInWorkdir))
return ConsoleColor.DarkYellow;
if (Corresponds(retrieveStatus, FileStatus.NewInIndex))
return ConsoleColor.Green;
if (Corresponds(retrieveStatus, FileStatus.ModifiedInIndex))
return ConsoleColor.Green;
if (Corresponds(retrieveStatus, FileStatus.DeletedFromIndex))
return ConsoleColor.Green;
if (Corresponds(retrieveStatus, FileStatus.RenamedInIndex))
return ConsoleColor.Green;
if (Corresponds(retrieveStatus, FileStatus.TypeChangeInIndex))
return ConsoleColor.Green;
if (Corresponds(retrieveStatus, FileStatus.Unreadable))
return ConsoleColor.DarkRed;
if (Corresponds(retrieveStatus, FileStatus.Ignored))
return ConsoleColor.DarkGray;
if (Corresponds(retrieveStatus, FileStatus.Conflicted))
return ConsoleColor.Red;
return null;
}
private string GetPathRelativeToRepo(File f)
{
if (_cachedRepo == null)
return null;
// We *need* a file representation WITHOUT a / (or backslash) at the end
var repoFile = new File(_cachedRepoPath.EndsWith(Path.DirectorySeparatorChar)
? _cachedRepoPath.Substring(0, _cachedRepoPath.Length - 1)
: _cachedRepoPath);
if (repoFile.GetFileName() == ".git")
repoFile = repoFile.GetParent();
var relPath = f.GetRelativePath(repoFile).Replace(Path.DirectorySeparatorChar, '/');
if (f.IsFolder() && !relPath.EndsWith("/"))
relPath += "/";
return relPath;
}
private enum DirectoryStatus
{
Ignored = -1,
Unchanged = 0,
ChangedInWorkDir = 1,
ChangedInIndex = 1 << 1
}
~GitExtension()
{
Dispose(false);
}
private void Dispose(bool disposing)
{
if (disposing)
{
_cachedRepo?.Dispose();
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
}
}
| 43.935561 | 183 | 0.413276 | [
"MPL-2.0",
"MPL-2.0-no-copyleft-exception"
] | utybo/scfe | SCFE/SCFE/GitExtension.cs | 36,818 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace WayneKing.Practice.Trees
{
public class TrieTree : WayneKing.Practice.Abstractions.IWordDictionary
{
internal class Node : IComparable<Node>
{
public char Letter { get; private set; }
public bool IsEndOfWord { get; set; }
public NodesList Children { get; private set; }
public Node(char letter)
{
this.Letter = letter;
this.Children = new NodesList();
}
public int CompareTo(Node node)
{
return node == null ? int.MinValue : this.Letter.CompareTo(node.Letter);
}
public Node GetOrCreateDescendant(char letter)
{
return this.Children.GetOrCreateNode(letter);
}
public Node GetDescendant(char letter)
{
return this.Children.GetNode(letter);
}
public void Optimize()
{
this.Children.Optimize();
}
}
internal class NodesList : IEnumerable<Node>
{
private readonly List<Node> nodes;
public NodesList()
{
nodes = new List<Node>();
}
public int Count
{
get { return nodes.Count; }
}
public Node GetOrCreateNode(char ch)
{
// this method is part of the "generate" algorithm, and thus
// this list is still unoptimized/unsorted --> just a linear
// search, and add new letters to end only
Node node = nodes.Find(n => n.Letter == ch);
if (node == null)
{
node = new Node(ch);
nodes.Add(node);
}
return node;
}
public Node GetNode(char ch)
{
return nodes.Find(n => n.Letter == ch);
}
public IEnumerator<Node> GetEnumerator()
{
return nodes.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return nodes.GetEnumerator();
}
public void Optimize()
{
nodes.Sort();
nodes.TrimExcess();
}
}
internal class NodeWalk
{
public Node Node { get; private set; }
public int Depth { get; private set; }
private NodeWalk(Node node, int depth)
{
this.Node = node;
this.Depth = depth;
}
public static void Walk(Node start, Action<NodeWalk> action)
{
if (start == null || action == null)
throw new ArgumentNullException(start == null ? "start" : "action");
var traversal = new Stack<NodeWalk>();
traversal.Push(new NodeWalk(start, 0));
while (traversal.Count > 0)
{
var node = traversal.Pop();
action(node);
int nextDepth = node.Depth + 1;
foreach (Node child in node.Node.Children)
{
traversal.Push(new NodeWalk(child, nextDepth));
}
}
}
}
public class Actuary
{
internal Actuary()
{
}
private int cummulativeChildCount;
private int internalNodeCount;
public float AverageChildCount { get; private set; }
public float AverageWordLength { get; private set; }
public int CummulativeWordLength { get; private set; }
public int MaxWordLength { get; private set; }
public int NodeCount { get; private set; }
public int WordCount { get; private set; }
internal void Track(NodeWalk node)
{
this.NodeCount++;
if (node.Node.IsEndOfWord)
{
this.WordCount++;
this.CummulativeWordLength += node.Depth;
if (node.Depth > this.MaxWordLength)
this.MaxWordLength = node.Depth;
}
int childCount = node.Node.Children.Count;
if (childCount > 0)
{
internalNodeCount++;
cummulativeChildCount += childCount;
}
}
internal void Publish()
{
if (this.WordCount != 0)
this.AverageWordLength = this.CummulativeWordLength / this.WordCount;
if (internalNodeCount != 0)
this.AverageChildCount = cummulativeChildCount / internalNodeCount;
}
}
private readonly Node root;
private Node prior;
public TrieTree()
{
root = new Node('.');
prior = root;
}
public int Count
{
get;
private set;
}
public Actuary Statistics
{
get;
private set;
}
internal bool AddWord(string word)
{
if (word == null)
throw new ArgumentNullException("word");
// CONSIDER: handle bad letters as word is iterated
// in order to avoid scanning it twice; but will need a way
// to rollback partially-added word.
if (word.Length == 0 || Regex.IsMatch(word, @"[^a-zA-Z]"))
return false;
// TODO: convert to lower JIT within the loop
word = word.ToLowerInvariant();
Node current = root;
foreach (char ch in word)
{
current = current.GetOrCreateDescendant(ch);
}
if (!current.IsEndOfWord)
{
current.IsEndOfWord = true;
this.Count++;
}
// note 'true' indicates 'word' is in the dictionary
return true;
}
internal void AddLetter(char letter)
{
if (char.IsLetter(letter))
{
letter = char.ToLowerInvariant(letter);
prior = prior.GetOrCreateDescendant(letter);
}
else
{
MarkWordAndReset();
}
}
private void MarkWordAndReset()
{
if (!object.ReferenceEquals(prior, root))
{
// prior letter was the last letter of a word
// mark it as word, if not already:
if (!prior.IsEndOfWord)
{
prior.IsEndOfWord = true;
this.Count++;
}
// reset to top of tree, ready for first letter of next word
prior = root;
}
}
public bool IsWord(string word)
{
return IsWordCore(word);
}
public bool IsWord(char[] word)
{
return IsWordCore(word);
}
private bool IsWordCore(IEnumerable<char> word)
{
if (word == null)
throw new ArgumentNullException(nameof(word));
Node current = root;
foreach (char ch in word)
{
current = current.GetDescendant(char.ToLowerInvariant(ch));
if (current == null)
return false;
}
return current.IsEndOfWord;
}
internal void Optimize()
{
// insure very last word is recorded
MarkWordAndReset();
prior = null;
ComputeStatistics();
}
private void ComputeStatistics()
{
var actuary = new Actuary();
NodeWalk.Walk(root, node =>
{
node.Node.Optimize();
actuary.Track(node);
});
actuary.Publish();
this.Statistics = actuary;
}
}
} | 28.9375 | 90 | 0.440718 | [
"MIT"
] | Wayne-King/word-transformer | Trees/TrieTree.cs | 8,797 | C# |
using Amazon.JSII.Runtime.Deputy;
#pragma warning disable CS0672,CS0809,CS1591
namespace Amazon.JSII.Tests.CalculatorNamespace
{
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiTypeProxy(nativeType: typeof(IConfusingToJacksonStruct), fullyQualifiedName: "jsii-calc.ConfusingToJacksonStruct")]
internal sealed class ConfusingToJacksonStructProxy : DeputyBase, Amazon.JSII.Tests.CalculatorNamespace.IConfusingToJacksonStruct
{
private ConfusingToJacksonStructProxy(ByRefValue reference): base(reference)
{
}
/// <remarks>
/// <strong>Stability</strong>: Experimental
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "unionProperty", typeJson: "{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"collection\":{\"elementtype\":{\"union\":{\"types\":[{\"fqn\":\"@scope/jsii-calc-lib.IFriendly\"},{\"fqn\":\"jsii-calc.AbstractClass\"}]}},\"kind\":\"array\"}}]}}", isOptional: true)]
public object? UnionProperty
{
get => GetInstanceProperty<object?>();
}
}
}
| 40.571429 | 310 | 0.649648 | [
"Apache-2.0"
] | NGL321/jsii | packages/jsii-pacmak/test/expected.jsii-calc/dotnet/Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/ConfusingToJacksonStructProxy.cs | 1,136 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Microsoft.EntityFrameworkCore.Metadata.Conventions
{
/// <summary>
/// Represents an operation that should be performed when an entity type is added to the model.
/// </summary>
public interface IEntityTypeAddedConvention : IConvention
{
/// <summary>
/// Called after an entity type is added to the model.
/// </summary>
/// <param name="entityTypeBuilder"> The builder for the entity type. </param>
/// <param name="context"> Additional information associated with convention execution. </param>
void ProcessEntityTypeAdded(
IConventionEntityTypeBuilder entityTypeBuilder,
IConventionContext<IConventionEntityTypeBuilder> context);
}
}
| 41.130435 | 104 | 0.698732 | [
"MIT"
] | FelicePollano/efcore | src/EFCore/Metadata/Conventions/IEntityTypeAddedConvention.cs | 946 | C# |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Media;
public partial class AppMain
{
private static byte[][] g_gm_player_motion_right_tbl
{
get
{
if (AppMain._g_gm_player_motion_right_tbl == null)
AppMain._g_gm_player_motion_right_tbl = new byte[7][]
{
AppMain.gm_player_motion_list_son_right,
AppMain.gm_player_motion_list_sson_right,
AppMain.gm_player_motion_list_son_right,
AppMain.gm_player_motion_list_pn_son_right,
AppMain.gm_player_motion_list_pn_sson_right,
AppMain.gm_player_motion_list_tr_son_right,
AppMain.gm_player_motion_list_tr_son_right
};
return AppMain._g_gm_player_motion_right_tbl;
}
}
private static byte[][] g_gm_player_motion_left_tbl
{
get
{
if (AppMain._g_gm_player_motion_left_tbl == null)
AppMain._g_gm_player_motion_left_tbl = new byte[7][]
{
AppMain.gm_player_motion_list_son_left,
AppMain.gm_player_motion_list_sson_left,
AppMain.gm_player_motion_list_son_left,
AppMain.gm_player_motion_list_pn_son_left,
AppMain.gm_player_motion_list_pn_sson_left,
AppMain.gm_player_motion_list_tr_son_left,
AppMain.gm_player_motion_list_tr_son_left
};
return AppMain._g_gm_player_motion_left_tbl;
}
}
private static byte[][] g_gm_player_model_tbl
{
get
{
if (AppMain._g_gm_player_model_tbl == null)
AppMain._g_gm_player_model_tbl = new byte[7][]
{
AppMain.gm_player_model_list_son,
AppMain.gm_player_model_list_son,
AppMain.gm_player_model_list_son,
AppMain.gm_player_model_list_pn_son,
AppMain.gm_player_model_list_pn_son,
AppMain.gm_player_model_list_tr_son,
AppMain.gm_player_model_list_tr_son
};
return AppMain._g_gm_player_model_tbl;
}
}
private static byte[][] g_gm_player_mtn_blend_setting_tbl
{
get
{
if (AppMain._g_gm_player_mtn_blend_setting_tbl == null)
AppMain._g_gm_player_mtn_blend_setting_tbl = new byte[7][]
{
AppMain.gm_player_mtn_blend_setting_son,
AppMain.gm_player_mtn_blend_setting_son,
AppMain.gm_player_mtn_blend_setting_son,
AppMain.gm_player_mtn_blend_setting_pn_son,
AppMain.gm_player_mtn_blend_setting_pn_son,
AppMain.gm_player_mtn_blend_setting_tr_son,
AppMain.gm_player_mtn_blend_setting_tr_son
};
return AppMain._g_gm_player_mtn_blend_setting_tbl;
}
}
public static bool GMM_PLAYER_IS_TOUCH_SUPER_SONIC_REGION(int x, int y)
{
return x > 390 && x < 475 && y > 5 && y < 85;
}
public static void GMD_PLAYER_WATER_SET(ref int fSpd)
{
fSpd >>= 1;
}
public static void GMD_PLAYER_WATERJUMP_SET(ref int fSpd)
{
fSpd = (fSpd >> 1) + (fSpd >> 2);
}
public static int GMD_PLAYER_WATER_GET(int fSpd)
{
return fSpd >> 1;
}
public static int GMD_PLAYER_WATERJUMP_GET(int fSpd)
{
return (fSpd >> 1) + (fSpd >> 2);
}
private static void GmPlayerBuild()
{
AppMain.AMS_AMB_HEADER archive1 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][0].pData);
AppMain.AMS_AMB_HEADER amb_tex1 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][1].pData);
AppMain.g_gm_ply_son_obj_3d_list = AppMain.New<AppMain.OBS_ACTION3D_NN_WORK>(archive1.file_num);
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_son_obj_3d_list);
int index1 = 0;
while (index1 < archive1.file_num)
{
AppMain.ObjAction3dNNModelLoad((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer, (AppMain.OBS_DATA_WORK)null, (string)null, index1, archive1, (string)null, amb_tex1, 0U);
++index1;
++arrayPointer;
}
AppMain.AMS_AMB_HEADER archive2 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][2].pData);
AppMain.AMS_AMB_HEADER amb_tex2 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][3].pData);
AppMain.g_gm_ply_sson_obj_3d_list = AppMain.New<AppMain.OBS_ACTION3D_NN_WORK>(archive2.file_num);
arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_sson_obj_3d_list);
int index2 = 0;
while (index2 < archive2.file_num)
{
AppMain.ObjAction3dNNModelLoad((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer, (AppMain.OBS_DATA_WORK)null, (string)null, index2, archive2, (string)null, amb_tex2, 0U);
++index2;
++arrayPointer;
}
AppMain.gm_ply_obj_3d_list_tbl = new AppMain.OBS_ACTION3D_NN_WORK[7][][]
{
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
},
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
},
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
},
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
},
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
},
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
},
new AppMain.OBS_ACTION3D_NN_WORK[2][]
{
AppMain.g_gm_ply_son_obj_3d_list,
AppMain.g_gm_ply_sson_obj_3d_list
}
};
}
private static void GmPlayerFlush()
{
AppMain.AMS_AMB_HEADER amsAmbHeader1 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][0].pData);
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_son_obj_3d_list);
int num1 = 0;
while (num1 < amsAmbHeader1.file_num)
{
AppMain.ObjAction3dNNModelRelease((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer);
++num1;
++arrayPointer;
}
AppMain.AMS_AMB_HEADER amsAmbHeader2 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][2].pData);
arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_sson_obj_3d_list);
int num2 = 0;
while (num2 < amsAmbHeader2.file_num)
{
AppMain.ObjAction3dNNModelRelease((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer);
++num2;
++arrayPointer;
}
}
private static bool GmPlayerBuildCheck()
{
AppMain.AMS_AMB_HEADER amsAmbHeader1 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][0].pData);
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_son_obj_3d_list);
int num1 = 0;
while (num1 < amsAmbHeader1.file_num)
{
if (!AppMain.ObjAction3dNNModelLoadCheck((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer))
return false;
++num1;
++arrayPointer;
}
AppMain.AMS_AMB_HEADER amsAmbHeader2 = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][2].pData);
arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_sson_obj_3d_list);
int num2 = 0;
while (num2 < amsAmbHeader2.file_num)
{
if (!AppMain.ObjAction3dNNModelLoadCheck((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer))
return false;
++num2;
++arrayPointer;
}
return true;
}
private static bool GmPlayerFlushCheck()
{
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer;
if (AppMain.g_gm_ply_son_obj_3d_list != null)
{
AppMain.AMS_AMB_HEADER amsAmbHeader = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][0].pData);
arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_son_obj_3d_list);
int num = 0;
while (num < amsAmbHeader.file_num)
{
if (!AppMain.ObjAction3dNNModelReleaseCheck((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer))
return false;
++num;
++arrayPointer;
}
AppMain.g_gm_ply_son_obj_3d_list = (AppMain.OBS_ACTION3D_NN_WORK[])null;
}
if (AppMain.g_gm_ply_sson_obj_3d_list != null)
{
AppMain.AMS_AMB_HEADER amsAmbHeader = AppMain.readAMBFile((AppMain.AMS_FS)AppMain.g_gm_player_data_work[0][2].pData);
arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(AppMain.g_gm_ply_sson_obj_3d_list);
int num = 0;
while (num < amsAmbHeader.file_num)
{
if (!AppMain.ObjAction3dNNModelReleaseCheck((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer))
return false;
++num;
++arrayPointer;
}
AppMain.g_gm_ply_sson_obj_3d_list = (AppMain.OBS_ACTION3D_NN_WORK[])null;
}
return true;
}
private static void GmPlayerRelease()
{
for (int index1 = 0; index1 < 1; ++index1)
{
for (int index2 = 0; index2 < 5; ++index2)
AppMain.ObjDataRelease(AppMain.g_gm_player_data_work[index1][index2]);
}
}
private static AppMain.GMS_PLAYER_WORK GmPlayerInit(
int char_id,
ushort ctrl_id,
ushort player_id,
ushort camera_id)
{
ushort[] numArray1 = new ushort[3]
{
(ushort) 0,
(ushort) 6,
(ushort) 1
};
ushort[] numArray2 = new ushort[3]
{
(ushort) 65533,
ushort.MaxValue,
(ushort) 65534
};
if (char_id >= 7)
char_id = 0;
AppMain.OBS_OBJECT_WORK obsObjectWork = AppMain.OBM_OBJECT_TASK_DETAIL_INIT((ushort)4352, (byte)1, (byte)0, (byte)0, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_PLAYER_WORK()), "PLAYER OBJ");
AppMain.mtTaskChangeTcbDestructor(obsObjectWork.tcb, new AppMain.GSF_TASK_PROCEDURE(AppMain.gmPlayerExit));
obsObjectWork.ppUserRelease = new AppMain.OBS_OBJECT_WORK_Delegate4(AppMain.gmPlayerObjRelease);
obsObjectWork.ppUserReleaseWait = new AppMain.OBS_OBJECT_WORK_Delegate4(AppMain.gmPlayerObjReleaseWait);
AppMain.GMS_PLAYER_WORK ply_work = (AppMain.GMS_PLAYER_WORK)obsObjectWork;
ply_work.player_id = (byte)player_id;
ply_work.camera_no = (byte)camera_id;
ply_work.ctrl_id = (byte)ctrl_id;
ply_work.char_id = (byte)char_id;
ply_work.act_state = -1;
ply_work.prev_act_state = -1;
AppMain.nnMakeUnitMatrix(ply_work.ex_obj_mtx_r);
AppMain.GmPlayerInitModel(ply_work);
ply_work.key_map[0] = (ushort)1;
ply_work.key_map[1] = (ushort)2;
ply_work.key_map[2] = (ushort)4;
ply_work.key_map[3] = (ushort)8;
ply_work.key_map[4] = (ushort)32;
ply_work.key_map[5] = (ushort)128;
ply_work.key_map[6] = (ushort)64;
ply_work.key_map[7] = (ushort)16;
obsObjectWork.obj_type = (ushort)1;
obsObjectWork.flag |= 16U;
obsObjectWork.flag |= 1U;
obsObjectWork.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerDispFunc);
obsObjectWork.ppIn = AppMain.GSM_MAIN_STAGE_IS_SPSTAGE() ? new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerSplStgInFunc) : new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerDefaultInFunc);
obsObjectWork.ppLast = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerDefaultLastFunc);
obsObjectWork.ppMove = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.GmPlySeqMoveFunc);
obsObjectWork.disp_flag |= 2048U;
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerStateInit(ply_work);
AppMain.ObjObjectFieldRectSet(obsObjectWork, (short)-6, (short)-12, (short)6, (short)13);
AppMain.ObjObjectGetRectBuf(obsObjectWork, (AppMain.ArrayPointer<AppMain.OBS_RECT_WORK>)ply_work.rect_work, (ushort)3);
for (int index = 0; index < 3; ++index)
{
AppMain.ObjRectGroupSet(ply_work.rect_work[index], (byte)0, (byte)2);
AppMain.ObjRectAtkSet(ply_work.rect_work[index], numArray1[index], (short)1);
AppMain.ObjRectDefSet(ply_work.rect_work[index], numArray2[index], (short)0);
ply_work.rect_work[index].parent_obj = obsObjectWork;
ply_work.rect_work[index].flag &= 4294967291U;
ply_work.rect_work[index].rect.back = (short)-16;
ply_work.rect_work[index].rect.front = (short)16;
}
ply_work.rect_work[0].ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmPlayerDefFunc);
ply_work.rect_work[1].ppHit = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmPlayerAtkFunc);
ply_work.rect_work[0].flag |= 128U;
ply_work.rect_work[1].flag |= 32U;
ply_work.rect_work[2].flag |= 224U;
if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
{
AppMain.ObjObjectFieldRectSet(obsObjectWork, (short)-7, (short)-8, (short)7, (short)10);
AppMain.ObjRectWorkZSet(ply_work.rect_work[2], (short)-11, (short)-11, (short)-500, (short)11, (short)11, (short)500);
AppMain.ObjRectWorkZSet(ply_work.rect_work[0], (short)-12, (short)-12, (short)-500, (short)12, (short)12, (short)500);
AppMain.ObjRectWorkZSet(ply_work.rect_work[1], (short)-13, (short)-13, (short)-500, (short)13, (short)13, (short)500);
}
else
{
AppMain.ObjRectWorkZSet(ply_work.rect_work[2], (short)-8, (short)-19, (short)-500, (short)8, (short)13, (short)500);
AppMain.ObjRectWorkZSet(ply_work.rect_work[0], (short)-8, (short)-19, (short)-500, (short)8, (short)13, (short)500);
AppMain.ObjRectWorkZSet(ply_work.rect_work[1], (short)-16, (short)-19, (short)-500, (short)16, (short)13, (short)500);
}
ply_work.rect_work[1].flag &= 4294967291U;
AppMain.ObjRectWorkZSet(AppMain.gm_ply_touch_rect[0], (short)-16, (short)-51, (short)-500, (short)64, (short)37, (short)500);
AppMain.ObjRectWorkZSet(AppMain.gm_ply_touch_rect[1], (short)-64, (short)-51, (short)-500, (short)-16, (short)37, (short)500);
ply_work.calc_accel.x = 0.0f;
ply_work.calc_accel.y = 0.0f;
ply_work.calc_accel.z = 0.0f;
ply_work.control_type = 2;
ply_work.jump_rect = AppMain.gm_player_push_jump_key_rect[2];
ply_work.ssonic_rect = AppMain.gm_player_push_ssonic_key_rect[2];
if (((int)AppMain.g_gs_main_sys_info.game_flag & 1) != 0)
{
ply_work.control_type = 0;
ply_work.jump_rect = AppMain.gm_player_push_jump_key_rect[0];
ply_work.ssonic_rect = AppMain.gm_player_push_ssonic_key_rect[0];
}
ply_work.accel_counter = 0;
ply_work.dir_vec_add = 0;
ply_work.spin_se_timer = (short)0;
ply_work.spin_back_se_timer = (short)0;
ply_work.safe_timer = 0;
ply_work.safe_jump_timer = 0;
ply_work.safe_spin_timer = 0;
if (ply_work.player_id == (byte)0)
{
AppMain.gm_pos_x = ply_work.obj_work.pos.x >> 12;
AppMain.gm_pos_y = ply_work.obj_work.pos.y >> 12;
AppMain.gm_pos_z = ply_work.obj_work.pos.z >> 12;
}
obsObjectWork.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerMain);
AppMain.GmPlySeqChangeFw(ply_work);
if (!SaveState.resumePlayer_2(ply_work))
{
ply_work.obj_work.pos.x = AppMain.g_gm_main_system.resume_pos_x;
ply_work.obj_work.pos.y = AppMain.g_gm_main_system.resume_pos_y;
}
if (AppMain.g_gs_main_sys_info.stage_id == (ushort)5)
AppMain.GmPlayerSetPinballSonic(ply_work);
else if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
AppMain.GmPlayerSetSplStgSonic(ply_work);
return ply_work;
}
private static void GmPlayerResetInit(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.player_flag &= 4290772991U;
AppMain.g_obj.flag &= 4294966271U;
AppMain.g_obj.scroll[0] = AppMain.g_obj.scroll[1] = 0;
ply_work.player_flag &= 4290766847U;
ply_work.gmk_flag &= 3556759567U;
ply_work.graind_id = (byte)0;
ply_work.graind_prev_ride = (byte)0;
ply_work.gmk_flag &= 4294967291U;
ply_work.spd_pool = (short)0;
ply_work.obj_work.scale.x = ply_work.obj_work.scale.y = ply_work.obj_work.scale.z = 4096;
AppMain.GmPlayerStateInit(ply_work);
AppMain.GmPlayerStateGimmickInit(ply_work);
}
private static void GmPlayerInitModel(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.OBS_OBJECT_WORK objWork = ply_work.obj_work;
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(ply_work.obj_3d_work);
for (int index1 = 0; index1 < 2; ++index1)
{
AppMain.OBS_ACTION3D_NN_WORK[] obsActioN3DNnWorkArray = AppMain.gm_ply_obj_3d_list_tbl[(int)ply_work.char_id][index1];
int index2 = 0;
while (index2 < 4)
{
AppMain.ObjCopyAction3dNNModel(obsActioN3DNnWorkArray[index2], (AppMain.OBS_ACTION3D_NN_WORK)arrayPointer);
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).blend_spd = 0.25f;
AppMain.ObjDrawSetToon((AppMain.OBS_ACTION3D_NN_WORK)arrayPointer);
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).use_light_flag &= 4294967294U;
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).use_light_flag |= 64U;
++index2;
++arrayPointer;
}
}
objWork.obj_3d = ply_work.obj_3d_work[0];
objWork.flag |= 536870912U;
AppMain.ObjObjectAction3dNNMotionLoad(objWork, 0, true, AppMain.g_gm_player_data_work[(int)ply_work.player_id][4], (string)null, 0, (AppMain.AMS_AMB_HEADER)null, 136, 16);
objWork.disp_flag |= 16777728U;
for (int index = 1; index < 8; ++index)
ply_work.obj_3d_work[index].motion = ply_work.obj_3d_work[0].motion;
AppMain.GmPlayerSetModel(ply_work, 0);
}
private static void GmPlayerSetModel(AppMain.GMS_PLAYER_WORK ply_work, int model_set)
{
ply_work.obj_3d[0] = ply_work.obj_3d_work[model_set * 4];
ply_work.obj_3d[1] = ply_work.obj_3d_work[model_set * 4 + 1];
ply_work.obj_3d[2] = ply_work.obj_3d_work[model_set * 4 + 2];
ply_work.obj_3d[3] = ply_work.obj_3d_work[model_set * 4 + 3];
int index = ply_work.act_state;
if (index == -1)
index = 0;
ply_work.obj_work.obj_3d = ply_work.obj_3d[(int)AppMain.g_gm_player_model_tbl[(int)ply_work.char_id][index]];
}
private static void GmPlayerStateInit(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.seq_init_tbl = AppMain.g_gm_ply_seq_init_tbl_list[(int)ply_work.char_id];
AppMain.GmPlayerSpdParameterSet(ply_work);
ply_work.obj_work.dir.x = (ushort)0;
ply_work.obj_work.dir.y = (ushort)0;
ply_work.obj_work.dir.z = (ushort)0;
ply_work.obj_work.spd_m = 0;
ply_work.obj_work.spd.x = 0;
ply_work.obj_work.spd.y = 0;
ply_work.obj_work.spd.z = 0;
if (((int)ply_work.gmk_flag & 256) == 0)
ply_work.obj_work.pos.z = 0;
ply_work.obj_work.ride_obj = (AppMain.OBS_OBJECT_WORK)null;
if (((int)ply_work.gmk_flag & 1536) == 0)
{
ply_work.gmk_obj = (AppMain.OBS_OBJECT_WORK)null;
ply_work.gmk_camera_ofst_x = (short)0;
ply_work.gmk_camera_ofst_y = (short)0;
ply_work.gmk_camera_gmk_center_ofst_x = (short)0;
ply_work.gmk_camera_gmk_center_ofst_y = (short)0;
ply_work.gmk_flag &= 4227858183U;
}
ply_work.gmk_work0 = 0;
ply_work.gmk_work1 = 0;
ply_work.gmk_work2 = 0;
ply_work.gmk_work3 = 0;
ply_work.spd_work_max = 0;
ply_work.camera_jump_pos_y = 0;
if (((int)ply_work.graind_id & 128) != 0)
ply_work.obj_work.flag |= 1U;
ply_work.gmk_flag &= 3720345596U;
ply_work.player_flag &= 4294367568U;
ply_work.obj_work.flag &= 4294967293U;
ply_work.obj_work.flag |= 16U;
ply_work.obj_work.disp_flag &= 4294966991U;
ply_work.obj_work.move_flag &= 3623816416U;
ply_work.obj_work.move_flag |= 1076756672U;
if (((int)ply_work.player_flag & 262144) != 0)
ply_work.obj_work.move_flag &= 4294705151U;
else if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
{
ply_work.obj_work.move_flag &= 4294705151U;
ply_work.obj_work.move_flag |= 536875008U;
}
ply_work.no_jump_move_timer = 0;
if (ply_work.obj_work.obj_3d == null)
return;
ply_work.obj_work.obj_3d.blend_spd = 0.25f;
}
private static void GmPlayerStateGimmickInit(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.gmk_obj = (AppMain.OBS_OBJECT_WORK)null;
ply_work.gmk_camera_ofst_x = (short)0;
ply_work.gmk_camera_ofst_y = (short)0;
ply_work.gmk_camera_gmk_center_ofst_x = (short)0;
ply_work.gmk_camera_gmk_center_ofst_y = (short)0;
ply_work.gmk_work0 = 0;
ply_work.gmk_work1 = 0;
ply_work.gmk_work2 = 0;
ply_work.gmk_work3 = 0;
ply_work.obj_work.dir.x = (ushort)0;
ply_work.obj_work.dir.y = (ushort)0;
ply_work.score_combo_cnt = 0U;
AppMain.GmPlayerCameraOffsetSet(ply_work, (short)0, (short)0);
AppMain.GmCameraAllowReset();
if (((int)ply_work.graind_id & 128) != 0)
{
ply_work.obj_work.flag |= 1U;
ply_work.graind_id = (byte)0;
}
ply_work.player_flag &= 4294434128U;
ply_work.gmk_flag &= 4227612431U;
ply_work.gmk_flag2 &= 4294967097U;
ply_work.obj_work.disp_flag &= 4294967007U;
ply_work.obj_work.move_flag &= 3623816447U;
ply_work.obj_work.move_flag |= 1076232384U;
ply_work.no_jump_move_timer = 0;
if (((int)ply_work.player_flag & 262144) != 0)
{
ply_work.obj_work.move_flag &= 4294705151U;
}
else
{
if (!AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
return;
ply_work.obj_work.move_flag &= 4294705151U;
ply_work.obj_work.move_flag |= 536875008U;
}
}
private static void GmPlayerSpdParameterSet(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.spd_add = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_add;
ply_work.spd_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_max;
ply_work.spd1 = (int)((double)ply_work.spd_max * 0.15);
ply_work.spd2 = (int)((double)ply_work.spd_max * 0.3);
ply_work.spd3 = (int)((double)ply_work.spd_max * 0.5);
ply_work.spd4 = (int)((double)ply_work.spd_max * 0.7);
ply_work.spd5 = (int)((double)ply_work.spd_max * 0.9);
ply_work.spd_dec = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_dec;
ply_work.spd_spin = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_spin;
ply_work.spd_add_spin = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_add_spin;
ply_work.spd_max_spin = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_max_spin;
ply_work.spd_dec_spin = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_dec_spin;
ply_work.spd_max_add_slope = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_max_add_slope;
ply_work.spd_jump = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_jump;
ply_work.time_air = (int)AppMain.g_gm_player_parameter[(int)ply_work.char_id].time_air << 12;
ply_work.time_damage = (int)AppMain.g_gm_player_parameter[(int)ply_work.char_id].time_damage << 12;
ply_work.fall_timer = (int)AppMain.g_gm_player_parameter[(int)ply_work.char_id].fall_wait_time << 12;
ply_work.spd_jump_add = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_jump_add;
ply_work.spd_jump_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_jump_max;
ply_work.spd_jump_dec = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_jump_dec;
ply_work.spd_add_spin_pinball = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_add_spin_pinball;
ply_work.spd_max_spin_pinball = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_max_spin_pinball;
ply_work.spd_dec_spin_pinball = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_dec_spin_pinball;
ply_work.spd_max_add_slope_spin_pinball = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_max_add_slope_spin_pinball;
ply_work.obj_work.dir_slope = AppMain.GSM_MAIN_STAGE_IS_SPSTAGE() ? (ushort)1 : (((int)ply_work.player_flag & 262144) == 0 ? (ushort)192 : (ushort)512);
ply_work.obj_work.spd_slope = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_slope;
ply_work.obj_work.spd_slope_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_slope_max;
ply_work.obj_work.spd_fall = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall;
ply_work.obj_work.spd_fall_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall_max;
ply_work.obj_work.push_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].push_max;
if (((int)ply_work.player_flag & 67108864) != 0)
{
AppMain.GMD_PLAYER_WATERJUMP_SET(ref ply_work.spd_jump);
AppMain.GMD_PLAYER_WATER_SET(ref ply_work.obj_work.spd_fall);
}
if (ply_work.hi_speed_timer == 0)
return;
ply_work.spd_add <<= 1;
if (ply_work.spd_add > 61440)
ply_work.spd_add = 61440;
ply_work.spd_max <<= 1;
if (ply_work.spd_max > 61440)
ply_work.spd_max = 61440;
ply_work.spd_dec <<= 1;
ply_work.spd_spin <<= 1;
ply_work.spd_add_spin <<= 1;
ply_work.spd_max_spin <<= 1;
if (ply_work.spd_max_spin > 61440)
ply_work.spd_max_spin = 61440;
ply_work.spd_dec_spin <<= 1;
ply_work.spd_max_add_slope <<= 1;
ply_work.spd_jump_add <<= 1;
ply_work.spd_jump_max <<= 1;
if (ply_work.spd_jump_max > 61440)
ply_work.spd_jump_max = 61440;
ply_work.spd_jump_dec <<= 1;
}
private static void GmPlayerSpdParameterSetWater(AppMain.GMS_PLAYER_WORK ply_work, bool water)
{
ply_work.spd_jump = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_jump;
ply_work.obj_work.spd_fall = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall;
if (!water)
return;
AppMain.GMD_PLAYER_WATERJUMP_SET(ref ply_work.spd_jump);
AppMain.GMD_PLAYER_WATER_SET(ref ply_work.obj_work.spd_fall);
}
private static void GmPlayerSetAtk(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.rect_work[1].flag |= 4U;
AppMain.ObjRectHitAgain(ply_work.rect_work[1]);
}
private static void GmPlayerSetDefInvincible(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.rect_work[0].def_power = (short)3;
}
private static void GmPlayerSetDefNormal(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.rect_work[0].def_power = (short)0;
}
private static void GmPlayerBreathingSet(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.water_timer = 0;
}
private static void GmPlayerSetMarkerPoint(
AppMain.GMS_PLAYER_WORK ply_work,
int pos_x,
int pos_y)
{
AppMain.g_gm_main_system.time_save = AppMain.g_gm_main_system.game_time;
AppMain.g_gm_main_system.resume_pos_x = pos_x;
AppMain.g_gm_main_system.resume_pos_y = pos_y - ((int)ply_work.obj_work.field_rect[3] << 12);
}
private static void GmPlayerSetSuperSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.GmPlayerStateInit(ply_work);
if (((int)ply_work.player_flag & 262144) != 0)
{
ply_work.obj_work.pos.z = (int)short.MinValue;
ply_work.gmk_flag |= 536870912U;
}
ply_work.char_id = ((int)ply_work.player_flag & 131072) == 0 ? (((int)ply_work.player_flag & 262144) == 0 ? (byte)1 : (byte)6) : (byte)4;
ply_work.player_flag |= 16384U;
AppMain.GmPlayerSetModel(ply_work, 1);
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
ply_work.obj_work.move_flag |= 16U;
ply_work.obj_work.move_flag &= 4294967152U;
ply_work.obj_work.flag |= 2U;
AppMain.GmPlyEfctCreateSuperAuraDeco(ply_work);
AppMain.GmPlyEfctCreateSuperAuraBase(ply_work);
ply_work.super_sonic_ring_timer = int.MaxValue;
ply_work.light_rate = 0.0f;
ply_work.light_anm_flag = 0;
AppMain.g_gm_main_system.game_flag |= 524288U;
AppMain.GmSoundPlaySE("Transform");
if (AppMain.g_gs_main_sys_info.stage_id == (ushort)28)
return;
AppMain.GmSoundPlayJingleInvincible();
}
private static void GmPlayerSetEndSuperSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.char_id = ((int)ply_work.player_flag & 131072) == 0 ? (((int)ply_work.player_flag & 262144) == 0 ? (byte)0 : (byte)5) : (byte)3;
ply_work.player_flag &= 4294950911U;
AppMain.GmPlayerSetModel(ply_work, 0);
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
AppMain.GmPlyEfctCreateSuperEnd(ply_work);
AppMain.GmPlayerSetDefLight();
AppMain.GmPlayerSetDefRimParam(ply_work);
}
private static void GmPlayerSetDefLight()
{
AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_6, ref AppMain.g_gm_main_system.ply_light_col, 1f, AppMain.g_gm_main_system.ply_light_vec);
}
private static void GmPlayerSetSplStgSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.obj_work.move_flag |= 139520U;
ply_work.obj_work.move_flag &= 4294705151U;
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
AppMain.GmPlayerActionChange(ply_work, 39);
ply_work.obj_work.disp_flag |= 4U;
}
private static void GmPlayerSetPinballSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.char_id = ((int)ply_work.player_flag & 16384) == 0 ? (byte)3 : (byte)4;
ply_work.player_flag |= 131072U;
ply_work.obj_work.move_flag &= 4294705151U;
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
AppMain.GmPlayerActionChange(ply_work, 39);
ply_work.obj_work.disp_flag |= 4U;
}
private static void GmPlayerSetEndPinballSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.char_id = ((int)ply_work.player_flag & 16384) == 0 ? (byte)0 : (byte)1;
ply_work.player_flag &= 4294836223U;
ply_work.obj_work.move_flag |= 262144U;
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
}
private static void GmPlayerSetTruckRide(
AppMain.GMS_PLAYER_WORK ply_work,
AppMain.OBS_OBJECT_WORK truck_obj,
short field_left,
short field_top,
short field_right,
short field_bottom)
{
bool flag = false;
AppMain.OBS_OBJECT_WORK pObj = (AppMain.OBS_OBJECT_WORK)ply_work;
ply_work.char_id = ((int)ply_work.player_flag & 16384) == 0 ? (byte)5 : (byte)6;
ply_work.player_flag |= 262144U;
ply_work.obj_work.move_flag &= 4294705151U;
ply_work.gmk_flag2 &= 4294967294U;
ply_work.truck_obj = truck_obj;
ply_work.obj_work.ppRec = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerRectTruckFunc);
ply_work.obj_work.ppCol = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmPlayerTruckCollisionFunc);
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(ply_work.obj_3d_work);
int num = 0;
while (num < 8)
{
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).mtn_cb_func = new AppMain.mtn_cb_func_delegate(AppMain.gmGmkPlayerMotionCallbackTruck);
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).mtn_cb_param = (object)ply_work;
++num;
++arrayPointer;
}
AppMain.nnMakeUnitMatrix(ply_work.truck_mtx_ply_mtn_pos);
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
AppMain.ObjObjectFieldRectSet(pObj, field_left, field_top, field_right, field_bottom);
pObj.field_ajst_w_db_f = (sbyte)3;
pObj.field_ajst_w_db_b = (sbyte)4;
pObj.field_ajst_w_dl_f = (sbyte)3;
pObj.field_ajst_w_dl_b = (sbyte)4;
pObj.field_ajst_w_dt_f = (sbyte)3;
pObj.field_ajst_w_dt_b = (sbyte)4;
pObj.field_ajst_w_dr_f = (sbyte)3;
pObj.field_ajst_w_dr_b = (sbyte)4;
pObj.field_ajst_h_db_r = (sbyte)3;
pObj.field_ajst_h_db_l = (sbyte)3;
pObj.field_ajst_h_dl_r = (sbyte)3;
pObj.field_ajst_h_dl_l = (sbyte)3;
pObj.field_ajst_h_dt_r = (sbyte)3;
pObj.field_ajst_h_dt_l = (sbyte)3;
pObj.field_ajst_h_dr_r = (sbyte)3;
pObj.field_ajst_h_dr_l = (sbyte)3;
AppMain.ObjRectWorkSet(ply_work.rect_work[2], (short)-8, (short)((int)field_bottom - 32), (short)8, field_bottom);
AppMain.ObjRectWorkSet(ply_work.rect_work[0], (short)-8, (short)((int)field_bottom - 48), (short)8, (short)((int)field_bottom - 16));
AppMain.ObjRectWorkSet(ply_work.rect_work[1], (short)-16, (short)((int)field_bottom - 48), (short)16, (short)((int)field_bottom - 16));
ply_work.rect_work[1].flag &= 4294967291U;
AppMain.ObjCameraGet(AppMain.g_obj.glb_camera_id).user_func = new AppMain.OBJF_CAMERA_USER_FUNC(AppMain.GmCameraTruckFunc);
if (((int)ply_work.obj_work.disp_flag & 1) != 0)
AppMain.GmPlayerSetReverse(ply_work);
if (ply_work.seq_state == 39)
flag = true;
AppMain.GmPlySeqChangeFw(ply_work);
if (!flag)
return;
AppMain.GmPlySeqInitDemoFw(ply_work);
}
private static void GmPlayerSetEndTruckRide(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.OBS_OBJECT_WORK obsObjectWork = (AppMain.OBS_OBJECT_WORK)ply_work;
ply_work.char_id = ((int)ply_work.player_flag & 16384) == 0 ? (byte)0 : (byte)1;
ply_work.player_flag &= 4294705151U;
ply_work.obj_work.move_flag |= 262144U;
ply_work.obj_work.ppRec = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null;
ply_work.obj_work.ppCol = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null;
AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK> arrayPointer = new AppMain.ArrayPointer<AppMain.OBS_ACTION3D_NN_WORK>(ply_work.obj_3d_work);
int num = 0;
while (num < 8)
{
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).mtn_cb_func = (AppMain.mtn_cb_func_delegate)null;
((AppMain.OBS_ACTION3D_NN_WORK)~arrayPointer).mtn_cb_param = (object)null;
++num;
++arrayPointer;
}
AppMain.GmPlySeqSetSeqState(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
AppMain.ObjObjectFieldRectSet(ply_work.obj_work, (short)-6, (short)-12, (short)6, (short)13);
obsObjectWork.field_ajst_w_db_f = (sbyte)2;
obsObjectWork.field_ajst_w_db_b = (sbyte)4;
obsObjectWork.field_ajst_w_dl_f = (sbyte)2;
obsObjectWork.field_ajst_w_dl_b = (sbyte)4;
obsObjectWork.field_ajst_w_dt_f = (sbyte)2;
obsObjectWork.field_ajst_w_dt_b = (sbyte)4;
obsObjectWork.field_ajst_w_dr_f = (sbyte)2;
obsObjectWork.field_ajst_w_dr_b = (sbyte)4;
obsObjectWork.field_ajst_h_db_r = (sbyte)1;
obsObjectWork.field_ajst_h_db_l = (sbyte)1;
obsObjectWork.field_ajst_h_dl_r = (sbyte)1;
obsObjectWork.field_ajst_h_dl_l = (sbyte)1;
obsObjectWork.field_ajst_h_dt_r = (sbyte)1;
obsObjectWork.field_ajst_h_dt_l = (sbyte)1;
obsObjectWork.field_ajst_h_dr_r = (sbyte)2;
obsObjectWork.field_ajst_h_dr_l = (sbyte)2;
AppMain.ObjRectWorkZSet(ply_work.rect_work[2], (short)-8, (short)-19, (short)-500, (short)8, (short)13, (short)500);
AppMain.ObjRectWorkZSet(ply_work.rect_work[0], (short)-8, (short)-19, (short)-500, (short)8, (short)13, (short)500);
AppMain.ObjRectWorkZSet(ply_work.rect_work[1], (short)-16, (short)-19, (short)-500, (short)16, (short)13, (short)500);
ply_work.rect_work[1].flag &= 4294967291U;
ply_work.obj_work.dir_fall = (ushort)0;
AppMain.g_gm_main_system.pseudofall_dir = (ushort)0;
AppMain.ObjCameraGet(AppMain.g_obj.glb_camera_id).user_func = new AppMain.OBJF_CAMERA_USER_FUNC(AppMain.GmCameraFunc);
}
private static void GmPlayerSetGoalState(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 131072) != 0)
AppMain.GmPlayerSetEndPinballSonic(ply_work);
if (((int)ply_work.player_flag & 16384) != 0)
AppMain.gmPlayerSuperSonicToSonic(ply_work);
AppMain.GmPlayerSetDefInvincible(ply_work);
ply_work.invincible_timer = 0;
ply_work.genocide_timer = 0;
if (((int)ply_work.player_flag & 262144) == 0)
return;
AppMain.ObjRectWorkSet(ply_work.rect_work[2], (short)0, (short)-37, (short)16, (short)-5);
}
private static void GmPlayerSetAutoRun(
AppMain.GMS_PLAYER_WORK ply_work,
int scroll_spd_x,
bool enable)
{
if (enable)
{
ply_work.player_flag |= 32768U;
ply_work.scroll_spd_x = scroll_spd_x;
}
else
ply_work.player_flag &= 4294934527U;
}
private static void GmPlayerRingGet(AppMain.GMS_PLAYER_WORK ply_work, short add_ring)
{
short ringNum = ply_work.ring_num;
ply_work.ring_num += add_ring;
ply_work.ring_num = (short)AppMain.MTM_MATH_CLIP((int)ply_work.ring_num, 0, 999);
ply_work.ring_stage_num += add_ring;
ply_work.ring_stage_num = (short)AppMain.MTM_MATH_CLIP((int)ply_work.ring_stage_num, 0, 9999);
AppMain.GmRingGetSE();
if (AppMain.g_gs_main_sys_info.game_mode == 1)
return;
if (!AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
{
if (((int)ply_work.player_flag & 16384) != 0 || AppMain.g_gs_main_sys_info.game_mode == 1)
return;
for (short index = 100; index <= (short)900; index += (short)100)
{
if ((int)ringNum < (int)index && (int)ply_work.ring_num >= (int)index)
{
AppMain.GmPlayerStockGet(ply_work, (short)1);
AppMain.GmSoundPlayJingle1UP(true);
}
}
}
else
{
if (ringNum >= (short)50 || ply_work.ring_num < (short)50)
return;
AppMain.GmPlayerStockGet(ply_work, (short)1);
AppMain.GmSoundPlayJingle1UP(true);
}
}
private static void GmPlayerRingDec(AppMain.GMS_PLAYER_WORK ply_work, short dec_ring)
{
if (AppMain.GMM_MAIN_USE_SUPER_SONIC())
return;
ply_work.ring_num -= dec_ring;
ply_work.ring_num = (short)AppMain.MTM_MATH_CLIP((int)ply_work.ring_num, 0, 999);
ply_work.ring_stage_num -= dec_ring;
ply_work.ring_stage_num = (short)AppMain.MTM_MATH_CLIP((int)ply_work.ring_stage_num, 0, 9999);
}
private static void GmPlayerStockGet(AppMain.GMS_PLAYER_WORK ply_work, short add_stock)
{
if (AppMain.g_gs_main_sys_info.game_mode == 1 && ((ushort)21 > AppMain.g_gs_main_sys_info.stage_id || AppMain.g_gs_main_sys_info.stage_id > (ushort)27))
return;
AppMain.g_gm_main_system.player_rest_num[(int)ply_work.player_id] += (uint)add_stock;
AppMain.g_gm_main_system.player_rest_num[(int)ply_work.player_id] = AppMain.MTM_MATH_CLIP(AppMain.g_gm_main_system.player_rest_num[(int)ply_work.player_id], 0U, 1000U);
AppMain.HgTrophyTryAcquisition(5);
}
private static void GmPlayerAddScore(
AppMain.GMS_PLAYER_WORK ply_work,
int score,
int pos_x,
int pos_y)
{
ply_work.score += (uint)score;
AppMain.GmScoreCreateScore(score, pos_x, pos_y, 4096, 0);
}
private static void GmPlayerAddScoreNoDisp(AppMain.GMS_PLAYER_WORK ply_work, int score)
{
ply_work.score += (uint)score;
}
private static void GmPlayerComboScore(AppMain.GMS_PLAYER_WORK ply_work, int pos_x, int pos_y)
{
if (((int)ply_work.obj_work.move_flag & 1) != 0)
{
ply_work.score_combo_cnt = 0U;
}
else
{
++ply_work.score_combo_cnt;
if (ply_work.score_combo_cnt > 9999U)
ply_work.score_combo_cnt = 9999U;
}
uint num = ply_work.score_combo_cnt != 0U ? (ply_work.score_combo_cnt - 1U < 5U ? ply_work.score_combo_cnt - 1U : 4U) : 0U;
int score = AppMain.gm_ply_score_combo_tbl[(int)num];
ply_work.score += (uint)score;
AppMain.GmScoreCreateScore(score, pos_x, pos_y, AppMain.gm_ply_score_combo_scale_tbl[(int)num], AppMain.gm_ply_score_combo_vib_level_tbl[(int)num]);
}
private static void GmPlayerItemHiSpeedSet(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.hi_speed_timer = 3686400;
AppMain.GmPlayerSpdParameterSet(ply_work);
AppMain.GmSoundChangeSpeedupBGM();
}
private static void GmPlayerItemInvincibleSet(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.GmSoundPlayJingleInvincible();
if (ply_work.genocide_timer == 0)
AppMain.GmPlyEfctCreateInvincible(ply_work);
ply_work.genocide_timer = 4091904;
}
private static void GmPlayerItemRing10Set(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.GmPlayerRingGet(ply_work, (short)10);
}
private static void GmPlayerItemBarrierSet(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 268435456) == 0)
{
AppMain.GmPlyEfctCreateBarrier(ply_work);
AppMain.GmSoundPlaySE("Barrier");
}
ply_work.player_flag |= 268435456U;
}
private static void GmPlayerItem1UPSet(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.GmPlayerStockGet(ply_work, (short)1);
AppMain.GmSoundPlayJingle1UP(true);
}
private static void GmPlayerActionChange(AppMain.GMS_PLAYER_WORK ply_work, int act_state)
{
ply_work.prev_act_state = ply_work.act_state;
ply_work.act_state = act_state;
ply_work.obj_work.obj_3d = ply_work.obj_3d[(int)AppMain.g_gm_player_model_tbl[(int)ply_work.char_id][act_state]];
ply_work.obj_work.obj_3d.motion._object = ply_work.obj_work.obj_3d._object;
int id = ((int)ply_work.obj_work.disp_flag & 1) == 0 ? (int)AppMain.g_gm_player_motion_right_tbl[(int)ply_work.char_id][act_state] : (int)AppMain.g_gm_player_motion_left_tbl[(int)ply_work.char_id][act_state];
if (ply_work.prev_act_state != -1 && (int)AppMain.g_gm_player_model_tbl[(int)ply_work.char_id][act_state] == (int)AppMain.g_gm_player_model_tbl[(int)ply_work.char_id][ply_work.prev_act_state] && (AppMain.g_gm_player_mtn_blend_setting_tbl[(int)ply_work.char_id][ply_work.prev_act_state] != (byte)0 && AppMain.g_gm_player_mtn_blend_setting_tbl[(int)ply_work.char_id][act_state] != (byte)0))
{
AppMain.ObjDrawObjectActionSet3DNNBlend(ply_work.obj_work, id);
if (act_state == 26 || act_state == 27)
ply_work.obj_work.obj_3d.blend_spd = 0.125f;
else if (19 <= ply_work.prev_act_state && ply_work.prev_act_state < 22 && (act_state == 40 || act_state == 42))
ply_work.obj_work.obj_3d.blend_spd = 0.125f;
else if (ply_work.prev_act_state == 0 && act_state == 19)
ply_work.obj_work.obj_3d.blend_spd = 0.125f;
else if (ply_work.prev_seq_state == 20)
ply_work.obj_work.obj_3d.blend_spd = 0.08333334f;
else
ply_work.obj_work.obj_3d.blend_spd = 0.25f;
}
else
AppMain.ObjDrawObjectActionSet3DNN(ply_work.obj_work, id, 0);
}
private static void GmPlayerSaveResetAction(
AppMain.GMS_PLAYER_WORK ply_work,
AppMain.GMS_PLAYER_RESET_ACT_WORK reset_act_work)
{
reset_act_work.frame[0] = ply_work.obj_work.obj_3d.frame[0];
reset_act_work.frame[1] = ply_work.obj_work.obj_3d.frame[1];
reset_act_work.blend_spd = ply_work.obj_work.obj_3d.blend_spd;
reset_act_work.marge = ply_work.obj_work.obj_3d.marge;
reset_act_work.obj_3d_flag = ply_work.obj_work.obj_3d.flag;
}
private static void GmPlayerResetAction(
AppMain.GMS_PLAYER_WORK ply_work,
AppMain.GMS_PLAYER_RESET_ACT_WORK reset_act_work)
{
int[] numArray1 = AppMain.New<int>(2);
float[] numArray2 = new float[2];
numArray1[0] = ply_work.act_state;
numArray1[1] = ply_work.prev_act_state;
uint dispFlag = ply_work.obj_work.disp_flag;
AppMain.GmPlayerActionChange(ply_work, numArray1[1]);
AppMain.GmPlayerActionChange(ply_work, numArray1[0]);
ply_work.obj_work.obj_3d.frame[0] = reset_act_work.frame[0];
ply_work.obj_work.obj_3d.frame[1] = reset_act_work.frame[1];
ply_work.obj_work.obj_3d.blend_spd = reset_act_work.blend_spd;
ply_work.obj_work.obj_3d.marge = reset_act_work.marge;
ply_work.obj_work.obj_3d.flag &= 4294967294U;
ply_work.obj_work.obj_3d.flag |= reset_act_work.obj_3d_flag & 1U;
ply_work.obj_work.disp_flag |= dispFlag & 12U;
for (int index = 0; index < 2; ++index)
{
numArray2[index] = AppMain.amMotionGetEndFrame(ply_work.obj_work.obj_3d.motion, ply_work.obj_work.obj_3d.act_id[index]) - AppMain.amMotionGetStartFrame(ply_work.obj_work.obj_3d.motion, ply_work.obj_work.obj_3d.act_id[index]);
if ((double)ply_work.obj_work.obj_3d.frame[index] >= (double)numArray2[index])
ply_work.obj_work.obj_3d.frame[index] = 0.0f;
}
}
private static void GmPlayerWalkActionSet(AppMain.GMS_PLAYER_WORK ply_work)
{
int num = AppMain.MTM_MATH_ABS(ply_work.obj_work.spd_m);
bool flag = false;
short z = (short)ply_work.obj_work.dir.z;
if (((int)ply_work.obj_work.disp_flag & 1) == 0 && z > (short)4096 || ((int)ply_work.obj_work.disp_flag & 1) != 0 && z < (short)-4096 && ((int)ply_work.gmk_flag & 131072) == 0)
{
flag = true;
ply_work.maxdash_timer = 122880;
}
int act_state;
if (num < ply_work.spd1)
act_state = 19;
else if (num < ply_work.spd2)
{
act_state = 20;
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateRunDust(ply_work);
}
else if (num < ply_work.spd3)
{
act_state = 21;
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateDash1Dust(ply_work);
}
else if (num < ply_work.spd4 && (flag || ply_work.maxdash_timer != 0))
{
act_state = 22;
AppMain.GmPlyEfctCreateRollDash(ply_work);
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateDash2Dust(ply_work);
AppMain.GmPlyEfctCreateDash2Impact(ply_work);
AppMain.GmPlyEfctCreateSuperAuraDash(ply_work);
}
else
{
act_state = 21;
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateDash1Dust(ply_work);
}
AppMain.GmPlayerActionChange(ply_work, act_state);
ply_work.obj_work.disp_flag |= 4U;
}
private static void GmPlayerWalkActionCheck(AppMain.GMS_PLAYER_WORK ply_work)
{
bool flag = false;
short z = (short)ply_work.obj_work.dir.z;
int num = AppMain.MTM_MATH_ABS(ply_work.obj_work.spd_m);
if ((((int)ply_work.obj_work.disp_flag & 1) == 0 && z > (short)4096 || ((int)ply_work.obj_work.disp_flag & 1) != 0 && z < (short)-4096) && ((int)ply_work.gmk_flag & 131072) == 0)
{
flag = true;
ply_work.maxdash_timer = 122880;
}
if (ply_work.act_state < 19 || ply_work.act_state > 22)
AppMain.GmPlayerActionChange(ply_work, 19);
if (((int)ply_work.obj_work.disp_flag & 8) != 0)
{
if (ply_work.act_state == 19)
{
if (num >= ply_work.spd2)
{
AppMain.GmPlayerActionChange(ply_work, 20);
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateRunDust(ply_work);
}
}
else if (ply_work.act_state == 20)
{
if (num >= ply_work.spd3)
{
AppMain.GmPlayerActionChange(ply_work, 21);
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateDash1Dust(ply_work);
}
else if (num < ply_work.spd2)
AppMain.GmPlayerActionChange(ply_work, 19);
}
else if (ply_work.act_state == 21)
{
if (num >= ply_work.spd_max && (flag || ply_work.maxdash_timer != 0))
{
AppMain.GmPlayerActionChange(ply_work, 22);
AppMain.GmPlyEfctCreateRollDash(ply_work);
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateDash2Dust(ply_work);
AppMain.GmPlyEfctCreateDash2Impact(ply_work);
}
else if (num < ply_work.spd3)
{
AppMain.GmPlayerActionChange(ply_work, 20);
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateRunDust(ply_work);
}
}
else if (ply_work.act_state == 22 && (num < ply_work.spd_max || !flag && ply_work.maxdash_timer == 0))
{
AppMain.GmPlayerActionChange(ply_work, 21);
if (((int)ply_work.player_flag & 512) == 0)
AppMain.GmPlyEfctCreateDash1Dust(ply_work);
}
}
ply_work.obj_work.disp_flag |= 4U;
}
private static void GmPlayerAnimeSpeedSetWalk(AppMain.GMS_PLAYER_WORK ply_work, int spd_set)
{
int a = AppMain.MTM_MATH_ABS((spd_set >> 3) + (spd_set >> 2));
if (a <= 4096)
a = 4096;
if (a >= 32768)
a = 32768;
if (ply_work.act_state == 22)
a = 4096;
else if ((ply_work.act_state == 26 || ply_work.act_state == 27) && (((int)ply_work.obj_work.obj_3d.flag & 1) != 0 && a > 4096))
a = 4096;
if (ply_work.obj_work.obj_3d == null)
return;
ply_work.obj_work.obj_3d.speed[0] = AppMain.FXM_FX32_TO_FLOAT(a);
ply_work.obj_work.obj_3d.speed[1] = AppMain.FXM_FX32_TO_FLOAT(a);
}
private static void GmPlayerSpdSet(AppMain.GMS_PLAYER_WORK ply_work, int spd_x, int spd_y)
{
ply_work.no_spddown_timer = 524288;
if (spd_x < 0)
ply_work.obj_work.disp_flag |= 1U;
else
ply_work.obj_work.disp_flag &= 4294967294U;
if (((int)ply_work.obj_work.move_flag & 16) != 0)
{
if (((int)ply_work.obj_work.disp_flag & 1) != 0 && ply_work.obj_work.spd.x > spd_x || ((int)ply_work.obj_work.disp_flag & 1) == 0 && ply_work.obj_work.spd.x < spd_x)
ply_work.obj_work.spd.x = spd_x;
if (AppMain.MTM_MATH_ABS(ply_work.obj_work.spd.y) >= AppMain.MTM_MATH_ABS(spd_y))
return;
ply_work.obj_work.spd.y = spd_y;
}
else
{
switch (((int)ply_work.obj_work.dir.z + 8192 & 49152) >> 6)
{
case 0:
case 2:
if (((int)ply_work.obj_work.disp_flag & 1) != 0 && ply_work.obj_work.spd_m > spd_x || ((int)ply_work.obj_work.disp_flag & 1) == 0 && ply_work.obj_work.spd_m < spd_x)
ply_work.obj_work.spd_m = spd_x;
if (AppMain.MTM_MATH_ABS(ply_work.obj_work.spd.y) >= AppMain.MTM_MATH_ABS(spd_y))
break;
ply_work.obj_work.spd.y = spd_y;
if (ply_work.obj_work.spd.y >= 0)
break;
ply_work.obj_work.move_flag |= 16U;
break;
case 1:
if (((int)ply_work.obj_work.disp_flag & 1) != 0 && ply_work.obj_work.spd_m > spd_y || ((int)ply_work.obj_work.disp_flag & 1) == 0 && ply_work.obj_work.spd_m < spd_y)
ply_work.obj_work.spd_m = spd_y;
if (AppMain.MTM_MATH_ABS(ply_work.obj_work.spd.x) >= AppMain.MTM_MATH_ABS(spd_x))
break;
ply_work.obj_work.spd.x = spd_x;
break;
case 3:
if (((int)ply_work.obj_work.disp_flag & 1) != 0 && ply_work.obj_work.spd_m > -spd_y || ((int)ply_work.obj_work.disp_flag & 1) == 0 && ply_work.obj_work.spd_m < -spd_y)
ply_work.obj_work.spd_m = -spd_y;
if (AppMain.MTM_MATH_ABS(ply_work.obj_work.spd.x) >= AppMain.MTM_MATH_ABS(spd_x))
break;
ply_work.obj_work.spd.x = spd_x;
break;
}
}
}
private static void GmPlayerSetReverse(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.player_flag &= 2147483375U;
ply_work.pgm_turn_dir = (ushort)0;
ply_work.pgm_turn_spd = (ushort)0;
ply_work.obj_work.disp_flag ^= 1U;
if ((int)AppMain.g_gm_player_motion_left_tbl[(int)ply_work.char_id][ply_work.act_state] == (int)AppMain.g_gm_player_motion_right_tbl[(int)ply_work.char_id][ply_work.act_state])
return;
float[] numArray = new float[2];
uint num = ply_work.obj_work.disp_flag & 12U;
numArray[0] = ply_work.obj_work.obj_3d.frame[0];
AppMain.GmPlayerActionChange(ply_work, ply_work.act_state);
ply_work.obj_work.obj_3d.frame[0] = numArray[0];
ply_work.obj_work.obj_3d.marge = 0.0f;
ply_work.obj_work.obj_3d.flag &= 4294967294U;
ply_work.obj_work.disp_flag |= num;
}
private static void GmPlayerSetReverseOnlyState(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.player_flag &= 2147483375U;
ply_work.pgm_turn_dir = (ushort)0;
ply_work.pgm_turn_spd = (ushort)0;
ply_work.obj_work.disp_flag ^= 1U;
}
private static bool GmPlayerKeyCheckWalkLeft(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 262144) != 0)
{
if (((int)ply_work.key_on & 4) != 0 || ply_work.key_rot_z < 0)
return true;
}
else if (((int)AppMain.g_gs_main_sys_info.game_flag & 1) != 0)
{
if (((int)ply_work.key_on & 4) != 0)
return true;
}
else if (((int)ply_work.key_on & 4) != 0 || ply_work.key_walk_rot_z < 0)
return true;
return false;
}
private static bool GmPlayerKeyCheckWalkRight(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 262144) != 0)
{
if (((int)ply_work.key_on & 8) != 0 || ply_work.key_rot_z > 0)
return true;
}
else if (((int)AppMain.g_gs_main_sys_info.game_flag & 1) != 0)
{
if (((int)ply_work.key_on & 8) != 0)
return true;
}
else if (((int)ply_work.key_on & 8) != 0 || ply_work.key_walk_rot_z > 0)
return true;
return false;
}
private static bool GmPlayerKeyCheckJumpKeyOn(AppMain.GMS_PLAYER_WORK ply_work)
{
return ((int)ply_work.key_on & 160) != 0;
}
private static bool GmPlayerKeyCheckJumpKeyPush(AppMain.GMS_PLAYER_WORK ply_work)
{
return ((int)ply_work.key_push & 160) != 0;
}
private static int GmPlayerKeyGetGimmickRotZ(AppMain.GMS_PLAYER_WORK ply_work)
{
return ((int)AppMain.g_gs_main_sys_info.game_flag & 1) == 0 ? ply_work.key_rot_z : ply_work.key_walk_rot_z;
}
private static bool GmPlayerKeyCheckTransformKeyPush(AppMain.GMS_PLAYER_WORK ply_work)
{
return ((int)ply_work.key_push & 80) != 0;
}
private static void GmPlayerSetLight(AppMain.NNS_VECTOR light_vec, ref AppMain.NNS_RGBA light_col)
{
AppMain.NNS_VECTOR nnsVector = AppMain.GlobalPool<AppMain.NNS_VECTOR>.Alloc();
AppMain.nnNormalizeVector(nnsVector, light_vec);
AppMain.ObjDrawSetParallelLight(AppMain.NNE_LIGHT_6, ref light_col, 1f, nnsVector);
AppMain.GlobalPool<AppMain.NNS_VECTOR>.Release(nnsVector);
}
private static void GmPlayerSetDefRimParam(AppMain.GMS_PLAYER_WORK ply_work)
{
}
private void GmPlayerSetRimParam(AppMain.GMS_PLAYER_WORK ply_work, AppMain.NNS_RGB toon_rim_param)
{
}
private static bool GmPlayerCheckGimmickEnable(AppMain.GMS_PLAYER_WORK ply_work)
{
return ply_work.gmk_obj != null && ply_work.gmk_obj.obj_type == (ushort)3 && ((AppMain.GMS_ENEMY_COM_WORK)ply_work.gmk_obj).target_obj == (AppMain.OBS_OBJECT_WORK)ply_work;
}
private static bool GmPlayerIsTransformSuperSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
return ((int)AppMain.g_gm_main_system.game_flag & 1048576) == 0 && ((int)ply_work.player_flag & 1049600) == 0 && (!AppMain.GSM_MAIN_STAGE_IS_SPSTAGE() && ((int)AppMain.g_gs_main_sys_info.game_flag & 32) != 0) && (ply_work.ring_num >= (short)50 && ((int)ply_work.player_flag & 16384) == 0);
}
private static void GmPlayerCameraOffsetSet(
AppMain.GMS_PLAYER_WORK ply_work,
short ofs_x,
short ofs_y)
{
ply_work.gmk_camera_center_ofst_x = ofs_x;
ply_work.gmk_camera_center_ofst_y = ofs_y;
}
private static bool GmPlayerIsStateWait(AppMain.GMS_PLAYER_WORK ply_work)
{
bool flag = false;
if (ply_work.act_state >= 2 && ply_work.act_state <= 7)
flag = true;
return flag;
}
private static bool gmPlayerObjRelease(AppMain.OBS_OBJECT_WORK obj_work)
{
obj_work.obj_3d = (AppMain.OBS_ACTION3D_NN_WORK)null;
return true;
}
private static bool gmPlayerObjReleaseWait(AppMain.OBS_OBJECT_WORK obj_work)
{
AppMain.GMS_PLAYER_WORK gmsPlayerWork = (AppMain.GMS_PLAYER_WORK)obj_work;
AppMain.ObjAction3dNNMotionRelease(gmsPlayerWork.obj_3d_work[0]);
for (int index = 1; index < 8; ++index)
gmsPlayerWork.obj_3d_work[index].motion = (AppMain.AMS_MOTION)null;
return false;
}
private static void gmPlayerExit(AppMain.MTS_TASK_TCB tcb)
{
AppMain.GMS_PLAYER_WORK tcbWork = (AppMain.GMS_PLAYER_WORK)AppMain.mtTaskGetTcbWork(tcb);
AppMain.g_gm_main_system.ply_work[(int)tcbWork.player_id] = (AppMain.GMS_PLAYER_WORK)null;
AppMain.ObjObjectExit(tcb);
}
private static void gmPlayerMain(AppMain.OBS_OBJECT_WORK obj_work)
{
AppMain.GMS_PLAYER_WORK ply_work = (AppMain.GMS_PLAYER_WORK)obj_work;
if (ply_work.spin_se_timer > (short)0)
--ply_work.spin_se_timer;
if (ply_work.spin_back_se_timer > (short)0)
--ply_work.spin_back_se_timer;
AppMain.GmPlySeqMain(ply_work);
}
private static void gmPlayerDispFunc(AppMain.OBS_OBJECT_WORK obj_work)
{
ushort num1 = 0;
AppMain.GMS_PLAYER_WORK gmsPlayerWork = (AppMain.GMS_PLAYER_WORK)obj_work;
AppMain.OBS_ACTION3D_NN_WORK obj3d = obj_work.obj_3d;
AppMain.nnMakeUnitMatrix(obj3d.user_obj_mtx_r);
if (((int)gmsPlayerWork.gmk_flag & 32768) != 0)
AppMain.nnMultiplyMatrix(obj3d.user_obj_mtx_r, obj3d.user_obj_mtx_r, gmsPlayerWork.ex_obj_mtx_r);
float num2 = 0.0f;
float num3 = -15f;
if (((int)gmsPlayerWork.player_flag & 131072) != 0 && (26 > gmsPlayerWork.act_state || gmsPlayerWork.act_state > 30) || AppMain.GSM_MAIN_STAGE_IS_SPSTAGE_NOT_RETRY())
num3 = -21f;
else if (((int)gmsPlayerWork.player_flag & 262144) != 0 && ((int)gmsPlayerWork.gmk_flag2 & 64) == 0)
{
num2 = 0.0f;
num3 = 0.0f;
}
AppMain.nnTranslateMatrix(obj3d.user_obj_mtx_r, obj3d.user_obj_mtx_r, 0.0f, num3 / AppMain.FXM_FX32_TO_FLOAT(AppMain.g_obj.draw_scale.y), num2 / AppMain.FXM_FX32_TO_FLOAT(AppMain.g_obj.draw_scale.x));
if (((int)gmsPlayerWork.player_flag & -2147483376) != 0)
{
num1 = gmsPlayerWork.obj_work.dir.y;
gmsPlayerWork.obj_work.dir.y += gmsPlayerWork.pgm_turn_dir;
}
AppMain.ObjDrawActionSummary(obj_work);
if (((int)gmsPlayerWork.player_flag & -2147483376) == 0)
return;
gmsPlayerWork.obj_work.dir.y = num1;
}
private static void gmPlayerDefaultInFunc(AppMain.OBS_OBJECT_WORK obj_work)
{
AppMain.GMS_PLAYER_WORK ply_work = (AppMain.GMS_PLAYER_WORK)obj_work;
AppMain.gmPlayerKeyGet(ply_work);
AppMain.gmPlayerWaterCheck(ply_work);
AppMain.gmPlayerTimeOverCheck(ply_work);
AppMain.gmPlayerFallDownCheck(ply_work);
AppMain.gmPlayerPressureCheck(ply_work);
AppMain.gmPlayerGetHomingTarget(ply_work);
AppMain.gmPlayerSuperSonicCheck(ply_work);
AppMain.gmPlayerPushSet(ply_work);
AppMain.gmPlayerEarthTouch(ply_work);
if (((int)ply_work.player_flag & 262144) != 0)
{
ply_work.truck_prev_dir = ply_work.obj_work.dir.z;
ply_work.truck_prev_dir_fall = ply_work.obj_work.dir_fall;
}
if (ply_work.gmk_obj != null && ((int)ply_work.gmk_obj.flag & 4) != 0)
ply_work.gmk_obj = (AppMain.OBS_OBJECT_WORK)null;
if (ply_work.invincible_timer != 0)
{
ply_work.invincible_timer = AppMain.ObjTimeCountDown(ply_work.invincible_timer);
if ((ply_work.invincible_timer & 16384) != 0)
ply_work.obj_work.disp_flag |= 32U;
else
ply_work.obj_work.disp_flag &= 4294967263U;
if (ply_work.invincible_timer == 0)
{
ply_work.obj_work.disp_flag &= 4294967263U;
AppMain.GmPlayerSetDefNormal(ply_work);
}
}
if (ply_work.disapprove_item_catch_timer != 0)
ply_work.disapprove_item_catch_timer = AppMain.ObjTimeCountDown(ply_work.disapprove_item_catch_timer);
if (ply_work.genocide_timer != 0)
ply_work.genocide_timer = AppMain.ObjTimeCountDown(ply_work.genocide_timer);
if (ply_work.genocide_timer != 0 || ((int)ply_work.player_flag & 16384) != 0)
{
ply_work.water_timer = 0;
AppMain.OBS_RECT_WORK obsRectWork = ply_work.rect_work[2];
obsRectWork.hit_flag |= (ushort)2;
obsRectWork.hit_power = (short)3;
ply_work.rect_work[0].def_flag = ushort.MaxValue;
}
else if (((int)ply_work.rect_work[2].hit_flag & 2) != 0)
{
ply_work.obj_work.disp_flag &= 4294967263U;
AppMain.OBS_RECT_WORK obsRectWork = ply_work.rect_work[2];
ushort num = 65533;
obsRectWork.hit_flag &= num;
obsRectWork.hit_power = (short)1;
ply_work.rect_work[0].def_flag = (ushort)65533;
AppMain.GmSoundStopJingleInvincible();
}
if (ply_work.hi_speed_timer != 0)
{
ply_work.hi_speed_timer = AppMain.ObjTimeCountDown(ply_work.hi_speed_timer);
if (ply_work.hi_speed_timer == 0)
AppMain.GmPlayerSpdParameterSet(ply_work);
}
if (ply_work.homing_timer != 0)
ply_work.homing_timer = AppMain.ObjTimeCountDown(ply_work.homing_timer);
if (((int)ply_work.player_flag & 262144) == 0)
return;
ply_work.obj_work.sys_flag &= 4294967055U;
if (((int)ply_work.obj_work.sys_flag & 1) != 0)
ply_work.obj_work.sys_flag |= 16U;
if (((int)ply_work.obj_work.sys_flag & 2) != 0)
ply_work.obj_work.sys_flag |= 32U;
if (((int)ply_work.obj_work.sys_flag & 4) != 0)
ply_work.obj_work.sys_flag |= 64U;
if (((int)ply_work.obj_work.sys_flag & 8) != 0)
ply_work.obj_work.sys_flag |= 128U;
ply_work.obj_work.sys_flag &= 4294967280U;
ply_work.gmk_flag2 &= 4294967279U;
if (((int)ply_work.gmk_flag2 & 8) != 0)
ply_work.gmk_flag2 |= 16U;
ply_work.gmk_flag2 &= 4294967287U;
if (ply_work.jump_pseudofall_eve_id_set == (ushort)0)
ply_work.jump_pseudofall_eve_id_cur = ply_work.jump_pseudofall_eve_id_wait;
ply_work.jump_pseudofall_eve_id_set = (ushort)0;
ply_work.jump_pseudofall_eve_id_wait = (ushort)0;
if ((((int)ply_work.gmk_flag2 & 256) == 0 || ((int)ply_work.obj_work.move_flag & 1) != 0) && ply_work.seq_state != 39)
{
int num1 = -ply_work.key_rot_z;
int num2;
if (((int)AppMain.g_gs_main_sys_info.game_flag & 512) != 0)
{
num2 = num1 * 38 / 10;
if (AppMain.fall_rot_buf_gmPlayerDefaultInFunc > 0 && num2 >= 0 || AppMain.fall_rot_buf_gmPlayerDefaultInFunc < 0 && num2 <= 0)
num2 += AppMain.fall_rot_buf_gmPlayerDefaultInFunc;
AppMain.fall_rot_buf_gmPlayerDefaultInFunc = 0;
if (num2 > 5120)
{
AppMain.fall_rot_buf_gmPlayerDefaultInFunc += num2 - 5120;
if (AppMain.fall_rot_buf_gmPlayerDefaultInFunc > 49152)
AppMain.fall_rot_buf_gmPlayerDefaultInFunc = 49152;
num2 = 5120;
}
else if (num2 < -5120)
{
AppMain.fall_rot_buf_gmPlayerDefaultInFunc += num2 + 5120;
if (AppMain.fall_rot_buf_gmPlayerDefaultInFunc < -49152)
AppMain.fall_rot_buf_gmPlayerDefaultInFunc = -49152;
num2 = -5120;
}
}
else
num2 = num1 / 24;
ushort num3 = (ushort)((uint)ply_work.obj_work.dir.z + ((uint)ply_work.obj_work.dir_fall - (uint)AppMain.g_gm_main_system.pseudofall_dir));
int num4 = 60075;
int num5 = 5460;
if ((int)num3 > num5 && (int)num3 < num4)
{
if (num3 > (ushort)32768 && num2 > 0)
num2 = 0;
else if (num3 <= (ushort)32768 && num2 <= 0)
num2 = 0;
}
if (((int)ply_work.gmk_flag & 262144) != 0 && ((int)ply_work.gmk_flag & 1073741824) == 0)
num2 = 0;
if (((int)AppMain.g_gm_main_system.game_flag & 16384) != 0 || ((int)ply_work.player_flag & 1048576) != 0)
num2 = (short)num3 >= (short)0 ? ((short)num3 <= (short)0 ? 0 : (int)(short)num3) : (int)(short)num3;
int num6 = num2;
if (num6 > 32768)
num6 -= 65536;
else if (num6 < (int)short.MinValue)
num6 += 65536;
int a = num6;
if (AppMain.MTM_MATH_ABS(a) > 5120)
a = a < 0 ? -5120 : 5120;
ply_work.ply_pseudofall_dir += a;
AppMain.g_gm_main_system.pseudofall_dir = (ushort)ply_work.ply_pseudofall_dir;
}
ply_work.prev_dir_fall = obj_work.dir_fall;
obj_work.dir_fall = ((int)obj_work.move_flag & 1) == 0 ? (ushort)((int)ply_work.jump_pseudofall_dir + 8192 & 49152) : (ushort)((int)AppMain.g_gm_main_system.pseudofall_dir + 8192 & 49152);
if ((int)ply_work.prev_dir_fall != (int)obj_work.dir_fall)
ply_work.obj_work.dir.z -= (ushort)((uint)obj_work.dir_fall - (uint)ply_work.prev_dir_fall);
int num7 = 60075;
int num8 = 5460;
if (((int)ply_work.obj_work.move_flag & 1) != 0)
{
ushort num1 = (ushort)((uint)ply_work.obj_work.dir.z + ((uint)ply_work.obj_work.dir_fall - (uint)AppMain.g_gm_main_system.pseudofall_dir));
if ((int)num1 > num8 && (int)num1 < num7)
{
if (num1 > (ushort)32768)
ply_work.ply_pseudofall_dir -= num7 - (int)num1;
else if (num1 <= (ushort)32768)
ply_work.ply_pseudofall_dir += (int)num1 - num8;
}
}
ushort num9 = (ushort)((uint)ply_work.obj_work.dir.z + ((uint)ply_work.obj_work.dir_fall - (uint)AppMain.g_gm_main_system.pseudofall_dir));
if (((int)ply_work.obj_work.move_flag & 1) != 0)
{
if (((int)ply_work.gmk_flag2 & 24) == 0 && (ushort)27392 < num9 && num9 < (ushort)38144)
{
if ((int)ply_work.truck_prev_dir == (int)obj_work.dir.z)
{
ply_work.obj_work.spd_m = 0;
if (((int)ply_work.gmk_flag & 262144) == 0)
{
ply_work.gmk_flag |= 262144U;
AppMain.GmPlySeqGmkInitTruckDanger(ply_work, ply_work.truck_obj);
AppMain.GmPlayerSpdParameterSet(ply_work);
}
}
}
else if (((int)ply_work.gmk_flag & 262144) == 0)
ply_work.truck_stick_prev_dir = num9;
}
if (((int)ply_work.gmk_flag & 1074003968) == 1074003968 && (((int)ply_work.obj_work.move_flag & 1) == 0 || (ushort)27392 >= num9 || num9 >= (ushort)38144))
{
ply_work.player_flag |= 1U;
AppMain.GmPlayerSpdParameterSet(ply_work);
}
if (((int)ply_work.gmk_flag & int.MinValue) == 0)
return;
ply_work.gmk_flag &= 1073479679U;
ply_work.obj_work.vib_timer = 0;
AppMain.GmPlayerSetDefNormal(ply_work);
AppMain.GmPlayerSpdParameterSet(ply_work);
}
private static void gmPlayerSplStgInFunc(AppMain.OBS_OBJECT_WORK obj_work)
{
AppMain.GMS_PLAYER_WORK ply_work = (AppMain.GMS_PLAYER_WORK)obj_work;
AppMain.gmPlayerKeyGet(ply_work);
AppMain.gmPlayerTimeOverCheck(ply_work);
AppMain.gmPlayerEarthTouch(ply_work);
if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE_NOT_RETRY())
{
AppMain.OBS_CAMERA obsCamera = AppMain.ObjCameraGet(AppMain.g_obj.glb_camera_id);
AppMain.g_gm_main_system.pseudofall_dir = (ushort)-obsCamera.roll;
ply_work.prev_dir_fall2 = ply_work.prev_dir_fall;
ply_work.prev_dir_fall = obj_work.dir_fall;
obj_work.dir_fall = (ushort)((int)AppMain.g_gm_main_system.pseudofall_dir + 8192 & 49152);
ply_work.jump_pseudofall_dir = AppMain.g_gm_main_system.pseudofall_dir;
}
if (ply_work.gmk_obj == null || ((int)ply_work.gmk_obj.flag & 4) == 0)
return;
ply_work.gmk_obj = (AppMain.OBS_OBJECT_WORK)null;
}
private static void gmPlayerRectTruckFunc(AppMain.OBS_OBJECT_WORK obj_work)
{
AppMain.GMS_PLAYER_WORK ply_work = (AppMain.GMS_PLAYER_WORK)obj_work;
if ((((int)obj_work.move_flag & 1) != 0 && AppMain.MTM_MATH_ABS(obj_work.spd_m) > 256 || ((int)obj_work.move_flag & 1) == 0) && (((int)ply_work.player_flag & 1024) == 0 && ply_work.seq_state != 22))
AppMain.GmPlayerSetAtk(ply_work);
else
ply_work.rect_work[1].flag &= 4294967291U;
}
private static void gmPlayerDefaultLastFunc(AppMain.OBS_OBJECT_WORK obj_work)
{
AppMain.GMS_PLAYER_WORK ply_work = (AppMain.GMS_PLAYER_WORK)obj_work;
AppMain.gmPlayerCameraOffset(ply_work);
if (ply_work.gmk_obj == null || ((int)ply_work.gmk_flag & 8) != 0)
obj_work.move_flag &= 4294950911U;
if (((int)ply_work.player_flag & 32768) == 0 || obj_work.pos.x >> 12 <= AppMain.g_gm_main_system.map_fcol.left + 128)
return;
obj_work.move_flag |= 16384U;
}
private static void gmPlayerTruckCollisionFunc(AppMain.OBS_OBJECT_WORK obj_work)
{
bool flag = false;
uint num1 = 0;
int v1 = 0;
AppMain.VecFx32 vecFx32_1 = new AppMain.VecFx32();
AppMain.VecFx32 vecFx32_2 = new AppMain.VecFx32();
AppMain.VecFx32 vecFx32_3 = new AppMain.VecFx32();
ushort num2 = 0;
ushort num3 = 0;
if (((int)obj_work.move_flag & 1) != 0 && ((int)obj_work.move_flag & 16) == 0 && AppMain.MTM_MATH_ABS(obj_work.spd_m) >= 16384)
{
flag = true;
num1 = obj_work.move_flag;
v1 = obj_work.spd_m;
vecFx32_1.Assign(obj_work.spd);
vecFx32_2.Assign(obj_work.pos);
vecFx32_3.Assign(obj_work.move);
num2 = obj_work.dir.z;
num3 = obj_work.dir_fall;
}
if (AppMain.g_obj.ppCollision != null)
AppMain.g_obj.ppCollision(obj_work);
if (flag && ((int)obj_work.move_flag & 1) != 0)
{
ushort num4 = (ushort)((uint)obj_work.dir.z - (uint)num2);
if (v1 > 0)
{
if ((ushort)4096 > num4 || num4 > (ushort)16384)
return;
}
else if ((ushort)61440 < num4 || num4 < (ushort)32768)
return;
obj_work.move_flag = num1;
obj_work.spd_m = AppMain.FX_Mul(v1, 4096);
obj_work.spd.Assign(vecFx32_1);
obj_work.pos.Assign(vecFx32_2);
obj_work.move.Assign(vecFx32_3);
obj_work.dir.z = num2;
obj_work.dir_fall = num3;
obj_work.move_flag = num1 & 4294967294U;
((AppMain.GMS_PLAYER_WORK)obj_work).gmk_flag2 |= 1U;
}
if (((int)obj_work.move_flag & 4194305) != 4194305)
return;
if ((int)obj_work.dir_fall != (int)((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir_fall)
{
((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir = (ushort)((uint)((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir + (uint)((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir_fall - (uint)obj_work.dir_fall);
((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir_fall = obj_work.dir_fall;
}
if (AppMain.MTM_MATH_ABS((int)((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir - (int)obj_work.dir.z) <= 1024)
return;
obj_work.dir.z = AppMain.ObjRoopMove16(((AppMain.GMS_PLAYER_WORK)obj_work).truck_prev_dir, obj_work.dir.z, (short)1024);
}
private static void gmPlayerAtkFunc(
AppMain.OBS_RECT_WORK mine_rect,
AppMain.OBS_RECT_WORK match_rect)
{
}
private static void gmPlayerDefFunc(
AppMain.OBS_RECT_WORK mine_rect,
AppMain.OBS_RECT_WORK match_rect)
{
if (gs.backup.SSave.CreateInstance().GetDebug().GodMode)
return;
AppMain.GMS_PLAYER_WORK parentObj1 = (AppMain.GMS_PLAYER_WORK)mine_rect.parent_obj;
AppMain.HgTrophyIncPlayerDamageCount(parentObj1);
if (((int)parentObj1.obj_work.move_flag & 32768) != 0)
{
int x = parentObj1.obj_work.spd.x;
}
else
{
int spdM = parentObj1.obj_work.spd_m;
}
if (match_rect.parent_obj.obj_type == (ushort)3)
{
AppMain.GMS_ENEMY_COM_WORK parentObj2 = (AppMain.GMS_ENEMY_COM_WORK)match_rect.parent_obj;
if ((ushort)91 <= parentObj2.eve_rec.id && parentObj2.eve_rec.id <= (ushort)94 || (parentObj2.eve_rec.id == (ushort)97 || parentObj2.eve_rec.id == (ushort)98))
AppMain.GmSoundPlaySE("Damage2");
}
if (((int)parentObj1.player_flag & 268435456) == 0 && parentObj1.ring_num == (short)0)
{
AppMain.GmPlySeqChangeDeath(parentObj1);
}
else
{
int gmkFlag = (int)parentObj1.gmk_flag;
AppMain.GmPlayerStateInit(parentObj1);
if (((int)parentObj1.player_flag & 268435456) == 0)
{
if (parentObj1.ring_num != (short)0)
AppMain.GmSoundPlaySE("Ring2");
AppMain.GmRingDamageSet(parentObj1);
AppMain.GmComEfctCreateHitEnemy(parentObj1.obj_work, ((int)mine_rect.rect.left + (int)mine_rect.rect.right) * 4096 / 2, ((int)mine_rect.rect.top + (int)mine_rect.rect.bottom) * 4096 / 2);
}
if (((int)parentObj1.player_flag & 805306368) != 0)
AppMain.GmSoundPlaySE("Damage1");
parentObj1.player_flag &= 3489660927U;
parentObj1.invincible_timer = parentObj1.time_damage;
AppMain.GmPlySeqChangeDamage(parentObj1);
}
}
private static void gmPlayerPushSet(AppMain.GMS_PLAYER_WORK ply_work)
{
if (ply_work.seq_state == 18 && ply_work.act_state == 18)
ply_work.obj_work.move_flag |= 16777216U;
else
ply_work.obj_work.move_flag &= 4278190079U;
}
private static void gmPlayerEarthTouch(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.gmk_flag & 1) == 0)
return;
if (((int)ply_work.obj_work.move_flag & 15) == 0)
return;
if (((int)ply_work.obj_work.move_flag & 1) != 0)
AppMain.GmPlySeqLandingSet(ply_work, (ushort)0);
else if (((int)ply_work.obj_work.move_flag & 2) != 0)
{
if (((int)ply_work.obj_work.disp_flag & 1) != 0)
AppMain.GmPlySeqLandingSet(ply_work, (ushort)24576);
else
AppMain.GmPlySeqLandingSet(ply_work, (ushort)40960);
AppMain.OBS_COL_CHK_DATA pData = AppMain.GlobalPool<AppMain.OBS_COL_CHK_DATA>.Alloc();
pData.pos_x = ply_work.obj_work.pos.x >> 12;
pData.pos_y = (ply_work.obj_work.pos.y >> 12) + (int)ply_work.obj_work.field_rect[1] - 4;
pData.flag = (ushort)(ply_work.obj_work.flag & 1U);
pData.vec = (ushort)3;
ushort[] numArray = new ushort[1];
pData.dir = numArray;
pData.attr = (uint[])null;
ushort z = ply_work.obj_work.dir.z;
numArray[0] = z;
AppMain.ObjDiffCollisionFast(pData);
ushort num = numArray[0];
ply_work.obj_work.dir.z = num;
AppMain.GlobalPool<AppMain.OBS_COL_CHK_DATA>.Release(pData);
}
else if (((int)ply_work.obj_work.move_flag & 4) != 0)
{
if (((int)ply_work.obj_work.disp_flag & 1) != 0)
AppMain.GmPlySeqLandingSet(ply_work, (ushort)16384);
else
AppMain.GmPlySeqLandingSet(ply_work, (ushort)49152);
}
else if (((int)ply_work.obj_work.move_flag & 8) != 0)
{
if (((int)ply_work.obj_work.disp_flag & 1) != 0)
AppMain.GmPlySeqLandingSet(ply_work, (ushort)49152);
else
AppMain.GmPlySeqLandingSet(ply_work, (ushort)16384);
}
if (((int)ply_work.gmk_flag & 2048) != 0)
{
if (ply_work.obj_work.dir.z < (ushort)32768)
{
ply_work.obj_work.disp_flag |= 1U;
ply_work.obj_work.spd_m = -AppMain.MTM_MATH_ABS(ply_work.obj_work.spd_m);
}
else
{
ply_work.obj_work.disp_flag &= 4294967294U;
ply_work.obj_work.spd_m = AppMain.MTM_MATH_ABS(ply_work.obj_work.spd_m);
}
}
else
{
if (((int)ply_work.gmk_flag & 33554432) != 0)
ply_work.obj_work.disp_flag ^= 1U;
if (((int)ply_work.gmk_flag & 2) != 0)
{
ply_work.obj_work.disp_flag ^= 1U;
ply_work.obj_work.spd_m = -ply_work.obj_work.spd_m;
}
}
ply_work.obj_work.move_flag |= 1U;
ply_work.gmk_flag &= 4261410812U;
AppMain.GmPlySeqChangeFw(ply_work);
}
private static void gmPlayerWaterCheck(AppMain.GMS_PLAYER_WORK ply_work)
{
if (AppMain.GmMainIsWaterLevel())
{
if ((ply_work.obj_work.pos.y >> 12) - -10 >= (int)AppMain.g_gm_main_system.water_level)
{
bool flag = false;
if (((int)ply_work.player_flag & 67108864) == 0)
{
if (((int)AppMain.g_gm_main_system.game_flag & 8192) == 0)
{
AppMain.GmPlyEfctCreateSpray(ply_work);
AppMain.GmPlyEfctCreateBubble(ply_work);
AppMain.GmSoundPlaySE("Spray");
}
AppMain.GmPlayerSpdParameterSetWater(ply_work, true);
}
ply_work.player_flag |= 67108864U;
if (((int)ply_work.player_flag & 16778240) == 0)
{
if ((ply_work.obj_work.pos.y >> 12) - 4 >= (int)AppMain.g_gm_main_system.water_level)
{
ply_work.water_timer = AppMain.ObjTimeCountUp(ply_work.water_timer);
}
else
{
ply_work.water_timer = 0;
AppMain.GmPlyEfctCreateRunSpray(ply_work);
flag = true;
}
}
if (((int)ply_work.player_flag & 16778240) != 0)
return;
if ((ply_work.water_timer >> 12) % 50 == 0 && ply_work.water_timer < ply_work.time_air)
AppMain.GmPlyEfctCreateBubble(ply_work);
if (!flag && (ply_work.water_timer >> 12) % 300 == 0)
{
if (((int)ply_work.gmk_flag & 524288) == 0)
AppMain.GmSoundPlaySE("Attention");
ply_work.gmk_flag |= 524288U;
}
else
ply_work.gmk_flag &= 4294443007U;
int num = ply_work.time_air - ply_work.water_timer;
if (num >= 245760 && num - 245760 <= 2457600 && (num - 245760 >> 12) % 120 == 0)
{
uint no = AppMain.MTM_MATH_CLIP((uint)((num - 245760 >> 12) / 120), 0U, 5U);
AppMain.GmPlyEfctWaterCount(ply_work, no);
}
if (num == 2826240)
AppMain.GmSoundPlayJingleObore();
else if (num > 2826240)
AppMain.GmSoundStopJingleObore();
if (ply_work.water_timer <= ply_work.time_air)
return;
AppMain.GmPlySeqChangeDeath(ply_work);
ply_work.obj_work.spd.y = 0;
AppMain.GmPlyEfctWaterDeath(ply_work);
}
else
{
if (((int)ply_work.player_flag & 67108864) != 0)
{
if (((int)AppMain.g_gm_main_system.game_flag & 8192) == 0)
{
AppMain.GmPlyEfctCreateSpray(ply_work);
AppMain.GmSoundPlaySE("Spray");
}
AppMain.GmSoundStopJingleObore();
AppMain.GmPlayerSpdParameterSetWater(ply_work, false);
}
ply_work.player_flag &= 4227858431U;
ply_work.water_timer = 0;
ply_work.obj_work.spd_fall = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall;
ply_work.obj_work.spd_fall_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall_max;
}
}
else
{
if (((int)ply_work.player_flag & 67108864) != 0)
{
ply_work.obj_work.spd_fall = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall;
ply_work.obj_work.spd_fall_max = AppMain.g_gm_player_parameter[(int)ply_work.char_id].spd_fall_max;
}
ply_work.player_flag &= 4227858431U;
ply_work.water_timer = 0;
ply_work.gmk_flag &= 4294443007U;
}
}
private static void gmPlayerTimeOverCheck(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)AppMain.g_gm_main_system.game_flag & 1327676) != 0 || ((int)ply_work.player_flag & 65536) != 0)
return;
if (!AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
{
if (((int)ply_work.player_flag & 1024) != 0 || AppMain.g_gm_main_system.game_time < 35999U)
return;
AppMain.GmPlySeqChangeDeath(ply_work);
AppMain.g_gm_main_system.game_flag |= 512U;
AppMain.g_gm_main_system.time_save = 0U;
AppMain.g_gs_main_sys_info.game_flag |= 8U;
}
else
{
if ((int)AppMain.g_gm_main_system.game_time > 0)
return;
AppMain.g_gm_main_system.game_flag |= 262144U;
AppMain.g_gm_main_system.time_save = 0U;
AppMain.g_gs_main_sys_info.game_flag |= 8U;
ply_work.obj_work.move_flag |= 8448U;
}
}
private static void gmPlayerFallDownCheck(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 1024) != 0 || AppMain.g_gm_main_system.map_size[1] - 16 << 12 > ply_work.obj_work.pos.y)
return;
AppMain.GmPlySeqChangeDeath(ply_work);
}
private static void gmPlayerPressureCheck(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 2048) != 0 && ply_work.obj_work.touch_obj == null && (((int)ply_work.obj_work.move_flag & 4) != 0 && ((int)ply_work.obj_work.move_flag & 8) != 0))
AppMain.GmPlySeqChangeDeath(ply_work);
if (ply_work.obj_work.touch_obj == null || ((int)ply_work.player_flag & 4096) != 0 || ply_work.obj_work.touch_obj.obj_type == (ushort)3 && (ply_work.obj_work.touch_obj.obj_type != (ushort)3 || ((int)((AppMain.GMS_ENEMY_COM_WORK)ply_work.obj_work.touch_obj).enemy_flag & 16384) != 0) || (ply_work.obj_work.ride_obj == null && ((int)ply_work.obj_work.move_flag & 1) != 0 && (((int)ply_work.obj_work.move_flag & 2) != 0 && ply_work.obj_work.touch_obj.move.y <= 0) || (((int)ply_work.obj_work.move_flag & 1) == 0 || ((int)ply_work.obj_work.move_flag & 2) == 0) && (((int)ply_work.obj_work.move_flag & 4) == 0 || ((int)ply_work.obj_work.move_flag & 8) == 0)))
return;
AppMain.GmPlySeqChangeDeath(ply_work);
}
private static void gmPlayerSuperSonicCheck(AppMain.GMS_PLAYER_WORK ply_work)
{
if (((int)ply_work.player_flag & 16384) == 0)
return;
ply_work.super_sonic_ring_timer = AppMain.ObjTimeCountDown(ply_work.super_sonic_ring_timer);
if (ply_work.super_sonic_ring_timer != 0)
return;
--ply_work.ring_num;
if (ply_work.ring_num <= (short)0)
{
ply_work.ring_num = (short)0;
AppMain.gmPlayerSuperSonicToSonic(ply_work);
}
else
ply_work.super_sonic_ring_timer = 245760;
}
private static void gmPlayerSuperSonicToSonic(AppMain.GMS_PLAYER_WORK ply_work)
{
AppMain.GMS_PLAYER_RESET_ACT_WORK reset_act_work = new AppMain.GMS_PLAYER_RESET_ACT_WORK();
AppMain.GmPlayerSaveResetAction(ply_work, reset_act_work);
AppMain.GmPlayerSetEndSuperSonic(ply_work);
if ((((int)ply_work.obj_work.move_flag & 1) == 0 || ((int)ply_work.obj_work.move_flag & 16) != 0) && ply_work.act_state == 21 || ply_work.act_state == 22)
{
AppMain.GmPlayerActionChange(ply_work, 42);
ply_work.obj_work.disp_flag |= 4U;
}
else
AppMain.GmPlayerResetAction(ply_work, reset_act_work);
}
private static void gmPlayerGetHomingTarget(AppMain.GMS_PLAYER_WORK ply_work)
{
float num1 = AppMain.FXM_FX32_TO_FLOAT(786432) * AppMain.FXM_FX32_TO_FLOAT(786432);
float num2 = 1.5f;
if (ply_work.homing_boost_timer != 0)
{
num2 = 1f;
ply_work.homing_boost_timer = AppMain.ObjTimeCountDown(ply_work.homing_boost_timer);
}
if (ply_work.enemy_obj != null && ((int)ply_work.enemy_obj.flag & 4) != 0)
ply_work.enemy_obj = (AppMain.OBS_OBJECT_WORK)null;
AppMain.OBS_RECT_WORK obsRectWork1 = ply_work.rect_work[2];
float num3 = AppMain.FXM_FX32_TO_FLOAT(ply_work.obj_work.pos.x);
float num4 = AppMain.FXM_FX32_TO_FLOAT(ply_work.obj_work.pos.y + ((int)obsRectWork1.rect.top + (int)obsRectWork1.rect.bottom >> 1));
int a;
int b;
if (((int)ply_work.obj_work.disp_flag & 1) != 0)
{
a = 32768;
b = 18205;
}
else
{
a = 0;
b = 14563;
}
if (b < a)
AppMain.MTM_MATH_SWAP<int>(ref a, ref b);
AppMain.OBS_OBJECT_WORK obj_work = AppMain.ObjObjectSearchRegistObject((AppMain.OBS_OBJECT_WORK)null, ushort.MaxValue);
AppMain.OBS_OBJECT_WORK obsObjectWork = (AppMain.OBS_OBJECT_WORK)null;
for (; obj_work != null; obj_work = AppMain.ObjObjectSearchRegistObject(obj_work, ushort.MaxValue))
{
if (((int)obj_work.disp_flag & 32) == 0)
{
AppMain.GMS_ENEMY_COM_WORK gmsEnemyComWork;
if (obj_work.obj_type == (ushort)3)
{
gmsEnemyComWork = (AppMain.GMS_ENEMY_COM_WORK)obj_work;
if (((int)gmsEnemyComWork.enemy_flag & 32768) != 0 || ((ushort)63 > gmsEnemyComWork.eve_rec.id || gmsEnemyComWork.eve_rec.id > (ushort)67 || gmsEnemyComWork.eve_rec.byte_param[1] != (byte)0) && (((ushort)70 > gmsEnemyComWork.eve_rec.id || gmsEnemyComWork.eve_rec.id > (ushort)79) && ((ushort)100 > gmsEnemyComWork.eve_rec.id || gmsEnemyComWork.eve_rec.id > (ushort)101)) && ((ushort)130 != gmsEnemyComWork.eve_rec.id && ((ushort)112 > gmsEnemyComWork.eve_rec.id || gmsEnemyComWork.eve_rec.id > (ushort)114) && ((ushort)163 != gmsEnemyComWork.eve_rec.id && (ushort)86 != gmsEnemyComWork.eve_rec.id && ((ushort)161 != gmsEnemyComWork.eve_rec.id && (ushort)247 != gmsEnemyComWork.eve_rec.id))))
continue;
}
else if (obj_work.obj_type == (ushort)2)
{
gmsEnemyComWork = (AppMain.GMS_ENEMY_COM_WORK)obj_work;
if (((int)gmsEnemyComWork.enemy_flag & 32768) != 0)
continue;
}
else
continue;
AppMain.OBS_RECT_WORK obsRectWork2 = gmsEnemyComWork.rect_work[2];
float num5 = AppMain.FXM_FX32_TO_FLOAT(obj_work.pos.x);
float num6 = AppMain.FXM_FX32_TO_FLOAT(obj_work.pos.y + ((int)obsRectWork2.rect.top + (int)obsRectWork2.rect.bottom >> 1));
float num7 = num5 - num3;
float num8 = num6 - num4;
int num9 = AppMain.nnArcTan2((double)num8, (double)num7);
if (num9 >= a && num9 <= b)
{
float num10 = num8 * num2;
float num11 = (float)((double)num7 * (double)num7 + (double)num10 * (double)num10);
if ((double)num11 < (double)num1)
{
num1 = num11;
obsObjectWork = obj_work;
}
}
}
}
ply_work.enemy_obj = obsObjectWork;
if (ply_work.cursol_enemy_obj == ply_work.enemy_obj && AppMain.GmPlySeqCheckAcceptHoming(ply_work))
return;
ply_work.cursol_enemy_obj = (AppMain.OBS_OBJECT_WORK)null;
}
private static void gmPlayerKeyGet(AppMain.GMS_PLAYER_WORK ply_work)
{
if (ply_work.no_key_timer != 0 || ((int)ply_work.player_flag & 4194304) != 0)
{
ply_work.no_key_timer = AppMain.ObjTimeCountDown(ply_work.no_key_timer);
ply_work.key_on = (ushort)0;
ply_work.key_push = (ushort)0;
ply_work.key_repeat = (ushort)0;
ply_work.key_release = (ushort)0;
ply_work.key_rot_z = 0;
ply_work.key_walk_rot_z = 0;
}
else
{
if (((int)ply_work.player_flag & 4194304) == 0 && ply_work.player_id == (byte)0)
{
int rotZ = AppMain.gmPlayerKeyGetRotZ(ply_work);
ply_work.prev_key_rot_z = ply_work.key_rot_z;
ply_work.key_rot_z = rotZ;
ushort num1 = AppMain.gmPlayerRemapKey(ply_work, (ushort)0, rotZ);
ushort num2 = (ushort)((uint)ply_work.key_on ^ (uint)num1);
ply_work.key_push = (ushort)((uint)num2 & (uint)num1);
ply_work.key_release = (ushort)((uint)num2 & (uint)~num1);
ply_work.key_on = num1;
ply_work.key_repeat = (ushort)0;
for (int index = 0; index < 8; ++index)
{
if (((int)ply_work.key_on & (int)AppMain.gm_key_map_key_list[index]) == 0)
ply_work.key_repeat_timer[index] = 30;
else if (--ply_work.key_repeat_timer[index] == 0)
{
ply_work.key_repeat |= (ushort)((uint)ply_work.key_on & (uint)(ushort)AppMain.gm_key_map_key_list[index]);
ply_work.key_repeat_timer[index] = 5;
}
}
ply_work.key_walk_rot_z = 0;
if (((int)AppMain.g_gs_main_sys_info.game_flag & 1) != 0)
{
if (((int)ply_work.key_on & 8) != 0)
ply_work.key_walk_rot_z = (int)short.MaxValue;
else if (((int)ply_work.key_on & 4) != 0)
ply_work.key_walk_rot_z = -32767;
}
else
ply_work.key_walk_rot_z = rotZ;
}
if (!AppMain.GMM_MAIN_STAGE_IS_ENDING())
return;
AppMain.GmEndingPlyKeyCustom(ply_work);
}
}
private static ushort gmPlayerRemapKey(
AppMain.GMS_PLAYER_WORK ply_work,
ushort key,
int key_rot_z)
{
ushort num1 = (ushort)((uint)key & 4294967056U);
if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE() || AppMain.g_gs_main_sys_info.stage_id == (ushort)9)
{
if (((int)AppMain.g_gs_main_sys_info.game_flag & 512) != 0)
{
int focusTpIndex = AppMain.CPadPolarHandle.CreateInstance().GetFocusTpIndex();
if (AppMain.gmPlayerIsInputDPadJumpKey(ply_work, focusTpIndex))
num1 |= ply_work.key_map[4];
if (AppMain.gmPlayerIsInputDPadSSonicKey(ply_work, focusTpIndex))
num1 |= ply_work.key_map[6];
}
else
num1 |= AppMain.gmPlayerRemapKeyIPhoneZone32SS(ply_work);
}
else if (((int)AppMain.g_gs_main_sys_info.game_flag & 1) != 0)
{
CPadVirtualPad cpadVirtualPad = CPadVirtualPad.CreateInstance();
int num2 = cpadVirtualPad.IsValid() ? cpadVirtualPad.GetValue() : (int)AoPad.AoPadMDirect();
if ((8 & (int)num2) != 0)
num1 |= ply_work.key_map[3];
else if ((4 & (int)num2) != 0)
num1 |= ply_work.key_map[2];
else if ((1 & (int)num2) != 0)
num1 |= ply_work.key_map[0];
else if ((2 & (int)num2) != 0)
num1 |= ply_work.key_map[1];
if (AppMain.gmPlayerIsInputDPadJumpKey(ply_work, -1))
num1 |= ply_work.key_map[4];
if (AppMain.gmPlayerIsInputDPadSSonicKey(ply_work, -1))
num1 |= ply_work.key_map[6];
}
else
{
if (key_rot_z > 1024)
num1 |= (ushort)8;
else if (key_rot_z < -1024)
num1 |= (ushort)4;
num1 |= AppMain.gmPlayerRemapKeyIPhone(ply_work);
}
if ((32 & (int)key) != 0)
num1 |= ply_work.key_map[4];
if ((128 & (int)key) != 0)
num1 |= ply_work.key_map[5];
if ((64 & (int)key) != 0)
num1 |= ply_work.key_map[6];
if ((16 & (int)key) != 0)
num1 |= ply_work.key_map[7];
return num1;
}
private static int gmPlayerKeyGetRotZ(AppMain.GMS_PLAYER_WORK ply_work)
{
ply_work.is_nudge = false;
int stageId = (int)AppMain.g_gs_main_sys_info.stage_id;
if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE())
{
AppMain.NNS_VECTOR core = AppMain._am_iphone_accel_data.core;
AppMain.NNS_VECTOR calcAccel = ply_work.calc_accel;
calcAccel.x = (float)((double)core.x * 0.100000001490116 + (double)calcAccel.x * 0.899999976158142);
calcAccel.y = (float)((double)core.y * 0.100000001490116 + (double)calcAccel.y * 0.899999976158142);
calcAccel.y = (float)((double)core.y * 0.100000001490116 + (double)calcAccel.y * 0.899999976158142);
float num1 = core.x - calcAccel.x;
float num2 = core.y - calcAccel.y;
float num3 = core.z - calcAccel.z;
if ((double)AppMain.nnSqrt((float)((double)num1 * (double)num1 + (double)num2 * (double)num2 + (double)num3 * (double)num3)) >= 2.0)
ply_work.is_nudge = true;
}
int num4;
if (AppMain.GSM_MAIN_STAGE_IS_SPSTAGE() && ((int)AppMain.g_gs_main_sys_info.game_flag & 512) != 0)
num4 = AppMain.g_gm_main_system.polar_diff;
else if (stageId == 9 && ((int)AppMain.g_gs_main_sys_info.game_flag & 512) != 0)
{
num4 = AppMain.g_gm_main_system.polar_diff;
}
else
{
int num1 = (int)((double)AppMain._am_iphone_accel_data.sensor.x * 16384.0);
if (num1 < 2048 && num1 > -2048)
{
num4 = 0;
}
else
{
num4 = num1 * 3;
if (num4 > 32768)
num4 = 32768;
else if (num4 < (int)short.MinValue)
num4 = (int)short.MinValue;
}
}
return num4;
}
private static ushort gmPlayerRemapKeyIPhone(AppMain.GMS_PLAYER_WORK ply_work)
{
ushort num1 = 0;
if (AppMain.GmMainKeyCheckPauseKeyPush() != -1)
return num1;
int seqState = ply_work.seq_state;
if (ply_work.safe_timer > 0)
{
--ply_work.safe_timer;
if (AppMain.amTpIsTouchPull(0))
{
ply_work.safe_timer = 0;
ply_work.safe_jump_timer = 10;
}
else if (ply_work.safe_timer == 0)
ply_work.safe_spin_timer = 3;
}
else if (ply_work.safe_jump_timer > 0)
{
--ply_work.safe_jump_timer;
num1 |= (ushort)32;
}
else if (ply_work.safe_spin_timer != 0)
{
uint num2 = ply_work.obj_work.disp_flag & 1U;
if (AppMain.amTpIsTouchPull(0))
ply_work.safe_spin_timer = 0;
switch (ply_work.safe_spin_timer)
{
case 1:
num1 |= (ushort)2;
if (!AppMain.amTpIsTouchPull(0) && (seqState == 6 || seqState == 7 || seqState == 8))
{
num1 |= (ushort)32;
break;
}
break;
case 2:
if (seqState != 2)
ply_work.safe_spin_timer = 1;
num1 |= (ushort)2;
break;
case 3:
ushort num3;
if (AppMain.ObjTouchCheck(ply_work.obj_work, AppMain.gm_ply_touch_rect[1]) != (ushort)0)
{
num3 = num2 == 0U ? (ushort)4 : (ushort)8;
ply_work.safe_spin_timer = 2;
}
else
{
num3 = (ushort)2;
ply_work.safe_spin_timer = 1;
}
num1 |= num3;
break;
}
}
else
{
bool flag1 = AppMain.amTpIsTouchOn(0);
bool flag2 = AppMain.amTpIsTouchPush(0);
if (AppMain.GmPlayerIsTransformSuperSonic(ply_work) && flag1 && AppMain.GMM_PLAYER_IS_TOUCH_SUPER_SONIC_REGION((int)AppMain._am_tp_touch[0].on[0], (int)AppMain._am_tp_touch[0].on[1]))
num1 |= (ushort)80;
if (((int)num1 & 80) == 0)
{
ushort num2 = 0;
uint num3 = ply_work.obj_work.disp_flag & 1U;
ushort num4 = AppMain.ObjTouchCheck(ply_work.obj_work, AppMain.gm_ply_touch_rect[0]);
if (num4 == (ushort)0 && AppMain.ObjTouchCheck(ply_work.obj_work, AppMain.gm_ply_touch_rect[1]) != (ushort)0)
{
num4 = (ushort)1;
num2 = num3 == 0U ? (ushort)4 : (ushort)8;
}
if (num4 != (ushort)0)
{
if (AppMain._am_tp_touch[0].on[0] < (ushort)80 || AppMain._am_tp_touch[0].on[0] > (ushort)400)
{
ply_work.safe_timer = 25;
}
else
{
switch (seqState)
{
case 0:
case 9:
if (num2 != (ushort)0)
{
num1 |= num2;
break;
}
if (flag2 || flag1)
{
num1 |= (ushort)2;
break;
}
break;
case 1:
if (flag2 || flag1)
{
ply_work.spin_state = 3;
num1 |= (ushort)2;
break;
}
break;
case 2:
if (flag2 | flag1)
{
num1 |= (ushort)2;
break;
}
break;
case 6:
case 7:
case 8:
if (flag2 || flag1)
{
num1 |= (ushort)34;
break;
}
break;
case 11:
case 12:
if (flag2 | flag1)
{
num1 |= (ushort)2;
break;
}
break;
default:
if (ply_work.spin_state != 3)
{
if (flag2 || flag1)
{
ply_work.spin_state = 0;
num1 |= (ushort)32;
break;
}
break;
}
goto case 1;
}
}
}
else
{
ply_work.spin_state = 0;
if (flag2 || flag1)
num1 |= (ushort)32;
}
}
}
return num1;
}
private static ushort gmPlayerRemapKeyIPhoneZone32SS(AppMain.GMS_PLAYER_WORK ply_work)
{
ushort num = 0;
if (AppMain.GmMainKeyCheckPauseKeyPush() != -1)
return num;
for (int index = 0; index < 4; ++index)
{
bool flag1 = AppMain.amTpIsTouchOn(index);
bool flag2 = AppMain.amTpIsTouchPush(index);
if (AppMain.GmPlayerIsTransformSuperSonic(ply_work) && flag1 && AppMain.GMM_PLAYER_IS_TOUCH_SUPER_SONIC_REGION((int)AppMain._am_tp_touch[index].on[0], (int)AppMain._am_tp_touch[index].on[1]))
num |= (ushort)80;
if (((int)num & 80) == 0 && (flag2 || flag1))
num |= (ushort)32;
if (num != (ushort)0)
break;
}
return num;
}
private static bool gmPlayerIsInputDPadJumpKey(AppMain.GMS_PLAYER_WORK ply_work, int ignore_key)
{
if ((AoPad.AoPadMDirect() & ControllerConsts.JUMP_BUTTON) != 0)
return true;
if (ply_work.control_type == 2)
return false;
if (ply_work.jump_rect == null)
{
AppMain.mppAssertNotImpl();
return false;
}
bool flag = false;
for (int index = 0; index < 4; ++index)
{
if ((index != ignore_key || AppMain.amTpIsTouchPush(index)) && AppMain.amTpIsTouchOn(index))
{
short num1 = (short)AppMain._am_tp_touch[index].on[0];
short num2 = (short)AppMain._am_tp_touch[index].on[1];
if ((int)ply_work.jump_rect[0] <= (int)num1 && (int)num1 <= (int)ply_work.jump_rect[2] && ((int)ply_work.jump_rect[1] <= (int)num2 && (int)num2 <= (int)ply_work.jump_rect[3]))
{
flag = true;
break;
}
}
}
return flag;
}
private static bool gmPlayerIsInputDPadSSonicKey(AppMain.GMS_PLAYER_WORK ply_work, int ignore_key)
{
if ((AoPad.AoPadMDirect() & ControllerConsts.SUPER_SONIC) != 0)
return true;
if (ply_work.control_type == 2)
return false;
bool flag = false;
for (int index = 0; index < 4; ++index)
{
if ((index != ignore_key || AppMain.amTpIsTouchPush(index)) && AppMain.amTpIsTouchOn(index))
{
short num1 = (short)AppMain._am_tp_touch[index].on[0];
short num2 = (short)AppMain._am_tp_touch[index].on[1];
if ((int)ply_work.ssonic_rect[0] <= (int)num1 && (int)num1 <= (int)ply_work.ssonic_rect[2] && ((int)ply_work.ssonic_rect[1] <= (int)num2 && (int)num2 <= (int)ply_work.ssonic_rect[3]))
{
flag = true;
break;
}
}
}
return flag;
}
private static void gmPlayerCameraOffset(AppMain.GMS_PLAYER_WORK ply_work)
{
byte num1 = 4;
if (ply_work.player_id != (byte)0 || AppMain.GSM_MAIN_STAGE_IS_SPSTAGE_NOT_RETRY())
return;
if (ply_work.gmk_obj == null)
{
ply_work.gmk_flag &= 4227858431U;
ply_work.gmk_camera_gmk_center_ofst_x = (short)0;
ply_work.gmk_camera_gmk_center_ofst_y = (short)0;
}
short num2 = 0;
short num3 = 0;
if (((int)ply_work.player_flag & 8192) != 0)
{
ply_work.camera_ofst_x -= ply_work.camera_ofst_x >> 2;
ply_work.camera_ofst_y -= ply_work.camera_ofst_y >> 2;
}
else if (((int)ply_work.gmk_flag & 67108864) != 0)
{
ply_work.camera_ofst_x += ply_work.camera_ofst_tag_x - ply_work.camera_ofst_x + ((int)ply_work.gmk_camera_center_ofst_x + (int)ply_work.gmk_camera_gmk_center_ofst_x << 12) >> (int)num1;
ply_work.camera_ofst_y += ply_work.camera_ofst_tag_y - ply_work.camera_ofst_y + ((int)ply_work.gmk_camera_center_ofst_y + (int)ply_work.gmk_camera_gmk_center_ofst_y << 12) >> (int)num1;
}
else
{
ply_work.camera_ofst_x += ply_work.camera_ofst_tag_x - ply_work.camera_ofst_x + ((int)ply_work.gmk_camera_center_ofst_x << 12) >> (int)num1;
ply_work.camera_ofst_y += ply_work.camera_ofst_tag_y - ply_work.camera_ofst_y + ((int)ply_work.gmk_camera_center_ofst_y << 12) >> (int)num1;
}
AppMain.OBS_CAMERA obsCamera = AppMain.ObjCameraGet(0);
obsCamera.ofst.x = AppMain.FXM_FX32_TO_FLOAT(((int)num2 << 12) + ply_work.camera_ofst_x);
obsCamera.ofst.y = AppMain.FXM_FX32_TO_FLOAT(((int)num3 << 12) + ply_work.camera_ofst_y);
}
public static void gmGmkPlayerMotionCallbackTruck(
AppMain.AMS_MOTION motion,
AppMain.NNS_OBJECT _object,
object param)
{
AppMain.NNS_MATRIX mtx = AppMain.GlobalPool<AppMain.NNS_MATRIX>.Alloc();
AppMain.NNS_MATRIX nnsMatrix = AppMain.GlobalPool<AppMain.NNS_MATRIX>.Alloc();
AppMain.GMS_PLAYER_WORK gmsPlayerWork = (AppMain.GMS_PLAYER_WORK)param;
AppMain.nnMakeUnitMatrix(nnsMatrix);
AppMain.nnMultiplyMatrix(nnsMatrix, nnsMatrix, AppMain.amMatrixGetCurrent());
AppMain.nnCalcNodeMatrixTRSList(mtx, _object, AppMain.GMD_PLAYER_NODE_ID_TRUCK_CENTER, (AppMain.ArrayPointer<AppMain.NNS_TRS>)motion.data, nnsMatrix);
mtx.Assign(gmsPlayerWork.truck_mtx_ply_mtn_pos);
}
} | 45.439054 | 711 | 0.599541 | [
"Unlicense"
] | WanKerr/Sonic4Episode1 | Sonic4Episode1/AppMain/Gm/GmPlayer.cs | 111,464 | C# |
//using UnityEngine;
//using System.Collections;
//
//public class DeathText : MonoBehaviour {
//
// private GameObject EndText;
//
// // Use this for initialization
// void Start () {
// // Setting up the reference.
// EndText = GameObject.Find("End_Text");
// }
//
// // Update is called once per frame
// void Update () {
// if (!(GameObject.FindGameObjectWithTag("Player"))) {
// guiText.text = "You Died!";
// }
// }
//} | 21.65 | 56 | 0.625866 | [
"MIT"
] | jooshkins/Divided | Unused Scripts/DeathText.cs | 435 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.AspNetCore.Components.Web;
namespace HelloKitty.NetCore.Mvc
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddServerSideBlazor();
services.AddMvc();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapBlazorHub();
endpoints.MapDefaultControllerRoute();
endpoints.MapRazorPages();
endpoints.MapFallbackToController("AppHost", "MyBlazor");
});
}
}
}
| 32.327586 | 143 | 0.624 | [
"MIT"
] | bomber-lomber/netcore-edu | HelloKitty.NetCore.Mvc/Startup.cs | 1,875 | C# |
/*
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
*
* The version of the OpenAPI document: v0.0.1-alpha.30
* Contact: support@ory.sh
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter;
namespace Ory.Client.Model
{
/// <summary>
/// The Active Project ID
/// </summary>
[DataContract(Name = "activeProject")]
public partial class ClientActiveProject : IEquatable<ClientActiveProject>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ClientActiveProject" /> class.
/// </summary>
/// <param name="projectId">The Active Project ID format: uuid.</param>
public ClientActiveProject(string projectId = default(string))
{
this.ProjectId = projectId;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// The Active Project ID format: uuid
/// </summary>
/// <value>The Active Project ID format: uuid</value>
[DataMember(Name = "project_id", EmitDefaultValue = false)]
public string ProjectId { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ClientActiveProject {\n");
sb.Append(" ProjectId: ").Append(ProjectId).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ClientActiveProject);
}
/// <summary>
/// Returns true if ClientActiveProject instances are equal
/// </summary>
/// <param name="input">Instance of ClientActiveProject to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ClientActiveProject input)
{
if (input == null)
return false;
return
(
this.ProjectId == input.ProjectId ||
(this.ProjectId != null &&
this.ProjectId.Equals(input.ProjectId))
)
&& (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.ProjectId != null)
hashCode = hashCode * 59 + this.ProjectId.GetHashCode();
if (this.AdditionalProperties != null)
hashCode = hashCode * 59 + this.AdditionalProperties.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
| 35.453237 | 179 | 0.601461 | [
"Apache-2.0"
] | ory/sdk | clients/client/dotnet/src/Ory.Client/Model/ClientActiveProject.cs | 4,928 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ImaginCrud.Entities
{
/// <summary>
/// Datos de paginación de una consulta
/// </summary>
public class Pagining
{
#region paginación
/// <summary>
/// Página de la consulta, 0 es todas
/// </summary>
public int Page { get; set; }
/// <summary>
/// Elementos por página
/// </summary>
public int ItemsByPage { get; set; }
/// <summary>
/// Total de elementos de la consulta
/// </summary>
public int TotalItems { get; set; }
/// <summary>
/// Columna por la que se ordena la columna
/// </summary>
public string SortBy { get; set; }
/// <summary>
/// Indica si se ordena descendientemente
/// </summary>
public bool IsDescendentOrder { get; set; }
#endregion
}
}
| 26.078947 | 51 | 0.54894 | [
"Unlicense"
] | ludaher/imagincrud | ImaginCrud.Entities/Pagining.cs | 997 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using API.Data;
using API.Data.Repository;
using API.Models;
using API.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
namespace API
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<QsContext>(o =>
{
var connectionString = Environment.GetEnvironmentVariable("ConnectionString");
if (connectionString != null)
{
o.UseSqlServer(connectionString,
sqlOptions => sqlOptions.EnableRetryOnFailure(50, TimeSpan.FromSeconds(30), null));
}
});
services.AddControllers();
services.AddScoped<IUserService, UserService>();
services.AddScoped<IUserRepository, UserRepository>();
services.AddScoped<IDeviceRepository, DeviceRepository>();
services.AddScoped<IDeviceService, DeviceService>();
services.AddScoped<IDataPointRepository, DataPointRepository>();
services.AddScoped<IDataPointService, DataPointService>();
services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo {Title = "API", Version = "v1"}); });
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "API v1"));
}
using (var scope =
app.ApplicationServices.CreateScope())
using (var context = scope.ServiceProvider.GetService<QsContext>())
context?.Database.EnsureCreated();
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
}
}
} | 36.649351 | 114 | 0.638909 | [
"MIT"
] | Quantified-Student-Watch/api-backend | API/Startup.cs | 2,822 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal static partial class Advapi32
{
[GeneratedDllImport(Libraries.Advapi32)]
internal static partial int EventActivityIdControl(ActivityControl ControlCode, ref Guid ActivityId);
}
}
| 29.8 | 109 | 0.760626 | [
"MIT"
] | BodyBuildingKang/runtime | src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventActivityIdControl.cs | 447 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TroydonFitnessWebsite.Models.Products
{
public class Product
{
// Primary Key
public int ProductID { get; set; }
// Navigation Properties
// ICollextion used for tables that this table has a one-to-many relationship with, e.g one product to many supps
public ICollection<Supplement> Supplements { get; set; }
public ICollection<TrainingEquipment> TrainingEquipmentPurchases { get; set; }
public ICollection<PersonalTraining> PersonalTrainingSessions { get; set; }
// Class Product Details
public string Title { get; set; }
public string ShortDescription { get; set; }
// Below Details to be passed down to sub classess
// TODO: Make price quantity and has stock as optional as some items need to be individually priced, update in order too
[DataType(DataType.Currency)]
public decimal? Price { get; set; }
public int? Quantity { get; set; }
[Display(Name = "Stock Availability")]
public Availability? HasStock { get; set; }
public enum Availability
{
Available,
Unavailable,
ComingSoon
}
[Required]
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd hh:mm:ss}", ApplyFormatInEditMode = true)]
[Display(Name = "Last Updated")]
public DateTime LastUpdated { get; set; } // TODO: when a product price is modified, or a new one is added, we want an auto time stamp updated to the database
// [NotMapped]
public bool IsChecked { get; set; }
// For Admin
// property Sold (to be auto increment on purchase)
}
}
| 36.784314 | 166 | 0.648188 | [
"MIT"
] | TroydonAnabolic/TroydonFitness | DockerVersion/TroydonFitnessWebsite/TroydonFitnessWebsite/Models/Products/Product.cs | 1,878 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using RestaurantReviewsLibrary;
namespace RestaurantReviewsTests
{
[TestClass]
public class Tests
{
private Restaurant restaurant1 = new Restaurant
{
RestaurantAddress = "14162 Kedzie Circle",
RestaurantCity = "Warren",
RestaurantName = "Schinner-Hoppe",
RestaurantState = "OH",
RestaurantPhoneNumber = "330-322-1739",
RestaurantURL = "http://examiner.com",
CustomerRating = 1.0f
};
private Restaurant restaurant2 = new Restaurant
{
RestaurantAddress = "123 Name Circle",
RestaurantCity = "Boston",
RestaurantName = "McDonald's",
RestaurantState = "MA",
RestaurantPhoneNumber = "123-456-7891",
RestaurantURL = "http://website.com",
CustomerRating = 2.0f
};
private Restaurant restaurant3 = new Restaurant
{
RestaurantAddress = "12 Something Road",
RestaurantCity = "Tampa",
RestaurantName = "Joe's Burgers",
RestaurantState = "FL",
RestaurantPhoneNumber = "987-456-1234",
RestaurantURL = "http://joesburgers.com",
CustomerRating = 3.0f
};
private Restaurant restaurant4 = new Restaurant
{
RestaurantAddress = "4th street",
RestaurantCity = "New York",
RestaurantName = "Fourth Street Diner",
RestaurantState = "NY",
RestaurantPhoneNumber = "123-123-1234",
RestaurantURL = "http://4thstreet.com",
CustomerRating = 4.0f
};
private List<Restaurant> actualList;
[TestMethod]
public void DeserializeFromJSON_Test()
{
//Arrange
Restaurant expected = new Restaurant
{
RestaurantAddress = "14162 Kedzie Circle",
RestaurantCity = "Warren",
RestaurantName = "Schinner-Hoppe",
RestaurantState = "OH",
RestaurantPhoneNumber = "330-322-1739",
RestaurantURL = "http://examiner.com"
};
//Act
Restaurant actual = Deserialize.FromJson(@"{
'RestaurantName': 'Schinner-Hoppe',
'RestaurantAddress': '14162 Kedzie Circle',
'RestaurantPhoneNumber': '330-322-1739',
'RestaurantURL': 'http://examiner.com',
'RestaurantCity': 'Warren',
'RestaurantState': 'OH'
}");
//Assert
Assert.AreEqual(expected, actual);
}
[TestMethod]
public void SortByRating_Test()
{
actualList = new List<Restaurant>();
SortLogic sort = new SortLogic();
actualList.Add(restaurant1);
actualList.Add(restaurant2);
actualList.Add(restaurant3);
actualList.Add(restaurant4);
Restaurant actual = actualList[3];
List<Restaurant> expectedList/* = new List<Restaurant>();
expectedList*/ = (List<Restaurant>)sort.SortByRating(3, actualList);
Restaurant expected = expectedList[0];
Assert.AreEqual(actual, expected,expected.CustomerRating+" "+actual.CustomerRating);
}
[TestMethod]
public void SortByNameAscending_Test()
{
actualList = new List<Restaurant>();
SortLogic sort = new SortLogic();
actualList.Add(restaurant1);
actualList.Add(restaurant2);
actualList.Add(restaurant3);
actualList.Add(restaurant4);
Restaurant actual = actualList[3];
List<Restaurant> expectedList = new List<Restaurant>();
expectedList = (List<Restaurant>)sort.SortByNameAscending(actualList);
Restaurant expected = expectedList[0];
Assert.AreEqual(actual, expected,expected.RestaurantName+" "+actual.RestaurantName);
}
//[TestMethod]
//public void SearchRestaurantByName_Test()
//{
// actualList = new List<Restaurant>();
// SortLogic sort = new SortLogic();
// actualList.Add(restaurant1);
// actualList.Add(restaurant2);
// actualList.Add(restaurant3);
// actualList.Add(restaurant4);
// Restaurant actual = actualList[0];
// List<Restaurant> expectedList = new List<Restaurant>();
// expectedList = (List<Restaurant>)sort.SearchRestaurantByName("M",actualList);
// Restaurant expected = expectedList[0];
// Assert.AreEqual(actual, expected, expected.RestaurantName + " " + actual.RestaurantName);
//}
}
}
| 35.453237 | 103 | 0.566153 | [
"MIT"
] | 1804-Apr-USFdotnet/Pedro-Rivera-Project1 | RestaurantReviews/RestaurantReviewsTests/UnitTest1.cs | 4,930 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
/*
* Do not modify this file. This file is generated from the robomaker-2018-06-29.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.RoboMaker.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.RoboMaker.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeRobot operation
/// </summary>
public class DescribeRobotResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeRobotResponse response = new DescribeRobotResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("architecture", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Architecture = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("createdAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("fleetArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FleetArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("greengrassGroupId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.GreengrassGroupId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("lastDeploymentJob", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.LastDeploymentJob = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("lastDeploymentTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.LastDeploymentTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return new InternalServerException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return new InvalidParameterException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return new ResourceNotFoundException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return new ThrottlingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
return new AmazonRoboMakerException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static DescribeRobotResponseUnmarshaller _instance = new DescribeRobotResponseUnmarshaller();
internal static DescribeRobotResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeRobotResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 42.378882 | 169 | 0.607651 | [
"Apache-2.0"
] | Bio2hazard/aws-sdk-net | sdk/src/Services/RoboMaker/Generated/Model/Internal/MarshallTransformations/DescribeRobotResponseUnmarshaller.cs | 6,823 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DistributionViewModel;
using Telerik.Windows.Controls.Data.DataForm;
using DistributionModel;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Calendar;
using View.Extension;
using SysProcessViewModel;
namespace DistributionView.RetailManage
{
/// <summary>
/// Interaction logic for MonthSaleTaget.xaml
/// </summary>
public partial class MonthSaleTaget : UserControl
{
MonthSaleTagetVM _dataContext = new MonthSaleTagetVM();
public MonthSaleTaget()
{
this.DataContext = _dataContext;
InitializeComponent();
}
private void myRadDataForm_EditEnding(object sender, EditEndingEventArgs e)
{
SysProcessView.UIHelper.AddOrUpdateRecord<RetailMonthTaget>(myRadDataForm, _dataContext, e);
}
private void myRadDataForm_DeletingItem(object sender, System.ComponentModel.CancelEventArgs e)
{
View.Extension.UIHelper.DeleteRecord<RetailMonthTaget>(myRadDataForm, _dataContext, e);
}
private void myRadDataForm_BeginningEdit(object sender, System.ComponentModel.CancelEventArgs e)
{
RetailMonthTaget kind = (RetailMonthTaget)myRadDataForm.CurrentItem;
if (kind.OrganizationID == VMGlobal.CurrentUser.OrganizationID)
{
MessageBox.Show("不能修改本机构自身的月度指标.");
e.Cancel = true;
}
}
private void radDataFilter_EditorCreated(object sender, Telerik.Windows.Controls.Data.DataFilter.EditorCreatedEventArgs e)
{
if (e.ItemPropertyDefinition.PropertyName == "Year")
{
RadDatePicker dateTimePickerEditor = (RadDatePicker)e.Editor;
//dateTimePickerEditor.InputMode = Telerik.Windows.Controls.InputMode.DatePicker;
dateTimePickerEditor.SelectionChanged += (ss, ee) =>
{
if (ee.AddedItems.Count > 0)
{
DateTime date = (DateTime)ee.AddedItems[0];
dateTimePickerEditor.DateTimeText = date.Year.ToString();
}
};
}
//bug,虽然value变了,但显示在界面上的还是1月,估计是作为查询条件控件时就有的bug
//else if (e.ItemPropertyDefinition.PropertyName == "Month")
//{
// RadNumericUpDown num = (RadNumericUpDown)e.Editor;
// num.Value = DateTime.Now.Month;
//}
}
private void RadDatePicker_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.AddedItems.Count > 0)
{
RadDatePicker datePicker = (RadDatePicker)sender;
DateTime date = (DateTime)e.AddedItems[0];
datePicker.DateTimeText = date.ToString("yyyy-MM");
}
}
private void btnBatchSet_Click(object sender, RoutedEventArgs e)
{
MonthSaleTargetBatchSetWin win = new MonthSaleTargetBatchSetWin();
win.Owner = UIHelper.GetAncestor<Window>(this);
win.SetCompleted += delegate
{
_dataContext.SearchCommand.Execute(null);
};
win.ShowDialog();
}
}
}
| 35.529412 | 130 | 0.627759 | [
"MIT"
] | tuoxieyz/fashionDRP | DistributionView/RetailManage/MonthSaleTaget.xaml.cs | 3,718 | C# |
using VkNet.Utils;
namespace VkNet.Enums.SafetyEnums
{
/// <summary>
/// Фильтр для задания типов сообщений, которые необходимо получить со стены.
/// </summary>
public sealed class WallFilter : SafetyEnum<WallFilter>
{
/// <summary>
/// Необходимо получить сообщения на стене только от ее владельца.
/// </summary>
public static readonly WallFilter Owner = RegisterPossibleValue("owner");
/// <summary>
/// Необходимо получить сообщения на стене не от владельца стены.
/// </summary>
public static readonly WallFilter Others = RegisterPossibleValue("others");
/// <summary>
/// Необходимо получить все сообщения на стене (Owner + Others).
/// </summary>
[DefaultValue]
public static readonly WallFilter All = RegisterPossibleValue("all");
/// <summary>
/// Отложенные записи
/// </summary>
public static readonly WallFilter Suggests = RegisterPossibleValue("suggests");
/// <summary>
/// Предложенные записи на стене сообщества
/// </summary>
public static readonly WallFilter Postponed = RegisterPossibleValue("postponed");
}
} | 30.083333 | 83 | 0.711911 | [
"MIT"
] | uid17/VK | VkNet/Enums/SafetyEnums/WallFilter.cs | 1,340 | C# |
using System;
namespace ForStatement
{
class ForStatement
{
static void Main()
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine(i);
}
}
}
}
| 14.5 | 40 | 0.396552 | [
"MIT"
] | Firelexic/Learned | C#/From Web/ZetCode Project/ForStatement/ForStatement/ForStatement.cs | 234 | C# |
// DeflaterHuffman.cs
//
// Copyright (C) 2001 Mike Krueger
// Copyright (C) 2004 John Reilly
//
// This file was translated from java, it was part of the GNU Classpath
// Copyright (C) 2001 Free Software Foundation, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// Linking this library statically or dynamically with other modules is
// making a combined work based on this library. Thus, the terms and
// conditions of the GNU General Public License cover the whole
// combination.
//
// As a special exception, the copyright holders of this library give you
// permission to link this library with independent modules to produce an
// executable, regardless of the license terms of these independent
// modules, and to copy and distribute the resulting executable under
// terms of your choice, provided that you also meet, for each linked
// independent module, the terms and conditions of the license of that
// module. An independent module is a module which is not derived from
// or based on this library. If you modify this library, you may extend
// this exception to your version of the library, but you are not
// obligated to do so. If you do not wish to do so, delete this
// exception statement from your version.
using System;
// ReSharper disable RedundantThisQualifier
namespace PdfSharpCore.SharpZipLib.Zip.Compression
{
/// <summary>
/// This is the DeflaterHuffman class.
///
/// This class is <i>not</i> thread safe. This is inherent in the API, due
/// to the split of Deflate and SetInput.
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
internal class DeflaterHuffman
{
const int BUFSIZE = 1 << (DeflaterConstants.DEFAULT_MEM_LEVEL + 6);
const int LITERAL_NUM = 286;
// Number of distance codes
const int DIST_NUM = 30;
// Number of codes used to transfer bit lengths
const int BITLEN_NUM = 19;
// repeat previous bit length 3-6 times (2 bits of repeat count)
const int REP_3_6 = 16;
// repeat a zero length 3-10 times (3 bits of repeat count)
const int REP_3_10 = 17;
// repeat a zero length 11-138 times (7 bits of repeat count)
const int REP_11_138 = 18;
const int EOF_SYMBOL = 256;
// The lengths of the bit length codes are sent in order of decreasing
// probability, to avoid transmitting the lengths for unused bit length codes.
static readonly int[] BL_ORDER = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 };
static readonly byte[] bit4Reverse = {
0,
8,
4,
12,
2,
10,
6,
14,
1,
9,
5,
13,
3,
11,
7,
15
};
static short[] staticLCodes;
static byte[] staticLLength;
static short[] staticDCodes;
static byte[] staticDLength;
class Tree
{
#region Instance Fields
public short[] freqs;
public byte[] length;
public int minNumCodes;
public int numCodes;
short[] codes;
int[] bl_counts;
int maxLength;
DeflaterHuffman dh;
#endregion
#region Constructors
public Tree(DeflaterHuffman dh, int elems, int minCodes, int maxLength)
{
this.dh = dh;
this.minNumCodes = minCodes;
this.maxLength = maxLength;
freqs = new short[elems];
bl_counts = new int[maxLength];
}
#endregion
/// <summary>
/// Resets the internal state of the tree
/// </summary>
public void Reset()
{
for (int i = 0; i < freqs.Length; i++)
{
freqs[i] = 0;
}
codes = null;
length = null;
}
public void WriteSymbol(int code)
{
// if (DeflaterConstants.DEBUGGING) {
// freqs[code]--;
// // Console.Write("writeSymbol("+freqs.length+","+code+"): ");
// }
dh.pending.WriteBits(codes[code] & 0xffff, length[code]);
}
/// <summary>
/// Check that all frequencies are zero
/// </summary>
/// <exception cref="SharpZipBaseException">
/// At least one frequency is non-zero
/// </exception>
public void CheckEmpty()
{
bool empty = true;
for (int i = 0; i < freqs.Length; i++)
{
if (freqs[i] != 0)
{
//Console.WriteLine("freqs[" + i + "] == " + freqs[i]);
empty = false;
}
}
if (!empty)
{
throw new SharpZipBaseException("!Empty");
}
}
/// <summary>
/// Set static codes and length
/// </summary>
/// <param name="staticCodes">new codes</param>
/// <param name="staticLengths">length for new codes</param>
public void SetStaticCodes(short[] staticCodes, byte[] staticLengths)
{
codes = staticCodes;
length = staticLengths;
}
/// <summary>
/// Build dynamic codes and lengths
/// </summary>
public void BuildCodes()
{
int numSymbols = freqs.Length;
int[] nextCode = new int[maxLength];
int code = 0;
codes = new short[freqs.Length];
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("buildCodes: "+freqs.Length);
// }
for (int bits = 0; bits < maxLength; bits++)
{
nextCode[bits] = code;
code += bl_counts[bits] << (15 - bits);
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("bits: " + ( bits + 1) + " count: " + bl_counts[bits]
// +" nextCode: "+code);
// }
}
#if DebugDeflation
if ( DeflaterConstants.DEBUGGING && (code != 65536) )
{
throw new SharpZipBaseException("Inconsistent bl_counts!");
}
#endif
for (int i = 0; i < numCodes; i++)
{
int bits = length[i];
if (bits > 0)
{
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("codes["+i+"] = rev(" + nextCode[bits-1]+"),
// +bits);
// }
codes[i] = BitReverse(nextCode[bits - 1]);
nextCode[bits - 1] += 1 << (16 - bits);
}
}
}
public void BuildTree()
{
int numSymbols = freqs.Length;
/* heap is a priority queue, sorted by frequency, least frequent
* nodes first. The heap is a binary tree, with the property, that
* the parent node is smaller than both child nodes. This assures
* that the smallest node is the first parent.
*
* The binary tree is encoded in an array: 0 is root node and
* the nodes 2*n+1, 2*n+2 are the child nodes of node n.
*/
int[] heap = new int[numSymbols];
int heapLen = 0;
int maxCode = 0;
for (int n = 0; n < numSymbols; n++)
{
int freq = freqs[n];
if (freq != 0)
{
// Insert n into heap
int pos = heapLen++;
int ppos;
while (pos > 0 && freqs[heap[ppos = (pos - 1) / 2]] > freq)
{
heap[pos] = heap[ppos];
pos = ppos;
}
heap[pos] = n;
maxCode = n;
}
}
/* We could encode a single literal with 0 bits but then we
* don't see the literals. Therefore we force at least two
* literals to avoid this case. We don't care about order in
* this case, both literals get a 1 bit code.
*/
while (heapLen < 2)
{
int node = maxCode < 2 ? ++maxCode : 0;
heap[heapLen++] = node;
}
numCodes = Math.Max(maxCode + 1, minNumCodes);
int numLeafs = heapLen;
int[] childs = new int[4 * heapLen - 2];
int[] values = new int[2 * heapLen - 1];
int numNodes = numLeafs;
for (int i = 0; i < heapLen; i++)
{
int node = heap[i];
childs[2 * i] = node;
childs[2 * i + 1] = -1;
values[i] = freqs[node] << 8;
heap[i] = i;
}
/* Construct the Huffman tree by repeatedly combining the least two
* frequent nodes.
*/
do
{
int first = heap[0];
int last = heap[--heapLen];
// Propagate the hole to the leafs of the heap
int ppos = 0;
int path = 1;
while (path < heapLen)
{
if (path + 1 < heapLen && values[heap[path]] > values[heap[path + 1]])
{
path++;
}
heap[ppos] = heap[path];
ppos = path;
path = path * 2 + 1;
}
/* Now propagate the last element down along path. Normally
* it shouldn't go too deep.
*/
int lastVal = values[last];
while ((path = ppos) > 0 && values[heap[ppos = (path - 1) / 2]] > lastVal)
{
heap[path] = heap[ppos];
}
heap[path] = last;
int second = heap[0];
// Create a new node father of first and second
last = numNodes++;
childs[2 * last] = first;
childs[2 * last + 1] = second;
int mindepth = Math.Min(values[first] & 0xff, values[second] & 0xff);
values[last] = lastVal = values[first] + values[second] - mindepth + 1;
// Again, propagate the hole to the leafs
ppos = 0;
path = 1;
while (path < heapLen)
{
if (path + 1 < heapLen && values[heap[path]] > values[heap[path + 1]])
{
path++;
}
heap[ppos] = heap[path];
ppos = path;
path = ppos * 2 + 1;
}
// Now propagate the new element down along path
while ((path = ppos) > 0 && values[heap[ppos = (path - 1) / 2]] > lastVal)
{
heap[path] = heap[ppos];
}
heap[path] = last;
} while (heapLen > 1);
if (heap[0] != childs.Length / 2 - 1)
{
throw new SharpZipBaseException("Heap invariant violated");
}
BuildLength(childs);
}
/// <summary>
/// Get encoded length
/// </summary>
/// <returns>Encoded length, the sum of frequencies * lengths</returns>
public int GetEncodedLength()
{
int len = 0;
for (int i = 0; i < freqs.Length; i++)
{
len += freqs[i] * length[i];
}
return len;
}
/// <summary>
/// Scan a literal or distance tree to determine the frequencies of the codes
/// in the bit length tree.
/// </summary>
public void CalcBLFreq(Tree blTree)
{
int max_count; /* max repeat count */
int min_count; /* min repeat count */
int count; /* repeat count of the current code */
int curlen = -1; /* length of current code */
int i = 0;
while (i < numCodes)
{
count = 1;
int nextlen = length[i];
if (nextlen == 0)
{
max_count = 138;
min_count = 3;
}
else
{
max_count = 6;
min_count = 3;
if (curlen != nextlen)
{
blTree.freqs[nextlen]++;
count = 0;
}
}
curlen = nextlen;
i++;
while (i < numCodes && curlen == length[i])
{
i++;
if (++count >= max_count)
{
break;
}
}
if (count < min_count)
{
blTree.freqs[curlen] += (short)count;
}
else if (curlen != 0)
{
blTree.freqs[REP_3_6]++;
}
else if (count <= 10)
{
blTree.freqs[REP_3_10]++;
}
else
{
blTree.freqs[REP_11_138]++;
}
}
}
/// <summary>
/// Write tree values
/// </summary>
/// <param name="blTree">Tree to write</param>
public void WriteTree(Tree blTree)
{
int max_count; // max repeat count
int min_count; // min repeat count
int count; // repeat count of the current code
int curlen = -1; // length of current code
int i = 0;
while (i < numCodes)
{
count = 1;
int nextlen = length[i];
if (nextlen == 0)
{
max_count = 138;
min_count = 3;
}
else
{
max_count = 6;
min_count = 3;
if (curlen != nextlen)
{
blTree.WriteSymbol(nextlen);
count = 0;
}
}
curlen = nextlen;
i++;
while (i < numCodes && curlen == length[i])
{
i++;
if (++count >= max_count)
{
break;
}
}
if (count < min_count)
{
while (count-- > 0)
{
blTree.WriteSymbol(curlen);
}
}
else if (curlen != 0)
{
blTree.WriteSymbol(REP_3_6);
dh.pending.WriteBits(count - 3, 2);
}
else if (count <= 10)
{
blTree.WriteSymbol(REP_3_10);
dh.pending.WriteBits(count - 3, 3);
}
else
{
blTree.WriteSymbol(REP_11_138);
dh.pending.WriteBits(count - 11, 7);
}
}
}
void BuildLength(int[] childs)
{
this.length = new byte[freqs.Length];
int numNodes = childs.Length / 2;
int numLeafs = (numNodes + 1) / 2;
int overflow = 0;
for (int i = 0; i < maxLength; i++)
{
bl_counts[i] = 0;
}
// First calculate optimal bit lengths
int[] lengths = new int[numNodes];
lengths[numNodes - 1] = 0;
for (int i = numNodes - 1; i >= 0; i--)
{
if (childs[2 * i + 1] != -1)
{
int bitLength = lengths[i] + 1;
if (bitLength > maxLength)
{
bitLength = maxLength;
overflow++;
}
lengths[childs[2 * i]] = lengths[childs[2 * i + 1]] = bitLength;
}
else
{
// A leaf node
int bitLength = lengths[i];
bl_counts[bitLength - 1]++;
this.length[childs[2 * i]] = (byte)lengths[i];
}
}
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("Tree "+freqs.Length+" lengths:");
// for (int i=0; i < numLeafs; i++) {
// //Console.WriteLine("Node "+childs[2*i]+" freq: "+freqs[childs[2*i]]
// + " len: "+length[childs[2*i]]);
// }
// }
if (overflow == 0)
{
return;
}
int incrBitLen = maxLength - 1;
do
{
// Find the first bit length which could increase:
while (bl_counts[--incrBitLen] == 0)
;
// Move this node one down and remove a corresponding
// number of overflow nodes.
do
{
bl_counts[incrBitLen]--;
bl_counts[++incrBitLen]++;
overflow -= 1 << (maxLength - 1 - incrBitLen);
} while (overflow > 0 && incrBitLen < maxLength - 1);
} while (overflow > 0);
/* We may have overshot above. Move some nodes from maxLength to
* maxLength-1 in that case.
*/
bl_counts[maxLength - 1] += overflow;
bl_counts[maxLength - 2] -= overflow;
/* Now recompute all bit lengths, scanning in increasing
* frequency. It is simpler to reconstruct all lengths instead of
* fixing only the wrong ones. This idea is taken from 'ar'
* written by Haruhiko Okumura.
*
* The nodes were inserted with decreasing frequency into the childs
* array.
*/
int nodePtr = 2 * numLeafs;
for (int bits = maxLength; bits != 0; bits--)
{
int n = bl_counts[bits - 1];
while (n > 0)
{
int childPtr = 2 * childs[nodePtr++];
if (childs[childPtr + 1] == -1)
{
// We found another leaf
length[childs[childPtr]] = (byte)bits;
n--;
}
}
}
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("*** After overflow elimination. ***");
// for (int i=0; i < numLeafs; i++) {
// //Console.WriteLine("Node "+childs[2*i]+" freq: "+freqs[childs[2*i]]
// + " len: "+length[childs[2*i]]);
// }
// }
}
}
#region Instance Fields
/// <summary>
/// Pending buffer to use
/// </summary>
public DeflaterPending pending;
Tree literalTree;
Tree distTree;
Tree blTree;
// Buffer for distances
short[] d_buf;
byte[] l_buf;
int last_lit;
int extra_bits;
#endregion
static DeflaterHuffman()
{
// See RFC 1951 3.2.6
// Literal codes
staticLCodes = new short[LITERAL_NUM];
staticLLength = new byte[LITERAL_NUM];
int i = 0;
while (i < 144)
{
staticLCodes[i] = BitReverse((0x030 + i) << 8);
staticLLength[i++] = 8;
}
while (i < 256)
{
staticLCodes[i] = BitReverse((0x190 - 144 + i) << 7);
staticLLength[i++] = 9;
}
while (i < 280)
{
staticLCodes[i] = BitReverse((0x000 - 256 + i) << 9);
staticLLength[i++] = 7;
}
while (i < LITERAL_NUM)
{
staticLCodes[i] = BitReverse((0x0c0 - 280 + i) << 8);
staticLLength[i++] = 8;
}
// Distance codes
staticDCodes = new short[DIST_NUM];
staticDLength = new byte[DIST_NUM];
for (i = 0; i < DIST_NUM; i++)
{
staticDCodes[i] = BitReverse(i << 11);
staticDLength[i] = 5;
}
}
/// <summary>
/// Construct instance with pending buffer
/// </summary>
/// <param name="pending">Pending buffer to use</param>
public DeflaterHuffman(DeflaterPending pending)
{
this.pending = pending;
literalTree = new Tree(this, LITERAL_NUM, 257, 15);
distTree = new Tree(this, DIST_NUM, 1, 15);
blTree = new Tree(this, BITLEN_NUM, 4, 7);
d_buf = new short[BUFSIZE];
l_buf = new byte[BUFSIZE];
}
/// <summary>
/// Reset internal state
/// </summary>
public void Reset()
{
last_lit = 0;
extra_bits = 0;
literalTree.Reset();
distTree.Reset();
blTree.Reset();
}
/// <summary>
/// Write all trees to pending buffer
/// </summary>
/// <param name="blTreeCodes">The number/rank of treecodes to send.</param>
public void SendAllTrees(int blTreeCodes)
{
blTree.BuildCodes();
literalTree.BuildCodes();
distTree.BuildCodes();
pending.WriteBits(literalTree.numCodes - 257, 5);
pending.WriteBits(distTree.numCodes - 1, 5);
pending.WriteBits(blTreeCodes - 4, 4);
for (int rank = 0; rank < blTreeCodes; rank++)
{
pending.WriteBits(blTree.length[BL_ORDER[rank]], 3);
}
literalTree.WriteTree(blTree);
distTree.WriteTree(blTree);
#if DebugDeflation
if (DeflaterConstants.DEBUGGING) {
blTree.CheckEmpty();
}
#endif
}
/// <summary>
/// Compress current buffer writing data to pending buffer
/// </summary>
public void CompressBlock()
{
for (int i = 0; i < last_lit; i++)
{
int litlen = l_buf[i] & 0xff;
int dist = d_buf[i];
if (dist-- != 0)
{
// if (DeflaterConstants.DEBUGGING) {
// Console.Write("["+(dist+1)+","+(litlen+3)+"]: ");
// }
int lc = Lcode(litlen);
literalTree.WriteSymbol(lc);
int bits = (lc - 261) / 4;
if (bits > 0 && bits <= 5)
{
pending.WriteBits(litlen & ((1 << bits) - 1), bits);
}
int dc = Dcode(dist);
distTree.WriteSymbol(dc);
bits = dc / 2 - 1;
if (bits > 0)
{
pending.WriteBits(dist & ((1 << bits) - 1), bits);
}
}
else
{
// if (DeflaterConstants.DEBUGGING) {
// if (litlen > 32 && litlen < 127) {
// Console.Write("("+(char)litlen+"): ");
// } else {
// Console.Write("{"+litlen+"}: ");
// }
// }
literalTree.WriteSymbol(litlen);
}
}
#if DebugDeflation
if (DeflaterConstants.DEBUGGING) {
Console.Write("EOF: ");
}
#endif
literalTree.WriteSymbol(EOF_SYMBOL);
#if DebugDeflation
if (DeflaterConstants.DEBUGGING) {
literalTree.CheckEmpty();
distTree.CheckEmpty();
}
#endif
}
/// <summary>
/// Flush block to output with no compression
/// </summary>
/// <param name="stored">Data to write</param>
/// <param name="storedOffset">Index of first byte to write</param>
/// <param name="storedLength">Count of bytes to write</param>
/// <param name="lastBlock">True if this is the last block</param>
public void FlushStoredBlock(byte[] stored, int storedOffset, int storedLength, bool lastBlock)
{
#if DebugDeflation
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("Flushing stored block "+ storedLength);
// }
#endif
pending.WriteBits((DeflaterConstants.STORED_BLOCK << 1) + (lastBlock ? 1 : 0), 3);
pending.AlignToByte();
pending.WriteShort(storedLength);
pending.WriteShort(~storedLength);
pending.WriteBlock(stored, storedOffset, storedLength);
Reset();
}
/// <summary>
/// Flush block to output with compression
/// </summary>
/// <param name="stored">Data to flush</param>
/// <param name="storedOffset">Index of first byte to flush</param>
/// <param name="storedLength">Count of bytes to flush</param>
/// <param name="lastBlock">True if this is the last block</param>
public void FlushBlock(byte[] stored, int storedOffset, int storedLength, bool lastBlock)
{
literalTree.freqs[EOF_SYMBOL]++;
// Build trees
literalTree.BuildTree();
distTree.BuildTree();
// Calculate bitlen frequency
literalTree.CalcBLFreq(blTree);
distTree.CalcBLFreq(blTree);
// Build bitlen tree
blTree.BuildTree();
int blTreeCodes = 4;
for (int i = 18; i > blTreeCodes; i--)
{
if (blTree.length[BL_ORDER[i]] > 0)
{
blTreeCodes = i + 1;
}
}
int opt_len = 14 + blTreeCodes * 3 + blTree.GetEncodedLength() +
literalTree.GetEncodedLength() + distTree.GetEncodedLength() +
extra_bits;
int static_len = extra_bits;
for (int i = 0; i < LITERAL_NUM; i++)
{
static_len += literalTree.freqs[i] * staticLLength[i];
}
for (int i = 0; i < DIST_NUM; i++)
{
static_len += distTree.freqs[i] * staticDLength[i];
}
if (opt_len >= static_len)
{
// Force static trees
opt_len = static_len;
}
if (storedOffset >= 0 && storedLength + 4 < opt_len >> 3)
{
// Store Block
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("Storing, since " + storedLength + " < " + opt_len
// + " <= " + static_len);
// }
FlushStoredBlock(stored, storedOffset, storedLength, lastBlock);
}
else if (opt_len == static_len)
{
// Encode with static tree
pending.WriteBits((DeflaterConstants.STATIC_TREES << 1) + (lastBlock ? 1 : 0), 3);
literalTree.SetStaticCodes(staticLCodes, staticLLength);
distTree.SetStaticCodes(staticDCodes, staticDLength);
CompressBlock();
Reset();
}
else
{
// Encode with dynamic tree
pending.WriteBits((DeflaterConstants.DYN_TREES << 1) + (lastBlock ? 1 : 0), 3);
SendAllTrees(blTreeCodes);
CompressBlock();
Reset();
}
}
/// <summary>
/// Get value indicating if internal buffer is full
/// </summary>
/// <returns>true if buffer is full</returns>
public bool IsFull()
{
return last_lit >= BUFSIZE;
}
/// <summary>
/// Add literal to buffer
/// </summary>
/// <param name="literal">Literal value to add to buffer.</param>
/// <returns>Value indicating internal buffer is full</returns>
public bool TallyLit(int literal)
{
// if (DeflaterConstants.DEBUGGING) {
// if (lit > 32 && lit < 127) {
// //Console.WriteLine("("+(char)lit+")");
// } else {
// //Console.WriteLine("{"+lit+"}");
// }
// }
d_buf[last_lit] = 0;
l_buf[last_lit++] = (byte)literal;
literalTree.freqs[literal]++;
return IsFull();
}
/// <summary>
/// Add distance code and length to literal and distance trees
/// </summary>
/// <param name="distance">Distance code</param>
/// <param name="length">Length</param>
/// <returns>Value indicating if internal buffer is full</returns>
public bool TallyDist(int distance, int length)
{
// if (DeflaterConstants.DEBUGGING) {
// //Console.WriteLine("[" + distance + "," + length + "]");
// }
d_buf[last_lit] = (short)distance;
l_buf[last_lit++] = (byte)(length - 3);
int lc = Lcode(length - 3);
literalTree.freqs[lc]++;
if (lc >= 265 && lc < 285)
{
extra_bits += (lc - 261) / 4;
}
int dc = Dcode(distance - 1);
distTree.freqs[dc]++;
if (dc >= 4)
{
extra_bits += dc / 2 - 1;
}
return IsFull();
}
/// <summary>
/// Reverse the bits of a 16 bit value.
/// </summary>
/// <param name="toReverse">Value to reverse bits</param>
/// <returns>Value with bits reversed</returns>
public static short BitReverse(int toReverse)
{
return (short)(bit4Reverse[toReverse & 0xF] << 12 |
bit4Reverse[(toReverse >> 4) & 0xF] << 8 |
bit4Reverse[(toReverse >> 8) & 0xF] << 4 |
bit4Reverse[toReverse >> 12]);
}
static int Lcode(int length)
{
if (length == 255)
{
return 285;
}
int code = 257;
while (length >= 8)
{
code += 4;
length >>= 1;
}
return code + length;
}
static int Dcode(int distance)
{
int code = 0;
while (distance >= 4)
{
code += 2;
distance >>= 1;
}
return code + distance;
}
}
}
| 34.268 | 110 | 0.418233 | [
"MIT"
] | 929496959/PdfSharpCore | PdfSharpCore/SharpZipLib/Zip/Compression/DeflaterHuffman.cs | 34,268 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
namespace ILRuntime.Runtime.Generated
{
unsafe class UnityEngine_Networking_DownloadHandlerFile_Binding
{
public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
{
BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
MethodBase method;
Type[] args;
Type type = typeof(UnityEngine.Networking.DownloadHandlerFile);
args = new Type[]{typeof(System.String)};
method = type.GetConstructor(flag, null, args, null);
app.RegisterCLRMethodRedirection(method, Ctor_0);
}
static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
{
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
StackObject* ptr_of_this_method;
StackObject* __ret = ILIntepreter.Minus(__esp, 1);
ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
System.String @path = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
__intp.Free(ptr_of_this_method);
var result_of_this_method = new UnityEngine.Networking.DownloadHandlerFile(@path);
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
}
}
}
| 34.634615 | 147 | 0.711272 | [
"MIT"
] | 517752548/EXET | Unity/Assets/Model/ILBinding/UnityEngine_Networking_DownloadHandlerFile_Binding.cs | 1,801 | C# |
// This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AntChain.SDK.RISKPLUS.Models
{
public class QueryRtopCompanyFeedbackResponse : TeaModel {
[NameInMap("req_msg_id")]
[Validation(Required=false)]
public string ReqMsgId { get; set; }
[NameInMap("result_code")]
[Validation(Required=false)]
public string ResultCode { get; set; }
[NameInMap("result_msg")]
[Validation(Required=false)]
public string ResultMsg { get; set; }
// 企业反馈列表
[NameInMap("company_feedbacks")]
[Validation(Required=false)]
public List<RtopCompanyFeedback> CompanyFeedbacks { get; set; }
// 返回码
[NameInMap("response_code")]
[Validation(Required=false)]
public string ResponseCode { get; set; }
// 是否调用成功
[NameInMap("success")]
[Validation(Required=false)]
public bool? Success { get; set; }
// 总条数
[NameInMap("total_num")]
[Validation(Required=false)]
public long? TotalNum { get; set; }
}
}
| 24.893617 | 71 | 0.609402 | [
"MIT"
] | alipay/antchain-openapi-prod-sdk | RISKPLUS/csharp/core/Models/QueryRtopCompanyFeedbackResponse.cs | 1,206 | C# |
// *** WARNING: this file was generated by crd2pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Kubernetes.Types.Inputs.Perf.V1Alpha1
{
/// <summary>
/// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
/// </summary>
public class IopingSpecVolumeVolumeSourceAzureFileArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
/// </summary>
[Input("readOnly")]
public Input<bool>? ReadOnly { get; set; }
/// <summary>
/// the name of secret that contains Azure Storage Account Name and Key
/// </summary>
[Input("secretName", required: true)]
public Input<string> SecretName { get; set; } = null!;
/// <summary>
/// Share Name
/// </summary>
[Input("shareName", required: true)]
public Input<string> ShareName { get; set; } = null!;
public IopingSpecVolumeVolumeSourceAzureFileArgs()
{
}
}
}
| 31.536585 | 106 | 0.63109 | [
"Apache-2.0"
] | pulumi/pulumi-kubernetes-crds | operators/kubestone/dotnet/Kubernetes/Crds/Operators/Kubestone/Perf/V1Alpha1/Inputs/IopingSpecVolumeVolumeSourceAzureFileArgs.cs | 1,293 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace AryuwatWebApplication.Entity
{
using System;
using System.Collections.Generic;
public partial class MedicalStuff
{
public string VN { get; set; }
public string MS_Code { get; set; }
public string Position_ID { get; set; }
public string EmployeeId { get; set; }
public string UseTransId { get; set; }
public string SUR_ID { get; set; }
public Nullable<decimal> Com_Bath { get; set; }
public Nullable<System.DateTime> Com_Date { get; set; }
public string EN_Save { get; set; }
public string SectionStuff { get; set; }
public string MergStatus { get; set; }
public string ListOrder { get; set; }
}
}
| 37.16129 | 85 | 0.550347 | [
"Unlicense"
] | Krailit/Aryuwat_Nurse | AryuwatWebApplication/Entity/MedicalStuff.cs | 1,152 | C# |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.
// ----------------------------------------------------------------------------------
using Microsoft.Azure.Graph.RBAC.Version1_6.ActiveDirectory;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using System;
using System.Linq;
using System.Management.Automation;
using ProjectResources = Microsoft.Azure.Commands.Resources.Properties.Resources;
namespace Microsoft.Azure.Commands.ActiveDirectory
{
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ADGroup", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSet.ObjectId), OutputType(typeof(bool))]
public class RemoveAzureADGroupCommand : ActiveDirectoryBaseCmdlet
{
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ObjectId, HelpMessage = "The object id of the group to be removed.")]
[ValidateNotNullOrEmpty]
public Guid ObjectId { get; set; }
[Parameter(Mandatory = true, ParameterSetName = ParameterSet.DisplayName, HelpMessage = "The display name of the group to be removed.")]
[ValidateNotNullOrEmpty]
public string DisplayName { get; set; }
[Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParameterSet.InputObject, HelpMessage = "The object representation of the group to be removed.")]
[ValidateNotNullOrEmpty]
public PSADGroup InputObject { get; set; }
[Parameter(Mandatory = true)]
public SwitchParameter PassThru { get; set; }
[Parameter(Mandatory = true)]
public SwitchParameter Force { get; set; }
public override void ExecuteCmdlet()
{
ExecutionBlock(() =>
{
if (this.IsParameterBound(c => c.InputObject))
{
ObjectId = InputObject.Id;
}
else if (this.IsParameterBound(c => c.DisplayName))
{
var group = ActiveDirectoryClient.GetGroupByDisplayName(DisplayName);
ObjectId = group.Id;
}
ConfirmAction(
Force.IsPresent,
string.Format(ProjectResources.RemoveGroupConfirmation, ObjectId),
ProjectResources.RemovingGroup,
ObjectId.ToString(),
() => ActiveDirectoryClient.RemoveGroup(ObjectId.ToString()));
if (PassThru.IsPresent)
{
WriteObject(true);
}
});
}
}
}
| 44.293333 | 195 | 0.605057 | [
"MIT"
] | Andrean/azure-powershell | src/ResourceManager/Resources/Commands.Resources/ActiveDirectory/RemoveAzureADGroupCommand.cs | 3,250 | C# |
using System;
using NLog;
namespace NTrace.Adapters
{
/// <summary>
/// Defines the synchronous NTrace adapter for using NLog
/// </summary>
public class NLogAdapter : ITracer
{
/// <summary>
/// Gets the Logger for NLog
/// </summary>
public ILogger Logger
{
get;
}
/// <summary>
/// Creates a new instance of the synchronous NTrace adapter for NLog
/// </summary>
/// <param name="logger">NLog logger reference</param>
public NLogAdapter(ILogger logger)
{
this.Logger = logger ?? throw new ArgumentNullException(nameof(logger));
}
/// <summary>
/// Indicates end of writing messages
/// </summary>
public void EndWrite()
{
// not supported by NLog
}
/// <summary>
/// Writes an error message
/// </summary>
/// <param name="message">Message to write</param>
public void Error(string message)
{
this.Logger.Error(message);
}
/// <summary>
/// Writes an information message
/// </summary>
/// <param name="message">Message to write</param>
/// <param name="categories">Category for message</param>
public void Info(string message, TraceCategories categories = TraceCategories.Debug)
{
if ((categories & TraceCategories.Debug) == TraceCategories.Debug)
{
this.Logger.Debug(message);
}
else
{
this.Logger.Info(message);
}
}
/// <summary>
/// Writes a warning message
/// </summary>
/// <param name="message">Message to write</param>
public void Warn(string message)
{
this.Logger.Warn(message);
}
}
}
| 22.794521 | 88 | 0.593149 | [
"MIT"
] | roedicker/NTrace | src/NTrace.Adapters.NLog/Adapters/NLogAdapter.cs | 1,664 | C# |
/*
曹旭升(sheng.c)
E-mail: cao.silhouette@msn.com
QQ: 279060597
https://github.com/iccb1013
http://shengxunwei.com
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Jade.Model;
using Sheng.Web.Infrastructure;
namespace Jade.Core
{
public class AppBrowseManager
{
private static readonly AppBrowseManager _instance = new AppBrowseManager();
public static AppBrowseManager Instance
{
get { return _instance; }
}
public NormalResult CreateBrowse(App_Browse appBrowse)
{
using (Entities db = new Entities())
{
Member dbMember = db.Member.FirstOrDefault(t => t.id == appBrowse.member_id);
if (dbMember != null)
{
//新增访问APP次数
db.App_Browse.Add(appBrowse);
//更新会员总访问数
dbMember.app_browse_count += 1;
db.SaveChanges();
}
}
return new NormalResult();
}
}
}
| 22.137255 | 93 | 0.558016 | [
"MIT"
] | colin08/Jade.Net | Jade.Core/AppBrowseManager.cs | 1,169 | C# |
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.ColorSpaces.Conversion.Implementation.CieLchuvColorSapce;
namespace SixLabors.ImageSharp.ColorSpaces.Conversion
{
/// <content>
/// Allows conversion to <see cref="CieLchuv"/>.
/// </content>
internal partial class ColorSpaceConverter
{
/// <summary>
/// The converter for converting between CieLab to CieLchuv.
/// </summary>
private static readonly CieLuvToCieLchuvConverter CieLuvToCieLchuvConverter = new CieLuvToCieLchuvConverter();
/// <summary>
/// Converts a <see cref="CieLab"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in CieLab color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="CieLch"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in CieLch color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="CieLuv"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in CieLuv color)
{
// Adaptation
CieLuv adapted = this.IsChromaticAdaptationPerformed ? this.Adapt(color) : color;
// Conversion
return CieLuvToCieLchuvConverter.Convert(adapted);
}
/// <summary>
/// Converts a <see cref="CieXyy"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in CieXyy color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="CieXyz"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in CieXyz color)
{
CieLab labColor = this.ToCieLab(color);
return this.ToCieLchuv(labColor);
}
/// <summary>
/// Converts a <see cref="Cmyk"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in Cmyk color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="Hsl"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in Hsl color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="Hsv"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in Hsv color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="HunterLab"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in HunterLab color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="LinearRgb"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in LinearRgb color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="Lms"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in Lms color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="Rgb"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in Rgb color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
/// <summary>
/// Converts a <see cref="YCbCr"/> into a <see cref="CieLchuv"/>
/// </summary>
/// <param name="color">The color to convert.</param>
/// <returns>The <see cref="CieLchuv"/></returns>
public CieLchuv ToCieLchuv(in YCbCr color)
{
CieXyz xyzColor = this.ToCieXyz(color);
return this.ToCieLchuv(xyzColor);
}
}
} | 36.878049 | 118 | 0.55539 | [
"Apache-2.0"
] | Davidsv/ImageSharp | src/ImageSharp/ColorSpaces/Conversion/ColorSpaceConverter.CieLchuv.cs | 6,050 | C# |
namespace Codecov.Url
{
internal interface IHostOptions
{
string Url { get; }
}
}
| 13.75 | 36 | 0.545455 | [
"MIT"
] | 0xced/codecov-exe | Source/Codecov/Url/IHostOptions.cs | 105 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
/*
* Do not modify this file. This file is generated from the resourcegroupstaggingapi-2017-01-26.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.ResourceGroupsTaggingAPI.Internal
{
/// <summary>
/// Service metadata for Amazon ResourceGroupsTaggingAPI service
/// </summary>
public partial class AmazonResourceGroupsTaggingAPIMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Resource Groups Tagging API";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
} | 30.727273 | 123 | 0.607101 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/ResourceGroupsTaggingAPI/Generated/Internal/AmazonResourceGroupsTaggingAPIMetadata.cs | 1,690 | C# |
using CharacterGen.Combats;
using CharacterGen.Domain.Tables;
using CharacterGen.Feats;
using CharacterGen.Races;
using NUnit.Framework;
namespace CharacterGen.Tests.Integration.Tables.Feats.Data.Racial.BaseRaces
{
[TestFixture]
public class CentaurFeatDataTests : RacialFeatDataTests
{
protected override string tableName
{
get { return string.Format(TableNameConstants.Formattable.Collection.RACEFeatData, RaceConstants.BaseRaces.Centaur); }
}
[Test]
public override void CollectionNames()
{
var names = new[]
{
FeatConstants.SaveBonus + SavingThrowConstants.Fortitude,
FeatConstants.SaveBonus + SavingThrowConstants.Will,
FeatConstants.SaveBonus + SavingThrowConstants.Reflex,
FeatConstants.NaturalArmor,
FeatConstants.Darkvision,
};
AssertCollectionNames(names);
}
[TestCase(FeatConstants.SaveBonus + SavingThrowConstants.Fortitude,
FeatConstants.SaveBonus,
SavingThrowConstants.Fortitude,
0,
"",
0,
"",
1,
0, 0)]
[TestCase(FeatConstants.SaveBonus + SavingThrowConstants.Will,
FeatConstants.SaveBonus,
SavingThrowConstants.Will,
0,
"",
0,
"",
4,
0, 0)]
[TestCase(FeatConstants.SaveBonus + SavingThrowConstants.Reflex,
FeatConstants.SaveBonus,
SavingThrowConstants.Reflex,
0,
"",
0,
"",
4,
0, 0)]
[TestCase(FeatConstants.NaturalArmor,
FeatConstants.NaturalArmor,
"",
0,
"",
0,
"",
3,
0, 0)]
[TestCase(FeatConstants.Darkvision,
FeatConstants.Darkvision,
"",
0,
"",
0,
"",
60,
0, 0)]
public override void RacialFeatData(string name, string feat, string focus, int frequencyQuantity, string frequencyTimePeriod, int minimumHitDiceRequirement, string sizeRequirement, int strength, int maximumHitDiceRequirement, int requiredStatMinimumValue, params string[] minimumAbilities)
{
base.RacialFeatData(name, feat, focus, frequencyQuantity, frequencyTimePeriod, minimumHitDiceRequirement, sizeRequirement, strength, maximumHitDiceRequirement, requiredStatMinimumValue, minimumAbilities);
}
}
}
| 32.072289 | 298 | 0.573629 | [
"MIT"
] | DnDGen/CharacterGen | CharacterGen.Tests.Integration.Tables/Feats/Data/Racial/BaseRaces/CentaurFeatDataTests.cs | 2,664 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace MinorShift.Emuera.GameData.Variable
{
//難読化用属性。enum.ToString()やenum.Parse()を行うなら(Exclude=true)にすること。
[global::System.Reflection.Obfuscation(Exclude=true)]
internal enum VariableCode
{
__NULL__ = 0x00000000,
__CAN_FORBID__ = 0x00010000,
__INTEGER__ = 0x00020000,
__STRING__ = 0x00040000,
__ARRAY_1D__ = 0x00080000,
__CHARACTER_DATA__ = 0x00100000,//第一引数を省略可能。TARGETで補う
__UNCHANGEABLE__ = 0x00400000,//変更不可属性
__CALC__ = 0x00800000,//計算値
__EXTENDED__ = 0x01000000,//Emueraで追加した変数
__LOCAL__ = 0x02000000,//ローカル変数。
__GLOBAL__ = 0x04000000,//グローバル変数。
__ARRAY_2D__ = 0x08000000,//二次元配列。キャラクタ変数フラグと排他
__SAVE_EXTENDED__ = 0x10000000,//拡張セーブ機能によってセーブするべき変数。
//このフラグを立てておけば勝手にセーブされる(はず)。名前を変えると正常にロードできなくなるので注意。
__ARRAY_3D__ = 0x20000000,//三次元配列
__CONSTANT__ = 0x40000000,//完全定数CSVから読み込まれる~NAME系がこれに該当
__UPPERCASE__ = 0x7FFF0000,
__LOWERCASE__ = 0x0000FFFF,
__COUNT_SAVE_INTEGER__ = 0x00,//実は全て配列
__COUNT_INTEGER__ = 0x00,
//PALAMLV, EXPLV, RESULT, COUNT, TARGET, SELECTCOMは禁止設定不可
DAY = 0x00 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//経過日数。
MONEY = 0x01 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//金
ITEM = 0x02 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//所持数
FLAG = 0x03 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//フラグ
TFLAG = 0x04 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//一時フラグ
UP = 0x05 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータの上昇値。indexはPALAM.CSVのもの。
PALAMLV = 0x06 | __INTEGER__ | __ARRAY_1D__,//調教中パラメータのレベルわけの境界値。境界値を越えると珠の数が多くなる。
EXPLV = 0x07 | __INTEGER__ | __ARRAY_1D__,//経験のレベルわけの境界値。境界値を越えると調教の効果が上がる。
EJAC = 0x08 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//射精チェックのための一時変数。
DOWN = 0x09 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータの減少値。indexはPALAM.CSVのもの
RESULT = 0x0A | __INTEGER__ | __ARRAY_1D__,//戻り値(数値)
COUNT = 0x0B | __INTEGER__ | __ARRAY_1D__,//繰り返しカウンター
TARGET = 0x0C | __INTEGER__ | __ARRAY_1D__,//調教中のキャラの"登録番号"
ASSI = 0x0D | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//助手のキャラの"登録番号"
MASTER = 0x0E | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//主人公のキャラの"登録番号"。通常0
NOITEM = 0x0F | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//アイテムが存在しないか?存在しない設定なら1.GAMEBASE.CSV
LOSEBASE = 0x10 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//基礎パラメータの減少値。通常はLOSEBASE:0が体力の消耗、LOSEBASE:1が気力の消耗。
SELECTCOM = 0x11 | __INTEGER__ | __ARRAY_1D__,//選択されたコマンド。TRAIN.CSVのものと同じ
ASSIPLAY = 0x12 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//助手現在調教しているか?1 = true, 0 = false
PREVCOM = 0x13 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//前回のコマンド。
NOTUSE_14 = 0x14 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//eramakerではRANDが格納されている領域。
NOTUSE_15 = 0x15 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//eramakerではCHARANUMが格納されている領域。
TIME = 0x16 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//時刻
ITEMSALES = 0x17 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//売っているか?
PLAYER = 0x18 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//調教している人間のキャラの登録番号。通常はMASTERかASSI
NEXTCOM = 0x19 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//調教している人間のキャラの登録番号。通常はMASTERかASSI
PBAND = 0x1A | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//ペニスバンドのアイテム番号
BOUGHT = 0x1B | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//直前に購入したアイテム番号
NOTUSE_1C = 0x1C | __INTEGER__ | __ARRAY_1D__,//未使用領域
NOTUSE_1D = 0x1D | __INTEGER__ | __ARRAY_1D__,//未使用領域
A = 0x1E | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,//汎用変数
B = 0x1F | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
C = 0x20 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
D = 0x21 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
E = 0x22 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
F = 0x23 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
G = 0x24 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
H = 0x25 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
I = 0x26 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
J = 0x27 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
K = 0x28 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
L = 0x29 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
M = 0x2A | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
N = 0x2B | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
O = 0x2C | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
P = 0x2D | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
Q = 0x2E | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
R = 0x2F | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
S = 0x30 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
T = 0x31 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
U = 0x32 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
V = 0x33 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
W = 0x34 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
X = 0x35 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
Y = 0x36 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
Z = 0x37 | __INTEGER__ | __ARRAY_1D__ | __CAN_FORBID__,
NOTUSE_38 = 0x38 | __INTEGER__ | __ARRAY_1D__,//未使用領域
NOTUSE_39 = 0x39 | __INTEGER__ | __ARRAY_1D__,//未使用領域
NOTUSE_3A = 0x3A | __INTEGER__ | __ARRAY_1D__,//未使用領域
NOTUSE_3B = 0x3B | __INTEGER__ | __ARRAY_1D__,//未使用領域
__COUNT_SAVE_INTEGER_ARRAY__ = 0x3C,
ITEMPRICE = 0x3C | __INTEGER__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CAN_FORBID__,//アイテム価格
LOCAL = 0x3D | __INTEGER__ | __ARRAY_1D__ | __LOCAL__ | __EXTENDED__ | __CAN_FORBID__,//ローカル変数
ARG = 0x3E | __INTEGER__ | __ARRAY_1D__ | __LOCAL__ | __EXTENDED__ | __CAN_FORBID__,//関数の引数用
GLOBAL = 0x3F | __INTEGER__ | __ARRAY_1D__ | __GLOBAL__ | __EXTENDED__ | __CAN_FORBID__,//グローバル数値型変数
RANDDATA = 0x40 | __INTEGER__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__,//グローバル数値型変数
__COUNT_INTEGER_ARRAY__ = 0x41,
SAVESTR = 0x00 | __STRING__ | __ARRAY_1D__ | __CAN_FORBID__,//文字列データ。保存される
__COUNT_SAVE_STRING_ARRAY__ = 0x01,
//RESULTSは禁止設定不可
STR = 0x01 | __STRING__ | __ARRAY_1D__ | __CAN_FORBID__,//文字列データ。STR.CSV。書き換え可能。
RESULTS = 0x02 | __STRING__ | __ARRAY_1D__,//実はこいつも配列
LOCALS = 0x03 | __STRING__ | __ARRAY_1D__ | __LOCAL__ | __EXTENDED__ | __CAN_FORBID__, //ローカル文字列変数
ARGS = 0x04 | __STRING__ | __ARRAY_1D__ | __LOCAL__ | __EXTENDED__ | __CAN_FORBID__,//関数の引数用
GLOBALS = 0x05 | __STRING__ | __ARRAY_1D__ | __GLOBAL__ | __EXTENDED__ | __CAN_FORBID__, //グローバル文字列変数
TSTR = 0x06 | __STRING__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
__COUNT_STRING_ARRAY__ = 0x07,
SAVEDATA_TEXT = 0x00 | __STRING__ | __EXTENDED__, //セーブ時につかう文字列。PUTFORMで追加できるやつ
__COUNT_SAVE_STRING__ = 0x00,
__COUNT_STRING__ = 0x01,
ISASSI = 0x00 | __INTEGER__ | __CHARACTER_DATA__,//助手か?1 = ture, 0 = false
NO = 0x01 | __INTEGER__ | __CHARACTER_DATA__,//キャラ番号
__COUNT_SAVE_CHARACTER_INTEGER__ = 0x02,//こいつらは配列ではないらしい。
__COUNT_CHARACTER_INTEGER__ = 0x02,
BASE = 0x00 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//基礎パラメータ。
MAXBASE = 0x01 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//基礎パラメータの最大値。
ABL = 0x02 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//能力。ABL.CSV
TALENT = 0x03 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//素質。TALENT.CSV
EXP = 0x04 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//経験。EXP.CSV
MARK = 0x05 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//刻印。MARK.CSV
PALAM = 0x06 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータ。PALAM.CSV
SOURCE = 0x07 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータ。直前のコマンドで発生した調教ソース。
EX = 0x08 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータ。この調教中、どこで何回絶頂したか。
CFLAG = 0x09 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//フラグ。
JUEL = 0x0A | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//珠。PALAM.CSV
RELATION = 0x0B | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//関係。indexは登録番号ではなくキャラ番号
EQUIP = 0x0C | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//未使用変数
TEQUIP = 0x0D | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータ。アイテムを使用中か。ITEM.CSV
STAIN = 0x0E | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__,//調教中パラメータ。汚れ
GOTJUEL = 0x0F | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータ。今回獲得した珠。PALAM.CSV
NOWEX = 0x10 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __CAN_FORBID__,//調教中パラメータ。直前のコマンドでどこで何回絶頂したか。
DOWNBASE = 0x11 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__, //調教中パラメータ。LOSEBASEのキャラクタ変数版
CUP = 0x12 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,//調教中パラメータ。UPのキャラクタ変数版
CDOWN = 0x13 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,//調教中パラメータ。DOWNのキャラクタ変数版
TCVAR = 0x14 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,//キャラクタ変数での一時変数
__COUNT_SAVE_CHARACTER_INTEGER_ARRAY__ = 0x11,
__COUNT_CHARACTER_INTEGER_ARRAY__ = 0x54,
NAME = 0x00 | __STRING__ | __CHARACTER_DATA__,//名前//登録番号で呼び出す
CALLNAME = 0x01 | __STRING__ | __CHARACTER_DATA__,//呼び名
NICKNAME = 0x02 | __STRING__ | __CHARACTER_DATA__ | __SAVE_EXTENDED__ | __EXTENDED__,//あだ名
MASTERNAME = 0x03 | __STRING__ | __CHARACTER_DATA__ | __SAVE_EXTENDED__ | __EXTENDED__,//あだ名
__COUNT_SAVE_CHARACTER_STRING__ = 0x02,
__COUNT_CHARACTER_STRING__ = 0x04,
CSTR = 0x00 | __STRING__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,//キャラクタ用文字列配列
__COUNT_SAVE_CHARACTER_STRING_ARRAY__ = 0x00,
__COUNT_CHARACTER_STRING_ARRAY__ = 0x01,
CDFLAG = 0x00 | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
__COUNT_CHARACTER_INTEGER_ARRAY_2D__ = 0x01,
__COUNT_CHARACTER_STRING_ARRAY_2D__ = 0x00,
DITEMTYPE = 0x00 | __INTEGER__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
DA = 0x01 | __INTEGER__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
DB = 0x02 | __INTEGER__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
DC = 0x03 | __INTEGER__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
DD = 0x04 | __INTEGER__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
DE = 0x05 | __INTEGER__ | __ARRAY_2D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
__COUNT_INTEGER_ARRAY_2D__ = 0x06,
__COUNT_STRING_ARRAY_2D__ = 0x00,
TA = 0x00 | __INTEGER__ | __ARRAY_3D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
TB = 0x01 | __INTEGER__ | __ARRAY_3D__ | __SAVE_EXTENDED__ | __EXTENDED__ | __CAN_FORBID__,
__COUNT_INTEGER_ARRAY_3D__ = 0x02,
__COUNT_STRING_ARRAY_3D__ = 0x00,
//CALCな変数については番号順はどうでもいい。
//1803beta004 ~~NAME系については番号順をConstantDataが使用するので重要
RAND = 0x00 | __INTEGER__ | __ARRAY_1D__ | __CALC__ | __UNCHANGEABLE__,//乱数。0~引数-1までの値を返す。
CHARANUM = 0x01 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__,//キャラクタ数。キャラクタ登録数を返す。
ABLNAME = 0x00 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __CONSTANT__ | __CAN_FORBID__,//能力。ABL.CSV//csvから読まれるデータは保存されない。変更不可
EXPNAME = 0x01 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __CONSTANT__ | __CAN_FORBID__,//経験。EXP.CSV
TALENTNAME = 0x02 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __CONSTANT__ | __CAN_FORBID__,//素質。TALENT.CSV
PALAMNAME = 0x03 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __CONSTANT__ | __CAN_FORBID__,//能力。PALAM.CSV
TRAINNAME = 0x04 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//調教名。TRAIN.CSV
MARKNAME = 0x05 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __CONSTANT__ | __CAN_FORBID__,//刻印。MARK.CSV
ITEMNAME = 0x06 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __CONSTANT__ | __CAN_FORBID__,//アイテム。ITEM.CSV
BASENAME = 0x07 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//基礎能力名。BASE.CSV
SOURCENAME = 0x08 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//調教ソース名。SOURCE.CSV
EXNAME = 0x09 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//絶頂名。EX.CSV
__DUMMY_STR__ = 0x0A | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__,
EQUIPNAME = 0x0B | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//装着物名。EQUIP.CSV
TEQUIPNAME = 0x0C | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//調教時装着物名。TEQUIP.CSV
FLAGNAME = 0x0D | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//フラグ名。FLAG.CSV
TFLAGNAME = 0x0E | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//一時フラグ名。TFLAG.CSV
CFLAGNAME = 0x0F | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,//キャラクタフラグ名。CFLAG.CSV
TCVARNAME = 0x10 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
CSTRNAME = 0x11 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
STAINNAME = 0x12 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
CDFLAGNAME1 = 0x13 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
CDFLAGNAME2 = 0x14 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
STRNAME = 0x15 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
TSTRNAME = 0x16 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
SAVESTRNAME = 0x17 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
GLOBALNAME = 0x18 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
GLOBALSNAME = 0x19 | __STRING__ | __ARRAY_1D__ | __UNCHANGEABLE__ | __EXTENDED__ | __CONSTANT__ | __CAN_FORBID__,
__COUNT_CSV_STRING_ARRAY_1D__ = 0x1A,
GAMEBASE_AUTHER = 0x04 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//文字列型。作者。綴りを間違えていたが互換性のため残す。
GAMEBASE_AUTHOR = 0x00 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//文字列型。作者
GAMEBASE_INFO = 0x01 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//文字列型。追加情報
GAMEBASE_YEAR = 0x02 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//文字列型。製作年
GAMEBASE_TITLE = 0x03 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//文字列型。タイトル
WINDOW_TITLE = 0x05 | __STRING__ | __CALC__ | __EXTENDED__,//文字列型。ウインドウのタイトル。変更可能。
//アンダースコア2つで囲まれた変数を追加したらVariableTokenに特別な処理が必要。
__FILE__ = 0x06 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//現在実行中のファイル名
__FUNCTION__ = 0x07 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//現在実行中の関数名
MONEYLABEL = 0x08 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//お金のラベル
DRAWLINESTR = 0x09 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//DRAWLINEの描画文字列
EMUERA_VERSION = 0x0A | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__, //Emeuraのバージョン
LASTLOAD_TEXT = 0x05 | __STRING__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。
GAMEBASE_GAMECODE = 0x00 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。コード
GAMEBASE_VERSION = 0x01 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。バージョン
GAMEBASE_ALLOWVERSION = 0x02 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。バージョン違い認める
GAMEBASE_DEFAULTCHARA = 0x03 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。最初からいるキャラ
GAMEBASE_NOITEM = 0x04 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。アイテムなし
LASTLOAD_VERSION = 0x05 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。
LASTLOAD_NO = 0x06 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//数値型。
__LINE__ = 0x07 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//現在実行中の行番号
LINECOUNT = 0x08 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//描画した行の総数。CLEARで減少
ISTIMEOUT = 0x0B | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//TINPUT系等がTIMEOUTしたか?
__INT_MAX__ = 0x09 | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//Int64最大値
__INT_MIN__ = 0x0A | __INTEGER__ | __CALC__ | __UNCHANGEABLE__ | __EXTENDED__,//Int64最小値
CVAR = 0xFC | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __EXTENDED__,//ユーザー定義変数
CVARS = 0xFC | __STRING__ | __CHARACTER_DATA__ | __ARRAY_1D__ | __EXTENDED__,//ユーザー定義変数
CVAR2D = 0xFC | __INTEGER__ | __CHARACTER_DATA__ | __ARRAY_2D__ | __EXTENDED__,//ユーザー定義変数
CVARS2D = 0xFC | __STRING__ | __CHARACTER_DATA__ | __ARRAY_2D__ | __EXTENDED__,//ユーザー定義変数
//CVAR3D = 0xFC | __INTEGER__ | __ARRAY_3D__ | __EXTENDED__,//ユーザー定義変数
//CVARS3D = 0xFC | __STRING__ | __ARRAY_3D__ | __EXTENDED__,//ユーザー定義変数
REF = 0xFD | __INTEGER__ | __ARRAY_1D__ | __EXTENDED__,//参照型
REFS = 0xFD | __STRING__ | __ARRAY_1D__ | __EXTENDED__,
REF2D = 0xFD | __INTEGER__ | __ARRAY_2D__ | __EXTENDED__,
REFS2D = 0xFD | __STRING__ | __ARRAY_2D__ | __EXTENDED__,
REF3D = 0xFD | __INTEGER__ | __ARRAY_3D__ | __EXTENDED__,
REFS3D = 0xFD | __STRING__ | __ARRAY_3D__ | __EXTENDED__,
VAR = 0xFE | __INTEGER__ | __ARRAY_1D__ | __EXTENDED__,//ユーザー定義変数 1808 プライベート変数と広域変数を区別しない
VARS = 0xFE | __STRING__ | __ARRAY_1D__ | __EXTENDED__,//ユーザー定義変数
VAR2D = 0xFE | __INTEGER__ | __ARRAY_2D__ | __EXTENDED__,//ユーザー定義変数
VARS2D = 0xFE | __STRING__ | __ARRAY_2D__ | __EXTENDED__,//ユーザー定義変数
VAR3D = 0xFE | __INTEGER__ | __ARRAY_3D__ | __EXTENDED__,//ユーザー定義変数
VARS3D = 0xFE | __STRING__ | __ARRAY_3D__ | __EXTENDED__,//ユーザー定義変数
//PRIVATE = 0xFF | __INTEGER__ | __ARRAY_1D__ | __EXTENDED__,//プライベート変数
//PRIVATES = 0xFF | __STRING__ | __ARRAY_1D__ | __EXTENDED__,//プライベート変数
//PRIVATE2D = 0xFF | __INTEGER__ | __ARRAY_2D__ | __EXTENDED__,//プライベート変数
//PRIVATES2D = 0xFF | __STRING__ | __ARRAY_2D__ | __EXTENDED__,//プライベート変数
//PRIVATE3D = 0xFF | __INTEGER__ | __ARRAY_3D__ | __EXTENDED__,//プライベート変数
//PRIVATES3D = 0xFF | __STRING__ | __ARRAY_3D__ | __EXTENDED__,//プライベート変数
}
}
| 64.340206 | 155 | 0.754153 | [
"Apache-2.0"
] | PowerOlive/uEmuera | Assets/Scripts/Emuera/GameData/Variable/VariableCode.cs | 21,989 | C# |
namespace Basic.Tests.Statements
{
using Basic.Runtime;
using Basic.Runtime.Statements;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class EndTests : BaseTests
{
[TestMethod]
public void Execute_OfEnd_EndsProgram()
{
var rte = MakeRunTimeEnvironment();
var shouldNotBeTrue = false;
rte.AddOrUpdate(new Line("10", new Nop()));
rte.AddOrUpdate(new Line("20", new End()));
rte.AddOrUpdate(new Line("30", MakeStatement(() => { shouldNotBeTrue = true; })));
rte.Run();
Assert.IsFalse(shouldNotBeTrue);
}
[TestMethod]
public void ToString_OfEnd_Converts()
{
var end = new End();
var actual = end.ToString();
Assert.AreEqual("END", actual);
}
}
}
| 25.285714 | 94 | 0.561582 | [
"Unlicense"
] | markshevchenko/basic | Basic.Tests/RunTime/Statements/EndTests.cs | 887 | C# |
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: global::Android.Runtime.ResourceDesignerAttribute("AEPAssuranceAndroidUnitTests.Resource", IsApplication=true)]
namespace AEPAssuranceAndroidUnitTests
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
public partial class Resource
{
static Resource()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
public static void UpdateIdValues()
{
global::Xamarin.Android.NUnitLite.Resource.Id.OptionHostName = global::AEPAssuranceAndroidUnitTests.Resource.Id.OptionHostName;
global::Xamarin.Android.NUnitLite.Resource.Id.OptionPort = global::AEPAssuranceAndroidUnitTests.Resource.Id.OptionPort;
global::Xamarin.Android.NUnitLite.Resource.Id.OptionRemoteServer = global::AEPAssuranceAndroidUnitTests.Resource.Id.OptionRemoteServer;
global::Xamarin.Android.NUnitLite.Resource.Id.OptionsButton = global::AEPAssuranceAndroidUnitTests.Resource.Id.OptionsButton;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultFullName = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultFullName;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultMessage = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultMessage;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultResultState = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultResultState;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultRunSingleMethodTest = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultRunSingleMethodTest;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsFailed = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsFailed;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsId = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsId;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsIgnored = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsIgnored;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsInconclusive = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsInconclusive;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsMessage = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsMessage;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsPassed = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsPassed;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultsResult = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultsResult;
global::Xamarin.Android.NUnitLite.Resource.Id.ResultStackTrace = global::AEPAssuranceAndroidUnitTests.Resource.Id.ResultStackTrace;
global::Xamarin.Android.NUnitLite.Resource.Id.RunTestsButton = global::AEPAssuranceAndroidUnitTests.Resource.Id.RunTestsButton;
global::Xamarin.Android.NUnitLite.Resource.Id.TestSuiteListView = global::AEPAssuranceAndroidUnitTests.Resource.Id.TestSuiteListView;
global::Xamarin.Android.NUnitLite.Resource.Layout.options = global::AEPAssuranceAndroidUnitTests.Resource.Layout.options;
global::Xamarin.Android.NUnitLite.Resource.Layout.results = global::AEPAssuranceAndroidUnitTests.Resource.Layout.results;
global::Xamarin.Android.NUnitLite.Resource.Layout.test_result = global::AEPAssuranceAndroidUnitTests.Resource.Layout.test_result;
global::Xamarin.Android.NUnitLite.Resource.Layout.test_suite = global::AEPAssuranceAndroidUnitTests.Resource.Layout.test_suite;
}
public partial class Animation
{
// aapt resource value: 0x7f050000
public const int abc_fade_in = 2131034112;
// aapt resource value: 0x7f050001
public const int abc_fade_out = 2131034113;
// aapt resource value: 0x7f050002
public const int abc_grow_fade_in_from_bottom = 2131034114;
// aapt resource value: 0x7f050003
public const int abc_popup_enter = 2131034115;
// aapt resource value: 0x7f050004
public const int abc_popup_exit = 2131034116;
// aapt resource value: 0x7f050005
public const int abc_shrink_fade_out_from_bottom = 2131034117;
// aapt resource value: 0x7f050006
public const int abc_slide_in_bottom = 2131034118;
// aapt resource value: 0x7f050007
public const int abc_slide_in_top = 2131034119;
// aapt resource value: 0x7f050008
public const int abc_slide_out_bottom = 2131034120;
// aapt resource value: 0x7f050009
public const int abc_slide_out_top = 2131034121;
// aapt resource value: 0x7f05000a
public const int abc_tooltip_enter = 2131034122;
// aapt resource value: 0x7f05000b
public const int abc_tooltip_exit = 2131034123;
static Animation()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Animation()
{
}
}
public partial class Attribute
{
// aapt resource value: 0x7f01004d
public const int actionBarDivider = 2130772045;
// aapt resource value: 0x7f01004e
public const int actionBarItemBackground = 2130772046;
// aapt resource value: 0x7f010047
public const int actionBarPopupTheme = 2130772039;
// aapt resource value: 0x7f01004c
public const int actionBarSize = 2130772044;
// aapt resource value: 0x7f010049
public const int actionBarSplitStyle = 2130772041;
// aapt resource value: 0x7f010048
public const int actionBarStyle = 2130772040;
// aapt resource value: 0x7f010043
public const int actionBarTabBarStyle = 2130772035;
// aapt resource value: 0x7f010042
public const int actionBarTabStyle = 2130772034;
// aapt resource value: 0x7f010044
public const int actionBarTabTextStyle = 2130772036;
// aapt resource value: 0x7f01004a
public const int actionBarTheme = 2130772042;
// aapt resource value: 0x7f01004b
public const int actionBarWidgetTheme = 2130772043;
// aapt resource value: 0x7f010069
public const int actionButtonStyle = 2130772073;
// aapt resource value: 0x7f010065
public const int actionDropDownStyle = 2130772069;
// aapt resource value: 0x7f0100c0
public const int actionLayout = 2130772160;
// aapt resource value: 0x7f01004f
public const int actionMenuTextAppearance = 2130772047;
// aapt resource value: 0x7f010050
public const int actionMenuTextColor = 2130772048;
// aapt resource value: 0x7f010053
public const int actionModeBackground = 2130772051;
// aapt resource value: 0x7f010052
public const int actionModeCloseButtonStyle = 2130772050;
// aapt resource value: 0x7f010055
public const int actionModeCloseDrawable = 2130772053;
// aapt resource value: 0x7f010057
public const int actionModeCopyDrawable = 2130772055;
// aapt resource value: 0x7f010056
public const int actionModeCutDrawable = 2130772054;
// aapt resource value: 0x7f01005b
public const int actionModeFindDrawable = 2130772059;
// aapt resource value: 0x7f010058
public const int actionModePasteDrawable = 2130772056;
// aapt resource value: 0x7f01005d
public const int actionModePopupWindowStyle = 2130772061;
// aapt resource value: 0x7f010059
public const int actionModeSelectAllDrawable = 2130772057;
// aapt resource value: 0x7f01005a
public const int actionModeShareDrawable = 2130772058;
// aapt resource value: 0x7f010054
public const int actionModeSplitBackground = 2130772052;
// aapt resource value: 0x7f010051
public const int actionModeStyle = 2130772049;
// aapt resource value: 0x7f01005c
public const int actionModeWebSearchDrawable = 2130772060;
// aapt resource value: 0x7f010045
public const int actionOverflowButtonStyle = 2130772037;
// aapt resource value: 0x7f010046
public const int actionOverflowMenuStyle = 2130772038;
// aapt resource value: 0x7f0100c2
public const int actionProviderClass = 2130772162;
// aapt resource value: 0x7f0100c1
public const int actionViewClass = 2130772161;
// aapt resource value: 0x7f010071
public const int activityChooserViewStyle = 2130772081;
// aapt resource value: 0x7f010096
public const int alertDialogButtonGroupStyle = 2130772118;
// aapt resource value: 0x7f010097
public const int alertDialogCenterButtons = 2130772119;
// aapt resource value: 0x7f010095
public const int alertDialogStyle = 2130772117;
// aapt resource value: 0x7f010098
public const int alertDialogTheme = 2130772120;
// aapt resource value: 0x7f0100af
public const int allowStacking = 2130772143;
// aapt resource value: 0x7f010104
public const int alpha = 2130772228;
// aapt resource value: 0x7f0100bd
public const int alphabeticModifiers = 2130772157;
// aapt resource value: 0x7f0100b6
public const int arrowHeadLength = 2130772150;
// aapt resource value: 0x7f0100b7
public const int arrowShaftLength = 2130772151;
// aapt resource value: 0x7f01009d
public const int autoCompleteTextViewStyle = 2130772125;
// aapt resource value: 0x7f010033
public const int autoSizeMaxTextSize = 2130772019;
// aapt resource value: 0x7f010032
public const int autoSizeMinTextSize = 2130772018;
// aapt resource value: 0x7f010031
public const int autoSizePresetSizes = 2130772017;
// aapt resource value: 0x7f010030
public const int autoSizeStepGranularity = 2130772016;
// aapt resource value: 0x7f01002f
public const int autoSizeTextType = 2130772015;
// aapt resource value: 0x7f01000c
public const int background = 2130771980;
// aapt resource value: 0x7f01000e
public const int backgroundSplit = 2130771982;
// aapt resource value: 0x7f01000d
public const int backgroundStacked = 2130771981;
// aapt resource value: 0x7f0100f9
public const int backgroundTint = 2130772217;
// aapt resource value: 0x7f0100fa
public const int backgroundTintMode = 2130772218;
// aapt resource value: 0x7f0100b8
public const int barLength = 2130772152;
// aapt resource value: 0x7f01006e
public const int borderlessButtonStyle = 2130772078;
// aapt resource value: 0x7f01006b
public const int buttonBarButtonStyle = 2130772075;
// aapt resource value: 0x7f01009b
public const int buttonBarNegativeButtonStyle = 2130772123;
// aapt resource value: 0x7f01009c
public const int buttonBarNeutralButtonStyle = 2130772124;
// aapt resource value: 0x7f01009a
public const int buttonBarPositiveButtonStyle = 2130772122;
// aapt resource value: 0x7f01006a
public const int buttonBarStyle = 2130772074;
// aapt resource value: 0x7f0100ee
public const int buttonGravity = 2130772206;
// aapt resource value: 0x7f010027
public const int buttonIconDimen = 2130772007;
// aapt resource value: 0x7f010021
public const int buttonPanelSideLayout = 2130772001;
// aapt resource value: 0x7f01009e
public const int buttonStyle = 2130772126;
// aapt resource value: 0x7f01009f
public const int buttonStyleSmall = 2130772127;
// aapt resource value: 0x7f0100b0
public const int buttonTint = 2130772144;
// aapt resource value: 0x7f0100b1
public const int buttonTintMode = 2130772145;
// aapt resource value: 0x7f0100a0
public const int checkboxStyle = 2130772128;
// aapt resource value: 0x7f0100a1
public const int checkedTextViewStyle = 2130772129;
// aapt resource value: 0x7f0100d1
public const int closeIcon = 2130772177;
// aapt resource value: 0x7f01001e
public const int closeItemLayout = 2130771998;
// aapt resource value: 0x7f0100f0
public const int collapseContentDescription = 2130772208;
// aapt resource value: 0x7f0100ef
public const int collapseIcon = 2130772207;
// aapt resource value: 0x7f0100b2
public const int color = 2130772146;
// aapt resource value: 0x7f01008d
public const int colorAccent = 2130772109;
// aapt resource value: 0x7f010094
public const int colorBackgroundFloating = 2130772116;
// aapt resource value: 0x7f010091
public const int colorButtonNormal = 2130772113;
// aapt resource value: 0x7f01008f
public const int colorControlActivated = 2130772111;
// aapt resource value: 0x7f010090
public const int colorControlHighlight = 2130772112;
// aapt resource value: 0x7f01008e
public const int colorControlNormal = 2130772110;
// aapt resource value: 0x7f0100ad
public const int colorError = 2130772141;
// aapt resource value: 0x7f01008b
public const int colorPrimary = 2130772107;
// aapt resource value: 0x7f01008c
public const int colorPrimaryDark = 2130772108;
// aapt resource value: 0x7f010092
public const int colorSwitchThumbNormal = 2130772114;
// aapt resource value: 0x7f0100d6
public const int commitIcon = 2130772182;
// aapt resource value: 0x7f0100c3
public const int contentDescription = 2130772163;
// aapt resource value: 0x7f010017
public const int contentInsetEnd = 2130771991;
// aapt resource value: 0x7f01001b
public const int contentInsetEndWithActions = 2130771995;
// aapt resource value: 0x7f010018
public const int contentInsetLeft = 2130771992;
// aapt resource value: 0x7f010019
public const int contentInsetRight = 2130771993;
// aapt resource value: 0x7f010016
public const int contentInsetStart = 2130771990;
// aapt resource value: 0x7f01001a
public const int contentInsetStartWithNavigation = 2130771994;
// aapt resource value: 0x7f010093
public const int controlBackground = 2130772115;
// aapt resource value: 0x7f0100fb
public const int coordinatorLayoutStyle = 2130772219;
// aapt resource value: 0x7f01000f
public const int customNavigationLayout = 2130771983;
// aapt resource value: 0x7f0100d0
public const int defaultQueryHint = 2130772176;
// aapt resource value: 0x7f010064
public const int dialogCornerRadius = 2130772068;
// aapt resource value: 0x7f010062
public const int dialogPreferredPadding = 2130772066;
// aapt resource value: 0x7f010061
public const int dialogTheme = 2130772065;
// aapt resource value: 0x7f010005
public const int displayOptions = 2130771973;
// aapt resource value: 0x7f01000b
public const int divider = 2130771979;
// aapt resource value: 0x7f010070
public const int dividerHorizontal = 2130772080;
// aapt resource value: 0x7f0100bc
public const int dividerPadding = 2130772156;
// aapt resource value: 0x7f01006f
public const int dividerVertical = 2130772079;
// aapt resource value: 0x7f0100b4
public const int drawableSize = 2130772148;
// aapt resource value: 0x7f010000
public const int drawerArrowStyle = 2130771968;
// aapt resource value: 0x7f010082
public const int dropDownListViewStyle = 2130772098;
// aapt resource value: 0x7f010066
public const int dropdownListPreferredItemHeight = 2130772070;
// aapt resource value: 0x7f010077
public const int editTextBackground = 2130772087;
// aapt resource value: 0x7f010076
public const int editTextColor = 2130772086;
// aapt resource value: 0x7f0100a2
public const int editTextStyle = 2130772130;
// aapt resource value: 0x7f01001c
public const int elevation = 2130771996;
// aapt resource value: 0x7f010020
public const int expandActivityOverflowButtonDrawable = 2130772000;
// aapt resource value: 0x7f010036
public const int firstBaselineToTopHeight = 2130772022;
// aapt resource value: 0x7f01010c
public const int font = 2130772236;
// aapt resource value: 0x7f010034
public const int fontFamily = 2130772020;
// aapt resource value: 0x7f010105
public const int fontProviderAuthority = 2130772229;
// aapt resource value: 0x7f010108
public const int fontProviderCerts = 2130772232;
// aapt resource value: 0x7f010109
public const int fontProviderFetchStrategy = 2130772233;
// aapt resource value: 0x7f01010a
public const int fontProviderFetchTimeout = 2130772234;
// aapt resource value: 0x7f010106
public const int fontProviderPackage = 2130772230;
// aapt resource value: 0x7f010107
public const int fontProviderQuery = 2130772231;
// aapt resource value: 0x7f01010b
public const int fontStyle = 2130772235;
// aapt resource value: 0x7f01010e
public const int fontVariationSettings = 2130772238;
// aapt resource value: 0x7f01010d
public const int fontWeight = 2130772237;
// aapt resource value: 0x7f0100b5
public const int gapBetweenBars = 2130772149;
// aapt resource value: 0x7f0100d2
public const int goIcon = 2130772178;
// aapt resource value: 0x7f010001
public const int height = 2130771969;
// aapt resource value: 0x7f010015
public const int hideOnContentScroll = 2130771989;
// aapt resource value: 0x7f010068
public const int homeAsUpIndicator = 2130772072;
// aapt resource value: 0x7f010010
public const int homeLayout = 2130771984;
// aapt resource value: 0x7f010009
public const int icon = 2130771977;
// aapt resource value: 0x7f0100c5
public const int iconTint = 2130772165;
// aapt resource value: 0x7f0100c6
public const int iconTintMode = 2130772166;
// aapt resource value: 0x7f0100ce
public const int iconifiedByDefault = 2130772174;
// aapt resource value: 0x7f010078
public const int imageButtonStyle = 2130772088;
// aapt resource value: 0x7f010012
public const int indeterminateProgressStyle = 2130771986;
// aapt resource value: 0x7f01001f
public const int initialActivityCount = 2130771999;
// aapt resource value: 0x7f010002
public const int isLightTheme = 2130771970;
// aapt resource value: 0x7f010014
public const int itemPadding = 2130771988;
// aapt resource value: 0x7f0100fc
public const int keylines = 2130772220;
// aapt resource value: 0x7f010037
public const int lastBaselineToBottomHeight = 2130772023;
// aapt resource value: 0x7f0100cd
public const int layout = 2130772173;
// aapt resource value: 0x7f0100ff
public const int layout_anchor = 2130772223;
// aapt resource value: 0x7f010101
public const int layout_anchorGravity = 2130772225;
// aapt resource value: 0x7f0100fe
public const int layout_behavior = 2130772222;
// aapt resource value: 0x7f010103
public const int layout_dodgeInsetEdges = 2130772227;
// aapt resource value: 0x7f010102
public const int layout_insetEdge = 2130772226;
// aapt resource value: 0x7f010100
public const int layout_keyline = 2130772224;
// aapt resource value: 0x7f010035
public const int lineHeight = 2130772021;
// aapt resource value: 0x7f01008a
public const int listChoiceBackgroundIndicator = 2130772106;
// aapt resource value: 0x7f010063
public const int listDividerAlertDialog = 2130772067;
// aapt resource value: 0x7f010025
public const int listItemLayout = 2130772005;
// aapt resource value: 0x7f010022
public const int listLayout = 2130772002;
// aapt resource value: 0x7f0100aa
public const int listMenuViewStyle = 2130772138;
// aapt resource value: 0x7f010083
public const int listPopupWindowStyle = 2130772099;
// aapt resource value: 0x7f01007d
public const int listPreferredItemHeight = 2130772093;
// aapt resource value: 0x7f01007f
public const int listPreferredItemHeightLarge = 2130772095;
// aapt resource value: 0x7f01007e
public const int listPreferredItemHeightSmall = 2130772094;
// aapt resource value: 0x7f010080
public const int listPreferredItemPaddingLeft = 2130772096;
// aapt resource value: 0x7f010081
public const int listPreferredItemPaddingRight = 2130772097;
// aapt resource value: 0x7f01000a
public const int logo = 2130771978;
// aapt resource value: 0x7f0100f3
public const int logoDescription = 2130772211;
// aapt resource value: 0x7f0100ed
public const int maxButtonHeight = 2130772205;
// aapt resource value: 0x7f0100ba
public const int measureWithLargestChild = 2130772154;
// aapt resource value: 0x7f010023
public const int multiChoiceItemLayout = 2130772003;
// aapt resource value: 0x7f0100f2
public const int navigationContentDescription = 2130772210;
// aapt resource value: 0x7f0100f1
public const int navigationIcon = 2130772209;
// aapt resource value: 0x7f010004
public const int navigationMode = 2130771972;
// aapt resource value: 0x7f0100be
public const int numericModifiers = 2130772158;
// aapt resource value: 0x7f0100c9
public const int overlapAnchor = 2130772169;
// aapt resource value: 0x7f0100cb
public const int paddingBottomNoButtons = 2130772171;
// aapt resource value: 0x7f0100f7
public const int paddingEnd = 2130772215;
// aapt resource value: 0x7f0100f6
public const int paddingStart = 2130772214;
// aapt resource value: 0x7f0100cc
public const int paddingTopNoTitle = 2130772172;
// aapt resource value: 0x7f010087
public const int panelBackground = 2130772103;
// aapt resource value: 0x7f010089
public const int panelMenuListTheme = 2130772105;
// aapt resource value: 0x7f010088
public const int panelMenuListWidth = 2130772104;
// aapt resource value: 0x7f010074
public const int popupMenuStyle = 2130772084;
// aapt resource value: 0x7f01001d
public const int popupTheme = 2130771997;
// aapt resource value: 0x7f010075
public const int popupWindowStyle = 2130772085;
// aapt resource value: 0x7f0100c7
public const int preserveIconSpacing = 2130772167;
// aapt resource value: 0x7f010013
public const int progressBarPadding = 2130771987;
// aapt resource value: 0x7f010011
public const int progressBarStyle = 2130771985;
// aapt resource value: 0x7f0100d8
public const int queryBackground = 2130772184;
// aapt resource value: 0x7f0100cf
public const int queryHint = 2130772175;
// aapt resource value: 0x7f0100a3
public const int radioButtonStyle = 2130772131;
// aapt resource value: 0x7f0100a4
public const int ratingBarStyle = 2130772132;
// aapt resource value: 0x7f0100a5
public const int ratingBarStyleIndicator = 2130772133;
// aapt resource value: 0x7f0100a6
public const int ratingBarStyleSmall = 2130772134;
// aapt resource value: 0x7f0100d4
public const int searchHintIcon = 2130772180;
// aapt resource value: 0x7f0100d3
public const int searchIcon = 2130772179;
// aapt resource value: 0x7f01007c
public const int searchViewStyle = 2130772092;
// aapt resource value: 0x7f0100a7
public const int seekBarStyle = 2130772135;
// aapt resource value: 0x7f01006c
public const int selectableItemBackground = 2130772076;
// aapt resource value: 0x7f01006d
public const int selectableItemBackgroundBorderless = 2130772077;
// aapt resource value: 0x7f0100bf
public const int showAsAction = 2130772159;
// aapt resource value: 0x7f0100bb
public const int showDividers = 2130772155;
// aapt resource value: 0x7f0100e4
public const int showText = 2130772196;
// aapt resource value: 0x7f010026
public const int showTitle = 2130772006;
// aapt resource value: 0x7f010024
public const int singleChoiceItemLayout = 2130772004;
// aapt resource value: 0x7f0100b3
public const int spinBars = 2130772147;
// aapt resource value: 0x7f010067
public const int spinnerDropDownItemStyle = 2130772071;
// aapt resource value: 0x7f0100a8
public const int spinnerStyle = 2130772136;
// aapt resource value: 0x7f0100e3
public const int splitTrack = 2130772195;
// aapt resource value: 0x7f010028
public const int srcCompat = 2130772008;
// aapt resource value: 0x7f0100ca
public const int state_above_anchor = 2130772170;
// aapt resource value: 0x7f0100fd
public const int statusBarBackground = 2130772221;
// aapt resource value: 0x7f0100c8
public const int subMenuArrow = 2130772168;
// aapt resource value: 0x7f0100d9
public const int submitBackground = 2130772185;
// aapt resource value: 0x7f010006
public const int subtitle = 2130771974;
// aapt resource value: 0x7f0100e6
public const int subtitleTextAppearance = 2130772198;
// aapt resource value: 0x7f0100f5
public const int subtitleTextColor = 2130772213;
// aapt resource value: 0x7f010008
public const int subtitleTextStyle = 2130771976;
// aapt resource value: 0x7f0100d7
public const int suggestionRowLayout = 2130772183;
// aapt resource value: 0x7f0100e1
public const int switchMinWidth = 2130772193;
// aapt resource value: 0x7f0100e2
public const int switchPadding = 2130772194;
// aapt resource value: 0x7f0100a9
public const int switchStyle = 2130772137;
// aapt resource value: 0x7f0100e0
public const int switchTextAppearance = 2130772192;
// aapt resource value: 0x7f01002e
public const int textAllCaps = 2130772014;
// aapt resource value: 0x7f01005e
public const int textAppearanceLargePopupMenu = 2130772062;
// aapt resource value: 0x7f010084
public const int textAppearanceListItem = 2130772100;
// aapt resource value: 0x7f010085
public const int textAppearanceListItemSecondary = 2130772101;
// aapt resource value: 0x7f010086
public const int textAppearanceListItemSmall = 2130772102;
// aapt resource value: 0x7f010060
public const int textAppearancePopupMenuHeader = 2130772064;
// aapt resource value: 0x7f01007a
public const int textAppearanceSearchResultSubtitle = 2130772090;
// aapt resource value: 0x7f010079
public const int textAppearanceSearchResultTitle = 2130772089;
// aapt resource value: 0x7f01005f
public const int textAppearanceSmallPopupMenu = 2130772063;
// aapt resource value: 0x7f010099
public const int textColorAlertDialogListItem = 2130772121;
// aapt resource value: 0x7f01007b
public const int textColorSearchUrl = 2130772091;
// aapt resource value: 0x7f0100f8
public const int theme = 2130772216;
// aapt resource value: 0x7f0100b9
public const int thickness = 2130772153;
// aapt resource value: 0x7f0100df
public const int thumbTextPadding = 2130772191;
// aapt resource value: 0x7f0100da
public const int thumbTint = 2130772186;
// aapt resource value: 0x7f0100db
public const int thumbTintMode = 2130772187;
// aapt resource value: 0x7f01002b
public const int tickMark = 2130772011;
// aapt resource value: 0x7f01002c
public const int tickMarkTint = 2130772012;
// aapt resource value: 0x7f01002d
public const int tickMarkTintMode = 2130772013;
// aapt resource value: 0x7f010029
public const int tint = 2130772009;
// aapt resource value: 0x7f01002a
public const int tintMode = 2130772010;
// aapt resource value: 0x7f010003
public const int title = 2130771971;
// aapt resource value: 0x7f0100e7
public const int titleMargin = 2130772199;
// aapt resource value: 0x7f0100eb
public const int titleMarginBottom = 2130772203;
// aapt resource value: 0x7f0100e9
public const int titleMarginEnd = 2130772201;
// aapt resource value: 0x7f0100e8
public const int titleMarginStart = 2130772200;
// aapt resource value: 0x7f0100ea
public const int titleMarginTop = 2130772202;
// aapt resource value: 0x7f0100ec
public const int titleMargins = 2130772204;
// aapt resource value: 0x7f0100e5
public const int titleTextAppearance = 2130772197;
// aapt resource value: 0x7f0100f4
public const int titleTextColor = 2130772212;
// aapt resource value: 0x7f010007
public const int titleTextStyle = 2130771975;
// aapt resource value: 0x7f010073
public const int toolbarNavigationButtonStyle = 2130772083;
// aapt resource value: 0x7f010072
public const int toolbarStyle = 2130772082;
// aapt resource value: 0x7f0100ac
public const int tooltipForegroundColor = 2130772140;
// aapt resource value: 0x7f0100ab
public const int tooltipFrameBackground = 2130772139;
// aapt resource value: 0x7f0100c4
public const int tooltipText = 2130772164;
// aapt resource value: 0x7f0100dc
public const int track = 2130772188;
// aapt resource value: 0x7f0100dd
public const int trackTint = 2130772189;
// aapt resource value: 0x7f0100de
public const int trackTintMode = 2130772190;
// aapt resource value: 0x7f01010f
public const int ttcIndex = 2130772239;
// aapt resource value: 0x7f0100ae
public const int viewInflaterClass = 2130772142;
// aapt resource value: 0x7f0100d5
public const int voiceIcon = 2130772181;
// aapt resource value: 0x7f010038
public const int windowActionBar = 2130772024;
// aapt resource value: 0x7f01003a
public const int windowActionBarOverlay = 2130772026;
// aapt resource value: 0x7f01003b
public const int windowActionModeOverlay = 2130772027;
// aapt resource value: 0x7f01003f
public const int windowFixedHeightMajor = 2130772031;
// aapt resource value: 0x7f01003d
public const int windowFixedHeightMinor = 2130772029;
// aapt resource value: 0x7f01003c
public const int windowFixedWidthMajor = 2130772028;
// aapt resource value: 0x7f01003e
public const int windowFixedWidthMinor = 2130772030;
// aapt resource value: 0x7f010040
public const int windowMinWidthMajor = 2130772032;
// aapt resource value: 0x7f010041
public const int windowMinWidthMinor = 2130772033;
// aapt resource value: 0x7f010039
public const int windowNoTitle = 2130772025;
static Attribute()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Attribute()
{
}
}
public partial class Boolean
{
// aapt resource value: 0x7f090000
public const int abc_action_bar_embed_tabs = 2131296256;
// aapt resource value: 0x7f090001
public const int abc_allow_stacked_button_bar = 2131296257;
// aapt resource value: 0x7f090002
public const int abc_config_actionMenuItemAllCaps = 2131296258;
static Boolean()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Boolean()
{
}
}
public partial class Color
{
// aapt resource value: 0x7f0a0041
public const int abc_background_cache_hint_selector_material_dark = 2131361857;
// aapt resource value: 0x7f0a0042
public const int abc_background_cache_hint_selector_material_light = 2131361858;
// aapt resource value: 0x7f0a0043
public const int abc_btn_colored_borderless_text_material = 2131361859;
// aapt resource value: 0x7f0a0044
public const int abc_btn_colored_text_material = 2131361860;
// aapt resource value: 0x7f0a0045
public const int abc_color_highlight_material = 2131361861;
// aapt resource value: 0x7f0a0046
public const int abc_hint_foreground_material_dark = 2131361862;
// aapt resource value: 0x7f0a0047
public const int abc_hint_foreground_material_light = 2131361863;
// aapt resource value: 0x7f0a0000
public const int abc_input_method_navigation_guard = 2131361792;
// aapt resource value: 0x7f0a0048
public const int abc_primary_text_disable_only_material_dark = 2131361864;
// aapt resource value: 0x7f0a0049
public const int abc_primary_text_disable_only_material_light = 2131361865;
// aapt resource value: 0x7f0a004a
public const int abc_primary_text_material_dark = 2131361866;
// aapt resource value: 0x7f0a004b
public const int abc_primary_text_material_light = 2131361867;
// aapt resource value: 0x7f0a004c
public const int abc_search_url_text = 2131361868;
// aapt resource value: 0x7f0a0001
public const int abc_search_url_text_normal = 2131361793;
// aapt resource value: 0x7f0a0002
public const int abc_search_url_text_pressed = 2131361794;
// aapt resource value: 0x7f0a0003
public const int abc_search_url_text_selected = 2131361795;
// aapt resource value: 0x7f0a004d
public const int abc_secondary_text_material_dark = 2131361869;
// aapt resource value: 0x7f0a004e
public const int abc_secondary_text_material_light = 2131361870;
// aapt resource value: 0x7f0a004f
public const int abc_tint_btn_checkable = 2131361871;
// aapt resource value: 0x7f0a0050
public const int abc_tint_default = 2131361872;
// aapt resource value: 0x7f0a0051
public const int abc_tint_edittext = 2131361873;
// aapt resource value: 0x7f0a0052
public const int abc_tint_seek_thumb = 2131361874;
// aapt resource value: 0x7f0a0053
public const int abc_tint_spinner = 2131361875;
// aapt resource value: 0x7f0a0054
public const int abc_tint_switch_track = 2131361876;
// aapt resource value: 0x7f0a0004
public const int accent_material_dark = 2131361796;
// aapt resource value: 0x7f0a0005
public const int accent_material_light = 2131361797;
// aapt resource value: 0x7f0a0006
public const int background_floating_material_dark = 2131361798;
// aapt resource value: 0x7f0a0007
public const int background_floating_material_light = 2131361799;
// aapt resource value: 0x7f0a0008
public const int background_material_dark = 2131361800;
// aapt resource value: 0x7f0a0009
public const int background_material_light = 2131361801;
// aapt resource value: 0x7f0a000a
public const int bright_foreground_disabled_material_dark = 2131361802;
// aapt resource value: 0x7f0a000b
public const int bright_foreground_disabled_material_light = 2131361803;
// aapt resource value: 0x7f0a000c
public const int bright_foreground_inverse_material_dark = 2131361804;
// aapt resource value: 0x7f0a000d
public const int bright_foreground_inverse_material_light = 2131361805;
// aapt resource value: 0x7f0a000e
public const int bright_foreground_material_dark = 2131361806;
// aapt resource value: 0x7f0a000f
public const int bright_foreground_material_light = 2131361807;
// aapt resource value: 0x7f0a0010
public const int button_material_dark = 2131361808;
// aapt resource value: 0x7f0a0011
public const int button_material_light = 2131361809;
// aapt resource value: 0x7f0a003e
public const int colorAccent = 2131361854;
// aapt resource value: 0x7f0a003f
public const int colorPrimary = 2131361855;
// aapt resource value: 0x7f0a0040
public const int colorPrimaryDark = 2131361856;
// aapt resource value: 0x7f0a0012
public const int dim_foreground_disabled_material_dark = 2131361810;
// aapt resource value: 0x7f0a0013
public const int dim_foreground_disabled_material_light = 2131361811;
// aapt resource value: 0x7f0a0014
public const int dim_foreground_material_dark = 2131361812;
// aapt resource value: 0x7f0a0015
public const int dim_foreground_material_light = 2131361813;
// aapt resource value: 0x7f0a0016
public const int error_color_material_dark = 2131361814;
// aapt resource value: 0x7f0a0017
public const int error_color_material_light = 2131361815;
// aapt resource value: 0x7f0a0018
public const int foreground_material_dark = 2131361816;
// aapt resource value: 0x7f0a0019
public const int foreground_material_light = 2131361817;
// aapt resource value: 0x7f0a001a
public const int highlighted_text_material_dark = 2131361818;
// aapt resource value: 0x7f0a001b
public const int highlighted_text_material_light = 2131361819;
// aapt resource value: 0x7f0a001c
public const int material_blue_grey_800 = 2131361820;
// aapt resource value: 0x7f0a001d
public const int material_blue_grey_900 = 2131361821;
// aapt resource value: 0x7f0a001e
public const int material_blue_grey_950 = 2131361822;
// aapt resource value: 0x7f0a001f
public const int material_deep_teal_200 = 2131361823;
// aapt resource value: 0x7f0a0020
public const int material_deep_teal_500 = 2131361824;
// aapt resource value: 0x7f0a0021
public const int material_grey_100 = 2131361825;
// aapt resource value: 0x7f0a0022
public const int material_grey_300 = 2131361826;
// aapt resource value: 0x7f0a0023
public const int material_grey_50 = 2131361827;
// aapt resource value: 0x7f0a0024
public const int material_grey_600 = 2131361828;
// aapt resource value: 0x7f0a0025
public const int material_grey_800 = 2131361829;
// aapt resource value: 0x7f0a0026
public const int material_grey_850 = 2131361830;
// aapt resource value: 0x7f0a0027
public const int material_grey_900 = 2131361831;
// aapt resource value: 0x7f0a003c
public const int notification_action_color_filter = 2131361852;
// aapt resource value: 0x7f0a003d
public const int notification_icon_bg_color = 2131361853;
// aapt resource value: 0x7f0a0028
public const int primary_dark_material_dark = 2131361832;
// aapt resource value: 0x7f0a0029
public const int primary_dark_material_light = 2131361833;
// aapt resource value: 0x7f0a002a
public const int primary_material_dark = 2131361834;
// aapt resource value: 0x7f0a002b
public const int primary_material_light = 2131361835;
// aapt resource value: 0x7f0a002c
public const int primary_text_default_material_dark = 2131361836;
// aapt resource value: 0x7f0a002d
public const int primary_text_default_material_light = 2131361837;
// aapt resource value: 0x7f0a002e
public const int primary_text_disabled_material_dark = 2131361838;
// aapt resource value: 0x7f0a002f
public const int primary_text_disabled_material_light = 2131361839;
// aapt resource value: 0x7f0a0030
public const int ripple_material_dark = 2131361840;
// aapt resource value: 0x7f0a0031
public const int ripple_material_light = 2131361841;
// aapt resource value: 0x7f0a0032
public const int secondary_text_default_material_dark = 2131361842;
// aapt resource value: 0x7f0a0033
public const int secondary_text_default_material_light = 2131361843;
// aapt resource value: 0x7f0a0034
public const int secondary_text_disabled_material_dark = 2131361844;
// aapt resource value: 0x7f0a0035
public const int secondary_text_disabled_material_light = 2131361845;
// aapt resource value: 0x7f0a0036
public const int switch_thumb_disabled_material_dark = 2131361846;
// aapt resource value: 0x7f0a0037
public const int switch_thumb_disabled_material_light = 2131361847;
// aapt resource value: 0x7f0a0055
public const int switch_thumb_material_dark = 2131361877;
// aapt resource value: 0x7f0a0056
public const int switch_thumb_material_light = 2131361878;
// aapt resource value: 0x7f0a0038
public const int switch_thumb_normal_material_dark = 2131361848;
// aapt resource value: 0x7f0a0039
public const int switch_thumb_normal_material_light = 2131361849;
// aapt resource value: 0x7f0a003a
public const int tooltip_background_dark = 2131361850;
// aapt resource value: 0x7f0a003b
public const int tooltip_background_light = 2131361851;
static Color()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Color()
{
}
}
public partial class Dimension
{
// aapt resource value: 0x7f07000b
public const int abc_action_bar_content_inset_material = 2131165195;
// aapt resource value: 0x7f07000c
public const int abc_action_bar_content_inset_with_nav = 2131165196;
// aapt resource value: 0x7f070001
public const int abc_action_bar_default_height_material = 2131165185;
// aapt resource value: 0x7f07000d
public const int abc_action_bar_default_padding_end_material = 2131165197;
// aapt resource value: 0x7f07000e
public const int abc_action_bar_default_padding_start_material = 2131165198;
// aapt resource value: 0x7f070010
public const int abc_action_bar_elevation_material = 2131165200;
// aapt resource value: 0x7f070011
public const int abc_action_bar_icon_vertical_padding_material = 2131165201;
// aapt resource value: 0x7f070012
public const int abc_action_bar_overflow_padding_end_material = 2131165202;
// aapt resource value: 0x7f070013
public const int abc_action_bar_overflow_padding_start_material = 2131165203;
// aapt resource value: 0x7f070014
public const int abc_action_bar_stacked_max_height = 2131165204;
// aapt resource value: 0x7f070015
public const int abc_action_bar_stacked_tab_max_width = 2131165205;
// aapt resource value: 0x7f070016
public const int abc_action_bar_subtitle_bottom_margin_material = 2131165206;
// aapt resource value: 0x7f070017
public const int abc_action_bar_subtitle_top_margin_material = 2131165207;
// aapt resource value: 0x7f070018
public const int abc_action_button_min_height_material = 2131165208;
// aapt resource value: 0x7f070019
public const int abc_action_button_min_width_material = 2131165209;
// aapt resource value: 0x7f07001a
public const int abc_action_button_min_width_overflow_material = 2131165210;
// aapt resource value: 0x7f070000
public const int abc_alert_dialog_button_bar_height = 2131165184;
// aapt resource value: 0x7f07001b
public const int abc_alert_dialog_button_dimen = 2131165211;
// aapt resource value: 0x7f07001c
public const int abc_button_inset_horizontal_material = 2131165212;
// aapt resource value: 0x7f07001d
public const int abc_button_inset_vertical_material = 2131165213;
// aapt resource value: 0x7f07001e
public const int abc_button_padding_horizontal_material = 2131165214;
// aapt resource value: 0x7f07001f
public const int abc_button_padding_vertical_material = 2131165215;
// aapt resource value: 0x7f070020
public const int abc_cascading_menus_min_smallest_width = 2131165216;
// aapt resource value: 0x7f070004
public const int abc_config_prefDialogWidth = 2131165188;
// aapt resource value: 0x7f070021
public const int abc_control_corner_material = 2131165217;
// aapt resource value: 0x7f070022
public const int abc_control_inset_material = 2131165218;
// aapt resource value: 0x7f070023
public const int abc_control_padding_material = 2131165219;
// aapt resource value: 0x7f070024
public const int abc_dialog_corner_radius_material = 2131165220;
// aapt resource value: 0x7f070005
public const int abc_dialog_fixed_height_major = 2131165189;
// aapt resource value: 0x7f070006
public const int abc_dialog_fixed_height_minor = 2131165190;
// aapt resource value: 0x7f070007
public const int abc_dialog_fixed_width_major = 2131165191;
// aapt resource value: 0x7f070008
public const int abc_dialog_fixed_width_minor = 2131165192;
// aapt resource value: 0x7f070025
public const int abc_dialog_list_padding_bottom_no_buttons = 2131165221;
// aapt resource value: 0x7f070026
public const int abc_dialog_list_padding_top_no_title = 2131165222;
// aapt resource value: 0x7f070009
public const int abc_dialog_min_width_major = 2131165193;
// aapt resource value: 0x7f07000a
public const int abc_dialog_min_width_minor = 2131165194;
// aapt resource value: 0x7f070027
public const int abc_dialog_padding_material = 2131165223;
// aapt resource value: 0x7f070028
public const int abc_dialog_padding_top_material = 2131165224;
// aapt resource value: 0x7f070029
public const int abc_dialog_title_divider_material = 2131165225;
// aapt resource value: 0x7f07002a
public const int abc_disabled_alpha_material_dark = 2131165226;
// aapt resource value: 0x7f07002b
public const int abc_disabled_alpha_material_light = 2131165227;
// aapt resource value: 0x7f07002c
public const int abc_dropdownitem_icon_width = 2131165228;
// aapt resource value: 0x7f07002d
public const int abc_dropdownitem_text_padding_left = 2131165229;
// aapt resource value: 0x7f07002e
public const int abc_dropdownitem_text_padding_right = 2131165230;
// aapt resource value: 0x7f07002f
public const int abc_edit_text_inset_bottom_material = 2131165231;
// aapt resource value: 0x7f070030
public const int abc_edit_text_inset_horizontal_material = 2131165232;
// aapt resource value: 0x7f070031
public const int abc_edit_text_inset_top_material = 2131165233;
// aapt resource value: 0x7f070032
public const int abc_floating_window_z = 2131165234;
// aapt resource value: 0x7f070033
public const int abc_list_item_padding_horizontal_material = 2131165235;
// aapt resource value: 0x7f070034
public const int abc_panel_menu_list_width = 2131165236;
// aapt resource value: 0x7f070035
public const int abc_progress_bar_height_material = 2131165237;
// aapt resource value: 0x7f070036
public const int abc_search_view_preferred_height = 2131165238;
// aapt resource value: 0x7f070037
public const int abc_search_view_preferred_width = 2131165239;
// aapt resource value: 0x7f070038
public const int abc_seekbar_track_background_height_material = 2131165240;
// aapt resource value: 0x7f070039
public const int abc_seekbar_track_progress_height_material = 2131165241;
// aapt resource value: 0x7f07003a
public const int abc_select_dialog_padding_start_material = 2131165242;
// aapt resource value: 0x7f07000f
public const int abc_switch_padding = 2131165199;
// aapt resource value: 0x7f07003b
public const int abc_text_size_body_1_material = 2131165243;
// aapt resource value: 0x7f07003c
public const int abc_text_size_body_2_material = 2131165244;
// aapt resource value: 0x7f07003d
public const int abc_text_size_button_material = 2131165245;
// aapt resource value: 0x7f07003e
public const int abc_text_size_caption_material = 2131165246;
// aapt resource value: 0x7f07003f
public const int abc_text_size_display_1_material = 2131165247;
// aapt resource value: 0x7f070040
public const int abc_text_size_display_2_material = 2131165248;
// aapt resource value: 0x7f070041
public const int abc_text_size_display_3_material = 2131165249;
// aapt resource value: 0x7f070042
public const int abc_text_size_display_4_material = 2131165250;
// aapt resource value: 0x7f070043
public const int abc_text_size_headline_material = 2131165251;
// aapt resource value: 0x7f070044
public const int abc_text_size_large_material = 2131165252;
// aapt resource value: 0x7f070045
public const int abc_text_size_medium_material = 2131165253;
// aapt resource value: 0x7f070046
public const int abc_text_size_menu_header_material = 2131165254;
// aapt resource value: 0x7f070047
public const int abc_text_size_menu_material = 2131165255;
// aapt resource value: 0x7f070048
public const int abc_text_size_small_material = 2131165256;
// aapt resource value: 0x7f070049
public const int abc_text_size_subhead_material = 2131165257;
// aapt resource value: 0x7f070002
public const int abc_text_size_subtitle_material_toolbar = 2131165186;
// aapt resource value: 0x7f07004a
public const int abc_text_size_title_material = 2131165258;
// aapt resource value: 0x7f070003
public const int abc_text_size_title_material_toolbar = 2131165187;
// aapt resource value: 0x7f070060
public const int compat_button_inset_horizontal_material = 2131165280;
// aapt resource value: 0x7f070061
public const int compat_button_inset_vertical_material = 2131165281;
// aapt resource value: 0x7f070062
public const int compat_button_padding_horizontal_material = 2131165282;
// aapt resource value: 0x7f070063
public const int compat_button_padding_vertical_material = 2131165283;
// aapt resource value: 0x7f070064
public const int compat_control_corner_material = 2131165284;
// aapt resource value: 0x7f070065
public const int compat_notification_large_icon_max_height = 2131165285;
// aapt resource value: 0x7f070066
public const int compat_notification_large_icon_max_width = 2131165286;
// aapt resource value: 0x7f07004b
public const int disabled_alpha_material_dark = 2131165259;
// aapt resource value: 0x7f07004c
public const int disabled_alpha_material_light = 2131165260;
// aapt resource value: 0x7f07004d
public const int highlight_alpha_material_colored = 2131165261;
// aapt resource value: 0x7f07004e
public const int highlight_alpha_material_dark = 2131165262;
// aapt resource value: 0x7f07004f
public const int highlight_alpha_material_light = 2131165263;
// aapt resource value: 0x7f070050
public const int hint_alpha_material_dark = 2131165264;
// aapt resource value: 0x7f070051
public const int hint_alpha_material_light = 2131165265;
// aapt resource value: 0x7f070052
public const int hint_pressed_alpha_material_dark = 2131165266;
// aapt resource value: 0x7f070053
public const int hint_pressed_alpha_material_light = 2131165267;
// aapt resource value: 0x7f070067
public const int notification_action_icon_size = 2131165287;
// aapt resource value: 0x7f070068
public const int notification_action_text_size = 2131165288;
// aapt resource value: 0x7f070069
public const int notification_big_circle_margin = 2131165289;
// aapt resource value: 0x7f07005d
public const int notification_content_margin_start = 2131165277;
// aapt resource value: 0x7f07006a
public const int notification_large_icon_height = 2131165290;
// aapt resource value: 0x7f07006b
public const int notification_large_icon_width = 2131165291;
// aapt resource value: 0x7f07005e
public const int notification_main_column_padding_top = 2131165278;
// aapt resource value: 0x7f07005f
public const int notification_media_narrow_margin = 2131165279;
// aapt resource value: 0x7f07006c
public const int notification_right_icon_size = 2131165292;
// aapt resource value: 0x7f07005c
public const int notification_right_side_padding_top = 2131165276;
// aapt resource value: 0x7f07006d
public const int notification_small_icon_background_padding = 2131165293;
// aapt resource value: 0x7f07006e
public const int notification_small_icon_size_as_large = 2131165294;
// aapt resource value: 0x7f07006f
public const int notification_subtext_size = 2131165295;
// aapt resource value: 0x7f070070
public const int notification_top_pad = 2131165296;
// aapt resource value: 0x7f070071
public const int notification_top_pad_large_text = 2131165297;
// aapt resource value: 0x7f070054
public const int tooltip_corner_radius = 2131165268;
// aapt resource value: 0x7f070055
public const int tooltip_horizontal_padding = 2131165269;
// aapt resource value: 0x7f070056
public const int tooltip_margin = 2131165270;
// aapt resource value: 0x7f070057
public const int tooltip_precise_anchor_extra_offset = 2131165271;
// aapt resource value: 0x7f070058
public const int tooltip_precise_anchor_threshold = 2131165272;
// aapt resource value: 0x7f070059
public const int tooltip_vertical_padding = 2131165273;
// aapt resource value: 0x7f07005a
public const int tooltip_y_offset_non_touch = 2131165274;
// aapt resource value: 0x7f07005b
public const int tooltip_y_offset_touch = 2131165275;
static Dimension()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Dimension()
{
}
}
public partial class Drawable
{
// aapt resource value: 0x7f020000
public const int abc_ab_share_pack_mtrl_alpha = 2130837504;
// aapt resource value: 0x7f020001
public const int abc_action_bar_item_background_material = 2130837505;
// aapt resource value: 0x7f020002
public const int abc_btn_borderless_material = 2130837506;
// aapt resource value: 0x7f020003
public const int abc_btn_check_material = 2130837507;
// aapt resource value: 0x7f020004
public const int abc_btn_check_to_on_mtrl_000 = 2130837508;
// aapt resource value: 0x7f020005
public const int abc_btn_check_to_on_mtrl_015 = 2130837509;
// aapt resource value: 0x7f020006
public const int abc_btn_colored_material = 2130837510;
// aapt resource value: 0x7f020007
public const int abc_btn_default_mtrl_shape = 2130837511;
// aapt resource value: 0x7f020008
public const int abc_btn_radio_material = 2130837512;
// aapt resource value: 0x7f020009
public const int abc_btn_radio_to_on_mtrl_000 = 2130837513;
// aapt resource value: 0x7f02000a
public const int abc_btn_radio_to_on_mtrl_015 = 2130837514;
// aapt resource value: 0x7f02000b
public const int abc_btn_switch_to_on_mtrl_00001 = 2130837515;
// aapt resource value: 0x7f02000c
public const int abc_btn_switch_to_on_mtrl_00012 = 2130837516;
// aapt resource value: 0x7f02000d
public const int abc_cab_background_internal_bg = 2130837517;
// aapt resource value: 0x7f02000e
public const int abc_cab_background_top_material = 2130837518;
// aapt resource value: 0x7f02000f
public const int abc_cab_background_top_mtrl_alpha = 2130837519;
// aapt resource value: 0x7f020010
public const int abc_control_background_material = 2130837520;
// aapt resource value: 0x7f020011
public const int abc_dialog_material_background = 2130837521;
// aapt resource value: 0x7f020012
public const int abc_edit_text_material = 2130837522;
// aapt resource value: 0x7f020013
public const int abc_ic_ab_back_material = 2130837523;
// aapt resource value: 0x7f020014
public const int abc_ic_arrow_drop_right_black_24dp = 2130837524;
// aapt resource value: 0x7f020015
public const int abc_ic_clear_material = 2130837525;
// aapt resource value: 0x7f020016
public const int abc_ic_commit_search_api_mtrl_alpha = 2130837526;
// aapt resource value: 0x7f020017
public const int abc_ic_go_search_api_material = 2130837527;
// aapt resource value: 0x7f020018
public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837528;
// aapt resource value: 0x7f020019
public const int abc_ic_menu_cut_mtrl_alpha = 2130837529;
// aapt resource value: 0x7f02001a
public const int abc_ic_menu_overflow_material = 2130837530;
// aapt resource value: 0x7f02001b
public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837531;
// aapt resource value: 0x7f02001c
public const int abc_ic_menu_selectall_mtrl_alpha = 2130837532;
// aapt resource value: 0x7f02001d
public const int abc_ic_menu_share_mtrl_alpha = 2130837533;
// aapt resource value: 0x7f02001e
public const int abc_ic_search_api_material = 2130837534;
// aapt resource value: 0x7f02001f
public const int abc_ic_star_black_16dp = 2130837535;
// aapt resource value: 0x7f020020
public const int abc_ic_star_black_36dp = 2130837536;
// aapt resource value: 0x7f020021
public const int abc_ic_star_black_48dp = 2130837537;
// aapt resource value: 0x7f020022
public const int abc_ic_star_half_black_16dp = 2130837538;
// aapt resource value: 0x7f020023
public const int abc_ic_star_half_black_36dp = 2130837539;
// aapt resource value: 0x7f020024
public const int abc_ic_star_half_black_48dp = 2130837540;
// aapt resource value: 0x7f020025
public const int abc_ic_voice_search_api_material = 2130837541;
// aapt resource value: 0x7f020026
public const int abc_item_background_holo_dark = 2130837542;
// aapt resource value: 0x7f020027
public const int abc_item_background_holo_light = 2130837543;
// aapt resource value: 0x7f020028
public const int abc_list_divider_material = 2130837544;
// aapt resource value: 0x7f020029
public const int abc_list_divider_mtrl_alpha = 2130837545;
// aapt resource value: 0x7f02002a
public const int abc_list_focused_holo = 2130837546;
// aapt resource value: 0x7f02002b
public const int abc_list_longpressed_holo = 2130837547;
// aapt resource value: 0x7f02002c
public const int abc_list_pressed_holo_dark = 2130837548;
// aapt resource value: 0x7f02002d
public const int abc_list_pressed_holo_light = 2130837549;
// aapt resource value: 0x7f02002e
public const int abc_list_selector_background_transition_holo_dark = 2130837550;
// aapt resource value: 0x7f02002f
public const int abc_list_selector_background_transition_holo_light = 2130837551;
// aapt resource value: 0x7f020030
public const int abc_list_selector_disabled_holo_dark = 2130837552;
// aapt resource value: 0x7f020031
public const int abc_list_selector_disabled_holo_light = 2130837553;
// aapt resource value: 0x7f020032
public const int abc_list_selector_holo_dark = 2130837554;
// aapt resource value: 0x7f020033
public const int abc_list_selector_holo_light = 2130837555;
// aapt resource value: 0x7f020034
public const int abc_menu_hardkey_panel_mtrl_mult = 2130837556;
// aapt resource value: 0x7f020035
public const int abc_popup_background_mtrl_mult = 2130837557;
// aapt resource value: 0x7f020036
public const int abc_ratingbar_indicator_material = 2130837558;
// aapt resource value: 0x7f020037
public const int abc_ratingbar_material = 2130837559;
// aapt resource value: 0x7f020038
public const int abc_ratingbar_small_material = 2130837560;
// aapt resource value: 0x7f020039
public const int abc_scrubber_control_off_mtrl_alpha = 2130837561;
// aapt resource value: 0x7f02003a
public const int abc_scrubber_control_to_pressed_mtrl_000 = 2130837562;
// aapt resource value: 0x7f02003b
public const int abc_scrubber_control_to_pressed_mtrl_005 = 2130837563;
// aapt resource value: 0x7f02003c
public const int abc_scrubber_primary_mtrl_alpha = 2130837564;
// aapt resource value: 0x7f02003d
public const int abc_scrubber_track_mtrl_alpha = 2130837565;
// aapt resource value: 0x7f02003e
public const int abc_seekbar_thumb_material = 2130837566;
// aapt resource value: 0x7f02003f
public const int abc_seekbar_tick_mark_material = 2130837567;
// aapt resource value: 0x7f020040
public const int abc_seekbar_track_material = 2130837568;
// aapt resource value: 0x7f020041
public const int abc_spinner_mtrl_am_alpha = 2130837569;
// aapt resource value: 0x7f020042
public const int abc_spinner_textfield_background_material = 2130837570;
// aapt resource value: 0x7f020043
public const int abc_switch_thumb_material = 2130837571;
// aapt resource value: 0x7f020044
public const int abc_switch_track_mtrl_alpha = 2130837572;
// aapt resource value: 0x7f020045
public const int abc_tab_indicator_material = 2130837573;
// aapt resource value: 0x7f020046
public const int abc_tab_indicator_mtrl_alpha = 2130837574;
// aapt resource value: 0x7f020047
public const int abc_text_cursor_material = 2130837575;
// aapt resource value: 0x7f020048
public const int abc_text_select_handle_left_mtrl_dark = 2130837576;
// aapt resource value: 0x7f020049
public const int abc_text_select_handle_left_mtrl_light = 2130837577;
// aapt resource value: 0x7f02004a
public const int abc_text_select_handle_middle_mtrl_dark = 2130837578;
// aapt resource value: 0x7f02004b
public const int abc_text_select_handle_middle_mtrl_light = 2130837579;
// aapt resource value: 0x7f02004c
public const int abc_text_select_handle_right_mtrl_dark = 2130837580;
// aapt resource value: 0x7f02004d
public const int abc_text_select_handle_right_mtrl_light = 2130837581;
// aapt resource value: 0x7f02004e
public const int abc_textfield_activated_mtrl_alpha = 2130837582;
// aapt resource value: 0x7f02004f
public const int abc_textfield_default_mtrl_alpha = 2130837583;
// aapt resource value: 0x7f020050
public const int abc_textfield_search_activated_mtrl_alpha = 2130837584;
// aapt resource value: 0x7f020051
public const int abc_textfield_search_default_mtrl_alpha = 2130837585;
// aapt resource value: 0x7f020052
public const int abc_textfield_search_material = 2130837586;
// aapt resource value: 0x7f020053
public const int abc_vector_test = 2130837587;
// aapt resource value: 0x7f020054
public const int ic_assurance_active = 2130837588;
// aapt resource value: 0x7f020055
public const int ic_assurance_inactive = 2130837589;
// aapt resource value: 0x7f020056
public const int notification_action_background = 2130837590;
// aapt resource value: 0x7f020057
public const int notification_bg = 2130837591;
// aapt resource value: 0x7f020058
public const int notification_bg_low = 2130837592;
// aapt resource value: 0x7f020059
public const int notification_bg_low_normal = 2130837593;
// aapt resource value: 0x7f02005a
public const int notification_bg_low_pressed = 2130837594;
// aapt resource value: 0x7f02005b
public const int notification_bg_normal = 2130837595;
// aapt resource value: 0x7f02005c
public const int notification_bg_normal_pressed = 2130837596;
// aapt resource value: 0x7f02005d
public const int notification_icon_background = 2130837597;
// aapt resource value: 0x7f020062
public const int notification_template_icon_bg = 2130837602;
// aapt resource value: 0x7f020063
public const int notification_template_icon_low_bg = 2130837603;
// aapt resource value: 0x7f02005e
public const int notification_tile_bg = 2130837598;
// aapt resource value: 0x7f02005f
public const int notify_panel_notification_icon_bg = 2130837599;
// aapt resource value: 0x7f020060
public const int tooltip_frame_dark = 2130837600;
// aapt resource value: 0x7f020061
public const int tooltip_frame_light = 2130837601;
static Drawable()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Drawable()
{
}
}
public partial class Id
{
// aapt resource value: 0x7f0b0026
public const int ALT = 2131427366;
// aapt resource value: 0x7f0b0027
public const int CTRL = 2131427367;
// aapt resource value: 0x7f0b0028
public const int FUNCTION = 2131427368;
// aapt resource value: 0x7f0b0029
public const int META = 2131427369;
// aapt resource value: 0x7f0b0086
public const int OptionHostName = 2131427462;
// aapt resource value: 0x7f0b0087
public const int OptionPort = 2131427463;
// aapt resource value: 0x7f0b0085
public const int OptionRemoteServer = 2131427461;
// aapt resource value: 0x7f0b0095
public const int OptionsButton = 2131427477;
// aapt resource value: 0x7f0b0090
public const int ResultFullName = 2131427472;
// aapt resource value: 0x7f0b0092
public const int ResultMessage = 2131427474;
// aapt resource value: 0x7f0b0091
public const int ResultResultState = 2131427473;
// aapt resource value: 0x7f0b008f
public const int ResultRunSingleMethodTest = 2131427471;
// aapt resource value: 0x7f0b0093
public const int ResultStackTrace = 2131427475;
// aapt resource value: 0x7f0b008b
public const int ResultsFailed = 2131427467;
// aapt resource value: 0x7f0b0088
public const int ResultsId = 2131427464;
// aapt resource value: 0x7f0b008c
public const int ResultsIgnored = 2131427468;
// aapt resource value: 0x7f0b008d
public const int ResultsInconclusive = 2131427469;
// aapt resource value: 0x7f0b008e
public const int ResultsMessage = 2131427470;
// aapt resource value: 0x7f0b008a
public const int ResultsPassed = 2131427466;
// aapt resource value: 0x7f0b0089
public const int ResultsResult = 2131427465;
// aapt resource value: 0x7f0b0094
public const int RunTestsButton = 2131427476;
// aapt resource value: 0x7f0b002a
public const int SHIFT = 2131427370;
// aapt resource value: 0x7f0b002b
public const int SYM = 2131427371;
// aapt resource value: 0x7f0b0096
public const int TestSuiteListView = 2131427478;
// aapt resource value: 0x7f0b0067
public const int action_bar = 2131427431;
// aapt resource value: 0x7f0b0000
public const int action_bar_activity_content = 2131427328;
// aapt resource value: 0x7f0b0066
public const int action_bar_container = 2131427430;
// aapt resource value: 0x7f0b0062
public const int action_bar_root = 2131427426;
// aapt resource value: 0x7f0b0001
public const int action_bar_spinner = 2131427329;
// aapt resource value: 0x7f0b0044
public const int action_bar_subtitle = 2131427396;
// aapt resource value: 0x7f0b0043
public const int action_bar_title = 2131427395;
// aapt resource value: 0x7f0b0077
public const int action_container = 2131427447;
// aapt resource value: 0x7f0b0068
public const int action_context_bar = 2131427432;
// aapt resource value: 0x7f0b0082
public const int action_divider = 2131427458;
// aapt resource value: 0x7f0b0078
public const int action_image = 2131427448;
// aapt resource value: 0x7f0b0002
public const int action_menu_divider = 2131427330;
// aapt resource value: 0x7f0b0003
public const int action_menu_presenter = 2131427331;
// aapt resource value: 0x7f0b0064
public const int action_mode_bar = 2131427428;
// aapt resource value: 0x7f0b0063
public const int action_mode_bar_stub = 2131427427;
// aapt resource value: 0x7f0b0045
public const int action_mode_close_button = 2131427397;
// aapt resource value: 0x7f0b0079
public const int action_text = 2131427449;
// aapt resource value: 0x7f0b0083
public const int actions = 2131427459;
// aapt resource value: 0x7f0b0046
public const int activity_chooser_view_content = 2131427398;
// aapt resource value: 0x7f0b001b
public const int add = 2131427355;
// aapt resource value: 0x7f0b0059
public const int alertTitle = 2131427417;
// aapt resource value: 0x7f0b003e
public const int all = 2131427390;
// aapt resource value: 0x7f0b002c
public const int always = 2131427372;
// aapt resource value: 0x7f0b003f
public const int async = 2131427391;
// aapt resource value: 0x7f0b0023
public const int beginning = 2131427363;
// aapt resource value: 0x7f0b0040
public const int blocking = 2131427392;
// aapt resource value: 0x7f0b0031
public const int bottom = 2131427377;
// aapt resource value: 0x7f0b004c
public const int buttonPanel = 2131427404;
// aapt resource value: 0x7f0b0033
public const int center = 2131427379;
// aapt resource value: 0x7f0b0034
public const int center_horizontal = 2131427380;
// aapt resource value: 0x7f0b0035
public const int center_vertical = 2131427381;
// aapt resource value: 0x7f0b0060
public const int checkbox = 2131427424;
// aapt resource value: 0x7f0b0081
public const int chronometer = 2131427457;
// aapt resource value: 0x7f0b0036
public const int clip_horizontal = 2131427382;
// aapt resource value: 0x7f0b0037
public const int clip_vertical = 2131427383;
// aapt resource value: 0x7f0b002d
public const int collapseActionView = 2131427373;
// aapt resource value: 0x7f0b005c
public const int content = 2131427420;
// aapt resource value: 0x7f0b004f
public const int contentPanel = 2131427407;
// aapt resource value: 0x7f0b0056
public const int custom = 2131427414;
// aapt resource value: 0x7f0b0055
public const int customPanel = 2131427413;
// aapt resource value: 0x7f0b0065
public const int decor_content_parent = 2131427429;
// aapt resource value: 0x7f0b0049
public const int default_activity_button = 2131427401;
// aapt resource value: 0x7f0b0014
public const int disableHome = 2131427348;
// aapt resource value: 0x7f0b0069
public const int edit_query = 2131427433;
// aapt resource value: 0x7f0b0024
public const int end = 2131427364;
// aapt resource value: 0x7f0b0047
public const int expand_activities_button = 2131427399;
// aapt resource value: 0x7f0b005f
public const int expanded_menu = 2131427423;
// aapt resource value: 0x7f0b0038
public const int fill = 2131427384;
// aapt resource value: 0x7f0b0039
public const int fill_horizontal = 2131427385;
// aapt resource value: 0x7f0b003a
public const int fill_vertical = 2131427386;
// aapt resource value: 0x7f0b0041
public const int forever = 2131427393;
// aapt resource value: 0x7f0b005b
public const int group_divider = 2131427419;
// aapt resource value: 0x7f0b0004
public const int home = 2131427332;
// aapt resource value: 0x7f0b0015
public const int homeAsUp = 2131427349;
// aapt resource value: 0x7f0b004b
public const int icon = 2131427403;
// aapt resource value: 0x7f0b0084
public const int icon_group = 2131427460;
// aapt resource value: 0x7f0b002e
public const int ifRoom = 2131427374;
// aapt resource value: 0x7f0b0048
public const int image = 2131427400;
// aapt resource value: 0x7f0b007d
public const int info = 2131427453;
// aapt resource value: 0x7f0b0042
public const int italic = 2131427394;
// aapt resource value: 0x7f0b003b
public const int left = 2131427387;
// aapt resource value: 0x7f0b0009
public const int line1 = 2131427337;
// aapt resource value: 0x7f0b000a
public const int line3 = 2131427338;
// aapt resource value: 0x7f0b0011
public const int listMode = 2131427345;
// aapt resource value: 0x7f0b004a
public const int list_item = 2131427402;
// aapt resource value: 0x7f0b0076
public const int message = 2131427446;
// aapt resource value: 0x7f0b0025
public const int middle = 2131427365;
// aapt resource value: 0x7f0b001c
public const int multiply = 2131427356;
// aapt resource value: 0x7f0b002f
public const int never = 2131427375;
// aapt resource value: 0x7f0b0016
public const int none = 2131427350;
// aapt resource value: 0x7f0b0012
public const int normal = 2131427346;
// aapt resource value: 0x7f0b007f
public const int notification_background = 2131427455;
// aapt resource value: 0x7f0b007b
public const int notification_main_column = 2131427451;
// aapt resource value: 0x7f0b007a
public const int notification_main_column_container = 2131427450;
// aapt resource value: 0x7f0b004e
public const int parentPanel = 2131427406;
// aapt resource value: 0x7f0b0005
public const int progress_circular = 2131427333;
// aapt resource value: 0x7f0b0006
public const int progress_horizontal = 2131427334;
// aapt resource value: 0x7f0b0061
public const int radio = 2131427425;
// aapt resource value: 0x7f0b003c
public const int right = 2131427388;
// aapt resource value: 0x7f0b007e
public const int right_icon = 2131427454;
// aapt resource value: 0x7f0b007c
public const int right_side = 2131427452;
// aapt resource value: 0x7f0b001d
public const int screen = 2131427357;
// aapt resource value: 0x7f0b0054
public const int scrollIndicatorDown = 2131427412;
// aapt resource value: 0x7f0b0050
public const int scrollIndicatorUp = 2131427408;
// aapt resource value: 0x7f0b0051
public const int scrollView = 2131427409;
// aapt resource value: 0x7f0b006b
public const int search_badge = 2131427435;
// aapt resource value: 0x7f0b006a
public const int search_bar = 2131427434;
// aapt resource value: 0x7f0b006c
public const int search_button = 2131427436;
// aapt resource value: 0x7f0b0071
public const int search_close_btn = 2131427441;
// aapt resource value: 0x7f0b006d
public const int search_edit_frame = 2131427437;
// aapt resource value: 0x7f0b0073
public const int search_go_btn = 2131427443;
// aapt resource value: 0x7f0b006e
public const int search_mag_icon = 2131427438;
// aapt resource value: 0x7f0b006f
public const int search_plate = 2131427439;
// aapt resource value: 0x7f0b0070
public const int search_src_text = 2131427440;
// aapt resource value: 0x7f0b0074
public const int search_voice_btn = 2131427444;
// aapt resource value: 0x7f0b0075
public const int select_dialog_listview = 2131427445;
// aapt resource value: 0x7f0b005d
public const int shortcut = 2131427421;
// aapt resource value: 0x7f0b0017
public const int showCustom = 2131427351;
// aapt resource value: 0x7f0b0018
public const int showHome = 2131427352;
// aapt resource value: 0x7f0b0019
public const int showTitle = 2131427353;
// aapt resource value: 0x7f0b004d
public const int spacer = 2131427405;
// aapt resource value: 0x7f0b0007
public const int split_action_bar = 2131427335;
// aapt resource value: 0x7f0b001e
public const int src_atop = 2131427358;
// aapt resource value: 0x7f0b001f
public const int src_in = 2131427359;
// aapt resource value: 0x7f0b0020
public const int src_over = 2131427360;
// aapt resource value: 0x7f0b003d
public const int start = 2131427389;
// aapt resource value: 0x7f0b005e
public const int submenuarrow = 2131427422;
// aapt resource value: 0x7f0b0072
public const int submit_area = 2131427442;
// aapt resource value: 0x7f0b0013
public const int tabMode = 2131427347;
// aapt resource value: 0x7f0b000b
public const int tag_transition_group = 2131427339;
// aapt resource value: 0x7f0b000c
public const int tag_unhandled_key_event_manager = 2131427340;
// aapt resource value: 0x7f0b000d
public const int tag_unhandled_key_listeners = 2131427341;
// aapt resource value: 0x7f0b000e
public const int text = 2131427342;
// aapt resource value: 0x7f0b000f
public const int text2 = 2131427343;
// aapt resource value: 0x7f0b0053
public const int textSpacerNoButtons = 2131427411;
// aapt resource value: 0x7f0b0052
public const int textSpacerNoTitle = 2131427410;
// aapt resource value: 0x7f0b0080
public const int time = 2131427456;
// aapt resource value: 0x7f0b0010
public const int title = 2131427344;
// aapt resource value: 0x7f0b005a
public const int titleDividerNoCustom = 2131427418;
// aapt resource value: 0x7f0b0058
public const int title_template = 2131427416;
// aapt resource value: 0x7f0b0032
public const int top = 2131427378;
// aapt resource value: 0x7f0b0057
public const int topPanel = 2131427415;
// aapt resource value: 0x7f0b0021
public const int uniform = 2131427361;
// aapt resource value: 0x7f0b0008
public const int up = 2131427336;
// aapt resource value: 0x7f0b001a
public const int useLogo = 2131427354;
// aapt resource value: 0x7f0b0030
public const int withText = 2131427376;
// aapt resource value: 0x7f0b0022
public const int wrap_content = 2131427362;
static Id()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Id()
{
}
}
public partial class Integer
{
// aapt resource value: 0x7f0c0000
public const int abc_config_activityDefaultDur = 2131492864;
// aapt resource value: 0x7f0c0001
public const int abc_config_activityShortDur = 2131492865;
// aapt resource value: 0x7f0c0002
public const int cancel_button_image_alpha = 2131492866;
// aapt resource value: 0x7f0c0003
public const int config_tooltipAnimTime = 2131492867;
// aapt resource value: 0x7f0c0004
public const int status_bar_notification_info_maxnum = 2131492868;
static Integer()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Integer()
{
}
}
public partial class Layout
{
// aapt resource value: 0x7f040000
public const int abc_action_bar_title_item = 2130968576;
// aapt resource value: 0x7f040001
public const int abc_action_bar_up_container = 2130968577;
// aapt resource value: 0x7f040002
public const int abc_action_menu_item_layout = 2130968578;
// aapt resource value: 0x7f040003
public const int abc_action_menu_layout = 2130968579;
// aapt resource value: 0x7f040004
public const int abc_action_mode_bar = 2130968580;
// aapt resource value: 0x7f040005
public const int abc_action_mode_close_item_material = 2130968581;
// aapt resource value: 0x7f040006
public const int abc_activity_chooser_view = 2130968582;
// aapt resource value: 0x7f040007
public const int abc_activity_chooser_view_list_item = 2130968583;
// aapt resource value: 0x7f040008
public const int abc_alert_dialog_button_bar_material = 2130968584;
// aapt resource value: 0x7f040009
public const int abc_alert_dialog_material = 2130968585;
// aapt resource value: 0x7f04000a
public const int abc_alert_dialog_title_material = 2130968586;
// aapt resource value: 0x7f04000b
public const int abc_cascading_menu_item_layout = 2130968587;
// aapt resource value: 0x7f04000c
public const int abc_dialog_title_material = 2130968588;
// aapt resource value: 0x7f04000d
public const int abc_expanded_menu_layout = 2130968589;
// aapt resource value: 0x7f04000e
public const int abc_list_menu_item_checkbox = 2130968590;
// aapt resource value: 0x7f04000f
public const int abc_list_menu_item_icon = 2130968591;
// aapt resource value: 0x7f040010
public const int abc_list_menu_item_layout = 2130968592;
// aapt resource value: 0x7f040011
public const int abc_list_menu_item_radio = 2130968593;
// aapt resource value: 0x7f040012
public const int abc_popup_menu_header_item_layout = 2130968594;
// aapt resource value: 0x7f040013
public const int abc_popup_menu_item_layout = 2130968595;
// aapt resource value: 0x7f040014
public const int abc_screen_content_include = 2130968596;
// aapt resource value: 0x7f040015
public const int abc_screen_simple = 2130968597;
// aapt resource value: 0x7f040016
public const int abc_screen_simple_overlay_action_mode = 2130968598;
// aapt resource value: 0x7f040017
public const int abc_screen_toolbar = 2130968599;
// aapt resource value: 0x7f040018
public const int abc_search_dropdown_item_icons_2line = 2130968600;
// aapt resource value: 0x7f040019
public const int abc_search_view = 2130968601;
// aapt resource value: 0x7f04001a
public const int abc_select_dialog_material = 2130968602;
// aapt resource value: 0x7f04001b
public const int abc_tooltip = 2130968603;
// aapt resource value: 0x7f04001c
public const int notification_action = 2130968604;
// aapt resource value: 0x7f04001d
public const int notification_action_tombstone = 2130968605;
// aapt resource value: 0x7f04001e
public const int notification_template_custom_big = 2130968606;
// aapt resource value: 0x7f04001f
public const int notification_template_icon_group = 2130968607;
// aapt resource value: 0x7f040020
public const int notification_template_part_chronometer = 2130968608;
// aapt resource value: 0x7f040021
public const int notification_template_part_time = 2130968609;
// aapt resource value: 0x7f040022
public const int options = 2130968610;
// aapt resource value: 0x7f040023
public const int results = 2130968611;
// aapt resource value: 0x7f040024
public const int select_dialog_item_material = 2130968612;
// aapt resource value: 0x7f040025
public const int select_dialog_multichoice_material = 2130968613;
// aapt resource value: 0x7f040026
public const int select_dialog_singlechoice_material = 2130968614;
// aapt resource value: 0x7f040027
public const int support_simple_spinner_dropdown_item = 2130968615;
// aapt resource value: 0x7f040028
public const int test_result = 2130968616;
// aapt resource value: 0x7f040029
public const int test_suite = 2130968617;
static Layout()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Layout()
{
}
}
public partial class Mipmap
{
// aapt resource value: 0x7f030000
public const int Icon = 2130903040;
static Mipmap()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Mipmap()
{
}
}
public partial class String
{
// aapt resource value: 0x7f060000
public const int abc_action_bar_home_description = 2131099648;
// aapt resource value: 0x7f060001
public const int abc_action_bar_up_description = 2131099649;
// aapt resource value: 0x7f060002
public const int abc_action_menu_overflow_description = 2131099650;
// aapt resource value: 0x7f060003
public const int abc_action_mode_done = 2131099651;
// aapt resource value: 0x7f060004
public const int abc_activity_chooser_view_see_all = 2131099652;
// aapt resource value: 0x7f060005
public const int abc_activitychooserview_choose_application = 2131099653;
// aapt resource value: 0x7f060006
public const int abc_capital_off = 2131099654;
// aapt resource value: 0x7f060007
public const int abc_capital_on = 2131099655;
// aapt resource value: 0x7f06001c
public const int abc_font_family_body_1_material = 2131099676;
// aapt resource value: 0x7f06001d
public const int abc_font_family_body_2_material = 2131099677;
// aapt resource value: 0x7f06001e
public const int abc_font_family_button_material = 2131099678;
// aapt resource value: 0x7f06001f
public const int abc_font_family_caption_material = 2131099679;
// aapt resource value: 0x7f060020
public const int abc_font_family_display_1_material = 2131099680;
// aapt resource value: 0x7f060021
public const int abc_font_family_display_2_material = 2131099681;
// aapt resource value: 0x7f060022
public const int abc_font_family_display_3_material = 2131099682;
// aapt resource value: 0x7f060023
public const int abc_font_family_display_4_material = 2131099683;
// aapt resource value: 0x7f060024
public const int abc_font_family_headline_material = 2131099684;
// aapt resource value: 0x7f060025
public const int abc_font_family_menu_material = 2131099685;
// aapt resource value: 0x7f060026
public const int abc_font_family_subhead_material = 2131099686;
// aapt resource value: 0x7f060027
public const int abc_font_family_title_material = 2131099687;
// aapt resource value: 0x7f060008
public const int abc_menu_alt_shortcut_label = 2131099656;
// aapt resource value: 0x7f060009
public const int abc_menu_ctrl_shortcut_label = 2131099657;
// aapt resource value: 0x7f06000a
public const int abc_menu_delete_shortcut_label = 2131099658;
// aapt resource value: 0x7f06000b
public const int abc_menu_enter_shortcut_label = 2131099659;
// aapt resource value: 0x7f06000c
public const int abc_menu_function_shortcut_label = 2131099660;
// aapt resource value: 0x7f06000d
public const int abc_menu_meta_shortcut_label = 2131099661;
// aapt resource value: 0x7f06000e
public const int abc_menu_shift_shortcut_label = 2131099662;
// aapt resource value: 0x7f06000f
public const int abc_menu_space_shortcut_label = 2131099663;
// aapt resource value: 0x7f060010
public const int abc_menu_sym_shortcut_label = 2131099664;
// aapt resource value: 0x7f060011
public const int abc_prepend_shortcut_label = 2131099665;
// aapt resource value: 0x7f060012
public const int abc_search_hint = 2131099666;
// aapt resource value: 0x7f060013
public const int abc_searchview_description_clear = 2131099667;
// aapt resource value: 0x7f060014
public const int abc_searchview_description_query = 2131099668;
// aapt resource value: 0x7f060015
public const int abc_searchview_description_search = 2131099669;
// aapt resource value: 0x7f060016
public const int abc_searchview_description_submit = 2131099670;
// aapt resource value: 0x7f060017
public const int abc_searchview_description_voice = 2131099671;
// aapt resource value: 0x7f060018
public const int abc_shareactionprovider_share_with = 2131099672;
// aapt resource value: 0x7f060019
public const int abc_shareactionprovider_share_with_application = 2131099673;
// aapt resource value: 0x7f06001a
public const int abc_toolbar_collapse_description = 2131099674;
// aapt resource value: 0x7f060029
public const int app_name = 2131099689;
// aapt resource value: 0x7f06001b
public const int search_menu_title = 2131099675;
// aapt resource value: 0x7f060028
public const int status_bar_notification_info_overflow = 2131099688;
static String()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private String()
{
}
}
public partial class Style
{
// aapt resource value: 0x7f080089
public const int AlertDialog_AppCompat = 2131230857;
// aapt resource value: 0x7f08008a
public const int AlertDialog_AppCompat_Light = 2131230858;
// aapt resource value: 0x7f08008b
public const int Animation_AppCompat_Dialog = 2131230859;
// aapt resource value: 0x7f08008c
public const int Animation_AppCompat_DropDownUp = 2131230860;
// aapt resource value: 0x7f08008d
public const int Animation_AppCompat_Tooltip = 2131230861;
// aapt resource value: 0x7f08015a
public const int AppTheme = 2131231066;
// aapt resource value: 0x7f08008e
public const int Base_AlertDialog_AppCompat = 2131230862;
// aapt resource value: 0x7f08008f
public const int Base_AlertDialog_AppCompat_Light = 2131230863;
// aapt resource value: 0x7f080090
public const int Base_Animation_AppCompat_Dialog = 2131230864;
// aapt resource value: 0x7f080091
public const int Base_Animation_AppCompat_DropDownUp = 2131230865;
// aapt resource value: 0x7f080092
public const int Base_Animation_AppCompat_Tooltip = 2131230866;
// aapt resource value: 0x7f080093
public const int Base_DialogWindowTitle_AppCompat = 2131230867;
// aapt resource value: 0x7f080094
public const int Base_DialogWindowTitleBackground_AppCompat = 2131230868;
// aapt resource value: 0x7f08001d
public const int Base_TextAppearance_AppCompat = 2131230749;
// aapt resource value: 0x7f08001e
public const int Base_TextAppearance_AppCompat_Body1 = 2131230750;
// aapt resource value: 0x7f08001f
public const int Base_TextAppearance_AppCompat_Body2 = 2131230751;
// aapt resource value: 0x7f080020
public const int Base_TextAppearance_AppCompat_Button = 2131230752;
// aapt resource value: 0x7f080021
public const int Base_TextAppearance_AppCompat_Caption = 2131230753;
// aapt resource value: 0x7f080022
public const int Base_TextAppearance_AppCompat_Display1 = 2131230754;
// aapt resource value: 0x7f080023
public const int Base_TextAppearance_AppCompat_Display2 = 2131230755;
// aapt resource value: 0x7f080024
public const int Base_TextAppearance_AppCompat_Display3 = 2131230756;
// aapt resource value: 0x7f080025
public const int Base_TextAppearance_AppCompat_Display4 = 2131230757;
// aapt resource value: 0x7f080026
public const int Base_TextAppearance_AppCompat_Headline = 2131230758;
// aapt resource value: 0x7f080027
public const int Base_TextAppearance_AppCompat_Inverse = 2131230759;
// aapt resource value: 0x7f080028
public const int Base_TextAppearance_AppCompat_Large = 2131230760;
// aapt resource value: 0x7f080029
public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131230761;
// aapt resource value: 0x7f08002a
public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131230762;
// aapt resource value: 0x7f08002b
public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131230763;
// aapt resource value: 0x7f08002c
public const int Base_TextAppearance_AppCompat_Medium = 2131230764;
// aapt resource value: 0x7f08002d
public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131230765;
// aapt resource value: 0x7f08002e
public const int Base_TextAppearance_AppCompat_Menu = 2131230766;
// aapt resource value: 0x7f080095
public const int Base_TextAppearance_AppCompat_SearchResult = 2131230869;
// aapt resource value: 0x7f08002f
public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131230767;
// aapt resource value: 0x7f080030
public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131230768;
// aapt resource value: 0x7f080031
public const int Base_TextAppearance_AppCompat_Small = 2131230769;
// aapt resource value: 0x7f080032
public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131230770;
// aapt resource value: 0x7f080033
public const int Base_TextAppearance_AppCompat_Subhead = 2131230771;
// aapt resource value: 0x7f080096
public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131230870;
// aapt resource value: 0x7f080034
public const int Base_TextAppearance_AppCompat_Title = 2131230772;
// aapt resource value: 0x7f080097
public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131230871;
// aapt resource value: 0x7f080098
public const int Base_TextAppearance_AppCompat_Tooltip = 2131230872;
// aapt resource value: 0x7f080078
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131230840;
// aapt resource value: 0x7f080035
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131230773;
// aapt resource value: 0x7f080036
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131230774;
// aapt resource value: 0x7f080037
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131230775;
// aapt resource value: 0x7f080038
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131230776;
// aapt resource value: 0x7f080039
public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131230777;
// aapt resource value: 0x7f08003a
public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131230778;
// aapt resource value: 0x7f08003b
public const int Base_TextAppearance_AppCompat_Widget_Button = 2131230779;
// aapt resource value: 0x7f08007f
public const int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131230847;
// aapt resource value: 0x7f080080
public const int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131230848;
// aapt resource value: 0x7f080079
public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131230841;
// aapt resource value: 0x7f080099
public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131230873;
// aapt resource value: 0x7f08003c
public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131230780;
// aapt resource value: 0x7f08003d
public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131230781;
// aapt resource value: 0x7f08003e
public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131230782;
// aapt resource value: 0x7f08003f
public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131230783;
// aapt resource value: 0x7f080040
public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131230784;
// aapt resource value: 0x7f08009a
public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131230874;
// aapt resource value: 0x7f080041
public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131230785;
// aapt resource value: 0x7f080042
public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131230786;
// aapt resource value: 0x7f080043
public const int Base_Theme_AppCompat = 2131230787;
// aapt resource value: 0x7f08009b
public const int Base_Theme_AppCompat_CompactMenu = 2131230875;
// aapt resource value: 0x7f080044
public const int Base_Theme_AppCompat_Dialog = 2131230788;
// aapt resource value: 0x7f08009c
public const int Base_Theme_AppCompat_Dialog_Alert = 2131230876;
// aapt resource value: 0x7f08009d
public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131230877;
// aapt resource value: 0x7f08009e
public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131230878;
// aapt resource value: 0x7f080001
public const int Base_Theme_AppCompat_DialogWhenLarge = 2131230721;
// aapt resource value: 0x7f080045
public const int Base_Theme_AppCompat_Light = 2131230789;
// aapt resource value: 0x7f08009f
public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131230879;
// aapt resource value: 0x7f080046
public const int Base_Theme_AppCompat_Light_Dialog = 2131230790;
// aapt resource value: 0x7f0800a0
public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131230880;
// aapt resource value: 0x7f0800a1
public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131230881;
// aapt resource value: 0x7f0800a2
public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131230882;
// aapt resource value: 0x7f080002
public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131230722;
// aapt resource value: 0x7f0800a3
public const int Base_ThemeOverlay_AppCompat = 2131230883;
// aapt resource value: 0x7f0800a4
public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131230884;
// aapt resource value: 0x7f0800a5
public const int Base_ThemeOverlay_AppCompat_Dark = 2131230885;
// aapt resource value: 0x7f0800a6
public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131230886;
// aapt resource value: 0x7f080047
public const int Base_ThemeOverlay_AppCompat_Dialog = 2131230791;
// aapt resource value: 0x7f0800a7
public const int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131230887;
// aapt resource value: 0x7f0800a8
public const int Base_ThemeOverlay_AppCompat_Light = 2131230888;
// aapt resource value: 0x7f080048
public const int Base_V21_Theme_AppCompat = 2131230792;
// aapt resource value: 0x7f080049
public const int Base_V21_Theme_AppCompat_Dialog = 2131230793;
// aapt resource value: 0x7f08004a
public const int Base_V21_Theme_AppCompat_Light = 2131230794;
// aapt resource value: 0x7f08004b
public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131230795;
// aapt resource value: 0x7f08004c
public const int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131230796;
// aapt resource value: 0x7f080076
public const int Base_V22_Theme_AppCompat = 2131230838;
// aapt resource value: 0x7f080077
public const int Base_V22_Theme_AppCompat_Light = 2131230839;
// aapt resource value: 0x7f08007a
public const int Base_V23_Theme_AppCompat = 2131230842;
// aapt resource value: 0x7f08007b
public const int Base_V23_Theme_AppCompat_Light = 2131230843;
// aapt resource value: 0x7f080083
public const int Base_V26_Theme_AppCompat = 2131230851;
// aapt resource value: 0x7f080084
public const int Base_V26_Theme_AppCompat_Light = 2131230852;
// aapt resource value: 0x7f080085
public const int Base_V26_Widget_AppCompat_Toolbar = 2131230853;
// aapt resource value: 0x7f080087
public const int Base_V28_Theme_AppCompat = 2131230855;
// aapt resource value: 0x7f080088
public const int Base_V28_Theme_AppCompat_Light = 2131230856;
// aapt resource value: 0x7f0800a9
public const int Base_V7_Theme_AppCompat = 2131230889;
// aapt resource value: 0x7f0800aa
public const int Base_V7_Theme_AppCompat_Dialog = 2131230890;
// aapt resource value: 0x7f0800ab
public const int Base_V7_Theme_AppCompat_Light = 2131230891;
// aapt resource value: 0x7f0800ac
public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131230892;
// aapt resource value: 0x7f0800ad
public const int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131230893;
// aapt resource value: 0x7f0800ae
public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131230894;
// aapt resource value: 0x7f0800af
public const int Base_V7_Widget_AppCompat_EditText = 2131230895;
// aapt resource value: 0x7f0800b0
public const int Base_V7_Widget_AppCompat_Toolbar = 2131230896;
// aapt resource value: 0x7f0800b1
public const int Base_Widget_AppCompat_ActionBar = 2131230897;
// aapt resource value: 0x7f0800b2
public const int Base_Widget_AppCompat_ActionBar_Solid = 2131230898;
// aapt resource value: 0x7f0800b3
public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131230899;
// aapt resource value: 0x7f08004d
public const int Base_Widget_AppCompat_ActionBar_TabText = 2131230797;
// aapt resource value: 0x7f08004e
public const int Base_Widget_AppCompat_ActionBar_TabView = 2131230798;
// aapt resource value: 0x7f08004f
public const int Base_Widget_AppCompat_ActionButton = 2131230799;
// aapt resource value: 0x7f080050
public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131230800;
// aapt resource value: 0x7f080051
public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131230801;
// aapt resource value: 0x7f0800b4
public const int Base_Widget_AppCompat_ActionMode = 2131230900;
// aapt resource value: 0x7f0800b5
public const int Base_Widget_AppCompat_ActivityChooserView = 2131230901;
// aapt resource value: 0x7f080052
public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131230802;
// aapt resource value: 0x7f080053
public const int Base_Widget_AppCompat_Button = 2131230803;
// aapt resource value: 0x7f080054
public const int Base_Widget_AppCompat_Button_Borderless = 2131230804;
// aapt resource value: 0x7f080055
public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131230805;
// aapt resource value: 0x7f0800b6
public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131230902;
// aapt resource value: 0x7f08007c
public const int Base_Widget_AppCompat_Button_Colored = 2131230844;
// aapt resource value: 0x7f080056
public const int Base_Widget_AppCompat_Button_Small = 2131230806;
// aapt resource value: 0x7f080057
public const int Base_Widget_AppCompat_ButtonBar = 2131230807;
// aapt resource value: 0x7f0800b7
public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131230903;
// aapt resource value: 0x7f080058
public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131230808;
// aapt resource value: 0x7f080059
public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131230809;
// aapt resource value: 0x7f0800b8
public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131230904;
// aapt resource value: 0x7f080000
public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131230720;
// aapt resource value: 0x7f0800b9
public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131230905;
// aapt resource value: 0x7f08005a
public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131230810;
// aapt resource value: 0x7f08005b
public const int Base_Widget_AppCompat_EditText = 2131230811;
// aapt resource value: 0x7f08005c
public const int Base_Widget_AppCompat_ImageButton = 2131230812;
// aapt resource value: 0x7f0800ba
public const int Base_Widget_AppCompat_Light_ActionBar = 2131230906;
// aapt resource value: 0x7f0800bb
public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131230907;
// aapt resource value: 0x7f0800bc
public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131230908;
// aapt resource value: 0x7f08005d
public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131230813;
// aapt resource value: 0x7f08005e
public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131230814;
// aapt resource value: 0x7f08005f
public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131230815;
// aapt resource value: 0x7f080060
public const int Base_Widget_AppCompat_Light_PopupMenu = 2131230816;
// aapt resource value: 0x7f080061
public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131230817;
// aapt resource value: 0x7f0800bd
public const int Base_Widget_AppCompat_ListMenuView = 2131230909;
// aapt resource value: 0x7f080062
public const int Base_Widget_AppCompat_ListPopupWindow = 2131230818;
// aapt resource value: 0x7f080063
public const int Base_Widget_AppCompat_ListView = 2131230819;
// aapt resource value: 0x7f080064
public const int Base_Widget_AppCompat_ListView_DropDown = 2131230820;
// aapt resource value: 0x7f080065
public const int Base_Widget_AppCompat_ListView_Menu = 2131230821;
// aapt resource value: 0x7f080066
public const int Base_Widget_AppCompat_PopupMenu = 2131230822;
// aapt resource value: 0x7f080067
public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131230823;
// aapt resource value: 0x7f0800be
public const int Base_Widget_AppCompat_PopupWindow = 2131230910;
// aapt resource value: 0x7f080068
public const int Base_Widget_AppCompat_ProgressBar = 2131230824;
// aapt resource value: 0x7f080069
public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131230825;
// aapt resource value: 0x7f08006a
public const int Base_Widget_AppCompat_RatingBar = 2131230826;
// aapt resource value: 0x7f08007d
public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131230845;
// aapt resource value: 0x7f08007e
public const int Base_Widget_AppCompat_RatingBar_Small = 2131230846;
// aapt resource value: 0x7f0800bf
public const int Base_Widget_AppCompat_SearchView = 2131230911;
// aapt resource value: 0x7f0800c0
public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131230912;
// aapt resource value: 0x7f08006b
public const int Base_Widget_AppCompat_SeekBar = 2131230827;
// aapt resource value: 0x7f0800c1
public const int Base_Widget_AppCompat_SeekBar_Discrete = 2131230913;
// aapt resource value: 0x7f08006c
public const int Base_Widget_AppCompat_Spinner = 2131230828;
// aapt resource value: 0x7f080003
public const int Base_Widget_AppCompat_Spinner_Underlined = 2131230723;
// aapt resource value: 0x7f08006d
public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131230829;
// aapt resource value: 0x7f080086
public const int Base_Widget_AppCompat_Toolbar = 2131230854;
// aapt resource value: 0x7f08006e
public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131230830;
// aapt resource value: 0x7f08006f
public const int Platform_AppCompat = 2131230831;
// aapt resource value: 0x7f080070
public const int Platform_AppCompat_Light = 2131230832;
// aapt resource value: 0x7f080071
public const int Platform_ThemeOverlay_AppCompat = 2131230833;
// aapt resource value: 0x7f080072
public const int Platform_ThemeOverlay_AppCompat_Dark = 2131230834;
// aapt resource value: 0x7f080073
public const int Platform_ThemeOverlay_AppCompat_Light = 2131230835;
// aapt resource value: 0x7f080074
public const int Platform_V21_AppCompat = 2131230836;
// aapt resource value: 0x7f080075
public const int Platform_V21_AppCompat_Light = 2131230837;
// aapt resource value: 0x7f080081
public const int Platform_V25_AppCompat = 2131230849;
// aapt resource value: 0x7f080082
public const int Platform_V25_AppCompat_Light = 2131230850;
// aapt resource value: 0x7f0800c2
public const int Platform_Widget_AppCompat_Spinner = 2131230914;
// aapt resource value: 0x7f08000c
public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131230732;
// aapt resource value: 0x7f08000d
public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131230733;
// aapt resource value: 0x7f08000e
public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131230734;
// aapt resource value: 0x7f08000f
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131230735;
// aapt resource value: 0x7f080010
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131230736;
// aapt resource value: 0x7f080011
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 2131230737;
// aapt resource value: 0x7f080012
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 2131230738;
// aapt resource value: 0x7f080013
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131230739;
// aapt resource value: 0x7f080014
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 2131230740;
// aapt resource value: 0x7f080015
public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131230741;
// aapt resource value: 0x7f080016
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131230742;
// aapt resource value: 0x7f080017
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131230743;
// aapt resource value: 0x7f080018
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131230744;
// aapt resource value: 0x7f080019
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131230745;
// aapt resource value: 0x7f08001a
public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131230746;
// aapt resource value: 0x7f08001b
public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131230747;
// aapt resource value: 0x7f08001c
public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131230748;
// aapt resource value: 0x7f0800c3
public const int TextAppearance_AppCompat = 2131230915;
// aapt resource value: 0x7f0800c4
public const int TextAppearance_AppCompat_Body1 = 2131230916;
// aapt resource value: 0x7f0800c5
public const int TextAppearance_AppCompat_Body2 = 2131230917;
// aapt resource value: 0x7f0800c6
public const int TextAppearance_AppCompat_Button = 2131230918;
// aapt resource value: 0x7f0800c7
public const int TextAppearance_AppCompat_Caption = 2131230919;
// aapt resource value: 0x7f0800c8
public const int TextAppearance_AppCompat_Display1 = 2131230920;
// aapt resource value: 0x7f0800c9
public const int TextAppearance_AppCompat_Display2 = 2131230921;
// aapt resource value: 0x7f0800ca
public const int TextAppearance_AppCompat_Display3 = 2131230922;
// aapt resource value: 0x7f0800cb
public const int TextAppearance_AppCompat_Display4 = 2131230923;
// aapt resource value: 0x7f0800cc
public const int TextAppearance_AppCompat_Headline = 2131230924;
// aapt resource value: 0x7f0800cd
public const int TextAppearance_AppCompat_Inverse = 2131230925;
// aapt resource value: 0x7f0800ce
public const int TextAppearance_AppCompat_Large = 2131230926;
// aapt resource value: 0x7f0800cf
public const int TextAppearance_AppCompat_Large_Inverse = 2131230927;
// aapt resource value: 0x7f0800d0
public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131230928;
// aapt resource value: 0x7f0800d1
public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131230929;
// aapt resource value: 0x7f0800d2
public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131230930;
// aapt resource value: 0x7f0800d3
public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131230931;
// aapt resource value: 0x7f0800d4
public const int TextAppearance_AppCompat_Medium = 2131230932;
// aapt resource value: 0x7f0800d5
public const int TextAppearance_AppCompat_Medium_Inverse = 2131230933;
// aapt resource value: 0x7f0800d6
public const int TextAppearance_AppCompat_Menu = 2131230934;
// aapt resource value: 0x7f0800d7
public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131230935;
// aapt resource value: 0x7f0800d8
public const int TextAppearance_AppCompat_SearchResult_Title = 2131230936;
// aapt resource value: 0x7f0800d9
public const int TextAppearance_AppCompat_Small = 2131230937;
// aapt resource value: 0x7f0800da
public const int TextAppearance_AppCompat_Small_Inverse = 2131230938;
// aapt resource value: 0x7f0800db
public const int TextAppearance_AppCompat_Subhead = 2131230939;
// aapt resource value: 0x7f0800dc
public const int TextAppearance_AppCompat_Subhead_Inverse = 2131230940;
// aapt resource value: 0x7f0800dd
public const int TextAppearance_AppCompat_Title = 2131230941;
// aapt resource value: 0x7f0800de
public const int TextAppearance_AppCompat_Title_Inverse = 2131230942;
// aapt resource value: 0x7f08000b
public const int TextAppearance_AppCompat_Tooltip = 2131230731;
// aapt resource value: 0x7f0800df
public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131230943;
// aapt resource value: 0x7f0800e0
public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131230944;
// aapt resource value: 0x7f0800e1
public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131230945;
// aapt resource value: 0x7f0800e2
public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131230946;
// aapt resource value: 0x7f0800e3
public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131230947;
// aapt resource value: 0x7f0800e4
public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131230948;
// aapt resource value: 0x7f0800e5
public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131230949;
// aapt resource value: 0x7f0800e6
public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131230950;
// aapt resource value: 0x7f0800e7
public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131230951;
// aapt resource value: 0x7f0800e8
public const int TextAppearance_AppCompat_Widget_Button = 2131230952;
// aapt resource value: 0x7f0800e9
public const int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131230953;
// aapt resource value: 0x7f0800ea
public const int TextAppearance_AppCompat_Widget_Button_Colored = 2131230954;
// aapt resource value: 0x7f0800eb
public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131230955;
// aapt resource value: 0x7f0800ec
public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131230956;
// aapt resource value: 0x7f0800ed
public const int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131230957;
// aapt resource value: 0x7f0800ee
public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131230958;
// aapt resource value: 0x7f0800ef
public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131230959;
// aapt resource value: 0x7f0800f0
public const int TextAppearance_AppCompat_Widget_Switch = 2131230960;
// aapt resource value: 0x7f0800f1
public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131230961;
// aapt resource value: 0x7f080153
public const int TextAppearance_Compat_Notification = 2131231059;
// aapt resource value: 0x7f080154
public const int TextAppearance_Compat_Notification_Info = 2131231060;
// aapt resource value: 0x7f080159
public const int TextAppearance_Compat_Notification_Line2 = 2131231065;
// aapt resource value: 0x7f080155
public const int TextAppearance_Compat_Notification_Time = 2131231061;
// aapt resource value: 0x7f080156
public const int TextAppearance_Compat_Notification_Title = 2131231062;
// aapt resource value: 0x7f0800f2
public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131230962;
// aapt resource value: 0x7f0800f3
public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131230963;
// aapt resource value: 0x7f0800f4
public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131230964;
// aapt resource value: 0x7f0800f5
public const int Theme_AppCompat = 2131230965;
// aapt resource value: 0x7f0800f6
public const int Theme_AppCompat_CompactMenu = 2131230966;
// aapt resource value: 0x7f080004
public const int Theme_AppCompat_DayNight = 2131230724;
// aapt resource value: 0x7f080005
public const int Theme_AppCompat_DayNight_DarkActionBar = 2131230725;
// aapt resource value: 0x7f080006
public const int Theme_AppCompat_DayNight_Dialog = 2131230726;
// aapt resource value: 0x7f080007
public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131230727;
// aapt resource value: 0x7f080008
public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131230728;
// aapt resource value: 0x7f080009
public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131230729;
// aapt resource value: 0x7f08000a
public const int Theme_AppCompat_DayNight_NoActionBar = 2131230730;
// aapt resource value: 0x7f0800f7
public const int Theme_AppCompat_Dialog = 2131230967;
// aapt resource value: 0x7f0800f8
public const int Theme_AppCompat_Dialog_Alert = 2131230968;
// aapt resource value: 0x7f0800f9
public const int Theme_AppCompat_Dialog_MinWidth = 2131230969;
// aapt resource value: 0x7f0800fa
public const int Theme_AppCompat_DialogWhenLarge = 2131230970;
// aapt resource value: 0x7f0800fb
public const int Theme_AppCompat_Light = 2131230971;
// aapt resource value: 0x7f0800fc
public const int Theme_AppCompat_Light_DarkActionBar = 2131230972;
// aapt resource value: 0x7f0800fd
public const int Theme_AppCompat_Light_Dialog = 2131230973;
// aapt resource value: 0x7f0800fe
public const int Theme_AppCompat_Light_Dialog_Alert = 2131230974;
// aapt resource value: 0x7f0800ff
public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131230975;
// aapt resource value: 0x7f080100
public const int Theme_AppCompat_Light_DialogWhenLarge = 2131230976;
// aapt resource value: 0x7f080101
public const int Theme_AppCompat_Light_NoActionBar = 2131230977;
// aapt resource value: 0x7f080102
public const int Theme_AppCompat_NoActionBar = 2131230978;
// aapt resource value: 0x7f080103
public const int ThemeOverlay_AppCompat = 2131230979;
// aapt resource value: 0x7f080104
public const int ThemeOverlay_AppCompat_ActionBar = 2131230980;
// aapt resource value: 0x7f080105
public const int ThemeOverlay_AppCompat_Dark = 2131230981;
// aapt resource value: 0x7f080106
public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131230982;
// aapt resource value: 0x7f080107
public const int ThemeOverlay_AppCompat_Dialog = 2131230983;
// aapt resource value: 0x7f080108
public const int ThemeOverlay_AppCompat_Dialog_Alert = 2131230984;
// aapt resource value: 0x7f080109
public const int ThemeOverlay_AppCompat_Light = 2131230985;
// aapt resource value: 0x7f08010a
public const int Widget_AppCompat_ActionBar = 2131230986;
// aapt resource value: 0x7f08010b
public const int Widget_AppCompat_ActionBar_Solid = 2131230987;
// aapt resource value: 0x7f08010c
public const int Widget_AppCompat_ActionBar_TabBar = 2131230988;
// aapt resource value: 0x7f08010d
public const int Widget_AppCompat_ActionBar_TabText = 2131230989;
// aapt resource value: 0x7f08010e
public const int Widget_AppCompat_ActionBar_TabView = 2131230990;
// aapt resource value: 0x7f08010f
public const int Widget_AppCompat_ActionButton = 2131230991;
// aapt resource value: 0x7f080110
public const int Widget_AppCompat_ActionButton_CloseMode = 2131230992;
// aapt resource value: 0x7f080111
public const int Widget_AppCompat_ActionButton_Overflow = 2131230993;
// aapt resource value: 0x7f080112
public const int Widget_AppCompat_ActionMode = 2131230994;
// aapt resource value: 0x7f080113
public const int Widget_AppCompat_ActivityChooserView = 2131230995;
// aapt resource value: 0x7f080114
public const int Widget_AppCompat_AutoCompleteTextView = 2131230996;
// aapt resource value: 0x7f080115
public const int Widget_AppCompat_Button = 2131230997;
// aapt resource value: 0x7f080116
public const int Widget_AppCompat_Button_Borderless = 2131230998;
// aapt resource value: 0x7f080117
public const int Widget_AppCompat_Button_Borderless_Colored = 2131230999;
// aapt resource value: 0x7f080118
public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131231000;
// aapt resource value: 0x7f080119
public const int Widget_AppCompat_Button_Colored = 2131231001;
// aapt resource value: 0x7f08011a
public const int Widget_AppCompat_Button_Small = 2131231002;
// aapt resource value: 0x7f08011b
public const int Widget_AppCompat_ButtonBar = 2131231003;
// aapt resource value: 0x7f08011c
public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131231004;
// aapt resource value: 0x7f08011d
public const int Widget_AppCompat_CompoundButton_CheckBox = 2131231005;
// aapt resource value: 0x7f08011e
public const int Widget_AppCompat_CompoundButton_RadioButton = 2131231006;
// aapt resource value: 0x7f08011f
public const int Widget_AppCompat_CompoundButton_Switch = 2131231007;
// aapt resource value: 0x7f080120
public const int Widget_AppCompat_DrawerArrowToggle = 2131231008;
// aapt resource value: 0x7f080121
public const int Widget_AppCompat_DropDownItem_Spinner = 2131231009;
// aapt resource value: 0x7f080122
public const int Widget_AppCompat_EditText = 2131231010;
// aapt resource value: 0x7f080123
public const int Widget_AppCompat_ImageButton = 2131231011;
// aapt resource value: 0x7f080124
public const int Widget_AppCompat_Light_ActionBar = 2131231012;
// aapt resource value: 0x7f080125
public const int Widget_AppCompat_Light_ActionBar_Solid = 2131231013;
// aapt resource value: 0x7f080126
public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131231014;
// aapt resource value: 0x7f080127
public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131231015;
// aapt resource value: 0x7f080128
public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131231016;
// aapt resource value: 0x7f080129
public const int Widget_AppCompat_Light_ActionBar_TabText = 2131231017;
// aapt resource value: 0x7f08012a
public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131231018;
// aapt resource value: 0x7f08012b
public const int Widget_AppCompat_Light_ActionBar_TabView = 2131231019;
// aapt resource value: 0x7f08012c
public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131231020;
// aapt resource value: 0x7f08012d
public const int Widget_AppCompat_Light_ActionButton = 2131231021;
// aapt resource value: 0x7f08012e
public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131231022;
// aapt resource value: 0x7f08012f
public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131231023;
// aapt resource value: 0x7f080130
public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131231024;
// aapt resource value: 0x7f080131
public const int Widget_AppCompat_Light_ActivityChooserView = 2131231025;
// aapt resource value: 0x7f080132
public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131231026;
// aapt resource value: 0x7f080133
public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131231027;
// aapt resource value: 0x7f080134
public const int Widget_AppCompat_Light_ListPopupWindow = 2131231028;
// aapt resource value: 0x7f080135
public const int Widget_AppCompat_Light_ListView_DropDown = 2131231029;
// aapt resource value: 0x7f080136
public const int Widget_AppCompat_Light_PopupMenu = 2131231030;
// aapt resource value: 0x7f080137
public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131231031;
// aapt resource value: 0x7f080138
public const int Widget_AppCompat_Light_SearchView = 2131231032;
// aapt resource value: 0x7f080139
public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131231033;
// aapt resource value: 0x7f08013a
public const int Widget_AppCompat_ListMenuView = 2131231034;
// aapt resource value: 0x7f08013b
public const int Widget_AppCompat_ListPopupWindow = 2131231035;
// aapt resource value: 0x7f08013c
public const int Widget_AppCompat_ListView = 2131231036;
// aapt resource value: 0x7f08013d
public const int Widget_AppCompat_ListView_DropDown = 2131231037;
// aapt resource value: 0x7f08013e
public const int Widget_AppCompat_ListView_Menu = 2131231038;
// aapt resource value: 0x7f08013f
public const int Widget_AppCompat_PopupMenu = 2131231039;
// aapt resource value: 0x7f080140
public const int Widget_AppCompat_PopupMenu_Overflow = 2131231040;
// aapt resource value: 0x7f080141
public const int Widget_AppCompat_PopupWindow = 2131231041;
// aapt resource value: 0x7f080142
public const int Widget_AppCompat_ProgressBar = 2131231042;
// aapt resource value: 0x7f080143
public const int Widget_AppCompat_ProgressBar_Horizontal = 2131231043;
// aapt resource value: 0x7f080144
public const int Widget_AppCompat_RatingBar = 2131231044;
// aapt resource value: 0x7f080145
public const int Widget_AppCompat_RatingBar_Indicator = 2131231045;
// aapt resource value: 0x7f080146
public const int Widget_AppCompat_RatingBar_Small = 2131231046;
// aapt resource value: 0x7f080147
public const int Widget_AppCompat_SearchView = 2131231047;
// aapt resource value: 0x7f080148
public const int Widget_AppCompat_SearchView_ActionBar = 2131231048;
// aapt resource value: 0x7f080149
public const int Widget_AppCompat_SeekBar = 2131231049;
// aapt resource value: 0x7f08014a
public const int Widget_AppCompat_SeekBar_Discrete = 2131231050;
// aapt resource value: 0x7f08014b
public const int Widget_AppCompat_Spinner = 2131231051;
// aapt resource value: 0x7f08014c
public const int Widget_AppCompat_Spinner_DropDown = 2131231052;
// aapt resource value: 0x7f08014d
public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131231053;
// aapt resource value: 0x7f08014e
public const int Widget_AppCompat_Spinner_Underlined = 2131231054;
// aapt resource value: 0x7f08014f
public const int Widget_AppCompat_TextView_SpinnerItem = 2131231055;
// aapt resource value: 0x7f080150
public const int Widget_AppCompat_Toolbar = 2131231056;
// aapt resource value: 0x7f080151
public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131231057;
// aapt resource value: 0x7f080157
public const int Widget_Compat_NotificationActionContainer = 2131231063;
// aapt resource value: 0x7f080158
public const int Widget_Compat_NotificationActionText = 2131231064;
// aapt resource value: 0x7f080152
public const int Widget_Support_CoordinatorLayout = 2131231058;
static Style()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Style()
{
}
}
public partial class Styleable
{
public static int[] ActionBar = new int[] {
2130771969,
2130771971,
2130771972,
2130771973,
2130771974,
2130771975,
2130771976,
2130771977,
2130771978,
2130771979,
2130771980,
2130771981,
2130771982,
2130771983,
2130771984,
2130771985,
2130771986,
2130771987,
2130771988,
2130771989,
2130771990,
2130771991,
2130771992,
2130771993,
2130771994,
2130771995,
2130771996,
2130771997,
2130772072};
// aapt resource value: 10
public const int ActionBar_background = 10;
// aapt resource value: 12
public const int ActionBar_backgroundSplit = 12;
// aapt resource value: 11
public const int ActionBar_backgroundStacked = 11;
// aapt resource value: 21
public const int ActionBar_contentInsetEnd = 21;
// aapt resource value: 25
public const int ActionBar_contentInsetEndWithActions = 25;
// aapt resource value: 22
public const int ActionBar_contentInsetLeft = 22;
// aapt resource value: 23
public const int ActionBar_contentInsetRight = 23;
// aapt resource value: 20
public const int ActionBar_contentInsetStart = 20;
// aapt resource value: 24
public const int ActionBar_contentInsetStartWithNavigation = 24;
// aapt resource value: 13
public const int ActionBar_customNavigationLayout = 13;
// aapt resource value: 3
public const int ActionBar_displayOptions = 3;
// aapt resource value: 9
public const int ActionBar_divider = 9;
// aapt resource value: 26
public const int ActionBar_elevation = 26;
// aapt resource value: 0
public const int ActionBar_height = 0;
// aapt resource value: 19
public const int ActionBar_hideOnContentScroll = 19;
// aapt resource value: 28
public const int ActionBar_homeAsUpIndicator = 28;
// aapt resource value: 14
public const int ActionBar_homeLayout = 14;
// aapt resource value: 7
public const int ActionBar_icon = 7;
// aapt resource value: 16
public const int ActionBar_indeterminateProgressStyle = 16;
// aapt resource value: 18
public const int ActionBar_itemPadding = 18;
// aapt resource value: 8
public const int ActionBar_logo = 8;
// aapt resource value: 2
public const int ActionBar_navigationMode = 2;
// aapt resource value: 27
public const int ActionBar_popupTheme = 27;
// aapt resource value: 17
public const int ActionBar_progressBarPadding = 17;
// aapt resource value: 15
public const int ActionBar_progressBarStyle = 15;
// aapt resource value: 4
public const int ActionBar_subtitle = 4;
// aapt resource value: 6
public const int ActionBar_subtitleTextStyle = 6;
// aapt resource value: 1
public const int ActionBar_title = 1;
// aapt resource value: 5
public const int ActionBar_titleTextStyle = 5;
public static int[] ActionBarLayout = new int[] {
16842931};
// aapt resource value: 0
public const int ActionBarLayout_android_layout_gravity = 0;
public static int[] ActionMenuItemView = new int[] {
16843071};
// aapt resource value: 0
public const int ActionMenuItemView_android_minWidth = 0;
public static int[] ActionMenuView;
public static int[] ActionMode = new int[] {
2130771969,
2130771975,
2130771976,
2130771980,
2130771982,
2130771998};
// aapt resource value: 3
public const int ActionMode_background = 3;
// aapt resource value: 4
public const int ActionMode_backgroundSplit = 4;
// aapt resource value: 5
public const int ActionMode_closeItemLayout = 5;
// aapt resource value: 0
public const int ActionMode_height = 0;
// aapt resource value: 2
public const int ActionMode_subtitleTextStyle = 2;
// aapt resource value: 1
public const int ActionMode_titleTextStyle = 1;
public static int[] ActivityChooserView = new int[] {
2130771999,
2130772000};
// aapt resource value: 1
public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
// aapt resource value: 0
public const int ActivityChooserView_initialActivityCount = 0;
public static int[] AlertDialog = new int[] {
16842994,
2130772001,
2130772002,
2130772003,
2130772004,
2130772005,
2130772006,
2130772007};
// aapt resource value: 0
public const int AlertDialog_android_layout = 0;
// aapt resource value: 7
public const int AlertDialog_buttonIconDimen = 7;
// aapt resource value: 1
public const int AlertDialog_buttonPanelSideLayout = 1;
// aapt resource value: 5
public const int AlertDialog_listItemLayout = 5;
// aapt resource value: 2
public const int AlertDialog_listLayout = 2;
// aapt resource value: 3
public const int AlertDialog_multiChoiceItemLayout = 3;
// aapt resource value: 6
public const int AlertDialog_showTitle = 6;
// aapt resource value: 4
public const int AlertDialog_singleChoiceItemLayout = 4;
public static int[] AnimatedStateListDrawableCompat = new int[] {
16843036,
16843156,
16843157,
16843158,
16843532,
16843533};
// aapt resource value: 3
public const int AnimatedStateListDrawableCompat_android_constantSize = 3;
// aapt resource value: 0
public const int AnimatedStateListDrawableCompat_android_dither = 0;
// aapt resource value: 4
public const int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4;
// aapt resource value: 5
public const int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5;
// aapt resource value: 2
public const int AnimatedStateListDrawableCompat_android_variablePadding = 2;
// aapt resource value: 1
public const int AnimatedStateListDrawableCompat_android_visible = 1;
public static int[] AnimatedStateListDrawableItem = new int[] {
16842960,
16843161};
// aapt resource value: 1
public const int AnimatedStateListDrawableItem_android_drawable = 1;
// aapt resource value: 0
public const int AnimatedStateListDrawableItem_android_id = 0;
public static int[] AnimatedStateListDrawableTransition = new int[] {
16843161,
16843849,
16843850,
16843851};
// aapt resource value: 0
public const int AnimatedStateListDrawableTransition_android_drawable = 0;
// aapt resource value: 2
public const int AnimatedStateListDrawableTransition_android_fromId = 2;
// aapt resource value: 3
public const int AnimatedStateListDrawableTransition_android_reversible = 3;
// aapt resource value: 1
public const int AnimatedStateListDrawableTransition_android_toId = 1;
public static int[] AppCompatImageView = new int[] {
16843033,
2130772008,
2130772009,
2130772010};
// aapt resource value: 0
public const int AppCompatImageView_android_src = 0;
// aapt resource value: 1
public const int AppCompatImageView_srcCompat = 1;
// aapt resource value: 2
public const int AppCompatImageView_tint = 2;
// aapt resource value: 3
public const int AppCompatImageView_tintMode = 3;
public static int[] AppCompatSeekBar = new int[] {
16843074,
2130772011,
2130772012,
2130772013};
// aapt resource value: 0
public const int AppCompatSeekBar_android_thumb = 0;
// aapt resource value: 1
public const int AppCompatSeekBar_tickMark = 1;
// aapt resource value: 2
public const int AppCompatSeekBar_tickMarkTint = 2;
// aapt resource value: 3
public const int AppCompatSeekBar_tickMarkTintMode = 3;
public static int[] AppCompatTextHelper = new int[] {
16842804,
16843117,
16843118,
16843119,
16843120,
16843666,
16843667};
// aapt resource value: 2
public const int AppCompatTextHelper_android_drawableBottom = 2;
// aapt resource value: 6
public const int AppCompatTextHelper_android_drawableEnd = 6;
// aapt resource value: 3
public const int AppCompatTextHelper_android_drawableLeft = 3;
// aapt resource value: 4
public const int AppCompatTextHelper_android_drawableRight = 4;
// aapt resource value: 5
public const int AppCompatTextHelper_android_drawableStart = 5;
// aapt resource value: 1
public const int AppCompatTextHelper_android_drawableTop = 1;
// aapt resource value: 0
public const int AppCompatTextHelper_android_textAppearance = 0;
public static int[] AppCompatTextView = new int[] {
16842804,
2130772014,
2130772015,
2130772016,
2130772017,
2130772018,
2130772019,
2130772020,
2130772021,
2130772022,
2130772023};
// aapt resource value: 0
public const int AppCompatTextView_android_textAppearance = 0;
// aapt resource value: 6
public const int AppCompatTextView_autoSizeMaxTextSize = 6;
// aapt resource value: 5
public const int AppCompatTextView_autoSizeMinTextSize = 5;
// aapt resource value: 4
public const int AppCompatTextView_autoSizePresetSizes = 4;
// aapt resource value: 3
public const int AppCompatTextView_autoSizeStepGranularity = 3;
// aapt resource value: 2
public const int AppCompatTextView_autoSizeTextType = 2;
// aapt resource value: 9
public const int AppCompatTextView_firstBaselineToTopHeight = 9;
// aapt resource value: 7
public const int AppCompatTextView_fontFamily = 7;
// aapt resource value: 10
public const int AppCompatTextView_lastBaselineToBottomHeight = 10;
// aapt resource value: 8
public const int AppCompatTextView_lineHeight = 8;
// aapt resource value: 1
public const int AppCompatTextView_textAllCaps = 1;
public static int[] AppCompatTheme = new int[] {
16842839,
16842926,
2130772024,
2130772025,
2130772026,
2130772027,
2130772028,
2130772029,
2130772030,
2130772031,
2130772032,
2130772033,
2130772034,
2130772035,
2130772036,
2130772037,
2130772038,
2130772039,
2130772040,
2130772041,
2130772042,
2130772043,
2130772044,
2130772045,
2130772046,
2130772047,
2130772048,
2130772049,
2130772050,
2130772051,
2130772052,
2130772053,
2130772054,
2130772055,
2130772056,
2130772057,
2130772058,
2130772059,
2130772060,
2130772061,
2130772062,
2130772063,
2130772064,
2130772065,
2130772066,
2130772067,
2130772068,
2130772069,
2130772070,
2130772071,
2130772072,
2130772073,
2130772074,
2130772075,
2130772076,
2130772077,
2130772078,
2130772079,
2130772080,
2130772081,
2130772082,
2130772083,
2130772084,
2130772085,
2130772086,
2130772087,
2130772088,
2130772089,
2130772090,
2130772091,
2130772092,
2130772093,
2130772094,
2130772095,
2130772096,
2130772097,
2130772098,
2130772099,
2130772100,
2130772101,
2130772102,
2130772103,
2130772104,
2130772105,
2130772106,
2130772107,
2130772108,
2130772109,
2130772110,
2130772111,
2130772112,
2130772113,
2130772114,
2130772115,
2130772116,
2130772117,
2130772118,
2130772119,
2130772120,
2130772121,
2130772122,
2130772123,
2130772124,
2130772125,
2130772126,
2130772127,
2130772128,
2130772129,
2130772130,
2130772131,
2130772132,
2130772133,
2130772134,
2130772135,
2130772136,
2130772137,
2130772138,
2130772139,
2130772140,
2130772141,
2130772142};
// aapt resource value: 23
public const int AppCompatTheme_actionBarDivider = 23;
// aapt resource value: 24
public const int AppCompatTheme_actionBarItemBackground = 24;
// aapt resource value: 17
public const int AppCompatTheme_actionBarPopupTheme = 17;
// aapt resource value: 22
public const int AppCompatTheme_actionBarSize = 22;
// aapt resource value: 19
public const int AppCompatTheme_actionBarSplitStyle = 19;
// aapt resource value: 18
public const int AppCompatTheme_actionBarStyle = 18;
// aapt resource value: 13
public const int AppCompatTheme_actionBarTabBarStyle = 13;
// aapt resource value: 12
public const int AppCompatTheme_actionBarTabStyle = 12;
// aapt resource value: 14
public const int AppCompatTheme_actionBarTabTextStyle = 14;
// aapt resource value: 20
public const int AppCompatTheme_actionBarTheme = 20;
// aapt resource value: 21
public const int AppCompatTheme_actionBarWidgetTheme = 21;
// aapt resource value: 51
public const int AppCompatTheme_actionButtonStyle = 51;
// aapt resource value: 47
public const int AppCompatTheme_actionDropDownStyle = 47;
// aapt resource value: 25
public const int AppCompatTheme_actionMenuTextAppearance = 25;
// aapt resource value: 26
public const int AppCompatTheme_actionMenuTextColor = 26;
// aapt resource value: 29
public const int AppCompatTheme_actionModeBackground = 29;
// aapt resource value: 28
public const int AppCompatTheme_actionModeCloseButtonStyle = 28;
// aapt resource value: 31
public const int AppCompatTheme_actionModeCloseDrawable = 31;
// aapt resource value: 33
public const int AppCompatTheme_actionModeCopyDrawable = 33;
// aapt resource value: 32
public const int AppCompatTheme_actionModeCutDrawable = 32;
// aapt resource value: 37
public const int AppCompatTheme_actionModeFindDrawable = 37;
// aapt resource value: 34
public const int AppCompatTheme_actionModePasteDrawable = 34;
// aapt resource value: 39
public const int AppCompatTheme_actionModePopupWindowStyle = 39;
// aapt resource value: 35
public const int AppCompatTheme_actionModeSelectAllDrawable = 35;
// aapt resource value: 36
public const int AppCompatTheme_actionModeShareDrawable = 36;
// aapt resource value: 30
public const int AppCompatTheme_actionModeSplitBackground = 30;
// aapt resource value: 27
public const int AppCompatTheme_actionModeStyle = 27;
// aapt resource value: 38
public const int AppCompatTheme_actionModeWebSearchDrawable = 38;
// aapt resource value: 15
public const int AppCompatTheme_actionOverflowButtonStyle = 15;
// aapt resource value: 16
public const int AppCompatTheme_actionOverflowMenuStyle = 16;
// aapt resource value: 59
public const int AppCompatTheme_activityChooserViewStyle = 59;
// aapt resource value: 96
public const int AppCompatTheme_alertDialogButtonGroupStyle = 96;
// aapt resource value: 97
public const int AppCompatTheme_alertDialogCenterButtons = 97;
// aapt resource value: 95
public const int AppCompatTheme_alertDialogStyle = 95;
// aapt resource value: 98
public const int AppCompatTheme_alertDialogTheme = 98;
// aapt resource value: 1
public const int AppCompatTheme_android_windowAnimationStyle = 1;
// aapt resource value: 0
public const int AppCompatTheme_android_windowIsFloating = 0;
// aapt resource value: 103
public const int AppCompatTheme_autoCompleteTextViewStyle = 103;
// aapt resource value: 56
public const int AppCompatTheme_borderlessButtonStyle = 56;
// aapt resource value: 53
public const int AppCompatTheme_buttonBarButtonStyle = 53;
// aapt resource value: 101
public const int AppCompatTheme_buttonBarNegativeButtonStyle = 101;
// aapt resource value: 102
public const int AppCompatTheme_buttonBarNeutralButtonStyle = 102;
// aapt resource value: 100
public const int AppCompatTheme_buttonBarPositiveButtonStyle = 100;
// aapt resource value: 52
public const int AppCompatTheme_buttonBarStyle = 52;
// aapt resource value: 104
public const int AppCompatTheme_buttonStyle = 104;
// aapt resource value: 105
public const int AppCompatTheme_buttonStyleSmall = 105;
// aapt resource value: 106
public const int AppCompatTheme_checkboxStyle = 106;
// aapt resource value: 107
public const int AppCompatTheme_checkedTextViewStyle = 107;
// aapt resource value: 87
public const int AppCompatTheme_colorAccent = 87;
// aapt resource value: 94
public const int AppCompatTheme_colorBackgroundFloating = 94;
// aapt resource value: 91
public const int AppCompatTheme_colorButtonNormal = 91;
// aapt resource value: 89
public const int AppCompatTheme_colorControlActivated = 89;
// aapt resource value: 90
public const int AppCompatTheme_colorControlHighlight = 90;
// aapt resource value: 88
public const int AppCompatTheme_colorControlNormal = 88;
// aapt resource value: 119
public const int AppCompatTheme_colorError = 119;
// aapt resource value: 85
public const int AppCompatTheme_colorPrimary = 85;
// aapt resource value: 86
public const int AppCompatTheme_colorPrimaryDark = 86;
// aapt resource value: 92
public const int AppCompatTheme_colorSwitchThumbNormal = 92;
// aapt resource value: 93
public const int AppCompatTheme_controlBackground = 93;
// aapt resource value: 46
public const int AppCompatTheme_dialogCornerRadius = 46;
// aapt resource value: 44
public const int AppCompatTheme_dialogPreferredPadding = 44;
// aapt resource value: 43
public const int AppCompatTheme_dialogTheme = 43;
// aapt resource value: 58
public const int AppCompatTheme_dividerHorizontal = 58;
// aapt resource value: 57
public const int AppCompatTheme_dividerVertical = 57;
// aapt resource value: 76
public const int AppCompatTheme_dropDownListViewStyle = 76;
// aapt resource value: 48
public const int AppCompatTheme_dropdownListPreferredItemHeight = 48;
// aapt resource value: 65
public const int AppCompatTheme_editTextBackground = 65;
// aapt resource value: 64
public const int AppCompatTheme_editTextColor = 64;
// aapt resource value: 108
public const int AppCompatTheme_editTextStyle = 108;
// aapt resource value: 50
public const int AppCompatTheme_homeAsUpIndicator = 50;
// aapt resource value: 66
public const int AppCompatTheme_imageButtonStyle = 66;
// aapt resource value: 84
public const int AppCompatTheme_listChoiceBackgroundIndicator = 84;
// aapt resource value: 45
public const int AppCompatTheme_listDividerAlertDialog = 45;
// aapt resource value: 116
public const int AppCompatTheme_listMenuViewStyle = 116;
// aapt resource value: 77
public const int AppCompatTheme_listPopupWindowStyle = 77;
// aapt resource value: 71
public const int AppCompatTheme_listPreferredItemHeight = 71;
// aapt resource value: 73
public const int AppCompatTheme_listPreferredItemHeightLarge = 73;
// aapt resource value: 72
public const int AppCompatTheme_listPreferredItemHeightSmall = 72;
// aapt resource value: 74
public const int AppCompatTheme_listPreferredItemPaddingLeft = 74;
// aapt resource value: 75
public const int AppCompatTheme_listPreferredItemPaddingRight = 75;
// aapt resource value: 81
public const int AppCompatTheme_panelBackground = 81;
// aapt resource value: 83
public const int AppCompatTheme_panelMenuListTheme = 83;
// aapt resource value: 82
public const int AppCompatTheme_panelMenuListWidth = 82;
// aapt resource value: 62
public const int AppCompatTheme_popupMenuStyle = 62;
// aapt resource value: 63
public const int AppCompatTheme_popupWindowStyle = 63;
// aapt resource value: 109
public const int AppCompatTheme_radioButtonStyle = 109;
// aapt resource value: 110
public const int AppCompatTheme_ratingBarStyle = 110;
// aapt resource value: 111
public const int AppCompatTheme_ratingBarStyleIndicator = 111;
// aapt resource value: 112
public const int AppCompatTheme_ratingBarStyleSmall = 112;
// aapt resource value: 70
public const int AppCompatTheme_searchViewStyle = 70;
// aapt resource value: 113
public const int AppCompatTheme_seekBarStyle = 113;
// aapt resource value: 54
public const int AppCompatTheme_selectableItemBackground = 54;
// aapt resource value: 55
public const int AppCompatTheme_selectableItemBackgroundBorderless = 55;
// aapt resource value: 49
public const int AppCompatTheme_spinnerDropDownItemStyle = 49;
// aapt resource value: 114
public const int AppCompatTheme_spinnerStyle = 114;
// aapt resource value: 115
public const int AppCompatTheme_switchStyle = 115;
// aapt resource value: 40
public const int AppCompatTheme_textAppearanceLargePopupMenu = 40;
// aapt resource value: 78
public const int AppCompatTheme_textAppearanceListItem = 78;
// aapt resource value: 79
public const int AppCompatTheme_textAppearanceListItemSecondary = 79;
// aapt resource value: 80
public const int AppCompatTheme_textAppearanceListItemSmall = 80;
// aapt resource value: 42
public const int AppCompatTheme_textAppearancePopupMenuHeader = 42;
// aapt resource value: 68
public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 68;
// aapt resource value: 67
public const int AppCompatTheme_textAppearanceSearchResultTitle = 67;
// aapt resource value: 41
public const int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
// aapt resource value: 99
public const int AppCompatTheme_textColorAlertDialogListItem = 99;
// aapt resource value: 69
public const int AppCompatTheme_textColorSearchUrl = 69;
// aapt resource value: 61
public const int AppCompatTheme_toolbarNavigationButtonStyle = 61;
// aapt resource value: 60
public const int AppCompatTheme_toolbarStyle = 60;
// aapt resource value: 118
public const int AppCompatTheme_tooltipForegroundColor = 118;
// aapt resource value: 117
public const int AppCompatTheme_tooltipFrameBackground = 117;
// aapt resource value: 120
public const int AppCompatTheme_viewInflaterClass = 120;
// aapt resource value: 2
public const int AppCompatTheme_windowActionBar = 2;
// aapt resource value: 4
public const int AppCompatTheme_windowActionBarOverlay = 4;
// aapt resource value: 5
public const int AppCompatTheme_windowActionModeOverlay = 5;
// aapt resource value: 9
public const int AppCompatTheme_windowFixedHeightMajor = 9;
// aapt resource value: 7
public const int AppCompatTheme_windowFixedHeightMinor = 7;
// aapt resource value: 6
public const int AppCompatTheme_windowFixedWidthMajor = 6;
// aapt resource value: 8
public const int AppCompatTheme_windowFixedWidthMinor = 8;
// aapt resource value: 10
public const int AppCompatTheme_windowMinWidthMajor = 10;
// aapt resource value: 11
public const int AppCompatTheme_windowMinWidthMinor = 11;
// aapt resource value: 3
public const int AppCompatTheme_windowNoTitle = 3;
public static int[] ButtonBarLayout = new int[] {
2130772143};
// aapt resource value: 0
public const int ButtonBarLayout_allowStacking = 0;
public static int[] ColorStateListItem = new int[] {
16843173,
16843551,
2130772228};
// aapt resource value: 2
public const int ColorStateListItem_alpha = 2;
// aapt resource value: 1
public const int ColorStateListItem_android_alpha = 1;
// aapt resource value: 0
public const int ColorStateListItem_android_color = 0;
public static int[] CompoundButton = new int[] {
16843015,
2130772144,
2130772145};
// aapt resource value: 0
public const int CompoundButton_android_button = 0;
// aapt resource value: 1
public const int CompoundButton_buttonTint = 1;
// aapt resource value: 2
public const int CompoundButton_buttonTintMode = 2;
public static int[] CoordinatorLayout = new int[] {
2130772220,
2130772221};
// aapt resource value: 0
public const int CoordinatorLayout_keylines = 0;
// aapt resource value: 1
public const int CoordinatorLayout_statusBarBackground = 1;
public static int[] CoordinatorLayout_Layout = new int[] {
16842931,
2130772222,
2130772223,
2130772224,
2130772225,
2130772226,
2130772227};
// aapt resource value: 0
public const int CoordinatorLayout_Layout_android_layout_gravity = 0;
// aapt resource value: 2
public const int CoordinatorLayout_Layout_layout_anchor = 2;
// aapt resource value: 4
public const int CoordinatorLayout_Layout_layout_anchorGravity = 4;
// aapt resource value: 1
public const int CoordinatorLayout_Layout_layout_behavior = 1;
// aapt resource value: 6
public const int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 6;
// aapt resource value: 5
public const int CoordinatorLayout_Layout_layout_insetEdge = 5;
// aapt resource value: 3
public const int CoordinatorLayout_Layout_layout_keyline = 3;
public static int[] DrawerArrowToggle = new int[] {
2130772146,
2130772147,
2130772148,
2130772149,
2130772150,
2130772151,
2130772152,
2130772153};
// aapt resource value: 4
public const int DrawerArrowToggle_arrowHeadLength = 4;
// aapt resource value: 5
public const int DrawerArrowToggle_arrowShaftLength = 5;
// aapt resource value: 6
public const int DrawerArrowToggle_barLength = 6;
// aapt resource value: 0
public const int DrawerArrowToggle_color = 0;
// aapt resource value: 2
public const int DrawerArrowToggle_drawableSize = 2;
// aapt resource value: 3
public const int DrawerArrowToggle_gapBetweenBars = 3;
// aapt resource value: 1
public const int DrawerArrowToggle_spinBars = 1;
// aapt resource value: 7
public const int DrawerArrowToggle_thickness = 7;
public static int[] FontFamily = new int[] {
2130772229,
2130772230,
2130772231,
2130772232,
2130772233,
2130772234};
// aapt resource value: 0
public const int FontFamily_fontProviderAuthority = 0;
// aapt resource value: 3
public const int FontFamily_fontProviderCerts = 3;
// aapt resource value: 4
public const int FontFamily_fontProviderFetchStrategy = 4;
// aapt resource value: 5
public const int FontFamily_fontProviderFetchTimeout = 5;
// aapt resource value: 1
public const int FontFamily_fontProviderPackage = 1;
// aapt resource value: 2
public const int FontFamily_fontProviderQuery = 2;
public static int[] FontFamilyFont = new int[] {
16844082,
16844083,
16844095,
16844143,
16844144,
2130772235,
2130772236,
2130772237,
2130772238,
2130772239};
// aapt resource value: 0
public const int FontFamilyFont_android_font = 0;
// aapt resource value: 2
public const int FontFamilyFont_android_fontStyle = 2;
// aapt resource value: 4
public const int FontFamilyFont_android_fontVariationSettings = 4;
// aapt resource value: 1
public const int FontFamilyFont_android_fontWeight = 1;
// aapt resource value: 3
public const int FontFamilyFont_android_ttcIndex = 3;
// aapt resource value: 6
public const int FontFamilyFont_font = 6;
// aapt resource value: 5
public const int FontFamilyFont_fontStyle = 5;
// aapt resource value: 8
public const int FontFamilyFont_fontVariationSettings = 8;
// aapt resource value: 7
public const int FontFamilyFont_fontWeight = 7;
// aapt resource value: 9
public const int FontFamilyFont_ttcIndex = 9;
public static int[] GradientColor = new int[] {
16843165,
16843166,
16843169,
16843170,
16843171,
16843172,
16843265,
16843275,
16844048,
16844049,
16844050,
16844051};
// aapt resource value: 7
public const int GradientColor_android_centerColor = 7;
// aapt resource value: 3
public const int GradientColor_android_centerX = 3;
// aapt resource value: 4
public const int GradientColor_android_centerY = 4;
// aapt resource value: 1
public const int GradientColor_android_endColor = 1;
// aapt resource value: 10
public const int GradientColor_android_endX = 10;
// aapt resource value: 11
public const int GradientColor_android_endY = 11;
// aapt resource value: 5
public const int GradientColor_android_gradientRadius = 5;
// aapt resource value: 0
public const int GradientColor_android_startColor = 0;
// aapt resource value: 8
public const int GradientColor_android_startX = 8;
// aapt resource value: 9
public const int GradientColor_android_startY = 9;
// aapt resource value: 6
public const int GradientColor_android_tileMode = 6;
// aapt resource value: 2
public const int GradientColor_android_type = 2;
public static int[] GradientColorItem = new int[] {
16843173,
16844052};
// aapt resource value: 0
public const int GradientColorItem_android_color = 0;
// aapt resource value: 1
public const int GradientColorItem_android_offset = 1;
public static int[] LinearLayoutCompat = new int[] {
16842927,
16842948,
16843046,
16843047,
16843048,
2130771979,
2130772154,
2130772155,
2130772156};
// aapt resource value: 2
public const int LinearLayoutCompat_android_baselineAligned = 2;
// aapt resource value: 3
public const int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
// aapt resource value: 0
public const int LinearLayoutCompat_android_gravity = 0;
// aapt resource value: 1
public const int LinearLayoutCompat_android_orientation = 1;
// aapt resource value: 4
public const int LinearLayoutCompat_android_weightSum = 4;
// aapt resource value: 5
public const int LinearLayoutCompat_divider = 5;
// aapt resource value: 8
public const int LinearLayoutCompat_dividerPadding = 8;
// aapt resource value: 6
public const int LinearLayoutCompat_measureWithLargestChild = 6;
// aapt resource value: 7
public const int LinearLayoutCompat_showDividers = 7;
public static int[] LinearLayoutCompat_Layout = new int[] {
16842931,
16842996,
16842997,
16843137};
// aapt resource value: 0
public const int LinearLayoutCompat_Layout_android_layout_gravity = 0;
// aapt resource value: 2
public const int LinearLayoutCompat_Layout_android_layout_height = 2;
// aapt resource value: 3
public const int LinearLayoutCompat_Layout_android_layout_weight = 3;
// aapt resource value: 1
public const int LinearLayoutCompat_Layout_android_layout_width = 1;
public static int[] ListPopupWindow = new int[] {
16843436,
16843437};
// aapt resource value: 0
public const int ListPopupWindow_android_dropDownHorizontalOffset = 0;
// aapt resource value: 1
public const int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static int[] MenuGroup = new int[] {
16842766,
16842960,
16843156,
16843230,
16843231,
16843232};
// aapt resource value: 5
public const int MenuGroup_android_checkableBehavior = 5;
// aapt resource value: 0
public const int MenuGroup_android_enabled = 0;
// aapt resource value: 1
public const int MenuGroup_android_id = 1;
// aapt resource value: 3
public const int MenuGroup_android_menuCategory = 3;
// aapt resource value: 4
public const int MenuGroup_android_orderInCategory = 4;
// aapt resource value: 2
public const int MenuGroup_android_visible = 2;
public static int[] MenuItem = new int[] {
16842754,
16842766,
16842960,
16843014,
16843156,
16843230,
16843231,
16843233,
16843234,
16843235,
16843236,
16843237,
16843375,
2130772157,
2130772158,
2130772159,
2130772160,
2130772161,
2130772162,
2130772163,
2130772164,
2130772165,
2130772166};
// aapt resource value: 16
public const int MenuItem_actionLayout = 16;
// aapt resource value: 18
public const int MenuItem_actionProviderClass = 18;
// aapt resource value: 17
public const int MenuItem_actionViewClass = 17;
// aapt resource value: 13
public const int MenuItem_alphabeticModifiers = 13;
// aapt resource value: 9
public const int MenuItem_android_alphabeticShortcut = 9;
// aapt resource value: 11
public const int MenuItem_android_checkable = 11;
// aapt resource value: 3
public const int MenuItem_android_checked = 3;
// aapt resource value: 1
public const int MenuItem_android_enabled = 1;
// aapt resource value: 0
public const int MenuItem_android_icon = 0;
// aapt resource value: 2
public const int MenuItem_android_id = 2;
// aapt resource value: 5
public const int MenuItem_android_menuCategory = 5;
// aapt resource value: 10
public const int MenuItem_android_numericShortcut = 10;
// aapt resource value: 12
public const int MenuItem_android_onClick = 12;
// aapt resource value: 6
public const int MenuItem_android_orderInCategory = 6;
// aapt resource value: 7
public const int MenuItem_android_title = 7;
// aapt resource value: 8
public const int MenuItem_android_titleCondensed = 8;
// aapt resource value: 4
public const int MenuItem_android_visible = 4;
// aapt resource value: 19
public const int MenuItem_contentDescription = 19;
// aapt resource value: 21
public const int MenuItem_iconTint = 21;
// aapt resource value: 22
public const int MenuItem_iconTintMode = 22;
// aapt resource value: 14
public const int MenuItem_numericModifiers = 14;
// aapt resource value: 15
public const int MenuItem_showAsAction = 15;
// aapt resource value: 20
public const int MenuItem_tooltipText = 20;
public static int[] MenuView = new int[] {
16842926,
16843052,
16843053,
16843054,
16843055,
16843056,
16843057,
2130772167,
2130772168};
// aapt resource value: 4
public const int MenuView_android_headerBackground = 4;
// aapt resource value: 2
public const int MenuView_android_horizontalDivider = 2;
// aapt resource value: 5
public const int MenuView_android_itemBackground = 5;
// aapt resource value: 6
public const int MenuView_android_itemIconDisabledAlpha = 6;
// aapt resource value: 1
public const int MenuView_android_itemTextAppearance = 1;
// aapt resource value: 3
public const int MenuView_android_verticalDivider = 3;
// aapt resource value: 0
public const int MenuView_android_windowAnimationStyle = 0;
// aapt resource value: 7
public const int MenuView_preserveIconSpacing = 7;
// aapt resource value: 8
public const int MenuView_subMenuArrow = 8;
public static int[] PopupWindow = new int[] {
16843126,
16843465,
2130772169};
// aapt resource value: 1
public const int PopupWindow_android_popupAnimationStyle = 1;
// aapt resource value: 0
public const int PopupWindow_android_popupBackground = 0;
// aapt resource value: 2
public const int PopupWindow_overlapAnchor = 2;
public static int[] PopupWindowBackgroundState = new int[] {
2130772170};
// aapt resource value: 0
public const int PopupWindowBackgroundState_state_above_anchor = 0;
public static int[] RecycleListView = new int[] {
2130772171,
2130772172};
// aapt resource value: 0
public const int RecycleListView_paddingBottomNoButtons = 0;
// aapt resource value: 1
public const int RecycleListView_paddingTopNoTitle = 1;
public static int[] SearchView = new int[] {
16842970,
16843039,
16843296,
16843364,
2130772173,
2130772174,
2130772175,
2130772176,
2130772177,
2130772178,
2130772179,
2130772180,
2130772181,
2130772182,
2130772183,
2130772184,
2130772185};
// aapt resource value: 0
public const int SearchView_android_focusable = 0;
// aapt resource value: 3
public const int SearchView_android_imeOptions = 3;
// aapt resource value: 2
public const int SearchView_android_inputType = 2;
// aapt resource value: 1
public const int SearchView_android_maxWidth = 1;
// aapt resource value: 8
public const int SearchView_closeIcon = 8;
// aapt resource value: 13
public const int SearchView_commitIcon = 13;
// aapt resource value: 7
public const int SearchView_defaultQueryHint = 7;
// aapt resource value: 9
public const int SearchView_goIcon = 9;
// aapt resource value: 5
public const int SearchView_iconifiedByDefault = 5;
// aapt resource value: 4
public const int SearchView_layout = 4;
// aapt resource value: 15
public const int SearchView_queryBackground = 15;
// aapt resource value: 6
public const int SearchView_queryHint = 6;
// aapt resource value: 11
public const int SearchView_searchHintIcon = 11;
// aapt resource value: 10
public const int SearchView_searchIcon = 10;
// aapt resource value: 16
public const int SearchView_submitBackground = 16;
// aapt resource value: 14
public const int SearchView_suggestionRowLayout = 14;
// aapt resource value: 12
public const int SearchView_voiceIcon = 12;
public static int[] Spinner = new int[] {
16842930,
16843126,
16843131,
16843362,
2130771997};
// aapt resource value: 3
public const int Spinner_android_dropDownWidth = 3;
// aapt resource value: 0
public const int Spinner_android_entries = 0;
// aapt resource value: 1
public const int Spinner_android_popupBackground = 1;
// aapt resource value: 2
public const int Spinner_android_prompt = 2;
// aapt resource value: 4
public const int Spinner_popupTheme = 4;
public static int[] StateListDrawable = new int[] {
16843036,
16843156,
16843157,
16843158,
16843532,
16843533};
// aapt resource value: 3
public const int StateListDrawable_android_constantSize = 3;
// aapt resource value: 0
public const int StateListDrawable_android_dither = 0;
// aapt resource value: 4
public const int StateListDrawable_android_enterFadeDuration = 4;
// aapt resource value: 5
public const int StateListDrawable_android_exitFadeDuration = 5;
// aapt resource value: 2
public const int StateListDrawable_android_variablePadding = 2;
// aapt resource value: 1
public const int StateListDrawable_android_visible = 1;
public static int[] StateListDrawableItem = new int[] {
16843161};
// aapt resource value: 0
public const int StateListDrawableItem_android_drawable = 0;
public static int[] SwitchCompat = new int[] {
16843044,
16843045,
16843074,
2130772186,
2130772187,
2130772188,
2130772189,
2130772190,
2130772191,
2130772192,
2130772193,
2130772194,
2130772195,
2130772196};
// aapt resource value: 1
public const int SwitchCompat_android_textOff = 1;
// aapt resource value: 0
public const int SwitchCompat_android_textOn = 0;
// aapt resource value: 2
public const int SwitchCompat_android_thumb = 2;
// aapt resource value: 13
public const int SwitchCompat_showText = 13;
// aapt resource value: 12
public const int SwitchCompat_splitTrack = 12;
// aapt resource value: 10
public const int SwitchCompat_switchMinWidth = 10;
// aapt resource value: 11
public const int SwitchCompat_switchPadding = 11;
// aapt resource value: 9
public const int SwitchCompat_switchTextAppearance = 9;
// aapt resource value: 8
public const int SwitchCompat_thumbTextPadding = 8;
// aapt resource value: 3
public const int SwitchCompat_thumbTint = 3;
// aapt resource value: 4
public const int SwitchCompat_thumbTintMode = 4;
// aapt resource value: 5
public const int SwitchCompat_track = 5;
// aapt resource value: 6
public const int SwitchCompat_trackTint = 6;
// aapt resource value: 7
public const int SwitchCompat_trackTintMode = 7;
public static int[] TextAppearance = new int[] {
16842901,
16842902,
16842903,
16842904,
16842906,
16842907,
16843105,
16843106,
16843107,
16843108,
16843692,
2130772014,
2130772020};
// aapt resource value: 10
public const int TextAppearance_android_fontFamily = 10;
// aapt resource value: 6
public const int TextAppearance_android_shadowColor = 6;
// aapt resource value: 7
public const int TextAppearance_android_shadowDx = 7;
// aapt resource value: 8
public const int TextAppearance_android_shadowDy = 8;
// aapt resource value: 9
public const int TextAppearance_android_shadowRadius = 9;
// aapt resource value: 3
public const int TextAppearance_android_textColor = 3;
// aapt resource value: 4
public const int TextAppearance_android_textColorHint = 4;
// aapt resource value: 5
public const int TextAppearance_android_textColorLink = 5;
// aapt resource value: 0
public const int TextAppearance_android_textSize = 0;
// aapt resource value: 2
public const int TextAppearance_android_textStyle = 2;
// aapt resource value: 1
public const int TextAppearance_android_typeface = 1;
// aapt resource value: 12
public const int TextAppearance_fontFamily = 12;
// aapt resource value: 11
public const int TextAppearance_textAllCaps = 11;
public static int[] Toolbar = new int[] {
16842927,
16843072,
2130771971,
2130771974,
2130771978,
2130771990,
2130771991,
2130771992,
2130771993,
2130771994,
2130771995,
2130771997,
2130772197,
2130772198,
2130772199,
2130772200,
2130772201,
2130772202,
2130772203,
2130772204,
2130772205,
2130772206,
2130772207,
2130772208,
2130772209,
2130772210,
2130772211,
2130772212,
2130772213};
// aapt resource value: 0
public const int Toolbar_android_gravity = 0;
// aapt resource value: 1
public const int Toolbar_android_minHeight = 1;
// aapt resource value: 21
public const int Toolbar_buttonGravity = 21;
// aapt resource value: 23
public const int Toolbar_collapseContentDescription = 23;
// aapt resource value: 22
public const int Toolbar_collapseIcon = 22;
// aapt resource value: 6
public const int Toolbar_contentInsetEnd = 6;
// aapt resource value: 10
public const int Toolbar_contentInsetEndWithActions = 10;
// aapt resource value: 7
public const int Toolbar_contentInsetLeft = 7;
// aapt resource value: 8
public const int Toolbar_contentInsetRight = 8;
// aapt resource value: 5
public const int Toolbar_contentInsetStart = 5;
// aapt resource value: 9
public const int Toolbar_contentInsetStartWithNavigation = 9;
// aapt resource value: 4
public const int Toolbar_logo = 4;
// aapt resource value: 26
public const int Toolbar_logoDescription = 26;
// aapt resource value: 20
public const int Toolbar_maxButtonHeight = 20;
// aapt resource value: 25
public const int Toolbar_navigationContentDescription = 25;
// aapt resource value: 24
public const int Toolbar_navigationIcon = 24;
// aapt resource value: 11
public const int Toolbar_popupTheme = 11;
// aapt resource value: 3
public const int Toolbar_subtitle = 3;
// aapt resource value: 13
public const int Toolbar_subtitleTextAppearance = 13;
// aapt resource value: 28
public const int Toolbar_subtitleTextColor = 28;
// aapt resource value: 2
public const int Toolbar_title = 2;
// aapt resource value: 14
public const int Toolbar_titleMargin = 14;
// aapt resource value: 18
public const int Toolbar_titleMarginBottom = 18;
// aapt resource value: 16
public const int Toolbar_titleMarginEnd = 16;
// aapt resource value: 15
public const int Toolbar_titleMarginStart = 15;
// aapt resource value: 17
public const int Toolbar_titleMarginTop = 17;
// aapt resource value: 19
public const int Toolbar_titleMargins = 19;
// aapt resource value: 12
public const int Toolbar_titleTextAppearance = 12;
// aapt resource value: 27
public const int Toolbar_titleTextColor = 27;
public static int[] View = new int[] {
16842752,
16842970,
2130772214,
2130772215,
2130772216};
// aapt resource value: 1
public const int View_android_focusable = 1;
// aapt resource value: 0
public const int View_android_theme = 0;
// aapt resource value: 3
public const int View_paddingEnd = 3;
// aapt resource value: 2
public const int View_paddingStart = 2;
// aapt resource value: 4
public const int View_theme = 4;
public static int[] ViewBackgroundHelper = new int[] {
16842964,
2130772217,
2130772218};
// aapt resource value: 0
public const int ViewBackgroundHelper_android_background = 0;
// aapt resource value: 1
public const int ViewBackgroundHelper_backgroundTint = 1;
// aapt resource value: 2
public const int ViewBackgroundHelper_backgroundTintMode = 2;
public static int[] ViewStubCompat = new int[] {
16842960,
16842994,
16842995};
// aapt resource value: 0
public const int ViewStubCompat_android_id = 0;
// aapt resource value: 2
public const int ViewStubCompat_android_inflatedId = 2;
// aapt resource value: 1
public const int ViewStubCompat_android_layout = 1;
static Styleable()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Styleable()
{
}
}
}
}
#pragma warning restore 1591
| 31.875977 | 152 | 0.732124 | [
"Apache-2.0"
] | PravinPK/xamarin-acpgriffon | src/AEPAssuranceAndroidUnitTests/Resources/Resource.designer.cs | 175,286 | C# |
#region Copyright notice and license
// Copyright 2019 The gRPC Authors
//
// 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.
#endregion
using System.Text;
namespace Grpc.Shared
{
internal static class CommonGrpcProtocolHelpers
{
public static readonly Task<bool> TrueTask = Task.FromResult(true);
public static readonly Task<bool> FalseTask = Task.FromResult(false);
// Timer and DateTime.UtcNow have a 14ms precision. Add a small delay when scheduling deadline
// timer that tests if exceeded or not. This avoids rescheduling the deadline callback multiple
// times when timer is triggered before DateTime.UtcNow reports the deadline has been exceeded.
// e.g.
// - The deadline callback is raised and there is 0.5ms until deadline.
// - The timer is rescheduled to run in 0.5ms.
// - The deadline callback is raised again and there is now 0.4ms until deadline.
// - The timer is rescheduled to run in 0.4ms, etc.
private static readonly int TimerEpsilonMilliseconds = 14;
public static long GetTimerDueTime(TimeSpan timeout, long maxTimerDueTime)
{
// Timer has a maximum allowed due time.
// The called method will rechedule the timer if the deadline time has not passed.
var dueTimeMilliseconds = timeout.Ticks / TimeSpan.TicksPerMillisecond;
// Add epislon to take into account Timer precision.
// This will avoid rescheduling the timer multiple times, but means deadline
// might run slightly longer than requested.
dueTimeMilliseconds += TimerEpsilonMilliseconds;
dueTimeMilliseconds = Math.Min(dueTimeMilliseconds, maxTimerDueTime);
// Timer can't have a negative due time
dueTimeMilliseconds = Math.Max(dueTimeMilliseconds, 0);
return dueTimeMilliseconds;
}
public static bool IsContentType(string contentType, string? s)
{
if (s == null)
{
return false;
}
if (!s.StartsWith(contentType, StringComparison.OrdinalIgnoreCase))
{
return false;
}
if (s.Length == contentType.Length)
{
// Exact match
return true;
}
// Support variations on the content-type (e.g. +proto, +json)
var nextChar = s[contentType.Length];
if (nextChar == ';')
{
return true;
}
if (nextChar == '+')
{
// Accept any message format. Marshaller could be set to support third-party formats
return true;
}
return false;
}
public static string ConvertToRpcExceptionMessage(Exception ex)
{
// RpcException doesn't allow for an inner exception. To ensure the user is getting enough information about the
// error we will concatenate any inner exception messages together.
return ex.InnerException == null ? $"{ex.GetType().Name}: {ex.Message}" : BuildErrorMessage(ex);
}
private static string BuildErrorMessage(Exception ex)
{
// Concatenate inner exceptions messages together.
var sb = new StringBuilder();
var first = true;
Exception? current = ex;
do
{
if (!first)
{
sb.Append(' ');
}
else
{
first = false;
}
sb.Append(current.GetType().Name);
sb.Append(": ");
sb.Append(current.Message);
}
while ((current = current.InnerException) != null);
return sb.ToString();
}
}
}
| 36.508197 | 124 | 0.589807 | [
"Apache-2.0"
] | BearerPipelineTest/grpc-dotnet | src/Shared/CommonGrpcProtocolHelpers.cs | 4,456 | C# |
namespace AppJsonEvaluator
{
using Newtonsoft.Json.Linq;
using System;
interface ITokenContainer
{
Boolean IsChanged { get; set; }
void Replace(JToken original, JToken replacement);
}
}
| 17.307692 | 58 | 0.653333 | [
"BSD-3-Clause"
] | Black-Beard-Sdk/TransformJsonToJson | Src/AppJsonEvaluator/ITokenContainer.cs | 227 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace Hyperspace.Pages
{
public class DevicesModel : PageModel
{
private readonly ILogger<DevicesModel> _logger;
public DevicesModel(ILogger<DevicesModel> logger)
{
_logger = logger;
}
public void OnGet()
{
}
}
}
| 17.269231 | 51 | 0.76392 | [
"Apache-2.0"
] | kurthildebrand/hyperspace | border-router/Pages/Devices.cshtml.cs | 449 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
namespace Grammophone.Domos.Environment.Owin
{
/// <summary>
/// ASP.NET Identity implementation for <see cref="IUserContext"/>.
/// </summary>
public class OwinUserContext : IUserContext
{
#region Construction
/// <summary>
/// CReate.
/// </summary>
public OwinUserContext()
{
var currentContext = System.Web.HttpContext.Current;
var identity = currentContext.User.Identity;
if (identity.IsAuthenticated)
{
this.UserID = identity.GetUserId<long>();
}
}
#endregion
#region IUserContext Members
/// <summary>
/// The ID of the current user or null if anonymous.
/// </summary>
public long? UserID
{
get;
private set;
}
#endregion
}
}
| 17.8125 | 68 | 0.684211 | [
"MIT"
] | grammophone/Grammophone.Domos.Environment.Owin | OwinUserContext.cs | 857 | C# |
// AdultVerificationAddress
public class AdultVerificationAddress
{
public string addressLine1
{
get;
set;
}
public string postalCode
{
get;
set;
}
}
| 10.3125 | 37 | 0.709091 | [
"MIT"
] | smdx24/CPI-Source-Code | Disney.Mix.SDK.Internal.GuestControllerDomain/AdultVerificationAddress.cs | 165 | C# |
using UAlbion.Formats.AssetIds;
using UAlbion.Game.Gui.Text;
namespace UAlbion.Game.Gui.Controls
{
class Label : UiElement
{
public Label(StringId stringId) => AttachChild(new UiTextBuilder(stringId).Center());
}
}
| 21.545455 | 93 | 0.708861 | [
"MIT"
] | BenjaminRi/ualbion | src/Game/Gui/Controls/Label.cs | 239 | C# |
namespace KorvetDiskImage.Exceptions
{
public class VirtualBlockDeviceException : Exception
{
public VirtualBlockDeviceException(string message) : base(message) { }
}
}
| 16.166667 | 78 | 0.71134 | [
"MIT"
] | reclaimed/KdiExplorer | src/KdiExplorer/KorvetDiskImage/Exceptions/VirtualBlockDeviceException.cs | 196 | C# |
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
public class Ambito{
public int AmbitoId{get; set;}
public string Descrizione{get; set;} //materia
}
| 25.714286 | 50 | 0.766667 | [
"MIT"
] | Kapoerista/carichini.alessandro.5i.Corsi | ambito.cs | 180 | C# |
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
namespace TheaterWeb.Models
{
public partial class OceanDbContext : DbContext
{
public bool CanConnect { get; private set; }
public OceanDbContext()
{
//
}
public OceanDbContext(DbContextOptions<OceanDbContext> options)
: base(options)
{
CanConnect = Database.CanConnect();
}
public virtual DbSet<MovieInfo> Movies { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<MovieInfo>(entity =>
{
entity.Property(e => e.Id).HasColumnName("id");
entity.Property(e => e.Desc).HasColumnName("desc");
entity.Property(e => e.Genre)
.HasColumnName("genre")
.HasMaxLength(64);
entity.Property(e => e.Time)
.HasColumnName("time")
.HasColumnType("date");
entity.Property(e => e.Title)
.HasColumnName("title")
.HasMaxLength(128);
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}
}
| 27.980392 | 75 | 0.528381 | [
"MIT"
] | fengyhack/DiggAspNetCore | TheaterWeb/TheaterWeb/Models/OceanDbContext.cs | 1,429 | C# |
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("TuImportas.eShop.BL.BE")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TuImportas.eShop.BL.BE")]
[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("d7ab6a2e-9673-4e53-82b1-19f6e3f53b18")]
// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 38.297297 | 84 | 0.744531 | [
"Apache-2.0"
] | MineiToshio/Noobout | src/TuImportas.eShop.BL.BE/Properties/AssemblyInfo.cs | 1,420 | C# |
using System;
using System.Linq;
using UnityEngine;
using RoR2;
namespace UmbraRoR
{
public class PlayerMod : MonoBehaviour
{
public static int damagePerLvl = 10;
public static int CritPerLvl = 1;
public static float attackSpeed = 1;
public static float armor = 0;
public static float movespeed = 7;
public static int jumpCount = 1;
public static ulong xpToGive = 50;
public static uint moneyToGive = 50;
public static uint coinsToGive = 50;
public static int multiplyer = 10;
public static void GiveBuff(GUIStyle buttonStyle,string buttonId)
{
int buttonPlacement = 1;
foreach (string buffName in Enum.GetNames(typeof(BuffIndex)))
{
DrawMenu.DrawButton(buttonPlacement, buttonId, buffName, buttonStyle);
buttonPlacement++;
}
}
public static void RemoveAllBuffs()
{
foreach (string buffName in Enum.GetNames(typeof(BuffIndex)))
{
BuffIndex buffIndex = (BuffIndex)Enum.Parse(typeof(BuffIndex), buffName);
while (Main.LocalPlayerBody.HasBuff(buffIndex))
{
Main.LocalPlayerBody.RemoveBuff(buffIndex);
}
}
}
// self explanatory
public static void GiveXP()
{
Main.LocalPlayer.GiveExperience(xpToGive);
}
public static void GiveMoney()
{
Main.LocalPlayer.GiveMoney(moneyToGive);
}
//uh, duh.
public static void GiveLunarCoins()
{
Main.LocalNetworkUser.AwardLunarCoins(coinsToGive);
}
public static void LevelPlayersCrit()
{
try
{
Main.LocalPlayerBody.levelCrit = (float)CritPerLvl;
}
catch (NullReferenceException)
{
}
}
public static void LevelPlayersDamage()
{
try
{
Main.LocalPlayerBody.levelDamage = (float)damagePerLvl;
}
catch (NullReferenceException)
{
}
}
public static void SetplayersAttackSpeed()
{
try
{
Main.LocalPlayerBody.baseAttackSpeed = attackSpeed;
}
catch (NullReferenceException)
{
}
}
public static void SetplayersArmor()
{
try
{
Main.LocalPlayerBody.baseArmor = armor;
}
catch (NullReferenceException)
{
}
}
public static void SetplayersMoveSpeed()
{
try
{
Main.LocalPlayerBody.baseMoveSpeed = movespeed;
}
catch (NullReferenceException)
{
}
}
public static void AimBot()
{
if (Utility.CursorIsVisible())
{
return;
}
var localUser = LocalUserManager.GetFirstLocalUser();
var controller = localUser.cachedMasterController;
if (!controller)
{
return;
}
var body = controller.master.GetBody();
if (!body)
{
return;
}
var inputBank = body.GetComponent<InputBankTest>();
var aimRay = new Ray(inputBank.aimOrigin, inputBank.aimDirection);
var bullseyeSearch = new BullseyeSearch();
var team = body.GetComponent<TeamComponent>();
bullseyeSearch.teamMaskFilter = TeamMask.all;
bullseyeSearch.teamMaskFilter.RemoveTeam(team.teamIndex);
bullseyeSearch.filterByLoS = true;
bullseyeSearch.searchOrigin = aimRay.origin;
bullseyeSearch.searchDirection = aimRay.direction;
bullseyeSearch.sortMode = BullseyeSearch.SortMode.Distance;
bullseyeSearch.maxDistanceFilter = float.MaxValue;
bullseyeSearch.maxAngleFilter = 20f;// ;// float.MaxValue;
bullseyeSearch.RefreshCandidates();
var hurtBox = bullseyeSearch.GetResults().FirstOrDefault();
if (hurtBox)
{
Vector3 direction = hurtBox.transform.position - aimRay.origin;
inputBank.aimDirection = direction;
}
}
//Respawn... Not sure how to implement it.
public static void AttemptRespawn()
{
if (!Main.LocalHealth.alive)
{
Main.LocalPlayer.RespawnExtraLife();
Debug.Log($"{Main.log}: Respawned");
}
}
public static void GodMode()
{
Main.LocalHealth.godMode = true;
}
public static SurvivorIndex GetCurrentCharacter()
{
var bodyIndex = BodyCatalog.FindBodyIndex(Main.LocalPlayerBody);
var survivorIndex = SurvivorCatalog.GetSurvivorIndexFromBodyIndex(bodyIndex);
return survivorIndex;
}
public static void ChangeCharacter(GUIStyle buttonStyle, string buttonId)
{
int buttonPlacement = 1;
foreach (var prefab in Main.bodyPrefabs)
{
DrawMenu.DrawButton(buttonPlacement, buttonId, prefab.name.Replace("Body", ""), buttonStyle);
buttonPlacement++;
}
}
public static void UnlockAll()
{
//Goes through resource file containing all unlockables... Easily updatable, just paste "RoR2.UnlockCatalog" and GetAllUnlockable does the rest.
//This is needed to unlock logs
foreach (var unlockableName in Main.unlockableNames)
{
var unlockableDef = UnlockableCatalog.GetUnlockableDef(unlockableName);
NetworkUser networkUser = Util.LookUpBodyNetworkUser(Main.LocalPlayerBody);
if (networkUser)
{
networkUser.ServerHandleUnlock(unlockableDef);
}
}
//Gives all achievements.
var achievementManager = AchievementManager.GetUserAchievementManager(LocalUserManager.GetFirstLocalUser());
foreach (var achievement in AchievementManager.allAchievementDefs)
{
achievementManager.GrantAchievement(achievement);
}
//Give all survivors
var profile = LocalUserManager.GetFirstLocalUser().userProfile;
foreach (var survivor in SurvivorCatalog.allSurvivorDefs)
{
if (profile.statSheet.GetStatValueDouble(RoR2.Stats.PerBodyStatDef.totalTimeAlive, survivor.bodyPrefab.name) == 0.0)
profile.statSheet.SetStatValueFromString(RoR2.Stats.PerBodyStatDef.totalTimeAlive.FindStatDef(survivor.bodyPrefab.name), "0.1");
}
//All items and equipments
foreach (string itemName in Enum.GetNames(typeof(ItemIndex)))
{
ItemIndex itemIndex = (ItemIndex)Enum.Parse(typeof(ItemIndex), itemName);
profile.DiscoverPickup(PickupCatalog.FindPickupIndex(itemIndex));
}
foreach (string equipmentName in Enum.GetNames(typeof(EquipmentIndex)))
{
EquipmentIndex equipmentIndex = (EquipmentIndex)Enum.Parse(typeof(EquipmentIndex), equipmentName);
profile.DiscoverPickup(PickupCatalog.FindPickupIndex(equipmentIndex));
}
}
}
}
| 33.258621 | 156 | 0.560653 | [
"MIT"
] | ElijahDD/Umbra-Menu-Source | Player.cs | 7,716 | C# |
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("SentimentAnalysis.Integration.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SentimentAnalysis.Integration.Tests")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("02312c0d-4de5-4a32-a6e6-eeae1f679a72")]
// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 39 | 84 | 0.75052 | [
"Unlicense"
] | bfdill/SentimentAnalysis | SentimentAnalysis.Integration.Tests/Properties/AssemblyInfo.cs | 1,446 | C# |
using Elastic.Xunit.XunitPlumbing;
using Nest;
namespace Examples.Aggregations.Metrics
{
public class PercentileRankAggregationPage : ExampleBase
{
[U(Skip = "Example not implemented")]
public void Line26()
{
// tag::daaa9e0df859d764ca0a4a4ebcfbdb26[]
var response0 = new SearchResponse<object>();
// end::daaa9e0df859d764ca0a4a4ebcfbdb26[]
response0.MatchesExample(@"GET latency/_search
{
""size"": 0,
""aggs"" : {
""load_time_ranks"" : {
""percentile_ranks"" : {
""field"" : ""load_time"", \<1>
""values"" : [500, 600]
}
}
}
}");
}
[U(Skip = "Example not implemented")]
public void Line71()
{
// tag::156dd311073c8c825e608becf63ae7fe[]
var response0 = new SearchResponse<object>();
// end::156dd311073c8c825e608becf63ae7fe[]
response0.MatchesExample(@"GET latency/_search
{
""size"": 0,
""aggs"": {
""load_time_ranks"": {
""percentile_ranks"": {
""field"": ""load_time"",
""values"": [500, 600],
""keyed"": false
}
}
}
}");
}
[U(Skip = "Example not implemented")]
public void Line122()
{
// tag::c9ea558335446fc64006724cb72684e1[]
var response0 = new SearchResponse<object>();
// end::c9ea558335446fc64006724cb72684e1[]
response0.MatchesExample(@"GET latency/_search
{
""size"": 0,
""aggs"" : {
""load_time_ranks"" : {
""percentile_ranks"" : {
""values"" : [500, 600],
""script"" : {
""lang"": ""painless"",
""source"": ""doc['load_time'].value / params.timeUnit"", \<1>
""params"" : {
""timeUnit"" : 1000 \<2>
}
}
}
}
}
}");
}
[U(Skip = "Example not implemented")]
public void Line151()
{
// tag::59bcc5d1ed0aac1aa949f84d80a4fa1d[]
var response0 = new SearchResponse<object>();
// end::59bcc5d1ed0aac1aa949f84d80a4fa1d[]
response0.MatchesExample(@"GET latency/_search
{
""size"": 0,
""aggs"" : {
""load_time_ranks"" : {
""percentile_ranks"" : {
""values"" : [500, 600],
""script"" : {
""id"": ""my_script"",
""params"": {
""field"": ""load_time""
}
}
}
}
}
}");
}
[U(Skip = "Example not implemented")]
public void Line187()
{
// tag::214d704d18485ab75ef53aa9c0524590[]
var response0 = new SearchResponse<object>();
// end::214d704d18485ab75ef53aa9c0524590[]
response0.MatchesExample(@"GET latency/_search
{
""size"": 0,
""aggs"" : {
""load_time_ranks"" : {
""percentile_ranks"" : {
""field"" : ""load_time"",
""values"" : [500, 600],
""hdr"": { \<1>
""number_of_significant_value_digits"" : 3 \<2>
}
}
}
}
}");
}
[U(Skip = "Example not implemented")]
public void Line219()
{
// tag::77f575b0cc37dd7a2415cbf6417d3148[]
var response0 = new SearchResponse<object>();
// end::77f575b0cc37dd7a2415cbf6417d3148[]
response0.MatchesExample(@"GET latency/_search
{
""size"": 0,
""aggs"" : {
""load_time_ranks"" : {
""percentile_ranks"" : {
""field"" : ""load_time"",
""values"" : [500, 600],
""missing"": 10 \<1>
}
}
}
}");
}
}
} | 26.08 | 85 | 0.458333 | [
"Apache-2.0"
] | FrankyBoy/elasticsearch-net | src/Examples/Examples/Aggregations/Metrics/PercentileRankAggregationPage.cs | 3,912 | C# |
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
using System.Threading;
using Amazon.Glacier.Model;
using Amazon.Glacier.Transfer.Internal;
using Amazon.Util;
using Amazon.SimpleNotificationService;
using Amazon.SimpleNotificationService.Model;
using Amazon.SQS;
using Amazon.SQS.Model;
using ThirdParty.Json.LitJson;
using Amazon.SQS.Util;
using System.Globalization;
namespace Amazon.Glacier.Transfer.Internal
{
internal class DownloadFileCommand
{
internal const int MAX_OPERATION_RETRY = 5;
const string SQS_POLICY =
"{" +
" \"Version\" : \"2008-10-17\"," +
" \"Statement\" : [" +
" {" +
" \"Sid\" : \"sns-rule\"," +
" \"Effect\" : \"Allow\"," +
" \"Principal\" : {" +
" \"AWS\" : \"*\"" +
" }," +
" \"Action\" : \"sqs:SendMessage\"," +
" \"Resource\" : \"{QuereArn}\"," +
" \"Condition\" : {" +
" \"ArnLike\" : {" +
" \"aws:SourceArn\" : \"{TopicArn}\"" +
" }" +
" }" +
" }" +
" ]" +
"}";
ArchiveTransferManager manager;
string vaultName;
string archiveId;
string filePath;
DownloadOptions options;
IAmazonSimpleNotificationService snsClient;
IAmazonSQS sqsClient;
string topicArn;
string queueUrl;
string queueArn;
internal DownloadFileCommand(ArchiveTransferManager manager, string vaultName, string archiveId, string filePath, DownloadOptions options)
{
this.manager = manager;
this.vaultName = vaultName;
this.archiveId = archiveId;
this.filePath = filePath;
this.options = options;
var credentials = ((AmazonGlacierClient)this.manager.GlacierClient).GetCredentials();
var glacierClient = this.manager.GlacierClient as AmazonGlacierClient;
if (glacierClient == null)
throw new InvalidOperationException("This can only be called using an AmazonGlacierClient");
this.snsClient = new AmazonSimpleNotificationServiceClient(credentials, glacierClient.CloneConfig<AmazonSimpleNotificationServiceConfig>());
this.sqsClient = new AmazonSQSClient(credentials, glacierClient.CloneConfig<AmazonSQSConfig>());
if (this.options == null)
this.options = new DownloadOptions();
}
internal void Execute()
{
this.setupTopicAndQueue();
try
{
var jobId = initiateJob();
processQueue(jobId);
}
finally
{
this.tearDownTopicAndQueue();
}
}
void processQueue(string jobId)
{
Message message = readNextMessage();
processMessage(message, jobId);
this.sqsClient.DeleteMessage(new DeleteMessageRequest() { QueueUrl = this.queueUrl, ReceiptHandle = message.ReceiptHandle });
}
/// <summary>
/// Poll messages from the queue. Given the download process takes many hours there is extra
/// long retry logic.
/// </summary>
/// <returns>The next message in the queue;</returns>
Message readNextMessage()
{
int retryAttempts = 0;
var receiveRequest = new ReceiveMessageRequest() { QueueUrl = this.queueUrl, MaxNumberOfMessages = 1 };
while (true)
{
try
{
var receiveResponse = this.sqsClient.ReceiveMessage(receiveRequest);
retryAttempts = 0;
if (receiveResponse.Messages.Count == 0)
{
Thread.Sleep((int)(this.options.PollingInterval * 1000 * 60));
continue;
}
return receiveResponse.Messages[0];
}
catch (Exception)
{
retryAttempts++;
if (retryAttempts <= MAX_OPERATION_RETRY)
Thread.Sleep(60 * 1000);
else
throw;
}
}
}
void processMessage(Message message, string jobId)
{
var messageJobId = getJobIdFromMessage(message);
if (messageJobId == null)
return;
var command = new DownloadJobCommand(this.manager, this.vaultName, jobId, this.filePath, this.options);
command.Execute();
}
/// <summary>
/// Parse the sqs message to make sure it contains the right job id and that the job was successful
/// </summary>
/// <param name="message"></param>
string getJobIdFromMessage(Message message)
{
string json;
// Some older AWS accounts send messages base 64 encoded. Do a check to
// see if this is the start of a json document. If not then base 64 decode the message.
if (message.Body.Trim().StartsWith("{", StringComparison.OrdinalIgnoreCase))
json = message.Body;
else
json = System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(message.Body));
Dictionary<string, string> outerLayer = JsonMapper.ToObject<Dictionary<string, string>>(json);
Dictionary<string, object> fields = JsonMapper.ToObject<Dictionary<string, object>>(outerLayer["Message"]);
string jobId = fields["JobId"] as string;
string statusCode = fields["StatusCode"] as string;
if (!string.Equals(statusCode, GlacierUtils.JOB_STATUS_SUCCEEDED, StringComparison.OrdinalIgnoreCase))
{
object statusMessage = "";
fields.TryGetValue("StatusMessage", out statusMessage);
throw new AmazonGlacierException(
string.Format(CultureInfo.InvariantCulture, "Failed to download {0}: {1}",
this.filePath, Convert.ToString(statusMessage, CultureInfo.InvariantCulture)));
}
return jobId;
}
string initiateJob()
{
var request = new InitiateJobRequest()
{
AccountId = this.options.AccountId,
VaultName = this.vaultName,
JobParameters = new JobParameters()
{
ArchiveId = this.archiveId,
SNSTopic = topicArn,
Type = "archive-retrieval"
}
};
request.BeforeRequestEvent += new UserAgentPostFix("DownloadArchive").UserAgentRequestEventHandlerSync;
var response = this.manager.GlacierClient.InitiateJob(request);
return response.JobId;
}
internal void setupTopicAndQueue()
{
long ticks = DateTime.Now.Ticks;
this.topicArn = this.snsClient.CreateTopic(new CreateTopicRequest() { Name = "GlacierDownload-" + ticks }).TopicArn;
this.queueUrl = this.sqsClient.CreateQueue(new CreateQueueRequest() { QueueName = "GlacierDownload-" + ticks }).QueueUrl;
this.queueArn = this.sqsClient.GetQueueAttributes(new GetQueueAttributesRequest() { QueueUrl = this.queueUrl, AttributeNames = new List<string> { SQSConstants.ATTRIBUTE_QUEUE_ARN } }).Attributes[SQSConstants.ATTRIBUTE_QUEUE_ARN];
this.snsClient.Subscribe(new SubscribeRequest()
{
Endpoint = this.queueArn,
Protocol = "sqs",
TopicArn = this.topicArn
});
var policy = SQS_POLICY.Replace("{QuereArn}", this.queueArn).Replace("{TopicArn}", this.topicArn);
var setQueueAttributesRequest = new SetQueueAttributesRequest()
{
QueueUrl = this.queueUrl
};
setQueueAttributesRequest.Attributes.Add("Policy", policy);
this.sqsClient.SetQueueAttributes(setQueueAttributesRequest);
}
internal void tearDownTopicAndQueue()
{
this.snsClient.DeleteTopic(new DeleteTopicRequest() { TopicArn = this.topicArn });
this.sqsClient.DeleteQueue(new DeleteQueueRequest() { QueueUrl = this.queueUrl });
}
}
}
| 37.804878 | 241 | 0.564516 | [
"Apache-2.0"
] | zz0733/aws-sdk-net | AWSSDK_DotNet35/Amazon.Glacier/Transfer/Internal/DownloadFileCommand.cs | 9,302 | C# |
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using FhirStarter.STU3.Detonator.DotNetCore3.MediaTypeHeaders;
using FhirStarter.STU3.Instigator.DotNet.Validation.Exceptions;
using Hl7.Fhir.Model;
using Hl7.Fhir.Serialization;
using Microsoft.AspNetCore.Http;
namespace FhirStarter.STU3.Instigator.DotNet.Controllers
{
public partial class FhirController
{
private HttpResponseMessage SendResponse(Base resource)
{
var returnJson = ReturnJson(Request.Headers);
if (_validationEnabled && !(resource is OperationOutcome))
{
resource = ValidateResource((Resource) resource, false);
}
StringContent httpContent;
if (!returnJson)
{
var xmlSerializer = new FhirXmlSerializer();
httpContent =
GetHttpContent(xmlSerializer.SerializeToString(resource), FhirMediaTypeHeaderValues.ApplicationXmlFhir.ToString());
}
else
{
var jsonSerializer = new FhirJsonSerializer();
httpContent =
GetHttpContent(jsonSerializer.SerializeToString(resource), FhirMediaTypeHeaderValues.ApplicationJsonFhir.ToString());
}
var response = new HttpResponseMessage(HttpStatusCode.OK) {Content = httpContent};
if (resource is OperationOutcome)
{
response.StatusCode = HttpStatusCode.BadRequest;
}
return response;
}
/// <summary>
/// https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iheaderdictionary.item?view=aspnetcore-2.2
/// https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.headerdictionaryextensions.getcommaseparatedvalues?view=aspnetcore-2.2
/// </summary>
/// <param name="headerDictionary"></param>
/// <returns></returns>
private static bool ReturnJson(IHeaderDictionary headerDictionary)
{
var acceptHeaders =
headerDictionary.GetCommaSeparatedValues("Accept");
return acceptHeaders.Contains("application/json");
}
private static StringContent GetHttpContent(string serializedValue, string resourceType)
{
return new StringContent(serializedValue, Encoding.UTF8,
resourceType);
}
private Base ValidateResource(Resource resource, bool isInput)
{
if (_profileValidator == null) return resource;
if (resource is OperationOutcome) return resource;
{
var resourceName = resource.TypeName;
var structureDefinition = Load(true, resourceName);
if (structureDefinition != null)
{
var found = resource.Meta != null && resource.Meta.ProfileElement.Count == 1 &&
resource.Meta.ProfileElement[0].Value.Equals(structureDefinition.Url);
if (!found)
{
var message = $"Profile for {resourceName} must be set to: {structureDefinition.Url}";
if (isInput)
{
throw new ValidateInputException(message);
}
throw new ValidateOutputException(message);
}
}
}
var validationResult = _profileValidator.Validate(resource, true, false);
if (validationResult.Issue.Count > 0)
{
resource = validationResult;
}
return resource;
}
}
}
| 34.454545 | 153 | 0.582586 | [
"MIT"
] | verzada/FhirStarter.DotNet | src/STU3/NugetLibraries/FhirStarter.STU3.Instigator.DotNet/Controllers/FhirControllerCommon.cs | 3,792 | C# |
// -------------------------------------------------------------------------
// Copyright © 2021 Province of British Columbia
//
// 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
//
// https://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.
// -------------------------------------------------------------------------
using System;
using AutoMapper;
using EMBC.ESS.Utilities.Dynamics;
using EMBC.ESS.Utilities.Dynamics.Microsoft.Dynamics.CRM;
namespace EMBC.ESS.Resources.Team
{
public class Mappings : Profile
{
public Mappings()
{
CreateMap<era_essteam, Team>()
.ForMember(d => d.AssignedCommunities, opts => opts.Ignore())
.ForMember(d => d.Id, opts => opts.MapFrom(s => s.era_essteamid.ToString()))
.ForMember(d => d.Name, opts => opts.MapFrom(s => s.era_name))
;
CreateMap<era_essteamuser, TeamMember>()
.ForMember(d => d.Id, opts => opts.MapFrom(s => s.era_essteamuserid.ToString()))
.ForMember(d => d.TeamId, opts => opts.MapFrom(s => s.era_ESSTeamId.era_essteamid.Value.ToString()))
.ForMember(d => d.TeamName, opts => opts.MapFrom(s => s.era_ESSTeamId.era_name))
.ForMember(d => d.FirstName, opts => opts.MapFrom(s => s.era_firstname))
.ForMember(d => d.LastName, opts => opts.MapFrom(s => s.era_lastname))
.ForMember(d => d.UserName, opts => opts.MapFrom(s => s.era_externalsystemusername))
.ForMember(d => d.ExternalUserId, opts => opts.MapFrom(s => s.era_externalsystemuser))
.ForMember(d => d.Email, opts => opts.MapFrom(s => s.era_email))
.ForMember(d => d.Phone, opts => opts.MapFrom(s => s.era_phone))
.ForMember(d => d.Role, opts => opts.MapFrom(s => Enum.GetName(typeof(TeamUserRoleOptionSet), s.era_role)))
.ForMember(d => d.Label, opts => opts.MapFrom(s => Enum.GetName(typeof(TeamUserLabelOptionSet), s.era_label)))
.ForMember(d => d.LastSuccessfulLogin, opts => opts.MapFrom(s => s.era_lastsuccessfullogin.HasValue ? s.era_lastsuccessfullogin.Value.DateTime : (DateTime?)null))
.ForMember(d => d.AgreementSignDate, opts => opts.MapFrom(s => s.era_electronicaccessagreementaccepteddate))
.ForMember(d => d.IsActive, opts => opts.MapFrom(s => s.statuscode == (int)EntityStatus.Active))
;
}
}
public enum TeamUserRoleOptionSet
{
Tier1 = 174360000,
Tier2 = 174360001,
Tier3 = 174360002,
Tier4 = 174360003,
}
public enum TeamUserLabelOptionSet
{
EMBCEmployee = 174360000,
Volunteer = 174360001,
ThirdParty = 174360002,
ConvergentVolunteer = 174360003,
}
public enum ExternalSystemOptionSet
{
Bceid = 174360000
}
}
| 45.405405 | 178 | 0.596726 | [
"Apache-2.0"
] | Christopher-Tihor/embc-ess-mod | ess/src/API/EMBC.ESS/Resources/Team/Mappings.cs | 3,363 | C# |
using UnityEngine;
using System.Collections.Generic;
namespace VRSketch
{
public static class CycleDetection
{
public static bool DetectCycle(Graph g, ISegment startSegment, INode startNode, out LinkedList<HalfSegment> cycle, bool reversed = false)
{
//Cycle cycle = new Cycle(userCreated: false);
cycle = new LinkedList<HalfSegment>();
INode currentNode = startNode;
ISegment currentSegment = startSegment;
INode nextNode = null;
ISegment nextSegment = null;
// this node is the target to reach to close the cycle
INode oppositeNode = startSegment.GetOpposite(startNode);
// Particular case of a simple closed loop
if (oppositeNode.Equals(startNode))
{
cycle.AddLast(new HalfSegment(currentSegment, false));
return true;
}
if (currentNode.IncidentCount < 2 || oppositeNode.IncidentCount < 2)
return false;
Vector3 currentNormal = Vector3.zero;
#if UNITY_EDITOR
Debug.Log($"[CYCLE DETECTION] start search from segment {startSegment.ID}, node {startNode.ID}.");
#endif
// Search for a counter clockwise cycle
while (currentNode.IncidentCount > 1)
{
#if UNITY_EDITOR
Debug.Log("[CYCLE DETECTION] current segment ID: " + currentSegment.ID);
#endif
// Check if path is still eulerian
if (Contains(cycle, currentSegment))
{
//Debug.Log("path would not be eulerian");
break;
}
// Check if path is still manifold
if (g.ExistingCyclesCount(currentSegment) >= 2)
break;
// Is this node trivial?
// (a node is "trivial" if it only has 2 neighboring segments, in which case we don't need to choose which segment should be the next one since there is only 1 option)
if (currentNode.IncidentCount > 2)
{
Vector3 transportedCurrentNormal = currentSegment.Transport(currentNormal, currentNode);
// Non trivial node
// if non sharp: normal is well defined, use sorted neighbors at node to determine next segment
// if sharp: choose neighbor segment at node that is the most planar wrt current normal transported to node
if (currentNode.IsSharp && currentNormal.magnitude > 0.9f)
{
#if UNITY_EDITOR
Debug.Log("[CYCLE DETECTION] sharp node: get " + (reversed ? "next segment in plane" : "previous segment in plane"));
#endif
if (!reversed)
nextSegment = currentNode.GetInPlane(currentSegment, transportedCurrentNormal, next: false);
else
nextSegment = currentNode.GetInPlane(currentSegment, transportedCurrentNormal, next: true);
}
else
{
#if UNITY_EDITOR
Debug.Log("[CYCLE DETECTION] non sharp node: get " + (reversed ? "next segment" : "previous segment"));
#endif
if (!reversed)
nextSegment = currentNode.GetPrevious(currentSegment);
else
nextSegment = currentNode.GetNext(currentSegment);
}
nextNode = nextSegment.GetOpposite(currentNode);
Vector3 nodeNormal;
// If the current node is sharp, we can't simply use its normal to continue
// So we determine it in one of two ways:
// - if there is no valid transported normal from previous nodes (meaning that we started from a sharp node), we set the normal as the cross product between current and next segment
// - if there is a valid transported normal, we simply use that
if (currentNode.IsSharp)
{
if (transportedCurrentNormal.magnitude < 0.1f)
{
// Take cross product between current and next segment
nodeNormal = Vector3.Cross(currentSegment.GetTangentAt(currentNode), nextSegment.GetTangentAt(currentNode)).normalized;
if (reversed)
nodeNormal = -nodeNormal;
}
else
{
// Take transported current normal
nodeNormal = transportedCurrentNormal;
//Debug.Log("node normal before rotation" + nodeNormal);
// The "transportedCurrentNormal" corresponds to parallel transport along the previous segment,
// We additionally rotate the normal at the node, extending the parallel transport across this discontinuity between smooth curves
nodeNormal = TransportAcrossNode(currentNode, currentSegment, nextSegment, nodeNormal);
}
}
else
{
// if the node is not sharp, we simply use its normal thereafter
nodeNormal = currentNode.Normal;
}
// Update normal
currentNormal = nodeNormal;
// If next node has a well defined normal,
// are node normals consistently oriented between current node and next node?
// This determines in which order (clockwise or counter clockwise) we should go around the next node
// We store this state by updating the variable "reversed"
if (nextNode.IncidentCount > 2 && !nextNode.IsSharp)
{
ShouldReverse(ref reversed, currentNormal, nextNode, nextSegment);
}
}
else
{
// Trivial node case
//Debug.Log("trivial node");
// next segment and next node are trivial
nextSegment = currentNode.GetNext(currentSegment);
nextNode = nextSegment.GetOpposite(currentNode);
// normal may be ill-defined at this node, so whenever possible, use "currentNormal" which is the normal from previous node
if (currentNormal.magnitude > 0.9f)
{
// If current normal is well defined, parallel transport it along segment
// and just use that
// Parallel transport last known normal
currentNormal = currentSegment.Transport(currentNormal, currentNode);
currentNormal = TransportAcrossNode(currentNode, currentSegment, nextSegment, currentNormal);
}
else
{
// Try to define normal depending on current segments
Vector3 nTrivial = Vector3.Cross(currentSegment.GetTangentAt(currentNode), nextSegment.GetTangentAt(currentNode));
if (nTrivial.magnitude > 0.5f)
{
currentNormal = nTrivial.normalized;
//reversed = false;
//Debug.Log("trivial node normal: " + currentNormal.ToString("F3"));
}
}
if (currentNormal.magnitude > 0.9f)
{
// If next node has a well defined normal,
// update "reversed": are node normals consistently oriented between current normal and normal at next node?
if (nextNode.IncidentCount > 2 && !nextNode.IsSharp)
ShouldReverse(ref reversed, currentNormal, nextNode, nextSegment);
}
}
bool reversedSegment = currentSegment.IsInReverse(currentNode);
cycle.AddLast(new HalfSegment(currentSegment, reversedSegment));
currentSegment = nextSegment;
currentNode = nextNode;
}
#if UNITY_EDITOR
Debug.Log($"[CYCLE DETECTION] end search from segment {startSegment.ID}, node {startNode.ID}.");
#endif
INode finalNode = currentSegment.GetOpposite(currentNode);
if (finalNode.Equals(oppositeNode) && currentSegment.Equals(startSegment) && cycle.Count > 1)
{
return true;
}
return false;
}
public static bool DetectCycle(Graph g, Vector3 inputPos, bool lookAtNonManifold, out LinkedList<HalfSegment> cycle)
{
cycle = new LinkedList<HalfSegment>();
// Attempt to find a cycle for which the patch center would lie close to inputPos
// First find the closest segment
ISegment closest = g.FindClosestSegment(inputPos, lookAtNonManifold);
if (closest == null)
return false;
// Check if the segment is a loop
if (closest.GetStartNode().Equals(closest.GetEndNode()))
{
cycle.AddLast(new HalfSegment(closest, false));
return true;
}
// From the inputPos and the segment endpoints, we can fit a plane
//(Plane p, float d) = Utils.FitPlane(new Vector3[] { inputPos, closest.GetStartNode().Position, closest.GetEndNode().Position });
//Vector3 planeNormal = Vector3.Cross((closest.GetStartNode().Position - inputPos).normalized, (closest.GetEndNode().Position - inputPos).normalized);
//Debug.Log("plane normal " + planeNormal);
// Start from closest segment and try to walk graph
// By always choosing next segment as the one that lies closest to the input position
INode startNode = closest.GetStartNode();
INode currentNode = startNode;
ISegment currentSegment = closest;
int MaxNonCollinearSegments = 10;
int counter = 0;
while (counter <= MaxNonCollinearSegments)
{
#if UNITY_EDITOR
Debug.Log("current segment ID: " + currentSegment.ID);
#endif
// Check if path is still eulerian
if (Contains(cycle, currentSegment))
{
//Debug.Log("path would not be eulerian");
break;
}
// Add segment to cycle
bool reversedSegment = !currentSegment.IsInReverse(currentNode);
cycle.AddLast(new HalfSegment(currentSegment, reversedSegment));
// Decide on next segment
currentNode = currentSegment.GetOpposite(currentNode);
ISegment nextSegment = g.FindClosestAmongNeighbors(inputPos, currentNode, currentSegment, lookAtNonManifold);
// Didn't find a suitable next segment
if (nextSegment == null)
break;
// If current segment and next segment are not collinear, increment counter
if (Vector3.Dot(currentSegment.GetTangentAt(currentNode), nextSegment.GetTangentAt(currentNode)) < 0.8f)
counter++;
currentSegment = nextSegment;
}
if (counter > MaxNonCollinearSegments)
Debug.Log("couldn't find a short enough path");
if (currentNode.Equals(startNode) && currentSegment.Equals(closest) && cycle.Count > 1)
{
return true;
}
return false;
}
private static bool Contains(LinkedList<HalfSegment> cycle, ISegment s)
{
foreach (var hs in cycle)
{
if (hs.GetSegmentID() == s.ID)
return true;
}
return false;
}
private static void ShouldReverse(ref bool reversed, Vector3 currentNormal, INode nextNode, ISegment segment)
{
Vector3 transportedCurrentNormal = segment.Transport(currentNormal, nextNode);
float endpointsAngle = Vector3.Dot(transportedCurrentNormal, nextNode.Normal);
//Debug.Log("Angle between endpoint normals: " + endpointsAngle);
// If both normals do not have a clear agreement (parallel transporting one to the location of the other does not align them well)
// We are in the case where the curve lies on the imagined surface with significant geodesic torsion => we can't rely on comparing the normals to disambiguate orientation
// So we fall back to this simple trick that seems to help a bit, but honestly isn't so good (hence not described in paper)
if (Mathf.Abs(endpointsAngle) < 0.5f)
{
//Debug.Log("orientation is ambiguous at this node");
// We hesitate between choosing one of those segments
ISegment nextAtNode = nextNode.GetNext(segment);
ISegment prevAtNode = nextNode.GetPrevious(segment);
// Sort those 2 segments in the plane defined by the transported current normal, instead of relying on ordering around the normal at nextNode
// Project segments in plane defined by the transported current normal, and sort
Vector3 projNext = nextAtNode.ProjectInPlane(nextNode, transportedCurrentNormal);
Vector3 projPrev = prevAtNode.ProjectInPlane(nextNode, transportedCurrentNormal);
Vector3 x0 = segment.ProjectInPlane(nextNode, transportedCurrentNormal);
Vector3 y0 = Vector3.Cross(x0, transportedCurrentNormal); // left hand rule for unity cross fct
double thetaNext = (Mathf.Atan2(Vector3.Dot(projNext, y0), Vector3.Dot(projNext, x0)) + 2 * Mathf.PI) % (2 * Mathf.PI);
//Debug.Log("theta next:f " + thetaNext);
double thetaPrev = (Mathf.Atan2(Vector3.Dot(projPrev, y0), Vector3.Dot(projPrev, x0)) + 2 * Mathf.PI) % (2 * Mathf.PI);
//Debug.Log("theta prev: " + thetaPrev);
if (thetaNext > thetaPrev)
reversed = !reversed;
}
else
{
if (endpointsAngle < 0)
reversed = !reversed;
}
}
private static Vector3 TransportAcrossNode(INode node, ISegment prevSegment, ISegment nextSegment, Vector3 normal)
{
// Parallel transport between segments, across a node
// (works the same as for parallel transport along a curve,
// we transport "across the node" by taking tangents from the 2 curves)
Vector3 prev_tangent = -prevSegment.GetTangentAt(node);
Vector3 tangent = nextSegment.GetTangentAt(node);
var axis = Vector3.Cross(prev_tangent, tangent);
if (axis.magnitude > float.Epsilon)
{
axis.Normalize();
float dot = Vector3.Dot(prev_tangent, tangent);
// clamp for floating pt errors
float theta = Mathf.Acos(Mathf.Clamp(dot, -1f, 1f));
return Quaternion.AngleAxis(theta * Mathf.Rad2Deg, axis) * normal;
}
return normal;
}
}
} | 43.149457 | 205 | 0.554821 | [
"MIT"
] | V-Sekai/CASSIE | Assets/Scripts/Data/Graph/CycleDetection.cs | 15,881 | C# |
using DragonSpark.Compose;
using System.Threading.Tasks;
namespace DragonSpark.Model.Operations;
public class Terminating<TIn, TOut> : IOperation<TIn>
{
readonly Await<TIn, TOut> _await;
public Terminating(ISelecting<TIn, TOut> operation) : this(operation.Await) {}
public Terminating(Await<TIn, TOut> await) => _await = @await;
public async ValueTask Get(TIn parameter)
{
await _await(parameter);
}
} | 23.055556 | 79 | 0.751807 | [
"MIT"
] | DragonSpark/Framework | DragonSpark/Model/Operations/Terminating.cs | 417 | C# |
//
// Copyright (c) 2008-2011, Kenneth Bell
//
// 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.
//
namespace DiscUtils.ApplePartitionMap
{
using System.IO;
using DiscUtils.Partitions;
[PartitionTableFactory]
internal sealed class PartitionMapFactory : PartitionTableFactory
{
public override bool DetectIsPartitioned(Stream s)
{
if (s.Length < 1024)
{
return false;
}
s.Position = 0;
byte[] initialBytes = Utilities.ReadFully(s, 1024);
BlockZero b0 = new BlockZero();
b0.ReadFrom(initialBytes, 0);
if (b0.Signature != 0x4552)
{
return false;
}
PartitionMapEntry initialPart = new PartitionMapEntry(s);
initialPart.ReadFrom(initialBytes, 512);
return initialPart.Signature == 0x504d;
}
public override PartitionTable DetectPartitionTable(VirtualDisk disk)
{
if (!DetectIsPartitioned(disk.Content))
{
return null;
}
return new PartitionMap(disk.Content);
}
}
}
| 34.560606 | 79 | 0.636563 | [
"MIT"
] | ChaplinMarchais/DiscUtils | src/ApplePartitionMap/PartitionMapFactory.cs | 2,283 | C# |
using JT808.Protocol.Extensions;
using JT808.Protocol.MessageBody;
using System;
namespace JT808.Protocol.JT808Formatters.MessageBodyFormatters
{
public class JT808_0x0102Formatter : IJT808Formatter<JT808_0x0102>
{
public JT808_0x0102 Deserialize(ReadOnlySpan<byte> bytes, out int readSize)
{
int offset = 0;
JT808_0x0102 jT808_0X0102 = new JT808_0x0102
{
Code = JT808BinaryExtensions.ReadStringLittle(bytes, ref offset)
};
readSize = offset;
return jT808_0X0102;
}
public int Serialize(ref byte[] bytes, int offset, JT808_0x0102 value)
{
offset += JT808BinaryExtensions.WriteStringLittle(bytes, offset, value.Code);
return offset;
}
}
}
| 30.111111 | 89 | 0.635916 | [
"MIT"
] | NealGao/JT808 | src/JT808.Protocol/JT808Formatters/MessageBodyFormatters/JT808_0x0102Formatter.cs | 815 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace CS203_CALLBACK_API_DEMO
{
class CustomDataGridViewTextBoxEditingControl : DataGridViewTextBoxEditingControl
{
public override bool EditingControlWantsInputKey(Keys keyData, bool dataGridViewWantsInputKey)
{
switch (keyData & Keys.KeyCode)
{
case Keys.Prior:
case Keys.Next:
case Keys.End:
case Keys.Home:
case Keys.Left:
case Keys.Up:
case Keys.Right:
case Keys.Down:
case Keys.Delete:
case Keys.NumPad0:
case Keys.NumPad1:
case Keys.NumPad2:
case Keys.NumPad3:
case Keys.NumPad4:
case Keys.NumPad5:
case Keys.NumPad6:
case Keys.NumPad7:
case Keys.NumPad8:
case Keys.NumPad9:
return true;
}
return base.EditingControlWantsInputKey(keyData, dataGridViewWantsInputKey);
}
}
}
| 29.725 | 102 | 0.533221 | [
"MIT"
] | cslrfid/CSL-Callback-Unified-SDK-App | CSL RFID Demo Apps/Source/CS Native Demo XP/CustDataGridView/CustomDataGridViewTextBoxEditingControl.cs | 1,189 | C# |
using System;
using System.Linq.Expressions;
using FluentNHibernate.Utils;
using FluentNHibernate.Visitors;
namespace FluentNHibernate.MappingModel
{
[Serializable]
public class PropertyMapping : ColumnBasedMappingBase
{
public PropertyMapping()
: this(new AttributeStore())
{}
public PropertyMapping(AttributeStore underlyingStore)
: base(underlyingStore)
{}
public override void AcceptVisitor(IMappingModelVisitor visitor)
{
visitor.ProcessProperty(this);
foreach (var column in Columns)
visitor.Visit(column);
}
public Type ContainingEntityType { get; set; }
public string Name
{
get { return attributes.GetOrDefault<string>("Name"); }
}
public string Access
{
get { return attributes.GetOrDefault<string>("Access"); }
}
public bool Insert
{
get { return attributes.GetOrDefault<bool>("Insert"); }
}
public bool Update
{
get { return attributes.GetOrDefault<bool>("Update"); }
}
public string Formula
{
get { return attributes.GetOrDefault<string>("Formula"); }
}
public bool Lazy
{
get { return attributes.GetOrDefault<bool>("Lazy"); }
}
public bool OptimisticLock
{
get { return attributes.GetOrDefault<bool>("OptimisticLock"); }
}
public string Generated
{
get { return attributes.GetOrDefault<string>("Generated"); }
}
public TypeReference Type
{
get { return attributes.GetOrDefault<TypeReference>("Type"); }
}
public Member Member { get; set; }
public bool Equals(PropertyMapping other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return base.Equals(other) &&
Equals(other.ContainingEntityType, ContainingEntityType) &&
Equals(other.Member, Member);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != typeof(PropertyMapping)) return false;
return Equals((PropertyMapping)obj);
}
public override int GetHashCode()
{
unchecked
{
return ((ContainingEntityType != null ? ContainingEntityType.GetHashCode() : 0) * 397) ^ (Member != null ? Member.GetHashCode() : 0);
}
}
public void Set<T>(Expression<Func<PropertyMapping, T>> expression, int layer, T value)
{
Set(expression.ToMember().Name, layer, value);
}
protected override void Set(string attribute, int layer, object value)
{
attributes.Set(attribute, layer, value);
}
public override bool IsSpecified(string attribute)
{
return attributes.IsSpecified(attribute);
}
}
} | 28.853448 | 150 | 0.54646 | [
"BSD-3-Clause"
] | BrunoJuchli/fluent-nhibernate | src/FluentNHibernate/MappingModel/PropertyMapping.cs | 3,347 | C# |
using Cynosura.Core.Services.Models;
using Cynosura.Studio.Core.Infrastructure;
using Cynosura.Studio.Core.Requests.Enums.Models;
using MediatR;
namespace Cynosura.Studio.Core.Requests.Enums
{
public class GetEnums : IRequest<PageModel<EnumModel>>
{
public int SolutionId { get; set; }
public int? PageIndex { get; set; }
public int? PageSize { get; set; }
public EnumFilter Filter { get; set; }
public string OrderBy { get; set; }
public OrderDirection? OrderDirection { get; set; }
}
}
| 28.947368 | 59 | 0.676364 | [
"MIT"
] | FroHenK/Cynosura.Studio | Cynosura.Studio.Core/Requests/Enums/GetEnums.cs | 550 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace CodeWriters.CSharp.Core
{
public class CSharpClass
{
private string _namespace;
public CSharpClass(string name)
{
Name = name?.Trim();
}
public List<CSharpUsing> Usings { get; } = new List<CSharpUsing>();
public string Namespace { get => _namespace; set => _namespace = value?.Trim(); }
public string Name { get; }
public AccessLevel AccessLevel { get; set; }
public bool IsStatic { get; set; }
public bool IsSealed { get; set; }
public bool IsAbstract { get; set; }
public bool IsPartial { get; set; }
public List<CSharpAttribute> Attributes { get; } = new List<CSharpAttribute>();
public List<CSharpField> Fields { get; } = new List<CSharpField>();
public List<CSharpConstructor> Constructors { get; } = new List<CSharpConstructor>();
public List<CSharpProperty> Properties { get; } = new List<CSharpProperty>();
public List<CSharpMethod> Methods { get; } = new List<CSharpMethod>();
public string NamespaceHeader => $"namespace {Namespace}";
public string ClassHeader => $"{AccessLevel.GetDescription()}{(IsStatic ? "static " : "")}class {Name}";
}
}
| 28.191489 | 112 | 0.621887 | [
"MIT"
] | MarkIvanDev/CodeWriters | src/CodeWriters.CSharp/Core/CSharpClass.cs | 1,327 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Analyzer.Utilities;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Text;
namespace Roslyn.Diagnostics.Analyzers
{
public abstract class AbstractCreateTestAccessor<TTypeDeclarationSyntax> : CodeRefactoringProvider
where TTypeDeclarationSyntax : SyntaxNode
{
protected AbstractCreateTestAccessor()
{
}
private protected abstract IRefactoringHelpers RefactoringHelpers { get; }
protected abstract SyntaxNode GetTypeDeclarationForNode(SyntaxNode reportedNode);
public override async Task ComputeRefactoringsAsync(CodeRefactoringContext context)
{
var type = await context.TryGetRelevantNodeAsync<TTypeDeclarationSyntax>(RefactoringHelpers).ConfigureAwait(false);
if (type is null)
return;
var semanticModel = await context.Document.GetSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
var typeSymbol = (INamedTypeSymbol)semanticModel.GetDeclaredSymbol(type, context.CancellationToken);
if (!IsClassOrStruct(typeSymbol))
return;
if (typeSymbol.GetTypeMembers(TestAccessorHelper.TestAccessorTypeName).Any())
return;
var location = typeSymbol.Locations.FirstOrDefault(location => location.IsInSource && Equals(location.SourceTree, semanticModel.SyntaxTree));
if (location is null)
return;
context.RegisterRefactoring(
CodeAction.Create(
RoslynDiagnosticsAnalyzersResources.CreateTestAccessorMessage,
cancellationToken => CreateTestAccessorAsync(context.Document, location.SourceSpan, cancellationToken),
nameof(AbstractCreateTestAccessor<TTypeDeclarationSyntax>)));
}
private static bool IsClassOrStruct(ITypeSymbol typeSymbol)
=> typeSymbol.TypeKind is TypeKind.Class or TypeKind.Struct;
private async Task<Document> CreateTestAccessorAsync(Document document, TextSpan sourceSpan, CancellationToken cancellationToken)
{
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
var syntaxRoot = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false);
var reportedNode = syntaxRoot.FindNode(sourceSpan, getInnermostNodeForTie: true);
var typeDeclaration = GetTypeDeclarationForNode(reportedNode);
var type = (ITypeSymbol)semanticModel.GetDeclaredSymbol(typeDeclaration, cancellationToken);
var syntaxGenerator = SyntaxGenerator.GetGenerator(document);
var newTestAccessorExpression = syntaxGenerator.ObjectCreationExpression(
syntaxGenerator.IdentifierName(TestAccessorHelper.TestAccessorTypeName),
syntaxGenerator.ThisExpression());
var getTestAccessorMethod = syntaxGenerator.MethodDeclaration(
TestAccessorHelper.GetTestAccessorMethodName,
returnType: syntaxGenerator.IdentifierName(TestAccessorHelper.TestAccessorTypeName),
accessibility: Accessibility.Internal,
statements: new[] { syntaxGenerator.ReturnStatement(newTestAccessorExpression) });
var parameterName = char.ToLowerInvariant(type.Name[0]) + type.Name[1..];
var fieldName = "_" + parameterName;
var testAccessorField = syntaxGenerator.FieldDeclaration(
fieldName,
syntaxGenerator.TypeExpression(type),
Accessibility.Private,
DeclarationModifiers.ReadOnly);
var testAccessorConstructor = syntaxGenerator.ConstructorDeclaration(
containingTypeName: TestAccessorHelper.TestAccessorTypeName,
parameters: new[] { syntaxGenerator.ParameterDeclaration(parameterName, syntaxGenerator.TypeExpression(type)) },
accessibility: Accessibility.Internal,
statements: new[] { syntaxGenerator.AssignmentStatement(syntaxGenerator.IdentifierName(fieldName), syntaxGenerator.IdentifierName(parameterName)) });
var testAccessorType = syntaxGenerator.StructDeclaration(
TestAccessorHelper.TestAccessorTypeName,
accessibility: Accessibility.Internal,
modifiers: DeclarationModifiers.ReadOnly,
members: new[] { testAccessorField, testAccessorConstructor });
var newTypeDeclaration = syntaxGenerator.AddMembers(typeDeclaration, getTestAccessorMethod, testAccessorType);
return document.WithSyntaxRoot(syntaxRoot.ReplaceNode(typeDeclaration, newTypeDeclaration));
}
}
}
| 53.845361 | 165 | 0.713 | [
"Apache-2.0"
] | Atrejoe/roslyn-analyzers | src/Roslyn.Diagnostics.Analyzers/Core/AbstractCreateTestAccessor`1.cs | 5,225 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.SignalR.Client;
namespace AgentLib
{
public class MainLib
{
public static string MyIP = "127.0.0.1";
HubConnection hubConnection = null;
IHubProxy agentHubProxy = null;
MsgProcess MessageProcess = new MsgProcess();
ProcessCommunicate.ProcessCommu IPCCommu = new ProcessCommunicate.ProcessCommu();
static DateTime 가장_최근_서버자동접속_시도_시간 = DateTime.Now;
static DateTime 가장_최근_Update_호출_시간 = DateTime.Now;
public void Init(bool isEnableInnerMsg, string serverAddress, AppServerConfig appServerConfig, IPCCommuConfig ipcConfig)
{
CommonLib.InnerMessageManager.SetEnable(isEnableInnerMsg);
MyIP = appServerConfig.IPAddress;
AppServerInfo.App서버_정보_설정(appServerConfig);
hubConnection = new HubConnection(serverAddress);
RegistHubProxy(hubConnection);
SendMessages.Init(agentHubProxy);
IPCCommu.Init(ipcConfig.MyPort, ipcConfig.OtherPort, ipcConfig.MaxPacketSize, ipcConfig.MaxPacketBufferSize);
IPCCommu.InitClient(appServerConfig.AppServerName);
ComputerStatus.Init();
}
void RegistHubProxy(HubConnection hubConn)
{
agentHubProxy = hubConn.CreateHubProxy("AgentHub");
agentHubProxy.On("관리서버로부터_재접속_요청", 관리서버로부터_재접속_요청);
agentHubProxy.On("관리서버로부터_App서버_실행", MessageProcess.관리서버로부터_App서버_실행);
agentHubProxy.On("관리서버로부터_App서버_종료", MessageProcess.관리서버로부터_App서버_종료);
agentHubProxy.On("관리서버로부터_SVN_패치", MessageProcess.관리서버로부터_SVN_패치);
}
// 접속
public bool Connect()
{
try
{
if (관리서버와연결중인가())
{
return false;
}
// 접속 시작
hubConnection.Start().Wait();
SendMessages.관리서버에_Agent정보통보();
}
catch(Exception ex)
{
CommonLib.DevLog.Write(ex.ToString(), CommonLib.LOG_LEVEL.TRACE);
return false;
}
return true;
}
// 접속 끊기
public bool Disconnect()
{
if (관리서버와연결중인가() == false)
{
return false;
}
try
{
hubConnection.Stop();
}
catch
{
return false;
}
return true;
}
public bool 관리서버와연결중인가()
{
if (hubConnection.State == Microsoft.AspNet.SignalR.Client.ConnectionState.Disconnected)
{
return false;
}
return true;
}
public bool 서버와_자동_접속_시도()
{
TimeSpan diffTime = DateTime.Now.Subtract(가장_최근_서버자동접속_시도_시간);
if (관리서버와연결중인가() || diffTime.Seconds < 5)
{
return false;
}
else
{
CommonLib.DevLog.Write(string.Format("관리서버에 접속하기"), CommonLib.LOG_LEVEL.INFO);
}
가장_최근_서버자동접속_시도_시간 = DateTime.Now;
var connectResult = Connect();
if (connectResult)
{
CommonLib.DevLog.Write(string.Format("관리서버에 접속 성공"), CommonLib.LOG_LEVEL.INFO);
}
return connectResult;
}
public void 관리서버로부터_재접속_요청()
{
CommonLib.DevLog.Write(string.Format("관리서버로부터 재접속 요청을 받음"), CommonLib.LOG_LEVEL.INFO);
Disconnect();
Connect();
}
// 주기적으로 해야할 일을 처리한다. 최소 1초 이상으로 호출해야 한다.
public void Update()
{
try
{
TimeSpan diffTime = DateTime.Now.Subtract(가장_최근_Update_호출_시간);
if (diffTime.Seconds < 2)
{
return;
}
IPCAppServer.CheckAppServerStatus.ProcessAlive();
IPCAppServer.CheckAppServerStatus.통신하기_AppServer(관리서버와연결중인가(), IPCCommu);
관리서버에_허트비트_보내기();
ProcessIPCMessage();
가장_최근_Update_호출_시간 = DateTime.Now;
}
catch (Exception ex)
{
CommonLib.DevLog.Write(string.Format("[Update()] Exception:{0}", ex.ToString()), CommonLib.LOG_LEVEL.ERROR);
}
}
void 관리서버에_허트비트_보내기()
{
if (관리서버와연결중인가())
{
SendMessages.관리서버에_허트비트_보내기();
}
}
void ProcessIPCMessage()
{
var packet = IPCCommu.GetPacketData();
var result = MessageProcess.ProcessIPCMessage(관리서버와연결중인가(), packet);
if (result)
{
}
}
void ProcessIPCMessage2()
{
var packet = IPCCommu.ClientReceive();
if (packet.PacketIndex == 0 || packet.PacketIndex == ProcessCommunicate.ProcessCommu.PACKET_INDEX_DISCONNECT)
{
return;
}
MessageProcess.ProcessIPCMessage(관리서버와연결중인가(), new Tuple<short,string>(packet.PacketIndex, packet.JsonFormat));
}
// IPC 메시지 보내기
public bool IPCClientSendTest(short packetIndex, string message)
{
var sendData = new ProcessCommunicate.IPCTestMsg { N1 = packetIndex, S1 = message };
var jsonFormat = Newtonsoft.Json.JsonConvert.SerializeObject(sendData);
var packet = new ProcessCommunicate.IPCPacket { PacketIndex = packetIndex, JsonFormat = jsonFormat };
return IPCCommu.ClientSend(packet);
}
// IPC 메시지 받기
public Tuple<int,string> IPCClientReceiveTest()
{
var packet = IPCCommu.ClientReceive();
var responData = Newtonsoft.Json.JsonConvert.DeserializeObject<ProcessCommunicate.IPCTestMsg>(packet.JsonFormat);
return new Tuple<int, string>(responData.N1, responData.S1);
}
}
public class AppServerConfig
{
public bool IPCUseHttp;
public string IPAddress;
public string AppServerName;
public string AppServerFullPathDir;
public string AppServerExeFileName;
}
public class IPCCommuConfig
{
public int MyPort = 0;
public int OtherPort = 0;
public int MaxPacketSize = 0;
public int MaxPacketBufferSize = 0;
}
}
| 29.466102 | 129 | 0.526603 | [
"MIT"
] | jacking75/Netowrok_Projects | WCF_Server/AppServerManagement/Agent/AgentLib/MainLib.cs | 7,734 | C# |
using Hobby.DomainEvents.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hobby.DomainEvents.Service
{
public interface IDomainHandler<T> where T : IDomainEvent
{
void Handle(T @event);
}
}
| 19.8 | 61 | 0.740741 | [
"Artistic-2.0"
] | Deith2/ProjectIntrduction | src/Hobby.DomainEvents/Service/IDomainHandler.cs | 299 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using Commander;
using PropertyChanged;
using TLRPResourceEditor.Data;
using TLRPResourceEditor.Models;
using TLRPResourceEditor.Properties;
namespace TLRPResourceEditor.ViewModels
{
[ImplementPropertyChanged]
class StartViewModel
{
// The selected language
public List<Language> LanguageList { get; set; } = Enum.GetValues(typeof(Language)).Cast<Language>().ToList();
private Language _selectedLanguage = Language.English;
public Language SelectedLanguage
{
get { return _selectedLanguage; }
set { _selectedLanguage = value; Files.Language = value; }
}
public string CookedPcPath { get; set; } = Files.CookedPCPath;
[OnCommand("RestoreBattleData")]
private void RestoreBattleDataExecute()
{
try
{
if (File.Exists(Files.BattleFile + ".backup"))
File.Copy(Files.BattleFile + ".backup", Files.BattleFile, true);
Files.Language = Files.Language;
}
catch (IOException)
{
MessageBox.Show(Resources.FileCannotBeOverwritten);
}
catch (Exception x)
{
MessageBox.Show(x.ToString());
}
}
[OnCommandCanExecute("RestoreBattleData")]
private bool RestoreBattleDataCanExecute()
{
return File.Exists(Files.BattleFile);
}
[OnCommand("RestoreMapData")]
private void RestoreMapDataExecute()
{
try
{
foreach (var entry in Files.MapFiles)
{
if (File.Exists(entry.MapFile + ".backup"))
File.Copy(entry.MapFile + ".backup", entry.MapFile, true);
}
Files.Language = Files.Language;
}
catch (IOException)
{
MessageBox.Show(Resources.FileCannotBeOverwritten);
}
catch (Exception x)
{
MessageBox.Show(x.ToString());
}
}
[OnCommandCanExecute("RestoreMapData")]
private bool RestoreMapDataExecuteCanExecute()
{
return File.Exists(Files.BattleFile);
}
[OnCommand("RandomizeEnemyStats")]
private void RandomizeAllEnemyStats()
{
// TODO: possibly move to Monster.cs and MonsterFormation.cs
var r = new Random();
var maxHP = 40000;
var mapAP = 2000;
byte maxStat = 255;
byte maxDefense = 100;
byte maxBR = 255;
try
{
// Change the raw bytes themselves all at once, otherwise there would be
// hundreds of thousands of costly disk accesses
var data = File.ReadAllBytes(Files.BattleFile);
for (var i = 0; i < 2344; i++)
{
var offset = Files.TableOffsets[259] + i * 208;
var hp = BitConverter.ToInt32(data, 12 + offset);
var ap = BitConverter.ToInt32(data, 16 + offset);
var str = data[21 + offset];
var itl = data[22 + offset];
var spd = data[23 + offset];
var unq = data[26 + offset];
var ten = data[27 + offset];
var defSlash = data[92 + offset];
var defBludgeon = data[93 + offset];
var defMaul = data[94 + offset];
var defPierce = data[95 + offset];
var defFlame = data[96 + offset];
var defThunder = data[97 + offset];
var defFrost = data[98 + offset];
var defAcid = data[99 + offset];
var defVenom = data[100 + offset];
data[21 + offset] = Math.Min(maxStat, (byte)r.Next(str / 2, str * 2));
data[22 + offset] = Math.Min(maxStat, (byte)r.Next(itl / 2, itl * 2));
data[23 + offset] = Math.Min(maxStat, (byte)r.Next(spd / 2, spd * 2));
data[26 + offset] = Math.Min(maxStat, (byte)r.Next(unq / 2, unq * 2));
data[27 + offset] = Math.Min(maxStat, (byte)r.Next(ten / 2, ten * 2));
data[92 + offset] = Math.Min(maxDefense, (byte)r.Next(defSlash / 2, defSlash * 2));
data[93 + offset] = Math.Min(maxDefense, (byte)r.Next(defBludgeon / 2, defBludgeon * 2));
data[94 + offset] = Math.Min(maxDefense, (byte)r.Next(defMaul / 2, defMaul * 2));
data[95 + offset] = Math.Min(maxDefense, (byte)r.Next(defPierce / 2, defPierce * 2));
data[96 + offset] = Math.Min(maxDefense, (byte)r.Next(defFlame / 2, defFlame * 2));
data[97 + offset] = Math.Min(maxDefense, (byte)r.Next(defThunder / 2, defThunder * 2));
data[98 + offset] = Math.Min(maxDefense, (byte)r.Next(defFrost / 2, defFrost * 2));
data[99 + offset] = Math.Min(maxDefense, (byte)r.Next(defAcid / 2, defAcid * 2));
data[100 + offset] = Math.Min(maxDefense, (byte)r.Next(defVenom / 2, defVenom * 2));
var newHP = BitConverter.GetBytes(Math.Min(maxHP, r.Next(hp / 2, hp * 2)));
var newAP = BitConverter.GetBytes(Math.Min(mapAP, r.Next(ap / 2, ap * 2)));
Array.Copy(newHP, 0, data, 12 + offset, 4);
Array.Copy(newAP, 0, data, 16 + offset, 4);
}
for (var i = 0; i < 2292; i++)
{
var offset = Files.TableOffsets[123] + i * 240;
var brMax = data[43 + offset];
var brAddMin = data[44 + offset];
var brAddMax = data[45 + offset];
data[43 + offset] = Math.Min(maxBR, (byte)r.Next(brMax / 2, brMax * 2));
data[44 + offset] = (byte)Math.Min(maxBR - 1, (byte)r.Next(brAddMin / 2, brAddMin * 2));
data[45 + offset] = (byte)Math.Min(data[44 + offset] + 1, (byte)r.Next(brAddMax / 2, brAddMax * 2));
}
File.WriteAllBytes(Files.BattleFile, data);
Files.Language = Files.Language;
}
catch (IOException)
{
MessageBox.Show(Resources.FileCannotBeOverwritten);
}
catch (Exception x)
{
MessageBox.Show(x.ToString());
}
}
[OnCommandCanExecute("RandomizeEnemyStats")]
private bool RandomizeAllEnemyStatsCanExecute()
{
return File.Exists(Files.BattleFile) && Monster.Monsters.Count > 0;
}
[OnCommand("RandomizeAllArts")]
private void RandomizeAllUnitArts()
{
// TODO: changes should be written directly insides the byte array.
// Until then, first check whether we have access to the files:
// TOTO: Possibly move to Unit.cs
FileStream stream = null;
try
{
stream = File.Open(Files.BattleFile, FileMode.Open, FileAccess.ReadWrite);
}
catch (IOException)
{
MessageBox.Show(Resources.FileCannotBeOverwritten);
return;
}
finally
{
stream?.Close();
}
try
{
var brMin = 0;
var brMax = 80;
var r = new Random();
var itemvalues = Enum.GetValues(typeof(ItemArts));
var mysticvalues = Enum.GetValues(typeof(MysticArts));
foreach (var unit in Unit.Units)
{
if (unit.PartyTalkSelect == null)
continue;
unit.PartyTalkSelect.ItemArtLearned = (ItemArts)itemvalues.GetValue(r.Next(itemvalues.Length));
unit.PartyTalkSelect.MysticArtLearned = (MysticArts)mysticvalues.GetValue(r.Next(mysticvalues.Length));
unit.PartyTalkSelect.ItemBR = r.Next(brMin, brMax + 1);
unit.PartyTalkSelect.MysticBR = r.Next(brMin, brMax + 1);
}
}
catch (IOException)
{
MessageBox.Show(Resources.FileCannotBeOverwritten);
}
catch (Exception x)
{
MessageBox.Show(x.ToString());
}
}
[OnCommandCanExecute("RandomizeAllArts")]
private bool RandomizeAllUnitArtsCanExecute()
{
return File.Exists(Files.BattleFile) && Unit.Units.Count > 0;
}
[OnCommand("EnterNewTLRPath")]
private void EnterNewPath()
{
using (var dialog = new FolderBrowserDialog { Description = Resources.MainWindowViewModel_EnterNewPath_ })
{
var result = dialog.ShowDialog();
if (result == DialogResult.OK)
{
Files.ReadBasicInfo(Path.Combine(dialog.SelectedPath, "RushGame/CookedPC/"));
Files.Language = Files.Language;
CookedPcPath = Files.CookedPCPath;
}
}
}
}
}
| 40.348361 | 124 | 0.493956 | [
"MIT"
] | enceler/TLRPResourceEditor | TLRPResourceEditor/ViewModels/StartViewModel.cs | 9,847 | C# |
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
namespace AuditLogView
{
public static class UIServiceCollectionExtensions
{
public static void AddLogUI(this IServiceCollection services)
{
services.ConfigureOptions(typeof(LogConfigureOptions));
}
}
}
| 22.875 | 69 | 0.73224 | [
"MIT"
] | gnsilence/AntdPro-Vue-id4 | ABP.WebApi/后端/src/AuditLogView/UIServiceCollectionExtensions.cs | 368 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AudioMute : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnApplicationFocus(bool hasFocus)
{
if (!hasFocus)
{
GetComponent<AudioSource>().Pause();
}
else
{
GetComponent<AudioSource>().Play();
}
}
}
| 15.933333 | 48 | 0.569038 | [
"Apache-2.0"
] | byungnam/navyfield | Assets/Scripts/Ocean/AudioMute.cs | 480 | C# |
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("Addressbook-test-contact-data-generators")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Addressbook-test-contact-data-generators")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[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("a5462cdf-3dee-40d5-8ebf-f0306cd3ec70")]
// 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 Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 39.135135 | 84 | 0.752072 | [
"Apache-2.0"
] | Arseniy23Shitkovsky/csharp_training | addressbook-web-tests/Addressbook-test-contact-data-generators/Properties/AssemblyInfo.cs | 1,451 | C# |
using System.Collections.Generic;
using FastExpressionCompiler.LightExpression;
// System.Linq.Expressions;
namespace System.Reflection
{
/// <summary>
/// 属性设置器,针对反射进行性能优化以提供高性能的属性设置,尤其是第一次访问
/// </summary>
/// <typeparam name="T">属性类型</typeparam>
public class PropertySetter<T>
{
public PropertySetter(object target, T tValue, PropertyInfo propertyInfo)
{
var methodInfo = propertyInfo.GetSetMethod() ?? propertyInfo.GetSetMethod(true);
var action = (Action<T>)Delegate.CreateDelegate(typeof(Action<T>), target, methodInfo);
action.Invoke(tValue);
}
}
public class PropertySetterWithExpression
{
private static Dictionary<string, Action<object, object>> _imHashMap = new Dictionary<string, Action<object, object>>();
public PropertySetterWithExpression(object target, object value, PropertyInfo propertyInfo)
{
var cacheName = target.GetType().FullName + value.GetType().FullName + propertyInfo.Name;
if (!_imHashMap.TryGetValue(cacheName, out var callFunc))
{
var setAction = callFunc = CreateSetAction(propertyInfo);
_imHashMap.TryAdd(cacheName, setAction);
}
callFunc.Invoke(target, value);
}
private Action<object, object> CreateSetAction(PropertyInfo propertyInfo)
{
var methodInfo = propertyInfo.GetSetMethod() ?? propertyInfo.GetSetMethod(true);
var target = Expression.Parameter(typeof(object), "target");
var propValue = Expression.Parameter(typeof(object), "value");
var setCall = Expression.Call(target, methodInfo, propValue);
return Expression.Lambda<Action<object, object>>(setCall, target, propValue).CompileFast();
}
}
} | 37.12 | 128 | 0.652478 | [
"Apache-2.0"
] | beango-project/sprite-framework | framework/src/Sprite.Core/System/Reflection/PropertySetter.cs | 1,936 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace LucyManager.MVC
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
}
| 27.625 | 70 | 0.711916 | [
"MIT"
] | MarcusVeloso/LucyManager-MVC | Projeto Lucy Manager/LucyManager.MVC/Global.asax.cs | 665 | C# |
using GZ.Tools.UnityUtility;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor.Experimental.GraphView;
using UnityEngine;
using UnityEngine.UIElements;
namespace GZ.AnimationGraph.Editor
{
public abstract class BaseStateNodeUI<T> : NamedStateMachineBaseNodeUI<T>, IStateNode where T : BaseStateNodeUI<T>, INamedItem<T>
{
protected Foldout _transitionsFoldout;
public IndexedDictionary<(TransitionConnectionUI ui, TransitionInfo info), StateNodeUITransitionItem> ConnectionToTransitionItemMap { get; protected set; } = new IndexedDictionary<(TransitionConnectionUI ui, TransitionInfo info), StateNodeUITransitionItem>();
private List<(TransitionConnectionUI connection, TransitionInfo info)> _transitions = new List<(TransitionConnectionUI connection, TransitionInfo info)>();
private HashSet<StateNodeUI> _connectedNodes = new HashSet<StateNodeUI>();
private ResizableListView _transitionList;
public List<ConnectionUI> EntryConnections { get; protected set; } = new List<ConnectionUI>();
public List<ConnectionUI> ExitConnections { get; protected set; } = new List<ConnectionUI>();
public event Action<string> OnNameChanged;
public virtual bool HasTwoWaysConnection => false;
public BaseStateNodeUI() : base()
{
AddToClassList("base-state-node");
_transitionsFoldout = new Foldout() { value = false, text = "Transitions" };
extensionContainer.Add(_transitionsFoldout);
VisualElement transitionListContainer = new VisualElement();
transitionListContainer.RegisterCallback<MouseDownEvent>(e => e.StopPropagation());
_transitionsFoldout.Add(transitionListContainer);
_transitionList = new ResizableListView(_transitions, 20, () =>
{
VisualElement container = new VisualElement();
container.style.flexDirection = FlexDirection.Row;
container.Add(new Label());
container.Add(new Button() { text = "X" });
return container;
}, (item, index) =>
{
void Remove()
{
_transitions[index].connection.RemoveTransition(_transitions[index].info);
}
item.Q<Label>().text = ((StateNodeUI)_transitions[index].connection.Destination).Name;
Button removeButton = item.Q<Button>();
removeButton.clicked -= Remove;
removeButton.clicked += Remove;
});
_transitionList.reorderable = true;
_transitionList.selectionType = SelectionType.Single;
_transitionList.onSelectionChange += selection =>
{
StateMachineEditor.Editor.TransitionInspector.Show(_transitions[_transitionList.selectedIndex].connection);
StateMachineEditor.Editor.TransitionInspector.SelectTransition(_transitions[_transitionList.selectedIndex].info);
};
_transitionList.onItemsChosen += items =>
{
StateMachineEditor.Editor.GraphView.ClearSelection();
StateMachineEditor.Editor.GraphView.AddToSelection((StateNodeUI)_transitions[_transitionList.selectedIndex].connection.Destination);
StateMachineEditor.Editor.GraphView.FrameSelection();
};
_transitionList.AddToClassList("base-state__transition-list");
transitionListContainer.Add(_transitionList);
StateMachineEditor.Editor.States.OnItemRenamed += RenameTransitionItem;
RefreshExpandedState();
RefreshPorts();
RegisterCallback<MouseEnterEvent>(e =>
{
StateMachineEditor.Editor.TargetConnectable(this);
});
RegisterCallback<MouseLeaveEvent>(e =>
{
StateMachineEditor.Editor.UntargetConnectable(this);
});
RegisterCallback<GeometryChangedEvent>(e =>
{
EntryConnections.ForEach(c =>
{
c.Refresh();
});
ExitConnections.ForEach(c =>
{
c.Refresh();
});
});
RegisterCallback<DetachFromPanelEvent>(e =>
{
StateMachineEditor.Editor.States.OnItemRenamed -= RenameTransitionItem;
if (!StateMachineEditor.IsClosing)
{
this.ClearConnections();
}
});
}
public void LoadData(State state)
{
Name = state.Name;
}
private void CreateTransitionItem(TransitionConnectionUI connection, TransitionInfo transitionInfo)
{
_transitions.Add((connection, transitionInfo));
_transitionList.Refresh();
}
private void RenameTransitionItem(StateNodeUI stateNode, string previousName)
{
if (_connectedNodes.Contains(stateNode))
{
_transitionList.Refresh();
}
}
private void RemoveTransitionItem(TransitionConnectionUI transitionConnection, TransitionInfo transitionInfo, int index = -1)
{
_transitions.Remove((transitionConnection, transitionInfo));
_transitionList.Refresh();
}
public override void BuildContextualMenu(ContextualMenuPopulateEvent evt)
{
base.BuildContextualMenu(evt);
evt.menu.AppendAction("Create Transition", a =>
{
StateMachineEditor.Editor.AddConnection(this);
});
}
public (ConnectionUI connection, bool isNew) GetConnection(IConnectable target, bool isEnabled)
{
TransitionConnectionUI connection = ExitConnections.Find(conn => conn.Destination == target) as TransitionConnectionUI;
if (connection != null)
{
connection.CreateTransition();
return (connection, false);
}
connection = new TransitionConnectionUI(isEnabled);
connection.CreateTransition();
return (connection, true);
}
public bool CanConnect(IConnectable target) => target is StateNodeUI;
public void OnEntryConnect(ConnectionUI connection)
{
}
public void OnExitConnect(ConnectionUI connection)
{
var transitionConnection = (TransitionConnectionUI)connection;
transitionConnection.OnCreatedTransition += CreateTransitionItem;
transitionConnection.OnRemovedTransition += RemoveTransitionItem;
_connectedNodes.Add((StateNodeUI)connection.Destination);
CreateTransitionItem(transitionConnection, transitionConnection.Transitions[transitionConnection.Transitions.Count - 1]);
}
public void OnEntryConnectionDeleted(ConnectionUI connection)
{
}
public void OnExitConnectionDeleted(ConnectionUI connection)
{
var transitionConnection = (TransitionConnectionUI)connection;
foreach (var transitionInfo in transitionConnection.Transitions)
{
_transitions.Remove((transitionConnection, transitionInfo));
}
_transitionList.Refresh();
_connectedNodes.Remove((StateNodeUI)transitionConnection.Destination);
}
}
}
| 37.658416 | 267 | 0.623899 | [
"Unlicense"
] | GuilhermeZenzen/com.gz.animation-graph | Editor/Nodes/State Machine/Nodes/BaseStateNodeUI.cs | 7,609 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace eRestoran.Model
{
public class Statusi
{
public int StatusID { get; set; }
public string Naziv { get; set; }
}
}
| 16.923077 | 41 | 0.645455 | [
"MIT"
] | azra-imamovic/RS2-eRestoran | eRestoran/eRestoran.Model/Statusi.cs | 222 | C# |
namespace AquaShop.Models.Decorations
{
public class Ornament : Decoration
{
private const int INITIAL_COMFORT = 1;
private const decimal INITIAL_PRICE = 5;
public Ornament() : base(INITIAL_COMFORT, INITIAL_PRICE)
{
}
}
}
| 21.230769 | 64 | 0.626812 | [
"MIT"
] | Anzzhhela98/CSharp-Advanced | C# OOP/Exam Preparation/C# OOP Exam - 15 Dec 2019/StructureAndBussinesLogic/AquaShop/Models/Decorations/Ornament.cs | 278 | C# |
#region BSD License
/*
*
* Original BSD 3-Clause License (https://github.com/ComponentFactory/Krypton/blob/master/LICENSE)
* © Component Factory Pty Ltd, 2006 - 2016, (Version 4.5.0.0) All rights reserved.
*
* New BSD 3-Clause License (https://github.com/Krypton-Suite/Standard-Toolkit/blob/master/LICENSE)
* Modifications by Peter Wagner(aka Wagnerp) & Simon Coghlan(aka Smurf-IV), et al. 2017 - 2021. All rights reserved.
*
*/
#endregion
namespace Krypton.Ribbon
{
/// <summary>
/// Layout a scroller button with appropriate separator space around it.
/// </summary>
internal class ViewLayoutRibbonScroller : ViewComposite
{
#region Static Fields
private const int SCROLLER_LENGTH = 12;
private const int GAP_LENGTH = 2;
#endregion
#region Instance Fields
private VisualOrientation _orientation;
private readonly ViewDrawRibbonScrollButton _button;
private readonly ViewLayoutRibbonSeparator _separator;
private readonly bool _insetForTabs;
#endregion
#region Events
/// <summary>
/// Occurs when the button has been clicked.
/// </summary>
public event EventHandler Click;
#endregion
#region Identity
/// <summary>
/// Initialize a new instance of the ViewLayoutRibbonScroller class.
/// </summary>
/// <param name="ribbon">Reference to owning ribbon control.</param>
/// <param name="orientation">Scroller orientation.</param>
/// <param name="insetForTabs">Should scoller be inset for use in tabs area.</param>
/// <param name="needPaintDelegate">Delegate for notifying paint/layout requests.</param>
public ViewLayoutRibbonScroller(KryptonRibbon ribbon,
VisualOrientation orientation,
bool insetForTabs,
NeedPaintHandler needPaintDelegate)
{
// Cache provided values
_orientation = orientation;
_insetForTabs = insetForTabs;
// Create the button and the separator
_button = new ViewDrawRibbonScrollButton(ribbon, orientation);
_separator = new ViewLayoutRibbonSeparator(GAP_LENGTH, true);
// Create button controller for clicking the button
RepeatButtonController rbc = new(ribbon, _button, needPaintDelegate);
rbc.Click += OnButtonClick;
_button.MouseController = rbc;
// Add as child elements
Add(_button);
Add(_separator);
}
/// <summary>
/// Obtains the String representation of this instance.
/// </summary>
/// <returns>User readable name of the instance.</returns>
public override string ToString() =>
// Return the class name and instance identifier
"ViewLayoutRibbonScroller:" + Id;
#endregion
#region Orientation
/// <summary>
/// Gets and sets the visual orientation of the scroller button.
/// </summary>
public VisualOrientation Orientation
{
get => _orientation;
set
{
_orientation = value;
_button.Orientation = value;
}
}
#endregion
#region Layout
/// <summary>
/// Discover the preferred size of the element.
/// </summary>
/// <param name="context">Layout context.</param>
public override Size GetPreferredSize(ViewLayoutContext context) =>
// Always return the same minimum size
new Size(SCROLLER_LENGTH + GAP_LENGTH, SCROLLER_LENGTH + GAP_LENGTH);
/// <summary>
/// Perform a layout of the elements.
/// </summary>
/// <param name="context">Layout context.</param>
public override void Layout(ViewLayoutContext context)
{
Debug.Assert(context != null);
// We take on all the available display area
ClientRectangle = context.DisplayRectangle;
// Layout depends on orientation
switch (Orientation)
{
case VisualOrientation.Top:
context.DisplayRectangle = new Rectangle(ClientLocation.X, ClientRectangle.Bottom - GAP_LENGTH, ClientWidth, GAP_LENGTH);
_separator.Layout(context);
context.DisplayRectangle = new Rectangle(ClientLocation.X, ClientLocation.Y, ClientWidth, ClientHeight - GAP_LENGTH);
_button.Layout(context);
break;
case VisualOrientation.Bottom:
context.DisplayRectangle = new Rectangle(ClientLocation.X, ClientRectangle.Y, ClientWidth, GAP_LENGTH);
_separator.Layout(context);
context.DisplayRectangle = new Rectangle(ClientLocation.X, ClientLocation.Y + GAP_LENGTH, ClientWidth, ClientHeight - GAP_LENGTH);
_button.Layout(context);
break;
case VisualOrientation.Left:
if (_insetForTabs)
{
ClientRectangle = AdjustRectForTabs(ClientRectangle);
}
context.DisplayRectangle = new Rectangle(ClientRectangle.Right - GAP_LENGTH, ClientLocation.Y, GAP_LENGTH, ClientHeight);
_separator.Layout(context);
context.DisplayRectangle = new Rectangle(ClientLocation.X, ClientLocation.Y, ClientWidth - GAP_LENGTH, ClientHeight);
_button.Layout(context);
break;
case VisualOrientation.Right:
if (_insetForTabs)
{
ClientRectangle = AdjustRectForTabs(ClientRectangle);
}
context.DisplayRectangle = new Rectangle(ClientLocation.X, ClientLocation.Y, GAP_LENGTH, ClientHeight);
_separator.Layout(context);
context.DisplayRectangle = new Rectangle(ClientLocation.X + GAP_LENGTH, ClientLocation.Y, ClientWidth - GAP_LENGTH, ClientHeight);
_button.Layout(context);
break;
}
// Put back the original display rectangle
context.DisplayRectangle = ClientRectangle;
}
#endregion
#region Implementation
private Rectangle AdjustRectForTabs(Rectangle rect)
{
rect.Y++;
rect.Height -= 3;
return rect;
}
private void OnButtonClick(object sender, MouseEventArgs e)
{
Click?.Invoke(this, EventArgs.Empty);
}
#endregion
}
}
| 38.735955 | 150 | 0.584191 | [
"BSD-3-Clause"
] | Krypton-Suite/Standard-Toolk | Source/Krypton Components/Krypton.Ribbon/View Layout/ViewLayoutRibbonScroller.cs | 6,898 | C# |
using System;
using System.Collections.Generic;
namespace Collate.Implementation
{
public class SortRequest : ISortRequest
{
public IEnumerable<ISort> Sorts { get; set; }
public SortRequest()
{
Sorts = Array.Empty<ISort>();
}
}
}
| 18.0625 | 53 | 0.602076 | [
"MIT"
] | bradwestness/collate-dot-net | src/Collate/Implementation/SortRequest.cs | 291 | C# |
/*
* Your rights to use code governed by this license http://o-s-a.net/doc/license_simple_engine.pdf
* Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
namespace OsEngine.Entity
{
/// <summary>
/// Deal
/// Сделка
/// </summary>
public class Position
{
public Position()
{
State = PositionStateType.None;
}
/// <summary>
/// open order
/// ордер, открывший сделку
/// </summary>
public List<Order> OpenOrders
{
get
{
return _openOrders;
}
}
private List<Order> _openOrders;
/// <summary>
/// load a new order to a position
/// загрузить в позицию новый ордер закрывающий позицию
/// </summary>
/// <param name="openOrder"></param>
public void AddNewOpenOrder(Order openOrder)
{
if (_openOrders == null)
{
_openOrders = new List<Order>();
}
_openOrders.Add(openOrder);
State = PositionStateType.Opening;
}
/// <summary>
/// closing orders
/// ордера, закрывающие сделку
/// </summary>
public List<Order> CloseOrders
{
get
{
return _closeOrders;
}
}
private List<Order> _closeOrders;
/// <summary>
/// trades of this position
/// трейды этой позиции
/// </summary>
public List<MyTrade> MyTrades
{
get
{
List<MyTrade> trades = _myTrades;
if (trades != null)
{
return trades;
}
trades = new List<MyTrade>();
for (int i = 0; _openOrders != null && i < _openOrders.Count; i++)
{
List<MyTrade> newTrades = _openOrders[i].MyTrades;
if (newTrades != null &&
newTrades.Count != 0)
{
trades.AddRange(newTrades);
}
}
for (int i = 0; _closeOrders != null && i < _closeOrders.Count; i++)
{
List<MyTrade> newTrades = _closeOrders[i].MyTrades;
if (newTrades != null &&
newTrades.Count != 0)
{
trades.AddRange(newTrades);
}
}
_myTrades = trades;
return trades;
}
}
private List<MyTrade> _myTrades;
/// <summary>
/// load a new order to a position
/// загрузить в позицию новый ордер закрывающий позицию
/// </summary>
/// <param name="closeOrder"></param>
public void AddNewCloseOrder(Order closeOrder)
{
if (CloseOrders == null)
{
_closeOrders = new List<Order>();
}
_closeOrders.Add(closeOrder);
State = PositionStateType.Closing;
}
/// <summary>
/// are there any active orders to open a position
/// есть ли активные ордера на открытие позиции
/// </summary>
public bool OpenActiv
{
get
{
if (OpenOrders == null ||
OpenOrders.Count == 0)
{
return false;
}
if (OpenOrders.Find(order => order.State == OrderStateType.Activ
|| order.State == OrderStateType.Pending
|| order.State == OrderStateType.None
|| order.State == OrderStateType.Patrial) != null)
{
return true;
}
return false;
}
}
/// <summary>
/// are there any active orders to close a position
/// есть ли активные ордера на закрытие позиции
/// </summary>
public bool CloseActiv
{
get
{
if (CloseOrders == null ||
CloseOrders.Count == 0)
{
return false;
}
if (CloseOrders.Find(order => order.State == OrderStateType.Activ
|| order.State == OrderStateType.Pending
|| order.State == OrderStateType.Patrial) != null
)
{
return true;
}
return false;
}
}
/// <summary>
/// whether stop is active
/// активен ли стопПриказ
/// </summary>
public bool StopOrderIsActiv;
/// <summary>
/// order price stop order
/// цена заявки стоп приказа
/// </summary>
public decimal StopOrderPrice;
/// <summary>
/// stop - the price, the price after which the order will be entered into the system
/// стоп - цена, цена после достижения которой в систему будет выставлени приказ
/// </summary>
public decimal StopOrderRedLine;
/// <summary>
/// is a profit active order
/// активен ли профит приказ
/// </summary>
public bool ProfitOrderIsActiv;
/// <summary>
/// order price order profit
/// цена заявки профит приказа
/// </summary>
public decimal ProfitOrderPrice;
/// <summary>
/// profit - the price, the price after which the order will be entered into the system
/// профит - цена, цена после достижения которой в систему будет выставлени приказ
/// </summary>
public decimal ProfitOrderRedLine;
/// <summary>
/// buy / sell direction
/// направление сделки Buy / Sell
/// </summary>
public Side Direction;
private PositionStateType _state;
/// <summary>
/// transaction status Open / Close / Opening
/// статус сделки Open / Close / Opening
/// </summary>
public PositionStateType State
{
get { return _state; }
set
{
_state = value;
if (value == PositionStateType.ClosingFail)
{
}
}
}
/// <summary>
/// position number
/// номер позиции
/// </summary>
public int Number;
/// <summary>
/// Tool code for which the position is open
/// Код инструмента по которому открыта позиция
/// </summary>
public string SecurityName
{
get
{
if (_openOrders != null && _openOrders.Count != 0)
{
return _openOrders[0].SecurityNameCode;
}
return "";
}
}
/// <summary>
/// name of the bot who owns the deal
/// имя бота, которому принадлежит сделка
/// </summary>
public string NameBot;
/// <summary>
/// the amount of profit on the operation in percent
/// количество прибыли по операции в процентах
/// </summary>
public decimal ProfitOperationPersent;
/// <summary>
/// the amount of profit on the operation in absolute terms
/// количество прибыли по операции в абсолютном выражении
/// </summary>
public decimal ProfitOperationPunkt;
/// <summary>
/// comment
/// комментарий
/// </summary>
public string Comment;
/// <summary>
/// signal type to open
/// тип сигнала на открытие
/// </summary>
public string SignalTypeOpen;
/// <summary>
/// closing signal type
/// тип сигнала за закрытие
/// </summary>
public string SignalTypeClose;
/// <summary>
/// maximum volume by position
/// максимальный объём по позиции
/// </summary>
public decimal MaxVolume
{
get
{
decimal value = 0;
for (int i = 0; _openOrders != null && i < _openOrders.Count; i++)
{
value += _openOrders[i].VolumeExecute;
}
return value;
}
}
/// <summary>
/// number of contracts open per trade
/// количество контрактов открытых в сделке
/// </summary>
public decimal OpenVolume
{
get
{
if (CloseOrders == null)
{
decimal volume = 0;
for (int i = 0;_openOrders != null && i < _openOrders.Count; i++)
{
volume += _openOrders[i].VolumeExecute;
}
return volume;
}
decimal valueClose = 0;
if (CloseOrders != null)
{
for (int i = 0; i < CloseOrders.Count; i++)
{
valueClose += CloseOrders[i].VolumeExecute;
}
}
decimal volumeOpen = 0;
for (int i = 0; _openOrders != null && i < _openOrders.Count; i++)
{
volumeOpen += _openOrders[i].VolumeExecute;
}
decimal value = volumeOpen - valueClose;
return value;
}
}
/// <summary>
/// number of contracts awaiting opening
/// количество котрактов ожидающих открытия
/// </summary>
public decimal WaitVolume
{
get
{
decimal volumeWait = 0;
for (int i = 0; _openOrders != null && i < _openOrders.Count; i++)
{
if (_openOrders[i].State == OrderStateType.Activ ||
_openOrders[i].State == OrderStateType.Patrial)
{
volumeWait += _openOrders[i].Volume - _openOrders[i].VolumeExecute;
}
}
return volumeWait;
}
}
/// <summary>
/// position opening price
/// цена открытия позиции
/// </summary>
public decimal EntryPrice
{
get
{
if (_openOrders == null ||
_openOrders.Count == 0)
{
return 0;
}
decimal price = 0;
decimal volume = 0;
for (int i = 0; i < _openOrders.Count; i++)
{
decimal volumeEx = _openOrders[i].VolumeExecute;
if (volumeEx != 0)
{
volume += _openOrders[i].VolumeExecute;
price += _openOrders[i].VolumeExecute * _openOrders[i].PriceReal;
}
}
if (volume == 0)
{
return 0;
}
return price/volume;
}
}
/// <summary>
/// position closing price
/// цена закрытия позиции
/// </summary>
public decimal ClosePrice
{
get
{
if (_closeOrders == null ||
_closeOrders.Count == 0)
{
return 0;
}
decimal price = 0;
decimal volume = 0;
for (int i = 0; i < _closeOrders.Count; i++)
{
decimal volumeEx = _closeOrders[i].VolumeExecute;
if (volumeEx != 0)
{
volume += _closeOrders[i].VolumeExecute;
price += _closeOrders[i].VolumeExecute*_closeOrders[i].PriceReal;
}
}
if (volume == 0)
{
return 0;
}
return price/volume;
}
}
/// <summary>
/// check the incoming order for this transaction
/// проверить входящий ордер, на принадлежность этой сделке
/// </summary>
public void SetOrder(Order newOrder)
{
Order openOrder = null;
if (_openOrders != null)
{
for (int i = 0; i < _openOrders.Count; i++)
{
if (_openOrders[i].NumberUser == newOrder.NumberUser)
{
if ((State == PositionStateType.Done || State == PositionStateType.OpeningFail)
&&
((_openOrders[i].State == OrderStateType.Fail && newOrder.State == OrderStateType.Fail) ||
(_openOrders[i].State == OrderStateType.Cancel && newOrder.State == OrderStateType.Cancel)))
{
return;
}
openOrder = _openOrders[i];
break;
}
}
}
if (openOrder != null)
{
openOrder.State = newOrder.State;
openOrder.NumberMarket = newOrder.NumberMarket;
if (openOrder.TimeCallBack == DateTime.MinValue)
{
openOrder.TimeCallBack = newOrder.TimeCallBack;
}
openOrder.TimeCancel = newOrder.TimeCancel;
openOrder.VolumeExecute = newOrder.VolumeExecute;
if (openOrder.State == OrderStateType.Done && openOrder.TradesIsComing &&
OpenVolume != 0 && !CloseActiv)
{
State = PositionStateType.Open;
}
else if (newOrder.State == OrderStateType.Fail && newOrder.VolumeExecute == 0 &&
OpenVolume == 0)
{
State = PositionStateType.OpeningFail;
}
else if (newOrder.State == OrderStateType.Cancel && newOrder.VolumeExecute == 0 &&
OpenVolume == 0)
{
State = PositionStateType.OpeningFail;
}
else if (newOrder.State == OrderStateType.Cancel && OpenVolume != 0)
{
State = PositionStateType.Open;
}
else if (newOrder.State == OrderStateType.Done && OpenVolume == 0
&& CloseOrders != null && CloseOrders.Count > 0)
{
State = PositionStateType.Done;
}
}
Order closeOrder = null;
if (CloseOrders != null)
{
for (int i = 0; i < CloseOrders.Count; i++)
{
if (CloseOrders[i].NumberUser == newOrder.NumberUser)
{
if (CloseOrders[i].State == OrderStateType.Fail &&newOrder.State == OrderStateType.Fail ||
CloseOrders[i].State == OrderStateType.Cancel && newOrder.State == OrderStateType.Cancel)
{
return;
}
closeOrder = CloseOrders[i];
break;
}
}
}
if (closeOrder != null)
{
closeOrder.State = newOrder.State;
closeOrder.NumberMarket = newOrder.NumberMarket;
if (closeOrder.TimeCallBack == DateTime.MinValue)
{
closeOrder.TimeCallBack = newOrder.TimeCallBack;
}
closeOrder.TimeCancel = newOrder.TimeCancel;
closeOrder.VolumeExecute = newOrder.VolumeExecute;
if (closeOrder.State == OrderStateType.Done && OpenVolume == 0)
{
//AlertMessageManager.ThrowAlert(null, "Done", "");
State = PositionStateType.Done;
}
else if (closeOrder.State == OrderStateType.Fail && !CloseActiv && OpenVolume != 0)
{
//AlertMessageManager.ThrowAlert(null, "Fail", "");
State = PositionStateType.ClosingFail;
}
else if (closeOrder.State == OrderStateType.Cancel && !CloseActiv && OpenVolume != 0)
{
// if not fully closed and this is the last order in the closing orders
// если не полностью закрылись и это последний ордер в ордерах на закрытие
//AlertMessageManager.ThrowAlert(null, "Cancel", "");
State = PositionStateType.ClosingFail;
}
else if (closeOrder.State == OrderStateType.Done && OpenVolume < 0)
{
State = PositionStateType.ClosingSurplus;
}
if (State == PositionStateType.Done && CloseOrders != null && EntryPrice != 0)
{
//AlertMessageManager.ThrowAlert(null, "Done пересчёт", "");
decimal medianPriceClose = 0;
decimal countValue = 0;
for (int i = 0; i < CloseOrders.Count; i++)
{
if (CloseOrders[i].VolumeExecute != 0)
{
medianPriceClose += CloseOrders[i].PriceReal * CloseOrders[i].VolumeExecute;
countValue += CloseOrders[i].VolumeExecute;
}
}
if (countValue != 0)
{
medianPriceClose = medianPriceClose/countValue;
}
if (medianPriceClose == 0)
{
return;
}
if (Direction == Side.Buy)
{
ProfitOperationPersent = medianPriceClose / EntryPrice * 100 - 100;
ProfitOperationPunkt = medianPriceClose - EntryPrice;
}
else
{
ProfitOperationPunkt = EntryPrice - medianPriceClose;
ProfitOperationPersent = -(medianPriceClose / EntryPrice * 100 - 100);
}
ProfitOperationPersent = Math.Round(ProfitOperationPersent, 5);
}
}
}
/// <summary>
/// check incoming trade for this trade
/// проверить входящий трейд, на принадлежность этой сделке
/// </summary>
public void SetTrade(MyTrade trade)
{
_myTrades = null;
if (_openOrders != null)
{
for (int i = 0; i < _openOrders.Count; i++)
{
if (_openOrders[i].NumberMarket == trade.NumberOrderParent||
_openOrders[i].NumberUser.ToString() == trade.NumberOrderParent)
{
trade.NumberPosition = Number.ToString();
_openOrders[i].SetTrade(trade);
if (OpenVolume != 0)
{
State = PositionStateType.Open;
}
else if (OpenVolume == 0)
{
_openOrders[i].TimeDone = trade.Time;
State = PositionStateType.Done;
}
}
}
}
if (CloseOrders != null)
{
for (int i = 0; i < CloseOrders.Count; i++)
{
if (CloseOrders[i].NumberMarket == trade.NumberOrderParent ||
CloseOrders[i].NumberUser.ToString() == trade.NumberOrderParent)
{
trade.NumberPosition = Number.ToString();
CloseOrders[i].SetTrade(trade);
if (OpenVolume == 0)
{
State = PositionStateType.Done;
CloseOrders[i].TimeDone = trade.Time;
}
else if (OpenVolume < 0)
{
State = PositionStateType.ClosingSurplus;
}
}
}
}
if (State == PositionStateType.Done && CloseOrders != null && EntryPrice != 0 )
{
decimal medianPriceClose = 0;
decimal countValue = 0;
for (int i = 0; i < CloseOrders.Count; i++)
{
if (CloseOrders[i].VolumeExecute != 0)
{
medianPriceClose += CloseOrders[i].PriceReal * CloseOrders[i].VolumeExecute;
countValue += CloseOrders[i].VolumeExecute;
}
}
if (countValue != 0)
{
medianPriceClose = medianPriceClose / countValue;
}
if (medianPriceClose == 0)
{
return;
}
if (Direction == Side.Buy)
{
ProfitOperationPersent = medianPriceClose / EntryPrice * 100 - 100;
ProfitOperationPunkt = medianPriceClose - EntryPrice;
}
else
{
ProfitOperationPunkt = EntryPrice - medianPriceClose;
ProfitOperationPersent = -(medianPriceClose / EntryPrice * 100 - 100);
}
ProfitOperationPersent = Math.Round(ProfitOperationPersent, 3);
}
}
/// <summary>
/// load bid with ask into the trade to recalculate the profit
/// загрузить в сделку бид с аском, чтобы пересчитать прибыльность
/// </summary>
public void SetBidAsk(decimal bid, decimal ask)
{
if (State == PositionStateType.Open)
{
if (EntryPrice == 0)
{
return;
}
if (Direction == Side.Buy)
{
ProfitOperationPersent = ask / EntryPrice * 100 - 100;
ProfitOperationPunkt = ask - EntryPrice;
}
else
{
ProfitOperationPersent = -(bid / EntryPrice * 100 - 100);
ProfitOperationPunkt = EntryPrice - bid;
}
}
}
/// <summary>
/// take the string to save
/// взять строку для сохранения
/// </summary>
public StringBuilder GetStringForSave()
{
StringBuilder result = new StringBuilder();
result.Append(Direction + "#");
result.Append(State + "#");
result.Append( NameBot + "#");
result.Append(ProfitOperationPersent.ToString(new CultureInfo("ru-RU")) + "#");
result.Append(ProfitOperationPunkt.ToString(new CultureInfo("ru-RU")) + "#");
if (OpenOrders == null)
{
result.Append("null" + "#");
}
else
{
for(int i = 0;i < OpenOrders.Count;i++)
{
result.Append(OpenOrders[i].GetStringForSave() + "^");
}
result.Append("#");
}
result.Append(Number + "#");
result.Append(Comment + "#");
result.Append(StopOrderIsActiv + "#");
result.Append(StopOrderPrice + "#");
result.Append(StopOrderRedLine + "#");
result.Append(ProfitOrderIsActiv + "#");
result.Append(ProfitOrderPrice + "#");
result.Append(Lots + "#");
result.Append(PriceStepCost + "#");
result.Append(PriceStep + "#");
result.Append(PortfolioValueOnOpenPosition + "#");
result.Append(ProfitOrderRedLine + "#");
result.Append(SignalTypeOpen + "#");
result.Append(SignalTypeClose);
if (CloseOrders != null)
{
for (int i = 0; i < CloseOrders.Count; i++)
{
result.Append("#" + CloseOrders[i].GetStringForSave());
}
}
return result;
}
/// <summary>
/// load trade from incoming line
/// загрузить сделку из входящей строки
/// </summary>
public void SetDealFromString(string save)
{
string[] arraySave = save.Split('#');
Enum.TryParse(arraySave[0], true, out Direction);
NameBot = arraySave[2];
ProfitOperationPersent = arraySave[3].ToDecimal();
ProfitOperationPunkt = arraySave[4].ToDecimal();
if (arraySave[5] != "null")
{
string[] ordersOpen = arraySave[5].Split('^');
if (ordersOpen.Length != 1)
{
_openOrders = new List<Order>();
for (int i = 0; i < ordersOpen.Length - 1; i++)
{
_openOrders.Add(new Order());
_openOrders[i].SetOrderFromString(ordersOpen[i]);
}
}
}
Number = Convert.ToInt32(arraySave[6]);
Comment = arraySave[7];
StopOrderIsActiv = Convert.ToBoolean(arraySave[8]);
StopOrderPrice = arraySave[9].ToDecimal();
StopOrderRedLine = arraySave[10].ToDecimal();
ProfitOrderIsActiv = Convert.ToBoolean(arraySave[11]);
ProfitOrderPrice = arraySave[12].ToDecimal();
Lots = arraySave[13].ToDecimal();
PriceStepCost = arraySave[14].ToDecimal();
PriceStep = arraySave[15].ToDecimal();
PortfolioValueOnOpenPosition = arraySave[16].ToDecimal();
ProfitOrderRedLine = arraySave[17].ToDecimal();
SignalTypeOpen = arraySave[18];
SignalTypeClose = arraySave[19];
for (int i = 0; i < 10; i++)
{
if (arraySave.Length > 20 + i)
{
Order newOrder = new Order();
newOrder.SetOrderFromString(arraySave[20 + i]);
AddNewCloseOrder(newOrder);
}
}
PositionStateType state;
Enum.TryParse(arraySave[1], true, out state);
State = state;
}
/// <summary>
/// position creation time
/// время создания позиции
/// </summary>
public DateTime TimeCreate
{
get
{
if (_openOrders != null)
{
return _openOrders[_openOrders.Count - 1].GetLastTradeTime();
}
return DateTime.MinValue;
}
}
/// <summary>
/// position closing time
/// время закрытия позиции
/// </summary>
public DateTime TimeClose
{
get
{
if (CloseOrders != null && CloseOrders.Count != 0)
{
for (int i = CloseOrders.Count-1; i > -1 && i < CloseOrders.Count; i--)
{
DateTime time = CloseOrders[i].GetLastTradeTime();
if (time != DateTime.MinValue)
{
return time;
}
}
}
return TimeCreate;
}
}
/// <summary>
///
/// position opening time. The time when the first transaction on our position passed on the exchange
/// if the transaction is not open yet, it will return the time to create the position
/// время открытия позиции. Время когда на бирже прошла первая сделка по нашей позиции
/// если сделка ещё не открыта, вернёт время создания позиции
/// </summary>
public DateTime TimeOpen
{
get
{
if (OpenOrders == null || OpenOrders.Count == 0)
{
return TimeCreate;
}
DateTime timeOpen = DateTime.MaxValue;
for (int i = 0; i < OpenOrders.Count; i++)
{
if (OpenOrders[i].TradesIsComing &&
OpenOrders[i].TimeExecuteFirstTrade < timeOpen)
{
timeOpen = OpenOrders[i].TimeExecuteFirstTrade;
}
}
if (timeOpen == DateTime.MaxValue)
{
return TimeCreate;
}
return TimeCreate;
}
}
// profit for the portfolio
// профит для портфеля
/// <summary>
/// the amount of profit relative to the portfolio in percentage
/// количество прибыли относительно портфеля в процентах
/// </summary>
public decimal ProfitPortfolioPersent
{
get
{
if (PortfolioValueOnOpenPosition == 0)
{
return 0;
}
return ProfitPortfolioPunkt / PortfolioValueOnOpenPosition*100;
}
}
/// <summary>
/// the amount of profit relative to the portfolio in absolute terms
/// количество прибыли относительно портфеля в абсолютном выражении
/// </summary>
public decimal ProfitPortfolioPunkt
{
get
{
decimal volume = 0;
for (int i = 0; i < _openOrders.Count; i++)
{
volume += _openOrders[i].VolumeExecute;
}
if(volume == 0||
PriceStepCost == 0 ||
MaxVolume == 0)
{
return 0;
}
return (ProfitOperationPunkt/PriceStep)*PriceStepCost*MaxVolume*1; // Lots;
}
}
/// <summary>
/// the number of lots in one transaction
/// количество лотов в одной сделке
/// </summary>
public decimal Lots;
/// <summary>
/// price step cost
/// стоимость шага цены
/// </summary>
public decimal PriceStepCost;
/// <summary>
/// price step
/// шаг цены
/// </summary>
public decimal PriceStep;
/// <summary>
/// portfolio size at the time of opening the portfolio
/// размер портфеля на момент открытия портфеля
/// </summary>
public decimal PortfolioValueOnOpenPosition;
}
/// <summary>
/// way to open a deal
/// способ открытия сделки
/// </summary>
public enum PositionOpenType
{
/// <summary>
/// bid at a certain price
/// заявка по определённой цене
/// </summary>
Limit,
/// <summary>
/// application at any price
/// заявка по любой цене
/// </summary>
Market,
/// <summary>
/// iceberg application. Application consisting of several limit orders
/// айсберг заявка. Заявка состоящая из нескольких лимитных заявок
/// </summary>
Aceberg
}
/// <summary>
/// transaction status
/// статус сделки
/// </summary>
public enum PositionStateType
{
/// <summary>
/// none
/// не назначен
/// </summary>
None,
/// <summary>
/// opening
/// открывается
/// </summary>
Opening,
/// <summary>
/// closed
/// закрыта
/// </summary>
Done,
/// <summary>
/// error
/// ошибка
/// </summary>
OpeningFail,
/// <summary>
/// opened
/// открыта
/// </summary>
Open,
/// <summary>
/// closing
/// закрывается
/// </summary>
Closing,
/// <summary>
/// closing fail
/// ошибка на закрытии
/// </summary>
ClosingFail,
/// <summary>
/// brute force during closing.
/// перебор во время закрытия.
/// </summary>
ClosingSurplus
}
/// <summary>
/// направление сделки
/// </summary>
public enum Side
{
/// <summary>
/// none
/// не определено
/// </summary>
None,
/// <summary>
/// buy
/// купля
/// </summary>
Buy,
/// <summary>
/// sell
/// продажа
/// </summary>
Sell
}
}
| 31.019074 | 120 | 0.439447 | [
"Apache-2.0"
] | gridgentoo/OsEngineMono | project/OsEngine/Entity/Position.cs | 35,929 | C# |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.IO;
using Microsoft.SPOT;
using Microsoft.SPOT.IO;
using Microsoft.SPOT.Platform.Test;
namespace Microsoft.SPOT.Platform.Tests
{
public class WriteByte : IMFTestInterface
{
[SetUp]
public InitializeResult Initialize()
{
Log.Comment("Adding set up for the tests.");
// TODO: Add your set up steps here.
return InitializeResult.ReadyToGo;
}
[TearDown]
public void CleanUp()
{
Log.Comment("Cleaning up after the tests.");
// TODO: Add your clean up steps here.
}
#region Helper methods
private bool TestWrite(MemoryStream ms, int BytesToWrite)
{
return TestWrite(ms, BytesToWrite, ms.Position + BytesToWrite);
}
private bool TestWrite(MemoryStream ms, int BytesToWrite, long ExpectedLength)
{
bool result = true;
long startLength = ms.Position;
long nextbyte = startLength % 256;
for (int i = 0; i < BytesToWrite; i++)
{
ms.WriteByte((byte)nextbyte);
// Reset if wraps past 255
if (++nextbyte > 255)
nextbyte = 0;
}
ms.Flush();
if (ExpectedLength < ms.Length)
{
result = false;
Log.Exception("Expeceted final length of " + ExpectedLength + " bytes, but got " + ms.Length + " bytes");
}
return result;
}
#endregion Helper methods
#region Test Cases
[TestMethod]
public MFTestResults ExtendBuffer()
{
MFTestResults result = MFTestResults.Pass;
try
{
using (MemoryStream ms = new MemoryStream())
{
Log.Comment("Set Position past end of stream");
// Internal buffer is initialized to 256, if this changes, this test is no longer valid.
// Exposing capcity would have made this test easier/dynamic.
ms.Position = 300;
ms.WriteByte(123);
if (ms.Length != 301)
{
result = MFTestResults.Fail;
Log.Exception("Expected length 301, got length " + ms.Length);
}
ms.Position = 300;
int read = ms.ReadByte();
if (read != 123)
{
result = MFTestResults.Fail;
Log.Exception("Expected value 123, but got value " + result);
}
}
}
catch (Exception ex)
{
Log.Exception("Unexpected exception", ex);
result = MFTestResults.Fail;
}
return result;
}
[TestMethod]
public MFTestResults InvalidRange()
{
MFTestResults result = MFTestResults.Pass;
try
{
byte[] buffer = new byte[100];
using (MemoryStream ms = new MemoryStream(buffer))
{
Log.Comment("Set Position past end of static stream");
ms.Position = buffer.Length + 1;
try
{
ms.WriteByte(1);
result = MFTestResults.Fail;
Log.Exception("Expected NotSupportedException");
}
catch (NotSupportedException) { /* pass case */ }
}
}
catch (Exception ex)
{
Log.Exception("Unexpected exception", ex);
result = MFTestResults.Fail;
}
return result;
}
[TestMethod]
public MFTestResults VanillaWrite()
{
MFTestResults result = MFTestResults.Pass;
try
{
Log.Comment("Static Buffer");
byte[] buffer = new byte[100];
using (MemoryStream ms = new MemoryStream(buffer))
{
Log.Comment("Write 50 bytes of data");
if (!TestWrite(ms, 50, 100))
result = MFTestResults.Fail;
Log.Comment("Write final 50 bytes of data");
if (!TestWrite(ms, 50, 100))
result = MFTestResults.Fail;
Log.Comment("Any more bytes written should throw");
try
{
ms.WriteByte(50);
result = MFTestResults.Fail;
Log.Exception("Expected NotSupportedException");
}
catch (NotSupportedException) { /* pass case */ }
Log.Comment("Rewind and verify all bytes written");
ms.Seek(0, SeekOrigin.Begin);
if (!MemoryStreamHelper.VerifyRead(ms))
result = MFTestResults.Fail;
}
Log.Comment("Dynamic Buffer");
using (MemoryStream ms = new MemoryStream())
{
Log.Comment("Write 100 bytes of data");
if (!TestWrite(ms, 100))
result = MFTestResults.Fail;
Log.Comment("Extend internal buffer, write 160");
if (!TestWrite(ms, 160))
result = MFTestResults.Fail;
Log.Comment("Double extend internal buffer, write 644");
if (!TestWrite(ms, 644))
result = MFTestResults.Fail;
Log.Comment("write another 1100");
if (!TestWrite(ms, 1100))
result = MFTestResults.Fail;
Log.Comment("Rewind and verify all bytes written");
ms.Seek(0, SeekOrigin.Begin);
if (!MemoryStreamHelper.VerifyRead(ms))
result = MFTestResults.Fail; }
}
catch (Exception ex)
{
Log.Exception("Unexpected exception", ex);
result = MFTestResults.Fail;
}
return result;
}
[TestMethod]
public MFTestResults BoundaryCheck()
{
MFTestResults result = MFTestResults.Pass;
try
{
for (int i = 250; i < 260; i++)
{
using (MemoryStream ms = new MemoryStream())
{
MemoryStreamHelper.Write(ms, i);
ms.Position = 0;
if (!MemoryStreamHelper.VerifyRead(ms))
result = MFTestResults.Fail;
Log.Comment("Position: " + ms.Position);
Log.Comment("Length: " + ms.Length);
if (i != ms.Position | i != ms.Length)
{
result = MFTestResults.Fail;
Log.Exception("Expected Position and Length to be " + i);
}
}
}
}
catch (Exception ex)
{
Log.Exception("Unexpected exception: " + ex.Message);
result = MFTestResults.Fail;
}
return result;
}
#endregion Test Cases
}
}
| 36.52381 | 201 | 0.413299 | [
"Apache-2.0"
] | AustinWise/Netduino-Micro-Framework | Test/Platform/Tests/CLR/System/IO/MemoryStream/WriteByte.cs | 8,437 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
*/
/*
* Do not modify this file. This file is generated from the directconnect-2012-10-25.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.DirectConnect.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.DirectConnect.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeConnectionLoa operation
/// </summary>
public class DescribeConnectionLoaResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeConnectionLoaResponse response = new DescribeConnectionLoaResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("loa", targetDepth))
{
var unmarshaller = LoaUnmarshaller.Instance;
response.Loa = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectConnectClientException"))
{
return DirectConnectClientExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectConnectServerException"))
{
return DirectConnectServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonDirectConnectException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeConnectionLoaResponseUnmarshaller _instance = new DescribeConnectionLoaResponseUnmarshaller();
internal static DescribeConnectionLoaResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeConnectionLoaResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 38.210526 | 196 | 0.653811 | [
"Apache-2.0"
] | DetlefGolze/aws-sdk-net | sdk/src/Services/DirectConnect/Generated/Model/Internal/MarshallTransformations/DescribeConnectionLoaResponseUnmarshaller.cs | 4,356 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class VidaJugador : MonoBehaviour
{
public int vidaJugador = 1000; //vida del jugador
public int valorCura; //el total de vida que se va a curar el jugador cuando coja una cura
Slider mainSlider; //barra de vida
public int daño = 100; // daño que recive de los enemigos
Canvas canvasGameOver; //cuando el jugador muere aparece este canvas
bool isCanvasGameOver; //bool para saber si el jugador esta muerto o no
Camera camaraGameOver; //camara que se instanciara despues de que el jugador muera
bool iscamera; //bool para saber si el jugador esta muerto o no
void Start()
{
camaraGameOver = GameObject.Find("CameraGameOver").GetComponent<Camera> ();//se busca el gameobject cameraGameover despues de encontrarlo camaraGameOver coje los componetes de camara
isCanvasGameOver = false; //el bool comienza en falso
iscamera = false; //el bool cienza en falso
canvasGameOver = GameObject.Find("CanvasGameOver").GetComponent<Canvas> (); //se busca el gameobject canvasGammeOver y se coje sus componentes
mainSlider = GameObject.FindGameObjectWithTag ("SliderVida").GetComponent<Slider> (); // se busca el gameobject SliderVida y se cojen sus componentes
}
void OnTriggerEnter(Collider other)
{
//si el jugador codiciona con gameobjects con el tag enemy y enemy2 recivira daño
//si el jugador codiciona con gameobjects con el tag vida se curara un valor determinado
//el mainsalider.value esta abajo de todos para que se valla actualizando la barra de vida
if (other.CompareTag ("Enemy")) {
vidaJugador -= daño;
mainSlider.value = vidaJugador;
} else if (other.CompareTag ("Vida") && vidaJugador < 1000) {
vidaJugador += valorCura;
mainSlider.value = vidaJugador;
} else if (other.CompareTag ("Enemy2"))
{
vidaJugador -= 200;
mainSlider.value = vidaJugador;
}
}
void Update()
{
// si la vida de el jugador esta por debajo o es igual a 0 se activan los boleanos iscanvasGameOver y isCamera ademas de esto se destruye el gameobject
if (vidaJugador <= 0)
{
isCanvasGameOver = true;
iscamera = true;
Destroy(gameObject);
}
//si iscanvasGameOver es positivo se activara el canvas de GameOver
//si iscanvasGameOver es negativo el canvas estara desacrivado
if (isCanvasGameOver == true)
{
canvasGameOver.gameObject.SetActive (true);
}
if (isCanvasGameOver == false)
{
canvasGameOver.gameObject.SetActive (false);
}
//si iscamera es positivo se activara la camara
//si iscamera es negativo la camara permanesera desactivada
if (iscamera == true)
{
camaraGameOver.gameObject.SetActive (true);
}
if (iscamera == false)
{
camaraGameOver.gameObject.SetActive (false);
}
}
} | 35.607595 | 184 | 0.736225 | [
"MIT"
] | kevin4809/ShotterGameSurvival | Assets/Scripts/Personaje/VidaJugador.cs | 2,819 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.