咳……又是自己摸索……
- o0 q* j: y4 H' `, Z+ m/ [8 xsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
3 }9 k0 s# L" X' R* f worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);' t& b8 s4 y; u% Q0 `
# C% P, q1 b3 e0 [/ B: F) f
其中FoodSpace的seedFood函数:
( W( u8 p" K+ qpublic Object seedFood(int x, int y) {
! w$ a3 n2 y" \: }" i putValue$atX$Y(1, x, y);; d' F# d9 s* O* L9 I- g1 ^
return this;
; o. |# _, k& K h" i0 n } |