Class LuaValue
Assembly: SlipeServer.Packets.dll
Syntax
Constructors
|
Edit this page
View Source
LuaValue()
Declaration
|
Edit this page
View Source
LuaValue(Dictionary<LuaValue, LuaValue>?)
Declaration
public LuaValue(Dictionary<LuaValue, LuaValue>? value)
Parameters
|
Edit this page
View Source
LuaValue(IEnumerable<LuaValue>?)
Declaration
public LuaValue(IEnumerable<LuaValue>? value)
Parameters
|
Edit this page
View Source
LuaValue(ElementId?)
Declaration
public LuaValue(ElementId? id)
Parameters
|
Edit this page
View Source
LuaValue(bool?)
Declaration
public LuaValue(bool? value)
Parameters
Type |
Name |
Description |
bool? |
value |
|
|
Edit this page
View Source
LuaValue(double?)
Declaration
public LuaValue(double? value)
Parameters
Type |
Name |
Description |
double? |
value |
|
|
Edit this page
View Source
LuaValue(int?)
Declaration
public LuaValue(int? value)
Parameters
Type |
Name |
Description |
int? |
value |
|
|
Edit this page
View Source
LuaValue(float?)
Declaration
public LuaValue(float? value)
Parameters
Type |
Name |
Description |
float? |
value |
|
|
Edit this page
View Source
LuaValue(string?)
Declaration
public LuaValue(string? value)
Parameters
Type |
Name |
Description |
string |
value |
|
Properties
|
Edit this page
View Source
BoolValue
Declaration
public bool? BoolValue { get; }
Property Value
|
Edit this page
View Source
DebugView
Declaration
public string DebugView { get; }
Property Value
|
Edit this page
View Source
DoubleValue
Declaration
public double? DoubleValue { get; }
Property Value
|
Edit this page
View Source
ElementId
Declaration
public uint? ElementId { get; }
Property Value
|
Edit this page
View Source
FloatValue
Declaration
public float? FloatValue { get; }
Property Value
|
Edit this page
View Source
IntegerValue
Declaration
public int? IntegerValue { get; }
Property Value
|
Edit this page
View Source
IsNil
Declaration
public bool IsNil { get; }
Property Value
|
Edit this page
View Source
LuaType
Declaration
public LuaType LuaType { get; set; }
Property Value
|
Edit this page
View Source
Nil
Declaration
public static LuaValue Nil { get; }
Property Value
|
Edit this page
View Source
StringValue
Declaration
public string? StringValue { get; }
Property Value
|
Edit this page
View Source
TableValue
Declaration
public Dictionary<LuaValue, LuaValue>? TableValue { get; }
Property Value
Methods
|
Edit this page
View Source
ArrayFromVector(Vector2)
Declaration
public static LuaValue ArrayFromVector(Vector2 vector)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Returns
|
Edit this page
View Source
ArrayFromVector(Vector3)
Declaration
public static LuaValue ArrayFromVector(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
|
Edit this page
View Source
CreateElement(uint?)
Declaration
public static LuaValue CreateElement(uint? value)
Parameters
Type |
Name |
Description |
uint? |
value |
|
Returns
|
Edit this page
View Source
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
|
Edit this page
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
|
Edit this page
View Source
IsSequentialTableValue(Dictionary<LuaValue, LuaValue>)
Declaration
public static bool IsSequentialTableValue(Dictionary<LuaValue, LuaValue> table)
Parameters
Returns
|
Edit this page
View Source
Serialize(int, int)
Declaration
public string Serialize(int maxDepth = 10, int currentDepth = 0)
Parameters
Type |
Name |
Description |
int |
maxDepth |
|
int |
currentDepth |
|
Returns
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
Operators
|
Edit this page
View Source
operator ==(LuaValue, LuaValue)
Declaration
public static bool operator ==(LuaValue left, LuaValue right)
Parameters
Returns
|
Edit this page
View Source
explicit operator bool(LuaValue)
Declaration
public static explicit operator bool(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator double(LuaValue)
Declaration
public static explicit operator double(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator int(LuaValue)
Declaration
public static explicit operator int(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator Vector2(LuaValue)
Declaration
public static explicit operator Vector2(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator Vector3(LuaValue)
Declaration
public static explicit operator Vector3(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator float(LuaValue)
Declaration
public static explicit operator float(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator string(LuaValue)
Declaration
public static explicit operator string(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
explicit operator uint(LuaValue)
Declaration
public static explicit operator uint(LuaValue value)
Parameters
Returns
|
Edit this page
View Source
implicit operator LuaValue(LuaValue[])
Declaration
public static implicit operator LuaValue(LuaValue[] value)
Parameters
Returns
|
Edit this page
View Source
implicit operator LuaValue(ElementId)
Declaration
public static implicit operator LuaValue(ElementId value)
Parameters
Returns
|
Edit this page
View Source
implicit operator LuaValue(bool)
Declaration
public static implicit operator LuaValue(bool value)
Parameters
Type |
Name |
Description |
bool |
value |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(Dictionary<LuaValue, LuaValue>)
Declaration
public static implicit operator LuaValue(Dictionary<LuaValue, LuaValue> value)
Parameters
Returns
|
Edit this page
View Source
implicit operator LuaValue(double)
Declaration
public static implicit operator LuaValue(double value)
Parameters
Type |
Name |
Description |
double |
value |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(int)
Declaration
public static implicit operator LuaValue(int value)
Parameters
Type |
Name |
Description |
int |
value |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(Vector2)
Declaration
public static implicit operator LuaValue(Vector2 vector)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(Vector3)
Declaration
public static implicit operator LuaValue(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(float)
Declaration
public static implicit operator LuaValue(float value)
Parameters
Type |
Name |
Description |
float |
value |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(string)
Declaration
public static implicit operator LuaValue(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
|
Edit this page
View Source
implicit operator LuaValue(uint)
Declaration
public static implicit operator LuaValue(uint value)
Parameters
Type |
Name |
Description |
uint |
value |
|
Returns
|
Edit this page
View Source
operator !=(LuaValue, LuaValue)
Declaration
public static bool operator !=(LuaValue left, LuaValue right)
Parameters
Returns