Class Transaction
Inheritance
System.Object
Transaction
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: LLBModdingLib.dll
Syntax
public class Transaction : IEnumerable, IByteable
Constructors
Transaction(UInt16, CSteamID, CSteamID, Byte[], Int32, UInt32, TransactionState)
Declaration
public Transaction(ushort index, CSteamID sender, CSteamID receiver, byte[] data, int channel = 0, uint fragmentSize = 1048569U, TransactionState state = TransactionState.Sending)
Parameters
| Type |
Name |
Description |
| System.UInt16 |
index |
|
| Steamworks.CSteamID |
sender |
|
| Steamworks.CSteamID |
receiver |
|
| System.Byte[] |
data |
|
| System.Int32 |
channel |
|
| System.UInt32 |
fragmentSize |
|
| TransactionState |
state |
|
Transaction(UInt16, CSteamID, CSteamID, UInt32, Int32, UInt32)
Declaration
public Transaction(ushort index, CSteamID sender, CSteamID receiver, uint nbFragments, int channel, uint fragmentSize)
Parameters
| Type |
Name |
Description |
| System.UInt16 |
index |
|
| Steamworks.CSteamID |
sender |
|
| Steamworks.CSteamID |
receiver |
|
| System.UInt32 |
nbFragments |
|
| System.Int32 |
channel |
|
| System.UInt32 |
fragmentSize |
|
Properties
id
Declaration
public string id { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
AddFragment(UInt32, Byte[])
Declaration
public void AddFragment(uint fragmentId, byte[] fragment)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
fragmentId |
|
| System.Byte[] |
fragment |
|
Create(Envelope)
Declaration
public static Transaction Create(Envelope envelope)
Parameters
| Type |
Name |
Description |
| Multiplayer.Envelope |
envelope |
|
Returns
Create(CSteamID, Byte[], Int32)
Declaration
public static Transaction Create(CSteamID destination, byte[] data, int channel = 0)
Parameters
| Type |
Name |
Description |
| Steamworks.CSteamID |
destination |
|
| System.Byte[] |
data |
|
| System.Int32 |
channel |
|
Returns
FromBytes(Byte[])
Declaration
public static Transaction FromBytes(byte[] data)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
|
Returns
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
GetFragment(UInt32)
Declaration
public byte[] GetFragment(uint fragmentId)
Parameters
| Type |
Name |
Description |
| System.UInt32 |
fragmentId |
|
Returns
| Type |
Description |
| System.Byte[] |
|
GetID(CSteamID, CSteamID, Int32)
Declaration
public static string GetID(CSteamID sender, CSteamID receiver, int index)
Parameters
| Type |
Name |
Description |
| Steamworks.CSteamID |
sender |
|
| Steamworks.CSteamID |
receiver |
|
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.String |
|
GetMissingFragments()
Declaration
public List<int> GetMissingFragments()
Returns
| Type |
Description |
| System.Collections.Generic.List<System.Int32> |
|
ToBytes()
Declaration
Returns
| Type |
Description |
| System.Byte[] |
|
Implements
System.Collections.IEnumerable