예제 #1
0
 /// <summary>
 /// Binds an action to a specified <see cref="RegionType"/>.
 /// </summary>
 /// <param name="type">The type of region that allows for this action.</param>
 /// <param name="depth">The depth at which this action is allowed, if any.</param>
 public BindToRegionAttribute(RegionType type, BindDepth depth = BindDepth.At)
 {
     Region = type;
     Depth  = depth;
 }
예제 #2
0
 /// <summary>
 /// Binds an action to a specified <see cref="LocationType"/>.
 /// </summary>
 /// <param name="type">The type of location that allows for this action.</param>
 /// <param name="depth">The depth at which this action is allowed, if any.</param>
 public BindToRegionAttribute(LocationType type, BindDepth depth = BindDepth.At)
 {
     Region   = RegionType.Location;
     Location = type;
     Depth    = depth;
 }
예제 #3
0
 /// <summary>
 /// Binds an action to a <see cref="Desync.Region"/> reference at the specified depth.
 /// </summary>
 /// <param name="id">The primary ID that represents a <see cref="Desync.Location"/> reference.</param>
 /// <param name="depth">The depth at which this action is allowed, if any.</param>
 public BindToRegionAttribute(string id, BindDepth depth = BindDepth.At)
 {
     Id    = id;
     Depth = depth;
 }