Exemplo n.º 1
0
 /// <summary>
 /// Set Edge Property for the given property handle and edge handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="ph">Edge Property Handle</param>
 /// <param name="eh">Edge Handle</param>
 /// <param name="p">Property Value</param>
 public void SetProperty <T>(EPropH <T> ph, int eh, T p) where T : new()
 {
     m_eprops.GetProperty(ph)[eh] = p;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get Edge Property for the given property handle and edge handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="ph">Edge Property Handle</param>
 /// <param name="eh">Edge Handle</param>
 /// <returns>Property Value</returns>
 public T GetProperty <T>(EPropH <T> ph, int eh) where T : new()
 {
     return(m_eprops.GetProperty(ph)[eh]);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Remove Edge Property for the given property handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="h">Edge Property Handle</param>
 public void RemoveProperty <T>(EPropH <T> ph)
 {
     m_eprops.RemoveProperty(ph);
 }
Exemplo n.º 4
0
 public Property <T> GetProperty <T>(EPropH <T> ph) where T : new()
 {
     return(m_eprops.GetProperty(ph));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Add Edge Property for the given property handle
 /// </summary>
 /// <typeparam name="T">the template type of the property. eg UnityEngine.Vector3</typeparam>
 /// <param name="h">Edge Property Handle</param>
 public void AddProperty <T>(EPropH <T> ph) where T : new()
 {
     m_eprops.AddProperty(ph);
     m_eprops.Resize(edgeCount);
 }