Esempio n. 1
0
 internal virtual LayerVertex Deserialize(IReadOnlyDictionary <string, object> properties)
 {
     Name = properties[nameof(Name)].ToString();
     Enum.TryParse(properties[nameof(Kind)].ToString(), out VertexKind kind);
     Kind = kind;
     return(this);
 }
Esempio n. 2
0
 protected LayerVertex(VertexKind kind, string name) : base(name)
 {
     Kind = kind;
 }
Esempio n. 3
0
 public Vertex(float x, float y, VertexKind kind)
 {
     _ox   = _newX = x;
     _oy   = _newY = y;
     _kind = kind;
 }