[HorizontalGroup("Info", Width = 325)]
[VerticalGroup("Info/Side1", Order =2), LabelWidth(50)]
public string id;
[VerticalGroup("Info/Side1"), LabelWidth(50)]
public string title;
[VerticalGroup("Info/Side2"), PreviewField(100), HideLabel,]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Sirenix.OdinInspector; | |
using System.Text.RegularExpressions; | |
namespace TcgEngine | |
{ | |
[InlineButton("@CardEditor.CloneAction($root, $property, $value)", SdfIconType.FileEarmarkPlusFill, "", ShowIf = "@CardEditor.ShowNotNull($value)")] | |
[CreateAssetMenu(fileName = "textEnhancer", menuName = "TcgEngine/TextEnhancer", order = 99)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void CalculateNode(Game data, NodeState node) | |
{ | |
//... | |
bool is_full_mana = HasAction(action_list, GameAction.PlayCard) && player.ManaMax() >= player.Mana(); | |
//... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$type": "UAssetAPI.UAsset, UAssetAPI", | |
"Info": "Serialized with UAssetAPI 1.0.0.0 (a5978d9)", | |
"NameMap": [ | |
"/Game/Coda/Templates/AbilityKeywords/Card/Keyword_FullCombo", | |
"/Game/Coda/Templates/AbilityKeywords/Card/Keyword_FullCombo.Keyword_FullCombo", | |
"/Game/Coda/Templates/AbilityKeywords/StatusEffects/Keyword_Vulnerable", | |
"/Game/Coda/Templates/AbilityKeywords/StatusEffects/Keyword_Vulnerable.Keyword_Vulnerable", | |
"/Game/Coda/Templates/Effects/Effect_Vulnerable", | |
"/Game/Coda/Templates/Effects/Effect_Vulnerable.Effect_Vulnerable", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const isSubset = <T extends { id: string }>(array: T[], subset: T[]): boolean => { | |
const ids: string[] = array.map((item: T) => item.id); | |
const notInArray = subset.filter((item: T) => !ids.includes(item.id)) | |
return notInArray.length <= 0; | |
} | |
// @fakenickles | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
Chosen, a Select Box Enhancer for jQuery and Prototype | |
by Patrick Filler for Harvest, http://getharvest.com | |
Version 1.8.2-hanoii | |
Full source at https://github.com/harvesthq/chosen | |
Copyright (c) 2011-2017 Harvest http://getharvest.com | |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md | |
This file is generated by `grunt build`, do not edit it by hand. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Exemplo de uso: retornar determinado número de produtos em destaque para apresentar na web. | |
* Considerando um model Produto com um atributo em_destaque: 1 = SIM | 2 = NÃO | |
*/ | |
/** | |
* 1. Retornar os produtos do banco de dados. | |
*/ | |
$produtos = Produto::all(); |
NewerOlder