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 |
|---|---|---|---|---|---|---|---|---|
using System;
using System.Runtime.Serialization;
namespace IDevman.SAPConnector.Exceptions
{
/// <summary>
/// SAP exception
/// </summary>
[Serializable]
public class SAPException : Exception
{
/// <summary>
/// SAP error code
/// </summary>
public int SAPErrorCode { get; set; }
/// <summary>
/// SAP Error message
/// </summary>
public string SAPErrorMessage { get; set; }
/// <summary>
/// Create a new instance of SAP Exception
/// </summary>
protected SAPException(): base()
{
}
/// <summary>
/// Create a new instance of SAP Exception
/// </summary>
/// <param name="message">Error message</param>
public SAPException(string message) : base(message)
{
SAPErrorMessage = message;
}
/// <summary>
/// Create a new instance of SAP Exception
/// </summary>
/// <param name="message">Error message</param>
/// <param name="innerException">Exception cause</param>
public SAPException(string message, Exception innerException) : base(message, innerException)
{
SAPErrorMessage = message;
}
/// <summary>
/// Create a new instance of SAP exception
/// </summary>
/// <param name="code">Error code to display</param>
/// <param name="message">Error message</param>
public SAPException(int code, string message) : base("[" + code + "]: " + message)
{
SAPErrorCode = code;
SAPErrorMessage = message;
}
/// <summary>
/// Create a new instance of SAP exception
/// </summary>
/// <param name="info">Serialziation info</param>
/// <param name="context">Streaming context</param>
protected SAPException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
/// <summary>
/// Load serialization objects
/// </summary>
/// <param name="info">Serialization info</param>
/// <param name="context">Streaming context</param>
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("SAPErrorCode", SAPErrorCode);
info.AddValue("SAPErrorMessage", SAPErrorMessage);
}
}
} | 29.494118 | 102 | 0.556841 | [
"MIT"
] | idevman/sap-di-connector | sap-di-connector/Exceptions/SAPException.cs | 2,509 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JetBrains.Annotations;
namespace JoinRpg.Helpers.Web
{
public static class IdListUrlExtensions
{
public static string CompressIdList(this IEnumerable<int> list) => list.OrderBy(l => l).DeltaCompress().MagicJoin();
public static IReadOnlyCollection<int> UnCompressIdList(this string compressedList) => compressedList.MagicUnJoin().DeltaUnCompress().ToList();
private static IEnumerable<int> MagicUnJoin(this string str)
{
var idx = -1;
var buffer = "";
while (idx + 1 < str.Length)
{
idx++;
if (char.IsDigit(str[idx]))
{
buffer += str[idx];
continue;
}
if (buffer != "")
{
yield return int.Parse(buffer) + 25;
buffer = "";
}
if (str[idx] >= 'a' && str[idx] <= 'z')
{
yield return str[idx] - 'a' + 2;
}
if (str[idx] >= 'A' && str[idx] <= 'Z')
{
for (var c = 'A'; c <= str[idx]; c++)
{
yield return 1;
}
}
}
if (buffer != "")
{
yield return int.Parse(buffer) + 25;
}
}
private static string MagicJoin([NotNull] this IEnumerable<int> list)
{
if (list == null)
{
throw new ArgumentNullException(nameof(list));
}
var builder = new StringBuilder();
using (var enumerator = list.GetEnumerator())
{
var needSep = false;
while (enumerator.MoveNext())
{
var next = enumerator.Current;
while (true)
{
if (next == 1)
{
var count = 1;
var b = enumerator.MoveNext();
while (b && enumerator.Current == 1 && count < 25)
{
count++;
b = enumerator.MoveNext();
}
_ = builder.Append((char)('A' + count - 1));
if (!b)
{
break;
}
next = enumerator.Current;
needSep = false;
continue;
}
if (next < 25)
{
_ = builder.Append((char)('a' + next - 2));
needSep = false;
break;
}
if (needSep)
{
_ = builder.Append(',');
}
_ = builder.Append(next - 25);
needSep = true;
break;
}
}
}
return builder.ToString();
}
private static IEnumerable<int> DeltaCompress(this IEnumerable<int> list)
{
var prev = 0;
foreach (var i in list)
{
yield return i - prev;
prev = i;
}
}
private static IEnumerable<int> DeltaUnCompress(this IEnumerable<int> list)
{
var prev = 0;
foreach (var i in list)
{
prev += i;
yield return prev;
}
}
}
}
| 31.975806 | 151 | 0.352837 | [
"MIT"
] | Jeidoz/joinrpg-net | src/JoinRpg.Helpers.Web/IdListUrlExtensions.cs | 3,965 | C# |
/*
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''' This is the MIT License, with one addition:
''' I want attribution in source code form, which means any code of mine you use,
''' you must keep this entire license intact, including the next line:
'''
''' Nik Martin wrote the original version of this software.
''' http://www.nikmartin.com
'''
'''
''' Copyright (c) <year> Nik Martin
'''
''' 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.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
*/
using System;
using NUnit.Framework;
using System.Text;
#if DEBUG
using System.Diagnostics;
#endif
namespace SiUtilWrapper
{
[TestFixture] public class SiUtilsTest
{
[Test] public void getUSBDllVersion()
{
string pVersion="";
Assert.IsEmpty(pVersion);
SiUtil.GetUSBDLLVersion(ref pVersion);
#if DEBUG
Trace.WriteLine(pVersion);
#endif
Assert.IsNotEmpty(pVersion);
}
}
}
| 35.868852 | 91 | 0.618373 | [
"MIT"
] | dhanh/siutil | SiUtilsTest.cs | 2,188 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap.Pipeline;
using Ploeh.Samples.CacheModel;
namespace Ploeh.Samples.Menu.StructureMap
{
public partial class LeasedObjectCache : IObjectCache
{
private readonly IObjectCache objectCache;
private readonly ILease lease;
public LeasedObjectCache(ILease lease)
{
if (lease == null)
{
throw new ArgumentNullException("lease");
}
this.lease = lease;
this.objectCache = new MainObjectCache();
}
public int Count
{
get
{
this.CheckLease();
return this.objectCache.Count;
}
}
public void DisposeAndClear()
{
this.objectCache.DisposeAndClear();
}
public void Eject(Type pluginType, Instance instance)
{
this.ObjectCache.Eject(pluginType, instance);
this.CheckLease();
}
public bool Has(Type pluginType, Instance instance)
{
this.CheckLease();
return this.objectCache.Has(pluginType, instance);
}
public object Locker
{
get { return this.objectCache.Locker; }
}
public object Get(Type pluginType, Instance instance)
{
this.CheckLease();
return this.objectCache.Get(pluginType, instance);
}
public void Set(Type pluginType, Instance instance, object value)
{
this.objectCache.Set(pluginType, instance, value);
this.lease.Renew();
}
private void CheckLease()
{
if (this.lease.IsExpired)
{
this.objectCache.DisposeAndClear();
}
}
}
public partial class LeasedObjectCache
{
public LeasedObjectCache(ILease lease, IObjectCache objectCache)
{
if (lease == null)
{
throw new ArgumentNullException("lease");
}
if (objectCache == null)
{
throw new ArgumentNullException("objectCache");
}
this.lease = lease;
this.objectCache = objectCache;
}
public IObjectCache ObjectCache
{
get { return this.objectCache; }
}
public ILease Lease
{
get { return this.lease; }
}
}
}
| 24.160377 | 73 | 0.52909 | [
"MIT"
] | owolp/Telerik-Academy | Module-2/Design-Patterns/Materials/DI.NET/DIContainers/StructureMapMenu/LeasedObjectCache.cs | 2,563 | C# |
using System.Reflection;
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("AWSSDK.CloudSearchDomain")]
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudSearch Domain. Amazon CloudSearch Domain encapsulates a collection of data you want to search, the search instances that process your search requests, and a configuration that controls how your data is indexed and searched.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[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)]
// 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("3.3")]
[assembly: AssemblyFileVersion("3.7.0.125")] | 49.59375 | 315 | 0.758034 | [
"Apache-2.0"
] | andyhopp/aws-sdk-net | sdk/code-analysis/ServiceAnalysis/CloudSearchDomain/Properties/AssemblyInfo.cs | 1,587 | C# |
using Alexa.NET.APL.JsonConverter;
using Newtonsoft.Json;
namespace Alexa.NET.APL.Audio
{
public class Selector : APLAMultiChildComponent
{
[JsonProperty("strategy",NullValueHandling = NullValueHandling.Ignore),
JsonConverter(typeof(APLValueEnumConverter<SelectorStrategy>))]
public APLValue<SelectorStrategy?> Strategy { get; set; }
public override string Type => "Selector";
}
} | 30.571429 | 79 | 0.71729 | [
"MIT"
] | stoiveyp/Alexa.NET.APL | Alexa.NET.APL/Audio/Selector.cs | 430 | C# |
namespace Rsdn.Community.Interaction.Requests.Update
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Relay.RequestModel;
public class UpdateDirectoryCommand : CommandBase
{
}
} | 23.166667 | 54 | 0.694245 | [
"MIT"
] | vborovikov/rsdn | src/RsdnCore/Community/Interaction/Requests/Update/UpdateDirectoryCommand.cs | 280 | C# |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs.Script.WebHost.Management.LinuxSpecialization;
using Microsoft.Extensions.Logging;
namespace Microsoft.Azure.WebJobs.Script.WebHost.Models
{
public class RunFromPackageContext
{
private readonly RunFromPackageCloudBlockBlobService _runFromPackageCloudBlockBlobService;
public RunFromPackageContext(string envVarName, string url, long? packageContentLength, bool isWarmupRequest, RunFromPackageCloudBlockBlobService runFromPackageCloudBlockBlobService = null)
{
_runFromPackageCloudBlockBlobService = runFromPackageCloudBlockBlobService ?? new RunFromPackageCloudBlockBlobService();
EnvironmentVariableName = envVarName;
Url = url;
PackageContentLength = packageContentLength;
IsWarmUpRequest = isWarmupRequest;
}
public string EnvironmentVariableName { get; set; }
public string Url { get; set; }
public long? PackageContentLength { get; set; }
public bool IsWarmUpRequest { get; }
public bool IsScmRunFromPackage()
{
return string.Equals(EnvironmentVariableName, EnvironmentSettingNames.ScmRunFromPackage,
StringComparison.OrdinalIgnoreCase);
}
public async Task<bool> IsRunFromPackage(ILogger logger)
{
return (IsScmRunFromPackage() && await _runFromPackageCloudBlockBlobService.BlobExists(Url, EnvironmentVariableName, logger)) ||
(!IsScmRunFromPackage() && !string.IsNullOrEmpty(Url) && Url != "1");
}
}
}
| 39.911111 | 197 | 0.709911 | [
"Apache-2.0",
"MIT"
] | ConnectionMaster/azure-functions-host | src/WebJobs.Script.WebHost/Models/RunFromPackageContext.cs | 1,798 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using UnityEngine.Serialization;
using UnityEngine;
using UnityEngine.UI;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace UserInterface
{
[AddComponentMenu(NamingHelper.InputField.Name, 5)]
public class GMInputField
: Selectable,
IUpdateSelectedHandler,
IBeginDragHandler,
IDragHandler,
IEndDragHandler,
IPointerClickHandler,
ISubmitHandler,
ICanvasElement,
ILayoutElement {
// Setting the content type acts as a shortcut for setting a combination of InputType, CharacterValidation, LineType, and TouchScreenKeyboardType
public enum ContentType {
Standard,
Autocorrected,
IntegerNumber,
DecimalNumber,
Alphanumeric,
Name,
EmailAddress,
Password,
Pin,
Custom
}
public enum InputType {
Standard,
AutoCorrect,
Password,
}
public enum CharacterValidation {
None,
Integer,
Decimal,
Alphanumeric,
Name,
EmailAddress
}
public enum LineType {
SingleLine,
MultiLineSubmit,
MultiLineNewline
}
public delegate char OnValidateInput(string text, int charIndex, char addedChar);
[Serializable]
public class SubmitEvent : UnityEvent<string> { }
[Serializable]
public class OnChangeEvent : UnityEvent<string> { }
protected TouchScreenKeyboard m_Keyboard;
static private readonly char[] kSeparators = { ' ', '.', ',', '\t', '\r', '\n' };
/// <summary>
/// (De)activate VirtualKeyboard
/// </summary>
public static bool VirtualKeyboardActive { get; set; } = false;
/// <summary>
/// Text Text used to display the input's value.
/// </summary>
[SerializeField]
[FormerlySerializedAs("text")]
protected Text m_TextComponent;
[SerializeField]
protected Graphic m_Placeholder;
[SerializeField]
private ContentType m_ContentType = ContentType.Standard;
/// <summary>
/// Type of data expected by the input field.
/// </summary>
[FormerlySerializedAs("inputType")]
[SerializeField]
private InputType m_InputType = InputType.Standard;
/// <summary>
/// The character used to hide text in password field.
/// </summary>
[FormerlySerializedAs("asteriskChar")]
[SerializeField]
private char m_AsteriskChar = '*';
/// <summary>
/// Keyboard type applies to mobile keyboards that get shown.
/// </summary>
[FormerlySerializedAs("keyboardType")]
[SerializeField]
private TouchScreenKeyboardType m_KeyboardType = TouchScreenKeyboardType.Default;
[SerializeField]
private LineType m_LineType = LineType.SingleLine;
/// <summary>
/// Should hide mobile input.
/// </summary>
[FormerlySerializedAs("hideMobileInput")]
[SerializeField]
private bool m_HideMobileInput = false;
/// <summary>
/// What kind of validation to use with the input field's data.
/// </summary>
[FormerlySerializedAs("validation")]
[SerializeField]
private CharacterValidation m_CharacterValidation = CharacterValidation.None;
/// <summary>
/// Maximum number of characters allowed before input no longer works.
/// </summary>
[FormerlySerializedAs("characterLimit")]
[SerializeField]
private int m_CharacterLimit = 0;
/// <summary>
/// Event delegates triggered when the input field submits its data.
/// </summary>
[FormerlySerializedAs("onSubmit")]
[FormerlySerializedAs("m_OnSubmit")]
[FormerlySerializedAs("m_EndEdit")]
[SerializeField]
private SubmitEvent m_OnEndEdit = new SubmitEvent();
/// <summary>
/// Event delegates triggered when the input field changes its data.
/// </summary>
[FormerlySerializedAs("onValueChange")]
[FormerlySerializedAs("m_OnValueChange")]
[SerializeField]
private OnChangeEvent m_OnValueChanged = new OnChangeEvent();
/// <summary>
/// Custom validation callback.
/// </summary>
[FormerlySerializedAs("onValidateInput")]
[SerializeField]
private OnValidateInput m_OnValidateInput;
[SerializeField]
private Color m_CaretColor = new Color(50f / 255f, 50f / 255f, 50f / 255f, 1f);
[SerializeField]
private bool m_CustomCaretColor = false;
[FormerlySerializedAs("selectionColor")]
[SerializeField]
private Color m_SelectionColor = new Color(168f / 255f, 206f / 255f, 255f / 255f, 192f / 255f);
/// <summary>
/// Input field's value.
/// </summary>
[SerializeField]
[FormerlySerializedAs("mValue")]
protected string m_Text = string.Empty;
[SerializeField]
[Range(0f, 4f)]
private float m_CaretBlinkRate = 0.85f;
[SerializeField]
[Range(1, 5)]
private int m_CaretWidth = 1;
[SerializeField]
private bool m_ReadOnly = false;
protected int m_CaretPosition = 0;
protected int m_CaretSelectPosition = 0;
private RectTransform caretRectTrans = null;
protected UIVertex[] m_CursorVerts = null;
private TextGenerator m_InputTextCache;
private CanvasRenderer m_CachedInputRenderer;
private bool m_PreventFontCallback = false;
[NonSerialized] protected Mesh m_Mesh;
private bool m_AllowInput = false;
private bool m_ShouldActivateNextUpdate = false;
private bool m_UpdateDrag = false;
private bool m_DragPositionOutOfBounds = false;
private const float kHScrollSpeed = 0.05f;
private const float kVScrollSpeed = 0.10f;
protected bool m_CaretVisible;
private Coroutine m_BlinkCoroutine = null;
private float m_BlinkStartTime = 0.0f;
protected int m_DrawStart = 0;
protected int m_DrawEnd = 0;
private Coroutine m_DragCoroutine = null;
private string m_OriginalText = "";
private bool m_WasCanceled = false;
private bool m_HasDoneFocusTransition = false;
private BaseInput input {
get {
if (EventSystem.current && EventSystem.current.currentInputModule)
return EventSystem.current.currentInputModule.input;
return null;
}
}
private string compositionString {
get { return input != null ? input.compositionString : Input.compositionString; }
}
// Doesn't include dot and @ on purpose! See usage for details.
const string kEmailSpecialCharacters = "!#$%&'*+-/=?^_`{|}~";
protected GMInputField() {
EnforceTextHOverflow();
}
protected Mesh mesh {
get {
if (m_Mesh == null)
m_Mesh = new Mesh();
return m_Mesh;
}
}
protected TextGenerator cachedInputTextGenerator {
get {
if (m_InputTextCache == null)
m_InputTextCache = new TextGenerator();
return m_InputTextCache;
}
}
/// <summary>
/// Should the mobile keyboard input be hidden.
/// </summary>
public bool shouldHideMobileInput {
set {
SetPropertyUtility.SetStruct(ref m_HideMobileInput, value);
}
get {
switch (Application.platform) {
case RuntimePlatform.Android:
case RuntimePlatform.IPhonePlayer:
case RuntimePlatform.tvOS:
return m_HideMobileInput;
}
return true;
}
}
bool shouldActivateOnSelect {
get {
return Application.platform != RuntimePlatform.tvOS;
}
}
/// <summary>
/// Input field's current text value.
/// </summary>
public string text {
get {
return m_Text;
}
set {
if (this.text == value)
return;
if (value == null)
value = "";
value = value.Replace("\0", string.Empty); // remove embedded nulls
if (m_LineType == LineType.SingleLine)
value = value.Replace("\n", "").Replace("\t", "");
// If we have an input validator, validate the input and apply the character limit at the same time.
if (onValidateInput != null || characterValidation != CharacterValidation.None) {
m_Text = "";
OnValidateInput validatorMethod = onValidateInput ?? Validate;
m_CaretPosition = m_CaretSelectPosition = value.Length;
int charactersToCheck = characterLimit > 0 ? Math.Min(characterLimit, value.Length) : value.Length;
for (int i = 0; i < charactersToCheck; ++i) {
char c = validatorMethod(m_Text, m_Text.Length, value[i]);
if (c != 0)
m_Text += c;
}
} else {
m_Text = characterLimit > 0 && value.Length > characterLimit ? value.Substring(0, characterLimit) : value;
}
#if UNITY_EDITOR
if (!Application.isPlaying) {
SendOnValueChangedAndUpdateLabel();
return;
}
#endif
if (m_Keyboard != null)
m_Keyboard.text = m_Text;
if (m_CaretPosition > m_Text.Length)
m_CaretPosition = m_CaretSelectPosition = m_Text.Length;
else if (m_CaretSelectPosition > m_Text.Length)
m_CaretSelectPosition = m_Text.Length;
SendOnValueChangedAndUpdateLabel();
}
}
public bool isFocused {
get { return m_AllowInput; }
}
public float caretBlinkRate {
get { return m_CaretBlinkRate; }
set {
if (SetPropertyUtility.SetStruct(ref m_CaretBlinkRate, value)) {
if (m_AllowInput)
SetCaretActive();
}
}
}
public int caretWidth { get { return m_CaretWidth; } set { if (SetPropertyUtility.SetStruct(ref m_CaretWidth, value)) MarkGeometryAsDirty(); } }
public Text textComponent {
get { return m_TextComponent; }
set {
if (m_TextComponent != null) {
m_TextComponent.UnregisterDirtyVerticesCallback(MarkGeometryAsDirty);
m_TextComponent.UnregisterDirtyVerticesCallback(UpdateLabel);
m_TextComponent.UnregisterDirtyMaterialCallback(UpdateCaretMaterial);
}
if (SetPropertyUtility.SetClass(ref m_TextComponent, value)) {
EnforceTextHOverflow();
if (m_TextComponent != null) {
m_TextComponent.RegisterDirtyVerticesCallback(MarkGeometryAsDirty);
m_TextComponent.RegisterDirtyVerticesCallback(UpdateLabel);
m_TextComponent.RegisterDirtyMaterialCallback(UpdateCaretMaterial);
}
}
}
}
public Graphic placeholder { get { return m_Placeholder; } set { SetPropertyUtility.SetClass(ref m_Placeholder, value); } }
public Color caretColor { get { return customCaretColor ? m_CaretColor : textComponent.color; } set { if (SetPropertyUtility.SetColor(ref m_CaretColor, value)) MarkGeometryAsDirty(); } }
public bool customCaretColor { get { return m_CustomCaretColor; } set { if (m_CustomCaretColor != value) { m_CustomCaretColor = value; MarkGeometryAsDirty(); } } }
public Color selectionColor { get { return m_SelectionColor; } set { if (SetPropertyUtility.SetColor(ref m_SelectionColor, value)) MarkGeometryAsDirty(); } }
public SubmitEvent onEndEdit { get { return m_OnEndEdit; } set { SetPropertyUtility.SetClass(ref m_OnEndEdit, value); } }
[Obsolete("onValueChange has been renamed to onValueChanged")]
public OnChangeEvent onValueChange { get { return onValueChanged; } set { onValueChanged = value; } }
public OnChangeEvent onValueChanged { get { return m_OnValueChanged; } set { SetPropertyUtility.SetClass(ref m_OnValueChanged, value); } }
public OnValidateInput onValidateInput { get { return m_OnValidateInput; } set { SetPropertyUtility.SetClass(ref m_OnValidateInput, value); } }
public int characterLimit { get { return m_CharacterLimit; } set { if (SetPropertyUtility.SetStruct(ref m_CharacterLimit, Math.Max(0, value))) UpdateLabel(); } }
// Content Type related
public ContentType contentType { get { return m_ContentType; } set { if (SetPropertyUtility.SetStruct(ref m_ContentType, value)) EnforceContentType(); } }
public LineType lineType {
get { return m_LineType; }
set {
if (SetPropertyUtility.SetStruct(ref m_LineType, value)) {
SetToCustomIfContentTypeIsNot(ContentType.Standard, ContentType.Autocorrected);
EnforceTextHOverflow();
}
}
}
public InputType inputType { get { return m_InputType; } set { if (SetPropertyUtility.SetStruct(ref m_InputType, value)) SetToCustom(); } }
public TouchScreenKeyboardType keyboardType {
get { return m_KeyboardType; }
set {
if (value == TouchScreenKeyboardType.NintendoNetworkAccount)
Debug.LogWarning("Invalid InputField.keyboardType value set. TouchScreenKeyboardType.NintendoNetworkAccount only applies to the Wii U. InputField.keyboardType will default to TouchScreenKeyboardType.Default .");
if (SetPropertyUtility.SetStruct(ref m_KeyboardType, value))
SetToCustom();
}
}
public CharacterValidation characterValidation { get { return m_CharacterValidation; } set { if (SetPropertyUtility.SetStruct(ref m_CharacterValidation, value)) SetToCustom(); } }
public bool readOnly { get { return m_ReadOnly; } set { m_ReadOnly = value; } }
// Derived property
public bool multiLine { get { return m_LineType == LineType.MultiLineNewline || lineType == LineType.MultiLineSubmit; } }
// Not shown in Inspector.
public char asteriskChar { get { return m_AsteriskChar; } set { if (SetPropertyUtility.SetStruct(ref m_AsteriskChar, value)) UpdateLabel(); } }
public bool wasCanceled { get { return m_WasCanceled; } }
protected void ClampPos(ref int pos) {
if (pos < 0) pos = 0;
else if (pos > text.Length) pos = text.Length;
}
/// <summary>
/// Current position of the cursor.
/// Getters are public Setters are protected
/// </summary>
protected int caretPositionInternal { get { return m_CaretPosition + compositionString.Length; } set { m_CaretPosition = value; ClampPos(ref m_CaretPosition); } }
protected int caretSelectPositionInternal { get { return m_CaretSelectPosition + compositionString.Length; } set { m_CaretSelectPosition = value; ClampPos(ref m_CaretSelectPosition); } }
private bool hasSelection { get { return caretPositionInternal != caretSelectPositionInternal; } }
#if UNITY_EDITOR
[Obsolete("caretSelectPosition has been deprecated. Use selectionFocusPosition instead (UnityUpgradable) -> selectionFocusPosition", true)]
public int caretSelectPosition { get { return selectionFocusPosition; } protected set { selectionFocusPosition = value; } }
#endif
/// <summary>
/// Get: Returns the focus position as thats the position that moves around even during selection.
/// Set: Set both the anchor and focus position such that a selection doesn't happen
/// </summary>
public int caretPosition {
get { return m_CaretSelectPosition + compositionString.Length; }
set { selectionAnchorPosition = value; selectionFocusPosition = value; }
}
/// <summary>
/// Get: Returns the fixed position of selection
/// Set: If Input.compositionString is 0 set the fixed position
/// </summary>
public int selectionAnchorPosition {
get { return m_CaretPosition + compositionString.Length; }
set {
if (compositionString.Length != 0)
return;
m_CaretPosition = value;
ClampPos(ref m_CaretPosition);
}
}
/// <summary>
/// Get: Returns the variable position of selection
/// Set: If Input.compositionString is 0 set the variable position
/// </summary>
public int selectionFocusPosition {
get { return m_CaretSelectPosition + compositionString.Length; }
set {
if (compositionString.Length != 0)
return;
m_CaretSelectPosition = value;
ClampPos(ref m_CaretSelectPosition);
}
}
#if UNITY_EDITOR
// Remember: This is NOT related to text validation!
// This is Unity's own OnValidate method which is invoked when changing values in the Inspector.
protected override void OnValidate() {
base.OnValidate();
EnforceContentType();
EnforceTextHOverflow();
m_CharacterLimit = Math.Max(0, m_CharacterLimit);
//This can be invoked before OnEnabled is called. So we shouldn't be accessing other objects, before OnEnable is called.
if (!IsActive())
return;
UpdateLabel();
if (m_AllowInput)
SetCaretActive();
}
#endif // if UNITY_EDITOR
protected override void OnEnable() {
base.OnEnable();
if (m_Text == null)
m_Text = string.Empty;
m_DrawStart = 0;
m_DrawEnd = m_Text.Length;
// If we have a cached renderer then we had OnDisable called so just restore the material.
if (m_CachedInputRenderer != null)
m_CachedInputRenderer.SetMaterial(m_TextComponent.GetModifiedMaterial(Graphic.defaultGraphicMaterial), Texture2D.whiteTexture);
if (m_TextComponent != null) {
m_TextComponent.RegisterDirtyVerticesCallback(MarkGeometryAsDirty);
m_TextComponent.RegisterDirtyVerticesCallback(UpdateLabel);
m_TextComponent.RegisterDirtyMaterialCallback(UpdateCaretMaterial);
UpdateLabel();
}
}
protected override void OnDisable() {
// the coroutine will be terminated, so this will ensure it restarts when we are next activated
m_BlinkCoroutine = null;
DeactivateInputField();
if (m_TextComponent != null) {
m_TextComponent.UnregisterDirtyVerticesCallback(MarkGeometryAsDirty);
m_TextComponent.UnregisterDirtyVerticesCallback(UpdateLabel);
m_TextComponent.UnregisterDirtyMaterialCallback(UpdateCaretMaterial);
}
CanvasUpdateRegistry.UnRegisterCanvasElementForRebuild(this);
// Clear needs to be called otherwise sync never happens as the object is disabled.
if (m_CachedInputRenderer != null)
m_CachedInputRenderer.Clear();
if (m_Mesh != null)
DestroyImmediate(m_Mesh);
m_Mesh = null;
base.OnDisable();
}
IEnumerator CaretBlink() {
// Always ensure caret is initially visible since it can otherwise be confusing for a moment.
m_CaretVisible = true;
yield return null;
while (isFocused && m_CaretBlinkRate > 0) {
// the blink rate is expressed as a frequency
float blinkPeriod = 1f / m_CaretBlinkRate;
// the caret should be ON if we are in the first half of the blink period
bool blinkState = (Time.unscaledTime - m_BlinkStartTime) % blinkPeriod < blinkPeriod / 2;
if (m_CaretVisible != blinkState) {
m_CaretVisible = blinkState;
if (!hasSelection)
MarkGeometryAsDirty();
}
// Then wait again.
yield return null;
}
m_BlinkCoroutine = null;
}
void SetCaretVisible() {
if (!m_AllowInput)
return;
m_CaretVisible = true;
m_BlinkStartTime = Time.unscaledTime;
SetCaretActive();
}
// SetCaretActive will not set the caret immediately visible - it will wait for the next time to blink.
// However, it will handle things correctly if the blink speed changed from zero to non-zero or non-zero to zero.
void SetCaretActive() {
if (!m_AllowInput)
return;
if (m_CaretBlinkRate > 0.0f) {
if (m_BlinkCoroutine == null)
m_BlinkCoroutine = StartCoroutine(CaretBlink());
} else {
m_CaretVisible = true;
}
}
private void UpdateCaretMaterial() {
if (m_TextComponent != null && m_CachedInputRenderer != null)
m_CachedInputRenderer.SetMaterial(m_TextComponent.GetModifiedMaterial(Graphic.defaultGraphicMaterial), Texture2D.whiteTexture);
}
protected void OnFocus() {
//SelectAll();
caretPosition = text.Length;
}
protected void SelectAll() {
caretPositionInternal = text.Length;
caretSelectPositionInternal = 0;
}
public void MoveTextEnd(bool shift) {
int position = text.Length;
if (shift) {
caretSelectPositionInternal = position;
} else {
caretPositionInternal = position;
caretSelectPositionInternal = caretPositionInternal;
}
UpdateLabel();
}
public void MoveTextStart(bool shift) {
int position = 0;
if (shift) {
caretSelectPositionInternal = position;
} else {
caretPositionInternal = position;
caretSelectPositionInternal = caretPositionInternal;
}
UpdateLabel();
}
static string clipboard {
get {
return GUIUtility.systemCopyBuffer;
}
set {
GUIUtility.systemCopyBuffer = value;
}
}
private bool InPlaceEditing() {
return !TouchScreenKeyboard.isSupported;
}
void UpdateCaretFromKeyboard() {
RangeInt selectionRange = m_Keyboard.selection;
int selectionStart = selectionRange.start;
int selectionEnd = selectionRange.end;
bool caretChanged = false;
if (caretPositionInternal != selectionStart) {
caretChanged = true;
caretPositionInternal = selectionStart;
}
if (caretSelectPositionInternal != selectionEnd) {
caretSelectPositionInternal = selectionEnd;
caretChanged = true;
}
if (caretChanged) {
m_BlinkStartTime = Time.unscaledTime;
UpdateLabel();
}
}
/// <summary>
/// Update the text based on input.
/// </summary>
// TODO: Make LateUpdate a coroutine instead. Allows us to control the update to only be when the field is active.
protected virtual void LateUpdate() {
// Only activate if we are not already activated.
if (m_ShouldActivateNextUpdate) {
if (!isFocused) {
ActivateInputFieldInternal();
m_ShouldActivateNextUpdate = false;
return;
}
// Reset as we are already activated.
m_ShouldActivateNextUpdate = false;
}
if (InPlaceEditing() || !isFocused)
return;
AssignPositioningIfNeeded();
if (m_Keyboard == null || m_Keyboard.done) {
if (m_Keyboard != null) {
if (!m_ReadOnly)
text = m_Keyboard.text;
if (m_Keyboard.wasCanceled)
m_WasCanceled = true;
}
OnDeselect(null);
return;
}
string val = m_Keyboard.text;
if (m_Text != val) {
if (m_ReadOnly) {
m_Keyboard.text = m_Text;
} else {
m_Text = "";
for (int i = 0; i < val.Length; ++i) {
char c = val[i];
if (c == '\r' || (int)c == 3)
c = '\n';
if (onValidateInput != null)
c = onValidateInput(m_Text, m_Text.Length, c);
else if (characterValidation != CharacterValidation.None)
c = Validate(m_Text, m_Text.Length, c);
if (lineType == LineType.MultiLineSubmit && c == '\n') {
m_Keyboard.text = m_Text;
OnDeselect(null);
return;
}
if (c != 0)
m_Text += c;
}
if (characterLimit > 0 && m_Text.Length > characterLimit)
m_Text = m_Text.Substring(0, characterLimit);
if (m_Keyboard.canGetSelection) {
UpdateCaretFromKeyboard();
} else {
caretPositionInternal = caretSelectPositionInternal = m_Text.Length;
}
// Set keyboard text before updating label, as we might have changed it with validation
// and update label will take the old value from keyboard if we don't change it here
if (m_Text != val)
m_Keyboard.text = m_Text;
SendOnValueChangedAndUpdateLabel();
}
} else if (m_Keyboard.canGetSelection) {
UpdateCaretFromKeyboard();
}
if (m_Keyboard.done) {
if (m_Keyboard.wasCanceled)
m_WasCanceled = true;
OnDeselect(null);
}
}
[Obsolete("This function is no longer used. Please use RectTransformUtility.ScreenPointToLocalPointInRectangle() instead.")]
public Vector2 ScreenToLocal(Vector2 screen) {
Canvas theCanvas = m_TextComponent.canvas;
if (theCanvas == null)
return screen;
Vector3 pos = Vector3.zero;
if (theCanvas.renderMode == RenderMode.ScreenSpaceOverlay) {
pos = m_TextComponent.transform.InverseTransformPoint(screen);
} else if (theCanvas.worldCamera != null) {
Ray mouseRay = theCanvas.worldCamera.ScreenPointToRay(screen);
float dist;
Plane plane = new Plane(m_TextComponent.transform.forward, m_TextComponent.transform.position);
plane.Raycast(mouseRay, out dist);
pos = m_TextComponent.transform.InverseTransformPoint(mouseRay.GetPoint(dist));
}
return new Vector2(pos.x, pos.y);
}
private int GetUnclampedCharacterLineFromPosition(Vector2 pos, TextGenerator generator) {
if (!multiLine)
return 0;
// transform y to local scale
float y = pos.y * m_TextComponent.pixelsPerUnit;
float lastBottomY = 0.0f;
for (int i = 0; i < generator.lineCount; ++i) {
float topY = generator.lines[i].topY;
float bottomY = topY - generator.lines[i].height;
// pos is somewhere in the leading above this line
if (y > topY) {
// determine which line we're closer to
float leading = topY - lastBottomY;
if (y > topY - 0.5f * leading)
return i - 1;
else
return i;
}
if (y > bottomY)
return i;
lastBottomY = bottomY;
}
// Position is after last line.
return generator.lineCount;
}
/// <summary>
/// Given an input position in local space on the Text return the index for the selection cursor at this position.
/// </summary>
protected int GetCharacterIndexFromPosition(Vector2 pos) {
TextGenerator gen = m_TextComponent.cachedTextGenerator;
if (gen.lineCount == 0)
return 0;
int line = GetUnclampedCharacterLineFromPosition(pos, gen);
if (line < 0)
return 0;
if (line >= gen.lineCount)
return gen.characterCountVisible;
int startCharIndex = gen.lines[line].startCharIdx;
int endCharIndex = GetLineEndPosition(gen, line);
for (int i = startCharIndex; i < endCharIndex; i++) {
if (i >= gen.characterCountVisible)
break;
UICharInfo charInfo = gen.characters[i];
Vector2 charPos = charInfo.cursorPos / m_TextComponent.pixelsPerUnit;
float distToCharStart = pos.x - charPos.x;
float distToCharEnd = charPos.x + (charInfo.charWidth / m_TextComponent.pixelsPerUnit) - pos.x;
if (distToCharStart < distToCharEnd)
return i;
}
return endCharIndex;
}
private bool MayDrag(PointerEventData eventData) {
return IsActive() &&
IsInteractable() &&
eventData.button == PointerEventData.InputButton.Left &&
m_TextComponent != null &&
m_Keyboard == null;
}
public virtual void OnBeginDrag(PointerEventData eventData) {
if (!MayDrag(eventData))
return;
m_UpdateDrag = true;
}
public virtual void OnDrag(PointerEventData eventData) {
if (!MayDrag(eventData))
return;
Vector2 localMousePos;
RectTransformUtility.ScreenPointToLocalPointInRectangle(textComponent.rectTransform, eventData.position, eventData.pressEventCamera, out localMousePos);
caretSelectPositionInternal = GetCharacterIndexFromPosition(localMousePos) + m_DrawStart;
MarkGeometryAsDirty();
m_DragPositionOutOfBounds = !RectTransformUtility.RectangleContainsScreenPoint(textComponent.rectTransform, eventData.position, eventData.pressEventCamera);
if (m_DragPositionOutOfBounds && m_DragCoroutine == null)
m_DragCoroutine = StartCoroutine(MouseDragOutsideRect(eventData));
eventData.Use();
}
IEnumerator MouseDragOutsideRect(PointerEventData eventData) {
while (m_UpdateDrag && m_DragPositionOutOfBounds) {
Vector2 localMousePos;
RectTransformUtility.ScreenPointToLocalPointInRectangle(textComponent.rectTransform, eventData.position, eventData.pressEventCamera, out localMousePos);
Rect rect = textComponent.rectTransform.rect;
if (multiLine) {
if (localMousePos.y > rect.yMax)
MoveUp(true, true);
else if (localMousePos.y < rect.yMin)
MoveDown(true, true);
} else {
if (localMousePos.x < rect.xMin)
MoveLeft(true, false);
else if (localMousePos.x > rect.xMax)
MoveRight(true, false);
}
UpdateLabel();
float delay = multiLine ? kVScrollSpeed : kHScrollSpeed;
yield return new WaitForSecondsRealtime(delay);
}
m_DragCoroutine = null;
}
public virtual void OnEndDrag(PointerEventData eventData) {
if (!MayDrag(eventData))
return;
m_UpdateDrag = false;
}
public override void OnPointerDown(PointerEventData eventData) {
if (!MayDrag(eventData))
return;
EventSystem.current.SetSelectedGameObject(gameObject, eventData);
bool hadFocusBefore = m_AllowInput;
base.OnPointerDown(eventData);
if (!InPlaceEditing()) {
if (m_Keyboard == null || !m_Keyboard.active) {
OnSelect(eventData);
return;
}
}
// Only set caret position if we didn't just get focus now.
// Otherwise it will overwrite the select all on focus.
if (hadFocusBefore) {
Vector2 localMousePos;
RectTransformUtility.ScreenPointToLocalPointInRectangle(textComponent.rectTransform, eventData.position, eventData.pressEventCamera, out localMousePos);
caretSelectPositionInternal = caretPositionInternal = GetCharacterIndexFromPosition(localMousePos) + m_DrawStart;
}
UpdateLabel();
eventData.Use();
}
protected enum EditState {
Continue,
Finish
}
protected EditState KeyPressed(Event evt) {
EventModifiers currentEventModifiers = evt.modifiers;
bool ctrl = SystemInfo.operatingSystemFamily == OperatingSystemFamily.MacOSX ? (currentEventModifiers & EventModifiers.Command) != 0 : (currentEventModifiers & EventModifiers.Control) != 0;
bool shift = (currentEventModifiers & EventModifiers.Shift) != 0;
bool alt = (currentEventModifiers & EventModifiers.Alt) != 0;
bool ctrlOnly = ctrl && !alt && !shift;
switch (evt.keyCode) {
case KeyCode.Backspace: {
Backspace();
return EditState.Continue;
}
case KeyCode.Delete: {
ForwardSpace();
return EditState.Continue;
}
case KeyCode.Home: {
MoveTextStart(shift);
return EditState.Continue;
}
case KeyCode.End: {
MoveTextEnd(shift);
return EditState.Continue;
}
// Select All
case KeyCode.A: {
if (ctrlOnly) {
SelectAll();
return EditState.Continue;
}
break;
}
// Copy
case KeyCode.C: {
if (ctrlOnly) {
if (inputType != InputType.Password)
clipboard = GetSelectedString();
else
clipboard = "";
return EditState.Continue;
}
break;
}
// Paste
case KeyCode.V: {
if (ctrlOnly) {
Append(clipboard);
return EditState.Continue;
}
break;
}
// Cut
case KeyCode.X: {
if (ctrlOnly) {
if (inputType != InputType.Password)
clipboard = GetSelectedString();
else
clipboard = "";
Delete();
SendOnValueChangedAndUpdateLabel();
return EditState.Continue;
}
break;
}
case KeyCode.LeftArrow: {
MoveLeft(shift, ctrl);
return EditState.Continue;
}
case KeyCode.RightArrow: {
MoveRight(shift, ctrl);
return EditState.Continue;
}
//case KeyCode.UpArrow: {
// MoveUp(shift);
// return EditState.Continue;
// }
//case KeyCode.DownArrow: {
// MoveDown(shift);
// return EditState.Continue;
// }
// Submit
case KeyCode.Return:
case KeyCode.KeypadEnter: {
if (lineType != LineType.MultiLineNewline) {
return EditState.Finish;
}
break;
}
case KeyCode.Escape: {
m_WasCanceled = true;
return EditState.Finish;
}
}
char c = evt.character;
// Don't allow return chars or tabulator key to be entered into single line fields.
if (!multiLine && (c == '\t' || c == '\r' || c == 10))
return EditState.Continue;
// Convert carriage return and end-of-text characters to newline.
if (c == '\r' || (int)c == 3)
c = '\n';
if (IsValidChar(c)) {
Append(c);
}
if (c == 0) {
if (compositionString.Length > 0) {
UpdateLabel();
}
}
return EditState.Continue;
}
private bool IsValidChar(char c) {
// Delete key on mac
if ((int)c == 127)
return false;
// Accept newline and tab
if (c == '\t' || c == '\n')
return true;
return m_TextComponent.font.HasCharacter(c);
}
/// <summary>
/// Handle the specified event.
/// </summary>
private Event m_ProcessingEvent = new Event();
public void ProcessEvent(Event e) {
KeyPressed(e);
}
public virtual void OnUpdateSelected(BaseEventData eventData) {
if (!isFocused)
return;
bool consumedEvent = false;
while (Event.PopEvent(m_ProcessingEvent)) {
if (m_ProcessingEvent.rawType == EventType.KeyDown) {
consumedEvent = true;
EditState shouldContinue = KeyPressed(m_ProcessingEvent);
if (shouldContinue == EditState.Finish) {
DeactivateInputField();
break;
}
}
switch (m_ProcessingEvent.type) {
case EventType.ValidateCommand:
case EventType.ExecuteCommand:
switch (m_ProcessingEvent.commandName) {
case "SelectAll":
SelectAll();
consumedEvent = true;
break;
}
break;
}
}
if (consumedEvent)
UpdateLabel();
eventData.Use();
}
private string GetSelectedString() {
if (!hasSelection)
return "";
int startPos = caretPositionInternal;
int endPos = caretSelectPositionInternal;
// Ensure startPos is always less then endPos to make the code simpler
if (startPos > endPos) {
int temp = startPos;
startPos = endPos;
endPos = temp;
}
return text.Substring(startPos, endPos - startPos);
}
private int FindtNextWordBegin() {
if (caretSelectPositionInternal + 1 >= text.Length)
return text.Length;
int spaceLoc = text.IndexOfAny(kSeparators, caretSelectPositionInternal + 1);
if (spaceLoc == -1)
spaceLoc = text.Length;
else
spaceLoc++;
return spaceLoc;
}
private void MoveRight(bool shift, bool ctrl) {
if (hasSelection && !shift) {
// By convention, if we have a selection and move right without holding shift,
// we just place the cursor at the end.
caretPositionInternal = caretSelectPositionInternal = Mathf.Max(caretPositionInternal, caretSelectPositionInternal);
return;
}
int position;
if (ctrl)
position = FindtNextWordBegin();
else
position = caretSelectPositionInternal + 1;
if (shift)
caretSelectPositionInternal = position;
else
caretSelectPositionInternal = caretPositionInternal = position;
}
private int FindtPrevWordBegin() {
if (caretSelectPositionInternal - 2 < 0)
return 0;
int spaceLoc = text.LastIndexOfAny(kSeparators, caretSelectPositionInternal - 2);
if (spaceLoc == -1)
spaceLoc = 0;
else
spaceLoc++;
return spaceLoc;
}
private void MoveLeft(bool shift, bool ctrl) {
if (hasSelection && !shift) {
// By convention, if we have a selection and move left without holding shift,
// we just place the cursor at the start.
caretPositionInternal = caretSelectPositionInternal = Mathf.Min(caretPositionInternal, caretSelectPositionInternal);
return;
}
int position;
if (ctrl)
position = FindtPrevWordBegin();
else
position = caretSelectPositionInternal - 1;
if (shift)
caretSelectPositionInternal = position;
else
caretSelectPositionInternal = caretPositionInternal = position;
}
private int DetermineCharacterLine(int charPos, TextGenerator generator) {
for (int i = 0; i < generator.lineCount - 1; ++i) {
if (generator.lines[i + 1].startCharIdx > charPos)
return i;
}
return generator.lineCount - 1;
}
/// <summary>
/// Use cachedInputTextGenerator as the y component for the UICharInfo is not required
/// </summary>
private int LineUpCharacterPosition(int originalPos, bool goToFirstChar) {
if (originalPos >= cachedInputTextGenerator.characters.Count)
return 0;
UICharInfo originChar = cachedInputTextGenerator.characters[originalPos];
int originLine = DetermineCharacterLine(originalPos, cachedInputTextGenerator);
// We are on the first line return first character
if (originLine <= 0)
return goToFirstChar ? 0 : originalPos;
int endCharIdx = cachedInputTextGenerator.lines[originLine].startCharIdx - 1;
for (int i = cachedInputTextGenerator.lines[originLine - 1].startCharIdx; i < endCharIdx; ++i) {
if (cachedInputTextGenerator.characters[i].cursorPos.x >= originChar.cursorPos.x)
return i;
}
return endCharIdx;
}
/// <summary>
/// Use cachedInputTextGenerator as the y component for the UICharInfo is not required
/// </summary>
private int LineDownCharacterPosition(int originalPos, bool goToLastChar) {
if (originalPos >= cachedInputTextGenerator.characterCountVisible)
return text.Length;
UICharInfo originChar = cachedInputTextGenerator.characters[originalPos];
int originLine = DetermineCharacterLine(originalPos, cachedInputTextGenerator);
// We are on the last line return last character
if (originLine + 1 >= cachedInputTextGenerator.lineCount)
return goToLastChar ? text.Length : originalPos;
// Need to determine end line for next line.
int endCharIdx = GetLineEndPosition(cachedInputTextGenerator, originLine + 1);
for (int i = cachedInputTextGenerator.lines[originLine + 1].startCharIdx; i < endCharIdx; ++i) {
if (cachedInputTextGenerator.characters[i].cursorPos.x >= originChar.cursorPos.x)
return i;
}
return endCharIdx;
}
private void MoveDown(bool shift) {
MoveDown(shift, true);
}
private void MoveDown(bool shift, bool goToLastChar) {
if (hasSelection && !shift) {
// If we have a selection and press down without shift,
// set caret position to end of selection before we move it down.
caretPositionInternal = caretSelectPositionInternal = Mathf.Max(caretPositionInternal, caretSelectPositionInternal);
}
int position = multiLine ? LineDownCharacterPosition(caretSelectPositionInternal, goToLastChar) : text.Length;
if (shift)
caretSelectPositionInternal = position;
else
caretPositionInternal = caretSelectPositionInternal = position;
}
private void MoveUp(bool shift) {
MoveUp(shift, true);
}
private void MoveUp(bool shift, bool goToFirstChar) {
if (hasSelection && !shift) {
// If we have a selection and press up without shift,
// set caret position to start of selection before we move it up.
caretPositionInternal = caretSelectPositionInternal = Mathf.Min(caretPositionInternal, caretSelectPositionInternal);
}
int position = multiLine ? LineUpCharacterPosition(caretSelectPositionInternal, goToFirstChar) : 0;
if (shift)
caretSelectPositionInternal = position;
else
caretSelectPositionInternal = caretPositionInternal = position;
}
private void Delete() {
if (m_ReadOnly)
return;
if (caretPositionInternal == caretSelectPositionInternal)
return;
if (caretPositionInternal < caretSelectPositionInternal) {
m_Text = text.Substring(0, caretPositionInternal) + text.Substring(caretSelectPositionInternal, text.Length - caretSelectPositionInternal);
caretSelectPositionInternal = caretPositionInternal;
} else {
m_Text = text.Substring(0, caretSelectPositionInternal) + text.Substring(caretPositionInternal, text.Length - caretPositionInternal);
caretPositionInternal = caretSelectPositionInternal;
}
}
private void ForwardSpace() {
if (m_ReadOnly)
return;
if (hasSelection) {
Delete();
SendOnValueChangedAndUpdateLabel();
} else {
if (caretPositionInternal < text.Length) {
m_Text = text.Remove(caretPositionInternal, 1);
SendOnValueChangedAndUpdateLabel();
}
}
}
private void Backspace() {
if (m_ReadOnly)
return;
if (hasSelection) {
Delete();
SendOnValueChangedAndUpdateLabel();
} else {
if (caretPositionInternal > 0) {
m_Text = text.Remove(caretPositionInternal - 1, 1);
caretSelectPositionInternal = caretPositionInternal = caretPositionInternal - 1;
SendOnValueChangedAndUpdateLabel();
}
}
}
// Insert the character and update the label.
private void Insert(char c) {
if (m_ReadOnly)
return;
string replaceString = c.ToString();
Delete();
// Can't go past the character limit
if (characterLimit > 0 && text.Length >= characterLimit)
return;
m_Text = text.Insert(m_CaretPosition, replaceString);
caretSelectPositionInternal = caretPositionInternal += replaceString.Length;
SendOnValueChanged();
}
private void SendOnValueChangedAndUpdateLabel() {
SendOnValueChanged();
UpdateLabel();
}
private void SendOnValueChanged() {
UISystemProfilerApi.AddMarker("InputField.value", this);
if (onValueChanged != null)
onValueChanged.Invoke(text);
}
/// <summary>
/// Submit the input field's text.
/// </summary>
protected void SendOnSubmit() {
UISystemProfilerApi.AddMarker("InputField.onSubmit", this);
if (onEndEdit != null)
onEndEdit.Invoke(m_Text);
}
/// <summary>
/// Append the specified text to the end of the current.
/// </summary>
protected virtual void Append(string input) {
if (m_ReadOnly)
return;
if (!InPlaceEditing())
return;
for (int i = 0, imax = input.Length; i < imax; ++i) {
char c = input[i];
if (c >= ' ' || c == '\t' || c == '\r' || c == 10 || c == '\n') {
Append(c);
}
}
}
// cf. TextGenerator.cpp
private const int k_MaxTextLength = UInt16.MaxValue / 4 - 1;
protected virtual void Append(char input) {
if (m_ReadOnly || text.Length >= k_MaxTextLength)
return;
if (!InPlaceEditing())
return;
// If we have an input validator, validate the input first
int insertionPoint = Math.Min(selectionFocusPosition, selectionAnchorPosition);
if (onValidateInput != null)
input = onValidateInput(text, insertionPoint, input);
else if (characterValidation != CharacterValidation.None)
input = Validate(text, insertionPoint, input);
// If the input is invalid, skip it
if (input == 0)
return;
// Append the character and update the label
Insert(input);
}
/// <summary>
/// Update the visual text Text.
/// </summary>
protected void UpdateLabel() {
if (m_TextComponent != null && m_TextComponent.font != null && !m_PreventFontCallback) {
// TextGenerator.Populate invokes a callback that's called for anything
// that needs to be updated when the data for that font has changed.
// This makes all Text components that use that font update their vertices.
// In turn, this makes the InputField that's associated with that Text component
// update its label by calling this UpdateLabel method.
// This is a recursive call we want to prevent, since it makes the InputField
// update based on font data that didn't yet finish executing, or alternatively
// hang on infinite recursion, depending on whether the cached value is cached
// before or after the calculation.
//
// This callback also occurs when assigning text to our Text component, i.e.,
// m_TextComponent.text = processed;
m_PreventFontCallback = true;
string fullText;
if (compositionString.Length > 0)
fullText = text.Substring(0, m_CaretPosition) + compositionString + text.Substring(m_CaretPosition);
else
fullText = text;
string processed;
if (inputType == InputType.Password)
processed = new string(asteriskChar, fullText.Length);
else
processed = fullText;
bool isEmpty = string.IsNullOrEmpty(fullText);
if (m_Placeholder != null)
m_Placeholder.enabled = isEmpty;
// If not currently editing the text, set the visible range to the whole text.
// The UpdateLabel method will then truncate it to the part that fits inside the Text area.
// We can't do this when text is being edited since it would discard the current scroll,
// which is defined by means of the m_DrawStart and m_DrawEnd indices.
if (!m_AllowInput) {
m_DrawStart = 0;
m_DrawEnd = m_Text.Length;
}
if (!isEmpty) {
// Determine what will actually fit into the given line
Vector2 extents = m_TextComponent.rectTransform.rect.size;
TextGenerationSettings settings = m_TextComponent.GetGenerationSettings(extents);
settings.generateOutOfBounds = true;
cachedInputTextGenerator.PopulateWithErrors(processed, settings, gameObject);
SetDrawRangeToContainCaretPosition(caretSelectPositionInternal);
processed = processed.Substring(m_DrawStart, Mathf.Min(m_DrawEnd, processed.Length) - m_DrawStart);
SetCaretVisible();
}
m_TextComponent.text = processed;
MarkGeometryAsDirty();
m_PreventFontCallback = false;
}
}
private bool IsSelectionVisible() {
if (m_DrawStart > caretPositionInternal || m_DrawStart > caretSelectPositionInternal)
return false;
if (m_DrawEnd < caretPositionInternal || m_DrawEnd < caretSelectPositionInternal)
return false;
return true;
}
private static int GetLineStartPosition(TextGenerator gen, int line) {
line = Mathf.Clamp(line, 0, gen.lines.Count - 1);
return gen.lines[line].startCharIdx;
}
private static int GetLineEndPosition(TextGenerator gen, int line) {
line = Mathf.Max(line, 0);
if (line + 1 < gen.lines.Count)
return gen.lines[line + 1].startCharIdx - 1;
return gen.characterCountVisible;
}
private void SetDrawRangeToContainCaretPosition(int caretPos) {
// We don't have any generated lines generation is not valid.
if (cachedInputTextGenerator.lineCount <= 0)
return;
// the extents gets modified by the pixel density, so we need to use the generated extents since that will be in the same 'space' as
// the values returned by the TextGenerator.lines[x].height for instance.
Vector2 extents = cachedInputTextGenerator.rectExtents.size;
if (multiLine) {
IList<UILineInfo> lines = cachedInputTextGenerator.lines;
int caretLine = DetermineCharacterLine(caretPos, cachedInputTextGenerator);
if (caretPos > m_DrawEnd) {
// Caret comes after drawEnd, so we need to move drawEnd to the end of the line with the caret
m_DrawEnd = GetLineEndPosition(cachedInputTextGenerator, caretLine);
float bottomY = lines[caretLine].topY - lines[caretLine].height;
if (caretLine == lines.Count - 1) {
// Remove interline spacing on last line.
bottomY += lines[caretLine].leading;
}
int startLine = caretLine;
while (startLine > 0) {
float topY = lines[startLine - 1].topY;
if (topY - bottomY > extents.y)
break;
startLine--;
}
m_DrawStart = GetLineStartPosition(cachedInputTextGenerator, startLine);
} else {
if (caretPos < m_DrawStart) {
// Caret comes before drawStart, so we need to move drawStart to an earlier line start that comes before caret.
m_DrawStart = GetLineStartPosition(cachedInputTextGenerator, caretLine);
}
int startLine = DetermineCharacterLine(m_DrawStart, cachedInputTextGenerator);
int endLine = startLine;
float topY = lines[startLine].topY;
float bottomY = lines[endLine].topY - lines[endLine].height;
if (endLine == lines.Count - 1) {
// Remove interline spacing on last line.
bottomY += lines[endLine].leading;
}
while (endLine < lines.Count - 1) {
bottomY = lines[endLine + 1].topY - lines[endLine + 1].height;
if (endLine + 1 == lines.Count - 1) {
// Remove interline spacing on last line.
bottomY += lines[endLine + 1].leading;
}
if (topY - bottomY > extents.y)
break;
++endLine;
}
m_DrawEnd = GetLineEndPosition(cachedInputTextGenerator, endLine);
while (startLine > 0) {
topY = lines[startLine - 1].topY;
if (topY - bottomY > extents.y)
break;
startLine--;
}
m_DrawStart = GetLineStartPosition(cachedInputTextGenerator, startLine);
}
} else {
IList<UICharInfo> characters = cachedInputTextGenerator.characters;
if (m_DrawEnd > cachedInputTextGenerator.characterCountVisible)
m_DrawEnd = cachedInputTextGenerator.characterCountVisible;
float width = 0.0f;
if (caretPos > m_DrawEnd || (caretPos == m_DrawEnd && m_DrawStart > 0)) {
// fit characters from the caretPos leftward
m_DrawEnd = caretPos;
for (m_DrawStart = m_DrawEnd - 1; m_DrawStart >= 0; --m_DrawStart) {
if (width + characters[m_DrawStart].charWidth > extents.x)
break;
width += characters[m_DrawStart].charWidth;
}
++m_DrawStart; // move right one to the last character we could fit on the left
} else {
if (caretPos < m_DrawStart)
m_DrawStart = caretPos;
m_DrawEnd = m_DrawStart;
}
// fit characters rightward
for (; m_DrawEnd < cachedInputTextGenerator.characterCountVisible; ++m_DrawEnd) {
width += characters[m_DrawEnd].charWidth;
if (width > extents.x)
break;
}
}
}
public void ForceLabelUpdate() {
UpdateLabel();
}
private void MarkGeometryAsDirty() {
#if UNITY_EDITOR
if (!Application.isPlaying || UnityEditor.PrefabUtility.GetPrefabObject(gameObject) != null)
return;
#endif
CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this);
}
public virtual void Rebuild(CanvasUpdate update) {
switch (update) {
case CanvasUpdate.LatePreRender:
UpdateGeometry();
break;
}
}
public virtual void LayoutComplete() { }
public virtual void GraphicUpdateComplete() { }
private void UpdateGeometry() {
#if UNITY_EDITOR
if (!Application.isPlaying)
return;
#endif
// No need to draw a cursor on mobile as its handled by the devices keyboard.
if (!shouldHideMobileInput)
return;
if (m_CachedInputRenderer == null && m_TextComponent != null) {
GameObject go = new GameObject(transform.name + " Input Caret", typeof(RectTransform), typeof(CanvasRenderer));
go.hideFlags = HideFlags.DontSave;
go.transform.SetParent(m_TextComponent.transform.parent);
go.transform.SetAsFirstSibling();
go.layer = gameObject.layer;
caretRectTrans = go.GetComponent<RectTransform>();
m_CachedInputRenderer = go.GetComponent<CanvasRenderer>();
m_CachedInputRenderer.SetMaterial(m_TextComponent.GetModifiedMaterial(Graphic.defaultGraphicMaterial), Texture2D.whiteTexture);
// Needed as if any layout is present we want the caret to always be the same as the text area.
go.AddComponent<LayoutElement>().ignoreLayout = true;
AssignPositioningIfNeeded();
}
if (m_CachedInputRenderer == null)
return;
OnFillVBO(mesh);
m_CachedInputRenderer.SetMesh(mesh);
}
private void AssignPositioningIfNeeded() {
if (m_TextComponent != null && caretRectTrans != null &&
(caretRectTrans.localPosition != m_TextComponent.rectTransform.localPosition ||
caretRectTrans.localRotation != m_TextComponent.rectTransform.localRotation ||
caretRectTrans.localScale != m_TextComponent.rectTransform.localScale ||
caretRectTrans.anchorMin != m_TextComponent.rectTransform.anchorMin ||
caretRectTrans.anchorMax != m_TextComponent.rectTransform.anchorMax ||
caretRectTrans.anchoredPosition != m_TextComponent.rectTransform.anchoredPosition ||
caretRectTrans.sizeDelta != m_TextComponent.rectTransform.sizeDelta ||
caretRectTrans.pivot != m_TextComponent.rectTransform.pivot)) {
caretRectTrans.localPosition = m_TextComponent.rectTransform.localPosition;
caretRectTrans.localRotation = m_TextComponent.rectTransform.localRotation;
caretRectTrans.localScale = m_TextComponent.rectTransform.localScale;
caretRectTrans.anchorMin = m_TextComponent.rectTransform.anchorMin;
caretRectTrans.anchorMax = m_TextComponent.rectTransform.anchorMax;
caretRectTrans.anchoredPosition = m_TextComponent.rectTransform.anchoredPosition;
caretRectTrans.sizeDelta = m_TextComponent.rectTransform.sizeDelta;
caretRectTrans.pivot = m_TextComponent.rectTransform.pivot;
}
}
private void OnFillVBO(Mesh vbo) {
using (VertexHelper helper = new VertexHelper()) {
if (!isFocused) {
helper.FillMesh(vbo);
return;
}
Vector2 roundingOffset = m_TextComponent.PixelAdjustPoint(Vector2.zero);
if (!hasSelection)
GenerateCaret(helper, roundingOffset);
else
GenerateHightlight(helper, roundingOffset);
helper.FillMesh(vbo);
}
}
private void GenerateCaret(VertexHelper vbo, Vector2 roundingOffset) {
if (!m_CaretVisible)
return;
if (m_CursorVerts == null) {
CreateCursorVerts();
}
float width = m_CaretWidth;
int adjustedPos = Mathf.Max(0, caretPositionInternal - m_DrawStart);
TextGenerator gen = m_TextComponent.cachedTextGenerator;
if (gen == null)
return;
if (gen.lineCount == 0)
return;
Vector2 startPosition = Vector2.zero;
// Calculate startPosition
if (adjustedPos < gen.characters.Count) {
UICharInfo cursorChar = gen.characters[adjustedPos];
startPosition.x = cursorChar.cursorPos.x;
}
startPosition.x /= m_TextComponent.pixelsPerUnit;
// TODO: Only clamp when Text uses horizontal word wrap.
if (startPosition.x > m_TextComponent.rectTransform.rect.xMax)
startPosition.x = m_TextComponent.rectTransform.rect.xMax;
int characterLine = DetermineCharacterLine(adjustedPos, gen);
startPosition.y = gen.lines[characterLine].topY / m_TextComponent.pixelsPerUnit;
float height = gen.lines[characterLine].height / m_TextComponent.pixelsPerUnit;
for (int i = 0; i < m_CursorVerts.Length; i++)
m_CursorVerts[i].color = caretColor;
m_CursorVerts[0].position = new Vector3(startPosition.x, startPosition.y - height, 0.0f);
m_CursorVerts[1].position = new Vector3(startPosition.x + width, startPosition.y - height, 0.0f);
m_CursorVerts[2].position = new Vector3(startPosition.x + width, startPosition.y, 0.0f);
m_CursorVerts[3].position = new Vector3(startPosition.x, startPosition.y, 0.0f);
if (roundingOffset != Vector2.zero) {
for (int i = 0; i < m_CursorVerts.Length; i++) {
UIVertex uiv = m_CursorVerts[i];
uiv.position.x += roundingOffset.x;
uiv.position.y += roundingOffset.y;
}
}
vbo.AddUIVertexQuad(m_CursorVerts);
int screenHeight = Screen.height;
// Multiple display support only when not the main display. For display 0 the reported
// resolution is always the desktops resolution since its part of the display API,
// so we use the standard none multiple display method. (case 741751)
int displayIndex = m_TextComponent.canvas.targetDisplay;
if (displayIndex > 0 && displayIndex < Display.displays.Length)
screenHeight = Display.displays[displayIndex].renderingHeight;
startPosition.y = screenHeight - startPosition.y;
input.compositionCursorPos = startPosition;
}
private void CreateCursorVerts() {
m_CursorVerts = new UIVertex[4];
for (int i = 0; i < m_CursorVerts.Length; i++) {
m_CursorVerts[i] = UIVertex.simpleVert;
m_CursorVerts[i].uv0 = Vector2.zero;
}
}
private void GenerateHightlight(VertexHelper vbo, Vector2 roundingOffset) {
int startChar = Mathf.Max(0, caretPositionInternal - m_DrawStart);
int endChar = Mathf.Max(0, caretSelectPositionInternal - m_DrawStart);
// Ensure pos is always less then selPos to make the code simpler
if (startChar > endChar) {
int temp = startChar;
startChar = endChar;
endChar = temp;
}
endChar -= 1;
TextGenerator gen = m_TextComponent.cachedTextGenerator;
if (gen.lineCount <= 0)
return;
int currentLineIndex = DetermineCharacterLine(startChar, gen);
int lastCharInLineIndex = GetLineEndPosition(gen, currentLineIndex);
UIVertex vert = UIVertex.simpleVert;
vert.uv0 = Vector2.zero;
vert.color = selectionColor;
int currentChar = startChar;
while (currentChar <= endChar && currentChar < gen.characterCount) {
if (currentChar == lastCharInLineIndex || currentChar == endChar) {
UICharInfo startCharInfo = gen.characters[startChar];
UICharInfo endCharInfo = gen.characters[currentChar];
Vector2 startPosition = new Vector2(startCharInfo.cursorPos.x / m_TextComponent.pixelsPerUnit, gen.lines[currentLineIndex].topY / m_TextComponent.pixelsPerUnit);
Vector2 endPosition = new Vector2((endCharInfo.cursorPos.x + endCharInfo.charWidth) / m_TextComponent.pixelsPerUnit, startPosition.y - gen.lines[currentLineIndex].height / m_TextComponent.pixelsPerUnit);
// Checking xMin as well due to text generator not setting position if char is not rendered.
if (endPosition.x > m_TextComponent.rectTransform.rect.xMax || endPosition.x < m_TextComponent.rectTransform.rect.xMin)
endPosition.x = m_TextComponent.rectTransform.rect.xMax;
int startIndex = vbo.currentVertCount;
vert.position = new Vector3(startPosition.x, endPosition.y, 0.0f) + (Vector3)roundingOffset;
vbo.AddVert(vert);
vert.position = new Vector3(endPosition.x, endPosition.y, 0.0f) + (Vector3)roundingOffset;
vbo.AddVert(vert);
vert.position = new Vector3(endPosition.x, startPosition.y, 0.0f) + (Vector3)roundingOffset;
vbo.AddVert(vert);
vert.position = new Vector3(startPosition.x, startPosition.y, 0.0f) + (Vector3)roundingOffset;
vbo.AddVert(vert);
vbo.AddTriangle(startIndex, startIndex + 1, startIndex + 2);
vbo.AddTriangle(startIndex + 2, startIndex + 3, startIndex + 0);
startChar = currentChar + 1;
currentLineIndex++;
lastCharInLineIndex = GetLineEndPosition(gen, currentLineIndex);
}
currentChar++;
}
}
/// <summary>
/// Validate the specified input.
/// </summary>
protected char Validate(string text, int pos, char ch) {
// Validation is disabled
if (characterValidation == CharacterValidation.None || !enabled)
return ch;
if (characterValidation == CharacterValidation.Integer || characterValidation == CharacterValidation.Decimal) {
// Integer and decimal
bool cursorBeforeDash = (pos == 0 && text.Length > 0 && text[0] == '-');
bool dashInSelection = text.Length > 0 && text[0] == '-' && ((caretPositionInternal == 0 && caretSelectPositionInternal > 0) || (caretSelectPositionInternal == 0 && caretPositionInternal > 0));
bool selectionAtStart = caretPositionInternal == 0 || caretSelectPositionInternal == 0;
if (!cursorBeforeDash || dashInSelection) {
if (ch >= '0' && ch <= '9') return ch;
if (ch == '-' && (pos == 0 || selectionAtStart)) return ch;
if (ch == '.' && characterValidation == CharacterValidation.Decimal && !text.Contains(".")) return ch;
}
} else if (characterValidation == CharacterValidation.Alphanumeric) {
// All alphanumeric characters
if (ch >= 'A' && ch <= 'Z') return ch;
if (ch >= 'a' && ch <= 'z') return ch;
if (ch >= '0' && ch <= '9') return ch;
} else if (characterValidation == CharacterValidation.Name) {
// FIXME: some actions still lead to invalid input:
// - Hitting delete in front of an uppercase letter
// - Selecting an uppercase letter and deleting it
// - Typing some text, hitting Home and typing more text (we then have an uppercase letter in the middle of a word)
// - Typing some text, hitting Home and typing a space (we then have a leading space)
// - Erasing a space between two words (we then have an uppercase letter in the middle of a word)
// - We accept a trailing space
// - We accept the insertion of a space between two lowercase letters.
// - Typing text in front of an existing uppercase letter
// - ... and certainly more
//
// The rule we try to implement are too complex for this kind of verification.
if (char.IsLetter(ch)) {
// Character following a space should be in uppercase.
if (char.IsLower(ch) && ((pos == 0) || (text[pos - 1] == ' '))) {
return char.ToUpper(ch);
}
// Character not following a space or an apostrophe should be in lowercase.
if (char.IsUpper(ch) && (pos > 0) && (text[pos - 1] != ' ') && (text[pos - 1] != '\'')) {
return char.ToLower(ch);
}
return ch;
}
if (ch == '\'') {
// Don't allow more than one apostrophe
if (!text.Contains("'"))
// Don't allow consecutive spaces and apostrophes.
if (!(((pos > 0) && ((text[pos - 1] == ' ') || (text[pos - 1] == '\''))) ||
((pos < text.Length) && ((text[pos] == ' ') || (text[pos] == '\'')))))
return ch;
}
if (ch == ' ') {
// Don't allow consecutive spaces and apostrophes.
if (!(((pos > 0) && ((text[pos - 1] == ' ') || (text[pos - 1] == '\''))) ||
((pos < text.Length) && ((text[pos] == ' ') || (text[pos] == '\'')))))
return ch;
}
} else if (characterValidation == CharacterValidation.EmailAddress) {
// From StackOverflow about allowed characters in email addresses:
// Uppercase and lowercase English letters (a-z, A-Z)
// Digits 0 to 9
// Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
// Character . (dot, period, full stop) provided that it is not the first or last character,
// and provided also that it does not appear two or more times consecutively.
if (ch >= 'A' && ch <= 'Z') return ch;
if (ch >= 'a' && ch <= 'z') return ch;
if (ch >= '0' && ch <= '9') return ch;
if (ch == '@' && text.IndexOf('@') == -1) return ch;
if (kEmailSpecialCharacters.IndexOf(ch) != -1) return ch;
if (ch == '.') {
char lastChar = (text.Length > 0) ? text[Mathf.Clamp(pos, 0, text.Length - 1)] : ' ';
char nextChar = (text.Length > 0) ? text[Mathf.Clamp(pos + 1, 0, text.Length - 1)] : '\n';
if (lastChar != '.' && nextChar != '.')
return ch;
}
}
return (char)0;
}
public void ActivateInputField() {
if (m_TextComponent == null || m_TextComponent.font == null || !IsActive() || !IsInteractable())
return;
if (isFocused) {
if (m_Keyboard != null && !m_Keyboard.active) {
m_Keyboard.active = true;
m_Keyboard.text = m_Text;
}
}
m_ShouldActivateNextUpdate = true;
}
private void ActivateInputFieldInternal() {
if (EventSystem.current == null)
return;
if (EventSystem.current.currentSelectedGameObject != gameObject)
EventSystem.current.SetSelectedGameObject(gameObject);
if (VirtualKeyboardActive && TouchScreenKeyboard.isSupported) {
if (input.touchSupported) {
TouchScreenKeyboard.hideInput = shouldHideMobileInput;
}
m_Keyboard = (inputType == InputType.Password) ?
TouchScreenKeyboard.Open(m_Text, keyboardType, false, multiLine, true) :
TouchScreenKeyboard.Open(m_Text, keyboardType, inputType == InputType.AutoCorrect, multiLine);
// Mimics OnFocus but as mobile doesn't properly support select all
// just set it to the end of the text (where it would move when typing starts)
MoveTextEnd(false);
} else {
input.imeCompositionMode = IMECompositionMode.On;
OnFocus();
}
m_AllowInput = true;
m_OriginalText = text;
m_WasCanceled = false;
SetCaretVisible();
UpdateLabel();
}
public override void OnSelect(BaseEventData eventData) {
base.OnSelect(eventData);
if (shouldActivateOnSelect)
ActivateInputField();
}
public virtual void OnPointerClick(PointerEventData eventData) {
if (eventData.button != PointerEventData.InputButton.Left)
return;
ActivateInputField();
}
public void DeactivateInputField() {
// Not activated do nothing.
if (!m_AllowInput)
return;
m_HasDoneFocusTransition = false;
m_AllowInput = false;
if (m_Placeholder != null)
m_Placeholder.enabled = string.IsNullOrEmpty(m_Text);
if (m_TextComponent != null && IsInteractable()) {
if (m_WasCanceled)
text = m_OriginalText;
if (m_Keyboard != null) {
m_Keyboard.active = false;
m_Keyboard = null;
}
m_CaretPosition = m_CaretSelectPosition = 0;
SendOnSubmit();
input.imeCompositionMode = IMECompositionMode.Auto;
}
MarkGeometryAsDirty();
}
public override void OnDeselect(BaseEventData eventData) {
DeactivateInputField();
base.OnDeselect(eventData);
}
public virtual void OnSubmit(BaseEventData eventData) {
if (!IsActive() || !IsInteractable())
return;
if (!isFocused)
m_ShouldActivateNextUpdate = true;
}
private void EnforceContentType() {
switch (contentType) {
case ContentType.Standard: {
// Don't enforce line type for this content type.
m_InputType = InputType.Standard;
m_KeyboardType = TouchScreenKeyboardType.Default;
m_CharacterValidation = CharacterValidation.None;
break;
}
case ContentType.Autocorrected: {
// Don't enforce line type for this content type.
m_InputType = InputType.AutoCorrect;
m_KeyboardType = TouchScreenKeyboardType.Default;
m_CharacterValidation = CharacterValidation.None;
break;
}
case ContentType.IntegerNumber: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Standard;
m_KeyboardType = TouchScreenKeyboardType.NumberPad;
m_CharacterValidation = CharacterValidation.Integer;
break;
}
case ContentType.DecimalNumber: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Standard;
m_KeyboardType = TouchScreenKeyboardType.NumbersAndPunctuation;
m_CharacterValidation = CharacterValidation.Decimal;
break;
}
case ContentType.Alphanumeric: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Standard;
m_KeyboardType = TouchScreenKeyboardType.ASCIICapable;
m_CharacterValidation = CharacterValidation.Alphanumeric;
break;
}
case ContentType.Name: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Standard;
m_KeyboardType = TouchScreenKeyboardType.NamePhonePad;
m_CharacterValidation = CharacterValidation.Name;
break;
}
case ContentType.EmailAddress: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Standard;
m_KeyboardType = TouchScreenKeyboardType.EmailAddress;
m_CharacterValidation = CharacterValidation.EmailAddress;
break;
}
case ContentType.Password: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Password;
m_KeyboardType = TouchScreenKeyboardType.Default;
m_CharacterValidation = CharacterValidation.None;
break;
}
case ContentType.Pin: {
m_LineType = LineType.SingleLine;
m_InputType = InputType.Password;
m_KeyboardType = TouchScreenKeyboardType.NumberPad;
m_CharacterValidation = CharacterValidation.Integer;
break;
}
default: {
// Includes Custom type. Nothing should be enforced.
break;
}
}
EnforceTextHOverflow();
}
void EnforceTextHOverflow() {
if (m_TextComponent != null)
if (multiLine)
m_TextComponent.horizontalOverflow = HorizontalWrapMode.Wrap;
else
m_TextComponent.horizontalOverflow = HorizontalWrapMode.Overflow;
}
void SetToCustomIfContentTypeIsNot(params ContentType[] allowedContentTypes) {
if (contentType == ContentType.Custom)
return;
for (int i = 0; i < allowedContentTypes.Length; i++)
if (contentType == allowedContentTypes[i])
return;
contentType = ContentType.Custom;
}
void SetToCustom() {
if (contentType == ContentType.Custom)
return;
contentType = ContentType.Custom;
}
protected override void DoStateTransition(SelectionState state, bool instant) {
if (m_HasDoneFocusTransition)
state = SelectionState.Highlighted;
else if (state == SelectionState.Pressed)
m_HasDoneFocusTransition = true;
base.DoStateTransition(state, instant);
}
public virtual void CalculateLayoutInputHorizontal() { }
public virtual void CalculateLayoutInputVertical() { }
public virtual float minWidth { get { return 0; } }
public virtual float preferredWidth {
get {
if (textComponent == null)
return 0;
TextGenerationSettings settings = textComponent.GetGenerationSettings(Vector2.zero);
return textComponent.cachedTextGeneratorForLayout.GetPreferredWidth(m_Text, settings) / textComponent.pixelsPerUnit;
}
}
public virtual float flexibleWidth { get { return -1; } }
public virtual float minHeight { get { return 0; } }
public virtual float preferredHeight {
get {
if (textComponent == null)
return 0;
TextGenerationSettings settings = textComponent.GetGenerationSettings(new Vector2(textComponent.rectTransform.rect.size.x, 0.0f));
return textComponent.cachedTextGeneratorForLayout.GetPreferredHeight(m_Text, settings) / textComponent.pixelsPerUnit;
}
}
public virtual float flexibleHeight { get { return -1; } }
public virtual int layoutPriority { get { return 1; } }
}
} | 39.628311 | 231 | 0.54389 | [
"MIT"
] | dotmos/uGameFramework | Unity/Assets/Scripts/UserInterface/InputField/GMInputField.cs | 86,788 | C# |
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/)
//
// 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.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by DAIMTO-Google-apis-Sample-generator 1.0.0
// Template File Name: Oauth2Authentication.tt
// Build date: 2017-10-08
// C# generater version: 1.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// About
//
// Unoffical sample for the Storage v1beta1 API for C#.
// This sample is designed to be used with the Google .Net client library. (https://github.com/google/google-api-dotnet-client)
//
// API Description: Lets you store and retrieve potentially-large, immutable data objects.
// API Documentation Link https://developers.google.com/storage/docs/json_api/
//
// Discovery Doc https://www.googleapis.com/discovery/v1/apis/Storage/v1beta1/rest
//
//------------------------------------------------------------------------------
// Installation
//
// This sample code uses the Google .Net client library (https://github.com/google/google-api-dotnet-client)
//
// NuGet package:
//
// Location: https://www.nuget.org/packages/Google.Apis.Storage.v1beta1/
// Install Command: PM> Install-Package Google.Apis.Storage.v1beta1
//
//------------------------------------------------------------------------------
using Google.Apis.Auth.OAuth2;
using Google.Apis.Storage.v1beta1;
using Google.Apis.Services;
using Google.Apis.Util.Store;
using System;
using System.IO;
using System.Threading;
namespace GoogleSamplecSharpSample.Storagev1beta1.Auth
{
public static class Oauth2Example
{
/// <summary>
/// ** Installed Aplication only **
/// This method requests Authentcation from a user using Oauth2.
/// </summary>
/// <param name="clientSecretJson">Path to the client secret json file from Google Developers console.</param>
/// <param name="userName">Identifying string for the user who is being authentcated.</param>
/// <param name="scopes">Array of Google scopes</param>
/// <returns>StorageService used to make requests against the Storage API</returns>
public static StorageService GetStorageService(string clientSecretJson, string userName, string[] scopes)
{
try
{
if (string.IsNullOrEmpty(userName))
throw new ArgumentNullException("userName");
if (string.IsNullOrEmpty(clientSecretJson))
throw new ArgumentNullException("clientSecretJson");
if (!File.Exists(clientSecretJson))
throw new Exception("clientSecretJson file does not exist.");
var cred = GetUserCredential(clientSecretJson, userName, scopes);
return GetService(cred);
}
catch (Exception ex)
{
throw new Exception("Get Storage service failed.", ex);
}
}
/// <summary>
/// ** Installed Aplication only **
/// This method requests Authentcation from a user using Oauth2.
/// Credentials are stored in System.Environment.SpecialFolder.Personal
/// Documentation https://developers.google.com/accounts/docs/OAuth2
/// </summary>
/// <param name="clientSecretJson">Path to the client secret json file from Google Developers console.</param>
/// <param name="userName">Identifying string for the user who is being authentcated.</param>
/// <param name="scopes">Array of Google scopes</param>
/// <returns>authencated UserCredential</returns>
private static UserCredential GetUserCredential(string clientSecretJson, string userName, string[] scopes)
{
try
{
if (string.IsNullOrEmpty(userName))
throw new ArgumentNullException("userName");
if (string.IsNullOrEmpty(clientSecretJson))
throw new ArgumentNullException("clientSecretJson");
if (!File.Exists(clientSecretJson))
throw new Exception("clientSecretJson file does not exist.");
// These are the scopes of permissions you need. It is best to request only what you need and not all of them
using (var stream = new FileStream(clientSecretJson, FileMode.Open, FileAccess.Read))
{
string credPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
credPath = Path.Combine(credPath, ".credentials/", System.Reflection.Assembly.GetExecutingAssembly().GetName().Name);
// Requesting Authentication or loading previously stored authentication for userName
var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(GoogleClientSecrets.Load(stream).Secrets,
scopes,
userName,
CancellationToken.None,
new FileDataStore(credPath, true)).Result;
credential.GetAccessTokenForRequestAsync();
return credential;
}
}
catch (Exception ex)
{
throw new Exception("Get user credentials failed.", ex);
}
}
/// <summary>
/// This method get a valid service
/// </summary>
/// <param name="credential">Authecated user credentail</param>
/// <returns>StorageService used to make requests against the Storage API</returns>
private static StorageService GetService(UserCredential credential)
{
try
{
if (credential == null)
throw new ArgumentNullException("credential");
// Create Storage API service.
return new StorageService(new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
ApplicationName = "Storage Oauth2 Authentication Sample"
});
}
catch (Exception ex)
{
throw new Exception("Get Storage service failed.", ex);
}
}
}
} | 47.784314 | 140 | 0.581179 | [
"Apache-2.0"
] | AhmerRaza/Google-Dotnet-Samples | Samples/Cloud Storage JSON API/v1beta1/Oauth2Authentication.cs | 7,313 | C# |
using MTProto.NET.Attributes;
using MTProto.NET.Enums;
namespace MTProto.NET.Schema.TL
{
[MTObject(0xfa0f3ca2)]
public class TLUpdatePinnedDialogs : TLAbsUpdate
{
public override uint Constructor
{
get
{
return 0xfa0f3ca2;
}
}
[MTParameter(Order = 0, IsFlag = true)]
public int Flags { get; set; }
[MTParameter(Order = 1, FlagBitId = 1, FlagType = FlagType.Null)]
public int? FolderId { get; set; }
[MTParameter(Order = 2, FlagBitId = 0, FlagType = FlagType.Null)]
public TLVector<TLAbsDialogPeer> Order { get; set; }
}
}
| 24.666667 | 73 | 0.578078 | [
"MIT"
] | Gostareh-Negar/TeleNet | MTProto.NET/Schema/TL/_generated/TLUpdatePinnedDialogs.cs | 666 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using KamishibaServer.Models;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace KamishibaServer
{
public class Program
{
public static void Main(string[] args)
{
var host = BuildWebHost(args);
using (var scope = host.Services.CreateScope())
{
var services = scope.ServiceProvider;
try
{
var context = services.GetRequiredService<KamishibaServerContext>();
context.Database.Migrate();
KamishibaServerContext.Initialize(services);
}
catch (Exception ex)
{
var logger = services.GetRequiredService<ILogger<Program>>();
logger.LogError(ex, "An error occurred seeding the DB.");
}
}
host.Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
}
| 30.065217 | 88 | 0.587852 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"Unlicense"
] | wallstudio/BookEffecter | Server/KamishibaServer/KamishibaServer/Program.cs | 1,385 | C# |
using System;
using System.Collections.Generic;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace BetterChoiceShared.Views.LandingPage.LandingPageTemplate
{
public partial class LandingPageViewTemplate : StackLayout
{
public LandingPageViewTemplate()
{
InitializeComponent();
}
}
}
| 18.9375 | 66 | 0.792079 | [
"MIT"
] | vivekgits/BetterChoiceApp | BetterChoice/Views/LandingPage/LandingPageTemplate/LandingPageViewTemplate.xaml.cs | 305 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityStandardAssets.Characters.FirstPerson
{
public class CameraControl : MonoBehaviour
{
public Camera FirstPersonCamera;
public Camera PanoramicCamera;
public CreateMaze MazeData;
public float rotationSpeed = 1.0f;
private bool cameraIsUp = false;
private bool cameraIsRotating = false;
private float points;
private float startTime;
private float spentTime;
// Use this for initialization
void Start()
{
//FirstPersonCamera.gameObject.SetActive(false);
PanoramicCamera.gameObject.transform.position = new Vector3 (MazeData.getCenterOfMaze().x, MazeData.getHeightOfMaze() + 1.5f, MazeData.getCenterOfMaze().z);
PanoramicCamera.gameObject.transform.rotation = Quaternion.Euler(90, 0, 0);
startTime = Time.time;
// PanoramicCamera = Camera.main;
}
public void initialActiveCamera() {
FirstPersonCamera.gameObject.SetActive(false);
cameraIsUp = true;
}
public void initiatePanoramicCoordinates(Vector3 coordinates)
{
PanoramicCamera.gameObject.transform.position = coordinates;
}
// Update is called once per frame
void FixedUpdate()
{
spentTime = Time.time - startTime;
points = Mathf.Pow(MazeData.getN(), 2) - spentTime - MazeData.getK() * 50;
if (Input.GetKeyDown(KeyCode.V)) {
if (cameraIsUp)
{
FirstPersonCamera.gameObject.SetActive(true);
cameraIsUp = false;
}
else {
FirstPersonCamera.gameObject.SetActive(false);
cameraIsUp = true;
//PanoramicCamera = Camera.main;
}
}
if (Input.GetKeyDown(KeyCode.R)) {
if (cameraIsUp) {
if (!cameraIsRotating)
{
PanoramicCamera.gameObject.transform.position = new Vector3(MazeData.getCenterOfMaze().x, MazeData.getHeightOfMaze() + 4.0f, MazeData.getCenterOfMaze().z - 10.0f);
PanoramicCamera.gameObject.transform.rotation = Quaternion.Euler(45, 0, 0);
}
cameraIsRotating = !cameraIsRotating;
}
}
if (cameraIsRotating) {
PanoramicCamera.gameObject.transform.LookAt(MazeData.getCenterOfMaze());
PanoramicCamera.gameObject.transform.Translate(Vector3.right * rotationSpeed * Time.deltaTime);
}
if (points <= 0)
{
Application.Quit();
}
if (Input.GetKeyDown(KeyCode.X)) {
points = 0;
Application.Quit();
}
if (Input.GetKeyDown(KeyCode.E) && FirstPersonCamera.gameObject.transform.position.y > MazeData.getHeightOfMaze()) {
Debug.Log(points);
Application.Quit();
}
}
}
}
| 34.698925 | 187 | 0.557794 | [
"MIT"
] | sageorgisn/project_unity | project_unity/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/CameraControl.cs | 3,229 | C# |
using UnityEngine;
using System.Collections;
public class StealerManager : MonoBehaviour {
[SerializeField]
private GameObject _Stealer;
[SerializeField]
private int _SentStealerTimes = 2;
void Update()
{
if (this._SentStealerTimes == 7 && GameManager.Instance.TimeLeft < 60.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
else if (this._SentStealerTimes == 6 && GameManager.Instance.TimeLeft < 40.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
else if (this._SentStealerTimes == 5 && GameManager.Instance.TimeLeft < 30.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
else if (this._SentStealerTimes == 4&& GameManager.Instance.TimeLeft < 22.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
else if (this._SentStealerTimes == 3 && GameManager.Instance.TimeLeft < 15.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
else if (this._SentStealerTimes == 2 && GameManager.Instance.TimeLeft < 10.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
else if (this._SentStealerTimes == 1 && GameManager.Instance.TimeLeft < 6.0f)
{
Instantiate(this._Stealer);
this._SentStealerTimes--;
}
}
}
| 30.019608 | 87 | 0.576747 | [
"MIT"
] | hilllo/VR-GameJam | VRGameJam/Assets/Scripts/StealerManager.cs | 1,533 | C# |
// Copyright 2021, Mikhail Paulyshka
// SPDX-License-Identifier: MIT
using System.Runtime.InteropServices;
namespace Mixaill.HwInfo.D3DKMT.Interop
{
/// <summary>
///
/// Reference: d3dkmthk.h::_D3DKMT_CLOSEADAPTER
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct _D3DKMT_CLOSEADAPTER
{
/// <summary>
/// Input: adapter handle
/// </summary>
public uint hAdapter;
}
}
| 21.619048 | 51 | 0.632159 | [
"MIT"
] | Mixaill/Mixaill.HwInfo | Mixaill.HwInfo.D3DKMT/Interop/_D3DKMT_CLOSEADAPTER.cs | 456 | 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.ComponentModel.Composition;
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
using Microsoft.VisualStudio.IO;
using Microsoft.VisualStudio.ProjectSystem.Logging;
using NuGet.SolutionRestoreManager;
namespace Microsoft.VisualStudio.ProjectSystem.VS.PackageRestore
{
/// <summary>
/// Responsible for pushing ("nominating") project data such as referenced packages and
/// target frameworks to NuGet so that it can perform a package restore.
/// </summary>
[Export(typeof(IPackageRestoreService))]
[Export(ExportContractNames.Scopes.UnconfiguredProject, typeof(IProjectDynamicLoadComponent))]
[AppliesTo(ProjectCapability.PackageReferences)]
internal partial class PackageRestoreService : AbstractMultiLifetimeComponent<PackageRestoreService.PackageRestoreServiceInstance>, IProjectDynamicLoadComponent, IPackageRestoreService
{
private readonly UnconfiguredProject _project;
private readonly IPackageRestoreUnconfiguredInputDataSource _dataSource;
private readonly IProjectThreadingService _threadingService;
private readonly IProjectAsynchronousTasksService _projectAsynchronousTasksService;
private readonly IVsSolutionRestoreService3 _solutionRestoreService;
private readonly IFileSystem _fileSystem;
private readonly IProjectLogger _logger;
private IReceivableSourceBlock<IProjectVersionedValue<RestoreData>>? _publicBlock;
private IBroadcastBlock<IProjectVersionedValue<RestoreData>>? _broadcastBlock;
[ImportingConstructor]
public PackageRestoreService(
UnconfiguredProject project,
IPackageRestoreUnconfiguredInputDataSource dataSource,
IProjectThreadingService threadingService,
[Import(ExportContractNames.Scopes.UnconfiguredProject)]IProjectAsynchronousTasksService projectAsynchronousTasksService,
IVsSolutionRestoreService3 solutionRestoreService,
IFileSystem fileSystem,
IProjectLogger logger)
: base(threadingService.JoinableTaskContext)
{
_project = project;
_dataSource = dataSource;
_threadingService = threadingService;
_projectAsynchronousTasksService = projectAsynchronousTasksService;
_solutionRestoreService = solutionRestoreService;
_fileSystem = fileSystem;
_logger = logger;
}
public IReceivableSourceBlock<IProjectVersionedValue<RestoreData>> RestoreData
{
get
{
EnsureInitialized();
return _publicBlock!;
}
}
protected override PackageRestoreServiceInstance CreateInstance()
{
return new PackageRestoreServiceInstance(
_project,
_dataSource,
_threadingService,
_projectAsynchronousTasksService,
_solutionRestoreService,
_fileSystem,
_logger,
_broadcastBlock!);
}
protected override async Task InitializeCoreAsync(CancellationToken cancellationToken)
{
await base.InitializeCoreAsync(cancellationToken);
_broadcastBlock = DataflowBlockSlim.CreateBroadcastBlock<IProjectVersionedValue<RestoreData>>();
_publicBlock = _broadcastBlock.SafePublicize();
}
protected override async Task DisposeCoreAsync(bool initialized)
{
await base.DisposeCoreAsync(initialized);
_broadcastBlock?.Complete();
}
private void EnsureInitialized()
{
_threadingService.ExecuteSynchronously(() => InitializeAsync(CancellationToken.None));
}
}
}
| 41.897959 | 189 | 0.685582 | [
"Apache-2.0"
] | JeremyKuhne/project-system | src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/PackageRestore/PackageRestoreService.cs | 4,011 | C# |
// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using System.Reactive.Concurrency;
using System.Threading;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using Avalonia.Input;
using Avalonia.Input.Platform;
using Avalonia.Input.Raw;
using Avalonia.Layout;
using Avalonia.Platform;
using Avalonia.Styling;
using Avalonia.Threading;
namespace Avalonia
{
/// <summary>
/// Encapsulates a Avalonia application.
/// </summary>
/// <remarks>
/// The <see cref="Application"/> class encapsulates Avalonia application-specific
/// functionality, including:
/// - A global set of <see cref="DataTemplates"/>.
/// - A global set of <see cref="Styles"/>.
/// - A <see cref="FocusManager"/>.
/// - An <see cref="InputManager"/>.
/// - Registers services needed by the rest of Avalonia in the <see cref="RegisterServices"/>
/// method.
/// - Tracks the lifetime of the application.
/// </remarks>
public class Application : IApplicationLifecycle, IGlobalDataTemplates, IGlobalStyles, IStyleRoot, IResourceNode
{
/// <summary>
/// The application-global data templates.
/// </summary>
private DataTemplates _dataTemplates;
private readonly Lazy<IClipboard> _clipboard =
new Lazy<IClipboard>(() => (IClipboard)AvaloniaLocator.Current.GetService(typeof(IClipboard)));
private readonly Styler _styler = new Styler();
private Styles _styles;
private IResourceDictionary _resources;
private CancellationTokenSource _mainLoopCancellationTokenSource;
/// <summary>
/// Initializes a new instance of the <see cref="Application"/> class.
/// </summary>
public Application()
{
Windows = new WindowCollection(this);
OnExit += OnExiting;
}
/// <inheritdoc/>
public event EventHandler<ResourcesChangedEventArgs> ResourcesChanged;
/// <summary>
/// Gets the current instance of the <see cref="Application"/> class.
/// </summary>
/// <value>
/// The current instance of the <see cref="Application"/> class.
/// </value>
public static Application Current
{
get { return AvaloniaLocator.Current.GetService<Application>(); }
}
/// <summary>
/// Gets or sets the application's global data templates.
/// </summary>
/// <value>
/// The application's global data templates.
/// </value>
public DataTemplates DataTemplates => _dataTemplates ?? (_dataTemplates = new DataTemplates());
/// <summary>
/// Gets the application's focus manager.
/// </summary>
/// <value>
/// The application's focus manager.
/// </value>
public IFocusManager FocusManager
{
get;
private set;
}
/// <summary>
/// Gets the application's input manager.
/// </summary>
/// <value>
/// The application's input manager.
/// </value>
public InputManager InputManager
{
get;
private set;
}
/// <summary>
/// Gets the application clipboard.
/// </summary>
public IClipboard Clipboard => _clipboard.Value;
/// <summary>
/// Gets the application's global resource dictionary.
/// </summary>
public IResourceDictionary Resources
{
get => _resources ?? (Resources = new ResourceDictionary());
set
{
Contract.Requires<ArgumentNullException>(value != null);
var hadResources = false;
if (_resources != null)
{
hadResources = _resources.Count > 0;
_resources.ResourcesChanged -= ResourcesChanged;
}
_resources = value;
_resources.ResourcesChanged += ResourcesChanged;
if (hadResources || _resources.Count > 0)
{
ResourcesChanged?.Invoke(this, new ResourcesChangedEventArgs());
}
}
}
/// <summary>
/// Gets the application's global styles.
/// </summary>
/// <value>
/// The application's global styles.
/// </value>
/// <remarks>
/// Global styles apply to all windows in the application.
/// </remarks>
public Styles Styles => _styles ?? (_styles = new Styles());
/// <inheritdoc/>
bool IDataTemplateHost.IsDataTemplatesInitialized => _dataTemplates != null;
/// <summary>
/// Gets the styling parent of the application, which is null.
/// </summary>
IStyleHost IStyleHost.StylingParent => null;
/// <inheritdoc/>
bool IStyleHost.IsStylesInitialized => _styles != null;
/// <inheritdoc/>
bool IResourceProvider.HasResources => _resources?.Count > 0;
/// <inheritdoc/>
IResourceNode IResourceNode.ResourceParent => null;
/// <summary>
/// Gets or sets the <see cref="ExitMode"/>. This property indicates whether the application exits explicitly or implicitly.
/// If <see cref="ExitMode"/> is set to OnExplicitExit the application is only closes if Exit is called.
/// The default is OnLastWindowClose
/// </summary>
/// <value>
/// The shutdown mode.
/// </value>
public ExitMode ExitMode { get; set; }
/// <summary>
/// Gets or sets the main window of the application.
/// </summary>
/// <value>
/// The main window.
/// </value>
public Window MainWindow { get; set; }
/// <summary>
/// Gets the open windows of the application.
/// </summary>
/// <value>
/// The windows.
/// </value>
public WindowCollection Windows { get; }
/// <summary>
/// Gets or sets a value indicating whether this instance is existing.
/// </summary>
/// <value>
/// <c>true</c> if this instance is existing; otherwise, <c>false</c>.
/// </value>
internal bool IsExiting { get; set; }
/// <summary>
/// Initializes the application by loading XAML etc.
/// </summary>
public virtual void Initialize()
{
}
/// <summary>
/// Runs the application's main loop until the <see cref="ICloseable"/> is closed.
/// </summary>
/// <param name="closable">The closable to track</param>
public void Run(ICloseable closable)
{
if (_mainLoopCancellationTokenSource != null)
{
throw new Exception("Run should only called once");
}
closable.Closed += (s, e) => Exit();
_mainLoopCancellationTokenSource = new CancellationTokenSource();
Dispatcher.UIThread.MainLoop(_mainLoopCancellationTokenSource.Token);
// Make sure we call OnExit in case an error happened and Exit() wasn't called explicitly
if (!IsExiting)
{
OnExit?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// Runs the application's main loop until some condition occurs that is specified by ExitMode.
/// </summary>
/// <param name="mainWindow">The main window</param>
public void Run(Window mainWindow)
{
if (_mainLoopCancellationTokenSource != null)
{
throw new Exception("Run should only called once");
}
_mainLoopCancellationTokenSource = new CancellationTokenSource();
if (MainWindow == null)
{
if (mainWindow == null)
{
throw new ArgumentNullException(nameof(mainWindow));
}
if (!mainWindow.IsVisible)
{
mainWindow.Show();
}
MainWindow = mainWindow;
}
Dispatcher.UIThread.MainLoop(_mainLoopCancellationTokenSource.Token);
// Make sure we call OnExit in case an error happened and Exit() wasn't called explicitly
if (!IsExiting)
{
OnExit?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// Runs the application's main loop until the <see cref="CancellationToken"/> is canceled.
/// </summary>
/// <param name="token">The token to track</param>
public void Run(CancellationToken token)
{
Dispatcher.UIThread.MainLoop(token);
// Make sure we call OnExit in case an error happened and Exit() wasn't called explicitly
if (!IsExiting)
{
OnExit?.Invoke(this, EventArgs.Empty);
}
}
/// <summary>
/// Exits the application
/// </summary>
public void Exit()
{
IsExiting = true;
Windows.Clear();
OnExit?.Invoke(this, EventArgs.Empty);
_mainLoopCancellationTokenSource?.Cancel();
}
/// <inheritdoc/>
bool IResourceProvider.TryGetResource(string key, out object value)
{
value = null;
return (_resources?.TryGetResource(key, out value) ?? false) ||
Styles.TryGetResource(key, out value);
}
/// <summary>
/// Sent when the application is exiting.
/// </summary>
public event EventHandler OnExit;
/// <summary>
/// Called when the application is exiting.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected virtual void OnExiting(object sender, EventArgs e)
{
}
/// <summary>
/// Register's the services needed by Avalonia.
/// </summary>
public virtual void RegisterServices()
{
AvaloniaSynchronizationContext.InstallIfNeeded();
FocusManager = new FocusManager();
InputManager = new InputManager();
AvaloniaLocator.CurrentMutable
.Bind<IAccessKeyHandler>().ToTransient<AccessKeyHandler>()
.Bind<IGlobalDataTemplates>().ToConstant(this)
.Bind<IGlobalStyles>().ToConstant(this)
.Bind<IFocusManager>().ToConstant(FocusManager)
.Bind<IInputManager>().ToConstant(InputManager)
.Bind<IKeyboardNavigationHandler>().ToTransient<KeyboardNavigationHandler>()
.Bind<IStyler>().ToConstant(_styler)
.Bind<IApplicationLifecycle>().ToConstant(this)
.Bind<IScheduler>().ToConstant(AvaloniaScheduler.Instance)
.Bind<IDragDropDevice>().ToConstant(DragDropDevice.Instance)
.Bind<IPlatformDragSource>().ToTransient<InProcessDragSource>();
}
}
}
| 33.22807 | 133 | 0.557726 | [
"MIT"
] | SpawnProd/Avalonia | src/Avalonia.Controls/Application.cs | 11,364 | C# |
// Generated on 03/23/2022 09:51:48
using System;
using System.Collections.Generic;
using AmaknaProxy.API.GameData.D2O;
namespace AmaknaProxy.API.Protocol.Data
{
[D2oClass("EffectInstanceDate")]
public class EffectInstanceDate : EffectInstance
{
public uint year;
public uint month;
public uint day;
public uint hour;
public uint minute;
}
} | 21.052632 | 52 | 0.6775 | [
"MIT"
] | ImNotARobot742/DofusProtocol | DofusProtocol/D2Parser/Protocol/Data/effects/instances/EffectInstanceDate.cs | 400 | C# |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
using System.Collections.Generic;
using Aliyun.Acs.Core;
namespace Aliyun.Acs.Emr.Model.V20160408
{
public class ListBackupsResponse : AcsResponse
{
private string requestId;
private int? pageNumber;
private int? pageSize;
private int? totalCount;
private List<ListBackups_Item> items;
public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}
public int? PageNumber
{
get
{
return pageNumber;
}
set
{
pageNumber = value;
}
}
public int? PageSize
{
get
{
return pageSize;
}
set
{
pageSize = value;
}
}
public int? TotalCount
{
get
{
return totalCount;
}
set
{
totalCount = value;
}
}
public List<ListBackups_Item> Items
{
get
{
return items;
}
set
{
items = value;
}
}
public class ListBackups_Item
{
private string id;
private string backupPlanId;
private string clusterId;
private long? createTime;
private string md5;
private string tarFileName;
private string storePath;
private string status;
private ListBackups_MetadataInfo metadataInfo;
public string Id
{
get
{
return id;
}
set
{
id = value;
}
}
public string BackupPlanId
{
get
{
return backupPlanId;
}
set
{
backupPlanId = value;
}
}
public string ClusterId
{
get
{
return clusterId;
}
set
{
clusterId = value;
}
}
public long? CreateTime
{
get
{
return createTime;
}
set
{
createTime = value;
}
}
public string Md5
{
get
{
return md5;
}
set
{
md5 = value;
}
}
public string TarFileName
{
get
{
return tarFileName;
}
set
{
tarFileName = value;
}
}
public string StorePath
{
get
{
return storePath;
}
set
{
storePath = value;
}
}
public string Status
{
get
{
return status;
}
set
{
status = value;
}
}
public ListBackups_MetadataInfo MetadataInfo
{
get
{
return metadataInfo;
}
set
{
metadataInfo = value;
}
}
public class ListBackups_MetadataInfo
{
private string metadataType;
private string properties;
public string MetadataType
{
get
{
return metadataType;
}
set
{
metadataType = value;
}
}
public string Properties
{
get
{
return properties;
}
set
{
properties = value;
}
}
}
}
}
}
| 14.501916 | 63 | 0.543725 | [
"Apache-2.0"
] | AxiosCros/aliyun-openapi-net-sdk | aliyun-net-sdk-emr/Emr/Model/V20160408/ListBackupsResponse.cs | 3,785 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using WebSocket4Net;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
namespace DiceBot
{
class EtherCrash : DiceSite
{
string Token = "";
CookieContainer Cookies;
HttpClientHandler ClientHandlr;
HttpClient Client;
WebSocket Sock;
WebSocket ChatSock;
bool isec = false;
string username = "";
public EtherCrash(cDiceBot Parent)
{
this.Parent = Parent;
maxRoll = 99.99999m;
AutoInvest = false;
AutoWithdraw = false;
ChangeSeed = false;
AutoLogin = true;
BetURL = "https://www.ethercrash.io/game/";
edge = 1;
//this.Parent = Parent;
Name = "EtherCrash";
_PasswordText = "API Key";
Tip = false;
TipUsingName = true;
//Thread tChat = new Thread(GetMessagesThread);
//tChat.Start();
SiteURL = "https://www.ethercrash.io/";
}
public override void Disconnect()
{
if (Sock != null)
{
try
{
isec = false;
Sock.Close();
}
catch
{
}
}
}
public override void GetSeed(long BetID)
{
throw new NotImplementedException();
}
string io = "";
string cfuid = "";
public override void Login(string Username, string Password, string twofa)
{
Cookies = new CookieContainer();
ClientHandlr = new HttpClientHandler { UseCookies = true, CookieContainer = Cookies, AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip, Proxy = this.Prox, UseProxy = Prox != null }; ;
Client = new HttpClient(ClientHandlr) { BaseAddress = new Uri("https://ethercrash.io") };
Client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36");
Client.DefaultRequestHeaders.Add("referer", "https://www.ethercrash.io/play");
Client.DefaultRequestHeaders.Add("origin", "https://www.ethercrash.io");
try
{
Cookies.Add(new Cookie("id", Password, "/", "ethercrash.io"));
string Response = Client.GetStringAsync("https://www.ethercrash.io/play").Result;
Response = Client.GetStringAsync("https://www.ethercrash.io/socket.io/?EIO=3&transport=polling&t=" + json.CurrentDate()).Result;
Response = Client.GetStringAsync("https://gs.ethercrash.io/socket.io/?EIO=3&transport=polling&t=" + json.CurrentDate()).Result;
string iochat = "";
foreach (Cookie c3 in Cookies.GetCookies(new Uri("http://www.ethercrash.io")))
{
if (c3.Name == "io")
iochat = c3.Value;
if (c3.Name == "__cfduid")
cfuid = c3.Value;
}
Response = Client.GetStringAsync("https://www.ethercrash.io/socket.io/?EIO=3&sid=" + iochat + "&transport=polling&t=" + json.CurrentDate()).Result;
foreach (Cookie c3 in Cookies.GetCookies(new Uri("http://gs.ethercrash.io")))
{
if (c3.Name == "io")
io = c3.Value;
if (c3.Name == "__cfduid")
cfuid = c3.Value;
}
StringContent ottcontent = new StringContent("");
HttpResponseMessage RespMsg = Client.PostAsync("https://www.ethercrash.io/ott", ottcontent).Result;
Response = RespMsg.Content.ReadAsStringAsync().Result;
if (RespMsg.IsSuccessStatusCode)
ott = Response;
else
{
finishedlogin(false);
return;
}
string body = "420[\"join\",{\"ott\":\"" + ott + "\",\"api_version\":1}]";
body = body.Length + ":" + body;
StringContent stringContent = new StringContent(body, UnicodeEncoding.UTF8, "text/plain");
Response = Client.PostAsync("https://gs.ethercrash.io/socket.io/?EIO=3&sid=" + io + "&transport=polling&t=" + json.CurrentDate(), stringContent).Result.Content.ReadAsStringAsync().Result;
body = "420[\"join\",[\"english\"]]";
body = body.Length + ":" + body;
StringContent stringContent2 = new StringContent(body, UnicodeEncoding.UTF8, "text/plain");
Response = Client.PostAsync("https://www.ethercrash.io/socket.io/?EIO=3&sid=" + iochat + "&transport=polling&t=" + json.CurrentDate(), stringContent2).Result.Content.ReadAsStringAsync().Result;
Response = Client.GetStringAsync("https://www.ethercrash.io/socket.io/?EIO=3&sid=" + iochat + "&transport=polling&t=" + json.CurrentDate()).Result;
List<KeyValuePair<string, string>> cookies = new List<KeyValuePair<string, string>>();
cookies.Add(new KeyValuePair<string, string>("__cfduid", cfuid));
cookies.Add(new KeyValuePair<string, string>("io", iochat));
cookies.Add(new KeyValuePair<string, string>("id", Password));
ChatSock = new WebSocket("wss://www.ethercrash.io/socket.io/?EIO=3&transport=websocket&sid=" + iochat,
null,
cookies/*,
null,
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"https://www.ethercrash.io",
WebSocketVersion.None*/);
ChatSock.Opened += Sock_Opened;
ChatSock.Error += Sock_Error;
ChatSock.MessageReceived += Sock_MessageReceived;
ChatSock.Closed += Sock_Closed;
ChatSock.Open();
while (ChatSock.State == WebSocketState.Connecting)
{
Thread.Sleep(300);
//Response = Client.GetStringAsync("https://gs.ethercrash.io/socket.io/?EIO=3&sid=" + io + "&transport=polling&t=" + json.CurrentDate()).Result;
}
if (ChatSock.State == WebSocketState.Open)
{
}
else
{
finishedlogin(false);
return;
}
//Response = Client.GetStringAsync("https://gs.ethercrash.io/socket.io/?EIO=3&sid=" + io + "&transport=polling&t=" + json.CurrentDate()).Result;
Thread.Sleep(200);
//Response = Client.GetStringAsync("https://gs.ethercrash.io/socket.io/?EIO=3&sid=" + io + "&transport=polling&t=" + json.CurrentDate()).Result;
List<KeyValuePair<string, string>> cookies2 = new List<KeyValuePair<string, string>>();
cookies2.Add(new KeyValuePair<string, string>("__cfduid", cfuid));
cookies2.Add(new KeyValuePair<string, string>("io", io));
cookies2.Add(new KeyValuePair<string, string>("id", Password));
List<KeyValuePair<string, string>> headers = new List<KeyValuePair<string, string>>();
headers.Add(new KeyValuePair<string, string>("Host", "gs.ethercrash.io"));
headers.Add(new KeyValuePair<string, string>("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"));
headers.Add(new KeyValuePair<string, string>("Origin", "https://www.ethercrash.io"));
Sock = new WebSocket("wss://gs.ethercrash.io/socket.io/?EIO=3&transport=websocket&sid=" + io/*,
null,
cookies2,
headers,
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"https://www.ethercrash.io",
WebSocketVersion.None*/);
Sock.Opened += Sock_Opened;
Sock.Error += Sock_Error;
Sock.MessageReceived += Sock_MessageReceived;
Sock.Closed += Sock_Closed;
Sock.Open();
while (Sock.State == WebSocketState.Connecting)
{
Thread.Sleep(300);
//Response = Client.GetStringAsync("https://gs.ethercrash.io/socket.io/?EIO=3&sid=" + io + "&transport=polling&t=" + json.CurrentDate()).Result;
}
if (Sock.State == WebSocketState.Open)
{
finishedlogin(true);
isec = true;
Thread t = new Thread(pingthread);
t.Start();
return;
}
finishedlogin(false);
}
catch (Exception ex)
{
Parent.DumpLog(ex.ToString(), -1);
finishedlogin(false);
}
}
DateTime LastPing = DateTime.Now;
void pingthread()
{
while (isec)
{
if ((DateTime.Now - LastPing).TotalSeconds >= 15)
{
LastPing = DateTime.Now;
try
{
Sock.Send("2");
ChatSock.Send("2");
}
catch
{
isec = false;
}
}
}
}
private void Sock_Closed(object sender, EventArgs e)
{
}
string ott = "";
bool betsOpen;
bool cashedout = false;
string GameId = "";
private void Sock_MessageReceived(object sender, MessageReceivedEventArgs e)
{
if (e.Message == "3probe")
{
(sender as WebSocket).Send("5");
//Sock.Send("420[\"join\",{\"ott\":\"" + ott + "\",\"api_version\":1}]");
}
else
{
Parent.DumpLog(e.Message, -1);
if (e.Message.StartsWith("42[\"game_starting\","))
{
//42["game_starting",{"game_id":214035,"max_win":3782817516,"time_till_start":5000}]
string id = e.Message.Substring(e.Message.IndexOf("\"game_id\":")+ "\"game_id\":".Length);
id = id.Substring(0, id.IndexOf(","));
GameId = id;
cashedout = false;
this.guid = "";
//open betting for user
betsOpen = true;
Parent.updateStatus("Game starting - waiting for bet");
}
else if (e.Message.StartsWith("42[\"game_started\","))
{
//close betting and wait for result
betsOpen = false;
}
else if (e.Message.StartsWith("42[\"game_crash\",") && guid != "")
{
//if not cashed out yet, it's a loss and debit balance
Bet bet = new Bet
{
Amount = (decimal)amount,
Profit = -amount,
Chance = chance,
high = true,
Currency = Currency,
date = DateTime.Now,
Id = GameId!=""?GameId:Guid.NewGuid().ToString(),
Roll = 0,
UserName = username,
nonce = -1,
Guid = guid
};
this.balance -= amount;
this.profit -= amount;
this.wagered += amount;
this.losses++;
this.bets++;
this.guid = "";
FinishedBet(bet);
Parent.updateStatus("Game crashed - Waiting for next game");
}
else if (e.Message.StartsWith("42[\"cashed_out\"") && guid != "")
{
//check if the cashed out user is the current user, if it is, it's a win.
if (e.Message.Contains("\""+username+"\""))
{
cashedout = true;
Bet bet = new Bet
{
Amount = (decimal)amount,
Profit = ((100-edge)/chance)*amount-amount,
Chance = chance,
high = true,
Currency = Currency,
date = DateTime.Now,
Id = GameId != "" ? GameId : Guid.NewGuid().ToString(),
Roll = (100 - chance)+0.00001m,
UserName = username,
nonce = -1,
Guid = guid
};
this.guid = "";
this.balance += bet.Profit;
this.profit += bet.Profit;
this.wagered += amount;
this.wins++;
this.bets++;
FinishedBet(bet);
}
}
else if (e.Message.StartsWith("430[null,{\"state"))
{
string content = e.Message.Substring(e.Message.IndexOf("{"));
content = content.Substring(0, content.LastIndexOf("}"));
ECLogin tmplogin = json.JsonDeserialize<ECLogin>(content);
if (tmplogin!=null)
{
this.username = tmplogin.username;
this.balance = (tmplogin.balance_satoshis)/100000000m;
Parent.updateBalance(balance);
}
}
else if (e.Message.StartsWith("42[\"game_tick\""))
{
if (guid!="" || cashedout)
{
//42["game_tick",13969]
string x = e.Message.Substring(e.Message.IndexOf(",") + 1);
x = x.Substring(0, x.LastIndexOf("]"));
decimal tickval = 0;
if (decimal.TryParse(x, out tickval))
{
double mult = 0;
mult = Math.Floor(100 * Math.Pow(Math.E, 0.00006 * (double)tickval));
string message = "";
if (guid != null)
{
message = string.Format("Game running - {0:0.00000000} at {1:0.0000} - {2:0.00}x", amount, (100 - edge) / chance, mult / 100);
}
else
{
message = string.Format("Game running - Cashed out - {2:0.00}x", amount, (100 - edge) / chance, mult / 100);
}
Parent.updateStatus(message);
}
}
}
}
}
private void Sock_Error(object sender, SuperSocket.ClientEngine.ErrorEventArgs e)
{
Parent.DumpLog(e.Exception.ToString(), -1);
Parent.updateStatus("Websocket error - disconnected.");
}
private void Sock_Opened(object sender, EventArgs e)
{
(sender as WebSocket).Send("2probe");
}
public override bool ReadyToBet()
{
return betsOpen;
}
public override bool Register(string username, string password)
{
throw new NotImplementedException();
}
public override void ResetSeed()
{
throw new NotImplementedException();
}
public override void SendChatMessage(string Message)
{
throw new NotImplementedException();
}
public override void SetClientSeed(string Seed)
{
throw new NotImplementedException();
}
int reqid = 1;
string guid = "";
protected override void internalPlaceBet(bool High, decimal amount, decimal chancem, string BetGuid)
{
if (ReadyToBet() && Sock.State == WebSocketState.Open)
{
this.amount = Math.Round(amount, 6);
amount = this.amount;
decimal payout = (100 - edge) / chance;
decimal returna = payout*100;
Sock.Send("42"+(reqid++).ToString() +"[\"place_bet\","+(amount*100000000).ToString("0")+","+ returna.ToString("0") + "]");
this.guid = BetGuid;
Parent.updateStatus(string.Format("Game Starting - Betting {0:0.00000000} at {1:0.00}x", amount,payout));
}
}
protected override bool internalWithdraw(decimal Amount, string Address)
{
throw new NotImplementedException();
}
}
public class ECLogin
{
public string state { get; set; }
public int game_id { get; set; }
public string last_hash { get; set; }
public double max_win { get; set; }
public int elapsed { get; set; }
public string created { get; set; }
public string username { get; set; }
public long balance_satoshis { get; set; }
}
}
| 40.729306 | 227 | 0.47012 | [
"MIT"
] | Devilla/DiceBot | DiceBot/EtherCrash.cs | 18,208 | C# |
using System;
using NetOffice;
namespace NetOffice.OWC10Api.Enums
{
/// <summary>
/// SupportByVersion OWC10 1
/// </summary>
[SupportByVersionAttribute("OWC10", 1)]
[EntityTypeAttribute(EntityType.IsEnum)]
public enum DscJoinTypeEnum
{
/// <summary>
/// SupportByVersion OWC10 1
/// </summary>
/// <remarks>1</remarks>
[SupportByVersionAttribute("OWC10", 1)]
dscInnerJoin = 1,
/// <summary>
/// SupportByVersion OWC10 1
/// </summary>
/// <remarks>2</remarks>
[SupportByVersionAttribute("OWC10", 1)]
dscLeftOuterJoin = 2,
/// <summary>
/// SupportByVersion OWC10 1
/// </summary>
/// <remarks>3</remarks>
[SupportByVersionAttribute("OWC10", 1)]
dscRightOuterJoin = 3
}
} | 22.363636 | 42 | 0.646341 | [
"MIT"
] | Engineerumair/NetOffice | Source/OWC10/Enums/DscJoinTypeEnum.cs | 738 | C# |
using System;
namespace ClosedXML.Excel
{
public interface IXLRangeRow : IXLRangeBase
{
/// <summary>
/// Gets the cell in the specified column.
/// </summary>
/// <param name="columnNumber">The cell's column.</param>
IXLCell Cell(Int32 columnNumber);
/// <summary>
/// Gets the cell in the specified column.
/// </summary>
/// <param name="columnLetter">The cell's column.</param>
IXLCell Cell(String columnLetter);
/// <summary>
/// Returns the specified group of cells, separated by commas.
/// <para>e.g. Cells("1"), Cells("1:5"), Cells("1:2,4:5")</para>
/// </summary>
/// <param name="cellsInRow">The row's cells to return.</param>
new IXLCells Cells(String cellsInRow);
/// <summary>
/// Returns the specified group of cells.
/// </summary>
/// <param name="firstColumn">The first column in the group of cells to return.</param>
/// <param name="lastColumn">The last column in the group of cells to return.</param>
IXLCells Cells(Int32 firstColumn, Int32 lastColumn);
/// <summary>
/// Returns the specified group of cells.
/// </summary>
/// <param name="firstColumn">The first column in the group of cells to return.</param>
/// <param name="lastColumn">The last column in the group of cells to return.</param>
IXLCells Cells(String firstColumn, String lastColumn);
/// <summary>
/// Inserts X number of cells to the right of this row.
/// <para>All cells to the right of this row will be shifted X number of columns.</para>
/// </summary>
/// <param name="numberOfColumns">Number of cells to insert.</param>
IXLCells InsertCellsAfter(int numberOfColumns);
IXLCells InsertCellsAfter(int numberOfColumns, Boolean expandRange);
/// <summary>
/// Inserts X number of cells to the left of this row.
/// <para>This row and all cells to the right of it will be shifted X number of columns.</para>
/// </summary>
/// <param name="numberOfColumns">Number of cells to insert.</param>
IXLCells InsertCellsBefore(int numberOfColumns);
IXLCells InsertCellsBefore(int numberOfColumns, Boolean expandRange);
/// <summary>
/// Inserts X number of rows on top of this row.
/// <para>This row and all cells below it will be shifted X number of rows.</para>
/// </summary>
/// <param name="numberOfRows">Number of rows to insert.</param>
IXLRangeRows InsertRowsAbove(int numberOfRows);
IXLRangeRows InsertRowsAbove(int numberOfRows, Boolean expandRange);
/// <summary>
/// Inserts X number of rows below this row.
/// <para>All cells below this row will be shifted X number of rows.</para>
/// </summary>
/// <param name="numberOfRows">Number of rows to insert.</param>
IXLRangeRows InsertRowsBelow(int numberOfRows);
IXLRangeRows InsertRowsBelow(int numberOfRows, Boolean expandRange);
/// <summary>
/// Deletes this range and shifts the cells below.
/// </summary>
void Delete();
/// <summary>
/// Deletes this range and shifts the surrounding cells accordingly.
/// </summary>
/// <param name="shiftDeleteCells">How to shift the surrounding cells.</param>
void Delete(XLShiftDeletedCells shiftDeleteCells);
/// <summary>
/// Gets this row's number in the range
/// </summary>
Int32 RowNumber();
Int32 CellCount();
IXLRangeRow CopyTo(IXLCell target);
IXLRangeRow CopyTo(IXLRangeBase target);
IXLRangeRow Sort();
IXLRangeRow SortLeftToRight(XLSortOrder sortOrder = XLSortOrder.Ascending, Boolean matchCase = false, Boolean ignoreBlanks = true);
IXLRangeRow Row(Int32 start, Int32 end);
IXLRangeRow Row(IXLCell start, IXLCell end);
IXLRangeRows Rows(String rows);
IXLRangeRow SetDataType(XLDataType dataType);
IXLRangeRow RowAbove();
IXLRangeRow RowAbove(Int32 step);
IXLRangeRow RowBelow();
IXLRangeRow RowBelow(Int32 step);
IXLRow WorksheetRow();
/// <summary>
/// Clears the contents of this row.
/// </summary>
/// <param name="clearOptions">Specify what you want to clear.</param>
new IXLRangeRow Clear(XLClearOptions clearOptions = XLClearOptions.All);
IXLRangeRow RowUsed(Boolean includeFormats = false);
}
}
| 37.139535 | 140 | 0.602797 | [
"MIT"
] | Gallardo13/ClosedXML | ClosedXML/Excel/Ranges/IXLRangeRow.cs | 4,663 | C# |
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Options;
namespace Squidex.Web.Pipeline
{
public sealed class EnforceHttpsMiddleware : IMiddleware
{
private readonly IOptions<UrlsOptions> urls;
public EnforceHttpsMiddleware(IOptions<UrlsOptions> urls)
{
this.urls = urls;
}
public async Task InvokeAsync(HttpContext context, RequestDelegate next)
{
if (!urls.Value.EnforceHTTPS)
{
await next(context);
}
else
{
var hostName = context.Request.Host.ToString().ToLowerInvariant();
if (!string.Equals(context.Request.Scheme, "https", StringComparison.OrdinalIgnoreCase))
{
var newUrl = string.Concat("https://", hostName, context.Request.Path, context.Request.QueryString);
context.Response.Redirect(newUrl, true);
}
else
{
await next(context);
}
}
}
}
}
| 31.666667 | 120 | 0.481579 | [
"MIT"
] | mgnz/squidex | src/Squidex.Web/Pipeline/EnforceHttpsMiddleware.cs | 1,523 | C# |
/*
* MX API
*
* The MX Atrium API supports over 48,000 data connections to thousands of financial institutions. It provides secure access to your users' accounts and transactions with industry-leading cleansing, categorization, and classification. Atrium is designed according to resource-oriented REST architecture and responds with JSON bodies and HTTP response codes. Use Atrium's development environment, vestibule.mx.com, to quickly get up and running. The development environment limits are 100 users, 25 members per user, and access to the top 15 institutions. Contact MX to purchase production access.
*
* OpenAPI spec version: 0.1
*
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using DateConverter = Atrium.Client.DateConverter;
namespace Atrium.Model
{
/// <summary>
/// TransactionsResponseBody
/// </summary>
[DataContract]
public partial class TransactionsResponseBody : IEquatable<TransactionsResponseBody>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="TransactionsResponseBody" /> class.
/// </summary>
/// <param name="transactions">transactions.</param>
/// <param name="pagination">pagination.</param>
public TransactionsResponseBody(List<Transaction> transactions = default(List<Transaction>), Pagination pagination = default(Pagination))
{
this.Transactions = transactions;
this.Pagination = pagination;
}
/// <summary>
/// Gets or Sets Transactions
/// </summary>
[DataMember(Name="transactions", EmitDefaultValue=false)]
public List<Transaction> Transactions { get; set; }
/// <summary>
/// Gets or Sets Pagination
/// </summary>
[DataMember(Name="pagination", EmitDefaultValue=false)]
public Pagination Pagination { 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 TransactionsResponseBody {\n");
sb.Append(" Transactions: ").Append(Transactions).Append("\n");
sb.Append(" Pagination: ").Append(Pagination).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 JsonConvert.SerializeObject(this, 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 TransactionsResponseBody);
}
/// <summary>
/// Returns true if TransactionsResponseBody instances are equal
/// </summary>
/// <param name="input">Instance of TransactionsResponseBody to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(TransactionsResponseBody input)
{
if (input == null)
return false;
return
(
this.Transactions == input.Transactions ||
this.Transactions != null &&
this.Transactions.SequenceEqual(input.Transactions)
) &&
(
this.Pagination == input.Pagination ||
(this.Pagination != null &&
this.Pagination.Equals(input.Pagination))
);
}
/// <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.Transactions != null)
hashCode = hashCode * 59 + this.Transactions.GetHashCode();
if (this.Pagination != null)
hashCode = hashCode * 59 + this.Pagination.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;
}
}
}
| 37.407143 | 599 | 0.603399 | [
"MIT"
] | mxenabled/atrium-csharp | src/Atrium/Model/TransactionsResponseBody.cs | 5,237 | C# |
using Sharpen;
namespace dalvik.bytecode
{
[Sharpen.NakedStub]
public interface Opcodes
{
}
[Sharpen.NakedStub]
public abstract class OpcodesClass
{
}
}
| 10.866667 | 35 | 0.736196 | [
"Apache-2.0"
] | Conceptengineai/XobotOS | android/naked-stubs/dalvik/bytecode/Opcodes.cs | 163 | C# |
using System;
using System.Linq;
using RobloxAutomatization.Models;
namespace RobloxAutomatization.Services
{
public static class UserGenerator
{
public static RobloxUser GenerateUser()
{
var rnd = new Random();
var user = new RobloxUser
{
Username = new string(Guid.NewGuid().ToString().Replace("-", "").Take(15).ToArray()),
Password = Guid.NewGuid().ToString().Replace("-", ""),
Gender = Gender.Male,
Birthday = new DateTime(rnd.Next(1970, 2010), rnd.Next(1, 12), rnd.Next(1, 27))
};
return user;
}
public static RobloxUser GenerateUser(string username)
{
var rnd = new Random();
var user = new RobloxUser
{
Username = $"{username}{rnd.Next(1000, 9999)}",
Password = Guid.NewGuid().ToString().Replace("-", ""),
Gender = Gender.Male,
Birthday = new DateTime(rnd.Next(1970, 2010), rnd.Next(1, 12), rnd.Next(1, 27))
};
return user;
}
public static string GenerateOnlyUsername()
{
return new string(Guid.NewGuid().ToString().Replace("-", "").Take(15).ToArray());
}
public static string AttachRandomNumber(string username)
{
username = username.Substring(0, username.Length - 4);
username = string.Concat(username, new Random().Next(1000, 9999));
return username;
}
}
}
| 30.384615 | 101 | 0.529747 | [
"MIT"
] | suxrobGM/RobloxAutomatization | src/RobloxAutomatization/Services/UserGenerator.cs | 1,582 | 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 QuanLyPhongMachTu.Model
{
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
public partial class QuanLyPhongMachEntities : DbContext
{
public QuanLyPhongMachEntities()
: base("name=QuanLyPhongMachEntities")
{
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public virtual DbSet<BenhNhan> BenhNhans { get; set; }
public virtual DbSet<CachDung> CachDungs { get; set; }
public virtual DbSet<ChiTietDonThuoc> ChiTietDonThuocs { get; set; }
public virtual DbSet<DonVi> DonVis { get; set; }
public virtual DbSet<LoaiBenh> LoaiBenhs { get; set; }
public virtual DbSet<LoaiThuoc> LoaiThuocs { get; set; }
public virtual DbSet<NhanVien> NhanViens { get; set; }
public virtual DbSet<PhieuKham> PhieuKhams { get; set; }
public virtual DbSet<QuyDinh> QuyDinhs { get; set; }
public virtual DbSet<sysdiagram> sysdiagrams { get; set; }
}
}
| 38.85 | 85 | 0.592021 | [
"MIT"
] | ngdkhoi/QuanLyPhongMachTu | QuanLyPhongMachTu/QuanLyPhongMachTu/Model/Database.Context.cs | 1,556 | 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("Chips.Sitecore.Commands.Serialization")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Chips.Sitecore.Commands.Serialization")]
[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("c2d9e6e9-333a-41b6-b56d-fd73aaf40c2a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 39.083333 | 84 | 0.753376 | [
"MIT"
] | gravypower/Chips | src/Sitecore/Commands/Chips.Sitecore.Commands.Serialization/Properties/AssemblyInfo.cs | 1,410 | C# |
using System.Collections.Immutable;
using Righthand.Immutable;
namespace SloCovidServer.Models
{
public record HealthCentersDay : IModelDate
{
public int Year { get; init; }
public int Month { get; init; }
public int Day { get; init; }
public HealthCentersDayItem All { get; init; }
public ImmutableDictionary<string, ImmutableDictionary<string, HealthCentersDayItem>> Municipalities { get; init; }
public HealthCentersDay(
int year, int month, int day,
HealthCentersDayItem all, ImmutableDictionary<string, ImmutableDictionary<string, HealthCentersDayItem>> municipalities)
{
Year = year;
Month = month;
Day = day;
All = all;
Municipalities = municipalities;
}
}
public record HealthCentersDayItem
{
public static HealthCentersDayItem Empty { get; } = new HealthCentersDayItem(
HealthCentersExaminations.Empty,
HealthCentersPhoneTriage.Empty,
HealthCentersTests.Empty,
HealthCentersSentTo.Empty);
public HealthCentersExaminations Examinations { get; init; }
public HealthCentersPhoneTriage PhoneTriage { get; init; }
public HealthCentersTests Tests { get; init; }
public HealthCentersSentTo SentTo { get; init; }
public HealthCentersDayItem(HealthCentersExaminations examinations, HealthCentersPhoneTriage phoneTriage, HealthCentersTests tests, HealthCentersSentTo sentTo)
{
Examinations = examinations;
PhoneTriage = phoneTriage;
Tests = tests;
SentTo = sentTo;
}
}
public record HealthCentersExaminations
{
public static HealthCentersExaminations Empty { get; } = new HealthCentersExaminations(null, null);
public int? MedicalEmergency { get; init; }
public int? SuspectedCovid { get; init; }
public HealthCentersExaminations(int? medicalEmergency, int? suspectedCovid)
{
MedicalEmergency = medicalEmergency;
SuspectedCovid = suspectedCovid;
}
}
public record HealthCentersPhoneTriage
{
public static HealthCentersPhoneTriage Empty { get; } = new HealthCentersPhoneTriage((int?)null);
public int? SuspectedCovid { get; init; }
public HealthCentersPhoneTriage(int? suspectedCovid)
{
SuspectedCovid = suspectedCovid;
}
}
public record HealthCentersTests
{
public static HealthCentersTests Empty { get; } = new HealthCentersTests(null, null);
public int? Performed { get; init; }
public int? Positive { get; init; }
public HealthCentersTests(int? performed, int? positive)
{
Performed = performed;
Positive = positive;
}
}
public record HealthCentersSentTo
{
public static HealthCentersSentTo Empty { get; } = new HealthCentersSentTo(null, null);
public int? Hospital { get; init; }
public int? SelfIsolation { get; init; }
public HealthCentersSentTo(int? hospital, int? selfIsolation)
{
Hospital = hospital;
SelfIsolation = selfIsolation;
}
}
}
| 34.789474 | 167 | 0.638124 | [
"MIT"
] | overlordtm/data-api | sources/SloCovidServer/SloCovidServer/Models/HealthCentersDay.cs | 3,307 | C# |
using System.Collections;
using System.Collections.Generic;
using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
using NetOffice.CollectionsGeneric;
namespace NetOffice.WordApi
{
/// <summary>
/// DispatchInterface BuildingBlocks
/// SupportByVersion Word, 12,14,15,16
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff837526.aspx </remarks>
[SupportByVersion("Word", 12,14,15,16)]
[EntityType(EntityType.IsDispatchInterface), Enumerator(Enumerator.Reference, EnumeratorInvoke.Custom), HasIndexProperty(IndexInvoke.Method, "Item")]
public class BuildingBlocks : COMObject, IEnumerableProvider<NetOffice.WordApi.BuildingBlock>
{
#pragma warning disable
#region Type Information
/// <summary>
/// Instance Type
/// </summary>
[EditorBrowsable(EditorBrowsableState.Advanced), Browsable(false), Category("NetOffice"), CoreOverridden]
public override Type InstanceType
{
get
{
return LateBindingApiWrapperType;
}
}
private static Type _type;
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public static Type LateBindingApiWrapperType
{
get
{
if (null == _type)
_type = typeof(BuildingBlocks);
return _type;
}
}
#endregion
#region Ctor
/// <param name="factory">current used factory core</param>
/// <param name="parentObject">object there has created the proxy</param>
/// <param name="proxyShare">proxy share instead if com proxy</param>
public BuildingBlocks(Core factory, ICOMObject parentObject, COMProxyShare proxyShare) : base(factory, parentObject, proxyShare)
{
}
///<param name="factory">current used factory core</param>
///<param name="parentObject">object there has created the proxy</param>
///<param name="comProxy">inner wrapped COM proxy</param>
public BuildingBlocks(Core factory, ICOMObject parentObject, object comProxy) : base(factory, parentObject, comProxy)
{
}
///<param name="parentObject">object there has created the proxy</param>
///<param name="comProxy">inner wrapped COM proxy</param>
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public BuildingBlocks(ICOMObject parentObject, object comProxy) : base(parentObject, comProxy)
{
}
///<param name="factory">current used factory core</param>
///<param name="parentObject">object there has created the proxy</param>
///<param name="comProxy">inner wrapped COM proxy</param>
///<param name="comProxyType">Type of inner wrapped COM proxy"</param>
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public BuildingBlocks(Core factory, ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType)
{
}
///<param name="parentObject">object there has created the proxy</param>
///<param name="comProxy">inner wrapped COM proxy</param>
///<param name="comProxyType">Type of inner wrapped COM proxy"</param>
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public BuildingBlocks(ICOMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType)
{
}
///<param name="replacedObject">object to replaced. replacedObject are not usable after this action</param>
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public BuildingBlocks(ICOMObject replacedObject) : base(replacedObject)
{
}
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public BuildingBlocks() : base()
{
}
/// <param name="progId">registered progID</param>
[EditorBrowsable(EditorBrowsableState.Never), Browsable(false)]
public BuildingBlocks(string progId) : base(progId)
{
}
#endregion
#region Properties
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// Get
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff191875.aspx </remarks>
[SupportByVersion("Word", 12,14,15,16)]
public NetOffice.WordApi.Application Application
{
get
{
return Factory.ExecuteKnownReferencePropertyGet<NetOffice.WordApi.Application>(this, "Application", NetOffice.WordApi.Application.LateBindingApiWrapperType);
}
}
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// Get
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff194560.aspx </remarks>
[SupportByVersion("Word", 12,14,15,16)]
public Int32 Creator
{
get
{
return Factory.ExecuteInt32PropertyGet(this, "Creator");
}
}
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// Get
/// Unknown COM Proxy
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff837685.aspx </remarks>
[SupportByVersion("Word", 12,14,15,16), ProxyResult]
public object Parent
{
get
{
return Factory.ExecuteReferencePropertyGet(this, "Parent");
}
}
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// Get
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff194693.aspx </remarks>
[SupportByVersion("Word", 12,14,15,16)]
public Int32 Count
{
get
{
return Factory.ExecuteInt32PropertyGet(this, "Count");
}
}
#endregion
#region Methods
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// </summary>
/// <param name="index">object index</param>
[SupportByVersion("Word", 12,14,15,16)]
[NetRuntimeSystem.Runtime.CompilerServices.IndexerName("Item"), IndexProperty]
public NetOffice.WordApi.BuildingBlock this[object index]
{
get
{
return Factory.ExecuteKnownReferenceMethodGet<NetOffice.WordApi.BuildingBlock>(this, "Item", NetOffice.WordApi.BuildingBlock.LateBindingApiWrapperType, index);
}
}
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff192232.aspx </remarks>
/// <param name="name">string name</param>
/// <param name="range">NetOffice.WordApi.Range range</param>
/// <param name="description">optional object description</param>
/// <param name="insertOptions">optional NetOffice.WordApi.Enums.WdDocPartInsertOptions InsertOptions = 0</param>
[SupportByVersion("Word", 12,14,15,16)]
public NetOffice.WordApi.BuildingBlock Add(string name, NetOffice.WordApi.Range range, object description, object insertOptions)
{
return Factory.ExecuteKnownReferenceMethodGet<NetOffice.WordApi.BuildingBlock>(this, "Add", NetOffice.WordApi.BuildingBlock.LateBindingApiWrapperType, name, range, description, insertOptions);
}
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff192232.aspx </remarks>
/// <param name="name">string name</param>
/// <param name="range">NetOffice.WordApi.Range range</param>
[CustomMethod]
[SupportByVersion("Word", 12,14,15,16)]
public NetOffice.WordApi.BuildingBlock Add(string name, NetOffice.WordApi.Range range)
{
return Factory.ExecuteKnownReferenceMethodGet<NetOffice.WordApi.BuildingBlock>(this, "Add", NetOffice.WordApi.BuildingBlock.LateBindingApiWrapperType, name, range);
}
/// <summary>
/// SupportByVersion Word 12, 14, 15, 16
/// </summary>
/// <remarks> MSDN Online: http://msdn.microsoft.com/en-us/en-us/library/office/ff192232.aspx </remarks>
/// <param name="name">string name</param>
/// <param name="range">NetOffice.WordApi.Range range</param>
/// <param name="description">optional object description</param>
[CustomMethod]
[SupportByVersion("Word", 12,14,15,16)]
public NetOffice.WordApi.BuildingBlock Add(string name, NetOffice.WordApi.Range range, object description)
{
return Factory.ExecuteKnownReferenceMethodGet<NetOffice.WordApi.BuildingBlock>(this, "Add", NetOffice.WordApi.BuildingBlock.LateBindingApiWrapperType, name, range, description);
}
#endregion
#region IEnumerableProvider<NetOffice.WordApi.BuildingBlock>
ICOMObject IEnumerableProvider<NetOffice.WordApi.BuildingBlock>.GetComObjectEnumerator(ICOMObject parent)
{
return this;
}
IEnumerable IEnumerableProvider<NetOffice.WordApi.BuildingBlock>.FetchVariantComObjectEnumerator(ICOMObject parent, ICOMObject enumerator)
{
NetRuntimeSystem.Collections.IEnumerable innerEnumerator = (this as NetRuntimeSystem.Collections.IEnumerable);
foreach (NetOffice.WordApi.BuildingBlock item in innerEnumerator)
yield return item;
}
#endregion
#region IEnumerable<NetOffice.WordApi.BuildingBlock> Member
/// <summary>
/// SupportByVersion Word, 12,14,15,16
/// This is a custom enumerator from NetOffice
/// </summary>
[SupportByVersion("Word", 12, 14, 15, 16)]
[CustomEnumerator]
public IEnumerator<NetOffice.WordApi.BuildingBlock> GetEnumerator()
{
NetRuntimeSystem.Collections.IEnumerable innerEnumerator = (this as NetRuntimeSystem.Collections.IEnumerable);
foreach (NetOffice.WordApi.BuildingBlock item in innerEnumerator)
yield return item;
}
#endregion
#region IEnumerable Members
/// <summary>
/// SupportByVersion Word, 12,14,15,16
/// This is a custom enumerator from NetOffice
/// </summary>
[SupportByVersion("Word", 12, 14, 15, 16)]
[CustomEnumerator]
IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator()
{
int count = Count;
object[] enumeratorObjects = new object[count];
for (int i = 0; i < count; i++)
enumeratorObjects[i] = this[i + 1];
foreach (object item in enumeratorObjects)
yield return item;
}
#endregion
#pragma warning restore
}
} | 35.791667 | 195 | 0.692084 | [
"MIT"
] | DominikPalo/NetOffice | Source/Word/DispatchInterfaces/BuildingBlocks.cs | 10,310 | 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 ec2-2016-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.EC2.Model
{
/// <summary>
/// Base class for DescribeNetworkInsightsPaths paginators.
/// </summary>
internal sealed partial class DescribeNetworkInsightsPathsPaginator : IPaginator<DescribeNetworkInsightsPathsResponse>, IDescribeNetworkInsightsPathsPaginator
{
private readonly IAmazonEC2 _client;
private readonly DescribeNetworkInsightsPathsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeNetworkInsightsPathsResponse> Responses => new PaginatedResponse<DescribeNetworkInsightsPathsResponse>(this);
/// <summary>
/// Enumerable containing all of the NetworkInsightsPaths
/// </summary>
public IPaginatedEnumerable<NetworkInsightsPath> NetworkInsightsPaths =>
new PaginatedResultKeyResponse<DescribeNetworkInsightsPathsResponse, NetworkInsightsPath>(this, (i) => i.NetworkInsightsPaths);
internal DescribeNetworkInsightsPathsPaginator(IAmazonEC2 client, DescribeNetworkInsightsPathsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeNetworkInsightsPathsResponse> IPaginator<DescribeNetworkInsightsPathsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeNetworkInsightsPathsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeNetworkInsightsPaths(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeNetworkInsightsPathsResponse> IPaginator<DescribeNetworkInsightsPathsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeNetworkInsightsPathsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeNetworkInsightsPathsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 42.443299 | 178 | 0.685936 | [
"Apache-2.0"
] | ChristopherButtars/aws-sdk-net | sdk/src/Services/EC2/Generated/Model/_bcl45+netstandard/DescribeNetworkInsightsPathsPaginator.cs | 4,117 | C# |
/*<FILE_LICENSE>
* Azos (A to Z Application Operating System) Framework
* The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
</FILE_LICENSE>*/
using System;
using System.Threading.Tasks;
using Azos.Wave.Mvc;
using Azos.Security.Tokens;
using Azos.Serialization.JSON;
using Azos.Wave;
using Azos.Data;
using System.Net;
using Azos.Conf;
namespace Azos.Security.Services
{
partial class OAuthControllerBase
{
public const string CONFIG_WEB_SECTION = "web";
/// <summary>
/// Shortcut accessor to OAuth.Options["web"]
/// </summary>
protected IConfigSectionNode WebOptions => OAuth.Options[CONFIG_WEB_SECTION];
protected T GateError<T>(T response) => gate(response, false);
protected T GateUser<T>(T response) => gate(response, true);
private T gate<T>(T response, bool isInvalidUser)
{
var varName = isInvalidUser ? OAuth.GateVarInvalidUser : OAuth.GateVarErrors;
if (varName.IsNullOrWhiteSpace()) return response;
WorkContext.IncreaseGateVar(varName);
return response;
}
/// <summary>
/// Override to allocate a custom derived type for login flow context
/// </summary>
protected virtual LoginFlow MakeLoginFlow() => new LoginFlow();
/// <summary>
/// Override to extract SSO session cookie from the request. The value (if any) is set on `loginFlow.SsoSessionId`
/// Default implementation uses Request Cookie named OAuth.SsoSessionName if it is set.
/// You must set loginFlow.SsoSessionId to null if there is no such session id provided or OAuth.ssoSessionName is turned off (null or whitespace)
/// </summary>
protected virtual void TryExtractSsoSessionId(LoginFlow loginFlow)
{
var ssoCookieName = OAuth.SsoSessionName;//copy
if (ssoCookieName.IsNullOrWhiteSpace()) return;
var cookie = WorkContext.Request.Cookies[ssoCookieName];
if (cookie == null) return;
var result = cookie.Value;
if (result.IsNullOrWhiteSpace()) return;
loginFlow.SsoSessionId = result;
}
protected virtual void SetSsoSessionId(LoginFlow loginFlow, string ssoSessionName)
{
var cookie = new Cookie(ssoSessionName, loginFlow.SsoSessionId);
cookie.HttpOnly = true;
cookie.Secure = true ^ WebOptions.Of("cookie-not-secure").ValueAsBool(false);
cookie.Expires = App.TimeSource.UTCNow.AddMinutes(WebOptions.Of("cookie-expire-in-minutes").ValueAsDouble(2 * 24 * 60));
WorkContext.Response.AppendCookie(cookie);
}
/// <summary>
/// Tries to get SSO subject user by examining the supplied idSsoSession.
/// Set sso user to NULL if the SSO session id is invalid/or user revoked etc..
/// </summary>
protected async virtual Task TryGetSsoSubjectAsync(LoginFlow loginFlow)
{
var session = await OAuth.TokenRing.GetAsync<SsoSessionToken>(loginFlow.SsoSessionId).ConfigureAwait(false);
if (session == null) return;
if (!SysAuthToken.TryParse(session.SysAuthToken, out var sysToken)) return;
var ssoSubject = await App.SecurityManager.AuthenticateAsync(sysToken).ConfigureAwait(false);
if (!ssoSubject.IsAuthenticated) return; //sys auth token may have expired
loginFlow.SsoSubjectUser = ssoSubject;
}
protected async virtual Task SetSsoSubjectSessionAsync(LoginFlow loginFlow, DateTime lastLoginUtc, User ssoSubjectUser)
{
loginFlow.SsoWasJustSet = true;
loginFlow.SsoSubjectLastLoginUtc = lastLoginUtc;
loginFlow.SsoSubjectUser = ssoSubjectUser;
var session = OAuth.TokenRing.GenerateNew<SsoSessionToken>();
session.SysAuthToken = loginFlow.SsoSubjectUser.AuthToken.ToString();
loginFlow.SsoSessionId = await OAuth.TokenRing.PutAsync(session).ConfigureAwait(false);
}
/// <summary>
/// Advances login flow state to the next level.
/// You may override this and accompanying "RespondWithAuthorizeResult/MakeAuthorizeResult"/>
/// method to build a complex login flows which return different views, such as 2FA etc.
/// </summary>
protected virtual Task AdvanceLoginFlowStateAsync(LoginFlow loginFlow)
{
if (loginFlow.IsValidSsoUser) loginFlow.FiniteStateSuccess = true;
if (loginFlow.IsValidSubjectUser) loginFlow.FiniteStateSuccess = true;
return Task.CompletedTask;
}
protected virtual object RespondWithAuthorizeResult(long sdUtc, LoginFlow loginFlow, string error)
{
//Pack all requested content(session) into cryptographically encoded message aka "roundtrip"
var flow = new {
sd = sdUtc,
iss = App.TimeSource.UTCNow.ToSecondsSinceUnixEpochStart(),
tp = loginFlow.ClientResponseType,
scp = loginFlow.ClientScope,
id = loginFlow.ClientId,
uri = loginFlow.ClientRedirectUri,
st = loginFlow.ClientState
};
var roundtrip = App.SecurityManager.PublicProtectAsString(flow);
if (error!=null)
{
WorkContext.Response.StatusCode = WebConsts.STATUS_403;
WorkContext.Response.StatusDescription = error;
}
return MakeAuthorizeResult(loginFlow, roundtrip, error);
}
/// <summary>
/// Override to provide a authorize result which is by default either a stock login form or
/// JSON object
/// </summary>
protected virtual object MakeAuthorizeResult(LoginFlow loginFlow, string roundtrip, string error)
{
if (WorkContext.RequestedJson)
return new { OK = error.IsNullOrEmpty(), roundtrip, error };
//stock log-in page
return new Wave.Templatization.StockContent.OAuthLogin(loginFlow.ClientUser, roundtrip, error);
}
protected virtual async Task<object> GenerateSuccessfulClientAccessCodeTokenRedirectAsync(User subject, string clid, string state, string uri, bool usePageRedirect = false)
{
var acToken = OAuth.TokenRing.GenerateNew<ClientAccessCodeToken>();
acToken.ClientId = clid;
acToken.State = state;
acToken.RedirectURI = uri;
acToken.SubjectSysAuthToken = subject.AuthToken.ToString();
var accessCode = await OAuth.TokenRing.PutAsync(acToken).ConfigureAwait(false);
//6. Redirect to URI
var redirect = new UriQueryBuilder(uri)
{
{"code", accessCode},
{"state", state}
}.ToString();
if (usePageRedirect)
{
var suppressAutoRedirect = WebOptions.Of("suppress-auto-sso-redirect").ValueAsBool(false);
return new Wave.Templatization.StockContent.OAuthSsoRedirect(redirect, suppressAutoRedirect);
}
else
return new Redirect(redirect);
}
/// <summary>
/// Override to add extra information to <see cref="AuthenticationRequestContext"/>.
/// Default implementation does nothing
/// </summary>
protected virtual void ConfigureAuthenticationRequestContext(LoginFlow loginFlow, AuthenticationRequestContext context)
{
}
/// <summary>
/// Override to add extra claims to id_token JWT
/// </summary>
protected virtual void AddExtraClaimsToIDToken(User clientUser, User subjectUser, AccessToken accessToken, JsonDataMap jwtClaims)
{
}
/// <summary>
/// Override to add extra field to response body (rarely needed)
/// </summary>
protected virtual void AddExtraFieldsToResponseBody(User clientUser, User subjectUser, AccessToken accessToken, JsonDataMap responseBody)
{
}
protected object ReturnError(string error, string error_description, string error_uri = null, int code = 400)
{
if (error.IsNullOrWhiteSpace())
error_uri = "invalid_request";
if (error_description.IsNullOrWhiteSpace())
error_description = "Could not be processed";
if (error_uri.IsNullOrWhiteSpace())
error_uri = "https://en.wikipedia.org/wiki/OAuth";
var json = new // https://www.oauth.com/oauth2-servers/access-tokens/access-token-response/
{
error,
error_description,
error_uri
};
WorkContext.Response.StatusCode = code;
WorkContext.Response.StatusDescription = "Bad request";
return new JsonResult(json, JsonWritingOptions.PrettyPrint);
}
}
}
| 37.640909 | 176 | 0.703417 | [
"MIT"
] | davidbrun/azos | src/Azos.Wave/Security/Services/OAuthControllerBase.override.cs | 8,283 | C# |
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------------------------------------------
using Xunit;
namespace Microsoft.PSharp.LanguageServices.Tests
{
public class NameofTests
{
private readonly string NameofTest = @"
namespace Foo {
machine M_with_nameof {
start state Init
{
entry
{
Value += 1;
raise(E1);
}
exit { Value += 10; }
on E1 goto Next with { Value += 100; }
}
state Next
{
entry
{
Value += 1000;
raise(E2);
}
on E2 do { Value += 10000; }
}
}
}";
[Fact(Timeout=5000)]
public void TestAllNameofRewriteWithNameof()
{
var test = this.NameofTest;
var expected = @"
using Microsoft.PSharp;
namespace Foo
{
class M_with_nameof : Machine
{
[Microsoft.PSharp.Start]
[OnEntry(nameof(psharp_Init_on_entry_action))]
[OnExit(nameof(psharp_Init_on_exit_action))]
[OnEventGotoState(typeof(E1), typeof(Next), nameof(psharp_Init_E1_action))]
class Init : MachineState
{
}
[OnEntry(nameof(psharp_Next_on_entry_action))]
[OnEventDoAction(typeof(E2), nameof(psharp_Next_E2_action))]
class Next : MachineState
{
}
protected void psharp_Init_on_entry_action()
{
Value += 1;
this.Raise(new E1());
}
protected void psharp_Init_on_exit_action()
{ Value += 10; }
protected void psharp_Next_on_entry_action()
{
Value += 1000;
this.Raise(new E2());
}
protected void psharp_Init_E1_action()
{ Value += 100; }
protected void psharp_Next_E2_action()
{ Value += 10000; }
}
}";
LanguageTestUtilities.AssertRewritten(expected, test);
}
[Fact(Timeout=5000)]
public void TestAllNameofRewriteWithoutNameof()
{
var test = this.NameofTest;
var expected = @"
using Microsoft.PSharp;
namespace Foo
{
class M_with_nameof : Machine
{
[Microsoft.PSharp.Start]
[OnEntry(""psharp_Init_on_entry_action"")]
[OnExit(""psharp_Init_on_exit_action"")]
[OnEventGotoState(typeof(E1), typeof(Next), ""psharp_Init_E1_action"")]
class Init : MachineState
{
}
[OnEntry(""psharp_Next_on_entry_action"")]
[OnEventDoAction(typeof(E2), ""psharp_Next_E2_action"")]
class Next : MachineState
{
}
protected void psharp_Init_on_entry_action()
{
Value += 1;
this.Raise(new E1());
}
protected void psharp_Init_on_exit_action()
{ Value += 10; }
protected void psharp_Next_on_entry_action()
{
Value += 1000;
this.Raise(new E2());
}
protected void psharp_Init_E1_action()
{ Value += 100; }
protected void psharp_Next_E2_action()
{ Value += 10000; }
}
}";
LanguageTestUtilities.AssertRewritten(expected, test, csVersion: new System.Version(5, 0));
}
}
}
| 25.798561 | 103 | 0.516453 | [
"MIT"
] | alexsyeo/PSharp | Tests/LanguageServices.Tests/Declarations/NameofTests.cs | 3,588 | C# |
using CafesApi.Models;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
namespace CafesApi.Infrastructure
{
public class CafesDbContext
{
private readonly IMongoDatabase _db;
public CafesDbContext(IOptions<DbSettings> options)
{
var client = new MongoClient(options.Value.ConnectionString);
_db = client.GetDatabase(options.Value.DbName);
}
public IMongoCollection<Cafe> Cafes => _db.GetCollection<Cafe>("Cafes");
}
}
| 25.35 | 80 | 0.682446 | [
"MIT"
] | Savage3D/AspNetCore-MongoDB | CafesApi/Infrastructure/CafesDbContext.cs | 509 | C# |
#region MIT License
/*Copyright (c) 2012-2013 Robert Rouhani <robert.rouhani@gmail.com>
SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
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.*/
#endregion
using System;
namespace SDL_Sharp.SharpFont
{
/// <summary><para>
/// A list of values used to describe an outline's contour orientation.
/// </para><para>
/// The TrueType and PostScript specifications use different conventions to determine whether outline contours
/// should be filled or unfilled.
/// </para></summary>
public enum Orientation
{
/// <summary>
/// According to the TrueType specification, clockwise contours must be filled, and counter-clockwise ones must
/// be unfilled.
/// </summary>
TrueType = 0,
/// <summary>
/// According to the PostScript specification, counter-clockwise contours must be filled, and clockwise ones
/// must be unfilled.
/// </summary>
PostScript = 1,
/// <summary>
/// This is identical to <see cref="TrueType"/>, but is used to remember that in TrueType, everything that is
/// to the right of the drawing direction of a contour must be filled.
/// </summary>
FillRight = TrueType,
/// <summary>
/// This is identical to <see cref="PostScript"/>, but is used to remember that in PostScript, everything that
/// is to the left of the drawing direction of a contour must be filled.
/// </summary>
FillLeft = PostScript,
/// <summary>
/// The orientation cannot be determined. That is, different parts of the glyph have different orientation.
/// </summary>
None
}
}
| 38.492537 | 113 | 0.742924 | [
"MIT"
] | GabrielFrigo4/SDL-Sharp | SDL-Sharp/SharpFont/Orientation.cs | 2,581 | C# |
using System;
namespace LibHac.Fs
{
public partial class FileSystemClient
{
public Result GetDirectoryEntryCount(out long count, DirectoryHandle handle)
{
return handle.Directory.GetEntryCount(out count);
}
public Result ReadDirectory(out long entriesRead, Span<DirectoryEntry> entryBuffer, DirectoryHandle handle)
{
Result rc;
if (IsEnabledAccessLog() && IsEnabledHandleAccessLog(handle))
{
TimeSpan startTime = Time.GetCurrent();
rc = handle.Directory.Read(out entriesRead, entryBuffer);
TimeSpan endTime = Time.GetCurrent();
OutputAccessLog(rc, startTime, endTime, handle, string.Empty);
}
else
{
rc = handle.Directory.Read(out entriesRead, entryBuffer);
}
return rc;
}
public void CloseDirectory(DirectoryHandle handle)
{
if (IsEnabledAccessLog() && IsEnabledHandleAccessLog(handle))
{
TimeSpan startTime = Time.GetCurrent();
handle.Directory.Dispose();
TimeSpan endTime = Time.GetCurrent();
OutputAccessLog(Result.Success, startTime, endTime, handle, string.Empty);
}
else
{
handle.Directory.Dispose();
}
}
}
}
| 30.530612 | 116 | 0.534759 | [
"BSD-3-Clause"
] | CaitSith2/libhac | src/LibHac/Fs/FileSystemClient.Directory.cs | 1,450 | C# |
// <auto-generated>
// ReSharper disable All
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace Tanneryd.BulkOperations.EFCore.Tests
{
// ReservedSqlKeyword
public class ReservedSqlKeywordConfiguration : IEntityTypeConfiguration<ReservedSqlKeyword>
{
public void Configure(EntityTypeBuilder<ReservedSqlKeyword> builder)
{
builder.ToTable("ReservedSqlKeyword", "dbo");
builder.HasKey(x => x.Id).HasName("PK_dbo.ReservedSqlKeyword").IsClustered();
builder.Property(x => x.Id).HasColumnName(@"Id").HasColumnType("int").IsRequired().ValueGeneratedOnAdd().UseIdentityColumn();
builder.Property(x => x.Key).HasColumnName(@"Key").HasColumnType("int").IsRequired(false);
builder.Property(x => x.Identity).HasColumnName(@"Identity").HasColumnType("int").IsRequired(false);
builder.Property(x => x.Select).HasColumnName(@"Select").HasColumnType("nvarchar(max)").IsRequired(false);
}
}
}
// </auto-generated>
| 40.961538 | 137 | 0.701408 | [
"Apache-2.0"
] | mtanneryd/ef-core-bulk-operations | Tanneryd.BulkOperations.EFCore/Tanneryd.BulkOperations.EFCore.Tests/Models/EF/ReservedSqlKeywordConfiguration.cs | 1,065 | C# |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Protocols.TestSuites.FileSharing.Common.Adapter;
using Microsoft.Protocols.TestTools;
using Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Smb2;
using Microsoft.Protocols.TestTools.StackSdk.Security.Sspi;
namespace Microsoft.Protocols.TestSuites.FileSharing.SMB2Model.Adapter.Signing
{
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class SigningAdapter : ModelManagedAdapterBase, ISigningAdapter
{
#region Fields
private Smb2FunctionalClient testClient;
private SigningConfig signingConfig;
#endregion
#region Initialization
public override void Initialize(ITestSite testSite)
{
base.Initialize(testSite);
}
public override void Reset()
{
base.Reset();
if (testClient != null)
{
testClient.Disconnect();
testClient = null;
}
}
#endregion
#region Events
public event NegotiateResponseEventHandler NegotiateResponse;
public event SessionSetupResponseEventHandler SessionSetupResponse;
public event TreeConnectResponseEventHandler TreeConnectResponse;
#endregion
#region Actions
public void ReadConfig(out SigningConfig c)
{
c = new SigningConfig
{
MaxSmbVersionSupported = ModelUtility.GetModelDialectRevision(testConfig.MaxSmbVersionSupported),
IsServerSigningRequired = testConfig.IsServerSigningRequired,
};
signingConfig = c;
Site.Log.Add(LogEntryKind.Debug, signingConfig.ToString());
}
public void NegotiateRequest(ModelDialectRevision maxSmbVersionClientSupported, SigningFlagType signingFlagType, SigningEnabledType signingEnabledType, SigningRequiredType signingRequiredType)
{
testClient = new Smb2FunctionalClient(testConfig.Timeout, testConfig, this.Site);
testClient.ConnectToServer(testConfig.UnderlyingTransport, testConfig.SutComputerName, testConfig.SutIPAddress);
DialectRevision[] dialects = Smb2Utility.GetDialects(ModelUtility.GetDialectRevision(maxSmbVersionClientSupported));
Packet_Header_Flags_Values headerFlags = (signingFlagType == SigningFlagType.SignedFlagSet) ? Packet_Header_Flags_Values.FLAGS_SIGNED : Packet_Header_Flags_Values.NONE;
SigningEnabledType resSigningEnabledType = SigningEnabledType.SigningEnabledNotSet;
SigningRequiredType resSigningRequiredType = SigningRequiredType.SigningRequiredNotSet;
uint status = testClient.Negotiate(
headerFlags,
dialects,
GetNegotiateSecurityMode(signingEnabledType, signingRequiredType),
checker: (header, response) =>
{
resSigningEnabledType =
response.SecurityMode.HasFlag(NEGOTIATE_Response_SecurityMode_Values.NEGOTIATE_SIGNING_ENABLED) ?
SigningEnabledType.SigningEnabledSet : SigningEnabledType.SigningEnabledNotSet;
resSigningRequiredType =
response.SecurityMode.HasFlag(NEGOTIATE_Response_SecurityMode_Values.NEGOTIATE_SIGNING_REQUIRED) ?
SigningRequiredType.SigningRequiredSet : SigningRequiredType.SigningRequiredNotSet;
});
NegotiateResponse((ModelSmb2Status)status, resSigningEnabledType, resSigningRequiredType, signingConfig);
}
public void SessionSetupRequest(SigningFlagType signingFlagType, SigningEnabledType signingEnabledType, SigningRequiredType signingRequiredType, UserType userType)
{
SigningModelSessionId modelSessionId = SigningModelSessionId.ZeroSessionId;
SessionFlags_Values sessionFlag = SessionFlags_Values.NONE;
SigningFlagType responseSigningFlagType = SigningFlagType.SignedFlagNotSet;
Packet_Header_Flags_Values headerFlags = (signingFlagType == SigningFlagType.SignedFlagSet) ? Packet_Header_Flags_Values.FLAGS_SIGNED : Packet_Header_Flags_Values.NONE;
uint status = testClient.SessionSetup(
headerFlags,
testConfig.DefaultSecurityPackage,
testConfig.SutComputerName,
GetAccountCredential(userType),
true,
GetSessionSetupSecurityMode(signingEnabledType, signingRequiredType),
checker: (header, response) =>
{
modelSessionId = GetModelSessionId(header.SessionId);
responseSigningFlagType = GetSigningFlagType(header.Flags);
sessionFlag = response.SessionFlags;
});
SessionSetupResponse((ModelSmb2Status)status, modelSessionId, responseSigningFlagType, sessionFlag, signingConfig);
}
public void TreeConnectRequest(SigningFlagType signingFlagType)
{
uint treeId;
SigningModelSessionId modelSessionId = SigningModelSessionId.ZeroSessionId;
SigningFlagType responseSigningFlagType = SigningFlagType.SignedFlagNotSet;
string sharePath = Smb2Utility.GetUncPath(testConfig.SutComputerName, testConfig.BasicFileShare);
Packet_Header_Flags_Values headerFlags = (signingFlagType == SigningFlagType.SignedFlagSet) ? Packet_Header_Flags_Values.FLAGS_SIGNED : Packet_Header_Flags_Values.NONE;
if (signingFlagType == SigningFlagType.SignedFlagNotSet)
{
// Inform SDK to disable signning.
testClient.EnableSessionSigningAndEncryption(enableSigning: false, enableEncryption: false);
}
uint status = testClient.TreeConnect(
headerFlags,
sharePath,
out treeId,
checker: (header, response) =>
{
modelSessionId = GetModelSessionId(header.SessionId);
responseSigningFlagType = GetSigningFlagType(header.Flags);
});
TreeConnectResponse((ModelSmb2Status)status, modelSessionId, responseSigningFlagType);
}
#endregion
#region Private Methods
private AccountCredential GetAccountCredential(UserType userType)
{
AccountCredential accountCredential;
switch (userType)
{
case UserType.Administrator:
accountCredential = testConfig.AccountCredential;
break;
case UserType.Guest:
accountCredential = testConfig.GuestAccountCredential;
break;
default:
throw new ArgumentException("The UserType is invalid", "userType");
}
return accountCredential;
}
private SigningModelSessionId GetModelSessionId(ulong sessionId)
{
return (sessionId == 0) ? SigningModelSessionId.ZeroSessionId : SigningModelSessionId.NonZeroSessionId;
}
private SecurityMode_Values GetNegotiateSecurityMode(SigningEnabledType signingEnabledType, SigningRequiredType signingRequiredType)
{
SecurityMode_Values securityMode = SecurityMode_Values.NONE;
if (signingEnabledType == SigningEnabledType.SigningEnabledSet)
{
securityMode |= SecurityMode_Values.NEGOTIATE_SIGNING_ENABLED;
}
if (signingRequiredType == SigningRequiredType.SigningRequiredSet)
{
securityMode |= SecurityMode_Values.NEGOTIATE_SIGNING_REQUIRED;
}
return securityMode;
}
private SESSION_SETUP_Request_SecurityMode_Values GetSessionSetupSecurityMode(SigningEnabledType signingEnabledType, SigningRequiredType signingRequiredType)
{
SESSION_SETUP_Request_SecurityMode_Values securityMode = SESSION_SETUP_Request_SecurityMode_Values.NONE;
if (signingEnabledType == SigningEnabledType.SigningEnabledSet)
{
securityMode |= SESSION_SETUP_Request_SecurityMode_Values.NEGOTIATE_SIGNING_ENABLED;
}
if (signingRequiredType == SigningRequiredType.SigningRequiredSet)
{
securityMode |= SESSION_SETUP_Request_SecurityMode_Values.NEGOTIATE_SIGNING_REQUIRED;
}
return securityMode;
}
private SigningFlagType GetSigningFlagType(Packet_Header_Flags_Values flags)
{
SigningFlagType signingFlag;
if (flags.HasFlag(Packet_Header_Flags_Values.FLAGS_SIGNED))
{
signingFlag = SigningFlagType.SignedFlagSet;
}
else
{
signingFlag = SigningFlagType.SignedFlagNotSet;
}
return signingFlag;
}
#endregion
}
}
| 45.009479 | 201 | 0.651153 | [
"MIT"
] | LiuXiaotian/WindowsProtocolTestSuites | TestSuites/FileServer/src/SMB2Model/Adapter/Signing/SigningAdapter.cs | 9,289 | C# |
using GreaterShare.BackgroundServices.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Foundation;
using Windows.Storage;
using System.IO;
using Windows.Storage.FileProperties;
using System.Collections;
namespace GreaterShare.BackgroundServices.Service
{
public sealed class PicLibFolderScanService
{
private IStorageFolder workingFolder = ApplicationData.Current.LocalCacheFolder;
private IAsyncOperation<StorageFile> workingFile;
public PicLibFolderScanService()
{
var option = CreationCollisionOption.OpenIfExists;
GetCacheFile(option);
}
private void GetCacheFile(CreationCollisionOption option)
{
workingFile = workingFolder.CreateFileAsync(nameof(PicLibFolderScanService) + ".cache", option);
}
public IAsyncOperation<IEnumerable> GetSnapshotAsync()
{
return InternalGetSnapshotAsync().AsAsyncOperation();
}
public IAsyncOperation<IEnumerable> LoadSnapshotAsync()
{
return InternalLoadSnapshotAsync().AsAsyncOperation();
}
public IAsyncAction SaveSnapshotAsync(IEnumerable folder)
{
return InternalSaveSnapshotAsync(folder.OfType<IPicLibFolder>().ToArray()).AsAsyncAction();
}
internal async Task<IEnumerable> InternalGetSnapshotAsync()
{
var root = await StorageLibrary.GetLibraryAsync(KnownLibraryId.Pictures);
var snapshot = await Task.WhenAll(root.Folders.ToArray().Select(async x => await InternalGetSnapshotAsync(x)));
return snapshot;
}
internal async Task<IPicLibFolder> InternalGetSnapshotAsync(IStorageFolder current)
{
var fs = await current.GetFilesAsync();
var folders = await Task.WhenAll((await current.GetFoldersAsync()).Select(async x => await InternalGetSnapshotAsync(x)));
var filesLast = (await Task.WhenAll(fs.Select(async x => await x.GetBasicPropertiesAsync())))
.Select(x => x.DateModified)
.Aggregate(DateTimeOffset.MinValue, (x, y) => x > y ? x : y);
var foldersLast = folders.Select(x => DateTimeOffset.Parse(x.LastFileEditTime))
.Aggregate(DateTimeOffset.MinValue, (x, y) => x > y ? x : y);
;
var picf = new PicLibFolder()
{
FileCount = fs.Count,
LastFileEditTime = ((filesLast > foldersLast) ? filesLast : foldersLast).ToString(),
UriString = current.Path,
Folders = folders
};
return picf;
}
internal async Task<IEnumerable> InternalLoadSnapshotAsync()
{
var f = await workingFile;
var sl = new System.Runtime.Serialization.DataContractSerializer(typeof(PicLibFolder[]));
var ms = new MemoryStream();
using (var inps = (await f.OpenReadAsync()).GetInputStreamAt(0).AsStreamForRead())
{
await inps.CopyToAsync(ms);
ms.Position = 0;
}
var r = sl.ReadObject(ms) as PicLibFolder[];
return r;
}
internal async Task InternalSaveSnapshotAsync(IPicLibFolder[] folders)
{
var sl = new System.Runtime.Serialization.DataContractSerializer(typeof(PicLibFolder[]));
var ms = new MemoryStream();
sl.WriteObject(ms, folders.OfType<PicLibFolder>().ToArray());
ms.Position = 0;
GetCacheFile(CreationCollisionOption.ReplaceExisting);
var f = await workingFile;
using (var ws = await f.OpenStreamForWriteAsync())
{
await ms.CopyToAsync(ws);
}
}
public IEnumerable CompareSnapshot(IEnumerable oldOnes, IEnumerable newOnes)
{
return InternalCompareSnapshot(oldOnes.OfType<IPicLibFolder>().ToArray(), newOnes.OfType<IPicLibFolder>().ToArray()).ToArray();
}
Comparer<IPicLibFolder> compUrlEqual = Comparer<IPicLibFolder>.Create((x, y) =>
x.UriString.CompareTo(y.UriString)
);
internal IEnumerable<IPicLibFolder> InternalCompareSnapshot(IEnumerable<IPicLibFolder> oldOnes, IEnumerable<IPicLibFolder> newOnes)
{
if (oldOnes == null)
{
foreach (var item in newOnes)
{
var deeper = InternalCompareSnapshot(null, item.Folders);
foreach (var itemdeep in deeper)
{
yield return itemdeep;
}
}
}
var setDiff = newOnes.ToDictionary(x => x.UriString, x => x);
foreach (var item in oldOnes)
{
IPicLibFolder target = null;
if (setDiff.TryGetValue(item.UriString,out target))
{
if (target.FileCount == item.FileCount&&
target.Folders.Count ==item.Folders.Count &&
target.LastFileEditTime==item.LastFileEditTime
)
{
setDiff.Remove(target.UriString);
}
}
}
//var setNameCommon = new SortedSet<IPicLibFolder>(newOnes, compUrlEqual);
//setNameCommon.IntersectWith(oldOnes);
var dictOldOnes = oldOnes.ToDictionary(x => x.UriString, x => x);
foreach (var item in setDiff)
{
yield return item.Value;
IPicLibFolder oldOne = null;
dictOldOnes.TryGetValue(item.Value.UriString, out oldOne);
var deeperOldOnes = oldOne?.Folders;
var depperNewOnes = item.Value.Folders;
var deeper = InternalCompareSnapshot(deeperOldOnes, depperNewOnes);
foreach (var itemdeep in deeper)
{
yield return itemdeep;
}
}
}
}
}
| 34.395604 | 139 | 0.576837 | [
"Apache-2.0"
] | waynebaby/GreaterShareUWP | GreaterShare/GreaterShare.BackgroundServices/Service/PicLibFolderScanService.cs | 6,262 | C# |
// Copyright (c) 2017 Samsung Electronics Co., Ltd.
//
// 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.
//
namespace Tizen.NUI
{
/// <summary>
/// A class encapsulating the input method map.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public class InputMethod
{
private PanelLayoutType? _panelLayout = null;
private ActionButtonTitleType? _actionButton = null;
private AutoCapitalType? _autoCapital = null;
private int? _variation = null;
/// <summary>
/// The default constructor.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public InputMethod()
{
}
/// <summary>
/// Gets or sets the panel layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public PanelLayoutType PanelLayout
{
get
{
return _panelLayout ?? PanelLayoutType.Normal;
}
set
{
_panelLayout = value;
}
}
/// <summary>
/// Gets or sets the action button.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public ActionButtonTitleType ActionButton
{
get
{
return _actionButton ?? ActionButtonTitleType.Default;
}
set
{
_actionButton = value;
}
}
/// <summary>
/// Gets or sets the auto capital.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public AutoCapitalType AutoCapital
{
get
{
return _autoCapital ?? AutoCapitalType.None;
}
set
{
_autoCapital = value;
}
}
/// <summary>
/// Gets or sets the variation.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public int Variation
{
get
{
return _variation ?? 0;
}
set
{
_variation = value;
}
}
/// <summary>
/// Gets or sets the variation for normal layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public NormalLayoutType NormalVariation
{
get
{
return (NormalLayoutType) (_variation ?? 0);
}
set
{
_variation = (int)value;
}
}
/// <summary>
/// Gets or sets the variation for the number only layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public NumberOnlyLayoutType NumberOnlyVariation
{
get
{
return (NumberOnlyLayoutType) (_variation ?? 0);
}
set
{
_variation = (int)value;
}
}
/// <summary>
/// Gets or sets the variation for the password layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public PasswordLayoutType PasswordVariation
{
get
{
return (PasswordLayoutType) (_variation ?? 0);
}
set
{
_variation = (int)value;
}
}
private PropertyMap ComposingInputMethodMap()
{
PropertyMap _outputMap = new PropertyMap();
if (_panelLayout != null) { _outputMap.Add("PANEL_LAYOUT", new PropertyValue((int)_panelLayout)); }
if (_actionButton != null) { _outputMap.Add("BUTTON_ACTION", new PropertyValue((int)_actionButton)); }
if (_autoCapital != null) { _outputMap.Add("AUTO_CAPITALIZE", new PropertyValue((int)_autoCapital)); }
if (_variation != null) { _outputMap.Add("VARIATION", new PropertyValue((int)_variation)); }
return _outputMap;
}
/// <summary>
/// Gets the input method map.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public PropertyMap OutputMap
{
get
{
return ComposingInputMethodMap();
}
}
/// <summary>
/// SetType that can be changed in the system input method.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum CategoryType
{
/// <summary>
/// Set the keyboard layout.
/// </summary>
PanelLayout,
/// <summary>
/// Set the action button title.
/// </summary>
ActionButtonTitle,
/// <summary>
/// Set the auto capitalise of input.
/// </summary>
AutoCapitalise,
/// <summary>
/// Set the variation.
/// </summary>
Variation
}
/// <summary>
/// Autocapitalization Types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum AutoCapitalType
{
/// <summary>
/// No auto-capitalization when typing.
/// </summary>
None,
/// <summary>
/// Autocapitalize each word typed.
/// </summary>
Word,
/// <summary>
/// Autocapitalize the start of each sentence.
/// </summary>
Sentence,
/// <summary>
/// Autocapitalize all letters.
/// </summary>
Allcharacter
}
/// <summary>
/// Input panel (virtual keyboard) layout types..
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum PanelLayoutType
{
/// <summary>
/// Default layout.
/// </summary>
Normal,
/// <summary>
/// Number layout.
/// </summary>
Number,
/// <summary>
/// Email layout.
/// </summary>
Email,
/// <summary>
/// URL layout.
/// </summary>
URL,
/// <summary>
/// Phone number layout.
/// </summary>
PhoneNumber,
/// <summary>
/// IP layout.
/// </summary>
IP,
/// <summary>
/// Month layout.
/// </summary>
Month,
/// <summary>
/// Number layout.
/// </summary>
NumberOnly,
/// <summary>
/// Hexadecimal layout.
/// </summary>
HEX,
/// <summary>
/// Command-line terminal layout including Esc, Alt, Ctrl key, and so on (no auto-correct, no auto-capitalization).
/// </summary>
Terminal,
/// <summary>
/// Like normal, but no auto-correct, no auto-capitalization etc.
/// </summary>
Password,
/// <summary>
/// Date and time layout.
/// </summary>
Datetime,
/// <summary>
/// Emoticon layout.
/// </summary>
Emoticon
}
/// <summary>
/// Specifies what the Input Method "action" button functionality is set to.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ActionButtonTitleType
{
/// <summary>
/// Default action.
/// </summary>
Default,
/// <summary>
/// Done.
/// </summary>
Done,
/// <summary>
/// Go action.
/// </summary>
Go,
/// <summary>
/// Join action.
/// </summary>
Join,
/// <summary>
/// Login action.
/// </summary>
Login,
/// <summary>
/// Next action.
/// </summary>
Next,
/// <summary>
/// Previous action.
/// </summary>
Previous,
/// <summary>
/// Search action.
/// </summary>
Search,
/// <summary>
/// Send action.
/// </summary>
Send,
/// <summary>
/// Sign in action.
/// </summary>
SignIn,
/// <summary>
/// Unspecified action.
/// </summary>
Unspecified,
/// <summary>
/// Nothing to do.
/// </summary>
None
}
/// <summary>
/// Available variation for the normal layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum NormalLayoutType
{
/// <summary>
/// The plain normal layout.
/// </summary>
Normal,
/// <summary>
/// Filename layout. sysbols such as '/' should be disabled.
/// </summary>
WithFilename,
/// <summary>
/// The name of a person.
/// </summary>
WithPersonName
}
/// <summary>
/// Available variation for the number only layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum NumberOnlyLayoutType
{
/// <summary>
/// The plain normal number layout.
/// </summary>
Normal,
/// <summary>
/// The number layout to allow a positive or negative sign at the start.
/// </summary>
WithSigned,
/// <summary>
/// The number layout to allow decimal point to provide fractional value.
/// </summary>
WithDecimal,
/// <summary>
/// The number layout to allow decimal point and negative sign.
/// </summary>
WithSignedAndDecimal
}
/// <summary>
/// Available variation for the password layout.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum PasswordLayoutType
{
/// <summary>
/// The normal password layout.
/// </summary>
Normal,
/// <summary>
/// The password layout to allow only number.
/// </summary>
WithNumberOnly
}
}
} | 28.355164 | 127 | 0.443191 | [
"Apache-2.0"
] | Reni-90/TizenFX | src/Tizen.NUI/src/public/InputMethod.cs | 11,257 | C# |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Tsf.V20180326.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateConfigResponse : AbstractModel
{
/// <summary>
/// true:创建成功;false:创建失败
/// 注意:此字段可能返回 null,表示取不到有效值。
/// </summary>
[JsonProperty("Result")]
public bool? Result{ get; set; }
/// <summary>
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Result", this.Result);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}
| 30.596154 | 83 | 0.639849 | [
"Apache-2.0"
] | ImEdisonJiang/tencentcloud-sdk-dotnet | TencentCloud/Tsf/V20180326/Models/CreateConfigResponse.cs | 1,711 | C# |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace FabActUtil
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Reflection;
using Microsoft.ServiceFabric.Actors;
using Microsoft.ServiceFabric.Actors.Generator;
using Microsoft.ServiceFabric.Actors.Runtime;
internal class Tool
{
public static void Run(ToolArguments arguments)
{
// create tool context
var context = new ToolContext { Arguments = arguments };
// process the arguments
ProcessArguments(context);
// process the input
ProcessInput(context);
// generate the output
GenerateOutput(context);
}
private static void ProcessArguments(ToolContext context)
{
if (string.IsNullOrEmpty(context.Arguments.OutputPath))
{
context.Arguments.OutputPath = Directory.GetCurrentDirectory();
}
// validate the arguments
}
private static void ProcessInput(ToolContext context)
{
if (context.Arguments.Target == OutputTarget.Manifest)
{
LoadInputAssembly(context);
LoadActors(context);
}
}
private static void GenerateOutput(ToolContext context)
{
if (context.Arguments.Target == OutputTarget.Manifest)
{
GenerateManifest(context);
AddParametersToLocalFiveNodeAppParamFile(context);
AddParametersToLocalOneNodeAppParamFile(context);
return;
}
}
private static void GenerateManifest(ToolContext context)
{
var serviceManifestEntryPointType = SvcManifestEntryPointType.Exe;
if (!Enum.TryParse(context.Arguments.ServiceManifestEntryPointType, out serviceManifestEntryPointType))
{
serviceManifestEntryPointType = SvcManifestEntryPointType.Exe;
}
var generatorArgs = new ManifestGenerator.Arguments()
{
ApplicationPrefix = context.Arguments.ApplicationPrefix,
ServicePackageNamePrefix = context.Arguments.ServicePackagePrefix,
InputAssembly = context.InputAssembly,
ActorTypes = context.ActorTypes,
OutputPath = context.Arguments.OutputPath,
ApplicationPackagePath = context.Arguments.ApplicationPackagePath,
ServicePackagePath = context.Arguments.ServicePackagePath,
Version = context.Arguments.Version,
ServiceManifestEntryPointType = serviceManifestEntryPointType,
};
ManifestGenerator.Generate(generatorArgs);
}
private static void AddParametersToLocalFiveNodeAppParamFile(ToolContext context)
{
if (string.IsNullOrEmpty(context.Arguments.Local5NodeAppParamFile))
{
return;
}
var updaterArgs = new AppParameterFileUpdater.Arguments()
{
ActorTypes = context.ActorTypes,
AppParamFilePath = context.Arguments.Local5NodeAppParamFile,
};
AppParameterFileUpdater.AddParameterValuesToLocalFiveNodeParamFile(updaterArgs);
}
private static void AddParametersToLocalOneNodeAppParamFile(ToolContext context)
{
if (string.IsNullOrEmpty(context.Arguments.Local1NodeAppParamFile))
{
return;
}
var updaterArgs = new AppParameterFileUpdater.Arguments()
{
ActorTypes = context.ActorTypes,
AppParamFilePath = context.Arguments.Local1NodeAppParamFile,
};
AppParameterFileUpdater.AddParameterValuesToLocalOneNodeParamFile(updaterArgs);
}
private static void LoadInputAssembly(ToolContext context)
{
context.InputAssembly = Assembly.LoadFrom(context.Arguments.InputAssembly);
}
private static void LoadActors(ToolContext context)
{
var inputAssembly = context.InputAssembly;
var actorTypes = context.ActorTypes;
IList<string> actorFilters = null;
if ((context.Arguments.Actors != null) && (context.Arguments.Actors.Length > 0))
{
actorFilters = new List<string>(context.Arguments.Actors);
}
LoadActors(inputAssembly, actorFilters, actorTypes);
// check if all specified actor types were loaded or not
if ((actorFilters != null) && (actorFilters.Count > 0))
{
throw new TypeLoadException(
string.Format(
CultureInfo.CurrentCulture,
Microsoft.ServiceFabric.Actors.SR.ErrorNotAnActor,
actorFilters[0],
typeof(Actor).FullName));
}
}
private static void LoadActors(
Assembly inputAssembly,
IList<string> actorFilters,
IList<ActorTypeInformation> actorTypes)
{
var actorTypeInfoTable = new Dictionary<Type, ActorTypeInformation>();
foreach (var t in inputAssembly.GetTypes())
{
if (!t.IsActor())
{
continue;
}
var actorTypeInformation = ActorTypeInformation.Get(t);
if (actorTypeInformation.IsAbstract)
{
continue;
}
CheckForDuplicateFabricServiceName(actorTypeInfoTable, actorTypeInformation);
if (actorFilters != null)
{
if (RemoveFrom(actorFilters, t.FullName, StringComparison.OrdinalIgnoreCase))
{
actorTypes.Add(actorTypeInformation);
}
}
else
{
actorTypes.Add(actorTypeInformation);
}
}
}
private static void CheckForDuplicateFabricServiceName(
IDictionary<Type, ActorTypeInformation> actorTypeInfoTable, ActorTypeInformation actorTypeInformation)
{
foreach (var actorTypeInterface in actorTypeInformation.InterfaceTypes)
{
if (actorTypeInfoTable.ContainsKey(actorTypeInterface))
{
// ensure that both of types have non-null actor service attribute with name
if (string.IsNullOrEmpty(actorTypeInformation.ServiceName) ||
string.IsNullOrEmpty(actorTypeInfoTable[actorTypeInterface].ServiceName))
{
if (actorTypeInformation.ImplementationType.IsAssignableFrom(
actorTypeInfoTable[actorTypeInterface].ImplementationType))
{
throw new TypeLoadException(
string.Format(
CultureInfo.CurrentCulture,
Microsoft.ServiceFabric.Actors.SR.ErrorNoActorServiceNameMultipleImplDerivation,
actorTypeInterface.FullName,
actorTypeInfoTable[actorTypeInterface].ImplementationType.FullName,
actorTypeInformation.ImplementationType.FullName,
typeof(ActorServiceAttribute).FullName));
}
else if (actorTypeInfoTable[actorTypeInterface].ImplementationType.IsAssignableFrom(
actorTypeInformation.ImplementationType))
{
throw new TypeLoadException(
string.Format(
CultureInfo.CurrentCulture,
Microsoft.ServiceFabric.Actors.SR.ErrorNoActorServiceNameMultipleImplDerivation,
actorTypeInterface.FullName,
actorTypeInformation.ImplementationType.FullName,
actorTypeInfoTable[actorTypeInterface].ImplementationType.FullName,
typeof(ActorServiceAttribute).FullName));
}
else
{
throw new TypeLoadException(
string.Format(
CultureInfo.CurrentCulture,
Microsoft.ServiceFabric.Actors.SR.ErrorNoActorServiceNameMultipleImpl,
actorTypeInterface.FullName,
actorTypeInformation.ImplementationType.FullName,
actorTypeInfoTable[actorTypeInterface].ImplementationType.FullName,
typeof(ActorServiceAttribute).FullName));
}
}
}
else
{
actorTypeInfoTable.Add(actorTypeInterface, actorTypeInformation);
}
}
}
private static bool RemoveFrom(IList<string> list, string item, StringComparison comparision)
{
for (var i = 0; i < list.Count; i++)
{
if (string.Compare(list[i], item, comparision) == 0)
{
list.RemoveAt(i);
return true;
}
}
return false;
}
private static string GetToolPath()
{
var codeBase = Assembly.GetEntryAssembly().CodeBase;
var uri = new UriBuilder(codeBase);
return Uri.UnescapeDataString(uri.Path);
}
}
}
| 40.631179 | 117 | 0.527045 | [
"MIT"
] | Bhaskers-Blu-Org2/service-fabric-services-and-actors-dotnet | src/FabActUtil/Tool.cs | 10,686 | C# |
namespace CK.MQTT.Sdk
{
internal interface IPacketIdProvider
{
ushort GetPacketId();
}
}
| 13.75 | 40 | 0.627273 | [
"MIT"
] | signature-opensource/CK-MQTT-OLD | CK.MQTT.Client/Sdk/IPacketIdProvider.cs | 112 | 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("EventEmitter.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EventEmitter.Core")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[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("24936b63-9af6-4dbf-9576-e88289b6fed3")]
// 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.027027 | 84 | 0.745558 | [
"MIT"
] | Stelmashenko-A/EventEmitter | EventEmitter.Core/Properties/AssemblyInfo.cs | 1,410 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Charlotte.GameCommons;
using Charlotte.Commons;
namespace Charlotte.Games.Surfaces
{
// サーフェス - キャラクタ(登場人物)
public class Surface_Chara : Surface
{
private double A = 0.0;
private double Bright = 0.5;
private D2Point ActivePos = new D2Point(DDConsts.Screen_W / 2.0, DDConsts.Screen_H / 2.0);
private D2Point UnactivePos = new D2Point(DDConsts.Screen_W / 2.0, DDConsts.Screen_H / 2.0);
private bool PictureXReversed = false;
private DDPicture Picture = DDGround.GeneralResource.Dummy;
private bool Active = false;
private bool Ended = false;
private class PictureInfo
{
public string Name;
public DDPicture Picture;
public PictureInfo(string name, DDPicture picture)
{
this.Name = name;
this.Picture = picture;
}
}
#region PictureList
private PictureInfo[] PictureList = new PictureInfo[]
{
new PictureInfo("小悪魔_普通", Ground.I.Picture.立ち絵_小悪魔_01),
new PictureInfo("小悪魔_ジト目", Ground.I.Picture.立ち絵_小悪魔_02),
new PictureInfo("鍵山雛_普通", Ground.I.Picture.立ち絵_鍵山雛_01),
new PictureInfo("鍵山雛_ジト目", Ground.I.Picture.立ち絵_鍵山雛_02),
new PictureInfo("メディスン_普通", Ground.I.Picture.立ち絵_メディスン_01),
new PictureInfo("メディスン_ジト目", Ground.I.Picture.立ち絵_メディスン_02),
new PictureInfo("ルーミア_普通", Ground.I.Picture.立ち絵_ルーミア_01),
new PictureInfo("ルーミア_ジト目", Ground.I.Picture.立ち絵_ルーミア_02),
};
#endregion
public override IEnumerable<bool> E_Draw()
{
for (; ; )
{
DDUtils.Approach(ref this.A, this.Ended ? 0.0 : 1.0, 0.91);
DDUtils.Approach(ref this.Bright, this.Active ? 1.0 : 0.5, 0.8);
DDUtils.Approach(ref this.X, this.Active ? this.ActivePos.X : this.UnactivePos.X, 0.85);
DDUtils.Approach(ref this.Y, this.Active ? this.ActivePos.Y : this.UnactivePos.Y, 0.85);
DDDraw.SetAlpha(this.A);
DDDraw.SetBright(this.Bright, this.Bright, this.Bright);
DDDraw.DrawBegin(this.Picture, this.X, this.Y);
DDDraw.DrawZoom_X(this.PictureXReversed ? -1.0 : 1.0);
DDDraw.DrawEnd();
DDDraw.Reset();
yield return !this.Ended || 0.003 < this.A;
}
}
public override void Invoke_02(string command, string[] arguments)
{
int c = 0;
if (command == "Y") // Y-位置_調整
{
double ya = double.Parse(arguments[0]);
this.ActivePos.Y += ya;
this.UnactivePos.Y += ya;
}
else if (command == "位置")
{
string position = arguments[c++];
if (position == "左")
{
this.ActivePos = new D2Point(220, 330);
this.UnactivePos = new D2Point(200, 350);
}
else if (position == "右")
{
this.ActivePos = new D2Point(DDConsts.Screen_W - 220, 330);
this.UnactivePos = new D2Point(DDConsts.Screen_W - 200, 350);
}
else
{
throw new DDError();
}
this.X = this.UnactivePos.X;
this.Y = this.UnactivePos.Y;
}
else if (command == "画像_左右反転")
{
this.PictureXReversed = true;
}
else if (command == "画像")
{
string name = arguments[c++];
this.Picture = this.PictureList.First(v => v.Name == name).Picture;
}
else if (command == "アクティブ")
{
foreach (Surface_Chara surface in Game.I.SurfaceManager.GetAllキャラクタ())
surface.Active = false;
this.Active = true;
}
else if (command == "終了")
{
this.Ended = true;
}
else
{
base.Invoke_02(command, arguments);
}
}
}
}
| 25.712121 | 94 | 0.655863 | [
"MIT"
] | soleil-taruto/Elsa | e20201156_Udongedon_Hatena/Elsa20200001/Elsa20200001/Games/Surfaces/Surface_Chara.cs | 3,688 | C# |
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace CodeTiger.CodeAnalysis.Analyzers.Reliability
{
/// <summary>
/// Analyzes exception handling for potential reliability issues.
/// </summary>
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class ExceptionHandlingReliabilityAnalyzer : DiagnosticAnalyzer
{
internal static readonly DiagnosticDescriptor EmptyCatchBlocksShouldNotBeUsedDescriptor
= new DiagnosticDescriptor("CT2007", "Empty catch blocks should not be used.",
"Empty catch blocks should not be used.", "CodeTiger.Reliability", DiagnosticSeverity.Warning,
true);
/// <summary>
/// Gets a set of descriptors for the diagnostics that this analyzer is capable of producing.
/// </summary>
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
=> ImmutableArray.Create(EmptyCatchBlocksShouldNotBeUsedDescriptor);
/// <summary>
/// Registers actions in an analysis context.
/// </summary>
/// <param name="context">The context to register actions in.</param>
/// <remarks>This method should only be called once, at the start of a session.</remarks>
public override void Initialize(AnalysisContext context)
{
Guard.ArgumentIsNotNull(nameof(context), context);
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
context.EnableConcurrentExecution();
context.RegisterCodeBlockAction(AnalyzeCatchBlocks);
}
private static void AnalyzeCatchBlocks(CodeBlockAnalysisContext context)
{
foreach (var catchClause in context.CodeBlock.DescendantNodes().OfType<CatchClauseSyntax>())
{
if (!catchClause.Block.DescendantNodesAndSelf()
.Any(x => x.Kind() != SyntaxKind.EmptyStatement && x.Kind() != SyntaxKind.Block))
{
context.ReportDiagnostic(Diagnostic.Create(EmptyCatchBlocksShouldNotBeUsedDescriptor,
catchClause.CatchKeyword.GetLocation()));
}
}
}
}
}
| 42.428571 | 110 | 0.670455 | [
"MIT"
] | csdahlberg/CodeTiger.CodeAnalysis | CodeTiger.CodeAnalysis/Analyzers/Reliability/ExceptionHandlingReliabilityAnalyzer.cs | 2,378 | C# |
#region PDFsharp - A .NET library for processing PDF
//
// Authors:
// Stefan Lange
//
// Copyright (c) 2005-2019 empira Software GmbH, Cologne Area (Germany)
//
// http://www.pdfsharp.com
// http://sourceforge.net/projects/pdfsharp
//
// 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.
#endregion
#define VERBOSE_
using System;
using System.Diagnostics;
using PikaPDF.Core.Fonts.OpenType.enums;
//using Fixed = System.Int32;
//using FWord = System.Int16;
//using UFWord = System.UInt16;
namespace PikaPDF.Core.Fonts.OpenType
{
/// <summary>
/// The indexToLoc table stores the offsets to the locations of the glyphs in the font,
/// relative to the beginning of the glyphData table. In order to compute the length of
/// the last glyph element, there is an extra entry after the last valid index.
/// </summary>
internal class IndexToLocationTable : OpenTypeFontTable
{
public const string Tag = TableTagNames.Loca;
internal int[] LocaTable;
public IndexToLocationTable()
: base(null, Tag)
{
DirectoryEntry.Tag = TableTagNames.Loca;
}
public IndexToLocationTable(OpenTypeFontface fontData)
: base(fontData, Tag)
{
DirectoryEntry = _fontData.TableDictionary[TableTagNames.Loca];
Read();
}
public bool ShortIndex;
/// <summary>
/// Converts the bytes in a handy representation
/// </summary>
public void Read()
{
try
{
ShortIndex = _fontData.head.indexToLocFormat == 0;
_fontData.Position = DirectoryEntry.Offset;
if (ShortIndex)
{
int entries = DirectoryEntry.Length / 2;
Debug.Assert(_fontData.maxp.numGlyphs + 1 == entries,
"For your information only: Number of glyphs mismatch in font. You can ignore this assertion.");
LocaTable = new int[entries];
for (int idx = 0; idx < entries; idx++)
LocaTable[idx] = 2 * _fontData.ReadUFWord();
}
else
{
int entries = DirectoryEntry.Length / 4;
Debug.Assert(_fontData.maxp.numGlyphs + 1 == entries,
"For your information only: Number of glyphs mismatch in font. You can ignore this assertion.");
LocaTable = new int[entries];
for (int idx = 0; idx < entries; idx++)
LocaTable[idx] = _fontData.ReadLong();
}
}
catch (Exception)
{
GetType();
throw;
}
}
/// <summary>
/// Prepares the font table to be compiled into its binary representation.
/// </summary>
public override void PrepareForCompilation()
{
DirectoryEntry.Offset = 0;
if (ShortIndex)
DirectoryEntry.Length = LocaTable.Length * 2;
else
DirectoryEntry.Length = LocaTable.Length * 4;
_bytes = new byte[DirectoryEntry.PaddedLength];
int length = LocaTable.Length;
int byteIdx = 0;
if (ShortIndex)
{
for (int idx = 0; idx < length; idx++)
{
int value = LocaTable[idx] / 2;
_bytes[byteIdx++] = (byte)(value >> 8);
_bytes[byteIdx++] = (byte)(value);
}
}
else
{
for (int idx = 0; idx < length; idx++)
{
int value = LocaTable[idx];
_bytes[byteIdx++] = (byte)(value >> 24);
_bytes[byteIdx++] = (byte)(value >> 16);
_bytes[byteIdx++] = (byte)(value >> 8);
_bytes[byteIdx++] = (byte)value;
}
}
DirectoryEntry.CheckSum = CalcChecksum(_bytes);
}
byte[] _bytes;
/// <summary>
/// Converts the font into its binary representation.
/// </summary>
public override void Write(OpenTypeFontWriter writer)
{
writer.Write(_bytes, 0, DirectoryEntry.PaddedLength);
}
}
} | 36.557047 | 120 | 0.564531 | [
"MIT"
] | marcindawidziuk/PikaPDF | src/PikaPDF.Core/Fonts.OpenType/IndexToLocationTable.cs | 5,449 | C# |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace Dreamteck
{
public class MeshUtility
{
private static Vector3[] tan1 = new Vector3[0];
private static Vector3[] tan2 = new Vector3[0];
private static Vector4[] meshTangents = new Vector4[0];
public static int[] GeneratePlaneTriangles(int x, int z, bool flip, int startTriangleIndex = 0, int startVertex = 0)
{
int nbFaces = x * (z - 1);
int[] triangles = new int[nbFaces * 6];
GeneratePlaneTriangles(ref triangles, x, z, flip);
return triangles;
}
public static int[] GeneratePlaneTriangles(ref int[] triangles, int x, int z, bool flip, int startTriangleIndex = 0, int startVertex = 0, bool reallocateArray = false)
{
int nbFaces = x * (z - 1);
if (reallocateArray && triangles.Length != nbFaces * 6)
{
if(startTriangleIndex > 0)
{
int[] newTris = new int[startTriangleIndex + nbFaces * 6];
for(int i = 0; i < startTriangleIndex; i++) newTris[i] = triangles[i];
triangles = newTris;
} else triangles = new int[nbFaces * 6];
}
int g = x + 1;
int t = startTriangleIndex;
for (int face = 0; face < nbFaces + z - 2; face++)
{
if ((float)(face + 1) % (float)g == 0f && face != 0) face++;
if (flip)
{
triangles[t++] = face + x + 1 + startVertex;
triangles[t++] = face + 1 + startVertex;
triangles[t++] = face + startVertex;
triangles[t++] = face + x + 1 + startVertex;
triangles[t++] = face + x + 2 + startVertex;
triangles[t++] = face + 1 + startVertex;
}
else
{
triangles[t++] = face + startVertex;
triangles[t++] = face + 1 + startVertex;
triangles[t++] = face + x + 1 + startVertex;
triangles[t++] = face + 1 + startVertex;
triangles[t++] = face + x + 2 + startVertex;
triangles[t++] = face + x + 1 + startVertex;
}
}
return triangles;
}
public static void CalculateTangents(TS_Mesh mesh)
{
int triangleCount = mesh.triangles.Length / 3;
if (meshTangents.Length != mesh.vertexCount)
{
meshTangents = new Vector4[mesh.vertexCount];
tan1 = new Vector3[mesh.vertexCount];
tan2 = new Vector3[mesh.vertexCount];
}
int tri = 0;
for (int i = 0; i < triangleCount; i++)
{
int i1 = mesh.triangles[tri];
int i2 = mesh.triangles[tri + 1];
int i3 = mesh.triangles[tri + 2];
float x1 = mesh.vertices[i2].x - mesh.vertices[i1].x;
float x2 = mesh.vertices[i3].x - mesh.vertices[i1].x;
float y1 = mesh.vertices[i2].y - mesh.vertices[i1].y;
float y2 = mesh.vertices[i3].y - mesh.vertices[i1].y;
float z1 = mesh.vertices[i2].z - mesh.vertices[i1].z;
float z2 = mesh.vertices[i3].z - mesh.vertices[i1].z;
float s1 = mesh.uv[i2].x - mesh.uv[i1].x;
float s2 = mesh.uv[i3].x - mesh.uv[i1].x;
float t1 = mesh.uv[i2].y - mesh.uv[i1].y;
float t2 = mesh.uv[i3].y - mesh.uv[i1].y;
float div = s1 * t2 - s2 * t1;
float r = div == 0f ? 0f : 1f / div;
Vector3 sdir = new Vector3((t2 * x1 - t1 * x2) * r, (t2 * y1 - t1 * y2) * r, (t2 * z1 - t1 * z2) * r);
Vector3 tdir = new Vector3((s1 * x2 - s2 * x1) * r, (s1 * y2 - s2 * y1) * r, (s1 * z2 - s2 * z1) * r);
tan1[i1] += sdir;
tan1[i2] += sdir;
tan1[i3] += sdir;
tan2[i1] += tdir;
tan2[i2] += tdir;
tan2[i3] += tdir;
tri += 3;
}
for (int i = 0; i < mesh.vertexCount; i++)
{
Vector3 n = mesh.normals[i];
Vector3 t = tan1[i];
Vector3.OrthoNormalize(ref n, ref t);
meshTangents[i].x = t.x;
meshTangents[i].y = t.y;
meshTangents[i].z = t.z;
meshTangents[i].w = (Vector3.Dot(Vector3.Cross(n, t), tan2[i]) < 0.0f) ? -1.0f : 1.0f;
}
mesh.tangents = meshTangents;
}
public static void MakeDoublesided(Mesh input)
{
Vector3[] vertices = input.vertices;
Vector3[] normals = input.normals;
Vector2[] uvs = input.uv;
Color[] colors = input.colors;
int[] triangles = input.triangles;
List<int[]> submeshes = new List<int[]>();
for (int i = 0; i < input.subMeshCount; i++) submeshes.Add(input.GetTriangles(i));
Vector3[] newVertices = new Vector3[vertices.Length * 2];
Vector3[] newNormals = new Vector3[normals.Length * 2];
Vector2[] newUvs = new Vector2[uvs.Length * 2];
Color[] newColors = new Color[colors.Length * 2];
int[] newTris = new int[triangles.Length * 2];
List<int[]> newSubmeshes = new List<int[]>();
for (int i = 0; i < submeshes.Count; i++)
{
newSubmeshes.Add(new int[submeshes[i].Length * 2]);
submeshes[i].CopyTo(newSubmeshes[i], 0);
}
for (int i = 0; i < vertices.Length; i++)
{
newVertices[i] = vertices[i];
newNormals[i] = normals[i];
newUvs[i] = uvs[i];
if (colors.Length > i) newColors[i] = colors[i];
newVertices[i + vertices.Length] = vertices[i];
newNormals[i + vertices.Length] = -normals[i];
newUvs[i + vertices.Length] = uvs[i];
if (colors.Length > i) newColors[i + vertices.Length] = colors[i];
}
for (int i = 0; i < triangles.Length; i += 3)
{
int index1 = triangles[i];
int index2 = triangles[i + 1];
int index3 = triangles[i + 2];
newTris[i] = index1;
newTris[i + 1] = index2;
newTris[i + 2] = index3;
newTris[i + triangles.Length] = index3 + vertices.Length;
newTris[i + triangles.Length + 1] = index2 + vertices.Length;
newTris[i + triangles.Length + 2] = index1 + vertices.Length;
}
for (int i = 0; i < submeshes.Count; i++)
{
for (int n = 0; n < submeshes[i].Length; n += 3)
{
int index1 = submeshes[i][n];
int index2 = submeshes[i][n + 1];
int index3 = submeshes[i][n + 2];
newSubmeshes[i][n] = index1;
newSubmeshes[i][n + 1] = index2;
newSubmeshes[i][n + 2] = index3;
newSubmeshes[i][n + submeshes[i].Length] = index3 + vertices.Length;
newSubmeshes[i][n + submeshes[i].Length + 1] = index2 + vertices.Length;
newSubmeshes[i][n + submeshes[i].Length + 2] = index1 + vertices.Length;
}
}
input.vertices = newVertices;
input.normals = newNormals;
input.uv = newUvs;
input.colors = newColors;
input.triangles = newTris;
for (int i = 0; i < newSubmeshes.Count; i++) input.SetTriangles(newSubmeshes[i], i);
}
public static void MakeDoublesided(TS_Mesh input)
{
Vector3[] vertices = input.vertices;
Vector3[] normals = input.normals;
Vector2[] uvs = input.uv;
Color[] colors = input.colors;
int[] triangles = input.triangles;
List<int[]> submeshes = input.subMeshes;
Vector3[] newVertices = new Vector3[vertices.Length * 2];
Vector3[] newNormals = new Vector3[normals.Length * 2];
Vector2[] newUvs = new Vector2[uvs.Length * 2];
Color[] newColors = new Color[colors.Length * 2];
int[] newTris = new int[triangles.Length * 2];
List<int[]> newSubmeshes = new List<int[]>();
for(int i = 0; i < submeshes.Count; i++)
{
newSubmeshes.Add(new int[submeshes[i].Length * 2]);
submeshes[i].CopyTo(newSubmeshes[i], 0);
}
for (int i = 0; i < vertices.Length; i++)
{
newVertices[i] = vertices[i];
newNormals[i] = normals[i];
newUvs[i] = uvs[i];
if(colors.Length > i) newColors[i] = colors[i];
newVertices[i + vertices.Length] = vertices[i];
newNormals[i + vertices.Length] = -normals[i];
newUvs[i + vertices.Length] = uvs[i];
if (colors.Length > i) newColors[i + vertices.Length] = colors[i];
}
for (int i = 0; i < triangles.Length; i += 3)
{
int index1 = triangles[i];
int index2 = triangles[i + 1];
int index3 = triangles[i + 2];
newTris[i] = index1;
newTris[i + 1] = index2;
newTris[i + 2] = index3;
newTris[i + triangles.Length] = index3 + vertices.Length;
newTris[i + triangles.Length + 1] = index2 + vertices.Length;
newTris[i + triangles.Length + 2] = index1 + vertices.Length;
}
for(int i = 0; i < submeshes.Count; i++)
{
for(int n = 0; n < submeshes[i].Length; n+= 3)
{
int index1 = submeshes[i][n];
int index2 = submeshes[i][n + 1];
int index3 = submeshes[i][n + 2];
newSubmeshes[i][n] = index1;
newSubmeshes[i][n + 1] = index2;
newSubmeshes[i][n + 2] = index3;
newSubmeshes[i][n + submeshes[i].Length] = index3 + vertices.Length;
newSubmeshes[i][n + submeshes[i].Length + 1] = index2 + vertices.Length;
newSubmeshes[i][n + submeshes[i].Length + 2] = index1 + vertices.Length;
}
}
input.vertices = newVertices;
input.normals = newNormals;
input.uv = newUvs;
input.colors = newColors;
input.triangles = newTris;
input.subMeshes = newSubmeshes;
}
public static void MakeDoublesidedHalf(TS_Mesh input)
{
int vertexHalf = input.vertices.Length / 2;
int trisHalf = input.triangles.Length / 2;
for (int i = 0; i < vertexHalf; i++)
{
input.vertices[i + vertexHalf] = input.vertices[i];
if(input.normals.Length > i) input.normals[i + vertexHalf] = -input.normals[i];
if (input.tangents.Length > i) input.tangents[i + vertexHalf] = input.tangents[i];
if (input.uv.Length > i) input.uv[i + vertexHalf] = input.uv[i];
if (input.uv2.Length > i) input.uv2[i + vertexHalf] = input.uv2[i];
if (input.uv3.Length > i) input.uv3[i + vertexHalf] = input.uv3[i];
if (input.uv4.Length > i) input.uv4[i + vertexHalf] = input.uv4[i];
if (input.colors.Length > i) input.colors[i + vertexHalf] = input.colors[i];
}
for (int i = 0; i < trisHalf; i += 3)
{
input.triangles[i + trisHalf + 2] = input.triangles[i] + vertexHalf;
input.triangles[i + trisHalf + 1] = input.triangles[i + 1] + vertexHalf;
input.triangles[i + trisHalf] = input.triangles[i + 2] + vertexHalf;
}
for (int i = 0; i < input.subMeshes.Count; i++)
{
trisHalf = input.subMeshes[i].Length / 2;
for (int n = 0; n < trisHalf; n += 3)
{
input.subMeshes[i][n + trisHalf + 2] = input.subMeshes[i][n] + vertexHalf;
input.subMeshes[i][n + trisHalf + 1] = input.subMeshes[i][n + 1] + vertexHalf;
input.subMeshes[i][n + trisHalf] = input.subMeshes[i][n + 2] + vertexHalf;
}
}
}
public static void InverseTransformMesh(TS_Mesh input, TS_Transform transform)
{
if (input.vertices == null || input.normals == null) return;
for (int i = 0; i < input.vertices.Length; i++)
{
input.vertices[i] = transform.InverseTransformPoint(input.vertices[i]);
input.normals[i] = transform.InverseTransformDirection(input.normals[i]);
}
}
public static void TransformMesh(TS_Mesh input, TS_Transform transform)
{
if (input.vertices == null || input.normals == null) return;
for (int i = 0; i < input.vertices.Length; i++)
{
input.vertices[i] = transform.TransformPoint(input.vertices[i]);
input.normals[i] = transform.TransformDirection(input.normals[i]);
}
}
public static void InverseTransformMesh(TS_Mesh input, Transform transform)
{
if (input.vertices == null || input.normals == null) return;
for (int i = 0; i < input.vertices.Length; i++)
{
input.vertices[i] = transform.InverseTransformPoint(input.vertices[i]);
input.normals[i] = transform.InverseTransformDirection(input.normals[i]);
}
}
public static void TransformMesh(TS_Mesh input, Transform transform)
{
if (input.vertices == null || input.normals == null) return;
for (int i = 0; i < input.vertices.Length; i++)
{
input.vertices[i] = transform.TransformPoint(input.vertices[i]);
input.normals[i] = transform.TransformDirection(input.normals[i]);
}
}
public static void InverseTransformMesh(Mesh input, Transform transform)
{
Vector3[] vertices = input.vertices;
Vector3[] normals = input.vertices;
Matrix4x4 matrix = transform.worldToLocalMatrix;
for (int i = 0; i < vertices.Length; i++)
{
vertices[i] = matrix.MultiplyPoint3x4(vertices[i]);
normals[i] = matrix.MultiplyVector(normals[i]);
}
input.vertices = vertices;
input.normals = normals;
}
public static void TransformMesh(Mesh input, Transform transform)
{
Vector3[] vertices = input.vertices;
Vector3[] normals = input.vertices;
Matrix4x4 matrix = transform.localToWorldMatrix;
if (input.vertices == null || input.normals == null) return;
for (int i = 0; i < input.vertices.Length; i++)
{
vertices[i] = matrix.MultiplyPoint3x4(vertices[i]);
normals[i] = matrix.MultiplyVector(normals[i]);
}
input.vertices = vertices;
input.normals = normals;
}
public static void TransformVertices(Vector3[] vertices, Transform transform)
{
for (int i = 0; i < vertices.Length; i++)
{
vertices[i] = transform.TransformPoint(vertices[i]);
}
}
public static void InverseTransformVertices(Vector3[] vertices, Transform transform)
{
for (int i = 0; i < vertices.Length; i++)
{
vertices[i] = transform.InverseTransformPoint(vertices[i]);
}
}
public static void TransformNormals(Vector3[] normals, Transform transform)
{
for (int i = 0; i < normals.Length; i++)
{
normals[i] = transform.TransformDirection(normals[i]);
}
}
public static void InverseTransformNormals(Vector3[] normals, Transform transform)
{
for (int i = 0; i < normals.Length; i++)
{
normals[i] = transform.InverseTransformDirection(normals[i]);
}
}
public static string ToOBJString(Mesh mesh, Material[] materials)
{
int numVertices = 0;
if (mesh == null)
{
return "####Error####";
}
StringBuilder sb = new StringBuilder();
sb.Append("g " + mesh.name +"\n");
foreach (Vector3 v in mesh.vertices)
{
numVertices++;
sb.Append(string.Format("v {0} {1} {2}\n", -v.x, v.y, v.z));
}
sb.Append("\n");
foreach (Vector3 n in mesh.normals)
{
sb.Append(string.Format("vn {0} {1} {2}\n", -n.x, n.y, n.z));
}
sb.Append("\n");
foreach (Vector3 v in mesh.uv)
{
sb.Append(string.Format("vt {0} {1}\n", v.x, v.y));
}
sb.Append("\n");
foreach (Vector2 v in mesh.uv2)
{
sb.Append(string.Format("vt2 {0} {1}\n", v.x, v.y));
}
sb.Append("\n");
foreach (Vector2 v in mesh.uv3)
{
sb.Append(string.Format("vt2 {0} {1}\n", v.x, v.y));
}
sb.Append("\n");
foreach (Color c in mesh.colors)
{
sb.Append(string.Format("vc {0} {1} {2} {3}\n", c.r, c.g, c.b, c.a));
}
for (int material = 0; material < mesh.subMeshCount; material++)
{
sb.Append("\n");
sb.Append("usemtl ").Append(materials[material].name).Append("\n");
sb.Append("usemap ").Append(materials[material].name).Append("\n");
int[] triangles = mesh.GetTriangles(material);
for (int i = 0; i < triangles.Length; i += 3)
{
sb.Append(string.Format("f {2}/{2}/{2} {1}/{1}/{1} {0}/{0}/{0}\n",
triangles[i] + 1, triangles[i + 1] + 1, triangles[i + 2] + 1));
}
}
return sb.ToString();
}
public static Mesh Copy(Mesh input)
{
Mesh copy = new Mesh();
copy.name = input.name;
copy.vertices = input.vertices;
copy.normals = input.normals;
copy.colors = input.colors;
copy.uv = input.uv;
copy.uv2 = input.uv2;
copy.uv3 = input.uv3;
copy.uv4 = input.uv4;
copy.tangents = input.tangents;
copy.triangles = input.triangles;
copy.subMeshCount = input.subMeshCount;
for (int i = 0; i < input.subMeshCount; i++)
{
copy.SetTriangles(input.GetTriangles(i), i);
}
return copy;
}
public static void Triangulate(Vector2[] points, ref int[] output)
{
List<int> indices = new List<int>();
int pointsLength = points.Length;
if (pointsLength < 3)
{
output = new int[0];
return;
}
int[] V = new int[pointsLength];
if (Area(points, pointsLength) > 0)
{
for (int v = 0; v < pointsLength; v++)
V[v] = v;
}
else
{
for (int v = 0; v < pointsLength; v++)
V[v] = (pointsLength - 1) - v;
}
int nv = pointsLength;
int count = 2 * nv;
for (int m = 0, v = nv - 1; nv > 2;)
{
if ((count--) <= 0) {
if (output.Length != indices.Count) output = new int[indices.Count];
indices.CopyTo(output, 0);
return;
}
int u = v;
if (nv <= u)
u = 0;
v = u + 1;
if (nv <= v)
v = 0;
int w = v + 1;
if (nv <= w)
w = 0;
if (Snip(points, u, v, w, nv, V))
{
int a, b, c, s, t;
a = V[u];
b = V[v];
c = V[w];
indices.Add(c);
indices.Add(b);
indices.Add(a);
m++;
for (s = v, t = v + 1; t < nv; s++, t++)
V[s] = V[t];
nv--;
count = 2 * nv;
}
}
indices.Reverse();
if (output.Length != indices.Count) output = new int[indices.Count];
indices.CopyTo(output, 0);
}
public static void FlipTriangles(ref int[] triangles)
{
for (int i = 0; i < triangles.Length; i += 3)
{
int temp = triangles[i];
triangles[i] = triangles[i + 2];
triangles[i + 2] = temp;
}
}
public static void FlipFaces(TS_Mesh input)
{
for(int i =0; i < input.subMeshes.Count; i++)
{
int[] array = input.subMeshes[i];
FlipTriangles(ref array);
}
FlipTriangles(ref input.triangles);
for(int i = 0; i < input.normals.Length; i++)
{
input.normals[i] *= -1f;
}
}
public static void BreakMesh(Mesh input, bool keepNormals = true)
{
Vector3[] newVertices = new Vector3[input.triangles.Length];
Vector3[] newNormals = new Vector3[newVertices.Length];
Vector2[] newUVs = new Vector2[newVertices.Length];
Vector4[] newTangents = new Vector4[newVertices.Length];
Color[] newColors = new Color[newVertices.Length];
Vector3[] oldVertices = input.vertices;
Vector2[] oldUvs = input.uv;
Vector3[] oldNormals = input.normals;
Vector4[] oldTangents = input.tangents;
Color[] oldColors = input.colors;
if (oldColors.Length != oldVertices.Length)
{
oldColors = new Color[oldVertices.Length];
for (int i = 0; i < oldColors.Length; i++) oldColors[i] = Color.white;
}
List<int[]> submeshList = new List<int[]>();
int submeshes = input.subMeshCount;
int vertIndex = 0;
for (int i = 0; i < submeshes; i++)
{
int[] submesh = input.GetTriangles(i);
for (int n = 0; n < submesh.Length; n += 3)
{
newVertices[vertIndex] = oldVertices[submesh[n]];
newVertices[vertIndex + 1] = oldVertices[submesh[n + 1]];
newVertices[vertIndex + 2] = oldVertices[submesh[n + 2]];
if (oldNormals.Length > submesh[n + 2])
{
if (!keepNormals)
{
newNormals[vertIndex] = newNormals[vertIndex + 1] = newNormals[vertIndex + 2] = (oldNormals[submesh[n]] + oldNormals[submesh[n + 1]] + oldNormals[submesh[n + 2]]).normalized;
}
else
{
newNormals[vertIndex] = oldNormals[submesh[n]];
newNormals[vertIndex + 1] = oldNormals[submesh[n + 1]];
newNormals[vertIndex + 2] = oldNormals[submesh[n + 2]];
}
}
if (oldColors.Length > submesh[n + 2])
newColors[vertIndex] = newColors[vertIndex + 1] = newColors[vertIndex + 2] = (oldColors[submesh[n]] + oldColors[submesh[n + 1]] + oldColors[submesh[n + 2]]) / 3f;
if (oldUvs.Length > submesh[n + 2])
{
newUVs[vertIndex] = oldUvs[submesh[n]];
newUVs[vertIndex + 1] = oldUvs[submesh[n + 1]];
newUVs[vertIndex + 2] = oldUvs[submesh[n + 2]];
}
if (oldTangents.Length > submesh[n + 2])
{
newTangents[vertIndex] = oldTangents[submesh[n]];
newTangents[vertIndex + 1] = oldTangents[submesh[n + 1]];
newTangents[vertIndex + 2] = oldTangents[submesh[n + 2]];
}
submesh[n] = vertIndex;
submesh[n + 1] = vertIndex + 1;
submesh[n + 2] = vertIndex + 2;
vertIndex += 3;
}
submeshList.Add(submesh);
}
input.vertices = newVertices;
input.normals = newNormals;
input.colors = newColors;
input.uv = newUVs;
input.tangents = newTangents;
input.subMeshCount = submeshList.Count;
for (int i = 0; i < submeshList.Count; i++) input.SetTriangles(submeshList[i], i);
}
private static float Area(Vector2[] points, int maxCount)
{
float A = 0.0f;
for (int p = maxCount - 1, q = 0; q < maxCount; p = q++)
{
Vector2 pval = points[p];
Vector2 qval = points[q];
A += pval.x * qval.y - qval.x * pval.y;
}
return (A * 0.5f);
}
private static bool Snip(Vector2[] points, int u, int v, int w, int n, int[] V)
{
int p;
Vector2 A = points[V[u]];
Vector2 B = points[V[v]];
Vector2 C = points[V[w]];
if (Mathf.Epsilon > (((B.x - A.x) * (C.y - A.y)) - ((B.y - A.y) * (C.x - A.x))))
return false;
for (p = 0; p < n; p++)
{
if ((p == u) || (p == v) || (p == w))
continue;
Vector2 P = points[V[p]];
if (InsideTriangle(A, B, C, P))
return false;
}
return true;
}
private static bool InsideTriangle(Vector2 A, Vector2 B, Vector2 C, Vector2 P)
{
float ax, ay, bx, by, cx, cy, apx, apy, bpx, bpy, cpx, cpy;
float cCROSSap, bCROSScp, aCROSSbp;
ax = C.x - B.x; ay = C.y - B.y;
bx = A.x - C.x; by = A.y - C.y;
cx = B.x - A.x; cy = B.y - A.y;
apx = P.x - A.x; apy = P.y - A.y;
bpx = P.x - B.x; bpy = P.y - B.y;
cpx = P.x - C.x; cpy = P.y - C.y;
aCROSSbp = ax * bpy - ay * bpx;
cCROSSap = cx * apy - cy * apx;
bCROSScp = bx * cpy - by * cpx;
return ((aCROSSbp >= 0.0f) && (bCROSScp >= 0.0f) && (cCROSSap >= 0.0f));
}
}
}
| 39.436879 | 202 | 0.459842 | [
"MIT"
] | Finalet/Tap-drift | Tap drift 1.2.2/Assets/Dreamteck/Utilities/MeshUtility.cs | 27,803 | C# |
namespace Vostok.Clusterclient.Transport.SystemNetHttp.Helpers
{
internal static class Constants
{
public const int LOHObjectSizeThreshold = 84 * 1000;
}
} | 25.142857 | 63 | 0.721591 | [
"MIT"
] | vostok/clusterclient.transport.systemnethttp | Vostok.ClusterClient.Transport.SystemNetHttp/Helpers/Constants.cs | 178 | C# |
// Copyright (c) .NET Core Community. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Linq;
using System.Threading.Tasks;
using DotNetCore.CAP.Internal;
using DotNetCore.CAP.Messages;
using DotNetCore.CAP.Transport;
using Microsoft.Extensions.Logging;
using RabbitMQ.Client;
namespace DotNetCore.CAP.RabbitMQ
{
internal sealed class RabbitMQTransport : ITransport
{
private readonly IConnectionChannelPool _connectionChannelPool;
private readonly ILogger _logger;
private readonly string _exchange;
public RabbitMQTransport(
ILogger<RabbitMQTransport> logger,
IConnectionChannelPool connectionChannelPool)
{
_logger = logger;
_connectionChannelPool = connectionChannelPool;
_exchange = _connectionChannelPool.Exchange;
}
public BrokerAddress BrokerAddress => new ("RabbitMQ", _connectionChannelPool.HostAddress);
public Task<OperateResult> SendAsync(TransportMessage message)
{
IModel? channel = null;
try
{
channel = _connectionChannelPool.Rent();
channel.ConfirmSelect();
var props = channel.CreateBasicProperties();
props.DeliveryMode = 2;
props.Headers = message.Headers.ToDictionary(x => x.Key, x => (object?)x.Value);
channel.ExchangeDeclare(_exchange, RabbitMQOptions.ExchangeType, true);
channel.BasicPublish(_exchange, message.GetName(), props, message.Body);
channel.WaitForConfirmsOrDie(TimeSpan.FromSeconds(5));
_logger.LogInformation("CAP message '{0}' published, internal id '{1}'", message.GetName(), message.GetId());
return Task.FromResult(OperateResult.Success);
}
catch (Exception ex)
{
var wrapperEx = new PublisherSentFailedException(ex.Message, ex);
var errors = new OperateError
{
Code = ex.HResult.ToString(),
Description = ex.Message
};
return Task.FromResult(OperateResult.Failed(wrapperEx, errors));
}
finally
{
if (channel != null)
{
_connectionChannelPool.Return(channel);
}
}
}
}
} | 33.88 | 125 | 0.600945 | [
"MIT"
] | Allen-dududu/CAP | src/DotNetCore.CAP.RabbitMQ/ITransport.RabbitMQ.cs | 2,543 | C# |
// This file is part of Silk.NET.
//
// You may modify and distribute Silk.NET under the terms
// of the MIT license. See the LICENSE file for details.
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Text;
using Silk.NET.Core;
using Silk.NET.Core.Native;
using Silk.NET.Core.Attributes;
using Silk.NET.Core.Contexts;
using Silk.NET.Core.Loader;
#pragma warning disable 1591
namespace Silk.NET.OpenXR.Extensions.KHR
{
public static class KhrD3D11EnableOverloads
{
/// <summary>To be documented.</summary>
public static unsafe Result GetD3D11GraphicsRequirements(this KhrD3D11Enable thisApi, [Count(Count = 0)] Instance instance, [Count(Count = 0)] ulong systemId, [Count(Count = 0)] Span<GraphicsRequirementsD3D11KHR> graphicsRequirements)
{
// SpanOverloader
return thisApi.GetD3D11GraphicsRequirements(instance, systemId, ref graphicsRequirements.GetPinnableReference());
}
}
}
| 32.516129 | 242 | 0.739087 | [
"MIT"
] | ThomasMiz/Silk.NET | src/OpenXR/Extensions/Silk.NET.OpenXR.Extensions.KHR/KhrD3D11EnableOverloads.gen.cs | 1,008 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: Templates\CSharp\Requests\EntityCollectionRequestBuilder.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
/// <summary>
/// The type GraphServiceAgreementAcceptancesCollectionRequestBuilder.
/// </summary>
public partial class GraphServiceAgreementAcceptancesCollectionRequestBuilder : BaseRequestBuilder, IGraphServiceAgreementAcceptancesCollectionRequestBuilder
{
/// <summary>
/// Constructs a new GraphServiceAgreementAcceptancesCollectionRequestBuilder.
/// </summary>
/// <param name="requestUrl">The URL for the built request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
public GraphServiceAgreementAcceptancesCollectionRequestBuilder(
string requestUrl,
IBaseClient client)
: base(requestUrl, client)
{
}
/// <summary>
/// Builds the request.
/// </summary>
/// <returns>The built request.</returns>
public IGraphServiceAgreementAcceptancesCollectionRequest Request()
{
return this.Request(null);
}
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
public IGraphServiceAgreementAcceptancesCollectionRequest Request(IEnumerable<Option> options)
{
return new GraphServiceAgreementAcceptancesCollectionRequest(this.RequestUrl, this.Client, options);
}
/// <summary>
/// Gets an <see cref="IAgreementAcceptanceRequestBuilder"/> for the specified GraphServiceAgreementAcceptance.
/// </summary>
/// <param name="id">The ID for the GraphServiceAgreementAcceptance.</param>
/// <returns>The <see cref="IAgreementAcceptanceRequestBuilder"/>.</returns>
public IAgreementAcceptanceRequestBuilder this[string id]
{
get
{
return new AgreementAcceptanceRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client);
}
}
}
}
| 40.590909 | 161 | 0.618888 | [
"MIT"
] | OfficeGlobal/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/GraphServiceAgreementAcceptancesCollectionRequestBuilder.cs | 2,679 | C# |
using System.Diagnostics;
/*
* Copyright (c) 2008, DIaLOGIKa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of DIaLOGIKa nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY DIaLOGIKa ''AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL DIaLOGIKa BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using DIaLOGIKa.b2xtranslator.StructuredStorage.Reader;
namespace DIaLOGIKa.b2xtranslator.Spreadsheet.XlsFileFormat.Ptg
{
public class PtgInt: AbstractPtg
{
public const PtgNumber ID = PtgNumber.PtgInt;
public PtgInt(IStreamReader reader, PtgNumber ptgid) :
base(reader,ptgid)
{
Debug.Assert(this.Id == ID);
this.Length = 3;
this.Data = reader.ReadUInt16().ToString();
this.type = PtgType.Operand;
this.popSize = 1;
}
}
}
| 44.770833 | 81 | 0.698464 | [
"BSD-3-Clause"
] | datadiode/B2XTranslator | src/Spreadsheet/XlsFileFormat/Ptg/PtgInt.cs | 2,149 | C# |
using System;
namespace Automation
{
class Device10EventArgs : EventArgs
{
public string speed, length;
public bool running;
public static event EventHandler<Device10EventArgs> event1;
public Device10EventArgs() { }
public Device10EventArgs(bool runningInfo, string speedInfo, string lengthInfo)
{
speed = speedInfo;
length = lengthInfo;
running = runningInfo;
}
protected virtual void onDataReceived(Device10EventArgs e)
{
event1?.Invoke(this, e);
}
public void sendEventInfo(bool runningInfo, string speedInfo, string lengthInfo)
{
onDataReceived(new Device10EventArgs(runningInfo, speedInfo, lengthInfo));
}
}
}
| 26.533333 | 88 | 0.621859 | [
"MIT"
] | SymCors/Altes-Automation | Automation/Device10EventArgs.cs | 798 | C# |
using System;
using Chatter.Domain.Core.Commands;
namespace Chatter.Domain.Topics.Commands.Base
{
public abstract class BaseTopicCommand : Command
{
public int Id { get; protected set; }
public int UserId { get; protected set; }
public int CategoryId { get; protected set; }
public string Title { get; protected set; }
public string Description { get; protected set; }
public DateTime Created { get; protected set; }
public bool Active { get; protected set; }
public bool Removed { get; protected set; }
}
} | 34.411765 | 57 | 0.652991 | [
"MIT"
] | laurolnunes/forum-de-discussao | src/Chatter.Domain/Topics/Commands/Base/BaseTopicCommand.cs | 587 | C# |
/*************************************************************************************
Toolkit for WPF
Copyright (C) 2007-2019 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at https://github.com/xceedsoftware/wpftoolkit/blob/master/license.md
For more features, controls, and fast professional support,
pick up the Plus Edition at https://xceed.com/xceed-toolkit-plus-for-wpf/
Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids
***********************************************************************************/
using System;
using System.IO;
using System.Text;
using System.Windows;
using System.Windows.Documents;
namespace Xceed.Wpf.Toolkit
{
/// <summary>
/// Formats the RichTextBox text as RTF
/// </summary>
public class RtfFormatter : ITextFormatter
{
public string GetText( FlowDocument document )
{
TextRange tr = new TextRange( document.ContentStart, document.ContentEnd );
using( MemoryStream ms = new MemoryStream() )
{
tr.Save( ms, DataFormats.Rtf );
return ASCIIEncoding.Default.GetString( ms.ToArray() );
}
}
public void SetText( FlowDocument document, string text )
{
try
{
//if the text is null/empty clear the contents of the RTB. If you were to pass a null/empty string
//to the TextRange.Load method an exception would occur.
if( String.IsNullOrEmpty( text ) )
{
document.Blocks.Clear();
}
else
{
TextRange tr = new TextRange( document.ContentStart, document.ContentEnd );
using( MemoryStream ms = new MemoryStream( Encoding.ASCII.GetBytes( text ) ) )
{
tr.Load( ms, DataFormats.Rtf );
}
}
}
catch
{
throw new InvalidDataException( "Data provided is not in the correct RTF format." );
}
}
}
}
| 30.333333 | 106 | 0.587912 | [
"MIT"
] | O-Debegnach/Supervisor-de-Comercio | wpftoolkit-master/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/RichTextBox/Formatters/RtfFormatter.cs | 2,004 | 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 ssm-2014-11-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SimpleSystemsManagement.Model
{
/// <summary>
/// An activation registers one or more on-premises servers or virtual machines (VMs)
/// with AWS so that you can configure those servers or VMs using Run Command. A server
/// or VM that has been registered with AWS is called a managed instance.
/// </summary>
public partial class Activation
{
private string _activationId;
private DateTime? _createdDate;
private string _defaultInstanceName;
private string _description;
private DateTime? _expirationDate;
private bool? _expired;
private string _iamRole;
private int? _registrationLimit;
private int? _registrationsCount;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ActivationId.
/// <para>
/// The ID created by Systems Manager when you submitted the activation.
/// </para>
/// </summary>
public string ActivationId
{
get { return this._activationId; }
set { this._activationId = value; }
}
// Check to see if ActivationId property is set
internal bool IsSetActivationId()
{
return this._activationId != null;
}
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The date the activation was created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultInstanceName.
/// <para>
/// A name for the managed instance when it is created.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=256)]
public string DefaultInstanceName
{
get { return this._defaultInstanceName; }
set { this._defaultInstanceName = value; }
}
// Check to see if DefaultInstanceName property is set
internal bool IsSetDefaultInstanceName()
{
return this._defaultInstanceName != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A user defined description of the activation.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=256)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property ExpirationDate.
/// <para>
/// The date when this activation can no longer be used to register managed instances.
/// </para>
/// </summary>
public DateTime ExpirationDate
{
get { return this._expirationDate.GetValueOrDefault(); }
set { this._expirationDate = value; }
}
// Check to see if ExpirationDate property is set
internal bool IsSetExpirationDate()
{
return this._expirationDate.HasValue;
}
/// <summary>
/// Gets and sets the property Expired.
/// <para>
/// Whether or not the activation is expired.
/// </para>
/// </summary>
public bool Expired
{
get { return this._expired.GetValueOrDefault(); }
set { this._expired = value; }
}
// Check to see if Expired property is set
internal bool IsSetExpired()
{
return this._expired.HasValue;
}
/// <summary>
/// Gets and sets the property IamRole.
/// <para>
/// The Amazon Identity and Access Management (IAM) role to assign to the managed instance.
/// </para>
/// </summary>
[AWSProperty(Max=64)]
public string IamRole
{
get { return this._iamRole; }
set { this._iamRole = value; }
}
// Check to see if IamRole property is set
internal bool IsSetIamRole()
{
return this._iamRole != null;
}
/// <summary>
/// Gets and sets the property RegistrationLimit.
/// <para>
/// The maximum number of managed instances that can be registered using this activation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int RegistrationLimit
{
get { return this._registrationLimit.GetValueOrDefault(); }
set { this._registrationLimit = value; }
}
// Check to see if RegistrationLimit property is set
internal bool IsSetRegistrationLimit()
{
return this._registrationLimit.HasValue;
}
/// <summary>
/// Gets and sets the property RegistrationsCount.
/// <para>
/// The number of managed instances already registered with this activation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1000)]
public int RegistrationsCount
{
get { return this._registrationsCount.GetValueOrDefault(); }
set { this._registrationsCount = value; }
}
// Check to see if RegistrationsCount property is set
internal bool IsSetRegistrationsCount()
{
return this._registrationsCount.HasValue;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Tags assigned to the activation.
/// </para>
/// </summary>
[AWSProperty(Max=1000)]
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 31.046809 | 101 | 0.570861 | [
"Apache-2.0"
] | FoxBearBear/aws-sdk-net | sdk/src/Services/SimpleSystemsManagement/Generated/Model/Activation.cs | 7,296 | C# |
// Copyright (c) to owners found in https://github.com/arlm/WinApi/blob/master/COPYRIGHT.md. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
using System;
namespace WinApi.PeCoff
{
public struct IMAGE_DOS_HEADER : IEquatable<IMAGE_DOS_HEADER>
{
public ushort e_cblp;
public ushort e_cp;
public ushort e_cparhdr;
public ushort e_crlc;
public ushort e_cs;
public ushort e_csum;
public ushort e_ip;
public uint e_lfanew;
public ushort e_lfarlc;
public ushort e_magic;
public ushort e_maxalloc;
public ushort e_minalloc;
public ushort e_oemid;
public ushort e_oeminfo;
public ushort e_ovno;
public ushort[] e_res;
public ushort[] e_res2;
public ushort e_sp;
public ushort e_ss;
public override bool Equals(object obj)
{
if (ReferenceEquals(obj, null))
{
return false;
}
var x = obj as IMAGE_DOS_HEADER?;
if (!x.HasValue)
{
return false;
}
return Equals(x);
}
public bool Equals(IMAGE_DOS_HEADER other)
{
if (ReferenceEquals(other, null))
{
return false;
}
if (e_cblp != other.e_cblp)
{
return false;
}
if (e_cp != other.e_cp)
{
return false;
}
if (e_cparhdr != other.e_cparhdr)
{
return false;
}
if (e_crlc != other.e_crlc)
{
return false;
}
if (e_cs != other.e_cs)
{
return false;
}
if (e_csum != other.e_csum)
{
return false;
}
if (e_ip != other.e_ip)
{
return false;
}
if (e_lfanew != other.e_lfanew)
{
return false;
}
if (e_lfarlc != other.e_lfarlc)
{
return false;
}
if (e_magic != other.e_magic)
{
return false;
}
if (e_maxalloc != other.e_maxalloc)
{
return false;
}
if (e_minalloc != other.e_minalloc)
{
return false;
}
if (e_oemid != other.e_oemid)
{
return false;
}
if (e_oeminfo != other.e_oeminfo)
{
return false;
}
if (e_ovno != other.e_ovno)
{
return false;
}
if (e_res != other.e_res)
{
return false;
}
if (e_res2 != other.e_res2)
{
return false;
}
if (e_sp != other.e_sp)
{
return false;
}
return e_ss == other.e_ss;
}
public override int GetHashCode()
{
// From The Online Encyclopedia of Integer Sequences: https://oeis.org/A000668
// Mersenne primes (of form 2^p - 1 where p is a prime).
const int mersenePrime = 131071;
int hash = 8191;
unchecked
{
hash = (hash * mersenePrime) + this.e_cblp.GetHashCode();
hash = (hash * mersenePrime) + this.e_cp.GetHashCode();
hash = (hash * mersenePrime) + this.e_cparhdr.GetHashCode();
hash = (hash * mersenePrime) + this.e_crlc.GetHashCode();
hash = (hash * mersenePrime) + this.e_cs.GetHashCode();
hash = (hash * mersenePrime) + this.e_csum.GetHashCode();
hash = (hash * mersenePrime) + this.e_ip.GetHashCode();
hash = (hash * mersenePrime) + this.e_lfanew.GetHashCode();
hash = (hash * mersenePrime) + this.e_lfarlc.GetHashCode();
hash = (hash * mersenePrime) + this.e_magic.GetHashCode();
hash = (hash * mersenePrime) + this.e_maxalloc.GetHashCode();
hash = (hash * mersenePrime) + this.e_minalloc.GetHashCode();
hash = (hash * mersenePrime) + this.e_oemid.GetHashCode();
hash = (hash * mersenePrime) + this.e_oeminfo.GetHashCode();
hash = (hash * mersenePrime) + this.e_ovno.GetHashCode();
hash = (hash * mersenePrime) + this.e_res.GetHashCode();
hash = (hash * mersenePrime) + this.e_res2.GetHashCode();
hash = (hash * mersenePrime) + this.e_sp.GetHashCode();
hash = (hash * mersenePrime) + this.e_ss.GetHashCode();
}
return hash;
}
public static bool operator ==(IMAGE_DOS_HEADER x, IMAGE_DOS_HEADER y)
{
return x.Equals(y);
}
public static bool operator !=(IMAGE_DOS_HEADER x, IMAGE_DOS_HEADER y)
{
return !x.Equals(y);
}
}
}
| 27.791667 | 114 | 0.469265 | [
"MIT"
] | arlm/WinApi | src/WinApi.PeCoff/IMAGE_DOS_HEADER.cs | 5,338 | C# |
// Created by Kearan Petersen : https://www.blumalice.wordpress.com | https://www.linkedin.com/in/kearan-petersen/
using UnityEngine;
namespace SOFlow.Fading
{
public class MaterialFadable : Fadable
{
/// <summary>
/// Indicates whether a renderer or material should be used as a reference.
/// </summary>
public bool UseRenderer = true;
/// <summary>
/// The target renderer to fade.
/// </summary>
public Renderer TargetRenderer;
/// <summary>
/// The target material to fade.
/// </summary>
public Material TargetMaterial;
/// <summary>
/// Indicates whether the material colour property should be manually specified.
/// </summary>
public bool OverrideColourProperty = false;
/// <summary>
/// The colour property to adjust.
/// </summary>
public string ColourProperty = "_Color";
/// <inheritdoc />
protected override Color GetColour()
{
Material materialReference = UseRenderer ? TargetRenderer.sharedMaterial : TargetMaterial;
return OverrideColourProperty ? materialReference.GetColor(ColourProperty) : materialReference.color;
}
/// <inheritdoc />
public override void UpdateColour(Color colour, float percentage)
{
Material materialReference = UseRenderer ? TargetRenderer.sharedMaterial : TargetMaterial;
if(OverrideColourProperty)
{
materialReference.SetColor(ColourProperty, colour);
}
else
{
materialReference.color = colour;
}
}
#if UNITY_EDITOR
/// <summary>
/// Adds a Material Fadable to the scene.
/// </summary>
[UnityEditor.MenuItem("GameObject/SOFlow/Fading/Fadables/Add Material Fadable", false, 10)]
public static void AddComponentToScene()
{
Renderer _renderer = UnityEditor.Selection.activeGameObject?.GetComponent<Renderer>();
if(_renderer != null)
{
MaterialFadable fadable = _renderer.gameObject.AddComponent<MaterialFadable>();
fadable.TargetRenderer = _renderer;
return;
}
GameObject _gameObject = new GameObject("Material Fadable", typeof(MaterialFadable));
if(UnityEditor.Selection.activeTransform != null)
{
_gameObject.transform.SetParent(UnityEditor.Selection.activeTransform);
}
UnityEditor.Selection.activeGameObject = _gameObject;
}
#endif
}
} | 32.235294 | 115 | 0.588321 | [
"MIT"
] | BLUDRAG/SOFlow-Extensions | Assets/SOFlow Extensions/Fading/Fadables/MaterialFadable.cs | 2,742 | C# |
// <auto-generated/>
// Contents of: hl7.fhir.r3.core version: 3.0.2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Hl7.Fhir.Introspection;
using Hl7.Fhir.Serialization;
using Hl7.Fhir.Specification;
using Hl7.Fhir.Utility;
using Hl7.Fhir.Validation;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of HL7 nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
namespace Hl7.Fhir.Model
{
/// <summary>
/// The details of a healthcare service available at a location
/// </summary>
[Serializable]
[DataContract]
[FhirType("HealthcareService", IsResource=true)]
public partial class HealthcareService : Hl7.Fhir.Model.DomainResource
{
/// <summary>
/// FHIR Type Name
/// </summary>
public override string TypeName { get { return "HealthcareService"; } }
/// <summary>
/// Times the Service Site is available
/// </summary>
[Serializable]
[DataContract]
[FhirType("HealthcareService#AvailableTime", IsNestedType=true)]
public partial class AvailableTimeComponent : Hl7.Fhir.Model.BackboneElement
{
/// <summary>
/// FHIR Type Name
/// </summary>
public override string TypeName { get { return "HealthcareService#AvailableTime"; } }
/// <summary>
/// mon | tue | wed | thu | fri | sat | sun
/// </summary>
[FhirElement("daysOfWeek", Order=40)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Code<Hl7.Fhir.Model.DaysOfWeek>> DaysOfWeekElement
{
get { if(_DaysOfWeekElement==null) _DaysOfWeekElement = new List<Hl7.Fhir.Model.Code<Hl7.Fhir.Model.DaysOfWeek>>(); return _DaysOfWeekElement; }
set { _DaysOfWeekElement = value; OnPropertyChanged("DaysOfWeekElement"); }
}
private List<Code<Hl7.Fhir.Model.DaysOfWeek>> _DaysOfWeekElement;
/// <summary>
/// mon | tue | wed | thu | fri | sat | sun
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public IEnumerable<Hl7.Fhir.Model.DaysOfWeek?> DaysOfWeek
{
get { return DaysOfWeekElement != null ? DaysOfWeekElement.Select(elem => elem.Value) : null; }
set
{
if (value == null)
DaysOfWeekElement = null;
else
DaysOfWeekElement = new List<Hl7.Fhir.Model.Code<Hl7.Fhir.Model.DaysOfWeek>>(value.Select(elem=>new Hl7.Fhir.Model.Code<Hl7.Fhir.Model.DaysOfWeek>(elem)));
OnPropertyChanged("DaysOfWeek");
}
}
/// <summary>
/// Always available? e.g. 24 hour service
/// </summary>
[FhirElement("allDay", Order=50)]
[DataMember]
public Hl7.Fhir.Model.FhirBoolean AllDayElement
{
get { return _AllDayElement; }
set { _AllDayElement = value; OnPropertyChanged("AllDayElement"); }
}
private Hl7.Fhir.Model.FhirBoolean _AllDayElement;
/// <summary>
/// Always available? e.g. 24 hour service
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public bool? AllDay
{
get { return AllDayElement != null ? AllDayElement.Value : null; }
set
{
if (value == null)
AllDayElement = null;
else
AllDayElement = new Hl7.Fhir.Model.FhirBoolean(value);
OnPropertyChanged("AllDay");
}
}
/// <summary>
/// Opening time of day (ignored if allDay = true)
/// </summary>
[FhirElement("availableStartTime", Order=60)]
[DataMember]
public Hl7.Fhir.Model.Time AvailableStartTimeElement
{
get { return _AvailableStartTimeElement; }
set { _AvailableStartTimeElement = value; OnPropertyChanged("AvailableStartTimeElement"); }
}
private Hl7.Fhir.Model.Time _AvailableStartTimeElement;
/// <summary>
/// Opening time of day (ignored if allDay = true)
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string AvailableStartTime
{
get { return AvailableStartTimeElement != null ? AvailableStartTimeElement.Value : null; }
set
{
if (value == null)
AvailableStartTimeElement = null;
else
AvailableStartTimeElement = new Hl7.Fhir.Model.Time(value);
OnPropertyChanged("AvailableStartTime");
}
}
/// <summary>
/// Closing time of day (ignored if allDay = true)
/// </summary>
[FhirElement("availableEndTime", Order=70)]
[DataMember]
public Hl7.Fhir.Model.Time AvailableEndTimeElement
{
get { return _AvailableEndTimeElement; }
set { _AvailableEndTimeElement = value; OnPropertyChanged("AvailableEndTimeElement"); }
}
private Hl7.Fhir.Model.Time _AvailableEndTimeElement;
/// <summary>
/// Closing time of day (ignored if allDay = true)
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string AvailableEndTime
{
get { return AvailableEndTimeElement != null ? AvailableEndTimeElement.Value : null; }
set
{
if (value == null)
AvailableEndTimeElement = null;
else
AvailableEndTimeElement = new Hl7.Fhir.Model.Time(value);
OnPropertyChanged("AvailableEndTime");
}
}
public override IDeepCopyable CopyTo(IDeepCopyable other)
{
var dest = other as AvailableTimeComponent;
if (dest == null)
{
throw new ArgumentException("Can only copy to an object of the same type", "other");
}
base.CopyTo(dest);
if(DaysOfWeekElement != null) dest.DaysOfWeekElement = new List<Code<Hl7.Fhir.Model.DaysOfWeek>>(DaysOfWeekElement.DeepCopy());
if(AllDayElement != null) dest.AllDayElement = (Hl7.Fhir.Model.FhirBoolean)AllDayElement.DeepCopy();
if(AvailableStartTimeElement != null) dest.AvailableStartTimeElement = (Hl7.Fhir.Model.Time)AvailableStartTimeElement.DeepCopy();
if(AvailableEndTimeElement != null) dest.AvailableEndTimeElement = (Hl7.Fhir.Model.Time)AvailableEndTimeElement.DeepCopy();
return dest;
}
public override IDeepCopyable DeepCopy()
{
return CopyTo(new AvailableTimeComponent());
}
public override bool Matches(IDeepComparable other)
{
var otherT = other as AvailableTimeComponent;
if(otherT == null) return false;
if(!base.Matches(otherT)) return false;
if( !DeepComparable.Matches(DaysOfWeekElement, otherT.DaysOfWeekElement)) return false;
if( !DeepComparable.Matches(AllDayElement, otherT.AllDayElement)) return false;
if( !DeepComparable.Matches(AvailableStartTimeElement, otherT.AvailableStartTimeElement)) return false;
if( !DeepComparable.Matches(AvailableEndTimeElement, otherT.AvailableEndTimeElement)) return false;
return true;
}
public override bool IsExactly(IDeepComparable other)
{
var otherT = other as AvailableTimeComponent;
if(otherT == null) return false;
if(!base.IsExactly(otherT)) return false;
if( !DeepComparable.IsExactly(DaysOfWeekElement, otherT.DaysOfWeekElement)) return false;
if( !DeepComparable.IsExactly(AllDayElement, otherT.AllDayElement)) return false;
if( !DeepComparable.IsExactly(AvailableStartTimeElement, otherT.AvailableStartTimeElement)) return false;
if( !DeepComparable.IsExactly(AvailableEndTimeElement, otherT.AvailableEndTimeElement)) return false;
return true;
}
[IgnoreDataMember]
public override IEnumerable<Base> Children
{
get
{
foreach (var item in base.Children) yield return item;
foreach (var elem in DaysOfWeekElement) { if (elem != null) yield return elem; }
if (AllDayElement != null) yield return AllDayElement;
if (AvailableStartTimeElement != null) yield return AvailableStartTimeElement;
if (AvailableEndTimeElement != null) yield return AvailableEndTimeElement;
}
}
[IgnoreDataMember]
public override IEnumerable<ElementValue> NamedChildren
{
get
{
foreach (var item in base.NamedChildren) yield return item;
foreach (var elem in DaysOfWeekElement) { if (elem != null) yield return new ElementValue("daysOfWeek", elem); }
if (AllDayElement != null) yield return new ElementValue("allDay", AllDayElement);
if (AvailableStartTimeElement != null) yield return new ElementValue("availableStartTime", AvailableStartTimeElement);
if (AvailableEndTimeElement != null) yield return new ElementValue("availableEndTime", AvailableEndTimeElement);
}
}
}
/// <summary>
/// Not available during this time due to provided reason
/// </summary>
[Serializable]
[DataContract]
[FhirType("HealthcareService#NotAvailable", IsNestedType=true)]
public partial class NotAvailableComponent : Hl7.Fhir.Model.BackboneElement
{
/// <summary>
/// FHIR Type Name
/// </summary>
public override string TypeName { get { return "HealthcareService#NotAvailable"; } }
/// <summary>
/// Reason presented to the user explaining why time not available
/// </summary>
[FhirElement("description", Order=40)]
[Cardinality(Min=1,Max=1)]
[DataMember]
public Hl7.Fhir.Model.FhirString DescriptionElement
{
get { return _DescriptionElement; }
set { _DescriptionElement = value; OnPropertyChanged("DescriptionElement"); }
}
private Hl7.Fhir.Model.FhirString _DescriptionElement;
/// <summary>
/// Reason presented to the user explaining why time not available
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string Description
{
get { return DescriptionElement != null ? DescriptionElement.Value : null; }
set
{
if (value == null)
DescriptionElement = null;
else
DescriptionElement = new Hl7.Fhir.Model.FhirString(value);
OnPropertyChanged("Description");
}
}
/// <summary>
/// Service not availablefrom this date
/// </summary>
[FhirElement("during", Order=50)]
[DataMember]
public Hl7.Fhir.Model.Period During
{
get { return _During; }
set { _During = value; OnPropertyChanged("During"); }
}
private Hl7.Fhir.Model.Period _During;
public override IDeepCopyable CopyTo(IDeepCopyable other)
{
var dest = other as NotAvailableComponent;
if (dest == null)
{
throw new ArgumentException("Can only copy to an object of the same type", "other");
}
base.CopyTo(dest);
if(DescriptionElement != null) dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy();
if(During != null) dest.During = (Hl7.Fhir.Model.Period)During.DeepCopy();
return dest;
}
public override IDeepCopyable DeepCopy()
{
return CopyTo(new NotAvailableComponent());
}
public override bool Matches(IDeepComparable other)
{
var otherT = other as NotAvailableComponent;
if(otherT == null) return false;
if(!base.Matches(otherT)) return false;
if( !DeepComparable.Matches(DescriptionElement, otherT.DescriptionElement)) return false;
if( !DeepComparable.Matches(During, otherT.During)) return false;
return true;
}
public override bool IsExactly(IDeepComparable other)
{
var otherT = other as NotAvailableComponent;
if(otherT == null) return false;
if(!base.IsExactly(otherT)) return false;
if( !DeepComparable.IsExactly(DescriptionElement, otherT.DescriptionElement)) return false;
if( !DeepComparable.IsExactly(During, otherT.During)) return false;
return true;
}
[IgnoreDataMember]
public override IEnumerable<Base> Children
{
get
{
foreach (var item in base.Children) yield return item;
if (DescriptionElement != null) yield return DescriptionElement;
if (During != null) yield return During;
}
}
[IgnoreDataMember]
public override IEnumerable<ElementValue> NamedChildren
{
get
{
foreach (var item in base.NamedChildren) yield return item;
if (DescriptionElement != null) yield return new ElementValue("description", DescriptionElement);
if (During != null) yield return new ElementValue("during", During);
}
}
}
/// <summary>
/// External identifiers for this item
/// </summary>
[FhirElement("identifier", InSummary=true, Order=90)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.Identifier> Identifier
{
get { if(_Identifier==null) _Identifier = new List<Hl7.Fhir.Model.Identifier>(); return _Identifier; }
set { _Identifier = value; OnPropertyChanged("Identifier"); }
}
private List<Hl7.Fhir.Model.Identifier> _Identifier;
/// <summary>
/// Whether this healthcareservice is in active use
/// </summary>
[FhirElement("active", InSummary=true, Order=100)]
[DataMember]
public Hl7.Fhir.Model.FhirBoolean ActiveElement
{
get { return _ActiveElement; }
set { _ActiveElement = value; OnPropertyChanged("ActiveElement"); }
}
private Hl7.Fhir.Model.FhirBoolean _ActiveElement;
/// <summary>
/// Whether this healthcareservice is in active use
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public bool? Active
{
get { return ActiveElement != null ? ActiveElement.Value : null; }
set
{
if (value == null)
ActiveElement = null;
else
ActiveElement = new Hl7.Fhir.Model.FhirBoolean(value);
OnPropertyChanged("Active");
}
}
/// <summary>
/// Organization that provides this service
/// </summary>
[FhirElement("providedBy", InSummary=true, Order=110)]
[CLSCompliant(false)]
[References("Organization")]
[DataMember]
public Hl7.Fhir.Model.ResourceReference ProvidedBy
{
get { return _ProvidedBy; }
set { _ProvidedBy = value; OnPropertyChanged("ProvidedBy"); }
}
private Hl7.Fhir.Model.ResourceReference _ProvidedBy;
/// <summary>
/// Broad category of service being performed or delivered
/// </summary>
[FhirElement("category", InSummary=true, Order=120)]
[DataMember]
public Hl7.Fhir.Model.CodeableConcept Category
{
get { return _Category; }
set { _Category = value; OnPropertyChanged("Category"); }
}
private Hl7.Fhir.Model.CodeableConcept _Category;
/// <summary>
/// Type of service that may be delivered or performed
/// </summary>
[FhirElement("type", InSummary=true, Order=130)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.CodeableConcept> Type
{
get { if(_Type==null) _Type = new List<Hl7.Fhir.Model.CodeableConcept>(); return _Type; }
set { _Type = value; OnPropertyChanged("Type"); }
}
private List<Hl7.Fhir.Model.CodeableConcept> _Type;
/// <summary>
/// Specialties handled by the HealthcareService
/// </summary>
[FhirElement("specialty", InSummary=true, Order=140)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.CodeableConcept> Specialty
{
get { if(_Specialty==null) _Specialty = new List<Hl7.Fhir.Model.CodeableConcept>(); return _Specialty; }
set { _Specialty = value; OnPropertyChanged("Specialty"); }
}
private List<Hl7.Fhir.Model.CodeableConcept> _Specialty;
/// <summary>
/// Location(s) where service may be provided
/// </summary>
[FhirElement("location", InSummary=true, Order=150)]
[CLSCompliant(false)]
[References("Location")]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.ResourceReference> Location
{
get { if(_Location==null) _Location = new List<Hl7.Fhir.Model.ResourceReference>(); return _Location; }
set { _Location = value; OnPropertyChanged("Location"); }
}
private List<Hl7.Fhir.Model.ResourceReference> _Location;
/// <summary>
/// Description of service as presented to a consumer while searching
/// </summary>
[FhirElement("name", InSummary=true, Order=160)]
[DataMember]
public Hl7.Fhir.Model.FhirString NameElement
{
get { return _NameElement; }
set { _NameElement = value; OnPropertyChanged("NameElement"); }
}
private Hl7.Fhir.Model.FhirString _NameElement;
/// <summary>
/// Description of service as presented to a consumer while searching
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string Name
{
get { return NameElement != null ? NameElement.Value : null; }
set
{
if (value == null)
NameElement = null;
else
NameElement = new Hl7.Fhir.Model.FhirString(value);
OnPropertyChanged("Name");
}
}
/// <summary>
/// Additional description and/or any specific issues not covered elsewhere
/// </summary>
[FhirElement("comment", InSummary=true, Order=170)]
[DataMember]
public Hl7.Fhir.Model.FhirString CommentElement
{
get { return _CommentElement; }
set { _CommentElement = value; OnPropertyChanged("CommentElement"); }
}
private Hl7.Fhir.Model.FhirString _CommentElement;
/// <summary>
/// Additional description and/or any specific issues not covered elsewhere
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string Comment
{
get { return CommentElement != null ? CommentElement.Value : null; }
set
{
if (value == null)
CommentElement = null;
else
CommentElement = new Hl7.Fhir.Model.FhirString(value);
OnPropertyChanged("Comment");
}
}
/// <summary>
/// Extra details about the service that can't be placed in the other fields
/// </summary>
[FhirElement("extraDetails", Order=180)]
[DataMember]
public Hl7.Fhir.Model.FhirString ExtraDetailsElement
{
get { return _ExtraDetailsElement; }
set { _ExtraDetailsElement = value; OnPropertyChanged("ExtraDetailsElement"); }
}
private Hl7.Fhir.Model.FhirString _ExtraDetailsElement;
/// <summary>
/// Extra details about the service that can't be placed in the other fields
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string ExtraDetails
{
get { return ExtraDetailsElement != null ? ExtraDetailsElement.Value : null; }
set
{
if (value == null)
ExtraDetailsElement = null;
else
ExtraDetailsElement = new Hl7.Fhir.Model.FhirString(value);
OnPropertyChanged("ExtraDetails");
}
}
/// <summary>
/// Facilitates quick identification of the service
/// </summary>
[FhirElement("photo", InSummary=true, Order=190)]
[DataMember]
public Hl7.Fhir.Model.Attachment Photo
{
get { return _Photo; }
set { _Photo = value; OnPropertyChanged("Photo"); }
}
private Hl7.Fhir.Model.Attachment _Photo;
/// <summary>
/// Contacts related to the healthcare service
/// </summary>
[FhirElement("telecom", Order=200)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.ContactPoint> Telecom
{
get { if(_Telecom==null) _Telecom = new List<Hl7.Fhir.Model.ContactPoint>(); return _Telecom; }
set { _Telecom = value; OnPropertyChanged("Telecom"); }
}
private List<Hl7.Fhir.Model.ContactPoint> _Telecom;
/// <summary>
/// Location(s) service is inteded for/available to
/// </summary>
[FhirElement("coverageArea", Order=210)]
[CLSCompliant(false)]
[References("Location")]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.ResourceReference> CoverageArea
{
get { if(_CoverageArea==null) _CoverageArea = new List<Hl7.Fhir.Model.ResourceReference>(); return _CoverageArea; }
set { _CoverageArea = value; OnPropertyChanged("CoverageArea"); }
}
private List<Hl7.Fhir.Model.ResourceReference> _CoverageArea;
/// <summary>
/// Conditions under which service is available/offered
/// </summary>
[FhirElement("serviceProvisionCode", Order=220)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.CodeableConcept> ServiceProvisionCode
{
get { if(_ServiceProvisionCode==null) _ServiceProvisionCode = new List<Hl7.Fhir.Model.CodeableConcept>(); return _ServiceProvisionCode; }
set { _ServiceProvisionCode = value; OnPropertyChanged("ServiceProvisionCode"); }
}
private List<Hl7.Fhir.Model.CodeableConcept> _ServiceProvisionCode;
/// <summary>
/// Specific eligibility requirements required to use the service
/// </summary>
[FhirElement("eligibility", Order=230)]
[DataMember]
public Hl7.Fhir.Model.CodeableConcept Eligibility
{
get { return _Eligibility; }
set { _Eligibility = value; OnPropertyChanged("Eligibility"); }
}
private Hl7.Fhir.Model.CodeableConcept _Eligibility;
/// <summary>
/// Describes the eligibility conditions for the service
/// </summary>
[FhirElement("eligibilityNote", Order=240)]
[DataMember]
public Hl7.Fhir.Model.FhirString EligibilityNoteElement
{
get { return _EligibilityNoteElement; }
set { _EligibilityNoteElement = value; OnPropertyChanged("EligibilityNoteElement"); }
}
private Hl7.Fhir.Model.FhirString _EligibilityNoteElement;
/// <summary>
/// Describes the eligibility conditions for the service
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string EligibilityNote
{
get { return EligibilityNoteElement != null ? EligibilityNoteElement.Value : null; }
set
{
if (value == null)
EligibilityNoteElement = null;
else
EligibilityNoteElement = new Hl7.Fhir.Model.FhirString(value);
OnPropertyChanged("EligibilityNote");
}
}
/// <summary>
/// Program Names that categorize the service
/// </summary>
[FhirElement("programName", Order=250)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.FhirString> ProgramNameElement
{
get { if(_ProgramNameElement==null) _ProgramNameElement = new List<Hl7.Fhir.Model.FhirString>(); return _ProgramNameElement; }
set { _ProgramNameElement = value; OnPropertyChanged("ProgramNameElement"); }
}
private List<Hl7.Fhir.Model.FhirString> _ProgramNameElement;
/// <summary>
/// Program Names that categorize the service
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public IEnumerable<string> ProgramName
{
get { return ProgramNameElement != null ? ProgramNameElement.Select(elem => elem.Value) : null; }
set
{
if (value == null)
ProgramNameElement = null;
else
ProgramNameElement = new List<Hl7.Fhir.Model.FhirString>(value.Select(elem=>new Hl7.Fhir.Model.FhirString(elem)));
OnPropertyChanged("ProgramName");
}
}
/// <summary>
/// Collection of characteristics (attributes)
/// </summary>
[FhirElement("characteristic", Order=260)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.CodeableConcept> Characteristic
{
get { if(_Characteristic==null) _Characteristic = new List<Hl7.Fhir.Model.CodeableConcept>(); return _Characteristic; }
set { _Characteristic = value; OnPropertyChanged("Characteristic"); }
}
private List<Hl7.Fhir.Model.CodeableConcept> _Characteristic;
/// <summary>
/// Ways that the service accepts referrals
/// </summary>
[FhirElement("referralMethod", Order=270)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.CodeableConcept> ReferralMethod
{
get { if(_ReferralMethod==null) _ReferralMethod = new List<Hl7.Fhir.Model.CodeableConcept>(); return _ReferralMethod; }
set { _ReferralMethod = value; OnPropertyChanged("ReferralMethod"); }
}
private List<Hl7.Fhir.Model.CodeableConcept> _ReferralMethod;
/// <summary>
/// If an appointment is required for access to this service
/// </summary>
[FhirElement("appointmentRequired", Order=280)]
[DataMember]
public Hl7.Fhir.Model.FhirBoolean AppointmentRequiredElement
{
get { return _AppointmentRequiredElement; }
set { _AppointmentRequiredElement = value; OnPropertyChanged("AppointmentRequiredElement"); }
}
private Hl7.Fhir.Model.FhirBoolean _AppointmentRequiredElement;
/// <summary>
/// If an appointment is required for access to this service
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public bool? AppointmentRequired
{
get { return AppointmentRequiredElement != null ? AppointmentRequiredElement.Value : null; }
set
{
if (value == null)
AppointmentRequiredElement = null;
else
AppointmentRequiredElement = new Hl7.Fhir.Model.FhirBoolean(value);
OnPropertyChanged("AppointmentRequired");
}
}
/// <summary>
/// Times the Service Site is available
/// </summary>
[FhirElement("availableTime", Order=290)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.HealthcareService.AvailableTimeComponent> AvailableTime
{
get { if(_AvailableTime==null) _AvailableTime = new List<Hl7.Fhir.Model.HealthcareService.AvailableTimeComponent>(); return _AvailableTime; }
set { _AvailableTime = value; OnPropertyChanged("AvailableTime"); }
}
private List<Hl7.Fhir.Model.HealthcareService.AvailableTimeComponent> _AvailableTime;
/// <summary>
/// Not available during this time due to provided reason
/// </summary>
[FhirElement("notAvailable", Order=300)]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.HealthcareService.NotAvailableComponent> NotAvailable
{
get { if(_NotAvailable==null) _NotAvailable = new List<Hl7.Fhir.Model.HealthcareService.NotAvailableComponent>(); return _NotAvailable; }
set { _NotAvailable = value; OnPropertyChanged("NotAvailable"); }
}
private List<Hl7.Fhir.Model.HealthcareService.NotAvailableComponent> _NotAvailable;
/// <summary>
/// Description of availability exceptions
/// </summary>
[FhirElement("availabilityExceptions", Order=310)]
[DataMember]
public Hl7.Fhir.Model.FhirString AvailabilityExceptionsElement
{
get { return _AvailabilityExceptionsElement; }
set { _AvailabilityExceptionsElement = value; OnPropertyChanged("AvailabilityExceptionsElement"); }
}
private Hl7.Fhir.Model.FhirString _AvailabilityExceptionsElement;
/// <summary>
/// Description of availability exceptions
/// </summary>
/// <remarks>This uses the native .NET datatype, rather than the FHIR equivalent</remarks>
[IgnoreDataMember]
public string AvailabilityExceptions
{
get { return AvailabilityExceptionsElement != null ? AvailabilityExceptionsElement.Value : null; }
set
{
if (value == null)
AvailabilityExceptionsElement = null;
else
AvailabilityExceptionsElement = new Hl7.Fhir.Model.FhirString(value);
OnPropertyChanged("AvailabilityExceptions");
}
}
/// <summary>
/// Technical endpoints providing access to services operated for the location
/// </summary>
[FhirElement("endpoint", Order=320)]
[CLSCompliant(false)]
[References("Endpoint")]
[Cardinality(Min=0,Max=-1)]
[DataMember]
public List<Hl7.Fhir.Model.ResourceReference> Endpoint
{
get { if(_Endpoint==null) _Endpoint = new List<Hl7.Fhir.Model.ResourceReference>(); return _Endpoint; }
set { _Endpoint = value; OnPropertyChanged("Endpoint"); }
}
private List<Hl7.Fhir.Model.ResourceReference> _Endpoint;
public override IDeepCopyable CopyTo(IDeepCopyable other)
{
var dest = other as HealthcareService;
if (dest == null)
{
throw new ArgumentException("Can only copy to an object of the same type", "other");
}
base.CopyTo(dest);
if(Identifier != null) dest.Identifier = new List<Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy());
if(ActiveElement != null) dest.ActiveElement = (Hl7.Fhir.Model.FhirBoolean)ActiveElement.DeepCopy();
if(ProvidedBy != null) dest.ProvidedBy = (Hl7.Fhir.Model.ResourceReference)ProvidedBy.DeepCopy();
if(Category != null) dest.Category = (Hl7.Fhir.Model.CodeableConcept)Category.DeepCopy();
if(Type != null) dest.Type = new List<Hl7.Fhir.Model.CodeableConcept>(Type.DeepCopy());
if(Specialty != null) dest.Specialty = new List<Hl7.Fhir.Model.CodeableConcept>(Specialty.DeepCopy());
if(Location != null) dest.Location = new List<Hl7.Fhir.Model.ResourceReference>(Location.DeepCopy());
if(NameElement != null) dest.NameElement = (Hl7.Fhir.Model.FhirString)NameElement.DeepCopy();
if(CommentElement != null) dest.CommentElement = (Hl7.Fhir.Model.FhirString)CommentElement.DeepCopy();
if(ExtraDetailsElement != null) dest.ExtraDetailsElement = (Hl7.Fhir.Model.FhirString)ExtraDetailsElement.DeepCopy();
if(Photo != null) dest.Photo = (Hl7.Fhir.Model.Attachment)Photo.DeepCopy();
if(Telecom != null) dest.Telecom = new List<Hl7.Fhir.Model.ContactPoint>(Telecom.DeepCopy());
if(CoverageArea != null) dest.CoverageArea = new List<Hl7.Fhir.Model.ResourceReference>(CoverageArea.DeepCopy());
if(ServiceProvisionCode != null) dest.ServiceProvisionCode = new List<Hl7.Fhir.Model.CodeableConcept>(ServiceProvisionCode.DeepCopy());
if(Eligibility != null) dest.Eligibility = (Hl7.Fhir.Model.CodeableConcept)Eligibility.DeepCopy();
if(EligibilityNoteElement != null) dest.EligibilityNoteElement = (Hl7.Fhir.Model.FhirString)EligibilityNoteElement.DeepCopy();
if(ProgramNameElement != null) dest.ProgramNameElement = new List<Hl7.Fhir.Model.FhirString>(ProgramNameElement.DeepCopy());
if(Characteristic != null) dest.Characteristic = new List<Hl7.Fhir.Model.CodeableConcept>(Characteristic.DeepCopy());
if(ReferralMethod != null) dest.ReferralMethod = new List<Hl7.Fhir.Model.CodeableConcept>(ReferralMethod.DeepCopy());
if(AppointmentRequiredElement != null) dest.AppointmentRequiredElement = (Hl7.Fhir.Model.FhirBoolean)AppointmentRequiredElement.DeepCopy();
if(AvailableTime != null) dest.AvailableTime = new List<Hl7.Fhir.Model.HealthcareService.AvailableTimeComponent>(AvailableTime.DeepCopy());
if(NotAvailable != null) dest.NotAvailable = new List<Hl7.Fhir.Model.HealthcareService.NotAvailableComponent>(NotAvailable.DeepCopy());
if(AvailabilityExceptionsElement != null) dest.AvailabilityExceptionsElement = (Hl7.Fhir.Model.FhirString)AvailabilityExceptionsElement.DeepCopy();
if(Endpoint != null) dest.Endpoint = new List<Hl7.Fhir.Model.ResourceReference>(Endpoint.DeepCopy());
return dest;
}
public override IDeepCopyable DeepCopy()
{
return CopyTo(new HealthcareService());
}
public override bool Matches(IDeepComparable other)
{
var otherT = other as HealthcareService;
if(otherT == null) return false;
if(!base.Matches(otherT)) return false;
if( !DeepComparable.Matches(Identifier, otherT.Identifier)) return false;
if( !DeepComparable.Matches(ActiveElement, otherT.ActiveElement)) return false;
if( !DeepComparable.Matches(ProvidedBy, otherT.ProvidedBy)) return false;
if( !DeepComparable.Matches(Category, otherT.Category)) return false;
if( !DeepComparable.Matches(Type, otherT.Type)) return false;
if( !DeepComparable.Matches(Specialty, otherT.Specialty)) return false;
if( !DeepComparable.Matches(Location, otherT.Location)) return false;
if( !DeepComparable.Matches(NameElement, otherT.NameElement)) return false;
if( !DeepComparable.Matches(CommentElement, otherT.CommentElement)) return false;
if( !DeepComparable.Matches(ExtraDetailsElement, otherT.ExtraDetailsElement)) return false;
if( !DeepComparable.Matches(Photo, otherT.Photo)) return false;
if( !DeepComparable.Matches(Telecom, otherT.Telecom)) return false;
if( !DeepComparable.Matches(CoverageArea, otherT.CoverageArea)) return false;
if( !DeepComparable.Matches(ServiceProvisionCode, otherT.ServiceProvisionCode)) return false;
if( !DeepComparable.Matches(Eligibility, otherT.Eligibility)) return false;
if( !DeepComparable.Matches(EligibilityNoteElement, otherT.EligibilityNoteElement)) return false;
if( !DeepComparable.Matches(ProgramNameElement, otherT.ProgramNameElement)) return false;
if( !DeepComparable.Matches(Characteristic, otherT.Characteristic)) return false;
if( !DeepComparable.Matches(ReferralMethod, otherT.ReferralMethod)) return false;
if( !DeepComparable.Matches(AppointmentRequiredElement, otherT.AppointmentRequiredElement)) return false;
if( !DeepComparable.Matches(AvailableTime, otherT.AvailableTime)) return false;
if( !DeepComparable.Matches(NotAvailable, otherT.NotAvailable)) return false;
if( !DeepComparable.Matches(AvailabilityExceptionsElement, otherT.AvailabilityExceptionsElement)) return false;
if( !DeepComparable.Matches(Endpoint, otherT.Endpoint)) return false;
return true;
}
public override bool IsExactly(IDeepComparable other)
{
var otherT = other as HealthcareService;
if(otherT == null) return false;
if(!base.IsExactly(otherT)) return false;
if( !DeepComparable.IsExactly(Identifier, otherT.Identifier)) return false;
if( !DeepComparable.IsExactly(ActiveElement, otherT.ActiveElement)) return false;
if( !DeepComparable.IsExactly(ProvidedBy, otherT.ProvidedBy)) return false;
if( !DeepComparable.IsExactly(Category, otherT.Category)) return false;
if( !DeepComparable.IsExactly(Type, otherT.Type)) return false;
if( !DeepComparable.IsExactly(Specialty, otherT.Specialty)) return false;
if( !DeepComparable.IsExactly(Location, otherT.Location)) return false;
if( !DeepComparable.IsExactly(NameElement, otherT.NameElement)) return false;
if( !DeepComparable.IsExactly(CommentElement, otherT.CommentElement)) return false;
if( !DeepComparable.IsExactly(ExtraDetailsElement, otherT.ExtraDetailsElement)) return false;
if( !DeepComparable.IsExactly(Photo, otherT.Photo)) return false;
if( !DeepComparable.IsExactly(Telecom, otherT.Telecom)) return false;
if( !DeepComparable.IsExactly(CoverageArea, otherT.CoverageArea)) return false;
if( !DeepComparable.IsExactly(ServiceProvisionCode, otherT.ServiceProvisionCode)) return false;
if( !DeepComparable.IsExactly(Eligibility, otherT.Eligibility)) return false;
if( !DeepComparable.IsExactly(EligibilityNoteElement, otherT.EligibilityNoteElement)) return false;
if( !DeepComparable.IsExactly(ProgramNameElement, otherT.ProgramNameElement)) return false;
if( !DeepComparable.IsExactly(Characteristic, otherT.Characteristic)) return false;
if( !DeepComparable.IsExactly(ReferralMethod, otherT.ReferralMethod)) return false;
if( !DeepComparable.IsExactly(AppointmentRequiredElement, otherT.AppointmentRequiredElement)) return false;
if( !DeepComparable.IsExactly(AvailableTime, otherT.AvailableTime)) return false;
if( !DeepComparable.IsExactly(NotAvailable, otherT.NotAvailable)) return false;
if( !DeepComparable.IsExactly(AvailabilityExceptionsElement, otherT.AvailabilityExceptionsElement)) return false;
if( !DeepComparable.IsExactly(Endpoint, otherT.Endpoint)) return false;
return true;
}
[IgnoreDataMember]
public override IEnumerable<Base> Children
{
get
{
foreach (var item in base.Children) yield return item;
foreach (var elem in Identifier) { if (elem != null) yield return elem; }
if (ActiveElement != null) yield return ActiveElement;
if (ProvidedBy != null) yield return ProvidedBy;
if (Category != null) yield return Category;
foreach (var elem in Type) { if (elem != null) yield return elem; }
foreach (var elem in Specialty) { if (elem != null) yield return elem; }
foreach (var elem in Location) { if (elem != null) yield return elem; }
if (NameElement != null) yield return NameElement;
if (CommentElement != null) yield return CommentElement;
if (ExtraDetailsElement != null) yield return ExtraDetailsElement;
if (Photo != null) yield return Photo;
foreach (var elem in Telecom) { if (elem != null) yield return elem; }
foreach (var elem in CoverageArea) { if (elem != null) yield return elem; }
foreach (var elem in ServiceProvisionCode) { if (elem != null) yield return elem; }
if (Eligibility != null) yield return Eligibility;
if (EligibilityNoteElement != null) yield return EligibilityNoteElement;
foreach (var elem in ProgramNameElement) { if (elem != null) yield return elem; }
foreach (var elem in Characteristic) { if (elem != null) yield return elem; }
foreach (var elem in ReferralMethod) { if (elem != null) yield return elem; }
if (AppointmentRequiredElement != null) yield return AppointmentRequiredElement;
foreach (var elem in AvailableTime) { if (elem != null) yield return elem; }
foreach (var elem in NotAvailable) { if (elem != null) yield return elem; }
if (AvailabilityExceptionsElement != null) yield return AvailabilityExceptionsElement;
foreach (var elem in Endpoint) { if (elem != null) yield return elem; }
}
}
[IgnoreDataMember]
public override IEnumerable<ElementValue> NamedChildren
{
get
{
foreach (var item in base.NamedChildren) yield return item;
foreach (var elem in Identifier) { if (elem != null) yield return new ElementValue("identifier", elem); }
if (ActiveElement != null) yield return new ElementValue("active", ActiveElement);
if (ProvidedBy != null) yield return new ElementValue("providedBy", ProvidedBy);
if (Category != null) yield return new ElementValue("category", Category);
foreach (var elem in Type) { if (elem != null) yield return new ElementValue("type", elem); }
foreach (var elem in Specialty) { if (elem != null) yield return new ElementValue("specialty", elem); }
foreach (var elem in Location) { if (elem != null) yield return new ElementValue("location", elem); }
if (NameElement != null) yield return new ElementValue("name", NameElement);
if (CommentElement != null) yield return new ElementValue("comment", CommentElement);
if (ExtraDetailsElement != null) yield return new ElementValue("extraDetails", ExtraDetailsElement);
if (Photo != null) yield return new ElementValue("photo", Photo);
foreach (var elem in Telecom) { if (elem != null) yield return new ElementValue("telecom", elem); }
foreach (var elem in CoverageArea) { if (elem != null) yield return new ElementValue("coverageArea", elem); }
foreach (var elem in ServiceProvisionCode) { if (elem != null) yield return new ElementValue("serviceProvisionCode", elem); }
if (Eligibility != null) yield return new ElementValue("eligibility", Eligibility);
if (EligibilityNoteElement != null) yield return new ElementValue("eligibilityNote", EligibilityNoteElement);
foreach (var elem in ProgramNameElement) { if (elem != null) yield return new ElementValue("programName", elem); }
foreach (var elem in Characteristic) { if (elem != null) yield return new ElementValue("characteristic", elem); }
foreach (var elem in ReferralMethod) { if (elem != null) yield return new ElementValue("referralMethod", elem); }
if (AppointmentRequiredElement != null) yield return new ElementValue("appointmentRequired", AppointmentRequiredElement);
foreach (var elem in AvailableTime) { if (elem != null) yield return new ElementValue("availableTime", elem); }
foreach (var elem in NotAvailable) { if (elem != null) yield return new ElementValue("notAvailable", elem); }
if (AvailabilityExceptionsElement != null) yield return new ElementValue("availabilityExceptions", AvailabilityExceptionsElement);
foreach (var elem in Endpoint) { if (elem != null) yield return new ElementValue("endpoint", elem); }
}
}
}
}
// end of file
| 41.173913 | 167 | 0.677333 | [
"MIT"
] | FirelyTeam/fhir-codegen | generated/CSharpFirely2_R3/Generated/HealthcareService.cs | 43,562 | C# |
using System;
namespace MK.Ext
{
public static class DateTimeExt
{
public static bool IsInRange(this DateTime t, DateTime? tfrom, DateTime? ttrim)
{
if (!tfrom.HasValue || t >= tfrom.Value)
if (!ttrim.HasValue || t < ttrim.Value)
return true;
return false;
}
}
} | 19.066667 | 81 | 0.664336 | [
"MIT"
] | maxkoryukov/MK.Lib | src/MK.Lib/Ext/DateTimeExt.cs | 288 | C# |
namespace PiControlPanel.Domain.Contracts.Application
{
using System;
using System.Threading.Tasks;
using PiControlPanel.Domain.Models.Paging;
using PiControlPanel.Domain.Models.Hardware.Memory;
/// <summary>
/// Application layer service for operations on Memory model.
/// </summary>
/// <typeparam name="TMemory">The Memory generic type parameter.</typeparam>
/// <typeparam name="TMemoryStatus">The MemoryStatus generic type parameter.</typeparam>
public interface IMemoryService<TMemory, TMemoryStatus> : IBaseService<TMemory>
where TMemory : Memory
where TMemoryStatus : MemoryStatus
{
/// <summary>
/// Gets the most recent value of the memory status.
/// </summary>
/// <returns>The MemoryStatus object.</returns>
Task<TMemoryStatus> GetLastStatusAsync();
/// <summary>
/// Gets the paged list of values for the memory status.
/// </summary>
/// <param name="pagingInput">The paging information.</param>
/// <returns>The paged info containing the memory status list.</returns>
Task<PagingOutput<TMemoryStatus>> GetStatusesAsync(PagingInput pagingInput);
/// <summary>
/// Gets an observable of the memory status.
/// </summary>
/// <returns>The observable MemoryStatus.</returns>
IObservable<TMemoryStatus> GetStatusObservable();
/// <summary>
/// Retrieves and saves the memory status.
/// </summary>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
Task SaveStatusAsync();
}
}
| 38.604651 | 92 | 0.648193 | [
"MIT"
] | HritwikSinghal/pi-control-panel | src/Domain/PiControlPanel.Domain.Contracts/Application/IMemoryService.cs | 1,662 | C# |
using ATS.Api.DTO;
using ATS.Api.Models;
using AutoMapper;
namespace ATS.Api.Profiles
{
public class CandidateProfile : Profile
{
public CandidateProfile()
{
CreateMap<Candidate, CandidateReadDTO>();
CreateMap<CandidateCreateDTO, Candidate>();
CreateMap<CandidateUpdateDTO, Candidate>();
}
}
}
| 21.647059 | 55 | 0.627717 | [
"MIT"
] | msborges/desafio-totvs | ats-backend/DesafioATS/ATS.Api/Profiles/CandidateProfile.cs | 370 | C# |
// <auto-generated />
using System;
using Data_CS.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Data_CS.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20210731214658_new property")]
partial class newproperty
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "3.1.11")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Data_CS.EF_Models.Brand", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("BrandName")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("Brand");
});
modelBuilder.Entity("Data_CS.EF_Models.Car", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("BrandID")
.HasColumnType("int");
b.Property<float>("Ccm")
.HasColumnType("real");
b.Property<int>("ColorID")
.HasColumnType("int");
b.Property<DateTime>("DateOfManufacture")
.HasColumnType("datetime2");
b.Property<int>("DriveTypeID")
.HasColumnType("int");
b.Property<int>("FuelID")
.HasColumnType("int");
b.Property<float>("Kilometre")
.HasColumnType("real");
b.Property<string>("Model")
.HasColumnType("nvarchar(max)");
b.Property<int>("NumberOfDors")
.HasColumnType("int");
b.Property<string>("NumberOfGears")
.HasColumnType("nvarchar(max)");
b.Property<int>("NumberOfSeats")
.HasColumnType("int");
b.Property<int>("PowerKw")
.HasColumnType("int");
b.Property<int>("PowerPS")
.HasColumnType("int");
b.Property<int>("TransmissionID")
.HasColumnType("int");
b.Property<int>("VehicleTypeID")
.HasColumnType("int");
b.Property<float>("WheelSize")
.HasColumnType("real");
b.HasKey("ID");
b.HasIndex("BrandID");
b.HasIndex("ColorID");
b.HasIndex("DriveTypeID");
b.HasIndex("FuelID");
b.HasIndex("TransmissionID");
b.HasIndex("VehicleTypeID");
b.ToTable("Car");
});
modelBuilder.Entity("Data_CS.EF_Models.CarImage", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("CarID")
.HasColumnType("int");
b.Property<int>("ImageID")
.HasColumnType("int");
b.HasKey("ID");
b.HasIndex("CarID");
b.HasIndex("ImageID");
b.ToTable("CarImage");
});
modelBuilder.Entity("Data_CS.EF_Models.CarModel", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("BrandID")
.HasColumnType("int");
b.Property<string>("NazivModela")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.HasIndex("BrandID");
b.ToTable("CarModel");
});
modelBuilder.Entity("Data_CS.EF_Models.City", b =>
{
b.Property<int>("CityID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.HasKey("CityID");
b.ToTable("City");
});
modelBuilder.Entity("Data_CS.EF_Models.Color", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("ColorName")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("Color");
});
modelBuilder.Entity("Data_CS.EF_Models.DriveType", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("DriveTypeName")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("DriveType");
});
modelBuilder.Entity("Data_CS.EF_Models.FinishedItems", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("BrandID")
.HasColumnType("int");
b.Property<float>("Ccm")
.HasColumnType("real");
b.Property<int>("ColorID")
.HasColumnType("int");
b.Property<DateTime>("DateOfFinish")
.HasColumnType("datetime2");
b.Property<DateTime>("DateOfManufacture")
.HasColumnType("datetime2");
b.Property<int>("DriveTypeID")
.HasColumnType("int");
b.Property<int>("FuelID")
.HasColumnType("int");
b.Property<float>("Kilometre")
.HasColumnType("real");
b.Property<string>("Model")
.HasColumnType("nvarchar(max)");
b.Property<int>("NumberOfDors")
.HasColumnType("int");
b.Property<string>("NumberOfGears")
.HasColumnType("nvarchar(max)");
b.Property<int>("NumberOfSeats")
.HasColumnType("int");
b.Property<int>("PowerKw")
.HasColumnType("int");
b.Property<int>("PowerPS")
.HasColumnType("int");
b.Property<int>("TransmissionID")
.HasColumnType("int");
b.Property<int>("VehicleTypeID")
.HasColumnType("int");
b.Property<float>("WheelSize")
.HasColumnType("real");
b.HasKey("ID");
b.HasIndex("BrandID");
b.HasIndex("ColorID");
b.HasIndex("DriveTypeID");
b.HasIndex("FuelID");
b.HasIndex("TransmissionID");
b.HasIndex("VehicleTypeID");
b.ToTable("FinishedItems");
});
modelBuilder.Entity("Data_CS.EF_Models.Fuel", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("FuelName")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("Fuel");
});
modelBuilder.Entity("Data_CS.EF_Models.Gender", b =>
{
b.Property<int>("GenderID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("Name")
.HasColumnType("nvarchar(max)");
b.HasKey("GenderID");
b.ToTable("Gender");
});
modelBuilder.Entity("Data_CS.EF_Models.Image", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("PathToImage")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("Image");
});
modelBuilder.Entity("Data_CS.EF_Models.Role", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasColumnType("nvarchar(256)")
.HasMaxLength(256);
b.Property<string>("NormalizedName")
.HasColumnType("nvarchar(256)")
.HasMaxLength(256);
b.Property<string>("RoleName")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles");
});
modelBuilder.Entity("Data_CS.EF_Models.ShoppingCart", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("CarId")
.HasColumnType("int");
b.Property<int>("UserId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("CarId");
b.ToTable("ShoppingCart");
});
modelBuilder.Entity("Data_CS.EF_Models.Transmission", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("TransmissionType")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("Transmission");
});
modelBuilder.Entity("Data_CS.EF_Models.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<DateTime>("BirthDate")
.HasColumnType("datetime2");
b.Property<int>("CityID")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Email")
.HasColumnType("nvarchar(256)")
.HasMaxLength(256);
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<string>("FirstName")
.HasColumnType("nvarchar(max)");
b.Property<int>("GenderID")
.HasColumnType("int");
b.Property<string>("LastName")
.HasColumnType("nvarchar(max)");
b.Property<bool>("LockoutEnabled")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("NormalizedEmail")
.HasColumnType("nvarchar(256)")
.HasMaxLength(256);
b.Property<string>("NormalizedUserName")
.HasColumnType("nvarchar(256)")
.HasMaxLength(256);
b.Property<string>("PasswordHash")
.HasColumnType("nvarchar(max)");
b.Property<string>("PhoneNumber")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("bit");
b.Property<string>("SecurityStamp")
.HasColumnType("nvarchar(max)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.HasColumnType("nvarchar(256)")
.HasMaxLength(256);
b.HasKey("Id");
b.HasIndex("CityID");
b.HasIndex("GenderID");
b.HasIndex("NormalizedEmail")
.HasName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers");
});
modelBuilder.Entity("Data_CS.EF_Models.VehicleType", b =>
{
b.Property<int>("ID")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("TypeName")
.HasColumnType("nvarchar(max)");
b.HasKey("ID");
b.ToTable("VehicleType");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<int>("RoleId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<int>("UserId")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderKey")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property<int>("UserId")
.HasColumnType("int");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
{
b.Property<int>("UserId")
.HasColumnType("int");
b.Property<int>("RoleId")
.HasColumnType("int");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles");
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
{
b.Property<int>("UserId")
.HasColumnType("int");
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("Name")
.HasColumnType("nvarchar(450)");
b.Property<string>("Value")
.HasColumnType("nvarchar(max)");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens");
});
modelBuilder.Entity("Data_CS.EF_Models.Car", b =>
{
b.HasOne("Data_CS.EF_Models.Brand", "brand")
.WithMany()
.HasForeignKey("BrandID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Color", "Color")
.WithMany()
.HasForeignKey("ColorID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.DriveType", "DriveType")
.WithMany()
.HasForeignKey("DriveTypeID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Fuel", "Fuel")
.WithMany()
.HasForeignKey("FuelID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Transmission", "Transmission")
.WithMany()
.HasForeignKey("TransmissionID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.VehicleType", "VehicleType")
.WithMany()
.HasForeignKey("VehicleTypeID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Data_CS.EF_Models.CarImage", b =>
{
b.HasOne("Data_CS.EF_Models.Car", "Car")
.WithMany()
.HasForeignKey("CarID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Image", "Image")
.WithMany()
.HasForeignKey("ImageID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Data_CS.EF_Models.CarModel", b =>
{
b.HasOne("Data_CS.EF_Models.Brand", "Brand")
.WithMany()
.HasForeignKey("BrandID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Data_CS.EF_Models.FinishedItems", b =>
{
b.HasOne("Data_CS.EF_Models.Brand", "brand")
.WithMany()
.HasForeignKey("BrandID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Color", "Color")
.WithMany()
.HasForeignKey("ColorID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.DriveType", "DriveType")
.WithMany()
.HasForeignKey("DriveTypeID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Fuel", "Fuel")
.WithMany()
.HasForeignKey("FuelID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Transmission", "Transmission")
.WithMany()
.HasForeignKey("TransmissionID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.VehicleType", "VehicleType")
.WithMany()
.HasForeignKey("VehicleTypeID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Data_CS.EF_Models.ShoppingCart", b =>
{
b.HasOne("Data_CS.EF_Models.Car", "Car")
.WithMany()
.HasForeignKey("CarId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Data_CS.EF_Models.User", b =>
{
b.HasOne("Data_CS.EF_Models.City", "City")
.WithMany()
.HasForeignKey("CityID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.Gender", "Gender")
.WithMany()
.HasForeignKey("GenderID")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<int>", b =>
{
b.HasOne("Data_CS.EF_Models.Role", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<int>", b =>
{
b.HasOne("Data_CS.EF_Models.User", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<int>", b =>
{
b.HasOne("Data_CS.EF_Models.User", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<int>", b =>
{
b.HasOne("Data_CS.EF_Models.Role", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Data_CS.EF_Models.User", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<int>", b =>
{
b.HasOne("Data_CS.EF_Models.User", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
#pragma warning restore 612, 618
}
}
}
| 36.542373 | 125 | 0.442094 | [
"MIT"
] | Haris-Basic/RSI-2020 | Webapp/Data_CS/Migrations/20210731214658_new property.Designer.cs | 28,030 | C# |
/*
Copyright (c) Shubham Saudolla
https://github.com/shubham-saudolla
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class TextureGenerator
{
public static Texture2D TextureFromColorMap(Color[] colorMap, int width, int height)
{
Texture2D texture = new Texture2D(width, height);
texture.filterMode = FilterMode.Point;
texture.wrapMode = TextureWrapMode.Clamp;
texture.SetPixels(colorMap);
texture.Apply();
return texture;
}
public static Texture2D TextureFromHeightMap(float[,] heightMap)
{
int width = heightMap.GetLength(0);
int height = heightMap.GetLength(1);
Color[] colorMap = new Color[width * height];
for (int y = 0; y < height; y++)
{
for (int x = 0; x < width; x++)
{
colorMap[y * width + x] = Color.Lerp(Color.black, Color.white, heightMap[x, y]);
}
}
return TextureFromColorMap(colorMap, width, height);
}
}
| 27.076923 | 96 | 0.616477 | [
"MIT"
] | shubham-saudolla/Landmass-Generation | Landmass Generation/Assets/Scripts/TextureGenerator.cs | 1,058 | C# |
using System;
using System.Runtime.InteropServices;
using System.Linq;
namespace SteamNative
{
internal static partial class Platform
{
internal class Mac : Interface
{
internal IntPtr _ptr;
public bool IsValid { get{ return _ptr != IntPtr.Zero; } }
//
// Constructor sets pointer to native class
//
internal Mac( IntPtr pointer )
{
_ptr = pointer;
}
//
// When shutting down clear all the internals to avoid accidental use
//
public virtual void Dispose()
{
_ptr = IntPtr.Zero;
}
public virtual HSteamPipe /*(HSteamPipe)*/ ISteamClient_CreateSteamPipe()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_CreateSteamPipe(_ptr);
}
public virtual bool /*bool*/ ISteamClient_BReleaseSteamPipe( int hSteamPipe )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_BReleaseSteamPipe(_ptr, hSteamPipe);
}
public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_ConnectToGlobalUser( int hSteamPipe )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_ConnectToGlobalUser(_ptr, hSteamPipe);
}
public virtual HSteamUser /*(HSteamUser)*/ ISteamClient_CreateLocalUser( out int phSteamPipe, AccountType /*EAccountType*/ eAccountType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_CreateLocalUser(_ptr, out phSteamPipe, eAccountType);
}
public virtual void /*void*/ ISteamClient_ReleaseUser( int hSteamPipe, int hUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
Native.SteamAPI_ISteamClient_ReleaseUser(_ptr, hSteamPipe, hUser);
}
public virtual IntPtr /*class ISteamUser **/ ISteamClient_GetISteamUser( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamUser(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamGameServer **/ ISteamClient_GetISteamGameServer( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamGameServer(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual void /*void*/ ISteamClient_SetLocalIPBinding( uint /*uint32*/ unIP, ushort /*uint16*/ usPort )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
Native.SteamAPI_ISteamClient_SetLocalIPBinding(_ptr, unIP, usPort);
}
public virtual IntPtr /*class ISteamFriends **/ ISteamClient_GetISteamFriends( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamFriends(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamUtils **/ ISteamClient_GetISteamUtils( int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamUtils(_ptr, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamMatchmaking **/ ISteamClient_GetISteamMatchmaking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamMatchmaking(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamMatchmakingServers **/ ISteamClient_GetISteamMatchmakingServers( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamMatchmakingServers(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*void **/ ISteamClient_GetISteamGenericInterface( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamGenericInterface(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamUserStats **/ ISteamClient_GetISteamUserStats( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamUserStats(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamGameServerStats **/ ISteamClient_GetISteamGameServerStats( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamGameServerStats(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamApps **/ ISteamClient_GetISteamApps( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamApps(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamNetworking **/ ISteamClient_GetISteamNetworking( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamNetworking(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamRemoteStorage **/ ISteamClient_GetISteamRemoteStorage( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamRemoteStorage(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamScreenshots **/ ISteamClient_GetISteamScreenshots( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamScreenshots(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual uint /*uint32*/ ISteamClient_GetIPCCallCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetIPCCallCount(_ptr);
}
public virtual void /*void*/ ISteamClient_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
Native.SteamAPI_ISteamClient_SetWarningMessageHook(_ptr, pFunction);
}
public virtual bool /*bool*/ ISteamClient_BShutdownIfAllPipesClosed()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_BShutdownIfAllPipesClosed(_ptr);
}
public virtual IntPtr /*class ISteamHTTP **/ ISteamClient_GetISteamHTTP( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamHTTP(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamUnifiedMessages **/ ISteamClient_GetISteamUnifiedMessages( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamUnifiedMessages(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamController **/ ISteamClient_GetISteamController( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamController(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamUGC **/ ISteamClient_GetISteamUGC( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamUGC(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamAppList **/ ISteamClient_GetISteamAppList( int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamAppList(_ptr, hSteamUser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamMusic **/ ISteamClient_GetISteamMusic( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamMusic(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamMusicRemote **/ ISteamClient_GetISteamMusicRemote( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamMusicRemote(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamHTMLSurface **/ ISteamClient_GetISteamHTMLSurface( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamHTMLSurface(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamInventory **/ ISteamClient_GetISteamInventory( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamInventory(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual IntPtr /*class ISteamVideo **/ ISteamClient_GetISteamVideo( int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamClient _ptr is null!" );
return Native.SteamAPI_ISteamClient_GetISteamVideo(_ptr, hSteamuser, hSteamPipe, pchVersion);
}
public virtual HSteamUser /*(HSteamUser)*/ ISteamUser_GetHSteamUser()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetHSteamUser(_ptr);
}
public virtual bool /*bool*/ ISteamUser_BLoggedOn()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BLoggedOn(_ptr);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamUser_GetSteamID()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetSteamID(_ptr);
}
public virtual int /*int*/ ISteamUser_InitiateGameConnection( IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_InitiateGameConnection(_ptr, pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure);
}
public virtual void /*void*/ ISteamUser_TerminateGameConnection( uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_TerminateGameConnection(_ptr, unIPServer, usPortServer);
}
public virtual void /*void*/ ISteamUser_TrackAppUsageEvent( ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_TrackAppUsageEvent(_ptr, gameID, eAppUsageEvent, pchExtraInfo);
}
public virtual bool /*bool*/ ISteamUser_GetUserDataFolder( System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetUserDataFolder(_ptr, pchBuffer, cubBuffer);
}
public virtual void /*void*/ ISteamUser_StartVoiceRecording()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_StartVoiceRecording(_ptr);
}
public virtual void /*void*/ ISteamUser_StopVoiceRecording()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_StopVoiceRecording(_ptr);
}
public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetAvailableVoice( out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetAvailableVoice(_ptr, out pcbCompressed, out pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
}
public virtual VoiceResult /*EVoiceResult*/ ISteamUser_GetVoice( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetVoice(_ptr, bWantCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, out nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
}
public virtual VoiceResult /*EVoiceResult*/ ISteamUser_DecompressVoice( IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_DecompressVoice(_ptr, pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, out nBytesWritten, nDesiredSampleRate);
}
public virtual uint /*uint32*/ ISteamUser_GetVoiceOptimalSampleRate()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetVoiceOptimalSampleRate(_ptr);
}
public virtual HAuthTicket /*(HAuthTicket)*/ ISteamUser_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket);
}
public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamUser_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID);
}
public virtual void /*void*/ ISteamUser_EndAuthSession( ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_EndAuthSession(_ptr, steamID);
}
public virtual void /*void*/ ISteamUser_CancelAuthTicket( uint hAuthTicket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_CancelAuthTicket(_ptr, hAuthTicket);
}
public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamUser_UserHasLicenseForApp( ulong steamID, uint appID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_UserHasLicenseForApp(_ptr, steamID, appID);
}
public virtual bool /*bool*/ ISteamUser_BIsBehindNAT()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BIsBehindNAT(_ptr);
}
public virtual void /*void*/ ISteamUser_AdvertiseGame( ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
Native.SteamAPI_ISteamUser_AdvertiseGame(_ptr, steamIDGameServer, unIPServer, usPortServer);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestEncryptedAppTicket( IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_RequestEncryptedAppTicket(_ptr, pDataToInclude, cbDataToInclude);
}
public virtual bool /*bool*/ ISteamUser_GetEncryptedAppTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetEncryptedAppTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket);
}
public virtual int /*int*/ ISteamUser_GetGameBadgeLevel( int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetGameBadgeLevel(_ptr, nSeries, bFoil);
}
public virtual int /*int*/ ISteamUser_GetPlayerSteamLevel()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_GetPlayerSteamLevel(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUser_RequestStoreAuthURL( string /*const char **/ pchRedirectURL )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_RequestStoreAuthURL(_ptr, pchRedirectURL);
}
public virtual bool /*bool*/ ISteamUser_BIsPhoneVerified()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BIsPhoneVerified(_ptr);
}
public virtual bool /*bool*/ ISteamUser_BIsTwoFactorEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BIsTwoFactorEnabled(_ptr);
}
public virtual bool /*bool*/ ISteamUser_BIsPhoneIdentifying()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BIsPhoneIdentifying(_ptr);
}
public virtual bool /*bool*/ ISteamUser_BIsPhoneRequiringVerification()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUser _ptr is null!" );
return Native.SteamAPI_ISteamUser_BIsPhoneRequiringVerification(_ptr);
}
public virtual IntPtr ISteamFriends_GetPersonaName()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetPersonaName(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_SetPersonaName( string /*const char **/ pchPersonaName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_SetPersonaName(_ptr, pchPersonaName);
}
public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetPersonaState()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetPersonaState(_ptr);
}
public virtual int /*int*/ ISteamFriends_GetFriendCount( int /*int*/ iFriendFlags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendCount(_ptr, iFriendFlags);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendByIndex( int /*int*/ iFriend, int /*int*/ iFriendFlags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendByIndex(_ptr, iFriend, iFriendFlags);
}
public virtual FriendRelationship /*EFriendRelationship*/ ISteamFriends_GetFriendRelationship( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendRelationship(_ptr, steamIDFriend);
}
public virtual PersonaState /*EPersonaState*/ ISteamFriends_GetFriendPersonaState( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendPersonaState(_ptr, steamIDFriend);
}
public virtual IntPtr ISteamFriends_GetFriendPersonaName( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendPersonaName(_ptr, steamIDFriend);
}
public virtual bool /*bool*/ ISteamFriends_GetFriendGamePlayed( ulong steamIDFriend, ref FriendGameInfo_t /*struct FriendGameInfo_t **/ pFriendGameInfo )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
var pFriendGameInfo_ps = new FriendGameInfo_t.PackSmall();
var ret = Native.SteamAPI_ISteamFriends_GetFriendGamePlayed(_ptr, steamIDFriend, ref pFriendGameInfo_ps);
pFriendGameInfo = pFriendGameInfo_ps;
return ret;
}
public virtual IntPtr ISteamFriends_GetFriendPersonaNameHistory( ulong steamIDFriend, int /*int*/ iPersonaName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendPersonaNameHistory(_ptr, steamIDFriend, iPersonaName);
}
public virtual int /*int*/ ISteamFriends_GetFriendSteamLevel( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendSteamLevel(_ptr, steamIDFriend);
}
public virtual IntPtr ISteamFriends_GetPlayerNickname( ulong steamIDPlayer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetPlayerNickname(_ptr, steamIDPlayer);
}
public virtual int /*int*/ ISteamFriends_GetFriendsGroupCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendsGroupCount(_ptr);
}
public virtual FriendsGroupID_t /*(FriendsGroupID_t)*/ ISteamFriends_GetFriendsGroupIDByIndex( int /*int*/ iFG )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex(_ptr, iFG);
}
public virtual IntPtr ISteamFriends_GetFriendsGroupName( short friendsGroupID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendsGroupName(_ptr, friendsGroupID);
}
public virtual int /*int*/ ISteamFriends_GetFriendsGroupMembersCount( short friendsGroupID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersCount(_ptr, friendsGroupID);
}
public virtual void /*void*/ ISteamFriends_GetFriendsGroupMembersList( short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_GetFriendsGroupMembersList(_ptr, friendsGroupID, pOutSteamIDMembers, nMembersCount);
}
public virtual bool /*bool*/ ISteamFriends_HasFriend( ulong steamIDFriend, int /*int*/ iFriendFlags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_HasFriend(_ptr, steamIDFriend, iFriendFlags);
}
public virtual int /*int*/ ISteamFriends_GetClanCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanCount(_ptr);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanByIndex( int /*int*/ iClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanByIndex(_ptr, iClan);
}
public virtual IntPtr ISteamFriends_GetClanName( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanName(_ptr, steamIDClan);
}
public virtual IntPtr ISteamFriends_GetClanTag( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanTag(_ptr, steamIDClan);
}
public virtual bool /*bool*/ ISteamFriends_GetClanActivityCounts( ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanActivityCounts(_ptr, steamIDClan, out pnOnline, out pnInGame, out pnChatting);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_DownloadClanActivityCounts( IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_DownloadClanActivityCounts(_ptr, psteamIDClans, cClansToRequest);
}
public virtual int /*int*/ ISteamFriends_GetFriendCountFromSource( ulong steamIDSource )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendCountFromSource(_ptr, steamIDSource);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetFriendFromSourceByIndex( ulong steamIDSource, int /*int*/ iFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendFromSourceByIndex(_ptr, steamIDSource, iFriend);
}
public virtual bool /*bool*/ ISteamFriends_IsUserInSource( ulong steamIDUser, ulong steamIDSource )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_IsUserInSource(_ptr, steamIDUser, steamIDSource);
}
public virtual void /*void*/ ISteamFriends_SetInGameVoiceSpeaking( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_SetInGameVoiceSpeaking(_ptr, steamIDUser, bSpeaking);
}
public virtual void /*void*/ ISteamFriends_ActivateGameOverlay( string /*const char **/ pchDialog )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_ActivateGameOverlay(_ptr, pchDialog);
}
public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToUser( string /*const char **/ pchDialog, ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_ActivateGameOverlayToUser(_ptr, pchDialog, steamID);
}
public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToWebPage( string /*const char **/ pchURL )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(_ptr, pchURL);
}
public virtual void /*void*/ ISteamFriends_ActivateGameOverlayToStore( uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_ActivateGameOverlayToStore(_ptr, nAppID, eFlag);
}
public virtual void /*void*/ ISteamFriends_SetPlayedWith( ulong steamIDUserPlayedWith )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_SetPlayedWith(_ptr, steamIDUserPlayedWith);
}
public virtual void /*void*/ ISteamFriends_ActivateGameOverlayInviteDialog( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog(_ptr, steamIDLobby);
}
public virtual int /*int*/ ISteamFriends_GetSmallFriendAvatar( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetSmallFriendAvatar(_ptr, steamIDFriend);
}
public virtual int /*int*/ ISteamFriends_GetMediumFriendAvatar( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetMediumFriendAvatar(_ptr, steamIDFriend);
}
public virtual int /*int*/ ISteamFriends_GetLargeFriendAvatar( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetLargeFriendAvatar(_ptr, steamIDFriend);
}
public virtual bool /*bool*/ ISteamFriends_RequestUserInformation( ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_RequestUserInformation(_ptr, steamIDUser, bRequireNameOnly);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_RequestClanOfficerList( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_RequestClanOfficerList(_ptr, steamIDClan);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOwner( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanOwner(_ptr, steamIDClan);
}
public virtual int /*int*/ ISteamFriends_GetClanOfficerCount( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanOfficerCount(_ptr, steamIDClan);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetClanOfficerByIndex( ulong steamIDClan, int /*int*/ iOfficer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanOfficerByIndex(_ptr, steamIDClan, iOfficer);
}
public virtual uint /*uint32*/ ISteamFriends_GetUserRestrictions()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetUserRestrictions(_ptr);
}
public virtual bool /*bool*/ ISteamFriends_SetRichPresence( string /*const char **/ pchKey, string /*const char **/ pchValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_SetRichPresence(_ptr, pchKey, pchValue);
}
public virtual void /*void*/ ISteamFriends_ClearRichPresence()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_ClearRichPresence(_ptr);
}
public virtual IntPtr ISteamFriends_GetFriendRichPresence( ulong steamIDFriend, string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendRichPresence(_ptr, steamIDFriend, pchKey);
}
public virtual int /*int*/ ISteamFriends_GetFriendRichPresenceKeyCount( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount(_ptr, steamIDFriend);
}
public virtual IntPtr ISteamFriends_GetFriendRichPresenceKeyByIndex( ulong steamIDFriend, int /*int*/ iKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex(_ptr, steamIDFriend, iKey);
}
public virtual void /*void*/ ISteamFriends_RequestFriendRichPresence( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
Native.SteamAPI_ISteamFriends_RequestFriendRichPresence(_ptr, steamIDFriend);
}
public virtual bool /*bool*/ ISteamFriends_InviteUserToGame( ulong steamIDFriend, string /*const char **/ pchConnectString )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_InviteUserToGame(_ptr, steamIDFriend, pchConnectString);
}
public virtual int /*int*/ ISteamFriends_GetCoplayFriendCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetCoplayFriendCount(_ptr);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetCoplayFriend( int /*int*/ iCoplayFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetCoplayFriend(_ptr, iCoplayFriend);
}
public virtual int /*int*/ ISteamFriends_GetFriendCoplayTime( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendCoplayTime(_ptr, steamIDFriend);
}
public virtual AppId_t /*(AppId_t)*/ ISteamFriends_GetFriendCoplayGame( ulong steamIDFriend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendCoplayGame(_ptr, steamIDFriend);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_JoinClanChatRoom( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_JoinClanChatRoom(_ptr, steamIDClan);
}
public virtual bool /*bool*/ ISteamFriends_LeaveClanChatRoom( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_LeaveClanChatRoom(_ptr, steamIDClan);
}
public virtual int /*int*/ ISteamFriends_GetClanChatMemberCount( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanChatMemberCount(_ptr, steamIDClan);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamFriends_GetChatMemberByIndex( ulong steamIDClan, int /*int*/ iUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetChatMemberByIndex(_ptr, steamIDClan, iUser);
}
public virtual bool /*bool*/ ISteamFriends_SendClanChatMessage( ulong steamIDClanChat, string /*const char **/ pchText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_SendClanChatMessage(_ptr, steamIDClanChat, pchText);
}
public virtual int /*int*/ ISteamFriends_GetClanChatMessage( ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetClanChatMessage(_ptr, steamIDClanChat, iMessage, prgchText, cchTextMax, out peChatEntryType, out psteamidChatter);
}
public virtual bool /*bool*/ ISteamFriends_IsClanChatAdmin( ulong steamIDClanChat, ulong steamIDUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_IsClanChatAdmin(_ptr, steamIDClanChat, steamIDUser);
}
public virtual bool /*bool*/ ISteamFriends_IsClanChatWindowOpenInSteam( ulong steamIDClanChat )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam(_ptr, steamIDClanChat);
}
public virtual bool /*bool*/ ISteamFriends_OpenClanChatWindowInSteam( ulong steamIDClanChat )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_OpenClanChatWindowInSteam(_ptr, steamIDClanChat);
}
public virtual bool /*bool*/ ISteamFriends_CloseClanChatWindowInSteam( ulong steamIDClanChat )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_CloseClanChatWindowInSteam(_ptr, steamIDClanChat);
}
public virtual bool /*bool*/ ISteamFriends_SetListenForFriendsMessages( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_SetListenForFriendsMessages(_ptr, bInterceptEnabled);
}
public virtual bool /*bool*/ ISteamFriends_ReplyToFriendMessage( ulong steamIDFriend, string /*const char **/ pchMsgToSend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_ReplyToFriendMessage(_ptr, steamIDFriend, pchMsgToSend);
}
public virtual int /*int*/ ISteamFriends_GetFriendMessage( ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFriendMessage(_ptr, steamIDFriend, iMessageID, pvData, cubData, out peChatEntryType);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_GetFollowerCount( ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_GetFollowerCount(_ptr, steamID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_IsFollowing( ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_IsFollowing(_ptr, steamID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamFriends_EnumerateFollowingList( uint /*uint32*/ unStartIndex )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamFriends _ptr is null!" );
return Native.SteamAPI_ISteamFriends_EnumerateFollowingList(_ptr, unStartIndex);
}
public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceAppActive()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetSecondsSinceAppActive(_ptr);
}
public virtual uint /*uint32*/ ISteamUtils_GetSecondsSinceComputerActive()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(_ptr);
}
public virtual Universe /*EUniverse*/ ISteamUtils_GetConnectedUniverse()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetConnectedUniverse(_ptr);
}
public virtual uint /*uint32*/ ISteamUtils_GetServerRealTime()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetServerRealTime(_ptr);
}
public virtual IntPtr ISteamUtils_GetIPCountry()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetIPCountry(_ptr);
}
public virtual bool /*bool*/ ISteamUtils_GetImageSize( int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetImageSize(_ptr, iImage, out pnWidth, out pnHeight);
}
public virtual bool /*bool*/ ISteamUtils_GetImageRGBA( int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetImageRGBA(_ptr, iImage, pubDest, nDestBufferSize);
}
public virtual bool /*bool*/ ISteamUtils_GetCSERIPPort( out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetCSERIPPort(_ptr, out unIP, out usPort);
}
public virtual byte /*uint8*/ ISteamUtils_GetCurrentBatteryPower()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetCurrentBatteryPower(_ptr);
}
public virtual uint /*uint32*/ ISteamUtils_GetAppID()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetAppID(_ptr);
}
public virtual void /*void*/ ISteamUtils_SetOverlayNotificationPosition( NotificationPosition /*ENotificationPosition*/ eNotificationPosition )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
Native.SteamAPI_ISteamUtils_SetOverlayNotificationPosition(_ptr, eNotificationPosition);
}
public virtual bool /*bool*/ ISteamUtils_IsAPICallCompleted( ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_IsAPICallCompleted(_ptr, hSteamAPICall, ref pbFailed);
}
public virtual SteamAPICallFailure /*ESteamAPICallFailure*/ ISteamUtils_GetAPICallFailureReason( ulong hSteamAPICall )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetAPICallFailureReason(_ptr, hSteamAPICall);
}
public virtual bool /*bool*/ ISteamUtils_GetAPICallResult( ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetAPICallResult(_ptr, hSteamAPICall, pCallback, cubCallback, iCallbackExpected, ref pbFailed);
}
public virtual uint /*uint32*/ ISteamUtils_GetIPCCallCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetIPCCallCount(_ptr);
}
public virtual void /*void*/ ISteamUtils_SetWarningMessageHook( IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
Native.SteamAPI_ISteamUtils_SetWarningMessageHook(_ptr, pFunction);
}
public virtual bool /*bool*/ ISteamUtils_IsOverlayEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_IsOverlayEnabled(_ptr);
}
public virtual bool /*bool*/ ISteamUtils_BOverlayNeedsPresent()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_BOverlayNeedsPresent(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUtils_CheckFileSignature( string /*const char **/ szFileName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_CheckFileSignature(_ptr, szFileName);
}
public virtual bool /*bool*/ ISteamUtils_ShowGamepadTextInput( GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_ShowGamepadTextInput(_ptr, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText);
}
public virtual uint /*uint32*/ ISteamUtils_GetEnteredGamepadTextLength()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextLength(_ptr);
}
public virtual bool /*bool*/ ISteamUtils_GetEnteredGamepadTextInput( System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetEnteredGamepadTextInput(_ptr, pchText, cchText);
}
public virtual IntPtr ISteamUtils_GetSteamUILanguage()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_GetSteamUILanguage(_ptr);
}
public virtual bool /*bool*/ ISteamUtils_IsSteamRunningInVR()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_IsSteamRunningInVR(_ptr);
}
public virtual void /*void*/ ISteamUtils_SetOverlayNotificationInset( int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
Native.SteamAPI_ISteamUtils_SetOverlayNotificationInset(_ptr, nHorizontalInset, nVerticalInset);
}
public virtual bool /*bool*/ ISteamUtils_IsSteamInBigPictureMode()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_IsSteamInBigPictureMode(_ptr);
}
public virtual void /*void*/ ISteamUtils_StartVRDashboard()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
Native.SteamAPI_ISteamUtils_StartVRDashboard(_ptr);
}
public virtual bool /*bool*/ ISteamUtils_IsVRHeadsetStreamingEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
return Native.SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled(_ptr);
}
public virtual void /*void*/ ISteamUtils_SetVRHeadsetStreamingEnabled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUtils _ptr is null!" );
Native.SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled(_ptr, bEnabled);
}
public virtual int /*int*/ ISteamMatchmaking_GetFavoriteGameCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGameCount(_ptr);
}
public virtual bool /*bool*/ ISteamMatchmaking_GetFavoriteGame( int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetFavoriteGame(_ptr, iGame, ref pnAppID, out pnIP, out pnConnPort, out pnQueryPort, out punFlags, out pRTime32LastPlayedOnServer);
}
public virtual int /*int*/ ISteamMatchmaking_AddFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_AddFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer);
}
public virtual bool /*bool*/ ISteamMatchmaking_RemoveFavoriteGame( uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_RemoveFavoriteGame(_ptr, nAppID, nIP, nConnPort, nQueryPort, unFlags);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_RequestLobbyList()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_RequestLobbyList(_ptr);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListStringFilter( string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter(_ptr, pchKeyToMatch, pchValueToMatch, eComparisonType);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNumericalFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter(_ptr, pchKeyToMatch, nValueToMatch, eComparisonType);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListNearValueFilter( string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter(_ptr, pchKeyToMatch, nValueToBeCloseTo);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( int /*int*/ nSlotsAvailable )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(_ptr, nSlotsAvailable);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListDistanceFilter( LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter(_ptr, eLobbyDistanceFilter);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListResultCountFilter( int /*int*/ cMaxResults )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter(_ptr, cMaxResults);
}
public virtual void /*void*/ ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(_ptr, steamIDLobby);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyByIndex( int /*int*/ iLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyByIndex(_ptr, iLobby);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_CreateLobby( LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_CreateLobby(_ptr, eLobbyType, cMaxMembers);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamMatchmaking_JoinLobby( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_JoinLobby(_ptr, steamIDLobby);
}
public virtual void /*void*/ ISteamMatchmaking_LeaveLobby( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_LeaveLobby(_ptr, steamIDLobby);
}
public virtual bool /*bool*/ ISteamMatchmaking_InviteUserToLobby( ulong steamIDLobby, ulong steamIDInvitee )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_InviteUserToLobby(_ptr, steamIDLobby, steamIDInvitee);
}
public virtual int /*int*/ ISteamMatchmaking_GetNumLobbyMembers( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetNumLobbyMembers(_ptr, steamIDLobby);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyMemberByIndex( ulong steamIDLobby, int /*int*/ iMember )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex(_ptr, steamIDLobby, iMember);
}
public virtual IntPtr ISteamMatchmaking_GetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyData(_ptr, steamIDLobby, pchKey);
}
public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SetLobbyData(_ptr, steamIDLobby, pchKey, pchValue);
}
public virtual int /*int*/ ISteamMatchmaking_GetLobbyDataCount( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataCount(_ptr, steamIDLobby);
}
public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyDataByIndex( ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex(_ptr, steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize);
}
public virtual bool /*bool*/ ISteamMatchmaking_DeleteLobbyData( ulong steamIDLobby, string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_DeleteLobbyData(_ptr, steamIDLobby, pchKey);
}
public virtual IntPtr ISteamMatchmaking_GetLobbyMemberData( ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberData(_ptr, steamIDLobby, steamIDUser, pchKey);
}
public virtual void /*void*/ ISteamMatchmaking_SetLobbyMemberData( ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberData(_ptr, steamIDLobby, pchKey, pchValue);
}
public virtual bool /*bool*/ ISteamMatchmaking_SendLobbyChatMsg( ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SendLobbyChatMsg(_ptr, steamIDLobby, pvMsgBody, cubMsgBody);
}
public virtual int /*int*/ ISteamMatchmaking_GetLobbyChatEntry( ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyChatEntry(_ptr, steamIDLobby, iChatID, out pSteamIDUser, pvData, cubData, out peChatEntryType);
}
public virtual bool /*bool*/ ISteamMatchmaking_RequestLobbyData( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_RequestLobbyData(_ptr, steamIDLobby);
}
public virtual void /*void*/ ISteamMatchmaking_SetLobbyGameServer( ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
Native.SteamAPI_ISteamMatchmaking_SetLobbyGameServer(_ptr, steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer);
}
public virtual bool /*bool*/ ISteamMatchmaking_GetLobbyGameServer( ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyGameServer(_ptr, steamIDLobby, out punGameServerIP, out punGameServerPort, out psteamIDGameServer);
}
public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyMemberLimit( ulong steamIDLobby, int /*int*/ cMaxMembers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit(_ptr, steamIDLobby, cMaxMembers);
}
public virtual int /*int*/ ISteamMatchmaking_GetLobbyMemberLimit( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit(_ptr, steamIDLobby);
}
public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyType( ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SetLobbyType(_ptr, steamIDLobby, eLobbyType);
}
public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyJoinable( ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SetLobbyJoinable(_ptr, steamIDLobby, bLobbyJoinable);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamMatchmaking_GetLobbyOwner( ulong steamIDLobby )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_GetLobbyOwner(_ptr, steamIDLobby);
}
public virtual bool /*bool*/ ISteamMatchmaking_SetLobbyOwner( ulong steamIDLobby, ulong steamIDNewOwner )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SetLobbyOwner(_ptr, steamIDLobby, steamIDNewOwner);
}
public virtual bool /*bool*/ ISteamMatchmaking_SetLinkedLobby( ulong steamIDLobby, ulong steamIDLobbyDependent )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmaking _ptr is null!" );
return Native.SteamAPI_ISteamMatchmaking_SetLinkedLobby(_ptr, steamIDLobby, steamIDLobbyDependent);
}
public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestInternetServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_RequestInternetServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse);
}
public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestLANServerList( uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_RequestLANServerList(_ptr, iApp, pRequestServersResponse);
}
public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFriendsServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse);
}
public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestFavoritesServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse);
}
public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestHistoryServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse);
}
public virtual HServerListRequest /*(HServerListRequest)*/ ISteamMatchmakingServers_RequestSpectatorServerList( uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList(_ptr, iApp, ppchFilters, nFilters, pRequestServersResponse);
}
public virtual void /*void*/ ISteamMatchmakingServers_ReleaseRequest( IntPtr hServerListRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
Native.SteamAPI_ISteamMatchmakingServers_ReleaseRequest(_ptr, hServerListRequest);
}
public virtual IntPtr /*class gameserveritem_t **/ ISteamMatchmakingServers_GetServerDetails( IntPtr hRequest, int /*int*/ iServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_GetServerDetails(_ptr, hRequest, iServer);
}
public virtual void /*void*/ ISteamMatchmakingServers_CancelQuery( IntPtr hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
Native.SteamAPI_ISteamMatchmakingServers_CancelQuery(_ptr, hRequest);
}
public virtual void /*void*/ ISteamMatchmakingServers_RefreshQuery( IntPtr hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
Native.SteamAPI_ISteamMatchmakingServers_RefreshQuery(_ptr, hRequest);
}
public virtual bool /*bool*/ ISteamMatchmakingServers_IsRefreshing( IntPtr hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_IsRefreshing(_ptr, hRequest);
}
public virtual int /*int*/ ISteamMatchmakingServers_GetServerCount( IntPtr hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_GetServerCount(_ptr, hRequest);
}
public virtual void /*void*/ ISteamMatchmakingServers_RefreshServer( IntPtr hRequest, int /*int*/ iServer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
Native.SteamAPI_ISteamMatchmakingServers_RefreshServer(_ptr, hRequest, iServer);
}
public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PingServer( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_PingServer(_ptr, unIP, usPort, pRequestServersResponse);
}
public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_PlayerDetails( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_PlayerDetails(_ptr, unIP, usPort, pRequestServersResponse);
}
public virtual HServerQuery /*(HServerQuery)*/ ISteamMatchmakingServers_ServerRules( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
return Native.SteamAPI_ISteamMatchmakingServers_ServerRules(_ptr, unIP, usPort, pRequestServersResponse);
}
public virtual void /*void*/ ISteamMatchmakingServers_CancelServerQuery( int hServerQuery )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMatchmakingServers _ptr is null!" );
Native.SteamAPI_ISteamMatchmakingServers_CancelServerQuery(_ptr, hServerQuery);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileWrite( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileWrite(_ptr, pchFile, pvData, cubData);
}
public virtual int /*int32*/ ISteamRemoteStorage_FileRead( string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileRead(_ptr, pchFile, pvData, cubDataToRead);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileWriteAsync( string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileWriteAsync(_ptr, pchFile, pvData, cubData);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileReadAsync( string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileReadAsync(_ptr, pchFile, nOffset, cubToRead);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileReadAsyncComplete( ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete(_ptr, hReadCall, pvBuffer, cubToRead);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileForget( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileForget(_ptr, pchFile);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileDelete( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileDelete(_ptr, pchFile);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_FileShare( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileShare(_ptr, pchFile);
}
public virtual bool /*bool*/ ISteamRemoteStorage_SetSyncPlatforms( string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_SetSyncPlatforms(_ptr, pchFile, eRemoteStoragePlatform);
}
public virtual UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ ISteamRemoteStorage_FileWriteStreamOpen( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen(_ptr, pchFile);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamWriteChunk( ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk(_ptr, writeHandle, pvData, cubData);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamClose( ulong writeHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamClose(_ptr, writeHandle);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileWriteStreamCancel( ulong writeHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel(_ptr, writeHandle);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FileExists( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FileExists(_ptr, pchFile);
}
public virtual bool /*bool*/ ISteamRemoteStorage_FilePersisted( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_FilePersisted(_ptr, pchFile);
}
public virtual int /*int32*/ ISteamRemoteStorage_GetFileSize( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetFileSize(_ptr, pchFile);
}
public virtual long /*int64*/ ISteamRemoteStorage_GetFileTimestamp( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetFileTimestamp(_ptr, pchFile);
}
public virtual RemoteStoragePlatform /*ERemoteStoragePlatform*/ ISteamRemoteStorage_GetSyncPlatforms( string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetSyncPlatforms(_ptr, pchFile);
}
public virtual int /*int32*/ ISteamRemoteStorage_GetFileCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetFileCount(_ptr);
}
public virtual IntPtr ISteamRemoteStorage_GetFileNameAndSize( int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetFileNameAndSize(_ptr, iFile, out pnFileSizeInBytes);
}
public virtual bool /*bool*/ ISteamRemoteStorage_GetQuota( out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetQuota(_ptr, out pnTotalBytes, out puAvailableBytes);
}
public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForAccount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount(_ptr);
}
public virtual bool /*bool*/ ISteamRemoteStorage_IsCloudEnabledForApp()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp(_ptr);
}
public virtual void /*void*/ ISteamRemoteStorage_SetCloudEnabledForApp( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
Native.SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp(_ptr, bEnabled);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownload( ulong hContent, uint /*uint32*/ unPriority )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UGCDownload(_ptr, hContent, unPriority);
}
public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDownloadProgress( ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress(_ptr, hContent, out pnBytesDownloaded, out pnBytesExpected);
}
public virtual bool /*bool*/ ISteamRemoteStorage_GetUGCDetails( ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetUGCDetails(_ptr, hContent, ref pnAppID, ppchName, out pnFileSizeInBytes, out pSteamIDOwner);
}
public virtual int /*int32*/ ISteamRemoteStorage_UGCRead( ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UGCRead(_ptr, hContent, pvData, cubDataToRead, cOffset, eAction);
}
public virtual int /*int32*/ ISteamRemoteStorage_GetCachedUGCCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCCount(_ptr);
}
public virtual UGCHandle_t /*(UGCHandle_t)*/ ISteamRemoteStorage_GetCachedUGCHandle( int /*int32*/ iCachedContent )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle(_ptr, iCachedContent);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishWorkshopFile( string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
var pTags_ps = new SteamParamStringArray_t.PackSmall();
var ret = Native.SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(_ptr, pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps, eWorkshopFileType);
pTags = pTags_ps;
return ret;
}
public virtual PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ulong unPublishedFileId )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest(_ptr, unPublishedFileId);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileFile( ulong updateHandle, string /*const char **/ pchFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile(_ptr, updateHandle, pchFile);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ulong updateHandle, string /*const char **/ pchPreviewFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile(_ptr, updateHandle, pchPreviewFile);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTitle( ulong updateHandle, string /*const char **/ pchTitle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle(_ptr, updateHandle, pchTitle);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileDescription( ulong updateHandle, string /*const char **/ pchDescription )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription(_ptr, updateHandle, pchDescription);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileVisibility( ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility(_ptr, updateHandle, eVisibility);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileTags( ulong updateHandle, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
var pTags_ps = new SteamParamStringArray_t.PackSmall();
var ret = Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags(_ptr, updateHandle, ref pTags_ps);
pTags = pTags_ps;
return ret;
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_CommitPublishedFileUpdate( ulong updateHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(_ptr, updateHandle);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedFileDetails( ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(_ptr, unPublishedFileId, unMaxSecondsOld);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_DeletePublishedFile( ulong unPublishedFileId )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_DeletePublishedFile(_ptr, unPublishedFileId);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserPublishedFiles( uint /*uint32*/ unStartIndex )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(_ptr, unStartIndex);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SubscribePublishedFile( ulong unPublishedFileId )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(_ptr, unPublishedFileId);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSubscribedFiles( uint /*uint32*/ unStartIndex )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(_ptr, unStartIndex);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UnsubscribePublishedFile( ulong unPublishedFileId )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(_ptr, unPublishedFileId);
}
public virtual bool /*bool*/ ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ulong updateHandle, string /*const char **/ pchChangeDescription )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription(_ptr, updateHandle, pchChangeDescription);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetPublishedItemVoteDetails( ulong unPublishedFileId )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(_ptr, unPublishedFileId);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UpdateUserPublishedItemVote( ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(_ptr, unPublishedFileId, bVoteUp);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ulong unPublishedFileId )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(_ptr, unPublishedFileId);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pExcludedTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
var pRequiredTags_ps = new SteamParamStringArray_t.PackSmall();
var pExcludedTags_ps = new SteamParamStringArray_t.PackSmall();
var ret = Native.SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles(_ptr, steamId, unStartIndex, ref pRequiredTags_ps, ref pExcludedTags_ps);
pRequiredTags = pRequiredTags_ps;
pExcludedTags = pExcludedTags_ps;
return ret;
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_PublishVideo( WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
var pTags_ps = new SteamParamStringArray_t.PackSmall();
var ret = Native.SteamAPI_ISteamRemoteStorage_PublishVideo(_ptr, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, ref pTags_ps);
pTags = pTags_ps;
return ret;
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_SetUserPublishedFileAction( ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(_ptr, unPublishedFileId, eAction);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(_ptr, eAction, unStartIndex);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t /*struct SteamParamStringArray_t **/ pUserTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
var pTags_ps = new SteamParamStringArray_t.PackSmall();
var pUserTags_ps = new SteamParamStringArray_t.PackSmall();
var ret = Native.SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles(_ptr, eEnumerationType, unStartIndex, unCount, unDays, ref pTags_ps, ref pUserTags_ps);
pTags = pTags_ps;
pUserTags = pUserTags_ps;
return ret;
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamRemoteStorage_UGCDownloadToLocation( ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamRemoteStorage _ptr is null!" );
return Native.SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(_ptr, hContent, pchLocation, unPriority);
}
public virtual bool /*bool*/ ISteamUserStats_RequestCurrentStats()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_RequestCurrentStats(_ptr);
}
public virtual bool /*bool*/ ISteamUserStats_GetStat( string /*const char **/ pchName, out int /*int32 **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetStat(_ptr, pchName, out pData);
}
public virtual bool /*bool*/ ISteamUserStats_GetStat0( string /*const char **/ pchName, out float /*float **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetStat0(_ptr, pchName, out pData);
}
public virtual bool /*bool*/ ISteamUserStats_SetStat( string /*const char **/ pchName, int /*int32*/ nData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_SetStat(_ptr, pchName, nData);
}
public virtual bool /*bool*/ ISteamUserStats_SetStat0( string /*const char **/ pchName, float /*float*/ fData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_SetStat0(_ptr, pchName, fData);
}
public virtual bool /*bool*/ ISteamUserStats_UpdateAvgRateStat( string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_UpdateAvgRateStat(_ptr, pchName, flCountThisSession, dSessionLength);
}
public virtual bool /*bool*/ ISteamUserStats_GetAchievement( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetAchievement(_ptr, pchName, ref pbAchieved);
}
public virtual bool /*bool*/ ISteamUserStats_SetAchievement( string /*const char **/ pchName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_SetAchievement(_ptr, pchName);
}
public virtual bool /*bool*/ ISteamUserStats_ClearAchievement( string /*const char **/ pchName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_ClearAchievement(_ptr, pchName);
}
public virtual bool /*bool*/ ISteamUserStats_GetAchievementAndUnlockTime( string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime(_ptr, pchName, ref pbAchieved, out punUnlockTime);
}
public virtual bool /*bool*/ ISteamUserStats_StoreStats()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_StoreStats(_ptr);
}
public virtual int /*int*/ ISteamUserStats_GetAchievementIcon( string /*const char **/ pchName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetAchievementIcon(_ptr, pchName);
}
public virtual IntPtr ISteamUserStats_GetAchievementDisplayAttribute( string /*const char **/ pchName, string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(_ptr, pchName, pchKey);
}
public virtual bool /*bool*/ ISteamUserStats_IndicateAchievementProgress( string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_IndicateAchievementProgress(_ptr, pchName, nCurProgress, nMaxProgress);
}
public virtual uint /*uint32*/ ISteamUserStats_GetNumAchievements()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetNumAchievements(_ptr);
}
public virtual IntPtr ISteamUserStats_GetAchievementName( uint /*uint32*/ iAchievement )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetAchievementName(_ptr, iAchievement);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestUserStats( ulong steamIDUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_RequestUserStats(_ptr, steamIDUser);
}
public virtual bool /*bool*/ ISteamUserStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetUserStat(_ptr, steamIDUser, pchName, out pData);
}
public virtual bool /*bool*/ ISteamUserStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData);
}
public virtual bool /*bool*/ ISteamUserStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved);
}
public virtual bool /*bool*/ ISteamUserStats_GetUserAchievementAndUnlockTime( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime(_ptr, steamIDUser, pchName, ref pbAchieved, out punUnlockTime);
}
public virtual bool /*bool*/ ISteamUserStats_ResetAllStats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_ResetAllStats(_ptr, bAchievementsToo);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindOrCreateLeaderboard( string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(_ptr, pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_FindLeaderboard( string /*const char **/ pchLeaderboardName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_FindLeaderboard(_ptr, pchLeaderboardName);
}
public virtual IntPtr ISteamUserStats_GetLeaderboardName( ulong hSteamLeaderboard )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetLeaderboardName(_ptr, hSteamLeaderboard);
}
public virtual int /*int*/ ISteamUserStats_GetLeaderboardEntryCount( ulong hSteamLeaderboard )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetLeaderboardEntryCount(_ptr, hSteamLeaderboard);
}
public virtual LeaderboardSortMethod /*ELeaderboardSortMethod*/ ISteamUserStats_GetLeaderboardSortMethod( ulong hSteamLeaderboard )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetLeaderboardSortMethod(_ptr, hSteamLeaderboard);
}
public virtual LeaderboardDisplayType /*ELeaderboardDisplayType*/ ISteamUserStats_GetLeaderboardDisplayType( ulong hSteamLeaderboard )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetLeaderboardDisplayType(_ptr, hSteamLeaderboard);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntries( ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(_ptr, hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_DownloadLeaderboardEntriesForUsers( ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(_ptr, hSteamLeaderboard, prgUsers, cUsers);
}
public virtual bool /*bool*/ ISteamUserStats_GetDownloadedLeaderboardEntry( ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
var pLeaderboardEntry_ps = new LeaderboardEntry_t.PackSmall();
var ret = Native.SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry(_ptr, hSteamLeaderboardEntries, index, ref pLeaderboardEntry_ps, pDetails, cDetailsMax);
pLeaderboardEntry = pLeaderboardEntry_ps;
return ret;
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_UploadLeaderboardScore( ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_UploadLeaderboardScore(_ptr, hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_AttachLeaderboardUGC( ulong hSteamLeaderboard, ulong hUGC )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_AttachLeaderboardUGC(_ptr, hSteamLeaderboard, hUGC);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_GetNumberOfCurrentPlayers()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalAchievementPercentages()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(_ptr);
}
public virtual int /*int*/ ISteamUserStats_GetMostAchievedAchievementInfo( System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo(_ptr, pchName, unNameBufLen, out pflPercent, ref pbAchieved);
}
public virtual int /*int*/ ISteamUserStats_GetNextMostAchievedAchievementInfo( int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo(_ptr, iIteratorPrevious, pchName, unNameBufLen, out pflPercent, ref pbAchieved);
}
public virtual bool /*bool*/ ISteamUserStats_GetAchievementAchievedPercent( string /*const char **/ pchName, out float /*float **/ pflPercent )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetAchievementAchievedPercent(_ptr, pchName, out pflPercent);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUserStats_RequestGlobalStats( int /*int*/ nHistoryDays )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_RequestGlobalStats(_ptr, nHistoryDays);
}
public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat( string /*const char **/ pchStatName, out long /*int64 **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetGlobalStat(_ptr, pchStatName, out pData);
}
public virtual bool /*bool*/ ISteamUserStats_GetGlobalStat0( string /*const char **/ pchStatName, out double /*double **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetGlobalStat0(_ptr, pchStatName, out pData);
}
public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory( string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory(_ptr, pchStatName, out pData, cubData);
}
public virtual int /*int32*/ ISteamUserStats_GetGlobalStatHistory0( string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUserStats _ptr is null!" );
return Native.SteamAPI_ISteamUserStats_GetGlobalStatHistory0(_ptr, pchStatName, out pData, cubData);
}
public virtual bool /*bool*/ ISteamApps_BIsSubscribed()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsSubscribed(_ptr);
}
public virtual bool /*bool*/ ISteamApps_BIsLowViolence()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsLowViolence(_ptr);
}
public virtual bool /*bool*/ ISteamApps_BIsCybercafe()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsCybercafe(_ptr);
}
public virtual bool /*bool*/ ISteamApps_BIsVACBanned()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsVACBanned(_ptr);
}
public virtual IntPtr ISteamApps_GetCurrentGameLanguage()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetCurrentGameLanguage(_ptr);
}
public virtual IntPtr ISteamApps_GetAvailableGameLanguages()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetAvailableGameLanguages(_ptr);
}
public virtual bool /*bool*/ ISteamApps_BIsSubscribedApp( uint appID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsSubscribedApp(_ptr, appID);
}
public virtual bool /*bool*/ ISteamApps_BIsDlcInstalled( uint appID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsDlcInstalled(_ptr, appID);
}
public virtual uint /*uint32*/ ISteamApps_GetEarliestPurchaseUnixTime( uint nAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime(_ptr, nAppID);
}
public virtual bool /*bool*/ ISteamApps_BIsSubscribedFromFreeWeekend()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend(_ptr);
}
public virtual int /*int*/ ISteamApps_GetDLCCount()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetDLCCount(_ptr);
}
public virtual bool /*bool*/ ISteamApps_BGetDLCDataByIndex( int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BGetDLCDataByIndex(_ptr, iDLC, ref pAppID, ref pbAvailable, pchName, cchNameBufferSize);
}
public virtual void /*void*/ ISteamApps_InstallDLC( uint nAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
Native.SteamAPI_ISteamApps_InstallDLC(_ptr, nAppID);
}
public virtual void /*void*/ ISteamApps_UninstallDLC( uint nAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
Native.SteamAPI_ISteamApps_UninstallDLC(_ptr, nAppID);
}
public virtual void /*void*/ ISteamApps_RequestAppProofOfPurchaseKey( uint nAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
Native.SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey(_ptr, nAppID);
}
public virtual bool /*bool*/ ISteamApps_GetCurrentBetaName( System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetCurrentBetaName(_ptr, pchName, cchNameBufferSize);
}
public virtual bool /*bool*/ ISteamApps_MarkContentCorrupt( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_MarkContentCorrupt(_ptr, bMissingFilesOnly);
}
public virtual uint /*uint32*/ ISteamApps_GetInstalledDepots( uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetInstalledDepots(_ptr, appID, pvecDepots, cMaxDepots);
}
public virtual uint /*uint32*/ ISteamApps_GetAppInstallDir( uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetAppInstallDir(_ptr, appID, pchFolder, cchFolderBufferSize);
}
public virtual bool /*bool*/ ISteamApps_BIsAppInstalled( uint appID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_BIsAppInstalled(_ptr, appID);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamApps_GetAppOwner()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetAppOwner(_ptr);
}
public virtual IntPtr ISteamApps_GetLaunchQueryParam( string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetLaunchQueryParam(_ptr, pchKey);
}
public virtual bool /*bool*/ ISteamApps_GetDlcDownloadProgress( uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetDlcDownloadProgress(_ptr, nAppID, out punBytesDownloaded, out punBytesTotal);
}
public virtual int /*int*/ ISteamApps_GetAppBuildId()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetAppBuildId(_ptr);
}
public virtual void /*void*/ ISteamApps_RequestAllProofOfPurchaseKeys()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
Native.SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamApps_GetFileDetails( string /*const char **/ pszFileName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamApps _ptr is null!" );
return Native.SteamAPI_ISteamApps_GetFileDetails(_ptr, pszFileName);
}
public virtual bool /*bool*/ ISteamNetworking_SendP2PPacket( ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_SendP2PPacket(_ptr, steamIDRemote, pubData, cubData, eP2PSendType, nChannel);
}
public virtual bool /*bool*/ ISteamNetworking_IsP2PPacketAvailable( out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_IsP2PPacketAvailable(_ptr, out pcubMsgSize, nChannel);
}
public virtual bool /*bool*/ ISteamNetworking_ReadP2PPacket( IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_ReadP2PPacket(_ptr, pubDest, cubDest, out pcubMsgSize, out psteamIDRemote, nChannel);
}
public virtual bool /*bool*/ ISteamNetworking_AcceptP2PSessionWithUser( ulong steamIDRemote )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser(_ptr, steamIDRemote);
}
public virtual bool /*bool*/ ISteamNetworking_CloseP2PSessionWithUser( ulong steamIDRemote )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_CloseP2PSessionWithUser(_ptr, steamIDRemote);
}
public virtual bool /*bool*/ ISteamNetworking_CloseP2PChannelWithUser( ulong steamIDRemote, int /*int*/ nChannel )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_CloseP2PChannelWithUser(_ptr, steamIDRemote, nChannel);
}
public virtual bool /*bool*/ ISteamNetworking_GetP2PSessionState( ulong steamIDRemote, ref P2PSessionState_t /*struct P2PSessionState_t **/ pConnectionState )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
var pConnectionState_ps = new P2PSessionState_t.PackSmall();
var ret = Native.SteamAPI_ISteamNetworking_GetP2PSessionState(_ptr, steamIDRemote, ref pConnectionState_ps);
pConnectionState = pConnectionState_ps;
return ret;
}
public virtual bool /*bool*/ ISteamNetworking_AllowP2PPacketRelay( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_AllowP2PPacketRelay(_ptr, bAllow);
}
public virtual SNetListenSocket_t /*(SNetListenSocket_t)*/ ISteamNetworking_CreateListenSocket( int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_CreateListenSocket(_ptr, nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay);
}
public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateP2PConnectionSocket( ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_CreateP2PConnectionSocket(_ptr, steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay);
}
public virtual SNetSocket_t /*(SNetSocket_t)*/ ISteamNetworking_CreateConnectionSocket( uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_CreateConnectionSocket(_ptr, nIP, nPort, nTimeoutSec);
}
public virtual bool /*bool*/ ISteamNetworking_DestroySocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_DestroySocket(_ptr, hSocket, bNotifyRemoteEnd);
}
public virtual bool /*bool*/ ISteamNetworking_DestroyListenSocket( uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_DestroyListenSocket(_ptr, hSocket, bNotifyRemoteEnd);
}
public virtual bool /*bool*/ ISteamNetworking_SendDataOnSocket( uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_SendDataOnSocket(_ptr, hSocket, pubData, cubData, bReliable);
}
public virtual bool /*bool*/ ISteamNetworking_IsDataAvailableOnSocket( uint hSocket, out uint /*uint32 **/ pcubMsgSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_IsDataAvailableOnSocket(_ptr, hSocket, out pcubMsgSize);
}
public virtual bool /*bool*/ ISteamNetworking_RetrieveDataFromSocket( uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_RetrieveDataFromSocket(_ptr, hSocket, pubDest, cubDest, out pcubMsgSize);
}
public virtual bool /*bool*/ ISteamNetworking_IsDataAvailable( uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_IsDataAvailable(_ptr, hListenSocket, out pcubMsgSize, ref phSocket);
}
public virtual bool /*bool*/ ISteamNetworking_RetrieveData( uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_RetrieveData(_ptr, hListenSocket, pubDest, cubDest, out pcubMsgSize, ref phSocket);
}
public virtual bool /*bool*/ ISteamNetworking_GetSocketInfo( uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_GetSocketInfo(_ptr, hSocket, out pSteamIDRemote, peSocketStatus, out punIPRemote, out punPortRemote);
}
public virtual bool /*bool*/ ISteamNetworking_GetListenSocketInfo( uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_GetListenSocketInfo(_ptr, hListenSocket, out pnIP, out pnPort);
}
public virtual SNetSocketConnectionType /*ESNetSocketConnectionType*/ ISteamNetworking_GetSocketConnectionType( uint hSocket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_GetSocketConnectionType(_ptr, hSocket);
}
public virtual int /*int*/ ISteamNetworking_GetMaxPacketSize( uint hSocket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamNetworking _ptr is null!" );
return Native.SteamAPI_ISteamNetworking_GetMaxPacketSize(_ptr, hSocket);
}
public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_WriteScreenshot( IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_WriteScreenshot(_ptr, pubRGB, cubRGB, nWidth, nHeight);
}
public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddScreenshotToLibrary( string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_AddScreenshotToLibrary(_ptr, pchFilename, pchThumbnailFilename, nWidth, nHeight);
}
public virtual void /*void*/ ISteamScreenshots_TriggerScreenshot()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
Native.SteamAPI_ISteamScreenshots_TriggerScreenshot(_ptr);
}
public virtual void /*void*/ ISteamScreenshots_HookScreenshots( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
Native.SteamAPI_ISteamScreenshots_HookScreenshots(_ptr, bHook);
}
public virtual bool /*bool*/ ISteamScreenshots_SetLocation( uint hScreenshot, string /*const char **/ pchLocation )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_SetLocation(_ptr, hScreenshot, pchLocation);
}
public virtual bool /*bool*/ ISteamScreenshots_TagUser( uint hScreenshot, ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_TagUser(_ptr, hScreenshot, steamID);
}
public virtual bool /*bool*/ ISteamScreenshots_TagPublishedFile( uint hScreenshot, ulong unPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_TagPublishedFile(_ptr, hScreenshot, unPublishedFileID);
}
public virtual bool /*bool*/ ISteamScreenshots_IsScreenshotsHooked()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_IsScreenshotsHooked(_ptr);
}
public virtual ScreenshotHandle /*(ScreenshotHandle)*/ ISteamScreenshots_AddVRScreenshotToLibrary( VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamScreenshots _ptr is null!" );
return Native.SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary(_ptr, eType, pchFilename, pchVRFilename);
}
public virtual bool /*bool*/ ISteamMusic_BIsEnabled()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
return Native.SteamAPI_ISteamMusic_BIsEnabled(_ptr);
}
public virtual bool /*bool*/ ISteamMusic_BIsPlaying()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
return Native.SteamAPI_ISteamMusic_BIsPlaying(_ptr);
}
public virtual AudioPlayback_Status /*AudioPlayback_Status*/ ISteamMusic_GetPlaybackStatus()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
return Native.SteamAPI_ISteamMusic_GetPlaybackStatus(_ptr);
}
public virtual void /*void*/ ISteamMusic_Play()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
Native.SteamAPI_ISteamMusic_Play(_ptr);
}
public virtual void /*void*/ ISteamMusic_Pause()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
Native.SteamAPI_ISteamMusic_Pause(_ptr);
}
public virtual void /*void*/ ISteamMusic_PlayPrevious()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
Native.SteamAPI_ISteamMusic_PlayPrevious(_ptr);
}
public virtual void /*void*/ ISteamMusic_PlayNext()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
Native.SteamAPI_ISteamMusic_PlayNext(_ptr);
}
public virtual void /*void*/ ISteamMusic_SetVolume( float /*float*/ flVolume )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
Native.SteamAPI_ISteamMusic_SetVolume(_ptr, flVolume);
}
public virtual float /*float*/ ISteamMusic_GetVolume()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusic _ptr is null!" );
return Native.SteamAPI_ISteamMusic_GetVolume(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_RegisterSteamMusicRemote( string /*const char **/ pchName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote(_ptr, pchName);
}
public virtual bool /*bool*/ ISteamMusicRemote_DeregisterSteamMusicRemote()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_BIsCurrentMusicRemote()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_BActivationSuccess( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_BActivationSuccess(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_SetDisplayName( string /*const char **/ pchDisplayName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_SetDisplayName(_ptr, pchDisplayName);
}
public virtual bool /*bool*/ ISteamMusicRemote_SetPNGIcon_64x64( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64(_ptr, pvBuffer, cbBufferLength);
}
public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayPrevious( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_EnablePlayPrevious(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_EnablePlayNext( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_EnablePlayNext(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_EnableShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_EnableShuffled(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_EnableLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_EnableLooped(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_EnableQueue( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_EnableQueue(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_EnablePlaylists( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_EnablePlaylists(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdatePlaybackStatus( AudioPlayback_Status /*AudioPlayback_Status*/ nStatus )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus(_ptr, nStatus);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdateShuffled( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdateShuffled(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdateLooped( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdateLooped(_ptr, bValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdateVolume( float /*float*/ flValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdateVolume(_ptr, flValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryWillChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_CurrentEntryWillChange(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryIsAvailable( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable(_ptr, bAvailable);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryText( string /*const char **/ pchText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText(_ptr, pchText);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( int /*int*/ nValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds(_ptr, nValue);
}
public virtual bool /*bool*/ ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt(_ptr, pvBuffer, cbBufferLength);
}
public virtual bool /*bool*/ ISteamMusicRemote_CurrentEntryDidChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_CurrentEntryDidChange(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_QueueWillChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_QueueWillChange(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_ResetQueueEntries()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_ResetQueueEntries(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_SetQueueEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_SetQueueEntry(_ptr, nID, nPosition, pchEntryText);
}
public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentQueueEntry( int /*int*/ nID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry(_ptr, nID);
}
public virtual bool /*bool*/ ISteamMusicRemote_QueueDidChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_QueueDidChange(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_PlaylistWillChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_PlaylistWillChange(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_ResetPlaylistEntries()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_ResetPlaylistEntries(_ptr);
}
public virtual bool /*bool*/ ISteamMusicRemote_SetPlaylistEntry( int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_SetPlaylistEntry(_ptr, nID, nPosition, pchEntryText);
}
public virtual bool /*bool*/ ISteamMusicRemote_SetCurrentPlaylistEntry( int /*int*/ nID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry(_ptr, nID);
}
public virtual bool /*bool*/ ISteamMusicRemote_PlaylistDidChange()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamMusicRemote _ptr is null!" );
return Native.SteamAPI_ISteamMusicRemote_PlaylistDidChange(_ptr);
}
public virtual HTTPRequestHandle /*(HTTPRequestHandle)*/ ISteamHTTP_CreateHTTPRequest( HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_CreateHTTPRequest(_ptr, eHTTPRequestMethod, pchAbsoluteURL);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestContextValue( uint hRequest, ulong /*uint64*/ ulContextValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestContextValue(_ptr, hRequest, ulContextValue);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( uint hRequest, uint /*uint32*/ unTimeoutSeconds )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout(_ptr, hRequest, unTimeoutSeconds);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue(_ptr, hRequest, pchHeaderName, pchHeaderValue);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestGetOrPostParameter( uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter(_ptr, hRequest, pchParamName, pchParamValue);
}
public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequest( uint hRequest, ref ulong pCallHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SendHTTPRequest(_ptr, hRequest, ref pCallHandle);
}
public virtual bool /*bool*/ ISteamHTTP_SendHTTPRequestAndStreamResponse( uint hRequest, ref ulong pCallHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse(_ptr, hRequest, ref pCallHandle);
}
public virtual bool /*bool*/ ISteamHTTP_DeferHTTPRequest( uint hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_DeferHTTPRequest(_ptr, hRequest);
}
public virtual bool /*bool*/ ISteamHTTP_PrioritizeHTTPRequest( uint hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_PrioritizeHTTPRequest(_ptr, hRequest);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderSize( uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize(_ptr, hRequest, pchHeaderName, out unResponseHeaderSize);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseHeaderValue( uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue(_ptr, hRequest, pchHeaderName, out pHeaderValueBuffer, unBufferSize);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodySize( uint hRequest, out uint /*uint32 **/ unBodySize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodySize(_ptr, hRequest, out unBodySize);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPResponseBodyData( uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPResponseBodyData(_ptr, hRequest, out pBodyDataBuffer, unBufferSize);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPStreamingResponseBodyData( uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData(_ptr, hRequest, cOffset, out pBodyDataBuffer, unBufferSize);
}
public virtual bool /*bool*/ ISteamHTTP_ReleaseHTTPRequest( uint hRequest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_ReleaseHTTPRequest(_ptr, hRequest);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPDownloadProgressPct( uint hRequest, out float /*float **/ pflPercentOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct(_ptr, hRequest, out pflPercentOut);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRawPostBody( uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody(_ptr, hRequest, pchContentType, out pubBody, unBodyLen);
}
public virtual HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ ISteamHTTP_CreateCookieContainer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_CreateCookieContainer(_ptr, bAllowResponsesToModify);
}
public virtual bool /*bool*/ ISteamHTTP_ReleaseCookieContainer( uint hCookieContainer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_ReleaseCookieContainer(_ptr, hCookieContainer);
}
public virtual bool /*bool*/ ISteamHTTP_SetCookie( uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetCookie(_ptr, hCookieContainer, pchHost, pchUrl, pchCookie);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestCookieContainer( uint hRequest, uint hCookieContainer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer(_ptr, hRequest, hCookieContainer);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestUserAgentInfo( uint hRequest, string /*const char **/ pchUserAgentInfo )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo(_ptr, hRequest, pchUserAgentInfo);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate(_ptr, hRequest, bRequireVerifiedCertificate);
}
public virtual bool /*bool*/ ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( uint hRequest, uint /*uint32*/ unMilliseconds )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS(_ptr, hRequest, unMilliseconds);
}
public virtual bool /*bool*/ ISteamHTTP_GetHTTPRequestWasTimedOut( uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTTP _ptr is null!" );
return Native.SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut(_ptr, hRequest, ref pbWasTimedOut);
}
public virtual ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ ISteamUnifiedMessages_SendMethod( string /*const char **/ pchServiceMethod, IntPtr /*const void **/ pRequestBuffer, uint /*uint32*/ unRequestBufferSize, ulong /*uint64*/ unContext )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUnifiedMessages _ptr is null!" );
return Native.SteamAPI_ISteamUnifiedMessages_SendMethod(_ptr, pchServiceMethod, pRequestBuffer, unRequestBufferSize, unContext);
}
public virtual bool /*bool*/ ISteamUnifiedMessages_GetMethodResponseInfo( ulong hHandle, out uint /*uint32 **/ punResponseSize, out Result /*EResult **/ peResult )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUnifiedMessages _ptr is null!" );
return Native.SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo(_ptr, hHandle, out punResponseSize, out peResult);
}
public virtual bool /*bool*/ ISteamUnifiedMessages_GetMethodResponseData( ulong hHandle, IntPtr /*void **/ pResponseBuffer, uint /*uint32*/ unResponseBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAutoRelease )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUnifiedMessages _ptr is null!" );
return Native.SteamAPI_ISteamUnifiedMessages_GetMethodResponseData(_ptr, hHandle, pResponseBuffer, unResponseBufferSize, bAutoRelease);
}
public virtual bool /*bool*/ ISteamUnifiedMessages_ReleaseMethod( ulong hHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUnifiedMessages _ptr is null!" );
return Native.SteamAPI_ISteamUnifiedMessages_ReleaseMethod(_ptr, hHandle);
}
public virtual bool /*bool*/ ISteamUnifiedMessages_SendNotification( string /*const char **/ pchServiceNotification, IntPtr /*const void **/ pNotificationBuffer, uint /*uint32*/ unNotificationBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUnifiedMessages _ptr is null!" );
return Native.SteamAPI_ISteamUnifiedMessages_SendNotification(_ptr, pchServiceNotification, pNotificationBuffer, unNotificationBufferSize);
}
public virtual bool /*bool*/ ISteamController_Init()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_Init(_ptr);
}
public virtual bool /*bool*/ ISteamController_Shutdown()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_Shutdown(_ptr);
}
public virtual void /*void*/ ISteamController_RunFrame()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_RunFrame(_ptr);
}
public virtual int /*int*/ ISteamController_GetConnectedControllers( IntPtr /*ControllerHandle_t **/ handlesOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetConnectedControllers(_ptr, handlesOut);
}
public virtual bool /*bool*/ ISteamController_ShowBindingPanel( ulong controllerHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_ShowBindingPanel(_ptr, controllerHandle);
}
public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetActionSetHandle( string /*const char **/ pszActionSetName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetActionSetHandle(_ptr, pszActionSetName);
}
public virtual void /*void*/ ISteamController_ActivateActionSet( ulong controllerHandle, ulong actionSetHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_ActivateActionSet(_ptr, controllerHandle, actionSetHandle);
}
public virtual ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ ISteamController_GetCurrentActionSet( ulong controllerHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetCurrentActionSet(_ptr, controllerHandle);
}
public virtual ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ ISteamController_GetDigitalActionHandle( string /*const char **/ pszActionName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetDigitalActionHandle(_ptr, pszActionName);
}
public virtual ControllerDigitalActionData_t /*struct ControllerDigitalActionData_t*/ ISteamController_GetDigitalActionData( ulong controllerHandle, ulong digitalActionHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetDigitalActionData(_ptr, controllerHandle, digitalActionHandle);
}
public virtual int /*int*/ ISteamController_GetDigitalActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetDigitalActionOrigins(_ptr, controllerHandle, actionSetHandle, digitalActionHandle, out originsOut);
}
public virtual ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ ISteamController_GetAnalogActionHandle( string /*const char **/ pszActionName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetAnalogActionHandle(_ptr, pszActionName);
}
public virtual ControllerAnalogActionData_t /*struct ControllerAnalogActionData_t*/ ISteamController_GetAnalogActionData( ulong controllerHandle, ulong analogActionHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetAnalogActionData(_ptr, controllerHandle, analogActionHandle);
}
public virtual int /*int*/ ISteamController_GetAnalogActionOrigins( ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetAnalogActionOrigins(_ptr, controllerHandle, actionSetHandle, analogActionHandle, out originsOut);
}
public virtual void /*void*/ ISteamController_StopAnalogActionMomentum( ulong controllerHandle, ulong eAction )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_StopAnalogActionMomentum(_ptr, controllerHandle, eAction);
}
public virtual void /*void*/ ISteamController_TriggerHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_TriggerHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec);
}
public virtual void /*void*/ ISteamController_TriggerRepeatedHapticPulse( ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_TriggerRepeatedHapticPulse(_ptr, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
}
public virtual void /*void*/ ISteamController_TriggerVibration( ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_TriggerVibration(_ptr, controllerHandle, usLeftSpeed, usRightSpeed);
}
public virtual void /*void*/ ISteamController_SetLEDColor( ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
Native.SteamAPI_ISteamController_SetLEDColor(_ptr, controllerHandle, nColorR, nColorG, nColorB, nFlags);
}
public virtual int /*int*/ ISteamController_GetGamepadIndexForController( ulong ulControllerHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetGamepadIndexForController(_ptr, ulControllerHandle);
}
public virtual ControllerHandle_t /*(ControllerHandle_t)*/ ISteamController_GetControllerForGamepadIndex( int /*int*/ nIndex )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetControllerForGamepadIndex(_ptr, nIndex);
}
public virtual ControllerMotionData_t /*struct ControllerMotionData_t*/ ISteamController_GetMotionData( ulong controllerHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetMotionData(_ptr, controllerHandle);
}
public virtual bool /*bool*/ ISteamController_ShowDigitalActionOrigins( ulong controllerHandle, ulong digitalActionHandle, float /*float*/ flScale, float /*float*/ flXPosition, float /*float*/ flYPosition )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_ShowDigitalActionOrigins(_ptr, controllerHandle, digitalActionHandle, flScale, flXPosition, flYPosition);
}
public virtual bool /*bool*/ ISteamController_ShowAnalogActionOrigins( ulong controllerHandle, ulong analogActionHandle, float /*float*/ flScale, float /*float*/ flXPosition, float /*float*/ flYPosition )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_ShowAnalogActionOrigins(_ptr, controllerHandle, analogActionHandle, flScale, flXPosition, flYPosition);
}
public virtual IntPtr ISteamController_GetStringForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetStringForActionOrigin(_ptr, eOrigin);
}
public virtual IntPtr ISteamController_GetGlyphForActionOrigin( ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamController _ptr is null!" );
return Native.SteamAPI_ISteamController_GetGlyphForActionOrigin(_ptr, eOrigin);
}
public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUserUGCRequest( uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_CreateQueryUserUGCRequest(_ptr, unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage);
}
public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryAllUGCRequest( UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(_ptr, eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage);
}
public virtual UGCQueryHandle_t /*(UGCQueryHandle_t)*/ ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest(_ptr, pvecPublishedFileID, unNumPublishedFileIDs);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SendQueryUGCRequest( ulong handle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SendQueryUGCRequest(_ptr, handle);
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCResult( ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t /*struct SteamUGCDetails_t **/ pDetails )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
var pDetails_ps = new SteamUGCDetails_t.PackSmall();
var ret = Native.SteamAPI_ISteamUGC_GetQueryUGCResult(_ptr, handle, index, ref pDetails_ps);
pDetails = pDetails_ps;
return ret;
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCPreviewURL( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCPreviewURL(_ptr, handle, index, pchURL, cchURLSize);
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCMetadata( ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCMetadata(_ptr, handle, index, pchMetadata, cchMetadatasize);
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCChildren( ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCChildren(_ptr, handle, index, pvecPublishedFileID, cMaxEntries);
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCStatistic( ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCStatistic(_ptr, handle, index, eStatType, out pStatValue);
}
public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumAdditionalPreviews( ulong handle, uint /*uint32*/ index )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews(_ptr, handle, index);
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCAdditionalPreview( ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview(_ptr, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, out pPreviewType);
}
public virtual uint /*uint32*/ ISteamUGC_GetQueryUGCNumKeyValueTags( ulong handle, uint /*uint32*/ index )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags(_ptr, handle, index);
}
public virtual bool /*bool*/ ISteamUGC_GetQueryUGCKeyValueTag( ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag(_ptr, handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize);
}
public virtual bool /*bool*/ ISteamUGC_ReleaseQueryUGCRequest( ulong handle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(_ptr, handle);
}
public virtual bool /*bool*/ ISteamUGC_AddRequiredTag( ulong handle, string /*const char **/ pTagName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddRequiredTag(_ptr, handle, pTagName);
}
public virtual bool /*bool*/ ISteamUGC_AddExcludedTag( ulong handle, string /*const char **/ pTagName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddExcludedTag(_ptr, handle, pTagName);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnOnlyIDs( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnOnlyIDs(_ptr, handle, bReturnOnlyIDs);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnKeyValueTags( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnKeyValueTags(_ptr, handle, bReturnKeyValueTags);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnLongDescription( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnLongDescription(_ptr, handle, bReturnLongDescription);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnMetadata( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnMetadata(_ptr, handle, bReturnMetadata);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnChildren( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnChildren(_ptr, handle, bReturnChildren);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnAdditionalPreviews( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnAdditionalPreviews(_ptr, handle, bReturnAdditionalPreviews);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnTotalOnly( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnTotalOnly(_ptr, handle, bReturnTotalOnly);
}
public virtual bool /*bool*/ ISteamUGC_SetReturnPlaytimeStats( ulong handle, uint /*uint32*/ unDays )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetReturnPlaytimeStats(_ptr, handle, unDays);
}
public virtual bool /*bool*/ ISteamUGC_SetLanguage( ulong handle, string /*const char **/ pchLanguage )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetLanguage(_ptr, handle, pchLanguage);
}
public virtual bool /*bool*/ ISteamUGC_SetAllowCachedResponse( ulong handle, uint /*uint32*/ unMaxAgeSeconds )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetAllowCachedResponse(_ptr, handle, unMaxAgeSeconds);
}
public virtual bool /*bool*/ ISteamUGC_SetCloudFileNameFilter( ulong handle, string /*const char **/ pMatchCloudFileName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetCloudFileNameFilter(_ptr, handle, pMatchCloudFileName);
}
public virtual bool /*bool*/ ISteamUGC_SetMatchAnyTag( ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetMatchAnyTag(_ptr, handle, bMatchAnyTag);
}
public virtual bool /*bool*/ ISteamUGC_SetSearchText( ulong handle, string /*const char **/ pSearchText )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetSearchText(_ptr, handle, pSearchText);
}
public virtual bool /*bool*/ ISteamUGC_SetRankedByTrendDays( ulong handle, uint /*uint32*/ unDays )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetRankedByTrendDays(_ptr, handle, unDays);
}
public virtual bool /*bool*/ ISteamUGC_AddRequiredKeyValueTag( ulong handle, string /*const char **/ pKey, string /*const char **/ pValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddRequiredKeyValueTag(_ptr, handle, pKey, pValue);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RequestUGCDetails( ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_RequestUGCDetails(_ptr, nPublishedFileID, unMaxAgeSeconds);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_CreateItem( uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_CreateItem(_ptr, nConsumerAppId, eFileType);
}
public virtual UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ ISteamUGC_StartItemUpdate( uint nConsumerAppId, ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_StartItemUpdate(_ptr, nConsumerAppId, nPublishedFileID);
}
public virtual bool /*bool*/ ISteamUGC_SetItemTitle( ulong handle, string /*const char **/ pchTitle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemTitle(_ptr, handle, pchTitle);
}
public virtual bool /*bool*/ ISteamUGC_SetItemDescription( ulong handle, string /*const char **/ pchDescription )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemDescription(_ptr, handle, pchDescription);
}
public virtual bool /*bool*/ ISteamUGC_SetItemUpdateLanguage( ulong handle, string /*const char **/ pchLanguage )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemUpdateLanguage(_ptr, handle, pchLanguage);
}
public virtual bool /*bool*/ ISteamUGC_SetItemMetadata( ulong handle, string /*const char **/ pchMetaData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemMetadata(_ptr, handle, pchMetaData);
}
public virtual bool /*bool*/ ISteamUGC_SetItemVisibility( ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemVisibility(_ptr, handle, eVisibility);
}
public virtual bool /*bool*/ ISteamUGC_SetItemTags( ulong updateHandle, ref SteamParamStringArray_t /*const struct SteamParamStringArray_t **/ pTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
var pTags_ps = new SteamParamStringArray_t.PackSmall();
var ret = Native.SteamAPI_ISteamUGC_SetItemTags(_ptr, updateHandle, ref pTags_ps);
pTags = pTags_ps;
return ret;
}
public virtual bool /*bool*/ ISteamUGC_SetItemContent( ulong handle, string /*const char **/ pszContentFolder )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemContent(_ptr, handle, pszContentFolder);
}
public virtual bool /*bool*/ ISteamUGC_SetItemPreview( ulong handle, string /*const char **/ pszPreviewFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetItemPreview(_ptr, handle, pszPreviewFile);
}
public virtual bool /*bool*/ ISteamUGC_RemoveItemKeyValueTags( ulong handle, string /*const char **/ pchKey )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_RemoveItemKeyValueTags(_ptr, handle, pchKey);
}
public virtual bool /*bool*/ ISteamUGC_AddItemKeyValueTag( ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddItemKeyValueTag(_ptr, handle, pchKey, pchValue);
}
public virtual bool /*bool*/ ISteamUGC_AddItemPreviewFile( ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddItemPreviewFile(_ptr, handle, pszPreviewFile, type);
}
public virtual bool /*bool*/ ISteamUGC_AddItemPreviewVideo( ulong handle, string /*const char **/ pszVideoID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddItemPreviewVideo(_ptr, handle, pszVideoID);
}
public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewFile( ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_UpdateItemPreviewFile(_ptr, handle, index, pszPreviewFile);
}
public virtual bool /*bool*/ ISteamUGC_UpdateItemPreviewVideo( ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_UpdateItemPreviewVideo(_ptr, handle, index, pszVideoID);
}
public virtual bool /*bool*/ ISteamUGC_RemoveItemPreview( ulong handle, uint /*uint32*/ index )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_RemoveItemPreview(_ptr, handle, index);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubmitItemUpdate( ulong handle, string /*const char **/ pchChangeNote )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SubmitItemUpdate(_ptr, handle, pchChangeNote);
}
public virtual ItemUpdateStatus /*EItemUpdateStatus*/ ISteamUGC_GetItemUpdateProgress( ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetItemUpdateProgress(_ptr, handle, out punBytesProcessed, out punBytesTotal);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SetUserItemVote( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SetUserItemVote(_ptr, nPublishedFileID, bVoteUp);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_GetUserItemVote( ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetUserItemVote(_ptr, nPublishedFileID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddItemToFavorites( uint nAppId, ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddItemToFavorites(_ptr, nAppId, nPublishedFileID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveItemFromFavorites( uint nAppId, ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_RemoveItemFromFavorites(_ptr, nAppId, nPublishedFileID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_SubscribeItem( ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_SubscribeItem(_ptr, nPublishedFileID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_UnsubscribeItem( ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_UnsubscribeItem(_ptr, nPublishedFileID);
}
public virtual uint /*uint32*/ ISteamUGC_GetNumSubscribedItems()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetNumSubscribedItems(_ptr);
}
public virtual uint /*uint32*/ ISteamUGC_GetSubscribedItems( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetSubscribedItems(_ptr, pvecPublishedFileID, cMaxEntries);
}
public virtual uint /*uint32*/ ISteamUGC_GetItemState( ulong nPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetItemState(_ptr, nPublishedFileID);
}
public virtual bool /*bool*/ ISteamUGC_GetItemInstallInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetItemInstallInfo(_ptr, nPublishedFileID, out punSizeOnDisk, pchFolder, cchFolderSize, out punTimeStamp);
}
public virtual bool /*bool*/ ISteamUGC_GetItemDownloadInfo( ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_GetItemDownloadInfo(_ptr, nPublishedFileID, out punBytesDownloaded, out punBytesTotal);
}
public virtual bool /*bool*/ ISteamUGC_DownloadItem( ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_DownloadItem(_ptr, nPublishedFileID, bHighPriority);
}
public virtual bool /*bool*/ ISteamUGC_BInitWorkshopForGameServer( uint unWorkshopDepotID, string /*const char **/ pszFolder )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_BInitWorkshopForGameServer(_ptr, unWorkshopDepotID, pszFolder);
}
public virtual void /*void*/ ISteamUGC_SuspendDownloads( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
Native.SteamAPI_ISteamUGC_SuspendDownloads(_ptr, bSuspend);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StartPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_StartPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTracking( IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_StopPlaytimeTracking(_ptr, pvecPublishedFileID, unNumPublishedFileIDs);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_StopPlaytimeTrackingForAllItems()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_AddDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_AddDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamUGC_RemoveDependency( ulong nParentPublishedFileID, ulong nChildPublishedFileID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamUGC _ptr is null!" );
return Native.SteamAPI_ISteamUGC_RemoveDependency(_ptr, nParentPublishedFileID, nChildPublishedFileID);
}
public virtual uint /*uint32*/ ISteamAppList_GetNumInstalledApps()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" );
return Native.SteamAPI_ISteamAppList_GetNumInstalledApps(_ptr);
}
public virtual uint /*uint32*/ ISteamAppList_GetInstalledApps( IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" );
return Native.SteamAPI_ISteamAppList_GetInstalledApps(_ptr, pvecAppID, unMaxAppIDs);
}
public virtual int /*int*/ ISteamAppList_GetAppName( uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" );
return Native.SteamAPI_ISteamAppList_GetAppName(_ptr, nAppID, pchName, cchNameMax);
}
public virtual int /*int*/ ISteamAppList_GetAppInstallDir( uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" );
return Native.SteamAPI_ISteamAppList_GetAppInstallDir(_ptr, nAppID, pchDirectory, cchNameMax);
}
public virtual int /*int*/ ISteamAppList_GetAppBuildId( uint nAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamAppList _ptr is null!" );
return Native.SteamAPI_ISteamAppList_GetAppBuildId(_ptr, nAppID);
}
public virtual void /*void*/ ISteamHTMLSurface_DestructISteamHTMLSurface()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(_ptr);
}
public virtual bool /*bool*/ ISteamHTMLSurface_Init()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
return Native.SteamAPI_ISteamHTMLSurface_Init(_ptr);
}
public virtual bool /*bool*/ ISteamHTMLSurface_Shutdown()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
return Native.SteamAPI_ISteamHTMLSurface_Shutdown(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamHTMLSurface_CreateBrowser( string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
return Native.SteamAPI_ISteamHTMLSurface_CreateBrowser(_ptr, pchUserAgent, pchUserCSS);
}
public virtual void /*void*/ ISteamHTMLSurface_RemoveBrowser( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_RemoveBrowser(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_LoadURL( uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_LoadURL(_ptr, unBrowserHandle, pchURL, pchPostData);
}
public virtual void /*void*/ ISteamHTMLSurface_SetSize( uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetSize(_ptr, unBrowserHandle, unWidth, unHeight);
}
public virtual void /*void*/ ISteamHTMLSurface_StopLoad( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_StopLoad(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_Reload( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_Reload(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_GoBack( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_GoBack(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_GoForward( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_GoForward(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_AddHeader( uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_AddHeader(_ptr, unBrowserHandle, pchKey, pchValue);
}
public virtual void /*void*/ ISteamHTMLSurface_ExecuteJavascript( uint unBrowserHandle, string /*const char **/ pchScript )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_ExecuteJavascript(_ptr, unBrowserHandle, pchScript);
}
public virtual void /*void*/ ISteamHTMLSurface_MouseUp( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_MouseUp(_ptr, unBrowserHandle, eMouseButton);
}
public virtual void /*void*/ ISteamHTMLSurface_MouseDown( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_MouseDown(_ptr, unBrowserHandle, eMouseButton);
}
public virtual void /*void*/ ISteamHTMLSurface_MouseDoubleClick( uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_MouseDoubleClick(_ptr, unBrowserHandle, eMouseButton);
}
public virtual void /*void*/ ISteamHTMLSurface_MouseMove( uint unBrowserHandle, int /*int*/ x, int /*int*/ y )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_MouseMove(_ptr, unBrowserHandle, x, y);
}
public virtual void /*void*/ ISteamHTMLSurface_MouseWheel( uint unBrowserHandle, int /*int32*/ nDelta )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_MouseWheel(_ptr, unBrowserHandle, nDelta);
}
public virtual void /*void*/ ISteamHTMLSurface_KeyDown( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_KeyDown(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
}
public virtual void /*void*/ ISteamHTMLSurface_KeyUp( uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_KeyUp(_ptr, unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
}
public virtual void /*void*/ ISteamHTMLSurface_KeyChar( uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_KeyChar(_ptr, unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers);
}
public virtual void /*void*/ ISteamHTMLSurface_SetHorizontalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetHorizontalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll);
}
public virtual void /*void*/ ISteamHTMLSurface_SetVerticalScroll( uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetVerticalScroll(_ptr, unBrowserHandle, nAbsolutePixelScroll);
}
public virtual void /*void*/ ISteamHTMLSurface_SetKeyFocus( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetKeyFocus(_ptr, unBrowserHandle, bHasKeyFocus);
}
public virtual void /*void*/ ISteamHTMLSurface_ViewSource( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_ViewSource(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_CopyToClipboard( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_CopyToClipboard(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_PasteFromClipboard( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_PasteFromClipboard(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_Find( uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_Find(_ptr, unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse);
}
public virtual void /*void*/ ISteamHTMLSurface_StopFind( uint unBrowserHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_StopFind(_ptr, unBrowserHandle);
}
public virtual void /*void*/ ISteamHTMLSurface_GetLinkAtPosition( uint unBrowserHandle, int /*int*/ x, int /*int*/ y )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_GetLinkAtPosition(_ptr, unBrowserHandle, x, y);
}
public virtual void /*void*/ ISteamHTMLSurface_SetCookie( string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetCookie(_ptr, pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly);
}
public virtual void /*void*/ ISteamHTMLSurface_SetPageScaleFactor( uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetPageScaleFactor(_ptr, unBrowserHandle, flZoom, nPointX, nPointY);
}
public virtual void /*void*/ ISteamHTMLSurface_SetBackgroundMode( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_SetBackgroundMode(_ptr, unBrowserHandle, bBackgroundMode);
}
public virtual void /*void*/ ISteamHTMLSurface_AllowStartRequest( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_AllowStartRequest(_ptr, unBrowserHandle, bAllowed);
}
public virtual void /*void*/ ISteamHTMLSurface_JSDialogResponse( uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamHTMLSurface _ptr is null!" );
Native.SteamAPI_ISteamHTMLSurface_JSDialogResponse(_ptr, unBrowserHandle, bResult);
}
public virtual Result /*EResult*/ ISteamInventory_GetResultStatus( int resultHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetResultStatus(_ptr, resultHandle);
}
public virtual bool /*bool*/ ISteamInventory_GetResultItems( int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetResultItems(_ptr, resultHandle, pOutItemsArray, out punOutItemsArraySize);
}
public virtual bool /*bool*/ ISteamInventory_GetResultItemProperty( int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetResultItemProperty(_ptr, resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut);
}
public virtual uint /*uint32*/ ISteamInventory_GetResultTimestamp( int resultHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetResultTimestamp(_ptr, resultHandle);
}
public virtual bool /*bool*/ ISteamInventory_CheckResultSteamID( int resultHandle, ulong steamIDExpected )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_CheckResultSteamID(_ptr, resultHandle, steamIDExpected);
}
public virtual void /*void*/ ISteamInventory_DestroyResult( int resultHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
Native.SteamAPI_ISteamInventory_DestroyResult(_ptr, resultHandle);
}
public virtual bool /*bool*/ ISteamInventory_GetAllItems( ref int pResultHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetAllItems(_ptr, ref pResultHandle);
}
public virtual bool /*bool*/ ISteamInventory_GetItemsByID( ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetItemsByID(_ptr, ref pResultHandle, pInstanceIDs, unCountInstanceIDs);
}
public virtual bool /*bool*/ ISteamInventory_SerializeResult( int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_SerializeResult(_ptr, resultHandle, pOutBuffer, out punOutBufferSize);
}
public virtual bool /*bool*/ ISteamInventory_DeserializeResult( ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_DeserializeResult(_ptr, ref pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE);
}
public virtual bool /*bool*/ ISteamInventory_GenerateItems( ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GenerateItems(_ptr, ref pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength);
}
public virtual bool /*bool*/ ISteamInventory_GrantPromoItems( ref int pResultHandle )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GrantPromoItems(_ptr, ref pResultHandle);
}
public virtual bool /*bool*/ ISteamInventory_AddPromoItem( ref int pResultHandle, int itemDef )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_AddPromoItem(_ptr, ref pResultHandle, itemDef);
}
public virtual bool /*bool*/ ISteamInventory_AddPromoItems( ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_AddPromoItems(_ptr, ref pResultHandle, pArrayItemDefs, unArrayLength);
}
public virtual bool /*bool*/ ISteamInventory_ConsumeItem( ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_ConsumeItem(_ptr, ref pResultHandle, itemConsume, unQuantity);
}
public virtual bool /*bool*/ ISteamInventory_ExchangeItems( ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_ExchangeItems(_ptr, ref pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength);
}
public virtual bool /*bool*/ ISteamInventory_TransferItemQuantity( ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_TransferItemQuantity(_ptr, ref pResultHandle, itemIdSource, unQuantity, itemIdDest);
}
public virtual void /*void*/ ISteamInventory_SendItemDropHeartbeat()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
Native.SteamAPI_ISteamInventory_SendItemDropHeartbeat(_ptr);
}
public virtual bool /*bool*/ ISteamInventory_TriggerItemDrop( ref int pResultHandle, int dropListDefinition )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_TriggerItemDrop(_ptr, ref pResultHandle, dropListDefinition);
}
public virtual bool /*bool*/ ISteamInventory_TradeItems( ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_TradeItems(_ptr, ref pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength);
}
public virtual bool /*bool*/ ISteamInventory_LoadItemDefinitions()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_LoadItemDefinitions(_ptr);
}
public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionIDs( IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetItemDefinitionIDs(_ptr, pItemDefIDs, out punItemDefIDsArraySize);
}
public virtual bool /*bool*/ ISteamInventory_GetItemDefinitionProperty( int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetItemDefinitionProperty(_ptr, iDefinition, pchPropertyName, pchValueBuffer, out punValueBufferSizeOut);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(_ptr, steamID);
}
public virtual bool /*bool*/ ISteamInventory_GetEligiblePromoItemDefinitionIDs( ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamInventory _ptr is null!" );
return Native.SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs(_ptr, steamID, pItemDefIDs, out punItemDefIDsArraySize);
}
public virtual void /*void*/ ISteamVideo_GetVideoURL( uint unVideoAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" );
Native.SteamAPI_ISteamVideo_GetVideoURL(_ptr, unVideoAppID);
}
public virtual bool /*bool*/ ISteamVideo_IsBroadcasting( IntPtr /*int **/ pnNumViewers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" );
return Native.SteamAPI_ISteamVideo_IsBroadcasting(_ptr, pnNumViewers);
}
public virtual void /*void*/ ISteamVideo_GetOPFSettings( uint unVideoAppID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" );
Native.SteamAPI_ISteamVideo_GetOPFSettings(_ptr, unVideoAppID);
}
public virtual bool /*bool*/ ISteamVideo_GetOPFStringForApp( uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamVideo _ptr is null!" );
return Native.SteamAPI_ISteamVideo_GetOPFStringForApp(_ptr, unVideoAppID, pchBuffer, out pnBufferSize);
}
public virtual bool /*bool*/ ISteamGameServer_InitGameServer( uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_InitGameServer(_ptr, unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString);
}
public virtual void /*void*/ ISteamGameServer_SetProduct( string /*const char **/ pszProduct )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetProduct(_ptr, pszProduct);
}
public virtual void /*void*/ ISteamGameServer_SetGameDescription( string /*const char **/ pszGameDescription )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetGameDescription(_ptr, pszGameDescription);
}
public virtual void /*void*/ ISteamGameServer_SetModDir( string /*const char **/ pszModDir )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetModDir(_ptr, pszModDir);
}
public virtual void /*void*/ ISteamGameServer_SetDedicatedServer( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetDedicatedServer(_ptr, bDedicated);
}
public virtual void /*void*/ ISteamGameServer_LogOn( string /*const char **/ pszToken )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_LogOn(_ptr, pszToken);
}
public virtual void /*void*/ ISteamGameServer_LogOnAnonymous()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_LogOnAnonymous(_ptr);
}
public virtual void /*void*/ ISteamGameServer_LogOff()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_LogOff(_ptr);
}
public virtual bool /*bool*/ ISteamGameServer_BLoggedOn()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_BLoggedOn(_ptr);
}
public virtual bool /*bool*/ ISteamGameServer_BSecure()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_BSecure(_ptr);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_GetSteamID()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_GetSteamID(_ptr);
}
public virtual bool /*bool*/ ISteamGameServer_WasRestartRequested()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_WasRestartRequested(_ptr);
}
public virtual void /*void*/ ISteamGameServer_SetMaxPlayerCount( int /*int*/ cPlayersMax )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetMaxPlayerCount(_ptr, cPlayersMax);
}
public virtual void /*void*/ ISteamGameServer_SetBotPlayerCount( int /*int*/ cBotplayers )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetBotPlayerCount(_ptr, cBotplayers);
}
public virtual void /*void*/ ISteamGameServer_SetServerName( string /*const char **/ pszServerName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetServerName(_ptr, pszServerName);
}
public virtual void /*void*/ ISteamGameServer_SetMapName( string /*const char **/ pszMapName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetMapName(_ptr, pszMapName);
}
public virtual void /*void*/ ISteamGameServer_SetPasswordProtected( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetPasswordProtected(_ptr, bPasswordProtected);
}
public virtual void /*void*/ ISteamGameServer_SetSpectatorPort( ushort /*uint16*/ unSpectatorPort )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetSpectatorPort(_ptr, unSpectatorPort);
}
public virtual void /*void*/ ISteamGameServer_SetSpectatorServerName( string /*const char **/ pszSpectatorServerName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetSpectatorServerName(_ptr, pszSpectatorServerName);
}
public virtual void /*void*/ ISteamGameServer_ClearAllKeyValues()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_ClearAllKeyValues(_ptr);
}
public virtual void /*void*/ ISteamGameServer_SetKeyValue( string /*const char **/ pKey, string /*const char **/ pValue )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetKeyValue(_ptr, pKey, pValue);
}
public virtual void /*void*/ ISteamGameServer_SetGameTags( string /*const char **/ pchGameTags )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetGameTags(_ptr, pchGameTags);
}
public virtual void /*void*/ ISteamGameServer_SetGameData( string /*const char **/ pchGameData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetGameData(_ptr, pchGameData);
}
public virtual void /*void*/ ISteamGameServer_SetRegion( string /*const char **/ pszRegion )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetRegion(_ptr, pszRegion);
}
public virtual bool /*bool*/ ISteamGameServer_SendUserConnectAndAuthenticate( uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate(_ptr, unIPClient, pvAuthBlob, cubAuthBlobSize, out pSteamIDUser);
}
public virtual CSteamID /*(class CSteamID)*/ ISteamGameServer_CreateUnauthenticatedUserConnection()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection(_ptr);
}
public virtual void /*void*/ ISteamGameServer_SendUserDisconnect( ulong steamIDUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SendUserDisconnect(_ptr, steamIDUser);
}
public virtual bool /*bool*/ ISteamGameServer_BUpdateUserData( ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_BUpdateUserData(_ptr, steamIDUser, pchPlayerName, uScore);
}
public virtual HAuthTicket /*(HAuthTicket)*/ ISteamGameServer_GetAuthSessionTicket( IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_GetAuthSessionTicket(_ptr, pTicket, cbMaxTicket, out pcbTicket);
}
public virtual BeginAuthSessionResult /*EBeginAuthSessionResult*/ ISteamGameServer_BeginAuthSession( IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_BeginAuthSession(_ptr, pAuthTicket, cbAuthTicket, steamID);
}
public virtual void /*void*/ ISteamGameServer_EndAuthSession( ulong steamID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_EndAuthSession(_ptr, steamID);
}
public virtual void /*void*/ ISteamGameServer_CancelAuthTicket( uint hAuthTicket )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_CancelAuthTicket(_ptr, hAuthTicket);
}
public virtual UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ ISteamGameServer_UserHasLicenseForApp( ulong steamID, uint appID )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_UserHasLicenseForApp(_ptr, steamID, appID);
}
public virtual bool /*bool*/ ISteamGameServer_RequestUserGroupStatus( ulong steamIDUser, ulong steamIDGroup )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_RequestUserGroupStatus(_ptr, steamIDUser, steamIDGroup);
}
public virtual void /*void*/ ISteamGameServer_GetGameplayStats()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_GetGameplayStats(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_GetServerReputation()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_GetServerReputation(_ptr);
}
public virtual uint /*uint32*/ ISteamGameServer_GetPublicIP()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_GetPublicIP(_ptr);
}
public virtual bool /*bool*/ ISteamGameServer_HandleIncomingPacket( IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_HandleIncomingPacket(_ptr, pData, cbData, srcIP, srcPort);
}
public virtual int /*int*/ ISteamGameServer_GetNextOutgoingPacket( IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_GetNextOutgoingPacket(_ptr, pOut, cbMaxOut, out pNetAdr, out pPort);
}
public virtual void /*void*/ ISteamGameServer_EnableHeartbeats( [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_EnableHeartbeats(_ptr, bActive);
}
public virtual void /*void*/ ISteamGameServer_SetHeartbeatInterval( int /*int*/ iHeartbeatInterval )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_SetHeartbeatInterval(_ptr, iHeartbeatInterval);
}
public virtual void /*void*/ ISteamGameServer_ForceHeartbeat()
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
Native.SteamAPI_ISteamGameServer_ForceHeartbeat(_ptr);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_AssociateWithClan( ulong steamIDClan )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_AssociateWithClan(_ptr, steamIDClan);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServer_ComputeNewPlayerCompatibility( ulong steamIDNewPlayer )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServer _ptr is null!" );
return Native.SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(_ptr, steamIDNewPlayer);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_RequestUserStats( ulong steamIDUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_RequestUserStats(_ptr, steamIDUser);
}
public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat( ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_GetUserStat(_ptr, steamIDUser, pchName, out pData);
}
public virtual bool /*bool*/ ISteamGameServerStats_GetUserStat0( ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_GetUserStat0(_ptr, steamIDUser, pchName, out pData);
}
public virtual bool /*bool*/ ISteamGameServerStats_GetUserAchievement( ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_GetUserAchievement(_ptr, steamIDUser, pchName, ref pbAchieved);
}
public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat( ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_SetUserStat(_ptr, steamIDUser, pchName, nData);
}
public virtual bool /*bool*/ ISteamGameServerStats_SetUserStat0( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_SetUserStat0(_ptr, steamIDUser, pchName, fData);
}
public virtual bool /*bool*/ ISteamGameServerStats_UpdateUserAvgRateStat( ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat(_ptr, steamIDUser, pchName, flCountThisSession, dSessionLength);
}
public virtual bool /*bool*/ ISteamGameServerStats_SetUserAchievement( ulong steamIDUser, string /*const char **/ pchName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_SetUserAchievement(_ptr, steamIDUser, pchName);
}
public virtual bool /*bool*/ ISteamGameServerStats_ClearUserAchievement( ulong steamIDUser, string /*const char **/ pchName )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_ClearUserAchievement(_ptr, steamIDUser, pchName);
}
public virtual SteamAPICall_t /*(SteamAPICall_t)*/ ISteamGameServerStats_StoreUserStats( ulong steamIDUser )
{
if ( _ptr == IntPtr.Zero ) throw new System.Exception( "ISteamGameServerStats _ptr is null!" );
return Native.SteamAPI_ISteamGameServerStats_StoreUserStats(_ptr, steamIDUser);
}
public virtual bool /*bool*/ SteamApi_SteamAPI_Init()
{
return Native.SteamAPI_Init();
}
public virtual void /*void*/ SteamApi_SteamAPI_RunCallbacks()
{
Native.SteamAPI_RunCallbacks();
}
public virtual void /*void*/ SteamApi_SteamGameServer_RunCallbacks()
{
Native.SteamGameServer_RunCallbacks();
}
public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback )
{
Native.SteamAPI_RegisterCallback(pCallback, callback);
}
public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback )
{
Native.SteamAPI_UnregisterCallback(pCallback);
}
public virtual void /*void*/ SteamApi_SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback )
{
Native.SteamAPI_RegisterCallResult(pCallback, callback);
}
public virtual void /*void*/ SteamApi_SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback )
{
Native.SteamAPI_UnregisterCallResult(pCallback, callback);
}
public virtual bool /*bool*/ SteamApi_SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString )
{
return Native.SteamInternal_GameServer_Init(unIP, usPort, usGamePort, usQueryPort, eServerMode, pchVersionString);
}
public virtual void /*void*/ SteamApi_SteamAPI_Shutdown()
{
Native.SteamAPI_Shutdown();
}
public virtual void /*void*/ SteamApi_SteamGameServer_Shutdown()
{
Native.SteamGameServer_Shutdown();
}
public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamAPI_GetHSteamUser()
{
return Native.SteamAPI_GetHSteamUser();
}
public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamAPI_GetHSteamPipe()
{
return Native.SteamAPI_GetHSteamPipe();
}
public virtual HSteamUser /*(HSteamUser)*/ SteamApi_SteamGameServer_GetHSteamUser()
{
return Native.SteamGameServer_GetHSteamUser();
}
public virtual HSteamPipe /*(HSteamPipe)*/ SteamApi_SteamGameServer_GetHSteamPipe()
{
return Native.SteamGameServer_GetHSteamPipe();
}
public virtual IntPtr /*void **/ SteamApi_SteamInternal_CreateInterface( string /*const char **/ version )
{
return Native.SteamInternal_CreateInterface(version);
}
public virtual bool /*bool*/ SteamApi_SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID )
{
return Native.SteamAPI_RestartAppIfNecessary(unOwnAppID);
}
internal static unsafe class Native
{
//
// ISteamClient
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_ISteamClient_CreateSteamPipe( IntPtr ISteamClient );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamClient_BReleaseSteamPipe( IntPtr ISteamClient, int hSteamPipe );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_ConnectToGlobalUser( IntPtr ISteamClient, int hSteamPipe );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamClient_CreateLocalUser( IntPtr ISteamClient, out int phSteamPipe, AccountType /*EAccountType*/ eAccountType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamClient_ReleaseUser( IntPtr ISteamClient, int hSteamPipe, int hUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamUser **/ SteamAPI_ISteamClient_GetISteamUser( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamGameServer **/ SteamAPI_ISteamClient_GetISteamGameServer( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamClient_SetLocalIPBinding( IntPtr ISteamClient, uint /*uint32*/ unIP, ushort /*uint16*/ usPort );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamFriends **/ SteamAPI_ISteamClient_GetISteamFriends( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamUtils **/ SteamAPI_ISteamClient_GetISteamUtils( IntPtr ISteamClient, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamMatchmaking **/ SteamAPI_ISteamClient_GetISteamMatchmaking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamMatchmakingServers **/ SteamAPI_ISteamClient_GetISteamMatchmakingServers( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*void **/ SteamAPI_ISteamClient_GetISteamGenericInterface( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamUserStats **/ SteamAPI_ISteamClient_GetISteamUserStats( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamGameServerStats **/ SteamAPI_ISteamClient_GetISteamGameServerStats( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamApps **/ SteamAPI_ISteamClient_GetISteamApps( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamNetworking **/ SteamAPI_ISteamClient_GetISteamNetworking( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamRemoteStorage **/ SteamAPI_ISteamClient_GetISteamRemoteStorage( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamScreenshots **/ SteamAPI_ISteamClient_GetISteamScreenshots( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamClient_GetIPCCallCount( IntPtr ISteamClient );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamClient_SetWarningMessageHook( IntPtr ISteamClient, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamClient_BShutdownIfAllPipesClosed( IntPtr ISteamClient );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamHTTP **/ SteamAPI_ISteamClient_GetISteamHTTP( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamUnifiedMessages **/ SteamAPI_ISteamClient_GetISteamUnifiedMessages( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamController **/ SteamAPI_ISteamClient_GetISteamController( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamUGC **/ SteamAPI_ISteamClient_GetISteamUGC( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamAppList **/ SteamAPI_ISteamClient_GetISteamAppList( IntPtr ISteamClient, int hSteamUser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamMusic **/ SteamAPI_ISteamClient_GetISteamMusic( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamMusicRemote **/ SteamAPI_ISteamClient_GetISteamMusicRemote( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamHTMLSurface **/ SteamAPI_ISteamClient_GetISteamHTMLSurface( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamInventory **/ SteamAPI_ISteamClient_GetISteamInventory( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class ISteamVideo **/ SteamAPI_ISteamClient_GetISteamVideo( IntPtr ISteamClient, int hSteamuser, int hSteamPipe, string /*const char **/ pchVersion );
//
// ISteamUser
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_ISteamUser_GetHSteamUser( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_BLoggedOn( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamUser_GetSteamID( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUser_InitiateGameConnection( IntPtr ISteamUser, IntPtr /*void **/ pAuthBlob, int /*int*/ cbMaxAuthBlob, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_TerminateGameConnection( IntPtr ISteamUser, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_TrackAppUsageEvent( IntPtr ISteamUser, ulong gameID, int /*int*/ eAppUsageEvent, string /*const char **/ pchExtraInfo );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetUserDataFolder( IntPtr ISteamUser, System.Text.StringBuilder /*char **/ pchBuffer, int /*int*/ cubBuffer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_StartVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_StopVoiceRecording( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetAvailableVoice( IntPtr ISteamUser, out uint /*uint32 **/ pcbCompressed, out uint /*uint32 **/ pcbUncompressed_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_GetVoice( IntPtr ISteamUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bWantUncompressed_Deprecated, IntPtr /*void **/ pUncompressedDestBuffer_Deprecated, uint /*uint32*/ cbUncompressedDestBufferSize_Deprecated, out uint /*uint32 **/ nUncompressBytesWritten_Deprecated, uint /*uint32*/ nUncompressedVoiceDesiredSampleRate_Deprecated );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern VoiceResult /*EVoiceResult*/ SteamAPI_ISteamUser_DecompressVoice( IntPtr ISteamUser, IntPtr /*const void **/ pCompressed, uint /*uint32*/ cbCompressed, IntPtr /*void **/ pDestBuffer, uint /*uint32*/ cbDestBufferSize, out uint /*uint32 **/ nBytesWritten, uint /*uint32*/ nDesiredSampleRate );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUser_GetVoiceOptimalSampleRate( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamUser_GetAuthSessionTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamUser_BeginAuthSession( IntPtr ISteamUser, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_EndAuthSession( IntPtr ISteamUser, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_CancelAuthTicket( IntPtr ISteamUser, uint hAuthTicket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamUser_UserHasLicenseForApp( IntPtr ISteamUser, ulong steamID, uint appID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsBehindNAT( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUser_AdvertiseGame( IntPtr ISteamUser, ulong steamIDGameServer, uint /*uint32*/ unIPServer, ushort /*uint16*/ usPortServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pDataToInclude, int /*int*/ cbDataToInclude );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_GetEncryptedAppTicket( IntPtr ISteamUser, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUser_GetGameBadgeLevel( IntPtr ISteamUser, int /*int*/ nSeries, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bFoil );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUser_GetPlayerSteamLevel( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUser_RequestStoreAuthURL( IntPtr ISteamUser, string /*const char **/ pchRedirectURL );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneVerified( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsTwoFactorEnabled( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneIdentifying( IntPtr ISteamUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUser_BIsPhoneRequiringVerification( IntPtr ISteamUser );
//
// ISteamFriends
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetPersonaName( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_SetPersonaName( IntPtr ISteamFriends, string /*const char **/ pchPersonaName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetPersonaState( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCount( IntPtr ISteamFriends, int /*int*/ iFriendFlags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendByIndex( IntPtr ISteamFriends, int /*int*/ iFriend, int /*int*/ iFriendFlags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern FriendRelationship /*EFriendRelationship*/ SteamAPI_ISteamFriends_GetFriendRelationship( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern PersonaState /*EPersonaState*/ SteamAPI_ISteamFriends_GetFriendPersonaState( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaName( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetFriendGamePlayed( IntPtr ISteamFriends, ulong steamIDFriend, ref FriendGameInfo_t.PackSmall /*struct FriendGameInfo_t **/ pFriendGameInfo );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendPersonaNameHistory( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iPersonaName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendSteamLevel( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetPlayerNickname( IntPtr ISteamFriends, ulong steamIDPlayer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupCount( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern FriendsGroupID_t /*(FriendsGroupID_t)*/ SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex( IntPtr ISteamFriends, int /*int*/ iFG );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendsGroupName( IntPtr ISteamFriends, short friendsGroupID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersCount( IntPtr ISteamFriends, short friendsGroupID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_GetFriendsGroupMembersList( IntPtr ISteamFriends, short friendsGroupID, IntPtr /*class CSteamID **/ pOutSteamIDMembers, int /*int*/ nMembersCount );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_HasFriend( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iFriendFlags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanCount( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanByIndex( IntPtr ISteamFriends, int /*int*/ iClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetClanName( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetClanTag( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_GetClanActivityCounts( IntPtr ISteamFriends, ulong steamIDClan, out int /*int **/ pnOnline, out int /*int **/ pnInGame, out int /*int **/ pnChatting );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_DownloadClanActivityCounts( IntPtr ISteamFriends, IntPtr /*class CSteamID **/ psteamIDClans, int /*int*/ cClansToRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCountFromSource( IntPtr ISteamFriends, ulong steamIDSource );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetFriendFromSourceByIndex( IntPtr ISteamFriends, ulong steamIDSource, int /*int*/ iFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsUserInSource( IntPtr ISteamFriends, ulong steamIDUser, ulong steamIDSource );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_SetInGameVoiceSpeaking( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSpeaking );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlay( IntPtr ISteamFriends, string /*const char **/ pchDialog );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToUser( IntPtr ISteamFriends, string /*const char **/ pchDialog, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage( IntPtr ISteamFriends, string /*const char **/ pchURL );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayToStore( IntPtr ISteamFriends, uint nAppID, OverlayToStoreFlag /*EOverlayToStoreFlag*/ eFlag );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_SetPlayedWith( IntPtr ISteamFriends, ulong steamIDUserPlayedWith );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( IntPtr ISteamFriends, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetSmallFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetMediumFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetLargeFriendAvatar( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_RequestUserInformation( IntPtr ISteamFriends, ulong steamIDUser, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireNameOnly );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_RequestClanOfficerList( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOwner( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanOfficerCount( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetClanOfficerByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iOfficer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamFriends_GetUserRestrictions( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetRichPresence( IntPtr ISteamFriends, string /*const char **/ pchKey, string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_ClearRichPresence( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamFriends_RequestFriendRichPresence( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_InviteUserToGame( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchConnectString );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetCoplayFriendCount( IntPtr ISteamFriends );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetCoplayFriend( IntPtr ISteamFriends, int /*int*/ iCoplayFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendCoplayTime( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern AppId_t /*(AppId_t)*/ SteamAPI_ISteamFriends_GetFriendCoplayGame( IntPtr ISteamFriends, ulong steamIDFriend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_JoinClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_LeaveClanChatRoom( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMemberCount( IntPtr ISteamFriends, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamFriends_GetChatMemberByIndex( IntPtr ISteamFriends, ulong steamIDClan, int /*int*/ iUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SendClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, string /*const char **/ pchText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetClanChatMessage( IntPtr ISteamFriends, ulong steamIDClanChat, int /*int*/ iMessage, IntPtr /*void **/ prgchText, int /*int*/ cchTextMax, out ChatEntryType /*EChatEntryType **/ peChatEntryType, out ulong psteamidChatter );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatAdmin( IntPtr ISteamFriends, ulong steamIDClanChat, ulong steamIDUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam( IntPtr ISteamFriends, ulong steamIDClanChat );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_OpenClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_CloseClanChatWindowInSteam( IntPtr ISteamFriends, ulong steamIDClanChat );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_SetListenForFriendsMessages( IntPtr ISteamFriends, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bInterceptEnabled );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamFriends_ReplyToFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, string /*const char **/ pchMsgToSend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamFriends_GetFriendMessage( IntPtr ISteamFriends, ulong steamIDFriend, int /*int*/ iMessageID, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_GetFollowerCount( IntPtr ISteamFriends, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_IsFollowing( IntPtr ISteamFriends, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamFriends_EnumerateFollowingList( IntPtr ISteamFriends, uint /*uint32*/ unStartIndex );
//
// ISteamUtils
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceAppActive( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetSecondsSinceComputerActive( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern Universe /*EUniverse*/ SteamAPI_ISteamUtils_GetConnectedUniverse( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetServerRealTime( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamUtils_GetIPCountry( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageSize( IntPtr ISteamUtils, int /*int*/ iImage, out uint /*uint32 **/ pnWidth, out uint /*uint32 **/ pnHeight );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetImageRGBA( IntPtr ISteamUtils, int /*int*/ iImage, IntPtr /*uint8 **/ pubDest, int /*int*/ nDestBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetCSERIPPort( IntPtr ISteamUtils, out uint /*uint32 **/ unIP, out ushort /*uint16 **/ usPort );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern byte /*uint8*/ SteamAPI_ISteamUtils_GetCurrentBatteryPower( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetAppID( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationPosition( IntPtr ISteamUtils, NotificationPosition /*ENotificationPosition*/ eNotificationPosition );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsAPICallCompleted( IntPtr ISteamUtils, ulong hSteamAPICall, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICallFailure /*ESteamAPICallFailure*/ SteamAPI_ISteamUtils_GetAPICallFailureReason( IntPtr ISteamUtils, ulong hSteamAPICall );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetAPICallResult( IntPtr ISteamUtils, ulong hSteamAPICall, IntPtr /*void **/ pCallback, int /*int*/ cubCallback, int /*int*/ iCallbackExpected, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbFailed );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetIPCCallCount( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUtils_SetWarningMessageHook( IntPtr ISteamUtils, IntPtr /*SteamAPIWarningMessageHook_t*/ pFunction );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsOverlayEnabled( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_BOverlayNeedsPresent( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUtils_CheckFileSignature( IntPtr ISteamUtils, string /*const char **/ szFileName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_ShowGamepadTextInput( IntPtr ISteamUtils, GamepadTextInputMode /*EGamepadTextInputMode*/ eInputMode, GamepadTextInputLineMode /*EGamepadTextInputLineMode*/ eLineInputMode, string /*const char **/ pchDescription, uint /*uint32*/ unCharMax, string /*const char **/ pchExistingText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextLength( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_GetEnteredGamepadTextInput( IntPtr ISteamUtils, System.Text.StringBuilder /*char **/ pchText, uint /*uint32*/ cchText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamUtils_GetSteamUILanguage( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamRunningInVR( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUtils_SetOverlayNotificationInset( IntPtr ISteamUtils, int /*int*/ nHorizontalInset, int /*int*/ nVerticalInset );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsSteamInBigPictureMode( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUtils_StartVRDashboard( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled( IntPtr ISteamUtils );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled( IntPtr ISteamUtils, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled );
//
// ISteamMatchmaking
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetFavoriteGameCount( IntPtr ISteamMatchmaking );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetFavoriteGame( IntPtr ISteamMatchmaking, int /*int*/ iGame, ref uint pnAppID, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnConnPort, out ushort /*uint16 **/ pnQueryPort, out uint /*uint32 **/ punFlags, out uint /*uint32 **/ pRTime32LastPlayedOnServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_AddFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags, uint /*uint32*/ rTime32LastPlayedOnServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RemoveFavoriteGame( IntPtr ISteamMatchmaking, uint nAppID, uint /*uint32*/ nIP, ushort /*uint16*/ nConnPort, ushort /*uint16*/ nQueryPort, uint /*uint32*/ unFlags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_RequestLobbyList( IntPtr ISteamMatchmaking );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, string /*const char **/ pchValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToMatch, LobbyComparison /*ELobbyComparison*/ eComparisonType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter( IntPtr ISteamMatchmaking, string /*const char **/ pchKeyToMatch, int /*int*/ nValueToBeCloseTo );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( IntPtr ISteamMatchmaking, int /*int*/ nSlotsAvailable );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter( IntPtr ISteamMatchmaking, LobbyDistanceFilter /*ELobbyDistanceFilter*/ eLobbyDistanceFilter );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter( IntPtr ISteamMatchmaking, int /*int*/ cMaxResults );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyByIndex( IntPtr ISteamMatchmaking, int /*int*/ iLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_CreateLobby( IntPtr ISteamMatchmaking, LobbyType /*ELobbyType*/ eLobbyType, int /*int*/ cMaxMembers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamMatchmaking_JoinLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_LeaveLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_InviteUserToLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDInvitee );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetNumLobbyMembers( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iMember );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyDataCount( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iLobbyData, System.Text.StringBuilder /*char **/ pchKey, int /*int*/ cchKeyBufferSize, System.Text.StringBuilder /*char **/ pchValue, int /*int*/ cchValueBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_DeleteLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamMatchmaking_GetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDUser, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberData( IntPtr ISteamMatchmaking, ulong steamIDLobby, string /*const char **/ pchKey, string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SendLobbyChatMsg( IntPtr ISteamMatchmaking, ulong steamIDLobby, IntPtr /*const void **/ pvMsgBody, int /*int*/ cubMsgBody );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyChatEntry( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ iChatID, out ulong pSteamIDUser, IntPtr /*void **/ pvData, int /*int*/ cubData, out ChatEntryType /*EChatEntryType **/ peChatEntryType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_RequestLobbyData( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmaking_SetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, uint /*uint32*/ unGameServerIP, ushort /*uint16*/ unGameServerPort, ulong steamIDGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_GetLobbyGameServer( IntPtr ISteamMatchmaking, ulong steamIDLobby, out uint /*uint32 **/ punGameServerIP, out ushort /*uint16 **/ punGameServerPort, out ulong psteamIDGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby, int /*int*/ cMaxMembers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyType( IntPtr ISteamMatchmaking, ulong steamIDLobby, LobbyType /*ELobbyType*/ eLobbyType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyJoinable( IntPtr ISteamMatchmaking, ulong steamIDLobby, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bLobbyJoinable );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamMatchmaking_GetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLobbyOwner( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDNewOwner );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmaking_SetLinkedLobby( IntPtr ISteamMatchmaking, ulong steamIDLobby, ulong steamIDLobbyDependent );
//
// ISteamMatchmakingServers
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestInternetServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestLANServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerListRequest /*(HServerListRequest)*/ SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList( IntPtr ISteamMatchmakingServers, uint iApp, IntPtr /*struct MatchMakingKeyValuePair_t ***/ ppchFilters, uint /*uint32*/ nFilters, IntPtr /*class ISteamMatchmakingServerListResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_ReleaseRequest( IntPtr ISteamMatchmakingServers, IntPtr hServerListRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*class gameserveritem_t **/ SteamAPI_ISteamMatchmakingServers_GetServerDetails( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshQuery( IntPtr ISteamMatchmakingServers, IntPtr hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMatchmakingServers_IsRefreshing( IntPtr ISteamMatchmakingServers, IntPtr hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamMatchmakingServers_GetServerCount( IntPtr ISteamMatchmakingServers, IntPtr hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_RefreshServer( IntPtr ISteamMatchmakingServers, IntPtr hRequest, int /*int*/ iServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PingServer( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPingResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_PlayerDetails( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingPlayersResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HServerQuery /*(HServerQuery)*/ SteamAPI_ISteamMatchmakingServers_ServerRules( IntPtr ISteamMatchmakingServers, uint /*uint32*/ unIP, ushort /*uint16*/ usPort, IntPtr /*class ISteamMatchmakingRulesResponse **/ pRequestServersResponse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMatchmakingServers_CancelServerQuery( IntPtr ISteamMatchmakingServers, int hServerQuery );
//
// ISteamRemoteStorage
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWrite( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, int /*int32*/ cubData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_FileRead( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, IntPtr /*const void **/ pvData, uint /*uint32*/ cubData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileReadAsync( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, uint /*uint32*/ nOffset, uint /*uint32*/ cubToRead );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete( IntPtr ISteamRemoteStorage, ulong hReadCall, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cubToRead );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileForget( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileDelete( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_FileShare( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_SetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, RemoteStoragePlatform /*ERemoteStoragePlatform*/ eRemoteStoragePlatform );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UGCFileWriteStreamHandle_t /*(UGCFileWriteStreamHandle_t)*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk( IntPtr ISteamRemoteStorage, ulong writeHandle, IntPtr /*const void **/ pvData, int /*int32*/ cubData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamClose( IntPtr ISteamRemoteStorage, ulong writeHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel( IntPtr ISteamRemoteStorage, ulong writeHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FileExists( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_FilePersisted( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileSize( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern long /*int64*/ SteamAPI_ISteamRemoteStorage_GetFileTimestamp( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern RemoteStoragePlatform /*ERemoteStoragePlatform*/ SteamAPI_ISteamRemoteStorage_GetSyncPlatforms( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetFileCount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamRemoteStorage_GetFileNameAndSize( IntPtr ISteamRemoteStorage, int /*int*/ iFile, out int /*int32 **/ pnFileSizeInBytes );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetQuota( IntPtr ISteamRemoteStorage, out ulong /*uint64 **/ pnTotalBytes, out ulong /*uint64 **/ puAvailableBytes );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp( IntPtr ISteamRemoteStorage, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bEnabled );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownload( IntPtr ISteamRemoteStorage, ulong hContent, uint /*uint32*/ unPriority );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress( IntPtr ISteamRemoteStorage, ulong hContent, out int /*int32 **/ pnBytesDownloaded, out int /*int32 **/ pnBytesExpected );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_GetUGCDetails( IntPtr ISteamRemoteStorage, ulong hContent, ref uint pnAppID, System.Text.StringBuilder /*char ***/ ppchName, out int /*int32 **/ pnFileSizeInBytes, out ulong pSteamIDOwner );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_UGCRead( IntPtr ISteamRemoteStorage, ulong hContent, IntPtr /*void **/ pvData, int /*int32*/ cubDataToRead, uint /*uint32*/ cOffset, UGCReadAction /*EUGCReadAction*/ eAction );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCCount( IntPtr ISteamRemoteStorage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UGCHandle_t /*(UGCHandle_t)*/ SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle( IntPtr ISteamRemoteStorage, int /*int32*/ iCachedContent );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishWorkshopFile( IntPtr ISteamRemoteStorage, string /*const char **/ pchFile, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pTags, WorkshopFileType /*EWorkshopFileType*/ eWorkshopFileType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern PublishedFileUpdateHandle_t /*(PublishedFileUpdateHandle_t)*/ SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest( IntPtr ISteamRemoteStorage, ulong unPublishedFileId );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchPreviewFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchTitle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchDescription );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility( IntPtr ISteamRemoteStorage, ulong updateHandle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags( IntPtr ISteamRemoteStorage, ulong updateHandle, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate( IntPtr ISteamRemoteStorage, ulong updateHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, uint /*uint32*/ unMaxSecondsOld );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_DeletePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles( IntPtr ISteamRemoteStorage, uint /*uint32*/ unStartIndex );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile( IntPtr ISteamRemoteStorage, ulong unPublishedFileId );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( IntPtr ISteamRemoteStorage, ulong updateHandle, string /*const char **/ pchChangeDescription );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails( IntPtr ISteamRemoteStorage, ulong unPublishedFileId );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( IntPtr ISteamRemoteStorage, ulong steamId, uint /*uint32*/ unStartIndex, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pRequiredTags, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pExcludedTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_PublishVideo( IntPtr ISteamRemoteStorage, WorkshopVideoProvider /*EWorkshopVideoProvider*/ eVideoProvider, string /*const char **/ pchVideoAccount, string /*const char **/ pchVideoIdentifier, string /*const char **/ pchPreviewFile, uint nConsumerAppId, string /*const char **/ pchTitle, string /*const char **/ pchDescription, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction( IntPtr ISteamRemoteStorage, ulong unPublishedFileId, WorkshopFileAction /*EWorkshopFileAction*/ eAction );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( IntPtr ISteamRemoteStorage, WorkshopFileAction /*EWorkshopFileAction*/ eAction, uint /*uint32*/ unStartIndex );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( IntPtr ISteamRemoteStorage, WorkshopEnumerationType /*EWorkshopEnumerationType*/ eEnumerationType, uint /*uint32*/ unStartIndex, uint /*uint32*/ unCount, uint /*uint32*/ unDays, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pTags, ref SteamParamStringArray_t.PackSmall /*struct SteamParamStringArray_t **/ pUserTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation( IntPtr ISteamRemoteStorage, ulong hContent, string /*const char **/ pchLocation, uint /*uint32*/ unPriority );
//
// ISteamUserStats
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_RequestCurrentStats( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, out int /*int32 **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat( IntPtr ISteamUserStats, string /*const char **/ pchName, int /*int32*/ nData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetStat0( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ fData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_UpdateAvgRateStat( IntPtr ISteamUserStats, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_SetAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ClearAchievement( IntPtr ISteamUserStats, string /*const char **/ pchName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime( IntPtr ISteamUserStats, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_StoreStats( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetAchievementIcon( IntPtr ISteamUserStats, string /*const char **/ pchName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute( IntPtr ISteamUserStats, string /*const char **/ pchName, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_IndicateAchievementProgress( IntPtr ISteamUserStats, string /*const char **/ pchName, uint /*uint32*/ nCurProgress, uint /*uint32*/ nMaxProgress );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUserStats_GetNumAchievements( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamUserStats_GetAchievementName( IntPtr ISteamUserStats, uint /*uint32*/ iAchievement );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestUserStats( IntPtr ISteamUserStats, ulong steamIDUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserStat0( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievement( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime( IntPtr ISteamUserStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved, out uint /*uint32 **/ punUnlockTime );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_ResetAllStats( IntPtr ISteamUserStats, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAchievementsToo );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindOrCreateLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName, LeaderboardSortMethod /*ELeaderboardSortMethod*/ eLeaderboardSortMethod, LeaderboardDisplayType /*ELeaderboardDisplayType*/ eLeaderboardDisplayType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_FindLeaderboard( IntPtr ISteamUserStats, string /*const char **/ pchLeaderboardName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamUserStats_GetLeaderboardName( IntPtr ISteamUserStats, ulong hSteamLeaderboard );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetLeaderboardEntryCount( IntPtr ISteamUserStats, ulong hSteamLeaderboard );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern LeaderboardSortMethod /*ELeaderboardSortMethod*/ SteamAPI_ISteamUserStats_GetLeaderboardSortMethod( IntPtr ISteamUserStats, ulong hSteamLeaderboard );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern LeaderboardDisplayType /*ELeaderboardDisplayType*/ SteamAPI_ISteamUserStats_GetLeaderboardDisplayType( IntPtr ISteamUserStats, ulong hSteamLeaderboard );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntries( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardDataRequest /*ELeaderboardDataRequest*/ eLeaderboardDataRequest, int /*int*/ nRangeStart, int /*int*/ nRangeEnd );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers( IntPtr ISteamUserStats, ulong hSteamLeaderboard, IntPtr /*class CSteamID **/ prgUsers, int /*int*/ cUsers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry( IntPtr ISteamUserStats, ulong hSteamLeaderboardEntries, int /*int*/ index, ref LeaderboardEntry_t.PackSmall /*struct LeaderboardEntry_t **/ pLeaderboardEntry, IntPtr /*int32 **/ pDetails, int /*int*/ cDetailsMax );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_UploadLeaderboardScore( IntPtr ISteamUserStats, ulong hSteamLeaderboard, LeaderboardUploadScoreMethod /*ELeaderboardUploadScoreMethod*/ eLeaderboardUploadScoreMethod, int /*int32*/ nScore, int[] /*const int32 **/ pScoreDetails, int /*int*/ cScoreDetailsCount );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_AttachLeaderboardUGC( IntPtr ISteamUserStats, ulong hSteamLeaderboard, ulong hUGC );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages( IntPtr ISteamUserStats );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo( IntPtr ISteamUserStats, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo( IntPtr ISteamUserStats, int /*int*/ iIteratorPrevious, System.Text.StringBuilder /*char **/ pchName, uint /*uint32*/ unNameBufLen, out float /*float **/ pflPercent, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetAchievementAchievedPercent( IntPtr ISteamUserStats, string /*const char **/ pchName, out float /*float **/ pflPercent );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUserStats_RequestGlobalStats( IntPtr ISteamUserStats, int /*int*/ nHistoryDays );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUserStats_GetGlobalStat0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out long /*int64 **/ pData, uint /*uint32*/ cubData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int32*/ SteamAPI_ISteamUserStats_GetGlobalStatHistory0( IntPtr ISteamUserStats, string /*const char **/ pchStatName, out double /*double **/ pData, uint /*uint32*/ cubData );
//
// ISteamApps
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribed( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsLowViolence( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsCybercafe( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsVACBanned( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamApps_GetCurrentGameLanguage( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamApps_GetAvailableGameLanguages( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedApp( IntPtr ISteamApps, uint appID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsDlcInstalled( IntPtr ISteamApps, uint appID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime( IntPtr ISteamApps, uint nAppID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamApps_GetDLCCount( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BGetDLCDataByIndex( IntPtr ISteamApps, int /*int*/ iDLC, ref uint pAppID, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAvailable, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamApps_InstallDLC( IntPtr ISteamApps, uint nAppID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamApps_UninstallDLC( IntPtr ISteamApps, uint nAppID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey( IntPtr ISteamApps, uint nAppID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetCurrentBetaName( IntPtr ISteamApps, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_MarkContentCorrupt( IntPtr ISteamApps, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMissingFilesOnly );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetInstalledDepots( IntPtr ISteamApps, uint appID, IntPtr /*DepotId_t **/ pvecDepots, uint /*uint32*/ cMaxDepots );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamApps_GetAppInstallDir( IntPtr ISteamApps, uint appID, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_BIsAppInstalled( IntPtr ISteamApps, uint appID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamApps_GetAppOwner( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamApps_GetLaunchQueryParam( IntPtr ISteamApps, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamApps_GetDlcDownloadProgress( IntPtr ISteamApps, uint nAppID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamApps_GetAppBuildId( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys( IntPtr ISteamApps );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamApps_GetFileDetails( IntPtr ISteamApps, string /*const char **/ pszFileName );
//
// ISteamNetworking
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendP2PPacket( IntPtr ISteamNetworking, ulong steamIDRemote, IntPtr /*const void **/ pubData, uint /*uint32*/ cubData, P2PSend /*EP2PSend*/ eP2PSendType, int /*int*/ nChannel );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsP2PPacketAvailable( IntPtr ISteamNetworking, out uint /*uint32 **/ pcubMsgSize, int /*int*/ nChannel );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_ReadP2PPacket( IntPtr ISteamNetworking, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, out ulong psteamIDRemote, int /*int*/ nChannel );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PSessionWithUser( IntPtr ISteamNetworking, ulong steamIDRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_CloseP2PChannelWithUser( IntPtr ISteamNetworking, ulong steamIDRemote, int /*int*/ nChannel );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetP2PSessionState( IntPtr ISteamNetworking, ulong steamIDRemote, ref P2PSessionState_t.PackSmall /*struct P2PSessionState_t **/ pConnectionState );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_AllowP2PPacketRelay( IntPtr ISteamNetworking, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllow );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SNetListenSocket_t /*(SNetListenSocket_t)*/ SteamAPI_ISteamNetworking_CreateListenSocket( IntPtr ISteamNetworking, int /*int*/ nVirtualP2PPort, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateP2PConnectionSocket( IntPtr ISteamNetworking, ulong steamIDTarget, int /*int*/ nVirtualPort, int /*int*/ nTimeoutSec, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowUseOfPacketRelay );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SNetSocket_t /*(SNetSocket_t)*/ SteamAPI_ISteamNetworking_CreateConnectionSocket( IntPtr ISteamNetworking, uint /*uint32*/ nIP, ushort /*uint16*/ nPort, int /*int*/ nTimeoutSec );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroySocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_DestroyListenSocket( IntPtr ISteamNetworking, uint hSocket, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bNotifyRemoteEnd );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_SendDataOnSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubData, uint /*uint32*/ cubData, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReliable );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailableOnSocket( IntPtr ISteamNetworking, uint hSocket, out uint /*uint32 **/ pcubMsgSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveDataFromSocket( IntPtr ISteamNetworking, uint hSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_IsDataAvailable( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_RetrieveData( IntPtr ISteamNetworking, uint hListenSocket, IntPtr /*void **/ pubDest, uint /*uint32*/ cubDest, out uint /*uint32 **/ pcubMsgSize, ref uint phSocket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetSocketInfo( IntPtr ISteamNetworking, uint hSocket, out ulong pSteamIDRemote, IntPtr /*int **/ peSocketStatus, out uint /*uint32 **/ punIPRemote, out ushort /*uint16 **/ punPortRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamNetworking_GetListenSocketInfo( IntPtr ISteamNetworking, uint hListenSocket, out uint /*uint32 **/ pnIP, out ushort /*uint16 **/ pnPort );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SNetSocketConnectionType /*ESNetSocketConnectionType*/ SteamAPI_ISteamNetworking_GetSocketConnectionType( IntPtr ISteamNetworking, uint hSocket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamNetworking_GetMaxPacketSize( IntPtr ISteamNetworking, uint hSocket );
//
// ISteamScreenshots
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_WriteScreenshot( IntPtr ISteamScreenshots, IntPtr /*void **/ pubRGB, uint /*uint32*/ cubRGB, int /*int*/ nWidth, int /*int*/ nHeight );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddScreenshotToLibrary( IntPtr ISteamScreenshots, string /*const char **/ pchFilename, string /*const char **/ pchThumbnailFilename, int /*int*/ nWidth, int /*int*/ nHeight );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamScreenshots_TriggerScreenshot( IntPtr ISteamScreenshots );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamScreenshots_HookScreenshots( IntPtr ISteamScreenshots, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHook );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_SetLocation( IntPtr ISteamScreenshots, uint hScreenshot, string /*const char **/ pchLocation );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagUser( IntPtr ISteamScreenshots, uint hScreenshot, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_TagPublishedFile( IntPtr ISteamScreenshots, uint hScreenshot, ulong unPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamScreenshots_IsScreenshotsHooked( IntPtr ISteamScreenshots );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ScreenshotHandle /*(ScreenshotHandle)*/ SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary( IntPtr ISteamScreenshots, VRScreenshotType /*EVRScreenshotType*/ eType, string /*const char **/ pchFilename, string /*const char **/ pchVRFilename );
//
// ISteamMusic
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsEnabled( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusic_BIsPlaying( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern AudioPlayback_Status /*AudioPlayback_Status*/ SteamAPI_ISteamMusic_GetPlaybackStatus( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMusic_Play( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMusic_Pause( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayPrevious( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMusic_PlayNext( IntPtr ISteamMusic );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamMusic_SetVolume( IntPtr ISteamMusic, float /*float*/ flVolume );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern float /*float*/ SteamAPI_ISteamMusic_GetVolume( IntPtr ISteamMusic );
//
// ISteamMusicRemote
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote( IntPtr ISteamMusicRemote, string /*const char **/ pchName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_BActivationSuccess( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetDisplayName( IntPtr ISteamMusicRemote, string /*const char **/ pchDisplayName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayPrevious( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlayNext( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnableQueue( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_EnablePlaylists( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus( IntPtr ISteamMusicRemote, AudioPlayback_Status /*AudioPlayback_Status*/ nStatus );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateShuffled( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateLooped( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateVolume( IntPtr ISteamMusicRemote, float /*float*/ flValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryWillChange( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable( IntPtr ISteamMusicRemote, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAvailable );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText( IntPtr ISteamMusicRemote, string /*const char **/ pchText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( IntPtr ISteamMusicRemote, int /*int*/ nValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt( IntPtr ISteamMusicRemote, IntPtr /*void **/ pvBuffer, uint /*uint32*/ cbBufferLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_CurrentEntryDidChange( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueWillChange( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetQueueEntries( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry( IntPtr ISteamMusicRemote, int /*int*/ nID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_QueueDidChange( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistWillChange( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_ResetPlaylistEntries( IntPtr ISteamMusicRemote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID, int /*int*/ nPosition, string /*const char **/ pchEntryText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry( IntPtr ISteamMusicRemote, int /*int*/ nID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamMusicRemote_PlaylistDidChange( IntPtr ISteamMusicRemote );
//
// ISteamHTTP
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HTTPRequestHandle /*(HTTPRequestHandle)*/ SteamAPI_ISteamHTTP_CreateHTTPRequest( IntPtr ISteamHTTP, HTTPMethod /*EHTTPMethod*/ eHTTPRequestMethod, string /*const char **/ pchAbsoluteURL );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestContextValue( IntPtr ISteamHTTP, uint hRequest, ulong /*uint64*/ ulContextValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unTimeoutSeconds );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, string /*const char **/ pchHeaderValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchParamName, string /*const char **/ pchParamValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequest( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse( IntPtr ISteamHTTP, uint hRequest, ref ulong pCallHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_DeferHTTPRequest( IntPtr ISteamHTTP, uint hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_PrioritizeHTTPRequest( IntPtr ISteamHTTP, uint hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out uint /*uint32 **/ unResponseHeaderSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchHeaderName, out byte /*uint8 **/ pHeaderValueBuffer, uint /*uint32*/ unBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodySize( IntPtr ISteamHTTP, uint hRequest, out uint /*uint32 **/ unBodySize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPResponseBodyData( IntPtr ISteamHTTP, uint hRequest, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ cOffset, out byte /*uint8 **/ pBodyDataBuffer, uint /*uint32*/ unBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseHTTPRequest( IntPtr ISteamHTTP, uint hRequest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct( IntPtr ISteamHTTP, uint hRequest, out float /*float **/ pflPercentOut );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchContentType, out byte /*uint8 **/ pubBody, uint /*uint32*/ unBodyLen );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HTTPCookieContainerHandle /*(HTTPCookieContainerHandle)*/ SteamAPI_ISteamHTTP_CreateCookieContainer( IntPtr ISteamHTTP, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowResponsesToModify );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_ReleaseCookieContainer( IntPtr ISteamHTTP, uint hCookieContainer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetCookie( IntPtr ISteamHTTP, uint hCookieContainer, string /*const char **/ pchHost, string /*const char **/ pchUrl, string /*const char **/ pchCookie );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer( IntPtr ISteamHTTP, uint hRequest, uint hCookieContainer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo( IntPtr ISteamHTTP, uint hRequest, string /*const char **/ pchUserAgentInfo );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRequireVerifiedCertificate );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( IntPtr ISteamHTTP, uint hRequest, uint /*uint32*/ unMilliseconds );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut( IntPtr ISteamHTTP, uint hRequest, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbWasTimedOut );
//
// ISteamUnifiedMessages
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ClientUnifiedMessageHandle /*(ClientUnifiedMessageHandle)*/ SteamAPI_ISteamUnifiedMessages_SendMethod( IntPtr ISteamUnifiedMessages, string /*const char **/ pchServiceMethod, IntPtr /*const void **/ pRequestBuffer, uint /*uint32*/ unRequestBufferSize, ulong /*uint64*/ unContext );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUnifiedMessages_GetMethodResponseInfo( IntPtr ISteamUnifiedMessages, ulong hHandle, out uint /*uint32 **/ punResponseSize, out Result /*EResult **/ peResult );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUnifiedMessages_GetMethodResponseData( IntPtr ISteamUnifiedMessages, ulong hHandle, IntPtr /*void **/ pResponseBuffer, uint /*uint32*/ unResponseBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAutoRelease );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUnifiedMessages_ReleaseMethod( IntPtr ISteamUnifiedMessages, ulong hHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUnifiedMessages_SendNotification( IntPtr ISteamUnifiedMessages, string /*const char **/ pchServiceNotification, IntPtr /*const void **/ pNotificationBuffer, uint /*uint32*/ unNotificationBufferSize );
//
// ISteamController
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamController_Init( IntPtr ISteamController );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamController_Shutdown( IntPtr ISteamController );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_RunFrame( IntPtr ISteamController );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamController_GetConnectedControllers( IntPtr ISteamController, IntPtr /*ControllerHandle_t **/ handlesOut );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamController_ShowBindingPanel( IntPtr ISteamController, ulong controllerHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetActionSetHandle( IntPtr ISteamController, string /*const char **/ pszActionSetName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_ActivateActionSet( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerActionSetHandle_t /*(ControllerActionSetHandle_t)*/ SteamAPI_ISteamController_GetCurrentActionSet( IntPtr ISteamController, ulong controllerHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerDigitalActionHandle_t /*(ControllerDigitalActionHandle_t)*/ SteamAPI_ISteamController_GetDigitalActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerDigitalActionData_t /*struct ControllerDigitalActionData_t*/ SteamAPI_ISteamController_GetDigitalActionData( IntPtr ISteamController, ulong controllerHandle, ulong digitalActionHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamController_GetDigitalActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong digitalActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerAnalogActionHandle_t /*(ControllerAnalogActionHandle_t)*/ SteamAPI_ISteamController_GetAnalogActionHandle( IntPtr ISteamController, string /*const char **/ pszActionName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerAnalogActionData_t /*struct ControllerAnalogActionData_t*/ SteamAPI_ISteamController_GetAnalogActionData( IntPtr ISteamController, ulong controllerHandle, ulong analogActionHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamController_GetAnalogActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong actionSetHandle, ulong analogActionHandle, out ControllerActionOrigin /*EControllerActionOrigin **/ originsOut );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_StopAnalogActionMomentum( IntPtr ISteamController, ulong controllerHandle, ulong eAction );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_TriggerHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_TriggerRepeatedHapticPulse( IntPtr ISteamController, ulong controllerHandle, SteamControllerPad /*ESteamControllerPad*/ eTargetPad, ushort /*unsigned short*/ usDurationMicroSec, ushort /*unsigned short*/ usOffMicroSec, ushort /*unsigned short*/ unRepeat, uint /*unsigned int*/ nFlags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_TriggerVibration( IntPtr ISteamController, ulong controllerHandle, ushort /*unsigned short*/ usLeftSpeed, ushort /*unsigned short*/ usRightSpeed );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamController_SetLEDColor( IntPtr ISteamController, ulong controllerHandle, byte /*uint8*/ nColorR, byte /*uint8*/ nColorG, byte /*uint8*/ nColorB, uint /*unsigned int*/ nFlags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamController_GetGamepadIndexForController( IntPtr ISteamController, ulong ulControllerHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerHandle_t /*(ControllerHandle_t)*/ SteamAPI_ISteamController_GetControllerForGamepadIndex( IntPtr ISteamController, int /*int*/ nIndex );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ControllerMotionData_t /*struct ControllerMotionData_t*/ SteamAPI_ISteamController_GetMotionData( IntPtr ISteamController, ulong controllerHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamController_ShowDigitalActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong digitalActionHandle, float /*float*/ flScale, float /*float*/ flXPosition, float /*float*/ flYPosition );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamController_ShowAnalogActionOrigins( IntPtr ISteamController, ulong controllerHandle, ulong analogActionHandle, float /*float*/ flScale, float /*float*/ flXPosition, float /*float*/ flYPosition );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamController_GetStringForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr SteamAPI_ISteamController_GetGlyphForActionOrigin( IntPtr ISteamController, ControllerActionOrigin /*EControllerActionOrigin*/ eOrigin );
//
// ISteamUGC
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUserUGCRequest( IntPtr ISteamUGC, uint unAccountID, UserUGCList /*EUserUGCList*/ eListType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingUGCType, UserUGCListSortOrder /*EUserUGCListSortOrder*/ eSortOrder, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryAllUGCRequest( IntPtr ISteamUGC, UGCQuery /*EUGCQuery*/ eQueryType, UGCMatchingUGCType /*EUGCMatchingUGCType*/ eMatchingeMatchingUGCTypeFileType, uint nCreatorAppID, uint nConsumerAppID, uint /*uint32*/ unPage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UGCQueryHandle_t /*(UGCQueryHandle_t)*/ SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SendQueryUGCRequest( IntPtr ISteamUGC, ulong handle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCResult( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ref SteamUGCDetails_t.PackSmall /*struct SteamUGCDetails_t **/ pDetails );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchURL, uint /*uint32*/ cchURLSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCMetadata( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, System.Text.StringBuilder /*char **/ pchMetadata, uint /*uint32*/ cchMetadatasize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCChildren( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCStatistic( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, ItemStatistic /*EItemStatistic*/ eStatType, out ulong /*uint64 **/ pStatValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ previewIndex, System.Text.StringBuilder /*char **/ pchURLOrVideoID, uint /*uint32*/ cchURLSize, System.Text.StringBuilder /*char **/ pchOriginalFileName, uint /*uint32*/ cchOriginalFileNameSize, out ItemPreviewType /*EItemPreviewType **/ pPreviewType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, uint /*uint32*/ keyValueTagIndex, System.Text.StringBuilder /*char **/ pchKey, uint /*uint32*/ cchKeySize, System.Text.StringBuilder /*char **/ pchValue, uint /*uint32*/ cchValueSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( IntPtr ISteamUGC, ulong handle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddExcludedTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pTagName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnOnlyIDs( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnOnlyIDs );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnKeyValueTags( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnKeyValueTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnLongDescription( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnLongDescription );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnMetadata( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnMetadata );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnChildren( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnChildren );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnAdditionalPreviews );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnTotalOnly( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReturnTotalOnly );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetReturnPlaytimeStats( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetAllowCachedResponse( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unMaxAgeSeconds );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetCloudFileNameFilter( IntPtr ISteamUGC, ulong handle, string /*const char **/ pMatchCloudFileName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetMatchAnyTag( IntPtr ISteamUGC, ulong handle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bMatchAnyTag );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetSearchText( IntPtr ISteamUGC, ulong handle, string /*const char **/ pSearchText );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetRankedByTrendDays( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ unDays );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddRequiredKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pKey, string /*const char **/ pValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RequestUGCDetails( IntPtr ISteamUGC, ulong nPublishedFileID, uint /*uint32*/ unMaxAgeSeconds );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_CreateItem( IntPtr ISteamUGC, uint nConsumerAppId, WorkshopFileType /*EWorkshopFileType*/ eFileType );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UGCUpdateHandle_t /*(UGCUpdateHandle_t)*/ SteamAPI_ISteamUGC_StartItemUpdate( IntPtr ISteamUGC, uint nConsumerAppId, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTitle( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchTitle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemDescription( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchDescription );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemUpdateLanguage( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchLanguage );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemMetadata( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchMetaData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemVisibility( IntPtr ISteamUGC, ulong handle, RemoteStoragePublishedFileVisibility /*ERemoteStoragePublishedFileVisibility*/ eVisibility );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemTags( IntPtr ISteamUGC, ulong updateHandle, ref SteamParamStringArray_t.PackSmall /*const struct SteamParamStringArray_t **/ pTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemContent( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszContentFolder );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_SetItemPreview( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemKeyValueTags( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemKeyValueTag( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchKey, string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewFile( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszPreviewFile, ItemPreviewType /*EItemPreviewType*/ type );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_AddItemPreviewVideo( IntPtr ISteamUGC, ulong handle, string /*const char **/ pszVideoID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewFile( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszPreviewFile );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_UpdateItemPreviewVideo( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index, string /*const char **/ pszVideoID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_RemoveItemPreview( IntPtr ISteamUGC, ulong handle, uint /*uint32*/ index );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubmitItemUpdate( IntPtr ISteamUGC, ulong handle, string /*const char **/ pchChangeNote );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern ItemUpdateStatus /*EItemUpdateStatus*/ SteamAPI_ISteamUGC_GetItemUpdateProgress( IntPtr ISteamUGC, ulong handle, out ulong /*uint64 **/ punBytesProcessed, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bVoteUp );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_GetUserItemVote( IntPtr ISteamUGC, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddItemToFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveItemFromFavorites( IntPtr ISteamUGC, uint nAppId, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_SubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_UnsubscribeItem( IntPtr ISteamUGC, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetNumSubscribedItems( IntPtr ISteamUGC );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetSubscribedItems( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ cMaxEntries );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamUGC_GetItemState( IntPtr ISteamUGC, ulong nPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemInstallInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punSizeOnDisk, System.Text.StringBuilder /*char **/ pchFolder, uint /*uint32*/ cchFolderSize, out uint /*uint32 **/ punTimeStamp );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_GetItemDownloadInfo( IntPtr ISteamUGC, ulong nPublishedFileID, out ulong /*uint64 **/ punBytesDownloaded, out ulong /*uint64 **/ punBytesTotal );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_DownloadItem( IntPtr ISteamUGC, ulong nPublishedFileID, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHighPriority );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamUGC_BInitWorkshopForGameServer( IntPtr ISteamUGC, uint unWorkshopDepotID, string /*const char **/ pszFolder );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamUGC_SuspendDownloads( IntPtr ISteamUGC, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSuspend );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StartPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTracking( IntPtr ISteamUGC, IntPtr /*PublishedFileId_t **/ pvecPublishedFileID, uint /*uint32*/ unNumPublishedFileIDs );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems( IntPtr ISteamUGC );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_AddDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamUGC_RemoveDependency( IntPtr ISteamUGC, ulong nParentPublishedFileID, ulong nChildPublishedFileID );
//
// ISteamAppList
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetNumInstalledApps( IntPtr ISteamAppList );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamAppList_GetInstalledApps( IntPtr ISteamAppList, IntPtr /*AppId_t **/ pvecAppID, uint /*uint32*/ unMaxAppIDs );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppName( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchName, int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppInstallDir( IntPtr ISteamAppList, uint nAppID, System.Text.StringBuilder /*char **/ pchDirectory, int /*int*/ cchNameMax );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamAppList_GetAppBuildId( IntPtr ISteamAppList, uint nAppID );
//
// ISteamHTMLSurface
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface( IntPtr ISteamHTMLSurface );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Init( IntPtr ISteamHTMLSurface );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamHTMLSurface_Shutdown( IntPtr ISteamHTMLSurface );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamHTMLSurface_CreateBrowser( IntPtr ISteamHTMLSurface, string /*const char **/ pchUserAgent, string /*const char **/ pchUserCSS );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_RemoveBrowser( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_LoadURL( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchURL, string /*const char **/ pchPostData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetSize( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ unWidth, uint /*uint32*/ unHeight );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopLoad( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Reload( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoBack( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GoForward( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AddHeader( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchKey, string /*const char **/ pchValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ExecuteJavascript( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchScript );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseDoubleClick( IntPtr ISteamHTMLSurface, uint unBrowserHandle, HTMLMouseButton /*ISteamHTMLSurface::EHTMLMouseButton*/ eMouseButton );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseMove( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_MouseWheel( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int32*/ nDelta );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyDown( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyUp( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nNativeKeyCode, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_KeyChar( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ cUnicodeChar, HTMLKeyModifiers /*ISteamHTMLSurface::EHTMLKeyModifiers*/ eHTMLKeyModifiers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetHorizontalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetVerticalScroll( IntPtr ISteamHTMLSurface, uint unBrowserHandle, uint /*uint32*/ nAbsolutePixelScroll );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetKeyFocus( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHasKeyFocus );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_ViewSource( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_CopyToClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_PasteFromClipboard( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_Find( IntPtr ISteamHTMLSurface, uint unBrowserHandle, string /*const char **/ pchSearchStr, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bCurrentlyInFind, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bReverse );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_StopFind( IntPtr ISteamHTMLSurface, uint unBrowserHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_GetLinkAtPosition( IntPtr ISteamHTMLSurface, uint unBrowserHandle, int /*int*/ x, int /*int*/ y );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetCookie( IntPtr ISteamHTMLSurface, string /*const char **/ pchHostname, string /*const char **/ pchKey, string /*const char **/ pchValue, string /*const char **/ pchPath, uint nExpires, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bSecure, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bHTTPOnly );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetPageScaleFactor( IntPtr ISteamHTMLSurface, uint unBrowserHandle, float /*float*/ flZoom, int /*int*/ nPointX, int /*int*/ nPointY );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_SetBackgroundMode( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bBackgroundMode );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_AllowStartRequest( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bAllowed );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamHTMLSurface_JSDialogResponse( IntPtr ISteamHTMLSurface, uint unBrowserHandle, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bResult );
//
// ISteamInventory
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern Result /*EResult*/ SteamAPI_ISteamInventory_GetResultStatus( IntPtr ISteamInventory, int resultHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItems( IntPtr ISteamInventory, int resultHandle, IntPtr /*struct SteamItemDetails_t **/ pOutItemsArray, out uint /*uint32 **/ punOutItemsArraySize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetResultItemProperty( IntPtr ISteamInventory, int resultHandle, uint /*uint32*/ unItemIndex, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamInventory_GetResultTimestamp( IntPtr ISteamInventory, int resultHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_CheckResultSteamID( IntPtr ISteamInventory, int resultHandle, ulong steamIDExpected );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamInventory_DestroyResult( IntPtr ISteamInventory, int resultHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetAllItems( IntPtr ISteamInventory, ref int pResultHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemsByID( IntPtr ISteamInventory, ref int pResultHandle, ulong[] pInstanceIDs, uint /*uint32*/ unCountInstanceIDs );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_SerializeResult( IntPtr ISteamInventory, int resultHandle, IntPtr /*void **/ pOutBuffer, out uint /*uint32 **/ punOutBufferSize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_DeserializeResult( IntPtr ISteamInventory, ref int pOutResultHandle, IntPtr /*const void **/ pBuffer, uint /*uint32*/ unBufferSize, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bRESERVED_MUST_BE_FALSE );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GenerateItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint[] /*const uint32 **/ punArrayQuantity, uint /*uint32*/ unArrayLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GrantPromoItems( IntPtr ISteamInventory, ref int pResultHandle );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItem( IntPtr ISteamInventory, ref int pResultHandle, int itemDef );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_AddPromoItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayItemDefs, uint /*uint32*/ unArrayLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ConsumeItem( IntPtr ISteamInventory, ref int pResultHandle, ulong itemConsume, uint /*uint32*/ unQuantity );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_ExchangeItems( IntPtr ISteamInventory, ref int pResultHandle, int[] pArrayGenerate, uint[] /*const uint32 **/ punArrayGenerateQuantity, uint /*uint32*/ unArrayGenerateLength, ulong[] pArrayDestroy, uint[] /*const uint32 **/ punArrayDestroyQuantity, uint /*uint32*/ unArrayDestroyLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TransferItemQuantity( IntPtr ISteamInventory, ref int pResultHandle, ulong itemIdSource, uint /*uint32*/ unQuantity, ulong itemIdDest );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamInventory_SendItemDropHeartbeat( IntPtr ISteamInventory );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TriggerItemDrop( IntPtr ISteamInventory, ref int pResultHandle, int dropListDefinition );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_TradeItems( IntPtr ISteamInventory, ref int pResultHandle, ulong steamIDTradePartner, ulong[] pArrayGive, uint[] /*const uint32 **/ pArrayGiveQuantity, uint /*uint32*/ nArrayGiveLength, ulong[] pArrayGet, uint[] /*const uint32 **/ pArrayGetQuantity, uint /*uint32*/ nArrayGetLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_LoadItemDefinitions( IntPtr ISteamInventory );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionIDs( IntPtr ISteamInventory, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetItemDefinitionProperty( IntPtr ISteamInventory, int iDefinition, string /*const char **/ pchPropertyName, System.Text.StringBuilder /*char **/ pchValueBuffer, out uint /*uint32 **/ punValueBufferSizeOut );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( IntPtr ISteamInventory, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs( IntPtr ISteamInventory, ulong steamID, IntPtr /*SteamItemDef_t **/ pItemDefIDs, out uint /*uint32 **/ punItemDefIDsArraySize );
//
// ISteamVideo
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamVideo_GetVideoURL( IntPtr ISteamVideo, uint unVideoAppID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamVideo_IsBroadcasting( IntPtr ISteamVideo, IntPtr /*int **/ pnNumViewers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamVideo_GetOPFSettings( IntPtr ISteamVideo, uint unVideoAppID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamVideo_GetOPFStringForApp( IntPtr ISteamVideo, uint unVideoAppID, System.Text.StringBuilder /*char **/ pchBuffer, out int /*int32 **/ pnBufferSize );
//
// ISteamGameServer
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_InitGameServer( IntPtr ISteamGameServer, uint /*uint32*/ unIP, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, uint /*uint32*/ unFlags, uint nGameAppId, string /*const char **/ pchVersionString );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetProduct( IntPtr ISteamGameServer, string /*const char **/ pszProduct );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameDescription( IntPtr ISteamGameServer, string /*const char **/ pszGameDescription );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetModDir( IntPtr ISteamGameServer, string /*const char **/ pszModDir );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetDedicatedServer( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bDedicated );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOn( IntPtr ISteamGameServer, string /*const char **/ pszToken );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOnAnonymous( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_LogOff( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BLoggedOn( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BSecure( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_GetSteamID( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_WasRestartRequested( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMaxPlayerCount( IntPtr ISteamGameServer, int /*int*/ cPlayersMax );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetBotPlayerCount( IntPtr ISteamGameServer, int /*int*/ cBotplayers );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetServerName( IntPtr ISteamGameServer, string /*const char **/ pszServerName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetMapName( IntPtr ISteamGameServer, string /*const char **/ pszMapName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetPasswordProtected( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bPasswordProtected );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorPort( IntPtr ISteamGameServer, ushort /*uint16*/ unSpectatorPort );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetSpectatorServerName( IntPtr ISteamGameServer, string /*const char **/ pszSpectatorServerName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_ClearAllKeyValues( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetKeyValue( IntPtr ISteamGameServer, string /*const char **/ pKey, string /*const char **/ pValue );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameTags( IntPtr ISteamGameServer, string /*const char **/ pchGameTags );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetGameData( IntPtr ISteamGameServer, string /*const char **/ pchGameData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetRegion( IntPtr ISteamGameServer, string /*const char **/ pszRegion );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate( IntPtr ISteamGameServer, uint /*uint32*/ unIPClient, IntPtr /*const void **/ pvAuthBlob, uint /*uint32*/ cubAuthBlobSize, out ulong pSteamIDUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern CSteamID /*(class CSteamID)*/ SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SendUserDisconnect( IntPtr ISteamGameServer, ulong steamIDUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_BUpdateUserData( IntPtr ISteamGameServer, ulong steamIDUser, string /*const char **/ pchPlayerName, uint /*uint32*/ uScore );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HAuthTicket /*(HAuthTicket)*/ SteamAPI_ISteamGameServer_GetAuthSessionTicket( IntPtr ISteamGameServer, IntPtr /*void **/ pTicket, int /*int*/ cbMaxTicket, out uint /*uint32 **/ pcbTicket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern BeginAuthSessionResult /*EBeginAuthSessionResult*/ SteamAPI_ISteamGameServer_BeginAuthSession( IntPtr ISteamGameServer, IntPtr /*const void **/ pAuthTicket, int /*int*/ cbAuthTicket, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_EndAuthSession( IntPtr ISteamGameServer, ulong steamID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_CancelAuthTicket( IntPtr ISteamGameServer, uint hAuthTicket );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern UserHasLicenseForAppResult /*EUserHasLicenseForAppResult*/ SteamAPI_ISteamGameServer_UserHasLicenseForApp( IntPtr ISteamGameServer, ulong steamID, uint appID );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_RequestUserGroupStatus( IntPtr ISteamGameServer, ulong steamIDUser, ulong steamIDGroup );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_GetGameplayStats( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_GetServerReputation( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern uint /*uint32*/ SteamAPI_ISteamGameServer_GetPublicIP( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServer_HandleIncomingPacket( IntPtr ISteamGameServer, IntPtr /*const void **/ pData, int /*int*/ cbData, uint /*uint32*/ srcIP, ushort /*uint16*/ srcPort );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern int /*int*/ SteamAPI_ISteamGameServer_GetNextOutgoingPacket( IntPtr ISteamGameServer, IntPtr /*void **/ pOut, int /*int*/ cbMaxOut, out uint /*uint32 **/ pNetAdr, out ushort /*uint16 **/ pPort );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_EnableHeartbeats( IntPtr ISteamGameServer, [MarshalAs(UnmanagedType.U1)] bool /*bool*/ bActive );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_SetHeartbeatInterval( IntPtr ISteamGameServer, int /*int*/ iHeartbeatInterval );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_ISteamGameServer_ForceHeartbeat( IntPtr ISteamGameServer );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_AssociateWithClan( IntPtr ISteamGameServer, ulong steamIDClan );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility( IntPtr ISteamGameServer, ulong steamIDNewPlayer );
//
// ISteamGameServerStats
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_RequestUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out int /*int32 **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, out float /*float **/ pData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_GetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, [MarshalAs(UnmanagedType.U1)] ref bool /*bool **/ pbAchieved );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, int /*int32*/ nData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserStat0( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ fData );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName, float /*float*/ flCountThisSession, double /*double*/ dSessionLength );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_SetUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_ISteamGameServerStats_ClearUserAchievement( IntPtr ISteamGameServerStats, ulong steamIDUser, string /*const char **/ pchName );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern SteamAPICall_t /*(SteamAPICall_t)*/ SteamAPI_ISteamGameServerStats_StoreUserStats( IntPtr ISteamGameServerStats, ulong steamIDUser );
//
// SteamApi
//
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_Init();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_RunCallbacks();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamGameServer_RunCallbacks();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_RegisterCallback( IntPtr /*void **/ pCallback, int /*int*/ callback );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_UnregisterCallback( IntPtr /*void **/ pCallback );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_RegisterCallResult( IntPtr /*void **/ pCallback, ulong callback );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_UnregisterCallResult( IntPtr /*void **/ pCallback, ulong callback );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamInternal_GameServer_Init( uint /*uint32*/ unIP, ushort /*uint16*/ usPort, ushort /*uint16*/ usGamePort, ushort /*uint16*/ usQueryPort, int /*int*/ eServerMode, string /*const char **/ pchVersionString );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamAPI_Shutdown();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern void /*void*/ SteamGameServer_Shutdown();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamAPI_GetHSteamUser();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamAPI_GetHSteamPipe();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamUser /*(HSteamUser)*/ SteamGameServer_GetHSteamUser();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern HSteamPipe /*(HSteamPipe)*/ SteamGameServer_GetHSteamPipe();
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern IntPtr /*void **/ SteamInternal_CreateInterface( string /*const char **/ version );
[DllImportAttribute( "libsteam_api.dylib" )] internal static extern bool /*bool*/ SteamAPI_RestartAppIfNecessary( uint /*uint32*/ unOwnAppID );
}
}
}
}
| 76.532829 | 639 | 0.76063 | [
"MIT"
] | Lohoris/Facepunch.Steamworks | Facepunch.Steamworks/SteamNative/SteamNative.Platform.Mac.cs | 374,169 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: IMethodRequestBuilder.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
/// <summary>
/// The interface IWorkbookFunctionsRank_AvgRequestBuilder.
/// </summary>
public partial interface IWorkbookFunctionsRank_AvgRequestBuilder : IBaseRequestBuilder
{
/// <summary>
/// Builds the request.
/// </summary>
/// <param name="options">The query and header options for the request.</param>
/// <returns>The built request.</returns>
IWorkbookFunctionsRank_AvgRequest Request(IEnumerable<Option> options = null);
}
}
| 37.517241 | 153 | 0.589154 | [
"MIT"
] | Aliases/msgraph-sdk-dotnet | src/Microsoft.Graph/Generated/requests/IWorkbookFunctionsRank_AvgRequestBuilder.cs | 1,088 | C# |
//
// PureMVC C# Multicore
//
// Copyright(c) 2017 Saad Shams <saad.shams@puremvc.org>
// Your reuse is governed by the Creative Commons Attribution 3.0 License
//
using PureMVC.Interfaces;
namespace PureMVC.Patterns.Command
{
/// <summary>
/// A SimpleCommand subclass used by SimpleCommandTest.
/// </summary>
/// <seealso cref="SimpleCommandTest"/>
/// <seealso cref="SimpleCommandTestVO"/>
public class SimpleCommandTestCommand: SimpleCommand
{
/// <summary>
/// Fabricate a result by multiplying the input by 2
/// </summary>
/// <param name="note">event the <c>INotification</c> carrying the <c>SimpleCommandTestVO</c></param>
public override void Execute(INotification note)
{
SimpleCommandTestVO vo = (SimpleCommandTestVO)note.Body;
// Fabricate a result
vo.Result = 2 * vo.Input;
}
}
}
| 28.9375 | 109 | 0.631749 | [
"MIT"
] | anyechushang/MyPureMVC | Assets/PureMVCTests/Patterns/Command/SimpleCommandTestCommand.cs | 928 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace Unity.VisualScripting
{
public static class GraphGUI
{
public const float MinZoomForControls = 0.7f;
public const float MinZoom = 0.25f;
public const float MaxZoom = 1;
public const float ZoomSteps = 0.05f;
private static readonly RectOffset sizeProjectionOffset = new RectOffset(1, 1, 1, 1);
public static Event e => Event.current;
private static readonly List<KeyValuePair<NodeColor, float>> currentColorMix = new List<KeyValuePair<NodeColor, float>>();
public static GUIStyle GetNodeStyle(NodeShape shape, NodeColor color)
{
switch (shape)
{
case NodeShape.Square:
return Styles.squares[color];
case NodeShape.Hex:
return Styles.hexes[color];
default:
throw new UnexpectedEnumValueException<NodeShape>(shape);
}
}
public static void Node(Rect position, NodeShape shape, NodeColor color, bool selected)
{
if (e.type == EventType.Repaint)
{
var outerPosition = GetNodeEdgeToOuterPosition(position, shape);
GetNodeStyle(shape, color).Draw(FixNodePosition(outerPosition, shape, color, selected), false, false, false, selected);
}
}
public static void Node(Rect position, NodeShape shape, NodeColorMix mix, bool selected)
{
if (e.type == EventType.Repaint)
{
mix.PopulateColorsList(currentColorMix);
foreach (var color in currentColorMix)
{
var outerPosition = GetNodeEdgeToOuterPosition(position, shape);
using (LudiqGUI.color.Override(GUI.color.WithAlphaMultiplied(color.Value)))
{
GetNodeStyle(shape, color.Key).Draw(FixNodePosition(outerPosition, shape, color.Key, selected), false, false, false, selected);
}
}
}
}
private static Rect FixNodePosition(Rect position, NodeShape shape, NodeColor color, bool selected)
{
// Some background images have weird offsets
// Fix it on a case-by-case basis
var offset = Vector2.zero;
position.position += offset;
return position;
}
public static Rect GetNodeEdgeToOuterPosition(Rect edgePosition, NodeShape shape)
{
return GetNodeStyle(shape, NodeColor.Gray).margin.Add(edgePosition);
}
public static Rect GetNodeEdgeToInnerPosition(Rect edgePosition, NodeShape shape)
{
return GetNodeStyle(shape, NodeColor.Gray).padding.Remove(edgePosition);
}
public static Rect GetNodeOuterToEdgePosition(Rect outerPosition, NodeShape shape)
{
return GetNodeStyle(shape, NodeColor.Gray).margin.Remove(outerPosition);
}
public static Rect GetNodeInnerToEdgePosition(Rect innerPosition, NodeShape shape)
{
return GetNodeStyle(shape, NodeColor.Gray).padding.Add(innerPosition);
}
public static void DrawBackground(Rect position)
{
if (e.type == EventType.Repaint)
{
if (EditorGUIUtility.isProSkin)
{
EditorGUI.DrawRect(position, new Color(0.125f, 0.125f, 0.125f));
}
else
{
EditorGUI.DrawRect(position, new Color(0.45f, 0.45f, 0.45f));
}
}
}
public static float SnapToGrid(float position)
{
return MathfEx.NearestMultiple(position, Styles.minorGridSpacing);
}
public static Vector2 SnapToGrid(Vector2 position)
{
return new Vector2(SnapToGrid(position.x), SnapToGrid(position.y));
}
public static Rect SnapToGrid(Rect position, bool resize)
{
return new Rect(SnapToGrid(position.position), resize ? SnapToGrid(position.size) : position.size);
}
public static void DrawGrid(Vector2 scroll, Rect position, float zoom = 1)
{
if (e.type != EventType.Repaint)
{
return;
}
var i = 0;
var drawMinor = zoom >= MinZoomForControls;
var width = MathfEx.HigherMultiple(position.width, Styles.minorGridSpacing * Styles.majorGridGroup);
for (var x = position.x; x < position.x + width; x += Styles.minorGridSpacing)
{
var xWrap = MathfEx.Wrap(x - scroll.x, width);
if (i == 0)
{
EditorGUI.DrawRect(new Rect
(
xWrap,
0,
Styles.majorGridThickness / zoom,
position.height
), Styles.majorGridColor);
}
else if (drawMinor)
{
EditorGUI.DrawRect(new Rect
(
xWrap,
0,
Styles.minorGridThickness / zoom,
position.height
), Styles.minorGridColor);
}
i = (i + 1) % Styles.majorGridGroup;
}
var j = 0;
var height = MathfEx.HigherMultiple(position.height, Styles.minorGridSpacing * Styles.majorGridGroup);
for (var y = position.y; y < position.y + height; y += Styles.minorGridSpacing)
{
var yWrap = MathfEx.Wrap(y - scroll.y, height);
if (j == 0)
{
EditorGUI.DrawRect(new Rect
(
0,
yWrap,
position.width,
Styles.majorGridThickness / zoom
), Styles.majorGridColor);
}
else if (drawMinor)
{
EditorGUI.DrawRect(new Rect
(
0,
yWrap,
position.width,
Styles.minorGridThickness / zoom
), Styles.minorGridColor);
}
j = (j + 1) % Styles.majorGridGroup;
}
if (BoltCore.Configuration.developerMode && BoltCore.Configuration.debug)
{
GUI.Label(new Rect(position.position, new Vector2(500, 16)), "Scroll: " + scroll, EditorStyles.whiteLabel);
GUI.Label(new Rect(position.position + new Vector2(0, 16), new Vector2(500, 16)), "Position: " + position, EditorStyles.whiteLabel);
GUI.Label(new Rect(position.position + new Vector2(0, 32), new Vector2(500, 16)), "Hot Controls: " + GUIUtility.hotControl + " / " + GUIUtility.keyboardControl, EditorStyles.whiteLabel);
}
}
private static float GetAngleRelative(Vector2 start, Vector2 end)
{
var difference = (end - start).normalized;
var angle = Mathf.Atan2(difference.y, difference.x) / (2 * Mathf.PI);
if (angle < 0)
{
angle++;
}
return angle;
}
public static void GetConnectionEdge(Vector2 start, Vector2 end, out Edge startEdge, out Edge endEdge)
{
var angle = GetAngleRelative(start, end);
if (angle >= (1 / 8f) && angle < (3 / 8f))
{
startEdge = Edge.Bottom;
endEdge = Edge.Top;
}
else if (angle >= (3 / 8f) && angle < (5 / 8f))
{
startEdge = Edge.Left;
endEdge = Edge.Right;
}
else if (angle >= (5 / 8f) && angle < (7 / 8f))
{
startEdge = Edge.Top;
endEdge = Edge.Bottom;
}
else
{
startEdge = Edge.Right;
endEdge = Edge.Left;
}
}
public static void GetHorizontalConnectionEdge(Vector2 start, Vector2 end, out Edge startEdge, out Edge endEdge)
{
var angle = GetAngleRelative(start, end);
if (angle >= (1 / 4f) && angle < (3 / 4f))
{
startEdge = Edge.Left;
endEdge = Edge.Right;
}
else
{
startEdge = Edge.Right;
endEdge = Edge.Left;
}
}
public static EditorTexture ArrowTexture(Edge destinationEdge)
{
switch (destinationEdge)
{
case Edge.Left:
return Styles.arrowRight;
case Edge.Right:
return Styles.arrowLeft;
case Edge.Top:
return Styles.arrowDown;
case Edge.Bottom:
return Styles.arrowUp;
default:
throw new UnexpectedEnumValueException<Edge>(destinationEdge);
}
}
public static void DrawConnectionArrow(Color color, Vector2 start, Vector2 end, Edge startEdge, Edge endEdge, float relativeBend = 1 / 4f, float minBend = 0)
{
DrawConnection(color, start, end, startEdge, endEdge, ArrowTexture(endEdge)?[24], new Vector2(8, 8), relativeBend, minBend);
}
public static Vector2 GetPointOnConnection(float t, Vector2 start, Vector2 end, Edge startEdge, Edge? endEdge, float relativeBend = 1 / 4f, float minBend = 0)
{
var startTangent = GetStartTangent(start, end, startEdge, endEdge, relativeBend, minBend);
var endTangent = GetEndTangent(start, end, startEdge, endEdge, relativeBend, minBend);
return MathfEx.Bezier(start, end, startTangent, endTangent, t);
}
public static void DrawConnection(Color color, Vector2 start, Vector2 end, Edge startEdge, Edge? endEdge, Texture cap = null, Vector2 capSize = default(Vector2), float relativeBend = 1 / 4f, float minBend = 0, float thickness = 3)
{
if (cap)
{
var capPosition = new Rect
(
end,
capSize
);
Vector2 capOffset;
Vector2 endOffset;
if (endEdge.HasValue)
{
switch (endEdge)
{
case Edge.Left:
capOffset = new Vector2(-capSize.x, -capSize.y / 2);
endOffset = new Vector2(capSize.x, 0);
break;
case Edge.Right:
capOffset = new Vector2(0, -capSize.y / 2);
endOffset = new Vector2(-capSize.x, 0);
break;
case Edge.Top:
capOffset = new Vector2(-capSize.x / 2, -capSize.y);
endOffset = new Vector2(0, capSize.y);
break;
case Edge.Bottom:
capOffset = new Vector2(-capSize.x / 2, 0);
endOffset = new Vector2(0, -capSize.y);
break;
default:
throw new UnexpectedEnumValueException<Edge>(endEdge.Value);
}
}
else
{
capOffset = new Vector2(-capSize.x / 2, -capSize.y / 2);
endOffset = Vector2.zero;
}
capPosition.position += capOffset;
end -= endOffset;
if (BoltCore.Configuration.developerMode && BoltCore.Configuration.debug)
{
EditorGUI.DrawRect(capPosition, new Color(0, 0, 1, 0.25f));
}
using (LudiqGUI.color.Override(LudiqGUI.color.value * color))
{
GUI.DrawTexture(capPosition, cap);
}
}
var startTangent = GetStartTangent(start, end, startEdge, endEdge, relativeBend, minBend);
var endTangent = GetEndTangent(start, end, startEdge, endEdge, relativeBend, minBend);
Handles.DrawBezier(start, end, startTangent, endTangent, LudiqGUI.color.value * color, AliasedBezierTexture(thickness), thickness);
if (BoltCore.Configuration.developerMode && BoltCore.Configuration.debug)
{
Handles.color = Color.yellow;
Handles.DrawLine(start, startTangent);
Handles.DrawLine(end, endTangent);
}
}
private static Vector2 GetStartTangent(Vector2 start, Vector2 end, Edge startEdge, Edge? endEdge, float relativeBend, float minBend)
{
var startDirection = startEdge.Normal();
var startBend = Mathf.Abs(Vector2.Dot(end - start, startDirection)) * relativeBend;
if (startDirection.y != 0)
{
startBend *= -1;
}
if (Mathf.Abs(startBend) < Mathf.Abs(minBend))
{
startBend = Mathf.Sign(startBend) * minBend;
}
var startTangent = start + startDirection * startBend;
return startTangent;
}
private static Vector2 GetEndTangent(Vector2 start, Vector2 end, Edge startEdge, Edge? endEdge, float relativeBend, float minBend)
{
var endDirection = endEdge?.Normal() ?? startEdge.Opposite().Normal();
var endBend = Mathf.Abs(Vector2.Dot(start - end, endDirection)) * relativeBend;
if (endDirection.y != 0)
{
endBend *= -1;
}
if (Mathf.Abs(endBend) < Mathf.Abs(minBend))
{
endBend = Mathf.Sign(endBend) * minBend;
}
var endTangent = end + endDirection * endBend;
return endTangent;
}
public static bool PositionOverlaps(ICanvas canvas, IGraphElementWidget widget, float threshold = 3)
{
var position = widget.position;
return canvas.graph.elements.Any(otherElement =>
{
// Skip itself, which would by definition always overlap
if (otherElement == widget.element)
{
return false;
}
var positionA = canvas.Widget(otherElement).position;
var positionB = position;
return Mathf.Abs(positionA.xMin - positionB.xMin) < threshold &&
Mathf.Abs(positionA.yMin - positionB.yMin) < threshold;
});
}
public static Vector2? LineIntersectionPoint(Vector2 start1, Vector2 end1, Vector2 start2, Vector2 end2)
{
var A1 = end1.y - start1.y;
var B1 = start1.x - end1.x;
var C1 = A1 * start1.x + B1 * start1.y;
var A2 = end2.y - start2.y;
var B2 = start2.x - end2.x;
var C2 = A2 * start2.x + B2 * start2.y;
var delta = A1 * B2 - A2 * B1;
if (delta == 0)
{
return null;
}
return new Vector2
(
(B2 * C1 - B1 * C2) / delta,
(A1 * C2 - A2 * C1) / delta
);
}
public static float SizeProjection(Vector2 size, Vector2 spreadOrigin, Vector2 spreadAxis)
{
var rect = new Rect(spreadOrigin - size / 2, size);
if (BoltCore.Configuration.developerMode && BoltCore.Configuration.debug)
{
EditorGUI.DrawRect(rect, new Color(0, 1, 0, 0.1f));
}
var topLeft = new Vector2(rect.xMin, rect.yMin);
var bottomLeft = new Vector2(rect.xMin, rect.yMax);
var topRight = new Vector2(rect.xMax, rect.yMin);
var bottomRight = new Vector2(rect.xMax, rect.yMax);
var perp1 = spreadOrigin + spreadAxis;
var perp2 = spreadOrigin - spreadAxis;
// Vertical
var vert1 = LineIntersectionPoint(topLeft, bottomLeft, perp1, perp2);
var vert2 = LineIntersectionPoint(topRight, bottomRight, perp1, perp2);
if (!vert1.HasValue || !vert2.HasValue)
{
return Vector2.Distance(topLeft, bottomLeft);
}
if (sizeProjectionOffset.Add(rect).Contains(vert1.Value))
{
return Vector2.Distance(vert1.Value, vert2.Value);
}
// Horizontal
var horiz1 = LineIntersectionPoint(topLeft, topRight, perp1, perp2);
var horiz2 = LineIntersectionPoint(bottomLeft, bottomRight, perp1, perp2);
if (!horiz1.HasValue || !horiz2.HasValue)
{
return Vector2.Distance(topLeft, topRight);
}
if (sizeProjectionOffset.Add(rect).Contains(horiz1.Value))
{
return Vector2.Distance(horiz1.Value, horiz2.Value);
}
throw new ArithmeticException("Centered rect is not in spread axis.");
}
public static Rect CalculateArea(IEnumerable<IGraphElementWidget> widgets)
{
var assigned = false;
var area = Rect.zero;
foreach (var widget in widgets)
{
if (!assigned)
{
area = widget.position;
assigned = true;
}
else
{
area = area.Encompass(widget.position);
}
}
return area;
}
public static void DrawDragAndDropPreviewLabel(Vector2 position, GUIContent content)
{
var padding = Styles.dragAndDropPreviewBackground.padding;
var textSize = Styles.dragAndDropPreviewText.CalcSize(content);
var backgroundPosition = new Rect
(
position.x,
position.y,
textSize.x + padding.left + padding.right,
textSize.y + padding.top + padding.bottom
);
var textPosition = new Rect
(
backgroundPosition.x + padding.left,
backgroundPosition.y + padding.top,
textSize.x,
textSize.y
);
Rect iconPosition = default(Rect);
if (content.image != null)
{
iconPosition = new Rect
(
backgroundPosition.x + padding.left,
backgroundPosition.y + padding.top,
IconSize.Small,
IconSize.Small
);
var spacing = 5;
textPosition.x += iconPosition.width + spacing;
textPosition.y += 1;
textPosition.width += iconPosition.width + spacing;
backgroundPosition.width += iconPosition.width + spacing;
}
GUI.Label(backgroundPosition, GUIContent.none, Styles.dragAndDropPreviewBackground);
GUI.Label(textPosition, content, Styles.dragAndDropPreviewText);
if (content.image != null)
{
GUI.DrawTexture(iconPosition, content.image);
}
}
public static void DrawDragAndDropPreviewLabel(Vector2 position, string content)
{
DrawDragAndDropPreviewLabel(position, new GUIContent(content));
}
public static void DrawDragAndDropPreviewLabel(Vector2 position, string content, EditorTexture icon)
{
DrawDragAndDropPreviewLabel(position, new GUIContent(content, icon?[IconSize.Small]));
}
private static Texture2D AliasedBezierTexture(float width)
{
if (!bezierTextures.ContainsKey(width))
{
var height = Mathf.Max(2, Mathf.CeilToInt(width / 2));
var texture = new Texture2D(1, height, TextureFormat.ARGB32, false, LudiqGUIUtility.createLinearTextures);
for (int y = 0; y < height; y++)
{
texture.SetPixel(0, y, Color.white.WithAlpha(y == 0 ? 0 : 1));
}
texture.Apply();
bezierTextures.Add(width, texture);
}
return bezierTextures[width];
}
private static readonly Dictionary<float, Texture2D> bezierTextures = new Dictionary<float, Texture2D>();
public static void UpdateDroplets(ICanvas canvas, List<float> droplets, int lastEntryFrame, ref float lastEntryTime, ref float dropTime, float discreteThreshold = 0.1f, float continuousDelay = 0.33f, float trickleDuration = 0.5f)
{
if (EditorApplication.isPaused)
{
return;
}
var time = EditorTimeBinding.time;
var frame = EditorTimeBinding.frame;
var deltaTime = canvas.eventDeltaTime;
// Create new droplets
if (lastEntryFrame == frame)
{
if (time - lastEntryTime > discreteThreshold)
{
droplets.Add(0);
dropTime = time;
}
else if (time > dropTime + continuousDelay)
{
droplets.Add(0);
dropTime = time;
}
lastEntryTime = time;
}
// Move droplets along the path
for (int i = 0; i < droplets.Count; i++)
{
droplets[i] += deltaTime * (1 / trickleDuration);
if (droplets[i] > 1)
{
droplets.RemoveAt(i);
}
}
}
public static class Styles
{
static Styles()
{
coordinatesLabel = new GUIStyle(EditorStyles.label);
coordinatesLabel.normal.textColor = majorGridColor;
coordinatesLabel.fontSize = 9;
coordinatesLabel.normal.background = new Color(0.36f, 0.36f, 0.36f).GetPixel();
coordinatesLabel.padding = new RectOffset(4, 4, 4, 4);
var nodeColorComparer = new NodeColorComparer();
squares = new Dictionary<NodeColor, GUIStyle>(nodeColorComparer);
hexes = new Dictionary<NodeColor, GUIStyle>(nodeColorComparer);
foreach (var nodeColor in nodeColors)
{
var squareOff = (GUIStyle)($"flow node {(int)nodeColor}");
var squareOn = (GUIStyle)($"flow node {(int)nodeColor} on");
var hexOff = (GUIStyle)($"flow node hex {(int)nodeColor}");
var hexOn = (GUIStyle)($"flow node hex {(int)nodeColor} on");
// For node styles:
// - Border: 9-slice coordinates
// - Padding: inner spacing from edge
// - Margin: shadow / glow outside edge
TextureResolution[] textureResolution = { 2 };
var createTextureOptions = CreateTextureOptions.Scalable;
string path = "Nodes/NodeFill";
if (EditorGUIUtility.isProSkin)
{
path = "Nodes_Pro/NodeFill";
}
EditorTexture normalTexture = BoltCore.Resources.LoadTexture($"{path}{nodeColor}.png", textureResolution, createTextureOptions);
EditorTexture activeTexture = BoltCore.Resources.LoadTexture($"{path}{nodeColor}Active.png", textureResolution, createTextureOptions);
EditorTexture hoverTexture = BoltCore.Resources.LoadTexture($"{path}{nodeColor}Hover.png", textureResolution, createTextureOptions);
EditorTexture focusedTexture = BoltCore.Resources.LoadTexture($"{path}{nodeColor}Focused.png", textureResolution, createTextureOptions);
var square = new GUIStyle
{
border = squareOff.border.Clone(),
margin = new RectOffset(3, 3, 6, 9),
padding = new RectOffset(5, 5, 6, 6),
normal = { background = normalTexture.Single() },
active = { background = activeTexture.Single() },
hover = { background = hoverTexture.Single() },
focused = { background = focusedTexture.Single() }
};
squares.Add(nodeColor, square);
var hex = new GUIStyle
{
border = new RectOffset(25, 25, 23, 23),
margin = new RectOffset(6, 6, 5, 7),
padding = new RectOffset(17, 17, 10, 10),
normal = { background = hexOff.normal.background },
active = { background = hexOff.normal.background },
hover = { background = hexOff.normal.background },
focused = { background = hexOn.normal.background }
};
hexes.Add(nodeColor, hex);
}
var arrowResolutions = new TextureResolution[] { 32 };
var arrowOptions = CreateTextureOptions.Scalable;
arrowUp = BoltCore.Resources.LoadTexture("Arrows/ArrowUp.png", arrowResolutions, arrowOptions);
arrowDown = BoltCore.Resources.LoadTexture("Arrows/ArrowDown.png", arrowResolutions, arrowOptions);
arrowLeft = BoltCore.Resources.LoadTexture("Arrows/ArrowLeft.png", arrowResolutions, arrowOptions);
arrowRight = BoltCore.Resources.LoadTexture("Arrows/ArrowRight.png", arrowResolutions, arrowOptions);
lockIcon = new GUIContent(LudiqGUIUtility.newSkin ? ((GUIStyle)"IN ThumbnailSelection").onActive.background : ((GUIStyle)"Icon.Locked").onNormal.background);
if (EditorGUIUtility.isProSkin)
{
majorGridColor = new Color(0, 0, 0, majorGridColor.a * 1.5f);
minorGridColor = new Color(0, 0, 0, minorGridColor.a * 1.5f);
}
dragAndDropPreviewBackground = new GUIStyle("TE NodeBox");
dragAndDropPreviewBackground.margin = new RectOffset(0, 0, 0, 0);
dragAndDropPreviewBackground.padding = new RectOffset(6, 8, 4, 8);
dragAndDropPreviewText = new GUIStyle();
dragAndDropPreviewText.fontSize = 11;
dragAndDropPreviewText.normal.textColor = ColorPalette.unityForeground;
dragAndDropPreviewText.imagePosition = ImagePosition.TextOnly;
}
public static readonly GUIStyle background = new GUIStyle("flow background");
public static readonly Color majorGridColor = new Color(1, 1, 1, 0.1f);
public static readonly Color minorGridColor = new Color(1, 1, 1, 0.03f);
public static readonly int majorGridGroup = 10;
public static readonly float minorGridSpacing = 12;
public static readonly float majorGridThickness = 1;
public static readonly float minorGridThickness = 1;
public static readonly Dictionary<NodeColor, GUIStyle> squares;
public static readonly Dictionary<NodeColor, GUIStyle> hexes;
public static readonly GUIStyle coordinatesLabel;
public static readonly GUIStyle dragAndDropPreviewBackground;
public static readonly GUIStyle dragAndDropPreviewText;
public static readonly EditorTexture arrowUp;
public static readonly EditorTexture arrowRight;
public static readonly EditorTexture arrowDown;
public static readonly EditorTexture arrowLeft;
public static readonly float dimAlpha = EditorGUIUtility.isProSkin ? 0.3f : 0.4f;
public static readonly GUIContent lockIcon;
// Mono allocates memory on its default comparer for enums
// because of boxing. Creating a specific comparer to avoid this.
// http://stackoverflow.com/a/26281533
public struct NodeColorComparer : IEqualityComparer<NodeColor>
{
public bool Equals(NodeColor x, NodeColor y)
{
return x == y;
}
public int GetHashCode(NodeColor obj)
{
return (int)obj;
}
}
}
public static readonly NodeColor[] nodeColors = (NodeColor[])Enum.GetValues(typeof(NodeColor));
}
}
| 37.851662 | 238 | 0.522095 | [
"MIT"
] | 2PUEG-VRIK/UnityEscapeGame | 2P-UnityEscapeGame/Library/PackageCache/com.unity.visualscripting@1.6.1/Editor/VisualScripting.Core/Graph/GraphGUI.cs | 29,600 | C# |
//
//
// THIS FILE HAS BEEN GENERATED. DO NOT MODIFY.
//
using System;
using System.Collections.Generic;
using byps;
namespace byps.test.api.remote
{
public sealed class BRequest_RemoteArrayTypes1dim_setDouble : BMethodRequest, BSerializable
{
#region Execute
public override int getRemoteId() { return 123123; }
public override void execute(BRemote __byps__remote, BAsyncResultIF<Object> __byps__asyncResult) {
// checkpoint byps.gen.cs.GenApiClass:429
try {
RemoteArrayTypes1dim __byps__remoteT = (RemoteArrayTypes1dim)__byps__remote;
BAsyncResultSendMethod<Object> __byps__outerResult = new BAsyncResultSendMethod<Object>(__byps__asyncResult, new byps.test.api.BResult_19());
__byps__remoteT.SetDouble(vValue, BAsyncResultHelper.ToDelegate(__byps__outerResult));
} catch (Exception e) {
__byps__asyncResult.setAsyncResult(null, e);
}
}
#endregion
#region Fields
internal double[] vValue;
#endregion
public static readonly long serialVersionUID = 253910985L;
} // end class
} // end namespace
| 25.27907 | 149 | 0.74241 | [
"MIT"
] | markusessigde/byps | csharp/bypstest-ser/src-ser/byps/test/api/remote/BRequest_RemoteArrayTypes1dim_setDouble.cs | 1,089 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.ML.Probabilistic.Factors
{
using System.Runtime.Serialization;
/// <summary>
/// Improper message exception
/// </summary>
[Serializable]
public class ImproperMessageException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="ImproperMessageException"/> class.
/// </summary>
public ImproperMessageException()
{
}
/// <summary>
/// Creates an improper message exception with the specified distribution
/// </summary>
/// <param name="distribution">Distribution instance</param>
public ImproperMessageException(object distribution)
: base("Improper distribution during inference (" + distribution + "). Cannot perform inference on this model.")
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ImproperMessageException"/> class with a specified error message
/// and a reference to the inner exception that is the cause of this exception.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="inner">The exception that is the cause of the current exception.</param>
public ImproperMessageException(string message, Exception inner)
: base(message, inner)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ImproperMessageException"/> class.
/// </summary>
/// <param name="info">The object that holds the serialized object data.</param>
/// <param name="context">The contextual information about the source or destination.</param>
protected ImproperMessageException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
| 38.781818 | 125 | 0.642288 | [
"MIT"
] | 0xflotus/infer | src/Runtime/Factors/ImproperMessageException.cs | 2,133 | C# |
using System;
using Core;
using UnityEngine;
using UnityEngine.UI;
public class PlayerUI : MonoBehaviour, IBroadcastListener<PlayerSharedData>, IBroadcastListener<KeyCode>
{
private PlayerSharedData _playerSharedData;
private Text _text;
public void Setup(PlayerSharedData playerSharedData)
{
_playerSharedData = playerSharedData;
_text = GetComponentInChildren<Text>();
_playerSharedData.Registrar.Register(nameof(PlayerUI), this, 1);
InputManager.Instance.KeyCodeBroadcaster.Registrar.Register(nameof(PlayerUI), this, 1 | 2 | 4);
}
public void OnReceiveBroadcastData(PlayerSharedData stateData)
{
Debug.Log(name + ":New Data is " + stateData.SharedStateData.Score + " " + stateData.SharedStateData.Speed);
_text.text = $"Speed: {_playerSharedData.SharedStateData.Speed}/{_playerSharedData.Config.maxSpeed}";
}
public void OnReceiveBroadcastData(KeyCode stateData)
{
Debug.Log(name + "<PlayerUI>:On Key Pressed " + stateData);
}
} | 33.483871 | 116 | 0.720617 | [
"Unlicense"
] | Sieunguoimay/UnityLaboratory | Assets/Scripts/Player/PlayerUI.cs | 1,040 | C# |
using SAFE.Data;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SAFE.AppendOnlyDb
{
public interface IStreamAD : IData
{
Task<Result<Pointer>> AppendAsync(StoredValue value);
Task<Result<Pointer>> TryAppendAsync(StoredValue value, ExpectedVersion expectedVersion);
// Todo: AppendRange / TryAppendRange
Task<Result<StoredValue>> GetAtVersionAsync(ulong version);
/// <summary>
/// Reads the latest snapshot - if any - and all events since.
/// </summary>
/// <returns><see cref="SnapshotReading"/></returns>
Task<Result<Snapshots.SnapshotReading>> ReadFromSnapshot();
IAsyncEnumerable<(ulong, StoredValue)> ReadForwardFromAsync(ulong from);
IAsyncEnumerable<(ulong, StoredValue)> ReadBackwardsFromAsync(ulong from);
IAsyncEnumerable<(ulong, StoredValue)> GetRangeAsync(ulong from, ulong to);
IAsyncEnumerable<StoredValue> GetAllValuesAsync();
IAsyncEnumerable<(Pointer, StoredValue)> GetAllPointerValuesAsync();
}
} | 36.4 | 97 | 0.702381 | [
"BSD-3-Clause"
] | oetyng/SAFE.AppendOnlyDb | SAFE.AppendOnlyDb/Database/Interfaces/IStreamAD.cs | 1,094 | C# |
// <auto-generated />
using System;
using Com.Danliris.Service.Packing.Inventory.Infrastructure;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Com.Danliris.Service.Packing.Inventory.Infrastructure.Migrations
{
[DbContext(typeof(PackingInventoryDbContext))]
[Migration("20210913034226_update_LocalSalesNotes_approval")]
partial class update_LocalSalesNotes_approval
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.MaterialDeliveryNoteModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BonCode")
.HasMaxLength(128);
b.Property<string>("Code")
.HasMaxLength(128);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DONumber")
.HasMaxLength(128);
b.Property<DateTimeOffset?>("DateFrom")
.HasMaxLength(128);
b.Property<DateTimeOffset?>("DateSJ")
.HasMaxLength(128);
b.Property<DateTimeOffset?>("DateTo")
.HasMaxLength(128);
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<long?>("DoNumberId")
.HasMaxLength(128);
b.Property<string>("FONumber")
.HasMaxLength(128);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("ReceiverCode")
.HasMaxLength(128);
b.Property<int?>("ReceiverId")
.HasMaxLength(128);
b.Property<string>("ReceiverName")
.HasMaxLength(128);
b.Property<string>("Remark")
.HasMaxLength(128);
b.Property<string>("SCNumber")
.HasMaxLength(128);
b.Property<int?>("SCNumberId")
.HasMaxLength(128);
b.Property<string>("SenderCode")
.HasMaxLength(128);
b.Property<int?>("SenderId")
.HasMaxLength(128);
b.Property<string>("SenderName")
.HasMaxLength(128);
b.Property<string>("StorageCode")
.HasMaxLength(128);
b.Property<int?>("StorageId")
.HasMaxLength(128);
b.Property<string>("StorageName")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("MaterialDeliveryNote");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.MaterialDeliveryNoteWeavingModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BuyerCode")
.HasMaxLength(128);
b.Property<int>("BuyerId")
.HasMaxLength(128);
b.Property<string>("BuyerName")
.HasMaxLength(128);
b.Property<string>("Code")
.HasMaxLength(128);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("DateSJ")
.HasMaxLength(128);
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DoSalesNumber")
.HasMaxLength(128);
b.Property<long>("DoSalesNumberId")
.HasMaxLength(128);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("NumberOut")
.HasMaxLength(128);
b.Property<string>("Remark")
.HasMaxLength(128);
b.Property<string>("SendTo")
.HasMaxLength(128);
b.Property<string>("StorageCode")
.HasMaxLength(128);
b.Property<int?>("StorageId")
.HasMaxLength(128);
b.Property<string>("StorageName")
.HasMaxLength(128);
b.Property<int>("UnitId")
.HasMaxLength(128);
b.Property<string>("UnitName")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("MaterialDeliveryNoteWeaving");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaInputModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Area")
.HasMaxLength(64);
b.Property<string>("AvalType")
.HasMaxLength(128);
b.Property<string>("BonNo")
.HasMaxLength(64);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Group")
.HasMaxLength(16);
b.Property<bool>("IsDeleted");
b.Property<bool>("IsTransformedAval");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<bool>("OpnameInput");
b.Property<string>("Shift")
.HasMaxLength(64);
b.Property<string>("ShippingType")
.HasMaxLength(128);
b.Property<double>("TotalAvalQuantity");
b.Property<double>("TotalAvalWeight");
b.HasKey("Id");
b.ToTable("DyeingPrintingAreaInputs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaInputProductionOrderModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Area")
.HasMaxLength(64);
b.Property<double>("AvalALength");
b.Property<double>("AvalBLength");
b.Property<string>("AvalCartNo");
b.Property<double>("AvalConnectionLength");
b.Property<double>("AvalQuantity");
b.Property<double>("AvalQuantityKg");
b.Property<string>("AvalType");
b.Property<double>("Balance");
b.Property<decimal>("BalanceRemains")
.HasConversion(new ValueConverter<decimal, decimal>(v => default(decimal), v => default(decimal), new ConverterMappingHints(precision: 38, scale: 17)))
.HasColumnType("decimal(18,2)");
b.Property<string>("Buyer")
.HasMaxLength(4096);
b.Property<int>("BuyerId");
b.Property<string>("CartNo")
.HasMaxLength(128);
b.Property<string>("Color")
.HasMaxLength(4096);
b.Property<string>("Construction")
.HasMaxLength(1024);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("DateIn");
b.Property<DateTimeOffset>("DateOut");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<long>("DeliveryOrderReturId");
b.Property<string>("DeliveryOrderReturNo")
.HasMaxLength(128);
b.Property<long>("DeliveryOrderSalesId");
b.Property<string>("DeliveryOrderSalesNo")
.HasMaxLength(128);
b.Property<string>("DestinationBuyerName");
b.Property<int>("DyeingPrintingAreaInputId");
b.Property<int>("DyeingPrintingAreaOutputProductionOrderId");
b.Property<int>("FabricPackingId");
b.Property<int>("FabricSKUId");
b.Property<string>("FinishWidth")
.HasMaxLength(1024);
b.Property<string>("Grade")
.HasMaxLength(128);
b.Property<bool>("HasOutputDocument");
b.Property<bool>("HasPrintingProductPacking");
b.Property<bool>("HasPrintingProductSKU");
b.Property<double>("InitLength");
b.Property<string>("InputAvalBonNo")
.HasMaxLength(64);
b.Property<decimal>("InputPackagingQty");
b.Property<double>("InputQuantity");
b.Property<string>("InventoryType");
b.Property<bool>("IsChecked");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Machine")
.HasMaxLength(32);
b.Property<int>("MaterialConstructionId");
b.Property<string>("MaterialConstructionName")
.HasMaxLength(1024);
b.Property<int>("MaterialId");
b.Property<string>("MaterialName")
.HasMaxLength(1024);
b.Property<string>("MaterialOrigin");
b.Property<string>("MaterialWidth")
.HasMaxLength(1024);
b.Property<string>("Motif")
.HasMaxLength(4096);
b.Property<double>("PackagingLength");
b.Property<decimal>("PackagingQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("PackagingType")
.HasMaxLength(128);
b.Property<string>("PackagingUnit")
.HasMaxLength(128);
b.Property<string>("PackingInstruction")
.HasMaxLength(4096);
b.Property<int>("ProcessTypeId");
b.Property<string>("ProcessTypeName")
.HasMaxLength(1024);
b.Property<string>("ProductPackingCode")
.HasMaxLength(4096);
b.Property<int>("ProductPackingId");
b.Property<string>("ProductSKUCode")
.HasMaxLength(128);
b.Property<int>("ProductSKUId");
b.Property<string>("ProductionMachine")
.HasMaxLength(128);
b.Property<long>("ProductionOrderId");
b.Property<string>("ProductionOrderNo")
.HasMaxLength(128);
b.Property<double>("ProductionOrderOrderQuantity");
b.Property<string>("ProductionOrderType")
.HasMaxLength(512);
b.Property<string>("Remark")
.HasMaxLength(128);
b.Property<string>("Status")
.HasMaxLength(128);
b.Property<string>("Unit")
.HasMaxLength(4096);
b.Property<string>("UomUnit")
.HasMaxLength(32);
b.Property<int>("YarnMaterialId");
b.Property<string>("YarnMaterialName")
.HasMaxLength(1024);
b.HasKey("Id");
b.HasIndex("DyeingPrintingAreaInputId");
b.ToTable("DyeingPrintingAreaInputProductionOrders");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaMovementModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Area")
.HasMaxLength(128);
b.Property<double>("AvalQuantity");
b.Property<string>("AvalType")
.HasMaxLength(128);
b.Property<double>("AvalWeightQuantity");
b.Property<double>("Balance");
b.Property<string>("Buyer")
.HasMaxLength(4096);
b.Property<string>("CartNo")
.HasMaxLength(128);
b.Property<string>("Color")
.HasMaxLength(4096);
b.Property<string>("Construction")
.HasMaxLength(1024);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DyeingPrintingAreaDocumentBonNo")
.HasMaxLength(64);
b.Property<int>("DyeingPrintingAreaDocumentId");
b.Property<int>("DyeingPrintingAreaProductionOrderDocumentId");
b.Property<string>("Grade")
.HasMaxLength(128);
b.Property<string>("InventoryType");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("MaterialOrigin");
b.Property<string>("Motif")
.HasMaxLength(4096);
b.Property<double>("PackagingLength");
b.Property<decimal>("PackagingQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("PackagingUnit")
.HasMaxLength(128);
b.Property<string>("PackingType")
.HasMaxLength(128);
b.Property<long>("ProductionOrderId");
b.Property<string>("ProductionOrderNo")
.HasMaxLength(128);
b.Property<string>("ProductionOrderType")
.HasMaxLength(512);
b.Property<string>("Remark")
.HasMaxLength(4096);
b.Property<string>("Type")
.HasMaxLength(32);
b.Property<string>("Unit")
.HasMaxLength(4096);
b.Property<string>("UomUnit")
.HasMaxLength(32);
b.HasKey("Id");
b.ToTable("DyeingPrintingAreaMovements");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaOutputModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("AdjItemCategory")
.HasMaxLength(16);
b.Property<string>("Area")
.HasMaxLength(64);
b.Property<string>("BonNo")
.HasMaxLength(64);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<long>("DeliveryOrderAvalId");
b.Property<string>("DeliveryOrderAvalNo")
.HasMaxLength(128);
b.Property<long>("DeliveryOrderSalesId");
b.Property<string>("DeliveryOrderSalesNo")
.HasMaxLength(128);
b.Property<string>("DestinationArea")
.HasMaxLength(64);
b.Property<string>("Group")
.HasMaxLength(16);
b.Property<bool>("HasNextAreaDocument");
b.Property<bool>("HasSalesInvoice");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Shift")
.HasMaxLength(64);
b.Property<string>("ShippingCode")
.HasMaxLength(128);
b.Property<string>("Type")
.HasMaxLength(32);
b.HasKey("Id");
b.ToTable("DyeingPrintingAreaOutputs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaOutputProductionOrderModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("AdjDocumentNo")
.HasMaxLength(128);
b.Property<string>("Area")
.HasMaxLength(64);
b.Property<double>("AvalALength");
b.Property<double>("AvalBLength");
b.Property<string>("AvalCartNo");
b.Property<double>("AvalConnectionLength");
b.Property<double>("AvalQuantityKg");
b.Property<string>("AvalType");
b.Property<double>("Balance");
b.Property<string>("Buyer")
.HasMaxLength(4096);
b.Property<int>("BuyerId");
b.Property<string>("CartNo")
.HasMaxLength(128);
b.Property<string>("Color")
.HasMaxLength(4096);
b.Property<string>("Construction")
.HasMaxLength(1024);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("DateIn");
b.Property<DateTimeOffset>("DateOut");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DeliveryNote")
.HasMaxLength(128);
b.Property<long>("DeliveryOrderSalesId");
b.Property<string>("DeliveryOrderSalesNo")
.HasMaxLength(128);
b.Property<string>("Description")
.HasMaxLength(4096);
b.Property<string>("DestinationArea")
.HasMaxLength(64);
b.Property<string>("DestinationBuyerName");
b.Property<int>("DyeingPrintingAreaInputProductionOrderId")
.HasMaxLength(128);
b.Property<int>("DyeingPrintingAreaOutputId");
b.Property<int>("FabricPackingId");
b.Property<int>("FabricSKUId");
b.Property<string>("FinishWidth")
.HasMaxLength(1024);
b.Property<string>("Grade")
.HasMaxLength(128);
b.Property<bool>("HasNextAreaDocument");
b.Property<bool>("HasPrintingProductPacking");
b.Property<bool>("HasPrintingProductSKU");
b.Property<bool>("HasSalesInvoice");
b.Property<string>("InventoryType");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Machine")
.HasMaxLength(32);
b.Property<int>("MaterialConstructionId");
b.Property<string>("MaterialConstructionName")
.HasMaxLength(1024);
b.Property<int>("MaterialId");
b.Property<string>("MaterialName")
.HasMaxLength(1024);
b.Property<string>("MaterialOrigin");
b.Property<string>("MaterialWidth")
.HasMaxLength(1024);
b.Property<string>("Motif")
.HasMaxLength(4096);
b.Property<string>("NextAreaInputStatus")
.HasMaxLength(16);
b.Property<double>("PackagingLength");
b.Property<decimal>("PackagingQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("PackagingType")
.HasMaxLength(128);
b.Property<string>("PackagingUnit")
.HasMaxLength(128);
b.Property<string>("PackingInstruction")
.HasMaxLength(4096);
b.Property<string>("PrevSppInJson")
.HasColumnType("varchar(MAX)");
b.Property<int>("ProcessTypeId");
b.Property<string>("ProcessTypeName")
.HasMaxLength(1024);
b.Property<string>("ProductPackingCode")
.HasMaxLength(4096);
b.Property<int>("ProductPackingId");
b.Property<string>("ProductSKUCode")
.HasMaxLength(128);
b.Property<int>("ProductSKUId");
b.Property<string>("ProductionMachine")
.HasMaxLength(128);
b.Property<long>("ProductionOrderId");
b.Property<string>("ProductionOrderNo")
.HasMaxLength(128);
b.Property<double>("ProductionOrderOrderQuantity");
b.Property<string>("ProductionOrderType")
.HasMaxLength(512);
b.Property<string>("Remark")
.HasMaxLength(128);
b.Property<string>("ShippingGrade")
.HasMaxLength(128);
b.Property<string>("ShippingRemark")
.HasMaxLength(512);
b.Property<string>("Status")
.HasMaxLength(128);
b.Property<string>("Unit")
.HasMaxLength(4096);
b.Property<string>("UomUnit")
.HasMaxLength(32);
b.Property<double>("Weight");
b.Property<int>("YarnMaterialId");
b.Property<string>("YarnMaterialName")
.HasMaxLength(1024);
b.HasKey("Id");
b.HasIndex("DyeingPrintingAreaOutputId");
b.ToTable("DyeingPrintingAreaOutputProductionOrders");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaSummaryModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Area")
.HasMaxLength(128);
b.Property<double>("Balance");
b.Property<string>("Buyer")
.HasMaxLength(4096);
b.Property<string>("CartNo")
.HasMaxLength(128);
b.Property<string>("Color")
.HasMaxLength(4096);
b.Property<string>("Construction")
.HasMaxLength(1024);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DyeingPrintingAreaDocumentBonNo")
.HasMaxLength(64);
b.Property<int>("DyeingPrintingAreaDocumentId");
b.Property<int>("DyeingPrintingAreaProductionOrderDocumentId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Motif")
.HasMaxLength(4096);
b.Property<long>("ProductionOrderId");
b.Property<string>("ProductionOrderNo")
.HasMaxLength(128);
b.Property<string>("Type")
.HasMaxLength(32);
b.Property<string>("Unit")
.HasMaxLength(4096);
b.Property<string>("UomUnit")
.HasMaxLength(32);
b.HasKey("Id");
b.ToTable("DyeingPrintingAreaSummaries");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingStockOpname.DyeingPrintingStockOpnameModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Area")
.HasMaxLength(64);
b.Property<string>("BonNo")
.HasMaxLength(64);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Type")
.HasMaxLength(32);
b.HasKey("Id");
b.ToTable("DyeingPrintingStockOpnames");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingStockOpname.DyeingPrintingStockOpnameProductionOrderModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("Balance");
b.Property<string>("Buyer")
.HasMaxLength(4096);
b.Property<int>("BuyerId");
b.Property<string>("CartNo")
.HasMaxLength(128);
b.Property<string>("Color")
.HasMaxLength(4096);
b.Property<string>("Construction")
.HasMaxLength(1024);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DocumentNo")
.HasMaxLength(128);
b.Property<int>("DyeingPrintingStockOpnameId");
b.Property<int>("FabricPackingId");
b.Property<int>("FabricSKUId");
b.Property<string>("Grade")
.HasMaxLength(128);
b.Property<bool>("HasPrintingProductPacking");
b.Property<bool>("HasPrintingProductSKU");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("MaterialConstructionId");
b.Property<string>("MaterialConstructionName")
.HasMaxLength(1024);
b.Property<int>("MaterialId");
b.Property<string>("MaterialName")
.HasMaxLength(1024);
b.Property<string>("MaterialWidth")
.HasMaxLength(1024);
b.Property<string>("Motif")
.HasMaxLength(4096);
b.Property<double>("PackagingLength");
b.Property<decimal>("PackagingQty")
.HasColumnType("decimal(18,2)");
b.Property<string>("PackagingType")
.HasMaxLength(128);
b.Property<string>("PackagingUnit")
.HasMaxLength(128);
b.Property<string>("PackingInstruction")
.HasMaxLength(4096);
b.Property<int>("ProcessTypeId");
b.Property<string>("ProcessTypeName");
b.Property<string>("ProductPackingCode");
b.Property<int>("ProductPackingId");
b.Property<string>("ProductSKUCode");
b.Property<int>("ProductSKUId");
b.Property<long>("ProductionOrderId");
b.Property<string>("ProductionOrderNo")
.HasMaxLength(128);
b.Property<double>("ProductionOrderOrderQuantity");
b.Property<string>("ProductionOrderType")
.HasMaxLength(512);
b.Property<string>("Remark")
.HasMaxLength(128);
b.Property<string>("Status")
.HasMaxLength(128);
b.Property<string>("Unit")
.HasMaxLength(4096);
b.Property<string>("UomUnit")
.HasMaxLength(32);
b.Property<int>("YarnMaterialId")
.HasMaxLength(1024);
b.Property<string>("YarnMaterialName");
b.HasKey("Id");
b.HasIndex("DyeingPrintingStockOpnameId");
b.ToTable("DyeingPrintingStockOpnameProductionOrders");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.CriteriaModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("Code")
.HasMaxLength(32);
b.Property<int>("FabricGradeTestId");
b.Property<string>("Group")
.HasMaxLength(4096);
b.Property<int>("Index");
b.Property<string>("Name")
.HasMaxLength(4096);
b.Property<double>("ScoreA");
b.Property<double>("ScoreB");
b.Property<double>("ScoreC");
b.Property<double>("ScoreD");
b.HasKey("Id");
b.HasIndex("FabricGradeTestId");
b.ToTable("NewCriterias");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.FabricGradeTestModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("AvalALength");
b.Property<double>("AvalBLength");
b.Property<double>("AvalConnectionLength");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<double>("FabricGradeTest");
b.Property<int>("FabricQualityControlId");
b.Property<double>("FinalArea");
b.Property<double>("FinalGradeTest");
b.Property<double>("FinalLength");
b.Property<double>("FinalScore");
b.Property<string>("Grade")
.HasMaxLength(512);
b.Property<double>("InitLength");
b.Property<bool>("IsDeleted");
b.Property<int>("ItemIndex");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("PcsNo")
.HasMaxLength(4096);
b.Property<double>("PointLimit");
b.Property<double>("PointSystem");
b.Property<double>("SampleLength");
b.Property<double>("Score");
b.Property<string>("Type")
.HasMaxLength(1024);
b.Property<double>("Width");
b.HasKey("Id");
b.HasIndex("FabricQualityControlId");
b.ToTable("NewFabricGradeTests");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.FabricQualityControlModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(32);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("DateIm");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DyeingPrintingAreaInputBonNo")
.HasMaxLength(64);
b.Property<int>("DyeingPrintingAreaInputId");
b.Property<int>("DyeingPrintingAreaInputProductionOrderId");
b.Property<string>("Group")
.HasMaxLength(4096);
b.Property<bool>("IsDeleted");
b.Property<bool>("IsUsed");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("MachineNoIm")
.HasMaxLength(4096);
b.Property<string>("OperatorIm")
.HasMaxLength(4096);
b.Property<double>("PointLimit");
b.Property<double>("PointSystem");
b.Property<string>("ProductionOrderNo")
.HasMaxLength(128);
b.Property<string>("UId")
.HasMaxLength(256);
b.HasKey("Id");
b.ToTable("NewFabricQualityControls");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.AmendLetterOfCredit.GarmentShippingAmendLetterOfCreditModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<int>("AmendNumber");
b.Property<double>("Amount");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<string>("DocumentCreditNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("LetterOfCreditId");
b.HasKey("Id");
b.ToTable("GarmentShippingAmendLetterOfCredits");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.CoverLetter.GarmentShippingCoverLetterModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("ATTN")
.HasMaxLength(250);
b.Property<bool>("Active");
b.Property<string>("Address")
.HasMaxLength(1000);
b.Property<DateTimeOffset>("BookingDate");
b.Property<double>("CartoonQuantity");
b.Property<string>("ContainerNo")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DLSeal")
.HasMaxLength(250);
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Destination");
b.Property<string>("Driver")
.HasMaxLength(250);
b.Property<string>("EMKLCode")
.HasMaxLength(100);
b.Property<int>("EMKLId");
b.Property<string>("EMKLSeal")
.HasMaxLength(250);
b.Property<DateTimeOffset>("ExportEstimationDate");
b.Property<string>("ForwarderCode")
.HasMaxLength(50);
b.Property<int>("ForwarderId");
b.Property<string>("ForwarderName")
.HasMaxLength(250);
b.Property<string>("Freight")
.HasMaxLength(250);
b.Property<int>("InvoiceId");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Name")
.HasMaxLength(250);
b.Property<string>("OrderCode")
.HasMaxLength(100);
b.Property<int>("OrderId");
b.Property<string>("OrderName")
.HasMaxLength(255);
b.Property<double>("PACKQuantity");
b.Property<double>("PCSQuantity");
b.Property<string>("PIC");
b.Property<int>("PackingListId");
b.Property<string>("Phone")
.HasMaxLength(250);
b.Property<string>("PlateNumber")
.HasMaxLength(250);
b.Property<double>("SETSQuantity");
b.Property<string>("ShippingSeal")
.HasMaxLength(250);
b.Property<int>("ShippingStaffId");
b.Property<string>("ShippingStaffName")
.HasMaxLength(250);
b.Property<string>("Truck")
.HasMaxLength(250);
b.Property<string>("Unit")
.HasMaxLength(1000);
b.HasKey("Id");
b.ToTable("GarmentShippingCoverLetters");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.CreditAdvice.GarmentShippingCreditAdviceModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<DateTimeOffset>("AccountsReceivablePolicyDate");
b.Property<string>("AccountsReceivablePolicyNo")
.HasMaxLength(50);
b.Property<double>("AccountsReceivablePolicyValue");
b.Property<bool>("Active");
b.Property<double>("Amount");
b.Property<double>("AmountToBePaid");
b.Property<double>("BTBAmount");
b.Property<DateTimeOffset>("BTBCADate");
b.Property<double>("BTBMaterial");
b.Property<double>("BTBRate");
b.Property<double>("BTBRatio");
b.Property<double>("BTBTransfer");
b.Property<int>("BankAccountId");
b.Property<string>("BankAccountName")
.HasMaxLength(255);
b.Property<string>("BankAddress")
.HasMaxLength(1000);
b.Property<double>("BankCharges");
b.Property<double>("BankComission");
b.Property<double>("BillAmount");
b.Property<string>("BillCA")
.HasMaxLength(250);
b.Property<double>("BillDays");
b.Property<string>("BuyerAddress")
.HasMaxLength(1000);
b.Property<int>("BuyerId");
b.Property<string>("BuyerName")
.HasMaxLength(255);
b.Property<DateTimeOffset>("CargoPolicyDate");
b.Property<string>("CargoPolicyNo")
.HasMaxLength(50);
b.Property<double>("CargoPolicyValue");
b.Property<string>("Condition")
.HasMaxLength(25);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<double>("CreditInterest");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<double>("Disconto");
b.Property<double>("DiscrepancyFee");
b.Property<DateTimeOffset>("DocumentPresente");
b.Property<DateTimeOffset>("DocumentSendDate");
b.Property<double>("Inkaso");
b.Property<int>("InvoiceId");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LCNo")
.HasMaxLength(25);
b.Property<string>("LCType")
.HasMaxLength(25);
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("NegoDate");
b.Property<double>("NettNego");
b.Property<double>("OtherCharge");
b.Property<int>("PackingListId");
b.Property<DateTimeOffset>("PaymentDate");
b.Property<string>("PaymentTerm")
.HasMaxLength(25);
b.Property<string>("ReceiptNo");
b.Property<string>("Remark")
.HasMaxLength(1000);
b.Property<string>("SRNo")
.HasMaxLength(250);
b.Property<bool>("Valas");
b.HasKey("Id");
b.ToTable("GarmentShippingCreditAdvices");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ExportSalesDO.GarmentShippingExportSalesDOItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("CartonQuantity");
b.Property<string>("ComodityCode")
.HasMaxLength(100);
b.Property<int>("ComodityId");
b.Property<string>("ComodityName")
.HasMaxLength(500);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<int>("ExportSalesDOId");
b.Property<double>("GrossWeight");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("NettWeight");
b.Property<double>("Quantity");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(100);
b.Property<double>("Volume");
b.HasKey("Id");
b.HasIndex("ExportSalesDOId");
b.ToTable("GarmentShippingExportSalesDOItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ExportSalesDO.GarmentShippingExportSalesDOModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BuyerAgentCode")
.HasMaxLength(100);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DeliverTo")
.HasMaxLength(255);
b.Property<string>("ExportSalesDONo")
.HasMaxLength(50);
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PackingListId");
b.Property<string>("Remark")
.HasMaxLength(2000);
b.Property<string>("ShipmentMode")
.HasMaxLength(255);
b.Property<string>("To")
.HasMaxLength(255);
b.Property<string>("UnitCode")
.HasMaxLength(100);
b.Property<int>("UnitId");
b.Property<string>("UnitName")
.HasMaxLength(255);
b.HasKey("Id");
b.ToTable("GarmentShippingExportSalesDOs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentDebiturBalance.GarmentDebiturBalanceModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("BalanceAmount");
b.Property<DateTimeOffset>("BalanceDate");
b.Property<string>("BuyerAgentCode")
.HasMaxLength(100);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.HasKey("Id");
b.ToTable("GarmentDebiturBalances");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListDetailModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("Carton1");
b.Property<double>("Carton2");
b.Property<double>("CartonQuantity");
b.Property<string>("Colour")
.HasMaxLength(100);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<double>("GrossWeight");
b.Property<double>("Height");
b.Property<int>("Index");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("Length");
b.Property<double>("NetNetWeight");
b.Property<double>("NetWeight");
b.Property<int>("PackingListItemId");
b.Property<double>("QuantityPCS");
b.Property<string>("Style")
.HasMaxLength(100);
b.Property<double>("TotalQuantity");
b.Property<double>("Width");
b.HasKey("Id");
b.HasIndex("PackingListItemId");
b.ToTable("GarmentPackingListDetails");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListDetailSizeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PackingListDetailId");
b.Property<double>("Quantity");
b.Property<string>("Size")
.HasMaxLength(100);
b.Property<int>("SizeId");
b.HasKey("Id");
b.HasIndex("PackingListDetailId");
b.ToTable("GarmentPackingListDetailSizes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("Amount");
b.Property<string>("Article")
.HasMaxLength(100);
b.Property<int>("BuyerBrandId");
b.Property<string>("BuyerBrandName")
.HasMaxLength(50);
b.Property<string>("ComodityCode")
.HasMaxLength(50);
b.Property<string>("ComodityDescription")
.HasMaxLength(1000);
b.Property<int>("ComodityId");
b.Property<string>("ComodityName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<string>("DescriptionMd")
.HasMaxLength(1000);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("OrderNo")
.HasMaxLength(100);
b.Property<int>("PackingListId");
b.Property<double>("Price");
b.Property<double>("PriceCMT");
b.Property<double>("PriceFOB");
b.Property<double>("PriceRO");
b.Property<double>("Quantity");
b.Property<string>("RONo")
.HasMaxLength(50);
b.Property<string>("SCNo")
.HasMaxLength(50);
b.Property<string>("UnitCode")
.HasMaxLength(50);
b.Property<int>("UnitId");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(50);
b.Property<string>("Valas")
.HasMaxLength(50);
b.HasKey("Id");
b.HasIndex("PackingListId");
b.ToTable("GarmentPackingListItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListMeasurementModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("CartonsQuantity");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<double>("Height");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("Length");
b.Property<int>("PackingListId");
b.Property<double>("Width");
b.HasKey("Id");
b.HasIndex("PackingListId");
b.ToTable("GarmentPackingListMeasurements");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Accounting");
b.Property<bool>("Active");
b.Property<string>("BuyerAgentCode")
.HasMaxLength(100);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<string>("Destination")
.HasMaxLength(50);
b.Property<DateTimeOffset>("ExportEstimationDate");
b.Property<string>("FabricComposition")
.HasMaxLength(255);
b.Property<string>("FabricCountryOrigin")
.HasMaxLength(255);
b.Property<string>("FinalDestination")
.HasMaxLength(50);
b.Property<double>("GrossWeight");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<string>("InvoiceType")
.HasMaxLength(25);
b.Property<bool>("IsCostStructured");
b.Property<bool>("IsDeleted");
b.Property<bool>("IsPosted");
b.Property<bool>("IsUsed");
b.Property<string>("IssuedBy")
.HasMaxLength(100);
b.Property<DateTimeOffset>("LCDate");
b.Property<string>("LCNo")
.HasMaxLength(100);
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("NetNetWeight");
b.Property<double>("NettWeight");
b.Property<bool>("Omzet");
b.Property<string>("OtherCommodity")
.HasMaxLength(2000);
b.Property<string>("PackingListType")
.HasMaxLength(25);
b.Property<string>("PaymentTerm")
.HasMaxLength(25);
b.Property<string>("Remark")
.HasMaxLength(2000);
b.Property<string>("RemarkImagePath")
.HasMaxLength(500);
b.Property<string>("RemarkMd")
.HasMaxLength(2000);
b.Property<string>("SayUnit")
.HasMaxLength(50);
b.Property<string>("SectionCode")
.HasMaxLength(100);
b.Property<int>("SectionId");
b.Property<string>("ShipmentMode");
b.Property<string>("ShippingMark")
.HasMaxLength(2000);
b.Property<string>("ShippingMarkImagePath")
.HasMaxLength(500);
b.Property<int>("ShippingStaffId");
b.Property<string>("ShippingStaffName")
.HasMaxLength(255);
b.Property<string>("SideMark")
.HasMaxLength(2000);
b.Property<string>("SideMarkImagePath")
.HasMaxLength(500);
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(50);
b.Property<double>("TotalCartons");
b.Property<DateTimeOffset>("TruckingDate");
b.Property<DateTimeOffset>("TruckingEstimationDate");
b.HasKey("Id");
b.HasIndex("InvoiceNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentPackingLists");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListStatusActivityModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTimeOffset>("CreatedDate");
b.Property<int>("PackingListId");
b.Property<string>("Remark")
.HasMaxLength(2000);
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(50);
b.HasKey("Id");
b.HasIndex("PackingListId");
b.ToTable("GarmentPackingListStatusActivities");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingCostStructure.GarmentShippingCostStructureDetailModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<int>("CostStructureItemId");
b.Property<string>("CountryFrom")
.HasMaxLength(50);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("Percentage");
b.Property<double>("Value");
b.HasKey("Id");
b.HasIndex("CostStructureItemId");
b.ToTable("GarmentShippingCostStructureDetails");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingCostStructure.GarmentShippingCostStructureItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<int>("CostStructureId");
b.Property<int>("CostStructureType");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("SummaryPercentage");
b.Property<double>("SummaryValue");
b.HasKey("Id");
b.ToTable("GarmentShippingCostStructureItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingCostStructure.GarmentShippingCostStructureModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("Amount");
b.Property<string>("ComodityCode")
.HasMaxLength(50);
b.Property<int>("ComodityId");
b.Property<string>("ComodityName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Destination")
.HasMaxLength(50);
b.Property<string>("FabricType");
b.Property<int>("FabricTypeId");
b.Property<string>("HsCode")
.HasMaxLength(100);
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PackingListId");
b.HasKey("Id");
b.HasIndex("InvoiceNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingCostStructures");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInstruction.GarmentShippingInstructionModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("ATTN")
.HasMaxLength(1000);
b.Property<bool>("Active");
b.Property<int>("BankAccountId");
b.Property<string>("BankAccountName")
.HasMaxLength(255);
b.Property<string>("BuyerAgentAddress")
.HasMaxLength(4000);
b.Property<string>("BuyerAgentCode")
.HasMaxLength(100);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(255);
b.Property<string>("CC")
.HasMaxLength(500);
b.Property<string>("Carrier")
.HasMaxLength(255);
b.Property<string>("CartonNo")
.HasMaxLength(50);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Fax")
.HasMaxLength(500);
b.Property<string>("FeederVessel")
.HasMaxLength(255);
b.Property<string>("Flight")
.HasMaxLength(255);
b.Property<string>("ForwarderAddress")
.HasMaxLength(4000);
b.Property<string>("ForwarderCode")
.HasMaxLength(50);
b.Property<int>("ForwarderId");
b.Property<string>("ForwarderName")
.HasMaxLength(255);
b.Property<string>("ForwarderPhone")
.HasMaxLength(255);
b.Property<string>("Freight")
.HasMaxLength(1000);
b.Property<int>("InvoiceId");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LadingBill")
.HasMaxLength(4000);
b.Property<DateTimeOffset>("LadingDate");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Marks")
.HasMaxLength(4000);
b.Property<string>("Notify")
.HasMaxLength(2000);
b.Property<string>("OceanVessel")
.HasMaxLength(255);
b.Property<string>("Phone")
.HasMaxLength(50);
b.Property<string>("PlaceOfDelivery")
.HasMaxLength(255);
b.Property<string>("PortOfDischarge")
.HasMaxLength(255);
b.Property<string>("ShippedBy")
.HasMaxLength(20);
b.Property<int>("ShippingStaffId");
b.Property<string>("ShippingStaffName")
.HasMaxLength(500);
b.Property<string>("SpecialInstruction")
.HasMaxLength(2000);
b.Property<string>("Transit")
.HasMaxLength(255);
b.Property<DateTimeOffset>("TruckingDate");
b.HasKey("Id");
b.ToTable("GarmentShippingInstructions");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceAdjustmentModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<int>("AdditionalChargesId");
b.Property<string>("AdjustmentDescription");
b.Property<decimal>("AdjustmentValue");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<int>("GarmentShippingInvoiceId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.HasKey("Id");
b.HasIndex("GarmentShippingInvoiceId");
b.ToTable("GarmentShippingInvoiceAdjustments");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("Amount");
b.Property<int>("BuyerBrandId");
b.Property<string>("BuyerBrandName")
.HasMaxLength(100);
b.Property<decimal>("CMTPrice");
b.Property<string>("ComodityCode")
.HasMaxLength(5);
b.Property<string>("ComodityDesc")
.HasMaxLength(128);
b.Property<int>("ComodityId");
b.Property<string>("ComodityName")
.HasMaxLength(50);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("CurrencyCode");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Desc2")
.HasMaxLength(128);
b.Property<string>("Desc3")
.HasMaxLength(128);
b.Property<string>("Desc4")
.HasMaxLength(128);
b.Property<int>("GarmentShippingInvoiceId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PackingListItemId");
b.Property<decimal>("Price");
b.Property<decimal>("PriceRO");
b.Property<double>("Quantity");
b.Property<string>("RONo")
.HasMaxLength(10);
b.Property<string>("SCNo")
.HasMaxLength(256);
b.Property<string>("UnitCode")
.HasMaxLength(10);
b.Property<int>("UnitId");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(10);
b.HasKey("Id");
b.HasIndex("GarmentShippingInvoiceId");
b.ToTable("GarmentShippingInvoiceItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("AmountToBePaid");
b.Property<string>("BL")
.HasMaxLength(50);
b.Property<DateTimeOffset>("BLDate");
b.Property<string>("BankAccount")
.HasMaxLength(50);
b.Property<int>("BankAccountId");
b.Property<string>("BuyerAgentCode")
.HasMaxLength(100);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(255);
b.Property<string>("CO")
.HasMaxLength(50);
b.Property<DateTimeOffset>("CODate");
b.Property<string>("COTP")
.HasMaxLength(50);
b.Property<DateTimeOffset>("COTPDate");
b.Property<string>("CPrice");
b.Property<string>("ConfirmationOfOrderNo")
.HasMaxLength(255);
b.Property<string>("Consignee")
.HasMaxLength(255);
b.Property<string>("ConsigneeAddress")
.HasMaxLength(4000);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DeliverTo")
.HasMaxLength(1500);
b.Property<string>("Description")
.HasColumnType("text");
b.Property<string>("FabricType")
.HasMaxLength(100);
b.Property<int>("FabricTypeId");
b.Property<string>("From")
.HasMaxLength(255);
b.Property<DateTimeOffset>("InvoiceDate");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<bool>("IsUsed");
b.Property<string>("IssuedBy")
.HasMaxLength(100);
b.Property<string>("LCNo")
.HasMaxLength(100);
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Memo");
b.Property<DateTimeOffset>("NPEDate");
b.Property<string>("NPENo")
.HasMaxLength(50);
b.Property<DateTimeOffset>("PEBDate");
b.Property<string>("PEBNo")
.HasMaxLength(50);
b.Property<int>("PackingListId");
b.Property<int>("PaymentDue")
.HasMaxLength(5);
b.Property<string>("Remark");
b.Property<DateTimeOffset>("SailingDate");
b.Property<string>("SectionCode")
.HasMaxLength(100);
b.Property<int>("SectionId");
b.Property<string>("ShippingPer")
.HasMaxLength(256);
b.Property<string>("ShippingStaff")
.HasMaxLength(255);
b.Property<int>("ShippingStaffId");
b.Property<string>("To")
.HasMaxLength(255);
b.Property<decimal>("TotalAmount");
b.HasKey("Id");
b.ToTable("GarmentShippingInvoices");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceUnitModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("AmountPercentage");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<int>("GarmentShippingInvoiceId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<decimal>("QuantityPercentage");
b.Property<string>("UnitCode")
.HasMaxLength(10);
b.Property<int>("UnitId");
b.HasKey("Id");
b.HasIndex("GarmentShippingInvoiceId");
b.ToTable("GarmentShippingInvoiceUnitPercentages");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.InsuranceDisposition.GarmentShippingInsuranceDispositionItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("Amount");
b.Property<decimal>("Amount1A");
b.Property<decimal>("Amount1B");
b.Property<decimal>("Amount2A");
b.Property<decimal>("Amount2B");
b.Property<decimal>("Amount2C");
b.Property<string>("BuyerAgentCode")
.HasMaxLength(10);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<decimal>("CurrencyRate");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<int>("InsuranceDispositionId");
b.Property<int>("InvoiceId");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("PolicyDate");
b.Property<string>("PolicyNo")
.HasMaxLength(255);
b.HasKey("Id");
b.HasIndex("InsuranceDispositionId");
b.ToTable("GarmentShippingInsuranceDispositionItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.InsuranceDisposition.GarmentShippingInsuranceDispositionModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BankName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DispositionNo")
.HasMaxLength(50);
b.Property<string>("InsuranceCode")
.HasMaxLength(50);
b.Property<int>("InsuranceId");
b.Property<string>("InsuranceName")
.HasMaxLength(255);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("PaymentDate");
b.Property<string>("PolicyType")
.HasMaxLength(25);
b.Property<decimal>("Rate");
b.Property<string>("Remark")
.HasMaxLength(4000);
b.HasKey("Id");
b.HasIndex("DispositionNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingInsuranceDispositions");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LetterOfCredit.GarmentShippingLetterOfCreditModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("ApplicantCode")
.HasMaxLength(100);
b.Property<int>("ApplicantId");
b.Property<string>("ApplicantName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DocumentCreditNo")
.HasMaxLength(50);
b.Property<DateTimeOffset>("ExpireDate");
b.Property<string>("ExpirePlace")
.HasMaxLength(255);
b.Property<bool>("IsDeleted");
b.Property<string>("IssuedBank")
.HasMaxLength(200);
b.Property<string>("LCCondition")
.HasMaxLength(20);
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("LatestShipment");
b.Property<double>("Quantity");
b.Property<double>("TotalAmount");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(50);
b.HasKey("Id");
b.HasIndex("DocumentCreditNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingLetterOfCredits");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalCoverLetter.GarmentShippingLocalCoverLetterModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<DateTimeOffset>("BCDate");
b.Property<string>("BCNo")
.HasMaxLength(50);
b.Property<string>("BuyerAdddress")
.HasMaxLength(1000);
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Driver")
.HasMaxLength(250);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("LocalCoverLetterNo")
.HasMaxLength(50);
b.Property<int>("LocalSalesNoteId");
b.Property<string>("NoteNo")
.HasMaxLength(50);
b.Property<string>("PlateNumber")
.HasMaxLength(250);
b.Property<string>("Remark")
.HasMaxLength(1000);
b.Property<int>("ShippingStaffId");
b.Property<string>("ShippingStaffName")
.HasMaxLength(250);
b.Property<string>("Truck")
.HasMaxLength(250);
b.HasKey("Id");
b.ToTable("GarmentShippingLocalCoverLetters");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalReturnNote.GarmentShippingLocalReturnNoteItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("ReturnNoteId");
b.Property<double>("ReturnQuantity");
b.Property<int>("SalesNoteItemId");
b.HasKey("Id");
b.HasIndex("ReturnNoteId");
b.HasIndex("SalesNoteItemId");
b.ToTable("GarmentShippingLocalReturnNoteItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalReturnNote.GarmentShippingLocalReturnNoteModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(4000);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("ReturnDate");
b.Property<string>("ReturnNoteNo")
.HasMaxLength(50);
b.Property<int>("SalesNoteId");
b.HasKey("Id");
b.HasIndex("ReturnNoteNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.HasIndex("SalesNoteId");
b.ToTable("GarmentShippingLocalReturnNotes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesContract.GarmentShippingLocalSalesContractItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("LocalSalesContractId");
b.Property<double>("Price");
b.Property<string>("ProductCode")
.HasMaxLength(100);
b.Property<int>("ProductId");
b.Property<string>("ProductName")
.HasMaxLength(250);
b.Property<double>("Quantity");
b.Property<double>("RemainingQuantity");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(250);
b.HasKey("Id");
b.HasIndex("LocalSalesContractId");
b.ToTable("GarmentShippingLocalSalesContractItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesContract.GarmentShippingLocalSalesContractModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BuyerAddress")
.HasMaxLength(4000);
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerNPWP")
.HasMaxLength(50);
b.Property<string>("BuyerName")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<bool>("IsUseVat");
b.Property<bool>("IsUsed");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("SalesContractDate");
b.Property<string>("SalesContractNo")
.HasMaxLength(50);
b.Property<string>("SellerAddress")
.HasMaxLength(4000);
b.Property<string>("SellerNPWP")
.HasMaxLength(50);
b.Property<string>("SellerName")
.HasMaxLength(100);
b.Property<string>("SellerPosition")
.HasMaxLength(100);
b.Property<decimal>("SubTotal");
b.Property<string>("TransactionTypeCode")
.HasMaxLength(100);
b.Property<int>("TransactionTypeId");
b.Property<string>("TransactionTypeName")
.HasMaxLength(250);
b.HasKey("Id");
b.HasIndex("SalesContractNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingLocalSalesContracts");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesDO.GarmentShippingLocalSalesDOItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(1000);
b.Property<double>("GrossWeight");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("LocalSalesDOId");
b.Property<int>("LocalSalesNoteItemId");
b.Property<double>("NettWeight");
b.Property<double>("PackQuantity");
b.Property<int>("PackUomId");
b.Property<string>("PackUomUnit")
.HasMaxLength(100);
b.Property<string>("ProductCode")
.HasMaxLength(100);
b.Property<int>("ProductId");
b.Property<string>("ProductName")
.HasMaxLength(500);
b.Property<double>("Quantity");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(100);
b.HasKey("Id");
b.HasIndex("LocalSalesDOId");
b.ToTable("GarmentShippingLocalSalesDOItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesDO.GarmentShippingLocalSalesDOModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("LocalSalesDONo")
.HasMaxLength(50);
b.Property<int>("LocalSalesNoteId");
b.Property<string>("LocalSalesNoteNo")
.HasMaxLength(50);
b.Property<string>("Remark")
.HasMaxLength(3000);
b.Property<string>("StorageDivision")
.HasMaxLength(255);
b.Property<string>("To")
.HasMaxLength(255);
b.HasKey("Id");
b.ToTable("GarmentShippingLocalSalesDOs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionBillDetailModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("Amount");
b.Property<string>("BillDescription")
.HasMaxLength(1000);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PaymentDispositionId");
b.HasKey("Id");
b.HasIndex("PaymentDispositionId");
b.ToTable("GarmentShippingPaymentDispositionBillDetails");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionInvoiceDetailModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("Amount");
b.Property<decimal>("ChargeableWeight");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<decimal>("GrossWeight");
b.Property<int>("InvoiceId");
b.Property<string>("InvoiceNo")
.HasMaxLength(50);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PaymentDispositionId");
b.Property<decimal>("Quantity");
b.Property<decimal>("TotalCarton");
b.Property<decimal>("Volume");
b.HasKey("Id");
b.HasIndex("PaymentDispositionId");
b.ToTable("GarmentShippingPaymentDispositionInvoiceDetails");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("AccNo")
.HasMaxLength(100);
b.Property<bool>("Active");
b.Property<string>("Address")
.HasMaxLength(4000);
b.Property<string>("Bank")
.HasMaxLength(255);
b.Property<decimal>("BillValue");
b.Property<string>("BuyerAgentCode")
.HasMaxLength(100);
b.Property<int>("BuyerAgentId");
b.Property<string>("BuyerAgentName")
.HasMaxLength(255);
b.Property<string>("CourierCode")
.HasMaxLength(50);
b.Property<int>("CourierId");
b.Property<string>("CourierName")
.HasMaxLength(255);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Destination");
b.Property<string>("DispositionNo");
b.Property<string>("EMKLCode")
.HasMaxLength(50);
b.Property<int>("EMKLId");
b.Property<string>("EMKLName")
.HasMaxLength(255);
b.Property<string>("FlightVessel")
.HasMaxLength(4000);
b.Property<string>("ForwarderCode")
.HasMaxLength(50);
b.Property<int>("ForwarderId");
b.Property<string>("ForwarderName")
.HasMaxLength(255);
b.Property<string>("FreightBy")
.HasMaxLength(50);
b.Property<DateTimeOffset>("FreightDate");
b.Property<string>("FreightNo")
.HasMaxLength(255);
b.Property<int>("IncomeTaxId");
b.Property<string>("IncomeTaxName")
.HasMaxLength(255);
b.Property<decimal>("IncomeTaxRate");
b.Property<decimal>("IncomeTaxValue");
b.Property<DateTimeOffset>("InvoiceDate");
b.Property<string>("InvoiceNumber")
.HasMaxLength(100);
b.Property<string>("InvoiceTaxNumber")
.HasMaxLength(100);
b.Property<bool>("IsDeleted");
b.Property<bool>("IsFreightCharged");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("NPWP")
.HasMaxLength(100);
b.Property<string>("PaidAt")
.HasMaxLength(50);
b.Property<DateTimeOffset>("PaymentDate");
b.Property<string>("PaymentMethod")
.HasMaxLength(50);
b.Property<string>("PaymentTerm")
.HasMaxLength(50);
b.Property<string>("PaymentType")
.HasMaxLength(50);
b.Property<string>("Remark")
.HasMaxLength(4000);
b.Property<string>("SendBy");
b.Property<decimal>("TotalBill");
b.Property<decimal>("VatValue");
b.HasKey("Id");
b.ToTable("GarmentShippingPaymentDispositions");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionUnitChargeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<decimal>("AmountPercentage");
b.Property<decimal>("BillAmount");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PaymentDispositionId");
b.Property<string>("UnitCode")
.HasMaxLength(20);
b.Property<int>("UnitId");
b.HasKey("Id");
b.HasIndex("PaymentDispositionId");
b.ToTable("GarmentShippingPaymentDispositionUnitCharges");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDispositionRecap.GarmentShippingPaymentDispositionRecapItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("AmountService");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("OthersPayment");
b.Property<int>("PaymentDispositionId");
b.Property<int>("RecapId");
b.Property<double>("Service");
b.Property<double>("TruckingPayment");
b.Property<double>("VatService");
b.HasKey("Id");
b.HasIndex("RecapId");
b.ToTable("GarmentShippingPaymentDispositionRecapItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDispositionRecap.GarmentShippingPaymentDispositionRecapModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("EMKLAddress")
.HasMaxLength(4000);
b.Property<string>("EMKLCode")
.HasMaxLength(50);
b.Property<string>("EMKLNPWP")
.HasMaxLength(100);
b.Property<string>("EMKLName")
.HasMaxLength(255);
b.Property<int>("EmklId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("RecapNo")
.HasMaxLength(100);
b.HasKey("Id");
b.HasIndex("RecapNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingPaymentDispositionRecaps");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCorrectionNote.GarmentShippingLocalPriceCorrectionNoteItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("PriceCorrection");
b.Property<int>("PriceCorrectionNoteId");
b.Property<int>("SalesNoteItemId");
b.HasKey("Id");
b.HasIndex("PriceCorrectionNoteId");
b.HasIndex("SalesNoteItemId");
b.ToTable("GarmentShippingLocalPriceCorrectionNoteItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCorrectionNote.GarmentShippingLocalPriceCorrectionNoteModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<DateTimeOffset>("CorrectionDate");
b.Property<string>("CorrectionNoteNo")
.HasMaxLength(50);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Remark")
.HasMaxLength(1000);
b.Property<int>("SalesNoteId");
b.HasKey("Id");
b.HasIndex("CorrectionNoteNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.HasIndex("SalesNoteId");
b.ToTable("GarmentShippingLocalPriceCorrectionNotes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCuttingNote.GarmentShippingLocalPriceCuttingNoteItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<double>("CuttingAmount");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IncludeVat");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("PriceCuttingNoteId");
b.Property<double>("SalesAmount");
b.Property<int>("SalesNoteId");
b.Property<string>("SalesNoteNo")
.HasMaxLength(50);
b.HasKey("Id");
b.HasIndex("PriceCuttingNoteId");
b.ToTable("GarmentShippingLocalPriceCuttingNoteItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCuttingNote.GarmentShippingLocalPriceCuttingNoteModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerName")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("CuttingPriceNoteNo")
.HasMaxLength(50);
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Remark")
.HasMaxLength(1000);
b.Property<bool>("UseVat");
b.HasKey("Id");
b.HasIndex("CuttingPriceNoteNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingLocalPriceCuttingNotes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("LocalSalesContractItemId");
b.Property<int>("LocalSalesNoteId");
b.Property<double>("PackageQuantity");
b.Property<int>("PackageUomId");
b.Property<string>("PackageUomUnit")
.HasMaxLength(250);
b.Property<double>("Price");
b.Property<string>("ProductCode")
.HasMaxLength(100);
b.Property<int>("ProductId");
b.Property<string>("ProductName")
.HasMaxLength(250);
b.Property<double>("Quantity");
b.Property<int>("UomId");
b.Property<string>("UomUnit")
.HasMaxLength(250);
b.HasKey("Id");
b.HasIndex("LocalSalesNoteId");
b.ToTable("GarmentShippingLocalSalesNoteItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("ApproveFinanceBy");
b.Property<DateTimeOffset>("ApproveFinanceDate");
b.Property<string>("ApproveShippingBy");
b.Property<DateTimeOffset>("ApproveShippingDate");
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerNPWP")
.HasMaxLength(50);
b.Property<string>("BuyerName")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DispositionNo")
.HasMaxLength(100);
b.Property<string>("ExpenditureNo")
.HasMaxLength(50);
b.Property<bool>("IsApproveFinance");
b.Property<bool>("IsApproveShipping");
b.Property<bool>("IsDeleted");
b.Property<bool>("IsUsed");
b.Property<string>("KaberType")
.HasMaxLength(20);
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("LocalSalesContractId");
b.Property<string>("NoteNo")
.HasMaxLength(50);
b.Property<string>("PaymentType")
.HasMaxLength(20);
b.Property<string>("Remark")
.HasMaxLength(1000);
b.Property<string>("SalesContractNo")
.HasMaxLength(50);
b.Property<int>("Tempo");
b.Property<string>("TransactionTypeCode")
.HasMaxLength(100);
b.Property<int>("TransactionTypeId");
b.Property<string>("TransactionTypeName")
.HasMaxLength(250);
b.Property<bool>("UseVat");
b.HasKey("Id");
b.HasIndex("NoteNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingLocalSalesNotes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingNote.GarmentShippingNoteItemModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("Amount");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("CurrencyCode")
.HasMaxLength(100);
b.Property<int>("CurrencyId");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description")
.HasMaxLength(500);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("ShippingNoteId");
b.HasKey("Id");
b.HasIndex("ShippingNoteId");
b.ToTable("GarmentShippingNoteItems");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingNote.GarmentShippingNoteModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("BankCurrencyCode")
.HasMaxLength(100);
b.Property<int>("BankId");
b.Property<string>("BankName")
.HasMaxLength(250);
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerName")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("NoteNo")
.HasMaxLength(50);
b.Property<int?>("NoteType");
b.Property<DateTimeOffset>("ReceiptDate");
b.Property<string>("ReceiptNo");
b.Property<double>("TotalAmount");
b.HasKey("Id");
b.HasIndex("NoteNo")
.IsUnique()
.HasFilter("[IsDeleted]=(0)");
b.ToTable("GarmentShippingNotes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentInvoiceModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<int>("InvoiceId");
b.Property<string>("InvoiceNo")
.HasMaxLength(128);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("VBPaymentId");
b.HasKey("Id");
b.HasIndex("VBPaymentId");
b.ToTable("GarmentShippingVBPaymentInvoices");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("BillValue");
b.Property<string>("BuyerCode")
.HasMaxLength(100);
b.Property<int>("BuyerId");
b.Property<string>("BuyerName")
.HasMaxLength(250);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<string>("EMKLCode")
.HasMaxLength(100);
b.Property<int>("EMKLId");
b.Property<string>("EMKLInvoiceNo")
.HasMaxLength(100);
b.Property<string>("EMKLName")
.HasMaxLength(250);
b.Property<string>("ForwarderCode");
b.Property<int>("ForwarderId");
b.Property<string>("ForwarderInvoiceNo")
.HasMaxLength(100);
b.Property<string>("ForwarderName");
b.Property<int>("IncomeTaxId");
b.Property<string>("IncomeTaxName")
.HasMaxLength(255);
b.Property<double>("IncomeTaxRate");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<DateTimeOffset>("PaymentDate");
b.Property<string>("PaymentType")
.HasMaxLength(50);
b.Property<DateTimeOffset>("VBDate");
b.Property<string>("VBNo")
.HasMaxLength(50);
b.Property<double>("VatValue");
b.HasKey("Id");
b.ToTable("GarmentShippingVBPayments");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentUnitModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("BillValue");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("UnitCode")
.HasMaxLength(128);
b.Property<int>("UnitId");
b.Property<string>("UnitName")
.HasMaxLength(128);
b.Property<int>("VBPaymentId");
b.HasKey("Id");
b.HasIndex("VBPaymentId");
b.ToTable("GarmentShippingVBPaymentUnits");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.IPProcessTypeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(128);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("ProcessType")
.HasMaxLength(1024);
b.HasKey("Id");
b.ToTable("IPProcessType");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.IPWidthTypeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(128);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("WidthType")
.HasMaxLength(1024);
b.HasKey("Id");
b.ToTable("IPWidthType");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.IPWovenTypeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(128);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("WovenType")
.HasMaxLength(1024);
b.HasKey("Id");
b.ToTable("IPWovenType");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.IPYarnTypeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(128);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("YarnType")
.HasMaxLength(1024);
b.HasKey("Id");
b.ToTable("IPYarnType");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Inventory.ProductPackingInventoryDocumentModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DocumentNo")
.HasMaxLength(64);
b.Property<string>("InventoryType")
.HasMaxLength(32);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("ReferenceNo")
.HasMaxLength(64);
b.Property<string>("ReferenceType")
.HasMaxLength(256);
b.Property<string>("Remark");
b.Property<string>("StorageCode")
.HasMaxLength(64);
b.Property<int>("StorageId");
b.Property<string>("StorageName")
.HasMaxLength(512);
b.HasKey("Id");
b.ToTable("ProductPackingInventoryDocuments");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Inventory.ProductPackingInventoryMovementModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<int>("InventoryDocumentId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("ProductSKUId");
b.Property<double>("Quantity");
b.Property<string>("Remark");
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("ProductPackingInventoryMovements");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Inventory.ProductPackingInventorySummaryModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("ProductPackingId");
b.Property<double>("Quantity");
b.Property<string>("StorageCode")
.HasMaxLength(64);
b.Property<int>("StorageId");
b.Property<string>("StorageName")
.HasMaxLength(512);
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("ProductPackingInventorySummaries");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Inventory.ProductSKUInventoryDocumentModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<DateTimeOffset>("Date");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<string>("DocumentNo")
.HasMaxLength(64);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("ReferenceNo")
.HasMaxLength(64);
b.Property<string>("ReferenceType")
.HasMaxLength(256);
b.Property<string>("Remark");
b.Property<string>("StorageCode")
.HasMaxLength(64);
b.Property<int>("StorageId");
b.Property<string>("StorageName")
.HasMaxLength(512);
b.Property<string>("Type")
.HasMaxLength(32);
b.HasKey("Id");
b.ToTable("ProductSKUInventoryDocuments");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Inventory.ProductSKUInventoryMovementModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<double>("CurrentBalance");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<int>("InventoryDocumentId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("PreviousBalance");
b.Property<int>("ProductSKUId");
b.Property<double>("Quantity");
b.Property<string>("Remark");
b.Property<string>("StorageCode");
b.Property<int>("StorageId");
b.Property<string>("StorageName");
b.Property<string>("Type")
.HasMaxLength(32);
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("ProductSKUInventoryMovements");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Inventory.ProductSKUInventorySummaryModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<double>("Balance");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("ProductSKUId");
b.Property<string>("StorageCode")
.HasMaxLength(64);
b.Property<int>("StorageId");
b.Property<string>("StorageName")
.HasMaxLength(512);
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("ProductSKUInventorySummaries");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Master.GradeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(16);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsAvalGrade");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Type")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("IPGrades");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Master.MaterialConstructionModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(16);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Type")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("IPMaterialConstructions");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Master.WarpTypeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(16);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Type")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("IPWarpTypes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Master.WeftTypeModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(16);
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Type")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("IPWeftTypes");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.MaterialDeliveryNote.ItemsModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<decimal?>("GetTotal")
.HasConversion(new ValueConverter<decimal, decimal>(v => default(decimal), v => default(decimal), new ConverterMappingHints(precision: 38, scale: 17)))
.HasColumnType("decimal(18,2)");
b.Property<int?>("IdSOP")
.HasMaxLength(128);
b.Property<string>("InputLot")
.HasMaxLength(128);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int?>("MaterialDeliveryNoteModelId");
b.Property<string>("MaterialName")
.HasMaxLength(128);
b.Property<string>("NoSOP")
.HasMaxLength(128);
b.Property<decimal?>("WeightBale")
.HasConversion(new ValueConverter<decimal, decimal>(v => default(decimal), v => default(decimal), new ConverterMappingHints(precision: 38, scale: 17)))
.HasColumnType("decimal(18,2)");
b.Property<decimal?>("WeightBruto")
.HasConversion(new ValueConverter<decimal, decimal>(v => default(decimal), v => default(decimal), new ConverterMappingHints(precision: 38, scale: 17)))
.HasColumnType("decimal(18,2)");
b.Property<string>("WeightCone")
.HasMaxLength(128);
b.Property<string>("WeightDOS")
.HasMaxLength(128);
b.HasKey("Id");
b.HasIndex("MaterialDeliveryNoteModelId");
b.ToTable("Items");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.MaterialDeliveryNoteWeaving.ItemsMaterialDeliveryNoteWeavingModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent")
.HasMaxLength(128);
b.Property<string>("CreatedBy")
.HasMaxLength(128);
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent")
.HasMaxLength(128);
b.Property<string>("DeletedBy")
.HasMaxLength(128);
b.Property<DateTime>("DeletedUtc");
b.Property<decimal>("InputBale")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("InputKg")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("InputMeter")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("InputPiece")
.HasColumnType("decimal(18,2)");
b.Property<bool>("IsDeleted");
b.Property<string>("ItemCode")
.HasMaxLength(128);
b.Property<string>("ItemGrade")
.HasMaxLength(128);
b.Property<string>("ItemMaterialName")
.HasMaxLength(128);
b.Property<string>("ItemNoSOP")
.HasMaxLength(128);
b.Property<string>("ItemType")
.HasMaxLength(128);
b.Property<string>("LastModifiedAgent")
.HasMaxLength(128);
b.Property<string>("LastModifiedBy")
.HasMaxLength(128);
b.Property<DateTime>("LastModifiedUtc");
b.Property<int?>("MaterialDeliveryNoteWeavingId");
b.HasKey("Id");
b.HasIndex("MaterialDeliveryNoteWeavingId");
b.ToTable("ItemsMaterialDeliveryNoteWeaving");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Product.CategoryModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Name")
.HasMaxLength(64);
b.HasKey("Id");
b.ToTable("IPCategories");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Product.ProductPackingModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Name")
.HasMaxLength(512);
b.Property<double>("PackingSize");
b.Property<int>("ProductSKUId");
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("ProductPackings");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Product.ProductSKUModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<int>("CategoryId");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Description");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Name")
.HasMaxLength(512);
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("ProductSKUs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Product.UnitOfMeasurementModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("Unit")
.HasMaxLength(64);
b.HasKey("Id");
b.ToTable("IPUnitOfMeasurements");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.ProductByDivisionOrCategory.FabricProductPackingModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<int>("FabricProductSKUId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("PackingSize");
b.Property<int>("ProductPackingId");
b.Property<int>("ProductSKUId");
b.Property<int>("UOMId");
b.HasKey("Id");
b.ToTable("FabricProductPackings");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.ProductByDivisionOrCategory.FabricProductSKUModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<int>("ConstructionId");
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<int>("GradeId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<int>("ProcessTypeId");
b.Property<int>("ProductSKUId");
b.Property<int>("UOMId");
b.Property<int>("WarpId");
b.Property<int>("WeftId");
b.Property<int>("WidthId");
b.Property<int>("WovenTypeId");
b.Property<int>("YarnTypeId");
b.HasKey("Id");
b.ToTable("FabricProductSKUs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.ProductByDivisionOrCategory.GreigeProductPackingModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<int>("GreigeProductSKUId");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("PackingSize");
b.Property<int>("ProductPackingId");
b.Property<int>("ProductSKUId");
b.Property<string>("UOMUnit")
.HasMaxLength(64);
b.HasKey("Id");
b.ToTable("GreigeProductPackings");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.ProductByDivisionOrCategory.GreigeProductSKUModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("Construction")
.HasMaxLength(128);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<string>("Grade")
.HasMaxLength(32);
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("UOMUnit")
.HasMaxLength(64);
b.Property<string>("Warp")
.HasMaxLength(64);
b.Property<string>("Weft")
.HasMaxLength(64);
b.Property<string>("Width")
.HasMaxLength(64);
b.Property<string>("WovenType")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("GreigeProductSKUs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.ProductByDivisionOrCategory.YarnProductPackingModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<double>("PackingSize");
b.Property<int>("ProductPackingId");
b.Property<int>("ProductSKUId");
b.Property<string>("UOMUnit")
.HasMaxLength(64);
b.Property<int>("YarnProductSKUId");
b.HasKey("Id");
b.ToTable("YarnProductPackings");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.ProductByDivisionOrCategory.YarnProductSKUModel", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<bool>("Active");
b.Property<string>("Code")
.HasMaxLength(64);
b.Property<string>("CreatedAgent");
b.Property<string>("CreatedBy");
b.Property<DateTime>("CreatedUtc");
b.Property<string>("DeletedAgent");
b.Property<string>("DeletedBy");
b.Property<DateTime>("DeletedUtc");
b.Property<bool>("IsDeleted");
b.Property<string>("LastModifiedAgent");
b.Property<string>("LastModifiedBy");
b.Property<DateTime>("LastModifiedUtc");
b.Property<string>("LotNo")
.HasMaxLength(128);
b.Property<int>("ProductSKUId");
b.Property<string>("UOMUnit")
.HasMaxLength(64);
b.Property<string>("YarnType")
.HasMaxLength(128);
b.HasKey("Id");
b.ToTable("YarnProductSKUs");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaInputProductionOrderModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaInputModel", "DyeingPrintingAreaInput")
.WithMany("DyeingPrintingAreaInputProductionOrders")
.HasForeignKey("DyeingPrintingAreaInputId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaOutputProductionOrderModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingAreaMovement.DyeingPrintingAreaOutputModel", "DyeingPrintingAreaOutput")
.WithMany("DyeingPrintingAreaOutputProductionOrders")
.HasForeignKey("DyeingPrintingAreaOutputId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingStockOpname.DyeingPrintingStockOpnameProductionOrderModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.DyeingPrintingStockOpname.DyeingPrintingStockOpnameModel", "DyeingPrintingStockOpname")
.WithMany("DyeingPrintingStockOpnameProductionOrders")
.HasForeignKey("DyeingPrintingStockOpnameId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.CriteriaModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.FabricGradeTestModel", "FabricGradeTest")
.WithMany("Criteria")
.HasForeignKey("FabricGradeTestId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.FabricGradeTestModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.FabricQualityControl.FabricQualityControlModel", "FabricQualityControl")
.WithMany("FabricGradeTests")
.HasForeignKey("FabricQualityControlId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ExportSalesDO.GarmentShippingExportSalesDOItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ExportSalesDO.GarmentShippingExportSalesDOModel")
.WithMany("Items")
.HasForeignKey("ExportSalesDOId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListDetailModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListItemModel")
.WithMany("Details")
.HasForeignKey("PackingListItemId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListDetailSizeModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListDetailModel")
.WithMany("Sizes")
.HasForeignKey("PackingListDetailId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListModel")
.WithMany("Items")
.HasForeignKey("PackingListId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListMeasurementModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListModel")
.WithMany("Measurements")
.HasForeignKey("PackingListId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListStatusActivityModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentPackingList.GarmentPackingListModel")
.WithMany("StatusActivities")
.HasForeignKey("PackingListId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingCostStructure.GarmentShippingCostStructureDetailModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingCostStructure.GarmentShippingCostStructureItemModel")
.WithMany("Details")
.HasForeignKey("CostStructureItemId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceAdjustmentModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceModel")
.WithMany("GarmentShippingInvoiceAdjustment")
.HasForeignKey("GarmentShippingInvoiceId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceModel")
.WithMany("Items")
.HasForeignKey("GarmentShippingInvoiceId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceUnitModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.GarmentShippingInvoice.GarmentShippingInvoiceModel")
.WithMany("GarmentShippingInvoiceUnit")
.HasForeignKey("GarmentShippingInvoiceId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.InsuranceDisposition.GarmentShippingInsuranceDispositionItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.InsuranceDisposition.GarmentShippingInsuranceDispositionModel")
.WithMany("Items")
.HasForeignKey("InsuranceDispositionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalReturnNote.GarmentShippingLocalReturnNoteItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalReturnNote.GarmentShippingLocalReturnNoteModel")
.WithMany("Items")
.HasForeignKey("ReturnNoteId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteItemModel", "SalesNoteItem")
.WithMany()
.HasForeignKey("SalesNoteItemId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalReturnNote.GarmentShippingLocalReturnNoteModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteModel", "SalesNote")
.WithMany()
.HasForeignKey("SalesNoteId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesContract.GarmentShippingLocalSalesContractItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesContract.GarmentShippingLocalSalesContractModel")
.WithMany("Items")
.HasForeignKey("LocalSalesContractId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesDO.GarmentShippingLocalSalesDOItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.LocalSalesDO.GarmentShippingLocalSalesDOModel")
.WithMany("Items")
.HasForeignKey("LocalSalesDOId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionBillDetailModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionModel")
.WithMany("BillDetails")
.HasForeignKey("PaymentDispositionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionInvoiceDetailModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionModel")
.WithMany("InvoiceDetails")
.HasForeignKey("PaymentDispositionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionUnitChargeModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDisposition.GarmentShippingPaymentDispositionModel")
.WithMany("UnitCharges")
.HasForeignKey("PaymentDispositionId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDispositionRecap.GarmentShippingPaymentDispositionRecapItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.PaymentDispositionRecap.GarmentShippingPaymentDispositionRecapModel")
.WithMany("Items")
.HasForeignKey("RecapId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCorrectionNote.GarmentShippingLocalPriceCorrectionNoteItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCorrectionNote.GarmentShippingLocalPriceCorrectionNoteModel")
.WithMany("Items")
.HasForeignKey("PriceCorrectionNoteId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteItemModel", "SalesNoteItem")
.WithMany()
.HasForeignKey("SalesNoteItemId")
.OnDelete(DeleteBehavior.Restrict);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCorrectionNote.GarmentShippingLocalPriceCorrectionNoteModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteModel", "SalesNote")
.WithMany()
.HasForeignKey("SalesNoteId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCuttingNote.GarmentShippingLocalPriceCuttingNoteItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalPriceCuttingNote.GarmentShippingLocalPriceCuttingNoteModel")
.WithMany("Items")
.HasForeignKey("PriceCuttingNoteId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingLocalSalesNote.GarmentShippingLocalSalesNoteModel")
.WithMany("Items")
.HasForeignKey("LocalSalesNoteId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingNote.GarmentShippingNoteItemModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.ShippingNote.GarmentShippingNoteModel")
.WithMany("Items")
.HasForeignKey("ShippingNoteId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentInvoiceModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentModel")
.WithMany("Invoices")
.HasForeignKey("VBPaymentId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentUnitModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.Models.Garmentshipping.VBPayment.GarmentShippingVBPaymentModel")
.WithMany("Units")
.HasForeignKey("VBPaymentId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.MaterialDeliveryNote.ItemsModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.MaterialDeliveryNoteModel")
.WithMany("Items")
.HasForeignKey("MaterialDeliveryNoteModelId");
});
modelBuilder.Entity("Com.Danliris.Service.Packing.Inventory.Data.Models.MaterialDeliveryNoteWeaving.ItemsMaterialDeliveryNoteWeavingModel", b =>
{
b.HasOne("Com.Danliris.Service.Packing.Inventory.Data.MaterialDeliveryNoteWeavingModel")
.WithMany("ItemsMaterialDeliveryNoteWeaving")
.HasForeignKey("MaterialDeliveryNoteWeavingId");
});
#pragma warning restore 612, 618
}
}
}
| 34.685845 | 188 | 0.478407 | [
"MIT"
] | AndreaZain/com-danliris-service-packing-inventory | src/Com.Danliris.Service.Packing.Inventory.Infrastructure/Migrations/20210913034226_update_LocalSalesNotes_approval.Designer.cs | 220,049 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text.RegularExpressions;
using StereoKit;
using StereoKitApp.HLRuffles;
using StereoKitApp.Utils;
namespace StereoKitApp.UIs
{
public class ConnectionMenu
{
public string CurrentIpInput { get; private set; } = "127.0.0.1";
public Action<string>? PressedConnect;
private Pose _pose;
private readonly Sprite _rocket;
private readonly List<string> _suggestedIps = new List<string>
{
"127.0.0.1",
"192.168.0.",
"192.168.1.232"
};
public ConnectionMenu(ref Pose pose)
{
_pose = pose;
_rocket = AssetLookup.Sprites.LoadRocketSprite;
PressedConnect += ip =>
{
if (!_suggestedIps.Contains(ip))
{
_suggestedIps.Insert(0, ip);
}
};
}
public void Update()
{
using (
UIUtils.UIWindowScope(
"Connection",
ref _pose,
Vec2.Zero,
UIWin.Normal,
UIMove.FaceUser
)
)
{
IpInputUpdate();
}
}
// ReSharper disable once CognitiveComplexity -- Its complex yeah.
private void IpInputUpdate()
{
UI.Text(CurrentIpInput);
UI.Text("");
if (UI.Button("<-"))
{
// Clear input if there is any "error message" or similar
if (Regex.IsMatch(CurrentIpInput, "[a-z]+", RegexOptions.IgnoreCase))
{
CurrentIpInput = "";
}
else
{
CurrentIpInput = CurrentIpInput.Substring(0, CurrentIpInput.Length - 1);
}
}
if (Numpad(out var clickedNumber))
{
if (clickedNumber.TryGetNumber(out int clickedNum))
CurrentIpInput += clickedNum.ToString();
else if (clickedNumber == NumpadValue.Dot)
{
CurrentIpInput += ".";
}
else if (clickedNumber == NumpadValue.Submit)
{
RufflesTransport.Singleton.JoinSession(
new IPEndPoint(IPAddress.Parse(CurrentIpInput), 6776)
);
PressedConnect?.Invoke(CurrentIpInput);
}
else
throw new ArgumentOutOfRangeException(
nameof(clickedNumber),
clickedNumber.ToString()
);
// "Smart" ip segmenting.
var segments = CurrentIpInput.Trim().Split('.');
if (segments.Length < 4 && segments.Last().Length == 3)
{
CurrentIpInput += ".";
}
}
UI.HSeparator();
foreach (var suggestedIp in _suggestedIps)
{
if (UI.Button(suggestedIp))
{
CurrentIpInput = suggestedIp;
}
}
if (UI.Button("Create session"))
{
RufflesTransport.Singleton.CreateSession(6776);
}
}
/// <summary>
/// Simple numpad that outputs the number clicked if it returns true.
/// </summary>
/// <param name="clickedValue"></param>
/// <returns></returns>
private bool Numpad(out NumpadValue clickedValue)
{
clickedValue = NumpadValue.Err;
for (int i = 1; i <= 9; i++)
{
if (UI.Button(i.ToString()))
{
clickedValue = (NumpadValue)i;
}
if (i % 3 != 0)
{
UI.SameLine();
}
}
UI.NextLine();
if (UI.Button(" ."))
{
clickedValue = NumpadValue.Dot;
}
UI.SameLine();
if (UI.Button("0"))
{
clickedValue = NumpadValue.Num0;
}
UI.SameLine();
if (UI.ButtonRound("Enter", _rocket))
{
clickedValue = NumpadValue.Submit;
}
return clickedValue != NumpadValue.Err;
}
}
}
| 27.825301 | 92 | 0.437108 | [
"MIT"
] | Strepto/CubeCraft_StereoKit | UIs/ConnectionMenu.cs | 4,621 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _08._2D_Rectangle_Area
{
class Program
{
static void Main(string[] args)
{
var x1 = double.Parse(Console.ReadLine());
var y1 = double.Parse(Console.ReadLine());
var x2 = double.Parse(Console.ReadLine());
var y2 = double.Parse(Console.ReadLine());
double width = Math.Max(x1, x2) - Math.Min(x1, x2);
double height = Math.Max(y1, y2) - Math.Min(y1, y2);
Console.WriteLine(width * height);
Console.WriteLine(2 * (width + height));
}
}
} | 28.916667 | 64 | 0.586455 | [
"MIT"
] | Filirien/Programing-Basics-August-2017 | Simple Calculations/07. 2D Rectangle Area/2D Rectangle Area.cs | 696 | C# |
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BlazorServerRadzenDebug
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}
| 26.111111 | 70 | 0.651064 | [
"MIT"
] | harperjohn/radzenBlazorJohn | BlazorServerRadzenDebug/Program.cs | 705 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using Newtonsoft.Json;
/// <summary>
/// The type Default Device Compliance Policy.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class DefaultDeviceCompliancePolicy : DeviceCompliancePolicy
{
}
}
| 32.571429 | 153 | 0.592105 | [
"MIT"
] | gurry/msgraph-beta-sdk-dotnet | src/Microsoft.Graph/Models/Generated/DefaultDeviceCompliancePolicy.cs | 912 | C# |
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace AerovelenceMod.Content.Items.Weapons.Ranged
{
public class LightBolt : ModProjectile
{
public override void SetDefaults()
{
projectile.width = 6;
projectile.height = 46;
projectile.friendly = true;
projectile.penetrate = 1;
projectile.hostile = false;
projectile.ranged = true;
projectile.tileCollide = true;
projectile.ignoreWater = true;
projectile.timeLeft = 420;
projectile.alpha = 60;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 15;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
}
public override void AI()
{
Lighting.AddLight(projectile.Center, 1, 1, 1);
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f;
}
public override bool PreDraw(SpriteBatch sb, Color lightColor)
{
Vector2 vector = new Vector2((float)Main.projectileTexture[projectile.type].Width * 0.5f, (float)projectile.height * 0.5f);
for (int i = 0; i < projectile.oldPos.Length; i++)
{
Vector2 position = projectile.oldPos[i] - Main.screenPosition + vector + new Vector2(0f, projectile.gfxOffY);
Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - i) / (float)projectile.oldPos.Length);
sb.Draw(Main.projectileTexture[projectile.type], position, null, color, projectile.rotation, vector, projectile.scale, SpriteEffects.None, 0f);
}
return true;
}
public override void Kill(int timeLeft)
{
int num = Main.rand.Next(12, 26);
for (int i = 0; i < num; i++)
{
int num2 = Dust.NewDust(projectile.Center - projectile.velocity / 2f, 0, 0, 135, 0f, 0f, 100, default, 2f);
Main.dust[num2].velocity *= 2f;
Main.dust[num2].noGravity = true;
}
}
}
} | 41.722222 | 159 | 0.596094 | [
"MIT"
] | Arcri/AerovelenceMod | Content/Items/Weapons/Ranged/LightBolt.cs | 2,253 | C# |
using System.Collections.Generic;
using System.Linq;
using PostSharp.Patterns.Contracts;
using ThreatsManager.AutoGenRules.Engine;
using ThreatsManager.AutoGenRules.Schemas;
using ThreatsManager.AutoThreatGeneration.Engine;
using ThreatsManager.Interfaces.ObjectModel;
using ThreatsManager.Interfaces.ObjectModel.Entities;
using ThreatsManager.Interfaces.ObjectModel.Properties;
using ThreatsManager.Interfaces.ObjectModel.ThreatsMitigations;
namespace ThreatsManager.AutoThreatGeneration.Actions
{
public static class ActionsHelper
{
private const string OldSchemaName = "Automatic Threat Event Generation Extension Configuration";
private const string OldPropertyName = "AutoGenRule";
public static bool GenerateThreatEvents(this IThreatModel model)
{
var result = false;
var threatTypesWithRules = GetThreatTypesWithRules(model)?.ToArray();
if (threatTypesWithRules?.Any() ?? false)
{
ApplyThreatTypes(model, threatTypesWithRules);
var entities = model.Entities?.ToArray();
if (entities?.Any() ?? false)
{
foreach (var entity in entities)
{
ApplyThreatTypes(entity, threatTypesWithRules);
}
}
var dataFlows = model.DataFlows?.ToArray();
if (dataFlows?.Any() ?? false)
{
foreach (var dataFlow in dataFlows)
{
ApplyThreatTypes(dataFlow, threatTypesWithRules);
}
}
result = true;
}
return result;
}
public static bool GenerateThreatEvents(this IEntity entity)
{
bool result = false;
if (entity.Model is IThreatModel model)
{
var threatTypesWithRules = GetThreatTypesWithRules(model)?.ToArray();
if (threatTypesWithRules?.Any() ?? false)
{
ApplyThreatTypes(entity, threatTypesWithRules);
result = true;
}
}
return result;
}
public static bool GenerateThreatEvents(this IDataFlow flow)
{
bool result = false;
if (flow.Model is IThreatModel model)
{
var threatTypesWithRules = GetThreatTypesWithRules(model)?.ToArray();
if (threatTypesWithRules?.Any() ?? false)
{
ApplyThreatTypes(flow, threatTypesWithRules);
result = true;
}
}
return result;
}
private static bool ApplyThreatTypes([NotNull] IIdentity identity,
[NotNull] IEnumerable<KeyValuePair<IThreatType, SelectionRule>> threatTypesWithRules)
{
bool result = false;
foreach (var threatTypeWithRule in threatTypesWithRules)
{
result |= ApplyThreatType(identity, threatTypeWithRule.Key, threatTypeWithRule.Value);
}
return result;
}
private static bool ApplyThreatType([NotNull] IIdentity identity,
[NotNull] IThreatType threatType, [NotNull] SelectionRule rule)
{
bool result = false;
if (rule.Evaluate(identity) && identity is IThreatEventsContainer container)
{
var threatEvent = container.AddThreatEvent(threatType);
if (threatEvent == null)
{
threatEvent = container.ThreatEvents.FirstOrDefault(x => x.ThreatTypeId == threatType.Id);
}
else
{
result = true;
}
if (threatEvent != null)
{
result |= threatEvent.ApplyMitigations();
}
}
return result;
}
public static bool ApplyMitigations(this IThreatEvent threatEvent)
{
bool result = false;
if (threatEvent.ThreatType is IThreatType threatType && threatEvent.Model is IThreatModel model &&
threatEvent.Parent is IIdentity identity)
{
var mitigations = threatType.Mitigations?.ToArray();
if (mitigations?.Any() ?? false)
{
ISeverity maximumSeverity = null;
var generated = false;
foreach (var mitigation in mitigations)
{
var rule = GetRule(mitigation);
if (rule?.Evaluate(identity) ?? false)
{
var strength = mitigation.Strength;
if (rule.StrengthId.HasValue &&
model.GetStrength(rule.StrengthId.Value) is IStrength strengthOverride)
strength = strengthOverride;
if (rule.Status.HasValue)
generated = (threatEvent.AddMitigation(mitigation.Mitigation, strength,
rule.Status.Value) !=
null);
else
generated = (threatEvent.AddMitigation(mitigation.Mitigation, strength) !=
null);
result |= generated;
if (generated && rule.SeverityId.HasValue &&
model.GetSeverity(rule.SeverityId.Value) is ISeverity severity &&
(maximumSeverity == null || maximumSeverity.Id > severity.Id))
{
maximumSeverity = severity;
}
}
}
if (maximumSeverity != null && maximumSeverity.Id < threatEvent.SeverityId)
{
threatEvent.Severity = maximumSeverity;
}
}
}
return result;
}
public static SelectionRule GetRule([NotNull] IThreatType threatType)
{
return threatType.GetRule(threatType.Model);
}
public static MitigationSelectionRule GetRule([NotNull] IThreatTypeMitigation threatTypeMitigation)
{
return threatTypeMitigation.GetRule(threatTypeMitigation.Model) as MitigationSelectionRule;
}
public static SelectionRule GetRule(this IPropertiesContainer container, IThreatModel model = null)
{
SelectionRule result = null;
if (model == null && container is IThreatModelChild child)
model = child.Model;
if (model != null)
{
var schemaManager = new AutoGenRulesPropertySchemaManager(model);
var propertyType = schemaManager.GetPropertyType();
if (container.HasProperty(propertyType))
{
if (container.GetProperty(propertyType) is IPropertyJsonSerializableObject jsonSerializableObject)
{
result = jsonSerializableObject.Value as SelectionRule;
}
}
else
{
var oldSchema = model.GetSchema(OldSchemaName, Properties.Resources.DefaultNamespace);
var oldPropertyType = oldSchema?.GetPropertyType(OldPropertyName);
if (oldPropertyType != null)
{
if (container.GetProperty(oldPropertyType) is IPropertyJsonSerializableObject
jsonSerializableObject)
{
result = jsonSerializableObject.Value as SelectionRule;
container.AddProperty(propertyType, jsonSerializableObject.StringValue);
container.RemoveProperty(oldPropertyType);
}
}
}
}
return result;
}
public static void SetRule(this IPropertiesContainer container, SelectionRule rule, IThreatModel model = null)
{
if (model == null && container is IThreatModelChild child)
model = child.Model;
if (model != null)
{
var schemaManager = new AutoGenRulesPropertySchemaManager(model);
var propertyType = schemaManager.GetPropertyType();
var property = container.GetProperty(propertyType) ?? container.AddProperty(propertyType, null);
if (property is IPropertyJsonSerializableObject jsonSerializableObject)
{
jsonSerializableObject.Value = rule;
}
}
}
private static IEnumerable<KeyValuePair<IThreatType, SelectionRule>> GetThreatTypesWithRules(
[NotNull] IThreatModel model)
{
IEnumerable<KeyValuePair<IThreatType, SelectionRule>> result = null;
var threatTypes = model.ThreatTypes?.ToArray();
if (threatTypes?.Any() ?? false)
{
List<KeyValuePair<IThreatType, SelectionRule>> list = null;
foreach (var threatType in threatTypes)
{
var rule = GetRule(threatType);
if (rule != null)
{
if (list == null)
list = new List<KeyValuePair<IThreatType, SelectionRule>>();
list.Add(new KeyValuePair<IThreatType, SelectionRule>(threatType, rule));
}
}
result = list?.AsReadOnly();
}
return result;
}
}
}
| 38.11985 | 118 | 0.517292 | [
"MIT"
] | simonec73/threatsmanager | Sources/Extensions/ThreatsManager.AutoThreatGeneration/Actions/ActionsHelper.cs | 10,180 | C# |
// Copyright 2013, Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: api.anash@gmail.com (Anash P. Oommen)
using Google.Api.Ads.AdWords.Lib;
using Google.Api.Ads.AdWords.v201309;
using System;
using System.Collections.Generic;
using System.IO;
namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 {
/// <summary>
/// This code example adds placements to an ad group. To get ad groups, run
/// GetAdGroups.cs.
///
/// Tags: AdGroupCriterionService.mutate
/// </summary>
public class AddPlacements : ExampleBase {
/// <summary>
/// Main method, to run this code example as a standalone application.
/// </summary>
/// <param name="args">The command line arguments.</param>
public static void Main(string[] args) {
AddPlacements codeExample = new AddPlacements();
Console.WriteLine(codeExample.Description);
try {
long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE");
codeExample.Run(new AdWordsUser(), adGroupId);
} catch (Exception ex) {
Console.WriteLine("An exception occurred while running this code example. {0}",
ExampleUtilities.FormatException(ex));
}
}
/// <summary>
/// Returns a description about the code example.
/// </summary>
public override string Description {
get {
return "This code example adds placements to an ad group. To get ad groups, run " +
"GetAdGroups.cs.";
}
}
/// <summary>
/// Runs the code example.
/// </summary>
/// <param name="user">The AdWords user.</param>
/// <param name="adGroupId">Id of the ad group to which placements are added.
/// </param>
public void Run(AdWordsUser user, long adGroupId) {
// Get the AdGroupCriterionService.
AdGroupCriterionService adGroupCriterionService =
(AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService);
// Create the placement.
Placement placement1 = new Placement();
placement1.url = "http://mars.google.com";
// Create biddable ad group criterion.
AdGroupCriterion placementCriterion1 = new BiddableAdGroupCriterion();
placementCriterion1.adGroupId = adGroupId;
placementCriterion1.criterion = placement1;
// Create the placement.
Placement placement2 = new Placement();
placement2.url = "http://venus.google.com";
// Create biddable ad group criterion.
AdGroupCriterion placementCriterion2 = new BiddableAdGroupCriterion();
placementCriterion2.adGroupId = adGroupId;
placementCriterion2.criterion = placement2;
// Create the operations.
AdGroupCriterionOperation placementOperation1 = new AdGroupCriterionOperation();
placementOperation1.@operator = Operator.ADD;
placementOperation1.operand = placementCriterion1;
AdGroupCriterionOperation placementOperation2 = new AdGroupCriterionOperation();
placementOperation2.@operator = Operator.ADD;
placementOperation2.operand = placementCriterion2;
try {
// Create the placements.
AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate(
new AdGroupCriterionOperation[] {placementOperation1, placementOperation2});
// Display the results.
if (retVal != null && retVal.value != null) {
foreach (AdGroupCriterion adGroupCriterion in retVal.value) {
// If you are adding multiple type of criteria, then you may need to
// check for
//
// if (adGroupCriterion is Placement) { ... }
//
// to identify the criterion type.
Console.WriteLine("Placement with ad group id = '{0}, placement id = '{1}, url = " +
"'{2}' was created.", adGroupCriterion.adGroupId,
adGroupCriterion.criterion.id, (adGroupCriterion.criterion as Placement).url);
}
} else {
Console.WriteLine("No placements were added.");
}
} catch (Exception ex) {
Console.WriteLine("Failed to create placements.", ex);
}
}
}
}
| 38.130081 | 100 | 0.668443 | [
"Apache-2.0"
] | Zocdoc/googleads-adwords-dotnet-lib | examples/adxbuyer/CSharp/v201309/BasicOperations/AddPlacements.cs | 4,690 | C# |
namespace O10.Client.Mobile.Base.Interfaces
{
public interface INotificationService
{
void ShowMessage(string msg, bool longMessage = false, bool asyncCall = false);
}
}
| 23.875 | 87 | 0.706806 | [
"Apache-2.0"
] | muaddibco/O10city | Client/Mobile/O10.Client.Mobile.Base/Interfaces/INotificationService.cs | 193 | C# |
using System;
namespace Elders.Cronus.Pipeline.Hosts
{
public interface ICronusHost : IDisposable
{
bool Start();
bool Stop();
}
} | 16 | 46 | 0.61875 | [
"Apache-2.0"
] | mynkow/Cronus | src/Elders.Cronus/Pipeline/Hosts/ICronusHost.cs | 162 | C# |
using Microsoft.Extensions.Logging;
using OnceMi.Framework.Entity.Admin;
using OnceMi.Framework.IRepository;
using System;
namespace OnceMi.Framework.Repository
{
public class JobHistoriyRepository : BaseUnitOfWorkRepository<JobHistories, long>, IJobHistoryRepository
{
private readonly ILogger<JobHistoriyRepository> _logger;
private readonly IFreeSql _db;
public JobHistoriyRepository(BaseUnitOfWorkManager uow
, ILogger<JobHistoriyRepository> logger) : base(uow)
{
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
_db = base.Orm;
}
}
}
| 30.952381 | 108 | 0.712308 | [
"MIT"
] | oncemi/OnceMi.Framework | src/OnceMi.Framework.Repository/Admin/JobHistoriyRepository.cs | 652 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Research.Naiad;
using Microsoft.Research.Naiad.Diagnostics;
namespace Musketeer {
public interface Example {
string Usage { get; }
void Execute(string[] args);
}
class Program {
static void Main(string[] args) {
// map from example names to code to run in each case
var examples = new Dictionary<string, Example>();
// loading up as many examples as we can think of
examples.Add("{{CLASS_NAME}}", new Musketeer.{{CLASS_NAME}}());
// determine which exmample was asked for
if (args.Length == 0 || !examples.ContainsKey(args[0].ToLower())) {
Console.Error.WriteLine("First argument not found in list of examples");
Console.Error.WriteLine("Choose from the following exciting options:");
foreach (var pair in examples.OrderBy(x => x.Key))
Console.Error.WriteLine("\tExamples.exe {0} {1} [naiad options]", pair.Key, pair.Value.Usage);
Console.Error.WriteLine();
Configuration.Usage();
} else {
var example = args[0].ToLower();
if (args.Contains("--help") || args.Contains("/?") || args.Contains("--usage")) {
Console.Error.WriteLine("Usage: Musketeer.exe {0} {1} [naiad options]", example,
examples[example].Usage);
Configuration.Usage();
} else {
Logging.LogLevel = LoggingLevel.Off;
examples[example].Execute(args);
}
}
}
}
}
| 34.208333 | 105 | 0.605359 | [
"Apache-2.0"
] | camsas/Musketeer | src/translation/naiad_templates/NaiadMusketeer/Program.cs | 1,642 | C# |
/*
* Copyright 2011 Shou Takenaka
*
* 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 System;
using System.Linq.Expressions;
namespace Fidely.Framework.Compilation.Evaluators
{
/// <summary>
/// Represents the guardian operand evaluator.
/// </summary>
public class GuardianEvaluator : OperandEvaluator
{
internal GuardianEvaluator()
{
}
/// <summary>
/// Builds up a constant expression that consists of the specified value.
/// </summary>
/// <param name="current">The expression that represents the current element of the collection.</param>
/// <param name="value">The evaluatee.</param>
/// <returns>The constant expression that consists of the specified value.</returns>
public override Operand Evaluate(Expression current, string value)
{
Logger.Info("Evaluating the specified value '{0}'.", value ?? "null");
Logger.Verbose("Evaluated the specified value as a string operand.");
return new Operand(Expression.Constant((value != null) ? value.ToString() : ""), typeof(string));
}
/// <summary>
/// Creates the clone instance.
/// </summary>
/// <returns>The cloned instance.</returns>
public override OperandEvaluator Clone()
{
return new GuardianEvaluator();
}
}
} | 36.188679 | 111 | 0.650678 | [
"Apache-2.0"
] | AutomateThePlanet/AutomateThePlanet-Learning-Series | dotnet/Development-Series/FidelyOpenSourceDotNetSearchQueryCompiler/Core/Compilation/Evaluators/GuardianEvaluator.cs | 1,920 | C# |
using ATSPM.IRepositories;
using ATSPM.Application.Models;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
namespace ATSPM.Infrastructure.Repositories.EntityFramework
{
public class DirectionTypeRepository : IDirectionTypeRepository
{
private readonly MOEContext db;
public DirectionTypeRepository(MOEContext db)
{
this.db = db;
}
public List<SelectListItem> GetSelectList()
{
var list =
new List<SelectListItem>();
foreach (var d in db.DirectionTypes.OrderBy(d => d.DisplayOrder))
list.Add(new SelectListItem { Value = d.DirectionTypeId.ToString(), Text = d.Description });
return list;
}
public List<DirectionType> GetDirectionsByIDs(List<int> includedDirections)
{
return db.DirectionTypes.Where(d => includedDirections.Contains(d.DirectionTypeId)).ToList();
}
public DirectionType GetByDescription(string directionDescription)
{
return db.DirectionTypes.FirstOrDefault(d => d.Description == directionDescription);
}
public List<DirectionType> GetAllDirections()
{
var results = (from r in db.DirectionTypes
orderby r.DisplayOrder
select r).ToList();
return results;
}
public DirectionType GetDirectionByID(int DirectionID)
{
return db.DirectionTypes.Where(x => x.DirectionTypeId == DirectionID).FirstOrDefault();
}
}
} | 32.3 | 108 | 0.620433 | [
"Apache-2.0"
] | avenueconsultants/ATSPM | ATSPM.Repositories.EntityFramework/DirectionTypeRepository.cs | 1,617 | C# |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using Microsoft.PowerFx.Core.Localization;
using Microsoft.PowerFx.Core.Types;
#pragma warning disable SA1402 // File may only contain a single type
#pragma warning disable SA1649 // File name should match first type name
namespace Microsoft.PowerFx.Core.Texl.Builtins
{
// Cot(number:n)
// Equivalent Excel function: Cot
internal sealed class CotFunction : MathOneArgFunction
{
public CotFunction()
: base("Cot", TexlStrings.AboutCot, FunctionCategories.MathAndStat)
{
}
}
// Cot(E:*[n])
// Table overload that computes the cotangent of each item in the input table.
internal sealed class CotTableFunction : MathOneArgTableFunction
{
public CotTableFunction()
: base("Cot", TexlStrings.AboutCotT, FunctionCategories.Table)
{
}
}
}
#pragma warning restore SA1402 // File may only contain a single type
#pragma warning restore SA1649 // File name should match first type name
| 30.514286 | 82 | 0.695693 | [
"MIT"
] | CarlosFigueiraMSFT/Power-Fx | src/libraries/Microsoft.PowerFx.Core/Texl/Builtins/Cot.cs | 1,070 | C# |
using System.IO;
using System.Runtime.Serialization;
using GameEstate.Formats.Red.CR2W.Reflection;
using FastMember;
using static GameEstate.Formats.Red.Records.Enums;
namespace GameEstate.Formats.Red.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class SSynchronizeAnimationToParentDefinition : CVariable
{
[Ordinal(1)] [RED("Parent animation")] public CName Parent_animation { get; set;}
[Ordinal(2)] [RED("Play animation")] public CName Play_animation { get; set;}
public SSynchronizeAnimationToParentDefinition(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name){ }
public static CVariable Create(CR2WFile cr2w, CVariable parent, string name) => new SSynchronizeAnimationToParentDefinition(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.259259 | 147 | 0.745798 | [
"MIT"
] | smorey2/GameEstate | src/GameEstate.Formats.Red/Formats/Red/W3/RTTIConvert/SSynchronizeAnimationToParentDefinition.cs | 952 | C# |
/*
* SPAR Engine API
*
* Allow clients to fetch SPAR Engine Analytics through APIs.
*
* The version of the OpenAPI document: 2
* Contact: analytics.api.support@factset.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace FactSet.SDK.SPAREngine.Model
{
/// <summary>
/// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
/// </summary>
public abstract partial class AbstractOpenAPISchema
{
/// <summary>
/// Custom JSON serializer
/// </summary>
static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings
{
// OpenAPI generated types generally hide default constructors.
ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
MissingMemberHandling = MissingMemberHandling.Error,
ContractResolver = new DefaultContractResolver
{
NamingStrategy = new CamelCaseNamingStrategy
{
OverrideSpecifiedNames = false
}
}
};
/// <summary>
/// Custom JSON serializer for objects with additional properties
/// </summary>
static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings
{
// OpenAPI generated types generally hide default constructors.
ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
MissingMemberHandling = MissingMemberHandling.Ignore,
ContractResolver = new DefaultContractResolver
{
NamingStrategy = new CamelCaseNamingStrategy
{
OverrideSpecifiedNames = false
}
}
};
/// <summary>
/// Gets or Sets the actual instance
/// </summary>
public abstract Object ActualInstance { get; set; }
/// <summary>
/// Gets or Sets IsNullable to indicate whether the instance is nullable
/// </summary>
public bool IsNullable { get; protected set; }
/// <summary>
/// Gets or Sets the schema type, which can be either `oneOf` or `anyOf`
/// </summary>
public string SchemaType { get; protected set; }
/// <summary>
/// Converts the instance into JSON string.
/// </summary>
public abstract string ToJson();
}
}
| 33.512821 | 121 | 0.618975 | [
"Apache-2.0"
] | factset/enterprise-sdk | code/dotnet/SPAREngine/v2/src/FactSet.SDK.SPAREngine/Model/AbstractOpenAPISchema.cs | 2,614 | C# |
//-----------------------------------------------------------------------
// <copyright file="ClusterSingletonManagerDownedSpec.cs" company="Akka.NET Project">
// Copyright (C) 2009-2019 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2019 .NET Foundation <https://github.com/akkadotnet/akka.net>
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Linq;
using Akka.Actor;
using Akka.Cluster.TestKit;
using Akka.Cluster.Tools.Singleton;
using Hocon;
using Akka.Remote.TestKit;
using Akka.Remote.Transport;
using FluentAssertions;
namespace Akka.Cluster.Tools.Tests.MultiNode.Singleton
{
public class ClusterSingletonManagerDownedSpecConfig : MultiNodeConfig
{
public RoleName First { get; }
public RoleName Second { get; }
public RoleName Third { get; }
public ClusterSingletonManagerDownedSpecConfig()
{
First = Role("first");
Second = Role("second");
Third = Role("third");
CommonConfig = ConfigurationFactory.ParseString(@"
akka.loglevel = INFO
akka.actor.provider = ""Akka.Cluster.ClusterActorRefProvider, Akka.Cluster""
akka.remote.log-remote-lifecycle-events = off
akka.cluster.auto-down-unreachable-after = off
")
.WithFallback(ClusterSingletonManager.DefaultConfig())
.WithFallback(ClusterSingletonProxy.DefaultConfig())
.WithFallback(MultiNodeClusterSpec.ClusterConfig());
}
internal class EchoStarted
{
public static readonly EchoStarted Instance = new EchoStarted();
private EchoStarted()
{
}
}
internal class EchoStopped
{
public static readonly EchoStopped Instance = new EchoStopped();
private EchoStopped()
{
}
}
/// <summary>
/// The singleton actor
/// </summary>
internal class Echo : UntypedActor
{
private readonly IActorRef _testActorRef;
public Echo(IActorRef testActorRef)
{
_testActorRef = testActorRef;
_testActorRef.Tell(EchoStarted.Instance);
}
protected override void PostStop()
{
_testActorRef.Tell(EchoStopped.Instance);
}
public static Props Props(IActorRef testActorRef)
=> Actor.Props.Create(() => new Echo(testActorRef));
protected override void OnReceive(object message)
{
Sender.Tell(message);
}
}
}
public class ClusterSingletonManagerDownedSpec : MultiNodeClusterSpec
{
private readonly ClusterSingletonManagerDownedSpecConfig _config;
private readonly Lazy<IActorRef> _echoProxy;
protected override int InitialParticipantsValueFactory => Roles.Count;
public ClusterSingletonManagerDownedSpec() : this(new ClusterSingletonManagerDownedSpecConfig())
{
}
protected ClusterSingletonManagerDownedSpec(ClusterSingletonManagerDownedSpecConfig config) : base(config, typeof(ClusterSingletonManagerDownedSpec))
{
_config = config;
_echoProxy = new Lazy<IActorRef>(() => Watch(Sys.ActorOf(ClusterSingletonProxy.Props(
singletonManagerPath: "/user/echo",
settings: ClusterSingletonProxySettings.Create(Sys)),
name: "echoProxy")));
}
private void Join(RoleName from, RoleName to)
{
RunOn(() =>
{
Cluster.Join(Node(to).Address);
CreateSingleton();
}, from);
}
private IActorRef CreateSingleton()
{
return Sys.ActorOf(ClusterSingletonManager.Props(
singletonProps: ClusterSingletonManagerDownedSpecConfig.Echo.Props(TestActor),
terminationMessage: PoisonPill.Instance,
settings: ClusterSingletonManagerSettings.Create(Sys)),
name: "echo");
}
[MultiNodeFact]
public void ClusterSingletonManagerDownedSpecs()
{
ClusterSingletonManager_downing_must_startup_3_node();
}
private void ClusterSingletonManager_downing_must_startup_3_node()
{
Join(_config.First, _config.First);
Join(_config.Second, _config.First);
Join(_config.Third, _config.First);
Within(15.Seconds(), () =>
{
AwaitAssert(() => Cluster.State.Members.Count(m => m.Status == MemberStatus.Up).Should().Be(3));
});
RunOn(() =>
{
ExpectMsg(ClusterSingletonManagerDownedSpecConfig.EchoStarted.Instance);
}, _config.First);
EnterBarrier("started");
}
private void ClusterSingletonManager_downing_must_stop_instance_when_member_is_downed()
{
RunOn(() =>
{
TestConductor.Blackhole(_config.First, _config.Third, ThrottleTransportAdapter.Direction.Both).Wait();
TestConductor.Blackhole(_config.Second, _config.Third, ThrottleTransportAdapter.Direction.Both).Wait();
Within(15.Seconds(), () =>
{
AwaitAssert(() => Cluster.State.Unreachable.Count.Should().Be(1));
});
}, _config.First);
EnterBarrier("blackhole-1");
RunOn(() =>
{
// another blackhole so that second can't mark gossip as seen and thereby deferring shutdown of first
TestConductor.Blackhole(_config.First, _config.Second, ThrottleTransportAdapter.Direction.Both).Wait();
Cluster.Down(Node(_config.Second).Address);
Cluster.Down(Cluster.SelfAddress);
// singleton instance stopped, before failure detection of first-second
ExpectMsg<ClusterSingletonManagerDownedSpecConfig.EchoStopped>(TimeSpan.FromSeconds(3));
}, _config.First);
EnterBarrier("stopped");
}
}
}
| 35.15 | 157 | 0.582741 | [
"Apache-2.0"
] | hueifeng/akka.net | src/contrib/cluster/Akka.Cluster.Tools.Tests.MultiNode/Singleton/ClusterSingletonManagerDownedSpec.cs | 6,329 | C# |
namespace EV3VisualLogger.UI.View {
partial class MyTextBox {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent() {
components = new System.ComponentModel.Container();
this.Multiline = true;
this.ForeColor = System.Drawing.ColorTranslator.FromHtml("#FFF1F1F1");
this.BackColor = System.Drawing.ColorTranslator.FromHtml("#FF333337");
this.Font = new System.Drawing.Font("Meiryo UI", 9);
}
#endregion
}
}
| 35.333333 | 107 | 0.583333 | [
"MIT"
] | Yunato/EV3VisualLogger | EV3VisualLogger/UI/View/MyTextBox.Designer.cs | 1,274 | C# |
using System.Reflection;
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("AWSSDK.CloudHSMV2")]
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS CloudHSM V2. CloudHSM provides hardware security modules for protecting sensitive data and cryptographic keys within an EC2 VPC, and enable the customer to maintain control over key access and use. This is a second-generation of the service that will improve security, lower cost and provide better customer usability.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[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)]
// 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("3.3")]
[assembly: AssemblyFileVersion("3.7.0.50")] | 52.0625 | 402 | 0.759904 | [
"Apache-2.0"
] | ChristopherButtars/aws-sdk-net | sdk/code-analysis/ServiceAnalysis/CloudHSMV2/Properties/AssemblyInfo.cs | 1,666 | C# |
using System;
using Core.Tests.Actor.Domain.Model;
using Symbiote.Core;
namespace Core.Tests.Actor.Domain.Memoization
{
public class VehicleMemento : IVehicleMemento, IMemento<Vehicle>
{
public string Vin { get; set; }
public string Make { get; set; }
public string Model { get; set; }
public int Year { get; set; }
public void Capture( Vehicle instance )
{
Vin = instance.VIN;
Make = instance.Make;
Model = instance.Model;
Year = instance.Year;
}
public void Reset( Vehicle instance )
{
Vin = instance.VIN;
Make = instance.Make;
Model = instance.Model;
Year = instance.Year;
}
public Vehicle Retrieve()
{
return new Vehicle( Vin, Make, Model, Year );
}
}
} | 25.314286 | 68 | 0.542889 | [
"Apache-2.0"
] | code-attic/Symbiote | tests/Core.Tests/Actor/Domain/Memoization/VehicleMemento.cs | 888 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using API.ViewModels;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Web.Controllers
{
public class DashboardController : Controller
{
readonly HttpClient client = new HttpClient
{
BaseAddress = new Uri("https://localhost:44337/api/")
};
public IActionResult Index()
{
if (HttpContext.Session.IsAvailable)
{
if (HttpContext.Session.GetString("lvl") == "Admin")
{
return View();
}
else if (HttpContext.Session.GetString("lvl") == "Trainer")
{
return Redirect("/trainer");
}
else
{
return Redirect("/employee");
}
}
return RedirectToAction("Login", "Auth");
}
[Route("profile")]
public IActionResult Profile()
{
return View("~/Views/Dashboard/Profile.cshtml");
}
[Route("GetProfile")]
public IActionResult GetProfile()
{
UserVM data = null;
var id = HttpContext.Session.GetString("id");
client.DefaultRequestHeaders.Add("Authorization", HttpContext.Session.GetString("token"));
var resTask = client.GetAsync("users/" + id);
resTask.Wait();
var result = resTask.Result;
if (result.IsSuccessStatusCode)
{
var json = JsonConvert.DeserializeObject(result.Content.ReadAsStringAsync().Result).ToString();
data = JsonConvert.DeserializeObject<UserVM>(json);
}
else
{
ModelState.AddModelError(string.Empty, "Server Error.");
}
return Json(data);
}
[Route("updProfile")]
public IActionResult UpdProfile(UserVM data)
{
var id = HttpContext.Session.GetString("id");
try
{
var json = JsonConvert.SerializeObject(data);
var buffer = System.Text.Encoding.UTF8.GetBytes(json);
var byteContent = new ByteArrayContent(buffer);
byteContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
if (data.Id == id)
{
client.DefaultRequestHeaders.Add("Authorization", HttpContext.Session.GetString("token"));
var result = client.PutAsync("users/" + id, byteContent).Result;
HttpContext.Session.Remove("name");
HttpContext.Session.SetString("name", data.Name);
return Json(result);
}
return Json(404);
}
catch (Exception ex)
{
throw ex;
}
}
public IActionResult LoadTop()
{
IEnumerable<TopTrainingVM> top = null;
//var token = HttpContext.Session.GetString("token");
//client.DefaultRequestHeaders.Add("Authorization", token);
var resTask = client.GetAsync("Charts/toptraining");
resTask.Wait();
var result = resTask.Result;
if (result.IsSuccessStatusCode)
{
var readTask = result.Content.ReadAsAsync<List<TopTrainingVM>>();
readTask.Wait();
top = readTask.Result;
}
else
{
top = Enumerable.Empty<TopTrainingVM>();
ModelState.AddModelError(string.Empty, "Server Error try after sometimes.");
}
return Json(top);
}
public IActionResult LoadPie()
{
IEnumerable<PieChartVM> pie = null;
//var token = HttpContext.Session.GetString("token");
//client.DefaultRequestHeaders.Add("Authorization", token);
var resTask = client.GetAsync("charts/pie");
resTask.Wait();
var result = resTask.Result;
if (result.IsSuccessStatusCode)
{
var readTask = result.Content.ReadAsAsync<List<PieChartVM>>();
readTask.Wait();
pie = readTask.Result;
}
else
{
pie = Enumerable.Empty<PieChartVM>();
ModelState.AddModelError(string.Empty, "Server Error try after sometimes.");
}
return Json(pie);
}
public IActionResult LoadBar()
{
IEnumerable<PieChartVM> bar = null;
//var token = HttpContext.Session.GetString("token");
//client.DefaultRequestHeaders.Add("Authorization", token);
var resTask = client.GetAsync("charts/pie");
resTask.Wait();
var result = resTask.Result;
if (result.IsSuccessStatusCode)
{
var readTask = result.Content.ReadAsAsync<List<PieChartVM>>();
readTask.Wait();
bar = readTask.Result;
}
else
{
bar = Enumerable.Empty<PieChartVM>();
ModelState.AddModelError(string.Empty, "Server Error try after sometimes.");
}
return Json(bar);
}
}
}
| 33.662651 | 111 | 0.51879 | [
"MIT"
] | fhmanwar/PostSeminarFeedback | Web/Controllers/DashboardController.cs | 5,590 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
namespace GraphQL.Upload.AspNetCore
{
public static class JsonElementExtension
{
public static Dictionary<string, object> ToDictionnary(this JsonElement element)
{
return element.EnumerateObject()
.ToDictionary(
jsonProperty => jsonProperty.Name,
jsonProperty => GetRealFromType(jsonProperty.Value)
);
}
private static object GetRealFromType(JsonElement jsonPropertyValue)
{
switch (jsonPropertyValue.ValueKind)
{
case JsonValueKind.Null:
case JsonValueKind.Undefined:
return null;
case JsonValueKind.False:
case JsonValueKind.True:
return jsonPropertyValue.GetBoolean();
case JsonValueKind.Number:
var decimalValue = jsonPropertyValue.GetDecimal();
if (decimalValue % 1 != 0)
{
try
{
return jsonPropertyValue.GetDouble();
}
catch (FormatException)
{
}
return decimalValue;
}
return jsonPropertyValue.GetInt32();
case JsonValueKind.String:
try
{
return jsonPropertyValue.GetGuid();
}
catch (FormatException)
{
}
try
{
return jsonPropertyValue.GetDateTime();
}
catch (FormatException)
{
}
return jsonPropertyValue.GetString();
case JsonValueKind.Object:
return jsonPropertyValue.EnumerateObject().ToDictionary(
value => value.Name,
value => GetRealFromType(value.Value)
);
case JsonValueKind.Array:
return jsonPropertyValue.EnumerateArray().Select(GetRealFromType).ToList();
}
return jsonPropertyValue;
}
}
} | 33.586667 | 95 | 0.4474 | [
"MIT"
] | valentintintin/graphql-dotnet-upload | src/GraphQL.Upload.AspNetCore/JsonElementExtension.cs | 2,519 | C# |
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.Graph;
using System.Collections.Generic;
using Helpers;
namespace Credentials
{
public static partial class Credentials
{
public static async Task<IActionResult> create(HttpRequest req, string userid)
{
GraphServiceClient graphClient = new AuthenticatedGraphClient();
// get Applications
List<QueryOption> options = new List<QueryOption>
{
new QueryOption("$filter", "startswith(displayName, '" + userid + "')"),
new QueryOption("$count", "true")
};
IGraphServiceApplicationsCollectionPage applications = await graphClient.Applications
.Request(options)
.GetAsync();
// if already exists, return 400.
if (applications.Count != 0) return new BadRequestObjectResult("Appliation already exists");
// create Application
var newApplication = new Application { DisplayName = userid };
var application = await graphClient.Applications
.Request()
.AddAsync(newApplication);
var passwordCredential = new PasswordCredential { DisplayName = "client_secret" };
var secret = await graphClient.Applications[application.Id]
.AddPassword(passwordCredential)
.Request()
.PostAsync();
var genericResult = new { application.AppId, secret.SecretText };
return new OkObjectResult(genericResult);
}
}
}
| 36.065217 | 104 | 0.617842 | [
"MIT"
] | Teejeeh/api-management-developer-portal | api/Credentials/create.cs | 1,659 | C# |
using BrewLib.Audio;
using StorybrewCommon.Mapset;
using StorybrewCommon.Storyboarding;
using StorybrewEditor.Mapset;
using StorybrewEditor.Util;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace StorybrewEditor.Storyboarding
{
public class EditorGeneratorContext : GeneratorContext
{
private readonly Effect effect;
private readonly MultiFileWatcher watcher;
private readonly string projectPath;
public override string ProjectPath => projectPath;
private readonly string projectAssetPath;
public override string ProjectAssetPath => projectAssetPath;
private readonly string mapsetPath;
public override string MapsetPath
{
get
{
if (!Directory.Exists(mapsetPath))
throw new InvalidOperationException($"The mapset folder at '{mapsetPath}' doesn't exist");
return mapsetPath;
}
}
private readonly EditorBeatmap beatmap;
public override Beatmap Beatmap
{
get
{
BeatmapDependent = true;
return beatmap;
}
}
private readonly IEnumerable<EditorBeatmap> beatmaps;
public override IEnumerable<Beatmap> Beatmaps
{
get
{
BeatmapDependent = true;
return beatmaps;
}
}
public bool BeatmapDependent { get; private set; }
private readonly StringBuilder log = new StringBuilder();
public string Log => log.ToString();
public List<EditorStoryboardLayer> EditorLayers = new List<EditorStoryboardLayer>();
public EditorGeneratorContext(Effect effect, string projectPath, string projectAssetPath, string mapsetPath, EditorBeatmap beatmap, IEnumerable<EditorBeatmap> beatmaps, MultiFileWatcher watcher)
{
this.projectPath = projectPath;
this.projectAssetPath = projectAssetPath;
this.mapsetPath = mapsetPath;
this.effect = effect;
this.beatmap = beatmap;
this.beatmaps = beatmaps;
this.watcher = watcher;
}
public override StoryboardLayer GetLayer(string identifier)
{
var layer = EditorLayers.Find(l => l.Identifier == identifier);
if (layer == null) EditorLayers.Add(layer = new EditorStoryboardLayer(identifier, effect));
return layer;
}
public override void AddDependency(string path)
=> watcher.Watch(path);
public override void AppendLog(string message)
=> log.AppendLine(message);
#region Audio data
private Dictionary<string, FftStream> fftAudioStreams = new Dictionary<string, FftStream>();
private FftStream getFftStream(string path)
{
path = Path.GetFullPath(path);
if (!fftAudioStreams.TryGetValue(path, out FftStream audioStream))
fftAudioStreams[path] = audioStream = new FftStream(path);
return audioStream;
}
public override double AudioDuration
=> getFftStream(effect.Project.AudioPath).Duration * 1000;
public override float[] GetFft(double time, string path = null)
=> getFftStream(path ?? effect.Project.AudioPath).GetFft(time * 0.001);
#endregion
public void DisposeResources()
{
foreach (var audioStream in fftAudioStreams.Values)
audioStream.Dispose();
fftAudioStreams = null;
}
}
}
| 31.698276 | 202 | 0.620887 | [
"MIT"
] | Coosu/storybrew | editor/Storyboarding/EditorGeneratorContext.cs | 3,679 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
namespace LiveChat
{
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
}
| 24.16 | 76 | 0.692053 | [
"MIT"
] | mohsenRi/Live-Chat | LiveChat/Program.cs | 606 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.