Class SharedCore
Inheritance
System.Object
SharedCore
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: AltV.Net.Shared.dll
Syntax
public abstract class SharedCore : ISharedCore, ICApiCore, IDisposable
Constructors
|
Improve this Doc
View Source
SharedCore(IntPtr, ILibrary)
Declaration
public SharedCore(IntPtr nativePointer, ILibrary library)
Parameters
Type |
Name |
Description |
IntPtr |
nativePointer |
|
ILibrary |
library |
|
Fields
|
Improve this Doc
View Source
MainThread
Declaration
protected readonly Thread MainThread
Field Value
Properties
|
Improve this Doc
View Source
Branch
Declaration
public string Branch { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CApiVersion
Declaration
public string CApiVersion { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
EventStateManager
Declaration
public EventStateManager EventStateManager { get; }
Property Value
|
Improve this Doc
View Source
IsDebug
Declaration
public bool IsDebug { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Library
Declaration
public ILibrary Library { get; }
Property Value
|
Improve this Doc
View Source
NativePointer
Declaration
public IntPtr NativePointer { get; }
Property Value
|
Improve this Doc
View Source
NetTime
Declaration
public int NetTime { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PoolManager
Declaration
public abstract ISharedPoolManager PoolManager { get; }
Property Value
|
Improve this Doc
View Source
Resource
Declaration
public abstract ISharedNativeResource Resource { get; }
Property Value
|
Improve this Doc
View Source
SdkVersion
Declaration
public string SdkVersion { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
UnansweredClientRpcRequest
Declaration
public IList<ushort> UnansweredClientRpcRequest { get; }
Property Value
Type |
Description |
System.Collections.IList<System.UInt16> |
|
|
Improve this Doc
View Source
UnansweredServerRpcRequest
Declaration
public IList<ushort> UnansweredServerRpcRequest { get; }
Property Value
Type |
Description |
System.Collections.IList<System.UInt16> |
|
|
Improve this Doc
View Source
Version
Declaration
public string Version { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
CheckIfCallIsValid(String)
Declaration
[Conditional("DEBUG")]
public virtual void CheckIfCallIsValid(string callerName = "")
Parameters
Type |
Name |
Description |
System.String |
callerName |
|
|
Improve this Doc
View Source
CreateMValue(out MValueConst, Object)
Declaration
public void CreateMValue(out MValueConst mValue, object obj)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.Object |
obj |
|
|
Improve this Doc
View Source
CreateMValueBaseObject(out MValueConst, ISharedBaseObject)
Declaration
public void CreateMValueBaseObject(out MValueConst mValue, ISharedBaseObject value)
Parameters
|
Improve this Doc
View Source
CreateMValueBool(out MValueConst, Boolean)
Declaration
public void CreateMValueBool(out MValueConst mValue, bool value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.Boolean |
value |
|
|
Improve this Doc
View Source
CreateMValueByteArray(out MValueConst, Byte[])
Declaration
public void CreateMValueByteArray(out MValueConst mValue, byte[] value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.Byte[] |
value |
|
|
Improve this Doc
View Source
CreateMValueDict(out MValueConst, String[], MValueConst[], UInt64)
Declaration
public void CreateMValueDict(out MValueConst mValue, string[] keys, MValueConst[] val, ulong size)
Parameters
|
Improve this Doc
View Source
CreateMValueDouble(out MValueConst, Double)
Declaration
public void CreateMValueDouble(out MValueConst mValue, double value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.Double |
value |
|
|
Improve this Doc
View Source
CreateMValueFunction(out MValueConst, IntPtr)
Declaration
public void CreateMValueFunction(out MValueConst mValue, IntPtr value)
Parameters
|
Improve this Doc
View Source
CreateMValueInt(out MValueConst, Int64)
Declaration
public void CreateMValueInt(out MValueConst mValue, long value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.Int64 |
value |
|
|
Improve this Doc
View Source
CreateMValueList(out MValueConst, MValueConst[], UInt64)
Declaration
public void CreateMValueList(out MValueConst mValue, MValueConst[] val, ulong size)
Parameters
|
Improve this Doc
View Source
CreateMValueNil(out MValueConst)
Declaration
public void CreateMValueNil(out MValueConst mValue)
Parameters
|
Improve this Doc
View Source
CreateMValueRgba(out MValueConst, Rgba)
Declaration
public void CreateMValueRgba(out MValueConst mValue, Rgba value)
Parameters
|
Improve this Doc
View Source
CreateMValues(MValueConst[], Object[])
Declaration
public void CreateMValues(MValueConst[] mValues, object[] objects)
Parameters
Type |
Name |
Description |
MValueConst[] |
mValues |
|
System.Object[] |
objects |
|
|
Improve this Doc
View Source
CreateMValueString(out MValueConst, String)
Declaration
public void CreateMValueString(out MValueConst mValue, string value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.String |
value |
|
|
Improve this Doc
View Source
CreateMValueUInt(out MValueConst, UInt64)
Declaration
public void CreateMValueUInt(out MValueConst mValue, ulong value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.UInt64 |
value |
|
|
Improve this Doc
View Source
CreateMValueVector2(out MValueConst, Vector2)
Declaration
public void CreateMValueVector2(out MValueConst mValue, Vector2 value)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
System.Numerics.Vector2 |
value |
|
|
Improve this Doc
View Source
CreateMValueVector3(out MValueConst, Position)
Declaration
public void CreateMValueVector3(out MValueConst mValue, Position value)
Parameters
|
Improve this Doc
View Source
Declaration
public void DeleteMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
|
Improve this Doc
View Source
Dispose()
Declaration
public virtual void Dispose()
|
Improve this Doc
View Source
FromMValue(in MValueConst, Type, out Object)
Declaration
public bool FromMValue(in MValueConst mValue, Type type, out object obj)
Parameters
Type |
Name |
Description |
MValueConst |
mValue |
|
Type |
type |
|
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetBaseObjectById(BaseObjectType, UInt32)
Declaration
public ISharedBaseObject GetBaseObjectById(BaseObjectType type, uint id)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public void GetMetaData(string key, out MValueConst value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
MValueConst |
value |
|
|
Improve this Doc
View Source
Declaration
public void GetSyncedMetaData(string key, out MValueConst value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
MValueConst |
value |
|
|
Improve this Doc
View Source
GetVoiceConnectionState()
Declaration
public VoiceConnectionState GetVoiceConnectionState()
Returns
|
Improve this Doc
View Source
Hash(String)
Declaration
public uint Hash(string stringToHash)
Parameters
Type |
Name |
Description |
System.String |
stringToHash |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Declaration
public bool HasMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool HasSyncedMetaData(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsMainThread()
Declaration
public virtual bool IsMainThread()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsMValueConvertible(Type)
Declaration
public bool IsMValueConvertible(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LogColored(IntPtr)
Declaration
public void LogColored(IntPtr messagePtr)
Parameters
Type |
Name |
Description |
IntPtr |
messagePtr |
|
|
Improve this Doc
View Source
LogColored(String)
Declaration
public void LogColored(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
|
Improve this Doc
View Source
LogDebug(IntPtr)
Declaration
public void LogDebug(IntPtr messagePtr)
Parameters
Type |
Name |
Description |
IntPtr |
messagePtr |
|
|
Improve this Doc
View Source
LogDebug(String)
Declaration
public void LogDebug(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
|
Improve this Doc
View Source
LogError(IntPtr)
Declaration
public void LogError(IntPtr messagePtr)
Parameters
Type |
Name |
Description |
IntPtr |
messagePtr |
|
|
Improve this Doc
View Source
LogError(String)
Declaration
public void LogError(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
|
Improve this Doc
View Source
LogInfo(IntPtr)
Declaration
public void LogInfo(IntPtr messagePtr)
Parameters
Type |
Name |
Description |
IntPtr |
messagePtr |
|
|
Improve this Doc
View Source
LogInfo(String)
Declaration
public void LogInfo(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
|
Improve this Doc
View Source
LogWarning(IntPtr)
Declaration
public void LogWarning(IntPtr messagePtr)
Parameters
Type |
Name |
Description |
IntPtr |
messagePtr |
|
|
Improve this Doc
View Source
LogWarning(String)
Declaration
public void LogWarning(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
|
Improve this Doc
View Source
MValueFromObject(Object, Type, out Object)
Declaration
public bool MValueFromObject(object obj, Type type, out object result)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Type |
type |
|
System.Object |
result |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
PtrToStringUtf8AndFree(IntPtr, Int32)
Declaration
public string PtrToStringUtf8AndFree(nint str, int size)
Parameters
Type |
Name |
Description |
System.IntPtr |
str |
|
System.Int32 |
size |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RegisterMValueAdapter<T>(IMValueAdapter<T>)
Declaration
public void RegisterMValueAdapter<T>(IMValueAdapter<T> adapter)
Parameters
Type Parameters
|
Improve this Doc
View Source
Declaration
public void SetMetaData(string key, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
|
Improve this Doc
View Source
ToMValue(Object, Type, out MValueConst)
Declaration
public bool ToMValue(object obj, Type type, out MValueConst mValue)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Type |
type |
|
MValueConst |
mValue |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TriggerLocalEvent(IntPtr, MValueConst[])
Declaration
public void TriggerLocalEvent(IntPtr eventNamePtr, MValueConst[] args)
Parameters
Type |
Name |
Description |
IntPtr |
eventNamePtr |
|
MValueConst[] |
args |
|
|
Improve this Doc
View Source
TriggerLocalEvent(IntPtr, IntPtr[])
Declaration
public void TriggerLocalEvent(IntPtr eventNamePtr, IntPtr[] args)
Parameters
Type |
Name |
Description |
IntPtr |
eventNamePtr |
|
IntPtr[] |
args |
|
|
Improve this Doc
View Source
TriggerLocalEvent(IntPtr, Object[])
Declaration
public void TriggerLocalEvent(IntPtr eventNamePtr, params object[] args)
Parameters
Type |
Name |
Description |
IntPtr |
eventNamePtr |
|
System.Object[] |
args |
|
|
Improve this Doc
View Source
TriggerLocalEvent(String, MValueConst[])
Declaration
public void TriggerLocalEvent(string eventName, MValueConst[] args)
Parameters
Type |
Name |
Description |
System.String |
eventName |
|
MValueConst[] |
args |
|
|
Improve this Doc
View Source
TriggerLocalEvent(String, IntPtr[])
Declaration
public void TriggerLocalEvent(string eventName, IntPtr[] args)
Parameters
Type |
Name |
Description |
System.String |
eventName |
|
IntPtr[] |
args |
|
|
Improve this Doc
View Source
TriggerLocalEvent(String, Object[])
Declaration
public void TriggerLocalEvent(string eventName, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
eventName |
|
System.Object[] |
args |
|
Implements
IDisposable