Exemple #1
0
    private static EntityDataRoot smethod_13(Map map_0, Collectible collectible_0)
    {
        EntityDataRoot entityDataRoot = GClass840.smethod_2(map_0, collectible_0);
        Color          color_         = MapUtils.smethod_16(map_0, collectible_0);

        entityDataRoot.Data = new List <EntityRenderFragment>
        {
            GClass840.smethod_6(color_, 3, null)
        };
        return(entityDataRoot);
    }
Exemple #2
0
    private static EntityDataRoot smethod_14(Map map_0, Gate gate_0)
    {
        EntityDataRoot entityDataRoot = GClass840.smethod_2(map_0, gate_0);
        Color          color          = MapUtils.smethod_16(map_0, gate_0);

        entityDataRoot.Data = new List <EntityRenderFragment>
        {
            GClass840.smethod_6(color, 3, null),
            GClass840.smethod_9(Color.Transparent, 12, 3, new Color?(color))
        };
        return(entityDataRoot);
    }
Exemple #3
0
    private static EntityDataRoot smethod_21(Map map_0)
    {
        EntityDataRoot entityDataRoot = GClass840.smethod_2(map_0, map_0.Hero);
        Color          color_         = MapUtils.smethod_16(map_0, map_0.Hero);

        entityDataRoot.Data = new List <EntityRenderFragment>();
        if (map_0.Hero.MovementDestination != null)
        {
            Vector2 value   = map_0.Hero.MovementDestination.Value;
            float   float_  = value.X / (float)map_0.MapSize.Width;
            float   float_2 = value.Y / (float)map_0.MapSize.Height;
            entityDataRoot.Data.Add(GClass840.smethod_10(Color.Transparent, 2, float_, float_2, new Color?(Color.RoyalBlue)));
        }
        entityDataRoot.Data.Add(GClass840.smethod_6(color_, 8, null));
        return(entityDataRoot);
    }
Exemple #4
0
    private static EntityDataRoot smethod_12(GClass839 gclass839_0, Map map_0, Ship ship_0)
    {
        EntityDataRoot entityDataRoot = GClass840.smethod_2(map_0, ship_0);
        Color          color_         = MapUtils.smethod_16(map_0, ship_0);
        NpcShip        npcShip        = ship_0 as NpcShip;

        if (npcShip != null && (!(gclass839_0.Behavior ?? gclass839_0.gclass853_0).vmethod_8(npcShip) || npcShip.LeashedBy > 0))
        {
            color_ = Color.Gray;
        }
        Color?nullable_ = null;

        entityDataRoot.Data = new List <EntityRenderFragment>
        {
            GClass840.smethod_6(color_, 4, nullable_)
        };
        return(entityDataRoot);
    }