/* * $amf->_bodys[0]->_value[1][0]['params'][1]['id'] = $idu; $amf->_bodys[0]->_value[1][0]['params'][1]['className'] = 'Decoration'; $amf->_bodys[0]->_value[1][0]['params'][1]['position']['x'] = $x; $amf->_bodys[0]->_value[1][0]['params'][1]['position']['y'] = $y; $amf->_bodys[0]->_value[1][0]['params'][1]['position']['z'] = '0'; $amf->_bodys[0]->_value[1][0]['params'][1]['deleted'] = false; $amf->_bodys[0]->_value[1][0]['params'][1]['itemName'] = 'watermelonyellow'; $amf->_bodys[0]->_value[1][0]['params'][2][0]['isStorageWithdrawal'] = false; $amf->_bodys[0]->_value[1][0]['params'][2][0]['isGift'] = false; * */ public override object[] GetParameterArray() { FluorineFx.ASObject parameter1 = new FluorineFx.ASObject(); parameter1.Add("id", this._itemId); parameter1.Add("className","Decoration"); Classes.ObjectPosition pos = new Classes.ObjectPosition(){ X = _x, Y = _y, Z = 0 }; parameter1.Add("position", pos.ToObject()); parameter1.Add("deleted", false); parameter1.Add("itemName", _plantRequest); FluorineFx.ASObject parameter2 = new FluorineFx.ASObject(); parameter2.Add("isStorageWithdrawal", false); parameter2.Add("isGift", false); return new object[]{ "place", parameter1, new object[] { parameter2 } }; }
/* * $amf->_bodys[0]->_value[1][0]['params'][1]['id'] = $id; $amf->_bodys[0]->_value[1][0]['params'][1]['plantTime'] = '0'; $amf->_bodys[0]->_value[1][0]['params'][1]['className'] = 'Plot'; $amf->_bodys[0]->_value[1][0]['params'][1]['isJumbo'] = false; $amf->_bodys[0]->_value[1][0]['params'][1]['state'] = 'withered'; $amf->_bodys[0]->_value[1][0]['params'][1]['direction'] = '0'; $amf->_bodys[0]->_value[1][0]['params'][1]['isBigPlot'] = false; $amf->_bodys[0]->_value[1][0]['params'][1]['position']['x'] = $x; $amf->_bodys[0]->_value[1][0]['params'][1]['position']['y'] = $y; $amf->_bodys[0]->_value[1][0]['params'][1]['position']['z'] = '0'; $amf->_bodys[0]->_value[1][0]['params'][1]['deleted'] = false; $amf->_bodys[0]->_value[1][0]['params'][1]['itemName'] = 'watermelonyellow'; $amf->_bodys[0]->_value[1][0]['params'][1]['isProduceItem'] = false; $amf->_bodys[0]->_value[1][0]['params'][2] = array(); */ public override object[] GetParameterArray() { Classes.ObjectPosition pos = new Classes.ObjectPosition() { X = _x, Y = _y, Z = 0 }; FluorineFx.ASObject parameter1 = new FluorineFx.ASObject(); parameter1.Add("id", _itemId); parameter1.Add("state", "withered"); parameter1.Add("itemName", _plantRequest); parameter1.Add("plantTime", (float)0); parameter1.Add("direction", 0); parameter1.Add("isJumbo", false); parameter1.Add("position", pos.ToObject()); parameter1.Add("isBigPlot", false); parameter1.Add("className", "Plot"); parameter1.Add("deleted", false); parameter1.Add("isProduceItem", false); FluorineFx.ASObject parameter2 = new FluorineFx.ASObject(); parameter2.Add("energyCost", 0); return new object[] { "harvest", parameter1, new object[] { parameter2 } }; }