コード例 #1
0
        public void Handle(ServerRoom room, PlayerEntity player, SimpleProto message)
        {
            int serverTime = room.RoomContexts.session.currentTimeObject.CurrentTime;

            ClientEffectFactory.CreateSprayPaint(room.RoomContexts.clientEffect,
                                                 room.RoomContexts.session.commonSession.EntityIdGenerator,
                                                 new Vector3(message.Fs[0], message.Fs[1], message.Fs[2]),
                                                 new Vector3(message.Fs[3], message.Fs[4], message.Fs[5]),
                                                 1,
                                                 new Vector3(message.Fs[6], message.Fs[7], message.Fs[8]),
                                                 XmlConfig.ESprayPrintType.TypeBounds_1,
                                                 message.Ins[0], message.Ins[1]);
            player.playerSpray.mLastCreateTime = (float)serverTime;
        }