咳……又是自己摸索……
, Q @0 l4 v3 L3 r! s% Xsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
8 D2 l: q* S+ \) W' x% { worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);( _" L3 Q2 D* h# Q: V3 S
0 ?* T- a$ }, K4 e其中FoodSpace的seedFood函数:
+ t/ k) x2 B# x$ V$ B& i5 v- Ppublic Object seedFood(int x, int y) {
: u) L- w' _, |/ r8 p. z! w putValue$atX$Y(1, x, y); n# F% r4 w0 r9 t
return this;
# ]) P3 l- I2 Q/ [; Y } |