4 using Microsoft.Xna.Framework;
9 namespace Loot.Api.Core
16 public Mod Mod {
get;
internal set; }
18 Mod ILoadableContentSetter.Mod
23 public uint Type {
get;
internal set; }
25 uint ILoadableContentSetter.Type
30 public string Name => GetType().Name;
32 public virtual string RarityName => Name;
33 public virtual Color? OverrideNameColor => null;
34 public virtual string ItemPrefix => null;
35 public virtual string ItemSuffix => null;
41 public virtual float? UpgradeChance => null;
47 public virtual float? DowngradeChance => null;
49 public virtual float ExtraMagnitudePower => 0f;
50 public virtual float ExtraLuck => 0f;
51 public virtual Type Downgrade => null;
52 public virtual Type Upgrade => null;
54 public abstract Color Color {
get; }
74 public virtual void NetReceive(Item item, BinaryReader reader)
83 public virtual void NetSend(Item item, BinaryWriter writer)
91 public virtual void Load(Item item, TagCompound tag)
99 public virtual void Save(Item item, TagCompound tag)
virtual void NetReceive(Item item, BinaryReader reader)
Allows the modder to do custom NetReceive
Defines the rarity of a modifier
virtual void Clone(ref ModifierRarity clone)
virtual void Save(Item item, TagCompound tag)
Allows modder to do custom saving here Use the given TC to put data you want to save, which can be loaded using Load(Item,TagCompound)
virtual void Load(Item item, TagCompound tag)
Allows modder to do custom loading here Use the given TagCompound to pull data you saved using Save(I...
Defines a piece of loadable content The interface is used in classes where the deriving class already...
virtual void NetSend(Item item, BinaryWriter writer)
Allows modder to do custom NetSend here