void IMyPlayerCollection.ReduceControl(ModAPI.Interfaces.IMyControllableEntity entityWhichKeepsControl, IMyEntity entityWhichLoosesControl) { var e1 = entityWhichKeepsControl as Sandbox.Game.Entities.IMyControllableEntity; var e2 = entityWhichLoosesControl as MyEntity; if (e1 != null && e2 != null) { ReduceControl(e1, e2); } }
void IMyPlayerCollection.TryExtendControl(ModAPI.Interfaces.IMyControllableEntity entityWithControl, IMyEntity entityGettingControl) { var e1 = entityWithControl as Sandbox.Game.Entities.IMyControllableEntity; var e2 = entityGettingControl as MyEntity; if (e1 != null && e2 != null) { TryExtendControl(e1, e2); } }
bool IMyPlayerCollection.TryReduceControl(ModAPI.Interfaces.IMyControllableEntity entityWhichKeepsControl, IMyEntity entityWhichLoosesControl) { var e1 = entityWhichKeepsControl as Sandbox.Game.Entities.IMyControllableEntity; var e2 = entityWhichLoosesControl as MyEntity; if (e1 != null && e2 != null) { return(TryReduceControl(e1, e2)); } return(false); }
bool IMyPlayerCollection.HasExtendedControl(ModAPI.Interfaces.IMyControllableEntity firstEntity, IMyEntity secondEntity) { var e1 = firstEntity as Sandbox.Game.Entities.IMyControllableEntity; var e2 = secondEntity as MyEntity; if (e1 != null && e2 != null) { return(HasExtendedControl(e1, e2)); } return(false); }