예제 #1
0
        public bool MutateMapType(ProtocolCS.MapType map_type)
        {
            int o = __p.__offset(8); if (o != 0)

            {
                __p.bb.PutInt(o + __p.bb_pos, (int)map_type); return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 public static Offset <MapData> CreateMapData(FlatBufferBuilder builder,
                                              StringOffset entity_idOffset = default(StringOffset),
                                              int map_id = 0,
                                              ProtocolCS.MapType map_type  = ProtocolCS.MapType.NONE,
                                              VectorOffset map_gatesOffset = default(VectorOffset))
 {
     builder.StartObject(4);
     MapData.AddMapGates(builder, map_gatesOffset);
     MapData.AddMapType(builder, map_type);
     MapData.AddMapId(builder, map_id);
     MapData.AddEntityId(builder, entity_idOffset);
     return(MapData.EndMapData(builder));
 }
예제 #3
0
 public static void AddMapType(FlatBufferBuilder builder, ProtocolCS.MapType mapType)
 {
     builder.AddInt(2, (int)mapType, 0);
 }