咳……又是自己摸索……
' S* T$ l p8 Q+ Csel = SwarmUtils.getSelector("FoodSpace", "seedFood");
$ Z' C( T, q5 l9 i: u$ V3 ] worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel); z+ `6 o$ j$ y- J5 \ T
x/ b# J3 a5 }其中FoodSpace的seedFood函数:- P, h" H/ h# V! S! t- H
public Object seedFood(int x, int y) {& _ K6 S- G: X# v6 P
putValue$atX$Y(1, x, y);
9 W& K1 |& x4 q( y& J5 M8 z8 b% a6 @ return this;
/ ?# S5 K& L x9 i/ n& h4 r& |6 A } |