public override void Execute(int time, ref IShipDockEntitas target) { base.Execute(time, ref target); mRoleItem = target as IFWRole; if (mRoleItem != default) { } }
private void SetUserFWRole(ref IParamNotice <ICommonRole> target) { IParamNotice <ICommonRole> notice = target as IParamNotice <ICommonRole>; IFWRole role = notice.ParamValue as IFWRole; FWPlayerData data = mRelater.DataRef <FWPlayerData>(FWConsts.DATA_PLAYER); data.SetCurrentRole(role); }
public void AddCampRole(IFWRole role) { int key = mCampRoleMapper.Size; CampRoleModel model = new CampRoleModel { role = role, controllIndex = key }; mCampRoleMapper[key] = model; DataChanged(FWConsts.DC_CAMP_ROLE_CREATED); }
public void SetCurrentRole(IFWRole role) { PlayerCurrentRole = role; DataChanged(FWConsts.DC_PLAYER_ROLE_CHOOSEN); }