咳……又是自己摸索……, j: f4 e! `/ P
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
/ t$ g1 n0 ^6 _! Q worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);8 N- C5 L& T* n/ L
; {+ ] @3 {1 L0 G; V v. D4 V3 Z
其中FoodSpace的seedFood函数:/ ?* J5 g4 k0 T
public Object seedFood(int x, int y) {6 ]8 q6 ?$ L: c" l' t9 I% N
putValue$atX$Y(1, x, y);
+ B3 a# u; T" Y; Y6 v return this;- ]' `. H1 G9 v) q, l* X- i$ N
} |