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.
36 lines
548 B
36 lines
548 B
2 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using System;
|
||
|
using UIWidgets;
|
||
|
|
||
|
namespace UIWidgetsSamples {
|
||
|
|
||
|
/// <summary>
|
||
|
/// Origin of chat line.
|
||
|
/// </summary>
|
||
|
public enum ChatLineType {
|
||
|
System,
|
||
|
User,
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Chat line.
|
||
|
/// </summary>
|
||
|
[Serializable]
|
||
|
public class ChatLine : IItemHeight {
|
||
|
[SerializeField]
|
||
|
public string UserName;
|
||
|
[SerializeField]
|
||
|
public string Message;
|
||
|
[SerializeField]
|
||
|
public DateTime Time;
|
||
|
|
||
|
[SerializeField]
|
||
|
public ChatLineType Type;
|
||
|
|
||
|
public float Height {
|
||
|
get;
|
||
|
set;
|
||
|
}
|
||
|
}
|
||
|
}
|