public HumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter) { mContentLoader = contentLoader; mPlayerInputMap = null; DrawSegment = null; }
public ActionScreenHumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter, contentLoader) { mMmoCameraDesc = new MmoCameraDesc(); mCamera = new StaticCamera(); mShadowViewMode = false; mBright = 0.1f; mContrast = 1.0f; mBrightParam = null; mContrastParam = null; mAvatarBepuEntity = null; mCameraSmoothingEngaged = false; mAimingCameraOffset = new Vector3(5.0f, 3.0f, 5.0f); mInputProcs = new Dictionary<Type, InputProcessor>[(int)(InputMode.COUNT)]; mInputProcs[(int)(InputMode.Aloof)] = new Dictionary<Type, InputProcessor>(); mInputProcs[(int)(InputMode.Aiming)] = new Dictionary<Type, InputProcessor>(); mCrosshairs = null; mInventoryPanel = null; }
public static PlayerView Create(PlayerInfo playerInfo, CharacterInfo selectedCharacter, IScreenHoncho screenHoncho, ContentManager viewContentLoader) { Type viewType = null; object[] ctorParams = null; switch (playerInfo.Type) { case PlayerInfo.PlayerType.Local: viewType = screenHoncho.HumanViewType; ctorParams = new object[] { playerInfo, selectedCharacter, viewContentLoader }; break; case PlayerInfo.PlayerType.Remote: viewType = screenHoncho.RemoteViewType; ctorParams = new object[] { playerInfo, selectedCharacter }; break; case PlayerInfo.PlayerType.Bot: viewType = screenHoncho.BotViewType; ctorParams = new object[] { playerInfo, selectedCharacter }; break; } return Activator.CreateInstance(viewType, ctorParams) as PlayerView; }
public HubScreenHumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter, contentLoader) { mInputProcs = new Dictionary<Type, InputProcessor>(); }