JSONObject.CreateStringObject C# (CSharp) Method

CreateStringObject() public static method

public static CreateStringObject ( string val ) : JSONObject,
val string
return JSONObject,
	public static JSONObject CreateStringObject(string val)
	{
		JSONObject obj = Create();
		obj.type = Type.STRING;
		obj.str = val;
		return obj;
	}
	public static JSONObject CreateBakedObject(string val)

Usage Example

Beispiel #1
0
 void OnMouseDown()
 {
     if (TimeBomb.IsInputEnabled && !isPlayerCard)
     {
         socket.Emit("revealCard", JSONObject.CreateStringObject(card.cardId.ToString()));
     }
 }
All Usage Examples Of JSONObject::CreateStringObject