예제 #1
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            buffer.WriteUInt16(FlagUpdates.Count);
            foreach (FlagUpdateData f in FlagUpdates)
            {
                buffer.WriteFlagUpdateData(f, HideType);
            }

            return(buffer.GetMessageBuffer());
        }
예제 #2
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            if (IsServer())
            {
                buffer.WriteByte(PlayerID);
                buffer.WriteFlagUpdateData(FlagData, false);
            }
            else
            {
                buffer.WriteUInt16(FlagData.FlagID);
            }

            return(buffer.GetMessageBuffer());
        }
예제 #3
0
        public override byte[] Pack()
        {
            DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code);

            if (IsServer())
            {
                buffer.WriteByte(PlayerID);
                buffer.WriteFlagUpdateData(Data, true);
            }
            else
            {
                buffer.WriteVector3F(Postion);
            }

            return(buffer.GetMessageBuffer());
        }