咳……又是自己摸索……! F2 I- z) n* S) ]3 K
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");: A' h- R7 J8 O, W
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
. P, |4 r" J! Y$ y* z
( Z6 _ t+ S0 O其中FoodSpace的seedFood函数:8 b, \* N2 {4 F( j* ^
public Object seedFood(int x, int y) {6 E5 o* S) g/ x, J8 K9 L
putValue$atX$Y(1, x, y);- P$ w" B! a' s) |5 |% A" h# \: v3 }3 x
return this;
4 X, c) w3 I; h" I } |