![]() |
|
|
|
#1
|
|||
|
|||
|
You can always cast from AiAircraft to AiActor but you can not always cast from AiActor to AiAircraft.
You can check if its possible to cast from AiActor to AiAircraft by this: Code:
AiActor actor;
if( actor is AiAircraft )
{
AiAircraft aircraft = actor as AiAircraft;
...
}
Code:
AiAircraft aircraft = actor as AiAircraft;
if(aircraft != null)
{
...
}
|
|
#2
|
|||
|
|||
|
the problem was not with casting AiActor to AiAircraft, but viceversa.
|
|
#3
|
|||
|
|||
|
I'm assuming there will be documentation?
I'm assuming you're using Visual Studio? Unfortunately, Visual Studio doesn't include a nice html documentation generator. If you're not aware, there are several third party documentation generators. My favorite is Doxygen. It uses Visual Studio's xml files to produce html files that are fairly easy to navigate, but most importantly, it's very easy to use. |
|
#4
|
|||
|
|||
|
Of course there will be, I'll have to learn to use that Doxygen though
|
|
#5
|
|||
|
|||
|
Requesting...
public bool AircraftCrashlanded(Aircraft aircraft) public bool AircraftCrashlandedAtFriendlyField(Aircraft aircraft) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|