Example #1
0
        public static Offset <global::FB_WebProtocol.Weapon> Encode(Game_WebProtocol.FB_WebProtocol.Weapon source, FlatBufferBuilder fbb)
        {
            StringOffset wtfOffset = fbb.CreateString(source.wtf);

            global::FB_WebProtocol.Weapon.StartWeapon(fbb);
            global::FB_WebProtocol.Weapon.AddId(fbb, source.id);
            global::FB_WebProtocol.Weapon.AddWtf(fbb, wtfOffset);
            return(global::FB_WebProtocol.Weapon.EndWeapon(fbb));
        }
Example #2
0
 public static void Decode(Game_WebProtocol.FB_WebProtocol.Weapon destination, global::FB_WebProtocol.Weapon source)
 {
     destination.id  = source.Id;
     destination.wtf = source.Wtf;
 }