咳……又是自己摸索……
) C. g, U* T. U5 Y6 j3 A8 o" R: _sel = SwarmUtils.getSelector("FoodSpace", "seedFood");9 p0 H" M! V. n2 o( d z) H
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
& w* N3 T1 ?8 O0 B, d& ?4 Y; V& t7 r
其中FoodSpace的seedFood函数:
1 N; q+ b2 D3 X5 U+ n: ppublic Object seedFood(int x, int y) {
, e7 g# G- W& h- S7 P& ` putValue$atX$Y(1, x, y);' z( _, L, c, I6 z: s
return this;
k5 @, S; i) x } |