Ejemplo n.º 1
0
        public void Render(RenderTarget target)
        {
            if (tree == null)
            {
                RenderParams textParams = new RenderParams();
                textParams.tintColor = Color.Red;
                textParams.position  = new Vector2f(50f, 50f);
                target.DrawText(bodyFont.Get <Font>(), "Tree is null, nothing to display", 16, textParams);

                return;
            }

            Vector2f refVector = Vector2f.Zero;

            RenderNode(target, tree.root, ref refVector);
        }
    public override string GetMessageBody()
    {
        string description = death.Get().description;

        return(description.Replace("{Target}", GetTarget().GetName()));
    }
 public override bool IsValid()
 {
     return(tech.Get() != null);
 }
Ejemplo n.º 4
0
 public static void getResName(ref string __result, ref ResourceRef <Tech> ___tech)
 {
     __result = __result + "<br><b>" + ___tech.Get().Name + "<b>";
 }