public static void Clear() { //技能表 allSkillUnits = null; allStringID = null; allEffectConfig = null; }
public static void LoadSystemTables() { byte[] psubys = ReadFileAtPath(SkillUnitpath); MemoryStream ms = new MemoryStream(psubys); allSkillUnits = ProtoBuf.Serializer.Deserialize <SkillUnit.AllSkillUnits>(ms); byte[] pbys = ReadFileAtPath(StringIDpath); MemoryStream Phyms = new MemoryStream(pbys); allStringID = ProtoBuf.Serializer.Deserialize <StringID.AllStringID>(Phyms); byte[] aec = ReadFileAtPath(EffectConfigpath); MemoryStream aecms = new MemoryStream(aec); allEffectConfig = ProtoBuf.Serializer.Deserialize <EffectConfig.AllEffectConfig>(aecms); }