public override void NetRecieve(BinaryReader reader) { itemPrefix = TLPrefixList.GetInstanceWithID(reader.ReadInt32()); itemElement = (ElementType)reader.ReadInt32(); itemSuffix = TLSuffixList.GetInstanceWithID(reader.ReadInt32()); }
public override void Load(TagCompound tag) { itemPrefix = TLPrefixList.GetInstanceWithID(tag.GetInt("WeaponPrefix")); itemElement = (ElementType)tag.GetInt("WeaponElement"); itemSuffix = TLSuffixList.GetInstanceWithID(tag.GetInt("WeaponSuffix")); }