private static void LoadDrawableEntityDrawBehaviors(BinaryReader reader, DrawableEntity drawable) { var drawBehaviors = LoadArray(null, typeof(List <string>), reader) as List <string>; foreach (string behavior in drawBehaviors) { drawable.OnDraw(BinaryDataExtensions.GetTypeFromShortNameOrFullNameIfNotFound(behavior)); } }
public void AddVisibleDrawableEntity() { var drawable = new DrawableEntity { IsVisible = false }; drawable.OnDraw <DrawTest>(); drawable.ToggleVisibility(); Assert.IsTrue(drawable.IsVisible); }
private static void LoadDrawableEntityDrawBehaviors(BinaryReader reader, DrawableEntity drawable) { var drawBehaviors = LoadArray(null, typeof(List<string>), reader) as List<string>; foreach (string behavior in drawBehaviors) drawable.OnDraw(BinaryDataExtensions.GetTypeFromShortNameOrFullNameIfNotFound(behavior)); }
public void AddVisibleDrawableEntity() { var drawable = new DrawableEntity { IsVisible = false }; drawable.OnDraw<DrawTest>(); drawable.ToggleVisibility(); Assert.IsTrue(drawable.IsVisible); }