咳……又是自己摸索……$ V4 Y' b( r2 d. k
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");' k- z% Z+ n: J, B9 @# S% j9 q/ Y
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
0 [# Q, [# x6 r7 ^' X# F) Z8 `& b7 e( s l" N
其中FoodSpace的seedFood函数:
) O: \% X# I7 D$ Ppublic Object seedFood(int x, int y) {2 {. \ |" D' W3 S4 x9 F6 E
putValue$atX$Y(1, x, y);2 H8 ^9 ^# ~3 t. P9 z0 [
return this;# d t$ e3 @$ A+ D, v& g
} |