public static PackAttribute GetPackage(AuraShape id) { PackAttribute pack; _auraShapePacks.TryGetValue(id, out pack); return(pack); }
protected override void OnPointerReleased(PointerReleasedEventArgs e) { base.OnPointerReleased(e); pressed = false; currentShape = null; InvalidateVisual(); }
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); } }
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(); }
private bool HasAura(AuraShape auraShape, AuraColor auraColor) { return(ConnectionManager.Of(this.BotBits).PlayerData.HasAuraShape(auraShape) && ConnectionManager.Of(this.BotBits).PlayerData.HasAuraColor(auraColor)); }
public Task SetAuraAsync(AuraShape shape, AuraColor color) { return(this.MakeRPCCallAsync("changeAura", (int)shape, (int)color)); }
public static void SetPackage(AuraShape id, PackAttribute package) { _auraShapePacks[id] = package; }
/// <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; }
public bool HasAuraShape(AuraShape auraShape) { return(this.HasPack(ItemServices.GetPackage(auraShape))); }