咳……又是自己摸索……2 w* }4 z+ o4 R
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
2 K1 D- a7 l) |/ O5 } worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
$ ^3 _- I/ d+ b" s) P
/ z8 z1 L/ M6 I! \& `4 y4 F其中FoodSpace的seedFood函数:' K! A( S/ s& q L8 F+ O. g5 i' f
public Object seedFood(int x, int y) {
' R& u! s1 e9 U+ E% e7 H4 c putValue$atX$Y(1, x, y);0 i- W, \8 c# n f1 h; r" z1 X
return this;& X! ~/ C- l' Z9 [) y
} |