Building Class

Summary

A simple destructible building for Example 05 Missile Command which also serves as an example of how to create a procedural asset.
Assembly
Weaver.dll
Namespace
Weaver.Examples
Interfaces
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type-.->Interface0["ITakeDamage"] click Interface0 "/weaver/api/Weaver.Examples/ITakeDamage" Type["Building"] class Type type-node

Syntax

public sealed class Building : MonoBehaviour, ITakeDamage

Properties

Name Value Summary
IsWorthPoints bool
Destroying buildings is not worth any points.

Methods

Name Value Summary
OnTakeDamage(IDealDamage, int) void
Called when something damages this object via Weaver.Examples.ITakeDamage. Destroys this object and shows some Weaver.Examples.FloatingText.