示例#1
0
		public static Packet SpawnPacket(Body body) {
			return SpawnPacket(body.ID,body.Name,body.Position);
		}
示例#2
0
		protected virtual void OnEnter(Body body) {
			EnterEvent.Raise(level.server,body);
		}
示例#3
0
		protected virtual void OnLeave(Body body) {
			LeaveEvent.Raise(level.server,body);
		}
示例#4
0
		public bool IsInside(Body body) {
			return (body.Position.X>=x1*32 && body.Position.Y>=y1*32 && body.Position.Z>=z1*32 &&
			        body.Position.X<x2*32 && body.Position.Y<y2*32+48 && body.Position.Z<z2*32);
		}