Exemple #1
0
 private bool Equals(BaseTemplate other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.Entity?.Id == Entity?.Id);
 }
Exemple #2
0
 public ActionEvent(BaseTemplate origin, BaseTemplate focus, Vector3 position, Quaternion rotation, ActionState state)
 {
     Origin   = origin.Entity.FindTemplate <CharacterTemplate>();
     Target   = focus.Entity.FindTemplate <CharacterTemplate>();
     Action   = Origin.CurrentAction;
     Position = position;
     Rotation = rotation;
     State    = state;
 }