public static void WriteLongNullable(this NetworkWriter writer, long?value) { writer.WriteBool(value.HasValue); if (value.HasValue) { writer.WriteLong(value.Value); } }
public static void WriteInt64(this NetworkWriter writer, long value) => writer.WriteLong(value);