protected override bool OnCharacterPersisting(SqlConnection con, SqlTransaction tran, ServerCharacterInfo ci) { // TrueSkill component if (ci.GetComponent<TSCharacterComponent>() == null) { TSCharacterComponent trueSkill = new TSCharacterComponent(); ci.AddComponent(trueSkill); } bool rslt = CharacterUtil.Instance.PersistNewCharacter_TSRating(ci, con, tran); if (rslt) { return base.OnCharacterPersisting(con, tran, ci); } return false; }
protected override bool OnCharacterPersisting(SqlConnection con, SqlTransaction tran, ServerCharacterInfo ci) { // TrueSkill component if (ci.GetComponent <TSCharacterComponent>() == null) { TSCharacterComponent trueSkill = new TSCharacterComponent(); ci.AddComponent(trueSkill); } bool rslt = CharacterUtil.Instance.PersistNewCharacter_TSRating(ci, con, tran); if (rslt) { return(base.OnCharacterPersisting(con, tran, ci)); } return(false); }