예제 #1
0
        public static PackAttribute GetPackage(AuraShape id)
        {
            PackAttribute pack;

            _auraShapePacks.TryGetValue(id, out pack);
            return(pack);
        }
예제 #2
0
 protected override void OnPointerReleased(PointerReleasedEventArgs e)
 {
     base.OnPointerReleased(e);
     pressed      = false;
     currentShape = null;
     InvalidateVisual();
 }
예제 #3
0
 public void ChangeAura(AuraShape auraShape, AuraColor auraColor)
 {
     if (this.HasAura(auraShape, auraColor)) // Server kicks people if they do not own an aura
     {
         new AuraSendMessage(auraShape, auraColor)
         .SendIn(this.BotBits);
     }
 }
예제 #4
0
        protected override void OnPointerPressed(PointerPressedEventArgs e)
        {
            base.OnPointerPressed(e);
            pressed = true;

            var line = new AuraLine();

            currentShape = line;
            line.HandleStart(e.GetPosition(this));
            line.HandleEnd(e.GetPosition(this));

            shapes.Add(line);

            InvalidateVisual();
        }
예제 #5
0
 private bool HasAura(AuraShape auraShape, AuraColor auraColor)
 {
     return(ConnectionManager.Of(this.BotBits).PlayerData.HasAuraShape(auraShape) &&
            ConnectionManager.Of(this.BotBits).PlayerData.HasAuraColor(auraColor));
 }
예제 #6
0
 public Task SetAuraAsync(AuraShape shape, AuraColor color)
 {
     return(this.MakeRPCCallAsync("changeAura", (int)shape, (int)color));
 }
예제 #7
0
 public static void SetPackage(AuraShape id, PackAttribute package)
 {
     _auraShapePacks[id] = package;
 }
예제 #8
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AuraSendMessage" /> class.
 /// </summary>
 /// <param name="auraShape">The aura shape.</param>
 /// <param name="auraColor">The aura.</param>
 public AuraSendMessage(AuraShape auraShape, AuraColor auraColor)
 {
     this.AuraShape = auraShape;
     this.AuraColor = auraColor;
 }
예제 #9
0
 public bool HasAuraShape(AuraShape auraShape)
 {
     return(this.HasPack(ItemServices.GetPackage(auraShape)));
 }