咳……又是自己摸索……: h- }2 ?; {/ J1 U
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");3 E9 y, D R2 ]; \
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);/ E( T2 e6 ~7 Z
, @9 w4 |, K" p+ f1 V: ~0 S. z2 j
其中FoodSpace的seedFood函数:1 v! h4 z5 }- }; q
public Object seedFood(int x, int y) {$ f- e, R8 k/ r6 k h) |! S
putValue$atX$Y(1, x, y);
9 `, {9 x: G1 d) Y# J return this;
1 ~2 `& U/ F' Q" E2 K& ` } |