//--------------------------------------------------- // CheckData //--------------------------------------------------- public bool CheckData(Master.TYPE type) { SettingData securityObject = Resources.Load <SettingData>(SettingDataFilePath); if (type == TYPE.ACTION) { return(Common.CheckHash(securityObject.GetHashData(type), CreateActionDataHash(ActionData))); } else if (type == TYPE.BULLET) { return(Common.CheckHash(securityObject.GetHashData(type), CreateBulletDataHash(BulletData))); } else if (type == TYPE.CHARACTER) { return(Common.CheckHash(securityObject.GetHashData(type), CreateCharacterDataHash(CharacterData))); } else if (type == TYPE.EFFECT) { return(Common.CheckHash(securityObject.GetHashData(type), CreateEffectDataHash(EffectData))); } else if (type == TYPE.ITEM) { return(Common.CheckHash(securityObject.GetHashData(type), CreateItemDataHash(ItemData))); } else if (type == TYPE.STAGE) { return(Common.CheckHash(securityObject.GetHashData(type), CreateStageDataHash(StageData))); } else if (type == TYPE.SEED) { return(Common.CheckHash(securityObject.GetHashData(type), CreateSeedDataHash(SeedData))); } return(false); }
public byte[] GetHashData(Master.TYPE type) { foreach (HashDataList data in _hashList) { if (data.type == type) { return(data.hash); } } return(null); }
//--------------------------------------------------- // GetMasterName //--------------------------------------------------- static public string GetMasterName(Master.TYPE type) { string[] names = { "CharacterData", "StageData", "BulletData", "ActionData", "ItemData", "EffectData" }; return(names[(int)type]); }
public HashDataList(Master.TYPE type, byte[] hash) { this.type = type; this.hash = hash; }