咳……又是自己摸索……
) D" d K1 z9 l% P3 F- |sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
R& ~% F' w0 N7 ]6 U2 @ worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel); `2 [1 p3 O4 e& f9 ^0 b
; F/ I! H( {# A! k: A其中FoodSpace的seedFood函数:, H5 Y; h6 d) m- | C1 J; V
public Object seedFood(int x, int y) {
" N# }3 v& O2 K& t: r+ U5 b# M putValue$atX$Y(1, x, y);
1 O+ d, }3 g3 P) C/ {9 }% G return this;
$ @* B% H2 F( ?# c# ?4 C } |