PowerShard.PowerShardToJSON C# (CSharp) Method

PowerShardToJSON() public method

public PowerShardToJSON ( ) : JSONObject,
return JSONObject,
    public JSONObject PowerShardToJSON()
    {
        JSONObject powerShard = new JSONObject(JSONObject.Type.OBJECT);
        JSONObject arr = new JSONObject(JSONObject.Type.ARRAY);
        powerShard.AddField("coolDown", _cooldown);
        powerShard.AddField("effectIds", arr);
        powerShard.AddField("gameObject", GameObject.name);

        for (int i = 0; i < _effectIds.Count; i++)
        {
            arr.Add(_effectIds[i]);
        }

        return powerShard;
    }