mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
738 B
28 lines
738 B
using System;
|
|
|
|
namespace ZeroLevel.Sleopok.Engine.Models
|
|
{
|
|
public enum SleoFieldType
|
|
{
|
|
/// <summary>
|
|
/// One value
|
|
/// </summary>
|
|
Single = 0,
|
|
/// <summary>
|
|
/// Array of values
|
|
/// </summary>
|
|
Array = 1,
|
|
}
|
|
internal sealed class SleoField
|
|
{
|
|
internal SleoField(SleoFieldType fieldType, string name, float boost, bool exactMatch, Func<object, object> getter) =>
|
|
(FieldType, Name, Boost, ExactMatch, Getter) = (fieldType, name, boost, exactMatch, getter);
|
|
|
|
public SleoFieldType FieldType;
|
|
public string Name;
|
|
public float Boost;
|
|
public bool ExactMatch;
|
|
public Func<object, object> Getter;
|
|
}
|
|
}
|