咳……又是自己摸索……% e; h. ?% m. |2 B" K/ {2 m: g/ g _
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");9 t' G6 r4 h3 |- U6 {; U/ @
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
6 ]; Y2 P& A& p9 C% W
9 O6 A/ G' ?4 G8 J其中FoodSpace的seedFood函数:9 n1 t% u/ c; d3 }. C4 V
public Object seedFood(int x, int y) {
& e, l' g" u7 o! c$ W9 N2 Q: } putValue$atX$Y(1, x, y);* |! I6 ]' {5 \2 |% C/ Z
return this;. h% I9 ], U; F, v, ~
} |