public static void Serialize <T>(SerializeContext context, BinaryWriter bw, TagLookup <T> value) { for (var i = 0; i < value.Count; i++) { Field.Serialize(context, bw, ref value.values[i]); } }
public Enumerator(TagLookup <T> owner) { i = 0; current = default(T); this.owner = owner; }
public ValueCollection(TagLookup <T> owner) { this.owner = owner; }
public Enumerator(TagLookup <T> owner) { i = 0; current = default(KeyValuePair <TagSet, T>); this.owner = owner; }
public Enumerator(TagLookup <T> owner) { i = 0; current = null; this.owner = owner; }
public static void Deserialize <T>(DeserializeContext context, BinaryReader br, ref TagLookup <T> value) { throw new InvalidOperationException(); }
// NOTE: Pass-through the animation serializer to a simple binary serializer (the format of `TagLookup` is *really* stable, and some folks need to directly serialize us) public static void SerializeTagLookup <T>(this TagLookup <T> tagLookup, AnimationSerializeContext context, Action <T> serializeValue) { tagLookup.Serialize(context.bw, serializeValue); }
public static void Serialize <T>(SerializeContext context, BinaryWriter bw, TagLookup <T> value) { value.NetworkSerializeHelper(context, bw); // <- so we can access private `count` field directly }