咳……又是自己摸索……
& I" a" r( D' j6 s5 f; }sel = SwarmUtils.getSelector("FoodSpace", "seedFood");) g7 Z e! t5 H- O
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);, p: i0 c) R9 _% v
' X7 F; P0 w! V4 ?, B; z6 t/ w
其中FoodSpace的seedFood函数:
/ L. U4 `6 K$ E* B5 `public Object seedFood(int x, int y) {+ e. r- u8 _. E% Q$ L; z
putValue$atX$Y(1, x, y);0 C t2 Z+ W* x- T! M) ?" S9 ^
return this;0 f% O/ `) ]3 Z
} |