1234567891011121314151617181920212223242526272829303132333435 |
- namespace InABox.Core
- {
- [Caption("Attributes")]
- public class CoreAttribute : BaseObject, ISequenceable, IPackable
- {
- public string Name { get; set; }
- public string Value { get; set; }
- public void Pack(FastBinaryWriter writer)
- {
- writer.Write(Sequence);
- writer.Write(Name);
- writer.Write(Value);
- }
- public void Unpack(FastBinaryReader reader)
- {
- Sequence = reader.ReadInt64();
- Name = reader.ReadString();
- Value = reader.ReadString();
- }
- [NullEditor]
- public long Sequence { get; set; }
- protected override void Init()
- {
- base.Init();
- Sequence = 0;
- Name = "";
- Value = "";
- }
- }
- }
|