static TypeEffectivenessViewModel() { for (var i = Types.Normal; i <= Types.Fairy; ++i) { AllTypes.Add(i); } }
public TypeLibrary(CompilationContext compilationContext) { _compilationContext = compilationContext; AllTypes.Add(new DataType { IsVoid = true, ExternalType = null }); }
public AspectBuilder All(params Type[] types) { foreach (var type in types) { AllTypes.Add(type); } return(this); }
public static BagType GetBagType(string color) { if (!AllTypes.ContainsKey(color)) { AllTypes.Add(color, new BagType() { Color = color }); } return(AllTypes[color]); }
public PokemonListViewModel() { AllTypes.Add(new KeyValuePair <Types?, string>(null, "All")); for (var i = Types.Normal; i <= Types.Fairy; ++i) { AllTypes.Add(new KeyValuePair <Types?, string>(i, i.ToString())); } Filter(); }
static TypeEditor() { AllTypes.Add(typeof(UnityEngine.Object), new ObjectType()); BaseTypes.Add(typeof(int).FullName, new IntType()); BaseTypes.Add(typeof(uint).FullName, new UIntType()); BaseTypes.Add(typeof(sbyte).FullName, new sByteType()); BaseTypes.Add(typeof(byte).FullName, new ByteType()); BaseTypes.Add(typeof(char).FullName, new CharType()); BaseTypes.Add(typeof(short).FullName, new ShortType()); BaseTypes.Add(typeof(ushort).FullName, new UShortType()); BaseTypes.Add(typeof(long).FullName, new LongType()); BaseTypes.Add(typeof(ulong).FullName, new ULongType()); BaseTypes.Add(typeof(float).FullName, new FloatType()); BaseTypes.Add(typeof(double).FullName, new DoubleType()); BaseTypes.Add(typeof(string).FullName, new StrType()); }
public MovesViewModel() { AllTypes.Add(new KeyValuePair <Types?, string>(null, "All")); for (var i = Types.Normal; i <= Types.Fairy; ++i) { AllTypes.Add(new KeyValuePair <Types?, string>(i, i.ToString())); } AllKinds.Add(new KeyValuePair <MoveKind?, string>(null, "All")); foreach (var moveKind in new[] { MoveKind.Physical, MoveKind.Special, MoveKind.Status }) { AllKinds.Add(new KeyValuePair <MoveKind?, string>(moveKind, moveKind.ToString())); } Filter(); }
private void _AddSubject_Exec(object parameter) { var subject = new SubjectView() { Id = IdGenerator.GetId(IdTypes.Subject), pattern_Id = NewPattern.Id, Name = "" }; CreatedTypes.Add(subject); AllTypes.Add(subject); var emptySubject = new AdminFormElementView(this, subject) { SubjectTypes = MainView.SubjectTypes }; SubjectElements.Add(emptySubject); }
public PcBuildAddViewModel(List <Propertie> allProperties, List <PcPart.PcType> allTypes) { foreach (var type in allTypes) { SelectListItem listItem = new SelectListItem { Text = type.ToString(), Value = type.ToString() }; AllTypes.Add(listItem); } foreach (var propertie in allProperties) { var listItem = new SelectListItem { Text = propertie._Value, Value = propertie.Id.ToString() }; AllProperties.Add(listItem); } }
public void GetDefaults(DeltinScript deltinScript) { AllTypes.AddRange(CodeType.DefaultTypes); AllTypes.Add(new Pathfinder.PathmapClass(deltinScript)); AllTypes.Add(new Pathfinder.PathResolveClass()); }
public void AddType(ICodeTypeInitializer initializer) => AllTypes.Add(initializer);
public void AddType(CodeType type) => AllTypes.Add(new GenericCodeTypeInitializer(type));