咳……又是自己摸索……# x6 [- r, j7 Q" c/ Q3 Q
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
`+ t! X/ R# l7 |8 Y worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);% _1 w A9 r _/ P
# H/ K& E: b( v5 I/ F' u0 t
其中FoodSpace的seedFood函数:
! s( _2 A" o J" d% N/ Hpublic Object seedFood(int x, int y) {6 e6 I: |' ~5 @% z
putValue$atX$Y(1, x, y);. I/ j) a0 O1 P7 H- k9 X
return this;
% `! ?( D y$ e" k5 \8 P9 p8 L# B } |