Esempio n. 1
0
 public bool CanInteract(InteractionQueryContext context)
 {
     if (!this.Fallen)
     {
         if (context.Parameters != null && context.Parameters.ContainsKey("stump"))
         {
             return(false); // cant interact with stump till tree has fallen.
         }
         return(context.Item is AxeItem || context.Item is DevtoolItem);
     }
     else
     {
         return(true);
     }
 }
Esempio n. 2
0
 public Result AuthorizedToInteract(InteractionQueryContext context)
 {
     return(PropertyManager.IsAuthorized(context.Player.User, this.Position.Round, this));
 }